From d232c360dd4211c5564685268193af17250fedff Mon Sep 17 00:00:00 2001 From: Daniel Roe Date: Sat, 7 Dec 2024 15:36:02 +0000 Subject: [PATCH] feat: add clustering --- .github/workflows/autofix.yml | 42 ++ .github/workflows/ci.yml | 69 ++++ app/app.vue | 170 ++++++++ nuxt.config.ts | 8 +- package.json | 21 +- pnpm-lock.yaml | 657 +++++++++++++++++++++++++------ server/api/clusters/[...repo].ts | 39 ++ server/api/issues/[...repo].ts | 42 ++ server/utils/cluster.ts | 46 +++ server/utils/embeddings.ts | 84 ++++ 10 files changed, 1064 insertions(+), 114 deletions(-) create mode 100644 .github/workflows/autofix.yml create mode 100644 .github/workflows/ci.yml create mode 100644 app/app.vue create mode 100644 server/api/clusters/[...repo].ts create mode 100644 server/api/issues/[...repo].ts create mode 100644 server/utils/cluster.ts create mode 100644 server/utils/embeddings.ts diff --git a/.github/workflows/autofix.yml b/.github/workflows/autofix.yml new file mode 100644 index 0000000..afb8d65 --- /dev/null +++ b/.github/workflows/autofix.yml @@ -0,0 +1,42 @@ +# needed to securely identify the workflow +name: autofix.ci + +on: + pull_request: + branches: + - main + +permissions: + contents: read + +jobs: + code: + runs-on: ubuntu-latest + + steps: + - uses: actions/checkout@v4 + - run: corepack enable + - uses: actions/setup-node@v4 + with: + node-version: 20 + cache: "pnpm" + + - name: ๐Ÿ“ฆ Install dependencies + run: pnpm install + + # - name: ๐Ÿ“ฆ Install browsers + # run: pnpm playwright install + + - name: ๐Ÿ”  Fix lint errors + run: pnpm lint --fix + + # - name: ๐Ÿงช Update unit test snapshots + # run: pnpm test:unit -u + + # - name: ๐Ÿƒ Update component test snapshots + # run: pnpm test:nuxt -u + + # - name: ๐Ÿ–ฅ๏ธ Update browser test snapshots + # run: pnpm test:browser --update-snapshots + + - uses: autofix-ci/action@ff86a557419858bb967097bfc916833f5647fa8c diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml new file mode 100644 index 0000000..28fc4c6 --- /dev/null +++ b/.github/workflows/ci.yml @@ -0,0 +1,69 @@ +name: ci + +on: + pull_request: + branches: + - main + push: + branches: + - main + +jobs: + lint: + runs-on: ubuntu-latest + + steps: + - uses: actions/checkout@v4 + - run: corepack enable + - uses: actions/setup-node@v4 + with: + node-version: 20 + cache: pnpm + + - name: ๐Ÿ“ฆ Install dependencies + run: pnpm install + + - name: ๐Ÿ”  Lint project + run: pnpm lint + + test: + runs-on: ubuntu-latest + + steps: + - uses: actions/checkout@v4 + - run: corepack enable + - uses: actions/setup-node@v4 + with: + node-version: 20 + cache: pnpm + + - name: ๐Ÿ“ฆ Install dependencies + run: pnpm install + + - name: ๐Ÿ’ช Type check + run: pnpm test:types + + # - name: ๐Ÿงช Unit test + # run: pnpm test:unit + + # - name: ๐Ÿƒ Component tests + # run: pnpm test:nuxt + + # browser: + # runs-on: ubuntu-latest + # container: + # image: mcr.microsoft.com/playwright:v1.48.0-focal + + # steps: + # - uses: actions/checkout@v4 + # - run: corepack enable + # - uses: actions/setup-node@v4 + # with: + # node-version: 20 + # cache: pnpm + + # - name: ๐Ÿ“ฆ Install dependencies + # run: pnpm install + + # - name: ๐Ÿ–ฅ๏ธ Test project (browser) + # run: pnpm test:browser diff --git a/app/app.vue b/app/app.vue new file mode 100644 index 0000000..b070a77 --- /dev/null +++ b/app/app.vue @@ -0,0 +1,170 @@ + + + + + + + diff --git a/nuxt.config.ts b/nuxt.config.ts index d6884ad..2e8e363 100644 --- a/nuxt.config.ts +++ b/nuxt.config.ts @@ -1,6 +1,6 @@ // https://nuxt.com/docs/api/configuration/nuxt-config export default defineNuxtConfig({ - modules: ['@unocss/nuxt', '@nuxt/eslint', '@nuxthub/core', '@nuxt/icon'], + modules: ['@unocss/nuxt', '@nuxt/eslint', '@nuxthub/core', '@nuxt/icon', 'nuxt-time'], devtools: { enabled: true }, app: { head: { htmlAttrs: { lang: 'en' } } }, runtimeConfig: { @@ -14,6 +14,12 @@ export default defineNuxtConfig({ ai: true, analytics: true, cache: true, + vectorize: { + issues: { + dimensions: 1024, + metric: 'euclidean', + }, + }, kv: true, }, eslint: { diff --git a/package.json b/package.json index 88f0ede..5851908 100644 --- a/package.json +++ b/package.json @@ -7,7 +7,9 @@ "dev": "nuxt dev", "generate": "nuxt generate", "preview": "nuxt preview", - "postinstall": "nuxt prepare" + "postinstall": "nuxt prepare && simple-git-hooks", + "lint": "eslint .", + "test:types": "vue-tsc --noEmit" }, "dependencies": { "@iconify-json/ri": "1.2.3", @@ -17,7 +19,11 @@ "@octokit/rest": "^21.0.2", "@unocss/nuxt": "^0.65.1", "hex-rgb": "^5.0.0", + "ml-distance": "^4.0.1", + "ml-kmeans": "^6.0.0", "nuxt": "latest", + "nuxt-time": "1.0.3", + "ohash": "^1.1.4", "openai": "^4.76.0", "unocss": "^0.65.1", "vue": "latest", @@ -25,8 +31,19 @@ }, "devDependencies": { "@nuxt/eslint": "^0.7.2", - "typescript": "^5.7.2", + "lint-staged": "^15.2.10", + "simple-git-hooks": "^2.11.1", + "typescript": "^5.6.3", + "vue-tsc": "^2.1.10", "wrangler": "^3.93.0" }, + "simple-git-hooks": { + "pre-commit": "npx lint-staged" + }, + "lint-staged": { + "*.{js,ts,mjs,cjs,json,.*rc}": [ + "npx eslint --fix" + ] + }, "packageManager": "pnpm@9.15.0" } diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 699dced..bfd0417 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -16,7 +16,7 @@ importers: version: 1.2.10 '@nuxt/icon': specifier: ^1.9.1 - version: 1.9.1(magicast@0.3.5)(rollup@4.28.0)(vite@5.4.11(@types/node@22.7.5)(terser@5.34.1))(vue@3.5.13(typescript@5.7.2)) + version: 1.9.1(magicast@0.3.5)(rollup@4.28.0)(vite@5.4.11(@types/node@22.7.5)(terser@5.34.1))(vue@3.5.13(typescript@5.6.3)) '@nuxthub/core': specifier: ^0.8.7 version: 0.8.7(ioredis@5.4.1)(magicast@0.3.5)(rollup@4.28.0)(vite@5.4.11(@types/node@22.7.5)(terser@5.34.1)) @@ -25,32 +25,53 @@ importers: version: 21.0.2 '@unocss/nuxt': specifier: ^0.65.1 - version: 0.65.1(magicast@0.3.5)(postcss@8.4.49)(rollup@4.28.0)(vite@5.4.11(@types/node@22.7.5)(terser@5.34.1))(vue@3.5.13(typescript@5.7.2))(webpack@5.95.0(esbuild@0.23.1)) + version: 0.65.1(magicast@0.3.5)(postcss@8.4.49)(rollup@4.28.0)(vite@5.4.11(@types/node@22.7.5)(terser@5.34.1))(vue@3.5.13(typescript@5.6.3))(webpack@5.95.0(esbuild@0.23.1)) hex-rgb: specifier: ^5.0.0 version: 5.0.0 + ml-distance: + specifier: ^4.0.1 + version: 4.0.1 + ml-kmeans: + specifier: ^6.0.0 + version: 6.0.0 nuxt: specifier: latest - version: 3.14.1592(@parcel/watcher@2.4.1)(@types/node@22.7.5)(eslint@9.12.0(jiti@2.4.1))(ioredis@5.4.1)(magicast@0.3.5)(optionator@0.9.4)(rollup@4.28.0)(terser@5.34.1)(typescript@5.7.2)(vite@5.4.11(@types/node@22.7.5)(terser@5.34.1)) + version: 3.14.1592(@parcel/watcher@2.4.1)(@types/node@22.7.5)(eslint@9.12.0(jiti@2.4.1))(ioredis@5.4.1)(magicast@0.3.5)(optionator@0.9.4)(rollup@4.28.0)(terser@5.34.1)(typescript@5.6.3)(vite@5.4.11(@types/node@22.7.5)(terser@5.34.1))(vue-tsc@2.1.10(typescript@5.6.3)) + nuxt-time: + specifier: 1.0.3 + version: 1.0.3(magicast@0.3.5)(nuxt@3.14.1592(@parcel/watcher@2.4.1)(@types/node@22.7.5)(eslint@9.12.0(jiti@2.4.1))(ioredis@5.4.1)(magicast@0.3.5)(optionator@0.9.4)(rollup@4.28.0)(terser@5.34.1)(typescript@5.6.3)(vite@5.4.11(@types/node@22.7.5)(terser@5.34.1))(vue-tsc@2.1.10(typescript@5.6.3)))(rollup@4.28.0) + ohash: + specifier: ^1.1.4 + version: 1.1.4 openai: specifier: ^4.76.0 version: 4.76.0(zod@3.23.8) unocss: specifier: ^0.65.1 - version: 0.65.1(@unocss/webpack@0.65.1(rollup@4.28.0)(webpack@5.95.0(esbuild@0.23.1)))(postcss@8.4.49)(rollup@4.28.0)(vite@5.4.11(@types/node@22.7.5)(terser@5.34.1))(vue@3.5.13(typescript@5.7.2)) + version: 0.65.1(@unocss/webpack@0.65.1(rollup@4.28.0)(webpack@5.95.0(esbuild@0.23.1)))(postcss@8.4.49)(rollup@4.28.0)(vite@5.4.11(@types/node@22.7.5)(terser@5.34.1))(vue@3.5.13(typescript@5.6.3)) vue: specifier: latest - version: 3.5.13(typescript@5.7.2) + version: 3.5.13(typescript@5.6.3) vue-router: specifier: latest - version: 4.5.0(vue@3.5.13(typescript@5.7.2)) + version: 4.5.0(vue@3.5.13(typescript@5.6.3)) devDependencies: '@nuxt/eslint': specifier: ^0.7.2 - version: 0.7.2(@vue/compiler-sfc@3.5.13)(eslint@9.12.0(jiti@2.4.1))(magicast@0.3.5)(rollup@4.28.0)(typescript@5.7.2)(vite@5.4.11(@types/node@22.7.5)(terser@5.34.1)) + version: 0.7.2(@vue/compiler-sfc@3.5.13)(eslint@9.12.0(jiti@2.4.1))(magicast@0.3.5)(rollup@4.28.0)(typescript@5.6.3)(vite@5.4.11(@types/node@22.7.5)(terser@5.34.1)) + lint-staged: + specifier: ^15.2.10 + version: 15.2.10 + simple-git-hooks: + specifier: ^2.11.1 + version: 2.11.1 typescript: - specifier: ^5.7.2 - version: 5.7.2 + specifier: ^5.6.3 + version: 5.6.3 + vue-tsc: + specifier: ^2.1.10 + version: 2.1.10(typescript@5.6.3) wrangler: specifier: ^3.93.0 version: 3.93.0 @@ -1643,6 +1664,15 @@ packages: vite: ^5.0.0 || ^6.0.0 vue: ^3.2.25 + '@volar/language-core@2.4.10': + resolution: {integrity: sha512-hG3Z13+nJmGaT+fnQzAkS0hjJRa2FCeqZt6Bd+oGNhUkQ+mTFsDETg5rqUTxyzIh5pSOGY7FHCWUS8G82AzLCA==} + + '@volar/source-map@2.4.10': + resolution: {integrity: sha512-OCV+b5ihV0RF3A7vEvNyHPi4G4kFa6ukPmyVocmqm5QzOd8r5yAtiNvaPEjl8dNvgC/lj4JPryeeHLdXd62rWA==} + + '@volar/typescript@2.4.10': + resolution: {integrity: sha512-F8ZtBMhSXyYKuBfGpYwqA5rsONnOwAVvjyE7KPYJ7wgZqo2roASqNWUnianOomJX5u1cxeRooHV59N0PhvEOgw==} + '@voxpelli/config-array-find-files@1.2.1': resolution: {integrity: sha512-mRqVGLcK+yU+fQyaHAL9Xbhw633spi+VGurX1+gwSiZS8SzX63WzOmGi3qXO7mn4cozJcExyzIC5WmbUFJWQOw==} engines: {node: ^18.18.0 || ^20.9.0 || >=21.1.0} @@ -1686,6 +1716,9 @@ packages: '@vue/compiler-ssr@3.5.13': resolution: {integrity: sha512-wMH6vrYHxQl/IybKJagqbquvxpWCuVYpoUJfCqFZwa/JY1GdATAQ+TgVtgrwwMZ0D07QhA99rs/EAAWfvG6KpA==} + '@vue/compiler-vue2@2.7.16': + resolution: {integrity: sha512-qYC3Psj9S/mfu9uVi5WvNZIzq+xnXMhOwbTFKKDD7b1lhpnn71jXSFdTQ+WsIEk0ONCd7VV2IMm7ONl6tbQ86A==} + '@vue/devtools-api@6.6.4': resolution: {integrity: sha512-sGhTPMuXqZ1rVOk32RylztWkfXTRhuS7vgAKv0zjqk8gbsHkJ7xfFf+jbySxt7tWObEJwyKaHMikV/WGDiQm8g==} @@ -1700,6 +1733,14 @@ packages: '@vue/devtools-shared@7.6.7': resolution: {integrity: sha512-QggO6SviAsolrePAXZ/sA1dSicSPt4TueZibCvydfhNDieL1lAuyMTgQDGst7TEvMGb4vgYv2I+1sDkO4jWNnw==} + '@vue/language-core@2.1.10': + resolution: {integrity: sha512-DAI289d0K3AB5TUG3xDp9OuQ71CnrujQwJrQnfuZDwo6eGNf0UoRlPuaVNO+Zrn65PC3j0oB2i7mNmVPggeGeQ==} + peerDependencies: + typescript: '*' + peerDependenciesMeta: + typescript: + optional: true + '@vue/reactivity@3.5.13': resolution: {integrity: sha512-NaCwtw8o48B9I6L1zl2p41OHo/2Z4wqYGGIK1Khu5T7yxrn+ATOixn/Udn2m+6kZKB/J7cuT9DbWWhRxqixACg==} @@ -1814,6 +1855,9 @@ packages: ajv@6.12.6: resolution: {integrity: sha512-j3fVLgvTo527anyYyJOGTYJbG+vnnQYvE0m5mmkc1TK+nxAppkCLMIL0aZ4dblVCNoGShhm+kzE4ZUykBoMg4g==} + alien-signals@0.2.2: + resolution: {integrity: sha512-cZIRkbERILsBOXTQmMrxc9hgpxglstn69zm+F1ARf4aPAzdAFYd6sBq87ErO0Fj3DV94tglcyHG5kQz9nDC/8A==} + ansi-colors@4.1.3: resolution: {integrity: sha512-/6w/C21Pm1A7aZitlI5Ni/2J6FFQN8i1Cvz3kHABAAbw93v/NlvKdVOqz7CCWz/3iv/JplRSEEZ83XION15ovw==} engines: {node: '>=6'} @@ -1822,6 +1866,10 @@ packages: resolution: {integrity: sha512-gKXj5ALrKWQLsYG9jlTRmR/xKluxHV+Z9QEwNIgCfM1/uwPMCuzVVnh5mwTd+OuBZcwSIMbqssNWRm1lE51QaQ==} engines: {node: '>=8'} + ansi-escapes@7.0.0: + resolution: {integrity: sha512-GdYO7a61mR0fOlAsvC9/rIHf7L96sBc6dEWzeOu+KAea5bZyQRPIpojrVoI4AXGJS/ycu/fBTdLrUkA4ODrvjw==} + engines: {node: '>=18'} + ansi-regex@5.0.1: resolution: {integrity: sha512-quJQXlTSUGL2LH9SUXo8VwsY4soanhgo6LNSm84E1LBcE8s3O0wpdiRzyR9z/ZZJMlMWv37qOOb9pdJlMUEKFQ==} engines: {node: '>=8'} @@ -1911,6 +1959,9 @@ packages: resolution: {integrity: sha512-Ceh+7ox5qe7LJuLHoY0feh3pHuUDHAcRUeyL2VYghZwfpkNIy/+8Ocg0a3UuSoYzavmylwuLWQOf3hl0jjMMIw==} engines: {node: '>=8'} + binary-search@1.3.6: + resolution: {integrity: sha512-nbE1WxOTTrUWIfsfZ4aHGYu5DOuNkbxGokjV6Z2kxfJK3uaAb8zNK1muzOeipoLHZjInT4Br88BHpzevc681xA==} + bindings@1.5.0: resolution: {integrity: sha512-p2q/t/mhvuOj/UeLlV6566GD/guowlr0hHxClI0W9m7MWYkL1F0hLo+0Aexs9HSPCtR1SXQ0TD3MMKrXZajbiQ==} @@ -1991,6 +2042,10 @@ packages: resolution: {integrity: sha512-oKnbhFyRIXpUuez8iBMmyEa4nbj4IOQyuhc/wy9kY7/WVPcwIO9VA668Pu8RkO7+0G76SLROeyw9CpQ061i4mA==} engines: {node: '>=10'} + chalk@5.3.0: + resolution: {integrity: sha512-dLitG79d+GV1Nb/VYcCDFivJeK1hiukt9QjRNVOsUtTy1rR1YJsmpGGTZ3qJos+uw7WmWF4wUwBd9jxjocFC2w==} + engines: {node: ^12.17.0 || ^14.13 || >=16.0.0} + change-case@5.4.4: resolution: {integrity: sha512-HRQyTk2/YPEkt9TnUPbOpr64Uw3KOicFWPVBb+xiHvd6eBx/qPr9xqfBFDT8P2vWsvvz4jbEkfDe71W3VyNu2w==} @@ -2024,6 +2079,14 @@ packages: clear@0.1.0: resolution: {integrity: sha512-qMjRnoL+JDPJHeLePZJuao6+8orzHMGP04A8CdwCNsKhRbOnKRjefxONR7bwILT3MHecxKBjHkKL/tkZ8r4Uzw==} + cli-cursor@5.0.0: + resolution: {integrity: sha512-aCj4O5wKyszjMmDT4tZj93kxyydN/K5zPWSCe6/0AV/AA1pqe5ZBIw0a2ZfPQV7lL5/yb5HsUreJ6UFAF1tEQw==} + engines: {node: '>=18'} + + cli-truncate@4.0.0: + resolution: {integrity: sha512-nPdaFdQ0h/GEigbPClz11D0v/ZJEwxmeVZGeMo3Z5StPtUTkA9o1lD6QwoirYiSDzbcwn2XcjwmCp68W1IS4TA==} + engines: {node: '>=18'} + clipboardy@4.0.0: resolution: {integrity: sha512-5mOlNS0mhX0707P2I0aZ2V/cmHUEO/fL7VFLqszkhUsxt7RwnmrInf/eEQKlf5GzvYeHIjT+Ov1HRfNmymlG0w==} engines: {node: '>=18'} @@ -2060,6 +2123,10 @@ packages: resolution: {integrity: sha512-FQN4MRfuJeHf7cBbBMJFXhKSDq+2kAArBlmRBvcvFE5BB1HZKXtSFASDhdlz9zOYwxh8lDdnvmMOe/+5cdoEdg==} engines: {node: '>= 0.8'} + commander@12.1.0: + resolution: {integrity: sha512-Vw8qHK3bZM9y/P10u3Vib8o/DdkvA2OtPtZvD871QKjy74Wj1WSKFILMPRPSdUSx5RFK1arlJzEtA4PkFgnbuA==} + engines: {node: '>=18'} + commander@2.20.3: resolution: {integrity: sha512-GpVkmM8vF2vQUkj2LvZmD35JxeJOLCwJ9cUkugyk2nuhbv3+mJvpLYYt+0+USMxE+oj+ey/lJEnhZw75x/OMcQ==} @@ -2226,6 +2293,9 @@ packages: mysql2: optional: true + de-indent@1.0.2: + resolution: {integrity: sha512-e/1zu3xH5MQryN2zdVaF0OrdNLUbvWxzMbi+iNA6Bky7l1RoP8a2fIbRocyHclXt/arDrrR6lL3TqFD9pMQTsg==} + debug@2.6.9: resolution: {integrity: sha512-bC7ElrdJaJnPbAP+1EotYvqZsb3ecl5wi6Bfi6BJTUcNowp6cvspg0jXznRTKDjm/E7AdgFBVeAPVMNcKGsHMA==} peerDependencies: @@ -2352,6 +2422,9 @@ packages: electron-to-chromium@1.5.34: resolution: {integrity: sha512-/TZAiChbAflBNjCg+VvstbcwAtIL/VdMFO3NgRFIzBjpvPzWOTIbbO8kNb6RwU4bt9TP7K+3KqBKw/lOU+Y+GA==} + emoji-regex@10.4.0: + resolution: {integrity: sha512-EC+0oUMY1Rqm4O6LLrgjtYDvcVYTy7chDnM4Q7030tP4Kwj3u/pR6gP9ygnp2CJMK5Gq+9Q2oqmrFJAz01DXjw==} + emoji-regex@8.0.0: resolution: {integrity: sha512-MSjYzcWNOA0ewAHpz0MxpYFvwg6yjy1NG3xteoqz644VCo/RPgnr1/GGt+ic3iJTzQ8Eu3TdM14SawnVUmGE6A==} @@ -2374,6 +2447,10 @@ packages: resolution: {integrity: sha512-V0hjH4dGPh9Ao5p0MoRY6BVqtwCjhz6vI5LT8AJ55H+4g9/4vbHx1I54fS0XuclLhDHArPQCiMjDxjaL8fPxhw==} engines: {node: '>=0.12'} + environment@1.1.0: + resolution: {integrity: sha512-xUtoPkMggbz0MPyPiIWr1Kp4aeWJjDZ6SMvURhimjdZgsRuDplF5/s9hcgGhyXMhs+6vpnuoiZ2kFiu3FMnS8Q==} + engines: {node: '>=18'} + error-ex@1.3.2: resolution: {integrity: sha512-7dFHNmqeFSEt2ZBsCriorKnn3Z2pj+fd9kmI6QoWw4//DL+icEBfc0U7qJCisqrTsKTjw4fNFy2pW9OqStD84g==} @@ -2555,6 +2632,9 @@ packages: resolution: {integrity: sha512-i/2XbnSz/uxRCU6+NdVJgKWDTM427+MqYbkQzD321DuCQJUqOuJKIA0IM2+W2xtYHdKOmZ4dR6fExsd4SXL+WQ==} engines: {node: '>=6'} + eventemitter3@5.0.1: + resolution: {integrity: sha512-GWkBvjiSZK87ELrYOSESUYeVIc9mvLLf/nXalMOS5dYrgZq9o5OVkbZAVM06CVxYsCwH9BDZFPlQTlPA1j4ahA==} + events@3.3.0: resolution: {integrity: sha512-mQw+2fkQbALzQ7V0MY0IqdnXNOeTtP4r0lN9z7AAawCXgqea7bDii20AYrIBrFd/Hx0M2Ocz6S111CaFkUcb0Q==} engines: {node: '>=0.8.x'} @@ -2692,6 +2772,10 @@ packages: resolution: {integrity: sha512-DyFP3BM/3YHTQOCUL/w0OZHR0lpKeGrxotcHWcqNEdnltqFwXVfhEBQ94eIo34AfQpo0rGki4cyIiftY06h2Fg==} engines: {node: 6.* || 8.* || >= 10.*} + get-east-asian-width@1.3.0: + resolution: {integrity: sha512-vpeMIQKxczTD/0s2CdEWHcb0eeJe6TFjxb+J5xgX7hScxqrGuyjmv4c1D4A/gelKfyox0gJJwIHF+fLjeaM8kQ==} + engines: {node: '>=18'} + get-port-please@3.1.2: resolution: {integrity: sha512-Gxc29eLs1fbn6LQ4jSU4vXjlwyZhF5HsGuMAa7gqBP4Rw4yxxltyDUuF5MBclFzDTXO+ACchGQoeela4DSfzdQ==} @@ -2797,6 +2881,10 @@ packages: resolution: {integrity: sha512-0hJU9SCPvmMzIBdZFqNPXWa6dqh7WdH0cII9y+CyS8rG3nL48Bclra9HmKhVVUHyPWNH5Y7xDwAB7bfgSjkUMQ==} engines: {node: '>= 0.4'} + he@1.2.0: + resolution: {integrity: sha512-F/1DnUGPopORZi0ni+CvrCgHQ5FyEAHRLSApuYWMmrbSwoN2Mn/7k+Gl38gJnR7yyDZk6WLXwiGod1JOWNDKGw==} + hasBin: true + hex-rgb@5.0.0: resolution: {integrity: sha512-NQO+lgVUCtHxZ792FodgW0zflK+ozS9X9dwGp9XvvmPlH7pyxd588cn24TD3rmPm/N0AIRXF10Otah8yKqGw4w==} engines: {node: '>=12'} @@ -2898,6 +2986,9 @@ packages: iron-webcrypto@1.2.1: resolution: {integrity: sha512-feOM6FaSr6rEABp/eDfVseKyTMDt+KGpeB35SkVn9Tyn0CqvVsY3EwI0v5i8nMHyJnzCIQf7nsy3p41TPkJZhg==} + is-any-array@2.0.1: + resolution: {integrity: sha512-UtilS7hLRu++wb/WBAw9bNuP1Eg04Ivn1vERJck8zJthEvXCBEBpGR/33u/xLKWEQf95803oalHrVDptcAvFdQ==} + is-arrayish@0.2.1: resolution: {integrity: sha512-zz06S8t0ozoDXMG+ube26zeCTNXcKIPJZJi8hBrF4idCLms4CG9QtK7qBl1boi5ODzFpjswb5JPmHCbMpjaYzg==} @@ -2931,6 +3022,14 @@ packages: resolution: {integrity: sha512-zymm5+u+sCsSWyD9qNaejV3DFvhCKclKdizYaJUuHA83RLjb7nSuGnddCHGv0hk+KY7BMAlsWeK4Ueg6EV6XQg==} engines: {node: '>=8'} + is-fullwidth-code-point@4.0.0: + resolution: {integrity: sha512-O4L094N2/dZ7xqVdrXhh9r1KODPJpFms8B5sGdJLPy664AgvXsreZUyCQQNItZRDlYug4xStLjNp/sz3HvBowQ==} + engines: {node: '>=12'} + + is-fullwidth-code-point@5.0.0: + resolution: {integrity: sha512-OVa3u9kkBbw7b8Xw5F9P+D/T9X+Z4+JruYVNapTjPYZYUznQ5YfWeFkOj606XYYW8yugTfC8Pj0hYqvi4ryAhA==} + engines: {node: '>=18'} + is-glob@4.0.3: resolution: {integrity: sha512-xelSayHH36ZgE7ZWhli7pW34hNbNl8Ojv5KVmkJD4hBdD3th8Tfk9vYasLM+mXWOZhFkgZfxhLSnrwRr4elSSg==} engines: {node: '>=0.10.0'} @@ -3101,10 +3200,19 @@ packages: lines-and-columns@1.2.4: resolution: {integrity: sha512-7ylylesZQ/PV29jhEDl3Ufjo6ZX7gCqJr5F7PKrqc93v7fzSymt1BpwEU8nAUXs8qzzvqhbjhK5QZg6Mt/HkBg==} + lint-staged@15.2.10: + resolution: {integrity: sha512-5dY5t743e1byO19P9I4b3x8HJwalIznL5E1FWYnU6OWw33KxNBSLAc6Cy7F2PsFEO8FKnLwjwm5hx7aMF0jzZg==} + engines: {node: '>=18.12.0'} + hasBin: true + listhen@1.9.0: resolution: {integrity: sha512-I8oW2+QL5KJo8zXNWX046M134WchxsXC7SawLPvRQpogCbkyQIaFxPE89A2HiwR7vAK2Dm2ERBAmyjTYGYEpBg==} hasBin: true + listr2@8.2.5: + resolution: {integrity: sha512-iyAZCeyD+c1gPyE9qpFu8af0Y+MRtmKOncdGoA2S5EY8iFq99dmmvkNnHiWo+pj0s7yH7l3KPIgee77tKpXPWQ==} + engines: {node: '>=18.0.0'} + load-tsconfig@0.2.5: resolution: {integrity: sha512-IXO6OCs9yg8tMKzfPZ1YmheJbZCiEsnBdcB03l0OcfK9prKnJb96siuHCr5Fl37/yo9DnKU+TLpxzTUspw9shg==} engines: {node: ^12.20.0 || ^14.13.1 || >=16.0.0} @@ -3150,6 +3258,10 @@ packages: lodash@4.17.21: resolution: {integrity: sha512-v2kDEe57lecTulaDIuNTPy3Ry4gLGJ6Z1O3vE1krgXZNrsQ+LFTGHVxVjcXPs17LhbZVGedAJv8XZ1tvj5FvSg==} + log-update@6.1.0: + resolution: {integrity: sha512-9ie8ItPR6tjY5uYJh8K/Zrv/RMZ5VOlOWvtZdEHYSTFKZfIBPQa9tOAEeAWhd+AnIneLJ22w5fjOYtoutpWq5w==} + engines: {node: '>=18'} + lru-cache@10.4.3: resolution: {integrity: sha512-JNAzZcXrCt42VGLuYz0zfAzDfAvJWW6AfYlDBQyDV5DClI2m5sAmK+OIO7s59XfsRsWHp02jAJrRadPRGTt6SQ==} @@ -3220,6 +3332,10 @@ packages: resolution: {integrity: sha512-vqiC06CuhBTUdZH+RYl8sFrL096vA45Ok5ISO6sE/Mr1jRbGH4Csnhi8f3wKVl7x8mO4Au7Ir9D3Oyv1VYMFJw==} engines: {node: '>=12'} + mimic-function@5.0.1: + resolution: {integrity: sha512-VP79XUPxV2CigYP3jWwAUFSku2aKqBH7uTAapFWCBqutsbmDo96KY5o8uh6U+/YSIn5OxJnXp73beVkpqMIGhA==} + engines: {node: '>=18'} + min-indent@1.0.1: resolution: {integrity: sha512-I9jwMn07Sy/IwOj3zVkVik2JTvgpaykDZEigL6Rx6N9LbMywwUSMtxET+7lVoDLLd3O3IXwJwvuuns8UB/HeAg==} engines: {node: '>=4'} @@ -3264,6 +3380,45 @@ packages: engines: {node: '>=10'} hasBin: true + ml-array-max@1.2.4: + resolution: {integrity: sha512-BlEeg80jI0tW6WaPyGxf5Sa4sqvcyY6lbSn5Vcv44lp1I2GR6AWojfUvLnGTNsIXrZ8uqWmo8VcG1WpkI2ONMQ==} + + ml-array-mean@1.1.6: + resolution: {integrity: sha512-MIdf7Zc8HznwIisyiJGRH9tRigg3Yf4FldW8DxKxpCCv/g5CafTw0RRu51nojVEOXuCQC7DRVVu5c7XXO/5joQ==} + + ml-array-min@1.2.3: + resolution: {integrity: sha512-VcZ5f3VZ1iihtrGvgfh/q0XlMobG6GQ8FsNyQXD3T+IlstDv85g8kfV0xUG1QPRO/t21aukaJowDzMTc7j5V6Q==} + + ml-array-rescale@1.3.7: + resolution: {integrity: sha512-48NGChTouvEo9KBctDfHC3udWnQKNKEWN0ziELvY3KG25GR5cA8K8wNVzracsqSW1QEkAXjTNx+ycgAv06/1mQ==} + + ml-array-sum@1.1.6: + resolution: {integrity: sha512-29mAh2GwH7ZmiRnup4UyibQZB9+ZLyMShvt4cH4eTK+cL2oEMIZFnSyB3SS8MlsTh6q/w/yh48KmqLxmovN4Dw==} + + ml-distance-euclidean@2.0.0: + resolution: {integrity: sha512-yC9/2o8QF0A3m/0IXqCTXCzz2pNEzvmcE/9HFKOZGnTjatvBbsn4lWYJkxENkA4Ug2fnYl7PXQxnPi21sgMy/Q==} + + ml-distance@4.0.1: + resolution: {integrity: sha512-feZ5ziXs01zhyFUUUeZV5hwc0f5JW0Sh0ckU1koZe/wdVkJdGxcP06KNQuF0WBTj8FttQUzcvQcpcrOp/XrlEw==} + + ml-kmeans@6.0.0: + resolution: {integrity: sha512-aziEZqeHxczaDvo1qkfCrC7XNVAPevs6PigAzy7dp9TzeQI7oGan6NfCgADwL/FAlA/wWi+1DkV8da6pXfuuPg==} + + ml-matrix@6.12.0: + resolution: {integrity: sha512-AGfR+pWaC0GmzjUnB6BfwhndPEUGz0i7QUYdqNuw1zhTov/vSRJ9pP2hs6BoGpaSbtXgrKjZz2zjD1M0xuur6A==} + + ml-nearest-vector@2.0.1: + resolution: {integrity: sha512-gMPwNm3eed59ewJYiCK/+wElWBfNoD6JizH965ePiQgCo0pvQL63w4YdZhLs5eUV0iWcq6brVMUBL6iMySHnqg==} + + ml-random@0.5.0: + resolution: {integrity: sha512-zLJBmNb34LOz+vN6BD8l3aYm/VWYWbmAunrLMPs4dHf4gTl8BWlhil72j56HubPg86zrXioIs4qoHq7Topy6tw==} + + ml-tree-similarity@1.0.0: + resolution: {integrity: sha512-XJUyYqjSuUQkNQHMscr6tcjldsOoAekxADTplt40QKfwW6nd++1wHWV9AArl0Zvw/TIHgNaZZNvr8QGvE8wLRg==} + + ml-xsadd@2.0.0: + resolution: {integrity: sha512-VoAYUqmPRmzKbbqRejjqceGFp3VF81Qe8XXFGU0UXLxB7Mf4GGvyGq5Qn3k4AiQgDEV6WzobqlPOd+j0+m6IrA==} + mlly@1.7.3: resolution: {integrity: sha512-xUsx5n/mN0uQf4V548PKQ+YShA4/IW0KI1dZhrNrPCLG+xizETbHTkOa1f8/xut9JRPp8kQuMnz0oqwkTiLo/A==} @@ -3281,6 +3436,9 @@ packages: ms@2.1.3: resolution: {integrity: sha512-6FlzubTLZG3J2a/NVCAleEhjzq5oxgHyaCU9yYXvcLsvoVaHJq/s5xXI6/XXP6tz7R9xAOtHnSO/tXtF3WRTlA==} + muggle-string@0.4.1: + resolution: {integrity: sha512-VNTrAak/KhO2i8dqqnqnAHOa3cYBwXEZe9h+D5h/1ZqFSTEFHdM65lR7RoIqq3tBBYavsOXV84NoHXZ0AkPyqQ==} + mustache@4.2.0: resolution: {integrity: sha512-71ippSywq5Yb7/tVYyGbkBggbU8H3u5Rz56fH60jGFgr8uHwxs+aSKeqmluIVzM0m0kB7xQjKS6qPfd0b2ZoqQ==} hasBin: true @@ -3378,11 +3536,20 @@ packages: nth-check@2.1.1: resolution: {integrity: sha512-lqjrjmaOoAnWfMmBPL+XNnynZh2+swxiX3WUE0s4yEHI6m+AwrK2UZOimIRl3X/4QctVqS8AiZjFqyOGrMXb/w==} + num-sort@2.1.0: + resolution: {integrity: sha512-1MQz1Ed8z2yckoBeSfkQHHO9K1yDRxxtotKSJ9yvcTUUxSvfvzEq5GwBrjjHEpMlq/k5gvXdmJ1SbYxWtpNoVg==} + engines: {node: '>=8'} + nuxi@3.16.0: resolution: {integrity: sha512-t9m4zTq44R0/icuzQXJHEyPRM3YbgTPMpytyb6YW2LOL/3mwZ3Bmte1FIlCoigzDvxBJRbcchZGc689+Syyu8w==} engines: {node: ^16.10.0 || >=18.0.0} hasBin: true + nuxt-time@1.0.3: + resolution: {integrity: sha512-aD5Yv18IIKX08ED9B+Hd2rSDewcV40qNxUursdtJFaKFhLLZWPQF8TR2d/P523erPlqht2OvxSN3iyGhUJJy/g==} + peerDependencies: + nuxt: '>=3.12.0' + nuxt@3.14.1592: resolution: {integrity: sha512-roWAQH4Mb6WY72cNos+YVw0DgTCNAhNygiAMCedM7hbX6ESTR2n3VH7tU0yIWDPe/hfFdii4M4wWTTNHOtS44g==} engines: {node: ^14.18.0 || >=16.10.0} @@ -3422,6 +3589,10 @@ packages: resolution: {integrity: sha512-1FlR+gjXK7X+AsAHso35MnyN5KqGwJRi/31ft6x0M194ht7S+rWAvd7PHss9xSKMzE0asv1pyIHaJYq+BbacAQ==} engines: {node: '>=12'} + onetime@7.0.0: + resolution: {integrity: sha512-VXJjc87FScF88uafS3JllDgvAm+c/Slfz06lorj2uAY34rlUu0Nt+v8wreiImcrgAjjIHp1rXpTDlLOGw29WwQ==} + engines: {node: '>=18'} + open@10.1.0: resolution: {integrity: sha512-mnkeQ1qP5Ue2wd+aivTD3NHd/lZ96Lu0jgf0pwktLPtx6cTZiH7tyeGRRHs0zX0rbrahXPnXlUnbeXyaBBuIaw==} engines: {node: '>=18'} @@ -3513,6 +3684,9 @@ packages: resolution: {integrity: sha512-CiyeOxFT/JZyN5m0z9PfXw4SCBJ6Sygz1Dpl0wqjlhDEGGBP1GnsUVEL0p63hoG1fcj3fHynXi9NYO4nWOL+qQ==} engines: {node: '>= 0.8'} + path-browserify@1.0.1: + resolution: {integrity: sha512-b7uo2UCUOYZcnF/3ID0lulOJi/bafxa1xPe7ZPsammBSpjSWQkjNxlt635YGS2MiR9GjvuXCtz2emr3jbsz98g==} + path-exists@4.0.0: resolution: {integrity: sha512-ak9Qy5Q7jYb2Wwcey5Fpvg2KoAc/ZIhLSLOSBmRmygPsGwkVVt0fZa0qrtMz+m6tJTAHfZQ8FnmB4MG4LWy7/w==} engines: {node: '>=8'} @@ -3564,6 +3738,11 @@ packages: resolution: {integrity: sha512-M7BAV6Rlcy5u+m6oPhAPFgJTzAioX/6B0DxyvDlo9l8+T3nLKbrczg2WLUyzd45L8RqfUMyGPzekbMvX2Ldkwg==} engines: {node: '>=12'} + pidtree@0.6.0: + resolution: {integrity: sha512-eG2dWTVw5bzqGRztnHExczNxt5VGsE6OwTeCG3fdUf9KBsZzO3R5OIIIzWR+iZA0NtZ+RDVdaoE2dK1cn6jH4g==} + engines: {node: '>=0.10'} + hasBin: true + pkg-types@1.2.1: resolution: {integrity: sha512-sQoqa8alT3nHjGuTjuKgOnvjo4cljkufdtLMnO2LBP/wRwuDlo1tkaEdMxCRhyGRPacv/ztlZgDPm2b7FAmEvw==} @@ -3869,6 +4048,10 @@ packages: resolution: {integrity: sha512-oKWePCxqpd6FlLvGV1VU0x7bkPmmCNolxzjMf4NczoDnQcIWrAF+cPtZn5i6n+RfD2d9i0tzpKnG6Yk168yIyw==} hasBin: true + restore-cursor@5.1.0: + resolution: {integrity: sha512-oMA2dcrw6u0YfxJQXm342bFKX/E4sG9rbTzO9ptUcR/e8A33cHuvStiYOwH7fszkZlZ1z/ta9AAoPk2F4qIOHA==} + engines: {node: '>=18'} + reusify@1.0.4: resolution: {integrity: sha512-U9nH88a3fc/ekCF1l0/UP1IosiuIjyTh7hBvXVMHYgVcfGvt897Xguj2UOLDeI5BG2m7/uwyaLVT6fbtCwTyzw==} engines: {iojs: '>=1.0.0', node: '>=0.10.0'} @@ -3985,6 +4168,10 @@ packages: resolution: {integrity: sha512-bzyZ1e88w9O1iNJbKnOlvYTrWPDl46O1bG0D3XInv+9tkPrxrN8jUUTiFlDkkmKWgn1M6CfIA13SuGqOa9Korw==} engines: {node: '>=14'} + simple-git-hooks@2.11.1: + resolution: {integrity: sha512-tgqwPUMDcNDhuf1Xf6KTUsyeqGdgKMhzaH4PAZZuzguOgTl5uuyeYe/8mWgAr6IBxB5V06uqEf6Dy37gIWDtDg==} + hasBin: true + simple-git@3.27.0: resolution: {integrity: sha512-ivHoFS9Yi9GY49ogc6/YAi3Fl9ROnF4VyubNylgCkA+RVqLaKWnDSzXOVzya8csELIaWaYNutsEuAhZrtOjozA==} @@ -4002,6 +4189,14 @@ packages: slashes@3.0.12: resolution: {integrity: sha512-Q9VME8WyGkc7pJf6QEkj3wE+2CnvZMI+XJhwdTPR8Z/kWQRXi7boAWLDibRPyHRTUTPx5FaU7MsyrjI3yLB4HA==} + slice-ansi@5.0.0: + resolution: {integrity: sha512-FC+lgizVPfie0kkhqUScwRu1O/lF6NOgJmlCgK+/LYxDCTk8sGelYaHDhFcDN+Sn3Cv+3VSa4Byeo+IMCzpMgQ==} + engines: {node: '>=12'} + + slice-ansi@7.1.0: + resolution: {integrity: sha512-bSiSngZ/jWeX93BqeIAbImyTbEihizcwNjFoRUIY/T1wWQsfsm2Vw1agPKylXvQTU7iASGdHhyqRlqQzfz+Htg==} + engines: {node: '>=18'} + smob@1.5.0: resolution: {integrity: sha512-g6T+p7QO8npa+/hNx9ohv1E5pVCmWrVCUzUXJyLdMmftX6ER0oiWY/w9knEonLpnOp6b6FenKnMfR8gqwWdwig==} @@ -4066,6 +4261,10 @@ packages: streamx@2.20.1: resolution: {integrity: sha512-uTa0mU6WUC65iUvzKH4X9hEdvSW7rbPxPtwfWiLMSj3qTdQbAiUboZTxauKfpFuGIGa1C2BYijZ7wgdUXICJhA==} + string-argv@0.3.2: + resolution: {integrity: sha512-aqD2Q0144Z+/RqG52NeHEkZauTAUWJO8c6yTftGJKO3Tja5tUgIfmIl6kExvhtxSDP7fXB6DvzkfMpCd/F3G+Q==} + engines: {node: '>=0.6.19'} + string-width@4.2.3: resolution: {integrity: sha512-wKyQRQpjJ0sIp62ErSZdGsjMJWsap5oRNihHhu6G7JVO/9jIB6UyevL+tXuOqrng8j/cxKTWyWUwvSTriiZz/g==} engines: {node: '>=8'} @@ -4074,6 +4273,10 @@ packages: resolution: {integrity: sha512-HnLOCR3vjcY8beoNLtcjZ5/nxn2afmME6lhrDrebokqMap+XbeW8n9TXpPDOqdGK5qcI3oT0GKTW6wC7EMiVqA==} engines: {node: '>=12'} + string-width@7.2.0: + resolution: {integrity: sha512-tsaTIkKW9b4N+AEj+SVA+WhJzV7/zMhcSu78mLKWSk7cXMOSHsBKFWUs0fWwq8QyK3MgJBQRX6Gbi4kYbdvGkQ==} + engines: {node: '>=18'} + string_decoder@1.1.1: resolution: {integrity: sha512-n/ShnvDi6FHbbVfviro+WojiFzv+s8MPMHBczVePfUpDJLwoLT0ht1l4YwBCbi8pJAveEEdnkHyPyTP/mzRfwg==} @@ -4246,8 +4449,8 @@ packages: resolution: {integrity: sha512-G6zXWS1dLj6eagy6sVhOMQiLtJdxQBHIA9Z6HFUNLOlr6MFOgzV8wvmidtPONfPtEUv0uZsy77XJNzTAfwPDaA==} engines: {node: '>=16'} - typescript@5.7.2: - resolution: {integrity: sha512-i5t66RHxDvVN40HfDd1PsEThGNnlMCMT3jMUuoh9/0TaqWevNontacunWyN02LA9/fIbEWlcHZcgTKb9QoaLfg==} + typescript@5.6.3: + resolution: {integrity: sha512-hjcS1mhfuyi4WW8IWtjP7brDrG2cuDZukyrYrSauoXGNgx0S7zceP07adYkJycEr56BOUTNPzbInooiN3fn1qw==} engines: {node: '>=14.17'} hasBin: true @@ -4538,6 +4741,12 @@ packages: peerDependencies: vue: ^3.2.0 + vue-tsc@2.1.10: + resolution: {integrity: sha512-RBNSfaaRHcN5uqVqJSZh++Gy/YUzryuv9u1aFWhsammDJXNtUiJMNoJ747lZcQ68wUQFx6E73y4FY3D8E7FGMA==} + hasBin: true + peerDependencies: + typescript: '>=5.0.0' + vue@3.5.13: resolution: {integrity: sha512-wmeiSMxkZCSc+PM2w2VRsOYAZC8GdipNFRTsLSfodVqI9mbejKeXEGr8SckuLnrQPGe3oJN5c3K0vpoU9q/wCQ==} peerDependencies: @@ -4617,6 +4826,10 @@ packages: resolution: {integrity: sha512-si7QWI6zUMq56bESFvagtmzMdGOtoxfR+Sez11Mobfc7tm+VkUckk9bW2UeffTGVUbOksxmSw0AA2gs8g71NCQ==} engines: {node: '>=12'} + wrap-ansi@9.0.0: + resolution: {integrity: sha512-G8ura3S+3Z2G+mkgNRq8dqaFZAuxfsxpBB8OCTGRTCtp+l/v9nbFNmCUP1BZMts3G1142MsZfn6eeUKrr4PD1Q==} + engines: {node: '>=18'} + wrappy@1.0.2: resolution: {integrity: sha512-l4Sp/DRseor9wL6EvV2+TuQn63dMkPjZ/sp9XkghTEbV9KlPS1xUsZ3u7/IQO4wxtcFB4bgpQPRcR3QCvezPcQ==} @@ -5341,10 +5554,10 @@ snapshots: transitivePeerDependencies: - supports-color - '@iconify/vue@4.2.0-dev.2(vue@3.5.13(typescript@5.7.2))': + '@iconify/vue@4.2.0-dev.2(vue@3.5.13(typescript@5.6.3))': dependencies: '@iconify/types': 2.0.0 - vue: 3.5.13(typescript@5.7.2) + vue: 3.5.13(typescript@5.6.3) '@ioredis/commands@1.2.0': {} @@ -5470,13 +5683,13 @@ snapshots: rc9: 2.1.2 semver: 7.6.3 - '@nuxt/devtools@1.6.1(rollup@4.28.0)(vite@5.4.11(@types/node@22.7.5)(terser@5.34.1))(vue@3.5.13(typescript@5.7.2))': + '@nuxt/devtools@1.6.1(rollup@4.28.0)(vite@5.4.11(@types/node@22.7.5)(terser@5.34.1))(vue@3.5.13(typescript@5.6.3))': dependencies: '@antfu/utils': 0.7.10 '@nuxt/devtools-kit': 1.6.1(magicast@0.3.5)(rollup@4.28.0)(vite@5.4.11(@types/node@22.7.5)(terser@5.34.1)) '@nuxt/devtools-wizard': 1.6.1 '@nuxt/kit': 3.14.1592(magicast@0.3.5)(rollup@4.28.0) - '@vue/devtools-core': 7.6.4(vite@5.4.11(@types/node@22.7.5)(terser@5.34.1))(vue@3.5.13(typescript@5.7.2)) + '@vue/devtools-core': 7.6.4(vite@5.4.11(@types/node@22.7.5)(terser@5.34.1))(vue@3.5.13(typescript@5.6.3)) '@vue/devtools-kit': 7.6.4 birpc: 0.2.19 consola: 3.2.3 @@ -5517,20 +5730,20 @@ snapshots: - utf-8-validate - vue - '@nuxt/eslint-config@0.7.2(@vue/compiler-sfc@3.5.13)(eslint@9.12.0(jiti@2.4.1))(typescript@5.7.2)': + '@nuxt/eslint-config@0.7.2(@vue/compiler-sfc@3.5.13)(eslint@9.12.0(jiti@2.4.1))(typescript@5.6.3)': dependencies: '@antfu/install-pkg': 0.4.1 '@clack/prompts': 0.8.2 '@eslint/js': 9.16.0 - '@nuxt/eslint-plugin': 0.7.2(eslint@9.12.0(jiti@2.4.1))(typescript@5.7.2) - '@stylistic/eslint-plugin': 2.11.0(eslint@9.12.0(jiti@2.4.1))(typescript@5.7.2) - '@typescript-eslint/eslint-plugin': 8.17.0(@typescript-eslint/parser@8.16.0(eslint@9.12.0(jiti@2.4.1))(typescript@5.7.2))(eslint@9.12.0(jiti@2.4.1))(typescript@5.7.2) - '@typescript-eslint/parser': 8.16.0(eslint@9.12.0(jiti@2.4.1))(typescript@5.7.2) + '@nuxt/eslint-plugin': 0.7.2(eslint@9.12.0(jiti@2.4.1))(typescript@5.6.3) + '@stylistic/eslint-plugin': 2.11.0(eslint@9.12.0(jiti@2.4.1))(typescript@5.6.3) + '@typescript-eslint/eslint-plugin': 8.17.0(@typescript-eslint/parser@8.16.0(eslint@9.12.0(jiti@2.4.1))(typescript@5.6.3))(eslint@9.12.0(jiti@2.4.1))(typescript@5.6.3) + '@typescript-eslint/parser': 8.16.0(eslint@9.12.0(jiti@2.4.1))(typescript@5.6.3) eslint: 9.12.0(jiti@2.4.1) eslint-config-flat-gitignore: 0.2.0(eslint@9.12.0(jiti@2.4.1)) eslint-flat-config-utils: 0.4.0 eslint-merge-processors: 0.1.0(eslint@9.12.0(jiti@2.4.1)) - eslint-plugin-import-x: 4.4.3(eslint@9.12.0(jiti@2.4.1))(typescript@5.7.2) + eslint-plugin-import-x: 4.4.3(eslint@9.12.0(jiti@2.4.1))(typescript@5.6.3) eslint-plugin-jsdoc: 50.6.0(eslint@9.12.0(jiti@2.4.1)) eslint-plugin-regexp: 2.7.0(eslint@9.12.0(jiti@2.4.1)) eslint-plugin-unicorn: 56.0.1(eslint@9.12.0(jiti@2.4.1)) @@ -5545,21 +5758,21 @@ snapshots: - supports-color - typescript - '@nuxt/eslint-plugin@0.7.2(eslint@9.12.0(jiti@2.4.1))(typescript@5.7.2)': + '@nuxt/eslint-plugin@0.7.2(eslint@9.12.0(jiti@2.4.1))(typescript@5.6.3)': dependencies: '@typescript-eslint/types': 8.17.0 - '@typescript-eslint/utils': 8.17.0(eslint@9.12.0(jiti@2.4.1))(typescript@5.7.2) + '@typescript-eslint/utils': 8.17.0(eslint@9.12.0(jiti@2.4.1))(typescript@5.6.3) eslint: 9.12.0(jiti@2.4.1) transitivePeerDependencies: - supports-color - typescript - '@nuxt/eslint@0.7.2(@vue/compiler-sfc@3.5.13)(eslint@9.12.0(jiti@2.4.1))(magicast@0.3.5)(rollup@4.28.0)(typescript@5.7.2)(vite@5.4.11(@types/node@22.7.5)(terser@5.34.1))': + '@nuxt/eslint@0.7.2(@vue/compiler-sfc@3.5.13)(eslint@9.12.0(jiti@2.4.1))(magicast@0.3.5)(rollup@4.28.0)(typescript@5.6.3)(vite@5.4.11(@types/node@22.7.5)(terser@5.34.1))': dependencies: '@eslint/config-inspector': 0.5.6(eslint@9.12.0(jiti@2.4.1)) '@nuxt/devtools-kit': 1.6.1(magicast@0.3.5)(rollup@4.28.0)(vite@5.4.11(@types/node@22.7.5)(terser@5.34.1)) - '@nuxt/eslint-config': 0.7.2(@vue/compiler-sfc@3.5.13)(eslint@9.12.0(jiti@2.4.1))(typescript@5.7.2) - '@nuxt/eslint-plugin': 0.7.2(eslint@9.12.0(jiti@2.4.1))(typescript@5.7.2) + '@nuxt/eslint-config': 0.7.2(@vue/compiler-sfc@3.5.13)(eslint@9.12.0(jiti@2.4.1))(typescript@5.6.3) + '@nuxt/eslint-plugin': 0.7.2(eslint@9.12.0(jiti@2.4.1))(typescript@5.6.3) '@nuxt/kit': 3.14.1592(magicast@0.3.5)(rollup@4.28.0) chokidar: 4.0.1 eslint: 9.12.0(jiti@2.4.1) @@ -5581,12 +5794,12 @@ snapshots: - utf-8-validate - vite - '@nuxt/icon@1.9.1(magicast@0.3.5)(rollup@4.28.0)(vite@5.4.11(@types/node@22.7.5)(terser@5.34.1))(vue@3.5.13(typescript@5.7.2))': + '@nuxt/icon@1.9.1(magicast@0.3.5)(rollup@4.28.0)(vite@5.4.11(@types/node@22.7.5)(terser@5.34.1))(vue@3.5.13(typescript@5.6.3))': dependencies: '@iconify/collections': 1.0.489 '@iconify/types': 2.0.0 '@iconify/utils': 2.1.33 - '@iconify/vue': 4.2.0-dev.2(vue@3.5.13(typescript@5.7.2)) + '@iconify/vue': 4.2.0-dev.2(vue@3.5.13(typescript@5.6.3)) '@nuxt/devtools-kit': 1.6.1(magicast@0.3.5)(rollup@4.28.0)(vite@5.4.11(@types/node@22.7.5)(terser@5.34.1)) '@nuxt/kit': 3.14.1592(magicast@0.3.5)(rollup@4.28.0) consola: 3.2.3 @@ -5675,12 +5888,12 @@ snapshots: - rollup - supports-color - '@nuxt/vite-builder@3.14.1592(@types/node@22.7.5)(eslint@9.12.0(jiti@2.4.1))(magicast@0.3.5)(optionator@0.9.4)(rollup@4.28.0)(terser@5.34.1)(typescript@5.7.2)(vue@3.5.13(typescript@5.7.2))': + '@nuxt/vite-builder@3.14.1592(@types/node@22.7.5)(eslint@9.12.0(jiti@2.4.1))(magicast@0.3.5)(optionator@0.9.4)(rollup@4.28.0)(terser@5.34.1)(typescript@5.6.3)(vue-tsc@2.1.10(typescript@5.6.3))(vue@3.5.13(typescript@5.6.3))': dependencies: '@nuxt/kit': 3.14.1592(magicast@0.3.5)(rollup@4.28.0) '@rollup/plugin-replace': 6.0.1(rollup@4.28.0) - '@vitejs/plugin-vue': 5.2.1(vite@5.4.11(@types/node@22.7.5)(terser@5.34.1))(vue@3.5.13(typescript@5.7.2)) - '@vitejs/plugin-vue-jsx': 4.1.1(vite@5.4.11(@types/node@22.7.5)(terser@5.34.1))(vue@3.5.13(typescript@5.7.2)) + '@vitejs/plugin-vue': 5.2.1(vite@5.4.11(@types/node@22.7.5)(terser@5.34.1))(vue@3.5.13(typescript@5.6.3)) + '@vitejs/plugin-vue-jsx': 4.1.1(vite@5.4.11(@types/node@22.7.5)(terser@5.34.1))(vue@3.5.13(typescript@5.6.3)) autoprefixer: 10.4.20(postcss@8.4.49) clear: 0.1.0 consola: 3.2.3 @@ -5709,8 +5922,8 @@ snapshots: unplugin: 1.16.0 vite: 5.4.11(@types/node@22.7.5)(terser@5.34.1) vite-node: 2.1.8(@types/node@22.7.5)(terser@5.34.1) - vite-plugin-checker: 0.8.0(eslint@9.12.0(jiti@2.4.1))(optionator@0.9.4)(typescript@5.7.2)(vite@5.4.11(@types/node@22.7.5)(terser@5.34.1)) - vue: 3.5.13(typescript@5.7.2) + vite-plugin-checker: 0.8.0(eslint@9.12.0(jiti@2.4.1))(optionator@0.9.4)(typescript@5.6.3)(vite@5.4.11(@types/node@22.7.5)(terser@5.34.1))(vue-tsc@2.1.10(typescript@5.6.3)) + vue: 3.5.13(typescript@5.6.3) vue-bundle-renderer: 2.1.1 transitivePeerDependencies: - '@biomejs/biome' @@ -6048,9 +6261,9 @@ snapshots: '@sindresorhus/merge-streams@2.3.0': {} - '@stylistic/eslint-plugin@2.11.0(eslint@9.12.0(jiti@2.4.1))(typescript@5.7.2)': + '@stylistic/eslint-plugin@2.11.0(eslint@9.12.0(jiti@2.4.1))(typescript@5.6.3)': dependencies: - '@typescript-eslint/utils': 8.17.0(eslint@9.12.0(jiti@2.4.1))(typescript@5.7.2) + '@typescript-eslint/utils': 8.17.0(eslint@9.12.0(jiti@2.4.1))(typescript@5.6.3) eslint: 9.12.0(jiti@2.4.1) eslint-visitor-keys: 4.2.0 espree: 10.3.0 @@ -6091,34 +6304,34 @@ snapshots: '@types/resolve@1.20.2': {} - '@typescript-eslint/eslint-plugin@8.17.0(@typescript-eslint/parser@8.16.0(eslint@9.12.0(jiti@2.4.1))(typescript@5.7.2))(eslint@9.12.0(jiti@2.4.1))(typescript@5.7.2)': + '@typescript-eslint/eslint-plugin@8.17.0(@typescript-eslint/parser@8.16.0(eslint@9.12.0(jiti@2.4.1))(typescript@5.6.3))(eslint@9.12.0(jiti@2.4.1))(typescript@5.6.3)': dependencies: '@eslint-community/regexpp': 4.11.1 - '@typescript-eslint/parser': 8.16.0(eslint@9.12.0(jiti@2.4.1))(typescript@5.7.2) + '@typescript-eslint/parser': 8.16.0(eslint@9.12.0(jiti@2.4.1))(typescript@5.6.3) '@typescript-eslint/scope-manager': 8.17.0 - '@typescript-eslint/type-utils': 8.17.0(eslint@9.12.0(jiti@2.4.1))(typescript@5.7.2) - '@typescript-eslint/utils': 8.17.0(eslint@9.12.0(jiti@2.4.1))(typescript@5.7.2) + '@typescript-eslint/type-utils': 8.17.0(eslint@9.12.0(jiti@2.4.1))(typescript@5.6.3) + '@typescript-eslint/utils': 8.17.0(eslint@9.12.0(jiti@2.4.1))(typescript@5.6.3) '@typescript-eslint/visitor-keys': 8.17.0 eslint: 9.12.0(jiti@2.4.1) graphemer: 1.4.0 ignore: 5.3.2 natural-compare: 1.4.0 - ts-api-utils: 1.3.0(typescript@5.7.2) + ts-api-utils: 1.3.0(typescript@5.6.3) optionalDependencies: - typescript: 5.7.2 + typescript: 5.6.3 transitivePeerDependencies: - supports-color - '@typescript-eslint/parser@8.16.0(eslint@9.12.0(jiti@2.4.1))(typescript@5.7.2)': + '@typescript-eslint/parser@8.16.0(eslint@9.12.0(jiti@2.4.1))(typescript@5.6.3)': dependencies: '@typescript-eslint/scope-manager': 8.16.0 '@typescript-eslint/types': 8.16.0 - '@typescript-eslint/typescript-estree': 8.16.0(typescript@5.7.2) + '@typescript-eslint/typescript-estree': 8.16.0(typescript@5.6.3) '@typescript-eslint/visitor-keys': 8.16.0 debug: 4.3.7(supports-color@9.4.0) eslint: 9.12.0(jiti@2.4.1) optionalDependencies: - typescript: 5.7.2 + typescript: 5.6.3 transitivePeerDependencies: - supports-color @@ -6132,15 +6345,15 @@ snapshots: '@typescript-eslint/types': 8.17.0 '@typescript-eslint/visitor-keys': 8.17.0 - '@typescript-eslint/type-utils@8.17.0(eslint@9.12.0(jiti@2.4.1))(typescript@5.7.2)': + '@typescript-eslint/type-utils@8.17.0(eslint@9.12.0(jiti@2.4.1))(typescript@5.6.3)': dependencies: - '@typescript-eslint/typescript-estree': 8.17.0(typescript@5.7.2) - '@typescript-eslint/utils': 8.17.0(eslint@9.12.0(jiti@2.4.1))(typescript@5.7.2) + '@typescript-eslint/typescript-estree': 8.17.0(typescript@5.6.3) + '@typescript-eslint/utils': 8.17.0(eslint@9.12.0(jiti@2.4.1))(typescript@5.6.3) debug: 4.3.7(supports-color@9.4.0) eslint: 9.12.0(jiti@2.4.1) - ts-api-utils: 1.3.0(typescript@5.7.2) + ts-api-utils: 1.3.0(typescript@5.6.3) optionalDependencies: - typescript: 5.7.2 + typescript: 5.6.3 transitivePeerDependencies: - supports-color @@ -6148,7 +6361,7 @@ snapshots: '@typescript-eslint/types@8.17.0': {} - '@typescript-eslint/typescript-estree@8.16.0(typescript@5.7.2)': + '@typescript-eslint/typescript-estree@8.16.0(typescript@5.6.3)': dependencies: '@typescript-eslint/types': 8.16.0 '@typescript-eslint/visitor-keys': 8.16.0 @@ -6157,13 +6370,13 @@ snapshots: is-glob: 4.0.3 minimatch: 9.0.5 semver: 7.6.3 - ts-api-utils: 1.3.0(typescript@5.7.2) + ts-api-utils: 1.3.0(typescript@5.6.3) optionalDependencies: - typescript: 5.7.2 + typescript: 5.6.3 transitivePeerDependencies: - supports-color - '@typescript-eslint/typescript-estree@8.17.0(typescript@5.7.2)': + '@typescript-eslint/typescript-estree@8.17.0(typescript@5.6.3)': dependencies: '@typescript-eslint/types': 8.17.0 '@typescript-eslint/visitor-keys': 8.17.0 @@ -6172,21 +6385,21 @@ snapshots: is-glob: 4.0.3 minimatch: 9.0.5 semver: 7.6.3 - ts-api-utils: 1.3.0(typescript@5.7.2) + ts-api-utils: 1.3.0(typescript@5.6.3) optionalDependencies: - typescript: 5.7.2 + typescript: 5.6.3 transitivePeerDependencies: - supports-color - '@typescript-eslint/utils@8.17.0(eslint@9.12.0(jiti@2.4.1))(typescript@5.7.2)': + '@typescript-eslint/utils@8.17.0(eslint@9.12.0(jiti@2.4.1))(typescript@5.6.3)': dependencies: '@eslint-community/eslint-utils': 4.4.0(eslint@9.12.0(jiti@2.4.1)) '@typescript-eslint/scope-manager': 8.17.0 '@typescript-eslint/types': 8.17.0 - '@typescript-eslint/typescript-estree': 8.17.0(typescript@5.7.2) + '@typescript-eslint/typescript-estree': 8.17.0(typescript@5.6.3) eslint: 9.12.0(jiti@2.4.1) optionalDependencies: - typescript: 5.7.2 + typescript: 5.6.3 transitivePeerDependencies: - supports-color @@ -6219,20 +6432,20 @@ snapshots: '@unhead/schema': 1.11.13 '@unhead/shared': 1.11.13 - '@unhead/vue@1.11.13(vue@3.5.13(typescript@5.7.2))': + '@unhead/vue@1.11.13(vue@3.5.13(typescript@5.6.3))': dependencies: '@unhead/schema': 1.11.13 '@unhead/shared': 1.11.13 defu: 6.1.4 hookable: 5.5.3 unhead: 1.11.13 - vue: 3.5.13(typescript@5.7.2) + vue: 3.5.13(typescript@5.6.3) - '@unocss/astro@0.65.1(rollup@4.28.0)(vite@5.4.11(@types/node@22.7.5)(terser@5.34.1))(vue@3.5.13(typescript@5.7.2))': + '@unocss/astro@0.65.1(rollup@4.28.0)(vite@5.4.11(@types/node@22.7.5)(terser@5.34.1))(vue@3.5.13(typescript@5.6.3))': dependencies: '@unocss/core': 0.65.1 '@unocss/reset': 0.65.1 - '@unocss/vite': 0.65.1(rollup@4.28.0)(vite@5.4.11(@types/node@22.7.5)(terser@5.34.1))(vue@3.5.13(typescript@5.7.2)) + '@unocss/vite': 0.65.1(rollup@4.28.0)(vite@5.4.11(@types/node@22.7.5)(terser@5.34.1))(vue@3.5.13(typescript@5.6.3)) optionalDependencies: vite: 5.4.11(@types/node@22.7.5)(terser@5.34.1) transitivePeerDependencies: @@ -6272,17 +6485,17 @@ snapshots: dependencies: '@unocss/core': 0.65.1 - '@unocss/inspector@0.65.1(vue@3.5.13(typescript@5.7.2))': + '@unocss/inspector@0.65.1(vue@3.5.13(typescript@5.6.3))': dependencies: '@unocss/core': 0.65.1 '@unocss/rule-utils': 0.65.1 gzip-size: 6.0.0 sirv: 2.0.4 - vue-flow-layout: 0.1.1(vue@3.5.13(typescript@5.7.2)) + vue-flow-layout: 0.1.1(vue@3.5.13(typescript@5.6.3)) transitivePeerDependencies: - vue - '@unocss/nuxt@0.65.1(magicast@0.3.5)(postcss@8.4.49)(rollup@4.28.0)(vite@5.4.11(@types/node@22.7.5)(terser@5.34.1))(vue@3.5.13(typescript@5.7.2))(webpack@5.95.0(esbuild@0.23.1))': + '@unocss/nuxt@0.65.1(magicast@0.3.5)(postcss@8.4.49)(rollup@4.28.0)(vite@5.4.11(@types/node@22.7.5)(terser@5.34.1))(vue@3.5.13(typescript@5.6.3))(webpack@5.95.0(esbuild@0.23.1))': dependencies: '@nuxt/kit': 3.14.1592(magicast@0.3.5)(rollup@4.28.0) '@unocss/config': 0.65.1 @@ -6295,9 +6508,9 @@ snapshots: '@unocss/preset-web-fonts': 0.65.1 '@unocss/preset-wind': 0.65.1 '@unocss/reset': 0.65.1 - '@unocss/vite': 0.65.1(rollup@4.28.0)(vite@5.4.11(@types/node@22.7.5)(terser@5.34.1))(vue@3.5.13(typescript@5.7.2)) + '@unocss/vite': 0.65.1(rollup@4.28.0)(vite@5.4.11(@types/node@22.7.5)(terser@5.34.1))(vue@3.5.13(typescript@5.6.3)) '@unocss/webpack': 0.65.1(rollup@4.28.0)(webpack@5.95.0(esbuild@0.23.1)) - unocss: 0.65.1(@unocss/webpack@0.65.1(rollup@4.28.0)(webpack@5.95.0(esbuild@0.23.1)))(postcss@8.4.49)(rollup@4.28.0)(vite@5.4.11(@types/node@22.7.5)(terser@5.34.1))(vue@3.5.13(typescript@5.7.2)) + unocss: 0.65.1(@unocss/webpack@0.65.1(rollup@4.28.0)(webpack@5.95.0(esbuild@0.23.1)))(postcss@8.4.49)(rollup@4.28.0)(vite@5.4.11(@types/node@22.7.5)(terser@5.34.1))(vue@3.5.13(typescript@5.6.3)) transitivePeerDependencies: - magicast - postcss @@ -6388,13 +6601,13 @@ snapshots: dependencies: '@unocss/core': 0.65.1 - '@unocss/vite@0.65.1(rollup@4.28.0)(vite@5.4.11(@types/node@22.7.5)(terser@5.34.1))(vue@3.5.13(typescript@5.7.2))': + '@unocss/vite@0.65.1(rollup@4.28.0)(vite@5.4.11(@types/node@22.7.5)(terser@5.34.1))(vue@3.5.13(typescript@5.6.3))': dependencies: '@ampproject/remapping': 2.3.0 '@rollup/pluginutils': 5.1.3(rollup@4.28.0) '@unocss/config': 0.65.1 '@unocss/core': 0.65.1 - '@unocss/inspector': 0.65.1(vue@3.5.13(typescript@5.7.2)) + '@unocss/inspector': 0.65.1(vue@3.5.13(typescript@5.6.3)) chokidar: 3.6.0 magic-string: 0.30.14 tinyglobby: 0.2.10 @@ -6441,27 +6654,39 @@ snapshots: - rollup - supports-color - '@vitejs/plugin-vue-jsx@4.1.1(vite@5.4.11(@types/node@22.7.5)(terser@5.34.1))(vue@3.5.13(typescript@5.7.2))': + '@vitejs/plugin-vue-jsx@4.1.1(vite@5.4.11(@types/node@22.7.5)(terser@5.34.1))(vue@3.5.13(typescript@5.6.3))': dependencies: '@babel/core': 7.26.0 '@babel/plugin-transform-typescript': 7.25.9(@babel/core@7.26.0) '@vue/babel-plugin-jsx': 1.2.5(@babel/core@7.26.0) vite: 5.4.11(@types/node@22.7.5)(terser@5.34.1) - vue: 3.5.13(typescript@5.7.2) + vue: 3.5.13(typescript@5.6.3) transitivePeerDependencies: - supports-color - '@vitejs/plugin-vue@5.2.1(vite@5.4.11(@types/node@22.7.5)(terser@5.34.1))(vue@3.5.13(typescript@5.7.2))': + '@vitejs/plugin-vue@5.2.1(vite@5.4.11(@types/node@22.7.5)(terser@5.34.1))(vue@3.5.13(typescript@5.6.3))': dependencies: vite: 5.4.11(@types/node@22.7.5)(terser@5.34.1) - vue: 3.5.13(typescript@5.7.2) + vue: 3.5.13(typescript@5.6.3) + + '@volar/language-core@2.4.10': + dependencies: + '@volar/source-map': 2.4.10 + + '@volar/source-map@2.4.10': {} + + '@volar/typescript@2.4.10': + dependencies: + '@volar/language-core': 2.4.10 + path-browserify: 1.0.1 + vscode-uri: 3.0.8 '@voxpelli/config-array-find-files@1.2.1(@eslint/config-array@0.18.0)': dependencies: '@eslint/config-array': 0.18.0 '@nodelib/fs.walk': 2.0.0 - '@vue-macros/common@1.14.0(rollup@4.28.0)(vue@3.5.13(typescript@5.7.2))': + '@vue-macros/common@1.14.0(rollup@4.28.0)(vue@3.5.13(typescript@5.6.3))': dependencies: '@babel/types': 7.26.0 '@rollup/pluginutils': 5.1.3(rollup@4.28.0) @@ -6470,7 +6695,7 @@ snapshots: local-pkg: 0.5.1 magic-string-ast: 0.6.2 optionalDependencies: - vue: 3.5.13(typescript@5.7.2) + vue: 3.5.13(typescript@5.6.3) transitivePeerDependencies: - rollup @@ -6534,9 +6759,14 @@ snapshots: '@vue/compiler-dom': 3.5.13 '@vue/shared': 3.5.13 + '@vue/compiler-vue2@2.7.16': + dependencies: + de-indent: 1.0.2 + he: 1.2.0 + '@vue/devtools-api@6.6.4': {} - '@vue/devtools-core@7.6.4(vite@5.4.11(@types/node@22.7.5)(terser@5.34.1))(vue@3.5.13(typescript@5.7.2))': + '@vue/devtools-core@7.6.4(vite@5.4.11(@types/node@22.7.5)(terser@5.34.1))(vue@3.5.13(typescript@5.6.3))': dependencies: '@vue/devtools-kit': 7.6.4 '@vue/devtools-shared': 7.6.7 @@ -6544,7 +6774,7 @@ snapshots: nanoid: 3.3.7 pathe: 1.1.2 vite-hot-client: 0.2.3(vite@5.4.11(@types/node@22.7.5)(terser@5.34.1)) - vue: 3.5.13(typescript@5.7.2) + vue: 3.5.13(typescript@5.6.3) transitivePeerDependencies: - vite @@ -6562,6 +6792,19 @@ snapshots: dependencies: rfdc: 1.4.1 + '@vue/language-core@2.1.10(typescript@5.6.3)': + dependencies: + '@volar/language-core': 2.4.10 + '@vue/compiler-dom': 3.5.13 + '@vue/compiler-vue2': 2.7.16 + '@vue/shared': 3.5.13 + alien-signals: 0.2.2 + minimatch: 9.0.5 + muggle-string: 0.4.1 + path-browserify: 1.0.1 + optionalDependencies: + typescript: 5.6.3 + '@vue/reactivity@3.5.13': dependencies: '@vue/shared': 3.5.13 @@ -6578,11 +6821,11 @@ snapshots: '@vue/shared': 3.5.13 csstype: 3.1.3 - '@vue/server-renderer@3.5.13(vue@3.5.13(typescript@5.7.2))': + '@vue/server-renderer@3.5.13(vue@3.5.13(typescript@5.6.3))': dependencies: '@vue/compiler-ssr': 3.5.13 '@vue/shared': 3.5.13 - vue: 3.5.13(typescript@5.7.2) + vue: 3.5.13(typescript@5.6.3) '@vue/shared@3.5.13': {} @@ -6713,12 +6956,18 @@ snapshots: json-schema-traverse: 0.4.1 uri-js: 4.4.1 + alien-signals@0.2.2: {} + ansi-colors@4.1.3: {} ansi-escapes@4.3.2: dependencies: type-fest: 0.21.3 + ansi-escapes@7.0.0: + dependencies: + environment: 1.1.0 + ansi-regex@5.0.1: {} ansi-regex@6.1.0: {} @@ -6808,6 +7057,8 @@ snapshots: binary-extensions@2.3.0: {} + binary-search@1.3.6: {} + bindings@1.5.0: dependencies: file-uri-to-path: 1.0.0 @@ -6905,6 +7156,8 @@ snapshots: ansi-styles: 4.3.0 supports-color: 7.2.0 + chalk@5.3.0: {} + change-case@5.4.4: {} chokidar@3.6.0: @@ -6939,6 +7192,15 @@ snapshots: clear@0.1.0: {} + cli-cursor@5.0.0: + dependencies: + restore-cursor: 5.1.0 + + cli-truncate@4.0.0: + dependencies: + slice-ansi: 5.0.0 + string-width: 7.2.0 + clipboardy@4.0.0: dependencies: execa: 8.0.1 @@ -6971,6 +7233,8 @@ snapshots: dependencies: delayed-stream: 1.0.0 + commander@12.1.0: {} + commander@2.20.3: {} commander@7.2.0: {} @@ -7125,6 +7389,8 @@ snapshots: db0@0.2.1: {} + de-indent@1.0.2: {} + debug@2.6.9: dependencies: ms: 2.0.0 @@ -7212,6 +7478,8 @@ snapshots: electron-to-chromium@1.5.34: {} + emoji-regex@10.4.0: {} + emoji-regex@8.0.0: {} emoji-regex@9.2.2: {} @@ -7227,6 +7495,8 @@ snapshots: entities@4.5.0: {} + environment@1.1.0: {} + error-ex@1.3.2: dependencies: is-arrayish: 0.2.1 @@ -7375,9 +7645,9 @@ snapshots: dependencies: eslint: 9.12.0(jiti@2.4.1) - eslint-plugin-import-x@4.4.3(eslint@9.12.0(jiti@2.4.1))(typescript@5.7.2): + eslint-plugin-import-x@4.4.3(eslint@9.12.0(jiti@2.4.1))(typescript@5.6.3): dependencies: - '@typescript-eslint/utils': 8.17.0(eslint@9.12.0(jiti@2.4.1))(typescript@5.7.2) + '@typescript-eslint/utils': 8.17.0(eslint@9.12.0(jiti@2.4.1))(typescript@5.6.3) debug: 4.3.7(supports-color@9.4.0) doctrine: 3.0.0 eslint: 9.12.0(jiti@2.4.1) @@ -7564,6 +7834,8 @@ snapshots: event-target-shim@5.0.1: {} + eventemitter3@5.0.1: {} + events@3.3.0: {} execa@7.2.0: @@ -7715,6 +7987,8 @@ snapshots: get-caller-file@2.0.5: {} + get-east-asian-width@1.3.0: {} + get-port-please@3.1.2: {} get-source@2.0.12: @@ -7838,6 +8112,8 @@ snapshots: dependencies: function-bind: 1.1.2 + he@1.2.0: {} + hex-rgb@5.0.0: {} hookable@5.5.3: {} @@ -7948,6 +8224,8 @@ snapshots: iron-webcrypto@1.2.1: {} + is-any-array@2.0.1: {} + is-arrayish@0.2.1: {} is-binary-path@2.1.0: @@ -7970,6 +8248,12 @@ snapshots: is-fullwidth-code-point@3.0.0: {} + is-fullwidth-code-point@4.0.0: {} + + is-fullwidth-code-point@5.0.0: + dependencies: + get-east-asian-width: 1.3.0 + is-glob@4.0.3: dependencies: is-extglob: 2.1.1 @@ -8108,6 +8392,21 @@ snapshots: lines-and-columns@1.2.4: {} + lint-staged@15.2.10: + dependencies: + chalk: 5.3.0 + commander: 12.1.0 + debug: 4.3.7(supports-color@9.4.0) + execa: 8.0.1 + lilconfig: 3.1.2 + listr2: 8.2.5 + micromatch: 4.0.8 + pidtree: 0.6.0 + string-argv: 0.3.2 + yaml: 2.5.1 + transitivePeerDependencies: + - supports-color + listhen@1.9.0: dependencies: '@parcel/watcher': 2.4.1 @@ -8129,6 +8428,15 @@ snapshots: untun: 0.1.3 uqr: 0.1.2 + listr2@8.2.5: + dependencies: + cli-truncate: 4.0.0 + colorette: 2.0.20 + eventemitter3: 5.0.1 + log-update: 6.1.0 + rfdc: 1.4.1 + wrap-ansi: 9.0.0 + load-tsconfig@0.2.5: {} loader-runner@4.3.0: {} @@ -8164,6 +8472,14 @@ snapshots: lodash@4.17.21: {} + log-update@6.1.0: + dependencies: + ansi-escapes: 7.0.0 + cli-cursor: 5.0.0 + slice-ansi: 7.1.0 + strip-ansi: 7.1.0 + wrap-ansi: 9.0.0 + lru-cache@10.4.3: {} lru-cache@5.1.1: @@ -8221,6 +8537,8 @@ snapshots: mimic-fn@4.0.0: {} + mimic-function@5.0.1: {} + min-indent@1.0.1: {} miniflare@3.20241205.0: @@ -8271,6 +8589,63 @@ snapshots: mkdirp@1.0.4: {} + ml-array-max@1.2.4: + dependencies: + is-any-array: 2.0.1 + + ml-array-mean@1.1.6: + dependencies: + ml-array-sum: 1.1.6 + + ml-array-min@1.2.3: + dependencies: + is-any-array: 2.0.1 + + ml-array-rescale@1.3.7: + dependencies: + is-any-array: 2.0.1 + ml-array-max: 1.2.4 + ml-array-min: 1.2.3 + + ml-array-sum@1.1.6: + dependencies: + is-any-array: 2.0.1 + + ml-distance-euclidean@2.0.0: {} + + ml-distance@4.0.1: + dependencies: + ml-array-mean: 1.1.6 + ml-distance-euclidean: 2.0.0 + ml-tree-similarity: 1.0.0 + + ml-kmeans@6.0.0: + dependencies: + ml-distance-euclidean: 2.0.0 + ml-matrix: 6.12.0 + ml-nearest-vector: 2.0.1 + ml-random: 0.5.0 + + ml-matrix@6.12.0: + dependencies: + is-any-array: 2.0.1 + ml-array-rescale: 1.3.7 + + ml-nearest-vector@2.0.1: + dependencies: + ml-distance-euclidean: 2.0.0 + + ml-random@0.5.0: + dependencies: + ml-xsadd: 2.0.0 + + ml-tree-similarity@1.0.0: + dependencies: + binary-search: 1.3.6 + num-sort: 2.1.0 + + ml-xsadd@2.0.0: {} + mlly@1.7.3: dependencies: acorn: 8.14.0 @@ -8286,6 +8661,8 @@ snapshots: ms@2.1.3: {} + muggle-string@0.4.1: {} + mustache@4.2.0: {} nanoid@3.3.7: {} @@ -8304,7 +8681,7 @@ snapshots: mlly: 1.7.3 pkg-types: 1.2.1 - nitropack@2.10.4(typescript@5.7.2): + nitropack@2.10.4(typescript@5.6.3): dependencies: '@cloudflare/kv-asset-handler': 0.3.4 '@netlify/functions': 2.8.2 @@ -8353,7 +8730,7 @@ snapshots: node-fetch-native: 1.6.4 ofetch: 1.4.1 ohash: 1.1.4 - openapi-typescript: 7.4.4(typescript@5.7.2) + openapi-typescript: 7.4.4(typescript@5.6.3) pathe: 1.1.2 perfect-debounce: 1.0.0 pkg-types: 1.2.1 @@ -8446,20 +8823,31 @@ snapshots: dependencies: boolbase: 1.0.0 + num-sort@2.1.0: {} + nuxi@3.16.0: {} - nuxt@3.14.1592(@parcel/watcher@2.4.1)(@types/node@22.7.5)(eslint@9.12.0(jiti@2.4.1))(ioredis@5.4.1)(magicast@0.3.5)(optionator@0.9.4)(rollup@4.28.0)(terser@5.34.1)(typescript@5.7.2)(vite@5.4.11(@types/node@22.7.5)(terser@5.34.1)): + nuxt-time@1.0.3(magicast@0.3.5)(nuxt@3.14.1592(@parcel/watcher@2.4.1)(@types/node@22.7.5)(eslint@9.12.0(jiti@2.4.1))(ioredis@5.4.1)(magicast@0.3.5)(optionator@0.9.4)(rollup@4.28.0)(terser@5.34.1)(typescript@5.6.3)(vite@5.4.11(@types/node@22.7.5)(terser@5.34.1))(vue-tsc@2.1.10(typescript@5.6.3)))(rollup@4.28.0): + dependencies: + '@nuxt/kit': 3.14.1592(magicast@0.3.5)(rollup@4.28.0) + nuxt: 3.14.1592(@parcel/watcher@2.4.1)(@types/node@22.7.5)(eslint@9.12.0(jiti@2.4.1))(ioredis@5.4.1)(magicast@0.3.5)(optionator@0.9.4)(rollup@4.28.0)(terser@5.34.1)(typescript@5.6.3)(vite@5.4.11(@types/node@22.7.5)(terser@5.34.1))(vue-tsc@2.1.10(typescript@5.6.3)) + transitivePeerDependencies: + - magicast + - rollup + - supports-color + + nuxt@3.14.1592(@parcel/watcher@2.4.1)(@types/node@22.7.5)(eslint@9.12.0(jiti@2.4.1))(ioredis@5.4.1)(magicast@0.3.5)(optionator@0.9.4)(rollup@4.28.0)(terser@5.34.1)(typescript@5.6.3)(vite@5.4.11(@types/node@22.7.5)(terser@5.34.1))(vue-tsc@2.1.10(typescript@5.6.3)): dependencies: '@nuxt/devalue': 2.0.2 - '@nuxt/devtools': 1.6.1(rollup@4.28.0)(vite@5.4.11(@types/node@22.7.5)(terser@5.34.1))(vue@3.5.13(typescript@5.7.2)) + '@nuxt/devtools': 1.6.1(rollup@4.28.0)(vite@5.4.11(@types/node@22.7.5)(terser@5.34.1))(vue@3.5.13(typescript@5.6.3)) '@nuxt/kit': 3.14.1592(magicast@0.3.5)(rollup@4.28.0) '@nuxt/schema': 3.14.1592(magicast@0.3.5)(rollup@4.28.0) '@nuxt/telemetry': 2.6.0(magicast@0.3.5)(rollup@4.28.0) - '@nuxt/vite-builder': 3.14.1592(@types/node@22.7.5)(eslint@9.12.0(jiti@2.4.1))(magicast@0.3.5)(optionator@0.9.4)(rollup@4.28.0)(terser@5.34.1)(typescript@5.7.2)(vue@3.5.13(typescript@5.7.2)) + '@nuxt/vite-builder': 3.14.1592(@types/node@22.7.5)(eslint@9.12.0(jiti@2.4.1))(magicast@0.3.5)(optionator@0.9.4)(rollup@4.28.0)(terser@5.34.1)(typescript@5.6.3)(vue-tsc@2.1.10(typescript@5.6.3))(vue@3.5.13(typescript@5.6.3)) '@unhead/dom': 1.11.13 '@unhead/shared': 1.11.13 '@unhead/ssr': 1.11.13 - '@unhead/vue': 1.11.13(vue@3.5.13(typescript@5.7.2)) + '@unhead/vue': 1.11.13(vue@3.5.13(typescript@5.6.3)) '@vue/shared': 3.5.13 acorn: 8.14.0 c12: 2.0.1(magicast@0.3.5) @@ -8485,7 +8873,7 @@ snapshots: magic-string: 0.30.14 mlly: 1.7.3 nanotar: 0.1.1 - nitropack: 2.10.4(typescript@5.7.2) + nitropack: 2.10.4(typescript@5.6.3) nuxi: 3.16.0 nypm: 0.3.12 ofetch: 1.4.1 @@ -8507,13 +8895,13 @@ snapshots: unhead: 1.11.13 unimport: 3.14.2(rollup@4.28.0) unplugin: 1.16.0 - unplugin-vue-router: 0.10.8(rollup@4.28.0)(vue-router@4.5.0(vue@3.5.13(typescript@5.7.2)))(vue@3.5.13(typescript@5.7.2)) + unplugin-vue-router: 0.10.8(rollup@4.28.0)(vue-router@4.5.0(vue@3.5.13(typescript@5.6.3)))(vue@3.5.13(typescript@5.6.3)) unstorage: 1.13.1(ioredis@5.4.1) untyped: 1.5.1 - vue: 3.5.13(typescript@5.7.2) + vue: 3.5.13(typescript@5.6.3) vue-bundle-renderer: 2.1.1 vue-devtools-stub: 0.1.0 - vue-router: 4.5.0(vue@3.5.13(typescript@5.7.2)) + vue-router: 4.5.0(vue@3.5.13(typescript@5.6.3)) optionalDependencies: '@parcel/watcher': 2.4.1 '@types/node': 22.7.5 @@ -8592,6 +8980,10 @@ snapshots: dependencies: mimic-fn: 4.0.0 + onetime@7.0.0: + dependencies: + mimic-function: 5.0.1 + open@10.1.0: dependencies: default-browser: 5.2.1 @@ -8619,14 +9011,14 @@ snapshots: transitivePeerDependencies: - encoding - openapi-typescript@7.4.4(typescript@5.7.2): + openapi-typescript@7.4.4(typescript@5.6.3): dependencies: '@redocly/openapi-core': 1.25.15(supports-color@9.4.0) ansi-colors: 4.1.3 change-case: 5.4.4 parse-json: 8.1.0 supports-color: 9.4.0 - typescript: 5.7.2 + typescript: 5.6.3 yargs-parser: 21.1.1 transitivePeerDependencies: - encoding @@ -8707,6 +9099,8 @@ snapshots: parseurl@1.3.3: {} + path-browserify@1.0.1: {} + path-exists@4.0.0: {} path-exists@5.0.0: {} @@ -8738,6 +9132,8 @@ snapshots: picomatch@4.0.2: {} + pidtree@0.6.0: {} + pkg-types@1.2.1: dependencies: confbox: 0.1.8 @@ -9028,6 +9424,11 @@ snapshots: path-parse: 1.0.7 supports-preserve-symlinks-flag: 1.0.0 + restore-cursor@5.1.0: + dependencies: + onetime: 7.0.0 + signal-exit: 4.1.0 + reusify@1.0.4: {} rfdc@1.4.1: {} @@ -9169,6 +9570,8 @@ snapshots: signal-exit@4.1.0: {} + simple-git-hooks@2.11.1: {} + simple-git@3.27.0: dependencies: '@kwsites/file-exists': 1.1.1 @@ -9189,6 +9592,16 @@ snapshots: slashes@3.0.12: {} + slice-ansi@5.0.0: + dependencies: + ansi-styles: 6.2.1 + is-fullwidth-code-point: 4.0.0 + + slice-ansi@7.1.0: + dependencies: + ansi-styles: 6.2.1 + is-fullwidth-code-point: 5.0.0 + smob@1.5.0: {} source-map-js@1.2.1: {} @@ -9248,6 +9661,8 @@ snapshots: optionalDependencies: bare-events: 2.5.0 + string-argv@0.3.2: {} + string-width@4.2.3: dependencies: emoji-regex: 8.0.0 @@ -9260,6 +9675,12 @@ snapshots: emoji-regex: 9.2.2 strip-ansi: 7.1.0 + string-width@7.2.0: + dependencies: + emoji-regex: 10.4.0 + get-east-asian-width: 1.3.0 + strip-ansi: 7.1.0 + string_decoder@1.1.1: dependencies: safe-buffer: 5.1.2 @@ -9389,9 +9810,9 @@ snapshots: tr46@0.0.3: {} - ts-api-utils@1.3.0(typescript@5.7.2): + ts-api-utils@1.3.0(typescript@5.6.3): dependencies: - typescript: 5.7.2 + typescript: 5.6.3 tslib@2.7.0: {} @@ -9416,7 +9837,7 @@ snapshots: type-fest@4.30.0: {} - typescript@5.7.2: {} + typescript@5.6.3: {} ufo@1.5.4: {} @@ -9494,9 +9915,9 @@ snapshots: universalify@2.0.1: {} - unocss@0.65.1(@unocss/webpack@0.65.1(rollup@4.28.0)(webpack@5.95.0(esbuild@0.23.1)))(postcss@8.4.49)(rollup@4.28.0)(vite@5.4.11(@types/node@22.7.5)(terser@5.34.1))(vue@3.5.13(typescript@5.7.2)): + unocss@0.65.1(@unocss/webpack@0.65.1(rollup@4.28.0)(webpack@5.95.0(esbuild@0.23.1)))(postcss@8.4.49)(rollup@4.28.0)(vite@5.4.11(@types/node@22.7.5)(terser@5.34.1))(vue@3.5.13(typescript@5.6.3)): dependencies: - '@unocss/astro': 0.65.1(rollup@4.28.0)(vite@5.4.11(@types/node@22.7.5)(terser@5.34.1))(vue@3.5.13(typescript@5.7.2)) + '@unocss/astro': 0.65.1(rollup@4.28.0)(vite@5.4.11(@types/node@22.7.5)(terser@5.34.1))(vue@3.5.13(typescript@5.6.3)) '@unocss/cli': 0.65.1(rollup@4.28.0) '@unocss/core': 0.65.1 '@unocss/postcss': 0.65.1(postcss@8.4.49) @@ -9512,7 +9933,7 @@ snapshots: '@unocss/transformer-compile-class': 0.65.1 '@unocss/transformer-directives': 0.65.1 '@unocss/transformer-variant-group': 0.65.1 - '@unocss/vite': 0.65.1(rollup@4.28.0)(vite@5.4.11(@types/node@22.7.5)(terser@5.34.1))(vue@3.5.13(typescript@5.7.2)) + '@unocss/vite': 0.65.1(rollup@4.28.0)(vite@5.4.11(@types/node@22.7.5)(terser@5.34.1))(vue@3.5.13(typescript@5.6.3)) optionalDependencies: '@unocss/webpack': 0.65.1(rollup@4.28.0)(webpack@5.95.0(esbuild@0.23.1)) vite: 5.4.11(@types/node@22.7.5)(terser@5.34.1) @@ -9522,11 +9943,11 @@ snapshots: - supports-color - vue - unplugin-vue-router@0.10.8(rollup@4.28.0)(vue-router@4.5.0(vue@3.5.13(typescript@5.7.2)))(vue@3.5.13(typescript@5.7.2)): + unplugin-vue-router@0.10.8(rollup@4.28.0)(vue-router@4.5.0(vue@3.5.13(typescript@5.6.3)))(vue@3.5.13(typescript@5.6.3)): dependencies: '@babel/types': 7.26.0 '@rollup/pluginutils': 5.1.3(rollup@4.28.0) - '@vue-macros/common': 1.14.0(rollup@4.28.0)(vue@3.5.13(typescript@5.7.2)) + '@vue-macros/common': 1.14.0(rollup@4.28.0)(vue@3.5.13(typescript@5.6.3)) ast-walker-scope: 0.6.2 chokidar: 3.6.0 fast-glob: 3.3.2 @@ -9539,7 +9960,7 @@ snapshots: unplugin: 1.16.0 yaml: 2.5.1 optionalDependencies: - vue-router: 4.5.0(vue@3.5.13(typescript@5.7.2)) + vue-router: 4.5.0(vue@3.5.13(typescript@5.6.3)) transitivePeerDependencies: - rollup - vue @@ -9636,7 +10057,7 @@ snapshots: - supports-color - terser - vite-plugin-checker@0.8.0(eslint@9.12.0(jiti@2.4.1))(optionator@0.9.4)(typescript@5.7.2)(vite@5.4.11(@types/node@22.7.5)(terser@5.34.1)): + vite-plugin-checker@0.8.0(eslint@9.12.0(jiti@2.4.1))(optionator@0.9.4)(typescript@5.6.3)(vite@5.4.11(@types/node@22.7.5)(terser@5.34.1))(vue-tsc@2.1.10(typescript@5.6.3)): dependencies: '@babel/code-frame': 7.26.2 ansi-escapes: 4.3.2 @@ -9656,7 +10077,8 @@ snapshots: optionalDependencies: eslint: 9.12.0(jiti@2.4.1) optionator: 0.9.4 - typescript: 5.7.2 + typescript: 5.6.3 + vue-tsc: 2.1.10(typescript@5.6.3) vite-plugin-inspect@0.8.7(@nuxt/kit@3.14.1592(magicast@0.3.5)(rollup@4.28.0))(rollup@4.28.0)(vite@5.4.11(@types/node@22.7.5)(terser@5.34.1)): dependencies: @@ -9743,24 +10165,31 @@ snapshots: transitivePeerDependencies: - supports-color - vue-flow-layout@0.1.1(vue@3.5.13(typescript@5.7.2)): + vue-flow-layout@0.1.1(vue@3.5.13(typescript@5.6.3)): dependencies: - vue: 3.5.13(typescript@5.7.2) + vue: 3.5.13(typescript@5.6.3) - vue-router@4.5.0(vue@3.5.13(typescript@5.7.2)): + vue-router@4.5.0(vue@3.5.13(typescript@5.6.3)): dependencies: '@vue/devtools-api': 6.6.4 - vue: 3.5.13(typescript@5.7.2) + vue: 3.5.13(typescript@5.6.3) + + vue-tsc@2.1.10(typescript@5.6.3): + dependencies: + '@volar/typescript': 2.4.10 + '@vue/language-core': 2.1.10(typescript@5.6.3) + semver: 7.6.3 + typescript: 5.6.3 - vue@3.5.13(typescript@5.7.2): + vue@3.5.13(typescript@5.6.3): dependencies: '@vue/compiler-dom': 3.5.13 '@vue/compiler-sfc': 3.5.13 '@vue/runtime-dom': 3.5.13 - '@vue/server-renderer': 3.5.13(vue@3.5.13(typescript@5.7.2)) + '@vue/server-renderer': 3.5.13(vue@3.5.13(typescript@5.6.3)) '@vue/shared': 3.5.13 optionalDependencies: - typescript: 5.7.2 + typescript: 5.6.3 watchpack@2.4.2: dependencies: @@ -9871,6 +10300,12 @@ snapshots: string-width: 5.1.2 strip-ansi: 7.1.0 + wrap-ansi@9.0.0: + dependencies: + ansi-styles: 6.2.1 + string-width: 7.2.0 + strip-ansi: 7.1.0 + wrappy@1.0.2: {} ws@8.18.0: {} diff --git a/server/api/clusters/[...repo].ts b/server/api/clusters/[...repo].ts new file mode 100644 index 0000000..3693f93 --- /dev/null +++ b/server/api/clusters/[...repo].ts @@ -0,0 +1,39 @@ +import { clusterEmbeddings } from '../../utils/cluster' +import { getEmbeddingsForIssue } from '../../utils/embeddings' +import type { Issue } from '../../utils/github' + +const linkedRepos: Record = { + 'danielroe/beasties': ['GoogleChromeLabs/critters'], + 'nuxt/nuxt': ['vuejs/core', 'vitejs/vite', 'nitrojs/nitro'], +} + +export default defineCachedEventHandler(async (event) => { + const [owner, repo] = getRouterParam(event, 'repo')?.split('/') || [] + if (!owner || !repo) { + throw createError({ + status: 400, + message: 'Invalid repository', + }) + } + + const source = `${owner}/${repo}` + const repos = [source, ...linkedRepos[source] || []] + const issues = await Promise.all(repos.map(async repo => event.$fetch(`/api/issues/${repo}`))) + .then(r => r.flat()) + + const embeddings = await Promise.all(issues.map(async issue => getEmbeddingsForIssue(event, issue))) + const clusters = clusterEmbeddings(issues, embeddings) + return clusters.filter((cluster) => { + return cluster.some(issue => issue.repository?.owner?.name === owner && issue.repository?.name === repo) + }) +}, { + swr: true, + base: 'github', + getKey(event) { + const [owner, repo] = getRouterParam(event, 'repo')?.split('/') || [] + return `clusters:${owner}:${repo}` + }, + maxAge: 60 * 60 * 1000, + staleMaxAge: 60 * 60 * 1000, + shouldBypassCache: event => getHeader(event, 'force') === 'true', +}) diff --git a/server/api/issues/[...repo].ts b/server/api/issues/[...repo].ts new file mode 100644 index 0000000..f99c65e --- /dev/null +++ b/server/api/issues/[...repo].ts @@ -0,0 +1,42 @@ +import { Octokit } from '@octokit/rest' + +import { getLabels, type Issue } from '../../utils/github' + +const labelsToExclude = ['documentation', 'invalid', 'enhancement'] +const knownBots = new Set(['renovate', 'renovate[bot]']) + +export default defineCachedEventHandler(async (event) => { + const [owner, repo] = getRouterParam(event, 'repo')?.split('/') || [] + if (!owner || !repo) { + throw createError({ + status: 400, + message: 'Invalid repository', + }) + } + + const octokit = new Octokit({ auth: useRuntimeConfig(event).github.token }) + + // TODO: date/state filters? + const issues = await octokit.paginate(octokit.issues.listForRepo, { + owner, + repo, + state: 'open', + per_page: 100, + }) + + return issues.filter(issue => + !issue.pull_request + && (!issue.user || !knownBots.has(issue.user.login)) + && !getLabels(issue).some(label => labelsToExclude.some(l => label === l || label.startsWith(l))), + ) satisfies Issue[] +}, { + swr: true, + base: 'github', + getKey(event) { + const [owner, repo] = getRouterParam(event, 'repo')?.split('/') || [] + return `issues:${owner}:${repo}` + }, + maxAge: 60 * 60 * 1000, + staleMaxAge: 60 * 60 * 1000, + shouldBypassCache: event => getHeader(event, 'force') === 'true', +}) diff --git a/server/utils/cluster.ts b/server/utils/cluster.ts new file mode 100644 index 0000000..b9f7959 --- /dev/null +++ b/server/utils/cluster.ts @@ -0,0 +1,46 @@ +import { kmeans } from 'ml-kmeans' +import { similarity } from 'ml-distance' + +import type { Issue } from './github' + +export function clusterEmbeddings(issues: Issue[], embeddings: number[][]) { + for (let i = issues.length - 1; i >= 0; i--) { + if (embeddings[i]!.length === 0) { + console.warn(`Failed to generate embedding for an issue: [#${issues[i]!.number}] ${issues[i]!.title}`) + issues.splice(i, 1) + embeddings.splice(i, 1) + } + } + + // Determine the number of clusters (this is a simplistic approach; we might want to use a more sophisticated method) + const k = Math.max(10, Math.floor(Math.sqrt(embeddings.length) / 2)) + const { clusters } = kmeans(embeddings, k, {}) + + const clusteredIssues: Record = {} + for (let i = 0; i < issues.length; i++) { + clusteredIssues[clusters[i]!] ||= [] + clusteredIssues[clusters[i]!]!.push(issues[i]!) + } + + const sortedClusters: Array> = [] + + for (const cluster in clusteredIssues) { + const chunk = clusteredIssues[cluster]! + const sortedChunk = chunk.map((issue) => { + let totalSimilarity = 0 + for (const other of chunk) { + if (issue === other) { + continue + } + totalSimilarity += similarity.cosine(embeddings[issues.indexOf(issue)], embeddings[issues.indexOf(other)]) + } + return { ...issue, avgSimilarity: totalSimilarity / (chunk.length - 1) } + }).filter(i => i.avgSimilarity > 0.75).sort((a, b) => b.avgSimilarity - a.avgSimilarity) + + if (sortedChunk.length > 1) { + sortedClusters.push(sortedChunk) + } + } + + return sortedClusters +} diff --git a/server/utils/embeddings.ts b/server/utils/embeddings.ts new file mode 100644 index 0000000..89af0f5 --- /dev/null +++ b/server/utils/embeddings.ts @@ -0,0 +1,84 @@ +import type { H3Event } from 'h3' +import { hash } from 'ohash' + +import { getLabels, type Issue } from './github' + +export async function getEmbeddingsForIssue(event: H3Event, issue: Issue) { + const storage = hubKV() + const vectorize = hubVectorize('issues') + if (!issue.repository) { + const match = issue.repository_url.match(/\/(?[^/]+)\/(?[^/]+)$/) + if (match) { + issue.repository = { + owner: { name: match.groups!.owner! }, + name: match.groups!.name!, + } as NonNullable + } + else throw new Error('Issue does not have a repository') + } + + const storageKey = `issue:${issue.repository!.owner.name}:${issue.repository!.name}:${issue.number}` + const issueUpdatedTime = new Date(issue.updated_at).getTime() + + const text = chunkIssue(issue) + const issueHash = hash(text) + + const res = await storage.getItem(storageKey) + if (res && res.mtime >= issueUpdatedTime && res.hash === issueHash) { + return res.embeddings + } + + const embeddings = await generateEmbedding(event, text) + + await Promise.all([ + vectorize.insert([{ + id: storageKey, + values: embeddings, + metadata: { + title: issue.title, + body: issue.body || '', + owner: issue.repository!.owner.name!, + repository: issue.repository!.name, + number: issue.number, + }, + }]), + storage.setItem(storageKey, { + mtime: issueUpdatedTime, + hash: issueHash, + embeddings, + }), + ]) + + return embeddings +} + +type StoredEmbeddings = { + mtime: number + hash: string + embeddings: number[] +} + +function preprocessText(text: string): string { + return text + .toLowerCase() + .replace(/### (Environment|Reproduction).*### /, '### ') + .replace(/### \w+\s+_No response_/, '') + .replace(/[^\w\s]/g, '') + .trim() +} + +function chunkIssue(issue: Issue, exclude?: Set) { + const labels = getLabels(issue).filter(l => !exclude?.has(l)) + return preprocessText(`${issue.title}\n${labels.join(', ')}\n${issue.body}`) +} + +async function generateEmbedding(event: H3Event, text: string): Promise { + const ai = hubAI() + try { + const { data } = await ai.run('@cf/baai/bge-large-en-v1.5', { text }) + return data[0]! + } + catch { + return [] + } +} -- knotmirror 0.0.1