From 8e1835568cb21420299ebc50ca4628f30d36934f Mon Sep 17 00:00:00 2001 From: Ruben Kostandyan Date: Sat, 11 May 2024 22:02:49 +0200 Subject: [PATCH 01/12] Add stream support for Bedrock Anthropic --- core/llm/llms/Bedrock.ts | 79 +++++++++++++++++++++------------- core/package.json | 1 + extensions/vscode/package.json | 2 +- 3 files changed, 50 insertions(+), 32 deletions(-) diff --git a/core/llm/llms/Bedrock.ts b/core/llm/llms/Bedrock.ts index 1a6a883a8..90e91d304 100644 --- a/core/llm/llms/Bedrock.ts +++ b/core/llm/llms/Bedrock.ts @@ -10,13 +10,17 @@ import { ModelProvider, } from "../.."; import { stripImages } from "../countTokens"; +import { + BedrockRuntimeClient, + InvokeModelWithResponseStreamCommand, +} from "@aws-sdk/client-bedrock-runtime"; const aws4 = require("aws4"); const readFile = promisify(fs.readFile); namespace BedrockCommon { export enum Method { - Chat = "invoke", + Chat = "invoke-with-response-stream", Completion = "invoke-with-response-stream", } export const Service: string = "bedrock"; @@ -126,10 +130,7 @@ class Bedrock extends BaseLLM { const path = `/model/${model}/${apiMethod}`; const opts = { headers: { - accept: - apiMethod === BedrockCommon.Method.Chat - ? "application/json" - : "application/vnd.amazon.eventstream", + accept: "application/vnd.amazon.eventstream", "content-type": "application/json", "x-amzn-bedrock-accept": "*/*", }, @@ -172,39 +173,55 @@ class Bedrock extends BaseLLM { for await (const update of this._streamChat(messages, options)) { yield stripImages(update.content); } - // TODO: Couldn't seem to get this stream API working yet. Deferring to _streamChat. - // import { streamSse } from "../stream"; - // const response = await this._fetchWithAwsAuthSigV4(BedrockCommon.Method.Completion, JSON.stringify({ - // ...this._convertArgs(options), - // max_tokens: undefined, // Delete this key in favor of the correct one for the Completions API. - // max_tokens_to_sample: options.maxTokens, - // prompt: `\n\nHuman: ${prompt}\n\nAssistant:`, - // }) - // ); - // for await (const value of streamSse(response)) { - // if (value.completion) { - // yield value.completion - // } - // } } protected async *_streamChat( messages: ChatMessage[], options: CompletionOptions, ): AsyncGenerator { - const response = await this._fetchWithAwsAuthSigV4( - BedrockCommon.Method.Chat, - JSON.stringify({ - ...this._convertArgs(options), - messages: this._convertMessages(messages), - anthropic_version: "bedrock-2023-05-31", // Fixed, required parameter for Chat API. - }), - this._convertModelName(options.model), + const data = await readFile( + joinPath(process.env.HOME ?? os.homedir(), ".aws", "credentials"), + "utf8", ); - yield { - role: "assistant", - content: (await response.json()).content[0].text, - }; + const credentials = this._parseCredentialsFile(data); + const accessKeyId = credentials.bedrock.accessKeyId; + const secretAccessKey = credentials.bedrock.secretAccessKey; + const sessionToken = credentials.bedrock.sessionToken || ""; + const client = new BedrockRuntimeClient({ + region: this.region, + credentials: { + accessKeyId: accessKeyId, + secretAccessKey: secretAccessKey, + sessionToken: sessionToken, + }, + }); + const command = new InvokeModelWithResponseStreamCommand({ + body: new TextEncoder().encode( + JSON.stringify({ + anthropic_version: "bedrock-2023-05-31", + max_tokens: options.maxTokens, + system: this.systemMessage, + messages: this._convertMessages(messages), + temperature: options.temperature, + top_p: options.topP, + top_k: options.topK, + stop_sequences: options.stop + }), + ), + contentType: "application/json", + modelId: options.model, + }); + const response = await client.send(command); + if (response.body) { + for await (const value of response.body) { + const binaryChunk = value.chunk?.bytes; + const textChunk = new TextDecoder().decode(binaryChunk); + const chunk = JSON.parse(textChunk).delta?.text; + if (chunk) { + yield { role: "assistant", content: chunk }; + } + } + } } } diff --git a/core/package.json b/core/package.json index 46413251c..f2f3d7053 100644 --- a/core/package.json +++ b/core/package.json @@ -19,6 +19,7 @@ "ts-jest": "^29.1.1" }, "dependencies": { + "@aws-sdk/client-bedrock-runtime": "^3.574.0", "@mozilla/readability": "^0.5.0", "@octokit/rest": "^20.0.2", "@types/jsdom": "^21.1.6", diff --git a/extensions/vscode/package.json b/extensions/vscode/package.json index ad7348081..6119c8acd 100644 --- a/extensions/vscode/package.json +++ b/extensions/vscode/package.json @@ -1,7 +1,7 @@ { "name": "continue", "icon": "media/icon.png", - "version": "0.9.93", + "version": "0.9.94", "repository": { "type": "git", "url": "https://github.com/continuedev/continue" From 06da0caf2803de5b3b2fc4fdad820ea77d9dda4c Mon Sep 17 00:00:00 2001 From: Nate Sesti Date: Mon, 20 May 2024 08:40:04 -0700 Subject: [PATCH 02/12] =?UTF-8?q?=F0=9F=90=9B=20fix=20prompt=20file=20load?= =?UTF-8?q?ing=20bug?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- core/config/promptFile.ts | 17 +++++++++++------ 1 file changed, 11 insertions(+), 6 deletions(-) diff --git a/core/config/promptFile.ts b/core/config/promptFile.ts index 7ebd94435..494220b6a 100644 --- a/core/config/promptFile.ts +++ b/core/config/promptFile.ts @@ -8,12 +8,17 @@ export async function getPromptFiles( ide: IDE, dir: string, ): Promise<{ path: string; content: string }[]> { - const paths = await ide.listWorkspaceContents(dir); - const results = paths.map(async (path) => { - const content = await ide.readFile(path); - return { path, content }; - }); - return Promise.all(results); + try { + const paths = await ide.listWorkspaceContents(dir); + const results = paths.map(async (path) => { + const content = await ide.readFile(path); + return { path, content }; + }); + return Promise.all(results); + } catch (e) { + console.error(e); + return []; + } } export function slashCommandFromPromptFile( From 7cecbccceab94a1dbc23da6812fc5f9070726ffa Mon Sep 17 00:00:00 2001 From: sam <1211977+sambarnes@users.noreply.github.com> Date: Mon, 20 May 2024 14:57:12 -0600 Subject: [PATCH 03/12] docs: add setup guide for OpenRouter (#1284) --- .../reference/Model Providers/openrouter.md | 40 +++++++++++++++++++ docs/docs/setup/select-provider.md | 3 ++ 2 files changed, 43 insertions(+) create mode 100644 docs/docs/reference/Model Providers/openrouter.md diff --git a/docs/docs/reference/Model Providers/openrouter.md b/docs/docs/reference/Model Providers/openrouter.md new file mode 100644 index 000000000..5f2558399 --- /dev/null +++ b/docs/docs/reference/Model Providers/openrouter.md @@ -0,0 +1,40 @@ +# OpenRouter + +OpenRouter is a unified interface for commercial and open-source models, giving you access to the best models at the best prices. You can sign up [here](https://openrouter.ai/signup), create your API key on the [keys page](https://openrouter.ai/keys), and then choose a model from the [list of supported models](https://openrouter.ai/models). + +Change `~/.continue/config.json` to look like the following. Since OpenRouter is fully API compatible with OpenAI, it is recommended to stick with `"provider": "openai"`, even if they aren't necessarily the upstream provider. + +```json title="~/.continue/config.json" +{ + "models": [ + { + "title": "OpenRouter LLaMA 70 8B", + "provider": "openai", + "model": "meta-llama/llama-3-70b-instruct", + "apiBase": "https://openrouter.ai/api/v1", + "apiKey": "..." + } + ] +} +``` + +To utilize features such as provider preferences or model routing configuration, include these parameters inside the `models[].requestsOptions.extraBodyProperties` field of your plugin config. + +For example, to prevent extra long prompts from being compressed, you can explicitly turn off the feature like so: + +```json title="~/.continue/config.json" +{ + "models": [ + { + ... + "requestOptions": { + "extraBodyProperties": { + "transforms": [] + } + } + } + ] +} +``` + +Learn more about available settings [here](https://openrouter.ai/docs). diff --git a/docs/docs/setup/select-provider.md b/docs/docs/setup/select-provider.md index 949606aed..3fb5c00c3 100644 --- a/docs/docs/setup/select-provider.md +++ b/docs/docs/setup/select-provider.md @@ -38,6 +38,9 @@ You can deploy a model in your [AWS](https://github.com/continuedev/deploy-os-co ## SaaS +You can access both open-source and commercial LLMs via: +* [OpenRouter](../reference/Model%20Providers/openrouter.md) + ### Open-source models You can deploy open-source LLMs on a service using: From ebc02fe093f323bf90901b6aec6421bf0a575d4b Mon Sep 17 00:00:00 2001 From: Jose Vega Date: Mon, 20 May 2024 14:58:15 -0600 Subject: [PATCH 04/12] Update preIndexedDocs.ts (#1292) Add Bootstrap and Alpine.js as pre indexed docs. --- core/indexing/docs/preIndexedDocs.ts | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/core/indexing/docs/preIndexedDocs.ts b/core/indexing/docs/preIndexedDocs.ts index 1a1d9ecbb..a713c363d 100644 --- a/core/indexing/docs/preIndexedDocs.ts +++ b/core/indexing/docs/preIndexedDocs.ts @@ -231,6 +231,16 @@ const configs: SiteIndexingConfig[] = [ startUrl: "https://doc.qt.io/qtforpython-6/quickstart.html", rootUrl: "https://doc.qt.io/qtforpython-6/api.html", }, + { + title: "Bootstrap", + startUrl: "https://getbootstrap.com/docs/5.3/getting-started/introduction/", + rootUrl: "https://getbootstrap.com/docs/5.3/", + }, + { + title: "Alpine.js", + startUrl: "https://alpinejs.dev/start-here", + rootUrl: "https://alpinejs.dev/", + }, ]; export default configs; From 25d9e37ffadb713c218761764e9b16390d7bc431 Mon Sep 17 00:00:00 2001 From: Justin Milner <42585006+justinmilner1@users.noreply.github.com> Date: Mon, 20 May 2024 17:08:22 -0400 Subject: [PATCH 05/12] add toString (#1324) * add toString * Fix indentation --------- Co-authored-by: Justin Milner --- core/context/providers/DocsContextProvider.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/context/providers/DocsContextProvider.ts b/core/context/providers/DocsContextProvider.ts index 21b5b8a55..133acde12 100644 --- a/core/context/providers/DocsContextProvider.ts +++ b/core/context/providers/DocsContextProvider.ts @@ -114,7 +114,7 @@ class DocsContextProvider extends BaseContextProvider { return 1; } else { // Secondary criterion: Alphabetical order when both items are in the same category - return a.title.localeCompare(b.title); + return a.title.toString().localeCompare(b.title.toString()); } }); From 6f8528a5346c75ddfe05abcc3f43e6076dd97791 Mon Sep 17 00:00:00 2001 From: Nate Sesti Date: Mon, 20 May 2024 14:52:29 -0700 Subject: [PATCH 06/12] don't overwrite all models in onboarding --- core/config/onboarding.ts | 1 + core/indexing/LanceDbIndex.ts | 1 + 2 files changed, 2 insertions(+) diff --git a/core/config/onboarding.ts b/core/config/onboarding.ts index 23ee0ee94..49ef17786 100644 --- a/core/config/onboarding.ts +++ b/core/config/onboarding.ts @@ -82,6 +82,7 @@ export function setupLocalMode( provider: "ollama", model: "AUTODETECT", }, + ...config.models.filter((model) => model.provider !== "free-trial"), ], tabAutocompleteModel: { title: "Starcoder 3b", diff --git a/core/indexing/LanceDbIndex.ts b/core/indexing/LanceDbIndex.ts index 83c355bba..d7cbacc16 100644 --- a/core/indexing/LanceDbIndex.ts +++ b/core/indexing/LanceDbIndex.ts @@ -321,6 +321,7 @@ export class LanceDbIndex implements CodebaseIndex { const tableName = this.tableNameForTag(tag); const tableNames = await db.tableNames(); if (!tableNames.includes(tableName)) { + console.warn("Table not found in LanceDB", tableName); return []; } From e150f7d26fb076bcdfb1832013ecbff2b93b060d Mon Sep 17 00:00:00 2001 From: Nate Sesti Date: Mon, 20 May 2024 15:24:29 -0700 Subject: [PATCH 07/12] =?UTF-8?q?=F0=9F=94=A7=20override=20headers=20with?= =?UTF-8?q?=20custom=20headers?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- core/util/fetchWithOptions.ts | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/core/util/fetchWithOptions.ts b/core/util/fetchWithOptions.ts index 661c326d9..c7dd9e5aa 100644 --- a/core/util/fetchWithOptions.ts +++ b/core/util/fetchWithOptions.ts @@ -59,10 +59,14 @@ export function fetchwithRequestOptions( : new HttpProxyAgent(proxy, agentOptions) : new protocol.Agent(agentOptions); - const headers: { [key: string]: string } = requestOptions?.headers || {}; + let headers: { [key: string]: string } = {}; for (const [key, value] of Object.entries(init?.headers || {})) { headers[key] = value as string; } + headers = { + ...headers, + ...requestOptions?.headers, + }; // Replace localhost with 127.0.0.1 if (url.hostname === "localhost") { From 4523fe6d9cb4cd70e4579b04c59c53478ce8092d Mon Sep 17 00:00:00 2001 From: Nate Sesti Date: Mon, 20 May 2024 15:28:54 -0700 Subject: [PATCH 08/12] =?UTF-8?q?=E2=9C=A8=20allow=20overwriting=20slash?= =?UTF-8?q?=20command=20description?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- binary/package-lock.json | 1 + core/commands/index.ts | 118 ++++++++++++++++------------ extensions/vscode/package-lock.json | 6 +- gui/package-lock.json | 1 + 4 files changed, 73 insertions(+), 53 deletions(-) diff --git a/binary/package-lock.json b/binary/package-lock.json index bba562480..1dcb87515 100644 --- a/binary/package-lock.json +++ b/binary/package-lock.json @@ -39,6 +39,7 @@ "version": "1.0.12", "license": "Apache-2.0", "dependencies": { + "@aws-sdk/client-bedrock-runtime": "^3.574.0", "@mozilla/readability": "^0.5.0", "@octokit/rest": "^20.0.2", "@types/jsdom": "^21.1.6", diff --git a/core/commands/index.ts b/core/commands/index.ts index 72110c1a9..6978b3fcf 100644 --- a/core/commands/index.ts +++ b/core/commands/index.ts @@ -1,65 +1,83 @@ -import { CustomCommand, SlashCommand, SlashCommandDescription } from "../index.js"; +import { + CustomCommand, + SlashCommand, + SlashCommandDescription, +} from "../index.js"; import { stripImages } from "../llm/countTokens.js"; import { renderTemplatedString } from "../llm/llms/index.js"; import SlashCommands from "./slash/index.js"; export function slashFromCustomCommand( - customCommand: CustomCommand, + customCommand: CustomCommand, ): SlashCommand { - return { - name: customCommand.name, - description: customCommand.description, - run: async function* ({ input, llm, history, ide }) { - // Remove slash command prefix from input - let userInput = input; - if (userInput.startsWith(`/${customCommand.name}`)) { - userInput = userInput - .slice(customCommand.name.length + 1, userInput.length) - .trimStart(); - } + return { + name: customCommand.name, + description: customCommand.description, + run: async function* ({ input, llm, history, ide }) { + // Remove slash command prefix from input + let userInput = input; + if (userInput.startsWith(`/${customCommand.name}`)) { + userInput = userInput + .slice(customCommand.name.length + 1, userInput.length) + .trimStart(); + } - // Render prompt template - const promptUserInput = await renderTemplatedString( - customCommand.prompt, - ide.readFile.bind(ide), - { input: userInput }, - ); + // Render prompt template + const promptUserInput = await renderTemplatedString( + customCommand.prompt, + ide.readFile.bind(ide), + { input: userInput }, + ); - const messages = [...history]; - // Find the last chat message with this slash command and replace it with the user input - for (let i = messages.length - 1; i >= 0; i--) { - const {role, content} = messages[i]; - if (role !== "user") { - continue; - } + const messages = [...history]; + // Find the last chat message with this slash command and replace it with the user input + for (let i = messages.length - 1; i >= 0; i--) { + const { role, content } = messages[i]; + if (role !== "user") { + continue; + } - if (Array.isArray(content) && content.some((part) => part.text?.startsWith(`/${customCommand.name}`))) { - messages[i] = { ...messages[i], content: content.map((part) => { - return part.text?.startsWith(`/${customCommand.name}`) ? {...part, text: promptUserInput } : part; - }) }; - break; - } else if (typeof content === "string" && content.startsWith(`/${customCommand.name}`)) { - messages[i] = { ...messages[i], content: promptUserInput }; - break; - } - } + if ( + Array.isArray(content) && + content.some((part) => + part.text?.startsWith(`/${customCommand.name}`), + ) + ) { + messages[i] = { + ...messages[i], + content: content.map((part) => { + return part.text?.startsWith(`/${customCommand.name}`) + ? { ...part, text: promptUserInput } + : part; + }), + }; + break; + } else if ( + typeof content === "string" && + content.startsWith(`/${customCommand.name}`) + ) { + messages[i] = { ...messages[i], content: promptUserInput }; + break; + } + } - for await (const chunk of llm.streamChat(messages)) { - yield stripImages(chunk.content); - } - }, - }; + for await (const chunk of llm.streamChat(messages)) { + yield stripImages(chunk.content); + } + }, + }; } export function slashCommandFromDescription( - desc: SlashCommandDescription, + desc: SlashCommandDescription, ): SlashCommand | undefined { - const cmd = SlashCommands.find((cmd) => cmd.name === desc.name); - if (!cmd) { - return undefined; - } - return { - ...cmd, - params: desc.params, - }; + const cmd = SlashCommands.find((cmd) => cmd.name === desc.name); + if (!cmd) { + return undefined; + } + return { + ...cmd, + params: desc.params, + description: desc.description ?? cmd.description, + }; } diff --git a/extensions/vscode/package-lock.json b/extensions/vscode/package-lock.json index 553506dda..ed80fd5dd 100644 --- a/extensions/vscode/package-lock.json +++ b/extensions/vscode/package-lock.json @@ -1,12 +1,12 @@ { "name": "continue", - "version": "0.9.137", + "version": "0.9.94", "lockfileVersion": 3, "requires": true, "packages": { "": { "name": "continue", - "version": "0.9.137", + "version": "0.9.94", "license": "Apache-2.0", "dependencies": { "@electron/rebuild": "^3.2.10", @@ -21,7 +21,6 @@ "cors": "^2.8.5", "dbinfoz": "^0.1.4", "downshift": "^7.6.0", - "esbuild": "^0.17.19", "express": "^4.18.2", "fkill": "^8.1.0", "follow-redirects": "^1.15.4", @@ -92,6 +91,7 @@ "version": "1.0.12", "license": "Apache-2.0", "dependencies": { + "@aws-sdk/client-bedrock-runtime": "^3.574.0", "@mozilla/readability": "^0.5.0", "@octokit/rest": "^20.0.2", "@types/jsdom": "^21.1.6", diff --git a/gui/package-lock.json b/gui/package-lock.json index cbbec1ec4..4328f7d72 100644 --- a/gui/package-lock.json +++ b/gui/package-lock.json @@ -83,6 +83,7 @@ "version": "1.0.12", "license": "Apache-2.0", "dependencies": { + "@aws-sdk/client-bedrock-runtime": "^3.574.0", "@mozilla/readability": "^0.5.0", "@octokit/rest": "^20.0.2", "@types/jsdom": "^21.1.6", From 424f7d59e3928dd4bb50efaebeeaf6339d5c27cd Mon Sep 17 00:00:00 2001 From: Nate Sesti <33237525+sestinj@users.noreply.github.com> Date: Mon, 20 May 2024 20:55:54 -0700 Subject: [PATCH 09/12] feature flag (#1327) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * ➕ feature flags dependency * 🎨 make getHeaders awaitable * 🔒️ token count for abuse monitoring --- core/context/rerankers/freeTrial.ts | 4 +- core/continueServer/stubs/headers.ts | 2 +- .../embeddings/FreeTrialEmbeddingsProvider.ts | 6 +- core/llm/llms/FreeTrial.ts | 38 ++++++++- core/package-lock.json | 77 ++++++++++++++++++- core/package.json | 1 + 6 files changed, 116 insertions(+), 12 deletions(-) diff --git a/core/context/rerankers/freeTrial.ts b/core/context/rerankers/freeTrial.ts index a43930543..4e9d4c10d 100644 --- a/core/context/rerankers/freeTrial.ts +++ b/core/context/rerankers/freeTrial.ts @@ -1,6 +1,6 @@ import fetch from "node-fetch"; -import { Chunk, Reranker } from "../../index.js"; import { getHeaders } from "../../continueServer/stubs/headers.js"; +import { Chunk, Reranker } from "../../index.js"; import { SERVER_URL } from "../../util/parameters.js"; export class FreeTrialReranker implements Reranker { @@ -11,7 +11,7 @@ export class FreeTrialReranker implements Reranker { method: "POST", headers: { "Content-Type": "application/json", - ...getHeaders(), + ...(await getHeaders()), }, body: JSON.stringify({ query, diff --git a/core/continueServer/stubs/headers.ts b/core/continueServer/stubs/headers.ts index f7bd60391..df20542e7 100644 --- a/core/continueServer/stubs/headers.ts +++ b/core/continueServer/stubs/headers.ts @@ -1,3 +1,3 @@ -export function getHeaders() { +export async function getHeaders() { return {}; } diff --git a/core/indexing/embeddings/FreeTrialEmbeddingsProvider.ts b/core/indexing/embeddings/FreeTrialEmbeddingsProvider.ts index 2a5a29625..0c51d1b34 100644 --- a/core/indexing/embeddings/FreeTrialEmbeddingsProvider.ts +++ b/core/indexing/embeddings/FreeTrialEmbeddingsProvider.ts @@ -1,6 +1,6 @@ import { Response } from "node-fetch"; -import { EmbedOptions } from "../../index.js"; import { getHeaders } from "../../continueServer/stubs/headers.js"; +import { EmbedOptions } from "../../index.js"; import { SERVER_URL } from "../../util/parameters.js"; import { withExponentialBackoff } from "../../util/withExponentialBackoff.js"; import BaseEmbeddingsProvider from "./BaseEmbeddingsProvider.js"; @@ -30,7 +30,7 @@ class FreeTrialEmbeddingsProvider extends BaseEmbeddingsProvider { await Promise.all( batchedChunks.map(async (batch) => { const fetchWithBackoff = () => - withExponentialBackoff(() => + withExponentialBackoff(async () => this.fetch(new URL("embeddings", SERVER_URL), { method: "POST", body: JSON.stringify({ @@ -39,7 +39,7 @@ class FreeTrialEmbeddingsProvider extends BaseEmbeddingsProvider { }), headers: { "Content-Type": "application/json", - ...getHeaders(), + ...(await getHeaders()), }, }), ); diff --git a/core/llm/llms/FreeTrial.ts b/core/llm/llms/FreeTrial.ts index 683a873c3..094cfb517 100644 --- a/core/llm/llms/FreeTrial.ts +++ b/core/llm/llms/FreeTrial.ts @@ -1,20 +1,36 @@ import { getHeaders } from "../../continueServer/stubs/headers.js"; import { ChatMessage, CompletionOptions, ModelProvider } from "../../index.js"; import { SERVER_URL } from "../../util/parameters.js"; +import { Telemetry } from "../../util/posthog.js"; import { BaseLLM } from "../index.js"; import { streamResponse } from "../stream.js"; class FreeTrial extends BaseLLM { static providerName: ModelProvider = "free-trial"; - private _getHeaders() { + private async _getHeaders() { return { uniqueId: this.uniqueId || "None", "Content-Type": "application/json", - ...getHeaders(), + ...(await getHeaders()), }; } + private async _countTokens(prompt: string, model: string, isPrompt: boolean) { + if (!Telemetry.client) { + throw new Error( + 'In order to use the free trial, telemetry must be enabled so that we can monitor abuse. To enable telemetry, set "allowAnonymousTelemetry": true in config.json and make sure the box is checked in IDE settings. If you use your own model (local or API key), telemetry will never be required.', + ); + } + const event = isPrompt + ? "free_trial_prompt_tokens" + : "free_trial_completion_tokens"; + Telemetry.capture(event, { + tokens: this.countTokens(prompt), + model, + }); + } + private _convertArgs(options: CompletionOptions): any { return { model: options.model, @@ -36,18 +52,23 @@ class FreeTrial extends BaseLLM { ): AsyncGenerator { const args = this._convertArgs(this.collectArgs(options)); + await this._countTokens(prompt, args.model, true); + const response = await this.fetch(`${SERVER_URL}/stream_complete`, { method: "POST", - headers: this._getHeaders(), + headers: await this._getHeaders(), body: JSON.stringify({ prompt, ...args, }), }); + let completion = ""; for await (const value of streamResponse(response)) { yield value; + completion += value; } + this._countTokens(completion, args.model, false); } protected _convertMessage(message: ChatMessage) { @@ -74,21 +95,30 @@ class FreeTrial extends BaseLLM { ): AsyncGenerator { const args = this._convertArgs(this.collectArgs(options)); + await this._countTokens( + messages.map((m) => m.content).join("\n"), + args.model, + true, + ); + const response = await this.fetch(`${SERVER_URL}/stream_chat`, { method: "POST", - headers: this._getHeaders(), + headers: await this._getHeaders(), body: JSON.stringify({ messages: messages.map(this._convertMessage), ...args, }), }); + let completion = ""; for await (const chunk of streamResponse(response)) { yield { role: "assistant", content: chunk, }; + completion += chunk; } + this._countTokens(completion, args.model, false); } async listModels(): Promise { diff --git a/core/package-lock.json b/core/package-lock.json index 4eb7b6cff..102405e9e 100644 --- a/core/package-lock.json +++ b/core/package-lock.json @@ -32,6 +32,7 @@ "ignore": "^5.3.1", "js-tiktoken": "^1.0.8", "jsdom": "^24.0.0", + "launchdarkly-node-client-sdk": "^3.2.0", "llm-code-highlighter": "^0.0.14", "node-fetch": "^3.3.2", "node-html-markdown": "^1.3.0", @@ -6647,8 +6648,7 @@ "node_modules/graceful-fs": { "version": "4.2.11", "resolved": "https://registry.npmjs.org/graceful-fs/-/graceful-fs-4.2.11.tgz", - "integrity": "sha512-RbJ5/jmFcNNCcDV5o9eTnBLJ/HszWV0P73bc+Ff4nS/rJj+YaS6IGyiOL0VoBYX+l1Wrl3k63h/KrH+nhJ0XvQ==", - "devOptional": true + "integrity": "sha512-RbJ5/jmFcNNCcDV5o9eTnBLJ/HszWV0P73bc+Ff4nS/rJj+YaS6IGyiOL0VoBYX+l1Wrl3k63h/KrH+nhJ0XvQ==" }, "node_modules/graphemer": { "version": "1.4.0", @@ -8197,6 +8197,50 @@ "node": ">=6" } }, + "node_modules/launchdarkly-eventsource": { + "version": "2.0.2", + "resolved": "https://registry.npmjs.org/launchdarkly-eventsource/-/launchdarkly-eventsource-2.0.2.tgz", + "integrity": "sha512-9Aj5KgtbV5E7XGA74Z7Ui2fSwyeNlkGtbPkdTsPOQBzT7/3ZNtOjplg+HWhNMtsM2B9orFebTy3XBGxidyHbQg==", + "engines": { + "node": ">=0.12.0" + } + }, + "node_modules/launchdarkly-js-sdk-common": { + "version": "5.2.0", + "resolved": "https://registry.npmjs.org/launchdarkly-js-sdk-common/-/launchdarkly-js-sdk-common-5.2.0.tgz", + "integrity": "sha512-aLv2ZrUv229RIwLtFhdILu2aJS/fqGSJzTk4L/bCDZA8RuIh7PutI3ui/AJeNnzPzjKzdEQZw6wVhkVc84baog==", + "dependencies": { + "base64-js": "^1.3.0", + "fast-deep-equal": "^2.0.1", + "uuid": "^8.0.0" + } + }, + "node_modules/launchdarkly-js-sdk-common/node_modules/fast-deep-equal": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/fast-deep-equal/-/fast-deep-equal-2.0.1.tgz", + "integrity": "sha512-bCK/2Z4zLidyB4ReuIsvALH6w31YfAQDmXMqMx6FyfHqvBxtjC0eRumeSu4Bs3XtXwpyIywtSTrVT99BxY1f9w==" + }, + "node_modules/launchdarkly-js-sdk-common/node_modules/uuid": { + "version": "8.3.2", + "resolved": "https://registry.npmjs.org/uuid/-/uuid-8.3.2.tgz", + "integrity": "sha512-+NYs2QeMWy+GWFOEm9xnn6HCDp0l7QBD7ml8zLUmJ+93Q5NF0NocErnwkTkXVFNiX3/fpC6afS8Dhb/gz7R7eg==", + "bin": { + "uuid": "dist/bin/uuid" + } + }, + "node_modules/launchdarkly-node-client-sdk": { + "version": "3.2.0", + "resolved": "https://registry.npmjs.org/launchdarkly-node-client-sdk/-/launchdarkly-node-client-sdk-3.2.0.tgz", + "integrity": "sha512-S4WGbf0r1xtU9fAkjGSjRk95N01uSzIE+vWvpio8tMIxKB04nRMMig1pXdtI1OWgz6MRalTDYeCdcIF55TZ9HQ==", + "dependencies": { + "launchdarkly-eventsource": "2.0.2", + "launchdarkly-js-sdk-common": "5.2.0", + "node-localstorage": "^1.3.1" + }, + "engines": { + "node": ">= 12.0.0" + } + }, "node_modules/leven": { "version": "3.1.0", "resolved": "https://registry.npmjs.org/leven/-/leven-3.1.0.tgz", @@ -8822,6 +8866,27 @@ "integrity": "sha512-O5lz91xSOeoXP6DulyHfllpq+Eg00MWitZIbtPfoSEvqIHdl5gfcY6hYzDWnj0qD5tz52PI08u9qUvSVeUBeHw==", "dev": true }, + "node_modules/node-localstorage": { + "version": "1.3.1", + "resolved": "https://registry.npmjs.org/node-localstorage/-/node-localstorage-1.3.1.tgz", + "integrity": "sha512-NMWCSWWc6JbHT5PyWlNT2i8r7PgGYXVntmKawY83k/M0UJScZ5jirb61TLnqKwd815DfBQu+lR3sRw08SPzIaQ==", + "dependencies": { + "write-file-atomic": "^1.1.4" + }, + "engines": { + "node": ">=0.12" + } + }, + "node_modules/node-localstorage/node_modules/write-file-atomic": { + "version": "1.3.4", + "resolved": "https://registry.npmjs.org/write-file-atomic/-/write-file-atomic-1.3.4.tgz", + "integrity": "sha512-SdrHoC/yVBPpV0Xq/mUZQIpW2sWXAShb/V4pomcJXh92RuaO+f3UTWItiR3Px+pLnV2PvC2/bfn5cwr5X6Vfxw==", + "dependencies": { + "graceful-fs": "^4.1.11", + "imurmurhash": "^0.1.4", + "slide": "^1.1.5" + } + }, "node_modules/node-releases": { "version": "2.0.14", "resolved": "https://registry.npmjs.org/node-releases/-/node-releases-2.0.14.tgz", @@ -10398,6 +10463,14 @@ "node": ">=8" } }, + "node_modules/slide": { + "version": "1.1.6", + "resolved": "https://registry.npmjs.org/slide/-/slide-1.1.6.tgz", + "integrity": "sha512-NwrtjCg+lZoqhFU8fOwl4ay2ei8PaqCBOUV3/ektPY9trO1yQ1oXEfmHAhKArUVUr/hOHvy5f6AdP17dCM0zMw==", + "engines": { + "node": "*" + } + }, "node_modules/smart-buffer": { "version": "4.2.0", "resolved": "https://registry.npmjs.org/smart-buffer/-/smart-buffer-4.2.0.tgz", diff --git a/core/package.json b/core/package.json index 454c298a7..bbf7d43b4 100644 --- a/core/package.json +++ b/core/package.json @@ -50,6 +50,7 @@ "ignore": "^5.3.1", "js-tiktoken": "^1.0.8", "jsdom": "^24.0.0", + "launchdarkly-node-client-sdk": "^3.2.0", "llm-code-highlighter": "^0.0.14", "node-fetch": "^3.3.2", "node-html-markdown": "^1.3.0", From 2509dd5c618427c067324a08091fecb9b6efd818 Mon Sep 17 00:00:00 2001 From: Nate Sesti Date: Mon, 20 May 2024 21:01:45 -0700 Subject: [PATCH 10/12] =?UTF-8?q?=F0=9F=91=B7=20remove=20win32-arm64=20tar?= =?UTF-8?q?get?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- binary/build.js | 17 ++++++++++------- 1 file changed, 10 insertions(+), 7 deletions(-) diff --git a/binary/build.js b/binary/build.js index a390757c3..e66a55563 100644 --- a/binary/build.js +++ b/binary/build.js @@ -15,14 +15,17 @@ function execCmdSync(cmd) { } const esbuildOutputFile = "out/index.js"; -const platforms = ["darwin", "linux", "win32"]; -const architectures = ["x64", "arm64"]; -let targets = platforms.flatMap((platform) => - architectures.map((arch) => `${platform}-${arch}`), -); +const targets = [ + "darwin-x64", + "darwin-arm64", + "linux-x64", + "linux-arm64", + "win32-x64", +]; + const assetBackups = [ "node_modules/win-ca/lib/crypt32-ia32.node.bak", - "node_modules/win-ca/lib/crypt32-x64.node.bak" + "node_modules/win-ca/lib/crypt32-x64.node.bak", ]; let esbuildOnly = false; @@ -161,7 +164,7 @@ async function installNodeModuleInTempDirAndCopyToCurrent(package, toCopy) { // delete asset backups generated by previous pkg invocations, if present for (const assetPath of assetBackups) { - fs.rmSync(assetPath, {force: true}); + fs.rmSync(assetPath, { force: true }); } console.log("[info] Building with esbuild..."); From 90fe5706171b94cb7054791be79711578c719327 Mon Sep 17 00:00:00 2001 From: Jose Vega Date: Tue, 21 May 2024 01:14:30 -0600 Subject: [PATCH 11/12] Update build.js (#1330) Fix error: EBUSY: resource busy or locked, rmdir '...\continue\binary\tmp\continue-node_modules-lancedb' --- binary/build.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/binary/build.js b/binary/build.js index e66a55563..4028645f2 100644 --- a/binary/build.js +++ b/binary/build.js @@ -94,7 +94,7 @@ async function installNodeModuleInTempDirAndCopyToCurrent(package, toCopy) { }); } finally { // Clean up the temporary directory - rimrafSync(tempDir); + // rimrafSync(tempDir); // Return to the original directory process.chdir(currentDir); From f6fedfc7c825cd7b0a7581b0070c96644a00f100 Mon Sep 17 00:00:00 2001 From: Nate Sesti Date: Tue, 21 May 2024 09:21:43 -0700 Subject: [PATCH 12/12] =?UTF-8?q?=F0=9F=93=8C=20pin=20onnxruntime=20versio?= =?UTF-8?q?n=20to=20match=20transformers.js?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../TransformersJsEmbeddingsProvider.ts | 3 +- core/package-lock.json | 752 ++++-------------- core/package.json | 8 +- extensions/vscode/package-lock.json | 82 +- extensions/vscode/scripts/prepackage.js | 4 +- gui/package-lock.json | 587 +------------- 6 files changed, 233 insertions(+), 1203 deletions(-) diff --git a/core/indexing/embeddings/TransformersJsEmbeddingsProvider.ts b/core/indexing/embeddings/TransformersJsEmbeddingsProvider.ts index 67fce631f..941f6cc0b 100644 --- a/core/indexing/embeddings/TransformersJsEmbeddingsProvider.ts +++ b/core/indexing/embeddings/TransformersJsEmbeddingsProvider.ts @@ -1,3 +1,4 @@ +// prettier-ignore // @ts-ignore import { PipelineType, env, pipeline } from "../../vendor/modules/@xenova/transformers/src/transformers.js"; @@ -31,7 +32,7 @@ export class TransformersJsEmbeddingsProvider extends BaseEmbeddingsProvider { constructor(modelPath?: string) { super({ model: "all-MiniLM-L2-v6" }, () => Promise.resolve(null)); if (modelPath) { - env.localModelPath = modelPath; + // env.localModelPath = modelPath; } } diff --git a/core/package-lock.json b/core/package-lock.json index 102405e9e..c82bbeade 100644 --- a/core/package-lock.json +++ b/core/package-lock.json @@ -17,7 +17,7 @@ "@types/node-fetch": "^2.6.11", "@typescript-eslint/eslint-plugin": "^7.8.0", "@typescript-eslint/parser": "^7.8.0", - "@xenova/transformers": "^2.14.0", + "@xenova/transformers": "2.14.0", "adf-to-md": "^1.1.0", "axios": "^1.6.7", "cheerio": "^1.0.0-rc.12", @@ -37,7 +37,7 @@ "node-fetch": "^3.3.2", "node-html-markdown": "^1.3.0", "ollama": "^0.4.6", - "onnxruntime-node": "1.17.3-rev.1", + "onnxruntime-node": "1.14.0", "openai": "^4.20.1", "pg": "^8.11.3", "posthog-node": "^3.6.3", @@ -63,8 +63,8 @@ "eslint-plugin-import": "^2.29.1", "eslint-plugin-require-extensions": "^0.1.3", "jest": "^29.7.0", - "onnxruntime-common": "^1.17.3", - "onnxruntime-web": "^1.17.3", + "onnxruntime-common": "1.14.0", + "onnxruntime-web": "1.14.0", "ts-jest": "^29.1.1" }, "engines": { @@ -1740,9 +1740,9 @@ "optional": true }, "node_modules/@huggingface/jinja": { - "version": "0.2.2", - "resolved": "https://registry.npmjs.org/@huggingface/jinja/-/jinja-0.2.2.tgz", - "integrity": "sha512-/KPde26khDUIPkTGU82jdtTW9UAuvUTumCAbFs/7giR0SxsvZC4hru51PBvpijH6BVkHcROcvZM/lpy5h1jRRA==", + "version": "0.1.3", + "resolved": "https://registry.npmjs.org/@huggingface/jinja/-/jinja-0.1.3.tgz", + "integrity": "sha512-9KsiorsdIK8+7VmlamAT7Uh90zxAhC/SeKaKc80v58JhtPYuwaJpmR/ST7XAUxrHAFqHTCoTH5aJnJDwSL6xIQ==", "engines": { "node": ">=18" } @@ -1797,114 +1797,6 @@ "resolved": "https://registry.npmjs.org/@humanwhocodes/object-schema/-/object-schema-2.0.3.tgz", "integrity": "sha512-93zYdMES/c1D69yZiKDBj0V24vqNzB/koF26KPaagAfd3P/4gUlh3Dys5ogAK+Exi9QyzlD8x/08Zt7wIKcDcA==" }, - "node_modules/@isaacs/cliui": { - "version": "8.0.2", - "resolved": "https://registry.npmjs.org/@isaacs/cliui/-/cliui-8.0.2.tgz", - "integrity": "sha512-O8jcjabXaleOG9DQ0+ARXWZBTfnP4WNAqzuiJK7ll44AmxGKv/J2M4TPjxjY3znBCfvBXFzucm1twdyFybFqEA==", - "dependencies": { - "string-width": "^5.1.2", - "string-width-cjs": "npm:string-width@^4.2.0", - "strip-ansi": "^7.0.1", - "strip-ansi-cjs": "npm:strip-ansi@^6.0.1", - "wrap-ansi": "^8.1.0", - "wrap-ansi-cjs": "npm:wrap-ansi@^7.0.0" - }, - "engines": { - "node": ">=12" - } - }, - "node_modules/@isaacs/cliui/node_modules/ansi-regex": { - "version": "6.0.1", - "resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-6.0.1.tgz", - "integrity": "sha512-n5M855fKb2SsfMIiFFoVrABHJC8QtHwVx+mHWP3QcEqBHYienj5dHSgjbxtC0WEZXYt4wcD6zrQElDPhFuZgfA==", - "engines": { - "node": ">=12" - }, - "funding": { - "url": "https://github.com/chalk/ansi-regex?sponsor=1" - } - }, - "node_modules/@isaacs/cliui/node_modules/ansi-styles": { - "version": "6.2.1", - "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-6.2.1.tgz", - "integrity": "sha512-bN798gFfQX+viw3R7yrGWRqnrN2oRkEkUjjl4JNn4E8GxxbjtG3FbrEIIY3l8/hrwUwIeCZvi4QuOTP4MErVug==", - "engines": { - "node": ">=12" - }, - "funding": { - "url": "https://github.com/chalk/ansi-styles?sponsor=1" - } - }, - "node_modules/@isaacs/cliui/node_modules/emoji-regex": { - "version": "9.2.2", - "resolved": "https://registry.npmjs.org/emoji-regex/-/emoji-regex-9.2.2.tgz", - "integrity": "sha512-L18DaJsXSUk2+42pv8mLs5jJT2hqFkFE4j21wOmgbUqsZ2hL72NsUU785g9RXgo3s0ZNgVl42TiHp3ZtOv/Vyg==" - }, - "node_modules/@isaacs/cliui/node_modules/string-width": { - "version": "5.1.2", - "resolved": "https://registry.npmjs.org/string-width/-/string-width-5.1.2.tgz", - "integrity": "sha512-HnLOCR3vjcY8beoNLtcjZ5/nxn2afmME6lhrDrebokqMap+XbeW8n9TXpPDOqdGK5qcI3oT0GKTW6wC7EMiVqA==", - "dependencies": { - "eastasianwidth": "^0.2.0", - "emoji-regex": "^9.2.2", - "strip-ansi": "^7.0.1" - }, - "engines": { - "node": ">=12" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - }, - "node_modules/@isaacs/cliui/node_modules/strip-ansi": { - "version": "7.1.0", - "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-7.1.0.tgz", - "integrity": "sha512-iq6eVVI64nQQTRYq2KtEg2d2uU7LElhTJwsH4YzIHZshxlgZms/wIc4VoDQTlG/IvVIrBKG06CrZnp0qv7hkcQ==", - "dependencies": { - "ansi-regex": "^6.0.1" - }, - "engines": { - "node": ">=12" - }, - "funding": { - "url": "https://github.com/chalk/strip-ansi?sponsor=1" - } - }, - "node_modules/@isaacs/cliui/node_modules/wrap-ansi": { - "version": "8.1.0", - "resolved": "https://registry.npmjs.org/wrap-ansi/-/wrap-ansi-8.1.0.tgz", - "integrity": "sha512-si7QWI6zUMq56bESFvagtmzMdGOtoxfR+Sez11Mobfc7tm+VkUckk9bW2UeffTGVUbOksxmSw0AA2gs8g71NCQ==", - "dependencies": { - "ansi-styles": "^6.1.0", - "string-width": "^5.0.1", - "strip-ansi": "^7.0.1" - }, - "engines": { - "node": ">=12" - }, - "funding": { - "url": "https://github.com/chalk/wrap-ansi?sponsor=1" - } - }, - "node_modules/@isaacs/fs-minipass": { - "version": "4.0.1", - "resolved": "https://registry.npmjs.org/@isaacs/fs-minipass/-/fs-minipass-4.0.1.tgz", - "integrity": "sha512-wgm9Ehl2jpeqP3zw/7mo3kRHFp5MEDhqAdwy1fTGkHAwnkGOVsgpvQhL8B5n1qlb01jV3n/bI0ZfZp5lWA1k4w==", - "dependencies": { - "minipass": "^7.0.4" - }, - "engines": { - "node": ">=18.0.0" - } - }, - "node_modules/@isaacs/fs-minipass/node_modules/minipass": { - "version": "7.1.1", - "resolved": "https://registry.npmjs.org/minipass/-/minipass-7.1.1.tgz", - "integrity": "sha512-UZ7eQ+h8ywIRAW1hIEl2AqdwzJucU/Kp59+8kkZeSvafXhZjul247BvIJjEVFVeON6d7lM46XX1HXCduKAS8VA==", - "engines": { - "node": ">=16 || 14 >=14.17" - } - }, "node_modules/@istanbuljs/load-nyc-config": { "version": "1.1.0", "resolved": "https://registry.npmjs.org/@istanbuljs/load-nyc-config/-/load-nyc-config-1.1.0.tgz", @@ -2617,15 +2509,6 @@ "@octokit/openapi-types": "^22.2.0" } }, - "node_modules/@pkgjs/parseargs": { - "version": "0.11.0", - "resolved": "https://registry.npmjs.org/@pkgjs/parseargs/-/parseargs-0.11.0.tgz", - "integrity": "sha512-+1VkjdD0QBLPodGrJUeqarH8VAIvQODIbwh9XpP5Syisf7YoQgsJKPNFoqqLQlu+VQ/tVSshMR6loPMn8U+dPg==", - "optional": true, - "engines": { - "node": ">=14" - } - }, "node_modules/@protobufjs/aspromise": { "version": "1.1.2", "resolved": "https://registry.npmjs.org/@protobufjs/aspromise/-/aspromise-1.1.2.tgz", @@ -3495,15 +3378,15 @@ "dev": true }, "node_modules/@typescript-eslint/eslint-plugin": { - "version": "7.9.0", - "resolved": "https://registry.npmjs.org/@typescript-eslint/eslint-plugin/-/eslint-plugin-7.9.0.tgz", - "integrity": "sha512-6e+X0X3sFe/G/54aC3jt0txuMTURqLyekmEHViqyA2VnxhLMpvA6nqmcjIy+Cr9tLDHPssA74BP5Mx9HQIxBEA==", + "version": "7.10.0", + "resolved": "https://registry.npmjs.org/@typescript-eslint/eslint-plugin/-/eslint-plugin-7.10.0.tgz", + "integrity": "sha512-PzCr+a/KAef5ZawX7nbyNwBDtM1HdLIT53aSA2DDlxmxMngZ43O8SIePOeX8H5S+FHXeI6t97mTt/dDdzY4Fyw==", "dependencies": { "@eslint-community/regexpp": "^4.10.0", - "@typescript-eslint/scope-manager": "7.9.0", - "@typescript-eslint/type-utils": "7.9.0", - "@typescript-eslint/utils": "7.9.0", - "@typescript-eslint/visitor-keys": "7.9.0", + "@typescript-eslint/scope-manager": "7.10.0", + "@typescript-eslint/type-utils": "7.10.0", + "@typescript-eslint/utils": "7.10.0", + "@typescript-eslint/visitor-keys": "7.10.0", "graphemer": "^1.4.0", "ignore": "^5.3.1", "natural-compare": "^1.4.0", @@ -3527,14 +3410,14 @@ } }, "node_modules/@typescript-eslint/parser": { - "version": "7.9.0", - "resolved": "https://registry.npmjs.org/@typescript-eslint/parser/-/parser-7.9.0.tgz", - "integrity": "sha512-qHMJfkL5qvgQB2aLvhUSXxbK7OLnDkwPzFalg458pxQgfxKDfT1ZDbHQM/I6mDIf/svlMkj21kzKuQ2ixJlatQ==", + "version": "7.10.0", + "resolved": "https://registry.npmjs.org/@typescript-eslint/parser/-/parser-7.10.0.tgz", + "integrity": "sha512-2EjZMA0LUW5V5tGQiaa2Gys+nKdfrn2xiTIBLR4fxmPmVSvgPcKNW+AE/ln9k0A4zDUti0J/GZXMDupQoI+e1w==", "dependencies": { - "@typescript-eslint/scope-manager": "7.9.0", - "@typescript-eslint/types": "7.9.0", - "@typescript-eslint/typescript-estree": "7.9.0", - "@typescript-eslint/visitor-keys": "7.9.0", + "@typescript-eslint/scope-manager": "7.10.0", + "@typescript-eslint/types": "7.10.0", + "@typescript-eslint/typescript-estree": "7.10.0", + "@typescript-eslint/visitor-keys": "7.10.0", "debug": "^4.3.4" }, "engines": { @@ -3554,12 +3437,12 @@ } }, "node_modules/@typescript-eslint/scope-manager": { - "version": "7.9.0", - "resolved": "https://registry.npmjs.org/@typescript-eslint/scope-manager/-/scope-manager-7.9.0.tgz", - "integrity": "sha512-ZwPK4DeCDxr3GJltRz5iZejPFAAr4Wk3+2WIBaj1L5PYK5RgxExu/Y68FFVclN0y6GGwH8q+KgKRCvaTmFBbgQ==", + "version": "7.10.0", + "resolved": "https://registry.npmjs.org/@typescript-eslint/scope-manager/-/scope-manager-7.10.0.tgz", + "integrity": "sha512-7L01/K8W/VGl7noe2mgH0K7BE29Sq6KAbVmxurj8GGaPDZXPr8EEQ2seOeAS+mEV9DnzxBQB6ax6qQQ5C6P4xg==", "dependencies": { - "@typescript-eslint/types": "7.9.0", - "@typescript-eslint/visitor-keys": "7.9.0" + "@typescript-eslint/types": "7.10.0", + "@typescript-eslint/visitor-keys": "7.10.0" }, "engines": { "node": "^18.18.0 || >=20.0.0" @@ -3570,12 +3453,12 @@ } }, "node_modules/@typescript-eslint/type-utils": { - "version": "7.9.0", - "resolved": "https://registry.npmjs.org/@typescript-eslint/type-utils/-/type-utils-7.9.0.tgz", - "integrity": "sha512-6Qy8dfut0PFrFRAZsGzuLoM4hre4gjzWJB6sUvdunCYZsYemTkzZNwF1rnGea326PHPT3zn5Lmg32M/xfJfByA==", + "version": "7.10.0", + "resolved": "https://registry.npmjs.org/@typescript-eslint/type-utils/-/type-utils-7.10.0.tgz", + "integrity": "sha512-D7tS4WDkJWrVkuzgm90qYw9RdgBcrWmbbRkrLA4d7Pg3w0ttVGDsvYGV19SH8gPR5L7OtcN5J1hTtyenO9xE9g==", "dependencies": { - "@typescript-eslint/typescript-estree": "7.9.0", - "@typescript-eslint/utils": "7.9.0", + "@typescript-eslint/typescript-estree": "7.10.0", + "@typescript-eslint/utils": "7.10.0", "debug": "^4.3.4", "ts-api-utils": "^1.3.0" }, @@ -3596,9 +3479,9 @@ } }, "node_modules/@typescript-eslint/types": { - "version": "7.9.0", - "resolved": "https://registry.npmjs.org/@typescript-eslint/types/-/types-7.9.0.tgz", - "integrity": "sha512-oZQD9HEWQanl9UfsbGVcZ2cGaR0YT5476xfWE0oE5kQa2sNK2frxOlkeacLOTh9po4AlUT5rtkGyYM5kew0z5w==", + "version": "7.10.0", + "resolved": "https://registry.npmjs.org/@typescript-eslint/types/-/types-7.10.0.tgz", + "integrity": "sha512-7fNj+Ya35aNyhuqrA1E/VayQX9Elwr8NKZ4WueClR3KwJ7Xx9jcCdOrLW04h51de/+gNbyFMs+IDxh5xIwfbNg==", "engines": { "node": "^18.18.0 || >=20.0.0" }, @@ -3608,12 +3491,12 @@ } }, "node_modules/@typescript-eslint/typescript-estree": { - "version": "7.9.0", - "resolved": "https://registry.npmjs.org/@typescript-eslint/typescript-estree/-/typescript-estree-7.9.0.tgz", - "integrity": "sha512-zBCMCkrb2YjpKV3LA0ZJubtKCDxLttxfdGmwZvTqqWevUPN0FZvSI26FalGFFUZU/9YQK/A4xcQF9o/VVaCKAg==", + "version": "7.10.0", + "resolved": "https://registry.npmjs.org/@typescript-eslint/typescript-estree/-/typescript-estree-7.10.0.tgz", + "integrity": "sha512-LXFnQJjL9XIcxeVfqmNj60YhatpRLt6UhdlFwAkjNc6jSUlK8zQOl1oktAP8PlWFzPQC1jny/8Bai3/HPuvN5g==", "dependencies": { - "@typescript-eslint/types": "7.9.0", - "@typescript-eslint/visitor-keys": "7.9.0", + "@typescript-eslint/types": "7.10.0", + "@typescript-eslint/visitor-keys": "7.10.0", "debug": "^4.3.4", "globby": "^11.1.0", "is-glob": "^4.0.3", @@ -3635,14 +3518,14 @@ } }, "node_modules/@typescript-eslint/utils": { - "version": "7.9.0", - "resolved": "https://registry.npmjs.org/@typescript-eslint/utils/-/utils-7.9.0.tgz", - "integrity": "sha512-5KVRQCzZajmT4Ep+NEgjXCvjuypVvYHUW7RHlXzNPuak2oWpVoD1jf5xCP0dPAuNIchjC7uQyvbdaSTFaLqSdA==", + "version": "7.10.0", + "resolved": "https://registry.npmjs.org/@typescript-eslint/utils/-/utils-7.10.0.tgz", + "integrity": "sha512-olzif1Fuo8R8m/qKkzJqT7qwy16CzPRWBvERS0uvyc+DHd8AKbO4Jb7kpAvVzMmZm8TrHnI7hvjN4I05zow+tg==", "dependencies": { "@eslint-community/eslint-utils": "^4.4.0", - "@typescript-eslint/scope-manager": "7.9.0", - "@typescript-eslint/types": "7.9.0", - "@typescript-eslint/typescript-estree": "7.9.0" + "@typescript-eslint/scope-manager": "7.10.0", + "@typescript-eslint/types": "7.10.0", + "@typescript-eslint/typescript-estree": "7.10.0" }, "engines": { "node": "^18.18.0 || >=20.0.0" @@ -3656,11 +3539,11 @@ } }, "node_modules/@typescript-eslint/visitor-keys": { - "version": "7.9.0", - "resolved": "https://registry.npmjs.org/@typescript-eslint/visitor-keys/-/visitor-keys-7.9.0.tgz", - "integrity": "sha512-iESPx2TNLDNGQLyjKhUvIKprlP49XNEK+MvIf9nIO7ZZaZdbnfWKHnXAgufpxqfA0YryH8XToi4+CjBgVnFTSQ==", + "version": "7.10.0", + "resolved": "https://registry.npmjs.org/@typescript-eslint/visitor-keys/-/visitor-keys-7.10.0.tgz", + "integrity": "sha512-9ntIVgsi6gg6FIq9xjEO4VQJvwOqA3jaBFQJ/6TK5AvEup2+cECI6Fh7QiBxmfMHXU0V0J4RyPeOU1VDNzl9cg==", "dependencies": { - "@typescript-eslint/types": "7.9.0", + "@typescript-eslint/types": "7.10.0", "eslint-visitor-keys": "^3.4.3" }, "engines": { @@ -3677,11 +3560,11 @@ "integrity": "sha512-zuVdFrMJiuCDQUMCzQaD6KL28MjnqqN8XnAqiEq9PNm/hCPTSGfrXCOfwj1ow4LFb/tNymJPwsNbVePc1xFqrQ==" }, "node_modules/@xenova/transformers": { - "version": "2.17.1", - "resolved": "https://registry.npmjs.org/@xenova/transformers/-/transformers-2.17.1.tgz", - "integrity": "sha512-zo702tQAFZXhzeD2GCYUNUqeqkoueOdiSbQWa4s0q7ZE4z8WBIwIsMMPGobpgdqjQ2u0Qulo08wuqVEUrBXjkQ==", + "version": "2.14.0", + "resolved": "https://registry.npmjs.org/@xenova/transformers/-/transformers-2.14.0.tgz", + "integrity": "sha512-rQ3O7SW5EM64b6XFZGx3XQ2cfiroefxUwU9ShfSpEZyhd082GvwNJJKndxgaukse1hZP1JUDoT0DfjDiq4IZiw==", "dependencies": { - "@huggingface/jinja": "^0.2.2", + "@huggingface/jinja": "^0.1.0", "onnxruntime-web": "1.14.0", "sharp": "^0.32.0" }, @@ -3689,48 +3572,6 @@ "onnxruntime-node": "1.14.0" } }, - "node_modules/@xenova/transformers/node_modules/flatbuffers": { - "version": "1.12.0", - "resolved": "https://registry.npmjs.org/flatbuffers/-/flatbuffers-1.12.0.tgz", - "integrity": "sha512-c7CZADjRcl6j0PlvFy0ZqXQ67qSEZfrVPynmnL+2zPc+NtMvrF8Y0QceMo7QqnSPc7+uWjUIAbvCQ5WIKlMVdQ==" - }, - "node_modules/@xenova/transformers/node_modules/long": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/long/-/long-4.0.0.tgz", - "integrity": "sha512-XsP+KhQif4bjX1kbuSiySJFNAehNxgLb6hPRGJ9QsUr8ajHkuXGdrHmFUTUUXhDwVX2R5bY4JNZEwbUiMhV+MA==" - }, - "node_modules/@xenova/transformers/node_modules/onnxruntime-common": { - "version": "1.14.0", - "resolved": "https://registry.npmjs.org/onnxruntime-common/-/onnxruntime-common-1.14.0.tgz", - "integrity": "sha512-3LJpegM2iMNRX2wUmtYfeX/ytfOzNwAWKSq1HbRrKc9+uqG/FsEA0bbKZl1btQeZaXhC26l44NWpNUeXPII7Ew==" - }, - "node_modules/@xenova/transformers/node_modules/onnxruntime-node": { - "version": "1.14.0", - "resolved": "https://registry.npmjs.org/onnxruntime-node/-/onnxruntime-node-1.14.0.tgz", - "integrity": "sha512-5ba7TWomIV/9b6NH/1x/8QEeowsb+jBEvFzU6z0T4mNsFwdPqXeFUM7uxC6QeSRkEbWu3qEB0VMjrvzN/0S9+w==", - "optional": true, - "os": [ - "win32", - "darwin", - "linux" - ], - "dependencies": { - "onnxruntime-common": "~1.14.0" - } - }, - "node_modules/@xenova/transformers/node_modules/onnxruntime-web": { - "version": "1.14.0", - "resolved": "https://registry.npmjs.org/onnxruntime-web/-/onnxruntime-web-1.14.0.tgz", - "integrity": "sha512-Kcqf43UMfW8mCydVGcX9OMXI2VN17c0p6XvR7IPSZzBf/6lteBzXHvcEVWDPmCKuGombl997HgLqj91F11DzXw==", - "dependencies": { - "flatbuffers": "^1.12.0", - "guid-typescript": "^1.0.9", - "long": "^4.0.0", - "onnx-proto": "^4.0.4", - "onnxruntime-common": "~1.14.0", - "platform": "^1.3.6" - } - }, "node_modules/@yomguithereal/helpers": { "version": "1.1.1", "resolved": "https://registry.npmjs.org/@yomguithereal/helpers/-/helpers-1.1.1.tgz", @@ -3923,6 +3764,7 @@ "version": "3.0.1", "resolved": "https://registry.npmjs.org/are-we-there-yet/-/are-we-there-yet-3.0.1.tgz", "integrity": "sha512-QZW4EDmGwlYur0Yyf/b2uGucHQMa8aFUP7eu9ddR73vvhFyt4V0Vl3QHPcTNJ8l6qYOBdxgXdnBXQrHilfRQBg==", + "deprecated": "This package is no longer supported.", "optional": true, "dependencies": { "delegates": "^1.0.0", @@ -4120,14 +3962,14 @@ } }, "node_modules/aws4": { - "version": "1.12.0", - "resolved": "https://registry.npmjs.org/aws4/-/aws4-1.12.0.tgz", - "integrity": "sha512-NmWvPnx0F1SfrQbYwOi7OeaNGokp9XhzNioJ/CSBs8Qa4vxug81mhJEAVZwxXuBmYB5KDRfMq/F3RR0BIU7sWg==" + "version": "1.13.0", + "resolved": "https://registry.npmjs.org/aws4/-/aws4-1.13.0.tgz", + "integrity": "sha512-3AungXC4I8kKsS9PuS4JH2nc+0bVY/mjgrephHTIi8fpEeGsTHBUJeosp0Wc1myYMElmD0B3Oc4XL/HVJ4PV2g==" }, "node_modules/axios": { - "version": "1.6.8", - "resolved": "https://registry.npmjs.org/axios/-/axios-1.6.8.tgz", - "integrity": "sha512-v/ZHtJDU39mDpyBoFVkETcd/uNdxrWRrg3bKpOKzXFA6Bvqopts6ALSMU3y6ijYxbw2B+wPrIv46egTzJXCLGQ==", + "version": "1.7.1", + "resolved": "https://registry.npmjs.org/axios/-/axios-1.7.1.tgz", + "integrity": "sha512-+LV37nQcd1EpFalkXksWNBiA17NZ5m5/WspmHGmZmdx1qBOg/VNq/c4eRJiA9VQQHBOs+N0ZhhdU10h2TyNK7Q==", "dependencies": { "follow-redirects": "^1.15.6", "form-data": "^4.0.0", @@ -4406,11 +4248,11 @@ } }, "node_modules/braces": { - "version": "3.0.2", - "resolved": "https://registry.npmjs.org/braces/-/braces-3.0.2.tgz", - "integrity": "sha512-b8um+L1RzM3WDSzvhm6gIz1yfTbBt6YTlcEKAvsmqCZZFw46z626lVj9j1yEPW33H5H+lBQpZMP1k8l+78Ha0A==", + "version": "3.0.3", + "resolved": "https://registry.npmjs.org/braces/-/braces-3.0.3.tgz", + "integrity": "sha512-yQbXgO/OSZVD2IsiLlro+7Hf6Q18EJrKSEsdoMzKePKXct3gvD8oLcOQdIzGupr5Fj+EDe8gO/lxc1BzfMpxvA==", "dependencies": { - "fill-range": "^7.0.1" + "fill-range": "^7.1.1" }, "engines": { "node": ">=8" @@ -4540,32 +4382,6 @@ "node": ">=10" } }, - "node_modules/cacache/node_modules/tar": { - "version": "6.2.1", - "resolved": "https://registry.npmjs.org/tar/-/tar-6.2.1.tgz", - "integrity": "sha512-DZ4yORTwrbTj/7MZYq2w+/ZFdI6OZ/f9SFHR+71gIVUZhOQPHzVCLpvRnPgyaMpfWxxk/4ONva3GQSyNIKRv6A==", - "optional": true, - "dependencies": { - "chownr": "^2.0.0", - "fs-minipass": "^2.0.0", - "minipass": "^5.0.0", - "minizlib": "^2.1.1", - "mkdirp": "^1.0.3", - "yallist": "^4.0.0" - }, - "engines": { - "node": ">=10" - } - }, - "node_modules/cacache/node_modules/tar/node_modules/minipass": { - "version": "5.0.0", - "resolved": "https://registry.npmjs.org/minipass/-/minipass-5.0.0.tgz", - "integrity": "sha512-3FnjYuehv9k6ovOEbyOswadCDPX1piCfhV8ncmYtHOjuPwylVWsghTLo7rabjC3Rx5xD4HDx8Wm1xnMF7S5qFQ==", - "optional": true, - "engines": { - "node": ">=8" - } - }, "node_modules/cacache/node_modules/yallist": { "version": "4.0.0", "resolved": "https://registry.npmjs.org/yallist/-/yallist-4.0.0.tgz", @@ -5315,11 +5131,6 @@ "url": "https://dotenvx.com" } }, - "node_modules/eastasianwidth": { - "version": "0.2.0", - "resolved": "https://registry.npmjs.org/eastasianwidth/-/eastasianwidth-0.2.0.tgz", - "integrity": "sha512-I88TYZWc9XiYHRQ4/3c5rjjfgkjhLyW2luGIheGERbNQ6OY7yTybanSpDXZa8y7VUP9YmDcYa+eyq4ca7iLqWA==" - }, "node_modules/ecc-jsbn": { "version": "0.1.2", "resolved": "https://registry.npmjs.org/ecc-jsbn/-/ecc-jsbn-0.1.2.tgz", @@ -5335,9 +5146,9 @@ "integrity": "sha512-UVU9dibq2JcFWxQPA6KCqj5O42VOmAY3zQUfEKxU0KpTGXwNoCjkX1e13eHNvw/xPynt6pU0rZ1htjWTNTSXsg==" }, "node_modules/electron-to-chromium": { - "version": "1.4.774", - "resolved": "https://registry.npmjs.org/electron-to-chromium/-/electron-to-chromium-1.4.774.tgz", - "integrity": "sha512-132O1XCd7zcTkzS3FgkAzKmnBuNJjK8WjcTtNuoylj7MYbqw5eXehjQ5OK91g0zm7OTKIPeaAG4CPoRfD9M1Mg==", + "version": "1.4.776", + "resolved": "https://registry.npmjs.org/electron-to-chromium/-/electron-to-chromium-1.4.776.tgz", + "integrity": "sha512-s694bi3+gUzlliqxjPHpa9NRTlhzTgB34aan+pVKZmOTGy2xoZXl+8E1B8i5p5rtev3PKMK/H4asgNejC+YHNg==", "dev": true }, "node_modules/emittery": { @@ -5355,7 +5166,8 @@ "node_modules/emoji-regex": { "version": "8.0.0", "resolved": "https://registry.npmjs.org/emoji-regex/-/emoji-regex-8.0.0.tgz", - "integrity": "sha512-MSjYzcWNOA0ewAHpz0MxpYFvwg6yjy1NG3xteoqz644VCo/RPgnr1/GGt+ic3iJTzQ8Eu3TdM14SawnVUmGE6A==" + "integrity": "sha512-MSjYzcWNOA0ewAHpz0MxpYFvwg6yjy1NG3xteoqz644VCo/RPgnr1/GGt+ic3iJTzQ8Eu3TdM14SawnVUmGE6A==", + "devOptional": true }, "node_modules/encoding": { "version": "0.1.13", @@ -6184,9 +5996,9 @@ "integrity": "sha512-0Zt+s3L7Vf1biwWZ29aARiVYLx7iMGnEUl9x33fbB/j3jR81u/O2LbqK+Bm1CDSNDKVtJ/YjwY7TUd5SkeLQLw==" }, "node_modules/fill-range": { - "version": "7.0.1", - "resolved": "https://registry.npmjs.org/fill-range/-/fill-range-7.0.1.tgz", - "integrity": "sha512-qOo9F+dMUmC2Lcb4BbVvnKJxTPjCm+RRpe4gDuGrzkL7mEVl/djYSu2OdQ2Pa302N4oqkSg9ir6jaLWJ2USVpQ==", + "version": "7.1.1", + "resolved": "https://registry.npmjs.org/fill-range/-/fill-range-7.1.1.tgz", + "integrity": "sha512-YsGpe3WHLK8ZYi4tWDg2Jy3ebRz2rXowDxnld4bkQB00cc/1Zw9AWnC0i9ztDJitivtQvaI9KaLyKrc+hBW0yg==", "dependencies": { "to-regex-range": "^5.0.1" }, @@ -6272,32 +6084,6 @@ "is-callable": "^1.1.3" } }, - "node_modules/foreground-child": { - "version": "3.1.1", - "resolved": "https://registry.npmjs.org/foreground-child/-/foreground-child-3.1.1.tgz", - "integrity": "sha512-TMKDUnIte6bfb5nWv7V/caI169OHgvwjb7V4WkeUvbQQdjr5rWKqHFiKWb/fcOwB+CzBT+qbWjvj+DVwRskpIg==", - "dependencies": { - "cross-spawn": "^7.0.0", - "signal-exit": "^4.0.1" - }, - "engines": { - "node": ">=14" - }, - "funding": { - "url": "https://github.com/sponsors/isaacs" - } - }, - "node_modules/foreground-child/node_modules/signal-exit": { - "version": "4.1.0", - "resolved": "https://registry.npmjs.org/signal-exit/-/signal-exit-4.1.0.tgz", - "integrity": "sha512-bzyZ1e88w9O1iNJbKnOlvYTrWPDl46O1bG0D3XInv+9tkPrxrN8jUUTiFlDkkmKWgn1M6CfIA13SuGqOa9Korw==", - "engines": { - "node": ">=14" - }, - "funding": { - "url": "https://github.com/sponsors/isaacs" - } - }, "node_modules/forever-agent": { "version": "0.6.1", "resolved": "https://registry.npmjs.org/forever-agent/-/forever-agent-0.6.1.tgz", @@ -6427,6 +6213,7 @@ "version": "4.0.4", "resolved": "https://registry.npmjs.org/gauge/-/gauge-4.0.4.tgz", "integrity": "sha512-f9m+BEN5jkg6a0fZjleidjN51VE1X+mPFQ2DJ0uv1V39oCLCbsGe6yjbBnp7eK7z/+GAon99a3nHuqbuuthyPg==", + "deprecated": "This package is no longer supported.", "optional": true, "dependencies": { "aproba": "^1.0.3 || ^2.0.0", @@ -7199,6 +6986,7 @@ "version": "3.0.0", "resolved": "https://registry.npmjs.org/is-fullwidth-code-point/-/is-fullwidth-code-point-3.0.0.tgz", "integrity": "sha512-zymm5+u+sCsSWyD9qNaejV3DFvhCKclKdizYaJUuHA83RLjb7nSuGnddCHGv0hk+KY7BMAlsWeK4Ueg6EV6XQg==", + "devOptional": true, "engines": { "node": ">=8" } @@ -7460,23 +7248,6 @@ "node": ">=8" } }, - "node_modules/jackspeak": { - "version": "2.3.6", - "resolved": "https://registry.npmjs.org/jackspeak/-/jackspeak-2.3.6.tgz", - "integrity": "sha512-N3yCS/NegsOBokc8GAdM8UcmfsKiSS8cipheD/nivzr700H+nsMOxJjQnvwOcRYVuFkdH0wGUvW2WbXGmrZGbQ==", - "dependencies": { - "@isaacs/cliui": "^8.0.2" - }, - "engines": { - "node": ">=14" - }, - "funding": { - "url": "https://github.com/sponsors/isaacs" - }, - "optionalDependencies": { - "@pkgjs/parseargs": "^0.11.0" - } - }, "node_modules/jest": { "version": "29.7.0", "resolved": "https://registry.npmjs.org/jest/-/jest-29.7.0.tgz", @@ -8465,17 +8236,28 @@ } }, "node_modules/micromatch": { - "version": "4.0.5", - "resolved": "https://registry.npmjs.org/micromatch/-/micromatch-4.0.5.tgz", - "integrity": "sha512-DMy+ERcEW2q8Z2Po+WNXuw3c5YaUSFjAO5GsJqfEl7UjvtIuFKO6ZrKvcItdy98dwFI2N1tg3zNIdKaQT+aNdA==", + "version": "4.0.6", + "resolved": "https://registry.npmjs.org/micromatch/-/micromatch-4.0.6.tgz", + "integrity": "sha512-Y4Ypn3oujJYxJcMacVgcs92wofTHxp9FzfDpQON4msDefoC0lb3ETvQLOdLcbhSwU1bz8HrL/1sygfBIHudrkQ==", "dependencies": { - "braces": "^3.0.2", - "picomatch": "^2.3.1" + "braces": "^3.0.3", + "picomatch": "^4.0.2" }, "engines": { "node": ">=8.6" } }, + "node_modules/micromatch/node_modules/picomatch": { + "version": "4.0.2", + "resolved": "https://registry.npmjs.org/picomatch/-/picomatch-4.0.2.tgz", + "integrity": "sha512-M7BAV6Rlcy5u+m6oPhAPFgJTzAioX/6B0DxyvDlo9l8+T3nLKbrczg2WLUyzd45L8RqfUMyGPzekbMvX2Ldkwg==", + "engines": { + "node": ">=12" + }, + "funding": { + "url": "https://github.com/sponsors/jonschlinkert" + } + }, "node_modules/mime-db": { "version": "1.52.0", "resolved": "https://registry.npmjs.org/mime-db/-/mime-db-1.52.0.tgz", @@ -8808,38 +8590,6 @@ "node": ">= 10.12.0" } }, - "node_modules/node-gyp/node_modules/minipass": { - "version": "5.0.0", - "resolved": "https://registry.npmjs.org/minipass/-/minipass-5.0.0.tgz", - "integrity": "sha512-3FnjYuehv9k6ovOEbyOswadCDPX1piCfhV8ncmYtHOjuPwylVWsghTLo7rabjC3Rx5xD4HDx8Wm1xnMF7S5qFQ==", - "optional": true, - "engines": { - "node": ">=8" - } - }, - "node_modules/node-gyp/node_modules/tar": { - "version": "6.2.1", - "resolved": "https://registry.npmjs.org/tar/-/tar-6.2.1.tgz", - "integrity": "sha512-DZ4yORTwrbTj/7MZYq2w+/ZFdI6OZ/f9SFHR+71gIVUZhOQPHzVCLpvRnPgyaMpfWxxk/4ONva3GQSyNIKRv6A==", - "optional": true, - "dependencies": { - "chownr": "^2.0.0", - "fs-minipass": "^2.0.0", - "minipass": "^5.0.0", - "minizlib": "^2.1.1", - "mkdirp": "^1.0.3", - "yallist": "^4.0.0" - }, - "engines": { - "node": ">=10" - } - }, - "node_modules/node-gyp/node_modules/yallist": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/yallist/-/yallist-4.0.0.tgz", - "integrity": "sha512-3wdGidZyq5PB084XLES5TpOSRA3wjXAlIWMhum2kRcv/41Sn2emQ0dycQW4uZXLejwKvg6EsvbdlVL+FYEct7A==", - "optional": true - }, "node_modules/node-html-markdown": { "version": "1.3.0", "resolved": "https://registry.npmjs.org/node-html-markdown/-/node-html-markdown-1.3.0.tgz", @@ -8933,6 +8683,7 @@ "version": "6.0.2", "resolved": "https://registry.npmjs.org/npmlog/-/npmlog-6.0.2.tgz", "integrity": "sha512-/vBvz5Jfr9dT/aFWd0FIRf+T/Q2WBsLENygUaFUqstqsycmZAP/t5BvFJTK0viFmSUxiUKTUplWy5vt+rvKIxg==", + "deprecated": "This package is no longer supported.", "optional": true, "dependencies": { "are-we-there-yet": "^3.0.0", @@ -9104,81 +8855,46 @@ "protobufjs": "^6.8.8" } }, - "node_modules/onnx-proto/node_modules/long": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/long/-/long-4.0.0.tgz", - "integrity": "sha512-XsP+KhQif4bjX1kbuSiySJFNAehNxgLb6hPRGJ9QsUr8ajHkuXGdrHmFUTUUXhDwVX2R5bY4JNZEwbUiMhV+MA==" - }, - "node_modules/onnx-proto/node_modules/protobufjs": { - "version": "6.11.4", - "resolved": "https://registry.npmjs.org/protobufjs/-/protobufjs-6.11.4.tgz", - "integrity": "sha512-5kQWPaJHi1WoCpjTGszzQ32PG2F4+wRY6BmAT4Vfw56Q2FZ4YZzK20xUYQH4YkfehY1e6QSICrJquM6xXZNcrw==", - "hasInstallScript": true, - "dependencies": { - "@protobufjs/aspromise": "^1.1.2", - "@protobufjs/base64": "^1.1.2", - "@protobufjs/codegen": "^2.0.4", - "@protobufjs/eventemitter": "^1.1.0", - "@protobufjs/fetch": "^1.1.0", - "@protobufjs/float": "^1.0.2", - "@protobufjs/inquire": "^1.1.0", - "@protobufjs/path": "^1.1.2", - "@protobufjs/pool": "^1.1.0", - "@protobufjs/utf8": "^1.1.0", - "@types/long": "^4.0.1", - "@types/node": ">=13.7.0", - "long": "^4.0.0" - }, - "bin": { - "pbjs": "bin/pbjs", - "pbts": "bin/pbts" - } - }, "node_modules/onnxruntime-common": { - "version": "1.18.0", - "resolved": "https://registry.npmjs.org/onnxruntime-common/-/onnxruntime-common-1.18.0.tgz", - "integrity": "sha512-lufrSzX6QdKrktAELG5x5VkBpapbCeS3dQwrXbN0eD9rHvU0yAWl7Ztju9FvgAKWvwd/teEKJNj3OwM6eTZh3Q==", - "dev": true + "version": "1.14.0", + "resolved": "https://registry.npmjs.org/onnxruntime-common/-/onnxruntime-common-1.14.0.tgz", + "integrity": "sha512-3LJpegM2iMNRX2wUmtYfeX/ytfOzNwAWKSq1HbRrKc9+uqG/FsEA0bbKZl1btQeZaXhC26l44NWpNUeXPII7Ew==" }, "node_modules/onnxruntime-node": { - "version": "1.17.3-rev.1", - "resolved": "https://registry.npmjs.org/onnxruntime-node/-/onnxruntime-node-1.17.3-rev.1.tgz", - "integrity": "sha512-/TAUJ6COXfl/dsUwROlMrcI92zw8oG6Xe1avEsGoT+NmHihXadoLh91ovuJ6PDc3hLjZ6Oklq+EpabqonTQISw==", - "hasInstallScript": true, + "version": "1.14.0", + "resolved": "https://registry.npmjs.org/onnxruntime-node/-/onnxruntime-node-1.14.0.tgz", + "integrity": "sha512-5ba7TWomIV/9b6NH/1x/8QEeowsb+jBEvFzU6z0T4mNsFwdPqXeFUM7uxC6QeSRkEbWu3qEB0VMjrvzN/0S9+w==", "os": [ "win32", "darwin", "linux" ], "dependencies": { - "onnxruntime-common": "1.17.3", - "tar": "^7.0.1" + "onnxruntime-common": "~1.14.0" } }, - "node_modules/onnxruntime-node/node_modules/onnxruntime-common": { - "version": "1.17.3", - "resolved": "https://registry.npmjs.org/onnxruntime-common/-/onnxruntime-common-1.17.3.tgz", - "integrity": "sha512-IkbaDelNVX8cBfHFgsNADRIq2TlXMFWW+nG55mwWvQT4i0NZb32Jf35Pf6h9yjrnK78RjcnlNYaI37w394ovMw==" - }, "node_modules/onnxruntime-web": { - "version": "1.18.0", - "resolved": "https://registry.npmjs.org/onnxruntime-web/-/onnxruntime-web-1.18.0.tgz", - "integrity": "sha512-o1UKj4ABIj1gmG7ae0RKJ3/GT+3yoF0RRpfDfeoe0huzRW4FDRLfbkDETmdFAvnJEXuYDE0YT+hhkia0352StQ==", - "dev": true, + "version": "1.14.0", + "resolved": "https://registry.npmjs.org/onnxruntime-web/-/onnxruntime-web-1.14.0.tgz", + "integrity": "sha512-Kcqf43UMfW8mCydVGcX9OMXI2VN17c0p6XvR7IPSZzBf/6lteBzXHvcEVWDPmCKuGombl997HgLqj91F11DzXw==", "dependencies": { "flatbuffers": "^1.12.0", "guid-typescript": "^1.0.9", - "long": "^5.2.3", - "onnxruntime-common": "1.18.0", - "platform": "^1.3.6", - "protobufjs": "^7.2.4" + "long": "^4.0.0", + "onnx-proto": "^4.0.4", + "onnxruntime-common": "~1.14.0", + "platform": "^1.3.6" } }, "node_modules/onnxruntime-web/node_modules/flatbuffers": { "version": "1.12.0", "resolved": "https://registry.npmjs.org/flatbuffers/-/flatbuffers-1.12.0.tgz", - "integrity": "sha512-c7CZADjRcl6j0PlvFy0ZqXQ67qSEZfrVPynmnL+2zPc+NtMvrF8Y0QceMo7QqnSPc7+uWjUIAbvCQ5WIKlMVdQ==", - "dev": true + "integrity": "sha512-c7CZADjRcl6j0PlvFy0ZqXQ67qSEZfrVPynmnL+2zPc+NtMvrF8Y0QceMo7QqnSPc7+uWjUIAbvCQ5WIKlMVdQ==" + }, + "node_modules/onnxruntime-web/node_modules/long": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/long/-/long-4.0.0.tgz", + "integrity": "sha512-XsP+KhQif4bjX1kbuSiySJFNAehNxgLb6hPRGJ9QsUr8ajHkuXGdrHmFUTUUXhDwVX2R5bY4JNZEwbUiMhV+MA==" }, "node_modules/openai": { "version": "4.47.1", @@ -9405,37 +9121,6 @@ "resolved": "https://registry.npmjs.org/path-parse/-/path-parse-1.0.7.tgz", "integrity": "sha512-LDJzPVEEEPR+y48z93A0Ed0yXb8pAByGWo/k5YYdYgpY2/2EsOsksJrq7lOHxryrVOn1ejG6oAp8ahvOIQD8sw==" }, - "node_modules/path-scurry": { - "version": "1.11.1", - "resolved": "https://registry.npmjs.org/path-scurry/-/path-scurry-1.11.1.tgz", - "integrity": "sha512-Xa4Nw17FS9ApQFJ9umLiJS4orGjm7ZzwUrwamcGQuHSzDyth9boKDaycYdDcZDuqYATXw4HFXgaqWTctW/v1HA==", - "dependencies": { - "lru-cache": "^10.2.0", - "minipass": "^5.0.0 || ^6.0.2 || ^7.0.0" - }, - "engines": { - "node": ">=16 || 14 >=14.18" - }, - "funding": { - "url": "https://github.com/sponsors/isaacs" - } - }, - "node_modules/path-scurry/node_modules/lru-cache": { - "version": "10.2.2", - "resolved": "https://registry.npmjs.org/lru-cache/-/lru-cache-10.2.2.tgz", - "integrity": "sha512-9hp3Vp2/hFQUiIwKo8XCeFVnrg8Pk3TYNPIR7tJADKi5YfcF7vEaK7avFHTlSy3kOKYaJQaalfEo6YuXdceBOQ==", - "engines": { - "node": "14 || >=16.14" - } - }, - "node_modules/path-scurry/node_modules/minipass": { - "version": "7.1.1", - "resolved": "https://registry.npmjs.org/minipass/-/minipass-7.1.1.tgz", - "integrity": "sha512-UZ7eQ+h8ywIRAW1hIEl2AqdwzJucU/Kp59+8kkZeSvafXhZjul247BvIJjEVFVeON6d7lM46XX1HXCduKAS8VA==", - "engines": { - "node": ">=16 || 14 >=14.17" - } - }, "node_modules/path-type": { "version": "4.0.0", "resolved": "https://registry.npmjs.org/path-type/-/path-type-4.0.0.tgz", @@ -9540,6 +9225,7 @@ "version": "2.3.1", "resolved": "https://registry.npmjs.org/picomatch/-/picomatch-2.3.1.tgz", "integrity": "sha512-JU3teHTNjmE2VCGFzuY8EXzCDVwEqB2a8fsIvwaStHhAWJEeVd1o1QD80CU6+ZdEXXSLbSsuLwJjkCBWqRQUVA==", + "dev": true, "engines": { "node": ">=8.6" }, @@ -9825,10 +9511,9 @@ } }, "node_modules/protobufjs": { - "version": "7.3.0", - "resolved": "https://registry.npmjs.org/protobufjs/-/protobufjs-7.3.0.tgz", - "integrity": "sha512-YWD03n3shzV9ImZRX3ccbjqLxj7NokGN0V/ESiBV5xWqrommYHYiihuIyavq03pWSGqlyvYUFmfoMKd+1rPA/g==", - "dev": true, + "version": "6.11.4", + "resolved": "https://registry.npmjs.org/protobufjs/-/protobufjs-6.11.4.tgz", + "integrity": "sha512-5kQWPaJHi1WoCpjTGszzQ32PG2F4+wRY6BmAT4Vfw56Q2FZ4YZzK20xUYQH4YkfehY1e6QSICrJquM6xXZNcrw==", "hasInstallScript": true, "dependencies": { "@protobufjs/aspromise": "^1.1.2", @@ -9841,13 +9526,20 @@ "@protobufjs/path": "^1.1.2", "@protobufjs/pool": "^1.1.0", "@protobufjs/utf8": "^1.1.0", + "@types/long": "^4.0.1", "@types/node": ">=13.7.0", - "long": "^5.0.0" + "long": "^4.0.0" }, - "engines": { - "node": ">=12.0.0" + "bin": { + "pbjs": "bin/pbjs", + "pbts": "bin/pbts" } }, + "node_modules/protobufjs/node_modules/long": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/long/-/long-4.0.0.tgz", + "integrity": "sha512-XsP+KhQif4bjX1kbuSiySJFNAehNxgLb6hPRGJ9QsUr8ajHkuXGdrHmFUTUUXhDwVX2R5bY4JNZEwbUiMhV+MA==" + }, "node_modules/proxy-from-env": { "version": "1.1.0", "resolved": "https://registry.npmjs.org/proxy-from-env/-/proxy-from-env-1.1.0.tgz", @@ -10607,14 +10299,6 @@ } } }, - "node_modules/sqlite3/node_modules/minipass": { - "version": "5.0.0", - "resolved": "https://registry.npmjs.org/minipass/-/minipass-5.0.0.tgz", - "integrity": "sha512-3FnjYuehv9k6ovOEbyOswadCDPX1piCfhV8ncmYtHOjuPwylVWsghTLo7rabjC3Rx5xD4HDx8Wm1xnMF7S5qFQ==", - "engines": { - "node": ">=8" - } - }, "node_modules/sqlite3/node_modules/node-addon-api": { "version": "7.1.0", "resolved": "https://registry.npmjs.org/node-addon-api/-/node-addon-api-7.1.0.tgz", @@ -10623,27 +10307,6 @@ "node": "^16 || ^18 || >= 20" } }, - "node_modules/sqlite3/node_modules/tar": { - "version": "6.2.1", - "resolved": "https://registry.npmjs.org/tar/-/tar-6.2.1.tgz", - "integrity": "sha512-DZ4yORTwrbTj/7MZYq2w+/ZFdI6OZ/f9SFHR+71gIVUZhOQPHzVCLpvRnPgyaMpfWxxk/4ONva3GQSyNIKRv6A==", - "dependencies": { - "chownr": "^2.0.0", - "fs-minipass": "^2.0.0", - "minipass": "^5.0.0", - "minizlib": "^2.1.1", - "mkdirp": "^1.0.3", - "yallist": "^4.0.0" - }, - "engines": { - "node": ">=10" - } - }, - "node_modules/sqlite3/node_modules/yallist": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/yallist/-/yallist-4.0.0.tgz", - "integrity": "sha512-3wdGidZyq5PB084XLES5TpOSRA3wjXAlIWMhum2kRcv/41Sn2emQ0dycQW4uZXLejwKvg6EsvbdlVL+FYEct7A==" - }, "node_modules/sqlstring": { "version": "2.3.3", "resolved": "https://registry.npmjs.org/sqlstring/-/sqlstring-2.3.3.tgz", @@ -10760,20 +10423,7 @@ "version": "4.2.3", "resolved": "https://registry.npmjs.org/string-width/-/string-width-4.2.3.tgz", "integrity": "sha512-wKyQRQpjJ0sIp62ErSZdGsjMJWsap5oRNihHhu6G7JVO/9jIB6UyevL+tXuOqrng8j/cxKTWyWUwvSTriiZz/g==", - "dependencies": { - "emoji-regex": "^8.0.0", - "is-fullwidth-code-point": "^3.0.0", - "strip-ansi": "^6.0.1" - }, - "engines": { - "node": ">=8" - } - }, - "node_modules/string-width-cjs": { - "name": "string-width", - "version": "4.2.3", - "resolved": "https://registry.npmjs.org/string-width/-/string-width-4.2.3.tgz", - "integrity": "sha512-wKyQRQpjJ0sIp62ErSZdGsjMJWsap5oRNihHhu6G7JVO/9jIB6UyevL+tXuOqrng8j/cxKTWyWUwvSTriiZz/g==", + "devOptional": true, "dependencies": { "emoji-regex": "^8.0.0", "is-fullwidth-code-point": "^3.0.0", @@ -10840,18 +10490,6 @@ "node": ">=8" } }, - "node_modules/strip-ansi-cjs": { - "name": "strip-ansi", - "version": "6.0.1", - "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-6.0.1.tgz", - "integrity": "sha512-Y38VPSHcqkFrCpFnQ9vuSXmquuv5oXOKpGeT6aGrr3o3Gc9AlVa6JBfUSOCnbxGGZF+/0ooI7KrPuUSztUdU5A==", - "dependencies": { - "ansi-regex": "^5.0.1" - }, - "engines": { - "node": ">=8" - } - }, "node_modules/strip-bom": { "version": "4.0.0", "resolved": "https://registry.npmjs.org/strip-bom/-/strip-bom-4.0.0.tgz", @@ -10953,19 +10591,19 @@ } }, "node_modules/tar": { - "version": "7.1.0", - "resolved": "https://registry.npmjs.org/tar/-/tar-7.1.0.tgz", - "integrity": "sha512-ENhg4W6BmjYxl8GTaE7/h99f0aXiSWv4kikRZ9n2/JRxypZniE84ILZqimAhxxX7Zb8Px6pFdheW3EeHfhnXQQ==", + "version": "6.2.1", + "resolved": "https://registry.npmjs.org/tar/-/tar-6.2.1.tgz", + "integrity": "sha512-DZ4yORTwrbTj/7MZYq2w+/ZFdI6OZ/f9SFHR+71gIVUZhOQPHzVCLpvRnPgyaMpfWxxk/4ONva3GQSyNIKRv6A==", "dependencies": { - "@isaacs/fs-minipass": "^4.0.0", - "chownr": "^3.0.0", - "minipass": "^7.1.0", - "minizlib": "^3.0.1", - "mkdirp": "^3.0.1", - "yallist": "^5.0.0" + "chownr": "^2.0.0", + "fs-minipass": "^2.0.0", + "minipass": "^5.0.0", + "minizlib": "^2.1.1", + "mkdirp": "^1.0.3", + "yallist": "^4.0.0" }, "engines": { - "node": ">=18" + "node": ">=10" } }, "node_modules/tar-fs": { @@ -10991,93 +10629,18 @@ "streamx": "^2.15.0" } }, - "node_modules/tar/node_modules/chownr": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/chownr/-/chownr-3.0.0.tgz", - "integrity": "sha512-+IxzY9BZOQd/XuYPRmrvEVjF/nqj5kgT4kEq7VofrDoM1MxoRjEWkrCC3EtLi59TVawxTAn+orJwFQcrqEN1+g==", - "engines": { - "node": ">=18" - } - }, - "node_modules/tar/node_modules/glob": { - "version": "10.3.15", - "resolved": "https://registry.npmjs.org/glob/-/glob-10.3.15.tgz", - "integrity": "sha512-0c6RlJt1TICLyvJYIApxb8GsXoai0KUP7AxKKAtsYXdgJR1mGEUa7DgwShbdk1nly0PYoZj01xd4hzbq3fsjpw==", - "dependencies": { - "foreground-child": "^3.1.0", - "jackspeak": "^2.3.6", - "minimatch": "^9.0.1", - "minipass": "^7.0.4", - "path-scurry": "^1.11.0" - }, - "bin": { - "glob": "dist/esm/bin.mjs" - }, - "engines": { - "node": ">=16 || 14 >=14.18" - }, - "funding": { - "url": "https://github.com/sponsors/isaacs" - } - }, "node_modules/tar/node_modules/minipass": { - "version": "7.1.1", - "resolved": "https://registry.npmjs.org/minipass/-/minipass-7.1.1.tgz", - "integrity": "sha512-UZ7eQ+h8ywIRAW1hIEl2AqdwzJucU/Kp59+8kkZeSvafXhZjul247BvIJjEVFVeON6d7lM46XX1HXCduKAS8VA==", + "version": "5.0.0", + "resolved": "https://registry.npmjs.org/minipass/-/minipass-5.0.0.tgz", + "integrity": "sha512-3FnjYuehv9k6ovOEbyOswadCDPX1piCfhV8ncmYtHOjuPwylVWsghTLo7rabjC3Rx5xD4HDx8Wm1xnMF7S5qFQ==", "engines": { - "node": ">=16 || 14 >=14.17" - } - }, - "node_modules/tar/node_modules/minizlib": { - "version": "3.0.1", - "resolved": "https://registry.npmjs.org/minizlib/-/minizlib-3.0.1.tgz", - "integrity": "sha512-umcy022ILvb5/3Djuu8LWeqUa8D68JaBzlttKeMWen48SjabqS3iY5w/vzeMzMUNhLDifyhbOwKDSznB1vvrwg==", - "dependencies": { - "minipass": "^7.0.4", - "rimraf": "^5.0.5" - }, - "engines": { - "node": ">= 18" - } - }, - "node_modules/tar/node_modules/mkdirp": { - "version": "3.0.1", - "resolved": "https://registry.npmjs.org/mkdirp/-/mkdirp-3.0.1.tgz", - "integrity": "sha512-+NsyUUAZDmo6YVHzL/stxSu3t9YS1iljliy3BSDrXJ/dkn1KYdmtZODGGjLcc9XLgVVpH4KshHB8XmZgMhaBXg==", - "bin": { - "mkdirp": "dist/cjs/src/bin.js" - }, - "engines": { - "node": ">=10" - }, - "funding": { - "url": "https://github.com/sponsors/isaacs" - } - }, - "node_modules/tar/node_modules/rimraf": { - "version": "5.0.7", - "resolved": "https://registry.npmjs.org/rimraf/-/rimraf-5.0.7.tgz", - "integrity": "sha512-nV6YcJo5wbLW77m+8KjH8aB/7/rxQy9SZ0HY5shnwULfS+9nmTtVXAJET5NdZmCzA4fPI/Hm1wo/Po/4mopOdg==", - "dependencies": { - "glob": "^10.3.7" - }, - "bin": { - "rimraf": "dist/esm/bin.mjs" - }, - "engines": { - "node": ">=14.18" - }, - "funding": { - "url": "https://github.com/sponsors/isaacs" + "node": ">=8" } }, "node_modules/tar/node_modules/yallist": { - "version": "5.0.0", - "resolved": "https://registry.npmjs.org/yallist/-/yallist-5.0.0.tgz", - "integrity": "sha512-YgvUTfwqyc7UXVMrB+SImsVYSmTS8X/tSrtdNZMImM+n7+QTriRXyXim0mBrTXNeqzVF0KWGgHPeiyViFFrNDw==", - "engines": { - "node": ">=18" - } + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/yallist/-/yallist-4.0.0.tgz", + "integrity": "sha512-3wdGidZyq5PB084XLES5TpOSRA3wjXAlIWMhum2kRcv/41Sn2emQ0dycQW4uZXLejwKvg6EsvbdlVL+FYEct7A==" }, "node_modules/test-exclude": { "version": "6.0.0", @@ -11188,9 +10751,9 @@ } }, "node_modules/ts-jest": { - "version": "29.1.2", - "resolved": "https://registry.npmjs.org/ts-jest/-/ts-jest-29.1.2.tgz", - "integrity": "sha512-br6GJoH/WUX4pu7FbZXuWGKGNDuU7b8Uj77g/Sp7puZV6EXzuByl6JrECvm0MzVzSTkSHWTihsXt+5XYER5b+g==", + "version": "29.1.3", + "resolved": "https://registry.npmjs.org/ts-jest/-/ts-jest-29.1.3.tgz", + "integrity": "sha512-6L9qz3ginTd1NKhOxmkP0qU3FyKjj5CPoY+anszfVn6Pmv/RIKzhiMCsH7Yb7UvJR9I2A64rm4zQl531s2F1iw==", "dev": true, "dependencies": { "bs-logger": "0.x", @@ -11206,10 +10769,11 @@ "ts-jest": "cli.js" }, "engines": { - "node": "^16.10.0 || ^18.0.0 || >=20.0.0" + "node": "^14.15.0 || ^16.10.0 || ^18.0.0 || >=20.0.0" }, "peerDependencies": { "@babel/core": ">=7.0.0-beta.0 <8", + "@jest/transform": "^29.0.0", "@jest/types": "^29.0.0", "babel-jest": "^29.0.0", "jest": "^29.0.0", @@ -11219,6 +10783,9 @@ "@babel/core": { "optional": true }, + "@jest/transform": { + "optional": true + }, "@jest/types": { "optional": true }, @@ -11757,23 +11324,6 @@ "url": "https://github.com/chalk/wrap-ansi?sponsor=1" } }, - "node_modules/wrap-ansi-cjs": { - "name": "wrap-ansi", - "version": "7.0.0", - "resolved": "https://registry.npmjs.org/wrap-ansi/-/wrap-ansi-7.0.0.tgz", - "integrity": "sha512-YVGIj2kamLSTxw6NsZjoBxfSwsn0ycdesmc4p+Q21c5zPuZ1pl+NfxVdxPtdHvmNVOQ6XSYG4AUtyt/Fi7D16Q==", - "dependencies": { - "ansi-styles": "^4.0.0", - "string-width": "^4.1.0", - "strip-ansi": "^6.0.0" - }, - "engines": { - "node": ">=10" - }, - "funding": { - "url": "https://github.com/chalk/wrap-ansi?sponsor=1" - } - }, "node_modules/wrappy": { "version": "1.0.2", "resolved": "https://registry.npmjs.org/wrappy/-/wrappy-1.0.2.tgz", diff --git a/core/package.json b/core/package.json index bbf7d43b4..113d92f1f 100644 --- a/core/package.json +++ b/core/package.json @@ -22,8 +22,8 @@ "eslint-plugin-import": "^2.29.1", "eslint-plugin-require-extensions": "^0.1.3", "jest": "^29.7.0", - "onnxruntime-common": "^1.17.3", - "onnxruntime-web": "^1.17.3", + "onnxruntime-common": "1.14.0", + "onnxruntime-web": "1.14.0", "ts-jest": "^29.1.1" }, "dependencies": { @@ -35,7 +35,8 @@ "@types/node-fetch": "^2.6.11", "@typescript-eslint/eslint-plugin": "^7.8.0", "@typescript-eslint/parser": "^7.8.0", - "@xenova/transformers": "^2.14.0", + "@xenova/transformers": "2.14.0", + "onnxruntime-node": "1.14.0", "adf-to-md": "^1.1.0", "axios": "^1.6.7", "cheerio": "^1.0.0-rc.12", @@ -55,7 +56,6 @@ "node-fetch": "^3.3.2", "node-html-markdown": "^1.3.0", "ollama": "^0.4.6", - "onnxruntime-node": "1.17.3-rev.1", "openai": "^4.20.1", "pg": "^8.11.3", "posthog-node": "^3.6.3", diff --git a/extensions/vscode/package-lock.json b/extensions/vscode/package-lock.json index ed80fd5dd..78f6c9e1d 100644 --- a/extensions/vscode/package-lock.json +++ b/extensions/vscode/package-lock.json @@ -99,7 +99,7 @@ "@types/node-fetch": "^2.6.11", "@typescript-eslint/eslint-plugin": "^7.8.0", "@typescript-eslint/parser": "^7.8.0", - "@xenova/transformers": "^2.14.0", + "@xenova/transformers": "2.14.0", "adf-to-md": "^1.1.0", "axios": "^1.6.7", "cheerio": "^1.0.0-rc.12", @@ -114,11 +114,12 @@ "ignore": "^5.3.1", "js-tiktoken": "^1.0.8", "jsdom": "^24.0.0", + "launchdarkly-node-client-sdk": "^3.2.0", "llm-code-highlighter": "^0.0.14", "node-fetch": "^3.3.2", "node-html-markdown": "^1.3.0", "ollama": "^0.4.6", - "onnxruntime-node": "1.17.3-rev.1", + "onnxruntime-node": "1.14.0", "openai": "^4.20.1", "pg": "^8.11.3", "posthog-node": "^3.6.3", @@ -144,8 +145,8 @@ "eslint-plugin-import": "^2.29.1", "eslint-plugin-require-extensions": "^0.1.3", "jest": "^29.7.0", - "onnxruntime-common": "^1.17.3", - "onnxruntime-web": "^1.17.3", + "onnxruntime-common": "1.14.0", + "onnxruntime-web": "1.14.0", "ts-jest": "^29.1.1" }, "engines": { @@ -2442,6 +2443,17 @@ } } }, + "node_modules/@openapitools/openapi-generator-cli/node_modules/axios": { + "version": "1.6.8", + "resolved": "https://registry.npmjs.org/axios/-/axios-1.6.8.tgz", + "integrity": "sha512-v/ZHtJDU39mDpyBoFVkETcd/uNdxrWRrg3bKpOKzXFA6Bvqopts6ALSMU3y6ijYxbw2B+wPrIv46egTzJXCLGQ==", + "dev": true, + "dependencies": { + "follow-redirects": "^1.15.6", + "form-data": "^4.0.0", + "proxy-from-env": "^1.1.0" + } + }, "node_modules/@openapitools/openapi-generator-cli/node_modules/glob": { "version": "7.2.3", "resolved": "https://registry.npmjs.org/glob/-/glob-7.2.3.tgz", @@ -3598,6 +3610,7 @@ "version": "3.0.1", "resolved": "https://registry.npmjs.org/are-we-there-yet/-/are-we-there-yet-3.0.1.tgz", "integrity": "sha512-QZW4EDmGwlYur0Yyf/b2uGucHQMa8aFUP7eu9ddR73vvhFyt4V0Vl3QHPcTNJ8l6qYOBdxgXdnBXQrHilfRQBg==", + "deprecated": "This package is no longer supported.", "dependencies": { "delegates": "^1.0.0", "readable-stream": "^3.6.0" @@ -3693,14 +3706,14 @@ } }, "node_modules/aws4": { - "version": "1.12.0", - "resolved": "https://registry.npmjs.org/aws4/-/aws4-1.12.0.tgz", - "integrity": "sha512-NmWvPnx0F1SfrQbYwOi7OeaNGokp9XhzNioJ/CSBs8Qa4vxug81mhJEAVZwxXuBmYB5KDRfMq/F3RR0BIU7sWg==" + "version": "1.13.0", + "resolved": "https://registry.npmjs.org/aws4/-/aws4-1.13.0.tgz", + "integrity": "sha512-3AungXC4I8kKsS9PuS4JH2nc+0bVY/mjgrephHTIi8fpEeGsTHBUJeosp0Wc1myYMElmD0B3Oc4XL/HVJ4PV2g==" }, "node_modules/axios": { - "version": "1.6.8", - "resolved": "https://registry.npmjs.org/axios/-/axios-1.6.8.tgz", - "integrity": "sha512-v/ZHtJDU39mDpyBoFVkETcd/uNdxrWRrg3bKpOKzXFA6Bvqopts6ALSMU3y6ijYxbw2B+wPrIv46egTzJXCLGQ==", + "version": "1.7.1", + "resolved": "https://registry.npmjs.org/axios/-/axios-1.7.1.tgz", + "integrity": "sha512-+LV37nQcd1EpFalkXksWNBiA17NZ5m5/WspmHGmZmdx1qBOg/VNq/c4eRJiA9VQQHBOs+N0ZhhdU10h2TyNK7Q==", "dependencies": { "follow-redirects": "^1.15.6", "form-data": "^4.0.0", @@ -3961,11 +3974,11 @@ } }, "node_modules/braces": { - "version": "3.0.2", - "resolved": "https://registry.npmjs.org/braces/-/braces-3.0.2.tgz", - "integrity": "sha512-b8um+L1RzM3WDSzvhm6gIz1yfTbBt6YTlcEKAvsmqCZZFw46z626lVj9j1yEPW33H5H+lBQpZMP1k8l+78Ha0A==", + "version": "3.0.3", + "resolved": "https://registry.npmjs.org/braces/-/braces-3.0.3.tgz", + "integrity": "sha512-yQbXgO/OSZVD2IsiLlro+7Hf6Q18EJrKSEsdoMzKePKXct3gvD8oLcOQdIzGupr5Fj+EDe8gO/lxc1BzfMpxvA==", "dependencies": { - "fill-range": "^7.0.1" + "fill-range": "^7.1.1" }, "engines": { "node": ">=8" @@ -5421,9 +5434,9 @@ "integrity": "sha512-WMwm9LhRUo+WUaRN+vRuETqG89IgZphVSNkdFgeb6sS/E4OrDIN7t48CAewSHXc6C8lefD8KKfr5vY61brQlow==" }, "node_modules/electron-to-chromium": { - "version": "1.4.774", - "resolved": "https://registry.npmjs.org/electron-to-chromium/-/electron-to-chromium-1.4.774.tgz", - "integrity": "sha512-132O1XCd7zcTkzS3FgkAzKmnBuNJjK8WjcTtNuoylj7MYbqw5eXehjQ5OK91g0zm7OTKIPeaAG4CPoRfD9M1Mg==" + "version": "1.4.776", + "resolved": "https://registry.npmjs.org/electron-to-chromium/-/electron-to-chromium-1.4.776.tgz", + "integrity": "sha512-s694bi3+gUzlliqxjPHpa9NRTlhzTgB34aan+pVKZmOTGy2xoZXl+8E1B8i5p5rtev3PKMK/H4asgNejC+YHNg==" }, "node_modules/emittery": { "version": "0.13.1", @@ -6240,9 +6253,9 @@ "integrity": "sha512-0Zt+s3L7Vf1biwWZ29aARiVYLx7iMGnEUl9x33fbB/j3jR81u/O2LbqK+Bm1CDSNDKVtJ/YjwY7TUd5SkeLQLw==" }, "node_modules/fill-range": { - "version": "7.0.1", - "resolved": "https://registry.npmjs.org/fill-range/-/fill-range-7.0.1.tgz", - "integrity": "sha512-qOo9F+dMUmC2Lcb4BbVvnKJxTPjCm+RRpe4gDuGrzkL7mEVl/djYSu2OdQ2Pa302N4oqkSg9ir6jaLWJ2USVpQ==", + "version": "7.1.1", + "resolved": "https://registry.npmjs.org/fill-range/-/fill-range-7.1.1.tgz", + "integrity": "sha512-YsGpe3WHLK8ZYi4tWDg2Jy3ebRz2rXowDxnld4bkQB00cc/1Zw9AWnC0i9ztDJitivtQvaI9KaLyKrc+hBW0yg==", "dependencies": { "to-regex-range": "^5.0.1" }, @@ -6547,6 +6560,7 @@ "version": "4.0.4", "resolved": "https://registry.npmjs.org/gauge/-/gauge-4.0.4.tgz", "integrity": "sha512-f9m+BEN5jkg6a0fZjleidjN51VE1X+mPFQ2DJ0uv1V39oCLCbsGe6yjbBnp7eK7z/+GAon99a3nHuqbuuthyPg==", + "deprecated": "This package is no longer supported.", "dependencies": { "aproba": "^1.0.3 || ^2.0.0", "color-support": "^1.1.3", @@ -9394,17 +9408,28 @@ ] }, "node_modules/micromatch": { - "version": "4.0.5", - "resolved": "https://registry.npmjs.org/micromatch/-/micromatch-4.0.5.tgz", - "integrity": "sha512-DMy+ERcEW2q8Z2Po+WNXuw3c5YaUSFjAO5GsJqfEl7UjvtIuFKO6ZrKvcItdy98dwFI2N1tg3zNIdKaQT+aNdA==", + "version": "4.0.6", + "resolved": "https://registry.npmjs.org/micromatch/-/micromatch-4.0.6.tgz", + "integrity": "sha512-Y4Ypn3oujJYxJcMacVgcs92wofTHxp9FzfDpQON4msDefoC0lb3ETvQLOdLcbhSwU1bz8HrL/1sygfBIHudrkQ==", "dependencies": { - "braces": "^3.0.2", - "picomatch": "^2.3.1" + "braces": "^3.0.3", + "picomatch": "^4.0.2" }, "engines": { "node": ">=8.6" } }, + "node_modules/micromatch/node_modules/picomatch": { + "version": "4.0.2", + "resolved": "https://registry.npmjs.org/picomatch/-/picomatch-4.0.2.tgz", + "integrity": "sha512-M7BAV6Rlcy5u+m6oPhAPFgJTzAioX/6B0DxyvDlo9l8+T3nLKbrczg2WLUyzd45L8RqfUMyGPzekbMvX2Ldkwg==", + "engines": { + "node": ">=12" + }, + "funding": { + "url": "https://github.com/sponsors/jonschlinkert" + } + }, "node_modules/mime": { "version": "1.6.0", "resolved": "https://registry.npmjs.org/mime/-/mime-1.6.0.tgz", @@ -10078,6 +10103,7 @@ "version": "6.0.2", "resolved": "https://registry.npmjs.org/npmlog/-/npmlog-6.0.2.tgz", "integrity": "sha512-/vBvz5Jfr9dT/aFWd0FIRf+T/Q2WBsLENygUaFUqstqsycmZAP/t5BvFJTK0viFmSUxiUKTUplWy5vt+rvKIxg==", + "deprecated": "This package is no longer supported.", "dependencies": { "are-we-there-yet": "^3.0.0", "console-control-strings": "^1.1.0", @@ -13382,9 +13408,9 @@ "dev": true }, "node_modules/undici": { - "version": "6.17.0", - "resolved": "https://registry.npmjs.org/undici/-/undici-6.17.0.tgz", - "integrity": "sha512-fs13QiDjPIzJ7gFAOal9CSG0c92rT2xw6MuMUJ4H30Eg5GCauLWYCCZA1tInjd6M4y+JZjVCCFr9pFpbhcC64w==", + "version": "6.18.0", + "resolved": "https://registry.npmjs.org/undici/-/undici-6.18.0.tgz", + "integrity": "sha512-nT8jjv/fE9Et1ilR6QoW8ingRTY2Pp4l2RUrdzV5Yz35RJDrtPc1DXvuNqcpsJSGIRHFdt3YKKktTzJA6r0fTA==", "engines": { "node": ">=18.17" } diff --git a/extensions/vscode/scripts/prepackage.js b/extensions/vscode/scripts/prepackage.js index 458fbf63d..32a9e7a5b 100644 --- a/extensions/vscode/scripts/prepackage.js +++ b/extensions/vscode/scripts/prepackage.js @@ -486,9 +486,9 @@ function validateFilesPresent() { `bin/napi-v3/${os}/${arch}/onnxruntime_binding.node`, `bin/napi-v3/${os}/${arch}/${ os === "darwin" - ? "libonnxruntime.1.17.3.dylib" + ? "libonnxruntime.1.14.0.dylib" : os === "linux" - ? "libonnxruntime.so.1.17.3" + ? "libonnxruntime.so.1.14.0" : "onnxruntime.dll" }`, "builtin-themes/dark_modern.json", diff --git a/gui/package-lock.json b/gui/package-lock.json index 4328f7d72..73ed1c18d 100644 --- a/gui/package-lock.json +++ b/gui/package-lock.json @@ -91,7 +91,7 @@ "@types/node-fetch": "^2.6.11", "@typescript-eslint/eslint-plugin": "^7.8.0", "@typescript-eslint/parser": "^7.8.0", - "@xenova/transformers": "^2.14.0", + "@xenova/transformers": "2.14.0", "adf-to-md": "^1.1.0", "axios": "^1.6.7", "cheerio": "^1.0.0-rc.12", @@ -106,11 +106,12 @@ "ignore": "^5.3.1", "js-tiktoken": "^1.0.8", "jsdom": "^24.0.0", + "launchdarkly-node-client-sdk": "^3.2.0", "llm-code-highlighter": "^0.0.14", "node-fetch": "^3.3.2", "node-html-markdown": "^1.3.0", "ollama": "^0.4.6", - "onnxruntime-node": "1.17.3-rev.1", + "onnxruntime-node": "1.14.0", "openai": "^4.20.1", "pg": "^8.11.3", "posthog-node": "^3.6.3", @@ -136,8 +137,8 @@ "eslint-plugin-import": "^2.29.1", "eslint-plugin-require-extensions": "^0.1.3", "jest": "^29.7.0", - "onnxruntime-common": "^1.17.3", - "onnxruntime-web": "^1.17.3", + "onnxruntime-common": "1.14.0", + "onnxruntime-web": "1.14.0", "ts-jest": "^29.1.1" }, "engines": { @@ -818,13 +819,6 @@ "license": "MIT", "optional": true }, - "../core/node_modules/@huggingface/jinja": { - "version": "0.2.2", - "license": "MIT", - "engines": { - "node": ">=18" - } - }, "../core/node_modules/@humanwhocodes/config-array": { "version": "0.11.14", "license": "Apache-2.0", @@ -870,105 +864,6 @@ "version": "2.0.3", "license": "BSD-3-Clause" }, - "../core/node_modules/@isaacs/cliui": { - "version": "8.0.2", - "license": "ISC", - "dependencies": { - "string-width": "^5.1.2", - "string-width-cjs": "npm:string-width@^4.2.0", - "strip-ansi": "^7.0.1", - "strip-ansi-cjs": "npm:strip-ansi@^6.0.1", - "wrap-ansi": "^8.1.0", - "wrap-ansi-cjs": "npm:wrap-ansi@^7.0.0" - }, - "engines": { - "node": ">=12" - } - }, - "../core/node_modules/@isaacs/cliui/node_modules/ansi-regex": { - "version": "6.0.1", - "license": "MIT", - "engines": { - "node": ">=12" - }, - "funding": { - "url": "https://github.com/chalk/ansi-regex?sponsor=1" - } - }, - "../core/node_modules/@isaacs/cliui/node_modules/ansi-styles": { - "version": "6.2.1", - "license": "MIT", - "engines": { - "node": ">=12" - }, - "funding": { - "url": "https://github.com/chalk/ansi-styles?sponsor=1" - } - }, - "../core/node_modules/@isaacs/cliui/node_modules/emoji-regex": { - "version": "9.2.2", - "license": "MIT" - }, - "../core/node_modules/@isaacs/cliui/node_modules/string-width": { - "version": "5.1.2", - "license": "MIT", - "dependencies": { - "eastasianwidth": "^0.2.0", - "emoji-regex": "^9.2.2", - "strip-ansi": "^7.0.1" - }, - "engines": { - "node": ">=12" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - }, - "../core/node_modules/@isaacs/cliui/node_modules/strip-ansi": { - "version": "7.1.0", - "license": "MIT", - "dependencies": { - "ansi-regex": "^6.0.1" - }, - "engines": { - "node": ">=12" - }, - "funding": { - "url": "https://github.com/chalk/strip-ansi?sponsor=1" - } - }, - "../core/node_modules/@isaacs/cliui/node_modules/wrap-ansi": { - "version": "8.1.0", - "license": "MIT", - "dependencies": { - "ansi-styles": "^6.1.0", - "string-width": "^5.0.1", - "strip-ansi": "^7.0.1" - }, - "engines": { - "node": ">=12" - }, - "funding": { - "url": "https://github.com/chalk/wrap-ansi?sponsor=1" - } - }, - "../core/node_modules/@isaacs/fs-minipass": { - "version": "4.0.1", - "license": "ISC", - "dependencies": { - "minipass": "^7.0.4" - }, - "engines": { - "node": ">=18.0.0" - } - }, - "../core/node_modules/@isaacs/fs-minipass/node_modules/minipass": { - "version": "7.1.1", - "license": "ISC", - "engines": { - "node": ">=16 || 14 >=14.17" - } - }, "../core/node_modules/@istanbuljs/load-nyc-config": { "version": "1.1.0", "dev": true, @@ -1605,32 +1500,29 @@ "@octokit/openapi-types": "^22.1.0" } }, - "../core/node_modules/@pkgjs/parseargs": { - "version": "0.11.0", - "license": "MIT", - "optional": true, - "engines": { - "node": ">=14" - } - }, "../core/node_modules/@protobufjs/aspromise": { "version": "1.1.2", + "dev": true, "license": "BSD-3-Clause" }, "../core/node_modules/@protobufjs/base64": { "version": "1.1.2", + "dev": true, "license": "BSD-3-Clause" }, "../core/node_modules/@protobufjs/codegen": { "version": "2.0.4", + "dev": true, "license": "BSD-3-Clause" }, "../core/node_modules/@protobufjs/eventemitter": { "version": "1.1.0", + "dev": true, "license": "BSD-3-Clause" }, "../core/node_modules/@protobufjs/fetch": { "version": "1.1.0", + "dev": true, "license": "BSD-3-Clause", "dependencies": { "@protobufjs/aspromise": "^1.1.1", @@ -1639,22 +1531,27 @@ }, "../core/node_modules/@protobufjs/float": { "version": "1.0.2", + "dev": true, "license": "BSD-3-Clause" }, "../core/node_modules/@protobufjs/inquire": { "version": "1.1.0", + "dev": true, "license": "BSD-3-Clause" }, "../core/node_modules/@protobufjs/path": { "version": "1.1.2", + "dev": true, "license": "BSD-3-Clause" }, "../core/node_modules/@protobufjs/pool": { "version": "1.1.0", + "dev": true, "license": "BSD-3-Clause" }, "../core/node_modules/@protobufjs/utf8": { "version": "1.1.0", + "dev": true, "license": "BSD-3-Clause" }, "../core/node_modules/@sinclair/typebox": { @@ -1804,10 +1701,6 @@ "version": "0.0.29", "license": "MIT" }, - "../core/node_modules/@types/long": { - "version": "4.0.2", - "license": "MIT" - }, "../core/node_modules/@types/mozilla-readability": { "version": "0.2.1", "license": "MIT" @@ -2039,55 +1932,6 @@ "version": "1.2.0", "license": "ISC" }, - "../core/node_modules/@xenova/transformers": { - "version": "2.17.1", - "license": "Apache-2.0", - "dependencies": { - "@huggingface/jinja": "^0.2.2", - "onnxruntime-web": "1.14.0", - "sharp": "^0.32.0" - }, - "optionalDependencies": { - "onnxruntime-node": "1.14.0" - } - }, - "../core/node_modules/@xenova/transformers/node_modules/flatbuffers": { - "version": "1.12.0", - "license": "SEE LICENSE IN LICENSE.txt" - }, - "../core/node_modules/@xenova/transformers/node_modules/long": { - "version": "4.0.0", - "license": "Apache-2.0" - }, - "../core/node_modules/@xenova/transformers/node_modules/onnxruntime-common": { - "version": "1.14.0", - "license": "MIT" - }, - "../core/node_modules/@xenova/transformers/node_modules/onnxruntime-node": { - "version": "1.14.0", - "license": "MIT", - "optional": true, - "os": [ - "win32", - "darwin", - "linux" - ], - "dependencies": { - "onnxruntime-common": "~1.14.0" - } - }, - "../core/node_modules/@xenova/transformers/node_modules/onnxruntime-web": { - "version": "1.14.0", - "license": "MIT", - "dependencies": { - "flatbuffers": "^1.12.0", - "guid-typescript": "^1.0.9", - "long": "^4.0.0", - "onnx-proto": "^4.0.4", - "onnxruntime-common": "~1.14.0", - "platform": "^1.3.6" - } - }, "../core/node_modules/@yomguithereal/helpers": { "version": "1.1.1", "license": "MIT" @@ -2456,10 +2300,6 @@ "proxy-from-env": "^1.1.0" } }, - "../core/node_modules/b4a": { - "version": "1.6.6", - "license": "Apache-2.0" - }, "../core/node_modules/babel-jest": { "version": "29.7.0", "dev": true, @@ -2573,42 +2413,6 @@ "version": "1.0.2", "license": "MIT" }, - "../core/node_modules/bare-events": { - "version": "2.2.2", - "license": "Apache-2.0", - "optional": true - }, - "../core/node_modules/bare-fs": { - "version": "2.3.0", - "license": "Apache-2.0", - "optional": true, - "dependencies": { - "bare-events": "^2.0.0", - "bare-path": "^2.0.0", - "bare-stream": "^1.0.0" - } - }, - "../core/node_modules/bare-os": { - "version": "2.3.0", - "license": "Apache-2.0", - "optional": true - }, - "../core/node_modules/bare-path": { - "version": "2.1.1", - "license": "Apache-2.0", - "optional": true, - "dependencies": { - "bare-os": "^2.1.0" - } - }, - "../core/node_modules/bare-stream": { - "version": "1.0.0", - "license": "Apache-2.0", - "optional": true, - "dependencies": { - "streamx": "^2.16.1" - } - }, "../core/node_modules/base64-js": { "version": "1.5.1", "funding": [ @@ -3041,17 +2845,6 @@ "dev": true, "license": "MIT" }, - "../core/node_modules/color": { - "version": "4.2.3", - "license": "MIT", - "dependencies": { - "color-convert": "^2.0.1", - "color-string": "^1.9.0" - }, - "engines": { - "node": ">=12.5.0" - } - }, "../core/node_modules/color-convert": { "version": "2.0.1", "license": "MIT", @@ -3066,14 +2859,6 @@ "version": "1.1.4", "license": "MIT" }, - "../core/node_modules/color-string": { - "version": "1.9.1", - "license": "MIT", - "dependencies": { - "color-name": "^1.0.0", - "simple-swizzle": "^0.2.2" - } - }, "../core/node_modules/color-support": { "version": "1.1.3", "license": "ISC", @@ -3530,10 +3315,6 @@ "url": "https://dotenvx.com" } }, - "../core/node_modules/eastasianwidth": { - "version": "0.2.0", - "license": "MIT" - }, "../core/node_modules/ecc-jsbn": { "version": "0.1.2", "license": "MIT", @@ -3564,6 +3345,7 @@ }, "../core/node_modules/emoji-regex": { "version": "8.0.0", + "devOptional": true, "license": "MIT" }, "../core/node_modules/encoding": { @@ -4213,10 +3995,6 @@ "version": "3.1.3", "license": "MIT" }, - "../core/node_modules/fast-fifo": { - "version": "1.3.2", - "license": "MIT" - }, "../core/node_modules/fast-glob": { "version": "3.3.2", "license": "MIT", @@ -4387,30 +4165,6 @@ "is-callable": "^1.1.3" } }, - "../core/node_modules/foreground-child": { - "version": "3.1.1", - "license": "ISC", - "dependencies": { - "cross-spawn": "^7.0.0", - "signal-exit": "^4.0.1" - }, - "engines": { - "node": ">=14" - }, - "funding": { - "url": "https://github.com/sponsors/isaacs" - } - }, - "../core/node_modules/foreground-child/node_modules/signal-exit": { - "version": "4.1.0", - "license": "ISC", - "engines": { - "node": ">=14" - }, - "funding": { - "url": "https://github.com/sponsors/isaacs" - } - }, "../core/node_modules/forever-agent": { "version": "0.6.1", "license": "Apache-2.0", @@ -4795,6 +4549,7 @@ }, "../core/node_modules/guid-typescript": { "version": "1.0.9", + "dev": true, "license": "ISC" }, "../core/node_modules/handlebars": { @@ -5225,6 +4980,7 @@ }, "../core/node_modules/is-fullwidth-code-point": { "version": "3.0.0", + "devOptional": true, "license": "MIT", "engines": { "node": ">=8" @@ -5462,22 +5218,6 @@ "node": ">=8" } }, - "../core/node_modules/jackspeak": { - "version": "2.3.6", - "license": "BlueOak-1.0.0", - "dependencies": { - "@isaacs/cliui": "^8.0.2" - }, - "engines": { - "node": ">=14" - }, - "funding": { - "url": "https://github.com/sponsors/isaacs" - }, - "optionalDependencies": { - "@pkgjs/parseargs": "^0.11.0" - } - }, "../core/node_modules/jest": { "version": "29.7.0", "dev": true, @@ -6603,10 +6343,6 @@ "node": ">=10" } }, - "../core/node_modules/node-addon-api": { - "version": "6.1.0", - "license": "MIT" - }, "../core/node_modules/node-domexception": { "version": "1.0.0", "funding": [ @@ -6905,64 +6641,11 @@ "url": "https://github.com/sponsors/sindresorhus" } }, - "../core/node_modules/onnx-proto": { - "version": "4.0.4", - "license": "MIT", - "dependencies": { - "protobufjs": "^6.8.8" - } - }, - "../core/node_modules/onnx-proto/node_modules/long": { - "version": "4.0.0", - "license": "Apache-2.0" - }, - "../core/node_modules/onnx-proto/node_modules/protobufjs": { - "version": "6.11.4", - "hasInstallScript": true, - "license": "BSD-3-Clause", - "dependencies": { - "@protobufjs/aspromise": "^1.1.2", - "@protobufjs/base64": "^1.1.2", - "@protobufjs/codegen": "^2.0.4", - "@protobufjs/eventemitter": "^1.1.0", - "@protobufjs/fetch": "^1.1.0", - "@protobufjs/float": "^1.0.2", - "@protobufjs/inquire": "^1.1.0", - "@protobufjs/path": "^1.1.2", - "@protobufjs/pool": "^1.1.0", - "@protobufjs/utf8": "^1.1.0", - "@types/long": "^4.0.1", - "@types/node": ">=13.7.0", - "long": "^4.0.0" - }, - "bin": { - "pbjs": "bin/pbjs", - "pbts": "bin/pbts" - } - }, "../core/node_modules/onnxruntime-common": { "version": "1.18.0", "dev": true, "license": "MIT" }, - "../core/node_modules/onnxruntime-node": { - "version": "1.17.3-rev.1", - "hasInstallScript": true, - "license": "MIT", - "os": [ - "win32", - "darwin", - "linux" - ], - "dependencies": { - "onnxruntime-common": "1.17.3", - "tar": "^7.0.1" - } - }, - "../core/node_modules/onnxruntime-node/node_modules/onnxruntime-common": { - "version": "1.17.3", - "license": "MIT" - }, "../core/node_modules/onnxruntime-web": { "version": "1.18.0", "dev": true, @@ -7186,34 +6869,6 @@ "version": "1.0.7", "license": "MIT" }, - "../core/node_modules/path-scurry": { - "version": "1.11.1", - "license": "BlueOak-1.0.0", - "dependencies": { - "lru-cache": "^10.2.0", - "minipass": "^5.0.0 || ^6.0.2 || ^7.0.0" - }, - "engines": { - "node": ">=16 || 14 >=14.18" - }, - "funding": { - "url": "https://github.com/sponsors/isaacs" - } - }, - "../core/node_modules/path-scurry/node_modules/lru-cache": { - "version": "10.2.2", - "license": "ISC", - "engines": { - "node": "14 || >=16.14" - } - }, - "../core/node_modules/path-scurry/node_modules/minipass": { - "version": "7.1.1", - "license": "ISC", - "engines": { - "node": ">=16 || 14 >=14.17" - } - }, "../core/node_modules/path-type": { "version": "4.0.0", "license": "MIT", @@ -7382,6 +7037,7 @@ }, "../core/node_modules/platform": { "version": "1.3.6", + "dev": true, "license": "MIT" }, "../core/node_modules/possible-typed-array-names": { @@ -7655,10 +7311,6 @@ ], "license": "MIT" }, - "../core/node_modules/queue-tick": { - "version": "1.0.1", - "license": "MIT" - }, "../core/node_modules/rc": { "version": "1.2.8", "license": "(BSD-2-Clause OR MIT OR Apache-2.0)", @@ -8023,27 +7675,6 @@ "node": ">= 0.4" } }, - "../core/node_modules/sharp": { - "version": "0.32.6", - "hasInstallScript": true, - "license": "Apache-2.0", - "dependencies": { - "color": "^4.2.3", - "detect-libc": "^2.0.2", - "node-addon-api": "^6.1.0", - "prebuild-install": "^7.1.1", - "semver": "^7.5.4", - "simple-get": "^4.0.1", - "tar-fs": "^3.0.4", - "tunnel-agent": "^0.6.0" - }, - "engines": { - "node": ">=14.15.0" - }, - "funding": { - "url": "https://opencollective.com/libvips" - } - }, "../core/node_modules/shebang-command": { "version": "2.0.0", "license": "MIT", @@ -8123,17 +7754,6 @@ "simple-concat": "^1.0.0" } }, - "../core/node_modules/simple-swizzle": { - "version": "0.2.2", - "license": "MIT", - "dependencies": { - "is-arrayish": "^0.3.1" - } - }, - "../core/node_modules/simple-swizzle/node_modules/is-arrayish": { - "version": "0.3.2", - "license": "MIT" - }, "../core/node_modules/sisteransi": { "version": "1.0.5", "dev": true, @@ -8375,17 +7995,6 @@ "node": ">=10" } }, - "../core/node_modules/streamx": { - "version": "2.16.1", - "license": "MIT", - "dependencies": { - "fast-fifo": "^1.1.0", - "queue-tick": "^1.0.1" - }, - "optionalDependencies": { - "bare-events": "^2.2.0" - } - }, "../core/node_modules/string_decoder": { "version": "1.3.0", "license": "MIT", @@ -8407,19 +8016,7 @@ }, "../core/node_modules/string-width": { "version": "4.2.3", - "license": "MIT", - "dependencies": { - "emoji-regex": "^8.0.0", - "is-fullwidth-code-point": "^3.0.0", - "strip-ansi": "^6.0.1" - }, - "engines": { - "node": ">=8" - } - }, - "../core/node_modules/string-width-cjs": { - "name": "string-width", - "version": "4.2.3", + "devOptional": true, "license": "MIT", "dependencies": { "emoji-regex": "^8.0.0", @@ -8483,17 +8080,6 @@ "node": ">=8" } }, - "../core/node_modules/strip-ansi-cjs": { - "name": "strip-ansi", - "version": "6.0.1", - "license": "MIT", - "dependencies": { - "ansi-regex": "^5.0.1" - }, - "engines": { - "node": ">=8" - } - }, "../core/node_modules/strip-bom": { "version": "4.0.0", "dev": true, @@ -8580,123 +8166,6 @@ "node": ">=12.17" } }, - "../core/node_modules/tar": { - "version": "7.1.0", - "license": "ISC", - "dependencies": { - "@isaacs/fs-minipass": "^4.0.0", - "chownr": "^3.0.0", - "minipass": "^7.1.0", - "minizlib": "^3.0.1", - "mkdirp": "^3.0.1", - "yallist": "^5.0.0" - }, - "engines": { - "node": ">=18" - } - }, - "../core/node_modules/tar-fs": { - "version": "3.0.5", - "license": "MIT", - "dependencies": { - "pump": "^3.0.0", - "tar-stream": "^3.1.5" - }, - "optionalDependencies": { - "bare-fs": "^2.1.1", - "bare-path": "^2.1.0" - } - }, - "../core/node_modules/tar-stream": { - "version": "3.1.7", - "license": "MIT", - "dependencies": { - "b4a": "^1.6.4", - "fast-fifo": "^1.2.0", - "streamx": "^2.15.0" - } - }, - "../core/node_modules/tar/node_modules/chownr": { - "version": "3.0.0", - "license": "BlueOak-1.0.0", - "engines": { - "node": ">=18" - } - }, - "../core/node_modules/tar/node_modules/glob": { - "version": "10.3.15", - "license": "ISC", - "dependencies": { - "foreground-child": "^3.1.0", - "jackspeak": "^2.3.6", - "minimatch": "^9.0.1", - "minipass": "^7.0.4", - "path-scurry": "^1.11.0" - }, - "bin": { - "glob": "dist/esm/bin.mjs" - }, - "engines": { - "node": ">=16 || 14 >=14.18" - }, - "funding": { - "url": "https://github.com/sponsors/isaacs" - } - }, - "../core/node_modules/tar/node_modules/minipass": { - "version": "7.1.1", - "license": "ISC", - "engines": { - "node": ">=16 || 14 >=14.17" - } - }, - "../core/node_modules/tar/node_modules/minizlib": { - "version": "3.0.1", - "license": "MIT", - "dependencies": { - "minipass": "^7.0.4", - "rimraf": "^5.0.5" - }, - "engines": { - "node": ">= 18" - } - }, - "../core/node_modules/tar/node_modules/mkdirp": { - "version": "3.0.1", - "license": "MIT", - "bin": { - "mkdirp": "dist/cjs/src/bin.js" - }, - "engines": { - "node": ">=10" - }, - "funding": { - "url": "https://github.com/sponsors/isaacs" - } - }, - "../core/node_modules/tar/node_modules/rimraf": { - "version": "5.0.7", - "license": "ISC", - "dependencies": { - "glob": "^10.3.7" - }, - "bin": { - "rimraf": "dist/esm/bin.mjs" - }, - "engines": { - "node": ">=14.18" - }, - "funding": { - "url": "https://github.com/sponsors/isaacs" - } - }, - "../core/node_modules/tar/node_modules/yallist": { - "version": "5.0.0", - "license": "BlueOak-1.0.0", - "engines": { - "node": ">=18" - } - }, "../core/node_modules/test-exclude": { "version": "6.0.0", "dev": true, @@ -9310,22 +8779,6 @@ "url": "https://github.com/chalk/wrap-ansi?sponsor=1" } }, - "../core/node_modules/wrap-ansi-cjs": { - "name": "wrap-ansi", - "version": "7.0.0", - "license": "MIT", - "dependencies": { - "ansi-styles": "^4.0.0", - "string-width": "^4.1.0", - "strip-ansi": "^6.0.0" - }, - "engines": { - "node": ">=10" - }, - "funding": { - "url": "https://github.com/chalk/wrap-ansi?sponsor=1" - } - }, "../core/node_modules/wrappy": { "version": "1.0.2", "license": "ISC"