From f2c3243140b84a54c78c82ffe6e3262483b62760 Mon Sep 17 00:00:00 2001 From: cannorin Date: Tue, 7 Apr 2026 00:07:47 +0900 Subject: [PATCH] Use Gemma 4 E2B --- .env.example | 2 +- index.ts | 66 ++--- tsconfig.json | 4 +- yarn.lock | 672 +++++++++++++++++++++++++++++++++++++++++++------- 4 files changed, 610 insertions(+), 134 deletions(-) diff --git a/.env.example b/.env.example index 7a47214..9371c8b 100644 --- a/.env.example +++ b/.env.example @@ -1,4 +1,4 @@ MISSKEY_ORIGIN=https://misskey.example.net MISSKEY_CREDENTIAL=XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX -MODEL="mradermacher/gemma-2-baku-2b-it-GGUF:IQ4_XS" +MODEL="unsloth/gemma-4-E2B-it-GGUF:Q4_K_M" diff --git a/index.ts b/index.ts index 4574457..c48af97 100644 --- a/index.ts +++ b/index.ts @@ -67,31 +67,6 @@ const replyJobPrompt = getSystemPrompt( "ユーザがあなたへのメッセージを送ってきています。あるびのちゃんとして、発言に返信してください。", ); -async function rephrase(text: string) { - if ( - text.includes("です") || - text.includes("ます") || - text.includes("でし") || - text.includes("まし") || - text.includes("ません") - ) { - return text; - } - await using rephraseSession = new LlmSession( - model, - "ユーザが与えたテキストを「~です」「~ます」調(丁寧な文体)で言い換えたものを、そのまま出力してください。", - ); - await rephraseSession.init(); - const res = parseResponse( - grammar, - await rephraseSession.prompt(JSON.stringify({ text }), { - ...baseChatPromptOptions, - customStopTriggers: ["ですます"], - }), - ); - return res ?? text; -} - const formatNote = (n: Note) => { if (n.userId === me.id) { return JSON.stringify({ name: "あるびのちゃん", text: n.text }); @@ -114,31 +89,29 @@ type Job = history: Note[]; }; +await using postJobSession = new LlmSession(model, postJobPrompt); +await postJobSession.init(); + async function processPostJob() { const notes = await getNotes(10, 0, 5); const input = notes.map(formatNote).join("\n"); - const text = await (async () => { - await using postJobSession = new LlmSession(model, postJobPrompt); - await postJobSession.init(); - return await parseResponse( - grammar, - await postJobSession.prompt(input, { - ...baseChatPromptOptions, - temperature: 1.25, - minP: 0.05, - repeatPenalty: { - lastTokens: 128, - penalty: 1.15, - }, - }), - ); - })(); + const text = await parseResponse( + grammar, + await postJobSession.prompt(input, { + ...baseChatPromptOptions, + temperature: 1.25, + minP: 0.05, + repeatPenalty: { + lastTokens: 128, + penalty: 1.15, + }, + }), + ); + if (values.test) return; if (text) { - const rephrased = await rephrase(text); - if (values.test) return; await misskey.request("notes/create", { visibility: "public", - text: sanitizeText(rephrased), + text: sanitizeText(text), }); } } @@ -168,12 +141,11 @@ async function processReplyJob(job: Extract) { ); })(); + if (values.test) return; if (text) { - const rephrased = await rephrase(text); - if (values.test) return; await misskey.request("notes/create", { visibility: job.visibility, - text: sanitizeText(rephrased), + text: sanitizeText(text), replyId: job.id, }); } diff --git a/tsconfig.json b/tsconfig.json index 0adef2f..837b4f7 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -12,6 +12,8 @@ "moduleResolution": "bundler", "allowImportingTsExtensions": true, "verbatimModuleSyntax": true, - "noEmit": true + "noEmit": true, + // Types + "types": ["bun"] } } diff --git a/yarn.lock b/yarn.lock index f9d6133..628bb6d 100644 --- a/yarn.lock +++ b/yarn.lock @@ -4,7 +4,7 @@ "@biomejs/biome@1.9.4": version "1.9.4" - resolved "https://registry.yarnpkg.com/@biomejs/biome/-/biome-1.9.4.tgz#89766281cbc3a0aae865a7ff13d6aaffea2842bf" + resolved "https://registry.npmjs.org/@biomejs/biome/-/biome-1.9.4.tgz" integrity sha512-1rkd7G70+o9KkTn5KLmDYXihGoTaIGO9PIIN2ZB7UJxFrWw04CZHPYiMRjYsaDvVV7hP1dYNRLxSANLaBFGpog== optionalDependencies: "@biomejs/cli-darwin-arm64" "1.9.4" @@ -16,122 +16,624 @@ "@biomejs/cli-win32-arm64" "1.9.4" "@biomejs/cli-win32-x64" "1.9.4" -"@biomejs/cli-darwin-arm64@1.9.4": - version "1.9.4" - resolved "https://registry.yarnpkg.com/@biomejs/cli-darwin-arm64/-/cli-darwin-arm64-1.9.4.tgz#dfa376d23a54a2d8f17133c92f23c1bf2e62509f" - integrity sha512-bFBsPWrNvkdKrNCYeAp+xo2HecOGPAy9WyNyB/jKnnedgzl4W4Hb9ZMzYNbf8dMCGmUdSavlYHiR01QaYR58cw== - -"@biomejs/cli-darwin-x64@1.9.4": - version "1.9.4" - resolved "https://registry.yarnpkg.com/@biomejs/cli-darwin-x64/-/cli-darwin-x64-1.9.4.tgz#eafc2ce3849d385fc02238aad1ca4a73395a64d9" - integrity sha512-ngYBh/+bEedqkSevPVhLP4QfVPCpb+4BBe2p7Xs32dBgs7rh9nY2AIYUL6BgLw1JVXV8GlpKmb/hNiuIxfPfZg== - -"@biomejs/cli-linux-arm64-musl@1.9.4": - version "1.9.4" - resolved "https://registry.yarnpkg.com/@biomejs/cli-linux-arm64-musl/-/cli-linux-arm64-musl-1.9.4.tgz#d780c3e01758fc90f3268357e3f19163d1f84fca" - integrity sha512-v665Ct9WCRjGa8+kTr0CzApU0+XXtRgwmzIf1SeKSGAv+2scAlW6JR5PMFo6FzqqZ64Po79cKODKf3/AAmECqA== - -"@biomejs/cli-linux-arm64@1.9.4": - version "1.9.4" - resolved "https://registry.yarnpkg.com/@biomejs/cli-linux-arm64/-/cli-linux-arm64-1.9.4.tgz#8ed1dd0e89419a4b66a47f95aefb8c46ae6041c9" - integrity sha512-fJIW0+LYujdjUgJJuwesP4EjIBl/N/TcOX3IvIHJQNsAqvV2CHIogsmA94BPG6jZATS4Hi+xv4SkBBQSt1N4/g== - "@biomejs/cli-linux-x64-musl@1.9.4": version "1.9.4" - resolved "https://registry.yarnpkg.com/@biomejs/cli-linux-x64-musl/-/cli-linux-x64-musl-1.9.4.tgz#f36982b966bd671a36671e1de4417963d7db15fb" + resolved "https://registry.npmjs.org/@biomejs/cli-linux-x64-musl/-/cli-linux-x64-musl-1.9.4.tgz" integrity sha512-gEhi/jSBhZ2m6wjV530Yy8+fNqG8PAinM3oV7CyO+6c3CEh16Eizm21uHVsyVBEB6RIM8JHIl6AGYCv6Q6Q9Tg== "@biomejs/cli-linux-x64@1.9.4": version "1.9.4" - resolved "https://registry.yarnpkg.com/@biomejs/cli-linux-x64/-/cli-linux-x64-1.9.4.tgz#a0a7f56680c76b8034ddc149dbf398bdd3a462e8" + resolved "https://registry.npmjs.org/@biomejs/cli-linux-x64/-/cli-linux-x64-1.9.4.tgz" integrity sha512-lRCJv/Vi3Vlwmbd6K+oQ0KhLHMAysN8lXoCI7XeHlxaajk06u7G+UsFSO01NAs5iYuWKmVZjmiOzJ0OJmGsMwg== -"@biomejs/cli-win32-arm64@1.9.4": - version "1.9.4" - resolved "https://registry.yarnpkg.com/@biomejs/cli-win32-arm64/-/cli-win32-arm64-1.9.4.tgz#e2ef4e0084e76b7e26f0fc887c5ef1265ea56200" - integrity sha512-tlbhLk+WXZmgwoIKwHIHEBZUwxml7bRJgk0X2sPyNR3S93cdRq6XulAZRQJ17FYGGzWne0fgrXBKpl7l4M87Hg== +"@huggingface/jinja@^0.5.5": + version "0.5.5" -"@biomejs/cli-win32-x64@1.9.4": - version "1.9.4" - resolved "https://registry.yarnpkg.com/@biomejs/cli-win32-x64/-/cli-win32-x64-1.9.4.tgz#4c7afa90e3970213599b4095e62f87e5972b2340" - integrity sha512-8Y5wMhVIPaWe6jw2H+KlEm4wP/f7EW3810ZLmDlrEEy5KvBsb9ECEfu/kMWD484ijfQ8+nIi0giMgu9g1UAuuA== +"@isaacs/fs-minipass@^4.0.0": + version "4.0.1" + dependencies: + minipass "^7.0.4" -"@simplewebauthn/types@11.0.0": - version "11.0.0" - resolved "https://registry.yarnpkg.com/@simplewebauthn/types/-/types-11.0.0.tgz#f329abc4c1bc3b18d6c7a4346af9fdec90d8a67e" - integrity sha512-b2o0wC5u2rWts31dTgBkAtSNKGX0cvL6h8QedNsKmj8O4QoLFQFR3DBVBUlpyVEhYKA+mXGUaXbcOc4JdQ3HzA== +"@kwsites/file-exists@^1.1.1": + version "1.1.1" + dependencies: + debug "^4.1.1" -"@tsconfig/strictest@^2.0.5": - version "2.0.5" - resolved "https://registry.yarnpkg.com/@tsconfig/strictest/-/strictest-2.0.5.tgz#2cbc67f207ba87fdec2a84ad79b1708cf4edd93b" - integrity sha512-ec4tjL2Rr0pkZ5hww65c+EEPYwxOi4Ryv+0MtjeaSQRJyq322Q27eOQiFbuNgw2hpL4hB1/W/HBGk3VKS43osg== +"@kwsites/promise-deferred@^1.1.1": + version "1.1.1" + +"@node-llama-cpp/linux-arm64@3.17.1": + version "3.17.1" + +"@node-llama-cpp/linux-armv7l@3.17.1": + version "3.17.1" + +"@node-llama-cpp/linux-x64-cuda-ext@3.17.1": + version "3.17.1" + +"@node-llama-cpp/linux-x64-cuda@3.17.1": + version "3.17.1" + +"@node-llama-cpp/linux-x64-vulkan@3.17.1": + version "3.17.1" + +"@node-llama-cpp/linux-x64@3.17.1": + version "3.17.1" + +"@reflink/reflink-linux-x64-gnu@0.1.19": + version "0.1.19" + +"@reflink/reflink-linux-x64-musl@0.1.19": + version "0.1.19" + +"@reflink/reflink@^0.1.16": + version "0.1.19" + optionalDependencies: + "@reflink/reflink-darwin-arm64" "0.1.19" + "@reflink/reflink-darwin-x64" "0.1.19" + "@reflink/reflink-linux-arm64-gnu" "0.1.19" + "@reflink/reflink-linux-arm64-musl" "0.1.19" + "@reflink/reflink-linux-x64-gnu" "0.1.19" + "@reflink/reflink-linux-x64-musl" "0.1.19" + "@reflink/reflink-win32-arm64-msvc" "0.1.19" + "@reflink/reflink-win32-x64-msvc" "0.1.19" + +"@simplewebauthn/types@12.0.0": + version "12.0.0" + +"@tinyhttp/content-disposition@^2.2.0": + version "2.2.4" + +"@tsconfig/strictest@^2.0.8": + version "2.0.8" "@types/bun@latest": - version "1.1.14" - resolved "https://registry.yarnpkg.com/@types/bun/-/bun-1.1.14.tgz#587dead368410b281b1bcbfb61d3ce1a07a63234" - integrity sha512-opVYiFGtO2af0dnWBdZWlioLBoxSdDO5qokaazLhq8XQtGZbY4pY3/JxY8Zdf/hEwGubbp7ErZXoN1+h2yesxA== + version "1.3.11" + resolved "https://registry.npmjs.org/@types/bun/-/bun-1.3.11.tgz" + integrity sha512-5vPne5QvtpjGpsGYXiFyycfpDF2ECyPcTSsFBMa0fraoxiQyMJ3SmuQIGhzPg2WJuWxVBoxWJ2kClYTcw/4fAg== dependencies: - bun-types "1.1.37" + bun-types "1.3.11" -"@types/node@*": - version "22.10.2" - resolved "https://registry.yarnpkg.com/@types/node/-/node-22.10.2.tgz#a485426e6d1fdafc7b0d4c7b24e2c78182ddabb9" - integrity sha512-Xxr6BBRCAOQixvonOye19wnzyDiUtTeqldOOmj3CkeblonbccA12PFwlufvRdrpjXxqnmUaeiU5EOA+7s5diUQ== +"@types/node@*", "@types/node@^25.5.2": + version "25.5.2" + resolved "https://registry.npmjs.org/@types/node/-/node-25.5.2.tgz" + integrity sha512-tO4ZIRKNC+MDWV4qKVZe3Ql/woTnmHDr5JD8UI5hn2pwBrHEwOEMZK7WlNb5RKB6EoJ02gwmQS9OrjuFnZYdpg== dependencies: - undici-types "~6.20.0" + undici-types "~7.18.0" -"@types/node@~20.12.8": - version "20.12.14" - resolved "https://registry.yarnpkg.com/@types/node/-/node-20.12.14.tgz#0c5cf7ef26aedfd64b0539bba9380ed1f57dcc77" - integrity sha512-scnD59RpYD91xngrQQLGkE+6UrHUPzeKZWhhjBSa3HSkwjbQc38+q3RoIVEwxQGRw3M+j5hpNAM+lgV3cVormg== +ansi-escapes@^6.2.0: + version "6.2.1" + +ansi-regex@^5.0.1: + version "5.0.1" + +ansi-regex@^6.0.1: + version "6.2.2" + +ansi-styles@^4.0.0: + version "4.3.0" dependencies: - undici-types "~5.26.4" + color-convert "^2.0.1" -"@types/ws@~8.5.10": - version "8.5.13" - resolved "https://registry.yarnpkg.com/@types/ws/-/ws-8.5.13.tgz#6414c280875e2691d0d1e080b05addbf5cb91e20" - integrity sha512-osM/gWBTPKgHV8XkTunnegTRIsvF6owmf5w+JtAfOw472dptdm0dlGv4xCt6GwQRcC2XVOvvRE/0bAoQcL2QkA== +ansi-styles@^6.2.1, ansi-styles@^6.2.3: + version "6.2.3" + +async-retry@^1.3.3: + version "1.3.3" + dependencies: + retry "0.13.1" + +bun-types@1.3.11: + version "1.3.11" + resolved "https://registry.npmjs.org/bun-types/-/bun-types-1.3.11.tgz" + integrity sha512-1KGPpoxQWl9f6wcZh57LvrPIInQMn2TQ7jsgxqpRzg+l0QPOFvJVH7HmvHo/AiPgwXy+/Thf6Ov3EdVn1vOabg== dependencies: "@types/node" "*" -bun-types@1.1.37: - version "1.1.37" - resolved "https://registry.yarnpkg.com/bun-types/-/bun-types-1.1.37.tgz#8caab7fa0dd1490a368c5e4dd0614d500e15e7e9" - integrity sha512-C65lv6eBr3LPJWFZ2gswyrGZ82ljnH8flVE03xeXxKhi2ZGtFiO4isRKTKnitbSqtRAcaqYSR6djt1whI66AbA== - dependencies: - "@types/node" "~20.12.8" - "@types/ws" "~8.5.10" +bytes@^3.1.2: + version "3.1.2" -eventemitter3@5.0.1: +chalk@^5.3.0, chalk@^5.6.2: + version "5.6.2" + +chmodrp@^1.0.2: + version "1.0.2" + +chownr@^3.0.0: + version "3.0.0" + +ci-info@^4.0.0: + version "4.4.0" + +cli-cursor@^5.0.0: + version "5.0.0" + dependencies: + restore-cursor "^5.0.0" + +cli-spinners@^2.9.2: + version "2.9.2" + +cli-spinners@^3.2.0: + version "3.4.0" + +cliui@^8.0.1: + version "8.0.1" + dependencies: + string-width "^4.2.0" + strip-ansi "^6.0.1" + wrap-ansi "^7.0.0" + +cmake-js@^8.0.0: + version "8.0.0" + dependencies: + debug "^4.4.3" + fs-extra "^11.3.3" + node-api-headers "^1.8.0" + rc "1.2.8" + semver "^7.7.3" + tar "^7.5.6" + url-join "^4.0.1" + which "^6.0.0" + yargs "^17.7.2" + +color-convert@^2.0.1: + version "2.0.1" + dependencies: + color-name "~1.1.4" + +color-name@~1.1.4: + version "1.1.4" + +commander@^10.0.0: + version "10.0.1" + +cross-spawn@^7.0.6: + version "7.0.6" + dependencies: + path-key "^3.1.0" + shebang-command "^2.0.0" + which "^2.0.1" + +debug@^4.1.1, debug@^4.4.0, debug@^4.4.3: + version "4.4.3" + dependencies: + ms "^2.1.3" + +deep-extend@^0.6.0: + version "0.6.0" + +emoji-regex@^10.3.0: + version "10.6.0" + +emoji-regex@^8.0.0: + version "8.0.0" + +env-var@^7.5.0: + version "7.5.0" + +escalade@^3.1.1: + version "3.2.0" + +eventemitter3@^5.0.1, eventemitter3@5.0.1: version "5.0.1" - resolved "https://registry.yarnpkg.com/eventemitter3/-/eventemitter3-5.0.1.tgz#53f5ffd0a492ac800721bb42c66b841de96423c4" + resolved "https://registry.npmjs.org/eventemitter3/-/eventemitter3-5.0.1.tgz" integrity sha512-GWkBvjiSZK87ELrYOSESUYeVIc9mvLLf/nXalMOS5dYrgZq9o5OVkbZAVM06CVxYsCwH9BDZFPlQTlPA1j4ahA== -misskey-js@^2024.11.1-alpha.0: - version "2024.11.1-alpha.0" - resolved "https://registry.yarnpkg.com/misskey-js/-/misskey-js-2024.11.1-alpha.0.tgz#cfca1f0d69a6846f3145bcf0c205a8c621de3619" - integrity sha512-cXZAIlw8h8TNoZsdaOAtD6SXV0irhThSK/OQ7JKGiYBfjz0AO5VFyKF6tCfPrMyBU4kH74GfLP0wTx2d1j/t2g== +filename-reserved-regex@^3.0.0: + version "3.0.0" + +filenamify@^6.0.0: + version "6.0.0" dependencies: - "@simplewebauthn/types" "11.0.0" + filename-reserved-regex "^3.0.0" + +fs-extra@^11.1.1, fs-extra@^11.3.0, fs-extra@^11.3.3: + version "11.3.3" + dependencies: + graceful-fs "^4.2.0" + jsonfile "^6.0.1" + universalify "^2.0.0" + +get-caller-file@^2.0.5: + version "2.0.5" + +get-east-asian-width@^1.0.0, get-east-asian-width@^1.3.1, get-east-asian-width@^1.5.0: + version "1.5.0" + +graceful-fs@^4.1.6, graceful-fs@^4.2.0, graceful-fs@^4.2.4: + version "4.2.11" + +ignore@^7.0.4: + version "7.0.5" + +ini@~1.3.0: + version "1.3.8" + +ipull@^3.9.5: + version "3.9.5" + dependencies: + "@tinyhttp/content-disposition" "^2.2.0" + async-retry "^1.3.3" + chalk "^5.3.0" + ci-info "^4.0.0" + cli-spinners "^2.9.2" + commander "^10.0.0" + eventemitter3 "^5.0.1" + filenamify "^6.0.0" + fs-extra "^11.1.1" + is-unicode-supported "^2.0.0" + lifecycle-utils "^2.0.1" + lodash.debounce "^4.0.8" + lowdb "^7.0.1" + pretty-bytes "^6.1.0" + pretty-ms "^8.0.0" + sleep-promise "^9.1.0" + slice-ansi "^7.1.0" + stdout-update "^4.0.1" + strip-ansi "^7.1.0" + optionalDependencies: + "@reflink/reflink" "^0.1.16" + +is-fullwidth-code-point@^3.0.0: + version "3.0.0" + +is-fullwidth-code-point@^5.0.0, is-fullwidth-code-point@^5.1.0: + version "5.1.0" + dependencies: + get-east-asian-width "^1.3.1" + +is-interactive@^2.0.0: + version "2.0.0" + +is-unicode-supported@^2.0.0, is-unicode-supported@^2.1.0: + version "2.1.0" + +isexe@^2.0.0: + version "2.0.0" + +isexe@^4.0.0: + version "4.0.0" + +jsonfile@^6.0.1: + version "6.2.0" + dependencies: + universalify "^2.0.0" + optionalDependencies: + graceful-fs "^4.1.6" + +lifecycle-utils@^2.0.1: + version "2.1.0" + +lifecycle-utils@^3.1.1: + version "3.1.1" + +lodash.debounce@^4.0.8: + version "4.0.8" + +log-symbols@^7.0.1: + version "7.0.1" + dependencies: + is-unicode-supported "^2.0.0" + yoctocolors "^2.1.1" + +lowdb@^7.0.1: + version "7.0.1" + dependencies: + steno "^4.0.2" + +mimic-function@^5.0.0: + version "5.0.1" + +minimist@^1.2.0: + version "1.2.8" + +minipass@^7.0.4, minipass@^7.1.2: + version "7.1.3" + +minizlib@^3.1.0: + version "3.1.0" + dependencies: + minipass "^7.1.2" + +misskey-js@^2025.12.2: + version "2025.12.2" + dependencies: + "@simplewebauthn/types" "12.0.0" eventemitter3 "5.0.1" reconnecting-websocket "4.4.0" -openai@5.0.0-alpha.0: - version "5.0.0-alpha.0" - resolved "https://registry.yarnpkg.com/openai/-/openai-5.0.0-alpha.0.tgz#f6e95300ad728458b8e537260864300e32728c47" - integrity sha512-sfxLpUQePGt3FRRAphDW22A5fdw/HYGD/o6HlGgnGI9DiGp8OxgWJ+Wkze9rgQgyNebC3quF3p8Y8gSZAtxxSw== +ms@^2.1.3: + version "2.1.3" -reconnecting-websocket@4.4.0: +nanoid@^5.1.6: + version "5.1.6" + +node-addon-api@^8.5.0: + version "8.5.0" + +node-api-headers@^1.8.0: + version "1.8.0" + +node-llama-cpp@^3.17.1: + version "3.17.1" + dependencies: + "@huggingface/jinja" "^0.5.5" + async-retry "^1.3.3" + bytes "^3.1.2" + chalk "^5.6.2" + chmodrp "^1.0.2" + cmake-js "^8.0.0" + cross-spawn "^7.0.6" + env-var "^7.5.0" + filenamify "^6.0.0" + fs-extra "^11.3.0" + ignore "^7.0.4" + ipull "^3.9.5" + is-unicode-supported "^2.1.0" + lifecycle-utils "^3.1.1" + log-symbols "^7.0.1" + nanoid "^5.1.6" + node-addon-api "^8.5.0" + ora "^9.3.0" + pretty-ms "^9.3.0" + proper-lockfile "^4.1.2" + semver "^7.7.1" + simple-git "^3.32.2" + slice-ansi "^8.0.0" + stdout-update "^4.0.1" + strip-ansi "^7.1.2" + validate-npm-package-name "^7.0.2" + which "^6.0.1" + yargs "^17.7.2" + optionalDependencies: + "@node-llama-cpp/linux-arm64" "3.17.1" + "@node-llama-cpp/linux-armv7l" "3.17.1" + "@node-llama-cpp/linux-x64" "3.17.1" + "@node-llama-cpp/linux-x64-cuda" "3.17.1" + "@node-llama-cpp/linux-x64-cuda-ext" "3.17.1" + "@node-llama-cpp/linux-x64-vulkan" "3.17.1" + "@node-llama-cpp/mac-arm64-metal" "3.17.1" + "@node-llama-cpp/mac-x64" "3.17.1" + "@node-llama-cpp/win-arm64" "3.17.1" + "@node-llama-cpp/win-x64" "3.17.1" + "@node-llama-cpp/win-x64-cuda" "3.17.1" + "@node-llama-cpp/win-x64-cuda-ext" "3.17.1" + "@node-llama-cpp/win-x64-vulkan" "3.17.1" + +onetime@^7.0.0: + version "7.0.0" + dependencies: + mimic-function "^5.0.0" + +ora@^9.3.0: + version "9.3.0" + dependencies: + chalk "^5.6.2" + cli-cursor "^5.0.0" + cli-spinners "^3.2.0" + is-interactive "^2.0.0" + is-unicode-supported "^2.1.0" + log-symbols "^7.0.1" + stdin-discarder "^0.3.1" + string-width "^8.1.0" + +parse-ms@^3.0.0: + version "3.0.0" + +parse-ms@^4.0.0: + version "4.0.0" + +path-key@^3.1.0: + version "3.1.1" + +pretty-bytes@^6.1.0: + version "6.1.1" + +pretty-ms@^8.0.0: + version "8.0.0" + dependencies: + parse-ms "^3.0.0" + +pretty-ms@^9.3.0: + version "9.3.0" + dependencies: + parse-ms "^4.0.0" + +proper-lockfile@^4.1.2: + version "4.1.2" + dependencies: + graceful-fs "^4.2.4" + retry "^0.12.0" + signal-exit "^3.0.2" + +rc@1.2.8: + version "1.2.8" + dependencies: + deep-extend "^0.6.0" + ini "~1.3.0" + minimist "^1.2.0" + strip-json-comments "~2.0.1" + +reconnecting-websocket@^4.4.0, reconnecting-websocket@4.4.0: version "4.4.0" - resolved "https://registry.yarnpkg.com/reconnecting-websocket/-/reconnecting-websocket-4.4.0.tgz#3b0e5b96ef119e78a03135865b8bb0af1b948783" + resolved "https://registry.npmjs.org/reconnecting-websocket/-/reconnecting-websocket-4.4.0.tgz" integrity sha512-D2E33ceRPga0NvTDhJmphEgJ7FUYF0v4lr1ki0csq06OdlxKfugGzN0dSkxM/NfqCxYELK4KcaTOUOjTV6Dcng== -undici-types@~5.26.4: - version "5.26.5" - resolved "https://registry.yarnpkg.com/undici-types/-/undici-types-5.26.5.tgz#bcd539893d00b56e964fd2657a4866b221a65617" - integrity sha512-JlCMO+ehdEIKqlFxk6IfVoAUVmgz7cU7zD/h9XZ0qzeosSHmUJVOzSQvvYSYWXkFXC+IfLKSIffhv0sVZup6pA== +require-directory@^2.1.1: + version "2.1.1" -undici-types@~6.20.0: - version "6.20.0" - resolved "https://registry.yarnpkg.com/undici-types/-/undici-types-6.20.0.tgz#8171bf22c1f588d1554d55bf204bc624af388433" - integrity sha512-Ny6QZ2Nju20vw1SRHe3d9jVu6gJ+4e3+MMpqu7pqE5HT6WsTSlce++GQmK5UXS8mzV8DSYHrQH+Xrf2jVcuKNg== +restore-cursor@^5.0.0: + version "5.1.0" + dependencies: + onetime "^7.0.0" + signal-exit "^4.1.0" + +retry@^0.12.0: + version "0.12.0" + +retry@0.13.1: + version "0.13.1" + +semver@^7.7.1, semver@^7.7.3: + version "7.7.4" + +shebang-command@^2.0.0: + version "2.0.0" + dependencies: + shebang-regex "^3.0.0" + +shebang-regex@^3.0.0: + version "3.0.0" + +signal-exit@^3.0.2: + version "3.0.7" + +signal-exit@^4.1.0: + version "4.1.0" + +simple-git@^3.32.2: + version "3.32.2" + dependencies: + "@kwsites/file-exists" "^1.1.1" + "@kwsites/promise-deferred" "^1.1.1" + debug "^4.4.0" + +sleep-promise@^9.1.0: + version "9.1.0" + +slice-ansi@^7.1.0: + version "7.1.2" + dependencies: + ansi-styles "^6.2.1" + is-fullwidth-code-point "^5.0.0" + +slice-ansi@^8.0.0: + version "8.0.0" + dependencies: + ansi-styles "^6.2.3" + is-fullwidth-code-point "^5.1.0" + +stdin-discarder@^0.3.1: + version "0.3.1" + +stdout-update@^4.0.1: + version "4.0.1" + dependencies: + ansi-escapes "^6.2.0" + ansi-styles "^6.2.1" + string-width "^7.1.0" + strip-ansi "^7.1.0" + +steno@^4.0.2: + version "4.0.2" + +string-width@^4.1.0: + version "4.2.3" + dependencies: + emoji-regex "^8.0.0" + is-fullwidth-code-point "^3.0.0" + strip-ansi "^6.0.1" + +string-width@^4.2.0: + version "4.2.3" + dependencies: + emoji-regex "^8.0.0" + is-fullwidth-code-point "^3.0.0" + strip-ansi "^6.0.1" + +string-width@^4.2.3: + version "4.2.3" + dependencies: + emoji-regex "^8.0.0" + is-fullwidth-code-point "^3.0.0" + strip-ansi "^6.0.1" + +string-width@^7.1.0: + version "7.2.0" + dependencies: + emoji-regex "^10.3.0" + get-east-asian-width "^1.0.0" + strip-ansi "^7.1.0" + +string-width@^8.1.0: + version "8.2.0" + dependencies: + get-east-asian-width "^1.5.0" + strip-ansi "^7.1.2" + +strip-ansi@^6.0.0, strip-ansi@^6.0.1: + version "6.0.1" + dependencies: + ansi-regex "^5.0.1" + +strip-ansi@^7.1.0, strip-ansi@^7.1.2: + version "7.1.2" + dependencies: + ansi-regex "^6.0.1" + +strip-json-comments@~2.0.1: + version "2.0.1" + +tar@^7.5.6: + version "7.5.9" + dependencies: + "@isaacs/fs-minipass" "^4.0.0" + chownr "^3.0.0" + minipass "^7.1.2" + minizlib "^3.1.0" + yallist "^5.0.0" + +typescript@^5.9.3, typescript@>=5.0.0: + version "5.9.3" + +undici-types@~7.18.0: + version "7.18.2" + +universalify@^2.0.0: + version "2.0.1" + +url-join@^4.0.1: + version "4.0.1" + +validate-npm-package-name@^7.0.2: + version "7.0.2" + +which@^2.0.1: + version "2.0.2" + dependencies: + isexe "^2.0.0" + +which@^6.0.0, which@^6.0.1: + version "6.0.1" + dependencies: + isexe "^4.0.0" + +wrap-ansi@^7.0.0: + version "7.0.0" + dependencies: + ansi-styles "^4.0.0" + string-width "^4.1.0" + strip-ansi "^6.0.0" + +y18n@^5.0.5: + version "5.0.8" + +yallist@^5.0.0: + version "5.0.0" + +yargs-parser@^21.1.1: + version "21.1.1" + +yargs@^17.7.2: + version "17.7.2" + dependencies: + cliui "^8.0.1" + escalade "^3.1.1" + get-caller-file "^2.0.5" + require-directory "^2.1.1" + string-width "^4.2.3" + y18n "^5.0.5" + yargs-parser "^21.1.1" + +yoctocolors@^2.1.1: + version "2.1.2"