From cd35857daf5577f4677f6675344fa8488e624352 Mon Sep 17 00:00:00 2001 From: my8bit Date: Tue, 30 Jan 2024 03:30:30 +0100 Subject: [PATCH 001/105] feat: add fixed version of the nodejs --- .nvmrc | 1 + CONTRIBUTING.md | 6 ++++++ core/package.json | 3 +++ core/vendor/package.json | 3 +++ core/yarn.lock | 17 ++++++----------- docs/package.json | 2 +- extensions/vscode/package.json | 5 +++-- gui/package.json | 3 +++ package/package.json | 3 +++ 9 files changed, 29 insertions(+), 14 deletions(-) create mode 100644 .nvmrc diff --git a/.nvmrc b/.nvmrc new file mode 100644 index 000000000..7ea6a59d3 --- /dev/null +++ b/.nvmrc @@ -0,0 +1 @@ +v20.11.0 diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index 036e5734b..837f6342a 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -58,6 +58,12 @@ Continue is continuously improving, but a feature isn't complete until it is ref VS Code is assumed for development as Continue is primarily a VS Code tool at the moment. Most of the setup and running is automated through VS Code tasks and launch configurations. +Pre-requisite: you have Node.js version 20.11.0 (LTS) or higher installed. [get it on https://nodejs.org](https://nodejs.org/en/download/ +Alternatively, if you are using NVM (Node Version Manager), you can set the correct version of Node.js for this project by running the following command in the root of the project: + +```bash +nvm use + 1. Clone and open in VS Code the Continue repo `https://github.com/continuedev/continue` diff --git a/core/package.json b/core/package.json index 899bfb33f..0e2bc9cb0 100644 --- a/core/package.json +++ b/core/package.json @@ -38,5 +38,8 @@ }, "puppeteer": { "chromium_revision": "119.0.6045.105" + }, + "engines": { + "node": ">=20.11.0" } } diff --git a/core/vendor/package.json b/core/vendor/package.json index a7838e858..bdeb80b88 100644 --- a/core/vendor/package.json +++ b/core/vendor/package.json @@ -10,5 +10,8 @@ "license": "ISC", "dependencies": { "@xenova/transformers": "^2.14.0" + }, + "engines": { + "node": ">=20.11.0" } } diff --git a/core/yarn.lock b/core/yarn.lock index eed888840..582ef2485 100644 --- a/core/yarn.lock +++ b/core/yarn.lock @@ -321,10 +321,10 @@ resolved "https://registry.npmjs.org/@bcoe/v8-coverage/-/v8-coverage-0.2.3.tgz" integrity sha512-0hYQ8SB4Db5zvZB4axdMHGwEaQjkZzFjQiN9LVYvIFB2nSUHW9tYpxWriPrWDASIxiaXax83REcLxuSdnGPZtw== -"@esbuild/darwin-arm64@0.19.11": +"@esbuild/linux-x64@0.19.11": version "0.19.11" - resolved "https://registry.npmjs.org/@esbuild/darwin-arm64/-/darwin-arm64-0.19.11.tgz" - integrity sha512-ETp87DRWuSt9KdDVkqSoKoLFHYTrkyz2+65fj9nfXsaV3bMhTCjtQfw3y+um88vGRKRiF7erPrh/ZuIdLUIVxQ== + resolved "https://registry.npmjs.org/@esbuild/linux-x64/-/linux-x64-0.19.11.tgz" + integrity sha512-grbyMlVCvJSfxFQUndw5mCtWs5LO1gUlwP4CDi4iJBbVpZcqLVT29FxgGuBJGSzyOxotFG4LoO5X+M1350zmPA== "@gar/promisify@^1.0.1": version "1.1.3" @@ -576,10 +576,10 @@ "@jridgewell/resolve-uri" "^3.1.0" "@jridgewell/sourcemap-codec" "^1.4.14" -"@lancedb/vectordb-darwin-arm64@0.4.3": +"@lancedb/vectordb-linux-x64-gnu@0.4.3": version "0.4.3" - resolved "https://registry.npmjs.org/@lancedb/vectordb-darwin-arm64/-/vectordb-darwin-arm64-0.4.3.tgz" - integrity sha512-47CvvSaV1EdUsFEpXUJApTk+hMzAhCxVizipCFUlXCgcmzpCDL86wNgJij/X9a+j6zADhIX//Lsu0qd/an/Bpw== + resolved "https://registry.npmjs.org/@lancedb/vectordb-linux-x64-gnu/-/vectordb-linux-x64-gnu-0.4.3.tgz" + integrity sha512-OBx3WF3pK0xNfFJeErmuD9R2QWLa3XdeZspyTsIrQmBDeKj3HKh8y7Scpx4NH5Y09+9JNqRRKRZN7OqWTYhITg== "@neon-rs/load@^0.0.74": version "0.0.74" @@ -1880,11 +1880,6 @@ fs.realpath@^1.0.0: resolved "https://registry.npmjs.org/fs.realpath/-/fs.realpath-1.0.0.tgz" integrity sha512-OO0pH2lK6a0hZnAdau5ItzHPI6pUlvI7jMVnxUQRtw4owF2wk8lOSabtGDCTP4Ggrg2MbGnWO9X8K1t4+fGMDw== -fsevents@^2.3.2: - version "2.3.3" - resolved "https://registry.npmjs.org/fsevents/-/fsevents-2.3.3.tgz" - integrity sha512-5xoDfX+fL7faATnagmWPpbFtwh/R77WmMMqqHGS65C3vvB0YHrgF+B1YmZ3441tMj5n63k0212XNoJwzlhffQw== - function-bind@^1.1.2: version "1.1.2" resolved "https://registry.npmjs.org/function-bind/-/function-bind-1.1.2.tgz" diff --git a/docs/package.json b/docs/package.json index 154b6a718..feb4c4799 100644 --- a/docs/package.json +++ b/docs/package.json @@ -41,6 +41,6 @@ ] }, "engines": { - "node": ">=16.14" + "node": ">=20.11.0" } } diff --git a/extensions/vscode/package.json b/extensions/vscode/package.json index 5b7b64262..c90ba60d3 100644 --- a/extensions/vscode/package.json +++ b/extensions/vscode/package.json @@ -1,7 +1,7 @@ { "name": "continue", "icon": "media/icon.png", - "version": "0.8.7", + "version": "0.8.8", "repository": { "type": "git", "url": "https://github.com/continuedev/continue" @@ -22,7 +22,8 @@ "description": "Open-source autopilot for software development - bring the power of ChatGPT to your IDE", "publisher": "Continue", "engines": { - "vscode": "^1.67.0" + "vscode": "^1.67.0", + "node": ">=20.11.0" }, "galleryBanner": { "color": "#1E1E1E", diff --git a/gui/package.json b/gui/package.json index 44da6d41c..7bc4b0cb8 100644 --- a/gui/package.json +++ b/gui/package.json @@ -67,5 +67,8 @@ "tailwindcss": "^3.2.7", "typescript": "^4.9.3", "vite": "^4.1.0" + }, + "engines": { + "node": ">=20.11.0" } } diff --git a/package/package.json b/package/package.json index 5cc645f5a..93eb760b5 100644 --- a/package/package.json +++ b/package/package.json @@ -32,5 +32,8 @@ "dependencies": { "@lancedb/vectordb-darwin-arm64": "^0.4.3", "vectordb": "^0.4.3" + }, + "engines": { + "node": ">=20.11.0" } } From cde5819ee3a86301b93f514705f6b2cefb25021c Mon Sep 17 00:00:00 2001 From: my8bit Date: Tue, 30 Jan 2024 03:36:31 +0100 Subject: [PATCH 002/105] revert accidentally committed files --- core/yarn.lock | 17 +++++++++++------ extensions/vscode/package.json | 2 +- 2 files changed, 12 insertions(+), 7 deletions(-) diff --git a/core/yarn.lock b/core/yarn.lock index 582ef2485..eed888840 100644 --- a/core/yarn.lock +++ b/core/yarn.lock @@ -321,10 +321,10 @@ resolved "https://registry.npmjs.org/@bcoe/v8-coverage/-/v8-coverage-0.2.3.tgz" integrity sha512-0hYQ8SB4Db5zvZB4axdMHGwEaQjkZzFjQiN9LVYvIFB2nSUHW9tYpxWriPrWDASIxiaXax83REcLxuSdnGPZtw== -"@esbuild/linux-x64@0.19.11": +"@esbuild/darwin-arm64@0.19.11": version "0.19.11" - resolved "https://registry.npmjs.org/@esbuild/linux-x64/-/linux-x64-0.19.11.tgz" - integrity sha512-grbyMlVCvJSfxFQUndw5mCtWs5LO1gUlwP4CDi4iJBbVpZcqLVT29FxgGuBJGSzyOxotFG4LoO5X+M1350zmPA== + resolved "https://registry.npmjs.org/@esbuild/darwin-arm64/-/darwin-arm64-0.19.11.tgz" + integrity sha512-ETp87DRWuSt9KdDVkqSoKoLFHYTrkyz2+65fj9nfXsaV3bMhTCjtQfw3y+um88vGRKRiF7erPrh/ZuIdLUIVxQ== "@gar/promisify@^1.0.1": version "1.1.3" @@ -576,10 +576,10 @@ "@jridgewell/resolve-uri" "^3.1.0" "@jridgewell/sourcemap-codec" "^1.4.14" -"@lancedb/vectordb-linux-x64-gnu@0.4.3": +"@lancedb/vectordb-darwin-arm64@0.4.3": version "0.4.3" - resolved "https://registry.npmjs.org/@lancedb/vectordb-linux-x64-gnu/-/vectordb-linux-x64-gnu-0.4.3.tgz" - integrity sha512-OBx3WF3pK0xNfFJeErmuD9R2QWLa3XdeZspyTsIrQmBDeKj3HKh8y7Scpx4NH5Y09+9JNqRRKRZN7OqWTYhITg== + resolved "https://registry.npmjs.org/@lancedb/vectordb-darwin-arm64/-/vectordb-darwin-arm64-0.4.3.tgz" + integrity sha512-47CvvSaV1EdUsFEpXUJApTk+hMzAhCxVizipCFUlXCgcmzpCDL86wNgJij/X9a+j6zADhIX//Lsu0qd/an/Bpw== "@neon-rs/load@^0.0.74": version "0.0.74" @@ -1880,6 +1880,11 @@ fs.realpath@^1.0.0: resolved "https://registry.npmjs.org/fs.realpath/-/fs.realpath-1.0.0.tgz" integrity sha512-OO0pH2lK6a0hZnAdau5ItzHPI6pUlvI7jMVnxUQRtw4owF2wk8lOSabtGDCTP4Ggrg2MbGnWO9X8K1t4+fGMDw== +fsevents@^2.3.2: + version "2.3.3" + resolved "https://registry.npmjs.org/fsevents/-/fsevents-2.3.3.tgz" + integrity sha512-5xoDfX+fL7faATnagmWPpbFtwh/R77WmMMqqHGS65C3vvB0YHrgF+B1YmZ3441tMj5n63k0212XNoJwzlhffQw== + function-bind@^1.1.2: version "1.1.2" resolved "https://registry.npmjs.org/function-bind/-/function-bind-1.1.2.tgz" diff --git a/extensions/vscode/package.json b/extensions/vscode/package.json index c90ba60d3..a91d40076 100644 --- a/extensions/vscode/package.json +++ b/extensions/vscode/package.json @@ -1,7 +1,7 @@ { "name": "continue", "icon": "media/icon.png", - "version": "0.8.8", + "version": "0.8.7", "repository": { "type": "git", "url": "https://github.com/continuedev/continue" From eb2eda18de16ce2f933e333af90eacceca3cbb34 Mon Sep 17 00:00:00 2001 From: my8bit Date: Wed, 31 Jan 2024 01:00:59 +0100 Subject: [PATCH 003/105] add: unified version of the Node.js that is used locally and on Github Actions --- .github/workflows/main.yaml | 4 ++-- .github/workflows/preview.yaml | 4 ++-- core/package.json | 1 + core/vendor/package.json | 1 + docs/package.json | 1 + extensions/vscode/package.json | 1 + gui/package.json | 1 + package/package.json | 1 + 8 files changed, 10 insertions(+), 4 deletions(-) diff --git a/.github/workflows/main.yaml b/.github/workflows/main.yaml index 277b5f50f..6edee335a 100644 --- a/.github/workflows/main.yaml +++ b/.github/workflows/main.yaml @@ -54,10 +54,10 @@ jobs: node versionCheck.js # 2. Install npm dependencies - - name: Use Node.js 19.0.0 + - name: Use Node.js from .nvmrc uses: actions/setup-node@v4 with: - node-version: 19.0.0 + node-version-file: '.nvmrc' - name: Cache extension node_modules uses: actions/cache@v3 diff --git a/.github/workflows/preview.yaml b/.github/workflows/preview.yaml index 14d5da38e..d2edbbd50 100644 --- a/.github/workflows/preview.yaml +++ b/.github/workflows/preview.yaml @@ -49,10 +49,10 @@ jobs: uses: actions/checkout@v4 # 2. Install npm dependencies - - name: Use Node.js 19.0.0 + - name: Use Node.js from .nvmrc uses: actions/setup-node@v4 with: - node-version: 19.0.0 + node-version-file: '.nvmrc' - name: Cache extension node_modules uses: actions/cache@v3 diff --git a/core/package.json b/core/package.json index 0e2bc9cb0..a1a8fe14e 100644 --- a/core/package.json +++ b/core/package.json @@ -39,6 +39,7 @@ "puppeteer": { "chromium_revision": "119.0.6045.105" }, + "engine-strict": true, "engines": { "node": ">=20.11.0" } diff --git a/core/vendor/package.json b/core/vendor/package.json index bdeb80b88..3888fb78e 100644 --- a/core/vendor/package.json +++ b/core/vendor/package.json @@ -11,6 +11,7 @@ "dependencies": { "@xenova/transformers": "^2.14.0" }, + "engine-strict": true, "engines": { "node": ">=20.11.0" } diff --git a/docs/package.json b/docs/package.json index feb4c4799..1cf8cfd32 100644 --- a/docs/package.json +++ b/docs/package.json @@ -40,6 +40,7 @@ "last 1 safari version" ] }, + "engine-strict": true, "engines": { "node": ">=20.11.0" } diff --git a/extensions/vscode/package.json b/extensions/vscode/package.json index a91d40076..93cfb391f 100644 --- a/extensions/vscode/package.json +++ b/extensions/vscode/package.json @@ -25,6 +25,7 @@ "vscode": "^1.67.0", "node": ">=20.11.0" }, + "engine-strict": true, "galleryBanner": { "color": "#1E1E1E", "theme": "dark" diff --git a/gui/package.json b/gui/package.json index 7bc4b0cb8..73a9a504c 100644 --- a/gui/package.json +++ b/gui/package.json @@ -68,6 +68,7 @@ "typescript": "^4.9.3", "vite": "^4.1.0" }, + "engine-strict": true, "engines": { "node": ">=20.11.0" } diff --git a/package/package.json b/package/package.json index 93eb760b5..95d325d49 100644 --- a/package/package.json +++ b/package/package.json @@ -33,6 +33,7 @@ "@lancedb/vectordb-darwin-arm64": "^0.4.3", "vectordb": "^0.4.3" }, + "engine-strict": true, "engines": { "node": ">=20.11.0" } From a891608facc6beb6f9b64499a2d1dd86dd554d22 Mon Sep 17 00:00:00 2001 From: Lars Pagh Date: Sat, 17 Feb 2024 10:23:12 +0100 Subject: [PATCH 004/105] Set itemType for querySubmenuItem This is necessary before calling props.command the same way we do it for non-query item types. Otherwise we receive an 'Unknow provider...' error message in the 'getContextItems' case in the 'panel.webview.onDidReceiveMessage, callback. --- gui/src/components/mainInput/MentionList.tsx | 1 + 1 file changed, 1 insertion(+) diff --git a/gui/src/components/mainInput/MentionList.tsx b/gui/src/components/mainInput/MentionList.tsx index cb80878c3..915557951 100644 --- a/gui/src/components/mainInput/MentionList.tsx +++ b/gui/src/components/mainInput/MentionList.tsx @@ -295,6 +295,7 @@ const MentionList = forwardRef((props: MentionListProps, ref) => { } else { props.command({ ...querySubmenuItem, + itemType: querySubmenuItem.type, query: queryInputRef.current.value, label: `${querySubmenuItem.label}: ${queryInputRef.current.value}`, }); From 06b9ae6a6b834a26213c74f3a01cd2a556026817 Mon Sep 17 00:00:00 2001 From: Lars Pagh Date: Sat, 17 Feb 2024 10:27:56 +0100 Subject: [PATCH 005/105] include @vscode node module folder we need the @vscode folder containing ripgrep in the distribution. --- extensions/vscode/scripts/prepackage.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/extensions/vscode/scripts/prepackage.js b/extensions/vscode/scripts/prepackage.js index 4db78c7cb..a207c11f6 100644 --- a/extensions/vscode/scripts/prepackage.js +++ b/extensions/vscode/scripts/prepackage.js @@ -300,7 +300,7 @@ if (args[2] === "--target") { }); // Copy node_modules for pre-built binaries - const NODE_MODULES_TO_COPY = ["esbuild", "@esbuild", "@lancedb"]; + const NODE_MODULES_TO_COPY = ["esbuild", "@esbuild", "@lancedb", "@vscode"]; fs.mkdirSync("out/node_modules", { recursive: true }); await Promise.all( From 57daa01e1ba50024958fdfbd0369188db10c9c62 Mon Sep 17 00:00:00 2001 From: Lars Pagh Date: Sat, 17 Feb 2024 10:38:52 +0100 Subject: [PATCH 006/105] Amended path for ripgrep executable We have to preprend the 'out' folder in order to find the ripgrep executable in the distribution. Prepending 'out' during development is not necessary. We need a way to distinguish in 'ideProtocol'? --- extensions/vscode/src/ideProtocol.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/extensions/vscode/src/ideProtocol.ts b/extensions/vscode/src/ideProtocol.ts index e7855934a..1b291bbbd 100644 --- a/extensions/vscode/src/ideProtocol.ts +++ b/extensions/vscode/src/ideProtocol.ts @@ -156,13 +156,15 @@ class VsCodeIde implements IDE { const p = child_process.spawn( path.join( getExtensionUri().fsPath, + "out", "node_modules", "@vscode", "ripgrep", "bin", "rg" ), - ["-i", "-C", "2", `"${query}"`, "."], + ["-i", "-C", "2", "--", `${query}`, "."], //no regex + //["-i", "-C", "2", "-e", `${query}`, "."], //use regex { cwd: dir } ); let output = ""; From 7608cf1ccf9c2d9ae228153686cde89c10f517a6 Mon Sep 17 00:00:00 2001 From: commandblock2 Date: Wed, 21 Feb 2024 23:24:56 +0800 Subject: [PATCH 007/105] implemented locals context provider --- core/config/default.ts | 1 + core/context/providers/LocalsProvider.ts | 32 ++++++++++++++++++++++ core/context/providers/index.ts | 2 ++ core/ide/filesystem.ts | 3 ++ core/ide/index.ts | 4 +++ core/index.d.ts | 2 ++ docs/static/schemas/config.json | 1 + extensions/vscode/config_schema.json | 1 + extensions/vscode/continue_rc_schema.json | 1 + extensions/vscode/src/continueIdeClient.ts | 25 +++++++++++++++++ extensions/vscode/src/debugPanel.ts | 3 ++ extensions/vscode/src/ideProtocol.ts | 4 +++ 12 files changed, 79 insertions(+) create mode 100644 core/context/providers/LocalsProvider.ts diff --git a/core/config/default.ts b/core/config/default.ts index 7af901c99..8e134f6fe 100644 --- a/core/config/default.ts +++ b/core/config/default.ts @@ -53,6 +53,7 @@ const defaultConfig: SerializedContinueConfig = { { name: "terminal", params: {} }, { name: "problems", params: {} }, { name: "codebase", params: {} }, + { name: "locals", params: {} }, ], }; diff --git a/core/context/providers/LocalsProvider.ts b/core/context/providers/LocalsProvider.ts new file mode 100644 index 000000000..3cccab264 --- /dev/null +++ b/core/context/providers/LocalsProvider.ts @@ -0,0 +1,32 @@ +import { BaseContextProvider } from ".."; +import { + ContextItem, + ContextProviderDescription, + ContextProviderExtras, +} from "../.."; + +class LocalsProvider extends BaseContextProvider { + + static description: ContextProviderDescription = { + title: "locals", + displayTitle: "Locals", + description: "Reference the contents of the local variables", + type: "normal", + } + + async getContextItems( + query: string, + extras: ContextProviderExtras + ): Promise { + const content = await extras.ide.getDebugLocals(); + return [ + { + description: "The value, name and possibly type of the local variables", + content: `Current local variable contents:\n\n${content}`, + name: "Locals", + }, + ]; + } +} + +export default LocalsProvider \ No newline at end of file diff --git a/core/context/providers/index.ts b/core/context/providers/index.ts index e335a8363..87f95a2ee 100644 --- a/core/context/providers/index.ts +++ b/core/context/providers/index.ts @@ -14,6 +14,7 @@ import OpenFilesContextProvider from "./OpenFilesContextProvider"; import ProblemsContextProvider from "./ProblemsContextProvider"; import SearchContextProvider from "./SearchContextProvider"; import TerminalContextProvider from "./TerminalContextProvider"; +import LocalsProvider from "./LocalsProvider"; import URLContextProvider from "./URLContextProvider"; const Providers: (typeof BaseContextProvider)[] = [ @@ -22,6 +23,7 @@ const Providers: (typeof BaseContextProvider)[] = [ GitHubIssuesContextProvider, GoogleContextProvider, TerminalContextProvider, + LocalsProvider, URLContextProvider, OpenFilesContextProvider, HttpContextProvider, diff --git a/core/ide/filesystem.ts b/core/ide/filesystem.ts index 910dd022a..1d70ddd89 100644 --- a/core/ide/filesystem.ts +++ b/core/ide/filesystem.ts @@ -5,6 +5,9 @@ import { Chunk } from "../index"; import { getContinueGlobalPath } from "../util/paths"; class FileSystemIde implements IDE { + async getDebugLocals(): Promise { + throw new Error("Method not implemented."); + } async getSerializedConfig(): Promise { throw new Error("Not implemented"); } diff --git a/core/ide/index.ts b/core/ide/index.ts index 255c26a8e..393b45931 100644 --- a/core/ide/index.ts +++ b/core/ide/index.ts @@ -19,6 +19,10 @@ export class ExtensionIde implements IDE { return await r("getTerminalContents"); } + async getDebugLocals() { + return await r("getTerminalContents"); + } + async listWorkspaceContents(directory?: string): Promise { return await r("listWorkspaceContents"); } diff --git a/core/index.d.ts b/core/index.d.ts index 92ea8394f..c3c45fbaa 100644 --- a/core/index.d.ts +++ b/core/index.d.ts @@ -315,6 +315,7 @@ export interface IDE { getSerializedConfig(): Promise; getDiff(): Promise; getTerminalContents(): Promise; + getDebugLocals(): Promise; listWorkspaceContents(directory?: string): Promise; listFolders(): Promise; getWorkspaceDirs(): Promise; @@ -406,6 +407,7 @@ type ContextProviderName = | "diff" | "github" | "terminal" + | "locals" | "open" | "google" | "search" diff --git a/docs/static/schemas/config.json b/docs/static/schemas/config.json index b82858588..1b6ff3fff 100644 --- a/docs/static/schemas/config.json +++ b/docs/static/schemas/config.json @@ -987,6 +987,7 @@ "enum": [ "diff", "terminal", + "locals", "open", "google", "search", diff --git a/extensions/vscode/config_schema.json b/extensions/vscode/config_schema.json index b82858588..1b6ff3fff 100644 --- a/extensions/vscode/config_schema.json +++ b/extensions/vscode/config_schema.json @@ -987,6 +987,7 @@ "enum": [ "diff", "terminal", + "locals", "open", "google", "search", diff --git a/extensions/vscode/continue_rc_schema.json b/extensions/vscode/continue_rc_schema.json index 7f5146d5b..87a845bca 100644 --- a/extensions/vscode/continue_rc_schema.json +++ b/extensions/vscode/continue_rc_schema.json @@ -1130,6 +1130,7 @@ "enum": [ "diff", "terminal", + "locals", "open", "google", "search", diff --git a/extensions/vscode/src/continueIdeClient.ts b/extensions/vscode/src/continueIdeClient.ts index dda054467..5e0cbb7fc 100644 --- a/extensions/vscode/src/continueIdeClient.ts +++ b/extensions/vscode/src/continueIdeClient.ts @@ -447,6 +447,31 @@ class IdeProtocolClient { return terminalContents; } + async getDebugLocals(threadIndex: number = 0): Promise { + const session = vscode.debug.activeDebugSession; + + if (!session) { + vscode.window.showWarningMessage( + "No active debug session found, therefore no debug context will be provided for the llm." + ); + return ""; + } + + const threadsResponse = await session.customRequest("threads"); + const traceResponse = await session.customRequest("stackTrace", { + threadId: threadsResponse.threads[threadIndex].threadId, + startFrame: 0, + }); + const scopesResponse = await session.customRequest("scopes", { + frameId: traceResponse.stackFrames[0].id, + }); + const variablesResponse = await session.customRequest("variables", { + variablesReference: scopesResponse.scopes[0].variablesReference, + }); + + return variablesResponse as string; + } + private async _getRepo(forDirectory: vscode.Uri): Promise { // Use the native git extension to get the branch name const extension = vscode.extensions.getExtension("vscode.git"); diff --git a/extensions/vscode/src/debugPanel.ts b/extensions/vscode/src/debugPanel.ts index a4c189701..b1f44e7d8 100644 --- a/extensions/vscode/src/debugPanel.ts +++ b/extensions/vscode/src/debugPanel.ts @@ -203,6 +203,9 @@ export function getSidebarContent( respond(await ide.getTerminalContents()); break; } + case "getDebugLocals": { + respond(await ide.getDebugLocals()) + } case "listWorkspaceContents": { respond(await ide.listWorkspaceContents()); break; diff --git a/extensions/vscode/src/ideProtocol.ts b/extensions/vscode/src/ideProtocol.ts index e7855934a..38aaa9999 100644 --- a/extensions/vscode/src/ideProtocol.ts +++ b/extensions/vscode/src/ideProtocol.ts @@ -31,6 +31,10 @@ class VsCodeIde implements IDE { return await ideProtocolClient.getTerminalContents(1); } + async getDebugLocals(): Promise { + return await ideProtocolClient.getDebugLocals(); + } + async listWorkspaceContents(directory?: string): Promise { if (directory) { return await ideProtocolClient.getDirectoryContents(directory, true); From 9bb6b58862e380a7b4c5ff9d84986ef3f379e7c5 Mon Sep 17 00:00:00 2001 From: commandblock2 Date: Sat, 24 Feb 2024 17:26:46 +0800 Subject: [PATCH 008/105] normal to submenu(select thread) for the locals provider --- core/context/providers/LocalsProvider.ts | 30 ++++++++++++--- core/ide/filesystem.ts | 5 ++- core/ide/index.ts | 5 ++- core/index.d.ts | 3 +- extensions/vscode/src/activation/activate.ts | 12 ++++++ extensions/vscode/src/continueIdeClient.ts | 40 ++++++++++++++------ extensions/vscode/src/debugPanel.ts | 2 +- extensions/vscode/src/ideProtocol.ts | 7 +++- 8 files changed, 81 insertions(+), 23 deletions(-) diff --git a/core/context/providers/LocalsProvider.ts b/core/context/providers/LocalsProvider.ts index 3cccab264..9630c3804 100644 --- a/core/context/providers/LocalsProvider.ts +++ b/core/context/providers/LocalsProvider.ts @@ -3,22 +3,24 @@ import { ContextItem, ContextProviderDescription, ContextProviderExtras, + ContextSubmenuItem, + LoadSubmenuItemsArgs, } from "../.."; class LocalsProvider extends BaseContextProvider { - static description: ContextProviderDescription = { title: "locals", displayTitle: "Locals", description: "Reference the contents of the local variables", - type: "normal", - } + type: "submenu", + }; async getContextItems( query: string, extras: ContextProviderExtras ): Promise { - const content = await extras.ide.getDebugLocals(); + // Assuming that the query is a number + const content = await extras.ide.getDebugLocals(Number(query)); return [ { description: "The value, name and possibly type of the local variables", @@ -27,6 +29,24 @@ class LocalsProvider extends BaseContextProvider { }, ]; } + + async loadSubmenuItems( + args: LoadSubmenuItemsArgs + ): Promise { + const threads = await args.ide.getAvailableThreads(); + + + return threads.map((thread, threadIndex) => { + const [threadId, threadName] = thread + .split(",") + .map((str) => str.trimEnd()); + return { + id: `${threadIndex}`, + title: threadName, + description: threadId, + }; + }); + } } -export default LocalsProvider \ No newline at end of file +export default LocalsProvider; diff --git a/core/ide/filesystem.ts b/core/ide/filesystem.ts index 1d70ddd89..5ebd9896e 100644 --- a/core/ide/filesystem.ts +++ b/core/ide/filesystem.ts @@ -5,7 +5,10 @@ import { Chunk } from "../index"; import { getContinueGlobalPath } from "../util/paths"; class FileSystemIde implements IDE { - async getDebugLocals(): Promise { + getAvailableThreads(): Promise { + throw new Error("Method not implemented."); + } + async getDebugLocals(threadIndex: number): Promise { throw new Error("Method not implemented."); } async getSerializedConfig(): Promise { diff --git a/core/ide/index.ts b/core/ide/index.ts index 393b45931..a687ab5d0 100644 --- a/core/ide/index.ts +++ b/core/ide/index.ts @@ -7,6 +7,9 @@ async function r(messageType: string, options: any = {}) { return await ideRequest(messageType, options); } export class ExtensionIde implements IDE { + async getAvailableThreads(): Promise { + return await r("getAvailableThreads"); + } async getSerializedConfig(): Promise { return await r("getSerializedConfig"); } @@ -19,7 +22,7 @@ export class ExtensionIde implements IDE { return await r("getTerminalContents"); } - async getDebugLocals() { + async getDebugLocals(threadIndex: number) { return await r("getTerminalContents"); } diff --git a/core/index.d.ts b/core/index.d.ts index c3c45fbaa..bfb0ff1f2 100644 --- a/core/index.d.ts +++ b/core/index.d.ts @@ -315,7 +315,8 @@ export interface IDE { getSerializedConfig(): Promise; getDiff(): Promise; getTerminalContents(): Promise; - getDebugLocals(): Promise; + getDebugLocals(threadIndex: number): Promise; + getAvailableThreads(): Promise; listWorkspaceContents(directory?: string): Promise; listFolders(): Promise; getWorkspaceDirs(): Promise; diff --git a/extensions/vscode/src/activation/activate.ts b/extensions/vscode/src/activation/activate.ts index 488cbed00..c25cf99cc 100644 --- a/extensions/vscode/src/activation/activate.ts +++ b/extensions/vscode/src/activation/activate.ts @@ -17,6 +17,7 @@ import { vsCodeIndexCodebase } from "../util/indexCodebase"; import { getExtensionVersion } from "../util/util"; import { getExtensionUri } from "../util/vscode"; import { setupInlineTips } from "./inlineTips"; +import { debugPanelWebview } from "../debugPanel"; export let extensionContext: vscode.ExtensionContext | undefined = undefined; export let ideProtocolClient: IdeProtocolClient; @@ -130,6 +131,17 @@ export async function activateExtension(context: vscode.ExtensionContext) { ); }); + vscode.debug.registerDebugAdapterTrackerFactory("*", { + createDebugAdapterTracker(session: vscode.DebugSession) { + return { + onDidSendMessage(message: any) { + if (message.type == "event" && message.event == "breakpoint") + debugPanelWebview?.postMessage({ type: "refreshSubmenuItems" }); + }, + }; + }, + }); + // (async () => { // const defaultDocsPages = [ // ["Socket.IO", "https://python-socketio.readthedocs.io/en/stable"], diff --git a/extensions/vscode/src/continueIdeClient.ts b/extensions/vscode/src/continueIdeClient.ts index 5e0cbb7fc..dd3deb588 100644 --- a/extensions/vscode/src/continueIdeClient.ts +++ b/extensions/vscode/src/continueIdeClient.ts @@ -27,6 +27,15 @@ const exec = util.promisify(require("child_process").exec); const continueVirtualDocumentScheme = "continue"; class IdeProtocolClient { + async getAvailableThreads(): Promise { + const session = vscode.debug.activeDebugSession; + if (!session) return []; + + const threadsResponse = await session.customRequest("threads"); + return threadsResponse.threads.map( + (thread: { id: number; name: string }) => `${thread.id}, ${thread.name}` + ); + } private static PREVIOUS_BRANCH_FOR_WORKSPACE_DIR: { [dir: string]: string } = {}; @@ -457,19 +466,26 @@ class IdeProtocolClient { return ""; } - const threadsResponse = await session.customRequest("threads"); - const traceResponse = await session.customRequest("stackTrace", { - threadId: threadsResponse.threads[threadIndex].threadId, - startFrame: 0, - }); - const scopesResponse = await session.customRequest("scopes", { - frameId: traceResponse.stackFrames[0].id, - }); - const variablesResponse = await session.customRequest("variables", { - variablesReference: scopesResponse.scopes[0].variablesReference, - }); + const variablesResponse = await session + .customRequest("threads") + .then((threadsResponse) => + session.customRequest("stackTrace", { + threadId: threadsResponse.threads[threadIndex].threadId, + startFrame: 0, + }) + ) + .then((traceResponse) => + session.customRequest("scopes", { + frameId: traceResponse.stackFrames[0].id, + }) + ) + .then((scopesResponse) => + session.customRequest("variables", { + variablesReference: scopesResponse.scopes[0].variablesReference, + }) + ); - return variablesResponse as string; + return JSON.stringify(variablesResponse); } private async _getRepo(forDirectory: vscode.Uri): Promise { diff --git a/extensions/vscode/src/debugPanel.ts b/extensions/vscode/src/debugPanel.ts index b1f44e7d8..728d68ed7 100644 --- a/extensions/vscode/src/debugPanel.ts +++ b/extensions/vscode/src/debugPanel.ts @@ -204,7 +204,7 @@ export function getSidebarContent( break; } case "getDebugLocals": { - respond(await ide.getDebugLocals()) + respond(await ide.getDebugLocals(data.message.threadIndex)) } case "listWorkspaceContents": { respond(await ide.listWorkspaceContents()); diff --git a/extensions/vscode/src/ideProtocol.ts b/extensions/vscode/src/ideProtocol.ts index 38aaa9999..9fb1cfc36 100644 --- a/extensions/vscode/src/ideProtocol.ts +++ b/extensions/vscode/src/ideProtocol.ts @@ -18,6 +18,9 @@ import { traverseDirectory } from "./util/traverseDirectory"; import { getExtensionUri, openEditorAndRevealRange } from "./util/vscode"; class VsCodeIde implements IDE { + async getAvailableThreads(): Promise { + return await ideProtocolClient.getAvailableThreads(); + } async getSerializedConfig(): Promise { const config = await configHandler.loadConfig(); return finalToBrowserConfig(config); @@ -31,8 +34,8 @@ class VsCodeIde implements IDE { return await ideProtocolClient.getTerminalContents(1); } - async getDebugLocals(): Promise { - return await ideProtocolClient.getDebugLocals(); + async getDebugLocals(threadIndex: number): Promise { + return await ideProtocolClient.getDebugLocals(threadIndex); } async listWorkspaceContents(directory?: string): Promise { From a1660bc1ddc8539966d402c6172757439414b6e2 Mon Sep 17 00:00:00 2001 From: commandblock2 Date: Fri, 1 Mar 2024 12:33:43 +0800 Subject: [PATCH 009/105] added code context from the call stack --- core/context/providers/LocalsProvider.ts | 13 ++++- core/ide/filesystem.ts | 3 + core/ide/index.ts | 6 ++ core/index.d.ts | 4 ++ extensions/vscode/src/continueIdeClient.ts | 65 +++++++++++++++++++++- extensions/vscode/src/debugPanel.ts | 10 +++- extensions/vscode/src/ideProtocol.ts | 3 + 7 files changed, 99 insertions(+), 5 deletions(-) diff --git a/core/context/providers/LocalsProvider.ts b/core/context/providers/LocalsProvider.ts index 9630c3804..63add03b2 100644 --- a/core/context/providers/LocalsProvider.ts +++ b/core/context/providers/LocalsProvider.ts @@ -20,11 +20,19 @@ class LocalsProvider extends BaseContextProvider { extras: ContextProviderExtras ): Promise { // Assuming that the query is a number - const content = await extras.ide.getDebugLocals(Number(query)); + const localVariables = await extras.ide.getDebugLocals(Number(query)); + const callStacksSources = await extras.ide.getTopLevelCallStackSources( + Number(query), + 3 + ); + const callStackContents = callStacksSources.reduce( + (acc, source, index) => + acc + `\n\ncall stack ${index}\n` + "```\n" + source + "\n```", "" + ); return [ { description: "The value, name and possibly type of the local variables", - content: `Current local variable contents:\n\n${content}`, + content: `Current local variable contents:\n\n${localVariables}.\n\n Current top level call stacks: \n\n ${callStackContents}`, name: "Locals", }, ]; @@ -35,7 +43,6 @@ class LocalsProvider extends BaseContextProvider { ): Promise { const threads = await args.ide.getAvailableThreads(); - return threads.map((thread, threadIndex) => { const [threadId, threadName] = thread .split(",") diff --git a/core/ide/filesystem.ts b/core/ide/filesystem.ts index 5ebd9896e..d6a58d4f1 100644 --- a/core/ide/filesystem.ts +++ b/core/ide/filesystem.ts @@ -5,6 +5,9 @@ import { Chunk } from "../index"; import { getContinueGlobalPath } from "../util/paths"; class FileSystemIde implements IDE { + getTopLevelCallStackSources(threadIndex: number, stackDepth: number): Promise { + throw new Error("Method not implemented."); + } getAvailableThreads(): Promise { throw new Error("Method not implemented."); } diff --git a/core/ide/index.ts b/core/ide/index.ts index a687ab5d0..c11f771e4 100644 --- a/core/ide/index.ts +++ b/core/ide/index.ts @@ -7,6 +7,12 @@ async function r(messageType: string, options: any = {}) { return await ideRequest(messageType, options); } export class ExtensionIde implements IDE { + async getTopLevelCallStackSources( + threadIndex: number, + stackDepth: number + ): Promise { + return await r("getTopLevelCallStackSources"); + } async getAvailableThreads(): Promise { return await r("getAvailableThreads"); } diff --git a/core/index.d.ts b/core/index.d.ts index 535ad4d7c..073a37ef1 100644 --- a/core/index.d.ts +++ b/core/index.d.ts @@ -316,6 +316,10 @@ export interface IDE { getDiff(): Promise; getTerminalContents(): Promise; getDebugLocals(threadIndex: number): Promise; + getTopLevelCallStackSources( + threadIndex: number, + stackDepth: number + ): Promise; getAvailableThreads(): Promise; listWorkspaceContents(directory?: string): Promise; listFolders(): Promise; diff --git a/extensions/vscode/src/continueIdeClient.ts b/extensions/vscode/src/continueIdeClient.ts index a5c0b0a2d..3685fbf81 100644 --- a/extensions/vscode/src/continueIdeClient.ts +++ b/extensions/vscode/src/continueIdeClient.ts @@ -21,6 +21,7 @@ import { openEditorAndRevealRange, uriFromFilePath, } from "./util/vscode"; +import { trace } from "console"; const util = require("util"); const exec = util.promisify(require("child_process").exec); @@ -480,7 +481,69 @@ class IdeProtocolClient { }) ); - return JSON.stringify(variablesResponse); + const filteredVariables = variablesResponse.variables.map( + (variable: any) => ({ + name: variable.name, + type: variable.type, + value: variable.value, + }) + ); + + return JSON.stringify(filteredVariables); + } + + async getTopLevelCallStackSources( + threadIndex: number, + stackDepth: number = 3 + ): Promise { + const session = vscode.debug.activeDebugSession; + + const sources = await session + ?.customRequest("threads") + .then((threadsResponse) => + session.customRequest("stackTrace", { + threadId: threadsResponse.threads[threadIndex].threadId, + startFrame: 0, + }) + ) + .then((traceResponse) => + traceResponse.stackFrames + .slice(0, stackDepth) + .map(async (stackFrame: any) => + this.retrieveSource( + await session.customRequest("scopes", { + frameId: stackFrame.id, + }) + ) + ) + ); + + return Promise.all(sources); + } + + private async retrieveSource(scopesResponse: any): Promise { + const scope = scopesResponse.scopes[0]; + if (!scope.source) return ""; + + const sourceRef = scope.source.sourceReference; + if (sourceRef && sourceRef > 0) { + const sourceResponse = + await vscode.debug.activeDebugSession?.customRequest("source", { + source: scope.source, + sourceReference: sourceRef, + }); + return sourceResponse.content; // TODO: test this + } else if (scope.line) { + return await this.readRangeInFile( + scope.source.path, + new vscode.Range( + scope.line - 1, // The line number starts from 1 + scope.column, + scope.endLine - 1, + scope.endColumn + ) + ); + } else return ""; } private async _getRepo(forDirectory: vscode.Uri): Promise { diff --git a/extensions/vscode/src/debugPanel.ts b/extensions/vscode/src/debugPanel.ts index 728d68ed7..e56086307 100644 --- a/extensions/vscode/src/debugPanel.ts +++ b/extensions/vscode/src/debugPanel.ts @@ -204,7 +204,15 @@ export function getSidebarContent( break; } case "getDebugLocals": { - respond(await ide.getDebugLocals(data.message.threadIndex)) + respond(await ide.getDebugLocals(data.message.threadIndex)); + } + case "getTopLevelCallStackSources": { + respond( + await ide.getTopLevelCallStackSources( + data.message.threadIndex, + data.message.stackDepth + ) + ); } case "listWorkspaceContents": { respond(await ide.listWorkspaceContents()); diff --git a/extensions/vscode/src/ideProtocol.ts b/extensions/vscode/src/ideProtocol.ts index 9fb1cfc36..2df704e47 100644 --- a/extensions/vscode/src/ideProtocol.ts +++ b/extensions/vscode/src/ideProtocol.ts @@ -18,6 +18,9 @@ import { traverseDirectory } from "./util/traverseDirectory"; import { getExtensionUri, openEditorAndRevealRange } from "./util/vscode"; class VsCodeIde implements IDE { + async getTopLevelCallStackSources(threadIndex: number, stackDepth: number): Promise { + return await ideProtocolClient.getTopLevelCallStackSources(threadIndex, stackDepth); + } async getAvailableThreads(): Promise { return await ideProtocolClient.getAvailableThreads(); } From 8f753846b11d8b97cc24d50987da02ecb72c46cf Mon Sep 17 00:00:00 2001 From: commandblock2 Date: Fri, 1 Mar 2024 22:29:18 +0800 Subject: [PATCH 010/105] use parameter for callstack retrieving --- core/context/providers/LocalsProvider.ts | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/core/context/providers/LocalsProvider.ts b/core/context/providers/LocalsProvider.ts index 63add03b2..c01ebbd33 100644 --- a/core/context/providers/LocalsProvider.ts +++ b/core/context/providers/LocalsProvider.ts @@ -23,16 +23,19 @@ class LocalsProvider extends BaseContextProvider { const localVariables = await extras.ide.getDebugLocals(Number(query)); const callStacksSources = await extras.ide.getTopLevelCallStackSources( Number(query), - 3 + this.options?.stackDepth || 3 ); const callStackContents = callStacksSources.reduce( (acc, source, index) => - acc + `\n\ncall stack ${index}\n` + "```\n" + source + "\n```", "" + acc + `\n\ncall stack ${index}\n` + "```\n" + source + "\n```", + "" ); return [ { description: "The value, name and possibly type of the local variables", - content: `Current local variable contents:\n\n${localVariables}.\n\n Current top level call stacks: \n\n ${callStackContents}`, + content: + `Current local variable contents:\n\n${localVariables}.\n` + + `Current top level call stacks: \n\n${callStackContents}`, name: "Locals", }, ]; From 5ec1fa07b526791fe19ee22b1fdda3e974224b93 Mon Sep 17 00:00:00 2001 From: commandblock2 Date: Sun, 3 Mar 2024 01:59:21 +0800 Subject: [PATCH 011/105] added thread filtering and handle a edge case --- core/context/providers/LocalsProvider.ts | 7 +- extensions/vscode/src/activation/activate.ts | 13 +-- extensions/vscode/src/continueIdeClient.ts | 116 ++++++++++++------- extensions/vscode/src/debug/debug.ts | 53 +++++++++ 4 files changed, 132 insertions(+), 57 deletions(-) create mode 100644 extensions/vscode/src/debug/debug.ts diff --git a/core/context/providers/LocalsProvider.ts b/core/context/providers/LocalsProvider.ts index c01ebbd33..c385ecc93 100644 --- a/core/context/providers/LocalsProvider.ts +++ b/core/context/providers/LocalsProvider.ts @@ -21,8 +21,10 @@ class LocalsProvider extends BaseContextProvider { ): Promise { // Assuming that the query is a number const localVariables = await extras.ide.getDebugLocals(Number(query)); + const threadIndex = Number(query); + const thread = (await extras.ide.getAvailableThreads())[threadIndex]; const callStacksSources = await extras.ide.getTopLevelCallStackSources( - Number(query), + threadIndex, this.options?.stackDepth || 3 ); const callStackContents = callStacksSources.reduce( @@ -34,6 +36,7 @@ class LocalsProvider extends BaseContextProvider { { description: "The value, name and possibly type of the local variables", content: + `This is a paused thread: ${thread.split(",")[1].trimStart()}\n` + `Current local variable contents:\n\n${localVariables}.\n` + `Current top level call stacks: \n\n${callStackContents}`, name: "Locals", @@ -49,7 +52,7 @@ class LocalsProvider extends BaseContextProvider { return threads.map((thread, threadIndex) => { const [threadId, threadName] = thread .split(",") - .map((str) => str.trimEnd()); + .map((str) => str.trimStart()); return { id: `${threadIndex}`, title: threadName, diff --git a/extensions/vscode/src/activation/activate.ts b/extensions/vscode/src/activation/activate.ts index d7b1efbc3..eab213c90 100644 --- a/extensions/vscode/src/activation/activate.ts +++ b/extensions/vscode/src/activation/activate.ts @@ -18,7 +18,7 @@ import { setupRemoteConfigSync } from "../util/remoteConfig"; import { getExtensionVersion } from "../util/util"; import { getExtensionUri } from "../util/vscode"; import { setupInlineTips } from "./inlineTips"; -import { debugPanelWebview } from "../debugPanel"; +import { registerDebugTracker } from "../debug/debug"; export let extensionContext: vscode.ExtensionContext | undefined = undefined; export let ideProtocolClient: IdeProtocolClient; @@ -132,16 +132,7 @@ export async function activateExtension(context: vscode.ExtensionContext) { ); }); - vscode.debug.registerDebugAdapterTrackerFactory("*", { - createDebugAdapterTracker(session: vscode.DebugSession) { - return { - onDidSendMessage(message: any) { - if (message.type == "event" && message.event == "breakpoint") - debugPanelWebview?.postMessage({ type: "refreshSubmenuItems" }); - }, - }; - }, - }); + registerDebugTracker(); // (async () => { // const defaultDocsPages = [ diff --git a/extensions/vscode/src/continueIdeClient.ts b/extensions/vscode/src/continueIdeClient.ts index 3685fbf81..4f75260c7 100644 --- a/extensions/vscode/src/continueIdeClient.ts +++ b/extensions/vscode/src/continueIdeClient.ts @@ -22,21 +22,14 @@ import { uriFromFilePath, } from "./util/vscode"; import { trace } from "console"; +import { threadStopped } from "./debug/debug"; + const util = require("util"); const exec = util.promisify(require("child_process").exec); const continueVirtualDocumentScheme = "continue"; class IdeProtocolClient { - async getAvailableThreads(): Promise { - const session = vscode.debug.activeDebugSession; - if (!session) return []; - - const threadsResponse = await session.customRequest("threads"); - return threadsResponse.threads.map( - (thread: { id: number; name: string }) => `${thread.id}, ${thread.name}` - ); - } private static PREVIOUS_BRANCH_FOR_WORKSPACE_DIR: { [dir: string]: string } = {}; @@ -452,6 +445,27 @@ class IdeProtocolClient { return terminalContents; } + private async _getThreads(session: vscode.DebugSession) { + const threadsResponse = await session.customRequest("threads"); + const threads = threadsResponse.threads.filter((thread: any) => + threadStopped.get(thread.id) + ); + threads.sort((a: any, b: any) => a.id - b.id); + threadsResponse.threads = threads; + + return threadsResponse; + } + + async getAvailableThreads(): Promise { + const session = vscode.debug.activeDebugSession; + if (!session) return []; + + const threadsResponse = await this._getThreads(session); + return threadsResponse.threads.map( + (thread: { id: number; name: string }) => `${thread.id}, ${thread.name}` + ); + } + async getDebugLocals(threadIndex: number = 0): Promise { const session = vscode.debug.activeDebugSession; @@ -462,11 +476,10 @@ class IdeProtocolClient { return ""; } - const variablesResponse = await session - .customRequest("threads") + const variablesResponse = await this._getThreads(session) .then((threadsResponse) => session.customRequest("stackTrace", { - threadId: threadsResponse.threads[threadIndex].threadId, + threadId: threadsResponse.threads[threadIndex].id, startFrame: 0, }) ) @@ -481,15 +494,16 @@ class IdeProtocolClient { }) ); - const filteredVariables = variablesResponse.variables.map( - (variable: any) => ({ - name: variable.name, - type: variable.type, - value: variable.value, - }) - ); + const variableContext = variablesResponse.variables + .filter((variable: any) => variable.type !== "global") + .reduce( + (acc: any, variable: any) => + `${acc}\nname: ${variable.name}, type: ${variable.type}, ` + + `value: ${variable.value}`, + "" + ); - return JSON.stringify(filteredVariables); + return variableContext; } async getTopLevelCallStackSources( @@ -497,53 +511,67 @@ class IdeProtocolClient { stackDepth: number = 3 ): Promise { const session = vscode.debug.activeDebugSession; + if (!session) return []; - const sources = await session - ?.customRequest("threads") + const sourcesPromises = await this._getThreads(session) .then((threadsResponse) => session.customRequest("stackTrace", { - threadId: threadsResponse.threads[threadIndex].threadId, + threadId: threadsResponse.threads[threadIndex].id, startFrame: 0, }) ) .then((traceResponse) => traceResponse.stackFrames .slice(0, stackDepth) - .map(async (stackFrame: any) => - this.retrieveSource( - await session.customRequest("scopes", { - frameId: stackFrame.id, - }) - ) - ) + .map(async (stackFrame: any) => { + const scopeResponse = await session.customRequest("scopes", { + frameId: stackFrame.id, + }); + + const scope = scopeResponse.scopes[0]; + + return await this.retrieveSource(scope.source ? scope : stackFrame); + }) ); - return Promise.all(sources); + return Promise.all(sourcesPromises); } - private async retrieveSource(scopesResponse: any): Promise { - const scope = scopesResponse.scopes[0]; - if (!scope.source) return ""; + private async retrieveSource(sourceContainer: any): Promise { + if (!sourceContainer.source) return ""; - const sourceRef = scope.source.sourceReference; + const sourceRef = sourceContainer.source.sourceReference; if (sourceRef && sourceRef > 0) { + // according to the spec, source might be ony available in a debug session + // not yet able to test this branch const sourceResponse = await vscode.debug.activeDebugSession?.customRequest("source", { - source: scope.source, + source: sourceContainer.source, sourceReference: sourceRef, }); - return sourceResponse.content; // TODO: test this - } else if (scope.line) { + return sourceResponse.content; + } else if (sourceContainer.line && sourceContainer.endLine) { return await this.readRangeInFile( - scope.source.path, + sourceContainer.source.path, new vscode.Range( - scope.line - 1, // The line number starts from 1 - scope.column, - scope.endLine - 1, - scope.endColumn + sourceContainer.line - 1, // The line number from scope response starts from 1 + sourceContainer.column, + sourceContainer.endLine - 1, + sourceContainer.endColumn ) ); - } else return ""; + } else if (sourceContainer.line) + // fall back to 5 line of context + return await this.readRangeInFile( + sourceContainer.source.path, + new vscode.Range( + sourceContainer.line - 3, + 0, + sourceContainer.line + 2, + 0 + ) + ); + else return "unavailable"; } private async _getRepo(forDirectory: vscode.Uri): Promise { diff --git a/extensions/vscode/src/debug/debug.ts b/extensions/vscode/src/debug/debug.ts new file mode 100644 index 000000000..252a368e1 --- /dev/null +++ b/extensions/vscode/src/debug/debug.ts @@ -0,0 +1,53 @@ +import * as vscode from "vscode"; +import { debugPanelWebview } from "../debugPanel"; + +export const threadStopped: Map = new Map(); +// Arrays has better perf but you probably won't have thousands of threads in a single debug session + +export function registerDebugTracker() { + vscode.debug.registerDebugAdapterTrackerFactory("*", { + createDebugAdapterTracker(session: vscode.DebugSession) { + return { + onDidSendMessage(message: any) { + console.log(message) + if (message.type == "event") { + switch (message.event) { + case "continued": + case "stopped": + if (typeof message.body.threadId !== "undefined") + threadStopped.set( + Number(message.body.threadId), + message.event == "stopped" + ); + + if (message.body.allThreadsStopped) + threadStopped.forEach((_, key) => + threadStopped.set(key, true) + ); + + if (message.body.allThreadsContinued) + threadStopped.forEach((_, key) => + threadStopped.set(key, false) + ); + + debugPanelWebview?.postMessage({ type: "refreshSubmenuItems" }); + break; + + case "thread": + if (message.body.reason == "exited") + threadStopped.delete(Number(message.body.threadId)); + else if (message.body.reason == "started") + threadStopped.set(Number(message.body.threadId), false); + // somehow the threadId does not respect the specification in my vscodium (debugging C++) + // expecting a number but got a string instead + break; + + default: + break; + } + } + } + }; + }, + }); +} From 0f24de2c75d10041a7a6a012cf19d8880a413500 Mon Sep 17 00:00:00 2001 From: commandblock2 Date: Sun, 3 Mar 2024 12:19:13 +0800 Subject: [PATCH 012/105] revert accidentally committed file --- .vscode/tasks.json | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.vscode/tasks.json b/.vscode/tasks.json index 911b8a7e8..16c7f8614 100644 --- a/.vscode/tasks.json +++ b/.vscode/tasks.json @@ -56,8 +56,8 @@ { "label": "vscode-extension:continue-ui:build", "type": "shell", - "command": "proxychains", - "args": ["-q", "node", "${workspaceFolder}/extensions/vscode/scripts/prepackage.js"], + "command": "node", + "args": ["${workspaceFolder}/extensions/vscode/scripts/prepackage.js"], "problemMatcher": ["$tsc"], "presentation": { "revealProblems": "onProblem", From 3f6f9f202ae0b36ed219bc772b26940f2e468691 Mon Sep 17 00:00:00 2001 From: commandblock2 Date: Mon, 11 Mar 2024 14:59:05 +0800 Subject: [PATCH 013/105] temporary fix to use refreshSubmenuItems --- extensions/vscode/src/debug/debug.ts | 1 - gui/src/hooks/useSubmenuContextProviders.tsx | 2 +- 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/extensions/vscode/src/debug/debug.ts b/extensions/vscode/src/debug/debug.ts index 6748d05e7..fdab0d945 100644 --- a/extensions/vscode/src/debug/debug.ts +++ b/extensions/vscode/src/debug/debug.ts @@ -9,7 +9,6 @@ export function registerDebugTracker(webviewProtocol: VsCodeWebviewProtocol) { createDebugAdapterTracker(session: vscode.DebugSession) { return { onDidSendMessage(message: any) { - console.log(message) if (message.type == "event") { switch (message.event) { case "continued": diff --git a/gui/src/hooks/useSubmenuContextProviders.tsx b/gui/src/hooks/useSubmenuContextProviders.tsx index c992b4632..c4b1072e3 100644 --- a/gui/src/hooks/useSubmenuContextProviders.tsx +++ b/gui/src/hooks/useSubmenuContextProviders.tsx @@ -42,7 +42,7 @@ function useSubmenuContextProviders() { } useWebviewListener("refreshSubmenuItems", async (data) => { - setLoaded(true); + setLoaded(false); }); function addItem(providerTitle: string, item: ContextSubmenuItem) { From 4181490794d48e0aa4494df2c03dc8cc91683ce1 Mon Sep 17 00:00:00 2001 From: commandblock2 Date: Mon, 11 Mar 2024 22:26:43 +0800 Subject: [PATCH 014/105] added updateSubmenuItems request --- core/web/webviewProtocol.ts | 20 +++++--- extensions/vscode/src/debug/debug.ts | 26 ++++++++-- .../vscode/src/extension/vscodeExtension.ts | 40 +++++++-------- extensions/vscode/src/util/ideUtils.ts | 49 +++++++++---------- gui/src/hooks/useSubmenuContextProviders.tsx | 21 ++++++++ 5 files changed, 101 insertions(+), 55 deletions(-) diff --git a/core/web/webviewProtocol.ts b/core/web/webviewProtocol.ts index 469c9822b..85741b085 100644 --- a/core/web/webviewProtocol.ts +++ b/core/web/webviewProtocol.ts @@ -1,5 +1,6 @@ import { ContextItemWithId, + ContextSubmenuItem, ContinueRcJson, DiffLine, Problem, @@ -23,7 +24,7 @@ export type IdeProtocol = { readFile: [{ filepath: string }, string]; showDiff: [ { filepath: string; newContents: string; stepIndex: number }, - void, + void ]; diffLine: [ { @@ -32,7 +33,7 @@ export type IdeProtocol = { startLine: number; endLine: number; }, - void, + void ]; getProblems: [{ filepath: string }, Problem[]]; getBranch: [{ dir: string }, string]; @@ -43,8 +44,11 @@ export type IdeProtocol = { getDiff: [undefined, string]; getWorkspaceConfigs: [undefined, ContinueRcJson[]]; getTerminalContents: [undefined, string]; - getDebugLocals: [{threadIndex: Number}, string]; - getTopLevelCallStackSources: [{threadIndex: number, stackDepth: number}, string[]]; + getDebugLocals: [{ threadIndex: Number }, string]; + getTopLevelCallStackSources: [ + { threadIndex: number; stackDepth: number }, + string[] + ]; getAvailableThreads: [undefined, string[]]; isTelemetryEnabled: [undefined, boolean]; getUniqueId: [undefined, string]; @@ -60,7 +64,7 @@ export type WebviewProtocol = Protocol & workspacePaths: string[]; vscMachineId: string; vscMediaUrl: string; - }, + } ]; errorPopup: [{ message: string }, void]; @@ -86,7 +90,11 @@ export type ReverseWebviewProtocol = { historyIndex: number; item: ContextItemWithId; }, - void, + void + ]; + updateSubmenuItems: [ + { provider: string; submenuItems: ContextSubmenuItem[] }, + void ]; getDefaultModelTitle: [undefined, string]; newSessionWithPrompt: [{ prompt: string }, void]; diff --git a/extensions/vscode/src/debug/debug.ts b/extensions/vscode/src/debug/debug.ts index fdab0d945..623ea5c5a 100644 --- a/extensions/vscode/src/debug/debug.ts +++ b/extensions/vscode/src/debug/debug.ts @@ -1,14 +1,18 @@ import * as vscode from "vscode"; import { VsCodeWebviewProtocol } from "../webviewProtocol"; +import { VsCodeIde } from "../ideProtocol"; export const threadStopped: Map = new Map(); // Arrays has better perf but you probably won't have thousands of threads in a single debug session -export function registerDebugTracker(webviewProtocol: VsCodeWebviewProtocol) { +export function registerDebugTracker( + webviewProtocol: VsCodeWebviewProtocol, + ide: VsCodeIde +) { vscode.debug.registerDebugAdapterTrackerFactory("*", { createDebugAdapterTracker(session: vscode.DebugSession) { return { - onDidSendMessage(message: any) { + async onDidSendMessage(message: any) { if (message.type == "event") { switch (message.event) { case "continued": @@ -29,7 +33,21 @@ export function registerDebugTracker(webviewProtocol: VsCodeWebviewProtocol) { threadStopped.set(key, false) ); - webviewProtocol?.request("refreshSubmenuItems", undefined); + webviewProtocol?.request("updateSubmenuItems", { + provider: "locals", + submenuItems: (await ide.getAvailableThreads()).map( + (thread, threadIndex) => { + const [threadId, threadName] = thread + .split(",") + .map((str) => str.trimStart()); + return { + id: `${threadIndex}`, + title: threadName, + description: threadId, + }; + } + ), + }); break; case "thread": @@ -45,7 +63,7 @@ export function registerDebugTracker(webviewProtocol: VsCodeWebviewProtocol) { break; } } - } + }, }; }, }); diff --git a/extensions/vscode/src/extension/vscodeExtension.ts b/extensions/vscode/src/extension/vscodeExtension.ts index c9aadac01..81c031a52 100644 --- a/extensions/vscode/src/extension/vscodeExtension.ts +++ b/extensions/vscode/src/extension/vscodeExtension.ts @@ -36,7 +36,7 @@ export class VsCodeExtension { // Config Handler with output channel const outputChannel = vscode.window.createOutputChannel( - "Continue - LLM Prompt/Completion", + "Continue - LLM Prompt/Completion" ); this.configHandler = new ConfigHandler( this.ide, @@ -45,19 +45,19 @@ export class VsCodeExtension { : new URL(remoteUrl), async (log: string) => { outputChannel.appendLine( - "==========================================================================", + "==========================================================================" ); outputChannel.appendLine( - "==========================================================================", + "==========================================================================" ); outputChannel.append(log); }, - () => this.webviewProtocol?.request("configUpdate", undefined), + () => this.webviewProtocol?.request("configUpdate", undefined) ); this.configHandler.reloadConfig(); this.verticalDiffManager = new VerticalPerLineDiffManager( - this.configHandler, + this.configHandler ); this.extensionContext = context; this.tabAutocompleteModel = new TabAutocompleteModel(this.configHandler); @@ -67,11 +67,11 @@ export class VsCodeExtension { this.ide, this.windowId, this.extensionContext, - this.verticalDiffManager, + this.verticalDiffManager ); try { const configSync = new RemoteConfigSync( - this.configHandler.reloadConfig.bind(this.configHandler), + this.configHandler.reloadConfig.bind(this.configHandler) ); configSync.setup(); } catch (e) { @@ -85,14 +85,14 @@ export class VsCodeExtension { this.sidebar, { webviewOptions: { retainContextWhenHidden: true }, - }, - ), + } + ) ); this.webviewProtocol = this.sidebar.webviewProtocol; // Indexing + pause token const indexingPauseToken = new PauseToken( - context.globalState.get("continue.indexingPaused") === true, + context.globalState.get("continue.indexingPaused") === true ); this.webviewProtocol.on("index/setPaused", (msg) => { context.globalState.update("continue.indexingPaused", msg.data); @@ -103,14 +103,14 @@ export class VsCodeExtension { this.indexer = new CodebaseIndexer( this.configHandler, this.ide, - indexingPauseToken, + indexingPauseToken ); // CodeLens registerAllCodeLensProviders( context, this.diffManager, - this.verticalDiffManager.editorToVerticalDiffCodeLens, + this.verticalDiffManager.editorToVerticalDiffCodeLens ); // Tab autocomplete @@ -125,9 +125,9 @@ export class VsCodeExtension { new ContinueCompletionProvider( this.configHandler, this.ide, - this.tabAutocompleteModel, - ), - ), + this.tabAutocompleteModel + ) + ) ); // Commands @@ -138,10 +138,10 @@ export class VsCodeExtension { this.sidebar, this.configHandler, this.diffManager, - this.verticalDiffManager, + this.verticalDiffManager ); - registerDebugTracker(this.webviewProtocol); + registerDebugTracker(this.webviewProtocol, this.ide); // Indexing this.ide.getWorkspaceDirs().then((dirs) => this.refreshCodebaseIndex(dirs)); @@ -189,7 +189,7 @@ export class VsCodeExtension { } }); } - }), + }) ); // Register a content provider for the readonly virtual documents @@ -207,8 +207,8 @@ export class VsCodeExtension { context.subscriptions.push( vscode.workspace.registerTextDocumentContentProvider( VsCodeExtension.continueVirtualDocumentScheme, - documentContentProvider, - ), + documentContentProvider + ) ); } diff --git a/extensions/vscode/src/util/ideUtils.ts b/extensions/vscode/src/util/ideUtils.ts index 000b22562..953bf3c25 100644 --- a/extensions/vscode/src/util/ideUtils.ts +++ b/extensions/vscode/src/util/ideUtils.ts @@ -25,12 +25,12 @@ export class VsCodeIdeUtils { async gotoDefinition( filepath: string, - position: vscode.Position, + position: vscode.Position ): Promise { const locations: vscode.Location[] = await vscode.commands.executeCommand( "vscode.executeDefinitionProvider", uriFromFilePath(filepath), - position, + position ); return locations; } @@ -38,25 +38,25 @@ export class VsCodeIdeUtils { async documentSymbol(filepath: string): Promise { return await vscode.commands.executeCommand( "vscode.executeDocumentSymbolProvider", - uriFromFilePath(filepath), + uriFromFilePath(filepath) ); } async references( filepath: string, - position: vscode.Position, + position: vscode.Position ): Promise { return await vscode.commands.executeCommand( "vscode.executeReferenceProvider", uriFromFilePath(filepath), - position, + position ); } async foldingRanges(filepath: string): Promise { return await vscode.commands.executeCommand( "vscode.executeFoldingRangeProvider", - uriFromFilePath(filepath), + uriFromFilePath(filepath) ); } @@ -80,12 +80,12 @@ export class VsCodeIdeUtils { rangeInFile.range.start.line, rangeInFile.range.start.character, rangeInFile.range.end.line, - rangeInFile.range.end.character, + rangeInFile.range.end.character ); const editor = await openEditorAndRevealRange( rangeInFile.filepath, range, - vscode.ViewColumn.One, + vscode.ViewColumn.One ); if (editor) { const decorationType = vscode.window.createTextEditorDecorationType({ @@ -100,7 +100,7 @@ export class VsCodeIdeUtils { cursorDisposable.dispose(); editor.setDecorations(decorationType, []); } - }, + } ); setTimeout(() => { @@ -123,9 +123,9 @@ export class VsCodeIdeUtils { edit.range.start.line, edit.range.start.character, edit.range.end.line, - edit.range.end.character, + edit.range.end.character ), - edit.replacement, + edit.replacement ); } @@ -134,7 +134,7 @@ export class VsCodeIdeUtils { const panel = vscode.window.createWebviewPanel( "continue.continueGUIView", "Continue", - vscode.ViewColumn.One, + vscode.ViewColumn.One ); // panel.webview.html = this.sidebar.getSidebarContent( // extensionContext, @@ -165,8 +165,8 @@ export class VsCodeIdeUtils { vscode.Uri.parse( `${ VsCodeExtension.continueVirtualDocumentScheme - }:${encodeURIComponent(name)}?${encodeURIComponent(contents)}`, - ), + }:${encodeURIComponent(name)}?${encodeURIComponent(contents)}` + ) ) .then((doc) => { vscode.window.showTextDocument(doc, { preview: false }); @@ -248,7 +248,7 @@ export class VsCodeIdeUtils { async getDirectoryContents( directory: string, - recursive: boolean, + recursive: boolean ): Promise { if (!recursive) { return ( @@ -273,7 +273,7 @@ export class VsCodeIdeUtils { gitRoot ?? directory, [], true, - gitRoot === directory ? undefined : onlyThisDirectory, + gitRoot === directory ? undefined : onlyThisDirectory )) { allFiles.push(file); } @@ -297,14 +297,14 @@ export class VsCodeIdeUtils { if (typeof contents === "undefined") { try { const fileStats = await vscode.workspace.fs.stat( - uriFromFilePath(filepath), + uriFromFilePath(filepath) ); if (fileStats.size > 10 * MAX_BYTES) { return ""; } const bytes = await vscode.workspace.fs.readFile( - uriFromFilePath(filepath), + uriFromFilePath(filepath) ); // Truncate the buffer to the first MAX_BYTES @@ -319,10 +319,10 @@ export class VsCodeIdeUtils { async readRangeInFile( filepath: string, - range: vscode.Range, + range: vscode.Range ): Promise { const contents = new TextDecoder().decode( - await vscode.workspace.fs.readFile(vscode.Uri.file(filepath)), + await vscode.workspace.fs.readFile(vscode.Uri.file(filepath)) ); const lines = contents.split("\n"); return ( @@ -336,20 +336,20 @@ export class VsCodeIdeUtils { const tempCopyBuffer = await vscode.env.clipboard.readText(); if (commands < 0) { await vscode.commands.executeCommand( - "workbench.action.terminal.selectAll", + "workbench.action.terminal.selectAll" ); } else { for (let i = 0; i < commands; i++) { await vscode.commands.executeCommand( - "workbench.action.terminal.selectToPreviousCommand", + "workbench.action.terminal.selectToPreviousCommand" ); } } await vscode.commands.executeCommand( - "workbench.action.terminal.copySelection", + "workbench.action.terminal.copySelection" ); await vscode.commands.executeCommand( - "workbench.action.terminal.clearSelection", + "workbench.action.terminal.clearSelection" ); const terminalContents = await vscode.env.clipboard.readText(); await vscode.env.clipboard.writeText(tempCopyBuffer); @@ -361,7 +361,6 @@ export class VsCodeIdeUtils { return terminalContents; } - private async _getThreads(session: vscode.DebugSession) { const threadsResponse = await session.customRequest("threads"); const threads = threadsResponse.threads.filter((thread: any) => diff --git a/gui/src/hooks/useSubmenuContextProviders.tsx b/gui/src/hooks/useSubmenuContextProviders.tsx index c4b1072e3..b0097f3ce 100644 --- a/gui/src/hooks/useSubmenuContextProviders.tsx +++ b/gui/src/hooks/useSubmenuContextProviders.tsx @@ -45,6 +45,27 @@ function useSubmenuContextProviders() { setLoaded(false); }); + useWebviewListener("updateSubmenuItems", async (data) => { + const minisearch = new MiniSearch({ + fields: ["title", "description"], + storeFields: ["id", "title", "description"], + }); + + minisearch.addAll(data.submenuItems); + + setMinisearches((prev) => ({ ...prev, [data.provider]: minisearch })); + + if (data.provider === "file") { + const openFiles = await getOpenFileItems(); + setFallbackResults((prev) => ({ ...prev, file: openFiles })); + } else { + setFallbackResults((prev) => ({ + ...prev, + [data.provider]: data.submenuItems.slice(0, 6), + })); + } + }); + function addItem(providerTitle: string, item: ContextSubmenuItem) { if (!minisearches[providerTitle]) { return; From dacd9fb291f389e30d7e157caee1a9c9281d5031 Mon Sep 17 00:00:00 2001 From: commandblock2 Date: Mon, 11 Mar 2024 23:01:03 +0800 Subject: [PATCH 015/105] refactor: changed the interface of threads --- core/context/providers/LocalsProvider.ts | 21 ++++++------- core/index.d.ts | 31 +++++++++++-------- core/util/filesystem.ts | 13 ++++---- core/util/messageIde.ts | 12 ++++---- core/web/webviewProtocol.ts | 3 +- extensions/vscode/src/debug/debug.ts | 26 +++++++++------- extensions/vscode/src/ideProtocol.ts | 38 ++++++++++++++---------- extensions/vscode/src/util/ideUtils.ts | 32 ++++++++------------ 8 files changed, 94 insertions(+), 82 deletions(-) diff --git a/core/context/providers/LocalsProvider.ts b/core/context/providers/LocalsProvider.ts index c385ecc93..b25ecde5a 100644 --- a/core/context/providers/LocalsProvider.ts +++ b/core/context/providers/LocalsProvider.ts @@ -22,7 +22,9 @@ class LocalsProvider extends BaseContextProvider { // Assuming that the query is a number const localVariables = await extras.ide.getDebugLocals(Number(query)); const threadIndex = Number(query); - const thread = (await extras.ide.getAvailableThreads())[threadIndex]; + const thread = (await extras.ide.getAvailableThreads()).find( + (thread) => thread.id == threadIndex + ); const callStacksSources = await extras.ide.getTopLevelCallStackSources( threadIndex, this.options?.stackDepth || 3 @@ -36,7 +38,7 @@ class LocalsProvider extends BaseContextProvider { { description: "The value, name and possibly type of the local variables", content: - `This is a paused thread: ${thread.split(",")[1].trimStart()}\n` + + `This is a paused thread: ${thread?.name}` + `Current local variable contents:\n\n${localVariables}.\n` + `Current top level call stacks: \n\n${callStackContents}`, name: "Locals", @@ -49,16 +51,11 @@ class LocalsProvider extends BaseContextProvider { ): Promise { const threads = await args.ide.getAvailableThreads(); - return threads.map((thread, threadIndex) => { - const [threadId, threadName] = thread - .split(",") - .map((str) => str.trimStart()); - return { - id: `${threadIndex}`, - title: threadName, - description: threadId, - }; - }); + return threads.map((thread) => ({ + id: `${thread.id}`, + title: thread.name, + description: `${thread.id}`, + })); } } diff --git a/core/index.d.ts b/core/index.d.ts index c6473248f..55d4f02b0 100644 --- a/core/index.d.ts +++ b/core/index.d.ts @@ -16,7 +16,7 @@ declare global { postIntellijMessage?: ( messageType: string, data: any, - messageIde: string, + messageIde: string ) => void; } } @@ -73,17 +73,17 @@ export interface ILLM extends LLMOptions { streamComplete( prompt: string, - options?: LLMFullCompletionOptions, + options?: LLMFullCompletionOptions ): AsyncGenerator; streamChat( messages: ChatMessage[], - options?: LLMFullCompletionOptions, + options?: LLMFullCompletionOptions ): AsyncGenerator; chat( messages: ChatMessage[], - options?: LLMFullCompletionOptions, + options?: LLMFullCompletionOptions ): Promise; countTokens(text: string): number; @@ -123,10 +123,10 @@ export interface CustomContextProvider { type?: ContextProviderType; getContextItems( query: string, - extras: ContextProviderExtras, + extras: ContextProviderExtras ): Promise; loadSubmenuItems?: ( - args: LoadSubmenuItemsArgs, + args: LoadSubmenuItemsArgs ) => Promise; } @@ -141,7 +141,7 @@ export interface IContextProvider { getContextItems( query: string, - extras: ContextProviderExtras, + extras: ContextProviderExtras ): Promise; loadSubmenuItems(args: LoadSubmenuItemsArgs): Promise; @@ -287,15 +287,15 @@ export interface CustomLLMWithOptionals { streamCompletion?: ( prompt: string, options: CompletionOptions, - fetch: (input: RequestInfo | URL, init?: RequestInit) => Promise, + fetch: (input: RequestInfo | URL, init?: RequestInit) => Promise ) => AsyncGenerator; streamChat?: ( messages: ChatMessage[], options: CompletionOptions, - fetch: (input: RequestInfo | URL, init?: RequestInit) => Promise, + fetch: (input: RequestInfo | URL, init?: RequestInit) => Promise ) => AsyncGenerator; listModels?: ( - fetch: (input: RequestInfo | URL, init?: RequestInit) => Promise, + fetch: (input: RequestInfo | URL, init?: RequestInit) => Promise ) => Promise; } @@ -320,6 +320,11 @@ export class Problem { message: string; } +export class Thread { + name: string; + id: number; +} + export type IdeType = "vscode" | "jetbrains"; export interface IdeInfo { ideType: IdeType; @@ -339,7 +344,7 @@ export interface IDE { threadIndex: number, stackDepth: number ): Promise; - getAvailableThreads(): Promise; + getAvailableThreads(): Promise; listWorkspaceContents(directory?: string): Promise; listFolders(): Promise; getWorkspaceDirs(): Promise; @@ -355,12 +360,12 @@ export interface IDE { showLines( filepath: string, startLine: number, - endLine: number, + endLine: number ): Promise; showDiff( filepath: string, newContents: string, - stepIndex: number, + stepIndex: number ): Promise; getOpenFiles(): Promise; getPinnedFiles(): Promise; diff --git a/core/util/filesystem.ts b/core/util/filesystem.ts index bc237f94e..069e4ffb5 100644 --- a/core/util/filesystem.ts +++ b/core/util/filesystem.ts @@ -1,5 +1,5 @@ import * as fs from "fs"; -import { ContinueRcJson, IDE, IdeInfo, Problem, Range } from ".."; +import { ContinueRcJson, IDE, IdeInfo, Problem, Range, Thread } from ".."; import { getContinueGlobalPath } from "./paths"; class FileSystemIde implements IDE { @@ -36,16 +36,19 @@ class FileSystemIde implements IDE { async getDebugLocals(threadIndex: number): Promise { return Promise.resolve(""); } - async getTopLevelCallStackSources(threadIndex: number, stackDepth: number): Promise { + async getTopLevelCallStackSources( + threadIndex: number, + stackDepth: number + ): Promise { return Promise.resolve([]); } - async getAvailableThreads(): Promise { + async getAvailableThreads(): Promise { return Promise.resolve([]); } showLines( filepath: string, startLine: number, - endLine: number, + endLine: number ): Promise { return Promise.resolve(); } @@ -110,7 +113,7 @@ class FileSystemIde implements IDE { showDiff( filepath: string, newContents: string, - stepIndex: number, + stepIndex: number ): Promise { return Promise.resolve(); } diff --git a/core/util/messageIde.ts b/core/util/messageIde.ts index 01568f1d0..0b6ca26e5 100644 --- a/core/util/messageIde.ts +++ b/core/util/messageIde.ts @@ -1,8 +1,8 @@ -import { ContinueRcJson, IDE, IdeInfo, Problem, Range } from ".."; +import { ContinueRcJson, IDE, IdeInfo, Problem, Range, Thread } from ".."; export class MessageIde implements IDE { constructor( - private readonly request: (messageType: string, data: any) => Promise, + private readonly request: (messageType: string, data: any) => Promise ) {} getDebugLocals(threadIndex: number): Promise { return this.request("getDebugLocals", { threadIndex }); @@ -16,8 +16,8 @@ export class MessageIde implements IDE { stackDepth, }); } - getAvailableThreads(): Promise { - return this.request("getTopLevelCallStackSources", undefined); + getAvailableThreads(): Promise { + return this.request("getAvailableThreads", undefined); } getIdeInfo(): Promise { return this.request("getIdeInfo", undefined); @@ -60,7 +60,7 @@ export class MessageIde implements IDE { async showLines( filepath: string, startLine: number, - endLine: number, + endLine: number ): Promise { return await this.request("showLines", { filepath, startLine, endLine }); } @@ -105,7 +105,7 @@ export class MessageIde implements IDE { async showDiff( filepath: string, newContents: string, - stepIndex: number, + stepIndex: number ): Promise { await this.request("showDiff", { filepath, newContents, stepIndex }); } diff --git a/core/web/webviewProtocol.ts b/core/web/webviewProtocol.ts index 85741b085..4b7ba3672 100644 --- a/core/web/webviewProtocol.ts +++ b/core/web/webviewProtocol.ts @@ -5,6 +5,7 @@ import { DiffLine, Problem, Range, + Thread, } from ".."; import { RangeInFileWithContents } from "../commands/util"; import { Protocol } from "../protocol"; @@ -49,7 +50,7 @@ export type IdeProtocol = { { threadIndex: number; stackDepth: number }, string[] ]; - getAvailableThreads: [undefined, string[]]; + getAvailableThreads: [undefined, Thread[]]; isTelemetryEnabled: [undefined, boolean]; getUniqueId: [undefined, string]; }; diff --git a/extensions/vscode/src/debug/debug.ts b/extensions/vscode/src/debug/debug.ts index 623ea5c5a..6637ae045 100644 --- a/extensions/vscode/src/debug/debug.ts +++ b/extensions/vscode/src/debug/debug.ts @@ -12,6 +12,17 @@ export function registerDebugTracker( vscode.debug.registerDebugAdapterTrackerFactory("*", { createDebugAdapterTracker(session: vscode.DebugSession) { return { + async onWillStopSession() { + threadStopped.clear(); + webviewProtocol?.request("updateSubmenuItems", { + provider: "locals", + submenuItems: (await ide.getAvailableThreads()).map((thread) => ({ + id: `${thread.id}`, + title: thread.name, + description: `${thread.id}`, + })), + }); + }, async onDidSendMessage(message: any) { if (message.type == "event") { switch (message.event) { @@ -36,16 +47,11 @@ export function registerDebugTracker( webviewProtocol?.request("updateSubmenuItems", { provider: "locals", submenuItems: (await ide.getAvailableThreads()).map( - (thread, threadIndex) => { - const [threadId, threadName] = thread - .split(",") - .map((str) => str.trimStart()); - return { - id: `${threadIndex}`, - title: threadName, - description: threadId, - }; - } + (thread) => ({ + id: `${thread.id}`, + title: thread.name, + description: `${thread.id}`, + }) ), }); break; diff --git a/extensions/vscode/src/ideProtocol.ts b/extensions/vscode/src/ideProtocol.ts index edf605f5f..a59899211 100644 --- a/extensions/vscode/src/ideProtocol.ts +++ b/extensions/vscode/src/ideProtocol.ts @@ -4,7 +4,7 @@ import * as path from "path"; import * as vscode from "vscode"; import * as child_process from "child_process"; -import { ContinueRcJson, IDE, IdeInfo, Problem, Range } from "core"; +import { ContinueRcJson, IDE, IdeInfo, Problem, Range, Thread } from "core"; import { DiffManager } from "./diff/horizontal"; import { VsCodeIdeUtils } from "./util/ideUtils"; import { traverseDirectory } from "./util/traverseDirectory"; @@ -33,8 +33,8 @@ class VsCodeIde implements IDE { filepath, new vscode.Range( new vscode.Position(range.start.line, range.start.character), - new vscode.Position(range.end.line, range.end.character), - ), + new vscode.Position(range.end.line, range.end.character) + ) ); } @@ -46,7 +46,7 @@ class VsCodeIde implements IDE { files.map(async (file) => { let stat = await vscode.workspace.fs.stat(uriFromFilePath(file)); pathToLastModified[file] = stat.mtime; - }), + }) ); return pathToLastModified; @@ -79,10 +79,16 @@ class VsCodeIde implements IDE { return await this.ideUtils.getDebugLocals(threadIndex); } - async getTopLevelCallStackSources(threadIndex: number, stackDepth: number): Promise { - return await this.ideUtils.getTopLevelCallStackSources(threadIndex, stackDepth); + async getTopLevelCallStackSources( + threadIndex: number, + stackDepth: number + ): Promise { + return await this.ideUtils.getTopLevelCallStackSources( + threadIndex, + stackDepth + ); } - async getAvailableThreads(): Promise { + async getAvailableThreads(): Promise { return await this.ideUtils.getAvailableThreads(); } @@ -93,7 +99,7 @@ class VsCodeIde implements IDE { const contents = await Promise.all( this.ideUtils .getWorkspaceDirectories() - .map((dir) => this.ideUtils.getDirectoryContents(dir, true)), + .map((dir) => this.ideUtils.getDirectoryContents(dir, true)) ); return contents.flat(); } @@ -108,7 +114,7 @@ class VsCodeIde implements IDE { for (const [filename, type] of files) { if (type === vscode.FileType.File && filename === ".continuerc.json") { const contents = await this.ideUtils.readFile( - vscode.Uri.joinPath(workspaceDir, filename).fsPath, + vscode.Uri.joinPath(workspaceDir, filename).fsPath ); configs.push(JSON.parse(contents)); } @@ -126,7 +132,7 @@ class VsCodeIde implements IDE { directory, [], false, - undefined, + undefined )) { allDirs.push(dir); } @@ -146,7 +152,7 @@ class VsCodeIde implements IDE { async writeFile(path: string, contents: string): Promise { await vscode.workspace.fs.writeFile( vscode.Uri.file(path), - Buffer.from(contents), + Buffer.from(contents) ); } @@ -161,11 +167,11 @@ class VsCodeIde implements IDE { async showLines( filepath: string, startLine: number, - endLine: number, + endLine: number ): Promise { const range = new vscode.Range( new vscode.Position(startLine, 0), - new vscode.Position(endLine, 0), + new vscode.Position(endLine, 0) ); openEditorAndRevealRange(filepath, range).then(() => { // TODO: Highlight lines @@ -199,7 +205,7 @@ class VsCodeIde implements IDE { async showDiff( filepath: string, newContents: string, - stepIndex: number, + stepIndex: number ): Promise { await this.diffManager.writeDiff(filepath, newContents, stepIndex); } @@ -224,10 +230,10 @@ class VsCodeIde implements IDE { "@vscode", "ripgrep", "bin", - "rg", + "rg" ), ["-i", "-C", "2", `"${query}"`, "."], - { cwd: dir }, + { cwd: dir } ); let output = ""; diff --git a/extensions/vscode/src/util/ideUtils.ts b/extensions/vscode/src/util/ideUtils.ts index 953bf3c25..0cfb29227 100644 --- a/extensions/vscode/src/util/ideUtils.ts +++ b/extensions/vscode/src/util/ideUtils.ts @@ -1,4 +1,4 @@ -import { FileEdit, RangeInFile } from "core"; +import { FileEdit, RangeInFile, Thread } from "core"; import path from "path"; import * as vscode from "vscode"; import { VsCodeExtension } from "../extension/vscodeExtension"; @@ -372,14 +372,12 @@ export class VsCodeIdeUtils { return threadsResponse; } - async getAvailableThreads(): Promise { + async getAvailableThreads(): Promise { const session = vscode.debug.activeDebugSession; if (!session) return []; const threadsResponse = await this._getThreads(session); - return threadsResponse.threads.map( - (thread: { id: number; name: string }) => `${thread.id}, ${thread.name}` - ); + return threadsResponse.threads; } async getDebugLocals(threadIndex: number = 0): Promise { @@ -392,13 +390,11 @@ export class VsCodeIdeUtils { return ""; } - const variablesResponse = await this._getThreads(session) - .then((threadsResponse) => - session.customRequest("stackTrace", { - threadId: threadsResponse.threads[threadIndex].id, - startFrame: 0, - }) - ) + const variablesResponse = await session + .customRequest("stackTrace", { + threadId: threadIndex, + startFrame: 0, + }) .then((traceResponse) => session.customRequest("scopes", { frameId: traceResponse.stackFrames[0].id, @@ -429,13 +425,11 @@ export class VsCodeIdeUtils { const session = vscode.debug.activeDebugSession; if (!session) return []; - const sourcesPromises = await this._getThreads(session) - .then((threadsResponse) => - session.customRequest("stackTrace", { - threadId: threadsResponse.threads[threadIndex].id, - startFrame: 0, - }) - ) + const sourcesPromises = await session + .customRequest("stackTrace", { + threadId: threadIndex, + startFrame: 0, + }) .then((traceResponse) => traceResponse.stackFrames .slice(0, stackDepth) From 6a8f828a47735e85b0fad16ff947651de744460d Mon Sep 17 00:00:00 2001 From: commandblock2 Date: Tue, 12 Mar 2024 22:21:55 +0800 Subject: [PATCH 016/105] polished format and file reading --- core/context/providers/LocalsProvider.ts | 6 ++--- extensions/vscode/src/debug/debug.ts | 33 ++++++++++-------------- extensions/vscode/src/util/ideUtils.ts | 4 ++- 3 files changed, 20 insertions(+), 23 deletions(-) diff --git a/core/context/providers/LocalsProvider.ts b/core/context/providers/LocalsProvider.ts index b25ecde5a..9b5ea5dbc 100644 --- a/core/context/providers/LocalsProvider.ts +++ b/core/context/providers/LocalsProvider.ts @@ -38,9 +38,9 @@ class LocalsProvider extends BaseContextProvider { { description: "The value, name and possibly type of the local variables", content: - `This is a paused thread: ${thread?.name}` + - `Current local variable contents:\n\n${localVariables}.\n` + - `Current top level call stacks: \n\n${callStackContents}`, + `This is a paused thread: ${thread?.name}\n` + + `Current local variable contents: \n${localVariables}.\n` + + `Current top level call stacks: ${callStackContents}`, name: "Locals", }, ]; diff --git a/extensions/vscode/src/debug/debug.ts b/extensions/vscode/src/debug/debug.ts index 6637ae045..15c374846 100644 --- a/extensions/vscode/src/debug/debug.ts +++ b/extensions/vscode/src/debug/debug.ts @@ -10,18 +10,22 @@ export function registerDebugTracker( ide: VsCodeIde ) { vscode.debug.registerDebugAdapterTrackerFactory("*", { - createDebugAdapterTracker(session: vscode.DebugSession) { + createDebugAdapterTracker(_session: vscode.DebugSession) { + const updateThreads = async () => { + webviewProtocol?.request("updateSubmenuItems", { + provider: "locals", + submenuItems: (await ide.getAvailableThreads()).map((thread) => ({ + id: `${thread.id}`, + title: thread.name, + description: `${thread.id}`, + })), + }); + }; + return { async onWillStopSession() { threadStopped.clear(); - webviewProtocol?.request("updateSubmenuItems", { - provider: "locals", - submenuItems: (await ide.getAvailableThreads()).map((thread) => ({ - id: `${thread.id}`, - title: thread.name, - description: `${thread.id}`, - })), - }); + updateThreads(); }, async onDidSendMessage(message: any) { if (message.type == "event") { @@ -44,16 +48,7 @@ export function registerDebugTracker( threadStopped.set(key, false) ); - webviewProtocol?.request("updateSubmenuItems", { - provider: "locals", - submenuItems: (await ide.getAvailableThreads()).map( - (thread) => ({ - id: `${thread.id}`, - title: thread.name, - description: `${thread.id}`, - }) - ), - }); + updateThreads(); break; case "thread": diff --git a/extensions/vscode/src/util/ideUtils.ts b/extensions/vscode/src/util/ideUtils.ts index 0cfb29227..781c64d63 100644 --- a/extensions/vscode/src/util/ideUtils.ts +++ b/extensions/vscode/src/util/ideUtils.ts @@ -328,7 +328,9 @@ export class VsCodeIdeUtils { return ( lines.slice(range.start.line, range.end.line).join("\n") + "\n" + - lines[range.end.line].slice(0, range.end.character) + lines[ + range.end.line < lines.length - 1 ? range.end.line : lines.length - 1 + ].slice(0, range.end.character) ); } From b9ba4a73dfddcf79cc825650c3e7c115a30b534b Mon Sep 17 00:00:00 2001 From: commandblock2 Date: Tue, 12 Mar 2024 22:54:04 +0800 Subject: [PATCH 017/105] added a little doc --- docs/docs/customization/context-providers.md | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/docs/docs/customization/context-providers.md b/docs/docs/customization/context-providers.md index 3328f2fbb..4e4aac2a0 100644 --- a/docs/docs/customization/context-providers.md +++ b/docs/docs/customization/context-providers.md @@ -230,6 +230,21 @@ Type `@database` to reference table schemas you can use the drop-down or start t } ``` +### Debugger Context + +#### LocalsProvider + +Type `@locals` to reference the contents of the local variables with top n level (defaulting to 3) of call stack for that thread. A dropdown will appear, allowing you to select a specific thread to see the local variables in that thread. +```json +{ + "name": "locals", + "params": { + stackDepth: 3 + } +} +``` + + ### Requesting Context Providers Not seeing what you want? Create an issue [here](https://github.com/continuedev/continue/issues/new?assignees=TyDunn&labels=enhancement&projects=&template=feature-request-%F0%9F%92%AA.md&title=) to request a new ContextProvider. From 3dcc369c0d11ef2a4a620fa93c00f9a2448616f9 Mon Sep 17 00:00:00 2001 From: commandblock2 Date: Tue, 12 Mar 2024 22:57:29 +0800 Subject: [PATCH 018/105] typo --- docs/docs/customization/context-providers.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/docs/customization/context-providers.md b/docs/docs/customization/context-providers.md index 4e4aac2a0..343ceb279 100644 --- a/docs/docs/customization/context-providers.md +++ b/docs/docs/customization/context-providers.md @@ -239,7 +239,7 @@ Type `@locals` to reference the contents of the local variables with top n level { "name": "locals", "params": { - stackDepth: 3 + "stackDepth": 3 } } ``` From 6f125eb5b5868181355efe543e5f995459e96c2b Mon Sep 17 00:00:00 2001 From: commandblock2 Date: Tue, 12 Mar 2024 22:59:33 +0800 Subject: [PATCH 019/105] revert accidentally committed file --- .vscode/settings.json | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/.vscode/settings.json b/.vscode/settings.json index b384537ea..37b52608c 100644 --- a/.vscode/settings.json +++ b/.vscode/settings.json @@ -5,6 +5,5 @@ "python.autoComplete.extraPaths": [], "python.testing.pytestArgs": ["server"], "python.testing.unittestEnabled": false, - "python.testing.pytestEnabled": true, - "editor.tabSize": 2 + "python.testing.pytestEnabled": true } From 641202fb8280400e6a4a0e2f2a77491dd18a3621 Mon Sep 17 00:00:00 2001 From: Nate Sesti Date: Tue, 12 Mar 2024 16:31:44 -0700 Subject: [PATCH 020/105] =?UTF-8?q?=E2=9C=A8=20UI=20for=20JetBrains=20auto?= =?UTF-8?q?complete?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- extensions/intellij/gradle.properties | 2 +- .../ContinuePluginStartupActivity.kt | 5 +- .../autocomplete/AcceptAutocompleteAction.kt | 25 ++++++ .../AutocompleteEditorListener.kt | 77 +++++++++++++++++++ .../autocomplete/AutocompleteService.kt | 67 ++++++++++++++++ .../autocomplete/CancelAutocompleteAction.kt | 21 +++++ .../ContinueCustomElementRenderer.kt | 43 +++++++++++ .../src/main/resources/META-INF/plugin.xml | 12 +++ 8 files changed, 249 insertions(+), 3 deletions(-) create mode 100644 extensions/intellij/src/main/kotlin/com/github/continuedev/continueintellijextension/autocomplete/AcceptAutocompleteAction.kt create mode 100644 extensions/intellij/src/main/kotlin/com/github/continuedev/continueintellijextension/autocomplete/AutocompleteEditorListener.kt create mode 100644 extensions/intellij/src/main/kotlin/com/github/continuedev/continueintellijextension/autocomplete/AutocompleteService.kt create mode 100644 extensions/intellij/src/main/kotlin/com/github/continuedev/continueintellijextension/autocomplete/CancelAutocompleteAction.kt create mode 100644 extensions/intellij/src/main/kotlin/com/github/continuedev/continueintellijextension/autocomplete/ContinueCustomElementRenderer.kt diff --git a/extensions/intellij/gradle.properties b/extensions/intellij/gradle.properties index a91244de5..6445a7577 100644 --- a/extensions/intellij/gradle.properties +++ b/extensions/intellij/gradle.properties @@ -4,7 +4,7 @@ pluginGroup = com.github.continuedev.continueintellijextension pluginName = continue-intellij-extension pluginRepositoryUrl = https://github.com/continuedev/continue # SemVer format -> https://semver.org -pluginVersion = 0.0.37 +pluginVersion = 0.0.38 # Supported build number ranges and IntelliJ Platform versions -> https://plugins.jetbrains.com/docs/intellij/build-number-ranges.html pluginSinceBuild = 223 diff --git a/extensions/intellij/src/main/kotlin/com/github/continuedev/continueintellijextension/activities/ContinuePluginStartupActivity.kt b/extensions/intellij/src/main/kotlin/com/github/continuedev/continueintellijextension/activities/ContinuePluginStartupActivity.kt index 22350e758..b14a3e357 100644 --- a/extensions/intellij/src/main/kotlin/com/github/continuedev/continueintellijextension/activities/ContinuePluginStartupActivity.kt +++ b/extensions/intellij/src/main/kotlin/com/github/continuedev/continueintellijextension/activities/ContinuePluginStartupActivity.kt @@ -29,7 +29,6 @@ import java.nio.charset.StandardCharsets import java.nio.file.Files import java.nio.file.Paths import javax.swing.* -import com.intellij.openapi.application.PathManager; import com.intellij.ide.plugins.PluginManager import com.intellij.openapi.extensions.PluginId @@ -176,7 +175,9 @@ class ContinuePluginStartupActivity : StartupActivity, Disposable, DumbAware { - ApplicationManager.getApplication().messageBus.connect().subscribe(SettingsListener.TOPIC, object : SettingsListener { + // Listen to changes to settings so the core can reload remote configuration + val connection = ApplicationManager.getApplication().messageBus.connect() + connection.subscribe(SettingsListener.TOPIC, object : SettingsListener { override fun settingsUpdated(settings: ContinueExtensionSettings.ContinueState) { continuePluginService.coreMessenger?.request("config/ideSettingsUpdate", settings, null) { _ -> } } diff --git a/extensions/intellij/src/main/kotlin/com/github/continuedev/continueintellijextension/autocomplete/AcceptAutocompleteAction.kt b/extensions/intellij/src/main/kotlin/com/github/continuedev/continueintellijextension/autocomplete/AcceptAutocompleteAction.kt new file mode 100644 index 000000000..c7336eee1 --- /dev/null +++ b/extensions/intellij/src/main/kotlin/com/github/continuedev/continueintellijextension/autocomplete/AcceptAutocompleteAction.kt @@ -0,0 +1,25 @@ +package com.github.continuedev.continueintellijextension.autocomplete + +import com.intellij.openapi.actionSystem.DataContext +import com.intellij.openapi.application.ApplicationManager +import com.intellij.openapi.components.service +import com.intellij.openapi.editor.Caret +import com.intellij.openapi.editor.Editor +import com.intellij.openapi.editor.actionSystem.EditorAction +import com.intellij.openapi.editor.actionSystem.EditorActionHandler + +class AcceptAutocompleteAction: EditorAction(object : EditorActionHandler() { + override fun doExecute(editor: Editor, caret: Caret?, dataContext: DataContext?) { + ApplicationManager.getApplication().runWriteAction { + editor.project?.service()?.accept() + } + } + + override fun isEnabledForCaret(editor: Editor, caret: Caret, dataContext: DataContext?): Boolean { + val autocompleteService = editor.project?.service(); + val enabled = editor == autocompleteService?.pendingCompletion?.editor + && caret.offset == autocompleteService.pendingCompletion?.offset + && autocompleteService.pendingCompletion?.text != null + return enabled + } +}) {} \ No newline at end of file diff --git a/extensions/intellij/src/main/kotlin/com/github/continuedev/continueintellijextension/autocomplete/AutocompleteEditorListener.kt b/extensions/intellij/src/main/kotlin/com/github/continuedev/continueintellijextension/autocomplete/AutocompleteEditorListener.kt new file mode 100644 index 000000000..f0d37ea25 --- /dev/null +++ b/extensions/intellij/src/main/kotlin/com/github/continuedev/continueintellijextension/autocomplete/AutocompleteEditorListener.kt @@ -0,0 +1,77 @@ +package com.github.continuedev.continueintellijextension.autocomplete + +import com.intellij.openapi.application.invokeLater +import com.intellij.openapi.components.service +import com.intellij.openapi.editor.Editor +import com.intellij.openapi.editor.event.* +import com.intellij.openapi.fileEditor.FileEditorManager +import com.intellij.openapi.fileEditor.FileEditorManagerEvent +import com.intellij.openapi.fileEditor.FileEditorManagerListener +import com.intellij.openapi.util.TextRange + +class AutocompleteCaretListener: CaretListener { + override fun caretPositionChanged(event: CaretEvent) { + val caret = event.caret ?: return + val oldPosition = event.oldPosition + val offset = caret.offset + val editor = caret.editor + val autocompleteService = editor.project?.service() ?: return + val pending = autocompleteService.pendingCompletion; + if (pending != null && pending.editor == editor && pending.offset == offset) { + return + } + autocompleteService.clearCompletions(editor) + } +} + +class AutocompleteDocumentListener(private val editorManager: FileEditorManager, private val editor: Editor): DocumentListener { + override fun documentChanged(event: DocumentEvent) { + if (editor != editorManager.selectedTextEditor) { + return + } + // Invoke later is important, otherwise the completion will be triggered before the document is updated + // causing the old caret offset to be used + invokeLater { + editor.project?.service()?.triggerCompletion(editor) + } + } +} + +class AutocompleteEditorListener: EditorFactoryListener { + private val disposables = mutableMapOf Unit>() + override fun editorCreated(event: EditorFactoryEvent) { + val editor = event.editor + val project = editor.project ?: return + val editorManager = project.let { FileEditorManager.getInstance(it) } + val completionProvider = project.service() + + // Listen to changes to mouse position + val caretListener = AutocompleteCaretListener() + editor.caretModel.addCaretListener(caretListener) + + // Listen to changes to selection + val connection = editor.project?.messageBus?.connect() + connection?.subscribe(FileEditorManagerListener.FILE_EDITOR_MANAGER, object : FileEditorManagerListener { + override fun selectionChanged(event: FileEditorManagerEvent) { + completionProvider.clearCompletions(editor) + } + }) + + // Listen to changes to content + val documentListener = AutocompleteDocumentListener(editorManager, editor) + editor.document.addDocumentListener(documentListener) + + disposables[editor] = { + editor.caretModel.removeCaretListener(caretListener) + connection?.disconnect() + editor.document.removeDocumentListener(documentListener) + } + } + + override fun editorReleased(event: EditorFactoryEvent) { + val editor = event.editor + val disposable = disposables[editor] + disposable?.invoke() + disposables.remove(editor) + } +} \ No newline at end of file diff --git a/extensions/intellij/src/main/kotlin/com/github/continuedev/continueintellijextension/autocomplete/AutocompleteService.kt b/extensions/intellij/src/main/kotlin/com/github/continuedev/continueintellijextension/autocomplete/AutocompleteService.kt new file mode 100644 index 000000000..4ce23afdf --- /dev/null +++ b/extensions/intellij/src/main/kotlin/com/github/continuedev/continueintellijextension/autocomplete/AutocompleteService.kt @@ -0,0 +1,67 @@ +package com.github.continuedev.continueintellijextension.autocomplete + +import com.github.continuedev.continueintellijextension.`continue`.uuid +import com.github.continuedev.continueintellijextension.services.ContinuePluginService +import com.intellij.openapi.application.invokeLater +import com.intellij.openapi.components.Service +import com.intellij.openapi.components.service +import com.intellij.openapi.editor.Editor +import com.intellij.openapi.project.Project + +data class PendingCompletion ( + val editor: Editor, + val offset: Int, + val completionId: String, + val text: String? +) + +@Service(Service.Level.PROJECT) +class AutocompleteService(private val project: Project) { + var pendingCompletion: PendingCompletion? = null; + + fun triggerCompletion(editor: Editor) { + if (pendingCompletion != null) { + clearCompletions(pendingCompletion!!.editor) + } + + // Set pending completion + val completionId = uuid() + val offset = editor.caretModel.primaryCaret.offset + pendingCompletion = PendingCompletion(editor, offset, completionId, null) + + // Request a completion from the core + val completion = "Hello, World!" + pendingCompletion = pendingCompletion?.copy(text = completion) + renderCompletion(editor, offset, completion) +// service().coreMessenger?.request("autocomplete/complete", completionId, null, ({ response -> +// renderCompletion(editor, offset, response) +// })) + } + + private fun renderCompletion(editor: Editor, offset: Int, text: String) { + editor.inlayModel.addInlineElement(offset, true, ContinueCustomElementRenderer(editor, text)) + } + + fun accept() { + val completion = pendingCompletion ?: return + val text = completion.text ?: return + val editor = completion.editor + val offset = completion.offset + editor.document.insertString(offset, text) + clearCompletions(editor) + } + + private fun cancelCompletion(completion: PendingCompletion) { + // Send cancellation message to core + project.service().coreMessenger?.request("autocomplete/cancel", completion.completionId,null, ({})) + } + + fun clearCompletions(editor: Editor) { + if (pendingCompletion != null) { + cancelCompletion(pendingCompletion!!) + pendingCompletion = null + } + editor.inlayModel.getInlineElementsInRange(0, editor.document.textLength).forEach { it.dispose() } + editor.inlayModel.getBlockElementsInRange(0, editor.document.textLength).forEach { it.dispose() } + } +} diff --git a/extensions/intellij/src/main/kotlin/com/github/continuedev/continueintellijextension/autocomplete/CancelAutocompleteAction.kt b/extensions/intellij/src/main/kotlin/com/github/continuedev/continueintellijextension/autocomplete/CancelAutocompleteAction.kt new file mode 100644 index 000000000..d6d4c7ee4 --- /dev/null +++ b/extensions/intellij/src/main/kotlin/com/github/continuedev/continueintellijextension/autocomplete/CancelAutocompleteAction.kt @@ -0,0 +1,21 @@ +package com.github.continuedev.continueintellijextension.autocomplete + +import com.intellij.openapi.actionSystem.DataContext +import com.intellij.openapi.application.ApplicationManager +import com.intellij.openapi.components.service +import com.intellij.openapi.editor.Caret +import com.intellij.openapi.editor.Editor +import com.intellij.openapi.editor.actionSystem.EditorAction +import com.intellij.openapi.editor.actionSystem.EditorActionHandler + +class CancelAutocompleteAction: EditorAction(object : EditorActionHandler() { + override fun doExecute(editor: Editor, caret: Caret?, dataContext: DataContext?) { + ApplicationManager.getApplication().runWriteAction { + editor.project?.service()?.clearCompletions(editor) + } + } + + override fun isEnabledForCaret(editor: Editor, caret: Caret, dataContext: DataContext?): Boolean { + return true + } +}) {} \ No newline at end of file diff --git a/extensions/intellij/src/main/kotlin/com/github/continuedev/continueintellijextension/autocomplete/ContinueCustomElementRenderer.kt b/extensions/intellij/src/main/kotlin/com/github/continuedev/continueintellijextension/autocomplete/ContinueCustomElementRenderer.kt new file mode 100644 index 000000000..207f9d6ea --- /dev/null +++ b/extensions/intellij/src/main/kotlin/com/github/continuedev/continueintellijextension/autocomplete/ContinueCustomElementRenderer.kt @@ -0,0 +1,43 @@ +package com.github.continuedev.continueintellijextension.autocomplete + +import com.intellij.openapi.editor.Editor +import com.intellij.openapi.editor.EditorCustomElementRenderer +import com.intellij.openapi.editor.Inlay +import com.intellij.openapi.editor.colors.EditorFontType +import com.intellij.openapi.editor.impl.EditorImpl +import com.intellij.openapi.editor.impl.FontInfo +import com.intellij.openapi.editor.markup.TextAttributes +import java.awt.Color +import java.awt.Font +import java.awt.Graphics +import java.awt.Rectangle +import kotlin.math.ceil + +class ContinueCustomElementRenderer ( + val editor: Editor, + val text: String, +) : EditorCustomElementRenderer { + override fun calcWidthInPixels(inlay: Inlay<*>): Int { + return (inlay.editor as EditorImpl).getFontMetrics(Font.PLAIN).stringWidth(this.text) + } + + protected val font: Font + get() { + val editorFont = editor.colorsScheme.getFont(EditorFontType.PLAIN) + return editorFont.deriveFont(Font.ITALIC) ?: editorFont + } + + private fun offsetY(): Int { + val metrics = + FontInfo.getFontMetrics(font, FontInfo.getFontRenderContext(editor.contentComponent)) + val fontHeight = + font.createGlyphVector(metrics.fontRenderContext, text).visualBounds.height + val height = (editor.lineHeight + fontHeight) / 2 + return ceil(height).toInt() + } + + override fun paint(inlay: Inlay<*>, g: Graphics, targetRegion: Rectangle, textAttributes: TextAttributes) { + g.color = Color(128, 128, 128) + g.drawString(this.text, targetRegion.x, targetRegion.y + offsetY()) + } +} \ No newline at end of file diff --git a/extensions/intellij/src/main/resources/META-INF/plugin.xml b/extensions/intellij/src/main/resources/META-INF/plugin.xml index 61b6b34ff..ae89f8e8b 100644 --- a/extensions/intellij/src/main/resources/META-INF/plugin.xml +++ b/extensions/intellij/src/main/resources/META-INF/plugin.xml @@ -11,6 +11,7 @@ + + + + + + + + From 805e002fc701e7850ab63a89c30f0d8b2d6f341a Mon Sep 17 00:00:00 2001 From: Nate Sesti Date: Tue, 12 Mar 2024 19:40:57 -0700 Subject: [PATCH 021/105] =?UTF-8?q?=F0=9F=8E=A8=20decouple=20autocomplete?= =?UTF-8?q?=20from=20VS=20Code=20extension?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- core/autocomplete/completionProvider.ts | 385 ++++++++++++++++++ core/autocomplete/constructPrompt.ts | 4 +- core/autocomplete/slidingWindow.ts | 6 +- core/protocol.ts | 2 + core/util/ranges.ts | 25 ++ .../src/autocomplete/completionProvider.ts | 124 +++--- .../src/autocomplete/getTabCompletion.ts | 262 ------------ extensions/vscode/src/commands.ts | 2 +- extensions/vscode/src/util/ideUtils.ts | 49 ++- gui/src/util/ide.ts | 18 +- 10 files changed, 502 insertions(+), 375 deletions(-) create mode 100644 core/autocomplete/completionProvider.ts create mode 100644 core/util/ranges.ts delete mode 100644 extensions/vscode/src/autocomplete/getTabCompletion.ts diff --git a/core/autocomplete/completionProvider.ts b/core/autocomplete/completionProvider.ts new file mode 100644 index 000000000..fb23ebf12 --- /dev/null +++ b/core/autocomplete/completionProvider.ts @@ -0,0 +1,385 @@ +import Handlebars from "handlebars"; +import { v4 as uuidv4 } from "uuid"; +import { IDE, ILLM, Position, TabAutocompleteOptions } from ".."; +import { RangeInFileWithContents } from "../commands/util"; +import { ConfigHandler } from "../config/handler"; +import { streamLines } from "../diff/util"; +import OpenAI from "../llm/llms/OpenAI"; +import { getBasename } from "../util"; +import { logDevData } from "../util/devdata"; +import { Telemetry } from "../util/posthog"; +import { getRangeInString } from "../util/ranges"; +import AutocompleteLruCache from "./cache"; +import { noFirstCharNewline, onlyWhitespaceAfterEndOfLine } from "./charStream"; +import { + constructAutocompletePrompt, + languageForFilepath, +} from "./constructPrompt"; +import { AutocompleteLanguageInfo } from "./languages"; +import { + avoidPathLine, + stopAtLines, + stopAtRepeatingLines, + stopAtSimilarLine, + streamWithNewLines, +} from "./lineStream"; +import { DEFAULT_AUTOCOMPLETE_OPTS } from "./parameters"; +import { AutocompleteSnippet } from "./ranking"; +import { getTemplateForModel } from "./templates"; +import { GeneratorReuseManager } from "./util"; + +export interface AutocompleteInput { + filepath: string; + pos: Position; + recentlyEditedFiles: RangeInFileWithContents[]; + recentlyEditedRanges: RangeInFileWithContents[]; + clipboardText: string; +} + +export interface AutocompleteOutcome { + accepted?: boolean; + time: number; + prompt: string; + completion: string; + modelProvider: string; + modelName: string; + completionOptions: any; + cacheHit: boolean; +} + +const autocompleteCache = AutocompleteLruCache.get(); + +function formatExternalSnippet( + filepath: string, + snippet: string, + language: AutocompleteLanguageInfo, +) { + const comment = language.comment; + const lines = [ + comment + " Path: " + getBasename(filepath), + ...snippet + .trim() + .split("\n") + .map((line) => comment + " " + line), + comment, + ]; + return lines.join("\n"); +} + +export async function getTabCompletion( + token: AbortSignal, + options: TabAutocompleteOptions, + llm: ILLM, + ide: IDE, + generatorReuseManager: GeneratorReuseManager, + input: AutocompleteInput, + getDefinitionsFromLsp: ( + filepath: string, + contents: string, + cursorIndex: number, + ide: IDE, + ) => Promise, +): Promise { + const startTime = Date.now(); + + const { + filepath, + pos, + recentlyEditedFiles, + recentlyEditedRanges, + clipboardText, + } = input; + const fileContents = await ide.readFile(filepath); + const fileLines = fileContents.split("\n"); + + // Filter + const lang = languageForFilepath(filepath); + const line = fileLines[pos.line] ?? ""; + for (const endOfLine of lang.endOfLine) { + if (line.endsWith(endOfLine) && pos.character >= line.length) { + return undefined; + } + } + + // Model + if (llm instanceof OpenAI) { + llm.useLegacyCompletionsEndpoint = true; + } + if (!llm) return; + + // Prompt + const fullPrefix = getRangeInString(fileContents, { + start: { line: 0, character: 0 }, + end: pos, + }); + const fullSuffix = getRangeInString(fileContents, { + start: pos, + end: { line: fileLines.length - 1, character: Number.MAX_SAFE_INTEGER }, + }); + const lineBelowCursor = + fileLines[Math.min(pos.line + 1, fileLines.length - 1)]; + + let extrasSnippets = (await Promise.race([ + getDefinitionsFromLsp( + filepath, + fullPrefix + fullSuffix, + fullPrefix.length, + ide, + ), + new Promise((resolve) => { + setTimeout(() => resolve([]), 100); + }), + ])) as AutocompleteSnippet[]; + + const workspaceDirs = await ide.getWorkspaceDirs(); + if (options.onlyMyCode) { + extrasSnippets = extrasSnippets.filter((snippet) => { + return workspaceDirs.some((dir) => snippet.filepath.startsWith(dir)); + }); + } + + let { prefix, suffix, completeMultiline, snippets } = + await constructAutocompletePrompt( + filepath, + pos.line, + fullPrefix, + fullSuffix, + clipboardText, + lang, + options, + recentlyEditedRanges, + recentlyEditedFiles, + llm.model, + extrasSnippets, + ); + + // Template prompt + const { template, completionOptions } = options.template + ? { template: options.template, completionOptions: {} } + : getTemplateForModel(llm.model); + + let prompt: string; + const filename = getBasename(filepath); + const reponame = getBasename(workspaceDirs[0] ?? "myproject"); + if (typeof template === "string") { + const compiledTemplate = Handlebars.compile(template); + + // Format snippets as comments and prepend to prefix + const formattedSnippets = snippets + .map((snippet) => + formatExternalSnippet(snippet.filepath, snippet.contents, lang), + ) + .join("\n"); + if (formattedSnippets.length > 0) { + prefix = formattedSnippets + "\n\n" + prefix; + } + + prompt = compiledTemplate({ + prefix, + suffix, + filename, + reponame, + }); + } else { + // Let the template function format snippets + prompt = template(prefix, suffix, filename, reponame, snippets); + } + + // Completion + let completion = ""; + + const cache = await autocompleteCache; + const cachedCompletion = options.useCache + ? await cache.get(prompt) + : undefined; + let cacheHit = false; + if (cachedCompletion) { + // Cache + cacheHit = true; + completion = cachedCompletion; + } else { + // Try to reuse pending requests if what the user typed matches start of completion + let stop = [ + ...(completionOptions?.stop || []), + "\n\n", + "/src/", + "```", + ...lang.stopWords, + ]; + + const multiline = + options.multilineCompletions !== "never" && + (options.multilineCompletions === "always" || completeMultiline); + + let generator = generatorReuseManager.getGenerator( + prefix, + () => + llm.streamComplete(prompt, { + ...completionOptions, + temperature: 0, + raw: true, + stop, + }), + multiline, + ); + + // LLM + let cancelled = false; + const generatorWithCancellation = async function* () { + for await (const update of generator) { + if (token.aborted) { + cancelled = true; + return undefined; + } + yield update; + } + }; + let chars = generatorWithCancellation(); + const gen2 = onlyWhitespaceAfterEndOfLine( + noFirstCharNewline(chars), + lang.endOfLine, + ); + const lineGenerator = streamWithNewLines( + avoidPathLine( + stopAtRepeatingLines(stopAtLines(streamLines(gen2))), + lang.comment, + ), + ); + const finalGenerator = stopAtSimilarLine(lineGenerator, lineBelowCursor); + for await (const update of finalGenerator) { + completion += update; + } + + if (cancelled) { + return undefined; + } + + // Don't return empty + if (completion.trim().length <= 0) { + return undefined; + } + + // Post-processing + completion = completion.trimEnd(); + } + + const time = Date.now() - startTime; + return { + time, + completion, + prompt, + modelProvider: llm.providerName, + modelName: llm.model, + completionOptions, + cacheHit, + }; +} + +export class CompletionProvider { + private static debounceTimeout: NodeJS.Timeout | undefined = undefined; + private static debouncing: boolean = false; + private static lastUUID: string | undefined = undefined; + + constructor( + private readonly configHandler: ConfigHandler, + private readonly ide: IDE, + private readonly getLlm: () => Promise, + private readonly _onError: (e: any) => void, + private readonly getDefinitionsFromLsp: ( + filepath: string, + contents: string, + cursorIndex: number, + ide: IDE, + ) => Promise, + ) { + this.generatorReuseManager = new GeneratorReuseManager( + this.onError.bind(this), + ); + } + + private generatorReuseManager: GeneratorReuseManager; + private autocompleteCache = AutocompleteLruCache.get(); + public errorsShown: Set = new Set(); + + private onError(e: any) { + console.warn("Error generating autocompletion: ", e); + if (!this.errorsShown.has(e.message)) { + this.errorsShown.add(e.message); + this._onError(e); + } + } + + public async provideInlineCompletionItems( + input: AutocompleteInput, + token: AbortSignal, + ): Promise { + // Debounce + const uuid = uuidv4(); + CompletionProvider.lastUUID = uuid; + + const config = await this.configHandler.loadConfig(); + const options = { + ...DEFAULT_AUTOCOMPLETE_OPTS, + ...config.tabAutocompleteOptions, + }; + + if (CompletionProvider.debouncing) { + CompletionProvider.debounceTimeout?.refresh(); + const lastUUID = await new Promise((resolve) => + setTimeout(() => { + resolve(CompletionProvider.lastUUID); + }, options.debounceDelay), + ); + if (uuid !== lastUUID) { + return undefined; + } + } else { + CompletionProvider.debouncing = true; + CompletionProvider.debounceTimeout = setTimeout(async () => { + CompletionProvider.debouncing = false; + }, options.debounceDelay); + } + + // Get completion + const llm = await this.getLlm(); + if (!llm) { + return undefined; + } + const outcome = await getTabCompletion( + token, + options, + llm, + this.ide, + this.generatorReuseManager, + input, + this.getDefinitionsFromLsp, + ); + const completion = outcome?.completion; + + if (!completion) { + return undefined; + } + + // Do some stuff later so as not to block return. Latency matters + setTimeout(async () => { + if (!outcome.cacheHit) { + (await this.autocompleteCache).put(outcome.prompt, completion); + } + }, 100); + + const logRejectionTimeout = setTimeout(() => { + // Wait 10 seconds, then assume it wasn't accepted + outcome.accepted = false; + logDevData("autocomplete", outcome); + Telemetry.capture("autocomplete", { + accepted: outcome.accepted, + modelName: outcome.modelName, + modelProvider: outcome.modelProvider, + time: outcome.time, + cacheHit: outcome.cacheHit, + }); + }, 10_000); + + return outcome; + } +} diff --git a/core/autocomplete/constructPrompt.ts b/core/autocomplete/constructPrompt.ts index 3e3f00b01..996283e42 100644 --- a/core/autocomplete/constructPrompt.ts +++ b/core/autocomplete/constructPrompt.ts @@ -87,7 +87,7 @@ export async function constructAutocompletePrompt( language: AutocompleteLanguageInfo, options: TabAutocompleteOptions, recentlyEditedRanges: RangeInFileWithContents[], - recentlyEditedDocuments: RangeInFileWithContents[], + recentlyEditedFiles: RangeInFileWithContents[], modelName: string, extraSnippets: AutocompleteSnippet[], ): Promise<{ @@ -123,7 +123,7 @@ export async function constructAutocompletePrompt( ); const slidingWindowMatches = await slidingWindowMatcher( - recentlyEditedDocuments, + recentlyEditedFiles, windowAroundCursor, 3, options.slidingWindowSize, diff --git a/core/autocomplete/slidingWindow.ts b/core/autocomplete/slidingWindow.ts index 253860925..27537b3d9 100644 --- a/core/autocomplete/slidingWindow.ts +++ b/core/autocomplete/slidingWindow.ts @@ -27,12 +27,12 @@ function* slidingWindow( /** * Match by similarity over sliding windows of recent documents. - * @param recentDocuments + * @param recentFiles * @param prefix * @param suffix */ export async function slidingWindowMatcher( - recentDocuments: RangeInFileWithContents[], + recentFiles: RangeInFileWithContents[], windowAroundCursor: string, topN: number, windowSize: number, @@ -40,7 +40,7 @@ export async function slidingWindowMatcher( // Sorted lowest similarity to highest const topMatches: AutocompleteSnippet[] = []; - for (const { filepath, contents, range } of recentDocuments) { + for (const { filepath, contents, range } of recentFiles) { for (const window of slidingWindow(contents, windowSize)) { const score = jaccardSimilarity(window, windowAroundCursor); diff --git a/core/protocol.ts b/core/protocol.ts index 961b80c3a..a37209532 100644 --- a/core/protocol.ts +++ b/core/protocol.ts @@ -60,6 +60,8 @@ export type Protocol = { { filepath: string; line: number; column: number }, string[], ]; + "autocomplete/cancel": [undefined, void]; + "autocomplete/accept": [{ completionId: string }, void]; "command/run": [ { input: string; diff --git a/core/util/ranges.ts b/core/util/ranges.ts new file mode 100644 index 000000000..25e4c4916 --- /dev/null +++ b/core/util/ranges.ts @@ -0,0 +1,25 @@ +import { Range } from ".."; + +export function getRangeInString(content: string, range: Range): string { + const lines = content.split("\n"); + + if (range.start.line === range.end.line) { + return ( + lines[range.start.line]?.substring( + range.start.character, + range.end.character + 1, + ) ?? "" + ); + } + + const firstLine = + lines[range.start.line]?.substring( + range.start.character, + lines[range.start.line].length, + ) ?? ""; + const middleLines = lines.slice(range.start.line + 1, range.end.line); + const lastLine = + lines[range.end.line]?.substring(0, range.end.character) ?? ""; + + return [firstLine, ...middleLines, lastLine].join("\n"); +} diff --git a/extensions/vscode/src/autocomplete/completionProvider.ts b/extensions/vscode/src/autocomplete/completionProvider.ts index 9ce3cd548..f6198b654 100644 --- a/extensions/vscode/src/autocomplete/completionProvider.ts +++ b/extensions/vscode/src/autocomplete/completionProvider.ts @@ -1,50 +1,46 @@ import { IDE } from "core"; -import AutocompleteLruCache from "core/autocomplete/cache"; -import { DEFAULT_AUTOCOMPLETE_OPTS } from "core/autocomplete/parameters"; -import { GeneratorReuseManager } from "core/autocomplete/util"; +import { + AutocompleteInput, + CompletionProvider, +} from "core/autocomplete/completionProvider"; import { ConfigHandler } from "core/config/handler"; import { logDevData } from "core/util/devdata"; import { Telemetry } from "core/util/posthog"; -import { v4 as uuidv4 } from "uuid"; import * as vscode from "vscode"; import { TabAutocompleteModel } from "../util/loadAutocompleteModel"; -import { getTabCompletion } from "./getTabCompletion"; -import { stopStatusBarLoading } from "./statusBar"; +import { getDefinitionsFromLsp } from "./lsp"; +import { setupStatusBar, stopStatusBarLoading } from "./statusBar"; export class ContinueCompletionProvider implements vscode.InlineCompletionItemProvider { - private static debounceTimeout: NodeJS.Timeout | undefined = undefined; - private static debouncing: boolean = false; - private static lastUUID: string | undefined = undefined; - private onError(e: any) { - console.warn("Error generating autocompletion: ", e); - if (!this.errorsShown.has(e.message)) { - this.errorsShown.add(e.message); - vscode.window.showErrorMessage(e.message, "Documentation").then((val) => { - if (val === "Documentation") { - vscode.env.openExternal( - vscode.Uri.parse( - "https://continue.dev/docs/walkthroughs/tab-autocomplete", - ), - ); - } - }); - } + vscode.window.showErrorMessage(e.message, "Documentation").then((val) => { + if (val === "Documentation") { + vscode.env.openExternal( + vscode.Uri.parse( + "https://continue.dev/docs/walkthroughs/tab-autocomplete", + ), + ); + } + }); } - private generatorReuseManager = new GeneratorReuseManager( - this.onError.bind(this), - ); - private autocompleteCache = AutocompleteLruCache.get(); - public errorsShown: Set = new Set(); + private completionProvider: CompletionProvider; constructor( private readonly configHandler: ConfigHandler, private readonly ide: IDE, private readonly tabAutocompleteModel: TabAutocompleteModel, - ) {} + ) { + this.completionProvider = new CompletionProvider( + this.configHandler, + this.ide, + this.tabAutocompleteModel.get, + this.onError.bind(this), + getDefinitionsFromLsp, + ); + } public async provideInlineCompletionItems( document: vscode.TextDocument, @@ -53,33 +49,6 @@ export class ContinueCompletionProvider token: vscode.CancellationToken, //@ts-ignore ): ProviderResult { - // Debounce - const uuid = uuidv4(); - ContinueCompletionProvider.lastUUID = uuid; - - const config = await this.configHandler.loadConfig(); - const options = { - ...DEFAULT_AUTOCOMPLETE_OPTS, - ...config.tabAutocompleteOptions, - }; - - if (ContinueCompletionProvider.debouncing) { - ContinueCompletionProvider.debounceTimeout?.refresh(); - const lastUUID = await new Promise((resolve) => - setTimeout(() => { - resolve(ContinueCompletionProvider.lastUUID); - }, options.debounceDelay), - ); - if (uuid !== lastUUID) { - return []; - } - } else { - ContinueCompletionProvider.debouncing = true; - ContinueCompletionProvider.debounceTimeout = setTimeout(async () => { - ContinueCompletionProvider.debouncing = false; - }, options.debounceDelay); - } - const enableTabAutocomplete = vscode.workspace .getConfiguration("continue") @@ -89,28 +58,28 @@ export class ContinueCompletionProvider } try { - const outcome = await getTabCompletion( - document, - position, - token, - options, - this.tabAutocompleteModel, - this.ide, - this.generatorReuseManager, - ); - const completion = outcome?.completion; + const abortController = new AbortController(); + const signal = abortController.signal; + token.onCancellationRequested(() => abortController.abort()); + const input: AutocompleteInput = { + filepath: document.uri.fsPath, + pos: { line: position.line, character: position.character }, + recentlyEditedFiles: [], + recentlyEditedRanges: [], + clipboardText: await vscode.env.clipboard.readText(), + }; - if (!completion) { + setupStatusBar(true, true); + const outcome = + await this.completionProvider.provideInlineCompletionItems( + input, + signal, + ); + + if (!outcome || !outcome.completion) { return []; } - // Do some stuff later so as not to block return. Latency matters - setTimeout(async () => { - if (!outcome.cacheHit) { - (await this.autocompleteCache).put(outcome.prompt, completion); - } - }, 100); - const logRejectionTimeout = setTimeout(() => { // Wait 10 seconds, then assume it wasn't accepted outcome.accepted = false; @@ -126,8 +95,11 @@ export class ContinueCompletionProvider return [ new vscode.InlineCompletionItem( - completion, - new vscode.Range(position, position.translate(0, completion.length)), + outcome.completion, + new vscode.Range( + position, + position.translate(0, outcome.completion.length), + ), { title: "Log Autocomplete Outcome", command: "continue.logAutocompleteOutcome", diff --git a/extensions/vscode/src/autocomplete/getTabCompletion.ts b/extensions/vscode/src/autocomplete/getTabCompletion.ts deleted file mode 100644 index e947cbc5e..000000000 --- a/extensions/vscode/src/autocomplete/getTabCompletion.ts +++ /dev/null @@ -1,262 +0,0 @@ -import { IDE, TabAutocompleteOptions } from "core"; -import { AutocompleteLruCache } from "core/autocomplete/cache"; -import { - noFirstCharNewline, - onlyWhitespaceAfterEndOfLine, -} from "core/autocomplete/charStream"; -import { - constructAutocompletePrompt, - languageForFilepath, -} from "core/autocomplete/constructPrompt"; -import { AutocompleteLanguageInfo } from "core/autocomplete/languages"; -import { - avoidPathLine, - stopAtLines, - stopAtRepeatingLines, - stopAtSimilarLine, - streamWithNewLines, -} from "core/autocomplete/lineStream"; -import { AutocompleteSnippet } from "core/autocomplete/ranking"; -import { getTemplateForModel } from "core/autocomplete/templates"; -import { GeneratorReuseManager } from "core/autocomplete/util"; -import { streamLines } from "core/diff/util"; -import OpenAI from "core/llm/llms/OpenAI"; -import { getBasename } from "core/util"; -import Handlebars from "handlebars"; -import * as vscode from "vscode"; -import { TabAutocompleteModel } from "../util/loadAutocompleteModel"; -import { getDefinitionsFromLsp } from "./lsp"; -import { RecentlyEditedTracker } from "./recentlyEdited"; -import { setupStatusBar, stopStatusBarLoading } from "./statusBar"; - -export interface AutocompleteOutcome { - accepted?: boolean; - time: number; - prompt: string; - completion: string; - modelProvider: string; - modelName: string; - completionOptions: any; - cacheHit: boolean; -} - -const autocompleteCache = AutocompleteLruCache.get(); -const recentlyEditedTracker = new RecentlyEditedTracker(); - -function formatExternalSnippet( - filepath: string, - snippet: string, - language: AutocompleteLanguageInfo, -) { - const comment = language.comment; - const lines = [ - comment + " Path: " + getBasename(filepath), - ...snippet - .trim() - .split("\n") - .map((line) => comment + " " + line), - comment, - ]; - return lines.join("\n"); -} - -export async function getTabCompletion( - document: vscode.TextDocument, - pos: vscode.Position, - token: vscode.CancellationToken, - options: TabAutocompleteOptions, - tabAutocompleteModel: TabAutocompleteModel, - ide: IDE, - generatorReuseManager: GeneratorReuseManager, -): Promise { - const startTime = Date.now(); - - // Filter - const lang = languageForFilepath(document.fileName); - const line = document.lineAt(pos).text; - for (const endOfLine of lang.endOfLine) { - if (line.endsWith(endOfLine) && pos.character >= line.length) { - return undefined; - } - } - - // Model - const llm = await tabAutocompleteModel.get(); - if (llm instanceof OpenAI) { - llm.useLegacyCompletionsEndpoint = true; - } - if (!llm) return; - - // Prompt - const fullPrefix = document.getText( - new vscode.Range(new vscode.Position(0, 0), pos), - ); - const fullSuffix = document.getText( - new vscode.Range( - pos, - new vscode.Position(document.lineCount, Number.MAX_SAFE_INTEGER), - ), - ); - const lineBelowCursor = document.lineAt( - Math.min(pos.line + 1, document.lineCount - 1), - ).text; - const clipboardText = await vscode.env.clipboard.readText(); - - let extrasSnippets = (await Promise.race([ - getDefinitionsFromLsp( - document.uri.fsPath, - fullPrefix + fullSuffix, - fullPrefix.length, - ide, - ), - new Promise((resolve) => { - setTimeout(() => resolve([]), 100); - }), - ])) as AutocompleteSnippet[]; - - const workspaceDirs = await ide.getWorkspaceDirs(); - if (options.onlyMyCode) { - extrasSnippets = extrasSnippets.filter((snippet) => { - return workspaceDirs.some((dir) => snippet.filepath.startsWith(dir)); - }); - } - - let { prefix, suffix, completeMultiline, snippets } = - await constructAutocompletePrompt( - document.uri.toString(), - pos.line, - fullPrefix, - fullSuffix, - clipboardText, - lang, - options, - await recentlyEditedTracker.getRecentlyEditedRanges(), - await recentlyEditedTracker.getRecentlyEditedDocuments(), - llm.model, - extrasSnippets, - ); - - // Template prompt - const { template, completionOptions } = options.template - ? { template: options.template, completionOptions: {} } - : getTemplateForModel(llm.model); - - let prompt: string; - const filename = getBasename(document.uri.fsPath); - const reponame = getBasename(workspaceDirs[0] ?? "myproject"); - if (typeof template === "string") { - const compiledTemplate = Handlebars.compile(template); - - // Format snippets as comments and prepend to prefix - const formattedSnippets = snippets - .map((snippet) => - formatExternalSnippet(snippet.filepath, snippet.contents, lang), - ) - .join("\n"); - if (formattedSnippets.length > 0) { - prefix = formattedSnippets + "\n\n" + prefix; - } - - prompt = compiledTemplate({ - prefix, - suffix, - filename, - reponame, - }); - } else { - // Let the template function format snippets - prompt = template(prefix, suffix, filename, reponame, snippets); - } - - // Completion - let completion = ""; - - const cache = await autocompleteCache; - const cachedCompletion = options.useCache - ? await cache.get(prompt) - : undefined; - let cacheHit = false; - if (cachedCompletion) { - // Cache - cacheHit = true; - completion = cachedCompletion; - } else { - setupStatusBar(true, true); - - // Try to reuse pending requests if what the user typed matches start of completion - let stop = [ - ...(completionOptions?.stop || []), - "\n\n", - "/src/", - "```", - ...lang.stopWords, - ]; - - const multiline = - options.multilineCompletions !== "never" && - (options.multilineCompletions === "always" || completeMultiline); - - let generator = generatorReuseManager.getGenerator( - prefix, - () => - llm.streamComplete(prompt, { - ...completionOptions, - temperature: 0, - raw: true, - stop, - }), - multiline, - ); - - // LLM - let cancelled = false; - const generatorWithCancellation = async function* () { - for await (const update of generator) { - if (token.isCancellationRequested) { - stopStatusBarLoading(); - cancelled = true; - return undefined; - } - yield update; - } - }; - let chars = generatorWithCancellation(); - const gen2 = onlyWhitespaceAfterEndOfLine( - noFirstCharNewline(chars), - lang.endOfLine, - ); - const lineGenerator = streamWithNewLines( - avoidPathLine( - stopAtRepeatingLines(stopAtLines(streamLines(gen2))), - lang.comment, - ), - ); - const finalGenerator = stopAtSimilarLine(lineGenerator, lineBelowCursor); - for await (const update of finalGenerator) { - completion += update; - } - - if (cancelled) { - return undefined; - } - - // Don't return empty - if (completion.trim().length <= 0) { - return undefined; - } - - // Post-processing - completion = completion.trimEnd(); - } - - const time = Date.now() - startTime; - return { - time, - completion, - prompt, - modelProvider: llm.providerName, - modelName: llm.model, - completionOptions, - cacheHit, - }; -} diff --git a/extensions/vscode/src/commands.ts b/extensions/vscode/src/commands.ts index 3e3fe41bc..5d38dd9d6 100644 --- a/extensions/vscode/src/commands.ts +++ b/extensions/vscode/src/commands.ts @@ -4,10 +4,10 @@ import * as path from "path"; import * as vscode from "vscode"; import { IDE } from "core"; +import { AutocompleteOutcome } from "core/autocomplete/completionProvider"; import { ConfigHandler } from "core/config/handler"; import { logDevData } from "core/util/devdata"; import { Telemetry } from "core/util/posthog"; -import { AutocompleteOutcome } from "./autocomplete/getTabCompletion"; import { ContinueGUIWebviewViewProvider } from "./debugPanel"; import { DiffManager } from "./diff/horizontal"; import { VerticalPerLineDiffManager } from "./diff/verticalPerLine/manager"; diff --git a/extensions/vscode/src/util/ideUtils.ts b/extensions/vscode/src/util/ideUtils.ts index 86fd41aea..cf47c7e19 100644 --- a/extensions/vscode/src/util/ideUtils.ts +++ b/extensions/vscode/src/util/ideUtils.ts @@ -287,32 +287,37 @@ export class VsCodeIdeUtils { } } + private static MAX_BYTES = 100000; + async readFile(filepath: string): Promise { - filepath = this.getAbsolutePath(filepath); + try { + filepath = this.getAbsolutePath(filepath); + const uri = uriFromFilePath(filepath); - const MAX_BYTES = 100000; - let contents: string | undefined; - if (typeof contents === "undefined") { - try { - const fileStats = await vscode.workspace.fs.stat( - uriFromFilePath(filepath), - ); - if (fileStats.size > 10 * MAX_BYTES) { - return ""; - } - - const bytes = await vscode.workspace.fs.readFile( - uriFromFilePath(filepath), - ); - - // Truncate the buffer to the first MAX_BYTES - const truncatedBytes = bytes.slice(0, MAX_BYTES); - contents = new TextDecoder().decode(truncatedBytes); - } catch { - contents = ""; + // Check first whether it's an open document + const openTextDocument = vscode.workspace.textDocuments.find( + (doc) => doc.uri.toString() === uri.toString(), + ); + if (openTextDocument !== undefined) { + return openTextDocument.getText(); } + + const fileStats = await vscode.workspace.fs.stat( + uriFromFilePath(filepath), + ); + if (fileStats.size > 10 * VsCodeIdeUtils.MAX_BYTES) { + return ""; + } + + const bytes = await vscode.workspace.fs.readFile(uri); + + // Truncate the buffer to the first MAX_BYTES + const truncatedBytes = bytes.slice(0, VsCodeIdeUtils.MAX_BYTES); + const contents = new TextDecoder().decode(truncatedBytes); + return contents; + } catch { + return ""; } - return contents; } async readRangeInFile( diff --git a/gui/src/util/ide.ts b/gui/src/util/ide.ts index e445f6db8..912a3dfbf 100644 --- a/gui/src/util/ide.ts +++ b/gui/src/util/ide.ts @@ -19,7 +19,7 @@ function _postToIde(messageType: string, data: any, messageId?: string) { console.log( "Unable to send message: postIntellijMessage is undefined. ", messageType, - data + data, ); throw new Error("postIntellijMessage is undefined"); } @@ -30,7 +30,7 @@ function _postToIde(messageType: string, data: any, messageId?: string) { console.log( "Unable to send message: vscode is undefined. ", messageType, - data + data, ); return; } @@ -47,7 +47,7 @@ export function postToIde( messageType: T, data: WebviewProtocol[T][0], messageId?: string, - attempt: number = 0 + attempt: number = 0, ) { try { _postToIde(messageType, data, messageId); @@ -56,7 +56,7 @@ export function postToIde( console.log(`Attempt ${attempt} failed. Retrying...`); setTimeout( () => postToIde(messageType, data, messageId, attempt + 1), - Math.pow(2, attempt) * 1000 + Math.pow(2, attempt) * 1000, ); } else { console.error("Max attempts reached. Message could not be sent.", error); @@ -67,7 +67,7 @@ export function postToIde( export function respondToIde( messageType: T, data: ReverseWebviewProtocol[T][1], - messageId: string + messageId: string, ) { _postToIde(messageType, data, messageId); } @@ -82,7 +82,7 @@ function safeParseResponse(data: any) { export async function ideRequest( messageType: T, - data: WebviewProtocol[T][0] + data: WebviewProtocol[T][0], ): Promise { const messageId = uuidv4(); @@ -102,7 +102,7 @@ export async function ideRequest( export async function* ideStreamRequest( messageType: T, data: WebviewProtocol[T][0], - cancelToken?: AbortSignal + cancelToken?: AbortSignal, ): WebviewProtocol[T][1] { const messageId = uuidv4(); @@ -153,7 +153,7 @@ export async function* llmStreamChat( modelTitle: string, cancelToken: AbortSignal | undefined, messages: ChatMessage[], - options: LLMFullCompletionOptions = {} + options: LLMFullCompletionOptions = {}, ): AsyncGenerator { const gen = ideStreamRequest( "llm/streamChat", @@ -162,7 +162,7 @@ export async function* llmStreamChat( title: modelTitle, completionOptions: options, }, - cancelToken + cancelToken, ); let next = await gen.next(); From 00e526ecaf52c1914900d157e1c381c8fa3001c5 Mon Sep 17 00:00:00 2001 From: Nate Sesti Date: Tue, 12 Mar 2024 22:12:29 -0700 Subject: [PATCH 022/105] =?UTF-8?q?=E2=9C=A8=20autocomplete=20in=20core=20?= =?UTF-8?q?protocol?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- core/autocomplete/completionProvider.ts | 165 +++++++++++------- core/protocol.ts | 6 +- .../autocomplete/AutocompleteService.kt | 15 +- .../continue/CoreMessenger.kt | 4 +- .../src/autocomplete/completionProvider.ts | 2 + pkg/src/core.ts | 28 +++ 6 files changed, 149 insertions(+), 71 deletions(-) diff --git a/core/autocomplete/completionProvider.ts b/core/autocomplete/completionProvider.ts index fb23ebf12..97f7013e5 100644 --- a/core/autocomplete/completionProvider.ts +++ b/core/autocomplete/completionProvider.ts @@ -29,6 +29,7 @@ import { getTemplateForModel } from "./templates"; import { GeneratorReuseManager } from "./util"; export interface AutocompleteInput { + completionId: string; filepath: string; pos: Position; recentlyEditedFiles: RangeInFileWithContents[]; @@ -309,67 +310,26 @@ export class CompletionProvider { } } - public async provideInlineCompletionItems( - input: AutocompleteInput, - token: AbortSignal, - ): Promise { - // Debounce - const uuid = uuidv4(); - CompletionProvider.lastUUID = uuid; + public cancel() { + this._abortControllers.forEach((abortController, id) => { + abortController.abort(); + }); + this._abortControllers.clear(); + } - const config = await this.configHandler.loadConfig(); - const options = { - ...DEFAULT_AUTOCOMPLETE_OPTS, - ...config.tabAutocompleteOptions, - }; + private _abortControllers = new Map(); + private _logRejectionTimeouts = new Map(); + private _outcomes = new Map(); - if (CompletionProvider.debouncing) { - CompletionProvider.debounceTimeout?.refresh(); - const lastUUID = await new Promise((resolve) => - setTimeout(() => { - resolve(CompletionProvider.lastUUID); - }, options.debounceDelay), - ); - if (uuid !== lastUUID) { - return undefined; - } - } else { - CompletionProvider.debouncing = true; - CompletionProvider.debounceTimeout = setTimeout(async () => { - CompletionProvider.debouncing = false; - }, options.debounceDelay); + public accept(completionId: string) { + if (this._logRejectionTimeouts.has(completionId)) { + clearTimeout(this._logRejectionTimeouts.get(completionId)); + this._logRejectionTimeouts.delete(completionId); } - // Get completion - const llm = await this.getLlm(); - if (!llm) { - return undefined; - } - const outcome = await getTabCompletion( - token, - options, - llm, - this.ide, - this.generatorReuseManager, - input, - this.getDefinitionsFromLsp, - ); - const completion = outcome?.completion; - - if (!completion) { - return undefined; - } - - // Do some stuff later so as not to block return. Latency matters - setTimeout(async () => { - if (!outcome.cacheHit) { - (await this.autocompleteCache).put(outcome.prompt, completion); - } - }, 100); - - const logRejectionTimeout = setTimeout(() => { - // Wait 10 seconds, then assume it wasn't accepted - outcome.accepted = false; + if (this._outcomes.has(completionId)) { + const outcome = this._outcomes.get(completionId)!; + outcome.accepted = true; logDevData("autocomplete", outcome); Telemetry.capture("autocomplete", { accepted: outcome.accepted, @@ -378,8 +338,95 @@ export class CompletionProvider { time: outcome.time, cacheHit: outcome.cacheHit, }); - }, 10_000); + this._outcomes.delete(completionId); + } + } - return outcome; + public async provideInlineCompletionItems( + input: AutocompleteInput, + token: AbortSignal | undefined, + ): Promise { + // Create abort signal if not given + if (!token) { + const controller = new AbortController(); + token = controller.signal; + this._abortControllers.set(input.completionId, controller); + } + + try { + // Debounce + const uuid = uuidv4(); + CompletionProvider.lastUUID = uuid; + + const config = await this.configHandler.loadConfig(); + const options = { + ...DEFAULT_AUTOCOMPLETE_OPTS, + ...config.tabAutocompleteOptions, + }; + + if (CompletionProvider.debouncing) { + CompletionProvider.debounceTimeout?.refresh(); + const lastUUID = await new Promise((resolve) => + setTimeout(() => { + resolve(CompletionProvider.lastUUID); + }, options.debounceDelay), + ); + if (uuid !== lastUUID) { + return undefined; + } + } else { + CompletionProvider.debouncing = true; + CompletionProvider.debounceTimeout = setTimeout(async () => { + CompletionProvider.debouncing = false; + }, options.debounceDelay); + } + + // Get completion + const llm = await this.getLlm(); + if (!llm) { + return undefined; + } + const outcome = await getTabCompletion( + token, + options, + llm, + this.ide, + this.generatorReuseManager, + input, + this.getDefinitionsFromLsp, + ); + const completion = outcome?.completion; + + if (!completion) { + return undefined; + } + + // Do some stuff later so as not to block return. Latency matters + setTimeout(async () => { + if (!outcome.cacheHit) { + (await this.autocompleteCache).put(outcome.prompt, completion); + } + }, 100); + + outcome.accepted = false; + const logRejectionTimeout = setTimeout(() => { + // Wait 10 seconds, then assume it wasn't accepted + logDevData("autocomplete", outcome); + Telemetry.capture("autocomplete", { + accepted: outcome.accepted, + modelName: outcome.modelName, + modelProvider: outcome.modelProvider, + time: outcome.time, + cacheHit: outcome.cacheHit, + }); + this._logRejectionTimeouts.delete(input.completionId); + }, 10_000); + this._outcomes.set(input.completionId, outcome); + this._logRejectionTimeouts.set(input.completionId, logRejectionTimeout); + + return outcome; + } finally { + this._abortControllers.delete(input.completionId); + } } } diff --git a/core/protocol.ts b/core/protocol.ts index a37209532..a6836b615 100644 --- a/core/protocol.ts +++ b/core/protocol.ts @@ -10,6 +10,7 @@ import { SerializedContinueConfig, SessionInfo, } from "."; +import { AutocompleteInput } from "./autocomplete/completionProvider"; import { IdeProtocol } from "./web/webviewProtocol"; export type ProtocolGeneratorType = AsyncGenerator<{ @@ -56,10 +57,7 @@ export type Protocol = { Promise, ]; "context/addDocs": [{ title: string; url: string }, void]; - "autocomplete/complete": [ - { filepath: string; line: number; column: number }, - string[], - ]; + "autocomplete/complete": [AutocompleteInput, Promise]; "autocomplete/cancel": [undefined, void]; "autocomplete/accept": [{ completionId: string }, void]; "command/run": [ diff --git a/extensions/intellij/src/main/kotlin/com/github/continuedev/continueintellijextension/autocomplete/AutocompleteService.kt b/extensions/intellij/src/main/kotlin/com/github/continuedev/continueintellijextension/autocomplete/AutocompleteService.kt index 4ce23afdf..375a91b34 100644 --- a/extensions/intellij/src/main/kotlin/com/github/continuedev/continueintellijextension/autocomplete/AutocompleteService.kt +++ b/extensions/intellij/src/main/kotlin/com/github/continuedev/continueintellijextension/autocomplete/AutocompleteService.kt @@ -2,6 +2,7 @@ package com.github.continuedev.continueintellijextension.autocomplete import com.github.continuedev.continueintellijextension.`continue`.uuid import com.github.continuedev.continueintellijextension.services.ContinuePluginService +import com.google.gson.Gson import com.intellij.openapi.application.invokeLater import com.intellij.openapi.components.Service import com.intellij.openapi.components.service @@ -30,12 +31,11 @@ class AutocompleteService(private val project: Project) { pendingCompletion = PendingCompletion(editor, offset, completionId, null) // Request a completion from the core - val completion = "Hello, World!" - pendingCompletion = pendingCompletion?.copy(text = completion) - renderCompletion(editor, offset, completion) -// service().coreMessenger?.request("autocomplete/complete", completionId, null, ({ response -> -// renderCompletion(editor, offset, response) -// })) + project.service().coreMessenger?.request("autocomplete/complete", completionId, null, ({ response -> + val completion = response; + renderCompletion(editor, offset, response) + pendingCompletion = pendingCompletion?.copy(text = completion) + })) } private fun renderCompletion(editor: Editor, offset: Int, text: String) { @@ -49,11 +49,12 @@ class AutocompleteService(private val project: Project) { val offset = completion.offset editor.document.insertString(offset, text) clearCompletions(editor) + project.service().coreMessenger?.request("autocomplete/accept", completion.completionId, null, ({})) } private fun cancelCompletion(completion: PendingCompletion) { // Send cancellation message to core - project.service().coreMessenger?.request("autocomplete/cancel", completion.completionId,null, ({})) + project.service().coreMessenger?.request("autocomplete/cancel", null,null, ({})) } fun clearCompletions(editor: Editor) { diff --git a/extensions/intellij/src/main/kotlin/com/github/continuedev/continueintellijextension/continue/CoreMessenger.kt b/extensions/intellij/src/main/kotlin/com/github/continuedev/continueintellijextension/continue/CoreMessenger.kt index 10e9e93ee..0bea9be37 100644 --- a/extensions/intellij/src/main/kotlin/com/github/continuedev/continueintellijextension/continue/CoreMessenger.kt +++ b/extensions/intellij/src/main/kotlin/com/github/continuedev/continueintellijextension/continue/CoreMessenger.kt @@ -140,6 +140,7 @@ class CoreMessenger(esbuildPath: String, continueCorePath: String, ideProtocolCl // Start the subprocess val processBuilder = ProcessBuilder(continueCorePath) + .directory(File(continueCorePath).parentFile) process = processBuilder.start() val outputStream = process.outputStream @@ -149,7 +150,8 @@ class CoreMessenger(esbuildPath: String, continueCorePath: String, ideProtocolCl reader = BufferedReader(InputStreamReader(inputStream)) process.onExit().thenRun { - val err = process.errorStream.bufferedReader().readText() + val err = process.errorStream.bufferedReader().readText().trim() + println("Core process exited with output: $err") ideProtocolClient.showMessage("Core process exited with output: $err") } diff --git a/extensions/vscode/src/autocomplete/completionProvider.ts b/extensions/vscode/src/autocomplete/completionProvider.ts index f6198b654..c8a035114 100644 --- a/extensions/vscode/src/autocomplete/completionProvider.ts +++ b/extensions/vscode/src/autocomplete/completionProvider.ts @@ -6,6 +6,7 @@ import { import { ConfigHandler } from "core/config/handler"; import { logDevData } from "core/util/devdata"; import { Telemetry } from "core/util/posthog"; +import { v4 as uuidv4 } from "uuid"; import * as vscode from "vscode"; import { TabAutocompleteModel } from "../util/loadAutocompleteModel"; import { getDefinitionsFromLsp } from "./lsp"; @@ -62,6 +63,7 @@ export class ContinueCompletionProvider const signal = abortController.signal; token.onCancellationRequested(() => abortController.abort()); const input: AutocompleteInput = { + completionId: uuidv4(), filepath: document.uri.fsPath, pos: { line: position.line, character: position.character }, recentlyEditedFiles: [], diff --git a/pkg/src/core.ts b/pkg/src/core.ts index bc217a436..eba31a3be 100644 --- a/pkg/src/core.ts +++ b/pkg/src/core.ts @@ -1,4 +1,5 @@ import { ContextItemId, IDE } from "core"; +import { CompletionProvider } from "core/autocomplete/completionProvider"; import { ConfigHandler } from "core/config/handler"; import { addModel, addOpenAIKey, deleteModel } from "core/config/util"; import { indexDocs } from "core/indexing/docs"; @@ -16,6 +17,7 @@ export class Core { private readonly ide: IDE; private readonly configHandler: ConfigHandler; private readonly codebaseIndexer: CodebaseIndexer; + private readonly completionProvider: CompletionProvider; private abortedMessageIds: Set = new Set(); @@ -46,6 +48,18 @@ export class Core { new PauseToken(false), ); + const getLlm = async () => { + const config = await this.configHandler.loadConfig(); + return config.tabAutocompleteModel; + }; + this.completionProvider = new CompletionProvider( + this.configHandler, + ide, + getLlm, + (e) => {}, + (..._) => Promise.resolve([]), + ); + const on = this.messenger.on.bind(this.messenger); // New @@ -255,6 +269,20 @@ export class Core { on("command/run", (msg) => runNodeJsSlashCommand(this.configHandler, this.abortedMessageIds, msg), ); + + // Autocomplete + on("autocomplete/complete", async (msg) => { + const outcome = + await this.completionProvider.provideInlineCompletionItems( + msg.data, + undefined, + ); + return outcome ? [outcome.completion] : []; + }); + on("autocomplete/accept", async (msg) => {}); + on("autocomplete/cancel", async (msg) => { + this.completionProvider.cancel(); + }); } public invoke( From 6cbcd33e9d89c52b12d09ab50f0621bc0b39c6f3 Mon Sep 17 00:00:00 2001 From: Nate Sesti Date: Wed, 13 Mar 2024 20:32:48 -0700 Subject: [PATCH 023/105] =?UTF-8?q?=F0=9F=9A=A7=20jetbrains=20autocomplete?= =?UTF-8?q?=20fixes?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- core/autocomplete/completionProvider.ts | 165 +++++++++++------- core/protocol.ts | 6 +- .../autocomplete/AutocompleteService.kt | 28 ++- .../continue/CoreMessenger.kt | 4 +- .../src/autocomplete/completionProvider.ts | 2 + pkg/src/core.ts | 28 +++ 6 files changed, 162 insertions(+), 71 deletions(-) diff --git a/core/autocomplete/completionProvider.ts b/core/autocomplete/completionProvider.ts index fb23ebf12..97f7013e5 100644 --- a/core/autocomplete/completionProvider.ts +++ b/core/autocomplete/completionProvider.ts @@ -29,6 +29,7 @@ import { getTemplateForModel } from "./templates"; import { GeneratorReuseManager } from "./util"; export interface AutocompleteInput { + completionId: string; filepath: string; pos: Position; recentlyEditedFiles: RangeInFileWithContents[]; @@ -309,67 +310,26 @@ export class CompletionProvider { } } - public async provideInlineCompletionItems( - input: AutocompleteInput, - token: AbortSignal, - ): Promise { - // Debounce - const uuid = uuidv4(); - CompletionProvider.lastUUID = uuid; + public cancel() { + this._abortControllers.forEach((abortController, id) => { + abortController.abort(); + }); + this._abortControllers.clear(); + } - const config = await this.configHandler.loadConfig(); - const options = { - ...DEFAULT_AUTOCOMPLETE_OPTS, - ...config.tabAutocompleteOptions, - }; + private _abortControllers = new Map(); + private _logRejectionTimeouts = new Map(); + private _outcomes = new Map(); - if (CompletionProvider.debouncing) { - CompletionProvider.debounceTimeout?.refresh(); - const lastUUID = await new Promise((resolve) => - setTimeout(() => { - resolve(CompletionProvider.lastUUID); - }, options.debounceDelay), - ); - if (uuid !== lastUUID) { - return undefined; - } - } else { - CompletionProvider.debouncing = true; - CompletionProvider.debounceTimeout = setTimeout(async () => { - CompletionProvider.debouncing = false; - }, options.debounceDelay); + public accept(completionId: string) { + if (this._logRejectionTimeouts.has(completionId)) { + clearTimeout(this._logRejectionTimeouts.get(completionId)); + this._logRejectionTimeouts.delete(completionId); } - // Get completion - const llm = await this.getLlm(); - if (!llm) { - return undefined; - } - const outcome = await getTabCompletion( - token, - options, - llm, - this.ide, - this.generatorReuseManager, - input, - this.getDefinitionsFromLsp, - ); - const completion = outcome?.completion; - - if (!completion) { - return undefined; - } - - // Do some stuff later so as not to block return. Latency matters - setTimeout(async () => { - if (!outcome.cacheHit) { - (await this.autocompleteCache).put(outcome.prompt, completion); - } - }, 100); - - const logRejectionTimeout = setTimeout(() => { - // Wait 10 seconds, then assume it wasn't accepted - outcome.accepted = false; + if (this._outcomes.has(completionId)) { + const outcome = this._outcomes.get(completionId)!; + outcome.accepted = true; logDevData("autocomplete", outcome); Telemetry.capture("autocomplete", { accepted: outcome.accepted, @@ -378,8 +338,95 @@ export class CompletionProvider { time: outcome.time, cacheHit: outcome.cacheHit, }); - }, 10_000); + this._outcomes.delete(completionId); + } + } - return outcome; + public async provideInlineCompletionItems( + input: AutocompleteInput, + token: AbortSignal | undefined, + ): Promise { + // Create abort signal if not given + if (!token) { + const controller = new AbortController(); + token = controller.signal; + this._abortControllers.set(input.completionId, controller); + } + + try { + // Debounce + const uuid = uuidv4(); + CompletionProvider.lastUUID = uuid; + + const config = await this.configHandler.loadConfig(); + const options = { + ...DEFAULT_AUTOCOMPLETE_OPTS, + ...config.tabAutocompleteOptions, + }; + + if (CompletionProvider.debouncing) { + CompletionProvider.debounceTimeout?.refresh(); + const lastUUID = await new Promise((resolve) => + setTimeout(() => { + resolve(CompletionProvider.lastUUID); + }, options.debounceDelay), + ); + if (uuid !== lastUUID) { + return undefined; + } + } else { + CompletionProvider.debouncing = true; + CompletionProvider.debounceTimeout = setTimeout(async () => { + CompletionProvider.debouncing = false; + }, options.debounceDelay); + } + + // Get completion + const llm = await this.getLlm(); + if (!llm) { + return undefined; + } + const outcome = await getTabCompletion( + token, + options, + llm, + this.ide, + this.generatorReuseManager, + input, + this.getDefinitionsFromLsp, + ); + const completion = outcome?.completion; + + if (!completion) { + return undefined; + } + + // Do some stuff later so as not to block return. Latency matters + setTimeout(async () => { + if (!outcome.cacheHit) { + (await this.autocompleteCache).put(outcome.prompt, completion); + } + }, 100); + + outcome.accepted = false; + const logRejectionTimeout = setTimeout(() => { + // Wait 10 seconds, then assume it wasn't accepted + logDevData("autocomplete", outcome); + Telemetry.capture("autocomplete", { + accepted: outcome.accepted, + modelName: outcome.modelName, + modelProvider: outcome.modelProvider, + time: outcome.time, + cacheHit: outcome.cacheHit, + }); + this._logRejectionTimeouts.delete(input.completionId); + }, 10_000); + this._outcomes.set(input.completionId, outcome); + this._logRejectionTimeouts.set(input.completionId, logRejectionTimeout); + + return outcome; + } finally { + this._abortControllers.delete(input.completionId); + } } } diff --git a/core/protocol.ts b/core/protocol.ts index a37209532..a6836b615 100644 --- a/core/protocol.ts +++ b/core/protocol.ts @@ -10,6 +10,7 @@ import { SerializedContinueConfig, SessionInfo, } from "."; +import { AutocompleteInput } from "./autocomplete/completionProvider"; import { IdeProtocol } from "./web/webviewProtocol"; export type ProtocolGeneratorType = AsyncGenerator<{ @@ -56,10 +57,7 @@ export type Protocol = { Promise, ]; "context/addDocs": [{ title: string; url: string }, void]; - "autocomplete/complete": [ - { filepath: string; line: number; column: number }, - string[], - ]; + "autocomplete/complete": [AutocompleteInput, Promise]; "autocomplete/cancel": [undefined, void]; "autocomplete/accept": [{ completionId: string }, void]; "command/run": [ diff --git a/extensions/intellij/src/main/kotlin/com/github/continuedev/continueintellijextension/autocomplete/AutocompleteService.kt b/extensions/intellij/src/main/kotlin/com/github/continuedev/continueintellijextension/autocomplete/AutocompleteService.kt index 4ce23afdf..b7a851631 100644 --- a/extensions/intellij/src/main/kotlin/com/github/continuedev/continueintellijextension/autocomplete/AutocompleteService.kt +++ b/extensions/intellij/src/main/kotlin/com/github/continuedev/continueintellijextension/autocomplete/AutocompleteService.kt @@ -2,10 +2,12 @@ package com.github.continuedev.continueintellijextension.autocomplete import com.github.continuedev.continueintellijextension.`continue`.uuid import com.github.continuedev.continueintellijextension.services.ContinuePluginService +import com.google.gson.Gson import com.intellij.openapi.application.invokeLater import com.intellij.openapi.components.Service import com.intellij.openapi.components.service import com.intellij.openapi.editor.Editor +import com.intellij.openapi.fileEditor.FileDocumentManager import com.intellij.openapi.project.Project data class PendingCompletion ( @@ -30,12 +32,23 @@ class AutocompleteService(private val project: Project) { pendingCompletion = PendingCompletion(editor, offset, completionId, null) // Request a completion from the core - val completion = "Hello, World!" - pendingCompletion = pendingCompletion?.copy(text = completion) - renderCompletion(editor, offset, completion) -// service().coreMessenger?.request("autocomplete/complete", completionId, null, ({ response -> -// renderCompletion(editor, offset, response) -// })) + val virtualFile = FileDocumentManager.getInstance().getFile(editor.document) + val input = mapOf( + "completionId" to completionId, + "filepath" to virtualFile?.path, + "pos" to mapOf( + "line" to editor.caretModel.primaryCaret.logicalPosition.line, + "character" to editor.caretModel.primaryCaret.logicalPosition.column + ), + "recentlyEditedFiles" to emptyList(), + "recentlyEditedRanges" to emptyList(), + "clipboardText" to "" + ) + project.service().coreMessenger?.request("autocomplete/complete", input, null, ({ response -> + val completion = response; + renderCompletion(editor, offset, response) + pendingCompletion = pendingCompletion?.copy(text = completion) + })) } private fun renderCompletion(editor: Editor, offset: Int, text: String) { @@ -49,11 +62,12 @@ class AutocompleteService(private val project: Project) { val offset = completion.offset editor.document.insertString(offset, text) clearCompletions(editor) + project.service().coreMessenger?.request("autocomplete/accept", completion.completionId, null, ({})) } private fun cancelCompletion(completion: PendingCompletion) { // Send cancellation message to core - project.service().coreMessenger?.request("autocomplete/cancel", completion.completionId,null, ({})) + project.service().coreMessenger?.request("autocomplete/cancel", null,null, ({})) } fun clearCompletions(editor: Editor) { diff --git a/extensions/intellij/src/main/kotlin/com/github/continuedev/continueintellijextension/continue/CoreMessenger.kt b/extensions/intellij/src/main/kotlin/com/github/continuedev/continueintellijextension/continue/CoreMessenger.kt index 10e9e93ee..0bea9be37 100644 --- a/extensions/intellij/src/main/kotlin/com/github/continuedev/continueintellijextension/continue/CoreMessenger.kt +++ b/extensions/intellij/src/main/kotlin/com/github/continuedev/continueintellijextension/continue/CoreMessenger.kt @@ -140,6 +140,7 @@ class CoreMessenger(esbuildPath: String, continueCorePath: String, ideProtocolCl // Start the subprocess val processBuilder = ProcessBuilder(continueCorePath) + .directory(File(continueCorePath).parentFile) process = processBuilder.start() val outputStream = process.outputStream @@ -149,7 +150,8 @@ class CoreMessenger(esbuildPath: String, continueCorePath: String, ideProtocolCl reader = BufferedReader(InputStreamReader(inputStream)) process.onExit().thenRun { - val err = process.errorStream.bufferedReader().readText() + val err = process.errorStream.bufferedReader().readText().trim() + println("Core process exited with output: $err") ideProtocolClient.showMessage("Core process exited with output: $err") } diff --git a/extensions/vscode/src/autocomplete/completionProvider.ts b/extensions/vscode/src/autocomplete/completionProvider.ts index f6198b654..c8a035114 100644 --- a/extensions/vscode/src/autocomplete/completionProvider.ts +++ b/extensions/vscode/src/autocomplete/completionProvider.ts @@ -6,6 +6,7 @@ import { import { ConfigHandler } from "core/config/handler"; import { logDevData } from "core/util/devdata"; import { Telemetry } from "core/util/posthog"; +import { v4 as uuidv4 } from "uuid"; import * as vscode from "vscode"; import { TabAutocompleteModel } from "../util/loadAutocompleteModel"; import { getDefinitionsFromLsp } from "./lsp"; @@ -62,6 +63,7 @@ export class ContinueCompletionProvider const signal = abortController.signal; token.onCancellationRequested(() => abortController.abort()); const input: AutocompleteInput = { + completionId: uuidv4(), filepath: document.uri.fsPath, pos: { line: position.line, character: position.character }, recentlyEditedFiles: [], diff --git a/pkg/src/core.ts b/pkg/src/core.ts index bc217a436..eba31a3be 100644 --- a/pkg/src/core.ts +++ b/pkg/src/core.ts @@ -1,4 +1,5 @@ import { ContextItemId, IDE } from "core"; +import { CompletionProvider } from "core/autocomplete/completionProvider"; import { ConfigHandler } from "core/config/handler"; import { addModel, addOpenAIKey, deleteModel } from "core/config/util"; import { indexDocs } from "core/indexing/docs"; @@ -16,6 +17,7 @@ export class Core { private readonly ide: IDE; private readonly configHandler: ConfigHandler; private readonly codebaseIndexer: CodebaseIndexer; + private readonly completionProvider: CompletionProvider; private abortedMessageIds: Set = new Set(); @@ -46,6 +48,18 @@ export class Core { new PauseToken(false), ); + const getLlm = async () => { + const config = await this.configHandler.loadConfig(); + return config.tabAutocompleteModel; + }; + this.completionProvider = new CompletionProvider( + this.configHandler, + ide, + getLlm, + (e) => {}, + (..._) => Promise.resolve([]), + ); + const on = this.messenger.on.bind(this.messenger); // New @@ -255,6 +269,20 @@ export class Core { on("command/run", (msg) => runNodeJsSlashCommand(this.configHandler, this.abortedMessageIds, msg), ); + + // Autocomplete + on("autocomplete/complete", async (msg) => { + const outcome = + await this.completionProvider.provideInlineCompletionItems( + msg.data, + undefined, + ); + return outcome ? [outcome.completion] : []; + }); + on("autocomplete/accept", async (msg) => {}); + on("autocomplete/cancel", async (msg) => { + this.completionProvider.cancel(); + }); } public invoke( From ca31ff43f9ccafcd62eb7693618913a9a95d5fc5 Mon Sep 17 00:00:00 2001 From: Nate Sesti Date: Thu, 14 Mar 2024 11:53:26 -0700 Subject: [PATCH 024/105] =?UTF-8?q?=F0=9F=90=9B=20successfully=20get=20res?= =?UTF-8?q?ponses=20for=20jetbrains=20autocomplete?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- core/package-lock.json | 2351 ++++++++--------- core/util/treeSitter.ts | 3 + core/yarn.lock | 372 ++- .../autocomplete/AutocompleteService.kt | 23 +- .../continue/CoreMessenger.kt | 7 +- .../continue/IdeProtocolClient.kt | 9 + pkg/package-lock.json | 448 ++-- 7 files changed, 1657 insertions(+), 1556 deletions(-) diff --git a/core/package-lock.json b/core/package-lock.json index d00ff5127..4570869b7 100644 --- a/core/package-lock.json +++ b/core/package-lock.json @@ -60,7 +60,9 @@ }, "node_modules/@75lb/deep-merge": { "version": "1.1.1", - "license": "MIT", + "resolved": "https://registry.npmjs.org/@75lb/deep-merge/-/deep-merge-1.1.1.tgz", + "integrity": "sha512-xvgv6pkMGBA6GwdyJbNAnDmfAIR/DfWhrj9jgWh3TY7gRm3KO46x/GPjRg6wJ0nOepwqrNxFfojebh0Df4h4Tw==", + "peer": true, "dependencies": { "lodash.assignwith": "^4.2.0", "typical": "^7.1.1" @@ -71,26 +73,30 @@ }, "node_modules/@75lb/deep-merge/node_modules/typical": { "version": "7.1.1", - "license": "MIT", + "resolved": "https://registry.npmjs.org/typical/-/typical-7.1.1.tgz", + "integrity": "sha512-T+tKVNs6Wu7IWiAce5BgMd7OZfNYUndHwc5MknN+UHOudi7sGZzuHdCadllRuqJ3fPtgFtIH9+lt9qRv6lmpfA==", + "peer": true, "engines": { "node": ">=12.17" } }, "node_modules/@aashutoshrathi/word-wrap": { "version": "1.2.6", - "license": "MIT", + "resolved": "https://registry.npmjs.org/@aashutoshrathi/word-wrap/-/word-wrap-1.2.6.tgz", + "integrity": "sha512-1Yjs2SvM8TflER/OD3cOjhWWOZb58A2t7wpE2S9XfBYTiIl+XFhQG2bjy4Pu1I+EAlCNUzRDYDdFwFYUKvXcIA==", "peer": true, "engines": { "node": ">=0.10.0" } }, "node_modules/@ampproject/remapping": { - "version": "2.2.1", + "version": "2.3.0", + "resolved": "https://registry.npmjs.org/@ampproject/remapping/-/remapping-2.3.0.tgz", + "integrity": "sha512-30iZtAPgz+LTIYoeivqYo853f02jBYSd5uGnGpkFV0M3xOt9aN73erkgYAmZU43x4VfqcnLxW9Kpg3R5LC4YYw==", "dev": true, - "license": "Apache-2.0", "dependencies": { - "@jridgewell/gen-mapping": "^0.3.0", - "@jridgewell/trace-mapping": "^0.3.9" + "@jridgewell/gen-mapping": "^0.3.5", + "@jridgewell/trace-mapping": "^0.3.24" }, "engines": { "node": ">=6.0.0" @@ -98,7 +104,9 @@ }, "node_modules/@apache-arrow/ts": { "version": "14.0.2", - "license": "Apache-2.0", + "resolved": "https://registry.npmjs.org/@apache-arrow/ts/-/ts-14.0.2.tgz", + "integrity": "sha512-CtwAvLkK0CZv7xsYeCo91ml6PvlfzAmAJZkRYuz2GNBwfYufj5SVi0iuSMwIMkcU/szVwvLdzORSLa5PlF/2ug==", + "peer": true, "dependencies": { "@types/command-line-args": "5.2.0", "@types/command-line-usage": "5.0.2", @@ -112,20 +120,11 @@ "tslib": "^2.5.3" } }, - "node_modules/@apache-arrow/ts/node_modules/@types/node": { - "version": "20.3.0", - "license": "MIT" - }, - "node_modules/@apache-arrow/ts/node_modules/flatbuffers": { - "version": "23.5.26", - "license": "SEE LICENSE IN LICENSE" - }, "node_modules/@babel/code-frame": { "version": "7.23.5", "resolved": "https://registry.npmjs.org/@babel/code-frame/-/code-frame-7.23.5.tgz", "integrity": "sha512-CgH3s1a96LipHCmSUmYFPwY7MNx8C3avkq7i4Wl3cfa662ldtUe4VM1TPXX70pfmrlWTb6jLqTYrZyT2ZTJBgA==", "dev": true, - "license": "MIT", "dependencies": { "@babel/highlight": "^7.23.4", "chalk": "^2.4.2" @@ -139,7 +138,6 @@ "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-3.2.1.tgz", "integrity": "sha512-VT0ZI6kZRdTh8YyJw3SMbYm/u+NqfsAxEpWO0Pf9sq8/e94WxxOpPKx9FR1FlyCtOVDNOQ+8ntlqFxiRc+r5qA==", "dev": true, - "license": "MIT", "dependencies": { "color-convert": "^1.9.0" }, @@ -152,7 +150,6 @@ "resolved": "https://registry.npmjs.org/chalk/-/chalk-2.4.2.tgz", "integrity": "sha512-Mti+f9lpJNcwF4tWV8/OrTTtF1gZi+f8FqlyAdouralcFWFQWF2+NgCHShjkCb+IFBLq9buZwE1xckQU4peSuQ==", "dev": true, - "license": "MIT", "dependencies": { "ansi-styles": "^3.2.1", "escape-string-regexp": "^1.0.5", @@ -167,7 +164,6 @@ "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-1.9.3.tgz", "integrity": "sha512-QfAUtd+vFdAtFQcC8CCyYt1fYWxSqAiK2cSD6zDB8N3cpsEBAvRxp9zOGg6G/SHHJYAT88/az/IuDGALsNVbGg==", "dev": true, - "license": "MIT", "dependencies": { "color-name": "1.1.3" } @@ -176,15 +172,13 @@ "version": "1.1.3", "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.3.tgz", "integrity": "sha512-72fSenhMw2HZMTVHeCA9KCmpEIbzWiQsjN+BHcBbS9vr1mtt+vJjPdksIBNUmKAW8TFUDPJK5SUU3QhE9NEXDw==", - "dev": true, - "license": "MIT" + "dev": true }, "node_modules/@babel/code-frame/node_modules/escape-string-regexp": { "version": "1.0.5", "resolved": "https://registry.npmjs.org/escape-string-regexp/-/escape-string-regexp-1.0.5.tgz", "integrity": "sha512-vbRorB5FUQWvla16U8R/qgaFIya2qGzwDrNmCZuYKrbdSUMG6I1ZCGQRefkRVhuOkIGVne7BQ35DSfo1qvJqFg==", "dev": true, - "license": "MIT", "engines": { "node": ">=0.8.0" } @@ -194,7 +188,6 @@ "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-3.0.0.tgz", "integrity": "sha512-sKJf1+ceQBr4SMkvQnBDNDtf4TXpVhVGateu0t918bl30FnbE2m4vNLX+VWe/dpjlb+HugGYzW7uQXH98HPEYw==", "dev": true, - "license": "MIT", "engines": { "node": ">=4" } @@ -204,7 +197,6 @@ "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-5.5.0.tgz", "integrity": "sha512-QjVjwdXIt408MIiAqCX4oUKsgU2EqAGzs2Ppkm4aQYbjm+ZEWEcW4SfFNTr4uMNZma0ey4f5lgLrkB0aX0QMow==", "dev": true, - "license": "MIT", "dependencies": { "has-flag": "^3.0.0" }, @@ -217,7 +209,6 @@ "resolved": "https://registry.npmjs.org/@babel/compat-data/-/compat-data-7.23.5.tgz", "integrity": "sha512-uU27kfDRlhfKl+w1U6vp16IuvSLtjAxdArVXPa9BvLkrr7CYIsxH5adpHObeAGY/41+syctUWOZ140a2Rvkgjw==", "dev": true, - "license": "MIT", "engines": { "node": ">=6.9.0" } @@ -227,7 +218,6 @@ "resolved": "https://registry.npmjs.org/@babel/core/-/core-7.24.0.tgz", "integrity": "sha512-fQfkg0Gjkza3nf0c7/w6Xf34BW4YvzNfACRLmmb7XRLa6XHdR+K9AlJlxneFfWYf6uhOzuzZVTjF/8KfndZANw==", "dev": true, - "license": "MIT", "dependencies": { "@ampproject/remapping": "^2.2.0", "@babel/code-frame": "^7.23.5", @@ -258,7 +248,6 @@ "resolved": "https://registry.npmjs.org/@babel/generator/-/generator-7.23.6.tgz", "integrity": "sha512-qrSfCYxYQB5owCmGLbl8XRpX1ytXlpueOb0N0UmQwA073KZxejgQTzAmJezxvpwQD9uGtK2shHdi55QT+MbjIw==", "dev": true, - "license": "MIT", "dependencies": { "@babel/types": "^7.23.6", "@jridgewell/gen-mapping": "^0.3.2", @@ -274,7 +263,6 @@ "resolved": "https://registry.npmjs.org/@babel/helper-compilation-targets/-/helper-compilation-targets-7.23.6.tgz", "integrity": "sha512-9JB548GZoQVmzrFgp8o7KxdgkTGm6xs9DW0o/Pim72UDjzr5ObUQ6ZzYPqA+g9OTS2bBQoctLJrky0RDCAWRgQ==", "dev": true, - "license": "MIT", "dependencies": { "@babel/compat-data": "^7.23.5", "@babel/helper-validator-option": "^7.23.5", @@ -291,7 +279,6 @@ "resolved": "https://registry.npmjs.org/@babel/helper-environment-visitor/-/helper-environment-visitor-7.22.20.tgz", "integrity": "sha512-zfedSIzFhat/gFhWfHtgWvlec0nqB9YEIVrpuwjruLlXfUSnA8cJB0miHKwqDnQ7d32aKo2xt88/xZptwxbfhA==", "dev": true, - "license": "MIT", "engines": { "node": ">=6.9.0" } @@ -301,7 +288,6 @@ "resolved": "https://registry.npmjs.org/@babel/helper-function-name/-/helper-function-name-7.23.0.tgz", "integrity": "sha512-OErEqsrxjZTJciZ4Oo+eoZqeW9UIiOcuYKRJA4ZAgV9myA+pOXhhmpfNCKjEH/auVfEYVFJ6y1Tc4r0eIApqiw==", "dev": true, - "license": "MIT", "dependencies": { "@babel/template": "^7.22.15", "@babel/types": "^7.23.0" @@ -315,7 +301,6 @@ "resolved": "https://registry.npmjs.org/@babel/helper-hoist-variables/-/helper-hoist-variables-7.22.5.tgz", "integrity": "sha512-wGjk9QZVzvknA6yKIUURb8zY3grXCcOZt+/7Wcy8O2uctxhplmUPkOdlgoNhmdVee2c92JXbf1xpMtVNbfoxRw==", "dev": true, - "license": "MIT", "dependencies": { "@babel/types": "^7.22.5" }, @@ -328,7 +313,6 @@ "resolved": "https://registry.npmjs.org/@babel/helper-module-imports/-/helper-module-imports-7.22.15.tgz", "integrity": "sha512-0pYVBnDKZO2fnSPCrgM/6WMc7eS20Fbok+0r88fp+YtWVLZrp4CkafFGIp+W0VKw4a22sgebPT99y+FDNMdP4w==", "dev": true, - "license": "MIT", "dependencies": { "@babel/types": "^7.22.15" }, @@ -341,7 +325,6 @@ "resolved": "https://registry.npmjs.org/@babel/helper-module-transforms/-/helper-module-transforms-7.23.3.tgz", "integrity": "sha512-7bBs4ED9OmswdfDzpz4MpWgSrV7FXlc3zIagvLFjS5H+Mk7Snr21vQ6QwrsoCGMfNC4e4LQPdoULEt4ykz0SRQ==", "dev": true, - "license": "MIT", "dependencies": { "@babel/helper-environment-visitor": "^7.22.20", "@babel/helper-module-imports": "^7.22.15", @@ -361,7 +344,6 @@ "resolved": "https://registry.npmjs.org/@babel/helper-plugin-utils/-/helper-plugin-utils-7.24.0.tgz", "integrity": "sha512-9cUznXMG0+FxRuJfvL82QlTqIzhVW9sL0KjMPHhAOOvpQGL8QtdxnBKILjBqxlHyliz0yCa1G903ZXI/FuHy2w==", "dev": true, - "license": "MIT", "engines": { "node": ">=6.9.0" } @@ -371,7 +353,6 @@ "resolved": "https://registry.npmjs.org/@babel/helper-simple-access/-/helper-simple-access-7.22.5.tgz", "integrity": "sha512-n0H99E/K+Bika3++WNL17POvo4rKWZ7lZEp1Q+fStVbUi8nxPQEBOlTmCOxW/0JsS56SKKQ+ojAe2pHKJHN35w==", "dev": true, - "license": "MIT", "dependencies": { "@babel/types": "^7.22.5" }, @@ -384,7 +365,6 @@ "resolved": "https://registry.npmjs.org/@babel/helper-split-export-declaration/-/helper-split-export-declaration-7.22.6.tgz", "integrity": "sha512-AsUnxuLhRYsisFiaJwvp1QF+I3KjD5FOxut14q/GzovUe6orHLesW2C7d754kRm53h5gqrz6sFl6sxc4BVtE/g==", "dev": true, - "license": "MIT", "dependencies": { "@babel/types": "^7.22.5" }, @@ -397,7 +377,6 @@ "resolved": "https://registry.npmjs.org/@babel/helper-string-parser/-/helper-string-parser-7.23.4.tgz", "integrity": "sha512-803gmbQdqwdf4olxrX4AJyFBV/RTr3rSmOj0rKwesmzlfhYNDEs+/iOcznzpNWlJlIlTJC2QfPFcHB6DlzdVLQ==", "dev": true, - "license": "MIT", "engines": { "node": ">=6.9.0" } @@ -407,7 +386,6 @@ "resolved": "https://registry.npmjs.org/@babel/helper-validator-identifier/-/helper-validator-identifier-7.22.20.tgz", "integrity": "sha512-Y4OZ+ytlatR8AI+8KZfKuL5urKp7qey08ha31L8b3BwewJAoJamTzyvxPR/5D+KkdJCGPq/+8TukHBlY10FX9A==", "dev": true, - "license": "MIT", "engines": { "node": ">=6.9.0" } @@ -417,7 +395,6 @@ "resolved": "https://registry.npmjs.org/@babel/helper-validator-option/-/helper-validator-option-7.23.5.tgz", "integrity": "sha512-85ttAOMLsr53VgXkTbkx8oA6YTfT4q7/HzXSLEYmjcSTJPMPQtvq1BD79Byep5xMUYbGRzEpDsjUf3dyp54IKw==", "dev": true, - "license": "MIT", "engines": { "node": ">=6.9.0" } @@ -427,7 +404,6 @@ "resolved": "https://registry.npmjs.org/@babel/helpers/-/helpers-7.24.0.tgz", "integrity": "sha512-ulDZdc0Aj5uLc5nETsa7EPx2L7rM0YJM8r7ck7U73AXi7qOV44IHHRAYZHY6iU1rr3C5N4NtTmMRUJP6kwCWeA==", "dev": true, - "license": "MIT", "dependencies": { "@babel/template": "^7.24.0", "@babel/traverse": "^7.24.0", @@ -442,7 +418,6 @@ "resolved": "https://registry.npmjs.org/@babel/highlight/-/highlight-7.23.4.tgz", "integrity": "sha512-acGdbYSfp2WheJoJm/EBBBLh/ID8KDc64ISZ9DYtBmC8/Q204PZJLHyzeB5qMzJ5trcOkybd78M4x2KWsUq++A==", "dev": true, - "license": "MIT", "dependencies": { "@babel/helper-validator-identifier": "^7.22.20", "chalk": "^2.4.2", @@ -457,7 +432,6 @@ "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-3.2.1.tgz", "integrity": "sha512-VT0ZI6kZRdTh8YyJw3SMbYm/u+NqfsAxEpWO0Pf9sq8/e94WxxOpPKx9FR1FlyCtOVDNOQ+8ntlqFxiRc+r5qA==", "dev": true, - "license": "MIT", "dependencies": { "color-convert": "^1.9.0" }, @@ -470,7 +444,6 @@ "resolved": "https://registry.npmjs.org/chalk/-/chalk-2.4.2.tgz", "integrity": "sha512-Mti+f9lpJNcwF4tWV8/OrTTtF1gZi+f8FqlyAdouralcFWFQWF2+NgCHShjkCb+IFBLq9buZwE1xckQU4peSuQ==", "dev": true, - "license": "MIT", "dependencies": { "ansi-styles": "^3.2.1", "escape-string-regexp": "^1.0.5", @@ -485,7 +458,6 @@ "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-1.9.3.tgz", "integrity": "sha512-QfAUtd+vFdAtFQcC8CCyYt1fYWxSqAiK2cSD6zDB8N3cpsEBAvRxp9zOGg6G/SHHJYAT88/az/IuDGALsNVbGg==", "dev": true, - "license": "MIT", "dependencies": { "color-name": "1.1.3" } @@ -494,15 +466,13 @@ "version": "1.1.3", "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.3.tgz", "integrity": "sha512-72fSenhMw2HZMTVHeCA9KCmpEIbzWiQsjN+BHcBbS9vr1mtt+vJjPdksIBNUmKAW8TFUDPJK5SUU3QhE9NEXDw==", - "dev": true, - "license": "MIT" + "dev": true }, "node_modules/@babel/highlight/node_modules/escape-string-regexp": { "version": "1.0.5", "resolved": "https://registry.npmjs.org/escape-string-regexp/-/escape-string-regexp-1.0.5.tgz", "integrity": "sha512-vbRorB5FUQWvla16U8R/qgaFIya2qGzwDrNmCZuYKrbdSUMG6I1ZCGQRefkRVhuOkIGVne7BQ35DSfo1qvJqFg==", "dev": true, - "license": "MIT", "engines": { "node": ">=0.8.0" } @@ -512,7 +482,6 @@ "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-3.0.0.tgz", "integrity": "sha512-sKJf1+ceQBr4SMkvQnBDNDtf4TXpVhVGateu0t918bl30FnbE2m4vNLX+VWe/dpjlb+HugGYzW7uQXH98HPEYw==", "dev": true, - "license": "MIT", "engines": { "node": ">=4" } @@ -522,7 +491,6 @@ "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-5.5.0.tgz", "integrity": "sha512-QjVjwdXIt408MIiAqCX4oUKsgU2EqAGzs2Ppkm4aQYbjm+ZEWEcW4SfFNTr4uMNZma0ey4f5lgLrkB0aX0QMow==", "dev": true, - "license": "MIT", "dependencies": { "has-flag": "^3.0.0" }, @@ -535,7 +503,6 @@ "resolved": "https://registry.npmjs.org/@babel/parser/-/parser-7.24.0.tgz", "integrity": "sha512-QuP/FxEAzMSjXygs8v4N9dvdXzEHN4W1oF3PxuWAtPo08UdM17u89RDMgjLn/mlc56iM0HlLmVkO/wgR+rDgHg==", "dev": true, - "license": "MIT", "bin": { "parser": "bin/babel-parser.js" }, @@ -548,7 +515,6 @@ "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-async-generators/-/plugin-syntax-async-generators-7.8.4.tgz", "integrity": "sha512-tycmZxkGfZaxhMRbXlPXuVFpdWlXpir2W4AMhSJgRKzk/eDlIXOhb2LHWoLpDF7TEHylV5zNhykX6KAgHJmTNw==", "dev": true, - "license": "MIT", "dependencies": { "@babel/helper-plugin-utils": "^7.8.0" }, @@ -561,7 +527,6 @@ "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-bigint/-/plugin-syntax-bigint-7.8.3.tgz", "integrity": "sha512-wnTnFlG+YxQm3vDxpGE57Pj0srRU4sHE/mDkt1qv2YJJSeUAec2ma4WLUnUPeKjyrfntVwe/N6dCXpU+zL3Npg==", "dev": true, - "license": "MIT", "dependencies": { "@babel/helper-plugin-utils": "^7.8.0" }, @@ -574,7 +539,6 @@ "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-class-properties/-/plugin-syntax-class-properties-7.12.13.tgz", "integrity": "sha512-fm4idjKla0YahUNgFNLCB0qySdsoPiZP3iQE3rky0mBUtMZ23yDJ9SJdg6dXTSDnulOVqiF3Hgr9nbXvXTQZYA==", "dev": true, - "license": "MIT", "dependencies": { "@babel/helper-plugin-utils": "^7.12.13" }, @@ -587,7 +551,6 @@ "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-import-meta/-/plugin-syntax-import-meta-7.10.4.tgz", "integrity": "sha512-Yqfm+XDx0+Prh3VSeEQCPU81yC+JWZ2pDPFSS4ZdpfZhp4MkFMaDC1UqseovEKwSUpnIL7+vK+Clp7bfh0iD7g==", "dev": true, - "license": "MIT", "dependencies": { "@babel/helper-plugin-utils": "^7.10.4" }, @@ -600,7 +563,6 @@ "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-json-strings/-/plugin-syntax-json-strings-7.8.3.tgz", "integrity": "sha512-lY6kdGpWHvjoe2vk4WrAapEuBR69EMxZl+RoGRhrFGNYVK8mOPAW8VfbT/ZgrFbXlDNiiaxQnAtgVCZ6jv30EA==", "dev": true, - "license": "MIT", "dependencies": { "@babel/helper-plugin-utils": "^7.8.0" }, @@ -613,7 +575,6 @@ "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-jsx/-/plugin-syntax-jsx-7.23.3.tgz", "integrity": "sha512-EB2MELswq55OHUoRZLGg/zC7QWUKfNLpE57m/S2yr1uEneIgsTgrSzXP3NXEsMkVn76OlaVVnzN+ugObuYGwhg==", "dev": true, - "license": "MIT", "dependencies": { "@babel/helper-plugin-utils": "^7.22.5" }, @@ -629,7 +590,6 @@ "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-logical-assignment-operators/-/plugin-syntax-logical-assignment-operators-7.10.4.tgz", "integrity": "sha512-d8waShlpFDinQ5MtvGU9xDAOzKH47+FFoney2baFIoMr952hKOLp1HR7VszoZvOsV/4+RRszNY7D17ba0te0ig==", "dev": true, - "license": "MIT", "dependencies": { "@babel/helper-plugin-utils": "^7.10.4" }, @@ -642,7 +602,6 @@ "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-nullish-coalescing-operator/-/plugin-syntax-nullish-coalescing-operator-7.8.3.tgz", "integrity": "sha512-aSff4zPII1u2QD7y+F8oDsz19ew4IGEJg9SVW+bqwpwtfFleiQDMdzA/R+UlWDzfnHFCxxleFT0PMIrR36XLNQ==", "dev": true, - "license": "MIT", "dependencies": { "@babel/helper-plugin-utils": "^7.8.0" }, @@ -655,7 +614,6 @@ "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-numeric-separator/-/plugin-syntax-numeric-separator-7.10.4.tgz", "integrity": "sha512-9H6YdfkcK/uOnY/K7/aA2xpzaAgkQn37yzWUMRK7OaPOqOpGS1+n0H5hxT9AUw9EsSjPW8SVyMJwYRtWs3X3ug==", "dev": true, - "license": "MIT", "dependencies": { "@babel/helper-plugin-utils": "^7.10.4" }, @@ -668,7 +626,6 @@ "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-object-rest-spread/-/plugin-syntax-object-rest-spread-7.8.3.tgz", "integrity": "sha512-XoqMijGZb9y3y2XskN+P1wUGiVwWZ5JmoDRwx5+3GmEplNyVM2s2Dg8ILFQm8rWM48orGy5YpI5Bl8U1y7ydlA==", "dev": true, - "license": "MIT", "dependencies": { "@babel/helper-plugin-utils": "^7.8.0" }, @@ -681,7 +638,6 @@ "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-optional-catch-binding/-/plugin-syntax-optional-catch-binding-7.8.3.tgz", "integrity": "sha512-6VPD0Pc1lpTqw0aKoeRTMiB+kWhAoT24PA+ksWSBrFtl5SIRVpZlwN3NNPQjehA2E/91FV3RjLWoVTglWcSV3Q==", "dev": true, - "license": "MIT", "dependencies": { "@babel/helper-plugin-utils": "^7.8.0" }, @@ -694,7 +650,6 @@ "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-optional-chaining/-/plugin-syntax-optional-chaining-7.8.3.tgz", "integrity": "sha512-KoK9ErH1MBlCPxV0VANkXW2/dw4vlbGDrFgz8bmUsBGYkFRcbRwMh6cIJubdPrkxRwuGdtCk0v/wPTKbQgBjkg==", "dev": true, - "license": "MIT", "dependencies": { "@babel/helper-plugin-utils": "^7.8.0" }, @@ -707,7 +662,6 @@ "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-top-level-await/-/plugin-syntax-top-level-await-7.14.5.tgz", "integrity": "sha512-hx++upLv5U1rgYfwe1xBQUhRmU41NEvpUvrp8jkrSCdvGSnM5/qdRMtylJ6PG5OFkBaHkbTAKTnd3/YyESRHFw==", "dev": true, - "license": "MIT", "dependencies": { "@babel/helper-plugin-utils": "^7.14.5" }, @@ -723,7 +677,6 @@ "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-typescript/-/plugin-syntax-typescript-7.23.3.tgz", "integrity": "sha512-9EiNjVJOMwCO+43TqoTrgQ8jMwcAd0sWyXi9RPfIsLTj4R2MADDDQXELhffaUx/uJv2AYcxBgPwH6j4TIA4ytQ==", "dev": true, - "license": "MIT", "dependencies": { "@babel/helper-plugin-utils": "^7.22.5" }, @@ -739,7 +692,6 @@ "resolved": "https://registry.npmjs.org/@babel/template/-/template-7.24.0.tgz", "integrity": "sha512-Bkf2q8lMB0AFpX0NFEqSbx1OkTHf0f+0j82mkw+ZpzBnkk7e9Ql0891vlfgi+kHwOk8tQjiQHpqh4LaSa0fKEA==", "dev": true, - "license": "MIT", "dependencies": { "@babel/code-frame": "^7.23.5", "@babel/parser": "^7.24.0", @@ -754,7 +706,6 @@ "resolved": "https://registry.npmjs.org/@babel/traverse/-/traverse-7.24.0.tgz", "integrity": "sha512-HfuJlI8qq3dEDmNU5ChzzpZRWq+oxCZQyMzIMEqLho+AQnhMnKQUzH6ydo3RBl/YjPCuk68Y6s0Gx0AeyULiWw==", "dev": true, - "license": "MIT", "dependencies": { "@babel/code-frame": "^7.23.5", "@babel/generator": "^7.23.6", @@ -776,7 +727,6 @@ "resolved": "https://registry.npmjs.org/globals/-/globals-11.12.0.tgz", "integrity": "sha512-WOBp/EEGUiIsJSp7wcv/y6MO+lV9UoncWqxuFfm8eBwzWNgyfBd6Gz+IeKQ9jCmyhoH99g15M3T+QaVHFjizVA==", "dev": true, - "license": "MIT", "engines": { "node": ">=4" } @@ -786,7 +736,6 @@ "resolved": "https://registry.npmjs.org/@babel/types/-/types-7.24.0.tgz", "integrity": "sha512-+j7a5c253RfKh8iABBhywc8NSfP5LURe7Uh4qpsh6jc+aLJguvmIUBdjSdEMQv2bENrCR5MfRdjGo7vzS/ob7w==", "dev": true, - "license": "MIT", "dependencies": { "@babel/helper-string-parser": "^7.23.4", "@babel/helper-validator-identifier": "^7.22.20", @@ -800,8 +749,71 @@ "version": "0.2.3", "resolved": "https://registry.npmjs.org/@bcoe/v8-coverage/-/v8-coverage-0.2.3.tgz", "integrity": "sha512-0hYQ8SB4Db5zvZB4axdMHGwEaQjkZzFjQiN9LVYvIFB2nSUHW9tYpxWriPrWDASIxiaXax83REcLxuSdnGPZtw==", + "dev": true + }, + "node_modules/@esbuild/aix-ppc64": { + "version": "0.19.12", + "resolved": "https://registry.npmjs.org/@esbuild/aix-ppc64/-/aix-ppc64-0.19.12.tgz", + "integrity": "sha512-bmoCYyWdEL3wDQIVbcyzRyeKLgk2WtWLTWz1ZIAZF/EGbNOwSA6ew3PftJ1PqMiOOGu0OyFMzG53L0zqIpPeNA==", + "cpu": [ + "ppc64" + ], "dev": true, - "license": "MIT" + "optional": true, + "os": [ + "aix" + ], + "engines": { + "node": ">=12" + } + }, + "node_modules/@esbuild/android-arm": { + "version": "0.19.12", + "resolved": "https://registry.npmjs.org/@esbuild/android-arm/-/android-arm-0.19.12.tgz", + "integrity": "sha512-qg/Lj1mu3CdQlDEEiWrlC4eaPZ1KztwGJ9B6J+/6G+/4ewxJg7gqj8eVYWvao1bXrqGiW2rsBZFSX3q2lcW05w==", + "cpu": [ + "arm" + ], + "dev": true, + "optional": true, + "os": [ + "android" + ], + "engines": { + "node": ">=12" + } + }, + "node_modules/@esbuild/android-arm64": { + "version": "0.19.12", + "resolved": "https://registry.npmjs.org/@esbuild/android-arm64/-/android-arm64-0.19.12.tgz", + "integrity": "sha512-P0UVNGIienjZv3f5zq0DP3Nt2IE/3plFzuaS96vihvD0Hd6H/q4WXUGpCxD/E8YrSXfNyRPbpTq+T8ZQioSuPA==", + "cpu": [ + "arm64" + ], + "dev": true, + "optional": true, + "os": [ + "android" + ], + "engines": { + "node": ">=12" + } + }, + "node_modules/@esbuild/android-x64": { + "version": "0.19.12", + "resolved": "https://registry.npmjs.org/@esbuild/android-x64/-/android-x64-0.19.12.tgz", + "integrity": "sha512-3k7ZoUW6Q6YqhdhIaq/WZ7HwBpnFBlW905Fa4s4qWJyiNOgT1dOqDiVAQFwBH7gBRZr17gLrlFCRzF6jFh7Kew==", + "cpu": [ + "x64" + ], + "dev": true, + "optional": true, + "os": [ + "android" + ], + "engines": { + "node": ">=12" + } }, "node_modules/@esbuild/darwin-arm64": { "version": "0.19.12", @@ -811,7 +823,6 @@ "arm64" ], "dev": true, - "license": "MIT", "optional": true, "os": [ "darwin" @@ -820,9 +831,298 @@ "node": ">=12" } }, + "node_modules/@esbuild/darwin-x64": { + "version": "0.19.12", + "resolved": "https://registry.npmjs.org/@esbuild/darwin-x64/-/darwin-x64-0.19.12.tgz", + "integrity": "sha512-hKoVkKzFiToTgn+41qGhsUJXFlIjxI/jSYeZf3ugemDYZldIXIxhvwN6erJGlX4t5h417iFuheZ7l+YVn05N3A==", + "cpu": [ + "x64" + ], + "dev": true, + "optional": true, + "os": [ + "darwin" + ], + "engines": { + "node": ">=12" + } + }, + "node_modules/@esbuild/freebsd-arm64": { + "version": "0.19.12", + "resolved": "https://registry.npmjs.org/@esbuild/freebsd-arm64/-/freebsd-arm64-0.19.12.tgz", + "integrity": "sha512-4aRvFIXmwAcDBw9AueDQ2YnGmz5L6obe5kmPT8Vd+/+x/JMVKCgdcRwH6APrbpNXsPz+K653Qg8HB/oXvXVukA==", + "cpu": [ + "arm64" + ], + "dev": true, + "optional": true, + "os": [ + "freebsd" + ], + "engines": { + "node": ">=12" + } + }, + "node_modules/@esbuild/freebsd-x64": { + "version": "0.19.12", + "resolved": "https://registry.npmjs.org/@esbuild/freebsd-x64/-/freebsd-x64-0.19.12.tgz", + "integrity": "sha512-EYoXZ4d8xtBoVN7CEwWY2IN4ho76xjYXqSXMNccFSx2lgqOG/1TBPW0yPx1bJZk94qu3tX0fycJeeQsKovA8gg==", + "cpu": [ + "x64" + ], + "dev": true, + "optional": true, + "os": [ + "freebsd" + ], + "engines": { + "node": ">=12" + } + }, + "node_modules/@esbuild/linux-arm": { + "version": "0.19.12", + "resolved": "https://registry.npmjs.org/@esbuild/linux-arm/-/linux-arm-0.19.12.tgz", + "integrity": "sha512-J5jPms//KhSNv+LO1S1TX1UWp1ucM6N6XuL6ITdKWElCu8wXP72l9MM0zDTzzeikVyqFE6U8YAV9/tFyj0ti+w==", + "cpu": [ + "arm" + ], + "dev": true, + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": ">=12" + } + }, + "node_modules/@esbuild/linux-arm64": { + "version": "0.19.12", + "resolved": "https://registry.npmjs.org/@esbuild/linux-arm64/-/linux-arm64-0.19.12.tgz", + "integrity": "sha512-EoTjyYyLuVPfdPLsGVVVC8a0p1BFFvtpQDB/YLEhaXyf/5bczaGeN15QkR+O4S5LeJ92Tqotve7i1jn35qwvdA==", + "cpu": [ + "arm64" + ], + "dev": true, + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": ">=12" + } + }, + "node_modules/@esbuild/linux-ia32": { + "version": "0.19.12", + "resolved": "https://registry.npmjs.org/@esbuild/linux-ia32/-/linux-ia32-0.19.12.tgz", + "integrity": "sha512-Thsa42rrP1+UIGaWz47uydHSBOgTUnwBwNq59khgIwktK6x60Hivfbux9iNR0eHCHzOLjLMLfUMLCypBkZXMHA==", + "cpu": [ + "ia32" + ], + "dev": true, + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": ">=12" + } + }, + "node_modules/@esbuild/linux-loong64": { + "version": "0.19.12", + "resolved": "https://registry.npmjs.org/@esbuild/linux-loong64/-/linux-loong64-0.19.12.tgz", + "integrity": "sha512-LiXdXA0s3IqRRjm6rV6XaWATScKAXjI4R4LoDlvO7+yQqFdlr1Bax62sRwkVvRIrwXxvtYEHHI4dm50jAXkuAA==", + "cpu": [ + "loong64" + ], + "dev": true, + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": ">=12" + } + }, + "node_modules/@esbuild/linux-mips64el": { + "version": "0.19.12", + "resolved": "https://registry.npmjs.org/@esbuild/linux-mips64el/-/linux-mips64el-0.19.12.tgz", + "integrity": "sha512-fEnAuj5VGTanfJ07ff0gOA6IPsvrVHLVb6Lyd1g2/ed67oU1eFzL0r9WL7ZzscD+/N6i3dWumGE1Un4f7Amf+w==", + "cpu": [ + "mips64el" + ], + "dev": true, + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": ">=12" + } + }, + "node_modules/@esbuild/linux-ppc64": { + "version": "0.19.12", + "resolved": "https://registry.npmjs.org/@esbuild/linux-ppc64/-/linux-ppc64-0.19.12.tgz", + "integrity": "sha512-nYJA2/QPimDQOh1rKWedNOe3Gfc8PabU7HT3iXWtNUbRzXS9+vgB0Fjaqr//XNbd82mCxHzik2qotuI89cfixg==", + "cpu": [ + "ppc64" + ], + "dev": true, + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": ">=12" + } + }, + "node_modules/@esbuild/linux-riscv64": { + "version": "0.19.12", + "resolved": "https://registry.npmjs.org/@esbuild/linux-riscv64/-/linux-riscv64-0.19.12.tgz", + "integrity": "sha512-2MueBrlPQCw5dVJJpQdUYgeqIzDQgw3QtiAHUC4RBz9FXPrskyyU3VI1hw7C0BSKB9OduwSJ79FTCqtGMWqJHg==", + "cpu": [ + "riscv64" + ], + "dev": true, + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": ">=12" + } + }, + "node_modules/@esbuild/linux-s390x": { + "version": "0.19.12", + "resolved": "https://registry.npmjs.org/@esbuild/linux-s390x/-/linux-s390x-0.19.12.tgz", + "integrity": "sha512-+Pil1Nv3Umes4m3AZKqA2anfhJiVmNCYkPchwFJNEJN5QxmTs1uzyy4TvmDrCRNT2ApwSari7ZIgrPeUx4UZDg==", + "cpu": [ + "s390x" + ], + "dev": true, + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": ">=12" + } + }, + "node_modules/@esbuild/linux-x64": { + "version": "0.19.12", + "resolved": "https://registry.npmjs.org/@esbuild/linux-x64/-/linux-x64-0.19.12.tgz", + "integrity": "sha512-B71g1QpxfwBvNrfyJdVDexenDIt1CiDN1TIXLbhOw0KhJzE78KIFGX6OJ9MrtC0oOqMWf+0xop4qEU8JrJTwCg==", + "cpu": [ + "x64" + ], + "dev": true, + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": ">=12" + } + }, + "node_modules/@esbuild/netbsd-x64": { + "version": "0.19.12", + "resolved": "https://registry.npmjs.org/@esbuild/netbsd-x64/-/netbsd-x64-0.19.12.tgz", + "integrity": "sha512-3ltjQ7n1owJgFbuC61Oj++XhtzmymoCihNFgT84UAmJnxJfm4sYCiSLTXZtE00VWYpPMYc+ZQmB6xbSdVh0JWA==", + "cpu": [ + "x64" + ], + "dev": true, + "optional": true, + "os": [ + "netbsd" + ], + "engines": { + "node": ">=12" + } + }, + "node_modules/@esbuild/openbsd-x64": { + "version": "0.19.12", + "resolved": "https://registry.npmjs.org/@esbuild/openbsd-x64/-/openbsd-x64-0.19.12.tgz", + "integrity": "sha512-RbrfTB9SWsr0kWmb9srfF+L933uMDdu9BIzdA7os2t0TXhCRjrQyCeOt6wVxr79CKD4c+p+YhCj31HBkYcXebw==", + "cpu": [ + "x64" + ], + "dev": true, + "optional": true, + "os": [ + "openbsd" + ], + "engines": { + "node": ">=12" + } + }, + "node_modules/@esbuild/sunos-x64": { + "version": "0.19.12", + "resolved": "https://registry.npmjs.org/@esbuild/sunos-x64/-/sunos-x64-0.19.12.tgz", + "integrity": "sha512-HKjJwRrW8uWtCQnQOz9qcU3mUZhTUQvi56Q8DPTLLB+DawoiQdjsYq+j+D3s9I8VFtDr+F9CjgXKKC4ss89IeA==", + "cpu": [ + "x64" + ], + "dev": true, + "optional": true, + "os": [ + "sunos" + ], + "engines": { + "node": ">=12" + } + }, + "node_modules/@esbuild/win32-arm64": { + "version": "0.19.12", + "resolved": "https://registry.npmjs.org/@esbuild/win32-arm64/-/win32-arm64-0.19.12.tgz", + "integrity": "sha512-URgtR1dJnmGvX864pn1B2YUYNzjmXkuJOIqG2HdU62MVS4EHpU2946OZoTMnRUHklGtJdJZ33QfzdjGACXhn1A==", + "cpu": [ + "arm64" + ], + "dev": true, + "optional": true, + "os": [ + "win32" + ], + "engines": { + "node": ">=12" + } + }, + "node_modules/@esbuild/win32-ia32": { + "version": "0.19.12", + "resolved": "https://registry.npmjs.org/@esbuild/win32-ia32/-/win32-ia32-0.19.12.tgz", + "integrity": "sha512-+ZOE6pUkMOJfmxmBZElNOx72NKpIa/HFOMGzu8fqzQJ5kgf6aTGrcJaFsNiVMH4JKpMipyK+7k0n2UXN7a8YKQ==", + "cpu": [ + "ia32" + ], + "dev": true, + "optional": true, + "os": [ + "win32" + ], + "engines": { + "node": ">=12" + } + }, + "node_modules/@esbuild/win32-x64": { + "version": "0.19.12", + "resolved": "https://registry.npmjs.org/@esbuild/win32-x64/-/win32-x64-0.19.12.tgz", + "integrity": "sha512-T1QyPSDCyMXaO3pzBkF96E8xMkiRYbUEZADd29SyPGabqxMViNoii+NcK7eWJAEoU6RZyEm5lVSIjTmcdoB9HA==", + "cpu": [ + "x64" + ], + "dev": true, + "optional": true, + "os": [ + "win32" + ], + "engines": { + "node": ">=12" + } + }, "node_modules/@eslint-community/eslint-utils": { "version": "4.4.0", - "license": "MIT", + "resolved": "https://registry.npmjs.org/@eslint-community/eslint-utils/-/eslint-utils-4.4.0.tgz", + "integrity": "sha512-1/sA4dwrzBAyeUoQ6oxahHKmrZvsnLCg4RfxW3ZFGGmQkSNQPFNLV9CUEFQP1x9EYXHTo5p6xdhZM1Ne9p/AfA==", "peer": true, "dependencies": { "eslint-visitor-keys": "^3.3.0" @@ -836,7 +1136,8 @@ }, "node_modules/@eslint-community/regexpp": { "version": "4.10.0", - "license": "MIT", + "resolved": "https://registry.npmjs.org/@eslint-community/regexpp/-/regexpp-4.10.0.tgz", + "integrity": "sha512-Cu96Sd2By9mCNTx2iyKOmq10v22jUVQv0lQnlGNy16oE9589yE+QADPbrMGCkA51cKZSg3Pu/aTJVTGfL/qjUA==", "peer": true, "engines": { "node": "^12.0.0 || ^14.0.0 || >=16.0.0" @@ -844,7 +1145,8 @@ }, "node_modules/@eslint/eslintrc": { "version": "2.1.4", - "license": "MIT", + "resolved": "https://registry.npmjs.org/@eslint/eslintrc/-/eslintrc-2.1.4.tgz", + "integrity": "sha512-269Z39MS6wVJtsoUl10L60WdkhJVdPG24Q4eZTH3nnF6lpvSShEK3wQjDX9JRWAUPvPh7COouPpU9IrqaZFvtQ==", "peer": true, "dependencies": { "ajv": "^6.12.4", @@ -864,50 +1166,10 @@ "url": "https://opencollective.com/eslint" } }, - "node_modules/@eslint/eslintrc/node_modules/argparse": { - "version": "2.0.1", - "license": "Python-2.0", - "peer": true - }, - "node_modules/@eslint/eslintrc/node_modules/globals": { - "version": "13.24.0", - "license": "MIT", - "peer": true, - "dependencies": { - "type-fest": "^0.20.2" - }, - "engines": { - "node": ">=8" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - }, - "node_modules/@eslint/eslintrc/node_modules/js-yaml": { - "version": "4.1.0", - "license": "MIT", - "peer": true, - "dependencies": { - "argparse": "^2.0.1" - }, - "bin": { - "js-yaml": "bin/js-yaml.js" - } - }, - "node_modules/@eslint/eslintrc/node_modules/type-fest": { - "version": "0.20.2", - "license": "(MIT OR CC0-1.0)", - "peer": true, - "engines": { - "node": ">=10" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - }, "node_modules/@eslint/js": { "version": "8.57.0", - "license": "MIT", + "resolved": "https://registry.npmjs.org/@eslint/js/-/js-8.57.0.tgz", + "integrity": "sha512-Ys+3g2TaW7gADOJzPt83SJtCDhMjndcDMFVQ/Tj9iA1BfJzFKD9mAUXT3OenpuPHbI6P/myECxRJrofUsDx/5g==", "peer": true, "engines": { "node": "^12.22.0 || ^14.17.0 || >=16.0.0" @@ -917,19 +1179,20 @@ "version": "1.1.3", "resolved": "https://registry.npmjs.org/@gar/promisify/-/promisify-1.1.3.tgz", "integrity": "sha512-k2Ty1JcVojjJFwrg/ThKi2ujJ7XNLYaFGNB/bWT9wGR+oSMJHMa5w+CUq6p/pVrKeNNgA7pCqEcjSnHVoqJQFw==", - "license": "MIT", "optional": true }, "node_modules/@huggingface/jinja": { - "version": "0.1.3", - "license": "MIT", + "version": "0.2.1", + "resolved": "https://registry.npmjs.org/@huggingface/jinja/-/jinja-0.2.1.tgz", + "integrity": "sha512-HxjVCll8oGfgUQmN91NYWCjfuaQ5mYZkc/BB1gjfp28q3s48yiB5jUEV7BvaRdIAb/+14cNdX8TIdalFykwywA==", "engines": { "node": ">=18" } }, "node_modules/@humanwhocodes/config-array": { "version": "0.11.14", - "license": "Apache-2.0", + "resolved": "https://registry.npmjs.org/@humanwhocodes/config-array/-/config-array-0.11.14.tgz", + "integrity": "sha512-3T8LkOmg45BV5FICb15QQMsyUSWrQ8AygVfC7ZG32zOalnqrilm018ZVCw0eapXux8FtA33q8PSRSstjee3jSg==", "peer": true, "dependencies": { "@humanwhocodes/object-schema": "^2.0.2", @@ -942,7 +1205,8 @@ }, "node_modules/@humanwhocodes/module-importer": { "version": "1.0.1", - "license": "Apache-2.0", + "resolved": "https://registry.npmjs.org/@humanwhocodes/module-importer/-/module-importer-1.0.1.tgz", + "integrity": "sha512-bxveV4V8v5Yb4ncFTT3rPSgZBOpCkjfK0y4oVVVJwIuDVBRMDXrPyXRL988i5ap9m9bnyEEjWfm5WkBmtffLfA==", "peer": true, "engines": { "node": ">=12.22" @@ -954,7 +1218,8 @@ }, "node_modules/@humanwhocodes/object-schema": { "version": "2.0.2", - "license": "BSD-3-Clause", + "resolved": "https://registry.npmjs.org/@humanwhocodes/object-schema/-/object-schema-2.0.2.tgz", + "integrity": "sha512-6EwiSjwWYP7pTckG6I5eyFANjPhmPjUX9JRLUSfNPC7FX7zK9gyZAfUEaECL6ALTpGX5AjnBq3C9XmVWPitNpw==", "peer": true }, "node_modules/@istanbuljs/load-nyc-config": { @@ -962,7 +1227,6 @@ "resolved": "https://registry.npmjs.org/@istanbuljs/load-nyc-config/-/load-nyc-config-1.1.0.tgz", "integrity": "sha512-VjeHSlIzpv/NyD3N0YuHfXOPDIixcA1q2ZV98wsMqcYlPmv2n3Yb2lYP9XMElnaFVXg5A7YLTeLu6V84uQDjmQ==", "dev": true, - "license": "ISC", "dependencies": { "camelcase": "^5.3.1", "find-up": "^4.1.0", @@ -979,7 +1243,6 @@ "resolved": "https://registry.npmjs.org/argparse/-/argparse-1.0.10.tgz", "integrity": "sha512-o5Roy6tNG4SL/FOkCAN6RzjiakZS25RLYFrcMttJqbdd8BWrnA+fGz57iN5Pb06pvBGvl5gQ0B48dJlslXvoTg==", "dev": true, - "license": "MIT", "dependencies": { "sprintf-js": "~1.0.2" } @@ -989,7 +1252,6 @@ "resolved": "https://registry.npmjs.org/find-up/-/find-up-4.1.0.tgz", "integrity": "sha512-PpOwAdQ/YlXQ2vj8a3h8IipDuYRi3wceVQQGYWxNINccq40Anw7BlsEXCMbt1Zt+OLA6Fq9suIpIWD0OsnISlw==", "dev": true, - "license": "MIT", "dependencies": { "locate-path": "^5.0.0", "path-exists": "^4.0.0" @@ -1003,7 +1265,6 @@ "resolved": "https://registry.npmjs.org/js-yaml/-/js-yaml-3.14.1.tgz", "integrity": "sha512-okMH7OXXJ7YrN9Ok3/SXrnu4iX9yOk+25nqX4imS2npuvTYDmo/QEZoqwZkYaIDk3jVvBOTOIEgEhaLOynBS9g==", "dev": true, - "license": "MIT", "dependencies": { "argparse": "^1.0.7", "esprima": "^4.0.0" @@ -1017,7 +1278,6 @@ "resolved": "https://registry.npmjs.org/locate-path/-/locate-path-5.0.0.tgz", "integrity": "sha512-t7hw9pI+WvuwNJXwk5zVHpyhIqzg2qTlklJOf0mVxGSbe3Fp2VieZcduNYjaLDoy6p9uGpQEGWG87WpMKlNq8g==", "dev": true, - "license": "MIT", "dependencies": { "p-locate": "^4.1.0" }, @@ -1030,7 +1290,6 @@ "resolved": "https://registry.npmjs.org/p-limit/-/p-limit-2.3.0.tgz", "integrity": "sha512-//88mFWSJx8lxCzwdAABTJL2MyWB12+eIY7MDL2SqLmAkeKU9qxRvWuSyTjm3FUmpBEMuFfckAIqEaVGUDxb6w==", "dev": true, - "license": "MIT", "dependencies": { "p-try": "^2.0.0" }, @@ -1046,7 +1305,6 @@ "resolved": "https://registry.npmjs.org/p-locate/-/p-locate-4.1.0.tgz", "integrity": "sha512-R79ZZ/0wAxKGu3oYMlz8jy/kbhsNrS7SKZ7PxEHBgJ5+F2mtFW2fK2cOtBh1cHYkQsbzFV7I+EoRKe6Yt0oK7A==", "dev": true, - "license": "MIT", "dependencies": { "p-limit": "^2.2.0" }, @@ -1059,7 +1317,6 @@ "resolved": "https://registry.npmjs.org/resolve-from/-/resolve-from-5.0.0.tgz", "integrity": "sha512-qYg9KP24dD5qka9J47d0aVky0N+b4fTU89LN9iDnjB5waksiC49rvMB0PrUJQGoTmH50XPiqOvAjDfaijGxYZw==", "dev": true, - "license": "MIT", "engines": { "node": ">=8" } @@ -1068,15 +1325,13 @@ "version": "1.0.3", "resolved": "https://registry.npmjs.org/sprintf-js/-/sprintf-js-1.0.3.tgz", "integrity": "sha512-D9cPgkvLlV3t3IzL0D0YLvGA9Ahk4PcvVwUbN0dSGr1aP0Nrt4AEnTUbuGvquEC0mA64Gqt1fzirlRs5ibXx8g==", - "dev": true, - "license": "BSD-3-Clause" + "dev": true }, "node_modules/@istanbuljs/schema": { "version": "0.1.3", "resolved": "https://registry.npmjs.org/@istanbuljs/schema/-/schema-0.1.3.tgz", "integrity": "sha512-ZXRY4jNvVgSVQ8DL3LTcakaAtXwTVUxE81hslsyD2AtoXW/wVob10HkOJ1X/pAlcI7D+2YoZKg5do8G/w6RYgA==", "dev": true, - "license": "MIT", "engines": { "node": ">=8" } @@ -1086,7 +1341,6 @@ "resolved": "https://registry.npmjs.org/@jest/console/-/console-29.7.0.tgz", "integrity": "sha512-5Ni4CU7XHQi32IJ398EEP4RrB8eV09sXP2ROqD4bksHrnTree52PsxvX8tpL8LvTZ3pFzXyPbNQReSN41CAhOg==", "dev": true, - "license": "MIT", "dependencies": { "@jest/types": "^29.6.3", "@types/node": "*", @@ -1104,7 +1358,6 @@ "resolved": "https://registry.npmjs.org/@jest/core/-/core-29.7.0.tgz", "integrity": "sha512-n7aeXWKMnGtDA48y8TLWJPJmLmmZ642Ceo78cYWEpiD7FzDgmNDV/GCVRorPABdXLJZ/9wzzgZAlHjXjxDHGsg==", "dev": true, - "license": "MIT", "dependencies": { "@jest/console": "^29.7.0", "@jest/reporters": "^29.7.0", @@ -1152,7 +1405,6 @@ "resolved": "https://registry.npmjs.org/@jest/environment/-/environment-29.7.0.tgz", "integrity": "sha512-aQIfHDq33ExsN4jP1NWGXhxgQ/wixs60gDiKO+XVMd8Mn0NWPWgc34ZQDTb2jKaUWQ7MuwoitXAsN2XVXNMpAw==", "dev": true, - "license": "MIT", "dependencies": { "@jest/fake-timers": "^29.7.0", "@jest/types": "^29.6.3", @@ -1168,7 +1420,6 @@ "resolved": "https://registry.npmjs.org/@jest/expect/-/expect-29.7.0.tgz", "integrity": "sha512-8uMeAMycttpva3P1lBHB8VciS9V0XAr3GymPpipdyQXbBcuhkLQOSe8E/p92RyAdToS6ZD1tFkX+CkhoECE0dQ==", "dev": true, - "license": "MIT", "dependencies": { "expect": "^29.7.0", "jest-snapshot": "^29.7.0" @@ -1182,7 +1433,6 @@ "resolved": "https://registry.npmjs.org/@jest/expect-utils/-/expect-utils-29.7.0.tgz", "integrity": "sha512-GlsNBWiFQFCVi9QVSx7f5AgMeLxe9YCCs5PuP2O2LdjDAA8Jh9eX7lA1Jq/xdXw3Wb3hyvlFNfZIfcRetSzYcA==", "dev": true, - "license": "MIT", "dependencies": { "jest-get-type": "^29.6.3" }, @@ -1195,7 +1445,6 @@ "resolved": "https://registry.npmjs.org/@jest/fake-timers/-/fake-timers-29.7.0.tgz", "integrity": "sha512-q4DH1Ha4TTFPdxLsqDXK1d3+ioSL7yL5oCMJZgDYm6i+6CygW5E5xVr/D1HdsGxjt1ZWSfUAs9OxSB/BNelWrQ==", "dev": true, - "license": "MIT", "dependencies": { "@jest/types": "^29.6.3", "@sinonjs/fake-timers": "^10.0.2", @@ -1213,7 +1462,6 @@ "resolved": "https://registry.npmjs.org/@jest/globals/-/globals-29.7.0.tgz", "integrity": "sha512-mpiz3dutLbkW2MNFubUGUEVLkTGiqW6yLVTA+JbP6fI6J5iL9Y0Nlg8k95pcF8ctKwCS7WVxteBs29hhfAotzQ==", "dev": true, - "license": "MIT", "dependencies": { "@jest/environment": "^29.7.0", "@jest/expect": "^29.7.0", @@ -1229,7 +1477,6 @@ "resolved": "https://registry.npmjs.org/@jest/reporters/-/reporters-29.7.0.tgz", "integrity": "sha512-DApq0KJbJOEzAFYjHADNNxAE3KbhxQB1y5Kplb5Waqw6zVbuWatSnMjE5gs8FUgEPmNsnZA3NCWl9NG0ia04Pg==", "dev": true, - "license": "MIT", "dependencies": { "@bcoe/v8-coverage": "^0.2.3", "@jest/console": "^29.7.0", @@ -1273,7 +1520,6 @@ "resolved": "https://registry.npmjs.org/@jest/schemas/-/schemas-29.6.3.tgz", "integrity": "sha512-mo5j5X+jIZmJQveBKeS/clAueipV7KgiX1vMgCxam1RNYiqE1w62n0/tJJnHtjW8ZHcQco5gY85jA3mi0L+nSA==", "dev": true, - "license": "MIT", "dependencies": { "@sinclair/typebox": "^0.27.8" }, @@ -1286,7 +1532,6 @@ "resolved": "https://registry.npmjs.org/@jest/source-map/-/source-map-29.6.3.tgz", "integrity": "sha512-MHjT95QuipcPrpLM+8JMSzFx6eHp5Bm+4XeFDJlwsvVBjmKNiIAvasGK2fxz2WbGRlnvqehFbh07MMa7n3YJnw==", "dev": true, - "license": "MIT", "dependencies": { "@jridgewell/trace-mapping": "^0.3.18", "callsites": "^3.0.0", @@ -1301,7 +1546,6 @@ "resolved": "https://registry.npmjs.org/@jest/test-result/-/test-result-29.7.0.tgz", "integrity": "sha512-Fdx+tv6x1zlkJPcWXmMDAG2HBnaR9XPSd5aDWQVsfrZmLVT3lU1cwyxLgRmXR9yrq4NBoEm9BMsfgFzTQAbJYA==", "dev": true, - "license": "MIT", "dependencies": { "@jest/console": "^29.7.0", "@jest/types": "^29.6.3", @@ -1317,7 +1561,6 @@ "resolved": "https://registry.npmjs.org/@jest/test-sequencer/-/test-sequencer-29.7.0.tgz", "integrity": "sha512-GQwJ5WZVrKnOJuiYiAF52UNUJXgTZx1NHjFSEB0qEMmSZKAkdMoIzw/Cj6x6NF4AvV23AUqDpFzQkN/eYCYTxw==", "dev": true, - "license": "MIT", "dependencies": { "@jest/test-result": "^29.7.0", "graceful-fs": "^4.2.9", @@ -1333,7 +1576,6 @@ "resolved": "https://registry.npmjs.org/@jest/transform/-/transform-29.7.0.tgz", "integrity": "sha512-ok/BTPFzFKVMwO5eOHRrvnBVHdRy9IrsrW1GpMaQ9MCnilNLXQKmAX8s1YXDFaai9xJpac2ySzV0YeRRECr2Vw==", "dev": true, - "license": "MIT", "dependencies": { "@babel/core": "^7.11.6", "@jest/types": "^29.6.3", @@ -1360,7 +1602,6 @@ "resolved": "https://registry.npmjs.org/@jest/types/-/types-29.6.3.tgz", "integrity": "sha512-u3UPsIilWKOM3F9CXtrG8LEJmNxwoCQC/XVj4IKYXvvpx7QIi/Kg1LI5uDmDpKlac62NUtX7eLjRh+jVZcLOzw==", "dev": true, - "license": "MIT", "dependencies": { "@jest/schemas": "^29.6.3", "@types/istanbul-lib-coverage": "^2.0.0", @@ -1374,13 +1615,14 @@ } }, "node_modules/@jridgewell/gen-mapping": { - "version": "0.3.4", + "version": "0.3.5", + "resolved": "https://registry.npmjs.org/@jridgewell/gen-mapping/-/gen-mapping-0.3.5.tgz", + "integrity": "sha512-IzL8ZoEDIBRWEzlCcRhOaCupYyN5gdIK+Q6fbFdPDg6HqX6jpkItn7DFIpW9LQzXG6Df9sA7+OKnq0qlz/GaQg==", "dev": true, - "license": "MIT", "dependencies": { - "@jridgewell/set-array": "^1.0.1", + "@jridgewell/set-array": "^1.2.1", "@jridgewell/sourcemap-codec": "^1.4.10", - "@jridgewell/trace-mapping": "^0.3.9" + "@jridgewell/trace-mapping": "^0.3.24" }, "engines": { "node": ">=6.0.0" @@ -1391,15 +1633,15 @@ "resolved": "https://registry.npmjs.org/@jridgewell/resolve-uri/-/resolve-uri-3.1.2.tgz", "integrity": "sha512-bRISgCIjP20/tbWSPWMEi54QVPRZExkuD9lJL+UIxUKtwVJA8wW1Trb1jMs1RFXo1CBTNZ/5hpC9QvmKWdopKw==", "dev": true, - "license": "MIT", "engines": { "node": ">=6.0.0" } }, "node_modules/@jridgewell/set-array": { "version": "1.2.1", + "resolved": "https://registry.npmjs.org/@jridgewell/set-array/-/set-array-1.2.1.tgz", + "integrity": "sha512-R8gLRTZeyp03ymzP/6Lil/28tGeGEzhx1q2k703KGWRAI1VdvPIXdG70VJc2pAMw3NA6JKL5hhFu1sJX0Mnn/A==", "dev": true, - "license": "MIT", "engines": { "node": ">=6.0.0" } @@ -1408,29 +1650,78 @@ "version": "1.4.15", "resolved": "https://registry.npmjs.org/@jridgewell/sourcemap-codec/-/sourcemap-codec-1.4.15.tgz", "integrity": "sha512-eF2rxCRulEKXHTRiDrDy6erMYWqNw4LPdQ8UQA4huuxaQsVeRPFl2oM8oDGxMFhJUWZf9McpLtJasDDZb/Bpeg==", - "dev": true, - "license": "MIT" + "dev": true }, "node_modules/@jridgewell/trace-mapping": { - "version": "0.3.23", + "version": "0.3.25", + "resolved": "https://registry.npmjs.org/@jridgewell/trace-mapping/-/trace-mapping-0.3.25.tgz", + "integrity": "sha512-vNk6aEwybGtawWmy/PzwnGDOjCkLWSD2wqvjGGAgOAwCGWySYXfYoxt00IJkTF+8Lb57DwOb3Aa0o9CApepiYQ==", "dev": true, - "license": "MIT", "dependencies": { "@jridgewell/resolve-uri": "^3.1.0", "@jridgewell/sourcemap-codec": "^1.4.14" } }, "node_modules/@lancedb/vectordb-darwin-arm64": { - "version": "0.4.11", + "version": "0.4.12", + "resolved": "https://registry.npmjs.org/@lancedb/vectordb-darwin-arm64/-/vectordb-darwin-arm64-0.4.12.tgz", + "integrity": "sha512-38/rkJRlWXkPWXuj9onzvbrhnIWcIUQjgEp5G9v5ixPosBowm7A4j8e2Q8CJMsVSNcVX2JLqwWVldiWegZFuYw==", "cpu": [ "arm64" ], - "license": "Apache-2.0", "optional": true, "os": [ "darwin" ] }, + "node_modules/@lancedb/vectordb-darwin-x64": { + "version": "0.4.12", + "resolved": "https://registry.npmjs.org/@lancedb/vectordb-darwin-x64/-/vectordb-darwin-x64-0.4.12.tgz", + "integrity": "sha512-psE48dztyO450hXWdv9Rl9aayM2HQ1uF9wErfC0gKmDUh1N0NdVq2viDuFpZxnmCis/nvGwKlYiYT9OnYNCJ9g==", + "cpu": [ + "x64" + ], + "optional": true, + "os": [ + "darwin" + ] + }, + "node_modules/@lancedb/vectordb-linux-arm64-gnu": { + "version": "0.4.12", + "resolved": "https://registry.npmjs.org/@lancedb/vectordb-linux-arm64-gnu/-/vectordb-linux-arm64-gnu-0.4.12.tgz", + "integrity": "sha512-xwkgF6MiF5aAdG9JG8v4ke652YxUJrhs9z4OrsEfrENnvsIQd2C5UyKMepVLdvij4BI/XPFRFWXdjPvP7S9rTA==", + "cpu": [ + "arm64" + ], + "optional": true, + "os": [ + "linux" + ] + }, + "node_modules/@lancedb/vectordb-linux-x64-gnu": { + "version": "0.4.12", + "resolved": "https://registry.npmjs.org/@lancedb/vectordb-linux-x64-gnu/-/vectordb-linux-x64-gnu-0.4.12.tgz", + "integrity": "sha512-gJqYR0aymrS+C60xc4EQPzmQ5/69XfeFv2ofBvAj7qW+c6BcnoAcfVl+7s1IrcWeGz251sm5cD5Lx4AzJd89dA==", + "cpu": [ + "x64" + ], + "optional": true, + "os": [ + "linux" + ] + }, + "node_modules/@lancedb/vectordb-win32-x64-msvc": { + "version": "0.4.12", + "resolved": "https://registry.npmjs.org/@lancedb/vectordb-win32-x64-msvc/-/vectordb-win32-x64-msvc-0.4.12.tgz", + "integrity": "sha512-LhCzpyEeBUyO6L2fuVqeP3mW8kYDryyU9PNqcM01m88sZB1Do6AlwiM+GjPRQ0SpzD0LK9oxQqSmJrdcNGqjbw==", + "cpu": [ + "x64" + ], + "optional": true, + "os": [ + "win32" + ] + }, "node_modules/@mozilla/readability": { "version": "0.5.0", "resolved": "https://registry.npmjs.org/@mozilla/readability/-/readability-0.5.0.tgz", @@ -1442,12 +1733,12 @@ "node_modules/@neon-rs/load": { "version": "0.0.74", "resolved": "https://registry.npmjs.org/@neon-rs/load/-/load-0.0.74.tgz", - "integrity": "sha512-/cPZD907UNz55yrc/ud4wDgQKtU1TvkD9jeqZWG6J4IMmZkp6zgjkQcKA8UvpkZlcpPHvc8J17sGzLFbP/LUYg==", - "license": "MIT" + "integrity": "sha512-/cPZD907UNz55yrc/ud4wDgQKtU1TvkD9jeqZWG6J4IMmZkp6zgjkQcKA8UvpkZlcpPHvc8J17sGzLFbP/LUYg==" }, "node_modules/@nodelib/fs.scandir": { "version": "2.1.5", - "license": "MIT", + "resolved": "https://registry.npmjs.org/@nodelib/fs.scandir/-/fs.scandir-2.1.5.tgz", + "integrity": "sha512-vq24Bq3ym5HEQm2NKCr3yXDwjc7vTsEThRDnkp2DK9p1uqLR+DHurm/NOTo0KG7HYHU7eppKZj3MyqYuMBf62g==", "peer": true, "dependencies": { "@nodelib/fs.stat": "2.0.5", @@ -1459,7 +1750,8 @@ }, "node_modules/@nodelib/fs.stat": { "version": "2.0.5", - "license": "MIT", + "resolved": "https://registry.npmjs.org/@nodelib/fs.stat/-/fs.stat-2.0.5.tgz", + "integrity": "sha512-RkhPPp2zrqDAQA/2jNhnztcPAlv64XdhIp7a7454A5ovI7Bukxgt7MX7udwAu3zg1DcpPU0rz3VV1SeaqvY4+A==", "peer": true, "engines": { "node": ">= 8" @@ -1467,7 +1759,8 @@ }, "node_modules/@nodelib/fs.walk": { "version": "1.2.8", - "license": "MIT", + "resolved": "https://registry.npmjs.org/@nodelib/fs.walk/-/fs.walk-1.2.8.tgz", + "integrity": "sha512-oGB+UxlgWcgQkgwo8GcEGwemoTFt3FIO9ababBmaGwXIoBKZ+GTy0pP185beGg7Llih/NSHSV2XAs1lnznocSg==", "peer": true, "dependencies": { "@nodelib/fs.scandir": "2.1.5", @@ -1481,7 +1774,6 @@ "version": "1.1.1", "resolved": "https://registry.npmjs.org/@npmcli/fs/-/fs-1.1.1.tgz", "integrity": "sha512-8KG5RD0GVP4ydEzRn/I4BNDuxDtqVbOdm8675T49OIG/NGhaK0pjPX7ZcDlvKYbA+ulvVK3ztfcF4uBdOxuJbQ==", - "license": "ISC", "optional": true, "dependencies": { "@gar/promisify": "^1.0.1", @@ -1492,7 +1784,6 @@ "version": "6.0.0", "resolved": "https://registry.npmjs.org/lru-cache/-/lru-cache-6.0.0.tgz", "integrity": "sha512-Jo6dJ04CmSjuznwJSS3pUeWmd/H0ffTlkXXgwZi+eq1UCmqQwCh+eLsYOYCwY991i2Fah4h1BEMCx4qThGbsiA==", - "license": "ISC", "optional": true, "dependencies": { "yallist": "^4.0.0" @@ -1505,7 +1796,6 @@ "version": "7.6.0", "resolved": "https://registry.npmjs.org/semver/-/semver-7.6.0.tgz", "integrity": "sha512-EnwXhrlwXMk9gKu5/flx5sv/an57AkRplG3hTK68W7FRDN+k+OWBj65M7719OkA82XLBxrcX0KSHj+X5COhOVg==", - "license": "ISC", "optional": true, "dependencies": { "lru-cache": "^6.0.0" @@ -1521,14 +1811,13 @@ "version": "4.0.0", "resolved": "https://registry.npmjs.org/yallist/-/yallist-4.0.0.tgz", "integrity": "sha512-3wdGidZyq5PB084XLES5TpOSRA3wjXAlIWMhum2kRcv/41Sn2emQ0dycQW4uZXLejwKvg6EsvbdlVL+FYEct7A==", - "license": "ISC", "optional": true }, "node_modules/@npmcli/move-file": { "version": "1.1.2", "resolved": "https://registry.npmjs.org/@npmcli/move-file/-/move-file-1.1.2.tgz", "integrity": "sha512-1SUf/Cg2GzGDyaf15aR9St9TWlb+XvbZXWpDx8YKs7MLzMH/BCeopv+y9vzrzgkfykCGuWOlSu3mZhj2+FQcrg==", - "license": "MIT", + "deprecated": "This functionality has been moved to @npmcli/fs", "optional": true, "dependencies": { "mkdirp": "^1.0.4", @@ -1542,7 +1831,6 @@ "version": "4.0.0", "resolved": "https://registry.npmjs.org/@octokit/auth-token/-/auth-token-4.0.0.tgz", "integrity": "sha512-tY/msAuJo6ARbK6SPIxZrPBms3xPbfwBrulZe0Wtr/DIY9lje2HeV1uoebShn6mx7SjCHif6EjMvoREj+gZ+SA==", - "license": "MIT", "engines": { "node": ">= 18" } @@ -1551,7 +1839,6 @@ "version": "5.1.0", "resolved": "https://registry.npmjs.org/@octokit/core/-/core-5.1.0.tgz", "integrity": "sha512-BDa2VAMLSh3otEiaMJ/3Y36GU4qf6GI+VivQ/P41NC6GHcdxpKlqV0ikSZ5gdQsmS3ojXeRx5vasgNTinF0Q4g==", - "license": "MIT", "dependencies": { "@octokit/auth-token": "^4.0.0", "@octokit/graphql": "^7.0.0", @@ -1569,7 +1856,6 @@ "version": "9.0.4", "resolved": "https://registry.npmjs.org/@octokit/endpoint/-/endpoint-9.0.4.tgz", "integrity": "sha512-DWPLtr1Kz3tv8L0UvXTDP1fNwM0S+z6EJpRcvH66orY6Eld4XBMCSYsaWp4xIm61jTWxK68BrR7ibO+vSDnZqw==", - "license": "MIT", "dependencies": { "@octokit/types": "^12.0.0", "universal-user-agent": "^6.0.0" @@ -1582,7 +1868,6 @@ "version": "7.0.2", "resolved": "https://registry.npmjs.org/@octokit/graphql/-/graphql-7.0.2.tgz", "integrity": "sha512-OJ2iGMtj5Tg3s6RaXH22cJcxXRi7Y3EBqbHTBRq+PQAqfaS8f/236fUrWhfSn8P4jovyzqucxme7/vWSSZBX2Q==", - "license": "MIT", "dependencies": { "@octokit/request": "^8.0.1", "@octokit/types": "^12.0.0", @@ -1595,12 +1880,12 @@ "node_modules/@octokit/openapi-types": { "version": "20.0.0", "resolved": "https://registry.npmjs.org/@octokit/openapi-types/-/openapi-types-20.0.0.tgz", - "integrity": "sha512-EtqRBEjp1dL/15V7WiX5LJMIxxkdiGJnabzYx5Apx4FkQIFgAfKumXeYAqqJCj1s+BMX4cPFIFC4OLCR6stlnA==", - "license": "MIT" + "integrity": "sha512-EtqRBEjp1dL/15V7WiX5LJMIxxkdiGJnabzYx5Apx4FkQIFgAfKumXeYAqqJCj1s+BMX4cPFIFC4OLCR6stlnA==" }, "node_modules/@octokit/plugin-paginate-rest": { - "version": "9.2.0", - "license": "MIT", + "version": "9.2.1", + "resolved": "https://registry.npmjs.org/@octokit/plugin-paginate-rest/-/plugin-paginate-rest-9.2.1.tgz", + "integrity": "sha512-wfGhE/TAkXZRLjksFXuDZdmGnJQHvtU/joFQdweXUgzo1XwvBCD4o4+75NtFfjfLK5IwLf9vHTfSiU3sLRYpRw==", "dependencies": { "@octokit/types": "^12.6.0" }, @@ -1608,22 +1893,24 @@ "node": ">= 18" }, "peerDependencies": { - "@octokit/core": ">=5" + "@octokit/core": "5" } }, "node_modules/@octokit/plugin-request-log": { - "version": "4.0.0", - "license": "MIT", + "version": "4.0.1", + "resolved": "https://registry.npmjs.org/@octokit/plugin-request-log/-/plugin-request-log-4.0.1.tgz", + "integrity": "sha512-GihNqNpGHorUrO7Qa9JbAl0dbLnqJVrV8OXe2Zm5/Y4wFkZQDfTreBzVmiRfJVfE4mClXdihHnbpyyO9FSX4HA==", "engines": { "node": ">= 18" }, "peerDependencies": { - "@octokit/core": ">=5" + "@octokit/core": "5" } }, "node_modules/@octokit/plugin-rest-endpoint-methods": { - "version": "10.4.0", - "license": "MIT", + "version": "10.4.1", + "resolved": "https://registry.npmjs.org/@octokit/plugin-rest-endpoint-methods/-/plugin-rest-endpoint-methods-10.4.1.tgz", + "integrity": "sha512-xV1b+ceKV9KytQe3zCVqjg+8GTGfDYwaT1ATU5isiUyVtlVAO3HNdzpS4sr4GBx4hxQ46s7ITtZrAsxG22+rVg==", "dependencies": { "@octokit/types": "^12.6.0" }, @@ -1631,14 +1918,13 @@ "node": ">= 18" }, "peerDependencies": { - "@octokit/core": ">=5" + "@octokit/core": "5" } }, "node_modules/@octokit/request": { "version": "8.2.0", "resolved": "https://registry.npmjs.org/@octokit/request/-/request-8.2.0.tgz", "integrity": "sha512-exPif6x5uwLqv1N1irkLG1zZNJkOtj8bZxuVHd71U5Ftuxf2wGNvAJyNBcPbPC+EBzwYEbBDdSFb8EPcjpYxPQ==", - "license": "MIT", "dependencies": { "@octokit/endpoint": "^9.0.0", "@octokit/request-error": "^5.0.0", @@ -1653,7 +1939,6 @@ "version": "5.0.1", "resolved": "https://registry.npmjs.org/@octokit/request-error/-/request-error-5.0.1.tgz", "integrity": "sha512-X7pnyTMV7MgtGmiXBwmO6M5kIPrntOXdyKZLigNfQWSEQzVxR4a4vo49vJjTWX70mPndj8KhfT4Dx+2Ng3vnBQ==", - "license": "MIT", "dependencies": { "@octokit/types": "^12.0.0", "deprecation": "^2.0.0", @@ -1667,7 +1952,6 @@ "version": "20.0.2", "resolved": "https://registry.npmjs.org/@octokit/rest/-/rest-20.0.2.tgz", "integrity": "sha512-Ux8NDgEraQ/DMAU1PlAohyfBBXDwhnX2j33Z1nJNziqAfHi70PuxkFYIcIt8aIAxtRE7KVuKp8lSR8pA0J5iOQ==", - "license": "MIT", "dependencies": { "@octokit/core": "^5.0.0", "@octokit/plugin-paginate-rest": "^9.0.0", @@ -1682,7 +1966,6 @@ "version": "12.6.0", "resolved": "https://registry.npmjs.org/@octokit/types/-/types-12.6.0.tgz", "integrity": "sha512-1rhSOfRa6H9w4YwK0yrf5faDaDTb+yLyBUKOCV4xtCDB5VmIPqd/v9yr9o6SAzOAlRxMiRiCic6JVM1/kunVkw==", - "license": "MIT", "dependencies": { "@octokit/openapi-types": "^20.0.0" } @@ -1690,32 +1973,27 @@ "node_modules/@protobufjs/aspromise": { "version": "1.1.2", "resolved": "https://registry.npmjs.org/@protobufjs/aspromise/-/aspromise-1.1.2.tgz", - "integrity": "sha512-j+gKExEuLmKwvz3OgROXtrJ2UG2x8Ch2YZUxahh+s1F2HZ+wAceUNLkvy6zKCPVRkU++ZWQrdxsUeQXmcg4uoQ==", - "license": "BSD-3-Clause" + "integrity": "sha512-j+gKExEuLmKwvz3OgROXtrJ2UG2x8Ch2YZUxahh+s1F2HZ+wAceUNLkvy6zKCPVRkU++ZWQrdxsUeQXmcg4uoQ==" }, "node_modules/@protobufjs/base64": { "version": "1.1.2", "resolved": "https://registry.npmjs.org/@protobufjs/base64/-/base64-1.1.2.tgz", - "integrity": "sha512-AZkcAA5vnN/v4PDqKyMR5lx7hZttPDgClv83E//FMNhR2TMcLUhfRUBHCmSl0oi9zMgDDqRUJkSxO3wm85+XLg==", - "license": "BSD-3-Clause" + "integrity": "sha512-AZkcAA5vnN/v4PDqKyMR5lx7hZttPDgClv83E//FMNhR2TMcLUhfRUBHCmSl0oi9zMgDDqRUJkSxO3wm85+XLg==" }, "node_modules/@protobufjs/codegen": { "version": "2.0.4", "resolved": "https://registry.npmjs.org/@protobufjs/codegen/-/codegen-2.0.4.tgz", - "integrity": "sha512-YyFaikqM5sH0ziFZCN3xDC7zeGaB/d0IUb9CATugHWbd1FRFwWwt4ld4OYMPWu5a3Xe01mGAULCdqhMlPl29Jg==", - "license": "BSD-3-Clause" + "integrity": "sha512-YyFaikqM5sH0ziFZCN3xDC7zeGaB/d0IUb9CATugHWbd1FRFwWwt4ld4OYMPWu5a3Xe01mGAULCdqhMlPl29Jg==" }, "node_modules/@protobufjs/eventemitter": { "version": "1.1.0", "resolved": "https://registry.npmjs.org/@protobufjs/eventemitter/-/eventemitter-1.1.0.tgz", - "integrity": "sha512-j9ednRT81vYJ9OfVuXG6ERSTdEL1xVsNgqpkxMsbIabzSo3goCjDIveeGv5d03om39ML71RdmrGNjG5SReBP/Q==", - "license": "BSD-3-Clause" + "integrity": "sha512-j9ednRT81vYJ9OfVuXG6ERSTdEL1xVsNgqpkxMsbIabzSo3goCjDIveeGv5d03om39ML71RdmrGNjG5SReBP/Q==" }, "node_modules/@protobufjs/fetch": { "version": "1.1.0", "resolved": "https://registry.npmjs.org/@protobufjs/fetch/-/fetch-1.1.0.tgz", "integrity": "sha512-lljVXpqXebpsijW71PZaCYeIcE5on1w5DlQy5WH6GLbFryLUrBD4932W/E2BSpfRJWseIL4v/KPgBFxDOIdKpQ==", - "license": "BSD-3-Clause", "dependencies": { "@protobufjs/aspromise": "^1.1.1", "@protobufjs/inquire": "^1.1.0" @@ -1724,46 +2002,39 @@ "node_modules/@protobufjs/float": { "version": "1.0.2", "resolved": "https://registry.npmjs.org/@protobufjs/float/-/float-1.0.2.tgz", - "integrity": "sha512-Ddb+kVXlXst9d+R9PfTIxh1EdNkgoRe5tOX6t01f1lYWOvJnSPDBlG241QLzcyPdoNTsblLUdujGSE4RzrTZGQ==", - "license": "BSD-3-Clause" + "integrity": "sha512-Ddb+kVXlXst9d+R9PfTIxh1EdNkgoRe5tOX6t01f1lYWOvJnSPDBlG241QLzcyPdoNTsblLUdujGSE4RzrTZGQ==" }, "node_modules/@protobufjs/inquire": { "version": "1.1.0", "resolved": "https://registry.npmjs.org/@protobufjs/inquire/-/inquire-1.1.0.tgz", - "integrity": "sha512-kdSefcPdruJiFMVSbn801t4vFK7KB/5gd2fYvrxhuJYg8ILrmn9SKSX2tZdV6V+ksulWqS7aXjBcRXl3wHoD9Q==", - "license": "BSD-3-Clause" + "integrity": "sha512-kdSefcPdruJiFMVSbn801t4vFK7KB/5gd2fYvrxhuJYg8ILrmn9SKSX2tZdV6V+ksulWqS7aXjBcRXl3wHoD9Q==" }, "node_modules/@protobufjs/path": { "version": "1.1.2", "resolved": "https://registry.npmjs.org/@protobufjs/path/-/path-1.1.2.tgz", - "integrity": "sha512-6JOcJ5Tm08dOHAbdR3GrvP+yUUfkjG5ePsHYczMFLq3ZmMkAD98cDgcT2iA1lJ9NVwFd4tH/iSSoe44YWkltEA==", - "license": "BSD-3-Clause" + "integrity": "sha512-6JOcJ5Tm08dOHAbdR3GrvP+yUUfkjG5ePsHYczMFLq3ZmMkAD98cDgcT2iA1lJ9NVwFd4tH/iSSoe44YWkltEA==" }, "node_modules/@protobufjs/pool": { "version": "1.1.0", "resolved": "https://registry.npmjs.org/@protobufjs/pool/-/pool-1.1.0.tgz", - "integrity": "sha512-0kELaGSIDBKvcgS4zkjz1PeddatrjYcmMWOlAuAPwAeccUrPHdUqo/J6LiymHHEiJT5NrF1UVwxY14f+fy4WQw==", - "license": "BSD-3-Clause" + "integrity": "sha512-0kELaGSIDBKvcgS4zkjz1PeddatrjYcmMWOlAuAPwAeccUrPHdUqo/J6LiymHHEiJT5NrF1UVwxY14f+fy4WQw==" }, "node_modules/@protobufjs/utf8": { "version": "1.1.0", "resolved": "https://registry.npmjs.org/@protobufjs/utf8/-/utf8-1.1.0.tgz", - "integrity": "sha512-Vvn3zZrhQZkkBE8LSuW3em98c0FwgO4nxzv6OdSxPKJIEKY2bGbHn+mhGIPerzI4twdxaP8/0+06HBpwf345Lw==", - "license": "BSD-3-Clause" + "integrity": "sha512-Vvn3zZrhQZkkBE8LSuW3em98c0FwgO4nxzv6OdSxPKJIEKY2bGbHn+mhGIPerzI4twdxaP8/0+06HBpwf345Lw==" }, "node_modules/@sinclair/typebox": { "version": "0.27.8", "resolved": "https://registry.npmjs.org/@sinclair/typebox/-/typebox-0.27.8.tgz", "integrity": "sha512-+Fj43pSMwJs4KRrH/938Uf+uAELIgVBmQzg/q1YG10djyfA3TnrU8N8XzqCh/okZdszqBQTZf96idMfE5lnwTA==", - "dev": true, - "license": "MIT" + "dev": true }, "node_modules/@sinonjs/commons": { "version": "3.0.1", "resolved": "https://registry.npmjs.org/@sinonjs/commons/-/commons-3.0.1.tgz", "integrity": "sha512-K3mCHKQ9sVh8o1C9cxkwxaOmXoAMlDxC1mYyHrjqOWEcBjYr76t96zL2zlj5dUGZ3HSw240X1qgH3Mjf1yJWpQ==", "dev": true, - "license": "BSD-3-Clause", "dependencies": { "type-detect": "4.0.8" } @@ -1773,7 +2044,6 @@ "resolved": "https://registry.npmjs.org/@sinonjs/fake-timers/-/fake-timers-10.3.0.tgz", "integrity": "sha512-V4BG07kuYSUkTCSBHG8G8TNhM+F19jXFWnQtzj+we8DrkpSBCee9Z3Ms8yiGer/dlmhe35/Xdgyo3/0rQKg7YA==", "dev": true, - "license": "BSD-3-Clause", "dependencies": { "@sinonjs/commons": "^3.0.0" } @@ -1781,14 +2051,12 @@ "node_modules/@socket.io/component-emitter": { "version": "3.1.0", "resolved": "https://registry.npmjs.org/@socket.io/component-emitter/-/component-emitter-3.1.0.tgz", - "integrity": "sha512-+9jVqKhRSpsc591z5vX+X5Yyw+he/HCB4iQ/RYxw35CEPaY1gnsNE43nf9n9AaYjAQrTiI/mOwKUKdUs9vf7Xg==", - "license": "MIT" + "integrity": "sha512-+9jVqKhRSpsc591z5vX+X5Yyw+he/HCB4iQ/RYxw35CEPaY1gnsNE43nf9n9AaYjAQrTiI/mOwKUKdUs9vf7Xg==" }, "node_modules/@tootallnate/once": { "version": "1.1.2", "resolved": "https://registry.npmjs.org/@tootallnate/once/-/once-1.1.2.tgz", "integrity": "sha512-RbzJvlNzmRq5c3O09UipeuXno4tA1FE6ikOjxZK0tuxVv3412l64l5t1W5pj4+rJq9vpkm/kwiR07aZXnsKPxw==", - "license": "MIT", "optional": true, "engines": { "node": ">= 6" @@ -1799,7 +2067,6 @@ "resolved": "https://registry.npmjs.org/@types/babel__core/-/babel__core-7.20.5.tgz", "integrity": "sha512-qoQprZvz5wQFJwMDqeseRXWv3rqMvhgpbXFfVyWhbx9X47POIA6i/+dXefEmZKoAgOaTdaIgNSMqMIU61yRyzA==", "dev": true, - "license": "MIT", "dependencies": { "@babel/parser": "^7.20.7", "@babel/types": "^7.20.7", @@ -1813,7 +2080,6 @@ "resolved": "https://registry.npmjs.org/@types/babel__generator/-/babel__generator-7.6.8.tgz", "integrity": "sha512-ASsj+tpEDsEiFr1arWrlN6V3mdfjRMZt6LtK/Vp/kreFLnr5QH5+DhvD5nINYZXzwJvXeGq+05iUXcAzVrqWtw==", "dev": true, - "license": "MIT", "dependencies": { "@babel/types": "^7.0.0" } @@ -1823,7 +2089,6 @@ "resolved": "https://registry.npmjs.org/@types/babel__template/-/babel__template-7.4.4.tgz", "integrity": "sha512-h/NUaSyG5EyxBIp8YRxo4RMe2/qQgvyowRwVMzhYhBCONbW8PUsg4lkFMrhgZhUe5z3L3MiLDuvyJ/CaPa2A8A==", "dev": true, - "license": "MIT", "dependencies": { "@babel/parser": "^7.1.0", "@babel/types": "^7.0.0" @@ -1834,25 +2099,27 @@ "resolved": "https://registry.npmjs.org/@types/babel__traverse/-/babel__traverse-7.20.5.tgz", "integrity": "sha512-WXCyOcRtH37HAUkpXhUduaxdm82b4GSlyTqajXviN4EfiuPgNYR109xMCKvpl6zPIpua0DGlMEDCq+g8EdoheQ==", "dev": true, - "license": "MIT", "dependencies": { "@babel/types": "^7.20.7" } }, "node_modules/@types/command-line-args": { "version": "5.2.0", - "license": "MIT" + "resolved": "https://registry.npmjs.org/@types/command-line-args/-/command-line-args-5.2.0.tgz", + "integrity": "sha512-UuKzKpJJ/Ief6ufIaIzr3A/0XnluX7RvFgwkV89Yzvm77wCh1kFaFmqN8XEnGcN62EuHdedQjEMb8mYxFLGPyA==", + "peer": true }, "node_modules/@types/command-line-usage": { "version": "5.0.2", - "license": "MIT" + "resolved": "https://registry.npmjs.org/@types/command-line-usage/-/command-line-usage-5.0.2.tgz", + "integrity": "sha512-n7RlEEJ+4x4TS7ZQddTmNSxP+zziEG0TNsMfiRIxcIVXt71ENJ9ojeXmGO3wPoTdn7pJcU2xc3CJYMktNT6DPg==", + "peer": true }, "node_modules/@types/follow-redirects": { "version": "1.14.4", "resolved": "https://registry.npmjs.org/@types/follow-redirects/-/follow-redirects-1.14.4.tgz", "integrity": "sha512-GWXfsD0Jc1RWiFmMuMFCpXMzi9L7oPDVwxUnZdg89kDNnqsRfUKXEtUYtA98A6lig1WXH/CYY/fvPW9HuN5fTA==", "dev": true, - "license": "MIT", "dependencies": { "@types/node": "*" } @@ -1862,7 +2129,6 @@ "resolved": "https://registry.npmjs.org/@types/graceful-fs/-/graceful-fs-4.1.9.tgz", "integrity": "sha512-olP3sd1qOEe5dXTSaFvQG+02VdRXcdytWLAZsAq1PecU8uqQAhkrnbli7DagjtXKW/Bl7YJbUsa8MPcuc8LHEQ==", "dev": true, - "license": "MIT", "dependencies": { "@types/node": "*" } @@ -1871,8 +2137,8 @@ "version": "4.1.0", "resolved": "https://registry.npmjs.org/@types/handlebars/-/handlebars-4.1.0.tgz", "integrity": "sha512-gq9YweFKNNB1uFK71eRqsd4niVkXrxHugqWFQkeLRJvGjnxsLr16bYtcsG4tOFwmYi0Bax+wCkbf1reUfdl4kA==", + "deprecated": "This is a stub types definition. handlebars provides its own type definitions, so you do not need this installed.", "dev": true, - "license": "MIT", "dependencies": { "handlebars": "*" } @@ -1881,15 +2147,13 @@ "version": "2.0.6", "resolved": "https://registry.npmjs.org/@types/istanbul-lib-coverage/-/istanbul-lib-coverage-2.0.6.tgz", "integrity": "sha512-2QF/t/auWm0lsy8XtKVPG19v3sSOQlJe/YHZgfjb/KBBHOGSV+J2q/S671rcq9uTBrLAXmZpqJiaQbMT+zNU1w==", - "dev": true, - "license": "MIT" + "dev": true }, "node_modules/@types/istanbul-lib-report": { "version": "3.0.3", "resolved": "https://registry.npmjs.org/@types/istanbul-lib-report/-/istanbul-lib-report-3.0.3.tgz", "integrity": "sha512-NQn7AHQnk/RSLOxrBbGyJM/aVQ+pjj5HCgasFxc0K/KhoATfQ/47AyUl15I2yBUpihjmas+a+VJBOqecrFH+uA==", "dev": true, - "license": "MIT", "dependencies": { "@types/istanbul-lib-coverage": "*" } @@ -1899,7 +2163,6 @@ "resolved": "https://registry.npmjs.org/@types/istanbul-reports/-/istanbul-reports-3.0.4.tgz", "integrity": "sha512-pk2B1NWalF9toCRu6gjBzR69syFjP4Od8WRAX+0mmf9lAjCRicLOWc+ZrxZHx/0XRjotgkF9t6iaMJ+aXcOdZQ==", "dev": true, - "license": "MIT", "dependencies": { "@types/istanbul-lib-report": "*" } @@ -1909,7 +2172,6 @@ "resolved": "https://registry.npmjs.org/@types/jest/-/jest-29.5.12.tgz", "integrity": "sha512-eDC8bTvT/QhYdxJAulQikueigY5AsdBRH2yDKW3yveW7svY3+DzN84/2NUgkw10RTiJbWqZrTtoGVdYlvFJdLw==", "dev": true, - "license": "MIT", "dependencies": { "expect": "^29.0.0", "pretty-format": "^29.0.0" @@ -1920,7 +2182,6 @@ "resolved": "https://registry.npmjs.org/@types/jquery/-/jquery-3.5.29.tgz", "integrity": "sha512-oXQQC9X9MOPRrMhPHHOsXqeQDnWeCDT3PelUIg/Oy8FAbzSZtFHRjc7IpbfFVmpLtJ+UOoywpRsuO5Jxjybyeg==", "dev": true, - "license": "MIT", "dependencies": { "@types/sizzle": "*" } @@ -1929,7 +2190,6 @@ "version": "21.1.6", "resolved": "https://registry.npmjs.org/@types/jsdom/-/jsdom-21.1.6.tgz", "integrity": "sha512-/7kkMsC+/kMs7gAYmmBR9P0vGTnOoLhQhyhQJSlXGI5bzTHp6xdo0TtKWQAsz6pmSAeVqKSbqeyP6hytqr9FDw==", - "license": "MIT", "dependencies": { "@types/node": "*", "@types/tough-cookie": "*", @@ -1938,40 +2198,35 @@ }, "node_modules/@types/json5": { "version": "0.0.29", - "license": "MIT", + "resolved": "https://registry.npmjs.org/@types/json5/-/json5-0.0.29.tgz", + "integrity": "sha512-dRLjCWHYg4oaA77cxO64oO+7JwCwnIzkZPdrrC71jQmQtlhM556pwKo5bUzqvZndkVbeFLIIi+9TC40JNF5hNQ==", "peer": true }, "node_modules/@types/long": { "version": "4.0.2", "resolved": "https://registry.npmjs.org/@types/long/-/long-4.0.2.tgz", - "integrity": "sha512-MqTGEo5bj5t157U6fA/BiDynNkn0YknVdh48CMPkTSpFTVmvao5UQmm7uEF6xBEo7qIMAlY/JSleYaE6VOdpaA==", - "license": "MIT" + "integrity": "sha512-MqTGEo5bj5t157U6fA/BiDynNkn0YknVdh48CMPkTSpFTVmvao5UQmm7uEF6xBEo7qIMAlY/JSleYaE6VOdpaA==" }, "node_modules/@types/mozilla-readability": { "version": "0.2.1", "resolved": "https://registry.npmjs.org/@types/mozilla-readability/-/mozilla-readability-0.2.1.tgz", - "integrity": "sha512-RjLpe3MIpj53L+q50DTNlhv6KjHjgajFQwAF4KuxVZTa2+6Cs2UNAxS5awxABfZEHRYjGKeRDB21Zrtnsi911w==", - "license": "MIT" + "integrity": "sha512-RjLpe3MIpj53L+q50DTNlhv6KjHjgajFQwAF4KuxVZTa2+6Cs2UNAxS5awxABfZEHRYjGKeRDB21Zrtnsi911w==" }, "node_modules/@types/mustache": { "version": "4.2.5", "resolved": "https://registry.npmjs.org/@types/mustache/-/mustache-4.2.5.tgz", "integrity": "sha512-PLwiVvTBg59tGFL/8VpcGvqOu3L4OuveNvPi0EYbWchRdEVP++yRUXJPFl+CApKEq13017/4Nf7aQ5lTtHUNsA==", - "dev": true, - "license": "MIT" + "dev": true }, "node_modules/@types/node": { - "version": "20.11.23", - "license": "MIT", - "dependencies": { - "undici-types": "~5.26.4" - } + "version": "20.3.0", + "resolved": "https://registry.npmjs.org/@types/node/-/node-20.3.0.tgz", + "integrity": "sha512-cumHmIAf6On83X7yP+LrsEyUOf/YlociZelmpRYaGFydoaPdxdt80MAbu6vWerQT2COCp2nPvHdsbD7tHn/YlQ==" }, "node_modules/@types/node-fetch": { "version": "2.6.11", "resolved": "https://registry.npmjs.org/@types/node-fetch/-/node-fetch-2.6.11.tgz", "integrity": "sha512-24xFj9R5+rfQJLRyM56qh+wnVSYhyXC2tkoBndtY0U+vubqNsYXGjufB2nn8Q6gt0LrARwL6UBtMCSVCwl4B1g==", - "license": "MIT", "dependencies": { "@types/node": "*", "form-data": "^4.0.0" @@ -1979,41 +2234,38 @@ }, "node_modules/@types/pad-left": { "version": "2.1.1", - "license": "MIT" + "resolved": "https://registry.npmjs.org/@types/pad-left/-/pad-left-2.1.1.tgz", + "integrity": "sha512-Xd22WCRBydkGSApl5Bw0PhAOHKSVjNL3E3AwzKaps96IMraPqy5BvZIsBVK6JLwdybUzjHnuWVwpDd0JjTfHXA==", + "peer": true }, "node_modules/@types/sizzle": { "version": "2.3.8", "resolved": "https://registry.npmjs.org/@types/sizzle/-/sizzle-2.3.8.tgz", "integrity": "sha512-0vWLNK2D5MT9dg0iOo8GlKguPAU02QjmZitPEsXRuJXU/OGIOt9vT9Fc26wtYuavLxtO45v9PGleoL9Z0k1LHg==", - "dev": true, - "license": "MIT" + "dev": true }, "node_modules/@types/stack-utils": { "version": "2.0.3", "resolved": "https://registry.npmjs.org/@types/stack-utils/-/stack-utils-2.0.3.tgz", "integrity": "sha512-9aEbYZ3TbYMznPdcdr3SmIrLXwC/AKZXQeCf9Pgao5CKb8CyHuEX5jzWPTkvregvhRJHcpRO6BFoGW9ycaOkYw==", - "dev": true, - "license": "MIT" + "dev": true }, "node_modules/@types/tough-cookie": { "version": "4.0.5", "resolved": "https://registry.npmjs.org/@types/tough-cookie/-/tough-cookie-4.0.5.tgz", - "integrity": "sha512-/Ad8+nIOV7Rl++6f1BdKxFSMgmoqEoYbHRpPcx3JEfv8VRsQe9Z4mCXeJBzxs7mbHY/XOZZuXlRNfhpVPbs6ZA==", - "license": "MIT" + "integrity": "sha512-/Ad8+nIOV7Rl++6f1BdKxFSMgmoqEoYbHRpPcx3JEfv8VRsQe9Z4mCXeJBzxs7mbHY/XOZZuXlRNfhpVPbs6ZA==" }, "node_modules/@types/uuid": { "version": "9.0.8", "resolved": "https://registry.npmjs.org/@types/uuid/-/uuid-9.0.8.tgz", "integrity": "sha512-jg+97EGIcY9AGHJJRaaPVgetKDsrTgbRjQ5Msgjh/DQKEFl0DtyRr/VCOyD1T2R1MNeWPK/u7JoGhlDZnKBAfA==", - "dev": true, - "license": "MIT" + "dev": true }, "node_modules/@types/yargs": { "version": "17.0.32", "resolved": "https://registry.npmjs.org/@types/yargs/-/yargs-17.0.32.tgz", "integrity": "sha512-xQ67Yc/laOG5uMfX/093MRlGGCIBzZMarVa+gfNKJxWAIgykYpVGkBdbqEzGDDfCrVUj6Hiff4mTZ5BA6TmAog==", "dev": true, - "license": "MIT", "dependencies": { "@types/yargs-parser": "*" } @@ -2022,19 +2274,20 @@ "version": "21.0.3", "resolved": "https://registry.npmjs.org/@types/yargs-parser/-/yargs-parser-21.0.3.tgz", "integrity": "sha512-I4q9QU9MQv4oEOz4tAHJtNz1cwuLxn2F3xcc2iV5WdqLPpUnj30aUuxt1mAxYTG+oe8CZMV/+6rU4S4gRDzqtQ==", - "dev": true, - "license": "MIT" + "dev": true }, "node_modules/@ungap/structured-clone": { "version": "1.2.0", - "license": "ISC", + "resolved": "https://registry.npmjs.org/@ungap/structured-clone/-/structured-clone-1.2.0.tgz", + "integrity": "sha512-zuVdFrMJiuCDQUMCzQaD6KL28MjnqqN8XnAqiEq9PNm/hCPTSGfrXCOfwj1ow4LFb/tNymJPwsNbVePc1xFqrQ==", "peer": true }, "node_modules/@xenova/transformers": { - "version": "2.15.1", - "license": "Apache-2.0", + "version": "2.16.0", + "resolved": "https://registry.npmjs.org/@xenova/transformers/-/transformers-2.16.0.tgz", + "integrity": "sha512-UMlw9D9IHq8DSekl9J5DHB0SmEREHThqDZiMloexHoOqXF9wPLXe7Emiisqm9RPU6hKwTVAVFo2uPFxMoByF+w==", "dependencies": { - "@huggingface/jinja": "^0.1.3", + "@huggingface/jinja": "^0.2.1", "onnxruntime-web": "1.14.0", "sharp": "^0.32.0" }, @@ -2045,21 +2298,18 @@ "node_modules/@yomguithereal/helpers": { "version": "1.1.1", "resolved": "https://registry.npmjs.org/@yomguithereal/helpers/-/helpers-1.1.1.tgz", - "integrity": "sha512-UYvAq/XCA7xoh1juWDYsq3W0WywOB+pz8cgVnE1b45ZfdMhBvHDrgmSFG3jXeZSr2tMTYLGHFHON+ekG05Jebg==", - "license": "MIT" + "integrity": "sha512-UYvAq/XCA7xoh1juWDYsq3W0WywOB+pz8cgVnE1b45ZfdMhBvHDrgmSFG3jXeZSr2tMTYLGHFHON+ekG05Jebg==" }, "node_modules/abbrev": { "version": "1.1.1", "resolved": "https://registry.npmjs.org/abbrev/-/abbrev-1.1.1.tgz", "integrity": "sha512-nne9/IiQ/hzIhY6pdDnbBtz7DjPTKrY00P/zvPSm5pOFkl6xuGrGnXn/VtTNNfNtAfZ9/1RtehkszU9qcTii0Q==", - "license": "ISC", "optional": true }, "node_modules/abort-controller": { "version": "3.0.0", "resolved": "https://registry.npmjs.org/abort-controller/-/abort-controller-3.0.0.tgz", "integrity": "sha512-h8lQ8tacZYnR3vNQTgibj+tODHI5/+l06Au2Pcriv/Gmet0eaj4TwWH41sO9wnHDiQsEj19q0drzdWdeAHtweg==", - "license": "MIT", "dependencies": { "event-target-shim": "^5.0.0" }, @@ -2069,7 +2319,8 @@ }, "node_modules/acorn": { "version": "8.11.3", - "license": "MIT", + "resolved": "https://registry.npmjs.org/acorn/-/acorn-8.11.3.tgz", + "integrity": "sha512-Y9rRfJG5jcKOE0CLisYbojUjIrIEE7AGMzA/Sm4BslANhbS+cDMpgBdcPT91oJ7OuJ9hYJBx59RjbhxVnrF8Xg==", "peer": true, "bin": { "acorn": "bin/acorn" @@ -2080,7 +2331,8 @@ }, "node_modules/acorn-jsx": { "version": "5.3.2", - "license": "MIT", + "resolved": "https://registry.npmjs.org/acorn-jsx/-/acorn-jsx-5.3.2.tgz", + "integrity": "sha512-rq9s+JNhf0IChjtDXxllJ7g41oZk5SlXtp0LHwyA5cejwn7vKmKp4pPri6YEePv2PU65sAsegbXtIinmDFDXgQ==", "peer": true, "peerDependencies": { "acorn": "^6.0.0 || ^7.0.0 || ^8.0.0" @@ -2090,7 +2342,6 @@ "version": "1.1.0", "resolved": "https://registry.npmjs.org/adf-to-md/-/adf-to-md-1.1.0.tgz", "integrity": "sha512-iYY6SNkgnfeRq7/7Qazy9Lq00X6DJmnEwfTWFIpSGLJ929Q26Zo/lHN0AVa5yLQT6pXTtKIWvRgKur/xSibJ0g==", - "license": "MIT", "dependencies": { "eslint-config-nodebb": "0.1.1" } @@ -2099,7 +2350,6 @@ "version": "7.1.0", "resolved": "https://registry.npmjs.org/agent-base/-/agent-base-7.1.0.tgz", "integrity": "sha512-o/zjMZRhJxny7OyEF+Op8X+efiELC7k7yOjMzgfzVqOzXqkBkWI79YoTdOtsuWd5BWhAGAuOY/Xa6xpiaWXiNg==", - "license": "MIT", "dependencies": { "debug": "^4.3.4" }, @@ -2111,7 +2361,6 @@ "version": "4.5.0", "resolved": "https://registry.npmjs.org/agentkeepalive/-/agentkeepalive-4.5.0.tgz", "integrity": "sha512-5GG/5IbQQpC9FpkRGsSvZI5QYeSCzlJHdpBQntCsuTOxhKD8lqKhrleg2Yi7yvMIf82Ycmmqln9U8V9qwEiJew==", - "license": "MIT", "dependencies": { "humanize-ms": "^1.2.1" }, @@ -2123,7 +2372,6 @@ "version": "3.1.0", "resolved": "https://registry.npmjs.org/aggregate-error/-/aggregate-error-3.1.0.tgz", "integrity": "sha512-4I7Td01quW/RpocfNayFdFVk1qSuoh0E7JrbRJ16nH01HhKFQ88INq9Sd+nd72zqRySlr9BmDA8xlEJ6vJMrYA==", - "license": "MIT", "optional": true, "dependencies": { "clean-stack": "^2.0.0", @@ -2137,7 +2385,6 @@ "version": "6.12.6", "resolved": "https://registry.npmjs.org/ajv/-/ajv-6.12.6.tgz", "integrity": "sha512-j3fVLgvTo527anyYyJOGTYJbG+vnnQYvE0m5mmkc1TK+nxAppkCLMIL0aZ4dblVCNoGShhm+kzE4ZUykBoMg4g==", - "license": "MIT", "dependencies": { "fast-deep-equal": "^3.1.1", "fast-json-stable-stringify": "^2.0.0", @@ -2154,7 +2401,6 @@ "resolved": "https://registry.npmjs.org/ansi-escapes/-/ansi-escapes-4.3.2.tgz", "integrity": "sha512-gKXj5ALrKWQLsYG9jlTRmR/xKluxHV+Z9QEwNIgCfM1/uwPMCuzVVnh5mwTd+OuBZcwSIMbqssNWRm1lE51QaQ==", "dev": true, - "license": "MIT", "dependencies": { "type-fest": "^0.21.3" }, @@ -2170,7 +2416,6 @@ "resolved": "https://registry.npmjs.org/type-fest/-/type-fest-0.21.3.tgz", "integrity": "sha512-t0rzBq87m3fVcduHDUFhKmyyX+9eo6WQjZvf51Ea/M0Q7+T374Jp1aUiyUl0GKxp8M/OETVHSDvmkyPgvX+X2w==", "dev": true, - "license": "(MIT OR CC0-1.0)", "engines": { "node": ">=10" }, @@ -2182,7 +2427,6 @@ "version": "5.0.1", "resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-5.0.1.tgz", "integrity": "sha512-quJQXlTSUGL2LH9SUXo8VwsY4soanhgo6LNSm84E1LBcE8s3O0wpdiRzyR9z/ZZJMlMWv37qOOb9pdJlMUEKFQ==", - "license": "MIT", "engines": { "node": ">=8" } @@ -2191,7 +2435,6 @@ "version": "4.3.0", "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.3.0.tgz", "integrity": "sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==", - "license": "MIT", "dependencies": { "color-convert": "^2.0.1" }, @@ -2207,7 +2450,6 @@ "resolved": "https://registry.npmjs.org/anymatch/-/anymatch-3.1.3.tgz", "integrity": "sha512-KMReFUr0B4t+D+OBkjR3KYqvocp2XaSzO55UcB6mgQMd3KbcE+mWTyvVV7D/zsdEbNnV6acZUutkiHQXvTr1Rw==", "dev": true, - "license": "ISC", "dependencies": { "normalize-path": "^3.0.0", "picomatch": "^2.0.4" @@ -2218,7 +2460,9 @@ }, "node_modules/apache-arrow": { "version": "14.0.2", - "license": "Apache-2.0", + "resolved": "https://registry.npmjs.org/apache-arrow/-/apache-arrow-14.0.2.tgz", + "integrity": "sha512-EBO2xJN36/XoY81nhLcwCJgFwkboDZeyNQ+OPsG7bCoQjc2BT0aTyH/MR6SrL+LirSNz+cYqjGRlupMMlP1aEg==", + "peer": true, "dependencies": { "@types/command-line-args": "5.2.0", "@types/command-line-usage": "5.0.2", @@ -2235,26 +2479,16 @@ "arrow2csv": "bin/arrow2csv.js" } }, - "node_modules/apache-arrow/node_modules/@types/node": { - "version": "20.3.0", - "license": "MIT" - }, - "node_modules/apache-arrow/node_modules/flatbuffers": { - "version": "23.5.26", - "license": "SEE LICENSE IN LICENSE" - }, "node_modules/aproba": { "version": "2.0.0", "resolved": "https://registry.npmjs.org/aproba/-/aproba-2.0.0.tgz", "integrity": "sha512-lYe4Gx7QT+MKGbDsA+Z+he/Wtef0BiwDOlK/XkBrdfsh9J/jPPXbX0tE9x9cl27Tmu5gg3QUbUrQYa/y+KOHPQ==", - "license": "ISC", "optional": true }, "node_modules/are-we-there-yet": { "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==", - "license": "ISC", "optional": true, "dependencies": { "delegates": "^1.0.0", @@ -2268,7 +2502,6 @@ "version": "3.6.2", "resolved": "https://registry.npmjs.org/readable-stream/-/readable-stream-3.6.2.tgz", "integrity": "sha512-9u/sniCrY3D5WdsERHzHE4G2YCXqoG5FTHUiCC4SIbr6XcLZBY05ya9EKjYek9O5xOAwjGq+1JdGBAS7Q9ScoA==", - "license": "MIT", "optional": true, "dependencies": { "inherits": "^2.0.3", @@ -2279,9 +2512,17 @@ "node": ">= 6" } }, + "node_modules/argparse": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/argparse/-/argparse-2.0.1.tgz", + "integrity": "sha512-8+9WqebbFzpX9OR+Wa6O29asIogeRMzcGtAINdpMHHyAg10f05aSFVBbcEqGf/PXw1EjAZ+q2/bEBg3DvurK3Q==", + "peer": true + }, "node_modules/array-back": { "version": "3.1.0", - "license": "MIT", + "resolved": "https://registry.npmjs.org/array-back/-/array-back-3.1.0.tgz", + "integrity": "sha512-TkuxA4UCOvxuDK6NZYXCalszEzj+TLszyASooky+i742l9TqsOdYCMJJupxRic61hwquNtppB3hgcuq9SVSH1Q==", + "peer": true, "engines": { "node": ">=6" } @@ -2290,7 +2531,6 @@ "version": "1.0.1", "resolved": "https://registry.npmjs.org/array-buffer-byte-length/-/array-buffer-byte-length-1.0.1.tgz", "integrity": "sha512-ahC5W1xgou+KTXix4sAO8Ki12Q+jf4i0+tmk3sC+zgcynshkHxzpXdImBehiUYKKKDwvfFiJl1tZt6ewscS1Mg==", - "license": "MIT", "dependencies": { "call-bind": "^1.0.5", "is-array-buffer": "^3.0.4" @@ -2304,7 +2544,8 @@ }, "node_modules/array-includes": { "version": "3.1.7", - "license": "MIT", + "resolved": "https://registry.npmjs.org/array-includes/-/array-includes-3.1.7.tgz", + "integrity": "sha512-dlcsNBIiWhPkHdOEEKnehA+RNUWDc4UqFtnIXU4uuYDPtA4LDkr7qip2p0VvFAEXNDr0yWZ9PJyIRiGjRLQzwQ==", "peer": true, "dependencies": { "call-bind": "^1.0.2", @@ -2322,7 +2563,8 @@ }, "node_modules/array.prototype.filter": { "version": "1.0.3", - "license": "MIT", + "resolved": "https://registry.npmjs.org/array.prototype.filter/-/array.prototype.filter-1.0.3.tgz", + "integrity": "sha512-VizNcj/RGJiUyQBgzwxzE5oHdeuXY5hSbbmKMlphj1cy1Vl7Pn2asCGbSrru6hSQjmCzqTBPVWAF/whmEOVHbw==", "peer": true, "dependencies": { "call-bind": "^1.0.2", @@ -2340,7 +2582,8 @@ }, "node_modules/array.prototype.findlastindex": { "version": "1.2.4", - "license": "MIT", + "resolved": "https://registry.npmjs.org/array.prototype.findlastindex/-/array.prototype.findlastindex-1.2.4.tgz", + "integrity": "sha512-hzvSHUshSpCflDR1QMUBLHGHP1VIEBegT4pix9H/Z92Xw3ySoy6c2qh7lJWTJnRJ8JCZ9bJNCgTyYaJGcJu6xQ==", "peer": true, "dependencies": { "call-bind": "^1.0.5", @@ -2358,7 +2601,8 @@ }, "node_modules/array.prototype.flat": { "version": "1.3.2", - "license": "MIT", + "resolved": "https://registry.npmjs.org/array.prototype.flat/-/array.prototype.flat-1.3.2.tgz", + "integrity": "sha512-djYB+Zx2vLewY8RWlNCUdHjDXs2XOgm602S9E7P/UpHgfeHL00cRiIF+IN/G/aUJ7kGPb6yO/ErDI5V2s8iycA==", "peer": true, "dependencies": { "call-bind": "^1.0.2", @@ -2375,7 +2619,8 @@ }, "node_modules/array.prototype.flatmap": { "version": "1.3.2", - "license": "MIT", + "resolved": "https://registry.npmjs.org/array.prototype.flatmap/-/array.prototype.flatmap-1.3.2.tgz", + "integrity": "sha512-Ewyx0c9PmpcsByhSW4r+9zDU7sGjFc86qf/kKtuSCRdhfbk0SNLLkaT5qvcHnRGgc5NP/ly/y+qkXkqONX54CQ==", "peer": true, "dependencies": { "call-bind": "^1.0.2", @@ -2394,7 +2639,6 @@ "version": "1.0.3", "resolved": "https://registry.npmjs.org/arraybuffer.prototype.slice/-/arraybuffer.prototype.slice-1.0.3.tgz", "integrity": "sha512-bMxMKAjg13EBSVscxTaYA4mRc5t1UAXa2kXiGTNfZ079HIWXEkKmkgFrh/nJqamaLSrXO5H4WFFkPEaLJWbs3A==", - "license": "MIT", "dependencies": { "array-buffer-byte-length": "^1.0.1", "call-bind": "^1.0.5", @@ -2416,7 +2660,6 @@ "version": "0.2.6", "resolved": "https://registry.npmjs.org/asn1/-/asn1-0.2.6.tgz", "integrity": "sha512-ix/FxPn0MDjeyJ7i/yoHGFt/EX6LyNbxSEhPPXODPL+KB0VPk86UYfL0lMdy+KCnv+fmvIzySwaK5COwqVbWTQ==", - "license": "MIT", "dependencies": { "safer-buffer": "~2.1.0" } @@ -2425,7 +2668,6 @@ "version": "1.0.0", "resolved": "https://registry.npmjs.org/assert-plus/-/assert-plus-1.0.0.tgz", "integrity": "sha512-NfJ4UzBCcQGLDlQq7nHxH+tv3kyZ0hHQqF5BO6J7tNJeP5do1llPr8dZ8zHonfhAu0PHAdMkSo+8o0wxg9lZWw==", - "license": "MIT", "engines": { "node": ">=0.8" } @@ -2433,14 +2675,12 @@ "node_modules/asynckit": { "version": "0.4.0", "resolved": "https://registry.npmjs.org/asynckit/-/asynckit-0.4.0.tgz", - "integrity": "sha512-Oei9OH4tRh0YqU3GxhX79dM/mwVgvbZJaSNaRk+bshkj0S5cfHcgYakreBjrHwatXKbz+IoIdYLxrKim2MjW0Q==", - "license": "MIT" + "integrity": "sha512-Oei9OH4tRh0YqU3GxhX79dM/mwVgvbZJaSNaRk+bshkj0S5cfHcgYakreBjrHwatXKbz+IoIdYLxrKim2MjW0Q==" }, "node_modules/available-typed-arrays": { "version": "1.0.7", "resolved": "https://registry.npmjs.org/available-typed-arrays/-/available-typed-arrays-1.0.7.tgz", "integrity": "sha512-wvUjBtSGN7+7SjNpq/9M2Tg350UZD3q62IFZLbRAR1bSMlCo1ZaeW+BJ+D090e4hIIZLBcTDWe4Mh4jvUDajzQ==", - "license": "MIT", "dependencies": { "possible-typed-array-names": "^1.0.0" }, @@ -2455,7 +2695,6 @@ "version": "0.7.0", "resolved": "https://registry.npmjs.org/aws-sign2/-/aws-sign2-0.7.0.tgz", "integrity": "sha512-08kcGqnYf/YmjoRhfxyu+CLxBjUtHLXLXX/vUfx9l2LYzG3c1m61nrpyFUZI6zeS+Li/wWMMidD9KgrqtGq3mA==", - "license": "Apache-2.0", "engines": { "node": "*" } @@ -2463,14 +2702,12 @@ "node_modules/aws4": { "version": "1.12.0", "resolved": "https://registry.npmjs.org/aws4/-/aws4-1.12.0.tgz", - "integrity": "sha512-NmWvPnx0F1SfrQbYwOi7OeaNGokp9XhzNioJ/CSBs8Qa4vxug81mhJEAVZwxXuBmYB5KDRfMq/F3RR0BIU7sWg==", - "license": "MIT" + "integrity": "sha512-NmWvPnx0F1SfrQbYwOi7OeaNGokp9XhzNioJ/CSBs8Qa4vxug81mhJEAVZwxXuBmYB5KDRfMq/F3RR0BIU7sWg==" }, "node_modules/axios": { "version": "1.6.7", "resolved": "https://registry.npmjs.org/axios/-/axios-1.6.7.tgz", "integrity": "sha512-/hDJGff6/c7u0hDkvkGxR/oy6CbCs8ziCsC7SqmhjfozqiJGc8Z11wrv9z9lYfY4K8l+H9TpjcMDX0xOZmx+RA==", - "license": "MIT", "dependencies": { "follow-redirects": "^1.15.4", "form-data": "^4.0.0", @@ -2480,15 +2717,13 @@ "node_modules/b4a": { "version": "1.6.6", "resolved": "https://registry.npmjs.org/b4a/-/b4a-1.6.6.tgz", - "integrity": "sha512-5Tk1HLk6b6ctmjIkAcU/Ujv/1WqiDl0F0JdRCR80VsOcUlHcu7pWeWRlOqQLHfDEsVx9YH/aif5AG4ehoCtTmg==", - "license": "Apache-2.0" + "integrity": "sha512-5Tk1HLk6b6ctmjIkAcU/Ujv/1WqiDl0F0JdRCR80VsOcUlHcu7pWeWRlOqQLHfDEsVx9YH/aif5AG4ehoCtTmg==" }, "node_modules/babel-jest": { "version": "29.7.0", "resolved": "https://registry.npmjs.org/babel-jest/-/babel-jest-29.7.0.tgz", "integrity": "sha512-BrvGY3xZSwEcCzKvKsCi2GgHqDqsYkOP4/by5xCgIwGXQxIEh+8ew3gmrE1y7XRR6LHZIj6yLYnUi/mm2KXKBg==", "dev": true, - "license": "MIT", "dependencies": { "@jest/transform": "^29.7.0", "@types/babel__core": "^7.1.14", @@ -2510,7 +2745,6 @@ "resolved": "https://registry.npmjs.org/babel-plugin-istanbul/-/babel-plugin-istanbul-6.1.1.tgz", "integrity": "sha512-Y1IQok9821cC9onCx5otgFfRm7Lm+I+wwxOx738M/WLPZ9Q42m4IG5W0FNX8WLL2gYMZo3JkuXIH2DOpWM+qwA==", "dev": true, - "license": "BSD-3-Clause", "dependencies": { "@babel/helper-plugin-utils": "^7.0.0", "@istanbuljs/load-nyc-config": "^1.0.0", @@ -2527,7 +2761,6 @@ "resolved": "https://registry.npmjs.org/istanbul-lib-instrument/-/istanbul-lib-instrument-5.2.1.tgz", "integrity": "sha512-pzqtp31nLv/XFOzXGuvhCb8qhjmTVo5vjVk19XE4CRlSWz0KoeJ3bw9XsA7nOp9YBf4qHjwBxkDzKcME/J29Yg==", "dev": true, - "license": "BSD-3-Clause", "dependencies": { "@babel/core": "^7.12.3", "@babel/parser": "^7.14.7", @@ -2544,7 +2777,6 @@ "resolved": "https://registry.npmjs.org/babel-plugin-jest-hoist/-/babel-plugin-jest-hoist-29.6.3.tgz", "integrity": "sha512-ESAc/RJvGTFEzRwOTT4+lNDk/GNHMkKbNzsvT0qKRfDyyYTskxB5rnU2njIDYVxXCBHHEI1c0YwHob3WaYujOg==", "dev": true, - "license": "MIT", "dependencies": { "@babel/template": "^7.3.3", "@babel/types": "^7.3.3", @@ -2560,7 +2792,6 @@ "resolved": "https://registry.npmjs.org/babel-preset-current-node-syntax/-/babel-preset-current-node-syntax-1.0.1.tgz", "integrity": "sha512-M7LQ0bxarkxQoN+vz5aJPsLBn77n8QgTFmo8WK0/44auK2xlCXrYcUxHFxgU7qW5Yzw/CjmLRK2uJzaCd7LvqQ==", "dev": true, - "license": "MIT", "dependencies": { "@babel/plugin-syntax-async-generators": "^7.8.4", "@babel/plugin-syntax-bigint": "^7.8.3", @@ -2584,7 +2815,6 @@ "resolved": "https://registry.npmjs.org/babel-preset-jest/-/babel-preset-jest-29.6.3.tgz", "integrity": "sha512-0B3bhxR6snWXJZtR/RliHTDPRgn1sNHOR0yVtq/IiQFyuOVjFS+wuio/R4gSNkyYmKmJB4wGZv2NZanmKmTnNA==", "dev": true, - "license": "MIT", "dependencies": { "babel-plugin-jest-hoist": "^29.6.3", "babel-preset-current-node-syntax": "^1.0.0" @@ -2599,8 +2829,40 @@ "node_modules/balanced-match": { "version": "1.0.2", "resolved": "https://registry.npmjs.org/balanced-match/-/balanced-match-1.0.2.tgz", - "integrity": "sha512-3oSeUO0TMV67hN1AmbXsK4yaqU7tjiHlbxRDZOpH0KW9+CeX4bRAaX0Anxt0tx2MrpRpWwQaPwIlISEJhYU5Pw==", - "license": "MIT" + "integrity": "sha512-3oSeUO0TMV67hN1AmbXsK4yaqU7tjiHlbxRDZOpH0KW9+CeX4bRAaX0Anxt0tx2MrpRpWwQaPwIlISEJhYU5Pw==" + }, + "node_modules/bare-events": { + "version": "2.2.1", + "resolved": "https://registry.npmjs.org/bare-events/-/bare-events-2.2.1.tgz", + "integrity": "sha512-9GYPpsPFvrWBkelIhOhTWtkeZxVxZOdb3VnFTCzlOo3OjvmTvzLoZFUT8kNFACx0vJej6QPney1Cf9BvzCNE/A==", + "optional": true + }, + "node_modules/bare-fs": { + "version": "2.2.2", + "resolved": "https://registry.npmjs.org/bare-fs/-/bare-fs-2.2.2.tgz", + "integrity": "sha512-X9IqgvyB0/VA5OZJyb5ZstoN62AzD7YxVGog13kkfYWYqJYcK0kcqLZ6TrmH5qr4/8//ejVcX4x/a0UvaogXmA==", + "optional": true, + "dependencies": { + "bare-events": "^2.0.0", + "bare-os": "^2.0.0", + "bare-path": "^2.0.0", + "streamx": "^2.13.0" + } + }, + "node_modules/bare-os": { + "version": "2.2.1", + "resolved": "https://registry.npmjs.org/bare-os/-/bare-os-2.2.1.tgz", + "integrity": "sha512-OwPyHgBBMkhC29Hl3O4/YfxW9n7mdTr2+SsO29XBWKKJsbgj3mnorDB80r5TiCQgQstgE5ga1qNYrpes6NvX2w==", + "optional": true + }, + "node_modules/bare-path": { + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/bare-path/-/bare-path-2.1.0.tgz", + "integrity": "sha512-DIIg7ts8bdRKwJRJrUMy/PICEaQZaPGZ26lsSx9MJSwIhSrcdHn7/C8W+XmnG/rKi6BaRcz+JO00CjZteybDtw==", + "optional": true, + "dependencies": { + "bare-os": "^2.1.0" + } }, "node_modules/base-64": { "version": "0.1.0", @@ -2624,14 +2886,12 @@ "type": "consulting", "url": "https://feross.org/support" } - ], - "license": "MIT" + ] }, "node_modules/bcrypt-pbkdf": { "version": "1.0.2", "resolved": "https://registry.npmjs.org/bcrypt-pbkdf/-/bcrypt-pbkdf-1.0.2.tgz", "integrity": "sha512-qeFIXtP4MSoi6NLqO12WfqARWWuCKi2Rn/9hJLEmtB5yTNr9DqFWkJRCf2qShWzPeAMRnOgCrq0sg/KLv5ES9w==", - "license": "BSD-3-Clause", "dependencies": { "tweetnacl": "^0.14.3" } @@ -2639,14 +2899,12 @@ "node_modules/before-after-hook": { "version": "2.2.3", "resolved": "https://registry.npmjs.org/before-after-hook/-/before-after-hook-2.2.3.tgz", - "integrity": "sha512-NzUnlZexiaH/46WDhANlyR2bXRopNg4F/zuSA3OpZnllCUgRaOF2znDioDWrmbNVsuZk6l9pMquQB38cfBZwkQ==", - "license": "Apache-2.0" + "integrity": "sha512-NzUnlZexiaH/46WDhANlyR2bXRopNg4F/zuSA3OpZnllCUgRaOF2znDioDWrmbNVsuZk6l9pMquQB38cfBZwkQ==" }, "node_modules/bindings": { "version": "1.5.0", "resolved": "https://registry.npmjs.org/bindings/-/bindings-1.5.0.tgz", "integrity": "sha512-p2q/t/mhvuOj/UeLlV6566GD/guowlr0hHxClI0W9m7MWYkL1F0hLo+0Aexs9HSPCtR1SXQ0TD3MMKrXZajbiQ==", - "license": "MIT", "dependencies": { "file-uri-to-path": "1.0.0" } @@ -2655,7 +2913,6 @@ "version": "4.1.0", "resolved": "https://registry.npmjs.org/bl/-/bl-4.1.0.tgz", "integrity": "sha512-1W07cM9gS6DcLperZfFSj+bWLtaPGSOHWhPiGzXmvVJbRLdG82sH/Kn8EtW1VqWVA54AKf2h5k5BbnIbwF3h6w==", - "license": "MIT", "dependencies": { "buffer": "^5.5.0", "inherits": "^2.0.4", @@ -2680,7 +2937,6 @@ "url": "https://feross.org/support" } ], - "license": "MIT", "dependencies": { "base64-js": "^1.3.1", "ieee754": "^1.1.13" @@ -2690,7 +2946,6 @@ "version": "3.6.2", "resolved": "https://registry.npmjs.org/readable-stream/-/readable-stream-3.6.2.tgz", "integrity": "sha512-9u/sniCrY3D5WdsERHzHE4G2YCXqoG5FTHUiCC4SIbr6XcLZBY05ya9EKjYek9O5xOAwjGq+1JdGBAS7Q9ScoA==", - "license": "MIT", "dependencies": { "inherits": "^2.0.3", "string_decoder": "^1.1.1", @@ -2703,14 +2958,12 @@ "node_modules/boolbase": { "version": "1.0.0", "resolved": "https://registry.npmjs.org/boolbase/-/boolbase-1.0.0.tgz", - "integrity": "sha512-JZOSA7Mo9sNGB8+UjSgzdLtokWAky1zbztM3WRLCbZ70/3cTANmQmOdR7y2g+J0e2WXywy1yS468tY+IruqEww==", - "license": "ISC" + "integrity": "sha512-JZOSA7Mo9sNGB8+UjSgzdLtokWAky1zbztM3WRLCbZ70/3cTANmQmOdR7y2g+J0e2WXywy1yS468tY+IruqEww==" }, "node_modules/brace-expansion": { "version": "1.1.11", "resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-1.1.11.tgz", "integrity": "sha512-iCuPHDFgrHX7H2vEI/5xpz07zSHB00TpugqhmYtVmMO6518mCuRMoOYFldEBl0g187ufozdaHgWKcYFb61qGiA==", - "license": "MIT", "dependencies": { "balanced-match": "^1.0.0", "concat-map": "0.0.1" @@ -2721,7 +2974,6 @@ "resolved": "https://registry.npmjs.org/braces/-/braces-3.0.2.tgz", "integrity": "sha512-b8um+L1RzM3WDSzvhm6gIz1yfTbBt6YTlcEKAvsmqCZZFw46z626lVj9j1yEPW33H5H+lBQpZMP1k8l+78Ha0A==", "dev": true, - "license": "MIT", "dependencies": { "fill-range": "^7.0.1" }, @@ -2748,7 +3000,6 @@ "url": "https://github.com/sponsors/ai" } ], - "license": "MIT", "dependencies": { "caniuse-lite": "^1.0.30001587", "electron-to-chromium": "^1.4.668", @@ -2767,7 +3018,6 @@ "resolved": "https://registry.npmjs.org/bs-logger/-/bs-logger-0.2.6.tgz", "integrity": "sha512-pd8DCoxmbgc7hyPKOvxtqNcjYoOsABPQdcCUjGp3d42VR2CX1ORhk2A87oqqu5R1kk+76nsxZupkmyd+MVtCog==", "dev": true, - "license": "MIT", "dependencies": { "fast-json-stable-stringify": "2.x" }, @@ -2780,7 +3030,6 @@ "resolved": "https://registry.npmjs.org/bser/-/bser-2.1.1.tgz", "integrity": "sha512-gQxTNE/GAfIIrmHLUE3oJyp5FO6HRBfhjnw4/wMmA63ZGDJnWBmgY/lyQBpnDUkGmAhbSe39tx2d/iTOAfglwQ==", "dev": true, - "license": "Apache-2.0", "dependencies": { "node-int64": "^0.4.0" } @@ -2803,7 +3052,6 @@ "url": "https://feross.org/support" } ], - "license": "MIT", "optional": true, "dependencies": { "base64-js": "^1.3.1", @@ -2814,14 +3062,12 @@ "version": "1.1.2", "resolved": "https://registry.npmjs.org/buffer-from/-/buffer-from-1.1.2.tgz", "integrity": "sha512-E+XQCRwSbaaiChtv6k6Dwgc+bx+Bs6vuKJHHl5kox/BaKbhiXzqQOwK4cO22yElGp2OCmjwVhT3HmxgyPGnJfQ==", - "dev": true, - "license": "MIT" + "dev": true }, "node_modules/buffer-writer": { "version": "2.0.0", "resolved": "https://registry.npmjs.org/buffer-writer/-/buffer-writer-2.0.0.tgz", "integrity": "sha512-a7ZpuTZU1TRtnwyCNW3I5dc0wWNC3VR9S++Ewyk2HHZdrO3CQJqSpd+95Us590V6AL7JqUAH2IwZ/398PmNFgw==", - "license": "MIT", "engines": { "node": ">=4" } @@ -2830,7 +3076,6 @@ "version": "15.3.0", "resolved": "https://registry.npmjs.org/cacache/-/cacache-15.3.0.tgz", "integrity": "sha512-VVdYzXEn+cnbXpFgWs5hTT7OScegHVmLhJIR8Ufqk3iFD6A6j5iSX1KuBTfNEv4tdJWE2PzA6IVFtcLC7fN9wQ==", - "license": "ISC", "optional": true, "dependencies": { "@npmcli/fs": "^1.0.0", @@ -2860,7 +3105,6 @@ "version": "6.0.0", "resolved": "https://registry.npmjs.org/lru-cache/-/lru-cache-6.0.0.tgz", "integrity": "sha512-Jo6dJ04CmSjuznwJSS3pUeWmd/H0ffTlkXXgwZi+eq1UCmqQwCh+eLsYOYCwY991i2Fah4h1BEMCx4qThGbsiA==", - "license": "ISC", "optional": true, "dependencies": { "yallist": "^4.0.0" @@ -2873,14 +3117,12 @@ "version": "4.0.0", "resolved": "https://registry.npmjs.org/yallist/-/yallist-4.0.0.tgz", "integrity": "sha512-3wdGidZyq5PB084XLES5TpOSRA3wjXAlIWMhum2kRcv/41Sn2emQ0dycQW4uZXLejwKvg6EsvbdlVL+FYEct7A==", - "license": "ISC", "optional": true }, "node_modules/call-bind": { "version": "1.0.7", "resolved": "https://registry.npmjs.org/call-bind/-/call-bind-1.0.7.tgz", "integrity": "sha512-GHTSNSYICQ7scH7sZ+M2rFopRoLh8t2bLSW6BbgrtLsahOIB5iyAVJf9GjWK3cYTDaMj4XdBpM1cA6pIS0Kv2w==", - "license": "MIT", "dependencies": { "es-define-property": "^1.0.0", "es-errors": "^1.3.0", @@ -2899,7 +3141,6 @@ "version": "3.1.0", "resolved": "https://registry.npmjs.org/callsites/-/callsites-3.1.0.tgz", "integrity": "sha512-P8BjAsXvZS+VIDUI11hHCQEv74YT67YUi5JJFNWIqL235sBmjX4+qx9Muvls5ivyNENctx46xQLQ3aTuE7ssaQ==", - "license": "MIT", "engines": { "node": ">=6" } @@ -2909,13 +3150,14 @@ "resolved": "https://registry.npmjs.org/camelcase/-/camelcase-5.3.1.tgz", "integrity": "sha512-L28STB170nwWS63UjtlEOE3dldQApaJXZkOI1uMFfzf3rRuPegHaHesyee+YxQ+W6SvRDQV6UrdOdRiR153wJg==", "dev": true, - "license": "MIT", "engines": { "node": ">=6" } }, "node_modules/caniuse-lite": { - "version": "1.0.30001591", + "version": "1.0.30001597", + "resolved": "https://registry.npmjs.org/caniuse-lite/-/caniuse-lite-1.0.30001597.tgz", + "integrity": "sha512-7LjJvmQU6Sj7bL0j5b5WY/3n7utXUJvAe1lxhsHDbLmwX9mdL86Yjtr+5SRCyf8qME4M7pU2hswj0FpyBVCv9w==", "dev": true, "funding": [ { @@ -2930,20 +3172,17 @@ "type": "github", "url": "https://github.com/sponsors/ai" } - ], - "license": "CC-BY-4.0" + ] }, "node_modules/caseless": { "version": "0.12.0", "resolved": "https://registry.npmjs.org/caseless/-/caseless-0.12.0.tgz", - "integrity": "sha512-4tYFyifaFfGacoiObjJegolkwSU4xQNGbVgUiNYVUxbQ2x2lUsFvY4hVgVzGiIe6WLOPqycWXA40l+PWsxthUw==", - "license": "Apache-2.0" + "integrity": "sha512-4tYFyifaFfGacoiObjJegolkwSU4xQNGbVgUiNYVUxbQ2x2lUsFvY4hVgVzGiIe6WLOPqycWXA40l+PWsxthUw==" }, "node_modules/chalk": { "version": "4.1.2", "resolved": "https://registry.npmjs.org/chalk/-/chalk-4.1.2.tgz", "integrity": "sha512-oKnbhFyRIXpUuez8iBMmyEa4nbj4IOQyuhc/wy9kY7/WVPcwIO9VA668Pu8RkO7+0G76SLROeyw9CpQ061i4mA==", - "license": "MIT", "dependencies": { "ansi-styles": "^4.1.0", "supports-color": "^7.1.0" @@ -2957,7 +3196,9 @@ }, "node_modules/chalk-template": { "version": "0.4.0", - "license": "MIT", + "resolved": "https://registry.npmjs.org/chalk-template/-/chalk-template-0.4.0.tgz", + "integrity": "sha512-/ghrgmhfY8RaSdeo43hNXxpoHAtxdbskUHjPpfqUWGttFgycUhYPGx3YZBCnUCvOa7Doivn1IZec3DEGFoMgLg==", + "peer": true, "dependencies": { "chalk": "^4.1.2" }, @@ -2973,7 +3214,6 @@ "resolved": "https://registry.npmjs.org/char-regex/-/char-regex-1.0.2.tgz", "integrity": "sha512-kWWXztvZ5SBQV+eRgKFeh8q5sLuZY2+8WUIzlxWVTg+oGwY14qylx1KbKzHd8P6ZYkAg0xyIDU9JMHhyJMZ1jw==", "dev": true, - "license": "MIT", "engines": { "node": ">=10" } @@ -2982,7 +3222,6 @@ "version": "0.0.2", "resolved": "https://registry.npmjs.org/charenc/-/charenc-0.0.2.tgz", "integrity": "sha512-yrLQ/yVUFXkzg7EDQsPieE/53+0RlaWTs+wBrvW36cyilJ2SaDWfl4Yj7MtLTXleV9uEKefbAGUPv2/iWSooRA==", - "license": "BSD-3-Clause", "engines": { "node": "*" } @@ -2991,7 +3230,6 @@ "version": "1.0.0-rc.12", "resolved": "https://registry.npmjs.org/cheerio/-/cheerio-1.0.0-rc.12.tgz", "integrity": "sha512-VqR8m68vM46BNnuZ5NtnGBKIE/DfN0cRIzg9n40EIq9NOv90ayxLBXA8fXC5gquFRGJSTRqBq25Jt2ECLR431Q==", - "license": "MIT", "dependencies": { "cheerio-select": "^2.1.0", "dom-serializer": "^2.0.0", @@ -3012,7 +3250,6 @@ "version": "2.1.0", "resolved": "https://registry.npmjs.org/cheerio-select/-/cheerio-select-2.1.0.tgz", "integrity": "sha512-9v9kG0LvzrlcungtnJtpGNxY+fzECQKhK4EGJX2vByejiMX84MFNQw4UxPJl3bFbTMw+Dfs37XaIkCwTZfLh4g==", - "license": "BSD-2-Clause", "dependencies": { "boolbase": "^1.0.0", "css-select": "^5.1.0", @@ -3029,7 +3266,6 @@ "version": "2.0.0", "resolved": "https://registry.npmjs.org/chownr/-/chownr-2.0.0.tgz", "integrity": "sha512-bIomtDF5KGpdogkLd9VspvFzk9KfpyyGlS8YFVZl7TGPBHL5snIOnxeshwVgPteQ9b4Eydl+pVbIyE1DcvCWgQ==", - "license": "ISC", "engines": { "node": ">=10" } @@ -3045,7 +3281,6 @@ "url": "https://github.com/sponsors/sibiraj-s" } ], - "license": "MIT", "engines": { "node": ">=8" } @@ -3054,14 +3289,12 @@ "version": "1.2.3", "resolved": "https://registry.npmjs.org/cjs-module-lexer/-/cjs-module-lexer-1.2.3.tgz", "integrity": "sha512-0TNiGstbQmCFwt4akjjBg5pLRTSyj/PkWQ1ZoO2zntmg9yLqSRxwEa4iCfQLGjqhiqBfOJa7W/E8wfGrTDmlZQ==", - "dev": true, - "license": "MIT" + "dev": true }, "node_modules/clean-stack": { "version": "2.2.0", "resolved": "https://registry.npmjs.org/clean-stack/-/clean-stack-2.2.0.tgz", "integrity": "sha512-4diC9HaTE+KRAMWhDhrGOECgWZxoevMc5TlkObMqNSsVU62PYzXZ/SMTjzyGAFF1YusgxGcSWTEXBhp0CPwQ1A==", - "license": "MIT", "optional": true, "engines": { "node": ">=6" @@ -3072,7 +3305,6 @@ "resolved": "https://registry.npmjs.org/cliui/-/cliui-8.0.1.tgz", "integrity": "sha512-BSeNnyus75C4//NQ9gQt1/csTXyo/8Sb+afLAkzAptFuMsod9HFokGNudZpi/oQV73hnVK+sR+5PVRMd+Dr7YQ==", "dev": true, - "license": "ISC", "dependencies": { "string-width": "^4.2.0", "strip-ansi": "^6.0.1", @@ -3087,7 +3319,6 @@ "resolved": "https://registry.npmjs.org/co/-/co-4.6.0.tgz", "integrity": "sha512-QVb0dM5HvG+uaxitm8wONl7jltx8dqhfU33DcqtOZcLSVIKSDDLDi7+0LbAKiyI8hD9u42m2YxXSkMGWThaecQ==", "dev": true, - "license": "MIT", "engines": { "iojs": ">= 1.0.0", "node": ">= 0.12.0" @@ -3097,14 +3328,12 @@ "version": "1.0.2", "resolved": "https://registry.npmjs.org/collect-v8-coverage/-/collect-v8-coverage-1.0.2.tgz", "integrity": "sha512-lHl4d5/ONEbLlJvaJNtsF/Lz+WvB07u2ycqTYbdrq7UypDXailES4valYb2eWiJFxZlVmpGekfqoxQhzyFdT4Q==", - "dev": true, - "license": "MIT" + "dev": true }, "node_modules/color": { "version": "4.2.3", "resolved": "https://registry.npmjs.org/color/-/color-4.2.3.tgz", "integrity": "sha512-1rXeuUUiGGrykh+CeBdu5Ie7OJwinCgQY0bc7GCRxy5xVHy+moaqkpL/jqQq0MtQOeYcrqEz4abc5f0KtU7W4A==", - "license": "MIT", "dependencies": { "color-convert": "^2.0.1", "color-string": "^1.9.0" @@ -3117,7 +3346,6 @@ "version": "2.0.1", "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz", "integrity": "sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==", - "license": "MIT", "dependencies": { "color-name": "~1.1.4" }, @@ -3128,14 +3356,12 @@ "node_modules/color-name": { "version": "1.1.4", "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz", - "integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==", - "license": "MIT" + "integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==" }, "node_modules/color-string": { "version": "1.9.1", "resolved": "https://registry.npmjs.org/color-string/-/color-string-1.9.1.tgz", "integrity": "sha512-shrVawQFojnZv6xM40anx4CkoDP+fZsw/ZerEMsW/pyzsRbElpsL/DBVW7q3ExxwusdNXI3lXpuhEZkzs8p5Eg==", - "license": "MIT", "dependencies": { "color-name": "^1.0.0", "simple-swizzle": "^0.2.2" @@ -3145,7 +3371,6 @@ "version": "1.1.3", "resolved": "https://registry.npmjs.org/color-support/-/color-support-1.1.3.tgz", "integrity": "sha512-qiBjkpbMLO/HL68y+lh4q0/O1MZFj2RX6X/KmMa3+gJD3z+WwI1ZzDHysvqHGS3mP6mznPckpXmw1nI9cJjyRg==", - "license": "ISC", "optional": true, "bin": { "color-support": "bin.js" @@ -3155,7 +3380,6 @@ "version": "1.0.8", "resolved": "https://registry.npmjs.org/combined-stream/-/combined-stream-1.0.8.tgz", "integrity": "sha512-FQN4MRfuJeHf7cBbBMJFXhKSDq+2kAArBlmRBvcvFE5BB1HZKXtSFASDhdlz9zOYwxh8lDdnvmMOe/+5cdoEdg==", - "license": "MIT", "dependencies": { "delayed-stream": "~1.0.0" }, @@ -3165,7 +3389,9 @@ }, "node_modules/command-line-args": { "version": "5.2.1", - "license": "MIT", + "resolved": "https://registry.npmjs.org/command-line-args/-/command-line-args-5.2.1.tgz", + "integrity": "sha512-H4UfQhZyakIjC74I9d34fGYDwk3XpSr17QhEd0Q3I9Xq1CETHo4Hcuo87WyWHpAF1aSLjLRf5lD9ZGX2qStUvg==", + "peer": true, "dependencies": { "array-back": "^3.1.0", "find-replace": "^3.0.0", @@ -3178,7 +3404,9 @@ }, "node_modules/command-line-usage": { "version": "7.0.1", - "license": "MIT", + "resolved": "https://registry.npmjs.org/command-line-usage/-/command-line-usage-7.0.1.tgz", + "integrity": "sha512-NCyznE//MuTjwi3y84QVUGEOT+P5oto1e1Pk/jFPVdPPfsG03qpTIl3yw6etR+v73d0lXsoojRpvbru2sqePxQ==", + "peer": true, "dependencies": { "array-back": "^6.2.2", "chalk-template": "^0.4.0", @@ -3191,14 +3419,18 @@ }, "node_modules/command-line-usage/node_modules/array-back": { "version": "6.2.2", - "license": "MIT", + "resolved": "https://registry.npmjs.org/array-back/-/array-back-6.2.2.tgz", + "integrity": "sha512-gUAZ7HPyb4SJczXAMUXMGAvI976JoK3qEx9v1FTmeYuJj0IBiaKttG1ydtGKdkfqWkIkouke7nG8ufGy77+Cvw==", + "peer": true, "engines": { "node": ">=12.17" } }, "node_modules/command-line-usage/node_modules/typical": { "version": "7.1.1", - "license": "MIT", + "resolved": "https://registry.npmjs.org/typical/-/typical-7.1.1.tgz", + "integrity": "sha512-T+tKVNs6Wu7IWiAce5BgMd7OZfNYUndHwc5MknN+UHOudi7sGZzuHdCadllRuqJ3fPtgFtIH9+lt9qRv6lmpfA==", + "peer": true, "engines": { "node": ">=12.17" } @@ -3207,7 +3439,6 @@ "version": "12.0.0", "resolved": "https://registry.npmjs.org/commander/-/commander-12.0.0.tgz", "integrity": "sha512-MwVNWlYjDTtOjX5PiD7o5pK0UrFU/OYgcJfjjK4RaHZETNtjJqrZa9Y9ds88+A+f+d5lv+561eZ+yCKoS3gbAA==", - "license": "MIT", "engines": { "node": ">=18" } @@ -3215,41 +3446,35 @@ "node_modules/concat-map": { "version": "0.0.1", "resolved": "https://registry.npmjs.org/concat-map/-/concat-map-0.0.1.tgz", - "integrity": "sha512-/Srv4dswyQNBfohGpz9o6Yb3Gz3SrUDqBH5rTuhGR7ahtlbYKnVxw2bCFMRljaA7EXHaXZ8wsHdodFvbkhKmqg==", - "license": "MIT" + "integrity": "sha512-/Srv4dswyQNBfohGpz9o6Yb3Gz3SrUDqBH5rTuhGR7ahtlbYKnVxw2bCFMRljaA7EXHaXZ8wsHdodFvbkhKmqg==" }, "node_modules/confusing-browser-globals": { "version": "1.0.11", "resolved": "https://registry.npmjs.org/confusing-browser-globals/-/confusing-browser-globals-1.0.11.tgz", - "integrity": "sha512-JsPKdmh8ZkmnHxDk55FZ1TqVLvEQTvoByJZRN9jzI0UjxK/QgAmsphz7PGtqgPieQZ/CQcHWXCR7ATDNhGe+YA==", - "license": "MIT" + "integrity": "sha512-JsPKdmh8ZkmnHxDk55FZ1TqVLvEQTvoByJZRN9jzI0UjxK/QgAmsphz7PGtqgPieQZ/CQcHWXCR7ATDNhGe+YA==" }, "node_modules/console-control-strings": { "version": "1.1.0", "resolved": "https://registry.npmjs.org/console-control-strings/-/console-control-strings-1.1.0.tgz", "integrity": "sha512-ty/fTekppD2fIwRvnZAVdeOiGd1c7YXEixbgJTNzqcxJWKQnjJ/V1bNEEE6hygpM3WjwHFUVK6HTjWSzV4a8sQ==", - "license": "ISC", "optional": true }, "node_modules/convert-source-map": { "version": "2.0.0", "resolved": "https://registry.npmjs.org/convert-source-map/-/convert-source-map-2.0.0.tgz", "integrity": "sha512-Kvp459HrV2FEJ1CAsi1Ku+MY3kasH19TFykTz2xWmMeq6bk2NU3XXvfJ+Q61m0xktWwt+1HSYf3JZsTms3aRJg==", - "dev": true, - "license": "MIT" + "dev": true }, "node_modules/core-util-is": { "version": "1.0.2", "resolved": "https://registry.npmjs.org/core-util-is/-/core-util-is-1.0.2.tgz", - "integrity": "sha512-3lqz5YjWTYnW6dlDa5TLaTCcShfar1e40rmcJVwCBJC6mWlFuj0eCHIElmG1g5kyuJ/GD+8Wn4FFCcz4gJPfaQ==", - "license": "MIT" + "integrity": "sha512-3lqz5YjWTYnW6dlDa5TLaTCcShfar1e40rmcJVwCBJC6mWlFuj0eCHIElmG1g5kyuJ/GD+8Wn4FFCcz4gJPfaQ==" }, "node_modules/create-jest": { "version": "29.7.0", "resolved": "https://registry.npmjs.org/create-jest/-/create-jest-29.7.0.tgz", "integrity": "sha512-Adz2bdH0Vq3F53KEMJOoftQFutWCukm6J24wbPWRO4k1kMY7gS7ds/uoJkNuV8wDCtWWnuwGcJwpWcih+zEW1Q==", "dev": true, - "license": "MIT", "dependencies": { "@jest/types": "^29.6.3", "chalk": "^4.0.0", @@ -3270,7 +3495,6 @@ "version": "7.0.3", "resolved": "https://registry.npmjs.org/cross-spawn/-/cross-spawn-7.0.3.tgz", "integrity": "sha512-iRDPJKUPVEND7dHPO8rkbOnPpyDygcDFtWjpeWNCgy8WP2rXcxXL8TskReQl6OrB2G7+UJrags1q15Fudc7G6w==", - "license": "MIT", "dependencies": { "path-key": "^3.1.0", "shebang-command": "^2.0.0", @@ -3284,7 +3508,6 @@ "version": "0.0.2", "resolved": "https://registry.npmjs.org/crypt/-/crypt-0.0.2.tgz", "integrity": "sha512-mCxBlsHFYh9C+HVpiEacem8FEBnMXgU9gy4zmNC+SXAZNB/1idgp/aulFJ4FgCi7GPEVbfyng092GqL2k2rmow==", - "license": "BSD-3-Clause", "engines": { "node": "*" } @@ -3293,7 +3516,6 @@ "version": "5.1.0", "resolved": "https://registry.npmjs.org/css-select/-/css-select-5.1.0.tgz", "integrity": "sha512-nwoRF1rvRRnnCqqY7updORDsuqKzqYJ28+oSMaJMMgOauh3fvwHqMS7EZpIPqK8GL+g9mKxF1vP/ZjSeNjEVHg==", - "license": "BSD-2-Clause", "dependencies": { "boolbase": "^1.0.0", "css-what": "^6.1.0", @@ -3309,7 +3531,6 @@ "version": "6.1.0", "resolved": "https://registry.npmjs.org/css-what/-/css-what-6.1.0.tgz", "integrity": "sha512-HTUrgRJ7r4dsZKU6GjmpfRK1O76h97Z8MfS1G0FozR+oF2kG6Vfe8JE6zwrkbxigziPHinCJ+gCPjA9EaBDtRw==", - "license": "BSD-2-Clause", "engines": { "node": ">= 6" }, @@ -3321,7 +3542,6 @@ "version": "4.0.1", "resolved": "https://registry.npmjs.org/cssstyle/-/cssstyle-4.0.1.tgz", "integrity": "sha512-8ZYiJ3A/3OkDd093CBT/0UKDWry7ak4BdPTFP2+QEP7cmhouyq/Up709ASSj2cK02BbZiMgk7kYjZNS4QP5qrQ==", - "license": "MIT", "dependencies": { "rrweb-cssom": "^0.6.0" }, @@ -3333,7 +3553,6 @@ "version": "1.14.1", "resolved": "https://registry.npmjs.org/dashdash/-/dashdash-1.14.1.tgz", "integrity": "sha512-jRFi8UDGo6j+odZiEpjazZaWqEal3w/basFjQHQEwVtZJGDpxbH1MeYluwCS8Xq5wmLJooDlMgvVarmWfGM44g==", - "license": "MIT", "dependencies": { "assert-plus": "^1.0.0" }, @@ -3345,7 +3564,6 @@ "version": "4.0.1", "resolved": "https://registry.npmjs.org/data-uri-to-buffer/-/data-uri-to-buffer-4.0.1.tgz", "integrity": "sha512-0R9ikRb668HB7QDxT1vkpuUBtqc53YyAwMwGeUFKRojY/NWKvdZ+9UYtRfGmhqNbRkTSVpMbmyhXipFFv2cb/A==", - "license": "MIT", "engines": { "node": ">= 12" } @@ -3354,7 +3572,6 @@ "version": "5.0.0", "resolved": "https://registry.npmjs.org/data-urls/-/data-urls-5.0.0.tgz", "integrity": "sha512-ZYP5VBHshaDAiVZxjbRVcFJpc+4xGgT0bK3vzy1HLN8jTO975HEbuYzZJcHoQEY5K1a0z8YayJkyVETa08eNTg==", - "license": "MIT", "dependencies": { "whatwg-mimetype": "^4.0.0", "whatwg-url": "^14.0.0" @@ -3363,45 +3580,10 @@ "node": ">=18" } }, - "node_modules/data-urls/node_modules/tr46": { - "version": "5.0.0", - "resolved": "https://registry.npmjs.org/tr46/-/tr46-5.0.0.tgz", - "integrity": "sha512-tk2G5R2KRwBd+ZN0zaEXpmzdKyOYksXwywulIX95MBODjSzMIuQnQ3m8JxgbhnL1LeVo7lqQKsYa1O3Htl7K5g==", - "license": "MIT", - "dependencies": { - "punycode": "^2.3.1" - }, - "engines": { - "node": ">=18" - } - }, - "node_modules/data-urls/node_modules/webidl-conversions": { - "version": "7.0.0", - "resolved": "https://registry.npmjs.org/webidl-conversions/-/webidl-conversions-7.0.0.tgz", - "integrity": "sha512-VwddBukDzu71offAQR975unBIGqfKZpM+8ZX6ySk8nYhVoo5CYaZyzt3YBvYtRtO+aoGlqxPg/B87NGVZ/fu6g==", - "license": "BSD-2-Clause", - "engines": { - "node": ">=12" - } - }, - "node_modules/data-urls/node_modules/whatwg-url": { - "version": "14.0.0", - "resolved": "https://registry.npmjs.org/whatwg-url/-/whatwg-url-14.0.0.tgz", - "integrity": "sha512-1lfMEm2IEr7RIV+f4lUNPOqfFL+pO+Xw3fJSqmjX9AbXcXcYOkCe1P6+9VBZB6n94af16NfZf+sSk0JCBZC9aw==", - "license": "MIT", - "dependencies": { - "tr46": "^5.0.0", - "webidl-conversions": "^7.0.0" - }, - "engines": { - "node": ">=18" - } - }, "node_modules/dbinfoz": { "version": "0.1.4", "resolved": "https://registry.npmjs.org/dbinfoz/-/dbinfoz-0.1.4.tgz", "integrity": "sha512-MB56+xS571ip7qoXqxdnOUtXebbWaqoZN+S++W51SQYJRSjQFGEIPucNmxgeQlBGJ1vM4mQNV47wzV6fcrezZg==", - "license": "MIT", "dependencies": { "mysql2": "^3.9.1", "pg": "^8.11.3", @@ -3412,7 +3594,6 @@ "version": "4.3.4", "resolved": "https://registry.npmjs.org/debug/-/debug-4.3.4.tgz", "integrity": "sha512-PRWFHuSU3eDtQJPvnNY7Jcket1j0t5OuOsFzPPzsekD52Zl8qUfFIPEiswXqIvHWGVHOgX+7G/vCNNhehwxfkQ==", - "license": "MIT", "dependencies": { "ms": "2.1.2" }, @@ -3428,14 +3609,12 @@ "node_modules/decimal.js": { "version": "10.4.3", "resolved": "https://registry.npmjs.org/decimal.js/-/decimal.js-10.4.3.tgz", - "integrity": "sha512-VBBaLc1MgL5XpzgIP7ny5Z6Nx3UrRkIViUkPUdtl9aya5amy3De1gsUUSB1g3+3sExYNjCAsAznmukyxCb1GRA==", - "license": "MIT" + "integrity": "sha512-VBBaLc1MgL5XpzgIP7ny5Z6Nx3UrRkIViUkPUdtl9aya5amy3De1gsUUSB1g3+3sExYNjCAsAznmukyxCb1GRA==" }, "node_modules/decompress-response": { "version": "6.0.0", "resolved": "https://registry.npmjs.org/decompress-response/-/decompress-response-6.0.0.tgz", "integrity": "sha512-aW35yZM6Bb/4oJlZncMH2LCoZtJXTRxES17vE3hoRiowU2kWHaJKFkSBDnDR+cm9J+9QhXmREyIfv0pji9ejCQ==", - "license": "MIT", "dependencies": { "mimic-response": "^3.1.0" }, @@ -3451,7 +3630,6 @@ "resolved": "https://registry.npmjs.org/dedent/-/dedent-1.5.1.tgz", "integrity": "sha512-+LxW+KLWxu3HW3M2w2ympwtqPrqYRzU8fqi6Fhd18fBALe15blJPI/I4+UHveMVG6lJqB4JNd4UG0S5cnVHwIg==", "dev": true, - "license": "MIT", "peerDependencies": { "babel-plugin-macros": "^3.1.0" }, @@ -3465,14 +3643,14 @@ "version": "0.6.0", "resolved": "https://registry.npmjs.org/deep-extend/-/deep-extend-0.6.0.tgz", "integrity": "sha512-LOHxIOaPYdHlJRtCQfDIVZtfw/ufM8+rVj649RIHzcm/vGwQRXFt6OPqIFWsm2XEMrNIEtWR64sY1LEKD2vAOA==", - "license": "MIT", "engines": { "node": ">=4.0.0" } }, "node_modules/deep-is": { "version": "0.1.4", - "license": "MIT", + "resolved": "https://registry.npmjs.org/deep-is/-/deep-is-0.1.4.tgz", + "integrity": "sha512-oIPzksmTg4/MriiaYGO+okXDT7ztn/w3Eptv/+gSIdMdKsJo0u4CfYNFJPy+4SKMuCqGw2wxnA+URMg3t8a/bQ==", "peer": true }, "node_modules/deepmerge": { @@ -3480,7 +3658,6 @@ "resolved": "https://registry.npmjs.org/deepmerge/-/deepmerge-4.3.1.tgz", "integrity": "sha512-3sUqbMEc77XqpdNO7FRyRog+eW3ph+GYCbj+rK+uYyRMuwsVy0rMiVtPn+QJlKFvWP/1PYpapqYn0Me2knFn+A==", "dev": true, - "license": "MIT", "engines": { "node": ">=0.10.0" } @@ -3489,7 +3666,6 @@ "version": "1.1.4", "resolved": "https://registry.npmjs.org/define-data-property/-/define-data-property-1.1.4.tgz", "integrity": "sha512-rBMvIzlpA8v6E+SJZoo++HAYqsLrkg7MSfIinMPFhmkorw7X+dOXVJQs+QT69zGkzMyfDnIMN2Wid1+NbL3T+A==", - "license": "MIT", "dependencies": { "es-define-property": "^1.0.0", "es-errors": "^1.3.0", @@ -3506,7 +3682,6 @@ "version": "1.2.1", "resolved": "https://registry.npmjs.org/define-properties/-/define-properties-1.2.1.tgz", "integrity": "sha512-8QmQKqEASLd5nx0U1B1okLElbUuuttJ/AnYmRXbbbGDWh6uS208EjD4Xqq/I9wK7u0v6O08XhTWnt5XtEbR6Dg==", - "license": "MIT", "dependencies": { "define-data-property": "^1.0.1", "has-property-descriptors": "^1.0.0", @@ -3523,7 +3698,6 @@ "version": "1.0.0", "resolved": "https://registry.npmjs.org/delayed-stream/-/delayed-stream-1.0.0.tgz", "integrity": "sha512-ZySD7Nf91aLB0RxL4KGrKHBXl7Eds1DAmEdcoVawXnLD7SDhpNgtuII2aAkg7a7QS41jxPSZ17p4VdGnMHk3MQ==", - "license": "MIT", "engines": { "node": ">=0.4.0" } @@ -3532,14 +3706,12 @@ "version": "1.0.0", "resolved": "https://registry.npmjs.org/delegates/-/delegates-1.0.0.tgz", "integrity": "sha512-bd2L678uiWATM6m5Z1VzNCErI3jiGzt6HGY8OVICs40JQq/HALfbyNJmp0UDakEY4pMMaN0Ly5om/B1VI/+xfQ==", - "license": "MIT", "optional": true }, "node_modules/denque": { "version": "2.1.0", "resolved": "https://registry.npmjs.org/denque/-/denque-2.1.0.tgz", "integrity": "sha512-HVQE3AAb/pxF8fQAoiqpvg9i3evqug3hoiwakOyZAwJm+6vZehbkYXZ0l4JxS+I3QxM97v5aaRNhj8v5oBhekw==", - "license": "Apache-2.0", "engines": { "node": ">=0.10" } @@ -3547,14 +3719,12 @@ "node_modules/deprecation": { "version": "2.3.1", "resolved": "https://registry.npmjs.org/deprecation/-/deprecation-2.3.1.tgz", - "integrity": "sha512-xmHIy4F3scKVwMsQ4WnVaS8bHOx0DmVwRywosKhaILI0ywMDWPtBSku2HNxRvF7jtwDRsoEwYQSfbxj8b7RlJQ==", - "license": "ISC" + "integrity": "sha512-xmHIy4F3scKVwMsQ4WnVaS8bHOx0DmVwRywosKhaILI0ywMDWPtBSku2HNxRvF7jtwDRsoEwYQSfbxj8b7RlJQ==" }, "node_modules/detect-libc": { "version": "2.0.2", "resolved": "https://registry.npmjs.org/detect-libc/-/detect-libc-2.0.2.tgz", "integrity": "sha512-UX6sGumvvqSaXgdKGUsgZWqcUyIXZ/vZTrlRT/iobiKhGL0zL4d3osHj3uqllWJK+i+sixDS/3COVEOFbupFyw==", - "license": "Apache-2.0", "engines": { "node": ">=8" } @@ -3564,7 +3734,6 @@ "resolved": "https://registry.npmjs.org/detect-newline/-/detect-newline-3.1.0.tgz", "integrity": "sha512-TLz+x/vEXm/Y7P7wn1EJFNLxYpUD4TgMosxY6fAVJUnJMbupHBOncxyWUG9OpTaH9EBD7uFI5LfEgmMOc54DsA==", "dev": true, - "license": "MIT", "engines": { "node": ">=8" } @@ -3574,7 +3743,6 @@ "resolved": "https://registry.npmjs.org/diff-sequences/-/diff-sequences-29.6.3.tgz", "integrity": "sha512-EjePK1srD3P08o2j4f0ExnylqRs5B9tJjcp9t1krH2qRi8CCdsYfwe9JgSLurFBWwq4uOlipzfk5fHNvwFKr8Q==", "dev": true, - "license": "MIT", "engines": { "node": "^14.15.0 || ^16.10.0 || >=18.0.0" } @@ -3583,7 +3751,6 @@ "version": "1.3.0", "resolved": "https://registry.npmjs.org/digest-fetch/-/digest-fetch-1.3.0.tgz", "integrity": "sha512-CGJuv6iKNM7QyZlM2T3sPAdZWd/p9zQiRNS9G+9COUCwzWFTs0Xp8NF5iePx7wtvhDykReiRRrSeNb4oMmB8lA==", - "license": "ISC", "dependencies": { "base-64": "^0.1.0", "md5": "^2.3.0" @@ -3591,7 +3758,8 @@ }, "node_modules/doctrine": { "version": "3.0.0", - "license": "Apache-2.0", + "resolved": "https://registry.npmjs.org/doctrine/-/doctrine-3.0.0.tgz", + "integrity": "sha512-yS+Q5i3hBf7GBkd4KG8a7eBNNWNGLTaEwwYWUijIYM7zrlYDM0BFXHjjPWlWZ1Rg7UaddZeIDmi9jF3HmqiQ2w==", "peer": true, "dependencies": { "esutils": "^2.0.2" @@ -3604,7 +3772,6 @@ "version": "2.0.0", "resolved": "https://registry.npmjs.org/dom-serializer/-/dom-serializer-2.0.0.tgz", "integrity": "sha512-wIkAryiqt/nV5EQKqQpo3SToSOV9J0DnbJqwK7Wv/Trc92zIAYZ4FlMu+JPFW1DfGFt81ZTCGgDEabffXeLyJg==", - "license": "MIT", "dependencies": { "domelementtype": "^2.3.0", "domhandler": "^5.0.2", @@ -3623,14 +3790,12 @@ "type": "github", "url": "https://github.com/sponsors/fb55" } - ], - "license": "BSD-2-Clause" + ] }, "node_modules/domhandler": { "version": "5.0.3", "resolved": "https://registry.npmjs.org/domhandler/-/domhandler-5.0.3.tgz", "integrity": "sha512-cgwlv/1iFQiFnU96XXgROh8xTeetsnJiDsTc7TYCLFd9+/WNkIqPTxiM/8pSd8VIrhXGTf1Ny1q1hquVqDJB5w==", - "license": "BSD-2-Clause", "dependencies": { "domelementtype": "^2.3.0" }, @@ -3645,7 +3810,6 @@ "version": "3.1.0", "resolved": "https://registry.npmjs.org/domutils/-/domutils-3.1.0.tgz", "integrity": "sha512-H78uMmQtI2AhgDJjWeQmHwJJ2bLPD3GMmO7Zja/ZZh84wkm+4ut+IUnUdRa8uCGX88DiVx1j6FRe1XfxEgjEZA==", - "license": "BSD-2-Clause", "dependencies": { "dom-serializer": "^2.0.0", "domelementtype": "^2.3.0", @@ -3659,7 +3823,6 @@ "version": "16.4.5", "resolved": "https://registry.npmjs.org/dotenv/-/dotenv-16.4.5.tgz", "integrity": "sha512-ZmdL2rui+eB2YwhsWzjInR8LldtZHGDoQ1ugH85ppHKwpUHL7j7rN0Ti9NCnGiQbhaZ11FpR+7ao1dNsmduNUg==", - "license": "BSD-2-Clause", "engines": { "node": ">=12" }, @@ -3671,7 +3834,6 @@ "version": "0.1.2", "resolved": "https://registry.npmjs.org/ecc-jsbn/-/ecc-jsbn-0.1.2.tgz", "integrity": "sha512-eh9O+hwRHNbG4BLTjEl3nw044CkGm5X6LoaCf7LPp7UU8Qrt47JYNi6nPX8xjW97TKGKm1ouctg0QSpZe9qrnw==", - "license": "MIT", "dependencies": { "jsbn": "~0.1.0", "safer-buffer": "^2.1.0" @@ -3680,20 +3842,19 @@ "node_modules/ecc-jsbn/node_modules/jsbn": { "version": "0.1.1", "resolved": "https://registry.npmjs.org/jsbn/-/jsbn-0.1.1.tgz", - "integrity": "sha512-UVU9dibq2JcFWxQPA6KCqj5O42VOmAY3zQUfEKxU0KpTGXwNoCjkX1e13eHNvw/xPynt6pU0rZ1htjWTNTSXsg==", - "license": "MIT" + "integrity": "sha512-UVU9dibq2JcFWxQPA6KCqj5O42VOmAY3zQUfEKxU0KpTGXwNoCjkX1e13eHNvw/xPynt6pU0rZ1htjWTNTSXsg==" }, "node_modules/electron-to-chromium": { - "version": "1.4.687", - "dev": true, - "license": "ISC" + "version": "1.4.705", + "resolved": "https://registry.npmjs.org/electron-to-chromium/-/electron-to-chromium-1.4.705.tgz", + "integrity": "sha512-LKqhpwJCLhYId2VVwEzFXWrqQI5n5zBppz1W9ehhTlfYU8CUUW6kClbN8LHF/v7flMgRdETS772nqywJ+ckVAw==", + "dev": true }, "node_modules/emittery": { "version": "0.13.1", "resolved": "https://registry.npmjs.org/emittery/-/emittery-0.13.1.tgz", "integrity": "sha512-DeWwawk6r5yR9jFgnDKYt4sLS0LmHJJi3ZOnb5/JdbYwj3nW+FxQnHIjhBKz8YLC7oRNPVM9NQ47I3CVx34eqQ==", "dev": true, - "license": "MIT", "engines": { "node": ">=12" }, @@ -3705,14 +3866,12 @@ "version": "8.0.0", "resolved": "https://registry.npmjs.org/emoji-regex/-/emoji-regex-8.0.0.tgz", "integrity": "sha512-MSjYzcWNOA0ewAHpz0MxpYFvwg6yjy1NG3xteoqz644VCo/RPgnr1/GGt+ic3iJTzQ8Eu3TdM14SawnVUmGE6A==", - "devOptional": true, - "license": "MIT" + "devOptional": true }, "node_modules/encoding": { "version": "0.1.13", "resolved": "https://registry.npmjs.org/encoding/-/encoding-0.1.13.tgz", "integrity": "sha512-ETBauow1T35Y/WZMkio9jiM0Z5xjHHmJ4XmjZOq1l/dXz3lr2sRn87nJy20RupqSh1F2m3HHPSp8ShIPQJrJ3A==", - "license": "MIT", "optional": true, "dependencies": { "iconv-lite": "^0.6.2" @@ -3722,7 +3881,6 @@ "version": "1.4.4", "resolved": "https://registry.npmjs.org/end-of-stream/-/end-of-stream-1.4.4.tgz", "integrity": "sha512-+uw1inIHVPQoaVuHzRyXd21icM+cnt4CzD5rW+NC1wjOUSTOs+Te7FOv7AhN7vS9x/oIyhLP5PR1H+phQAHu5Q==", - "license": "MIT", "dependencies": { "once": "^1.4.0" } @@ -3731,7 +3889,6 @@ "version": "6.5.3", "resolved": "https://registry.npmjs.org/engine.io-client/-/engine.io-client-6.5.3.tgz", "integrity": "sha512-9Z0qLB0NIisTRt1DZ/8U2k12RJn8yls/nXMZLn+/N8hANT3TcYjKFKcwbw5zFQiN4NTde3TSY9zb79e1ij6j9Q==", - "license": "MIT", "dependencies": { "@socket.io/component-emitter": "~3.1.0", "debug": "~4.3.1", @@ -3740,11 +3897,30 @@ "xmlhttprequest-ssl": "~2.0.0" } }, + "node_modules/engine.io-client/node_modules/ws": { + "version": "8.11.0", + "resolved": "https://registry.npmjs.org/ws/-/ws-8.11.0.tgz", + "integrity": "sha512-HPG3wQd9sNQoT9xHyNCXoDUa+Xw/VevmY9FoHyQ+g+rrMn4j6FB4np7Z0OhdTgjx6MgQLK7jwSy1YecU1+4Asg==", + "engines": { + "node": ">=10.0.0" + }, + "peerDependencies": { + "bufferutil": "^4.0.1", + "utf-8-validate": "^5.0.2" + }, + "peerDependenciesMeta": { + "bufferutil": { + "optional": true + }, + "utf-8-validate": { + "optional": true + } + } + }, "node_modules/engine.io-parser": { "version": "5.2.2", "resolved": "https://registry.npmjs.org/engine.io-parser/-/engine.io-parser-5.2.2.tgz", "integrity": "sha512-RcyUFKA93/CXH20l4SoVvzZfrSDMOTUS3bWVpTt2FuFP+XYrL8i8oonHP7WInRyVHXh0n/ORtoeiE1os+8qkSw==", - "license": "MIT", "engines": { "node": ">=10.0.0" } @@ -3753,7 +3929,6 @@ "version": "4.5.0", "resolved": "https://registry.npmjs.org/entities/-/entities-4.5.0.tgz", "integrity": "sha512-V0hjH4dGPh9Ao5p0MoRY6BVqtwCjhz6vI5LT8AJ55H+4g9/4vbHx1I54fS0XuclLhDHArPQCiMjDxjaL8fPxhw==", - "license": "BSD-2-Clause", "engines": { "node": ">=0.12" }, @@ -3765,7 +3940,6 @@ "version": "2.2.1", "resolved": "https://registry.npmjs.org/env-paths/-/env-paths-2.2.1.tgz", "integrity": "sha512-+h1lkLKhZMTYjog1VEpJNG7NZJWcuc2DDk/qsqSTRRCOXiLjeQ1d1/udrUGhqMxUgAlwKNZ0cf2uqan5GLuS2A==", - "license": "MIT", "optional": true, "engines": { "node": ">=6" @@ -3775,7 +3949,6 @@ "version": "2.0.3", "resolved": "https://registry.npmjs.org/err-code/-/err-code-2.0.3.tgz", "integrity": "sha512-2bmlRpNKBxT/CRmPOlyISQpNj+qSeYvcym/uT0Jx2bMOlKLtSy1ZmLuVxSEKKyor/N5yhvp/ZiG1oE3DEYMSFA==", - "license": "MIT", "optional": true }, "node_modules/error-ex": { @@ -3783,7 +3956,6 @@ "resolved": "https://registry.npmjs.org/error-ex/-/error-ex-1.3.2.tgz", "integrity": "sha512-7dFHNmqeFSEt2ZBsCriorKnn3Z2pj+fd9kmI6QoWw4//DL+icEBfc0U7qJCisqrTsKTjw4fNFy2pW9OqStD84g==", "dev": true, - "license": "MIT", "dependencies": { "is-arrayish": "^0.2.1" } @@ -3792,7 +3964,6 @@ "version": "1.22.5", "resolved": "https://registry.npmjs.org/es-abstract/-/es-abstract-1.22.5.tgz", "integrity": "sha512-oW69R+4q2wG+Hc3KZePPZxOiisRIqfKBVo/HLx94QcJeWGU/8sZhCvc829rd1kS366vlJbzBfXf9yWwf0+Ko7w==", - "license": "MIT", "dependencies": { "array-buffer-byte-length": "^1.0.1", "arraybuffer.prototype.slice": "^1.0.3", @@ -3845,14 +4016,14 @@ }, "node_modules/es-array-method-boxes-properly": { "version": "1.0.0", - "license": "MIT", + "resolved": "https://registry.npmjs.org/es-array-method-boxes-properly/-/es-array-method-boxes-properly-1.0.0.tgz", + "integrity": "sha512-wd6JXUmyHmt8T5a2xreUwKcGPq6f1f+WwIJkijUqiGcJz1qqnZgP6XIK+QyIWU5lT7imeNxUll48bziG+TSYcA==", "peer": true }, "node_modules/es-define-property": { "version": "1.0.0", "resolved": "https://registry.npmjs.org/es-define-property/-/es-define-property-1.0.0.tgz", "integrity": "sha512-jxayLKShrEqqzJ0eumQbVhTYQM27CfT1T35+gCgDFoL82JLsXqTJ76zv6A0YLOgEnLUMvLzsDsGIrl8NFpT2gQ==", - "license": "MIT", "dependencies": { "get-intrinsic": "^1.2.4" }, @@ -3864,7 +4035,6 @@ "version": "1.3.0", "resolved": "https://registry.npmjs.org/es-errors/-/es-errors-1.3.0.tgz", "integrity": "sha512-Zf5H2Kxt2xjTvbJvP2ZWLEICxA6j+hAmMzIlypy4xcBg1vKVnx89Wy0GbS+kf5cwCVFFzdCFh2XSCFNULS6csw==", - "license": "MIT", "engines": { "node": ">= 0.4" } @@ -3873,7 +4043,6 @@ "version": "2.0.3", "resolved": "https://registry.npmjs.org/es-set-tostringtag/-/es-set-tostringtag-2.0.3.tgz", "integrity": "sha512-3T8uNMC3OQTHkFUsFq8r/BwAXLHvU/9O9mE0fBc/MY5iq/8H7ncvO947LmYA6ldWw9Uh8Yhf25zu6n7nML5QWQ==", - "license": "MIT", "dependencies": { "get-intrinsic": "^1.2.4", "has-tostringtag": "^1.0.2", @@ -3885,7 +4054,8 @@ }, "node_modules/es-shim-unscopables": { "version": "1.0.2", - "license": "MIT", + "resolved": "https://registry.npmjs.org/es-shim-unscopables/-/es-shim-unscopables-1.0.2.tgz", + "integrity": "sha512-J3yBRXCzDu4ULnQwxyToo/OjdMx6akgVC7K6few0a7F/0wLtmKKN7I73AH5T2836UuXRqN7Qg+IIUw/+YJksRw==", "peer": true, "dependencies": { "hasown": "^2.0.0" @@ -3895,7 +4065,6 @@ "version": "1.2.1", "resolved": "https://registry.npmjs.org/es-to-primitive/-/es-to-primitive-1.2.1.tgz", "integrity": "sha512-QCOllgZJtaUo9miYBcLChTUaHNjJF3PYs1VidD7AwiEj1kYxKeQTctLAezAOH5ZKRH0g2IgPn6KwB4IT8iRpvA==", - "license": "MIT", "dependencies": { "is-callable": "^1.1.4", "is-date-object": "^1.0.1", @@ -3914,7 +4083,6 @@ "integrity": "sha512-aARqgq8roFBj054KvQr5f1sFu0D65G+miZRCuJyJ0G13Zwx7vRar5Zhn2tkQNzIXcBrNVsv/8stehpj+GAjgbg==", "dev": true, "hasInstallScript": true, - "license": "MIT", "bin": { "esbuild": "bin/esbuild" }, @@ -3952,14 +4120,26 @@ "resolved": "https://registry.npmjs.org/escalade/-/escalade-3.1.2.tgz", "integrity": "sha512-ErCHMCae19vR8vQGe50xIsVomy19rg6gFu3+r3jkEO46suLMWBksvVyoGgQV+jOfl84ZSOSlmv6Gxa89PmTGmA==", "dev": true, - "license": "MIT", "engines": { "node": ">=6" } }, + "node_modules/escape-string-regexp": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/escape-string-regexp/-/escape-string-regexp-4.0.0.tgz", + "integrity": "sha512-TtpcNJ3XAzx3Gq8sWRzJaVajRs0uVxA2YAkdb1jm2YkPz4G6egUFAyA3n5vtEIZefPk5Wa4UXbKuS5fKkJWdgA==", + "peer": true, + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, "node_modules/eslint": { "version": "8.57.0", - "license": "MIT", + "resolved": "https://registry.npmjs.org/eslint/-/eslint-8.57.0.tgz", + "integrity": "sha512-dZ6+mexnaTIbSBZWgou51U6OmzIhYM2VcNdtiTtI7qPNZm35Akpr0f6vtw3w1Kmn5PYo+tZVfh13WrhpS6oLqQ==", "peer": true, "dependencies": { "@eslint-community/eslint-utils": "^4.2.0", @@ -4015,7 +4195,6 @@ "version": "15.0.0", "resolved": "https://registry.npmjs.org/eslint-config-airbnb-base/-/eslint-config-airbnb-base-15.0.0.tgz", "integrity": "sha512-xaX3z4ZZIcFLvh2oUNvcX5oEofXda7giYmuplVxoOg5A7EXJMrUyqRgR+mhDhPK8LZ4PttFOBvCYDbX3sUoUig==", - "license": "MIT", "dependencies": { "confusing-browser-globals": "^1.0.10", "object.assign": "^4.1.2", @@ -4034,7 +4213,6 @@ "version": "0.1.1", "resolved": "https://registry.npmjs.org/eslint-config-nodebb/-/eslint-config-nodebb-0.1.1.tgz", "integrity": "sha512-+LSX8iYe10fKb6k4JuyMygce7GQMSMsttdgi+BO+v+P3tXXxH//OUnEfZ2cbTungZap9Z8NuK6Tog1wrRQo6CQ==", - "license": "ISC", "dependencies": { "eslint-config-airbnb-base": "15.0.0" }, @@ -4045,7 +4223,8 @@ }, "node_modules/eslint-import-resolver-node": { "version": "0.3.9", - "license": "MIT", + "resolved": "https://registry.npmjs.org/eslint-import-resolver-node/-/eslint-import-resolver-node-0.3.9.tgz", + "integrity": "sha512-WFj2isz22JahUv+B788TlO3N6zL3nNJGU8CcZbPZvVEkBPaJdCV4vy5wyghty5ROFbCRnm132v8BScu5/1BQ8g==", "peer": true, "dependencies": { "debug": "^3.2.7", @@ -4055,7 +4234,8 @@ }, "node_modules/eslint-import-resolver-node/node_modules/debug": { "version": "3.2.7", - "license": "MIT", + "resolved": "https://registry.npmjs.org/debug/-/debug-3.2.7.tgz", + "integrity": "sha512-CFjzYYAi4ThfiQvizrFQevTTXHtnCqWfe7x1AhgEscTz6ZbLbfoLRLPugTQyBth6f8ZERVUSyWHFD/7Wu4t1XQ==", "peer": true, "dependencies": { "ms": "^2.1.1" @@ -4063,7 +4243,8 @@ }, "node_modules/eslint-module-utils": { "version": "2.8.1", - "license": "MIT", + "resolved": "https://registry.npmjs.org/eslint-module-utils/-/eslint-module-utils-2.8.1.tgz", + "integrity": "sha512-rXDXR3h7cs7dy9RNpUlQf80nX31XWJEyGq1tRMo+6GsO5VmTe4UTwtmonAD4ZkAsrfMVDA2wlGJ3790Ys+D49Q==", "peer": true, "dependencies": { "debug": "^3.2.7" @@ -4079,7 +4260,8 @@ }, "node_modules/eslint-module-utils/node_modules/debug": { "version": "3.2.7", - "license": "MIT", + "resolved": "https://registry.npmjs.org/debug/-/debug-3.2.7.tgz", + "integrity": "sha512-CFjzYYAi4ThfiQvizrFQevTTXHtnCqWfe7x1AhgEscTz6ZbLbfoLRLPugTQyBth6f8ZERVUSyWHFD/7Wu4t1XQ==", "peer": true, "dependencies": { "ms": "^2.1.1" @@ -4087,7 +4269,8 @@ }, "node_modules/eslint-plugin-import": { "version": "2.29.1", - "license": "MIT", + "resolved": "https://registry.npmjs.org/eslint-plugin-import/-/eslint-plugin-import-2.29.1.tgz", + "integrity": "sha512-BbPC0cuExzhiMo4Ff1BTVwHpjjv28C5R+btTOGaCRC7UEz801up0JadwkeSk5Ued6TG34uaczuVuH6qyy5YUxw==", "peer": true, "dependencies": { "array-includes": "^3.1.7", @@ -4117,7 +4300,8 @@ }, "node_modules/eslint-plugin-import/node_modules/debug": { "version": "3.2.7", - "license": "MIT", + "resolved": "https://registry.npmjs.org/debug/-/debug-3.2.7.tgz", + "integrity": "sha512-CFjzYYAi4ThfiQvizrFQevTTXHtnCqWfe7x1AhgEscTz6ZbLbfoLRLPugTQyBth6f8ZERVUSyWHFD/7Wu4t1XQ==", "peer": true, "dependencies": { "ms": "^2.1.1" @@ -4125,7 +4309,8 @@ }, "node_modules/eslint-plugin-import/node_modules/doctrine": { "version": "2.1.0", - "license": "Apache-2.0", + "resolved": "https://registry.npmjs.org/doctrine/-/doctrine-2.1.0.tgz", + "integrity": "sha512-35mSku4ZXK0vfCuHEDAwt55dg2jNajHZ1odvF+8SSr82EsZY4QmXfuWso8oEd8zRhVObSN18aM0CjSdoBX7zIw==", "peer": true, "dependencies": { "esutils": "^2.0.2" @@ -4136,7 +4321,8 @@ }, "node_modules/eslint-scope": { "version": "7.2.2", - "license": "BSD-2-Clause", + "resolved": "https://registry.npmjs.org/eslint-scope/-/eslint-scope-7.2.2.tgz", + "integrity": "sha512-dOt21O7lTMhDM+X9mB4GX+DZrZtCUJPL/wlcTqxyrx5IvO0IYtILdtrQGQp+8n5S0gwSVmOf9NQrjMOgfQZlIg==", "peer": true, "dependencies": { "esrecurse": "^4.3.0", @@ -4151,7 +4337,8 @@ }, "node_modules/eslint-visitor-keys": { "version": "3.4.3", - "license": "Apache-2.0", + "resolved": "https://registry.npmjs.org/eslint-visitor-keys/-/eslint-visitor-keys-3.4.3.tgz", + "integrity": "sha512-wpc+LXeiyiisxPlEkUzU6svyS1frIO3Mgxj1fdy7Pm8Ygzguax2N3Fa/D/ag1WqbOprdI+uY6wMUl8/a2G+iag==", "peer": true, "engines": { "node": "^12.22.0 || ^14.17.0 || >=16.0.0" @@ -4160,104 +4347,10 @@ "url": "https://opencollective.com/eslint" } }, - "node_modules/eslint/node_modules/argparse": { - "version": "2.0.1", - "license": "Python-2.0", - "peer": true - }, - "node_modules/eslint/node_modules/escape-string-regexp": { - "version": "4.0.0", - "license": "MIT", - "peer": true, - "engines": { - "node": ">=10" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - }, - "node_modules/eslint/node_modules/find-up": { - "version": "5.0.0", - "license": "MIT", - "peer": true, - "dependencies": { - "locate-path": "^6.0.0", - "path-exists": "^4.0.0" - }, - "engines": { - "node": ">=10" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - }, - "node_modules/eslint/node_modules/globals": { - "version": "13.24.0", - "license": "MIT", - "peer": true, - "dependencies": { - "type-fest": "^0.20.2" - }, - "engines": { - "node": ">=8" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - }, - "node_modules/eslint/node_modules/js-yaml": { - "version": "4.1.0", - "license": "MIT", - "peer": true, - "dependencies": { - "argparse": "^2.0.1" - }, - "bin": { - "js-yaml": "bin/js-yaml.js" - } - }, - "node_modules/eslint/node_modules/locate-path": { - "version": "6.0.0", - "license": "MIT", - "peer": true, - "dependencies": { - "p-locate": "^5.0.0" - }, - "engines": { - "node": ">=10" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - }, - "node_modules/eslint/node_modules/p-locate": { - "version": "5.0.0", - "license": "MIT", - "peer": true, - "dependencies": { - "p-limit": "^3.0.2" - }, - "engines": { - "node": ">=10" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - }, - "node_modules/eslint/node_modules/type-fest": { - "version": "0.20.2", - "license": "(MIT OR CC0-1.0)", - "peer": true, - "engines": { - "node": ">=10" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - }, "node_modules/espree": { "version": "9.6.1", - "license": "BSD-2-Clause", + "resolved": "https://registry.npmjs.org/espree/-/espree-9.6.1.tgz", + "integrity": "sha512-oruZaFkjorTpF32kDSI5/75ViwGeZginGGy2NoOSg3Q9bnwlnmDm4HLnkl0RE3n+njDXR037aY1+x58Z/zFdwQ==", "peer": true, "dependencies": { "acorn": "^8.9.0", @@ -4276,7 +4369,6 @@ "resolved": "https://registry.npmjs.org/esprima/-/esprima-4.0.1.tgz", "integrity": "sha512-eGuFFw7Upda+g4p+QHvnW0RyTX/SVeJBDM/gCtMARO0cLuT2HcEKnTPvhjV6aGeqrCB/sbNop0Kszm0jsaWU4A==", "dev": true, - "license": "BSD-2-Clause", "bin": { "esparse": "bin/esparse.js", "esvalidate": "bin/esvalidate.js" @@ -4287,7 +4379,8 @@ }, "node_modules/esquery": { "version": "1.5.0", - "license": "BSD-3-Clause", + "resolved": "https://registry.npmjs.org/esquery/-/esquery-1.5.0.tgz", + "integrity": "sha512-YQLXUplAwJgCydQ78IMJywZCceoqk1oH01OERdSAJc/7U2AylwjhSCLDEtqwg811idIS/9fIU5GjG73IgjKMVg==", "peer": true, "dependencies": { "estraverse": "^5.1.0" @@ -4298,7 +4391,8 @@ }, "node_modules/esrecurse": { "version": "4.3.0", - "license": "BSD-2-Clause", + "resolved": "https://registry.npmjs.org/esrecurse/-/esrecurse-4.3.0.tgz", + "integrity": "sha512-KmfKL3b6G+RXvP8N1vr3Tq1kL/oCFgn2NYXEtqP8/L3pKapUA4G8cFVaoF3SU323CD4XypR/ffioHmkti6/Tag==", "peer": true, "dependencies": { "estraverse": "^5.2.0" @@ -4309,7 +4403,8 @@ }, "node_modules/estraverse": { "version": "5.3.0", - "license": "BSD-2-Clause", + "resolved": "https://registry.npmjs.org/estraverse/-/estraverse-5.3.0.tgz", + "integrity": "sha512-MMdARuVEQziNTeJD8DgMqmhwR11BRQ/cBP+pLtYdSTnf3MIO8fFeiINEbX36ZdNlfU/7A9f3gUw49B3oQsvwBA==", "peer": true, "engines": { "node": ">=4.0" @@ -4317,7 +4412,8 @@ }, "node_modules/esutils": { "version": "2.0.3", - "license": "BSD-2-Clause", + "resolved": "https://registry.npmjs.org/esutils/-/esutils-2.0.3.tgz", + "integrity": "sha512-kVscqXk4OCp68SZ0dkgEKVi6/8ij300KBWTJq32P/dYeWTSwK41WyTxalN1eRmA5Z9UU/LX9D7FWSmV9SAYx6g==", "peer": true, "engines": { "node": ">=0.10.0" @@ -4327,7 +4423,6 @@ "version": "5.0.1", "resolved": "https://registry.npmjs.org/event-target-shim/-/event-target-shim-5.0.1.tgz", "integrity": "sha512-i/2XbnSz/uxRCU6+NdVJgKWDTM427+MqYbkQzD321DuCQJUqOuJKIA0IM2+W2xtYHdKOmZ4dR6fExsd4SXL+WQ==", - "license": "MIT", "engines": { "node": ">=6" } @@ -4336,7 +4431,6 @@ "version": "3.3.0", "resolved": "https://registry.npmjs.org/events/-/events-3.3.0.tgz", "integrity": "sha512-mQw+2fkQbALzQ7V0MY0IqdnXNOeTtP4r0lN9z7AAawCXgqea7bDii20AYrIBrFd/Hx0M2Ocz6S111CaFkUcb0Q==", - "license": "MIT", "engines": { "node": ">=0.8.x" } @@ -4346,7 +4440,6 @@ "resolved": "https://registry.npmjs.org/execa/-/execa-5.1.1.tgz", "integrity": "sha512-8uSpZZocAZRBAPIEINJj3Lo9HyGitllczc27Eh5YYojjMFMn8yHMDMaUHE2Jqfq05D/wucwI4JGURyXt1vchyg==", "dev": true, - "license": "MIT", "dependencies": { "cross-spawn": "^7.0.3", "get-stream": "^6.0.0", @@ -4378,7 +4471,6 @@ "version": "2.0.3", "resolved": "https://registry.npmjs.org/expand-template/-/expand-template-2.0.3.tgz", "integrity": "sha512-XYfuKMvj4O35f/pOXLObndIRvyQ+/+6AhODh+OKWj9S9498pHHn/IMszH+gt0fBCRWMNfk1ZSp5x3AifmnI2vg==", - "license": "(MIT OR WTFPL)", "engines": { "node": ">=6" } @@ -4388,7 +4480,6 @@ "resolved": "https://registry.npmjs.org/expect/-/expect-29.7.0.tgz", "integrity": "sha512-2Zks0hf1VLFYI1kbh0I5jP3KHHyCHpkfyHBzsSXRFgl/Bg9mWYfMW8oD+PdMPlEwy5HNsR9JutYy6pMeOh61nw==", "dev": true, - "license": "MIT", "dependencies": { "@jest/expect-utils": "^29.7.0", "jest-get-type": "^29.6.3", @@ -4403,8 +4494,7 @@ "node_modules/extend": { "version": "3.0.2", "resolved": "https://registry.npmjs.org/extend/-/extend-3.0.2.tgz", - "integrity": "sha512-fjquC59cD7CyW6urNXK0FBufkZcoiGG80wTuPujX590cB5Ttln20E2UB4S/WARVqhXffZl2LNgS+gQdPIIim/g==", - "license": "MIT" + "integrity": "sha512-fjquC59cD7CyW6urNXK0FBufkZcoiGG80wTuPujX590cB5Ttln20E2UB4S/WARVqhXffZl2LNgS+gQdPIIim/g==" }, "node_modules/extsprintf": { "version": "1.3.0", @@ -4412,44 +4502,41 @@ "integrity": "sha512-11Ndz7Nv+mvAC1j0ktTa7fAb0vLyGGX+rMHNBYQviQDGU0Hw7lhctJANqbPhu9nV9/izT/IntTgZ7Im/9LJs9g==", "engines": [ "node >=0.6.0" - ], - "license": "MIT" + ] }, "node_modules/fast-deep-equal": { "version": "3.1.3", "resolved": "https://registry.npmjs.org/fast-deep-equal/-/fast-deep-equal-3.1.3.tgz", - "integrity": "sha512-f3qQ9oQy9j2AhBe/H9VC91wLmKBCCU/gDOnKNAYG5hswO7BLKj09Hc5HYNz9cGI++xlpDCIgDaitVs03ATR84Q==", - "license": "MIT" + "integrity": "sha512-f3qQ9oQy9j2AhBe/H9VC91wLmKBCCU/gDOnKNAYG5hswO7BLKj09Hc5HYNz9cGI++xlpDCIgDaitVs03ATR84Q==" }, "node_modules/fast-fifo": { "version": "1.3.2", "resolved": "https://registry.npmjs.org/fast-fifo/-/fast-fifo-1.3.2.tgz", - "integrity": "sha512-/d9sfos4yxzpwkDkuN7k2SqFKtYNmCTzgfEpz82x34IM9/zc8KGxQoXg1liNC/izpRM/MBdt44Nmx41ZWqk+FQ==", - "license": "MIT" + "integrity": "sha512-/d9sfos4yxzpwkDkuN7k2SqFKtYNmCTzgfEpz82x34IM9/zc8KGxQoXg1liNC/izpRM/MBdt44Nmx41ZWqk+FQ==" }, "node_modules/fast-json-stable-stringify": { "version": "2.1.0", "resolved": "https://registry.npmjs.org/fast-json-stable-stringify/-/fast-json-stable-stringify-2.1.0.tgz", - "integrity": "sha512-lhd/wF+Lk98HZoTCtlVraHtfh5XYijIjalXck7saUtuanSDyLMxnHhSXEDJqHxD7msR8D0uCmqlkwjCV8xvwHw==", - "license": "MIT" + "integrity": "sha512-lhd/wF+Lk98HZoTCtlVraHtfh5XYijIjalXck7saUtuanSDyLMxnHhSXEDJqHxD7msR8D0uCmqlkwjCV8xvwHw==" }, "node_modules/fast-levenshtein": { "version": "2.0.6", - "license": "MIT", + "resolved": "https://registry.npmjs.org/fast-levenshtein/-/fast-levenshtein-2.0.6.tgz", + "integrity": "sha512-DCXu6Ifhqcks7TZKY3Hxp3y6qphY5SJZmrWMDrKcERSOXWQdMhU9Ig/PYrzyw/ul9jOIyh0N4M0tbC5hodg8dw==", "peer": true }, "node_modules/fastest-levenshtein": { "version": "1.0.16", "resolved": "https://registry.npmjs.org/fastest-levenshtein/-/fastest-levenshtein-1.0.16.tgz", "integrity": "sha512-eRnCtTTtGZFpQCwhJiUOuxPQWRXVKYDn0b2PeHfXL6/Zi53SLAzAHfVhVWK2AryC/WH05kGfxhFIPvTF0SXQzg==", - "license": "MIT", "engines": { "node": ">= 4.9.1" } }, "node_modules/fastq": { "version": "1.17.1", - "license": "ISC", + "resolved": "https://registry.npmjs.org/fastq/-/fastq-1.17.1.tgz", + "integrity": "sha512-sRVD3lWVIXWg6By68ZN7vho9a1pQcN/WBFaAAsDDFzlJjvoGx0P8z7V1t72grFJfJhu3YPZBuu25f7Kaw2jN1w==", "peer": true, "dependencies": { "reusify": "^1.0.4" @@ -4460,7 +4547,6 @@ "resolved": "https://registry.npmjs.org/fb-watchman/-/fb-watchman-2.0.2.tgz", "integrity": "sha512-p5161BqbuCaSnB8jIbzQHOlpgsPmK5rJVDfDKO91Axs5NC1uu3HRQm6wt9cd9/+GtQQIO53JdGXXoyDpTAsgYA==", "dev": true, - "license": "Apache-2.0", "dependencies": { "bser": "2.1.1" } @@ -4479,7 +4565,6 @@ "url": "https://paypal.me/jimmywarting" } ], - "license": "MIT", "dependencies": { "node-domexception": "^1.0.0", "web-streams-polyfill": "^3.0.3" @@ -4490,7 +4575,8 @@ }, "node_modules/file-entry-cache": { "version": "6.0.1", - "license": "MIT", + "resolved": "https://registry.npmjs.org/file-entry-cache/-/file-entry-cache-6.0.1.tgz", + "integrity": "sha512-7Gps/XWymbLk2QLYK4NzpMOrYjMhdIxXuIvy2QBsLE6ljuodKvdkWs/cpyJJ3CVIVpH0Oi1Hvg1ovbMzLdFBBg==", "peer": true, "dependencies": { "flat-cache": "^3.0.4" @@ -4502,15 +4588,13 @@ "node_modules/file-uri-to-path": { "version": "1.0.0", "resolved": "https://registry.npmjs.org/file-uri-to-path/-/file-uri-to-path-1.0.0.tgz", - "integrity": "sha512-0Zt+s3L7Vf1biwWZ29aARiVYLx7iMGnEUl9x33fbB/j3jR81u/O2LbqK+Bm1CDSNDKVtJ/YjwY7TUd5SkeLQLw==", - "license": "MIT" + "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==", "dev": true, - "license": "MIT", "dependencies": { "to-regex-range": "^5.0.1" }, @@ -4520,7 +4604,9 @@ }, "node_modules/find-replace": { "version": "3.0.0", - "license": "MIT", + "resolved": "https://registry.npmjs.org/find-replace/-/find-replace-3.0.0.tgz", + "integrity": "sha512-6Tb2myMioCAgv5kfvP5/PkZZ/ntTpVK39fHY7WkWBgvbeE+VHd/tZuZ4mrC+bxh4cfOZeYKVPaJIZtZXV7GNCQ==", + "peer": true, "dependencies": { "array-back": "^3.0.1" }, @@ -4528,9 +4614,26 @@ "node": ">=4.0.0" } }, + "node_modules/find-up": { + "version": "5.0.0", + "resolved": "https://registry.npmjs.org/find-up/-/find-up-5.0.0.tgz", + "integrity": "sha512-78/PXT1wlLLDgTzDs7sjq9hzz0vXD+zn+7wypEe4fXQxCmdmqfGsEPQxmiCSQI3ajFV91bVSsvNtrJRiW6nGng==", + "peer": true, + "dependencies": { + "locate-path": "^6.0.0", + "path-exists": "^4.0.0" + }, + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, "node_modules/flat-cache": { "version": "3.2.0", - "license": "MIT", + "resolved": "https://registry.npmjs.org/flat-cache/-/flat-cache-3.2.0.tgz", + "integrity": "sha512-CYcENa+FtcUKLmhhqyctpclsq7QF38pKjZHsGNiSQF5r4FtoKDWabFDl3hzaEQMvT1LHEysw5twgLvpYYb4vbw==", "peer": true, "dependencies": { "flatted": "^3.2.9", @@ -4542,14 +4645,15 @@ } }, "node_modules/flatbuffers": { - "version": "1.12.0", - "resolved": "https://registry.npmjs.org/flatbuffers/-/flatbuffers-1.12.0.tgz", - "integrity": "sha512-c7CZADjRcl6j0PlvFy0ZqXQ67qSEZfrVPynmnL+2zPc+NtMvrF8Y0QceMo7QqnSPc7+uWjUIAbvCQ5WIKlMVdQ==", - "license": "SEE LICENSE IN LICENSE.txt" + "version": "23.5.26", + "resolved": "https://registry.npmjs.org/flatbuffers/-/flatbuffers-23.5.26.tgz", + "integrity": "sha512-vE+SI9vrJDwi1oETtTIFldC/o9GsVKRM+s6EL0nQgxXlYV1Vc4Tk30hj4xGICftInKQKj1F3up2n8UbIVobISQ==", + "peer": true }, "node_modules/flatted": { "version": "3.3.1", - "license": "ISC", + "resolved": "https://registry.npmjs.org/flatted/-/flatted-3.3.1.tgz", + "integrity": "sha512-X8cqMLLie7KsNUDSdzeN8FYK9rEt4Dt67OsG/DNGnYTSDBG4uFAJFBnUeiV+zCVAvwFy56IjM9sH51jVaEhNxw==", "peer": true }, "node_modules/follow-redirects": { @@ -4562,7 +4666,6 @@ "url": "https://github.com/sponsors/RubenVerborgh" } ], - "license": "MIT", "engines": { "node": ">=4.0" }, @@ -4576,7 +4679,6 @@ "version": "0.3.3", "resolved": "https://registry.npmjs.org/for-each/-/for-each-0.3.3.tgz", "integrity": "sha512-jqYfLp7mo9vIyQf8ykW2v7A+2N4QjeCeI5+Dz9XraiO1ign81wjiH7Fb9vSOWvQfNtmSa4H2RoQTrrXivdUZmw==", - "license": "MIT", "dependencies": { "is-callable": "^1.1.3" } @@ -4585,7 +4687,6 @@ "version": "0.6.1", "resolved": "https://registry.npmjs.org/forever-agent/-/forever-agent-0.6.1.tgz", "integrity": "sha512-j0KLYPhm6zeac4lz3oJ3o65qvgQCcPubiyotZrXqEaG4hNagNYO8qdlUrX5vwqv9ohqeT/Z3j6+yW067yWWdUw==", - "license": "Apache-2.0", "engines": { "node": "*" } @@ -4594,7 +4695,6 @@ "version": "4.0.0", "resolved": "https://registry.npmjs.org/form-data/-/form-data-4.0.0.tgz", "integrity": "sha512-ETEklSGi5t0QMZuiXoA/Q6vcnxcLQP5vdugSpuAyi6SVGi2clPPp+xgEhuMaHC+zGgn31Kd235W35f7Hykkaww==", - "license": "MIT", "dependencies": { "asynckit": "^0.4.0", "combined-stream": "^1.0.8", @@ -4607,14 +4707,12 @@ "node_modules/form-data-encoder": { "version": "1.7.2", "resolved": "https://registry.npmjs.org/form-data-encoder/-/form-data-encoder-1.7.2.tgz", - "integrity": "sha512-qfqtYan3rxrnCk1VYaA4H+Ms9xdpPqvLZa6xmMgFvhO32x7/3J/ExcTd6qpxM0vH2GdMI+poehyBZvqfMTto8A==", - "license": "MIT" + "integrity": "sha512-qfqtYan3rxrnCk1VYaA4H+Ms9xdpPqvLZa6xmMgFvhO32x7/3J/ExcTd6qpxM0vH2GdMI+poehyBZvqfMTto8A==" }, "node_modules/formdata-node": { "version": "4.4.1", "resolved": "https://registry.npmjs.org/formdata-node/-/formdata-node-4.4.1.tgz", "integrity": "sha512-0iirZp3uVDjVGt9p49aTaqjk84TrglENEDuqfdlZQ1roC9CWlPk6Avf8EEnZNcAqPonwkG35x4n3ww/1THYAeQ==", - "license": "MIT", "dependencies": { "node-domexception": "1.0.0", "web-streams-polyfill": "4.0.0-beta.3" @@ -4627,7 +4725,6 @@ "version": "4.0.0-beta.3", "resolved": "https://registry.npmjs.org/web-streams-polyfill/-/web-streams-polyfill-4.0.0-beta.3.tgz", "integrity": "sha512-QW95TCTaHmsYfHDybGMwO5IJIM93I/6vTRk+daHTWFPhwh+C8Cg7j7XyKrwrj8Ib6vYXe0ocYNrmzY4xAAN6ug==", - "license": "MIT", "engines": { "node": ">= 14" } @@ -4636,7 +4733,6 @@ "version": "4.0.10", "resolved": "https://registry.npmjs.org/formdata-polyfill/-/formdata-polyfill-4.0.10.tgz", "integrity": "sha512-buewHzMvYL29jdeQTVILecSaZKnt/RJWjoZCF5OW60Z67/GmSLBkOFM7qh1PI3zFNtJbaZL5eQu1vLfazOwj4g==", - "license": "MIT", "dependencies": { "fetch-blob": "^3.1.2" }, @@ -4647,14 +4743,12 @@ "node_modules/fs-constants": { "version": "1.0.0", "resolved": "https://registry.npmjs.org/fs-constants/-/fs-constants-1.0.0.tgz", - "integrity": "sha512-y6OAwoSIf7FyjMIv94u+b5rdheZEjzR63GTyZJm5qh4Bi+2YgwLCcI/fPFZkL5PSixOt6ZNKm+w+Hfp/Bciwow==", - "license": "MIT" + "integrity": "sha512-y6OAwoSIf7FyjMIv94u+b5rdheZEjzR63GTyZJm5qh4Bi+2YgwLCcI/fPFZkL5PSixOt6ZNKm+w+Hfp/Bciwow==" }, "node_modules/fs-minipass": { "version": "2.1.0", "resolved": "https://registry.npmjs.org/fs-minipass/-/fs-minipass-2.1.0.tgz", "integrity": "sha512-V/JgOLFCS+R6Vcq0slCuaeWEdNC3ouDlJMNIsacH2VtALiu9mV4LPrHc5cDl8k5aw6J8jwgWWpiTo5RYhmIzvg==", - "license": "ISC", "dependencies": { "minipass": "^3.0.0" }, @@ -4665,15 +4759,14 @@ "node_modules/fs.realpath": { "version": "1.0.0", "resolved": "https://registry.npmjs.org/fs.realpath/-/fs.realpath-1.0.0.tgz", - "integrity": "sha512-OO0pH2lK6a0hZnAdau5ItzHPI6pUlvI7jMVnxUQRtw4owF2wk8lOSabtGDCTP4Ggrg2MbGnWO9X8K1t4+fGMDw==", - "license": "ISC" + "integrity": "sha512-OO0pH2lK6a0hZnAdau5ItzHPI6pUlvI7jMVnxUQRtw4owF2wk8lOSabtGDCTP4Ggrg2MbGnWO9X8K1t4+fGMDw==" }, "node_modules/fsevents": { "version": "2.3.3", "resolved": "https://registry.npmjs.org/fsevents/-/fsevents-2.3.3.tgz", "integrity": "sha512-5xoDfX+fL7faATnagmWPpbFtwh/R77WmMMqqHGS65C3vvB0YHrgF+B1YmZ3441tMj5n63k0212XNoJwzlhffQw==", "dev": true, - "license": "MIT", + "hasInstallScript": true, "optional": true, "os": [ "darwin" @@ -4686,7 +4779,6 @@ "version": "1.1.2", "resolved": "https://registry.npmjs.org/function-bind/-/function-bind-1.1.2.tgz", "integrity": "sha512-7XHNxH7qX9xG5mIwxkhumTox/MIRNcOgDrxWsMt2pAr23WHp6MrRlN7FBSFpCpr+oVO0F744iUgR82nJMfG2SA==", - "license": "MIT", "funding": { "url": "https://github.com/sponsors/ljharb" } @@ -4695,7 +4787,6 @@ "version": "1.1.6", "resolved": "https://registry.npmjs.org/function.prototype.name/-/function.prototype.name-1.1.6.tgz", "integrity": "sha512-Z5kx79swU5P27WEayXM1tBi5Ze/lbIyiNgU3qyXUOf9b2rgXYyF9Dy9Cx+IQv/Lc8WCG6L82zwUPpSS9hGehIg==", - "license": "MIT", "dependencies": { "call-bind": "^1.0.2", "define-properties": "^1.2.0", @@ -4713,7 +4804,6 @@ "version": "1.2.3", "resolved": "https://registry.npmjs.org/functions-have-names/-/functions-have-names-1.2.3.tgz", "integrity": "sha512-xckBUXyTIqT97tq2x2AMb+g163b5JFysYk0x4qxNFwbfQkmNZoiRHb6sPzI9/QV33WeuvVYBUIiD4NzNIyqaRQ==", - "license": "MIT", "funding": { "url": "https://github.com/sponsors/ljharb" } @@ -4722,7 +4812,6 @@ "version": "4.0.4", "resolved": "https://registry.npmjs.org/gauge/-/gauge-4.0.4.tgz", "integrity": "sha512-f9m+BEN5jkg6a0fZjleidjN51VE1X+mPFQ2DJ0uv1V39oCLCbsGe6yjbBnp7eK7z/+GAon99a3nHuqbuuthyPg==", - "license": "ISC", "optional": true, "dependencies": { "aproba": "^1.0.3 || ^2.0.0", @@ -4742,7 +4831,6 @@ "version": "2.3.1", "resolved": "https://registry.npmjs.org/generate-function/-/generate-function-2.3.1.tgz", "integrity": "sha512-eeB5GfMNeevm/GRYq20ShmsaGcmI81kIX2K9XQx5miC8KdHaC6Jm0qQ8ZNeGOi7wYB8OsdxKs+Y2oVuTFuVwKQ==", - "license": "MIT", "dependencies": { "is-property": "^1.0.2" } @@ -4752,7 +4840,6 @@ "resolved": "https://registry.npmjs.org/gensync/-/gensync-1.0.0-beta.2.tgz", "integrity": "sha512-3hN7NaskYvMDLQY55gnW3NQ+mesEAepTqlg+VEbj7zzqEMBVNhzcGYYeqFo/TlYz6eQiFcp1HcsCZO+nGgS8zg==", "dev": true, - "license": "MIT", "engines": { "node": ">=6.9.0" } @@ -4762,7 +4849,6 @@ "resolved": "https://registry.npmjs.org/get-caller-file/-/get-caller-file-2.0.5.tgz", "integrity": "sha512-DyFP3BM/3YHTQOCUL/w0OZHR0lpKeGrxotcHWcqNEdnltqFwXVfhEBQ94eIo34AfQpo0rGki4cyIiftY06h2Fg==", "dev": true, - "license": "ISC", "engines": { "node": "6.* || 8.* || >= 10.*" } @@ -4771,7 +4857,6 @@ "version": "1.2.4", "resolved": "https://registry.npmjs.org/get-intrinsic/-/get-intrinsic-1.2.4.tgz", "integrity": "sha512-5uYhsJH8VJBTv7oslg4BznJYhDoRI6waYCxMmCdnTrcCrHA/fCFKoTFz2JKKE0HdDFUF7/oQuhzumXJK7paBRQ==", - "license": "MIT", "dependencies": { "es-errors": "^1.3.0", "function-bind": "^1.1.2", @@ -4791,7 +4876,6 @@ "resolved": "https://registry.npmjs.org/get-package-type/-/get-package-type-0.1.0.tgz", "integrity": "sha512-pjzuKtY64GYfWizNAJ0fr9VqttZkNiK2iS430LtIHzjBEr6bX8Am2zm4sW4Ro5wjWW5cAlRL1qAMTcXbjNAO2Q==", "dev": true, - "license": "MIT", "engines": { "node": ">=8.0.0" } @@ -4801,7 +4885,6 @@ "resolved": "https://registry.npmjs.org/get-stream/-/get-stream-6.0.1.tgz", "integrity": "sha512-ts6Wi+2j3jQjqi70w5AlN8DFnkSwC+MqmxEzdEALB2qXZYV3X/b1CTfgPLGJNMeAWxdPfU8FO1ms3NUfaHCPYg==", "dev": true, - "license": "MIT", "engines": { "node": ">=10" }, @@ -4813,7 +4896,6 @@ "version": "1.0.2", "resolved": "https://registry.npmjs.org/get-symbol-description/-/get-symbol-description-1.0.2.tgz", "integrity": "sha512-g0QYk1dZBxGwk+Ngc+ltRH2IBp2f7zBkBMBJZCDerh6EhlhSR6+9irMCuT/09zD6qkarHUSn529sK/yL4S27mg==", - "license": "MIT", "dependencies": { "call-bind": "^1.0.5", "es-errors": "^1.3.0", @@ -4830,7 +4912,6 @@ "version": "0.1.7", "resolved": "https://registry.npmjs.org/getpass/-/getpass-0.1.7.tgz", "integrity": "sha512-0fzj9JxOLfJ+XGLhR8ze3unN0KZCgZwiSSDz168VERjK8Wl8kVSdcu2kspd4s4wtAa1y/qrVRiAA0WclVsu0ng==", - "license": "MIT", "dependencies": { "assert-plus": "^1.0.0" } @@ -4838,14 +4919,12 @@ "node_modules/github-from-package": { "version": "0.0.0", "resolved": "https://registry.npmjs.org/github-from-package/-/github-from-package-0.0.0.tgz", - "integrity": "sha512-SyHy3T1v2NUXn29OsWdxmK6RwHD+vkj3v8en8AOBZ1wBQ/hCAQ5bAQTD02kW4W9tUp/3Qh6J8r9EvntiyCmOOw==", - "license": "MIT" + "integrity": "sha512-SyHy3T1v2NUXn29OsWdxmK6RwHD+vkj3v8en8AOBZ1wBQ/hCAQ5bAQTD02kW4W9tUp/3Qh6J8r9EvntiyCmOOw==" }, "node_modules/glob": { "version": "7.2.3", "resolved": "https://registry.npmjs.org/glob/-/glob-7.2.3.tgz", "integrity": "sha512-nFR0zLpU2YCaRxwoCJvL6UvCH2JFyFVIvwTLsIf21AuHlMskA1hhTdk+LlYJtOlYt9v6dvszD2BGRqBL+iQK9Q==", - "license": "ISC", "dependencies": { "fs.realpath": "^1.0.0", "inflight": "^1.0.4", @@ -4863,7 +4942,8 @@ }, "node_modules/glob-parent": { "version": "6.0.2", - "license": "ISC", + "resolved": "https://registry.npmjs.org/glob-parent/-/glob-parent-6.0.2.tgz", + "integrity": "sha512-XxwI8EOhVQgWp6iDL+3b0r86f4d6AX6zSU55HfB4ydCEuXLXc5FcYeOu+nnGftS4TEju/11rt4KJPTMgbfmv4A==", "peer": true, "dependencies": { "is-glob": "^4.0.3" @@ -4872,11 +4952,25 @@ "node": ">=10.13.0" } }, + "node_modules/globals": { + "version": "13.24.0", + "resolved": "https://registry.npmjs.org/globals/-/globals-13.24.0.tgz", + "integrity": "sha512-AhO5QUcj8llrbG09iWhPU2B204J1xnPeL8kQmVorSsy+Sjj1sk8gIyh6cUocGmH4L0UuhAJy+hJMRA4mgA4mFQ==", + "peer": true, + "dependencies": { + "type-fest": "^0.20.2" + }, + "engines": { + "node": ">=8" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, "node_modules/globalthis": { "version": "1.0.3", "resolved": "https://registry.npmjs.org/globalthis/-/globalthis-1.0.3.tgz", "integrity": "sha512-sFdI5LyBiNTHjRd7cGPWapiHWMOXKyuBNX/cWJ3NfzrZQVa8GI/8cofCl74AOVqq9W5kNmguTIzJ/1s2gyI9wA==", - "license": "MIT", "dependencies": { "define-properties": "^1.1.3" }, @@ -4891,7 +4985,6 @@ "version": "1.0.1", "resolved": "https://registry.npmjs.org/gopd/-/gopd-1.0.1.tgz", "integrity": "sha512-d65bNlIadxvpb/A2abVdlqKqV563juRnZ1Wtk6s1sIR8uNsXR70xqIzVqxVf1eTqDunwT2MkczEeaezCKTZhwA==", - "license": "MIT", "dependencies": { "get-intrinsic": "^1.1.3" }, @@ -4903,19 +4996,18 @@ "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, - "license": "ISC" + "devOptional": true }, "node_modules/graphemer": { "version": "1.4.0", - "license": "MIT", + "resolved": "https://registry.npmjs.org/graphemer/-/graphemer-1.4.0.tgz", + "integrity": "sha512-EtKwoO6kxCL9WO5xipiHTZlSzBm7WLT627TqC/uVRd0HKmq8NXyebnNYxDoBi7wt8eTWrUrKXCOVaFq9x1kgag==", "peer": true }, "node_modules/graphology": { "version": "0.25.4", "resolved": "https://registry.npmjs.org/graphology/-/graphology-0.25.4.tgz", "integrity": "sha512-33g0Ol9nkWdD6ulw687viS8YJQBxqG5LWII6FI6nul0pq6iM2t5EKquOTFDbyTblRB3O9I+7KX4xI8u5ffekAQ==", - "license": "MIT", "dependencies": { "events": "^3.3.0", "obliterator": "^2.0.2" @@ -4928,7 +5020,6 @@ "version": "0.17.0", "resolved": "https://registry.npmjs.org/graphology-indices/-/graphology-indices-0.17.0.tgz", "integrity": "sha512-A7RXuKQvdqSWOpn7ZVQo4S33O0vCfPBnUSf7FwE0zNCasqwZVUaCXePuWo5HBpWw68KJcwObZDHpFk6HKH6MYQ==", - "license": "MIT", "dependencies": { "graphology-utils": "^2.4.2", "mnemonist": "^0.39.0" @@ -4941,7 +5032,6 @@ "version": "2.2.0", "resolved": "https://registry.npmjs.org/graphology-metrics/-/graphology-metrics-2.2.0.tgz", "integrity": "sha512-eZZFRLGGyyI+iD+XwQvc+lLM3EKCoqUvVjvF/14Htgy4grB2m95OytToYq3saWuHfuf22VVnj9GBHv/pTzKuTw==", - "license": "MIT", "dependencies": { "graphology-shortest-path": "^2.0.0", "graphology-utils": "^2.4.4", @@ -4955,7 +5045,6 @@ "version": "2.0.2", "resolved": "https://registry.npmjs.org/graphology-shortest-path/-/graphology-shortest-path-2.0.2.tgz", "integrity": "sha512-hlGvh4Yb1Vmd2J7wT8Q8+t4RQ6Tx+9wRYm0/fZB9PZJ4uW3nml5kJ7yXZ2+JYWT+7wLLmY5mg3o9bLSAWmv/jQ==", - "license": "MIT", "dependencies": { "@yomguithereal/helpers": "^1.1.1", "graphology-indices": "^0.17.0", @@ -4968,14 +5057,14 @@ }, "node_modules/graphology-types": { "version": "0.24.7", - "license": "MIT", + "resolved": "https://registry.npmjs.org/graphology-types/-/graphology-types-0.24.7.tgz", + "integrity": "sha512-tdcqOOpwArNjEr0gNQKCXwaNCWnQJrog14nJNQPeemcLnXQUUGrsCWpWkVKt46zLjcS6/KGoayeJfHHyPDlvwA==", "peer": true }, "node_modules/graphology-utils": { "version": "2.5.2", "resolved": "https://registry.npmjs.org/graphology-utils/-/graphology-utils-2.5.2.tgz", "integrity": "sha512-ckHg8MXrXJkOARk56ZaSCM1g1Wihe2d6iTmz1enGOz4W/l831MBCKSayeFQfowgF8wd+PQ4rlch/56Vs/VZLDQ==", - "license": "MIT", "peerDependencies": { "graphology-types": ">=0.23.0" } @@ -4983,14 +5072,12 @@ "node_modules/guid-typescript": { "version": "1.0.9", "resolved": "https://registry.npmjs.org/guid-typescript/-/guid-typescript-1.0.9.tgz", - "integrity": "sha512-Y8T4vYhEfwJOTbouREvG+3XDsjr8E3kIr7uf+JZ0BYloFsttiHU0WfvANVsR7TxNUJa/WpCnw/Ino/p+DeBhBQ==", - "license": "ISC" + "integrity": "sha512-Y8T4vYhEfwJOTbouREvG+3XDsjr8E3kIr7uf+JZ0BYloFsttiHU0WfvANVsR7TxNUJa/WpCnw/Ino/p+DeBhBQ==" }, "node_modules/handlebars": { "version": "4.7.8", "resolved": "https://registry.npmjs.org/handlebars/-/handlebars-4.7.8.tgz", "integrity": "sha512-vafaFqs8MZkRrSX7sFVUdo3ap/eNiLnb4IakshzvP56X5Nr1iGKAIqdX6tMlm6HcNRIkr6AxO5jFEoJzzpT8aQ==", - "license": "MIT", "dependencies": { "minimist": "^1.2.5", "neo-async": "^2.6.2", @@ -5011,7 +5098,6 @@ "version": "2.0.0", "resolved": "https://registry.npmjs.org/har-schema/-/har-schema-2.0.0.tgz", "integrity": "sha512-Oqluz6zhGX8cyRaTQlFMPw80bSJVG2x/cFb8ZPhUILGgHka9SsokCCOQgpveePerqidZOrT14ipqfJb7ILcW5Q==", - "license": "ISC", "engines": { "node": ">=4" } @@ -5020,7 +5106,7 @@ "version": "5.1.5", "resolved": "https://registry.npmjs.org/har-validator/-/har-validator-5.1.5.tgz", "integrity": "sha512-nmT2T0lljbxdQZfspsno9hgrG3Uir6Ks5afism62poxqBM6sDnMEuPmzTq8XN0OEwqKLLdh1jQI3qyE66Nzb3w==", - "license": "MIT", + "deprecated": "this library is no longer supported", "dependencies": { "ajv": "^6.12.3", "har-schema": "^2.0.0" @@ -5033,7 +5119,6 @@ "version": "1.0.2", "resolved": "https://registry.npmjs.org/has-bigints/-/has-bigints-1.0.2.tgz", "integrity": "sha512-tSvCKtBr9lkF0Ex0aQiP9N+OpV4zi2r/Nee5VkRDbaqv35RLYMzbwQfFSZZH0kR+Rd6302UJZ2p/bJCEoR3VoQ==", - "license": "MIT", "funding": { "url": "https://github.com/sponsors/ljharb" } @@ -5042,7 +5127,6 @@ "version": "4.0.0", "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-4.0.0.tgz", "integrity": "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==", - "license": "MIT", "engines": { "node": ">=8" } @@ -5051,7 +5135,6 @@ "version": "1.0.2", "resolved": "https://registry.npmjs.org/has-property-descriptors/-/has-property-descriptors-1.0.2.tgz", "integrity": "sha512-55JNKuIW+vq4Ke1BjOTjM2YctQIvCT7GFzHwmfZPGo5wnrgkid0YQtnAleFSqumZm4az3n2BS+erby5ipJdgrg==", - "license": "MIT", "dependencies": { "es-define-property": "^1.0.0" }, @@ -5063,7 +5146,6 @@ "version": "1.0.3", "resolved": "https://registry.npmjs.org/has-proto/-/has-proto-1.0.3.tgz", "integrity": "sha512-SJ1amZAJUiZS+PhsVLf5tGydlaVB8EdFpaSO4gmiUKUOxk8qzn5AIy4ZeJUmh22znIdk/uMAUT2pl3FxzVUH+Q==", - "license": "MIT", "engines": { "node": ">= 0.4" }, @@ -5075,7 +5157,6 @@ "version": "1.0.3", "resolved": "https://registry.npmjs.org/has-symbols/-/has-symbols-1.0.3.tgz", "integrity": "sha512-l3LCuF6MgDNwTDKkdYGEihYjt5pRPbEg46rtlmnSPlUbgmB8LOIrKJbYYFBSbnPaJexMKtiPO8hmeRjRz2Td+A==", - "license": "MIT", "engines": { "node": ">= 0.4" }, @@ -5087,7 +5168,6 @@ "version": "1.0.2", "resolved": "https://registry.npmjs.org/has-tostringtag/-/has-tostringtag-1.0.2.tgz", "integrity": "sha512-NqADB8VjPFLM2V0VvHUewwwsw0ZWBaIdgo+ieHtK3hasLz4qeCRjYcqfB6AQrBggRKppKF8L52/VqdVsO47Dlw==", - "license": "MIT", "dependencies": { "has-symbols": "^1.0.3" }, @@ -5102,12 +5182,12 @@ "version": "2.0.1", "resolved": "https://registry.npmjs.org/has-unicode/-/has-unicode-2.0.1.tgz", "integrity": "sha512-8Rf9Y83NBReMnx0gFzA8JImQACstCYWUplepDa9xprwwtmgEZUF0h/i5xSA625zB/I37EtrswSST6OXxwaaIJQ==", - "license": "ISC", "optional": true }, "node_modules/hasown": { - "version": "2.0.1", - "license": "MIT", + "version": "2.0.2", + "resolved": "https://registry.npmjs.org/hasown/-/hasown-2.0.2.tgz", + "integrity": "sha512-0hJU9SCPvmMzIBdZFqNPXWa6dqh7WdH0cII9y+CyS8rG3nL48Bclra9HmKhVVUHyPWNH5Y7xDwAB7bfgSjkUMQ==", "dependencies": { "function-bind": "^1.1.2" }, @@ -5119,7 +5199,6 @@ "version": "1.2.0", "resolved": "https://registry.npmjs.org/he/-/he-1.2.0.tgz", "integrity": "sha512-F/1DnUGPopORZi0ni+CvrCgHQ5FyEAHRLSApuYWMmrbSwoN2Mn/7k+Gl38gJnR7yyDZk6WLXwiGod1JOWNDKGw==", - "license": "MIT", "bin": { "he": "bin/he" } @@ -5128,7 +5207,6 @@ "version": "4.0.0", "resolved": "https://registry.npmjs.org/html-encoding-sniffer/-/html-encoding-sniffer-4.0.0.tgz", "integrity": "sha512-Y22oTqIU4uuPgEemfz7NDJz6OeKf12Lsu+QC+s3BVpda64lTiMYCyGwg5ki4vFxkMwQdeZDl2adZoqUgdFuTgQ==", - "license": "MIT", "dependencies": { "whatwg-encoding": "^3.1.1" }, @@ -5140,8 +5218,7 @@ "version": "2.0.2", "resolved": "https://registry.npmjs.org/html-escaper/-/html-escaper-2.0.2.tgz", "integrity": "sha512-H2iMtd0I4Mt5eYiapRdIDjp+XzelXQ0tFE4JS7YFwFevXXMmOp9myNrUvCg0D6ws8iqkRPBfKHgbwig1SmlLfg==", - "dev": true, - "license": "MIT" + "dev": true }, "node_modules/htmlparser2": { "version": "8.0.2", @@ -5154,7 +5231,6 @@ "url": "https://github.com/sponsors/fb55" } ], - "license": "MIT", "dependencies": { "domelementtype": "^2.3.0", "domhandler": "^5.0.3", @@ -5166,14 +5242,12 @@ "version": "4.1.1", "resolved": "https://registry.npmjs.org/http-cache-semantics/-/http-cache-semantics-4.1.1.tgz", "integrity": "sha512-er295DKPVsV82j5kw1Gjt+ADA/XYHsajl82cGNQG2eyoPkvgUhX+nDIyelzhIWbbsXP39EHcI6l5tYs2FYqYXQ==", - "license": "BSD-2-Clause", "optional": true }, "node_modules/http-proxy-agent": { "version": "7.0.2", "resolved": "https://registry.npmjs.org/http-proxy-agent/-/http-proxy-agent-7.0.2.tgz", "integrity": "sha512-T1gkAiYYDWYx3V5Bmyu7HcfcvL7mUrTWiM6yOfa3PIphViJ/gFPbvidQ+veqSOHci/PxBcDabeUNCzpOODJZig==", - "license": "MIT", "dependencies": { "agent-base": "^7.1.0", "debug": "^4.3.4" @@ -5186,7 +5260,6 @@ "version": "1.2.0", "resolved": "https://registry.npmjs.org/http-signature/-/http-signature-1.2.0.tgz", "integrity": "sha512-CAbnr6Rz4CYQkLYUtSNXxQPUH2gK8f3iWexVlsnMeD+GjlsQ0Xsy1cOX+mN3dtxYomRy21CiOzU8Uhw6OwncEQ==", - "license": "MIT", "dependencies": { "assert-plus": "^1.0.0", "jsprim": "^1.2.2", @@ -5201,7 +5274,6 @@ "version": "7.0.4", "resolved": "https://registry.npmjs.org/https-proxy-agent/-/https-proxy-agent-7.0.4.tgz", "integrity": "sha512-wlwpilI7YdjSkWaQ/7omYBMTliDcmCN8OLihO6I9B86g06lMyAoqgoDpV0XqoaPOKj+0DIdAvnsWfyAAhmimcg==", - "license": "MIT", "dependencies": { "agent-base": "^7.0.2", "debug": "4" @@ -5215,7 +5287,6 @@ "resolved": "https://registry.npmjs.org/human-signals/-/human-signals-2.1.0.tgz", "integrity": "sha512-B4FFZ6q/T2jhhksgkbEW3HBvWIfDW85snkQgawt07S7J5QXTk6BkNV+0yAeZrM5QpMAdYlocGoljn0sJ/WQkFw==", "dev": true, - "license": "Apache-2.0", "engines": { "node": ">=10.17.0" } @@ -5224,7 +5295,6 @@ "version": "1.2.1", "resolved": "https://registry.npmjs.org/humanize-ms/-/humanize-ms-1.2.1.tgz", "integrity": "sha512-Fl70vYtsAFb/C06PTS9dZBo7ihau+Tu/DNCk/OyHhea07S+aeMWpFFkUaXRa8fI+ScZbEI8dfSxwY7gxZ9SAVQ==", - "license": "MIT", "dependencies": { "ms": "^2.0.0" } @@ -5233,7 +5303,6 @@ "version": "0.6.3", "resolved": "https://registry.npmjs.org/iconv-lite/-/iconv-lite-0.6.3.tgz", "integrity": "sha512-4fCk79wshMdzMp2rH06qWrJE4iolqLhCUH+OiuIgU++RB0+94NlDL81atO7GX55uUKueo0txHNtvEyI6D7WdMw==", - "license": "MIT", "dependencies": { "safer-buffer": ">= 2.1.2 < 3.0.0" }, @@ -5258,12 +5327,12 @@ "type": "consulting", "url": "https://feross.org/support" } - ], - "license": "BSD-3-Clause" + ] }, "node_modules/ignore": { "version": "5.3.1", - "license": "MIT", + "resolved": "https://registry.npmjs.org/ignore/-/ignore-5.3.1.tgz", + "integrity": "sha512-5Fytz/IraMjqpwfd34ke28PTVMjZjJG2MPn5t7OE4eUCUNf8BAa7b5WUS9/Qvr6mwOQS7Mk6vdsMno5he+T8Xw==", "peer": true, "engines": { "node": ">= 4" @@ -5271,7 +5340,8 @@ }, "node_modules/import-fresh": { "version": "3.3.0", - "license": "MIT", + "resolved": "https://registry.npmjs.org/import-fresh/-/import-fresh-3.3.0.tgz", + "integrity": "sha512-veYYhQa+D1QBKznvhUHxb8faxlrwUnxseDAbAp457E0wLNio2bOSKnjYDhMj+YiAq61xrMGhQk9iXVk5FzgQMw==", "peer": true, "dependencies": { "parent-module": "^1.0.0", @@ -5284,20 +5354,11 @@ "url": "https://github.com/sponsors/sindresorhus" } }, - "node_modules/import-fresh/node_modules/resolve-from": { - "version": "4.0.0", - "license": "MIT", - "peer": true, - "engines": { - "node": ">=4" - } - }, "node_modules/import-local": { "version": "3.1.0", "resolved": "https://registry.npmjs.org/import-local/-/import-local-3.1.0.tgz", "integrity": "sha512-ASB07uLtnDs1o6EHjKpX34BKYDSqnFerfTOJL2HvMqF70LnxpjkzDB8J44oT9pu4AMPkQwf8jl6szgvNd2tRIg==", "dev": true, - "license": "MIT", "dependencies": { "pkg-dir": "^4.2.0", "resolve-cwd": "^3.0.0" @@ -5316,7 +5377,6 @@ "version": "0.1.4", "resolved": "https://registry.npmjs.org/imurmurhash/-/imurmurhash-0.1.4.tgz", "integrity": "sha512-JmXMZ6wuvDmLiHEml9ykzqO6lwFbof0GG4IkcGaENdCRDDmMVnny7s5HsIgHCbaq0w2MyPhDqkhTUgS2LU2PHA==", - "license": "MIT", "engines": { "node": ">=0.8.19" } @@ -5325,7 +5385,6 @@ "version": "4.0.0", "resolved": "https://registry.npmjs.org/indent-string/-/indent-string-4.0.0.tgz", "integrity": "sha512-EdDDZu4A2OyIK7Lr/2zG+w5jmbuk1DVBnEwREQvBzspBJkCEbRa8GxU1lghYcaGJCnRWibjDXlq779X1/y5xwg==", - "license": "MIT", "optional": true, "engines": { "node": ">=8" @@ -5335,14 +5394,12 @@ "version": "1.0.4", "resolved": "https://registry.npmjs.org/infer-owner/-/infer-owner-1.0.4.tgz", "integrity": "sha512-IClj+Xz94+d7irH5qRyfJonOdfTzuDaifE6ZPWfx0N0+/ATZCbuTPq2prFl526urkQd90WyUKIh1DfBQ2hMz9A==", - "license": "ISC", "optional": true }, "node_modules/inflight": { "version": "1.0.6", "resolved": "https://registry.npmjs.org/inflight/-/inflight-1.0.6.tgz", "integrity": "sha512-k92I/b08q4wvFscXCLvqfsHCrjrF7yiXsQuIVvVE7N82W3+aqpzuUdBbfhWcy/FZR3/4IgflMgKLOsvPDrGCJA==", - "license": "ISC", "dependencies": { "once": "^1.3.0", "wrappy": "1" @@ -5351,20 +5408,17 @@ "node_modules/inherits": { "version": "2.0.4", "resolved": "https://registry.npmjs.org/inherits/-/inherits-2.0.4.tgz", - "integrity": "sha512-k/vGaX4/Yla3WzyMCvTQOXYeIHvqOKtnqBduzTHpzpQZzAskKMhZ2K+EnBiSM9zGSoIFeMpXKxa4dYeZIQqewQ==", - "license": "ISC" + "integrity": "sha512-k/vGaX4/Yla3WzyMCvTQOXYeIHvqOKtnqBduzTHpzpQZzAskKMhZ2K+EnBiSM9zGSoIFeMpXKxa4dYeZIQqewQ==" }, "node_modules/ini": { "version": "1.3.8", "resolved": "https://registry.npmjs.org/ini/-/ini-1.3.8.tgz", - "integrity": "sha512-JV/yugV2uzW5iMRSiZAyDtQd+nxtUnjeLt0acNdw98kKLrvuRVyB80tsREOE7yvGVgalhZ6RNXCmEHkUKBKxew==", - "license": "ISC" + "integrity": "sha512-JV/yugV2uzW5iMRSiZAyDtQd+nxtUnjeLt0acNdw98kKLrvuRVyB80tsREOE7yvGVgalhZ6RNXCmEHkUKBKxew==" }, "node_modules/internal-slot": { "version": "1.0.7", "resolved": "https://registry.npmjs.org/internal-slot/-/internal-slot-1.0.7.tgz", "integrity": "sha512-NGnrKwXzSms2qUUih/ILZ5JBqNTSa1+ZmP6flaIp6KmSElgE9qdndzS3cqjrDovwFdmwsGsLdeFgB6suw+1e9g==", - "license": "MIT", "dependencies": { "es-errors": "^1.3.0", "hasown": "^2.0.0", @@ -5378,7 +5432,6 @@ "version": "9.0.5", "resolved": "https://registry.npmjs.org/ip-address/-/ip-address-9.0.5.tgz", "integrity": "sha512-zHtQzGojZXTwZTHQqra+ETKd4Sn3vgi7uBmlPoXVWZqYvuKmtI0l/VZTjqGmJY9x88GGOaZ9+G9ES8hC4T4X8g==", - "license": "MIT", "optional": true, "dependencies": { "jsbn": "1.1.0", @@ -5392,7 +5445,6 @@ "version": "3.0.4", "resolved": "https://registry.npmjs.org/is-array-buffer/-/is-array-buffer-3.0.4.tgz", "integrity": "sha512-wcjaerHw0ydZwfhiKbXJWLDY8A7yV7KhjQOpb83hGgGfId/aQa4TOvwyzn2PuswW2gPCYEL/nEAiSVpdOj1lXw==", - "license": "MIT", "dependencies": { "call-bind": "^1.0.2", "get-intrinsic": "^1.2.1" @@ -5408,14 +5460,12 @@ "version": "0.2.1", "resolved": "https://registry.npmjs.org/is-arrayish/-/is-arrayish-0.2.1.tgz", "integrity": "sha512-zz06S8t0ozoDXMG+ube26zeCTNXcKIPJZJi8hBrF4idCLms4CG9QtK7qBl1boi5ODzFpjswb5JPmHCbMpjaYzg==", - "dev": true, - "license": "MIT" + "dev": true }, "node_modules/is-bigint": { "version": "1.0.4", "resolved": "https://registry.npmjs.org/is-bigint/-/is-bigint-1.0.4.tgz", "integrity": "sha512-zB9CruMamjym81i2JZ3UMn54PKGsQzsJeo6xvN3HJJ4CAsQNB6iRutp2To77OfCNuoxspsIhzaPoO1zyCEhFOg==", - "license": "MIT", "dependencies": { "has-bigints": "^1.0.1" }, @@ -5427,7 +5477,6 @@ "version": "1.1.2", "resolved": "https://registry.npmjs.org/is-boolean-object/-/is-boolean-object-1.1.2.tgz", "integrity": "sha512-gDYaKHJmnj4aWxyj6YHyXVpdQawtVLHU5cb+eztPGczf6cjuTdwve5ZIEfgXqH4e57An1D1AKf8CZ3kYrQRqYA==", - "license": "MIT", "dependencies": { "call-bind": "^1.0.2", "has-tostringtag": "^1.0.0" @@ -5442,14 +5491,12 @@ "node_modules/is-buffer": { "version": "1.1.6", "resolved": "https://registry.npmjs.org/is-buffer/-/is-buffer-1.1.6.tgz", - "integrity": "sha512-NcdALwpXkTm5Zvvbk7owOUSvVvBKDgKP5/ewfXEznmQFfs4ZRmanOeKBTjRVjka3QFoN6XJ+9F3USqfHqTaU5w==", - "license": "MIT" + "integrity": "sha512-NcdALwpXkTm5Zvvbk7owOUSvVvBKDgKP5/ewfXEznmQFfs4ZRmanOeKBTjRVjka3QFoN6XJ+9F3USqfHqTaU5w==" }, "node_modules/is-callable": { "version": "1.2.7", "resolved": "https://registry.npmjs.org/is-callable/-/is-callable-1.2.7.tgz", "integrity": "sha512-1BC0BVFhS/p0qtw6enp8e+8OD0UrK0oFLztSjNzhcKA3WDuJxxAPXzPuPtKkjEY9UUoEWlX/8fgKeu2S8i9JTA==", - "license": "MIT", "engines": { "node": ">= 0.4" }, @@ -5461,7 +5508,6 @@ "version": "2.13.1", "resolved": "https://registry.npmjs.org/is-core-module/-/is-core-module-2.13.1.tgz", "integrity": "sha512-hHrIjvZsftOsvKSn2TRYl63zvxsgE0K+0mYMoH6gD4omR5IWB2KynivBQczo3+wF1cCkjzvptnI9Q0sPU66ilw==", - "license": "MIT", "dependencies": { "hasown": "^2.0.0" }, @@ -5473,7 +5519,6 @@ "version": "1.0.5", "resolved": "https://registry.npmjs.org/is-date-object/-/is-date-object-1.0.5.tgz", "integrity": "sha512-9YQaSxsAiSwcvS33MBk3wTCVnWK+HhF8VZR2jRxehM16QcVOdHqPn4VPHmRK4lSr38n9JriurInLcP90xsYNfQ==", - "license": "MIT", "dependencies": { "has-tostringtag": "^1.0.0" }, @@ -5486,7 +5531,8 @@ }, "node_modules/is-extglob": { "version": "2.1.1", - "license": "MIT", + "resolved": "https://registry.npmjs.org/is-extglob/-/is-extglob-2.1.1.tgz", + "integrity": "sha512-SbKbANkN603Vi4jEZv49LeVJMn4yGwsbzZworEoyEiutsN3nJYdbO36zfhGJ6QEDpOZIFkDtnq5JRxmvl3jsoQ==", "peer": true, "engines": { "node": ">=0.10.0" @@ -5497,7 +5543,6 @@ "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, - "license": "MIT", "engines": { "node": ">=8" } @@ -5507,14 +5552,14 @@ "resolved": "https://registry.npmjs.org/is-generator-fn/-/is-generator-fn-2.1.0.tgz", "integrity": "sha512-cTIB4yPYL/Grw0EaSzASzg6bBy9gqCofvWN8okThAYIxKJZC+udlRAmGbM0XLeniEJSs8uEgHPGuHSe1XsOLSQ==", "dev": true, - "license": "MIT", "engines": { "node": ">=6" } }, "node_modules/is-glob": { "version": "4.0.3", - "license": "MIT", + "resolved": "https://registry.npmjs.org/is-glob/-/is-glob-4.0.3.tgz", + "integrity": "sha512-xelSayHH36ZgE7ZWhli7pW34hNbNl8Ojv5KVmkJD4hBdD3th8Tfk9vYasLM+mXWOZhFkgZfxhLSnrwRr4elSSg==", "peer": true, "dependencies": { "is-extglob": "^2.1.1" @@ -5527,14 +5572,12 @@ "version": "1.0.1", "resolved": "https://registry.npmjs.org/is-lambda/-/is-lambda-1.0.1.tgz", "integrity": "sha512-z7CMFGNrENq5iFB9Bqo64Xk6Y9sg+epq1myIcdHaGnbMTYOxvzsEtdYqQUylB7LxfkvgrrjP32T6Ywciio9UIQ==", - "license": "MIT", "optional": true }, "node_modules/is-negative-zero": { "version": "2.0.3", "resolved": "https://registry.npmjs.org/is-negative-zero/-/is-negative-zero-2.0.3.tgz", "integrity": "sha512-5KoIu2Ngpyek75jXodFvnafB6DJgr3u8uuK0LEZJjrU19DrMD3EVERaR8sjz8CCGgpZvxPl9SuE1GMVPFHx1mw==", - "license": "MIT", "engines": { "node": ">= 0.4" }, @@ -5547,7 +5590,6 @@ "resolved": "https://registry.npmjs.org/is-number/-/is-number-7.0.0.tgz", "integrity": "sha512-41Cifkg6e8TylSpdtTpeLVMqvSBEVzTttHvERD741+pnZ8ANv0004MRL43QKPDlK9cGvNp6NZWZUBlbGXYxxng==", "dev": true, - "license": "MIT", "engines": { "node": ">=0.12.0" } @@ -5556,7 +5598,6 @@ "version": "1.0.7", "resolved": "https://registry.npmjs.org/is-number-object/-/is-number-object-1.0.7.tgz", "integrity": "sha512-k1U0IRzLMo7ZlYIfzRu23Oh6MiIFasgpb9X76eqfFZAqwH44UI4KTBvBYIZ1dSL9ZzChTB9ShHfLkR4pdW5krQ==", - "license": "MIT", "dependencies": { "has-tostringtag": "^1.0.0" }, @@ -5569,7 +5610,8 @@ }, "node_modules/is-path-inside": { "version": "3.0.3", - "license": "MIT", + "resolved": "https://registry.npmjs.org/is-path-inside/-/is-path-inside-3.0.3.tgz", + "integrity": "sha512-Fd4gABb+ycGAmKou8eMftCupSir5lRxqf4aD/vd0cD2qc4HL07OjCeuHMr8Ro4CoMaeCKDB0/ECBOVWjTwUvPQ==", "peer": true, "engines": { "node": ">=8" @@ -5578,20 +5620,17 @@ "node_modules/is-potential-custom-element-name": { "version": "1.0.1", "resolved": "https://registry.npmjs.org/is-potential-custom-element-name/-/is-potential-custom-element-name-1.0.1.tgz", - "integrity": "sha512-bCYeRA2rVibKZd+s2625gGnGF/t7DSqDs4dP7CrLA1m7jKWz6pps0LpYLJN8Q64HtmPKJ1hrN3nzPNKFEKOUiQ==", - "license": "MIT" + "integrity": "sha512-bCYeRA2rVibKZd+s2625gGnGF/t7DSqDs4dP7CrLA1m7jKWz6pps0LpYLJN8Q64HtmPKJ1hrN3nzPNKFEKOUiQ==" }, "node_modules/is-property": { "version": "1.0.2", "resolved": "https://registry.npmjs.org/is-property/-/is-property-1.0.2.tgz", - "integrity": "sha512-Ks/IoX00TtClbGQr4TWXemAnktAQvYB7HzcCxDGqEZU6oCmb2INHuOoKxbtR+HFkmYWBKv/dOZtGRiAjDhj92g==", - "license": "MIT" + "integrity": "sha512-Ks/IoX00TtClbGQr4TWXemAnktAQvYB7HzcCxDGqEZU6oCmb2INHuOoKxbtR+HFkmYWBKv/dOZtGRiAjDhj92g==" }, "node_modules/is-regex": { "version": "1.1.4", "resolved": "https://registry.npmjs.org/is-regex/-/is-regex-1.1.4.tgz", "integrity": "sha512-kvRdxDsxZjhzUX07ZnLydzS1TU/TJlTUHHY4YLL87e37oUA49DfkLqgy+VjFocowy29cKvcSiu+kIv728jTTVg==", - "license": "MIT", "dependencies": { "call-bind": "^1.0.2", "has-tostringtag": "^1.0.0" @@ -5607,7 +5646,6 @@ "version": "1.0.3", "resolved": "https://registry.npmjs.org/is-shared-array-buffer/-/is-shared-array-buffer-1.0.3.tgz", "integrity": "sha512-nA2hv5XIhLR3uVzDDfCIknerhx8XUKnstuOERPNNIinXG7v9u+ohXF67vxm4TPTEPU6lm61ZkwP3c9PCB97rhg==", - "license": "MIT", "dependencies": { "call-bind": "^1.0.7" }, @@ -5623,7 +5661,6 @@ "resolved": "https://registry.npmjs.org/is-stream/-/is-stream-2.0.1.tgz", "integrity": "sha512-hFoiJiTl63nn+kstHGBtewWSKnQLpyb155KHheA1l39uvtO9nWIop1p3udqPcUd/xbF1VLMO4n7OI6p7RbngDg==", "dev": true, - "license": "MIT", "engines": { "node": ">=8" }, @@ -5635,7 +5672,6 @@ "version": "1.0.7", "resolved": "https://registry.npmjs.org/is-string/-/is-string-1.0.7.tgz", "integrity": "sha512-tE2UXzivje6ofPW7l23cjDOMa09gb7xlAqG6jG5ej6uPV32TlWP3NKPigtaGeHNu9fohccRYvIiZMfOOnOYUtg==", - "license": "MIT", "dependencies": { "has-tostringtag": "^1.0.0" }, @@ -5650,7 +5686,6 @@ "version": "1.0.4", "resolved": "https://registry.npmjs.org/is-symbol/-/is-symbol-1.0.4.tgz", "integrity": "sha512-C/CPBqKWnvdcxqIARxyOh4v1UUEOCHpgDa0WYgpKDFMszcrPcffg5uhwSgPCLD2WWxmq6isisz87tzT01tuGhg==", - "license": "MIT", "dependencies": { "has-symbols": "^1.0.2" }, @@ -5665,7 +5700,6 @@ "version": "1.1.13", "resolved": "https://registry.npmjs.org/is-typed-array/-/is-typed-array-1.1.13.tgz", "integrity": "sha512-uZ25/bUAlUY5fR4OKT4rZQEBrzQWYV9ZJYGGsUmEJ6thodVJ1HX64ePQ6Z0qPWP+m+Uq6e9UugrE38jeYsDSMw==", - "license": "MIT", "dependencies": { "which-typed-array": "^1.1.14" }, @@ -5679,14 +5713,12 @@ "node_modules/is-typedarray": { "version": "1.0.0", "resolved": "https://registry.npmjs.org/is-typedarray/-/is-typedarray-1.0.0.tgz", - "integrity": "sha512-cyA56iCMHAh5CdzjJIa4aohJyeO1YbwLi3Jc35MmRU6poroFjIGZzUzupGiRPOjgHg9TLu43xbpwXk523fMxKA==", - "license": "MIT" + "integrity": "sha512-cyA56iCMHAh5CdzjJIa4aohJyeO1YbwLi3Jc35MmRU6poroFjIGZzUzupGiRPOjgHg9TLu43xbpwXk523fMxKA==" }, "node_modules/is-weakref": { "version": "1.0.2", "resolved": "https://registry.npmjs.org/is-weakref/-/is-weakref-1.0.2.tgz", "integrity": "sha512-qctsuLZmIQ0+vSSMfoVvyFe2+GSEvnmZ2ezTup1SBse9+twCCeial6EEi3Nc2KFcf6+qz2FBPnjXsk8xhKSaPQ==", - "license": "MIT", "dependencies": { "call-bind": "^1.0.2" }, @@ -5697,27 +5729,23 @@ "node_modules/isarray": { "version": "2.0.5", "resolved": "https://registry.npmjs.org/isarray/-/isarray-2.0.5.tgz", - "integrity": "sha512-xHjhDr3cNBK0BzdUJSPXZntQUx/mwMS5Rw4A7lPJ90XGAO6ISP/ePDNuo0vhqOZU+UD5JoodwCAAoZQd3FeAKw==", - "license": "MIT" + "integrity": "sha512-xHjhDr3cNBK0BzdUJSPXZntQUx/mwMS5Rw4A7lPJ90XGAO6ISP/ePDNuo0vhqOZU+UD5JoodwCAAoZQd3FeAKw==" }, "node_modules/isexe": { "version": "2.0.0", "resolved": "https://registry.npmjs.org/isexe/-/isexe-2.0.0.tgz", - "integrity": "sha512-RHxMLp9lnKHGHRng9QFhRCMbYAcVpn69smSGcq3f36xjgVVWThj4qqLbTLlq7Ssj8B+fIQ1EuCEGI2lKsyQeIw==", - "license": "ISC" + "integrity": "sha512-RHxMLp9lnKHGHRng9QFhRCMbYAcVpn69smSGcq3f36xjgVVWThj4qqLbTLlq7Ssj8B+fIQ1EuCEGI2lKsyQeIw==" }, "node_modules/isstream": { "version": "0.1.2", "resolved": "https://registry.npmjs.org/isstream/-/isstream-0.1.2.tgz", - "integrity": "sha512-Yljz7ffyPbrLpLngrMtZ7NduUgVvi6wG9RJ9IUcyCd59YQ911PBJphODUcbOVbqYfxe1wuYf/LJ8PauMRwsM/g==", - "license": "MIT" + "integrity": "sha512-Yljz7ffyPbrLpLngrMtZ7NduUgVvi6wG9RJ9IUcyCd59YQ911PBJphODUcbOVbqYfxe1wuYf/LJ8PauMRwsM/g==" }, "node_modules/istanbul-lib-coverage": { "version": "3.2.2", "resolved": "https://registry.npmjs.org/istanbul-lib-coverage/-/istanbul-lib-coverage-3.2.2.tgz", "integrity": "sha512-O8dpsF+r0WV/8MNRKfnmrtCWhuKjxrq2w+jpzBL5UZKTi2LeVWnWOmWRxFlesJONmc+wLAGvKQZEOanko0LFTg==", "dev": true, - "license": "BSD-3-Clause", "engines": { "node": ">=8" } @@ -5727,7 +5755,6 @@ "resolved": "https://registry.npmjs.org/istanbul-lib-instrument/-/istanbul-lib-instrument-6.0.2.tgz", "integrity": "sha512-1WUsZ9R1lA0HtBSohTkm39WTPlNKSJ5iFk7UwqXkBLoHQT+hfqPsfsTDVuZdKGaBwn7din9bS7SsnoAr943hvw==", "dev": true, - "license": "BSD-3-Clause", "dependencies": { "@babel/core": "^7.23.9", "@babel/parser": "^7.23.9", @@ -5744,7 +5771,6 @@ "resolved": "https://registry.npmjs.org/lru-cache/-/lru-cache-6.0.0.tgz", "integrity": "sha512-Jo6dJ04CmSjuznwJSS3pUeWmd/H0ffTlkXXgwZi+eq1UCmqQwCh+eLsYOYCwY991i2Fah4h1BEMCx4qThGbsiA==", "dev": true, - "license": "ISC", "dependencies": { "yallist": "^4.0.0" }, @@ -5757,7 +5783,6 @@ "resolved": "https://registry.npmjs.org/semver/-/semver-7.6.0.tgz", "integrity": "sha512-EnwXhrlwXMk9gKu5/flx5sv/an57AkRplG3hTK68W7FRDN+k+OWBj65M7719OkA82XLBxrcX0KSHj+X5COhOVg==", "dev": true, - "license": "ISC", "dependencies": { "lru-cache": "^6.0.0" }, @@ -5772,15 +5797,13 @@ "version": "4.0.0", "resolved": "https://registry.npmjs.org/yallist/-/yallist-4.0.0.tgz", "integrity": "sha512-3wdGidZyq5PB084XLES5TpOSRA3wjXAlIWMhum2kRcv/41Sn2emQ0dycQW4uZXLejwKvg6EsvbdlVL+FYEct7A==", - "dev": true, - "license": "ISC" + "dev": true }, "node_modules/istanbul-lib-report": { "version": "3.0.1", "resolved": "https://registry.npmjs.org/istanbul-lib-report/-/istanbul-lib-report-3.0.1.tgz", "integrity": "sha512-GCfE1mtsHGOELCU8e/Z7YWzpmybrx/+dSTfLrvY8qRmaY6zXTKWn6WQIjaAFw069icm6GVMNkgu0NzI4iPZUNw==", "dev": true, - "license": "BSD-3-Clause", "dependencies": { "istanbul-lib-coverage": "^3.0.0", "make-dir": "^4.0.0", @@ -5795,7 +5818,6 @@ "resolved": "https://registry.npmjs.org/istanbul-lib-source-maps/-/istanbul-lib-source-maps-4.0.1.tgz", "integrity": "sha512-n3s8EwkdFIJCG3BPKBYvskgXGoy88ARzvegkitk60NxRdwltLOTaH7CUiMRXvwYorl0Q712iEjcWB+fK/MrWVw==", "dev": true, - "license": "BSD-3-Clause", "dependencies": { "debug": "^4.1.1", "istanbul-lib-coverage": "^3.0.0", @@ -5810,7 +5832,6 @@ "resolved": "https://registry.npmjs.org/istanbul-reports/-/istanbul-reports-3.1.7.tgz", "integrity": "sha512-BewmUXImeuRk2YY0PVbxgKAysvhRPUQE0h5QRM++nVWyubKGV0l8qQ5op8+B2DOmwSe63Jivj0BjkPQVf8fP5g==", "dev": true, - "license": "BSD-3-Clause", "dependencies": { "html-escaper": "^2.0.0", "istanbul-lib-report": "^3.0.0" @@ -5824,7 +5845,6 @@ "resolved": "https://registry.npmjs.org/jest/-/jest-29.7.0.tgz", "integrity": "sha512-NIy3oAFp9shda19hy4HK0HRTWKtPJmGdnvywu01nOqNC2vZg+Z+fvJDxpMQA88eb2I9EcafcdjYgsDthnYTvGw==", "dev": true, - "license": "MIT", "dependencies": { "@jest/core": "^29.7.0", "@jest/types": "^29.6.3", @@ -5851,7 +5871,6 @@ "resolved": "https://registry.npmjs.org/jest-changed-files/-/jest-changed-files-29.7.0.tgz", "integrity": "sha512-fEArFiwf1BpQ+4bXSprcDc3/x4HSzL4al2tozwVpDFpsxALjLYdyiIK4e5Vz66GQJIbXJ82+35PtysofptNX2w==", "dev": true, - "license": "MIT", "dependencies": { "execa": "^5.0.0", "jest-util": "^29.7.0", @@ -5866,7 +5885,6 @@ "resolved": "https://registry.npmjs.org/jest-circus/-/jest-circus-29.7.0.tgz", "integrity": "sha512-3E1nCMgipcTkCocFwM90XXQab9bS+GMsjdpmPrlelaxwD93Ad8iVEjX/vvHPdLPnFf+L40u+5+iutRdA1N9myw==", "dev": true, - "license": "MIT", "dependencies": { "@jest/environment": "^29.7.0", "@jest/expect": "^29.7.0", @@ -5898,7 +5916,6 @@ "resolved": "https://registry.npmjs.org/jest-cli/-/jest-cli-29.7.0.tgz", "integrity": "sha512-OVVobw2IubN/GSYsxETi+gOe7Ka59EFMR/twOU3Jb2GnKKeMGJB5SGUUrEz3SFVmJASUdZUzy83sLNNQ2gZslg==", "dev": true, - "license": "MIT", "dependencies": { "@jest/core": "^29.7.0", "@jest/test-result": "^29.7.0", @@ -5932,7 +5949,6 @@ "resolved": "https://registry.npmjs.org/jest-config/-/jest-config-29.7.0.tgz", "integrity": "sha512-uXbpfeQ7R6TZBqI3/TxCU4q4ttk3u0PJeC+E0zbfSoSjq6bJ7buBPxzQPL0ifrkY4DNu4JUdk0ImlBUYi840eQ==", "dev": true, - "license": "MIT", "dependencies": { "@babel/core": "^7.11.6", "@jest/test-sequencer": "^29.7.0", @@ -5978,7 +5994,6 @@ "resolved": "https://registry.npmjs.org/jest-diff/-/jest-diff-29.7.0.tgz", "integrity": "sha512-LMIgiIrhigmPrs03JHpxUh2yISK3vLFPkAodPeo0+BuF7wA2FoQbkEg1u8gBYBThncu7e1oEDUfIXVuTqLRUjw==", "dev": true, - "license": "MIT", "dependencies": { "chalk": "^4.0.0", "diff-sequences": "^29.6.3", @@ -5994,7 +6009,6 @@ "resolved": "https://registry.npmjs.org/jest-docblock/-/jest-docblock-29.7.0.tgz", "integrity": "sha512-q617Auw3A612guyaFgsbFeYpNP5t2aoUNLwBUbc/0kD1R4t9ixDbyFTHd1nok4epoVFpr7PmeWHrhvuV3XaJ4g==", "dev": true, - "license": "MIT", "dependencies": { "detect-newline": "^3.0.0" }, @@ -6007,7 +6021,6 @@ "resolved": "https://registry.npmjs.org/jest-each/-/jest-each-29.7.0.tgz", "integrity": "sha512-gns+Er14+ZrEoC5fhOfYCY1LOHHr0TI+rQUHZS8Ttw2l7gl+80eHc/gFf2Ktkw0+SIACDTeWvpFcv3B04VembQ==", "dev": true, - "license": "MIT", "dependencies": { "@jest/types": "^29.6.3", "chalk": "^4.0.0", @@ -6024,7 +6037,6 @@ "resolved": "https://registry.npmjs.org/jest-environment-node/-/jest-environment-node-29.7.0.tgz", "integrity": "sha512-DOSwCRqXirTOyheM+4d5YZOrWcdu0LNZ87ewUoywbcb2XR4wKgqiG8vNeYwhjFMbEkfju7wx2GYH0P2gevGvFw==", "dev": true, - "license": "MIT", "dependencies": { "@jest/environment": "^29.7.0", "@jest/fake-timers": "^29.7.0", @@ -6042,7 +6054,6 @@ "resolved": "https://registry.npmjs.org/jest-get-type/-/jest-get-type-29.6.3.tgz", "integrity": "sha512-zrteXnqYxfQh7l5FHyL38jL39di8H8rHoecLH3JNxH3BwOrBsNeabdap5e0I23lD4HHI8W5VFBZqG4Eaq5LNcw==", "dev": true, - "license": "MIT", "engines": { "node": "^14.15.0 || ^16.10.0 || >=18.0.0" } @@ -6052,7 +6063,6 @@ "resolved": "https://registry.npmjs.org/jest-haste-map/-/jest-haste-map-29.7.0.tgz", "integrity": "sha512-fP8u2pyfqx0K1rGn1R9pyE0/KTn+G7PxktWidOBTqFPLYX0b9ksaMFkhK5vrS3DVun09pckLdlx90QthlW7AmA==", "dev": true, - "license": "MIT", "dependencies": { "@jest/types": "^29.6.3", "@types/graceful-fs": "^4.1.3", @@ -6078,7 +6088,6 @@ "resolved": "https://registry.npmjs.org/jest-leak-detector/-/jest-leak-detector-29.7.0.tgz", "integrity": "sha512-kYA8IJcSYtST2BY9I+SMC32nDpBT3J2NvWJx8+JCuCdl/CR1I4EKUJROiP8XtCcxqgTTBGJNdbB1A8XRKbTetw==", "dev": true, - "license": "MIT", "dependencies": { "jest-get-type": "^29.6.3", "pretty-format": "^29.7.0" @@ -6092,7 +6101,6 @@ "resolved": "https://registry.npmjs.org/jest-matcher-utils/-/jest-matcher-utils-29.7.0.tgz", "integrity": "sha512-sBkD+Xi9DtcChsI3L3u0+N0opgPYnCRPtGcQYrgXmR+hmt/fYfWAL0xRXYU8eWOdfuLgBe0YCW3AFtnRLagq/g==", "dev": true, - "license": "MIT", "dependencies": { "chalk": "^4.0.0", "jest-diff": "^29.7.0", @@ -6108,7 +6116,6 @@ "resolved": "https://registry.npmjs.org/jest-message-util/-/jest-message-util-29.7.0.tgz", "integrity": "sha512-GBEV4GRADeP+qtB2+6u61stea8mGcOT4mCtrYISZwfu9/ISHFJ/5zOMXYbpBE9RsS5+Gb63DW4FgmnKJ79Kf6w==", "dev": true, - "license": "MIT", "dependencies": { "@babel/code-frame": "^7.12.13", "@jest/types": "^29.6.3", @@ -6129,7 +6136,6 @@ "resolved": "https://registry.npmjs.org/jest-mock/-/jest-mock-29.7.0.tgz", "integrity": "sha512-ITOMZn+UkYS4ZFh83xYAOzWStloNzJFO2s8DWrE4lhtGD+AorgnbkiKERe4wQVBydIGPx059g6riW5Btp6Llnw==", "dev": true, - "license": "MIT", "dependencies": { "@jest/types": "^29.6.3", "@types/node": "*", @@ -6144,7 +6150,6 @@ "resolved": "https://registry.npmjs.org/jest-pnp-resolver/-/jest-pnp-resolver-1.2.3.tgz", "integrity": "sha512-+3NpwQEnRoIBtx4fyhblQDPgJI0H1IEIkX7ShLUjPGA7TtUTvI1oiKi3SR4oBR0hQhQR80l4WAe5RrXBwWMA8w==", "dev": true, - "license": "MIT", "engines": { "node": ">=6" }, @@ -6162,7 +6167,6 @@ "resolved": "https://registry.npmjs.org/jest-regex-util/-/jest-regex-util-29.6.3.tgz", "integrity": "sha512-KJJBsRCyyLNWCNBOvZyRDnAIfUiRJ8v+hOBQYGn8gDyF3UegwiP4gwRR3/SDa42g1YbVycTidUF3rKjyLFDWbg==", "dev": true, - "license": "MIT", "engines": { "node": "^14.15.0 || ^16.10.0 || >=18.0.0" } @@ -6172,7 +6176,6 @@ "resolved": "https://registry.npmjs.org/jest-resolve/-/jest-resolve-29.7.0.tgz", "integrity": "sha512-IOVhZSrg+UvVAshDSDtHyFCCBUl/Q3AAJv8iZ6ZjnZ74xzvwuzLXid9IIIPgTnY62SJjfuupMKZsZQRsCvxEgA==", "dev": true, - "license": "MIT", "dependencies": { "chalk": "^4.0.0", "graceful-fs": "^4.2.9", @@ -6193,7 +6196,6 @@ "resolved": "https://registry.npmjs.org/jest-resolve-dependencies/-/jest-resolve-dependencies-29.7.0.tgz", "integrity": "sha512-un0zD/6qxJ+S0et7WxeI3H5XSe9lTBBR7bOHCHXkKR6luG5mwDDlIzVQ0V5cZCuoTgEdcdwzTghYkTWfubi+nA==", "dev": true, - "license": "MIT", "dependencies": { "jest-regex-util": "^29.6.3", "jest-snapshot": "^29.7.0" @@ -6207,7 +6209,6 @@ "resolved": "https://registry.npmjs.org/jest-runner/-/jest-runner-29.7.0.tgz", "integrity": "sha512-fsc4N6cPCAahybGBfTRcq5wFR6fpLznMg47sY5aDpsoejOcVYFb07AHuSnR0liMcPTgBsA3ZJL6kFOjPdoNipQ==", "dev": true, - "license": "MIT", "dependencies": { "@jest/console": "^29.7.0", "@jest/environment": "^29.7.0", @@ -6240,7 +6241,6 @@ "resolved": "https://registry.npmjs.org/jest-runtime/-/jest-runtime-29.7.0.tgz", "integrity": "sha512-gUnLjgwdGqW7B4LvOIkbKs9WGbn+QLqRQQ9juC6HndeDiezIwhDP+mhMwHWCEcfQ5RUXa6OPnFF8BJh5xegwwQ==", "dev": true, - "license": "MIT", "dependencies": { "@jest/environment": "^29.7.0", "@jest/fake-timers": "^29.7.0", @@ -6274,7 +6274,6 @@ "resolved": "https://registry.npmjs.org/jest-snapshot/-/jest-snapshot-29.7.0.tgz", "integrity": "sha512-Rm0BMWtxBcioHr1/OX5YCP8Uov4riHvKPknOGs804Zg9JGZgmIBkbtlxJC/7Z4msKYVbIJtfU+tKb8xlYNfdkw==", "dev": true, - "license": "MIT", "dependencies": { "@babel/core": "^7.11.6", "@babel/generator": "^7.7.2", @@ -6306,7 +6305,6 @@ "resolved": "https://registry.npmjs.org/lru-cache/-/lru-cache-6.0.0.tgz", "integrity": "sha512-Jo6dJ04CmSjuznwJSS3pUeWmd/H0ffTlkXXgwZi+eq1UCmqQwCh+eLsYOYCwY991i2Fah4h1BEMCx4qThGbsiA==", "dev": true, - "license": "ISC", "dependencies": { "yallist": "^4.0.0" }, @@ -6319,7 +6317,6 @@ "resolved": "https://registry.npmjs.org/semver/-/semver-7.6.0.tgz", "integrity": "sha512-EnwXhrlwXMk9gKu5/flx5sv/an57AkRplG3hTK68W7FRDN+k+OWBj65M7719OkA82XLBxrcX0KSHj+X5COhOVg==", "dev": true, - "license": "ISC", "dependencies": { "lru-cache": "^6.0.0" }, @@ -6334,15 +6331,13 @@ "version": "4.0.0", "resolved": "https://registry.npmjs.org/yallist/-/yallist-4.0.0.tgz", "integrity": "sha512-3wdGidZyq5PB084XLES5TpOSRA3wjXAlIWMhum2kRcv/41Sn2emQ0dycQW4uZXLejwKvg6EsvbdlVL+FYEct7A==", - "dev": true, - "license": "ISC" + "dev": true }, "node_modules/jest-util": { "version": "29.7.0", "resolved": "https://registry.npmjs.org/jest-util/-/jest-util-29.7.0.tgz", "integrity": "sha512-z6EbKajIpqGKU56y5KBUgy1dt1ihhQJgWzUlZHArA/+X2ad7Cb5iF+AK1EWVL/Bo7Rz9uurpqw6SiBCefUbCGA==", "dev": true, - "license": "MIT", "dependencies": { "@jest/types": "^29.6.3", "@types/node": "*", @@ -6360,7 +6355,6 @@ "resolved": "https://registry.npmjs.org/jest-validate/-/jest-validate-29.7.0.tgz", "integrity": "sha512-ZB7wHqaRGVw/9hST/OuFUReG7M8vKeq0/J2egIGLdvjHCmYqGARhzXmtgi+gVeZ5uXFF219aOc3Ls2yLg27tkw==", "dev": true, - "license": "MIT", "dependencies": { "@jest/types": "^29.6.3", "camelcase": "^6.2.0", @@ -6378,7 +6372,6 @@ "resolved": "https://registry.npmjs.org/camelcase/-/camelcase-6.3.0.tgz", "integrity": "sha512-Gmy6FhYlCY7uOElZUSbxo2UCDH8owEk996gkbrpsgGtrJLM3J7jGxl9Ic7Qwwj4ivOE5AWZWRMecDdF7hqGjFA==", "dev": true, - "license": "MIT", "engines": { "node": ">=10" }, @@ -6391,7 +6384,6 @@ "resolved": "https://registry.npmjs.org/jest-watcher/-/jest-watcher-29.7.0.tgz", "integrity": "sha512-49Fg7WXkU3Vl2h6LbLtMQ/HyB6rXSIX7SqvBLQmssRBGN9I0PNvPmAmCWSOY6SOvrjhI/F7/bGAv9RtnsPA03g==", "dev": true, - "license": "MIT", "dependencies": { "@jest/test-result": "^29.7.0", "@jest/types": "^29.6.3", @@ -6411,7 +6403,6 @@ "resolved": "https://registry.npmjs.org/jest-worker/-/jest-worker-29.7.0.tgz", "integrity": "sha512-eIz2msL/EzL9UFTFFx7jBTkeZfku0yUAyZZZmJ93H2TYEiroIx2PQjEXcwYtYl8zXCxb+PAmA2hLIt/6ZEkPHw==", "dev": true, - "license": "MIT", "dependencies": { "@types/node": "*", "jest-util": "^29.7.0", @@ -6427,7 +6418,6 @@ "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-8.1.1.tgz", "integrity": "sha512-MpUEN2OodtUzxvKQl72cUF7RQ5EiHsGvSsVG0ia9c5RbWGL2CI4C7EpPS8UTBIplnlzZiNuV56w+FuNxy3ty2Q==", "dev": true, - "license": "MIT", "dependencies": { "has-flag": "^4.0.0" }, @@ -6442,7 +6432,6 @@ "version": "1.0.10", "resolved": "https://registry.npmjs.org/js-tiktoken/-/js-tiktoken-1.0.10.tgz", "integrity": "sha512-ZoSxbGjvGyMT13x6ACo9ebhDha/0FHdKA+OsQcMOWcm1Zs7r90Rhk5lhERLzji+3rA7EKpXCgwXcM5fF3DMpdA==", - "license": "MIT", "dependencies": { "base64-js": "^1.5.1" } @@ -6451,21 +6440,30 @@ "version": "4.0.0", "resolved": "https://registry.npmjs.org/js-tokens/-/js-tokens-4.0.0.tgz", "integrity": "sha512-RdJUflcE3cUzKiMqQgsCu06FPu9UdIJO0beYbPhHN4k6apgJtifcoCtT9bcxOpYBtpD2kCM6Sbzg4CausW/PKQ==", - "dev": true, - "license": "MIT" + "dev": true + }, + "node_modules/js-yaml": { + "version": "4.1.0", + "resolved": "https://registry.npmjs.org/js-yaml/-/js-yaml-4.1.0.tgz", + "integrity": "sha512-wpxZs9NoxZaJESJGIZTyDEaYpl0FKSA+FB9aJiyemKhMwkxQg63h4T1KJgUGHpTqPDNRcmmYLugrRjJlBtWvRA==", + "peer": true, + "dependencies": { + "argparse": "^2.0.1" + }, + "bin": { + "js-yaml": "bin/js-yaml.js" + } }, "node_modules/jsbn": { "version": "1.1.0", "resolved": "https://registry.npmjs.org/jsbn/-/jsbn-1.1.0.tgz", "integrity": "sha512-4bYVV3aAMtDTTu4+xsDYa6sy9GyJ69/amsu9sYF2zqjiEoZA5xJi3BrfX3uY+/IekIu7MwdObdbDWpoZdBv3/A==", - "license": "MIT", "optional": true }, "node_modules/jsdom": { "version": "24.0.0", "resolved": "https://registry.npmjs.org/jsdom/-/jsdom-24.0.0.tgz", "integrity": "sha512-UDS2NayCvmXSXVP6mpTj+73JnNQadZlr9N68189xib2tx5Mls7swlTNao26IoHv46BZJFvXygyRtyXd1feAk1A==", - "license": "MIT", "dependencies": { "cssstyle": "^4.0.1", "data-urls": "^5.0.0", @@ -6501,67 +6499,11 @@ } } }, - "node_modules/jsdom/node_modules/tr46": { - "version": "5.0.0", - "resolved": "https://registry.npmjs.org/tr46/-/tr46-5.0.0.tgz", - "integrity": "sha512-tk2G5R2KRwBd+ZN0zaEXpmzdKyOYksXwywulIX95MBODjSzMIuQnQ3m8JxgbhnL1LeVo7lqQKsYa1O3Htl7K5g==", - "license": "MIT", - "dependencies": { - "punycode": "^2.3.1" - }, - "engines": { - "node": ">=18" - } - }, - "node_modules/jsdom/node_modules/webidl-conversions": { - "version": "7.0.0", - "resolved": "https://registry.npmjs.org/webidl-conversions/-/webidl-conversions-7.0.0.tgz", - "integrity": "sha512-VwddBukDzu71offAQR975unBIGqfKZpM+8ZX6ySk8nYhVoo5CYaZyzt3YBvYtRtO+aoGlqxPg/B87NGVZ/fu6g==", - "license": "BSD-2-Clause", - "engines": { - "node": ">=12" - } - }, - "node_modules/jsdom/node_modules/whatwg-url": { - "version": "14.0.0", - "resolved": "https://registry.npmjs.org/whatwg-url/-/whatwg-url-14.0.0.tgz", - "integrity": "sha512-1lfMEm2IEr7RIV+f4lUNPOqfFL+pO+Xw3fJSqmjX9AbXcXcYOkCe1P6+9VBZB6n94af16NfZf+sSk0JCBZC9aw==", - "license": "MIT", - "dependencies": { - "tr46": "^5.0.0", - "webidl-conversions": "^7.0.0" - }, - "engines": { - "node": ">=18" - } - }, - "node_modules/jsdom/node_modules/ws": { - "version": "8.16.0", - "resolved": "https://registry.npmjs.org/ws/-/ws-8.16.0.tgz", - "integrity": "sha512-HS0c//TP7Ina87TfiPUz1rQzMhHrl/SG2guqRcTOIUYD2q8uhUdNHZYJUaQ8aTGPzCh+c6oawMKW35nFl1dxyQ==", - "license": "MIT", - "engines": { - "node": ">=10.0.0" - }, - "peerDependencies": { - "bufferutil": "^4.0.1", - "utf-8-validate": ">=5.0.2" - }, - "peerDependenciesMeta": { - "bufferutil": { - "optional": true - }, - "utf-8-validate": { - "optional": true - } - } - }, "node_modules/jsesc": { "version": "2.5.2", "resolved": "https://registry.npmjs.org/jsesc/-/jsesc-2.5.2.tgz", "integrity": "sha512-OYu7XEzjkCQ3C5Ps3QIZsQfNpqoJyZZA99wd9aWd05NCtC5pWOkShK2mkL6HXQR6/Cy2lbNdPlZBpuQHXE63gA==", "dev": true, - "license": "MIT", "bin": { "jsesc": "bin/jsesc" }, @@ -6571,51 +6513,51 @@ }, "node_modules/json-bignum": { "version": "0.0.3", + "resolved": "https://registry.npmjs.org/json-bignum/-/json-bignum-0.0.3.tgz", + "integrity": "sha512-2WHyXj3OfHSgNyuzDbSxI1w2jgw5gkWSWhS7Qg4bWXx1nLk3jnbwfUeS0PSba3IzpTUWdHxBieELUzXRjQB2zg==", + "peer": true, "engines": { "node": ">=0.8" } }, "node_modules/json-buffer": { "version": "3.0.1", - "license": "MIT", + "resolved": "https://registry.npmjs.org/json-buffer/-/json-buffer-3.0.1.tgz", + "integrity": "sha512-4bV5BfR2mqfQTJm+V5tPPdf+ZpuhiIvTuAB5g8kcrXOZpTT/QwwVRWBywX1ozr6lEuPdbHxwaJlm9G6mI2sfSQ==", "peer": true }, "node_modules/json-parse-even-better-errors": { "version": "2.3.1", "resolved": "https://registry.npmjs.org/json-parse-even-better-errors/-/json-parse-even-better-errors-2.3.1.tgz", "integrity": "sha512-xyFwyhro/JEof6Ghe2iz2NcXoj2sloNsWr/XsERDK/oiPCfaNhl5ONfp+jQdAZRQQ0IJWNzH9zIZF7li91kh2w==", - "dev": true, - "license": "MIT" + "dev": true }, "node_modules/json-schema": { "version": "0.4.0", "resolved": "https://registry.npmjs.org/json-schema/-/json-schema-0.4.0.tgz", - "integrity": "sha512-es94M3nTIfsEPisRafak+HDLfHXnKBhV3vU5eqPcS3flIWqcxJWgXHXiey3YrpaNsanY5ei1VoYEbOzijuq9BA==", - "license": "(AFL-2.1 OR BSD-3-Clause)" + "integrity": "sha512-es94M3nTIfsEPisRafak+HDLfHXnKBhV3vU5eqPcS3flIWqcxJWgXHXiey3YrpaNsanY5ei1VoYEbOzijuq9BA==" }, "node_modules/json-schema-traverse": { "version": "0.4.1", "resolved": "https://registry.npmjs.org/json-schema-traverse/-/json-schema-traverse-0.4.1.tgz", - "integrity": "sha512-xbbCH5dCYU5T8LcEhhuh7HJ88HXuW3qsI3Y0zOZFKfZEHcpWiHU/Jxzk629Brsab/mMiHQti9wMP+845RPe3Vg==", - "license": "MIT" + "integrity": "sha512-xbbCH5dCYU5T8LcEhhuh7HJ88HXuW3qsI3Y0zOZFKfZEHcpWiHU/Jxzk629Brsab/mMiHQti9wMP+845RPe3Vg==" }, "node_modules/json-stable-stringify-without-jsonify": { "version": "1.0.1", - "license": "MIT", + "resolved": "https://registry.npmjs.org/json-stable-stringify-without-jsonify/-/json-stable-stringify-without-jsonify-1.0.1.tgz", + "integrity": "sha512-Bdboy+l7tA3OGW6FjyFHWkP5LuByj1Tk33Ljyq0axyzdk9//JSi2u3fP1QSmd1KNwq6VOKYGlAu87CisVir6Pw==", "peer": true }, "node_modules/json-stringify-safe": { "version": "5.0.1", "resolved": "https://registry.npmjs.org/json-stringify-safe/-/json-stringify-safe-5.0.1.tgz", - "integrity": "sha512-ZClg6AaYvamvYEE82d3Iyd3vSSIjQ+odgjaTzRuO3s7toCdFKczob2i0zCh7JE8kWn17yvAWhUVxvqGwUalsRA==", - "license": "ISC" + "integrity": "sha512-ZClg6AaYvamvYEE82d3Iyd3vSSIjQ+odgjaTzRuO3s7toCdFKczob2i0zCh7JE8kWn17yvAWhUVxvqGwUalsRA==" }, "node_modules/json5": { "version": "2.2.3", "resolved": "https://registry.npmjs.org/json5/-/json5-2.2.3.tgz", "integrity": "sha512-XmOWe7eyHYH14cLdVPoyg+GOH3rYX++KpzrylJwSW98t3Nk+U8XOl8FWKOgwtzdb8lXGf6zYwDUzeHMWfxasyg==", "dev": true, - "license": "MIT", "bin": { "json5": "lib/cli.js" }, @@ -6627,7 +6569,6 @@ "version": "1.4.2", "resolved": "https://registry.npmjs.org/jsprim/-/jsprim-1.4.2.tgz", "integrity": "sha512-P2bSOMAc/ciLz6DzgjVlGJP9+BrJWu5UDGK70C2iweC5QBIeFf0ZXRvGjEj2uYgrY2MkAAhsSWHDWlFtEroZWw==", - "license": "MIT", "dependencies": { "assert-plus": "1.0.0", "extsprintf": "1.3.0", @@ -6640,7 +6581,8 @@ }, "node_modules/keyv": { "version": "4.5.4", - "license": "MIT", + "resolved": "https://registry.npmjs.org/keyv/-/keyv-4.5.4.tgz", + "integrity": "sha512-oxVHkHR/EJf2CNXnWxRLW6mg7JyCCUcG0DtEGmL2ctUo1PNTin1PUil+r/+4r5MpVgC/fn1kjsx7mjSujKqIpw==", "peer": true, "dependencies": { "json-buffer": "3.0.1" @@ -6651,7 +6593,6 @@ "resolved": "https://registry.npmjs.org/kleur/-/kleur-3.0.3.tgz", "integrity": "sha512-eTIzlVOSUR+JxdDFepEYcBMtZ9Qqdef+rnzWdRZuMbOywu5tO2w2N7rqjoANZ5k9vywhL6Br1VRjUIgTQx4E8w==", "dev": true, - "license": "MIT", "engines": { "node": ">=6" } @@ -6661,14 +6602,14 @@ "resolved": "https://registry.npmjs.org/leven/-/leven-3.1.0.tgz", "integrity": "sha512-qsda+H8jTaUaN/x5vzW2rzc+8Rw4TAQ/4KjB46IwK5VH+IlVeeeje/EoZRpiXvIqjFgK84QffqPztGI3VBLG1A==", "dev": true, - "license": "MIT", "engines": { "node": ">=6" } }, "node_modules/levn": { "version": "0.4.1", - "license": "MIT", + "resolved": "https://registry.npmjs.org/levn/-/levn-0.4.1.tgz", + "integrity": "sha512-+bT2uH4E5LGE7h/n3evcS/sQlJXCpIp6ym8OWJ5eV6+67Dsql/LaaT7qJBAt2rzfoa/5QBGBhxDix1dMt2kQKQ==", "peer": true, "dependencies": { "prelude-ls": "^1.2.1", @@ -6682,20 +6623,17 @@ "version": "1.2.4", "resolved": "https://registry.npmjs.org/lines-and-columns/-/lines-and-columns-1.2.4.tgz", "integrity": "sha512-7ylylesZQ/PV29jhEDl3Ufjo6ZX7gCqJr5F7PKrqc93v7fzSymt1BpwEU8nAUXs8qzzvqhbjhK5QZg6Mt/HkBg==", - "dev": true, - "license": "MIT" + "dev": true }, "node_modules/llama-tokenizer-js": { "version": "1.1.3", "resolved": "https://registry.npmjs.org/llama-tokenizer-js/-/llama-tokenizer-js-1.1.3.tgz", - "integrity": "sha512-+BUgsLCXVQJkjiD/t7PdESLn+yXJIRX/BJfwzVVYfKZ9aN3gsP9xoadBZxKnCxGz2Slby+S7x41gUr2TKNaS4Q==", - "license": "MIT" + "integrity": "sha512-+BUgsLCXVQJkjiD/t7PdESLn+yXJIRX/BJfwzVVYfKZ9aN3gsP9xoadBZxKnCxGz2Slby+S7x41gUr2TKNaS4Q==" }, "node_modules/llm-code-highlighter": { "version": "0.0.14", "resolved": "https://registry.npmjs.org/llm-code-highlighter/-/llm-code-highlighter-0.0.14.tgz", "integrity": "sha512-FxGAmu4zRp3Xi+9esP5SYrr4neC6SZqP+YnP/IfksT9k+AdnoemkQopUtilqKAWZp5c2VqG6NDMnHp6zyadebg==", - "license": "Apache-2.0", "dependencies": { "graphology": "^0.25.4", "graphology-metrics": "^2.2.0", @@ -6704,44 +6642,60 @@ "web-tree-sitter": "^0.21.0" } }, + "node_modules/locate-path": { + "version": "6.0.0", + "resolved": "https://registry.npmjs.org/locate-path/-/locate-path-6.0.0.tgz", + "integrity": "sha512-iPZK6eYjbxRu3uB4/WZ3EsEIMJFMqAoopl3R+zuq0UjcAm/MO6KCweDgPfP3elTztoKP3KtnVHxTn2NHBSDVUw==", + "peer": true, + "dependencies": { + "p-locate": "^5.0.0" + }, + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, "node_modules/lodash": { "version": "4.17.21", "resolved": "https://registry.npmjs.org/lodash/-/lodash-4.17.21.tgz", - "integrity": "sha512-v2kDEe57lecTulaDIuNTPy3Ry4gLGJ6Z1O3vE1krgXZNrsQ+LFTGHVxVjcXPs17LhbZVGedAJv8XZ1tvj5FvSg==", - "license": "MIT" + "integrity": "sha512-v2kDEe57lecTulaDIuNTPy3Ry4gLGJ6Z1O3vE1krgXZNrsQ+LFTGHVxVjcXPs17LhbZVGedAJv8XZ1tvj5FvSg==" }, "node_modules/lodash.assignwith": { "version": "4.2.0", - "license": "MIT" + "resolved": "https://registry.npmjs.org/lodash.assignwith/-/lodash.assignwith-4.2.0.tgz", + "integrity": "sha512-ZznplvbvtjK2gMvnQ1BR/zqPFZmS6jbK4p+6Up4xcRYA7yMIwxHCfbTcrYxXKzzqLsQ05eJPVznEW3tuwV7k1g==", + "peer": true }, "node_modules/lodash.camelcase": { "version": "4.3.0", - "license": "MIT" + "resolved": "https://registry.npmjs.org/lodash.camelcase/-/lodash.camelcase-4.3.0.tgz", + "integrity": "sha512-TwuEnCnxbc3rAvhf/LbG7tJUDzhqXyFnv3dtzLOPgCG/hODL7WFnsbwktkD7yUV0RrreP/l1PALq/YSg6VvjlA==", + "peer": true }, "node_modules/lodash.memoize": { "version": "4.1.2", "resolved": "https://registry.npmjs.org/lodash.memoize/-/lodash.memoize-4.1.2.tgz", "integrity": "sha512-t7j+NzmgnQzTAYXcsHYLgimltOV1MXHtlOWf6GjL9Kj8GK5FInw5JotxvbOs+IvV1/Dzo04/fCGfLVs7aXb4Ag==", - "dev": true, - "license": "MIT" + "dev": true }, "node_modules/lodash.merge": { "version": "4.6.2", - "license": "MIT", + "resolved": "https://registry.npmjs.org/lodash.merge/-/lodash.merge-4.6.2.tgz", + "integrity": "sha512-0KpjqXRVvrYyCsX1swR/XTK0va6VQkQM6MNo7PqW77ByjAhoARA8EfrP1N4+KlKj8YS0ZUCtRT/YUuhyYDujIQ==", "peer": true }, "node_modules/long": { "version": "5.2.3", "resolved": "https://registry.npmjs.org/long/-/long-5.2.3.tgz", - "integrity": "sha512-lcHwpNoggQTObv5apGNCTdJrO69eHOZMi4BNC+rTLER8iHAqGrUVeLh/irVIM7zTw2bOXA8T6uNPeujwOLg/2Q==", - "license": "Apache-2.0" + "integrity": "sha512-lcHwpNoggQTObv5apGNCTdJrO69eHOZMi4BNC+rTLER8iHAqGrUVeLh/irVIM7zTw2bOXA8T6uNPeujwOLg/2Q==" }, "node_modules/lru-cache": { "version": "5.1.1", "resolved": "https://registry.npmjs.org/lru-cache/-/lru-cache-5.1.1.tgz", "integrity": "sha512-KpNARQA3Iwv+jTA0utUVVbrh+Jlrr1Fv0e56GGzAFOXN7dk/FviaDW8LHmK52DlcH4WP2n6gI8vN1aesBFgo9w==", "dev": true, - "license": "ISC", "dependencies": { "yallist": "^3.0.2" } @@ -6751,7 +6705,6 @@ "resolved": "https://registry.npmjs.org/make-dir/-/make-dir-4.0.0.tgz", "integrity": "sha512-hXdUTZYIVOt1Ex//jAQi+wTZZpUpwBj/0QsOzqegb3rGMMeJiSEu5xLHnYfBrRV4RH2+OCSOO95Is/7x1WJ4bw==", "dev": true, - "license": "MIT", "dependencies": { "semver": "^7.5.3" }, @@ -6767,7 +6720,6 @@ "resolved": "https://registry.npmjs.org/lru-cache/-/lru-cache-6.0.0.tgz", "integrity": "sha512-Jo6dJ04CmSjuznwJSS3pUeWmd/H0ffTlkXXgwZi+eq1UCmqQwCh+eLsYOYCwY991i2Fah4h1BEMCx4qThGbsiA==", "dev": true, - "license": "ISC", "dependencies": { "yallist": "^4.0.0" }, @@ -6780,7 +6732,6 @@ "resolved": "https://registry.npmjs.org/semver/-/semver-7.6.0.tgz", "integrity": "sha512-EnwXhrlwXMk9gKu5/flx5sv/an57AkRplG3hTK68W7FRDN+k+OWBj65M7719OkA82XLBxrcX0KSHj+X5COhOVg==", "dev": true, - "license": "ISC", "dependencies": { "lru-cache": "^6.0.0" }, @@ -6795,21 +6746,18 @@ "version": "4.0.0", "resolved": "https://registry.npmjs.org/yallist/-/yallist-4.0.0.tgz", "integrity": "sha512-3wdGidZyq5PB084XLES5TpOSRA3wjXAlIWMhum2kRcv/41Sn2emQ0dycQW4uZXLejwKvg6EsvbdlVL+FYEct7A==", - "dev": true, - "license": "ISC" + "dev": true }, "node_modules/make-error": { "version": "1.3.6", "resolved": "https://registry.npmjs.org/make-error/-/make-error-1.3.6.tgz", "integrity": "sha512-s8UhlNe7vPKomQhC1qFelMokr/Sc3AgNbso3n74mVPA5LTZwkB9NlXf4XPamLxJE8h0gh73rM94xvwRT2CVInw==", - "dev": true, - "license": "ISC" + "dev": true }, "node_modules/make-fetch-happen": { "version": "9.1.0", "resolved": "https://registry.npmjs.org/make-fetch-happen/-/make-fetch-happen-9.1.0.tgz", "integrity": "sha512-+zopwDy7DNknmwPQplem5lAZX/eCOzSvSNNcSKm5eVwTkOBzoktEfXsa9L23J/GIRhxRsaxzkPEhrJEpE2F4Gg==", - "license": "ISC", "optional": true, "dependencies": { "agentkeepalive": "^4.1.3", @@ -6837,7 +6785,6 @@ "version": "6.0.2", "resolved": "https://registry.npmjs.org/agent-base/-/agent-base-6.0.2.tgz", "integrity": "sha512-RZNwNclF7+MS/8bDg70amg32dyeZGZxiDuQmZxKLAlQjr3jGyLx+4Kkk58UO7D2QdgFIQCovuSuZESne6RG6XQ==", - "license": "MIT", "optional": true, "dependencies": { "debug": "4" @@ -6850,7 +6797,6 @@ "version": "4.0.1", "resolved": "https://registry.npmjs.org/http-proxy-agent/-/http-proxy-agent-4.0.1.tgz", "integrity": "sha512-k0zdNgqWTGA6aeIRVpvfVob4fL52dTfaehylg0Y4UvSySvOq/Y+BOyPrgpUrA7HylqvU8vIZGsRuXmspskV0Tg==", - "license": "MIT", "optional": true, "dependencies": { "@tootallnate/once": "1", @@ -6865,7 +6811,6 @@ "version": "5.0.1", "resolved": "https://registry.npmjs.org/https-proxy-agent/-/https-proxy-agent-5.0.1.tgz", "integrity": "sha512-dFcAjpTQFgoLMzC2VwU+C/CbS7uRL0lWmxDITmqm7C+7F0Odmj6s9l6alZc6AELXhrnggM2CeWSXHGOdX2YtwA==", - "license": "MIT", "optional": true, "dependencies": { "agent-base": "6", @@ -6879,7 +6824,6 @@ "version": "6.0.0", "resolved": "https://registry.npmjs.org/lru-cache/-/lru-cache-6.0.0.tgz", "integrity": "sha512-Jo6dJ04CmSjuznwJSS3pUeWmd/H0ffTlkXXgwZi+eq1UCmqQwCh+eLsYOYCwY991i2Fah4h1BEMCx4qThGbsiA==", - "license": "ISC", "optional": true, "dependencies": { "yallist": "^4.0.0" @@ -6892,7 +6836,6 @@ "version": "4.0.0", "resolved": "https://registry.npmjs.org/yallist/-/yallist-4.0.0.tgz", "integrity": "sha512-3wdGidZyq5PB084XLES5TpOSRA3wjXAlIWMhum2kRcv/41Sn2emQ0dycQW4uZXLejwKvg6EsvbdlVL+FYEct7A==", - "license": "ISC", "optional": true }, "node_modules/makeerror": { @@ -6900,7 +6843,6 @@ "resolved": "https://registry.npmjs.org/makeerror/-/makeerror-1.0.12.tgz", "integrity": "sha512-JmqCvUhmt43madlpFzG4BQzG2Z3m6tvQDNKdClZnO3VbIudJYmxsT0FNJMeiB2+JTSlTQTSbU8QdesVmwJcmLg==", "dev": true, - "license": "BSD-3-Clause", "dependencies": { "tmpl": "1.0.5" } @@ -6909,7 +6851,6 @@ "version": "2.3.0", "resolved": "https://registry.npmjs.org/md5/-/md5-2.3.0.tgz", "integrity": "sha512-T1GITYmFaKuO91vxyoQMFETst+O71VUPEU3ze5GNzDm0OWdP8v1ziTaAEPUr/3kLsY3Sftgz242A1SetQiDL7g==", - "license": "BSD-3-Clause", "dependencies": { "charenc": "0.0.2", "crypt": "0.0.2", @@ -6920,15 +6861,13 @@ "version": "2.0.0", "resolved": "https://registry.npmjs.org/merge-stream/-/merge-stream-2.0.0.tgz", "integrity": "sha512-abv/qOcuPfk3URPfDzmZU1LKmuw8kT+0nIHvKrKgFrwifol/doWcdA4ZqsWQ8ENrFKkd67Mfpo/LovbIUsbt3w==", - "dev": true, - "license": "MIT" + "dev": true }, "node_modules/micromatch": { "version": "4.0.5", "resolved": "https://registry.npmjs.org/micromatch/-/micromatch-4.0.5.tgz", "integrity": "sha512-DMy+ERcEW2q8Z2Po+WNXuw3c5YaUSFjAO5GsJqfEl7UjvtIuFKO6ZrKvcItdy98dwFI2N1tg3zNIdKaQT+aNdA==", "dev": true, - "license": "MIT", "dependencies": { "braces": "^3.0.2", "picomatch": "^2.3.1" @@ -6941,7 +6880,6 @@ "version": "1.52.0", "resolved": "https://registry.npmjs.org/mime-db/-/mime-db-1.52.0.tgz", "integrity": "sha512-sPU4uV7dYlvtWJxwwxHD0PuihVNiE7TyAbQ5SWxDCB9mUYvOgroQOwYQQOKPJ8CIbE+1ETVlOoK1UC2nU3gYvg==", - "license": "MIT", "engines": { "node": ">= 0.6" } @@ -6950,7 +6888,6 @@ "version": "2.1.35", "resolved": "https://registry.npmjs.org/mime-types/-/mime-types-2.1.35.tgz", "integrity": "sha512-ZDY+bPm5zTTF+YpCrAU9nK0UgICYPT0QtT1NZWFv4s++TNkcgVaT0g6+4R2uI4MjQjzysHB1zxuWL50hzaeXiw==", - "license": "MIT", "dependencies": { "mime-db": "1.52.0" }, @@ -6963,7 +6900,6 @@ "resolved": "https://registry.npmjs.org/mimic-fn/-/mimic-fn-2.1.0.tgz", "integrity": "sha512-OqbOk5oEQeAZ8WXWydlu9HJjz9WVdEIvamMCcXmuqUYjTknH/sqsWvhQ3vgwKFRR1HpjvNBKQ37nbJgYzGqGcg==", "dev": true, - "license": "MIT", "engines": { "node": ">=6" } @@ -6972,7 +6908,6 @@ "version": "3.1.0", "resolved": "https://registry.npmjs.org/mimic-response/-/mimic-response-3.1.0.tgz", "integrity": "sha512-z0yWI+4FDrrweS8Zmt4Ej5HdJmky15+L2e6Wgn3+iK5fWzb6T3fhNFq2+MeTRb064c6Wr4N/wv0DzQTjNzHNGQ==", - "license": "MIT", "engines": { "node": ">=10" }, @@ -6984,7 +6919,6 @@ "version": "3.1.2", "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-3.1.2.tgz", "integrity": "sha512-J7p63hRiAjw1NDEww1W7i37+ByIrOWO5XQQAzZ3VOcL0PNybwpfmV/N05zFAzwQ9USyEcX6t3UO+K5aqBQOIHw==", - "license": "ISC", "dependencies": { "brace-expansion": "^1.1.7" }, @@ -6996,7 +6930,6 @@ "version": "1.2.8", "resolved": "https://registry.npmjs.org/minimist/-/minimist-1.2.8.tgz", "integrity": "sha512-2yyAR8qBkN3YuheJanUpWC5U3bb5osDywNB8RzDVlDwDHbocAJveqqj1u8+SVD7jkWT4yvsHCpWqqWqAxb0zCA==", - "license": "MIT", "funding": { "url": "https://github.com/sponsors/ljharb" } @@ -7005,7 +6938,6 @@ "version": "3.3.6", "resolved": "https://registry.npmjs.org/minipass/-/minipass-3.3.6.tgz", "integrity": "sha512-DxiNidxSEK+tHG6zOIklvNOwm3hvCrbUrdtzY74U6HKTJxvIDfOUL5W5P2Ghd3DTkhhKPYGqeNUIh5qcM4YBfw==", - "license": "ISC", "dependencies": { "yallist": "^4.0.0" }, @@ -7017,7 +6949,6 @@ "version": "1.0.2", "resolved": "https://registry.npmjs.org/minipass-collect/-/minipass-collect-1.0.2.tgz", "integrity": "sha512-6T6lH0H8OG9kITm/Jm6tdooIbogG9e0tLgpY6mphXSm/A9u8Nq1ryBG+Qspiub9LjWlBPsPS3tWQ/Botq4FdxA==", - "license": "ISC", "optional": true, "dependencies": { "minipass": "^3.0.0" @@ -7030,7 +6961,6 @@ "version": "1.4.1", "resolved": "https://registry.npmjs.org/minipass-fetch/-/minipass-fetch-1.4.1.tgz", "integrity": "sha512-CGH1eblLq26Y15+Azk7ey4xh0J/XfJfrCox5LDJiKqI2Q2iwOLOKrlmIaODiSQS8d18jalF6y2K2ePUm0CmShw==", - "license": "MIT", "optional": true, "dependencies": { "minipass": "^3.1.0", @@ -7048,7 +6978,6 @@ "version": "1.0.5", "resolved": "https://registry.npmjs.org/minipass-flush/-/minipass-flush-1.0.5.tgz", "integrity": "sha512-JmQSYYpPUqX5Jyn1mXaRwOda1uQ8HP5KAT/oDSLCzt1BYRhQU0/hDtsB1ufZfEEzMZ9aAVmsBw8+FWsIXlClWw==", - "license": "ISC", "optional": true, "dependencies": { "minipass": "^3.0.0" @@ -7061,7 +6990,6 @@ "version": "1.2.4", "resolved": "https://registry.npmjs.org/minipass-pipeline/-/minipass-pipeline-1.2.4.tgz", "integrity": "sha512-xuIq7cIOt09RPRJ19gdi4b+RiNvDFYe5JH+ggNvBqGqpQXcru3PcRmOZuHBKWK1Txf9+cQ+HMVN4d6z46LZP7A==", - "license": "ISC", "optional": true, "dependencies": { "minipass": "^3.0.0" @@ -7074,7 +7002,6 @@ "version": "1.0.3", "resolved": "https://registry.npmjs.org/minipass-sized/-/minipass-sized-1.0.3.tgz", "integrity": "sha512-MbkQQ2CTiBMlA2Dm/5cY+9SWFEN8pzzOXi6rlM5Xxq0Yqbda5ZQy9sU75a673FE9ZK0Zsbr6Y5iP6u9nktfg2g==", - "license": "ISC", "optional": true, "dependencies": { "minipass": "^3.0.0" @@ -7086,14 +7013,12 @@ "node_modules/minipass/node_modules/yallist": { "version": "4.0.0", "resolved": "https://registry.npmjs.org/yallist/-/yallist-4.0.0.tgz", - "integrity": "sha512-3wdGidZyq5PB084XLES5TpOSRA3wjXAlIWMhum2kRcv/41Sn2emQ0dycQW4uZXLejwKvg6EsvbdlVL+FYEct7A==", - "license": "ISC" + "integrity": "sha512-3wdGidZyq5PB084XLES5TpOSRA3wjXAlIWMhum2kRcv/41Sn2emQ0dycQW4uZXLejwKvg6EsvbdlVL+FYEct7A==" }, "node_modules/minizlib": { "version": "2.1.2", "resolved": "https://registry.npmjs.org/minizlib/-/minizlib-2.1.2.tgz", "integrity": "sha512-bAxsR8BVfj60DWXHE3u30oHzfl4G7khkSuPW+qvpd7jFRHm7dLxOjUk1EHACJ/hxLY8phGJ0YhYHZo7jil7Qdg==", - "license": "MIT", "dependencies": { "minipass": "^3.0.0", "yallist": "^4.0.0" @@ -7105,14 +7030,12 @@ "node_modules/minizlib/node_modules/yallist": { "version": "4.0.0", "resolved": "https://registry.npmjs.org/yallist/-/yallist-4.0.0.tgz", - "integrity": "sha512-3wdGidZyq5PB084XLES5TpOSRA3wjXAlIWMhum2kRcv/41Sn2emQ0dycQW4uZXLejwKvg6EsvbdlVL+FYEct7A==", - "license": "ISC" + "integrity": "sha512-3wdGidZyq5PB084XLES5TpOSRA3wjXAlIWMhum2kRcv/41Sn2emQ0dycQW4uZXLejwKvg6EsvbdlVL+FYEct7A==" }, "node_modules/mkdirp": { "version": "1.0.4", "resolved": "https://registry.npmjs.org/mkdirp/-/mkdirp-1.0.4.tgz", "integrity": "sha512-vVqVZQyf3WLx2Shd0qJ9xuvqgAyKPLAiqITEtqW0oIUjzo3PePDd6fW9iFz30ef7Ysp/oiWqbhszeGWW2T6Gzw==", - "license": "MIT", "bin": { "mkdirp": "bin/cmd.js" }, @@ -7123,14 +7046,12 @@ "node_modules/mkdirp-classic": { "version": "0.5.3", "resolved": "https://registry.npmjs.org/mkdirp-classic/-/mkdirp-classic-0.5.3.tgz", - "integrity": "sha512-gKLcREMhtuZRwRAfqP3RFW+TK4JqApVBtOIftVgjuABpAtpxhPGaDcfvbhNvD0B8iD1oUr/txX35NjcaY6Ns/A==", - "license": "MIT" + "integrity": "sha512-gKLcREMhtuZRwRAfqP3RFW+TK4JqApVBtOIftVgjuABpAtpxhPGaDcfvbhNvD0B8iD1oUr/txX35NjcaY6Ns/A==" }, "node_modules/mnemonist": { "version": "0.39.8", "resolved": "https://registry.npmjs.org/mnemonist/-/mnemonist-0.39.8.tgz", "integrity": "sha512-vyWo2K3fjrUw8YeeZ1zF0fy6Mu59RHokURlld8ymdUPjMlD9EC9ov1/YPqTgqRvUN9nTr3Gqfz29LYAmu0PHPQ==", - "license": "MIT", "dependencies": { "obliterator": "^2.0.1" } @@ -7138,14 +7059,12 @@ "node_modules/ms": { "version": "2.1.2", "resolved": "https://registry.npmjs.org/ms/-/ms-2.1.2.tgz", - "integrity": "sha512-sGkPx+VjMtmA6MX27oA4FBFELFCZZ4S4XqeGOXCv68tT+jb3vk/RyaKWP0PTKyWtmLSM0b+adUTEvbs1PEaH2w==", - "license": "MIT" + "integrity": "sha512-sGkPx+VjMtmA6MX27oA4FBFELFCZZ4S4XqeGOXCv68tT+jb3vk/RyaKWP0PTKyWtmLSM0b+adUTEvbs1PEaH2w==" }, "node_modules/mysql2": { "version": "3.9.2", "resolved": "https://registry.npmjs.org/mysql2/-/mysql2-3.9.2.tgz", "integrity": "sha512-3Cwg/UuRkAv/wm6RhtPE5L7JlPB877vwSF6gfLAS68H+zhH+u5oa3AieqEd0D0/kC3W7qIhYbH419f7O9i/5nw==", - "license": "MIT", "dependencies": { "denque": "^2.1.0", "generate-function": "^2.3.1", @@ -7164,7 +7083,6 @@ "version": "8.0.5", "resolved": "https://registry.npmjs.org/lru-cache/-/lru-cache-8.0.5.tgz", "integrity": "sha512-MhWWlVnuab1RG5/zMRRcVGXZLCXrZTgfwMikgzCegsPnG62yDQo5JnqKkrK4jO5iKqDAZGItAqN5CtKBCBWRUA==", - "license": "ISC", "engines": { "node": ">=16.14" } @@ -7173,7 +7091,6 @@ "version": "1.1.3", "resolved": "https://registry.npmjs.org/named-placeholders/-/named-placeholders-1.1.3.tgz", "integrity": "sha512-eLoBxg6wE/rZkJPhU/xRX1WTpkFEwDJEN96oxFrTsqBdbT5ec295Q+CoHrL9IT0DipqKhmGcaZmwOt8OON5x1w==", - "license": "MIT", "dependencies": { "lru-cache": "^7.14.1" }, @@ -7185,7 +7102,6 @@ "version": "7.18.3", "resolved": "https://registry.npmjs.org/lru-cache/-/lru-cache-7.18.3.tgz", "integrity": "sha512-jumlc0BIUrS3qJGgIkWZsyfAM7NCWiBcCDhnd+3NNM5KbBmLTgHVfWBcg6W+rLUsIpzpERPsvwUP7CckAQSOoA==", - "license": "ISC", "engines": { "node": ">=12" } @@ -7193,20 +7109,17 @@ "node_modules/napi-build-utils": { "version": "1.0.2", "resolved": "https://registry.npmjs.org/napi-build-utils/-/napi-build-utils-1.0.2.tgz", - "integrity": "sha512-ONmRUqK7zj7DWX0D9ADe03wbwOBZxNAfF20PlGfCWQcD3+/MakShIHrMqx9YwPTfxDdF1zLeL+RGZiR9kGMLdg==", - "license": "MIT" + "integrity": "sha512-ONmRUqK7zj7DWX0D9ADe03wbwOBZxNAfF20PlGfCWQcD3+/MakShIHrMqx9YwPTfxDdF1zLeL+RGZiR9kGMLdg==" }, "node_modules/natural-compare": { "version": "1.4.0", "resolved": "https://registry.npmjs.org/natural-compare/-/natural-compare-1.4.0.tgz", - "integrity": "sha512-OWND8ei3VtNC9h7V60qff3SVobHr996CTwgxubgyQYEpg290h9J0buyECNNJexkFm5sOajh5G116RYA1c8ZMSw==", - "license": "MIT" + "integrity": "sha512-OWND8ei3VtNC9h7V60qff3SVobHr996CTwgxubgyQYEpg290h9J0buyECNNJexkFm5sOajh5G116RYA1c8ZMSw==" }, "node_modules/negotiator": { "version": "0.6.3", "resolved": "https://registry.npmjs.org/negotiator/-/negotiator-0.6.3.tgz", "integrity": "sha512-+EUsqGPLsM+j/zdChZjsnX51g4XrHFOIXwfnCVPGlQk/k5giakcKsuxCObBRu6DSm9opw/O6slWbJdghQM4bBg==", - "license": "MIT", "optional": true, "engines": { "node": ">= 0.6" @@ -7215,14 +7128,12 @@ "node_modules/neo-async": { "version": "2.6.2", "resolved": "https://registry.npmjs.org/neo-async/-/neo-async-2.6.2.tgz", - "integrity": "sha512-Yd3UES5mWCSqR+qNT93S3UoYUkqAZ9lLg8a7g9rimsWmYGK8cVToA4/sF3RrshdyV3sAGMXVUmpMYOw+dLpOuw==", - "license": "MIT" + "integrity": "sha512-Yd3UES5mWCSqR+qNT93S3UoYUkqAZ9lLg8a7g9rimsWmYGK8cVToA4/sF3RrshdyV3sAGMXVUmpMYOw+dLpOuw==" }, "node_modules/node-abi": { "version": "3.56.0", "resolved": "https://registry.npmjs.org/node-abi/-/node-abi-3.56.0.tgz", "integrity": "sha512-fZjdhDOeRcaS+rcpve7XuwHBmktS1nS1gzgghwKUQQ8nTy2FdSDr6ZT8k6YhvlJeHmmQMYiT/IH9hfco5zeW2Q==", - "license": "MIT", "dependencies": { "semver": "^7.3.5" }, @@ -7234,7 +7145,6 @@ "version": "6.0.0", "resolved": "https://registry.npmjs.org/lru-cache/-/lru-cache-6.0.0.tgz", "integrity": "sha512-Jo6dJ04CmSjuznwJSS3pUeWmd/H0ffTlkXXgwZi+eq1UCmqQwCh+eLsYOYCwY991i2Fah4h1BEMCx4qThGbsiA==", - "license": "ISC", "dependencies": { "yallist": "^4.0.0" }, @@ -7246,7 +7156,6 @@ "version": "7.6.0", "resolved": "https://registry.npmjs.org/semver/-/semver-7.6.0.tgz", "integrity": "sha512-EnwXhrlwXMk9gKu5/flx5sv/an57AkRplG3hTK68W7FRDN+k+OWBj65M7719OkA82XLBxrcX0KSHj+X5COhOVg==", - "license": "ISC", "dependencies": { "lru-cache": "^6.0.0" }, @@ -7260,14 +7169,12 @@ "node_modules/node-abi/node_modules/yallist": { "version": "4.0.0", "resolved": "https://registry.npmjs.org/yallist/-/yallist-4.0.0.tgz", - "integrity": "sha512-3wdGidZyq5PB084XLES5TpOSRA3wjXAlIWMhum2kRcv/41Sn2emQ0dycQW4uZXLejwKvg6EsvbdlVL+FYEct7A==", - "license": "ISC" + "integrity": "sha512-3wdGidZyq5PB084XLES5TpOSRA3wjXAlIWMhum2kRcv/41Sn2emQ0dycQW4uZXLejwKvg6EsvbdlVL+FYEct7A==" }, "node_modules/node-addon-api": { "version": "6.1.0", "resolved": "https://registry.npmjs.org/node-addon-api/-/node-addon-api-6.1.0.tgz", - "integrity": "sha512-+eawOlIgy680F0kBzPUNFhMZGtJ1YmqM6l4+Crf4IkImjYrO/mqPwRMh352g23uIaQKFItcQ64I7KMaJxHgAVA==", - "license": "MIT" + "integrity": "sha512-+eawOlIgy680F0kBzPUNFhMZGtJ1YmqM6l4+Crf4IkImjYrO/mqPwRMh352g23uIaQKFItcQ64I7KMaJxHgAVA==" }, "node_modules/node-domexception": { "version": "1.0.0", @@ -7283,7 +7190,6 @@ "url": "https://paypal.me/jimmywarting" } ], - "license": "MIT", "engines": { "node": ">=10.5.0" } @@ -7292,7 +7198,6 @@ "version": "3.3.2", "resolved": "https://registry.npmjs.org/node-fetch/-/node-fetch-3.3.2.tgz", "integrity": "sha512-dRB78srN/l6gqWulah9SrxeYnxeddIG30+GOqK/9OlLVyLg3HPnr6SqOWTWOXKRwC2eGYCkZ59NNuSgvSrpgOA==", - "license": "MIT", "dependencies": { "data-uri-to-buffer": "^4.0.0", "fetch-blob": "^3.1.4", @@ -7310,7 +7215,6 @@ "version": "8.4.1", "resolved": "https://registry.npmjs.org/node-gyp/-/node-gyp-8.4.1.tgz", "integrity": "sha512-olTJRgUtAb/hOXG0E93wZDs5YiJlgbXxTwQAFHyNlRsXQnYzUaF2aGgujZbw+hR8aF4ZG/rST57bWMWD16jr9w==", - "license": "MIT", "optional": true, "dependencies": { "env-paths": "^2.2.0", @@ -7335,7 +7239,6 @@ "version": "6.0.0", "resolved": "https://registry.npmjs.org/lru-cache/-/lru-cache-6.0.0.tgz", "integrity": "sha512-Jo6dJ04CmSjuznwJSS3pUeWmd/H0ffTlkXXgwZi+eq1UCmqQwCh+eLsYOYCwY991i2Fah4h1BEMCx4qThGbsiA==", - "license": "ISC", "optional": true, "dependencies": { "yallist": "^4.0.0" @@ -7348,7 +7251,6 @@ "version": "7.6.0", "resolved": "https://registry.npmjs.org/semver/-/semver-7.6.0.tgz", "integrity": "sha512-EnwXhrlwXMk9gKu5/flx5sv/an57AkRplG3hTK68W7FRDN+k+OWBj65M7719OkA82XLBxrcX0KSHj+X5COhOVg==", - "license": "ISC", "optional": true, "dependencies": { "lru-cache": "^6.0.0" @@ -7364,14 +7266,12 @@ "version": "4.0.0", "resolved": "https://registry.npmjs.org/yallist/-/yallist-4.0.0.tgz", "integrity": "sha512-3wdGidZyq5PB084XLES5TpOSRA3wjXAlIWMhum2kRcv/41Sn2emQ0dycQW4uZXLejwKvg6EsvbdlVL+FYEct7A==", - "license": "ISC", "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", "integrity": "sha512-OeFi3QwC/cPjvVKZ114tzzu+YoR+v9UXW5RwSXGUqGb0qCl0DvP406tzdL7SFn8pZrMyzXoisfG2zcuF9+zw4g==", - "license": "MIT", "dependencies": { "node-html-parser": "^6.1.1" }, @@ -7383,7 +7283,6 @@ "version": "6.1.12", "resolved": "https://registry.npmjs.org/node-html-parser/-/node-html-parser-6.1.12.tgz", "integrity": "sha512-/bT/Ncmv+fbMGX96XG9g05vFt43m/+SYKIs9oAemQVYyVcZmDAI2Xq/SbNcpOA35eF0Zk2av3Ksf+Xk8Vt8abA==", - "license": "MIT", "dependencies": { "css-select": "^5.1.0", "he": "1.2.0" @@ -7393,21 +7292,18 @@ "version": "0.4.0", "resolved": "https://registry.npmjs.org/node-int64/-/node-int64-0.4.0.tgz", "integrity": "sha512-O5lz91xSOeoXP6DulyHfllpq+Eg00MWitZIbtPfoSEvqIHdl5gfcY6hYzDWnj0qD5tz52PI08u9qUvSVeUBeHw==", - "dev": true, - "license": "MIT" + "dev": true }, "node_modules/node-releases": { "version": "2.0.14", "resolved": "https://registry.npmjs.org/node-releases/-/node-releases-2.0.14.tgz", "integrity": "sha512-y10wOWt8yZpqXmOgRo77WaHEmhYQYGNA6y421PKsKYWEK8aW+cqAphborZDhqfyKrbZEN92CN1X2KbafY2s7Yw==", - "dev": true, - "license": "MIT" + "dev": true }, "node_modules/nopt": { "version": "5.0.0", "resolved": "https://registry.npmjs.org/nopt/-/nopt-5.0.0.tgz", "integrity": "sha512-Tbj67rffqceeLpcRXrT7vKAN8CwfPeIBgM7E6iBkmKLV7bEMwpGgYLGv0jACUsECaa/vuxP0IjEont6umdMgtQ==", - "license": "ISC", "optional": true, "dependencies": { "abbrev": "1" @@ -7424,7 +7320,6 @@ "resolved": "https://registry.npmjs.org/normalize-path/-/normalize-path-3.0.0.tgz", "integrity": "sha512-6eZs5Ls3WtCisHWp9S2GUy8dqkpGi4BVSz3GaqiE6ezub0512ESztXUwUB6C6IKbQkY2Pnb/mD4WYojCRwcwLA==", "dev": true, - "license": "MIT", "engines": { "node": ">=0.10.0" } @@ -7434,7 +7329,6 @@ "resolved": "https://registry.npmjs.org/npm-run-path/-/npm-run-path-4.0.1.tgz", "integrity": "sha512-S48WzZW777zhNIrn7gxOlISNAqi9ZC/uQFnRdbeIHhZhCA6UqpkOT8T1G7BvfdgP4Er8gF4sUbaS0i7QvIfCWw==", "dev": true, - "license": "MIT", "dependencies": { "path-key": "^3.0.0" }, @@ -7446,7 +7340,6 @@ "version": "6.0.2", "resolved": "https://registry.npmjs.org/npmlog/-/npmlog-6.0.2.tgz", "integrity": "sha512-/vBvz5Jfr9dT/aFWd0FIRf+T/Q2WBsLENygUaFUqstqsycmZAP/t5BvFJTK0viFmSUxiUKTUplWy5vt+rvKIxg==", - "license": "ISC", "optional": true, "dependencies": { "are-we-there-yet": "^3.0.0", @@ -7462,7 +7355,6 @@ "version": "2.1.1", "resolved": "https://registry.npmjs.org/nth-check/-/nth-check-2.1.1.tgz", "integrity": "sha512-lqjrjmaOoAnWfMmBPL+XNnynZh2+swxiX3WUE0s4yEHI6m+AwrK2UZOimIRl3X/4QctVqS8AiZjFqyOGrMXb/w==", - "license": "BSD-2-Clause", "dependencies": { "boolbase": "^1.0.0" }, @@ -7473,14 +7365,12 @@ "node_modules/nwsapi": { "version": "2.2.7", "resolved": "https://registry.npmjs.org/nwsapi/-/nwsapi-2.2.7.tgz", - "integrity": "sha512-ub5E4+FBPKwAZx0UwIQOjYWGHTEq5sPqHQNRN8Z9e4A7u3Tj1weLJsL59yH9vmvqEtBHaOmT6cYQKIZOxp35FQ==", - "license": "MIT" + "integrity": "sha512-ub5E4+FBPKwAZx0UwIQOjYWGHTEq5sPqHQNRN8Z9e4A7u3Tj1weLJsL59yH9vmvqEtBHaOmT6cYQKIZOxp35FQ==" }, "node_modules/oauth-sign": { "version": "0.9.0", "resolved": "https://registry.npmjs.org/oauth-sign/-/oauth-sign-0.9.0.tgz", "integrity": "sha512-fexhUFFPTGV8ybAtSIGbV6gOkSv8UtRbDBnAyLQw4QPKkgNlsH2ByPGtMUqdWkos6YCRmAqViwgZrJc/mRDzZQ==", - "license": "Apache-2.0", "engines": { "node": "*" } @@ -7489,7 +7379,6 @@ "version": "1.13.1", "resolved": "https://registry.npmjs.org/object-inspect/-/object-inspect-1.13.1.tgz", "integrity": "sha512-5qoj1RUiKOMsCCNLV1CBiPYE10sziTsnmNxkAI/rZhiD63CF7IqdFGC/XzjWjpSgLf0LxXX3bDFIh0E18f6UhQ==", - "license": "MIT", "funding": { "url": "https://github.com/sponsors/ljharb" } @@ -7498,7 +7387,6 @@ "version": "1.1.1", "resolved": "https://registry.npmjs.org/object-keys/-/object-keys-1.1.1.tgz", "integrity": "sha512-NuAESUOUMrlIXOfHKzD6bpPu3tYt3xvjNdRIQ+FeT0lNb4K8WR70CaDxhuNguS2XG+GjkyMwOzsN5ZktImfhLA==", - "license": "MIT", "engines": { "node": ">= 0.4" } @@ -7507,7 +7395,6 @@ "version": "4.1.5", "resolved": "https://registry.npmjs.org/object.assign/-/object.assign-4.1.5.tgz", "integrity": "sha512-byy+U7gp+FVwmyzKPYhW2h5l3crpmGsxl7X2s8y43IgxvG4g3QZ6CffDtsNQy1WsmZpQbO+ybo0AlW7TY6DcBQ==", - "license": "MIT", "dependencies": { "call-bind": "^1.0.5", "define-properties": "^1.2.1", @@ -7525,7 +7412,6 @@ "version": "1.1.7", "resolved": "https://registry.npmjs.org/object.entries/-/object.entries-1.1.7.tgz", "integrity": "sha512-jCBs/0plmPsOnrKAfFQXRG2NFjlhZgjjcBLSmTnEhU8U6vVTsVe8ANeQJCHTl3gSsI4J+0emOoCgoKlmQPMgmA==", - "license": "MIT", "dependencies": { "call-bind": "^1.0.2", "define-properties": "^1.2.0", @@ -7537,7 +7423,8 @@ }, "node_modules/object.fromentries": { "version": "2.0.7", - "license": "MIT", + "resolved": "https://registry.npmjs.org/object.fromentries/-/object.fromentries-2.0.7.tgz", + "integrity": "sha512-UPbPHML6sL8PI/mOqPwsH4G6iyXcCGzLin8KvEPenOZN5lpCNBZZQ+V62vdjB1mQHrmqGQt5/OJzemUA+KJmEA==", "peer": true, "dependencies": { "call-bind": "^1.0.2", @@ -7553,7 +7440,8 @@ }, "node_modules/object.groupby": { "version": "1.0.2", - "license": "MIT", + "resolved": "https://registry.npmjs.org/object.groupby/-/object.groupby-1.0.2.tgz", + "integrity": "sha512-bzBq58S+x+uo0VjurFT0UktpKHOZmv4/xePiOA1nbB9pMqpGK7rUPNgf+1YC+7mE+0HzhTMqNUuCqvKhj6FnBw==", "peer": true, "dependencies": { "array.prototype.filter": "^1.0.3", @@ -7565,7 +7453,8 @@ }, "node_modules/object.values": { "version": "1.1.7", - "license": "MIT", + "resolved": "https://registry.npmjs.org/object.values/-/object.values-1.1.7.tgz", + "integrity": "sha512-aU6xnDFYT3x17e/f0IiiwlGPTy2jzMySGfUB4fq6z7CV8l85CWHDk5ErhyhpfDHhrOMwGFhSQkhMGHaIotA6Ng==", "peer": true, "dependencies": { "call-bind": "^1.0.2", @@ -7582,14 +7471,12 @@ "node_modules/obliterator": { "version": "2.0.4", "resolved": "https://registry.npmjs.org/obliterator/-/obliterator-2.0.4.tgz", - "integrity": "sha512-lgHwxlxV1qIg1Eap7LgIeoBWIMFibOjbrYPIPJZcI1mmGAI2m3lNYpK12Y+GBdPQ0U1hRwSord7GIaawz962qQ==", - "license": "MIT" + "integrity": "sha512-lgHwxlxV1qIg1Eap7LgIeoBWIMFibOjbrYPIPJZcI1mmGAI2m3lNYpK12Y+GBdPQ0U1hRwSord7GIaawz962qQ==" }, "node_modules/ollama": { "version": "0.4.9", "resolved": "https://registry.npmjs.org/ollama/-/ollama-0.4.9.tgz", "integrity": "sha512-hVf5xix5zwswfMN6ydt3K2TS886aOk9RT9xksajXxdIHhi2yokEsdzJYE7IGg+1bjQSPZ6JHzHbESYjNB0pTCg==", - "license": "MIT", "dependencies": { "whatwg-fetch": "^3.6.20" } @@ -7598,7 +7485,6 @@ "version": "1.4.0", "resolved": "https://registry.npmjs.org/once/-/once-1.4.0.tgz", "integrity": "sha512-lNaJgI+2Q5URQBkccEKHTQOPaXdUxnZZElQTZY0MFUAuaEqe1E+Nyvgdz/aIyNi6Z9MzO5dv1H8n58/GELp3+w==", - "license": "ISC", "dependencies": { "wrappy": "1" } @@ -7608,7 +7494,6 @@ "resolved": "https://registry.npmjs.org/onetime/-/onetime-5.1.2.tgz", "integrity": "sha512-kbpaSSGJTWdAY5KPVeMOKXSrPtr8C8C7wodJbcsd51jRnmD+GZu8Y0VoU6Dm5Z4vWr0Ig/1NKuWRKf7j5aaYSg==", "dev": true, - "license": "MIT", "dependencies": { "mimic-fn": "^2.1.0" }, @@ -7623,7 +7508,6 @@ "version": "4.0.4", "resolved": "https://registry.npmjs.org/onnx-proto/-/onnx-proto-4.0.4.tgz", "integrity": "sha512-aldMOB3HRoo6q/phyB6QRQxSt895HNNw82BNyZ2CMh4bjeKv7g/c+VpAFtJuEMVfYLMbRx61hbuqnKceLeDcDA==", - "license": "MIT", "dependencies": { "protobufjs": "^6.8.8" } @@ -7631,14 +7515,12 @@ "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==", - "license": "MIT" + "integrity": "sha512-3LJpegM2iMNRX2wUmtYfeX/ytfOzNwAWKSq1HbRrKc9+uqG/FsEA0bbKZl1btQeZaXhC26l44NWpNUeXPII7Ew==" }, "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==", - "license": "MIT", "optional": true, "os": [ "win32", @@ -7653,7 +7535,6 @@ "version": "1.14.0", "resolved": "https://registry.npmjs.org/onnxruntime-web/-/onnxruntime-web-1.14.0.tgz", "integrity": "sha512-Kcqf43UMfW8mCydVGcX9OMXI2VN17c0p6XvR7IPSZzBf/6lteBzXHvcEVWDPmCKuGombl997HgLqj91F11DzXw==", - "license": "MIT", "dependencies": { "flatbuffers": "^1.12.0", "guid-typescript": "^1.0.9", @@ -7663,17 +7544,20 @@ "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==" + }, "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==", - "license": "Apache-2.0" + "integrity": "sha512-XsP+KhQif4bjX1kbuSiySJFNAehNxgLb6hPRGJ9QsUr8ajHkuXGdrHmFUTUUXhDwVX2R5bY4JNZEwbUiMhV+MA==" }, "node_modules/openai": { "version": "4.28.4", "resolved": "https://registry.npmjs.org/openai/-/openai-4.28.4.tgz", "integrity": "sha512-RNIwx4MT/F0zyizGcwS+bXKLzJ8QE9IOyigDG/ttnwB220d58bYjYFp0qjvGwEFBO6+pvFVIDABZPGDl46RFsg==", - "license": "Apache-2.0", "dependencies": { "@types/node": "^18.11.18", "@types/node-fetch": "^2.6.4", @@ -7690,8 +7574,9 @@ } }, "node_modules/openai/node_modules/@types/node": { - "version": "18.19.21", - "license": "MIT", + "version": "18.19.24", + "resolved": "https://registry.npmjs.org/@types/node/-/node-18.19.24.tgz", + "integrity": "sha512-eghAz3gnbQbvnHqB+mgB2ZR3aH6RhdEmHGS48BnV75KceQPHqabkxKI0BbUSsqhqy2Ddhc2xD/VAR9ySZd57Lw==", "dependencies": { "undici-types": "~5.26.4" } @@ -7700,7 +7585,6 @@ "version": "2.7.0", "resolved": "https://registry.npmjs.org/node-fetch/-/node-fetch-2.7.0.tgz", "integrity": "sha512-c4FRfUm/dbcWZ7U+1Wq0AwCyFL+3nt2bEw05wfxSz+DWpWsitgmSgYmy2dQdWyKC1694ELPqMs/YzUSNozLt8A==", - "license": "MIT", "dependencies": { "whatwg-url": "^5.0.0" }, @@ -7716,9 +7600,29 @@ } } }, + "node_modules/openai/node_modules/tr46": { + "version": "0.0.3", + "resolved": "https://registry.npmjs.org/tr46/-/tr46-0.0.3.tgz", + "integrity": "sha512-N3WMsuqV66lT30CrXNbEjx4GEwlow3v6rr4mCcv6prnfwhS01rkgyFdjPNBYd9br7LpXV1+Emh01fHnq2Gdgrw==" + }, + "node_modules/openai/node_modules/webidl-conversions": { + "version": "3.0.1", + "resolved": "https://registry.npmjs.org/webidl-conversions/-/webidl-conversions-3.0.1.tgz", + "integrity": "sha512-2JAn3z8AR6rjK8Sm8orRC0h/bcl/DqL7tRPdGZ4I1CjdF+EaMLmYxBHyXuKL849eucPFhvBoxMsflfOb8kxaeQ==" + }, + "node_modules/openai/node_modules/whatwg-url": { + "version": "5.0.0", + "resolved": "https://registry.npmjs.org/whatwg-url/-/whatwg-url-5.0.0.tgz", + "integrity": "sha512-saE57nupxk6v3HY35+jzBwYa0rKSy0XR8JSxZPwgLr7ys0IBzhGviA1/TUGJLmSVqs8pb9AnvICXEuOHLprYTw==", + "dependencies": { + "tr46": "~0.0.3", + "webidl-conversions": "^3.0.0" + } + }, "node_modules/optionator": { "version": "0.9.3", - "license": "MIT", + "resolved": "https://registry.npmjs.org/optionator/-/optionator-0.9.3.tgz", + "integrity": "sha512-JjCoypp+jKn1ttEFExxhetCKeJt9zhAgAve5FXHixTvFDW/5aEktX9bufBKLRRMdU7bNtpLfcGu94B3cdEJgjg==", "peer": true, "dependencies": { "@aashutoshrathi/word-wrap": "^1.2.3", @@ -7736,7 +7640,6 @@ "version": "3.1.0", "resolved": "https://registry.npmjs.org/p-limit/-/p-limit-3.1.0.tgz", "integrity": "sha512-TYOanM3wGwNGsZN2cVTYPArw454xnXj5qmWF1bEoAc4+cU/ol7GVh7odevjp1FNHduHc3KZMcFduxU5Xc6uJRQ==", - "license": "MIT", "dependencies": { "yocto-queue": "^0.1.0" }, @@ -7747,11 +7650,25 @@ "url": "https://github.com/sponsors/sindresorhus" } }, + "node_modules/p-locate": { + "version": "5.0.0", + "resolved": "https://registry.npmjs.org/p-locate/-/p-locate-5.0.0.tgz", + "integrity": "sha512-LaNjtRWUBY++zB5nE/NwcaoMylSPk+S+ZHNB1TzdbMJMny6dynpAGt7X/tl/QYq3TIeE6nxHppbo2LGymrG5Pw==", + "peer": true, + "dependencies": { + "p-limit": "^3.0.2" + }, + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, "node_modules/p-map": { "version": "4.0.0", "resolved": "https://registry.npmjs.org/p-map/-/p-map-4.0.0.tgz", "integrity": "sha512-/bjOqmgETBYB5BoEeGVea8dmvHb2m9GLy1E9W43yeyfP6QQCZGFNa+XRceJEuDB6zqr+gKpIAmlLebMpykw/MQ==", - "license": "MIT", "optional": true, "dependencies": { "aggregate-error": "^3.0.0" @@ -7768,7 +7685,6 @@ "resolved": "https://registry.npmjs.org/p-try/-/p-try-2.2.0.tgz", "integrity": "sha512-R4nPAVTAU0B9D35/Gk3uJf/7XYbQcyohSKdvAxIRSNghFl4e71hVoGnBNQz9cWaXxO2I10KTC+3jMdvvoKw6dQ==", "dev": true, - "license": "MIT", "engines": { "node": ">=6" } @@ -7776,12 +7692,13 @@ "node_modules/packet-reader": { "version": "1.0.0", "resolved": "https://registry.npmjs.org/packet-reader/-/packet-reader-1.0.0.tgz", - "integrity": "sha512-HAKu/fG3HpHFO0AA8WE8q2g+gBJaZ9MG7fcKk+IJPLTGAD6Psw4443l+9DGRbOIh3/aXr7Phy0TjilYivJo5XQ==", - "license": "MIT" + "integrity": "sha512-HAKu/fG3HpHFO0AA8WE8q2g+gBJaZ9MG7fcKk+IJPLTGAD6Psw4443l+9DGRbOIh3/aXr7Phy0TjilYivJo5XQ==" }, "node_modules/pad-left": { "version": "2.1.0", - "license": "MIT", + "resolved": "https://registry.npmjs.org/pad-left/-/pad-left-2.1.0.tgz", + "integrity": "sha512-HJxs9K9AztdIQIAIa/OIazRAUW/L6B9hbQDxO4X07roW3eo9XqZc2ur9bn1StH9CnbbI9EgvejHQX7CBpCF1QA==", + "peer": true, "dependencies": { "repeat-string": "^1.5.4" }, @@ -7791,7 +7708,8 @@ }, "node_modules/parent-module": { "version": "1.0.1", - "license": "MIT", + "resolved": "https://registry.npmjs.org/parent-module/-/parent-module-1.0.1.tgz", + "integrity": "sha512-GQ2EWRpQV8/o+Aw8YqtfZZPfNRWZYkbidE9k5rpl/hC3vtHHBfGm2Ifi6qWV+coDGkrUKZAxE3Lot5kcsRlh+g==", "peer": true, "dependencies": { "callsites": "^3.0.0" @@ -7805,7 +7723,6 @@ "resolved": "https://registry.npmjs.org/parse-json/-/parse-json-5.2.0.tgz", "integrity": "sha512-ayCKvm/phCGxOkYRSCM82iDwct8/EonSEgCSxWxD7ve6jHggsFl4fZVQBPRNgQoKiuV/odhFrGzQXZwbifC8Rg==", "dev": true, - "license": "MIT", "dependencies": { "@babel/code-frame": "^7.0.0", "error-ex": "^1.3.1", @@ -7823,7 +7740,6 @@ "version": "7.1.2", "resolved": "https://registry.npmjs.org/parse5/-/parse5-7.1.2.tgz", "integrity": "sha512-Czj1WaSVpaoj0wbhMzLmWD69anp2WH7FXMB9n1Sy8/ZFF9jolSQVMu1Ij5WIyGmcBmhk7EOndpO4mIpihVqAXw==", - "license": "MIT", "dependencies": { "entities": "^4.4.0" }, @@ -7835,7 +7751,6 @@ "version": "7.0.0", "resolved": "https://registry.npmjs.org/parse5-htmlparser2-tree-adapter/-/parse5-htmlparser2-tree-adapter-7.0.0.tgz", "integrity": "sha512-B77tOZrqqfUfnVcOrUvfdLbz4pu4RopLD/4vmu3HUPswwTA8OH0EMW9BlWR2B0RCoiZRAHEUu7IxeP1Pd1UU+g==", - "license": "MIT", "dependencies": { "domhandler": "^5.0.2", "parse5": "^7.0.0" @@ -7848,7 +7763,6 @@ "version": "4.0.0", "resolved": "https://registry.npmjs.org/path-exists/-/path-exists-4.0.0.tgz", "integrity": "sha512-ak9Qy5Q7jYb2Wwcey5Fpvg2KoAc/ZIhLSLOSBmRmygPsGwkVVt0fZa0qrtMz+m6tJTAHfZQ8FnmB4MG4LWy7/w==", - "license": "MIT", "engines": { "node": ">=8" } @@ -7857,7 +7771,6 @@ "version": "1.0.1", "resolved": "https://registry.npmjs.org/path-is-absolute/-/path-is-absolute-1.0.1.tgz", "integrity": "sha512-AVbw3UJ2e9bq64vSaS9Am0fje1Pa8pbGqTTsmXfaIiMpnr5DlDhfJOuLj9Sf95ZPVDAUerDfEk88MPmPe7UCQg==", - "license": "MIT", "engines": { "node": ">=0.10.0" } @@ -7866,7 +7779,6 @@ "version": "3.1.1", "resolved": "https://registry.npmjs.org/path-key/-/path-key-3.1.1.tgz", "integrity": "sha512-ojmeN0qd+y0jszEtoY48r0Peq5dwMEkIlCOu6Q5f41lfkswXuKtYrhgoTpLnyIcHm24Uhqx+5Tqm2InSwLhE6Q==", - "license": "MIT", "engines": { "node": ">=8" } @@ -7874,20 +7786,17 @@ "node_modules/path-parse": { "version": "1.0.7", "resolved": "https://registry.npmjs.org/path-parse/-/path-parse-1.0.7.tgz", - "integrity": "sha512-LDJzPVEEEPR+y48z93A0Ed0yXb8pAByGWo/k5YYdYgpY2/2EsOsksJrq7lOHxryrVOn1ejG6oAp8ahvOIQD8sw==", - "license": "MIT" + "integrity": "sha512-LDJzPVEEEPR+y48z93A0Ed0yXb8pAByGWo/k5YYdYgpY2/2EsOsksJrq7lOHxryrVOn1ejG6oAp8ahvOIQD8sw==" }, "node_modules/performance-now": { "version": "2.1.0", "resolved": "https://registry.npmjs.org/performance-now/-/performance-now-2.1.0.tgz", - "integrity": "sha512-7EAHlyLHI56VEIdK57uwHdHKIaAGbnXPiw0yWbarQZOKaKpvUIgW0jWRVLiatnM+XXlSwsanIBH/hzGMJulMow==", - "license": "MIT" + "integrity": "sha512-7EAHlyLHI56VEIdK57uwHdHKIaAGbnXPiw0yWbarQZOKaKpvUIgW0jWRVLiatnM+XXlSwsanIBH/hzGMJulMow==" }, "node_modules/pg": { "version": "8.11.3", "resolved": "https://registry.npmjs.org/pg/-/pg-8.11.3.tgz", "integrity": "sha512-+9iuvG8QfaaUrrph+kpF24cXkH1YOOUeArRNYIxq1viYHZagBxrTno7cecY1Fa44tJeZvaoG+Djpkc3JwehN5g==", - "license": "MIT", "dependencies": { "buffer-writer": "2.0.0", "packet-reader": "1.0.0", @@ -7916,20 +7825,17 @@ "version": "1.1.1", "resolved": "https://registry.npmjs.org/pg-cloudflare/-/pg-cloudflare-1.1.1.tgz", "integrity": "sha512-xWPagP/4B6BgFO+EKz3JONXv3YDgvkbVrGw2mTo3D6tVDQRh1e7cqVGvyR3BE+eQgAvx1XhW/iEASj4/jCWl3Q==", - "license": "MIT", "optional": true }, "node_modules/pg-connection-string": { "version": "2.6.2", "resolved": "https://registry.npmjs.org/pg-connection-string/-/pg-connection-string-2.6.2.tgz", - "integrity": "sha512-ch6OwaeaPYcova4kKZ15sbJ2hKb/VP48ZD2gE7i1J+L4MspCtBMAx8nMgz7bksc7IojCIIWuEhHibSMFH8m8oA==", - "license": "MIT" + "integrity": "sha512-ch6OwaeaPYcova4kKZ15sbJ2hKb/VP48ZD2gE7i1J+L4MspCtBMAx8nMgz7bksc7IojCIIWuEhHibSMFH8m8oA==" }, "node_modules/pg-int8": { "version": "1.0.1", "resolved": "https://registry.npmjs.org/pg-int8/-/pg-int8-1.0.1.tgz", "integrity": "sha512-WCtabS6t3c8SkpDBUlb1kjOs7l66xsGdKpIPZsg4wR+B3+u9UAum2odSsF9tnvxg80h4ZxLWMy4pRjOsFIqQpw==", - "license": "ISC", "engines": { "node": ">=4.0.0" } @@ -7938,7 +7844,6 @@ "version": "3.6.1", "resolved": "https://registry.npmjs.org/pg-pool/-/pg-pool-3.6.1.tgz", "integrity": "sha512-jizsIzhkIitxCGfPRzJn1ZdcosIt3pz9Sh3V01fm1vZnbnCMgmGl5wvGGdNN2EL9Rmb0EcFoCkixH4Pu+sP9Og==", - "license": "MIT", "peerDependencies": { "pg": ">=8.0" } @@ -7946,14 +7851,12 @@ "node_modules/pg-protocol": { "version": "1.6.0", "resolved": "https://registry.npmjs.org/pg-protocol/-/pg-protocol-1.6.0.tgz", - "integrity": "sha512-M+PDm637OY5WM307051+bsDia5Xej6d9IR4GwJse1qA1DIhiKlksvrneZOYQq42OM+spubpcNYEo2FcKQrDk+Q==", - "license": "MIT" + "integrity": "sha512-M+PDm637OY5WM307051+bsDia5Xej6d9IR4GwJse1qA1DIhiKlksvrneZOYQq42OM+spubpcNYEo2FcKQrDk+Q==" }, "node_modules/pg-types": { "version": "2.2.0", "resolved": "https://registry.npmjs.org/pg-types/-/pg-types-2.2.0.tgz", "integrity": "sha512-qTAAlrEsl8s4OiEQY69wDvcMIdQN6wdz5ojQiOy6YRMuynxenON0O5oCpJI6lshc6scgAY8qvJ2On/p+CXY0GA==", - "license": "MIT", "dependencies": { "pg-int8": "1.0.1", "postgres-array": "~2.0.0", @@ -7969,7 +7872,6 @@ "version": "1.0.5", "resolved": "https://registry.npmjs.org/pgpass/-/pgpass-1.0.5.tgz", "integrity": "sha512-FdW9r/jQZhSeohs1Z3sI1yxFQNFvMcnmfuj4WBMUTxOrAyLMaTcE1aAMBiTlbMNaXvBCQuVi0R7hd8udDSP7ug==", - "license": "MIT", "dependencies": { "split2": "^4.1.0" } @@ -7978,15 +7880,13 @@ "version": "1.0.0", "resolved": "https://registry.npmjs.org/picocolors/-/picocolors-1.0.0.tgz", "integrity": "sha512-1fygroTLlHu66zi26VoTDv8yRgm0Fccecssto+MhsZ0D/DGW2sm8E8AjW7NU5VVTRt5GxbeZ5qBuJr+HyLYkjQ==", - "dev": true, - "license": "ISC" + "dev": true }, "node_modules/picomatch": { "version": "2.3.1", "resolved": "https://registry.npmjs.org/picomatch/-/picomatch-2.3.1.tgz", "integrity": "sha512-JU3teHTNjmE2VCGFzuY8EXzCDVwEqB2a8fsIvwaStHhAWJEeVd1o1QD80CU6+ZdEXXSLbSsuLwJjkCBWqRQUVA==", "dev": true, - "license": "MIT", "engines": { "node": ">=8.6" }, @@ -7999,7 +7899,6 @@ "resolved": "https://registry.npmjs.org/pirates/-/pirates-4.0.6.tgz", "integrity": "sha512-saLsH7WeYYPiD25LDuLRRY/i+6HaPYr6G1OUlN39otzkSTxKnubR9RTxS3/Kk50s1g2JTgFwWQDQyplC5/SHZg==", "dev": true, - "license": "MIT", "engines": { "node": ">= 6" } @@ -8009,7 +7908,6 @@ "resolved": "https://registry.npmjs.org/pkg-dir/-/pkg-dir-4.2.0.tgz", "integrity": "sha512-HRDzbaKjC+AOWVXxAU/x54COGeIv9eb+6CkDSQoNTt4XyWoIJvuPsXizxu/Fr23EiekbtZwmh1IcIG/l/a10GQ==", "dev": true, - "license": "MIT", "dependencies": { "find-up": "^4.0.0" }, @@ -8022,7 +7920,6 @@ "resolved": "https://registry.npmjs.org/find-up/-/find-up-4.1.0.tgz", "integrity": "sha512-PpOwAdQ/YlXQ2vj8a3h8IipDuYRi3wceVQQGYWxNINccq40Anw7BlsEXCMbt1Zt+OLA6Fq9suIpIWD0OsnISlw==", "dev": true, - "license": "MIT", "dependencies": { "locate-path": "^5.0.0", "path-exists": "^4.0.0" @@ -8036,7 +7933,6 @@ "resolved": "https://registry.npmjs.org/locate-path/-/locate-path-5.0.0.tgz", "integrity": "sha512-t7hw9pI+WvuwNJXwk5zVHpyhIqzg2qTlklJOf0mVxGSbe3Fp2VieZcduNYjaLDoy6p9uGpQEGWG87WpMKlNq8g==", "dev": true, - "license": "MIT", "dependencies": { "p-locate": "^4.1.0" }, @@ -8049,7 +7945,6 @@ "resolved": "https://registry.npmjs.org/p-limit/-/p-limit-2.3.0.tgz", "integrity": "sha512-//88mFWSJx8lxCzwdAABTJL2MyWB12+eIY7MDL2SqLmAkeKU9qxRvWuSyTjm3FUmpBEMuFfckAIqEaVGUDxb6w==", "dev": true, - "license": "MIT", "dependencies": { "p-try": "^2.0.0" }, @@ -8065,7 +7960,6 @@ "resolved": "https://registry.npmjs.org/p-locate/-/p-locate-4.1.0.tgz", "integrity": "sha512-R79ZZ/0wAxKGu3oYMlz8jy/kbhsNrS7SKZ7PxEHBgJ5+F2mtFW2fK2cOtBh1cHYkQsbzFV7I+EoRKe6Yt0oK7A==", "dev": true, - "license": "MIT", "dependencies": { "p-limit": "^2.2.0" }, @@ -8076,14 +7970,12 @@ "node_modules/platform": { "version": "1.3.6", "resolved": "https://registry.npmjs.org/platform/-/platform-1.3.6.tgz", - "integrity": "sha512-fnWVljUchTro6RiCFvCXBbNhJc2NijN7oIQxbwsyL0buWJPG85v81ehlHI9fXrJsMNgTofEoWIQeClKpgxFLrg==", - "license": "MIT" + "integrity": "sha512-fnWVljUchTro6RiCFvCXBbNhJc2NijN7oIQxbwsyL0buWJPG85v81ehlHI9fXrJsMNgTofEoWIQeClKpgxFLrg==" }, "node_modules/possible-typed-array-names": { "version": "1.0.0", "resolved": "https://registry.npmjs.org/possible-typed-array-names/-/possible-typed-array-names-1.0.0.tgz", "integrity": "sha512-d7Uw+eZoloe0EHDIYoe+bQ5WXnGMOpmiZFTuMWCwpjzzkL2nTjcKiAk4hh8TjnGye2TwWOk3UXucZ+3rbmBa8Q==", - "license": "MIT", "engines": { "node": ">= 0.4" } @@ -8092,7 +7984,6 @@ "version": "2.0.0", "resolved": "https://registry.npmjs.org/postgres-array/-/postgres-array-2.0.0.tgz", "integrity": "sha512-VpZrUqU5A69eQyW2c5CA1jtLecCsN2U/bD6VilrFDWq5+5UIEVO7nazS3TEcHf1zuPYO/sqGvUvW62g86RXZuA==", - "license": "MIT", "engines": { "node": ">=4" } @@ -8101,7 +7992,6 @@ "version": "1.0.0", "resolved": "https://registry.npmjs.org/postgres-bytea/-/postgres-bytea-1.0.0.tgz", "integrity": "sha512-xy3pmLuQqRBZBXDULy7KbaitYqLcmxigw14Q5sj8QBVLqEwXfeybIKVWiqAXTlcvdvb0+xkOtDbfQMOf4lST1w==", - "license": "MIT", "engines": { "node": ">=0.10.0" } @@ -8110,7 +8000,6 @@ "version": "1.0.7", "resolved": "https://registry.npmjs.org/postgres-date/-/postgres-date-1.0.7.tgz", "integrity": "sha512-suDmjLVQg78nMK2UZ454hAG+OAW+HQPZ6n++TNDUX+L0+uUlLywnoxJKDou51Zm+zTCjrCl0Nq6J9C5hP9vK/Q==", - "license": "MIT", "engines": { "node": ">=0.10.0" } @@ -8119,7 +8008,6 @@ "version": "1.2.0", "resolved": "https://registry.npmjs.org/postgres-interval/-/postgres-interval-1.2.0.tgz", "integrity": "sha512-9ZhXKM/rw350N1ovuWHbGxnGh/SNJ4cnxHiM0rxE4VN41wsg8P8zWn9hv/buK00RP4WvlOyr/RBDiptyxVbkZQ==", - "license": "MIT", "dependencies": { "xtend": "^4.0.0" }, @@ -8131,7 +8019,6 @@ "version": "3.6.3", "resolved": "https://registry.npmjs.org/posthog-node/-/posthog-node-3.6.3.tgz", "integrity": "sha512-JB+ei0LkwE+rKHyW5z79Nd1jUaGxU6TvkfjFqY9vQaHxU5aU8dRl0UUaEmZdZbHwjp3WmXCBQQRNyimwbNQfCw==", - "license": "MIT", "dependencies": { "axios": "^1.6.2", "rusha": "^0.8.14" @@ -8141,8 +8028,9 @@ } }, "node_modules/prebuild-install": { - "version": "7.1.1", - "license": "MIT", + "version": "7.1.2", + "resolved": "https://registry.npmjs.org/prebuild-install/-/prebuild-install-7.1.2.tgz", + "integrity": "sha512-UnNke3IQb6sgarcZIDU3gbMeTp/9SSU1DAIkil7PrqG1vZlBtY5msYccSKSHDqa3hNg436IXK+SNImReuA1wEQ==", "dependencies": { "detect-libc": "^2.0.0", "expand-template": "^2.0.3", @@ -8167,14 +8055,12 @@ "node_modules/prebuild-install/node_modules/chownr": { "version": "1.1.4", "resolved": "https://registry.npmjs.org/chownr/-/chownr-1.1.4.tgz", - "integrity": "sha512-jJ0bqzaylmJtVnNgzTeSOs8DPavpbYgEr/b0YL8/2GO3xJEhInFmhKMUnEJQjZumK7KXGFhUy89PrsJWlakBVg==", - "license": "ISC" + "integrity": "sha512-jJ0bqzaylmJtVnNgzTeSOs8DPavpbYgEr/b0YL8/2GO3xJEhInFmhKMUnEJQjZumK7KXGFhUy89PrsJWlakBVg==" }, "node_modules/prebuild-install/node_modules/readable-stream": { "version": "3.6.2", "resolved": "https://registry.npmjs.org/readable-stream/-/readable-stream-3.6.2.tgz", "integrity": "sha512-9u/sniCrY3D5WdsERHzHE4G2YCXqoG5FTHUiCC4SIbr6XcLZBY05ya9EKjYek9O5xOAwjGq+1JdGBAS7Q9ScoA==", - "license": "MIT", "dependencies": { "inherits": "^2.0.3", "string_decoder": "^1.1.1", @@ -8188,7 +8074,6 @@ "version": "2.1.1", "resolved": "https://registry.npmjs.org/tar-fs/-/tar-fs-2.1.1.tgz", "integrity": "sha512-V0r2Y9scmbDRLCNex/+hYzvp/zyYjvFbHPNgVTKfQvVrb6guiE/fxP+XblDNR011utopbkex2nM4dHNV6GDsng==", - "license": "MIT", "dependencies": { "chownr": "^1.1.1", "mkdirp-classic": "^0.5.2", @@ -8200,7 +8085,6 @@ "version": "2.2.0", "resolved": "https://registry.npmjs.org/tar-stream/-/tar-stream-2.2.0.tgz", "integrity": "sha512-ujeqbceABgwMZxEJnk2HDY2DlnUZ+9oEcb1KzTVfYHio0UE6dG71n60d8D2I4qNvleWrrXpmjpt7vZeF1LnMZQ==", - "license": "MIT", "dependencies": { "bl": "^4.0.3", "end-of-stream": "^1.4.1", @@ -8214,7 +8098,8 @@ }, "node_modules/prelude-ls": { "version": "1.2.1", - "license": "MIT", + "resolved": "https://registry.npmjs.org/prelude-ls/-/prelude-ls-1.2.1.tgz", + "integrity": "sha512-vkcDPrRZo1QZLbn5RLGPpg/WmIQ65qoWWhcGKf/b5eplkkarX0m9z8ppCat4mlOqUsWpyNuYgO3VRyrYHSzX5g==", "peer": true, "engines": { "node": ">= 0.8.0" @@ -8225,7 +8110,6 @@ "resolved": "https://registry.npmjs.org/pretty-format/-/pretty-format-29.7.0.tgz", "integrity": "sha512-Pdlw/oPxN+aXdmM9R00JVC9WVFoCLTKJvDVLgmJ+qAffBMxsV85l/Lu7sNx4zSzPyoL2euImuEwHhOXdEgNFZQ==", "dev": true, - "license": "MIT", "dependencies": { "@jest/schemas": "^29.6.3", "ansi-styles": "^5.0.0", @@ -8240,7 +8124,6 @@ "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-5.2.0.tgz", "integrity": "sha512-Cxwpt2SfTzTtXcfOlzGEee8O+c+MmUgGrNiBcXnuWxuFJHe6a5Hz7qwhwe5OgaSYI0IJvkLqWX1ASG+cJOkEiA==", "dev": true, - "license": "MIT", "engines": { "node": ">=10" }, @@ -8252,7 +8135,6 @@ "version": "0.11.10", "resolved": "https://registry.npmjs.org/process/-/process-0.11.10.tgz", "integrity": "sha512-cdGef/drWFoydD1JsMzuFf8100nZl+GT+yacc2bEced5f9Rjk4z+WtFUTBu9PhOi9j/jfmBPu0mMEY4wIdAF8A==", - "license": "MIT", "optional": true, "engines": { "node": ">= 0.6.0" @@ -8262,14 +8144,12 @@ "version": "1.0.1", "resolved": "https://registry.npmjs.org/promise-inflight/-/promise-inflight-1.0.1.tgz", "integrity": "sha512-6zWPyEOFaQBJYcGMHBKTKJ3u6TBsnMFOIZSa6ce1e/ZrrsOlnHRHbabMjLiBYKp+n44X9eUI6VUPaukCXHuG4g==", - "license": "ISC", "optional": true }, "node_modules/promise-retry": { "version": "2.0.1", "resolved": "https://registry.npmjs.org/promise-retry/-/promise-retry-2.0.1.tgz", "integrity": "sha512-y+WKFlBR8BGXnsNlIHFGPZmyDf3DFMoLhaflAnyZgV6rG6xu+JwesTo2Q9R6XwYmtmwAFCkAk3e35jEdoeh/3g==", - "license": "MIT", "optional": true, "dependencies": { "err-code": "^2.0.2", @@ -8284,7 +8164,6 @@ "resolved": "https://registry.npmjs.org/prompts/-/prompts-2.4.2.tgz", "integrity": "sha512-NxNv/kLguCA7p3jE8oL2aEBsrJWgAakBpgmgK6lpPWV+WuOmY6r2/zbAVnP+T8bQlA0nzHXSJSJW0Hq7ylaD2Q==", "dev": true, - "license": "MIT", "dependencies": { "kleur": "^3.0.3", "sisteransi": "^1.0.5" @@ -8298,7 +8177,6 @@ "resolved": "https://registry.npmjs.org/protobufjs/-/protobufjs-6.11.4.tgz", "integrity": "sha512-5kQWPaJHi1WoCpjTGszzQ32PG2F4+wRY6BmAT4Vfw56Q2FZ4YZzK20xUYQH4YkfehY1e6QSICrJquM6xXZNcrw==", "hasInstallScript": true, - "license": "BSD-3-Clause", "dependencies": { "@protobufjs/aspromise": "^1.1.2", "@protobufjs/base64": "^1.1.2", @@ -8322,26 +8200,22 @@ "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==", - "license": "Apache-2.0" + "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", - "integrity": "sha512-D+zkORCbA9f1tdWRK0RaCR3GPv50cMxcrz4X8k5LTSUD1Dkw47mKJEZQNunItRTkWwgtaUSo1RVFRIG9ZXiFYg==", - "license": "MIT" + "integrity": "sha512-D+zkORCbA9f1tdWRK0RaCR3GPv50cMxcrz4X8k5LTSUD1Dkw47mKJEZQNunItRTkWwgtaUSo1RVFRIG9ZXiFYg==" }, "node_modules/psl": { "version": "1.9.0", "resolved": "https://registry.npmjs.org/psl/-/psl-1.9.0.tgz", - "integrity": "sha512-E/ZsdU4HLs/68gYzgGTkMicWTLPdAftJLfJFlLUAAKZGkStNU72sZjT66SnMDVOfOWY/YAoiD7Jxa9iHvngcag==", - "license": "MIT" + "integrity": "sha512-E/ZsdU4HLs/68gYzgGTkMicWTLPdAftJLfJFlLUAAKZGkStNU72sZjT66SnMDVOfOWY/YAoiD7Jxa9iHvngcag==" }, "node_modules/pump": { "version": "3.0.0", "resolved": "https://registry.npmjs.org/pump/-/pump-3.0.0.tgz", "integrity": "sha512-LwZy+p3SFs1Pytd/jYct4wpv49HiYCqd9Rlc5ZVdk0V+8Yzv6jR5Blk3TRmPL1ft69TxP0IMZGJ+WPFU2BFhww==", - "license": "MIT", "dependencies": { "end-of-stream": "^1.1.0", "once": "^1.3.1" @@ -8351,7 +8225,6 @@ "version": "2.3.1", "resolved": "https://registry.npmjs.org/punycode/-/punycode-2.3.1.tgz", "integrity": "sha512-vYt7UD1U9Wg6138shLtLOvdAu+8DsC/ilFtEVHcH+wydcSpNE20AfSOduf6MkRFahL5FY7X1oU7nKVZFtfq8Fg==", - "license": "MIT", "engines": { "node": ">=6" } @@ -8370,14 +8243,12 @@ "type": "opencollective", "url": "https://opencollective.com/fast-check" } - ], - "license": "MIT" + ] }, "node_modules/qs": { "version": "6.5.3", "resolved": "https://registry.npmjs.org/qs/-/qs-6.5.3.tgz", "integrity": "sha512-qxXIEh4pCGfHICj1mAJQ2/2XVZkjCDTcEgfoSQxc/fYivUZxTkk7L3bDBJSoNrEzXI17oUO5Dp07ktqE5KzczA==", - "license": "BSD-3-Clause", "engines": { "node": ">=0.6" } @@ -8385,11 +8256,12 @@ "node_modules/querystringify": { "version": "2.2.0", "resolved": "https://registry.npmjs.org/querystringify/-/querystringify-2.2.0.tgz", - "integrity": "sha512-FIqgj2EUvTa7R50u0rGsyTftzjYmv/a3hO345bZNrqabNqjtgiDMgmo4mkUjd+nzU5oF3dClKqFIPUKybUyqoQ==", - "license": "MIT" + "integrity": "sha512-FIqgj2EUvTa7R50u0rGsyTftzjYmv/a3hO345bZNrqabNqjtgiDMgmo4mkUjd+nzU5oF3dClKqFIPUKybUyqoQ==" }, "node_modules/queue-microtask": { "version": "1.2.3", + "resolved": "https://registry.npmjs.org/queue-microtask/-/queue-microtask-1.2.3.tgz", + "integrity": "sha512-NuaNSa6flKT5JaSYQzJok04JzTL1CA6aGhv5rfLW3PgqA+M2ChpZQnAC8h8i4ZFkBS8X5RqkDBHA7r4hej3K9A==", "funding": [ { "type": "github", @@ -8404,20 +8276,17 @@ "url": "https://feross.org/support" } ], - "license": "MIT", "peer": true }, "node_modules/queue-tick": { "version": "1.0.1", "resolved": "https://registry.npmjs.org/queue-tick/-/queue-tick-1.0.1.tgz", - "integrity": "sha512-kJt5qhMxoszgU/62PLP1CJytzd2NKetjSRnyuj31fDd3Rlcz3fzlFdFLD1SItunPwyqEOkca6GbV612BWfaBag==", - "license": "MIT" + "integrity": "sha512-kJt5qhMxoszgU/62PLP1CJytzd2NKetjSRnyuj31fDd3Rlcz3fzlFdFLD1SItunPwyqEOkca6GbV612BWfaBag==" }, "node_modules/rc": { "version": "1.2.8", "resolved": "https://registry.npmjs.org/rc/-/rc-1.2.8.tgz", "integrity": "sha512-y3bGgqKj3QBdxLbLkomlohkvsA8gdAiUQlSBJnBhfn+BPxg4bc62d8TcBW15wavDfgexCgccckhcZvywyQYPOw==", - "license": "(BSD-2-Clause OR MIT OR Apache-2.0)", "dependencies": { "deep-extend": "^0.6.0", "ini": "~1.3.0", @@ -8432,7 +8301,6 @@ "version": "2.0.1", "resolved": "https://registry.npmjs.org/strip-json-comments/-/strip-json-comments-2.0.1.tgz", "integrity": "sha512-4gB8na07fecVVkOI6Rs4e7T6NOTki5EmL7TUduTs6bu3EdnSycntVJ4re8kgZA+wx9IueI2Y11bfbgwtzuE0KQ==", - "license": "MIT", "engines": { "node": ">=0.10.0" } @@ -8441,14 +8309,12 @@ "version": "18.2.0", "resolved": "https://registry.npmjs.org/react-is/-/react-is-18.2.0.tgz", "integrity": "sha512-xWGDIW6x921xtzPkhiULtthJHoJvBbF3q26fzloPCK0hsvxtPVelvftw3zjbHWSkR2km9Z+4uxbDDK/6Zw9B8w==", - "dev": true, - "license": "MIT" + "dev": true }, "node_modules/readable-stream": { "version": "4.5.2", "resolved": "https://registry.npmjs.org/readable-stream/-/readable-stream-4.5.2.tgz", "integrity": "sha512-yjavECdqeZ3GLXNgRXgeQEdz9fvDDkNKyHnbHRFtOr7/LcfgBcmct7t/ET+HaCTqfh06OzoAxrkN/IfjJBVe+g==", - "license": "MIT", "optional": true, "dependencies": { "abort-controller": "^3.0.0", @@ -8465,7 +8331,6 @@ "version": "1.5.2", "resolved": "https://registry.npmjs.org/regexp.prototype.flags/-/regexp.prototype.flags-1.5.2.tgz", "integrity": "sha512-NcDiDkTLuPR+++OCKB0nWafEmhg/Da8aUPLPMQbK+bxKKCm1/S5he+AqYa4PlMCVBalb4/yxIRub6qkEx5yJbw==", - "license": "MIT", "dependencies": { "call-bind": "^1.0.6", "define-properties": "^1.2.1", @@ -8481,7 +8346,9 @@ }, "node_modules/repeat-string": { "version": "1.6.1", - "license": "MIT", + "resolved": "https://registry.npmjs.org/repeat-string/-/repeat-string-1.6.1.tgz", + "integrity": "sha512-PV0dzCYDNfRi1jCDbJzpW7jNNDRuCOG/jI5ctQcGKt/clZD+YcPS3yIlWuTJMmESC8aevCFmWJy5wjAFgNqN6w==", + "peer": true, "engines": { "node": ">=0.10" } @@ -8490,7 +8357,6 @@ "version": "0.26.0", "resolved": "https://registry.npmjs.org/replicate/-/replicate-0.26.0.tgz", "integrity": "sha512-BR7zI/pJp11IuCZZ38hdJVZ07ZCfe6b3tbPuUpRIbt76sVKoGtQhn4Cp2H6/r6qU1fOO6dHadl2VKK4Y0j9Lkg==", - "license": "Apache-2.0", "engines": { "git": ">=2.11.0", "node": ">=18.0.0", @@ -8505,7 +8371,7 @@ "version": "2.88.2", "resolved": "https://registry.npmjs.org/request/-/request-2.88.2.tgz", "integrity": "sha512-MsvtOrfG9ZcrOwAW+Qi+F6HbD0CWXEh9ou77uOb7FM2WPhwT7smM833PzanhJLsgXjN89Ir6V2PczXNnMpwKhw==", - "license": "Apache-2.0", + "deprecated": "request has been deprecated, see https://github.com/request/request/issues/3142", "dependencies": { "aws-sign2": "~0.7.0", "aws4": "^1.8.0", @@ -8536,7 +8402,6 @@ "version": "2.3.3", "resolved": "https://registry.npmjs.org/form-data/-/form-data-2.3.3.tgz", "integrity": "sha512-1lLKB2Mu3aGP1Q/2eCOx0fNbRMe7XdwktwOruhfqqd0rIJWwN4Dh+E3hrPSlDCXnSR7UtZ1N38rVXm+6+MEhJQ==", - "license": "MIT", "dependencies": { "asynckit": "^0.4.0", "combined-stream": "^1.0.6", @@ -8550,7 +8415,6 @@ "version": "2.5.0", "resolved": "https://registry.npmjs.org/tough-cookie/-/tough-cookie-2.5.0.tgz", "integrity": "sha512-nlLsUzgm1kfLXSXfRZMc1KLAugd4hqJHDTvc2hDIwS3mZAfMEuMbc03SujMF+GEcpaX/qboeycw6iO8JwVv2+g==", - "license": "BSD-3-Clause", "dependencies": { "psl": "^1.1.28", "punycode": "^2.1.1" @@ -8563,7 +8427,7 @@ "version": "3.4.0", "resolved": "https://registry.npmjs.org/uuid/-/uuid-3.4.0.tgz", "integrity": "sha512-HjSDRw6gZE5JMggctHBcjVak08+KEVhSIiDzFnT9S9aegmp85S/bReBVTb4QTFaRNptJ9kuYaNhnbNEOkbKb/A==", - "license": "MIT", + "deprecated": "Please upgrade to version 7 or higher. Older versions may use Math.random() in certain circumstances, which is known to be problematic. See https://v8.dev/blog/math-random for details.", "bin": { "uuid": "bin/uuid" } @@ -8573,7 +8437,6 @@ "resolved": "https://registry.npmjs.org/require-directory/-/require-directory-2.1.1.tgz", "integrity": "sha512-fGxEI7+wsG9xrvdjsrlmL22OMTTiHRwAMroiEeMgq8gzoLC/PQr7RsRDSTLUg/bZAZtF+TVIkHc6/4RIKrui+Q==", "dev": true, - "license": "MIT", "engines": { "node": ">=0.10.0" } @@ -8581,14 +8444,12 @@ "node_modules/requires-port": { "version": "1.0.0", "resolved": "https://registry.npmjs.org/requires-port/-/requires-port-1.0.0.tgz", - "integrity": "sha512-KigOCHcocU3XODJxsu8i/j8T9tzT4adHiecwORRQ0ZZFcp7ahwXuRU1m+yuO90C5ZUyGeGfocHDI14M3L3yDAQ==", - "license": "MIT" + "integrity": "sha512-KigOCHcocU3XODJxsu8i/j8T9tzT4adHiecwORRQ0ZZFcp7ahwXuRU1m+yuO90C5ZUyGeGfocHDI14M3L3yDAQ==" }, "node_modules/resolve": { "version": "1.22.8", "resolved": "https://registry.npmjs.org/resolve/-/resolve-1.22.8.tgz", "integrity": "sha512-oKWePCxqpd6FlLvGV1VU0x7bkPmmCNolxzjMf4NczoDnQcIWrAF+cPtZn5i6n+RfD2d9i0tzpKnG6Yk168yIyw==", - "license": "MIT", "dependencies": { "is-core-module": "^2.13.0", "path-parse": "^1.0.7", @@ -8606,7 +8467,6 @@ "resolved": "https://registry.npmjs.org/resolve-cwd/-/resolve-cwd-3.0.0.tgz", "integrity": "sha512-OrZaX2Mb+rJCpH/6CpSqt9xFVpN++x01XnN2ie9g6P5/3xelLAkXWVADpdz1IHD/KFfEXyE6V0U01OQ3UO2rEg==", "dev": true, - "license": "MIT", "dependencies": { "resolve-from": "^5.0.0" }, @@ -8619,17 +8479,24 @@ "resolved": "https://registry.npmjs.org/resolve-from/-/resolve-from-5.0.0.tgz", "integrity": "sha512-qYg9KP24dD5qka9J47d0aVky0N+b4fTU89LN9iDnjB5waksiC49rvMB0PrUJQGoTmH50XPiqOvAjDfaijGxYZw==", "dev": true, - "license": "MIT", "engines": { "node": ">=8" } }, + "node_modules/resolve-from": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/resolve-from/-/resolve-from-4.0.0.tgz", + "integrity": "sha512-pb/MYmXstAkysRFx8piNI1tGFNQIFA3vkE3Gq4EuA1dF6gHp/+vgZqsCGJapvy8N3Q+4o7FwvquPJcnZ7RYy4g==", + "peer": true, + "engines": { + "node": ">=4" + } + }, "node_modules/resolve.exports": { "version": "2.0.2", "resolved": "https://registry.npmjs.org/resolve.exports/-/resolve.exports-2.0.2.tgz", "integrity": "sha512-X2UW6Nw3n/aMgDVy+0rSqgHlv39WZAlZrXCdnbyEiKm17DSqHX4MmQMaST3FbeWR5FTuRcUwYAziZajji0Y7mg==", "dev": true, - "license": "MIT", "engines": { "node": ">=10" } @@ -8638,7 +8505,6 @@ "version": "0.12.0", "resolved": "https://registry.npmjs.org/retry/-/retry-0.12.0.tgz", "integrity": "sha512-9LkiTwjUh6rT555DtE9rTX+BKByPfrMzEAtnlEtdEwr3Nkffwiihqe2bWADg+OQRjt9gl6ICdmB/ZFDCGAtSow==", - "license": "MIT", "optional": true, "engines": { "node": ">= 4" @@ -8646,7 +8512,8 @@ }, "node_modules/reusify": { "version": "1.0.4", - "license": "MIT", + "resolved": "https://registry.npmjs.org/reusify/-/reusify-1.0.4.tgz", + "integrity": "sha512-U9nH88a3fc/ekCF1l0/UP1IosiuIjyTh7hBvXVMHYgVcfGvt897Xguj2UOLDeI5BG2m7/uwyaLVT6fbtCwTyzw==", "peer": true, "engines": { "iojs": ">=1.0.0", @@ -8657,7 +8524,6 @@ "version": "3.0.2", "resolved": "https://registry.npmjs.org/rimraf/-/rimraf-3.0.2.tgz", "integrity": "sha512-JZkJMZkAGFFPP2YqXZXPbMlMBgsxzE8ILs4lMIX/2o0L9UBw9O/Y3o6wFw/i9YLapcUJWwqbi3kdxIPdC62TIA==", - "license": "ISC", "dependencies": { "glob": "^7.1.3" }, @@ -8671,11 +8537,12 @@ "node_modules/rrweb-cssom": { "version": "0.6.0", "resolved": "https://registry.npmjs.org/rrweb-cssom/-/rrweb-cssom-0.6.0.tgz", - "integrity": "sha512-APM0Gt1KoXBz0iIkkdB/kfvGOwC4UuJFeG/c+yV7wSc7q96cG/kJ0HiYCnzivD9SB53cLV1MlHFNfOuPaadYSw==", - "license": "MIT" + "integrity": "sha512-APM0Gt1KoXBz0iIkkdB/kfvGOwC4UuJFeG/c+yV7wSc7q96cG/kJ0HiYCnzivD9SB53cLV1MlHFNfOuPaadYSw==" }, "node_modules/run-parallel": { "version": "1.2.0", + "resolved": "https://registry.npmjs.org/run-parallel/-/run-parallel-1.2.0.tgz", + "integrity": "sha512-5l4VyZR86LZ/lDxZTR6jqL8AFE2S0IFLMP26AbjsLVADxHdhB/c0GUsH+y39UfCi3dzz8OlQuPmnaJOMoDHQBA==", "funding": [ { "type": "github", @@ -8690,7 +8557,6 @@ "url": "https://feross.org/support" } ], - "license": "MIT", "peer": true, "dependencies": { "queue-microtask": "^1.2.2" @@ -8699,15 +8565,15 @@ "node_modules/rusha": { "version": "0.8.14", "resolved": "https://registry.npmjs.org/rusha/-/rusha-0.8.14.tgz", - "integrity": "sha512-cLgakCUf6PedEu15t8kbsjnwIFFR2D4RfL+W3iWFJ4iac7z4B0ZI8fxy4R3J956kAI68HclCFGL8MPoUVC3qVA==", - "license": "MIT" + "integrity": "sha512-cLgakCUf6PedEu15t8kbsjnwIFFR2D4RfL+W3iWFJ4iac7z4B0ZI8fxy4R3J956kAI68HclCFGL8MPoUVC3qVA==" }, "node_modules/safe-array-concat": { - "version": "1.1.0", - "license": "MIT", + "version": "1.1.2", + "resolved": "https://registry.npmjs.org/safe-array-concat/-/safe-array-concat-1.1.2.tgz", + "integrity": "sha512-vj6RsCsWBCf19jIeHEfkRMw8DPiBb+DMXklQ/1SGDHOMlHdPUkZXFQ2YdplS23zESTijAcurb1aSgJA3AgMu1Q==", "dependencies": { - "call-bind": "^1.0.5", - "get-intrinsic": "^1.2.2", + "call-bind": "^1.0.7", + "get-intrinsic": "^1.2.4", "has-symbols": "^1.0.3", "isarray": "^2.0.5" }, @@ -8735,14 +8601,12 @@ "type": "consulting", "url": "https://feross.org/support" } - ], - "license": "MIT" + ] }, "node_modules/safe-regex-test": { "version": "1.0.3", "resolved": "https://registry.npmjs.org/safe-regex-test/-/safe-regex-test-1.0.3.tgz", "integrity": "sha512-CdASjNJPvRa7roO6Ra/gLYBTzYzzPyyBXxIMdGW3USQLyjWEls2RgW5UBTXaQVp+OrpeCK3bLem8smtmheoRuw==", - "license": "MIT", "dependencies": { "call-bind": "^1.0.6", "es-errors": "^1.3.0", @@ -8758,14 +8622,12 @@ "node_modules/safer-buffer": { "version": "2.1.2", "resolved": "https://registry.npmjs.org/safer-buffer/-/safer-buffer-2.1.2.tgz", - "integrity": "sha512-YZo3K82SD7Riyi0E1EQPojLz7kpepnSQI9IyPbHHg1XXXevb5dJI7tpyN2ADxGcQbHG7vcyRHk0cbwqcQriUtg==", - "license": "MIT" + "integrity": "sha512-YZo3K82SD7Riyi0E1EQPojLz7kpepnSQI9IyPbHHg1XXXevb5dJI7tpyN2ADxGcQbHG7vcyRHk0cbwqcQriUtg==" }, "node_modules/saxes": { "version": "6.0.0", "resolved": "https://registry.npmjs.org/saxes/-/saxes-6.0.0.tgz", "integrity": "sha512-xAg7SOnEhrm5zI3puOOKyy1OMcMlIJZYNJY7xLBwSze0UjhPLnWfj2GF2EpT0jmzaJKIWKHLsaSSajf35bcYnA==", - "license": "ISC", "dependencies": { "xmlchars": "^2.2.0" }, @@ -8777,7 +8639,6 @@ "version": "6.3.1", "resolved": "https://registry.npmjs.org/semver/-/semver-6.3.1.tgz", "integrity": "sha512-BR7VvDCVHO+q2xBEWskxS6DJE1qRnb7DxzUrogb71CWoSficBxYsiAGd+Kl0mmq/MprG9yArRkyrQxTO6XjMzA==", - "license": "ISC", "bin": { "semver": "bin/semver.js" } @@ -8791,19 +8652,19 @@ "version": "2.0.0", "resolved": "https://registry.npmjs.org/set-blocking/-/set-blocking-2.0.0.tgz", "integrity": "sha512-KiKBS8AnWGEyLzofFfmvKwpdPzqiy16LvQfK3yv/fVH7Bj13/wl3JSR1J+rfgRE9q7xUJK4qvgS8raSOeLUehw==", - "license": "ISC", "optional": true }, "node_modules/set-function-length": { - "version": "1.2.1", - "license": "MIT", + "version": "1.2.2", + "resolved": "https://registry.npmjs.org/set-function-length/-/set-function-length-1.2.2.tgz", + "integrity": "sha512-pgRc4hJ4/sNjWCSS9AmnS40x3bNMDTknHgL5UaMBTMyJnU90EgWh1Rz+MC9eFu4BuN/UwZjKQuY/1v3rM7HMfg==", "dependencies": { - "define-data-property": "^1.1.2", + "define-data-property": "^1.1.4", "es-errors": "^1.3.0", "function-bind": "^1.1.2", - "get-intrinsic": "^1.2.3", + "get-intrinsic": "^1.2.4", "gopd": "^1.0.1", - "has-property-descriptors": "^1.0.1" + "has-property-descriptors": "^1.0.2" }, "engines": { "node": ">= 0.4" @@ -8813,7 +8674,6 @@ "version": "2.0.2", "resolved": "https://registry.npmjs.org/set-function-name/-/set-function-name-2.0.2.tgz", "integrity": "sha512-7PGFlmtwsEADb0WYyvCMa1t+yke6daIG4Wirafur5kcf+MhUnPms1UeR0CKQdTZD81yESwMHbtn+TR+dMviakQ==", - "license": "MIT", "dependencies": { "define-data-property": "^1.1.4", "es-errors": "^1.3.0", @@ -8829,7 +8689,6 @@ "resolved": "https://registry.npmjs.org/sharp/-/sharp-0.32.6.tgz", "integrity": "sha512-KyLTWwgcR9Oe4d9HwCwNM2l7+J0dUQwn/yf7S0EnTtb0eVS4RxO0eUSvxPtzT4F3SY+C4K6fqdv/DO27sJ/v/w==", "hasInstallScript": true, - "license": "Apache-2.0", "dependencies": { "color": "^4.2.3", "detect-libc": "^2.0.2", @@ -8851,7 +8710,6 @@ "version": "6.0.0", "resolved": "https://registry.npmjs.org/lru-cache/-/lru-cache-6.0.0.tgz", "integrity": "sha512-Jo6dJ04CmSjuznwJSS3pUeWmd/H0ffTlkXXgwZi+eq1UCmqQwCh+eLsYOYCwY991i2Fah4h1BEMCx4qThGbsiA==", - "license": "ISC", "dependencies": { "yallist": "^4.0.0" }, @@ -8863,7 +8721,6 @@ "version": "7.6.0", "resolved": "https://registry.npmjs.org/semver/-/semver-7.6.0.tgz", "integrity": "sha512-EnwXhrlwXMk9gKu5/flx5sv/an57AkRplG3hTK68W7FRDN+k+OWBj65M7719OkA82XLBxrcX0KSHj+X5COhOVg==", - "license": "ISC", "dependencies": { "lru-cache": "^6.0.0" }, @@ -8877,14 +8734,12 @@ "node_modules/sharp/node_modules/yallist": { "version": "4.0.0", "resolved": "https://registry.npmjs.org/yallist/-/yallist-4.0.0.tgz", - "integrity": "sha512-3wdGidZyq5PB084XLES5TpOSRA3wjXAlIWMhum2kRcv/41Sn2emQ0dycQW4uZXLejwKvg6EsvbdlVL+FYEct7A==", - "license": "ISC" + "integrity": "sha512-3wdGidZyq5PB084XLES5TpOSRA3wjXAlIWMhum2kRcv/41Sn2emQ0dycQW4uZXLejwKvg6EsvbdlVL+FYEct7A==" }, "node_modules/shebang-command": { "version": "2.0.0", "resolved": "https://registry.npmjs.org/shebang-command/-/shebang-command-2.0.0.tgz", "integrity": "sha512-kHxr2zZpYtdmrN1qDjrrX/Z1rR1kG8Dx+gkpK1G4eXmvXswmcE1hTWBWYUzlraYw1/yZp6YuDY77YtvbN0dmDA==", - "license": "MIT", "dependencies": { "shebang-regex": "^3.0.0" }, @@ -8896,7 +8751,6 @@ "version": "3.0.0", "resolved": "https://registry.npmjs.org/shebang-regex/-/shebang-regex-3.0.0.tgz", "integrity": "sha512-7++dFhtcx3353uBaq8DDR4NuxBetBzC7ZQOhmTQInHEd6bSrXdiEyzCvG07Z44UYdLShWUyXt5M/yhz8ekcb1A==", - "license": "MIT", "engines": { "node": ">=8" } @@ -8905,7 +8759,6 @@ "version": "1.0.6", "resolved": "https://registry.npmjs.org/side-channel/-/side-channel-1.0.6.tgz", "integrity": "sha512-fDW/EZ6Q9RiO8eFG8Hj+7u/oW+XrPTIChwCOM2+th2A6OblDtYYIpve9m+KvI9Z4C9qSEXlaGR6bTEYHReuglA==", - "license": "MIT", "dependencies": { "call-bind": "^1.0.7", "es-errors": "^1.3.0", @@ -8923,8 +8776,7 @@ "version": "3.0.7", "resolved": "https://registry.npmjs.org/signal-exit/-/signal-exit-3.0.7.tgz", "integrity": "sha512-wnD2ZE+l+SPC/uoS0vXeE9L1+0wuaMqKlfz9AMUo38JsyLSBWSFcHR1Rri62LZc12vLr1gb3jl7iwQhgwpAbGQ==", - "devOptional": true, - "license": "ISC" + "devOptional": true }, "node_modules/simple-concat": { "version": "1.0.1", @@ -8943,8 +8795,7 @@ "type": "consulting", "url": "https://feross.org/support" } - ], - "license": "MIT" + ] }, "node_modules/simple-get": { "version": "4.0.1", @@ -8964,7 +8815,6 @@ "url": "https://feross.org/support" } ], - "license": "MIT", "dependencies": { "decompress-response": "^6.0.0", "once": "^1.3.1", @@ -8975,7 +8825,6 @@ "version": "0.2.2", "resolved": "https://registry.npmjs.org/simple-swizzle/-/simple-swizzle-0.2.2.tgz", "integrity": "sha512-JA//kQgZtbuY83m+xT+tXJkmJncGMTFT+C+g2h2R9uxkYIrE2yy9sgmcLhCnw57/WSD+Eh3J97FPEDFnbXnDUg==", - "license": "MIT", "dependencies": { "is-arrayish": "^0.3.1" } @@ -8983,22 +8832,19 @@ "node_modules/simple-swizzle/node_modules/is-arrayish": { "version": "0.3.2", "resolved": "https://registry.npmjs.org/is-arrayish/-/is-arrayish-0.3.2.tgz", - "integrity": "sha512-eVRqCvVlZbuw3GrM63ovNSNAeA1K16kaR/LRY/92w0zxQ5/1YzwblUX652i4Xs9RwAGjW9d9y6X88t8OaAJfWQ==", - "license": "MIT" + "integrity": "sha512-eVRqCvVlZbuw3GrM63ovNSNAeA1K16kaR/LRY/92w0zxQ5/1YzwblUX652i4Xs9RwAGjW9d9y6X88t8OaAJfWQ==" }, "node_modules/sisteransi": { "version": "1.0.5", "resolved": "https://registry.npmjs.org/sisteransi/-/sisteransi-1.0.5.tgz", "integrity": "sha512-bLGGlR1QxBcynn2d5YmDX4MGjlZvy2MRBDRNHLJ8VI6l6+9FUiyTFNJ0IveOSP0bcXgVDPRcfGqA0pjaqUpfVg==", - "dev": true, - "license": "MIT" + "dev": true }, "node_modules/slash": { "version": "3.0.0", "resolved": "https://registry.npmjs.org/slash/-/slash-3.0.0.tgz", "integrity": "sha512-g9Q1haeby36OSStwb4ntCGGGaKsaVSjQ68fBxoQcutl5fS1vuY18H3wSt3jFyFtrkx+Kz0V1G85A4MyAdDMi2Q==", "dev": true, - "license": "MIT", "engines": { "node": ">=8" } @@ -9007,7 +8853,6 @@ "version": "4.2.0", "resolved": "https://registry.npmjs.org/smart-buffer/-/smart-buffer-4.2.0.tgz", "integrity": "sha512-94hK0Hh8rPqQl2xXc3HsaBoOXKV20MToPkcXvwbISWLEs+64sBq5kFgn2kJDHb1Pry9yrP0dxrCI9RRci7RXKg==", - "license": "MIT", "optional": true, "engines": { "node": ">= 6.0.0", @@ -9018,7 +8863,6 @@ "version": "4.7.4", "resolved": "https://registry.npmjs.org/socket.io-client/-/socket.io-client-4.7.4.tgz", "integrity": "sha512-wh+OkeF0rAVCrABWQBaEjLfb7DVPotMbu0cgWgyR0v6eA4EoVnAwcIeIbcdTE3GT/H3kbdLl7OoH2+asoDRIIg==", - "license": "MIT", "dependencies": { "@socket.io/component-emitter": "~3.1.0", "debug": "~4.3.2", @@ -9033,7 +8877,6 @@ "version": "4.2.4", "resolved": "https://registry.npmjs.org/socket.io-parser/-/socket.io-parser-4.2.4.tgz", "integrity": "sha512-/GbIKmo8ioc+NIWIhwdecY0ge+qVBSMdgxGygevmdHj24bsfgtCmcUUcQ5ZzcylGFHsN3k4HB4Cgkl96KVnuew==", - "license": "MIT", "dependencies": { "@socket.io/component-emitter": "~3.1.0", "debug": "~4.3.1" @@ -9046,7 +8889,6 @@ "version": "2.8.1", "resolved": "https://registry.npmjs.org/socks/-/socks-2.8.1.tgz", "integrity": "sha512-B6w7tkwNid7ToxjZ08rQMT8M9BJAf8DKx8Ft4NivzH0zBUfd6jldGcisJn/RLgxcX3FPNDdNQCUEMMT79b+oCQ==", - "license": "MIT", "optional": true, "dependencies": { "ip-address": "^9.0.5", @@ -9061,7 +8903,6 @@ "version": "6.2.1", "resolved": "https://registry.npmjs.org/socks-proxy-agent/-/socks-proxy-agent-6.2.1.tgz", "integrity": "sha512-a6KW9G+6B3nWZ1yB8G7pJwL3ggLy1uTzKAgCb7ttblwqdz9fMGJUuTy3uFzEP48FAs9FLILlmzDlE2JJhVQaXQ==", - "license": "MIT", "optional": true, "dependencies": { "agent-base": "^6.0.2", @@ -9076,7 +8917,6 @@ "version": "6.0.2", "resolved": "https://registry.npmjs.org/agent-base/-/agent-base-6.0.2.tgz", "integrity": "sha512-RZNwNclF7+MS/8bDg70amg32dyeZGZxiDuQmZxKLAlQjr3jGyLx+4Kkk58UO7D2QdgFIQCovuSuZESne6RG6XQ==", - "license": "MIT", "optional": true, "dependencies": { "debug": "4" @@ -9089,7 +8929,6 @@ "version": "0.6.1", "resolved": "https://registry.npmjs.org/source-map/-/source-map-0.6.1.tgz", "integrity": "sha512-UjgapumWlbMhkBgzT7Ykc5YXUT46F0iKu8SGXq0bcwP5dz/h0Plj6enJqjz1Zbq2l5WaqYnrVbwWOWMyF3F47g==", - "license": "BSD-3-Clause", "engines": { "node": ">=0.10.0" } @@ -9099,7 +8938,6 @@ "resolved": "https://registry.npmjs.org/source-map-support/-/source-map-support-0.5.13.tgz", "integrity": "sha512-SHSKFHadjVA5oR4PPqhtAVdcBWwRYVd6g6cAXnIbRiIwc2EhPrTuKUBdSLvlEKyIP3GCf89fltvcZiP9MMFA1w==", "dev": true, - "license": "MIT", "dependencies": { "buffer-from": "^1.0.0", "source-map": "^0.6.0" @@ -9109,7 +8947,6 @@ "version": "4.2.0", "resolved": "https://registry.npmjs.org/split2/-/split2-4.2.0.tgz", "integrity": "sha512-UcjcJOWknrNkF6PLX83qcHM6KHgVKNkV62Y8a5uYDVv9ydGQVwAHMKqHdJje1VTWpljG0WYpCDhrCdAOYH4TWg==", - "license": "ISC", "engines": { "node": ">= 10.x" } @@ -9118,21 +8955,18 @@ "version": "1.1.3", "resolved": "https://registry.npmjs.org/sprintf-js/-/sprintf-js-1.1.3.tgz", "integrity": "sha512-Oo+0REFV59/rz3gfJNKQiBlwfHaSESl1pcGyABQsnnIfWOFt6JNj5gCog2U6MLZ//IGYD+nA8nI+mTShREReaA==", - "license": "BSD-3-Clause", "optional": true }, "node_modules/sqlite": { "version": "5.1.1", "resolved": "https://registry.npmjs.org/sqlite/-/sqlite-5.1.1.tgz", - "integrity": "sha512-oBkezXa2hnkfuJwUo44Hl9hS3er+YFtueifoajrgidvqsJRQFpc5fKoAkAor1O5ZnLoa28GBScfHXs8j0K358Q==", - "license": "MIT" + "integrity": "sha512-oBkezXa2hnkfuJwUo44Hl9hS3er+YFtueifoajrgidvqsJRQFpc5fKoAkAor1O5ZnLoa28GBScfHXs8j0K358Q==" }, "node_modules/sqlite3": { "version": "5.1.7", "resolved": "https://registry.npmjs.org/sqlite3/-/sqlite3-5.1.7.tgz", "integrity": "sha512-GGIyOiFaG+TUra3JIfkI/zGP8yZYLPQ0pl1bH+ODjiX57sPhrLU5sQJn1y9bDKZUFYkX1crlrPfSYt0BKKdkog==", "hasInstallScript": true, - "license": "BSD-3-Clause", "dependencies": { "bindings": "^1.5.0", "node-addon-api": "^7.0.0", @@ -9155,7 +8989,6 @@ "version": "7.1.0", "resolved": "https://registry.npmjs.org/node-addon-api/-/node-addon-api-7.1.0.tgz", "integrity": "sha512-mNcltoe1R8o7STTegSOHdnJNN7s5EUvhoS7ShnTHDyOSd+8H+UdWODq6qSv67PjC8Zc5JRT8+oLAMCr0SIXw7g==", - "license": "MIT", "engines": { "node": "^16 || ^18 || >= 20" } @@ -9164,7 +8997,6 @@ "version": "2.3.3", "resolved": "https://registry.npmjs.org/sqlstring/-/sqlstring-2.3.3.tgz", "integrity": "sha512-qC9iz2FlN7DQl3+wjwn3802RTyjCx7sDvfQEXchwa6CWOx07/WVfh91gBmQ9fahw8snwGEWU3xGzOt4tFyHLxg==", - "license": "MIT", "engines": { "node": ">= 0.6" } @@ -9173,7 +9005,6 @@ "version": "1.18.0", "resolved": "https://registry.npmjs.org/sshpk/-/sshpk-1.18.0.tgz", "integrity": "sha512-2p2KJZTSqQ/I3+HX42EpYOa2l3f8Erv8MWKsy2I9uf4wA7yFIkXRffYdsx86y6z4vHtV8u7g+pPlr8/4ouAxsQ==", - "license": "MIT", "dependencies": { "asn1": "~0.2.3", "assert-plus": "^1.0.0", @@ -9197,14 +9028,12 @@ "node_modules/sshpk/node_modules/jsbn": { "version": "0.1.1", "resolved": "https://registry.npmjs.org/jsbn/-/jsbn-0.1.1.tgz", - "integrity": "sha512-UVU9dibq2JcFWxQPA6KCqj5O42VOmAY3zQUfEKxU0KpTGXwNoCjkX1e13eHNvw/xPynt6pU0rZ1htjWTNTSXsg==", - "license": "MIT" + "integrity": "sha512-UVU9dibq2JcFWxQPA6KCqj5O42VOmAY3zQUfEKxU0KpTGXwNoCjkX1e13eHNvw/xPynt6pU0rZ1htjWTNTSXsg==" }, "node_modules/ssri": { "version": "8.0.1", "resolved": "https://registry.npmjs.org/ssri/-/ssri-8.0.1.tgz", "integrity": "sha512-97qShzy1AiyxvPNIkLWoGua7xoQzzPjQ0HAH4B0rWKo7SZ6USuPcrUiAFrws0UH8RrbWmgq3LMTObhPIHbbBeQ==", - "license": "ISC", "optional": true, "dependencies": { "minipass": "^3.1.1" @@ -9218,7 +9047,6 @@ "resolved": "https://registry.npmjs.org/stack-utils/-/stack-utils-2.0.6.tgz", "integrity": "sha512-XlkWvfIm6RmsWtNJx+uqtKLS8eqFbxUg0ZzLXqY0caEy9l7hruX8IpiDnjsLavoBgqCCR71TqWO8MaXYheJ3RQ==", "dev": true, - "license": "MIT", "dependencies": { "escape-string-regexp": "^2.0.0" }, @@ -9231,14 +9059,15 @@ "resolved": "https://registry.npmjs.org/escape-string-regexp/-/escape-string-regexp-2.0.0.tgz", "integrity": "sha512-UpzcLCXolUWcNu5HtVMHYdXJjArjsF9C0aNnquZYY4uW/Vu0miy5YoWvbV345HauVvcAUnpRuhMMcqTcGOY2+w==", "dev": true, - "license": "MIT", "engines": { "node": ">=8" } }, "node_modules/stream-read-all": { "version": "3.0.1", - "license": "MIT", + "resolved": "https://registry.npmjs.org/stream-read-all/-/stream-read-all-3.0.1.tgz", + "integrity": "sha512-EWZT9XOceBPlVJRrYcykW8jyRSZYbkb/0ZK36uLEmoWVO5gxBOnntNTseNzfREsqxqdfEGQrD8SXQ3QWbBmq8A==", + "peer": true, "engines": { "node": ">=10" } @@ -9247,7 +9076,6 @@ "version": "2.16.1", "resolved": "https://registry.npmjs.org/streamx/-/streamx-2.16.1.tgz", "integrity": "sha512-m9QYj6WygWyWa3H1YY69amr4nVgy61xfjys7xO7kviL5rfIEc2naf+ewFiOA+aEJD7y0JO3h2GoiUv4TDwEGzQ==", - "license": "MIT", "dependencies": { "fast-fifo": "^1.1.0", "queue-tick": "^1.0.1" @@ -9260,7 +9088,6 @@ "version": "1.3.0", "resolved": "https://registry.npmjs.org/string_decoder/-/string_decoder-1.3.0.tgz", "integrity": "sha512-hkRX8U1WjJFd8LsDJ2yQ/wWWxaopEsABU1XfkM8A+j0+85JAGppt16cr1Whg6KIbb4okU6Mql6BOj+uup/wKeA==", - "license": "MIT", "dependencies": { "safe-buffer": "~5.2.0" } @@ -9270,7 +9097,6 @@ "resolved": "https://registry.npmjs.org/string-length/-/string-length-4.0.2.tgz", "integrity": "sha512-+l6rNN5fYHNhZZy41RXsYptCjA2Igmq4EG7kZAYFQI1E1VTXarr6ZPXBg6eq7Y6eK4FEhY6AJlyuFIb/v/S0VQ==", "dev": true, - "license": "MIT", "dependencies": { "char-regex": "^1.0.2", "strip-ansi": "^6.0.0" @@ -9284,7 +9110,6 @@ "resolved": "https://registry.npmjs.org/string-width/-/string-width-4.2.3.tgz", "integrity": "sha512-wKyQRQpjJ0sIp62ErSZdGsjMJWsap5oRNihHhu6G7JVO/9jIB6UyevL+tXuOqrng8j/cxKTWyWUwvSTriiZz/g==", "devOptional": true, - "license": "MIT", "dependencies": { "emoji-regex": "^8.0.0", "is-fullwidth-code-point": "^3.0.0", @@ -9298,7 +9123,6 @@ "version": "1.2.8", "resolved": "https://registry.npmjs.org/string.prototype.trim/-/string.prototype.trim-1.2.8.tgz", "integrity": "sha512-lfjY4HcixfQXOfaqCvcBuOIapyaroTXhbkfJN3gcB1OtyupngWK4sEET9Knd0cXd28kTUqu/kHoV4HKSJdnjiQ==", - "license": "MIT", "dependencies": { "call-bind": "^1.0.2", "define-properties": "^1.2.0", @@ -9315,7 +9139,6 @@ "version": "1.0.7", "resolved": "https://registry.npmjs.org/string.prototype.trimend/-/string.prototype.trimend-1.0.7.tgz", "integrity": "sha512-Ni79DqeB72ZFq1uH/L6zJ+DKZTkOtPIHovb3YZHQViE+HDouuU4mBrLOLDn5Dde3RF8qw5qVETEjhu9locMLvA==", - "license": "MIT", "dependencies": { "call-bind": "^1.0.2", "define-properties": "^1.2.0", @@ -9329,7 +9152,6 @@ "version": "1.0.7", "resolved": "https://registry.npmjs.org/string.prototype.trimstart/-/string.prototype.trimstart-1.0.7.tgz", "integrity": "sha512-NGhtDFu3jCEm7B4Fy0DpLewdJQOZcQ0rGbwQ/+stjnrp2i+rlKeCvos9hOIeCmqwratM47OBxY7uFZzjxHXmrg==", - "license": "MIT", "dependencies": { "call-bind": "^1.0.2", "define-properties": "^1.2.0", @@ -9343,7 +9165,6 @@ "version": "6.0.1", "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-6.0.1.tgz", "integrity": "sha512-Y38VPSHcqkFrCpFnQ9vuSXmquuv5oXOKpGeT6aGrr3o3Gc9AlVa6JBfUSOCnbxGGZF+/0ooI7KrPuUSztUdU5A==", - "license": "MIT", "dependencies": { "ansi-regex": "^5.0.1" }, @@ -9356,7 +9177,6 @@ "resolved": "https://registry.npmjs.org/strip-bom/-/strip-bom-4.0.0.tgz", "integrity": "sha512-3xurFv5tEgii33Zi8Jtp55wEIILR9eh34FAW00PZf+JnSsTmV/ioewSgQl97JHvgjoRGwPShsWm+IdrxB35d0w==", "dev": true, - "license": "MIT", "engines": { "node": ">=8" } @@ -9366,7 +9186,6 @@ "resolved": "https://registry.npmjs.org/strip-final-newline/-/strip-final-newline-2.0.0.tgz", "integrity": "sha512-BrpvfNAE3dcvq7ll3xVumzjKjZQ5tI1sEUIKr3Uoks0XUl45St3FlatVqef9prk4jRDzhW6WZg+3bk93y6pLjA==", "dev": true, - "license": "MIT", "engines": { "node": ">=6" } @@ -9375,7 +9194,6 @@ "version": "3.1.1", "resolved": "https://registry.npmjs.org/strip-json-comments/-/strip-json-comments-3.1.1.tgz", "integrity": "sha512-6fPc+R4ihwqP6N/aIv2f1gMH8lOVtWQHoqC4yK6oSDVVocumAsfCqjkXnqiYMhmMwS/mEHLp7Vehlt3ql6lEig==", - "license": "MIT", "engines": { "node": ">=8" }, @@ -9387,7 +9205,6 @@ "version": "7.2.0", "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-7.2.0.tgz", "integrity": "sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw==", - "license": "MIT", "dependencies": { "has-flag": "^4.0.0" }, @@ -9399,7 +9216,6 @@ "version": "1.0.0", "resolved": "https://registry.npmjs.org/supports-preserve-symlinks-flag/-/supports-preserve-symlinks-flag-1.0.0.tgz", "integrity": "sha512-ot0WnXS9fgdkgIcePe6RHNk1WA8+muPa6cSjeR3V8K27q9BB1rTE3R1p7Hv0z1ZyAc8s6Vvv8DIyWf681MAt0w==", - "license": "MIT", "engines": { "node": ">= 0.4" }, @@ -9410,12 +9226,13 @@ "node_modules/symbol-tree": { "version": "3.2.4", "resolved": "https://registry.npmjs.org/symbol-tree/-/symbol-tree-3.2.4.tgz", - "integrity": "sha512-9QNk5KwDF+Bvz+PyObkmSYjI5ksVUYtjW7AU22r2NKcfLJcXp96hkDWU3+XndOsUb+AQ9QhfzfCT2O+CNWT5Tw==", - "license": "MIT" + "integrity": "sha512-9QNk5KwDF+Bvz+PyObkmSYjI5ksVUYtjW7AU22r2NKcfLJcXp96hkDWU3+XndOsUb+AQ9QhfzfCT2O+CNWT5Tw==" }, "node_modules/table-layout": { "version": "3.0.2", - "license": "MIT", + "resolved": "https://registry.npmjs.org/table-layout/-/table-layout-3.0.2.tgz", + "integrity": "sha512-rpyNZYRw+/C+dYkcQ3Pr+rLxW4CfHpXjPDnG7lYhdRoUcZTUt+KEsX+94RGp/aVp/MQU35JCITv2T/beY4m+hw==", + "peer": true, "dependencies": { "@75lb/deep-merge": "^1.1.1", "array-back": "^6.2.2", @@ -9434,14 +9251,18 @@ }, "node_modules/table-layout/node_modules/array-back": { "version": "6.2.2", - "license": "MIT", + "resolved": "https://registry.npmjs.org/array-back/-/array-back-6.2.2.tgz", + "integrity": "sha512-gUAZ7HPyb4SJczXAMUXMGAvI976JoK3qEx9v1FTmeYuJj0IBiaKttG1ydtGKdkfqWkIkouke7nG8ufGy77+Cvw==", + "peer": true, "engines": { "node": ">=12.17" } }, "node_modules/table-layout/node_modules/typical": { "version": "7.1.1", - "license": "MIT", + "resolved": "https://registry.npmjs.org/typical/-/typical-7.1.1.tgz", + "integrity": "sha512-T+tKVNs6Wu7IWiAce5BgMd7OZfNYUndHwc5MknN+UHOudi7sGZzuHdCadllRuqJ3fPtgFtIH9+lt9qRv6lmpfA==", + "peer": true, "engines": { "node": ">=12.17" } @@ -9450,7 +9271,6 @@ "version": "6.2.0", "resolved": "https://registry.npmjs.org/tar/-/tar-6.2.0.tgz", "integrity": "sha512-/Wo7DcT0u5HUV486xg675HtjNd3BXZ6xDbzsCUZPt5iw8bTQ63bP0Raut3mvro9u+CUyq7YQd8Cx55fsZXxqLQ==", - "license": "ISC", "dependencies": { "chownr": "^2.0.0", "fs-minipass": "^2.0.0", @@ -9467,7 +9287,6 @@ "version": "3.0.5", "resolved": "https://registry.npmjs.org/tar-fs/-/tar-fs-3.0.5.tgz", "integrity": "sha512-JOgGAmZyMgbqpLwct7ZV8VzkEB6pxXFBVErLtb+XCOqzc6w1xiWKI9GVd6bwk68EX7eJ4DWmfXVmq8K2ziZTGg==", - "license": "MIT", "dependencies": { "pump": "^3.0.0", "tar-stream": "^3.1.5" @@ -9481,7 +9300,6 @@ "version": "3.1.7", "resolved": "https://registry.npmjs.org/tar-stream/-/tar-stream-3.1.7.tgz", "integrity": "sha512-qJj60CXt7IU1Ffyc3NJMjh6EkuCFej46zUqJ4J7pqYlThyd9bO0XBTmcOIhSzZJVWfsLks0+nle/j538YAW9RQ==", - "license": "MIT", "dependencies": { "b4a": "^1.6.4", "fast-fifo": "^1.2.0", @@ -9492,7 +9310,6 @@ "version": "5.0.0", "resolved": "https://registry.npmjs.org/minipass/-/minipass-5.0.0.tgz", "integrity": "sha512-3FnjYuehv9k6ovOEbyOswadCDPX1piCfhV8ncmYtHOjuPwylVWsghTLo7rabjC3Rx5xD4HDx8Wm1xnMF7S5qFQ==", - "license": "ISC", "engines": { "node": ">=8" } @@ -9500,15 +9317,13 @@ "node_modules/tar/node_modules/yallist": { "version": "4.0.0", "resolved": "https://registry.npmjs.org/yallist/-/yallist-4.0.0.tgz", - "integrity": "sha512-3wdGidZyq5PB084XLES5TpOSRA3wjXAlIWMhum2kRcv/41Sn2emQ0dycQW4uZXLejwKvg6EsvbdlVL+FYEct7A==", - "license": "ISC" + "integrity": "sha512-3wdGidZyq5PB084XLES5TpOSRA3wjXAlIWMhum2kRcv/41Sn2emQ0dycQW4uZXLejwKvg6EsvbdlVL+FYEct7A==" }, "node_modules/test-exclude": { "version": "6.0.0", "resolved": "https://registry.npmjs.org/test-exclude/-/test-exclude-6.0.0.tgz", "integrity": "sha512-cAGWPIyOHU6zlmg88jwm7VRyXnMN7iV68OGAbYDk/Mh/xC/pzVPlQtY6ngoIH/5/tciuhGfvESU8GrHrcxD56w==", "dev": true, - "license": "ISC", "dependencies": { "@istanbuljs/schema": "^0.1.2", "glob": "^7.1.4", @@ -9520,22 +9335,21 @@ }, "node_modules/text-table": { "version": "0.2.0", - "license": "MIT", + "resolved": "https://registry.npmjs.org/text-table/-/text-table-0.2.0.tgz", + "integrity": "sha512-N+8UisAXDGk8PFXP4HAzVR9nbfmVJ3zYLAWiTIoqC5v5isinhr+r5uaO8+7r3BMfuNIufIsA7RdpVgacC2cSpw==", "peer": true }, "node_modules/tmpl": { "version": "1.0.5", "resolved": "https://registry.npmjs.org/tmpl/-/tmpl-1.0.5.tgz", "integrity": "sha512-3f0uOEAQwIqGuWW2MVzYg8fV/QNnc/IpuJNG837rLuczAaLVHslWHZQj4IGiEl5Hs3kkbhwL9Ab7Hrsmuj+Smw==", - "dev": true, - "license": "BSD-3-Clause" + "dev": true }, "node_modules/to-fast-properties": { "version": "2.0.0", "resolved": "https://registry.npmjs.org/to-fast-properties/-/to-fast-properties-2.0.0.tgz", "integrity": "sha512-/OaKK0xYrs3DmxRYqL/yDc+FxFUVYhDlXMhRmv3z915w2HF1tnN1omB354j8VUGO/hbRzyD6Y3sA7v7GS/ceog==", "dev": true, - "license": "MIT", "engines": { "node": ">=4" } @@ -9545,7 +9359,6 @@ "resolved": "https://registry.npmjs.org/to-regex-range/-/to-regex-range-5.0.1.tgz", "integrity": "sha512-65P7iz6X5yEr1cwcgvQxbbIw7Uk3gOy5dIdtZ4rDveLqhrdJP+Li/Hx6tyK0NEb+2GCyneCMJiGqrADCSNk8sQ==", "dev": true, - "license": "MIT", "dependencies": { "is-number": "^7.0.0" }, @@ -9557,7 +9370,6 @@ "version": "4.1.3", "resolved": "https://registry.npmjs.org/tough-cookie/-/tough-cookie-4.1.3.tgz", "integrity": "sha512-aX/y5pVRkfRnfmuX+OdbSdXvPe6ieKX/G2s7e98f4poJHnqH3281gDPm/metm6E/WRamfx7WC4HUqkWHfQHprw==", - "license": "BSD-3-Clause", "dependencies": { "psl": "^1.1.33", "punycode": "^2.1.1", @@ -9569,21 +9381,26 @@ } }, "node_modules/tr46": { - "version": "0.0.3", - "resolved": "https://registry.npmjs.org/tr46/-/tr46-0.0.3.tgz", - "integrity": "sha512-N3WMsuqV66lT30CrXNbEjx4GEwlow3v6rr4mCcv6prnfwhS01rkgyFdjPNBYd9br7LpXV1+Emh01fHnq2Gdgrw==", - "license": "MIT" + "version": "5.0.0", + "resolved": "https://registry.npmjs.org/tr46/-/tr46-5.0.0.tgz", + "integrity": "sha512-tk2G5R2KRwBd+ZN0zaEXpmzdKyOYksXwywulIX95MBODjSzMIuQnQ3m8JxgbhnL1LeVo7lqQKsYa1O3Htl7K5g==", + "dependencies": { + "punycode": "^2.3.1" + }, + "engines": { + "node": ">=18" + } }, "node_modules/tree-sitter-wasms": { - "version": "0.1.6", - "license": "Unlicense" + "version": "0.1.7", + "resolved": "https://registry.npmjs.org/tree-sitter-wasms/-/tree-sitter-wasms-0.1.7.tgz", + "integrity": "sha512-/EnmSDDqEnSnIuCqVhSOc14T8r792LmiztqlZMFSRg+4ACrgUWNLvEr2AUP1K76XCJrvuH8liSWfkdQpK41hIA==" }, "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==", "dev": true, - "license": "MIT", "dependencies": { "bs-logger": "0.x", "fast-json-stable-stringify": "2.x", @@ -9627,7 +9444,6 @@ "resolved": "https://registry.npmjs.org/lru-cache/-/lru-cache-6.0.0.tgz", "integrity": "sha512-Jo6dJ04CmSjuznwJSS3pUeWmd/H0ffTlkXXgwZi+eq1UCmqQwCh+eLsYOYCwY991i2Fah4h1BEMCx4qThGbsiA==", "dev": true, - "license": "ISC", "dependencies": { "yallist": "^4.0.0" }, @@ -9640,7 +9456,6 @@ "resolved": "https://registry.npmjs.org/semver/-/semver-7.6.0.tgz", "integrity": "sha512-EnwXhrlwXMk9gKu5/flx5sv/an57AkRplG3hTK68W7FRDN+k+OWBj65M7719OkA82XLBxrcX0KSHj+X5COhOVg==", "dev": true, - "license": "ISC", "dependencies": { "lru-cache": "^6.0.0" }, @@ -9655,12 +9470,12 @@ "version": "4.0.0", "resolved": "https://registry.npmjs.org/yallist/-/yallist-4.0.0.tgz", "integrity": "sha512-3wdGidZyq5PB084XLES5TpOSRA3wjXAlIWMhum2kRcv/41Sn2emQ0dycQW4uZXLejwKvg6EsvbdlVL+FYEct7A==", - "dev": true, - "license": "ISC" + "dev": true }, "node_modules/tsconfig-paths": { "version": "3.15.0", - "license": "MIT", + "resolved": "https://registry.npmjs.org/tsconfig-paths/-/tsconfig-paths-3.15.0.tgz", + "integrity": "sha512-2Ac2RgzDe/cn48GvOe3M+o82pEFewD3UPbyoUHHdKasHwJKjds4fLXWf/Ux5kATBKN20oaFGu+jbElp1pos0mg==", "peer": true, "dependencies": { "@types/json5": "^0.0.29", @@ -9671,7 +9486,8 @@ }, "node_modules/tsconfig-paths/node_modules/json5": { "version": "1.0.2", - "license": "MIT", + "resolved": "https://registry.npmjs.org/json5/-/json5-1.0.2.tgz", + "integrity": "sha512-g1MWMLBiz8FKi1e4w0UyVL3w+iJceWAFBAaBnnGKOpNa5f8TLktkbre1+s6oICydWAm+HRUGTmI+//xv2hvXYA==", "peer": true, "dependencies": { "minimist": "^1.2.0" @@ -9682,7 +9498,8 @@ }, "node_modules/tsconfig-paths/node_modules/strip-bom": { "version": "3.0.0", - "license": "MIT", + "resolved": "https://registry.npmjs.org/strip-bom/-/strip-bom-3.0.0.tgz", + "integrity": "sha512-vavAMRXOgBVNF6nyEEmL3DBK19iRpDcoIwW+swQ+CbGiu7lju6t+JklA1MHweoWtadgt4ISVUsXLyDq34ddcwA==", "peer": true, "engines": { "node": ">=4" @@ -9690,13 +9507,14 @@ }, "node_modules/tslib": { "version": "2.6.2", - "license": "0BSD" + "resolved": "https://registry.npmjs.org/tslib/-/tslib-2.6.2.tgz", + "integrity": "sha512-AEYxH93jGFPn/a2iVAwW87VuUIkR1FVUKB77NwMF7nBTDkDrrT/Hpt/IrCJ0QXhW27jTBDcf5ZY7w6RiqTMw2Q==", + "peer": true }, "node_modules/tunnel-agent": { "version": "0.6.0", "resolved": "https://registry.npmjs.org/tunnel-agent/-/tunnel-agent-0.6.0.tgz", "integrity": "sha512-McnNiV1l8RYeY8tBgEpuodCC1mLUdbSN+CYBL7kJsJNInOP8UjDDEwdk6Mw60vdLLrr5NHKZhMAOSrR2NZuQ+w==", - "license": "Apache-2.0", "dependencies": { "safe-buffer": "^5.0.1" }, @@ -9707,12 +9525,12 @@ "node_modules/tweetnacl": { "version": "0.14.5", "resolved": "https://registry.npmjs.org/tweetnacl/-/tweetnacl-0.14.5.tgz", - "integrity": "sha512-KXXFFdAbFXY4geFIwoyNK+f5Z1b7swfXABfL7HXCmoIWMKU3dmS26672A4EeQtDzLKy7SXmfBu51JolvEKwtGA==", - "license": "Unlicense" + "integrity": "sha512-KXXFFdAbFXY4geFIwoyNK+f5Z1b7swfXABfL7HXCmoIWMKU3dmS26672A4EeQtDzLKy7SXmfBu51JolvEKwtGA==" }, "node_modules/type-check": { "version": "0.4.0", - "license": "MIT", + "resolved": "https://registry.npmjs.org/type-check/-/type-check-0.4.0.tgz", + "integrity": "sha512-XleUoc9uwGXqjWwXaUTZAmzMcFZ5858QA2vvx1Ur5xIcixXIP+8LnFDgRplU30us6teqdlskFfu+ae4K79Ooew==", "peer": true, "dependencies": { "prelude-ls": "^1.2.1" @@ -9726,16 +9544,26 @@ "resolved": "https://registry.npmjs.org/type-detect/-/type-detect-4.0.8.tgz", "integrity": "sha512-0fr/mIH1dlO+x7TlcMy+bIDqKPsw/70tVyeHW787goQjhmqaZe10uwLujubK9q9Lg6Fiho1KUKDYz0Z7k7g5/g==", "dev": true, - "license": "MIT", "engines": { "node": ">=4" } }, + "node_modules/type-fest": { + "version": "0.20.2", + "resolved": "https://registry.npmjs.org/type-fest/-/type-fest-0.20.2.tgz", + "integrity": "sha512-Ne+eE4r0/iWnpAxD852z3A+N0Bt5RN//NjJwRd2VFHEmrywxf5vsZlh4R6lixl6B+wz/8d+maTSAkN1FIkI3LQ==", + "peer": true, + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, "node_modules/typed-array-buffer": { "version": "1.0.2", "resolved": "https://registry.npmjs.org/typed-array-buffer/-/typed-array-buffer-1.0.2.tgz", "integrity": "sha512-gEymJYKZtKXzzBzM4jqa9w6Q1Jjm7x2d+sh19AdsD4wqnMPDYyvwpsIc2Q/835kHuo3BEQ7CjelGhfTsoBb2MQ==", - "license": "MIT", "dependencies": { "call-bind": "^1.0.7", "es-errors": "^1.3.0", @@ -9749,7 +9577,6 @@ "version": "1.0.1", "resolved": "https://registry.npmjs.org/typed-array-byte-length/-/typed-array-byte-length-1.0.1.tgz", "integrity": "sha512-3iMJ9q0ao7WE9tWcaYKIptkNBuOIcZCCT0d4MRvuuH88fEoEH62IuQe0OtraD3ebQEoTRk8XCBoknUNc1Y67pw==", - "license": "MIT", "dependencies": { "call-bind": "^1.0.7", "for-each": "^0.3.3", @@ -9768,7 +9595,6 @@ "version": "1.0.2", "resolved": "https://registry.npmjs.org/typed-array-byte-offset/-/typed-array-byte-offset-1.0.2.tgz", "integrity": "sha512-Ous0vodHa56FviZucS2E63zkgtgrACj7omjwd/8lTEMEPFFyjfixMZ1ZXenpgCFBBt4EC1J2XsyVS2gkG0eTFA==", - "license": "MIT", "dependencies": { "available-typed-arrays": "^1.0.7", "call-bind": "^1.0.7", @@ -9788,7 +9614,6 @@ "version": "1.0.5", "resolved": "https://registry.npmjs.org/typed-array-length/-/typed-array-length-1.0.5.tgz", "integrity": "sha512-yMi0PlwuznKHxKmcpoOdeLwxBoVPkqZxd7q2FgMkmD3bNwvF5VW0+UlUQ1k1vmktTu4Yu13Q0RIxEP8+B+wloA==", - "license": "MIT", "dependencies": { "call-bind": "^1.0.7", "for-each": "^0.3.3", @@ -9805,9 +9630,10 @@ } }, "node_modules/typescript": { - "version": "5.3.3", + "version": "5.4.2", + "resolved": "https://registry.npmjs.org/typescript/-/typescript-5.4.2.tgz", + "integrity": "sha512-+2/g0Fds1ERlP6JsakQQDXjZdZMM+rqpamFZJEKh4kwTIn3iDkgKtby0CeNd5ATNZ4Ry1ax15TMx0W2V+miizQ==", "dev": true, - "license": "Apache-2.0", "peer": true, "bin": { "tsc": "bin/tsc", @@ -9819,7 +9645,9 @@ }, "node_modules/typical": { "version": "4.0.0", - "license": "MIT", + "resolved": "https://registry.npmjs.org/typical/-/typical-4.0.0.tgz", + "integrity": "sha512-VAH4IvQ7BDFYglMd7BPRDfLgxZZX4O4TFcRDA6EN5X7erNJJq+McIEp8np9aVtxrCJ6qx4GTYVfOWNjcqwZgRw==", + "peer": true, "engines": { "node": ">=8" } @@ -9828,7 +9656,6 @@ "version": "3.17.4", "resolved": "https://registry.npmjs.org/uglify-js/-/uglify-js-3.17.4.tgz", "integrity": "sha512-T9q82TJI9e/C1TAxYvfb16xO120tMVFZrGA3f9/P4424DNu6ypK103y0GPFVa17yotwSyZW5iYXgjYHkGrJW/g==", - "license": "BSD-2-Clause", "optional": true, "bin": { "uglifyjs": "bin/uglifyjs" @@ -9841,7 +9668,6 @@ "version": "1.0.2", "resolved": "https://registry.npmjs.org/unbox-primitive/-/unbox-primitive-1.0.2.tgz", "integrity": "sha512-61pPlCD9h51VoreyJ0BReideM3MDKMKnh6+V9L08331ipq6Q8OFXZYiqP6n/tbHx4s5I9uRhcye6BrbkizkBDw==", - "license": "MIT", "dependencies": { "call-bind": "^1.0.2", "has-bigints": "^1.0.2", @@ -9855,14 +9681,12 @@ "node_modules/undici-types": { "version": "5.26.5", "resolved": "https://registry.npmjs.org/undici-types/-/undici-types-5.26.5.tgz", - "integrity": "sha512-JlCMO+ehdEIKqlFxk6IfVoAUVmgz7cU7zD/h9XZ0qzeosSHmUJVOzSQvvYSYWXkFXC+IfLKSIffhv0sVZup6pA==", - "license": "MIT" + "integrity": "sha512-JlCMO+ehdEIKqlFxk6IfVoAUVmgz7cU7zD/h9XZ0qzeosSHmUJVOzSQvvYSYWXkFXC+IfLKSIffhv0sVZup6pA==" }, "node_modules/unique-filename": { "version": "1.1.1", "resolved": "https://registry.npmjs.org/unique-filename/-/unique-filename-1.1.1.tgz", "integrity": "sha512-Vmp0jIp2ln35UTXuryvjzkjGdRyf9b2lTXuSYUiPmzRcl3FDtYqAwOnTJkAngD9SWhnoJzDbTKwaOrZ+STtxNQ==", - "license": "ISC", "optional": true, "dependencies": { "unique-slug": "^2.0.0" @@ -9872,7 +9696,6 @@ "version": "2.0.2", "resolved": "https://registry.npmjs.org/unique-slug/-/unique-slug-2.0.2.tgz", "integrity": "sha512-zoWr9ObaxALD3DOPfjPSqxt4fnZiWblxHIgeWqW8x7UqDzEtHEQLzji2cuJYQFCU6KmoJikOYAZlrTHHebjx2w==", - "license": "ISC", "optional": true, "dependencies": { "imurmurhash": "^0.1.4" @@ -9881,14 +9704,12 @@ "node_modules/universal-user-agent": { "version": "6.0.1", "resolved": "https://registry.npmjs.org/universal-user-agent/-/universal-user-agent-6.0.1.tgz", - "integrity": "sha512-yCzhz6FN2wU1NiiQRogkTQszlQSlpWaw8SvVegAc+bDxbzHgh1vX8uIe8OYyMH6DwH+sdTJsgMl36+mSMdRJIQ==", - "license": "ISC" + "integrity": "sha512-yCzhz6FN2wU1NiiQRogkTQszlQSlpWaw8SvVegAc+bDxbzHgh1vX8uIe8OYyMH6DwH+sdTJsgMl36+mSMdRJIQ==" }, "node_modules/universalify": { "version": "0.2.0", "resolved": "https://registry.npmjs.org/universalify/-/universalify-0.2.0.tgz", "integrity": "sha512-CJ1QgKmNg3CwvAv/kOFmtnEN05f0D/cn9QntgNOQlQF9dgvVTHj3t+8JPdjqawCHk7V/KA+fbUqzZ9XWhcqPUg==", - "license": "MIT", "engines": { "node": ">= 4.0.0" } @@ -9912,7 +9733,6 @@ "url": "https://github.com/sponsors/ai" } ], - "license": "MIT", "dependencies": { "escalade": "^3.1.1", "picocolors": "^1.0.0" @@ -9928,7 +9748,6 @@ "version": "4.4.1", "resolved": "https://registry.npmjs.org/uri-js/-/uri-js-4.4.1.tgz", "integrity": "sha512-7rKUyy33Q1yc98pQ1DAmLtwX109F7TIfWlW1Ydo8Wl1ii1SeHieeh0HHfPeL2fMXK6z0s8ecKs9frCuLJvndBg==", - "license": "BSD-2-Clause", "dependencies": { "punycode": "^2.1.0" } @@ -9937,7 +9756,6 @@ "version": "1.5.10", "resolved": "https://registry.npmjs.org/url-parse/-/url-parse-1.5.10.tgz", "integrity": "sha512-WypcfiRhfeUP9vvF0j6rw0J3hrWrw6iZv3+22h6iRMJ/8z1Tj6XfLP4DsUix5MhMPnXpiHDoKyoZ/bdCkwBCiQ==", - "license": "MIT", "dependencies": { "querystringify": "^2.1.1", "requires-port": "^1.0.0" @@ -9946,8 +9764,7 @@ "node_modules/util-deprecate": { "version": "1.0.2", "resolved": "https://registry.npmjs.org/util-deprecate/-/util-deprecate-1.0.2.tgz", - "integrity": "sha512-EPD5q1uXyFxJpCrLnCc1nHnq3gOa6DZBocAIiI2TaSCA7VCJ1UJDMagCzIkXNsUYfD1daK//LTEQ8xiIbrHtcw==", - "license": "MIT" + "integrity": "sha512-EPD5q1uXyFxJpCrLnCc1nHnq3gOa6DZBocAIiI2TaSCA7VCJ1UJDMagCzIkXNsUYfD1daK//LTEQ8xiIbrHtcw==" }, "node_modules/uuid": { "version": "9.0.1", @@ -9957,7 +9774,6 @@ "https://github.com/sponsors/broofa", "https://github.com/sponsors/ctavan" ], - "license": "MIT", "bin": { "uuid": "dist/bin/uuid" } @@ -9967,7 +9783,6 @@ "resolved": "https://registry.npmjs.org/v8-to-istanbul/-/v8-to-istanbul-9.2.0.tgz", "integrity": "sha512-/EH/sDgxU2eGxajKdwLCDmQ4FWq+kpi3uCmBGpw1xJtnAxEjlD8j8PEiGWpCIMIs3ciNAgH0d3TTJiUkYzyZjA==", "dev": true, - "license": "ISC", "dependencies": { "@jridgewell/trace-mapping": "^0.3.12", "@types/istanbul-lib-coverage": "^2.0.1", @@ -9978,29 +9793,32 @@ } }, "node_modules/vectordb": { - "version": "0.4.11", + "version": "0.4.12", + "resolved": "https://registry.npmjs.org/vectordb/-/vectordb-0.4.12.tgz", + "integrity": "sha512-H2mFwZ87d3BcuX4yGx5RoW06amRZQ3W5u/FRTNc86rwVINuEEa+Ivsqng1i8hURHXoTDbF/0Y9qwCshySkeznQ==", "cpu": [ "x64", "arm64" ], - "license": "Apache-2.0", "os": [ "darwin", "linux", "win32" ], "dependencies": { - "@apache-arrow/ts": "^14.0.2", "@neon-rs/load": "^0.0.74", - "apache-arrow": "^14.0.2", "axios": "^1.4.0" }, "optionalDependencies": { - "@lancedb/vectordb-darwin-arm64": "0.4.11", - "@lancedb/vectordb-darwin-x64": "0.4.11", - "@lancedb/vectordb-linux-arm64-gnu": "0.4.11", - "@lancedb/vectordb-linux-x64-gnu": "0.4.11", - "@lancedb/vectordb-win32-x64-msvc": "0.4.11" + "@lancedb/vectordb-darwin-arm64": "0.4.12", + "@lancedb/vectordb-darwin-x64": "0.4.12", + "@lancedb/vectordb-linux-arm64-gnu": "0.4.12", + "@lancedb/vectordb-linux-x64-gnu": "0.4.12", + "@lancedb/vectordb-win32-x64-msvc": "0.4.12" + }, + "peerDependencies": { + "@apache-arrow/ts": "^14.0.2", + "apache-arrow": "^14.0.2" } }, "node_modules/verror": { @@ -10010,7 +9828,6 @@ "engines": [ "node >=0.6.0" ], - "license": "MIT", "dependencies": { "assert-plus": "^1.0.0", "core-util-is": "1.0.2", @@ -10021,7 +9838,6 @@ "version": "5.0.0", "resolved": "https://registry.npmjs.org/w3c-xmlserializer/-/w3c-xmlserializer-5.0.0.tgz", "integrity": "sha512-o8qghlI8NZHU1lLPrpi2+Uq7abh4GGPpYANlalzWxyWteJOCsr/P+oPBA49TOLu5FTZO4d3F9MnWJfiMo4BkmA==", - "license": "MIT", "dependencies": { "xml-name-validator": "^5.0.0" }, @@ -10034,7 +9850,6 @@ "resolved": "https://registry.npmjs.org/walker/-/walker-1.0.8.tgz", "integrity": "sha512-ts/8E8l5b7kY0vlWLewOkDXMmPdLcVV4GmOQLyxuSswIJsweeFZtAsMF7k1Nszz+TYBQrlYRmzOnr398y1JemQ==", "dev": true, - "license": "Apache-2.0", "dependencies": { "makeerror": "1.0.12" } @@ -10043,7 +9858,6 @@ "version": "3.3.3", "resolved": "https://registry.npmjs.org/web-streams-polyfill/-/web-streams-polyfill-3.3.3.tgz", "integrity": "sha512-d2JWLCivmZYTSIoge9MsgFCZrt571BikcWGYkjC1khllbTeDlGqZ2D8vD8E/lJa8WGWbb7Plm8/XJYV7IJHZZw==", - "license": "MIT", "engines": { "node": ">= 8" } @@ -10051,20 +9865,20 @@ "node_modules/web-tree-sitter": { "version": "0.21.0", "resolved": "https://registry.npmjs.org/web-tree-sitter/-/web-tree-sitter-0.21.0.tgz", - "integrity": "sha512-iJ+QJ6ikN9D9cG7Kh6q3KtAstYFUQbYZ8OjuPEJYWfj2kLrmp5I3C2n6WjE1Y3jvj7nJbkcrJytJGWUEhCxn+g==", - "license": "MIT" + "integrity": "sha512-iJ+QJ6ikN9D9cG7Kh6q3KtAstYFUQbYZ8OjuPEJYWfj2kLrmp5I3C2n6WjE1Y3jvj7nJbkcrJytJGWUEhCxn+g==" }, "node_modules/webidl-conversions": { - "version": "3.0.1", - "resolved": "https://registry.npmjs.org/webidl-conversions/-/webidl-conversions-3.0.1.tgz", - "integrity": "sha512-2JAn3z8AR6rjK8Sm8orRC0h/bcl/DqL7tRPdGZ4I1CjdF+EaMLmYxBHyXuKL849eucPFhvBoxMsflfOb8kxaeQ==", - "license": "BSD-2-Clause" + "version": "7.0.0", + "resolved": "https://registry.npmjs.org/webidl-conversions/-/webidl-conversions-7.0.0.tgz", + "integrity": "sha512-VwddBukDzu71offAQR975unBIGqfKZpM+8ZX6ySk8nYhVoo5CYaZyzt3YBvYtRtO+aoGlqxPg/B87NGVZ/fu6g==", + "engines": { + "node": ">=12" + } }, "node_modules/whatwg-encoding": { "version": "3.1.1", "resolved": "https://registry.npmjs.org/whatwg-encoding/-/whatwg-encoding-3.1.1.tgz", "integrity": "sha512-6qN4hJdMwfYBtE3YBTTHhoeuUrDBPZmbQaxWAqSALV/MeEnR5z1xd8UKud2RAkFoPkmB+hli1TZSnyi84xz1vQ==", - "license": "MIT", "dependencies": { "iconv-lite": "0.6.3" }, @@ -10075,33 +9889,32 @@ "node_modules/whatwg-fetch": { "version": "3.6.20", "resolved": "https://registry.npmjs.org/whatwg-fetch/-/whatwg-fetch-3.6.20.tgz", - "integrity": "sha512-EqhiFU6daOA8kpjOWTL0olhVOF3i7OrFzSYiGsEMB8GcXS+RrzauAERX65xMeNWVqxA6HXH2m69Z9LaKKdisfg==", - "license": "MIT" + "integrity": "sha512-EqhiFU6daOA8kpjOWTL0olhVOF3i7OrFzSYiGsEMB8GcXS+RrzauAERX65xMeNWVqxA6HXH2m69Z9LaKKdisfg==" }, "node_modules/whatwg-mimetype": { "version": "4.0.0", "resolved": "https://registry.npmjs.org/whatwg-mimetype/-/whatwg-mimetype-4.0.0.tgz", "integrity": "sha512-QaKxh0eNIi2mE9p2vEdzfagOKHCcj1pJ56EEHGQOVxp8r9/iszLUUV7v89x9O1p/T+NlTM5W7jW6+cz4Fq1YVg==", - "license": "MIT", "engines": { "node": ">=18" } }, "node_modules/whatwg-url": { - "version": "5.0.0", - "resolved": "https://registry.npmjs.org/whatwg-url/-/whatwg-url-5.0.0.tgz", - "integrity": "sha512-saE57nupxk6v3HY35+jzBwYa0rKSy0XR8JSxZPwgLr7ys0IBzhGviA1/TUGJLmSVqs8pb9AnvICXEuOHLprYTw==", - "license": "MIT", + "version": "14.0.0", + "resolved": "https://registry.npmjs.org/whatwg-url/-/whatwg-url-14.0.0.tgz", + "integrity": "sha512-1lfMEm2IEr7RIV+f4lUNPOqfFL+pO+Xw3fJSqmjX9AbXcXcYOkCe1P6+9VBZB6n94af16NfZf+sSk0JCBZC9aw==", "dependencies": { - "tr46": "~0.0.3", - "webidl-conversions": "^3.0.0" + "tr46": "^5.0.0", + "webidl-conversions": "^7.0.0" + }, + "engines": { + "node": ">=18" } }, "node_modules/which": { "version": "2.0.2", "resolved": "https://registry.npmjs.org/which/-/which-2.0.2.tgz", "integrity": "sha512-BLI3Tl1TW3Pvl70l3yq3Y64i+awpwXqsGBYWkkqMtnbXgrMD+yj7rhW0kuEDxzJaYXGjEW5ogapKNMEKNMjibA==", - "license": "ISC", "dependencies": { "isexe": "^2.0.0" }, @@ -10116,7 +9929,6 @@ "version": "1.0.2", "resolved": "https://registry.npmjs.org/which-boxed-primitive/-/which-boxed-primitive-1.0.2.tgz", "integrity": "sha512-bwZdv0AKLpplFY2KZRX6TvyuN7ojjr7lwkg6ml0roIy9YeuSr7JS372qlNW18UQYzgYK9ziGcerWqZOmEn9VNg==", - "license": "MIT", "dependencies": { "is-bigint": "^1.0.1", "is-boolean-object": "^1.1.0", @@ -10132,7 +9944,6 @@ "version": "1.1.14", "resolved": "https://registry.npmjs.org/which-typed-array/-/which-typed-array-1.1.14.tgz", "integrity": "sha512-VnXFiIW8yNn9kIHN88xvZ4yOWchftKDsRJ8fEPacX/wl1lOvBrhsJ/OeJCXq7B0AaijRuqgzSKalJoPk+D8MPg==", - "license": "MIT", "dependencies": { "available-typed-arrays": "^1.0.6", "call-bind": "^1.0.5", @@ -10151,7 +9962,6 @@ "version": "1.1.5", "resolved": "https://registry.npmjs.org/wide-align/-/wide-align-1.1.5.tgz", "integrity": "sha512-eDMORYaPNZ4sQIuuYPDHdQvf4gyCF9rEEV/yPxGfwPkRodwEgiMUUXTx/dex+Me0wxx53S+NgUHaP7y3MGlDmg==", - "license": "ISC", "optional": true, "dependencies": { "string-width": "^1.0.2 || 2 || 3 || 4" @@ -10160,12 +9970,13 @@ "node_modules/wordwrap": { "version": "1.0.0", "resolved": "https://registry.npmjs.org/wordwrap/-/wordwrap-1.0.0.tgz", - "integrity": "sha512-gvVzJFlPycKc5dZN4yPkP8w7Dc37BtP1yczEneOb4uq34pXZcvrtRTmWV8W+Ume+XCxKgbjM+nevkyFPMybd4Q==", - "license": "MIT" + "integrity": "sha512-gvVzJFlPycKc5dZN4yPkP8w7Dc37BtP1yczEneOb4uq34pXZcvrtRTmWV8W+Ume+XCxKgbjM+nevkyFPMybd4Q==" }, "node_modules/wordwrapjs": { "version": "5.1.0", - "license": "MIT", + "resolved": "https://registry.npmjs.org/wordwrapjs/-/wordwrapjs-5.1.0.tgz", + "integrity": "sha512-JNjcULU2e4KJwUNv6CHgI46UvDGitb6dGryHajXTDiLgg1/RiGoPSDw4kZfYnwGtEXf2ZMeIewDQgFGzkCB2Sg==", + "peer": true, "engines": { "node": ">=12.17" } @@ -10175,7 +9986,6 @@ "resolved": "https://registry.npmjs.org/wrap-ansi/-/wrap-ansi-7.0.0.tgz", "integrity": "sha512-YVGIj2kamLSTxw6NsZjoBxfSwsn0ycdesmc4p+Q21c5zPuZ1pl+NfxVdxPtdHvmNVOQ6XSYG4AUtyt/Fi7D16Q==", "dev": true, - "license": "MIT", "dependencies": { "ansi-styles": "^4.0.0", "string-width": "^4.1.0", @@ -10191,15 +10001,13 @@ "node_modules/wrappy": { "version": "1.0.2", "resolved": "https://registry.npmjs.org/wrappy/-/wrappy-1.0.2.tgz", - "integrity": "sha512-l4Sp/DRseor9wL6EvV2+TuQn63dMkPjZ/sp9XkghTEbV9KlPS1xUsZ3u7/IQO4wxtcFB4bgpQPRcR3QCvezPcQ==", - "license": "ISC" + "integrity": "sha512-l4Sp/DRseor9wL6EvV2+TuQn63dMkPjZ/sp9XkghTEbV9KlPS1xUsZ3u7/IQO4wxtcFB4bgpQPRcR3QCvezPcQ==" }, "node_modules/write-file-atomic": { "version": "4.0.2", "resolved": "https://registry.npmjs.org/write-file-atomic/-/write-file-atomic-4.0.2.tgz", "integrity": "sha512-7KxauUdBmSdWnmpaGFg+ppNjKF8uNLry8LyzjauQDOVONfFLNKrKvQOxZ/VuTIcS/gge/YNahf5RIIQWTSarlg==", "dev": true, - "license": "ISC", "dependencies": { "imurmurhash": "^0.1.4", "signal-exit": "^3.0.7" @@ -10209,16 +10017,15 @@ } }, "node_modules/ws": { - "version": "8.11.0", - "resolved": "https://registry.npmjs.org/ws/-/ws-8.11.0.tgz", - "integrity": "sha512-HPG3wQd9sNQoT9xHyNCXoDUa+Xw/VevmY9FoHyQ+g+rrMn4j6FB4np7Z0OhdTgjx6MgQLK7jwSy1YecU1+4Asg==", - "license": "MIT", + "version": "8.16.0", + "resolved": "https://registry.npmjs.org/ws/-/ws-8.16.0.tgz", + "integrity": "sha512-HS0c//TP7Ina87TfiPUz1rQzMhHrl/SG2guqRcTOIUYD2q8uhUdNHZYJUaQ8aTGPzCh+c6oawMKW35nFl1dxyQ==", "engines": { "node": ">=10.0.0" }, "peerDependencies": { "bufferutil": "^4.0.1", - "utf-8-validate": "^5.0.2" + "utf-8-validate": ">=5.0.2" }, "peerDependenciesMeta": { "bufferutil": { @@ -10233,7 +10040,6 @@ "version": "5.0.0", "resolved": "https://registry.npmjs.org/xml-name-validator/-/xml-name-validator-5.0.0.tgz", "integrity": "sha512-EvGK8EJ3DhaHfbRlETOWAS5pO9MZITeauHKJyb8wyajUfQUenkIg2MvLDTZ4T/TgIcm3HU0TFBgWWboAZ30UHg==", - "license": "Apache-2.0", "engines": { "node": ">=18" } @@ -10241,8 +10047,7 @@ "node_modules/xmlchars": { "version": "2.2.0", "resolved": "https://registry.npmjs.org/xmlchars/-/xmlchars-2.2.0.tgz", - "integrity": "sha512-JZnDKK8B0RCDw84FNdDAIpZK+JuJw+s7Lz8nksI7SIuU3UXJJslUthsi+uWBUYOwPFwW7W7PRLRfUKpxjtjFCw==", - "license": "MIT" + "integrity": "sha512-JZnDKK8B0RCDw84FNdDAIpZK+JuJw+s7Lz8nksI7SIuU3UXJJslUthsi+uWBUYOwPFwW7W7PRLRfUKpxjtjFCw==" }, "node_modules/xmlhttprequest-ssl": { "version": "2.0.0", @@ -10256,7 +10061,6 @@ "version": "4.0.2", "resolved": "https://registry.npmjs.org/xtend/-/xtend-4.0.2.tgz", "integrity": "sha512-LKYU1iAXJXUgAXn9URjiu+MWhyUXHsvfp7mcuYm9dSUKK0/CjtrUwFAxD82/mCWbtLsGjFIad0wIsod4zrTAEQ==", - "license": "MIT", "engines": { "node": ">=0.4" } @@ -10266,7 +10070,6 @@ "resolved": "https://registry.npmjs.org/y18n/-/y18n-5.0.8.tgz", "integrity": "sha512-0pfFzegeDWJHJIAmTLRP2DwHjdF5s7jo9tuztdQxAhINCdvS+3nGINqPd00AphqJR/0LhANUS6/+7SCb98YOfA==", "dev": true, - "license": "ISC", "engines": { "node": ">=10" } @@ -10275,15 +10078,13 @@ "version": "3.1.1", "resolved": "https://registry.npmjs.org/yallist/-/yallist-3.1.1.tgz", "integrity": "sha512-a4UGQaWPH59mOXUYnAG2ewncQS4i4F43Tv3JoAM+s2VDAmS9NsK8GpDMLrCHPksFT7h3K6TOoUNn2pb7RoXx4g==", - "dev": true, - "license": "ISC" + "dev": true }, "node_modules/yargs": { "version": "17.7.2", "resolved": "https://registry.npmjs.org/yargs/-/yargs-17.7.2.tgz", "integrity": "sha512-7dSzzRQ++CKnNI/krKnYRV7JKKPUXMEh61soaHKg9mrWEhzFWhFnxPxGl+69cD1Ou63C13NUPCnmIcrvqCuM6w==", "dev": true, - "license": "MIT", "dependencies": { "cliui": "^8.0.1", "escalade": "^3.1.1", @@ -10302,7 +10103,6 @@ "resolved": "https://registry.npmjs.org/yargs-parser/-/yargs-parser-21.1.1.tgz", "integrity": "sha512-tVpsJW7DdjecAiFpbIB1e3qxIQsE6NoPc5/eTdrbbIC4h0LVsWhnoa3g+m2HclBIujHzsxZ4VJVA+GUuc2/LBw==", "dev": true, - "license": "ISC", "engines": { "node": ">=12" } @@ -10311,7 +10111,6 @@ "version": "0.1.0", "resolved": "https://registry.npmjs.org/yocto-queue/-/yocto-queue-0.1.0.tgz", "integrity": "sha512-rVksvsnNCdJ/ohGc6xgPwyN8eheCxsiLM8mxuE/t/mOVqJewPuO1miLpTHQiRgTKCLexL4MeAFVagts7HmNZ2Q==", - "license": "MIT", "engines": { "node": ">=10" }, diff --git a/core/util/treeSitter.ts b/core/util/treeSitter.ts index 3e82e0811..00deb5071 100644 --- a/core/util/treeSitter.ts +++ b/core/util/treeSitter.ts @@ -68,6 +68,9 @@ export const supportedLanguages: { [key: string]: string } = { }; export async function getParserForFile(filepath: string) { + if (process.env.IS_BINARY) { + return undefined; + } try { await Parser.init(); const parser = new Parser(); diff --git a/core/yarn.lock b/core/yarn.lock index f126d3619..6db13ef49 100644 --- a/core/yarn.lock +++ b/core/yarn.lock @@ -4,21 +4,29 @@ "@75lb/deep-merge@^1.1.1": version "1.1.1" + resolved "https://registry.npmjs.org/@75lb/deep-merge/-/deep-merge-1.1.1.tgz" + integrity sha512-xvgv6pkMGBA6GwdyJbNAnDmfAIR/DfWhrj9jgWh3TY7gRm3KO46x/GPjRg6wJ0nOepwqrNxFfojebh0Df4h4Tw== dependencies: lodash.assignwith "^4.2.0" typical "^7.1.1" "@aashutoshrathi/word-wrap@^1.2.3": version "1.2.6" + resolved "https://registry.npmjs.org/@aashutoshrathi/word-wrap/-/word-wrap-1.2.6.tgz" + integrity sha512-1Yjs2SvM8TflER/OD3cOjhWWOZb58A2t7wpE2S9XfBYTiIl+XFhQG2bjy4Pu1I+EAlCNUzRDYDdFwFYUKvXcIA== "@ampproject/remapping@^2.2.0": - version "2.2.1" + version "2.3.0" + resolved "https://registry.npmjs.org/@ampproject/remapping/-/remapping-2.3.0.tgz" + integrity sha512-30iZtAPgz+LTIYoeivqYo853f02jBYSd5uGnGpkFV0M3xOt9aN73erkgYAmZU43x4VfqcnLxW9Kpg3R5LC4YYw== dependencies: - "@jridgewell/gen-mapping" "^0.3.0" - "@jridgewell/trace-mapping" "^0.3.9" + "@jridgewell/gen-mapping" "^0.3.5" + "@jridgewell/trace-mapping" "^0.3.24" "@apache-arrow/ts@^14.0.2": version "14.0.2" + resolved "https://registry.npmjs.org/@apache-arrow/ts/-/ts-14.0.2.tgz" + integrity sha512-CtwAvLkK0CZv7xsYeCo91ml6PvlfzAmAJZkRYuz2GNBwfYufj5SVi0iuSMwIMkcU/szVwvLdzORSLa5PlF/2ug== dependencies: "@types/command-line-args" "5.2.0" "@types/command-line-usage" "5.0.2" @@ -325,14 +333,20 @@ "@eslint-community/eslint-utils@^4.2.0": version "4.4.0" + resolved "https://registry.npmjs.org/@eslint-community/eslint-utils/-/eslint-utils-4.4.0.tgz" + integrity sha512-1/sA4dwrzBAyeUoQ6oxahHKmrZvsnLCg4RfxW3ZFGGmQkSNQPFNLV9CUEFQP1x9EYXHTo5p6xdhZM1Ne9p/AfA== dependencies: eslint-visitor-keys "^3.3.0" "@eslint-community/regexpp@^4.6.1": version "4.10.0" + resolved "https://registry.npmjs.org/@eslint-community/regexpp/-/regexpp-4.10.0.tgz" + integrity sha512-Cu96Sd2By9mCNTx2iyKOmq10v22jUVQv0lQnlGNy16oE9589yE+QADPbrMGCkA51cKZSg3Pu/aTJVTGfL/qjUA== "@eslint/eslintrc@^2.1.4": version "2.1.4" + resolved "https://registry.npmjs.org/@eslint/eslintrc/-/eslintrc-2.1.4.tgz" + integrity sha512-269Z39MS6wVJtsoUl10L60WdkhJVdPG24Q4eZTH3nnF6lpvSShEK3wQjDX9JRWAUPvPh7COouPpU9IrqaZFvtQ== dependencies: ajv "^6.12.4" debug "^4.3.2" @@ -346,17 +360,23 @@ "@eslint/js@8.57.0": version "8.57.0" + resolved "https://registry.npmjs.org/@eslint/js/-/js-8.57.0.tgz" + integrity sha512-Ys+3g2TaW7gADOJzPt83SJtCDhMjndcDMFVQ/Tj9iA1BfJzFKD9mAUXT3OenpuPHbI6P/myECxRJrofUsDx/5g== "@gar/promisify@^1.0.1": version "1.1.3" resolved "https://registry.npmjs.org/@gar/promisify/-/promisify-1.1.3.tgz" integrity sha512-k2Ty1JcVojjJFwrg/ThKi2ujJ7XNLYaFGNB/bWT9wGR+oSMJHMa5w+CUq6p/pVrKeNNgA7pCqEcjSnHVoqJQFw== -"@huggingface/jinja@^0.1.3": - version "0.1.3" +"@huggingface/jinja@^0.2.1": + version "0.2.1" + resolved "https://registry.npmjs.org/@huggingface/jinja/-/jinja-0.2.1.tgz" + integrity sha512-HxjVCll8oGfgUQmN91NYWCjfuaQ5mYZkc/BB1gjfp28q3s48yiB5jUEV7BvaRdIAb/+14cNdX8TIdalFykwywA== "@humanwhocodes/config-array@^0.11.14": version "0.11.14" + resolved "https://registry.npmjs.org/@humanwhocodes/config-array/-/config-array-0.11.14.tgz" + integrity sha512-3T8LkOmg45BV5FICb15QQMsyUSWrQ8AygVfC7ZG32zOalnqrilm018ZVCw0eapXux8FtA33q8PSRSstjee3jSg== dependencies: "@humanwhocodes/object-schema" "^2.0.2" debug "^4.3.1" @@ -364,9 +384,13 @@ "@humanwhocodes/module-importer@^1.0.1": version "1.0.1" + resolved "https://registry.npmjs.org/@humanwhocodes/module-importer/-/module-importer-1.0.1.tgz" + integrity sha512-bxveV4V8v5Yb4ncFTT3rPSgZBOpCkjfK0y4oVVVJwIuDVBRMDXrPyXRL988i5ap9m9bnyEEjWfm5WkBmtffLfA== "@humanwhocodes/object-schema@^2.0.2": version "2.0.2" + resolved "https://registry.npmjs.org/@humanwhocodes/object-schema/-/object-schema-2.0.2.tgz" + integrity sha512-6EwiSjwWYP7pTckG6I5eyFANjPhmPjUX9JRLUSfNPC7FX7zK9gyZAfUEaECL6ALTpGX5AjnBq3C9XmVWPitNpw== "@istanbuljs/load-nyc-config@^1.0.0": version "1.1.0" @@ -576,34 +600,42 @@ "@types/yargs" "^17.0.8" chalk "^4.0.0" -"@jridgewell/gen-mapping@^0.3.0", "@jridgewell/gen-mapping@^0.3.2": - version "0.3.4" +"@jridgewell/gen-mapping@^0.3.2", "@jridgewell/gen-mapping@^0.3.5": + version "0.3.5" + resolved "https://registry.npmjs.org/@jridgewell/gen-mapping/-/gen-mapping-0.3.5.tgz" + integrity sha512-IzL8ZoEDIBRWEzlCcRhOaCupYyN5gdIK+Q6fbFdPDg6HqX6jpkItn7DFIpW9LQzXG6Df9sA7+OKnq0qlz/GaQg== dependencies: - "@jridgewell/set-array" "^1.0.1" + "@jridgewell/set-array" "^1.2.1" "@jridgewell/sourcemap-codec" "^1.4.10" - "@jridgewell/trace-mapping" "^0.3.9" + "@jridgewell/trace-mapping" "^0.3.24" "@jridgewell/resolve-uri@^3.1.0": version "3.1.2" resolved "https://registry.npmjs.org/@jridgewell/resolve-uri/-/resolve-uri-3.1.2.tgz" integrity sha512-bRISgCIjP20/tbWSPWMEi54QVPRZExkuD9lJL+UIxUKtwVJA8wW1Trb1jMs1RFXo1CBTNZ/5hpC9QvmKWdopKw== -"@jridgewell/set-array@^1.0.1": +"@jridgewell/set-array@^1.2.1": version "1.2.1" + resolved "https://registry.npmjs.org/@jridgewell/set-array/-/set-array-1.2.1.tgz" + integrity sha512-R8gLRTZeyp03ymzP/6Lil/28tGeGEzhx1q2k703KGWRAI1VdvPIXdG70VJc2pAMw3NA6JKL5hhFu1sJX0Mnn/A== "@jridgewell/sourcemap-codec@^1.4.10", "@jridgewell/sourcemap-codec@^1.4.14": version "1.4.15" resolved "https://registry.npmjs.org/@jridgewell/sourcemap-codec/-/sourcemap-codec-1.4.15.tgz" integrity sha512-eF2rxCRulEKXHTRiDrDy6erMYWqNw4LPdQ8UQA4huuxaQsVeRPFl2oM8oDGxMFhJUWZf9McpLtJasDDZb/Bpeg== -"@jridgewell/trace-mapping@^0.3.12", "@jridgewell/trace-mapping@^0.3.17", "@jridgewell/trace-mapping@^0.3.18", "@jridgewell/trace-mapping@^0.3.9": - version "0.3.23" +"@jridgewell/trace-mapping@^0.3.12", "@jridgewell/trace-mapping@^0.3.17", "@jridgewell/trace-mapping@^0.3.18", "@jridgewell/trace-mapping@^0.3.24": + version "0.3.25" + resolved "https://registry.npmjs.org/@jridgewell/trace-mapping/-/trace-mapping-0.3.25.tgz" + integrity sha512-vNk6aEwybGtawWmy/PzwnGDOjCkLWSD2wqvjGGAgOAwCGWySYXfYoxt00IJkTF+8Lb57DwOb3Aa0o9CApepiYQ== dependencies: "@jridgewell/resolve-uri" "^3.1.0" "@jridgewell/sourcemap-codec" "^1.4.14" -"@lancedb/vectordb-darwin-arm64@0.4.11": - version "0.4.11" +"@lancedb/vectordb-darwin-arm64@0.4.12": + version "0.4.12" + resolved "https://registry.npmjs.org/@lancedb/vectordb-darwin-arm64/-/vectordb-darwin-arm64-0.4.12.tgz" + integrity sha512-38/rkJRlWXkPWXuj9onzvbrhnIWcIUQjgEp5G9v5ixPosBowm7A4j8e2Q8CJMsVSNcVX2JLqwWVldiWegZFuYw== "@mozilla/readability@^0.5.0": version "0.5.0" @@ -617,15 +649,21 @@ "@nodelib/fs.scandir@2.1.5": version "2.1.5" + resolved "https://registry.npmjs.org/@nodelib/fs.scandir/-/fs.scandir-2.1.5.tgz" + integrity sha512-vq24Bq3ym5HEQm2NKCr3yXDwjc7vTsEThRDnkp2DK9p1uqLR+DHurm/NOTo0KG7HYHU7eppKZj3MyqYuMBf62g== dependencies: "@nodelib/fs.stat" "2.0.5" run-parallel "^1.1.9" "@nodelib/fs.stat@2.0.5": version "2.0.5" + resolved "https://registry.npmjs.org/@nodelib/fs.stat/-/fs.stat-2.0.5.tgz" + integrity sha512-RkhPPp2zrqDAQA/2jNhnztcPAlv64XdhIp7a7454A5ovI7Bukxgt7MX7udwAu3zg1DcpPU0rz3VV1SeaqvY4+A== "@nodelib/fs.walk@^1.2.8": version "1.2.8" + resolved "https://registry.npmjs.org/@nodelib/fs.walk/-/fs.walk-1.2.8.tgz" + integrity sha512-oGB+UxlgWcgQkgwo8GcEGwemoTFt3FIO9ababBmaGwXIoBKZ+GTy0pP185beGg7Llih/NSHSV2XAs1lnznocSg== dependencies: "@nodelib/fs.scandir" "2.1.5" fastq "^1.6.0" @@ -651,7 +689,7 @@ resolved "https://registry.npmjs.org/@octokit/auth-token/-/auth-token-4.0.0.tgz" integrity sha512-tY/msAuJo6ARbK6SPIxZrPBms3xPbfwBrulZe0Wtr/DIY9lje2HeV1uoebShn6mx7SjCHif6EjMvoREj+gZ+SA== -"@octokit/core@^5.0.0", "@octokit/core@>=5": +"@octokit/core@^5.0.0", "@octokit/core@5": version "5.1.0" resolved "https://registry.npmjs.org/@octokit/core/-/core-5.1.0.tgz" integrity sha512-BDa2VAMLSh3otEiaMJ/3Y36GU4qf6GI+VivQ/P41NC6GHcdxpKlqV0ikSZ5gdQsmS3ojXeRx5vasgNTinF0Q4g== @@ -687,15 +725,21 @@ integrity sha512-EtqRBEjp1dL/15V7WiX5LJMIxxkdiGJnabzYx5Apx4FkQIFgAfKumXeYAqqJCj1s+BMX4cPFIFC4OLCR6stlnA== "@octokit/plugin-paginate-rest@^9.0.0": - version "9.2.0" + version "9.2.1" + resolved "https://registry.npmjs.org/@octokit/plugin-paginate-rest/-/plugin-paginate-rest-9.2.1.tgz" + integrity sha512-wfGhE/TAkXZRLjksFXuDZdmGnJQHvtU/joFQdweXUgzo1XwvBCD4o4+75NtFfjfLK5IwLf9vHTfSiU3sLRYpRw== dependencies: "@octokit/types" "^12.6.0" "@octokit/plugin-request-log@^4.0.0": - version "4.0.0" + version "4.0.1" + resolved "https://registry.npmjs.org/@octokit/plugin-request-log/-/plugin-request-log-4.0.1.tgz" + integrity sha512-GihNqNpGHorUrO7Qa9JbAl0dbLnqJVrV8OXe2Zm5/Y4wFkZQDfTreBzVmiRfJVfE4mClXdihHnbpyyO9FSX4HA== "@octokit/plugin-rest-endpoint-methods@^10.0.0": - version "10.4.0" + version "10.4.1" + resolved "https://registry.npmjs.org/@octokit/plugin-rest-endpoint-methods/-/plugin-rest-endpoint-methods-10.4.1.tgz" + integrity sha512-xV1b+ceKV9KytQe3zCVqjg+8GTGfDYwaT1ATU5isiUyVtlVAO3HNdzpS4sr4GBx4hxQ46s7ITtZrAsxG22+rVg== dependencies: "@octokit/types" "^12.6.0" @@ -852,9 +896,13 @@ "@types/command-line-args@5.2.0": version "5.2.0" + resolved "https://registry.npmjs.org/@types/command-line-args/-/command-line-args-5.2.0.tgz" + integrity sha512-UuKzKpJJ/Ief6ufIaIzr3A/0XnluX7RvFgwkV89Yzvm77wCh1kFaFmqN8XEnGcN62EuHdedQjEMb8mYxFLGPyA== "@types/command-line-usage@5.0.2": version "5.0.2" + resolved "https://registry.npmjs.org/@types/command-line-usage/-/command-line-usage-5.0.2.tgz" + integrity sha512-n7RlEEJ+4x4TS7ZQddTmNSxP+zziEG0TNsMfiRIxcIVXt71ENJ9ojeXmGO3wPoTdn7pJcU2xc3CJYMktNT6DPg== "@types/follow-redirects@^1.14.4": version "1.14.4" @@ -922,6 +970,8 @@ "@types/json5@^0.0.29": version "0.0.29" + resolved "https://registry.npmjs.org/@types/json5/-/json5-0.0.29.tgz" + integrity sha512-dRLjCWHYg4oaA77cxO64oO+7JwCwnIzkZPdrrC71jQmQtlhM556pwKo5bUzqvZndkVbeFLIIi+9TC40JNF5hNQ== "@types/long@^4.0.1": version "4.0.2" @@ -946,21 +996,22 @@ "@types/node" "*" form-data "^4.0.0" -"@types/node@*", "@types/node@>=13.7.0": - version "20.11.23" - dependencies: - undici-types "~5.26.4" +"@types/node@*", "@types/node@>=13.7.0", "@types/node@20.3.0": + version "20.3.0" + resolved "https://registry.npmjs.org/@types/node/-/node-20.3.0.tgz" + integrity sha512-cumHmIAf6On83X7yP+LrsEyUOf/YlociZelmpRYaGFydoaPdxdt80MAbu6vWerQT2COCp2nPvHdsbD7tHn/YlQ== "@types/node@^18.11.18": - version "18.19.21" + version "18.19.24" + resolved "https://registry.npmjs.org/@types/node/-/node-18.19.24.tgz" + integrity sha512-eghAz3gnbQbvnHqB+mgB2ZR3aH6RhdEmHGS48BnV75KceQPHqabkxKI0BbUSsqhqy2Ddhc2xD/VAR9ySZd57Lw== dependencies: undici-types "~5.26.4" -"@types/node@20.3.0": - version "20.3.0" - "@types/pad-left@2.1.1": version "2.1.1" + resolved "https://registry.npmjs.org/@types/pad-left/-/pad-left-2.1.1.tgz" + integrity sha512-Xd22WCRBydkGSApl5Bw0PhAOHKSVjNL3E3AwzKaps96IMraPqy5BvZIsBVK6JLwdybUzjHnuWVwpDd0JjTfHXA== "@types/sizzle@*": version "2.3.8" @@ -996,11 +1047,15 @@ "@ungap/structured-clone@^1.2.0": version "1.2.0" + resolved "https://registry.npmjs.org/@ungap/structured-clone/-/structured-clone-1.2.0.tgz" + integrity sha512-zuVdFrMJiuCDQUMCzQaD6KL28MjnqqN8XnAqiEq9PNm/hCPTSGfrXCOfwj1ow4LFb/tNymJPwsNbVePc1xFqrQ== "@xenova/transformers@^2.14.0": - version "2.15.1" + version "2.16.0" + resolved "https://registry.npmjs.org/@xenova/transformers/-/transformers-2.16.0.tgz" + integrity sha512-UMlw9D9IHq8DSekl9J5DHB0SmEREHThqDZiMloexHoOqXF9wPLXe7Emiisqm9RPU6hKwTVAVFo2uPFxMoByF+w== dependencies: - "@huggingface/jinja" "^0.1.3" + "@huggingface/jinja" "^0.2.1" onnxruntime-web "1.14.0" sharp "^0.32.0" optionalDependencies: @@ -1025,9 +1080,13 @@ abort-controller@^3.0.0: acorn-jsx@^5.3.2: version "5.3.2" + resolved "https://registry.npmjs.org/acorn-jsx/-/acorn-jsx-5.3.2.tgz" + integrity sha512-rq9s+JNhf0IChjtDXxllJ7g41oZk5SlXtp0LHwyA5cejwn7vKmKp4pPri6YEePv2PU65sAsegbXtIinmDFDXgQ== "acorn@^6.0.0 || ^7.0.0 || ^8.0.0", acorn@^8.9.0: version "8.11.3" + resolved "https://registry.npmjs.org/acorn/-/acorn-8.11.3.tgz" + integrity sha512-Y9rRfJG5jcKOE0CLisYbojUjIrIEE7AGMzA/Sm4BslANhbS+cDMpgBdcPT91oJ7OuJ9hYJBx59RjbhxVnrF8Xg== adf-to-md@^1.1.0: version "1.1.0" @@ -1123,6 +1182,8 @@ anymatch@^3.0.3: apache-arrow@^14.0.2: version "14.0.2" + resolved "https://registry.npmjs.org/apache-arrow/-/apache-arrow-14.0.2.tgz" + integrity sha512-EBO2xJN36/XoY81nhLcwCJgFwkboDZeyNQ+OPsG7bCoQjc2BT0aTyH/MR6SrL+LirSNz+cYqjGRlupMMlP1aEg== dependencies: "@types/command-line-args" "5.2.0" "@types/command-line-usage" "5.0.2" @@ -1157,12 +1218,18 @@ argparse@^1.0.7: argparse@^2.0.1: version "2.0.1" + resolved "https://registry.npmjs.org/argparse/-/argparse-2.0.1.tgz" + integrity sha512-8+9WqebbFzpX9OR+Wa6O29asIogeRMzcGtAINdpMHHyAg10f05aSFVBbcEqGf/PXw1EjAZ+q2/bEBg3DvurK3Q== array-back@^3.0.1, array-back@^3.1.0: version "3.1.0" + resolved "https://registry.npmjs.org/array-back/-/array-back-3.1.0.tgz" + integrity sha512-TkuxA4UCOvxuDK6NZYXCalszEzj+TLszyASooky+i742l9TqsOdYCMJJupxRic61hwquNtppB3hgcuq9SVSH1Q== array-back@^6.2.2: version "6.2.2" + resolved "https://registry.npmjs.org/array-back/-/array-back-6.2.2.tgz" + integrity sha512-gUAZ7HPyb4SJczXAMUXMGAvI976JoK3qEx9v1FTmeYuJj0IBiaKttG1ydtGKdkfqWkIkouke7nG8ufGy77+Cvw== array-buffer-byte-length@^1.0.1: version "1.0.1" @@ -1174,6 +1241,8 @@ array-buffer-byte-length@^1.0.1: array-includes@^3.1.7: version "3.1.7" + resolved "https://registry.npmjs.org/array-includes/-/array-includes-3.1.7.tgz" + integrity sha512-dlcsNBIiWhPkHdOEEKnehA+RNUWDc4UqFtnIXU4uuYDPtA4LDkr7qip2p0VvFAEXNDr0yWZ9PJyIRiGjRLQzwQ== dependencies: call-bind "^1.0.2" define-properties "^1.2.0" @@ -1183,6 +1252,8 @@ array-includes@^3.1.7: array.prototype.filter@^1.0.3: version "1.0.3" + resolved "https://registry.npmjs.org/array.prototype.filter/-/array.prototype.filter-1.0.3.tgz" + integrity sha512-VizNcj/RGJiUyQBgzwxzE5oHdeuXY5hSbbmKMlphj1cy1Vl7Pn2asCGbSrru6hSQjmCzqTBPVWAF/whmEOVHbw== dependencies: call-bind "^1.0.2" define-properties "^1.2.0" @@ -1192,6 +1263,8 @@ array.prototype.filter@^1.0.3: array.prototype.findlastindex@^1.2.3: version "1.2.4" + resolved "https://registry.npmjs.org/array.prototype.findlastindex/-/array.prototype.findlastindex-1.2.4.tgz" + integrity sha512-hzvSHUshSpCflDR1QMUBLHGHP1VIEBegT4pix9H/Z92Xw3ySoy6c2qh7lJWTJnRJ8JCZ9bJNCgTyYaJGcJu6xQ== dependencies: call-bind "^1.0.5" define-properties "^1.2.1" @@ -1201,6 +1274,8 @@ array.prototype.findlastindex@^1.2.3: array.prototype.flat@^1.3.2: version "1.3.2" + resolved "https://registry.npmjs.org/array.prototype.flat/-/array.prototype.flat-1.3.2.tgz" + integrity sha512-djYB+Zx2vLewY8RWlNCUdHjDXs2XOgm602S9E7P/UpHgfeHL00cRiIF+IN/G/aUJ7kGPb6yO/ErDI5V2s8iycA== dependencies: call-bind "^1.0.2" define-properties "^1.2.0" @@ -1209,6 +1284,8 @@ array.prototype.flat@^1.3.2: array.prototype.flatmap@^1.3.2: version "1.3.2" + resolved "https://registry.npmjs.org/array.prototype.flatmap/-/array.prototype.flatmap-1.3.2.tgz" + integrity sha512-Ewyx0c9PmpcsByhSW4r+9zDU7sGjFc86qf/kKtuSCRdhfbk0SNLLkaT5qvcHnRGgc5NP/ly/y+qkXkqONX54CQ== dependencies: call-bind "^1.0.2" define-properties "^1.2.0" @@ -1342,6 +1419,33 @@ balanced-match@^1.0.0: resolved "https://registry.npmjs.org/balanced-match/-/balanced-match-1.0.2.tgz" integrity sha512-3oSeUO0TMV67hN1AmbXsK4yaqU7tjiHlbxRDZOpH0KW9+CeX4bRAaX0Anxt0tx2MrpRpWwQaPwIlISEJhYU5Pw== +bare-events@^2.0.0, bare-events@^2.2.0: + version "2.2.1" + resolved "https://registry.npmjs.org/bare-events/-/bare-events-2.2.1.tgz" + integrity sha512-9GYPpsPFvrWBkelIhOhTWtkeZxVxZOdb3VnFTCzlOo3OjvmTvzLoZFUT8kNFACx0vJej6QPney1Cf9BvzCNE/A== + +bare-fs@^2.1.1: + version "2.2.2" + resolved "https://registry.npmjs.org/bare-fs/-/bare-fs-2.2.2.tgz" + integrity sha512-X9IqgvyB0/VA5OZJyb5ZstoN62AzD7YxVGog13kkfYWYqJYcK0kcqLZ6TrmH5qr4/8//ejVcX4x/a0UvaogXmA== + dependencies: + bare-events "^2.0.0" + bare-os "^2.0.0" + bare-path "^2.0.0" + streamx "^2.13.0" + +bare-os@^2.0.0, bare-os@^2.1.0: + version "2.2.1" + resolved "https://registry.npmjs.org/bare-os/-/bare-os-2.2.1.tgz" + integrity sha512-OwPyHgBBMkhC29Hl3O4/YfxW9n7mdTr2+SsO29XBWKKJsbgj3mnorDB80r5TiCQgQstgE5ga1qNYrpes6NvX2w== + +bare-path@^2.0.0, bare-path@^2.1.0: + version "2.1.0" + resolved "https://registry.npmjs.org/bare-path/-/bare-path-2.1.0.tgz" + integrity sha512-DIIg7ts8bdRKwJRJrUMy/PICEaQZaPGZ26lsSx9MJSwIhSrcdHn7/C8W+XmnG/rKi6BaRcz+JO00CjZteybDtw== + dependencies: + bare-os "^2.1.0" + base-64@^0.1.0: version "0.1.0" resolved "https://registry.npmjs.org/base-64/-/base-64-0.1.0.tgz" @@ -1501,7 +1605,9 @@ camelcase@^6.2.0: integrity sha512-Gmy6FhYlCY7uOElZUSbxo2UCDH8owEk996gkbrpsgGtrJLM3J7jGxl9Ic7Qwwj4ivOE5AWZWRMecDdF7hqGjFA== caniuse-lite@^1.0.30001587: - version "1.0.30001591" + version "1.0.30001597" + resolved "https://registry.npmjs.org/caniuse-lite/-/caniuse-lite-1.0.30001597.tgz" + integrity sha512-7LjJvmQU6Sj7bL0j5b5WY/3n7utXUJvAe1lxhsHDbLmwX9mdL86Yjtr+5SRCyf8qME4M7pU2hswj0FpyBVCv9w== caseless@~0.12.0: version "0.12.0" @@ -1510,6 +1616,8 @@ caseless@~0.12.0: chalk-template@^0.4.0: version "0.4.0" + resolved "https://registry.npmjs.org/chalk-template/-/chalk-template-0.4.0.tgz" + integrity sha512-/ghrgmhfY8RaSdeo43hNXxpoHAtxdbskUHjPpfqUWGttFgycUhYPGx3YZBCnUCvOa7Doivn1IZec3DEGFoMgLg== dependencies: chalk "^4.1.2" @@ -1663,6 +1771,8 @@ combined-stream@^1.0.6, combined-stream@^1.0.8, combined-stream@~1.0.6: command-line-args@^5.2.1, command-line-args@5.2.1: version "5.2.1" + resolved "https://registry.npmjs.org/command-line-args/-/command-line-args-5.2.1.tgz" + integrity sha512-H4UfQhZyakIjC74I9d34fGYDwk3XpSr17QhEd0Q3I9Xq1CETHo4Hcuo87WyWHpAF1aSLjLRf5lD9ZGX2qStUvg== dependencies: array-back "^3.1.0" find-replace "^3.0.0" @@ -1671,6 +1781,8 @@ command-line-args@^5.2.1, command-line-args@5.2.1: command-line-usage@^7.0.0, command-line-usage@7.0.1: version "7.0.1" + resolved "https://registry.npmjs.org/command-line-usage/-/command-line-usage-7.0.1.tgz" + integrity sha512-NCyznE//MuTjwi3y84QVUGEOT+P5oto1e1Pk/jFPVdPPfsG03qpTIl3yw6etR+v73d0lXsoojRpvbru2sqePxQ== dependencies: array-back "^6.2.2" chalk-template "^0.4.0" @@ -1788,6 +1900,8 @@ dbinfoz@^0.1.4: debug@^3.2.7: version "3.2.7" + resolved "https://registry.npmjs.org/debug/-/debug-3.2.7.tgz" + integrity sha512-CFjzYYAi4ThfiQvizrFQevTTXHtnCqWfe7x1AhgEscTz6ZbLbfoLRLPugTQyBth6f8ZERVUSyWHFD/7Wu4t1XQ== dependencies: ms "^2.1.1" @@ -1822,13 +1936,15 @@ deep-extend@^0.6.0: deep-is@^0.1.3: version "0.1.4" + resolved "https://registry.npmjs.org/deep-is/-/deep-is-0.1.4.tgz" + integrity sha512-oIPzksmTg4/MriiaYGO+okXDT7ztn/w3Eptv/+gSIdMdKsJo0u4CfYNFJPy+4SKMuCqGw2wxnA+URMg3t8a/bQ== deepmerge@^4.2.2: version "4.3.1" resolved "https://registry.npmjs.org/deepmerge/-/deepmerge-4.3.1.tgz" integrity sha512-3sUqbMEc77XqpdNO7FRyRog+eW3ph+GYCbj+rK+uYyRMuwsVy0rMiVtPn+QJlKFvWP/1PYpapqYn0Me2knFn+A== -define-data-property@^1.0.1, define-data-property@^1.1.2, define-data-property@^1.1.4: +define-data-property@^1.0.1, define-data-property@^1.1.4: version "1.1.4" resolved "https://registry.npmjs.org/define-data-property/-/define-data-property-1.1.4.tgz" integrity sha512-rBMvIzlpA8v6E+SJZoo++HAYqsLrkg7MSfIinMPFhmkorw7X+dOXVJQs+QT69zGkzMyfDnIMN2Wid1+NbL3T+A== @@ -1891,11 +2007,15 @@ digest-fetch@^1.3.0: doctrine@^2.1.0: version "2.1.0" + resolved "https://registry.npmjs.org/doctrine/-/doctrine-2.1.0.tgz" + integrity sha512-35mSku4ZXK0vfCuHEDAwt55dg2jNajHZ1odvF+8SSr82EsZY4QmXfuWso8oEd8zRhVObSN18aM0CjSdoBX7zIw== dependencies: esutils "^2.0.2" doctrine@^3.0.0: version "3.0.0" + resolved "https://registry.npmjs.org/doctrine/-/doctrine-3.0.0.tgz" + integrity sha512-yS+Q5i3hBf7GBkd4KG8a7eBNNWNGLTaEwwYWUijIYM7zrlYDM0BFXHjjPWlWZ1Rg7UaddZeIDmi9jF3HmqiQ2w== dependencies: esutils "^2.0.2" @@ -1943,7 +2063,9 @@ ecc-jsbn@~0.1.1: safer-buffer "^2.1.0" electron-to-chromium@^1.4.668: - version "1.4.687" + version "1.4.705" + resolved "https://registry.npmjs.org/electron-to-chromium/-/electron-to-chromium-1.4.705.tgz" + integrity sha512-LKqhpwJCLhYId2VVwEzFXWrqQI5n5zBppz1W9ehhTlfYU8CUUW6kClbN8LHF/v7flMgRdETS772nqywJ+ckVAw== emittery@^0.13.1: version "0.13.1" @@ -2056,6 +2178,8 @@ es-abstract@^1.22.1, es-abstract@^1.22.3: es-array-method-boxes-properly@^1.0.0: version "1.0.0" + resolved "https://registry.npmjs.org/es-array-method-boxes-properly/-/es-array-method-boxes-properly-1.0.0.tgz" + integrity sha512-wd6JXUmyHmt8T5a2xreUwKcGPq6f1f+WwIJkijUqiGcJz1qqnZgP6XIK+QyIWU5lT7imeNxUll48bziG+TSYcA== es-define-property@^1.0.0: version "1.0.0" @@ -2080,6 +2204,8 @@ es-set-tostringtag@^2.0.3: es-shim-unscopables@^1.0.0, es-shim-unscopables@^1.0.2: version "1.0.2" + resolved "https://registry.npmjs.org/es-shim-unscopables/-/es-shim-unscopables-1.0.2.tgz" + integrity sha512-J3yBRXCzDu4ULnQwxyToo/OjdMx6akgVC7K6few0a7F/0wLtmKKN7I73AH5T2836UuXRqN7Qg+IIUw/+YJksRw== dependencies: hasown "^2.0.0" @@ -2138,6 +2264,8 @@ escape-string-regexp@^2.0.0: escape-string-regexp@^4.0.0: version "4.0.0" + resolved "https://registry.npmjs.org/escape-string-regexp/-/escape-string-regexp-4.0.0.tgz" + integrity sha512-TtpcNJ3XAzx3Gq8sWRzJaVajRs0uVxA2YAkdb1jm2YkPz4G6egUFAyA3n5vtEIZefPk5Wa4UXbKuS5fKkJWdgA== eslint-config-airbnb-base@15.0.0: version "15.0.0" @@ -2158,6 +2286,8 @@ eslint-config-nodebb@0.1.1: eslint-import-resolver-node@^0.3.9: version "0.3.9" + resolved "https://registry.npmjs.org/eslint-import-resolver-node/-/eslint-import-resolver-node-0.3.9.tgz" + integrity sha512-WFj2isz22JahUv+B788TlO3N6zL3nNJGU8CcZbPZvVEkBPaJdCV4vy5wyghty5ROFbCRnm132v8BScu5/1BQ8g== dependencies: debug "^3.2.7" is-core-module "^2.13.0" @@ -2165,11 +2295,15 @@ eslint-import-resolver-node@^0.3.9: eslint-module-utils@^2.8.0: version "2.8.1" + resolved "https://registry.npmjs.org/eslint-module-utils/-/eslint-module-utils-2.8.1.tgz" + integrity sha512-rXDXR3h7cs7dy9RNpUlQf80nX31XWJEyGq1tRMo+6GsO5VmTe4UTwtmonAD4ZkAsrfMVDA2wlGJ3790Ys+D49Q== dependencies: debug "^3.2.7" eslint-plugin-import@^2.25.2, eslint-plugin-import@2.x: version "2.29.1" + resolved "https://registry.npmjs.org/eslint-plugin-import/-/eslint-plugin-import-2.29.1.tgz" + integrity sha512-BbPC0cuExzhiMo4Ff1BTVwHpjjv28C5R+btTOGaCRC7UEz801up0JadwkeSk5Ued6TG34uaczuVuH6qyy5YUxw== dependencies: array-includes "^3.1.7" array.prototype.findlastindex "^1.2.3" @@ -2191,15 +2325,21 @@ eslint-plugin-import@^2.25.2, eslint-plugin-import@2.x: eslint-scope@^7.2.2: version "7.2.2" + resolved "https://registry.npmjs.org/eslint-scope/-/eslint-scope-7.2.2.tgz" + integrity sha512-dOt21O7lTMhDM+X9mB4GX+DZrZtCUJPL/wlcTqxyrx5IvO0IYtILdtrQGQp+8n5S0gwSVmOf9NQrjMOgfQZlIg== dependencies: esrecurse "^4.3.0" estraverse "^5.2.0" eslint-visitor-keys@^3.3.0, eslint-visitor-keys@^3.4.1, eslint-visitor-keys@^3.4.3: version "3.4.3" + resolved "https://registry.npmjs.org/eslint-visitor-keys/-/eslint-visitor-keys-3.4.3.tgz" + integrity sha512-wpc+LXeiyiisxPlEkUzU6svyS1frIO3Mgxj1fdy7Pm8Ygzguax2N3Fa/D/ag1WqbOprdI+uY6wMUl8/a2G+iag== "eslint@^2 || ^3 || ^4 || ^5 || ^6 || ^7.2.0 || ^8", "eslint@^6.0.0 || ^7.0.0 || >=8.0.0", "eslint@^7.32.0 || ^8.2.0", "eslint@7.x || 8.x": version "8.57.0" + resolved "https://registry.npmjs.org/eslint/-/eslint-8.57.0.tgz" + integrity sha512-dZ6+mexnaTIbSBZWgou51U6OmzIhYM2VcNdtiTtI7qPNZm35Akpr0f6vtw3w1Kmn5PYo+tZVfh13WrhpS6oLqQ== dependencies: "@eslint-community/eslint-utils" "^4.2.0" "@eslint-community/regexpp" "^4.6.1" @@ -2242,6 +2382,8 @@ eslint-visitor-keys@^3.3.0, eslint-visitor-keys@^3.4.1, eslint-visitor-keys@^3.4 espree@^9.6.0, espree@^9.6.1: version "9.6.1" + resolved "https://registry.npmjs.org/espree/-/espree-9.6.1.tgz" + integrity sha512-oruZaFkjorTpF32kDSI5/75ViwGeZginGGy2NoOSg3Q9bnwlnmDm4HLnkl0RE3n+njDXR037aY1+x58Z/zFdwQ== dependencies: acorn "^8.9.0" acorn-jsx "^5.3.2" @@ -2254,19 +2396,27 @@ esprima@^4.0.0: esquery@^1.4.2: version "1.5.0" + resolved "https://registry.npmjs.org/esquery/-/esquery-1.5.0.tgz" + integrity sha512-YQLXUplAwJgCydQ78IMJywZCceoqk1oH01OERdSAJc/7U2AylwjhSCLDEtqwg811idIS/9fIU5GjG73IgjKMVg== dependencies: estraverse "^5.1.0" esrecurse@^4.3.0: version "4.3.0" + resolved "https://registry.npmjs.org/esrecurse/-/esrecurse-4.3.0.tgz" + integrity sha512-KmfKL3b6G+RXvP8N1vr3Tq1kL/oCFgn2NYXEtqP8/L3pKapUA4G8cFVaoF3SU323CD4XypR/ffioHmkti6/Tag== dependencies: estraverse "^5.2.0" estraverse@^5.1.0, estraverse@^5.2.0: version "5.3.0" + resolved "https://registry.npmjs.org/estraverse/-/estraverse-5.3.0.tgz" + integrity sha512-MMdARuVEQziNTeJD8DgMqmhwR11BRQ/cBP+pLtYdSTnf3MIO8fFeiINEbX36ZdNlfU/7A9f3gUw49B3oQsvwBA== esutils@^2.0.2: version "2.0.3" + resolved "https://registry.npmjs.org/esutils/-/esutils-2.0.3.tgz" + integrity sha512-kVscqXk4OCp68SZ0dkgEKVi6/8ij300KBWTJq32P/dYeWTSwK41WyTxalN1eRmA5Z9UU/LX9D7FWSmV9SAYx6g== event-target-shim@^5.0.0: version "5.0.1" @@ -2341,6 +2491,8 @@ fast-json-stable-stringify@^2.0.0, fast-json-stable-stringify@^2.1.0, fast-json- fast-levenshtein@^2.0.6: version "2.0.6" + resolved "https://registry.npmjs.org/fast-levenshtein/-/fast-levenshtein-2.0.6.tgz" + integrity sha512-DCXu6Ifhqcks7TZKY3Hxp3y6qphY5SJZmrWMDrKcERSOXWQdMhU9Ig/PYrzyw/ul9jOIyh0N4M0tbC5hodg8dw== fastest-levenshtein@^1.0.16: version "1.0.16" @@ -2349,6 +2501,8 @@ fastest-levenshtein@^1.0.16: fastq@^1.6.0: version "1.17.1" + resolved "https://registry.npmjs.org/fastq/-/fastq-1.17.1.tgz" + integrity sha512-sRVD3lWVIXWg6By68ZN7vho9a1pQcN/WBFaAAsDDFzlJjvoGx0P8z7V1t72grFJfJhu3YPZBuu25f7Kaw2jN1w== dependencies: reusify "^1.0.4" @@ -2369,6 +2523,8 @@ fetch-blob@^3.1.2, fetch-blob@^3.1.4: file-entry-cache@^6.0.1: version "6.0.1" + resolved "https://registry.npmjs.org/file-entry-cache/-/file-entry-cache-6.0.1.tgz" + integrity sha512-7Gps/XWymbLk2QLYK4NzpMOrYjMhdIxXuIvy2QBsLE6ljuodKvdkWs/cpyJJ3CVIVpH0Oi1Hvg1ovbMzLdFBBg== dependencies: flat-cache "^3.0.4" @@ -2386,6 +2542,8 @@ fill-range@^7.0.1: find-replace@^3.0.0: version "3.0.0" + resolved "https://registry.npmjs.org/find-replace/-/find-replace-3.0.0.tgz" + integrity sha512-6Tb2myMioCAgv5kfvP5/PkZZ/ntTpVK39fHY7WkWBgvbeE+VHd/tZuZ4mrC+bxh4cfOZeYKVPaJIZtZXV7GNCQ== dependencies: array-back "^3.0.1" @@ -2407,12 +2565,16 @@ find-up@^4.1.0: find-up@^5.0.0: version "5.0.0" + resolved "https://registry.npmjs.org/find-up/-/find-up-5.0.0.tgz" + integrity sha512-78/PXT1wlLLDgTzDs7sjq9hzz0vXD+zn+7wypEe4fXQxCmdmqfGsEPQxmiCSQI3ajFV91bVSsvNtrJRiW6nGng== dependencies: locate-path "^6.0.0" path-exists "^4.0.0" flat-cache@^3.0.4: version "3.2.0" + resolved "https://registry.npmjs.org/flat-cache/-/flat-cache-3.2.0.tgz" + integrity sha512-CYcENa+FtcUKLmhhqyctpclsq7QF38pKjZHsGNiSQF5r4FtoKDWabFDl3hzaEQMvT1LHEysw5twgLvpYYb4vbw== dependencies: flatted "^3.2.9" keyv "^4.5.3" @@ -2425,9 +2587,13 @@ flatbuffers@^1.12.0: flatbuffers@23.5.26: version "23.5.26" + resolved "https://registry.npmjs.org/flatbuffers/-/flatbuffers-23.5.26.tgz" + integrity sha512-vE+SI9vrJDwi1oETtTIFldC/o9GsVKRM+s6EL0nQgxXlYV1Vc4Tk30hj4xGICftInKQKj1F3up2n8UbIVobISQ== flatted@^3.2.9: version "3.3.1" + resolved "https://registry.npmjs.org/flatted/-/flatted-3.3.1.tgz" + integrity sha512-X8cqMLLie7KsNUDSdzeN8FYK9rEt4Dt67OsG/DNGnYTSDBG4uFAJFBnUeiV+zCVAvwFy56IjM9sH51jVaEhNxw== follow-redirects@^1.15.4, follow-redirects@^1.15.5: version "1.15.5" @@ -2557,7 +2723,7 @@ get-caller-file@^2.0.5: resolved "https://registry.npmjs.org/get-caller-file/-/get-caller-file-2.0.5.tgz" integrity sha512-DyFP3BM/3YHTQOCUL/w0OZHR0lpKeGrxotcHWcqNEdnltqFwXVfhEBQ94eIo34AfQpo0rGki4cyIiftY06h2Fg== -get-intrinsic@^1.1.3, get-intrinsic@^1.2.1, get-intrinsic@^1.2.2, get-intrinsic@^1.2.3, get-intrinsic@^1.2.4: +get-intrinsic@^1.1.3, get-intrinsic@^1.2.1, get-intrinsic@^1.2.3, get-intrinsic@^1.2.4: version "1.2.4" resolved "https://registry.npmjs.org/get-intrinsic/-/get-intrinsic-1.2.4.tgz" integrity sha512-5uYhsJH8VJBTv7oslg4BznJYhDoRI6waYCxMmCdnTrcCrHA/fCFKoTFz2JKKE0HdDFUF7/oQuhzumXJK7paBRQ== @@ -2601,6 +2767,8 @@ github-from-package@0.0.0: glob-parent@^6.0.2: version "6.0.2" + resolved "https://registry.npmjs.org/glob-parent/-/glob-parent-6.0.2.tgz" + integrity sha512-XxwI8EOhVQgWp6iDL+3b0r86f4d6AX6zSU55HfB4ydCEuXLXc5FcYeOu+nnGftS4TEju/11rt4KJPTMgbfmv4A== dependencies: is-glob "^4.0.3" @@ -2623,6 +2791,8 @@ globals@^11.1.0: globals@^13.19.0: version "13.24.0" + resolved "https://registry.npmjs.org/globals/-/globals-13.24.0.tgz" + integrity sha512-AhO5QUcj8llrbG09iWhPU2B204J1xnPeL8kQmVorSsy+Sjj1sk8gIyh6cUocGmH4L0UuhAJy+hJMRA4mgA4mFQ== dependencies: type-fest "^0.20.2" @@ -2647,6 +2817,8 @@ graceful-fs@^4.2.6, graceful-fs@^4.2.9: graphemer@^1.4.0: version "1.4.0" + resolved "https://registry.npmjs.org/graphemer/-/graphemer-1.4.0.tgz" + integrity sha512-EtKwoO6kxCL9WO5xipiHTZlSzBm7WLT627TqC/uVRd0HKmq8NXyebnNYxDoBi7wt8eTWrUrKXCOVaFq9x1kgag== graphology-indices@^0.17.0: version "0.17.0" @@ -2677,6 +2849,8 @@ graphology-shortest-path@^2.0.0: graphology-types@>=0.20.0, graphology-types@>=0.23.0, graphology-types@>=0.24.0: version "0.24.7" + resolved "https://registry.npmjs.org/graphology-types/-/graphology-types-0.24.7.tgz" + integrity sha512-tdcqOOpwArNjEr0gNQKCXwaNCWnQJrog14nJNQPeemcLnXQUUGrsCWpWkVKt46zLjcS6/KGoayeJfHHyPDlvwA== graphology-utils@^2.4.2, graphology-utils@^2.4.3, graphology-utils@^2.4.4: version "2.5.2" @@ -2736,7 +2910,7 @@ has-flag@^4.0.0: resolved "https://registry.npmjs.org/has-flag/-/has-flag-4.0.0.tgz" integrity sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ== -has-property-descriptors@^1.0.0, has-property-descriptors@^1.0.1, has-property-descriptors@^1.0.2: +has-property-descriptors@^1.0.0, has-property-descriptors@^1.0.2: version "1.0.2" resolved "https://registry.npmjs.org/has-property-descriptors/-/has-property-descriptors-1.0.2.tgz" integrity sha512-55JNKuIW+vq4Ke1BjOTjM2YctQIvCT7GFzHwmfZPGo5wnrgkid0YQtnAleFSqumZm4az3n2BS+erby5ipJdgrg== @@ -2766,7 +2940,9 @@ has-unicode@^2.0.1: integrity sha512-8Rf9Y83NBReMnx0gFzA8JImQACstCYWUplepDa9xprwwtmgEZUF0h/i5xSA625zB/I37EtrswSST6OXxwaaIJQ== hasown@^2.0.0, hasown@^2.0.1: - version "2.0.1" + version "2.0.2" + resolved "https://registry.npmjs.org/hasown/-/hasown-2.0.2.tgz" + integrity sha512-0hJU9SCPvmMzIBdZFqNPXWa6dqh7WdH0cII9y+CyS8rG3nL48Bclra9HmKhVVUHyPWNH5Y7xDwAB7bfgSjkUMQ== dependencies: function-bind "^1.1.2" @@ -2870,9 +3046,13 @@ ieee754@^1.1.13, ieee754@^1.2.1: ignore@^5.2.0: version "5.3.1" + resolved "https://registry.npmjs.org/ignore/-/ignore-5.3.1.tgz" + integrity sha512-5Fytz/IraMjqpwfd34ke28PTVMjZjJG2MPn5t7OE4eUCUNf8BAa7b5WUS9/Qvr6mwOQS7Mk6vdsMno5he+T8Xw== import-fresh@^3.2.1: version "3.3.0" + resolved "https://registry.npmjs.org/import-fresh/-/import-fresh-3.3.0.tgz" + integrity sha512-veYYhQa+D1QBKznvhUHxb8faxlrwUnxseDAbAp457E0wLNio2bOSKnjYDhMj+YiAq61xrMGhQk9iXVk5FzgQMw== dependencies: parent-module "^1.0.0" resolve-from "^4.0.0" @@ -2994,6 +3174,8 @@ is-date-object@^1.0.1: is-extglob@^2.1.1: version "2.1.1" + resolved "https://registry.npmjs.org/is-extglob/-/is-extglob-2.1.1.tgz" + integrity sha512-SbKbANkN603Vi4jEZv49LeVJMn4yGwsbzZworEoyEiutsN3nJYdbO36zfhGJ6QEDpOZIFkDtnq5JRxmvl3jsoQ== is-fullwidth-code-point@^3.0.0: version "3.0.0" @@ -3007,6 +3189,8 @@ is-generator-fn@^2.0.0: is-glob@^4.0.0, is-glob@^4.0.3: version "4.0.3" + resolved "https://registry.npmjs.org/is-glob/-/is-glob-4.0.3.tgz" + integrity sha512-xelSayHH36ZgE7ZWhli7pW34hNbNl8Ojv5KVmkJD4hBdD3th8Tfk9vYasLM+mXWOZhFkgZfxhLSnrwRr4elSSg== dependencies: is-extglob "^2.1.1" @@ -3034,6 +3218,8 @@ is-number@^7.0.0: is-path-inside@^3.0.3: version "3.0.3" + resolved "https://registry.npmjs.org/is-path-inside/-/is-path-inside-3.0.3.tgz" + integrity sha512-Fd4gABb+ycGAmKou8eMftCupSir5lRxqf4aD/vd0cD2qc4HL07OjCeuHMr8Ro4CoMaeCKDB0/ECBOVWjTwUvPQ== is-potential-custom-element-name@^1.0.1: version "1.0.1" @@ -3546,6 +3732,8 @@ js-yaml@^3.13.1: js-yaml@^4.1.0: version "4.1.0" + resolved "https://registry.npmjs.org/js-yaml/-/js-yaml-4.1.0.tgz" + integrity sha512-wpxZs9NoxZaJESJGIZTyDEaYpl0FKSA+FB9aJiyemKhMwkxQg63h4T1KJgUGHpTqPDNRcmmYLugrRjJlBtWvRA== dependencies: argparse "^2.0.1" @@ -3593,9 +3781,13 @@ jsesc@^2.5.1: json-bignum@^0.0.3: version "0.0.3" + resolved "https://registry.npmjs.org/json-bignum/-/json-bignum-0.0.3.tgz" + integrity sha512-2WHyXj3OfHSgNyuzDbSxI1w2jgw5gkWSWhS7Qg4bWXx1nLk3jnbwfUeS0PSba3IzpTUWdHxBieELUzXRjQB2zg== json-buffer@3.0.1: version "3.0.1" + resolved "https://registry.npmjs.org/json-buffer/-/json-buffer-3.0.1.tgz" + integrity sha512-4bV5BfR2mqfQTJm+V5tPPdf+ZpuhiIvTuAB5g8kcrXOZpTT/QwwVRWBywX1ozr6lEuPdbHxwaJlm9G6mI2sfSQ== json-parse-even-better-errors@^2.3.0: version "2.3.1" @@ -3614,6 +3806,8 @@ json-schema@0.4.0: json-stable-stringify-without-jsonify@^1.0.1: version "1.0.1" + resolved "https://registry.npmjs.org/json-stable-stringify-without-jsonify/-/json-stable-stringify-without-jsonify-1.0.1.tgz" + integrity sha512-Bdboy+l7tA3OGW6FjyFHWkP5LuByj1Tk33Ljyq0axyzdk9//JSi2u3fP1QSmd1KNwq6VOKYGlAu87CisVir6Pw== json-stringify-safe@~5.0.1: version "5.0.1" @@ -3622,6 +3816,8 @@ json-stringify-safe@~5.0.1: json5@^1.0.2: version "1.0.2" + resolved "https://registry.npmjs.org/json5/-/json5-1.0.2.tgz" + integrity sha512-g1MWMLBiz8FKi1e4w0UyVL3w+iJceWAFBAaBnnGKOpNa5f8TLktkbre1+s6oICydWAm+HRUGTmI+//xv2hvXYA== dependencies: minimist "^1.2.0" @@ -3642,6 +3838,8 @@ jsprim@^1.2.2: keyv@^4.5.3: version "4.5.4" + resolved "https://registry.npmjs.org/keyv/-/keyv-4.5.4.tgz" + integrity sha512-oxVHkHR/EJf2CNXnWxRLW6mg7JyCCUcG0DtEGmL2ctUo1PNTin1PUil+r/+4r5MpVgC/fn1kjsx7mjSujKqIpw== dependencies: json-buffer "3.0.1" @@ -3657,6 +3855,8 @@ leven@^3.1.0: levn@^0.4.1: version "0.4.1" + resolved "https://registry.npmjs.org/levn/-/levn-0.4.1.tgz" + integrity sha512-+bT2uH4E5LGE7h/n3evcS/sQlJXCpIp6ym8OWJ5eV6+67Dsql/LaaT7qJBAt2rzfoa/5QBGBhxDix1dMt2kQKQ== dependencies: prelude-ls "^1.2.1" type-check "~0.4.0" @@ -3691,14 +3891,20 @@ locate-path@^5.0.0: locate-path@^6.0.0: version "6.0.0" + resolved "https://registry.npmjs.org/locate-path/-/locate-path-6.0.0.tgz" + integrity sha512-iPZK6eYjbxRu3uB4/WZ3EsEIMJFMqAoopl3R+zuq0UjcAm/MO6KCweDgPfP3elTztoKP3KtnVHxTn2NHBSDVUw== dependencies: p-locate "^5.0.0" lodash.assignwith@^4.2.0: version "4.2.0" + resolved "https://registry.npmjs.org/lodash.assignwith/-/lodash.assignwith-4.2.0.tgz" + integrity sha512-ZznplvbvtjK2gMvnQ1BR/zqPFZmS6jbK4p+6Up4xcRYA7yMIwxHCfbTcrYxXKzzqLsQ05eJPVznEW3tuwV7k1g== lodash.camelcase@^4.3.0: version "4.3.0" + resolved "https://registry.npmjs.org/lodash.camelcase/-/lodash.camelcase-4.3.0.tgz" + integrity sha512-TwuEnCnxbc3rAvhf/LbG7tJUDzhqXyFnv3dtzLOPgCG/hODL7WFnsbwktkD7yUV0RrreP/l1PALq/YSg6VvjlA== lodash.memoize@4.x: version "4.1.2" @@ -3707,6 +3913,8 @@ lodash.memoize@4.x: lodash.merge@^4.6.2: version "4.6.2" + resolved "https://registry.npmjs.org/lodash.merge/-/lodash.merge-4.6.2.tgz" + integrity sha512-0KpjqXRVvrYyCsX1swR/XTK0va6VQkQM6MNo7PqW77ByjAhoARA8EfrP1N4+KlKj8YS0ZUCtRT/YUuhyYDujIQ== lodash@^4.17.21: version "4.17.21" @@ -4122,6 +4330,8 @@ object.entries@^1.1.5: object.fromentries@^2.0.7: version "2.0.7" + resolved "https://registry.npmjs.org/object.fromentries/-/object.fromentries-2.0.7.tgz" + integrity sha512-UPbPHML6sL8PI/mOqPwsH4G6iyXcCGzLin8KvEPenOZN5lpCNBZZQ+V62vdjB1mQHrmqGQt5/OJzemUA+KJmEA== dependencies: call-bind "^1.0.2" define-properties "^1.2.0" @@ -4129,6 +4339,8 @@ object.fromentries@^2.0.7: object.groupby@^1.0.1: version "1.0.2" + resolved "https://registry.npmjs.org/object.groupby/-/object.groupby-1.0.2.tgz" + integrity sha512-bzBq58S+x+uo0VjurFT0UktpKHOZmv4/xePiOA1nbB9pMqpGK7rUPNgf+1YC+7mE+0HzhTMqNUuCqvKhj6FnBw== dependencies: array.prototype.filter "^1.0.3" call-bind "^1.0.5" @@ -4138,6 +4350,8 @@ object.groupby@^1.0.1: object.values@^1.1.7: version "1.1.7" + resolved "https://registry.npmjs.org/object.values/-/object.values-1.1.7.tgz" + integrity sha512-aU6xnDFYT3x17e/f0IiiwlGPTy2jzMySGfUB4fq6z7CV8l85CWHDk5ErhyhpfDHhrOMwGFhSQkhMGHaIotA6Ng== dependencies: call-bind "^1.0.2" define-properties "^1.2.0" @@ -4217,6 +4431,8 @@ openai@^4.20.1: optionator@^0.9.3: version "0.9.3" + resolved "https://registry.npmjs.org/optionator/-/optionator-0.9.3.tgz" + integrity sha512-JjCoypp+jKn1ttEFExxhetCKeJt9zhAgAve5FXHixTvFDW/5aEktX9bufBKLRRMdU7bNtpLfcGu94B3cdEJgjg== dependencies: "@aashutoshrathi/word-wrap" "^1.2.3" deep-is "^0.1.3" @@ -4248,6 +4464,8 @@ p-locate@^4.1.0: p-locate@^5.0.0: version "5.0.0" + resolved "https://registry.npmjs.org/p-locate/-/p-locate-5.0.0.tgz" + integrity sha512-LaNjtRWUBY++zB5nE/NwcaoMylSPk+S+ZHNB1TzdbMJMny6dynpAGt7X/tl/QYq3TIeE6nxHppbo2LGymrG5Pw== dependencies: p-limit "^3.0.2" @@ -4270,11 +4488,15 @@ packet-reader@1.0.0: pad-left@^2.1.0: version "2.1.0" + resolved "https://registry.npmjs.org/pad-left/-/pad-left-2.1.0.tgz" + integrity sha512-HJxs9K9AztdIQIAIa/OIazRAUW/L6B9hbQDxO4X07roW3eo9XqZc2ur9bn1StH9CnbbI9EgvejHQX7CBpCF1QA== dependencies: repeat-string "^1.5.4" parent-module@^1.0.0: version "1.0.1" + resolved "https://registry.npmjs.org/parent-module/-/parent-module-1.0.1.tgz" + integrity sha512-GQ2EWRpQV8/o+Aw8YqtfZZPfNRWZYkbidE9k5rpl/hC3vtHHBfGm2Ifi6qWV+coDGkrUKZAxE3Lot5kcsRlh+g== dependencies: callsites "^3.0.0" @@ -4449,7 +4671,9 @@ posthog-node@^3.6.2: rusha "^0.8.14" prebuild-install@^7.1.1: - version "7.1.1" + version "7.1.2" + resolved "https://registry.npmjs.org/prebuild-install/-/prebuild-install-7.1.2.tgz" + integrity sha512-UnNke3IQb6sgarcZIDU3gbMeTp/9SSU1DAIkil7PrqG1vZlBtY5msYccSKSHDqa3hNg436IXK+SNImReuA1wEQ== dependencies: detect-libc "^2.0.0" expand-template "^2.0.3" @@ -4466,6 +4690,8 @@ prebuild-install@^7.1.1: prelude-ls@^1.2.1: version "1.2.1" + resolved "https://registry.npmjs.org/prelude-ls/-/prelude-ls-1.2.1.tgz" + integrity sha512-vkcDPrRZo1QZLbn5RLGPpg/WmIQ65qoWWhcGKf/b5eplkkarX0m9z8ppCat4mlOqUsWpyNuYgO3VRyrYHSzX5g== pretty-format@^29.0.0, pretty-format@^29.7.0: version "29.7.0" @@ -4561,6 +4787,8 @@ querystringify@^2.1.1: queue-microtask@^1.2.2: version "1.2.3" + resolved "https://registry.npmjs.org/queue-microtask/-/queue-microtask-1.2.3.tgz" + integrity sha512-NuaNSa6flKT5JaSYQzJok04JzTL1CA6aGhv5rfLW3PgqA+M2ChpZQnAC8h8i4ZFkBS8X5RqkDBHA7r4hej3K9A== queue-tick@^1.0.1: version "1.0.1" @@ -4632,6 +4860,8 @@ regexp.prototype.flags@^1.5.2: repeat-string@^1.5.4: version "1.6.1" + resolved "https://registry.npmjs.org/repeat-string/-/repeat-string-1.6.1.tgz" + integrity sha512-PV0dzCYDNfRi1jCDbJzpW7jNNDRuCOG/jI5ctQcGKt/clZD+YcPS3yIlWuTJMmESC8aevCFmWJy5wjAFgNqN6w== replicate@^0.26.0: version "0.26.0" @@ -4685,6 +4915,8 @@ resolve-cwd@^3.0.0: resolve-from@^4.0.0: version "4.0.0" + resolved "https://registry.npmjs.org/resolve-from/-/resolve-from-4.0.0.tgz" + integrity sha512-pb/MYmXstAkysRFx8piNI1tGFNQIFA3vkE3Gq4EuA1dF6gHp/+vgZqsCGJapvy8N3Q+4o7FwvquPJcnZ7RYy4g== resolve-from@^5.0.0: version "5.0.0" @@ -4712,6 +4944,8 @@ retry@^0.12.0: reusify@^1.0.4: version "1.0.4" + resolved "https://registry.npmjs.org/reusify/-/reusify-1.0.4.tgz" + integrity sha512-U9nH88a3fc/ekCF1l0/UP1IosiuIjyTh7hBvXVMHYgVcfGvt897Xguj2UOLDeI5BG2m7/uwyaLVT6fbtCwTyzw== rimraf@^3.0.2: version "3.0.2" @@ -4727,6 +4961,8 @@ rrweb-cssom@^0.6.0: run-parallel@^1.1.9: version "1.2.0" + resolved "https://registry.npmjs.org/run-parallel/-/run-parallel-1.2.0.tgz" + integrity sha512-5l4VyZR86LZ/lDxZTR6jqL8AFE2S0IFLMP26AbjsLVADxHdhB/c0GUsH+y39UfCi3dzz8OlQuPmnaJOMoDHQBA== dependencies: queue-microtask "^1.2.2" @@ -4736,10 +4972,12 @@ rusha@^0.8.14: integrity sha512-cLgakCUf6PedEu15t8kbsjnwIFFR2D4RfL+W3iWFJ4iac7z4B0ZI8fxy4R3J956kAI68HclCFGL8MPoUVC3qVA== safe-array-concat@^1.1.0: - version "1.1.0" + version "1.1.2" + resolved "https://registry.npmjs.org/safe-array-concat/-/safe-array-concat-1.1.2.tgz" + integrity sha512-vj6RsCsWBCf19jIeHEfkRMw8DPiBb+DMXklQ/1SGDHOMlHdPUkZXFQ2YdplS23zESTijAcurb1aSgJA3AgMu1Q== dependencies: - call-bind "^1.0.5" - get-intrinsic "^1.2.2" + call-bind "^1.0.7" + get-intrinsic "^1.2.4" has-symbols "^1.0.3" isarray "^2.0.5" @@ -4806,14 +5044,16 @@ set-blocking@^2.0.0: integrity sha512-KiKBS8AnWGEyLzofFfmvKwpdPzqiy16LvQfK3yv/fVH7Bj13/wl3JSR1J+rfgRE9q7xUJK4qvgS8raSOeLUehw== set-function-length@^1.2.1: - version "1.2.1" + version "1.2.2" + resolved "https://registry.npmjs.org/set-function-length/-/set-function-length-1.2.2.tgz" + integrity sha512-pgRc4hJ4/sNjWCSS9AmnS40x3bNMDTknHgL5UaMBTMyJnU90EgWh1Rz+MC9eFu4BuN/UwZjKQuY/1v3rM7HMfg== dependencies: - define-data-property "^1.1.2" + define-data-property "^1.1.4" es-errors "^1.3.0" function-bind "^1.1.2" - get-intrinsic "^1.2.3" + get-intrinsic "^1.2.4" gopd "^1.0.1" - has-property-descriptors "^1.0.1" + has-property-descriptors "^1.0.2" set-function-name@^2.0.1: version "2.0.2" @@ -5018,8 +5258,10 @@ stack-utils@^2.0.3: stream-read-all@^3.0.1: version "3.0.1" + resolved "https://registry.npmjs.org/stream-read-all/-/stream-read-all-3.0.1.tgz" + integrity sha512-EWZT9XOceBPlVJRrYcykW8jyRSZYbkb/0ZK36uLEmoWVO5gxBOnntNTseNzfREsqxqdfEGQrD8SXQ3QWbBmq8A== -streamx@^2.15.0: +streamx@^2.13.0, streamx@^2.15.0: version "2.16.1" resolved "https://registry.npmjs.org/streamx/-/streamx-2.16.1.tgz" integrity sha512-m9QYj6WygWyWa3H1YY69amr4nVgy61xfjys7xO7kviL5rfIEc2naf+ewFiOA+aEJD7y0JO3h2GoiUv4TDwEGzQ== @@ -5089,6 +5331,8 @@ strip-ansi@^6.0.0, strip-ansi@^6.0.1: strip-bom@^3.0.0: version "3.0.0" + resolved "https://registry.npmjs.org/strip-bom/-/strip-bom-3.0.0.tgz" + integrity sha512-vavAMRXOgBVNF6nyEEmL3DBK19iRpDcoIwW+swQ+CbGiu7lju6t+JklA1MHweoWtadgt4ISVUsXLyDq34ddcwA== strip-bom@^4.0.0: version "4.0.0" @@ -5143,6 +5387,8 @@ symbol-tree@^3.2.4: table-layout@^3.0.0: version "3.0.2" + resolved "https://registry.npmjs.org/table-layout/-/table-layout-3.0.2.tgz" + integrity sha512-rpyNZYRw+/C+dYkcQ3Pr+rLxW4CfHpXjPDnG7lYhdRoUcZTUt+KEsX+94RGp/aVp/MQU35JCITv2T/beY4m+hw== dependencies: "@75lb/deep-merge" "^1.1.1" array-back "^6.2.2" @@ -5216,6 +5462,8 @@ test-exclude@^6.0.0: text-table@^0.2.0: version "0.2.0" + resolved "https://registry.npmjs.org/text-table/-/text-table-0.2.0.tgz" + integrity sha512-N+8UisAXDGk8PFXP4HAzVR9nbfmVJ3zYLAWiTIoqC5v5isinhr+r5uaO8+7r3BMfuNIufIsA7RdpVgacC2cSpw== tmpl@1.0.5: version "1.0.5" @@ -5265,7 +5513,9 @@ tr46@~0.0.3: integrity sha512-N3WMsuqV66lT30CrXNbEjx4GEwlow3v6rr4mCcv6prnfwhS01rkgyFdjPNBYd9br7LpXV1+Emh01fHnq2Gdgrw== tree-sitter-wasms@^0.1.6: - version "0.1.6" + version "0.1.7" + resolved "https://registry.npmjs.org/tree-sitter-wasms/-/tree-sitter-wasms-0.1.7.tgz" + integrity sha512-/EnmSDDqEnSnIuCqVhSOc14T8r792LmiztqlZMFSRg+4ACrgUWNLvEr2AUP1K76XCJrvuH8liSWfkdQpK41hIA== ts-jest@^29.1.1: version "29.1.2" @@ -5283,6 +5533,8 @@ ts-jest@^29.1.1: tsconfig-paths@^3.15.0: version "3.15.0" + resolved "https://registry.npmjs.org/tsconfig-paths/-/tsconfig-paths-3.15.0.tgz" + integrity sha512-2Ac2RgzDe/cn48GvOe3M+o82pEFewD3UPbyoUHHdKasHwJKjds4fLXWf/Ux5kATBKN20oaFGu+jbElp1pos0mg== dependencies: "@types/json5" "^0.0.29" json5 "^1.0.2" @@ -5291,6 +5543,8 @@ tsconfig-paths@^3.15.0: tslib@^2.5.3: version "2.6.2" + resolved "https://registry.npmjs.org/tslib/-/tslib-2.6.2.tgz" + integrity sha512-AEYxH93jGFPn/a2iVAwW87VuUIkR1FVUKB77NwMF7nBTDkDrrT/Hpt/IrCJ0QXhW27jTBDcf5ZY7w6RiqTMw2Q== tunnel-agent@^0.6.0: version "0.6.0" @@ -5306,6 +5560,8 @@ tweetnacl@^0.14.3, tweetnacl@~0.14.0: type-check@^0.4.0, type-check@~0.4.0: version "0.4.0" + resolved "https://registry.npmjs.org/type-check/-/type-check-0.4.0.tgz" + integrity sha512-XleUoc9uwGXqjWwXaUTZAmzMcFZ5858QA2vvx1Ur5xIcixXIP+8LnFDgRplU30us6teqdlskFfu+ae4K79Ooew== dependencies: prelude-ls "^1.2.1" @@ -5316,6 +5572,8 @@ type-detect@4.0.8: type-fest@^0.20.2: version "0.20.2" + resolved "https://registry.npmjs.org/type-fest/-/type-fest-0.20.2.tgz" + integrity sha512-Ne+eE4r0/iWnpAxD852z3A+N0Bt5RN//NjJwRd2VFHEmrywxf5vsZlh4R6lixl6B+wz/8d+maTSAkN1FIkI3LQ== type-fest@^0.21.3: version "0.21.3" @@ -5367,13 +5625,19 @@ typed-array-length@^1.0.5: possible-typed-array-names "^1.0.0" "typescript@>=4.3 <6": - version "5.3.3" + version "5.4.2" + resolved "https://registry.npmjs.org/typescript/-/typescript-5.4.2.tgz" + integrity sha512-+2/g0Fds1ERlP6JsakQQDXjZdZMM+rqpamFZJEKh4kwTIn3iDkgKtby0CeNd5ATNZ4Ry1ax15TMx0W2V+miizQ== typical@^4.0.0: version "4.0.0" + resolved "https://registry.npmjs.org/typical/-/typical-4.0.0.tgz" + integrity sha512-VAH4IvQ7BDFYglMd7BPRDfLgxZZX4O4TFcRDA6EN5X7erNJJq+McIEp8np9aVtxrCJ6qx4GTYVfOWNjcqwZgRw== typical@^7.1.1: version "7.1.1" + resolved "https://registry.npmjs.org/typical/-/typical-7.1.1.tgz" + integrity sha512-T+tKVNs6Wu7IWiAce5BgMd7OZfNYUndHwc5MknN+UHOudi7sGZzuHdCadllRuqJ3fPtgFtIH9+lt9qRv6lmpfA== uglify-js@^3.1.4: version "3.17.4" @@ -5467,18 +5731,18 @@ v8-to-istanbul@^9.0.1: convert-source-map "^2.0.0" vectordb@^0.4.3: - version "0.4.11" + version "0.4.12" + resolved "https://registry.npmjs.org/vectordb/-/vectordb-0.4.12.tgz" + integrity sha512-H2mFwZ87d3BcuX4yGx5RoW06amRZQ3W5u/FRTNc86rwVINuEEa+Ivsqng1i8hURHXoTDbF/0Y9qwCshySkeznQ== dependencies: - "@apache-arrow/ts" "^14.0.2" "@neon-rs/load" "^0.0.74" - apache-arrow "^14.0.2" axios "^1.4.0" optionalDependencies: - "@lancedb/vectordb-darwin-arm64" "0.4.11" - "@lancedb/vectordb-darwin-x64" "0.4.11" - "@lancedb/vectordb-linux-arm64-gnu" "0.4.11" - "@lancedb/vectordb-linux-x64-gnu" "0.4.11" - "@lancedb/vectordb-win32-x64-msvc" "0.4.11" + "@lancedb/vectordb-darwin-arm64" "0.4.12" + "@lancedb/vectordb-darwin-x64" "0.4.12" + "@lancedb/vectordb-linux-arm64-gnu" "0.4.12" + "@lancedb/vectordb-linux-x64-gnu" "0.4.12" + "@lancedb/vectordb-win32-x64-msvc" "0.4.12" verror@1.10.0: version "1.10.0" @@ -5604,6 +5868,8 @@ wordwrap@^1.0.0: wordwrapjs@^5.1.0: version "5.1.0" + resolved "https://registry.npmjs.org/wordwrapjs/-/wordwrapjs-5.1.0.tgz" + integrity sha512-JNjcULU2e4KJwUNv6CHgI46UvDGitb6dGryHajXTDiLgg1/RiGoPSDw4kZfYnwGtEXf2ZMeIewDQgFGzkCB2Sg== wrap-ansi@^7.0.0: version "7.0.0" diff --git a/extensions/intellij/src/main/kotlin/com/github/continuedev/continueintellijextension/autocomplete/AutocompleteService.kt b/extensions/intellij/src/main/kotlin/com/github/continuedev/continueintellijextension/autocomplete/AutocompleteService.kt index b7a851631..ecef2e490 100644 --- a/extensions/intellij/src/main/kotlin/com/github/continuedev/continueintellijextension/autocomplete/AutocompleteService.kt +++ b/extensions/intellij/src/main/kotlin/com/github/continuedev/continueintellijextension/autocomplete/AutocompleteService.kt @@ -3,6 +3,8 @@ package com.github.continuedev.continueintellijextension.autocomplete import com.github.continuedev.continueintellijextension.`continue`.uuid import com.github.continuedev.continueintellijextension.services.ContinuePluginService import com.google.gson.Gson +import com.intellij.openapi.application.ApplicationManager +import com.intellij.openapi.application.WriteAction import com.intellij.openapi.application.invokeLater import com.intellij.openapi.components.Service import com.intellij.openapi.components.service @@ -45,14 +47,21 @@ class AutocompleteService(private val project: Project) { "clipboardText" to "" ) project.service().coreMessenger?.request("autocomplete/complete", input, null, ({ response -> - val completion = response; - renderCompletion(editor, offset, response) - pendingCompletion = pendingCompletion?.copy(text = completion) + val completions = Gson().fromJson(response, List::class.java) + if (completions.isNotEmpty()) { + val completion = completions[0].toString() + renderCompletion(editor, offset, completion) + pendingCompletion = pendingCompletion?.copy(text = completion) + } })) } private fun renderCompletion(editor: Editor, offset: Int, text: String) { - editor.inlayModel.addInlineElement(offset, true, ContinueCustomElementRenderer(editor, text)) + ApplicationManager.getApplication().invokeLater { + WriteAction.run { + editor.inlayModel.addInlineElement(offset, true, ContinueCustomElementRenderer(editor, text)) + } + } } fun accept() { @@ -61,8 +70,12 @@ class AutocompleteService(private val project: Project) { val editor = completion.editor val offset = completion.offset editor.document.insertString(offset, text) - clearCompletions(editor) + editor.caretModel.moveToOffset(offset + text.length) + project.service().coreMessenger?.request("autocomplete/accept", completion.completionId, null, ({})) + invokeLater { + clearCompletions(editor) + } } private fun cancelCompletion(completion: PendingCompletion) { diff --git a/extensions/intellij/src/main/kotlin/com/github/continuedev/continueintellijextension/continue/CoreMessenger.kt b/extensions/intellij/src/main/kotlin/com/github/continuedev/continueintellijextension/continue/CoreMessenger.kt index 0bea9be37..ae74a89e1 100644 --- a/extensions/intellij/src/main/kotlin/com/github/continuedev/continueintellijextension/continue/CoreMessenger.kt +++ b/extensions/intellij/src/main/kotlin/com/github/continuedev/continueintellijextension/continue/CoreMessenger.kt @@ -160,7 +160,12 @@ class CoreMessenger(esbuildPath: String, continueCorePath: String, ideProtocolCl while (true) { val line = reader.readLine() if (line != null && line.isNotEmpty()) { - handleMessage(line) + try { + handleMessage(line) + } catch (e: Exception) { + println("Error handling message: $line") + println(e) + } } else { Thread.sleep(100) } diff --git a/extensions/intellij/src/main/kotlin/com/github/continuedev/continueintellijextension/continue/IdeProtocolClient.kt b/extensions/intellij/src/main/kotlin/com/github/continuedev/continueintellijextension/continue/IdeProtocolClient.kt index bb7646e58..33cd33d7c 100644 --- a/extensions/intellij/src/main/kotlin/com/github/continuedev/continueintellijextension/continue/IdeProtocolClient.kt +++ b/extensions/intellij/src/main/kotlin/com/github/continuedev/continueintellijextension/continue/IdeProtocolClient.kt @@ -526,6 +526,15 @@ class IdeProtocolClient ( fun readFile(filepath: String): String { try { + val virtualFile = LocalFileSystem.getInstance().findFileByPath(filepath) + if (virtualFile != null && FileDocumentManager.getInstance().isFileModified(virtualFile)) { + val document = FileDocumentManager.getInstance().getDocument(virtualFile) + if (document != null) { + return document.text + } + } + + val file = File(filepath) if (!file.exists()) return "" diff --git a/pkg/package-lock.json b/pkg/package-lock.json index d0b5376ea..845e62db8 100644 --- a/pkg/package-lock.json +++ b/pkg/package-lock.json @@ -34,11 +34,17 @@ "version": "1.0.0", "license": "Apache-2.0", "dependencies": { + "@mozilla/readability": "^0.5.0", "@octokit/rest": "^20.0.2", + "@types/jsdom": "^21.1.6", + "@types/mozilla-readability": "^0.2.1", "@types/node-fetch": "^2.6.11", "@xenova/transformers": "^2.14.0", + "adf-to-md": "^1.1.0", + "axios": "^1.6.7", "cheerio": "^1.0.0-rc.12", "commander": "^12.0.0", + "dbinfoz": "^0.1.4", "dotenv": "^16.3.1", "fastest-levenshtein": "^1.0.16", "follow-redirects": "^1.15.5", @@ -46,20 +52,24 @@ "http-proxy-agent": "^7.0.1", "https-proxy-agent": "^7.0.3", "js-tiktoken": "^1.0.8", - "llm-code-highlighter": "^0.0.5", + "jsdom": "^24.0.0", + "llama-tokenizer-js": "^1.1.3", + "llm-code-highlighter": "^0.0.14", "node-fetch": "^3.3.2", "node-html-markdown": "^1.3.0", "ollama": "^0.4.6", "openai": "^4.20.1", + "pg": "^8.11.3", "posthog-node": "^3.6.2", "replicate": "^0.26.0", + "request": "^2.88.2", "socket.io-client": "^4.7.3", "sqlite": "^5.1.1", "sqlite3": "^5.1.7", "tree-sitter-wasms": "^0.1.6", "uuid": "^9.0.1", "vectordb": "^0.4.3", - "web-tree-sitter": "^0.20.8" + "web-tree-sitter": "^0.21.0" }, "devDependencies": { "@types/follow-redirects": "^1.14.4", @@ -77,6 +87,7 @@ "version": "1.1.1", "resolved": "https://registry.npmjs.org/@75lb/deep-merge/-/deep-merge-1.1.1.tgz", "integrity": "sha512-xvgv6pkMGBA6GwdyJbNAnDmfAIR/DfWhrj9jgWh3TY7gRm3KO46x/GPjRg6wJ0nOepwqrNxFfojebh0Df4h4Tw==", + "peer": true, "dependencies": { "lodash.assignwith": "^4.2.0", "typical": "^7.1.1" @@ -89,6 +100,7 @@ "version": "7.1.1", "resolved": "https://registry.npmjs.org/typical/-/typical-7.1.1.tgz", "integrity": "sha512-T+tKVNs6Wu7IWiAce5BgMd7OZfNYUndHwc5MknN+UHOudi7sGZzuHdCadllRuqJ3fPtgFtIH9+lt9qRv6lmpfA==", + "peer": true, "engines": { "node": ">=12.17" } @@ -97,6 +109,7 @@ "version": "14.0.2", "resolved": "https://registry.npmjs.org/@apache-arrow/ts/-/ts-14.0.2.tgz", "integrity": "sha512-CtwAvLkK0CZv7xsYeCo91ml6PvlfzAmAJZkRYuz2GNBwfYufj5SVi0iuSMwIMkcU/szVwvLdzORSLa5PlF/2ug==", + "peer": true, "dependencies": { "@types/command-line-args": "5.2.0", "@types/command-line-usage": "5.0.2", @@ -169,9 +182,9 @@ } }, "node_modules/@esbuild/aix-ppc64": { - "version": "0.19.11", - "resolved": "https://registry.npmjs.org/@esbuild/aix-ppc64/-/aix-ppc64-0.19.11.tgz", - "integrity": "sha512-FnzU0LyE3ySQk7UntJO4+qIiQgI7KoODnZg5xzXIrFJlKd2P2gwHsHY4927xj9y5PJmJSzULiUCWmv7iWnNa7g==", + "version": "0.19.12", + "resolved": "https://registry.npmjs.org/@esbuild/aix-ppc64/-/aix-ppc64-0.19.12.tgz", + "integrity": "sha512-bmoCYyWdEL3wDQIVbcyzRyeKLgk2WtWLTWz1ZIAZF/EGbNOwSA6ew3PftJ1PqMiOOGu0OyFMzG53L0zqIpPeNA==", "cpu": [ "ppc64" ], @@ -185,9 +198,9 @@ } }, "node_modules/@esbuild/android-arm": { - "version": "0.19.11", - "resolved": "https://registry.npmjs.org/@esbuild/android-arm/-/android-arm-0.19.11.tgz", - "integrity": "sha512-5OVapq0ClabvKvQ58Bws8+wkLCV+Rxg7tUVbo9xu034Nm536QTII4YzhaFriQ7rMrorfnFKUsArD2lqKbFY4vw==", + "version": "0.19.12", + "resolved": "https://registry.npmjs.org/@esbuild/android-arm/-/android-arm-0.19.12.tgz", + "integrity": "sha512-qg/Lj1mu3CdQlDEEiWrlC4eaPZ1KztwGJ9B6J+/6G+/4ewxJg7gqj8eVYWvao1bXrqGiW2rsBZFSX3q2lcW05w==", "cpu": [ "arm" ], @@ -201,9 +214,9 @@ } }, "node_modules/@esbuild/android-arm64": { - "version": "0.19.11", - "resolved": "https://registry.npmjs.org/@esbuild/android-arm64/-/android-arm64-0.19.11.tgz", - "integrity": "sha512-aiu7K/5JnLj//KOnOfEZ0D90obUkRzDMyqd/wNAUQ34m4YUPVhRZpnqKV9uqDGxT7cToSDnIHsGooyIczu9T+Q==", + "version": "0.19.12", + "resolved": "https://registry.npmjs.org/@esbuild/android-arm64/-/android-arm64-0.19.12.tgz", + "integrity": "sha512-P0UVNGIienjZv3f5zq0DP3Nt2IE/3plFzuaS96vihvD0Hd6H/q4WXUGpCxD/E8YrSXfNyRPbpTq+T8ZQioSuPA==", "cpu": [ "arm64" ], @@ -217,9 +230,9 @@ } }, "node_modules/@esbuild/android-x64": { - "version": "0.19.11", - "resolved": "https://registry.npmjs.org/@esbuild/android-x64/-/android-x64-0.19.11.tgz", - "integrity": "sha512-eccxjlfGw43WYoY9QgB82SgGgDbibcqyDTlk3l3C0jOVHKxrjdc9CTwDUQd0vkvYg5um0OH+GpxYvp39r+IPOg==", + "version": "0.19.12", + "resolved": "https://registry.npmjs.org/@esbuild/android-x64/-/android-x64-0.19.12.tgz", + "integrity": "sha512-3k7ZoUW6Q6YqhdhIaq/WZ7HwBpnFBlW905Fa4s4qWJyiNOgT1dOqDiVAQFwBH7gBRZr17gLrlFCRzF6jFh7Kew==", "cpu": [ "x64" ], @@ -233,9 +246,9 @@ } }, "node_modules/@esbuild/darwin-arm64": { - "version": "0.19.11", - "resolved": "https://registry.npmjs.org/@esbuild/darwin-arm64/-/darwin-arm64-0.19.11.tgz", - "integrity": "sha512-ETp87DRWuSt9KdDVkqSoKoLFHYTrkyz2+65fj9nfXsaV3bMhTCjtQfw3y+um88vGRKRiF7erPrh/ZuIdLUIVxQ==", + "version": "0.19.12", + "resolved": "https://registry.npmjs.org/@esbuild/darwin-arm64/-/darwin-arm64-0.19.12.tgz", + "integrity": "sha512-B6IeSgZgtEzGC42jsI+YYu9Z3HKRxp8ZT3cqhvliEHovq8HSX2YX8lNocDn79gCKJXOSaEot9MVYky7AKjCs8g==", "cpu": [ "arm64" ], @@ -249,9 +262,9 @@ } }, "node_modules/@esbuild/darwin-x64": { - "version": "0.19.11", - "resolved": "https://registry.npmjs.org/@esbuild/darwin-x64/-/darwin-x64-0.19.11.tgz", - "integrity": "sha512-fkFUiS6IUK9WYUO/+22omwetaSNl5/A8giXvQlcinLIjVkxwTLSktbF5f/kJMftM2MJp9+fXqZ5ezS7+SALp4g==", + "version": "0.19.12", + "resolved": "https://registry.npmjs.org/@esbuild/darwin-x64/-/darwin-x64-0.19.12.tgz", + "integrity": "sha512-hKoVkKzFiToTgn+41qGhsUJXFlIjxI/jSYeZf3ugemDYZldIXIxhvwN6erJGlX4t5h417iFuheZ7l+YVn05N3A==", "cpu": [ "x64" ], @@ -265,9 +278,9 @@ } }, "node_modules/@esbuild/freebsd-arm64": { - "version": "0.19.11", - "resolved": "https://registry.npmjs.org/@esbuild/freebsd-arm64/-/freebsd-arm64-0.19.11.tgz", - "integrity": "sha512-lhoSp5K6bxKRNdXUtHoNc5HhbXVCS8V0iZmDvyWvYq9S5WSfTIHU2UGjcGt7UeS6iEYp9eeymIl5mJBn0yiuxA==", + "version": "0.19.12", + "resolved": "https://registry.npmjs.org/@esbuild/freebsd-arm64/-/freebsd-arm64-0.19.12.tgz", + "integrity": "sha512-4aRvFIXmwAcDBw9AueDQ2YnGmz5L6obe5kmPT8Vd+/+x/JMVKCgdcRwH6APrbpNXsPz+K653Qg8HB/oXvXVukA==", "cpu": [ "arm64" ], @@ -281,9 +294,9 @@ } }, "node_modules/@esbuild/freebsd-x64": { - "version": "0.19.11", - "resolved": "https://registry.npmjs.org/@esbuild/freebsd-x64/-/freebsd-x64-0.19.11.tgz", - "integrity": "sha512-JkUqn44AffGXitVI6/AbQdoYAq0TEullFdqcMY/PCUZ36xJ9ZJRtQabzMA+Vi7r78+25ZIBosLTOKnUXBSi1Kw==", + "version": "0.19.12", + "resolved": "https://registry.npmjs.org/@esbuild/freebsd-x64/-/freebsd-x64-0.19.12.tgz", + "integrity": "sha512-EYoXZ4d8xtBoVN7CEwWY2IN4ho76xjYXqSXMNccFSx2lgqOG/1TBPW0yPx1bJZk94qu3tX0fycJeeQsKovA8gg==", "cpu": [ "x64" ], @@ -297,9 +310,9 @@ } }, "node_modules/@esbuild/linux-arm": { - "version": "0.19.11", - "resolved": "https://registry.npmjs.org/@esbuild/linux-arm/-/linux-arm-0.19.11.tgz", - "integrity": "sha512-3CRkr9+vCV2XJbjwgzjPtO8T0SZUmRZla+UL1jw+XqHZPkPgZiyWvbDvl9rqAN8Zl7qJF0O/9ycMtjU67HN9/Q==", + "version": "0.19.12", + "resolved": "https://registry.npmjs.org/@esbuild/linux-arm/-/linux-arm-0.19.12.tgz", + "integrity": "sha512-J5jPms//KhSNv+LO1S1TX1UWp1ucM6N6XuL6ITdKWElCu8wXP72l9MM0zDTzzeikVyqFE6U8YAV9/tFyj0ti+w==", "cpu": [ "arm" ], @@ -313,9 +326,9 @@ } }, "node_modules/@esbuild/linux-arm64": { - "version": "0.19.11", - "resolved": "https://registry.npmjs.org/@esbuild/linux-arm64/-/linux-arm64-0.19.11.tgz", - "integrity": "sha512-LneLg3ypEeveBSMuoa0kwMpCGmpu8XQUh+mL8XXwoYZ6Be2qBnVtcDI5azSvh7vioMDhoJFZzp9GWp9IWpYoUg==", + "version": "0.19.12", + "resolved": "https://registry.npmjs.org/@esbuild/linux-arm64/-/linux-arm64-0.19.12.tgz", + "integrity": "sha512-EoTjyYyLuVPfdPLsGVVVC8a0p1BFFvtpQDB/YLEhaXyf/5bczaGeN15QkR+O4S5LeJ92Tqotve7i1jn35qwvdA==", "cpu": [ "arm64" ], @@ -329,9 +342,9 @@ } }, "node_modules/@esbuild/linux-ia32": { - "version": "0.19.11", - "resolved": "https://registry.npmjs.org/@esbuild/linux-ia32/-/linux-ia32-0.19.11.tgz", - "integrity": "sha512-caHy++CsD8Bgq2V5CodbJjFPEiDPq8JJmBdeyZ8GWVQMjRD0sU548nNdwPNvKjVpamYYVL40AORekgfIubwHoA==", + "version": "0.19.12", + "resolved": "https://registry.npmjs.org/@esbuild/linux-ia32/-/linux-ia32-0.19.12.tgz", + "integrity": "sha512-Thsa42rrP1+UIGaWz47uydHSBOgTUnwBwNq59khgIwktK6x60Hivfbux9iNR0eHCHzOLjLMLfUMLCypBkZXMHA==", "cpu": [ "ia32" ], @@ -345,9 +358,9 @@ } }, "node_modules/@esbuild/linux-loong64": { - "version": "0.19.11", - "resolved": "https://registry.npmjs.org/@esbuild/linux-loong64/-/linux-loong64-0.19.11.tgz", - "integrity": "sha512-ppZSSLVpPrwHccvC6nQVZaSHlFsvCQyjnvirnVjbKSHuE5N24Yl8F3UwYUUR1UEPaFObGD2tSvVKbvR+uT1Nrg==", + "version": "0.19.12", + "resolved": "https://registry.npmjs.org/@esbuild/linux-loong64/-/linux-loong64-0.19.12.tgz", + "integrity": "sha512-LiXdXA0s3IqRRjm6rV6XaWATScKAXjI4R4LoDlvO7+yQqFdlr1Bax62sRwkVvRIrwXxvtYEHHI4dm50jAXkuAA==", "cpu": [ "loong64" ], @@ -361,9 +374,9 @@ } }, "node_modules/@esbuild/linux-mips64el": { - "version": "0.19.11", - "resolved": "https://registry.npmjs.org/@esbuild/linux-mips64el/-/linux-mips64el-0.19.11.tgz", - "integrity": "sha512-B5x9j0OgjG+v1dF2DkH34lr+7Gmv0kzX6/V0afF41FkPMMqaQ77pH7CrhWeR22aEeHKaeZVtZ6yFwlxOKPVFyg==", + "version": "0.19.12", + "resolved": "https://registry.npmjs.org/@esbuild/linux-mips64el/-/linux-mips64el-0.19.12.tgz", + "integrity": "sha512-fEnAuj5VGTanfJ07ff0gOA6IPsvrVHLVb6Lyd1g2/ed67oU1eFzL0r9WL7ZzscD+/N6i3dWumGE1Un4f7Amf+w==", "cpu": [ "mips64el" ], @@ -377,9 +390,9 @@ } }, "node_modules/@esbuild/linux-ppc64": { - "version": "0.19.11", - "resolved": "https://registry.npmjs.org/@esbuild/linux-ppc64/-/linux-ppc64-0.19.11.tgz", - "integrity": "sha512-MHrZYLeCG8vXblMetWyttkdVRjQlQUb/oMgBNurVEnhj4YWOr4G5lmBfZjHYQHHN0g6yDmCAQRR8MUHldvvRDA==", + "version": "0.19.12", + "resolved": "https://registry.npmjs.org/@esbuild/linux-ppc64/-/linux-ppc64-0.19.12.tgz", + "integrity": "sha512-nYJA2/QPimDQOh1rKWedNOe3Gfc8PabU7HT3iXWtNUbRzXS9+vgB0Fjaqr//XNbd82mCxHzik2qotuI89cfixg==", "cpu": [ "ppc64" ], @@ -393,9 +406,9 @@ } }, "node_modules/@esbuild/linux-riscv64": { - "version": "0.19.11", - "resolved": "https://registry.npmjs.org/@esbuild/linux-riscv64/-/linux-riscv64-0.19.11.tgz", - "integrity": "sha512-f3DY++t94uVg141dozDu4CCUkYW+09rWtaWfnb3bqe4w5NqmZd6nPVBm+qbz7WaHZCoqXqHz5p6CM6qv3qnSSQ==", + "version": "0.19.12", + "resolved": "https://registry.npmjs.org/@esbuild/linux-riscv64/-/linux-riscv64-0.19.12.tgz", + "integrity": "sha512-2MueBrlPQCw5dVJJpQdUYgeqIzDQgw3QtiAHUC4RBz9FXPrskyyU3VI1hw7C0BSKB9OduwSJ79FTCqtGMWqJHg==", "cpu": [ "riscv64" ], @@ -409,9 +422,9 @@ } }, "node_modules/@esbuild/linux-s390x": { - "version": "0.19.11", - "resolved": "https://registry.npmjs.org/@esbuild/linux-s390x/-/linux-s390x-0.19.11.tgz", - "integrity": "sha512-A5xdUoyWJHMMlcSMcPGVLzYzpcY8QP1RtYzX5/bS4dvjBGVxdhuiYyFwp7z74ocV7WDc0n1harxmpq2ePOjI0Q==", + "version": "0.19.12", + "resolved": "https://registry.npmjs.org/@esbuild/linux-s390x/-/linux-s390x-0.19.12.tgz", + "integrity": "sha512-+Pil1Nv3Umes4m3AZKqA2anfhJiVmNCYkPchwFJNEJN5QxmTs1uzyy4TvmDrCRNT2ApwSari7ZIgrPeUx4UZDg==", "cpu": [ "s390x" ], @@ -425,9 +438,9 @@ } }, "node_modules/@esbuild/linux-x64": { - "version": "0.19.11", - "resolved": "https://registry.npmjs.org/@esbuild/linux-x64/-/linux-x64-0.19.11.tgz", - "integrity": "sha512-grbyMlVCvJSfxFQUndw5mCtWs5LO1gUlwP4CDi4iJBbVpZcqLVT29FxgGuBJGSzyOxotFG4LoO5X+M1350zmPA==", + "version": "0.19.12", + "resolved": "https://registry.npmjs.org/@esbuild/linux-x64/-/linux-x64-0.19.12.tgz", + "integrity": "sha512-B71g1QpxfwBvNrfyJdVDexenDIt1CiDN1TIXLbhOw0KhJzE78KIFGX6OJ9MrtC0oOqMWf+0xop4qEU8JrJTwCg==", "cpu": [ "x64" ], @@ -441,9 +454,9 @@ } }, "node_modules/@esbuild/netbsd-x64": { - "version": "0.19.11", - "resolved": "https://registry.npmjs.org/@esbuild/netbsd-x64/-/netbsd-x64-0.19.11.tgz", - "integrity": "sha512-13jvrQZJc3P230OhU8xgwUnDeuC/9egsjTkXN49b3GcS5BKvJqZn86aGM8W9pd14Kd+u7HuFBMVtrNGhh6fHEQ==", + "version": "0.19.12", + "resolved": "https://registry.npmjs.org/@esbuild/netbsd-x64/-/netbsd-x64-0.19.12.tgz", + "integrity": "sha512-3ltjQ7n1owJgFbuC61Oj++XhtzmymoCihNFgT84UAmJnxJfm4sYCiSLTXZtE00VWYpPMYc+ZQmB6xbSdVh0JWA==", "cpu": [ "x64" ], @@ -457,9 +470,9 @@ } }, "node_modules/@esbuild/openbsd-x64": { - "version": "0.19.11", - "resolved": "https://registry.npmjs.org/@esbuild/openbsd-x64/-/openbsd-x64-0.19.11.tgz", - "integrity": "sha512-ysyOGZuTp6SNKPE11INDUeFVVQFrhcNDVUgSQVDzqsqX38DjhPEPATpid04LCoUr2WXhQTEZ8ct/EgJCUDpyNw==", + "version": "0.19.12", + "resolved": "https://registry.npmjs.org/@esbuild/openbsd-x64/-/openbsd-x64-0.19.12.tgz", + "integrity": "sha512-RbrfTB9SWsr0kWmb9srfF+L933uMDdu9BIzdA7os2t0TXhCRjrQyCeOt6wVxr79CKD4c+p+YhCj31HBkYcXebw==", "cpu": [ "x64" ], @@ -473,9 +486,9 @@ } }, "node_modules/@esbuild/sunos-x64": { - "version": "0.19.11", - "resolved": "https://registry.npmjs.org/@esbuild/sunos-x64/-/sunos-x64-0.19.11.tgz", - "integrity": "sha512-Hf+Sad9nVwvtxy4DXCZQqLpgmRTQqyFyhT3bZ4F2XlJCjxGmRFF0Shwn9rzhOYRB61w9VMXUkxlBy56dk9JJiQ==", + "version": "0.19.12", + "resolved": "https://registry.npmjs.org/@esbuild/sunos-x64/-/sunos-x64-0.19.12.tgz", + "integrity": "sha512-HKjJwRrW8uWtCQnQOz9qcU3mUZhTUQvi56Q8DPTLLB+DawoiQdjsYq+j+D3s9I8VFtDr+F9CjgXKKC4ss89IeA==", "cpu": [ "x64" ], @@ -489,9 +502,9 @@ } }, "node_modules/@esbuild/win32-arm64": { - "version": "0.19.11", - "resolved": "https://registry.npmjs.org/@esbuild/win32-arm64/-/win32-arm64-0.19.11.tgz", - "integrity": "sha512-0P58Sbi0LctOMOQbpEOvOL44Ne0sqbS0XWHMvvrg6NE5jQ1xguCSSw9jQeUk2lfrXYsKDdOe6K+oZiwKPilYPQ==", + "version": "0.19.12", + "resolved": "https://registry.npmjs.org/@esbuild/win32-arm64/-/win32-arm64-0.19.12.tgz", + "integrity": "sha512-URgtR1dJnmGvX864pn1B2YUYNzjmXkuJOIqG2HdU62MVS4EHpU2946OZoTMnRUHklGtJdJZ33QfzdjGACXhn1A==", "cpu": [ "arm64" ], @@ -505,9 +518,9 @@ } }, "node_modules/@esbuild/win32-ia32": { - "version": "0.19.11", - "resolved": "https://registry.npmjs.org/@esbuild/win32-ia32/-/win32-ia32-0.19.11.tgz", - "integrity": "sha512-6YOrWS+sDJDmshdBIQU+Uoyh7pQKrdykdefC1avn76ss5c+RN6gut3LZA4E2cH5xUEp5/cA0+YxRaVtRAb0xBg==", + "version": "0.19.12", + "resolved": "https://registry.npmjs.org/@esbuild/win32-ia32/-/win32-ia32-0.19.12.tgz", + "integrity": "sha512-+ZOE6pUkMOJfmxmBZElNOx72NKpIa/HFOMGzu8fqzQJ5kgf6aTGrcJaFsNiVMH4JKpMipyK+7k0n2UXN7a8YKQ==", "cpu": [ "ia32" ], @@ -521,9 +534,9 @@ } }, "node_modules/@esbuild/win32-x64": { - "version": "0.19.11", - "resolved": "https://registry.npmjs.org/@esbuild/win32-x64/-/win32-x64-0.19.11.tgz", - "integrity": "sha512-vfkhltrjCAb603XaFhqhAF4LGDi2M4OrCRrFusyQ+iTLQ/o60QQXxc9cZC/FFpihBI9N1Grn6SMKVJ4KP7Fuiw==", + "version": "0.19.12", + "resolved": "https://registry.npmjs.org/@esbuild/win32-x64/-/win32-x64-0.19.12.tgz", + "integrity": "sha512-T1QyPSDCyMXaO3pzBkF96E8xMkiRYbUEZADd29SyPGabqxMViNoii+NcK7eWJAEoU6RZyEm5lVSIjTmcdoB9HA==", "cpu": [ "x64" ], @@ -537,32 +550,32 @@ } }, "node_modules/@jridgewell/gen-mapping": { - "version": "0.3.3", - "resolved": "https://registry.npmjs.org/@jridgewell/gen-mapping/-/gen-mapping-0.3.3.tgz", - "integrity": "sha512-HLhSWOLRi875zjjMG/r+Nv0oCW8umGb0BgEhyX3dDX3egwZtB8PqLnjz3yedt8R5StBrzcg4aBpnh8UA9D1BoQ==", + "version": "0.3.5", + "resolved": "https://registry.npmjs.org/@jridgewell/gen-mapping/-/gen-mapping-0.3.5.tgz", + "integrity": "sha512-IzL8ZoEDIBRWEzlCcRhOaCupYyN5gdIK+Q6fbFdPDg6HqX6jpkItn7DFIpW9LQzXG6Df9sA7+OKnq0qlz/GaQg==", "dev": true, "dependencies": { - "@jridgewell/set-array": "^1.0.1", + "@jridgewell/set-array": "^1.2.1", "@jridgewell/sourcemap-codec": "^1.4.10", - "@jridgewell/trace-mapping": "^0.3.9" + "@jridgewell/trace-mapping": "^0.3.24" }, "engines": { "node": ">=6.0.0" } }, "node_modules/@jridgewell/resolve-uri": { - "version": "3.1.1", - "resolved": "https://registry.npmjs.org/@jridgewell/resolve-uri/-/resolve-uri-3.1.1.tgz", - "integrity": "sha512-dSYZh7HhCDtCKm4QakX0xFpsRDqjjtZf/kjI/v3T3Nwt5r8/qz/M19F9ySyOqU94SXBmeG9ttTul+YnR4LOxFA==", + "version": "3.1.2", + "resolved": "https://registry.npmjs.org/@jridgewell/resolve-uri/-/resolve-uri-3.1.2.tgz", + "integrity": "sha512-bRISgCIjP20/tbWSPWMEi54QVPRZExkuD9lJL+UIxUKtwVJA8wW1Trb1jMs1RFXo1CBTNZ/5hpC9QvmKWdopKw==", "dev": true, "engines": { "node": ">=6.0.0" } }, "node_modules/@jridgewell/set-array": { - "version": "1.1.2", - "resolved": "https://registry.npmjs.org/@jridgewell/set-array/-/set-array-1.1.2.tgz", - "integrity": "sha512-xnkseuNADM0gt2bs+BvhO0p78Mk762YnZdsuzFV018NoG1Sj1SCQvpSqa7XUaTam5vAGasABV9qXASMKnFMwMw==", + "version": "1.2.1", + "resolved": "https://registry.npmjs.org/@jridgewell/set-array/-/set-array-1.2.1.tgz", + "integrity": "sha512-R8gLRTZeyp03ymzP/6Lil/28tGeGEzhx1q2k703KGWRAI1VdvPIXdG70VJc2pAMw3NA6JKL5hhFu1sJX0Mnn/A==", "dev": true, "engines": { "node": ">=6.0.0" @@ -575,9 +588,9 @@ "dev": true }, "node_modules/@jridgewell/trace-mapping": { - "version": "0.3.21", - "resolved": "https://registry.npmjs.org/@jridgewell/trace-mapping/-/trace-mapping-0.3.21.tgz", - "integrity": "sha512-SRfKmRe1KvYnxjEMtxEr+J4HIeMX5YBg/qhRHpxEIGjhX1rshcHlnFUE9K0GazhVKWM7B+nARSkV8LuvJdJ5/g==", + "version": "0.3.25", + "resolved": "https://registry.npmjs.org/@jridgewell/trace-mapping/-/trace-mapping-0.3.25.tgz", + "integrity": "sha512-vNk6aEwybGtawWmy/PzwnGDOjCkLWSD2wqvjGGAgOAwCGWySYXfYoxt00IJkTF+8Lb57DwOb3Aa0o9CApepiYQ==", "dev": true, "dependencies": { "@jridgewell/resolve-uri": "^3.1.0", @@ -585,9 +598,9 @@ } }, "node_modules/@lancedb/vectordb-darwin-arm64": { - "version": "0.4.10", - "resolved": "https://registry.npmjs.org/@lancedb/vectordb-darwin-arm64/-/vectordb-darwin-arm64-0.4.10.tgz", - "integrity": "sha512-y/uHOGb0g15pvqv5tdTyZ6oN+0QVpBmZDzKFWW6pPbuSZjB2uPqcs+ti0RB+AUdmS21kavVQqaNsw/HLKEGrHA==", + "version": "0.4.12", + "resolved": "https://registry.npmjs.org/@lancedb/vectordb-darwin-arm64/-/vectordb-darwin-arm64-0.4.12.tgz", + "integrity": "sha512-38/rkJRlWXkPWXuj9onzvbrhnIWcIUQjgEp5G9v5ixPosBowm7A4j8e2Q8CJMsVSNcVX2JLqwWVldiWegZFuYw==", "cpu": [ "arm64" ], @@ -597,9 +610,9 @@ ] }, "node_modules/@lancedb/vectordb-darwin-x64": { - "version": "0.4.10", - "resolved": "https://registry.npmjs.org/@lancedb/vectordb-darwin-x64/-/vectordb-darwin-x64-0.4.10.tgz", - "integrity": "sha512-XbfR58OkQpAe0xMSTrwJh9ZjGSzG9EZ7zwO6HfYem8PxcLYAcC6eWRWoSG/T0uObyrPTcYYyvHsp0eNQWYBFAQ==", + "version": "0.4.12", + "resolved": "https://registry.npmjs.org/@lancedb/vectordb-darwin-x64/-/vectordb-darwin-x64-0.4.12.tgz", + "integrity": "sha512-psE48dztyO450hXWdv9Rl9aayM2HQ1uF9wErfC0gKmDUh1N0NdVq2viDuFpZxnmCis/nvGwKlYiYT9OnYNCJ9g==", "cpu": [ "x64" ], @@ -609,9 +622,9 @@ ] }, "node_modules/@lancedb/vectordb-linux-arm64-gnu": { - "version": "0.4.10", - "resolved": "https://registry.npmjs.org/@lancedb/vectordb-linux-arm64-gnu/-/vectordb-linux-arm64-gnu-0.4.10.tgz", - "integrity": "sha512-x40WKH9b+KxorRmKr9G7fv8p5mMj8QJQvRMA0v6v+nbZHr2FLlAZV+9mvhHOnm4AGIkPP5335cUgv6Qz6hgwkQ==", + "version": "0.4.12", + "resolved": "https://registry.npmjs.org/@lancedb/vectordb-linux-arm64-gnu/-/vectordb-linux-arm64-gnu-0.4.12.tgz", + "integrity": "sha512-xwkgF6MiF5aAdG9JG8v4ke652YxUJrhs9z4OrsEfrENnvsIQd2C5UyKMepVLdvij4BI/XPFRFWXdjPvP7S9rTA==", "cpu": [ "arm64" ], @@ -621,9 +634,9 @@ ] }, "node_modules/@lancedb/vectordb-linux-x64-gnu": { - "version": "0.4.10", - "resolved": "https://registry.npmjs.org/@lancedb/vectordb-linux-x64-gnu/-/vectordb-linux-x64-gnu-0.4.10.tgz", - "integrity": "sha512-CTGPpuzlqq2nVjUxI9gAJOT1oBANIovtIaFsOmBSnEAHgX7oeAxKy2b6L/kJzsgqSzvR5vfLwYcWFrr6ZmBxSA==", + "version": "0.4.12", + "resolved": "https://registry.npmjs.org/@lancedb/vectordb-linux-x64-gnu/-/vectordb-linux-x64-gnu-0.4.12.tgz", + "integrity": "sha512-gJqYR0aymrS+C60xc4EQPzmQ5/69XfeFv2ofBvAj7qW+c6BcnoAcfVl+7s1IrcWeGz251sm5cD5Lx4AzJd89dA==", "cpu": [ "x64" ], @@ -633,9 +646,9 @@ ] }, "node_modules/@lancedb/vectordb-win32-x64-msvc": { - "version": "0.4.10", - "resolved": "https://registry.npmjs.org/@lancedb/vectordb-win32-x64-msvc/-/vectordb-win32-x64-msvc-0.4.10.tgz", - "integrity": "sha512-Fd7r74coZyrKzkfXg4WthqOL+uKyJyPTia6imcrMNqKOlTGdKmHf02Qi2QxWZrFaabkRYo4Tpn5FeRJ3yYX8CA==", + "version": "0.4.12", + "resolved": "https://registry.npmjs.org/@lancedb/vectordb-win32-x64-msvc/-/vectordb-win32-x64-msvc-0.4.12.tgz", + "integrity": "sha512-LhCzpyEeBUyO6L2fuVqeP3mW8kYDryyU9PNqcM01m88sZB1Do6AlwiM+GjPRQ0SpzD0LK9oxQqSmJrdcNGqjbw==", "cpu": [ "x64" ], @@ -735,47 +748,47 @@ } }, "node_modules/@octokit/openapi-types": { - "version": "19.1.0", - "resolved": "https://registry.npmjs.org/@octokit/openapi-types/-/openapi-types-19.1.0.tgz", - "integrity": "sha512-6G+ywGClliGQwRsjvqVYpklIfa7oRPA0vyhPQG/1Feh+B+wU0vGH1JiJ5T25d3g1JZYBHzR2qefLi9x8Gt+cpw==" + "version": "20.0.0", + "resolved": "https://registry.npmjs.org/@octokit/openapi-types/-/openapi-types-20.0.0.tgz", + "integrity": "sha512-EtqRBEjp1dL/15V7WiX5LJMIxxkdiGJnabzYx5Apx4FkQIFgAfKumXeYAqqJCj1s+BMX4cPFIFC4OLCR6stlnA==" }, "node_modules/@octokit/plugin-paginate-rest": { - "version": "9.1.5", - "resolved": "https://registry.npmjs.org/@octokit/plugin-paginate-rest/-/plugin-paginate-rest-9.1.5.tgz", - "integrity": "sha512-WKTQXxK+bu49qzwv4qKbMMRXej1DU2gq017euWyKVudA6MldaSSQuxtz+vGbhxV4CjxpUxjZu6rM2wfc1FiWVg==", + "version": "9.2.1", + "resolved": "https://registry.npmjs.org/@octokit/plugin-paginate-rest/-/plugin-paginate-rest-9.2.1.tgz", + "integrity": "sha512-wfGhE/TAkXZRLjksFXuDZdmGnJQHvtU/joFQdweXUgzo1XwvBCD4o4+75NtFfjfLK5IwLf9vHTfSiU3sLRYpRw==", "dependencies": { - "@octokit/types": "^12.4.0" + "@octokit/types": "^12.6.0" }, "engines": { "node": ">= 18" }, "peerDependencies": { - "@octokit/core": ">=5" + "@octokit/core": "5" } }, "node_modules/@octokit/plugin-request-log": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/@octokit/plugin-request-log/-/plugin-request-log-4.0.0.tgz", - "integrity": "sha512-2uJI1COtYCq8Z4yNSnM231TgH50bRkheQ9+aH8TnZanB6QilOnx8RMD2qsnamSOXtDj0ilxvevf5fGsBhBBzKA==", + "version": "4.0.1", + "resolved": "https://registry.npmjs.org/@octokit/plugin-request-log/-/plugin-request-log-4.0.1.tgz", + "integrity": "sha512-GihNqNpGHorUrO7Qa9JbAl0dbLnqJVrV8OXe2Zm5/Y4wFkZQDfTreBzVmiRfJVfE4mClXdihHnbpyyO9FSX4HA==", "engines": { "node": ">= 18" }, "peerDependencies": { - "@octokit/core": ">=5" + "@octokit/core": "5" } }, "node_modules/@octokit/plugin-rest-endpoint-methods": { - "version": "10.3.0", - "resolved": "https://registry.npmjs.org/@octokit/plugin-rest-endpoint-methods/-/plugin-rest-endpoint-methods-10.3.0.tgz", - "integrity": "sha512-c/fjpoHispRvBZuRoTVt/uALg7pXa9RQbXWJiDMk6NDkGNomuAZG7YuYYpZoxeoXv+kVRjIDTsO0e1z0pei+PQ==", + "version": "10.4.1", + "resolved": "https://registry.npmjs.org/@octokit/plugin-rest-endpoint-methods/-/plugin-rest-endpoint-methods-10.4.1.tgz", + "integrity": "sha512-xV1b+ceKV9KytQe3zCVqjg+8GTGfDYwaT1ATU5isiUyVtlVAO3HNdzpS4sr4GBx4hxQ46s7ITtZrAsxG22+rVg==", "dependencies": { - "@octokit/types": "^12.4.0" + "@octokit/types": "^12.6.0" }, "engines": { "node": ">= 18" }, "peerDependencies": { - "@octokit/core": ">=5" + "@octokit/core": "5" } }, "node_modules/@octokit/request": { @@ -820,22 +833,24 @@ } }, "node_modules/@octokit/types": { - "version": "12.5.0", - "resolved": "https://registry.npmjs.org/@octokit/types/-/types-12.5.0.tgz", - "integrity": "sha512-YJEKcb0KkJlIUNU/zjnZwHEP8AoVh/OoIcP/1IyR4UHxExz7fzpe/a8IG4wBtQi7QDEqiomVLX88S6FpxxAJtg==", + "version": "12.6.0", + "resolved": "https://registry.npmjs.org/@octokit/types/-/types-12.6.0.tgz", + "integrity": "sha512-1rhSOfRa6H9w4YwK0yrf5faDaDTb+yLyBUKOCV4xtCDB5VmIPqd/v9yr9o6SAzOAlRxMiRiCic6JVM1/kunVkw==", "dependencies": { - "@octokit/openapi-types": "^19.1.0" + "@octokit/openapi-types": "^20.0.0" } }, "node_modules/@types/command-line-args": { "version": "5.2.0", "resolved": "https://registry.npmjs.org/@types/command-line-args/-/command-line-args-5.2.0.tgz", - "integrity": "sha512-UuKzKpJJ/Ief6ufIaIzr3A/0XnluX7RvFgwkV89Yzvm77wCh1kFaFmqN8XEnGcN62EuHdedQjEMb8mYxFLGPyA==" + "integrity": "sha512-UuKzKpJJ/Ief6ufIaIzr3A/0XnluX7RvFgwkV89Yzvm77wCh1kFaFmqN8XEnGcN62EuHdedQjEMb8mYxFLGPyA==", + "peer": true }, "node_modules/@types/command-line-usage": { "version": "5.0.2", "resolved": "https://registry.npmjs.org/@types/command-line-usage/-/command-line-usage-5.0.2.tgz", - "integrity": "sha512-n7RlEEJ+4x4TS7ZQddTmNSxP+zziEG0TNsMfiRIxcIVXt71ENJ9ojeXmGO3wPoTdn7pJcU2xc3CJYMktNT6DPg==" + "integrity": "sha512-n7RlEEJ+4x4TS7ZQddTmNSxP+zziEG0TNsMfiRIxcIVXt71ENJ9ojeXmGO3wPoTdn7pJcU2xc3CJYMktNT6DPg==", + "peer": true }, "node_modules/@types/follow-redirects": { "version": "1.14.4", @@ -854,7 +869,8 @@ "node_modules/@types/pad-left": { "version": "2.1.1", "resolved": "https://registry.npmjs.org/@types/pad-left/-/pad-left-2.1.1.tgz", - "integrity": "sha512-Xd22WCRBydkGSApl5Bw0PhAOHKSVjNL3E3AwzKaps96IMraPqy5BvZIsBVK6JLwdybUzjHnuWVwpDd0JjTfHXA==" + "integrity": "sha512-Xd22WCRBydkGSApl5Bw0PhAOHKSVjNL3E3AwzKaps96IMraPqy5BvZIsBVK6JLwdybUzjHnuWVwpDd0JjTfHXA==", + "peer": true }, "node_modules/@types/uuid": { "version": "9.0.8", @@ -910,6 +926,7 @@ "version": "14.0.2", "resolved": "https://registry.npmjs.org/apache-arrow/-/apache-arrow-14.0.2.tgz", "integrity": "sha512-EBO2xJN36/XoY81nhLcwCJgFwkboDZeyNQ+OPsG7bCoQjc2BT0aTyH/MR6SrL+LirSNz+cYqjGRlupMMlP1aEg==", + "peer": true, "dependencies": { "@types/command-line-args": "5.2.0", "@types/command-line-usage": "5.0.2", @@ -930,6 +947,7 @@ "version": "3.1.0", "resolved": "https://registry.npmjs.org/array-back/-/array-back-3.1.0.tgz", "integrity": "sha512-TkuxA4UCOvxuDK6NZYXCalszEzj+TLszyASooky+i742l9TqsOdYCMJJupxRic61hwquNtppB3hgcuq9SVSH1Q==", + "peer": true, "engines": { "node": ">=6" } @@ -1072,6 +1090,7 @@ "version": "0.4.0", "resolved": "https://registry.npmjs.org/chalk-template/-/chalk-template-0.4.0.tgz", "integrity": "sha512-/ghrgmhfY8RaSdeo43hNXxpoHAtxdbskUHjPpfqUWGttFgycUhYPGx3YZBCnUCvOa7Doivn1IZec3DEGFoMgLg==", + "peer": true, "dependencies": { "chalk": "^4.1.2" }, @@ -1130,6 +1149,7 @@ "version": "5.2.1", "resolved": "https://registry.npmjs.org/command-line-args/-/command-line-args-5.2.1.tgz", "integrity": "sha512-H4UfQhZyakIjC74I9d34fGYDwk3XpSr17QhEd0Q3I9Xq1CETHo4Hcuo87WyWHpAF1aSLjLRf5lD9ZGX2qStUvg==", + "peer": true, "dependencies": { "array-back": "^3.1.0", "find-replace": "^3.0.0", @@ -1144,6 +1164,7 @@ "version": "7.0.1", "resolved": "https://registry.npmjs.org/command-line-usage/-/command-line-usage-7.0.1.tgz", "integrity": "sha512-NCyznE//MuTjwi3y84QVUGEOT+P5oto1e1Pk/jFPVdPPfsG03qpTIl3yw6etR+v73d0lXsoojRpvbru2sqePxQ==", + "peer": true, "dependencies": { "array-back": "^6.2.2", "chalk-template": "^0.4.0", @@ -1158,6 +1179,7 @@ "version": "6.2.2", "resolved": "https://registry.npmjs.org/array-back/-/array-back-6.2.2.tgz", "integrity": "sha512-gUAZ7HPyb4SJczXAMUXMGAvI976JoK3qEx9v1FTmeYuJj0IBiaKttG1ydtGKdkfqWkIkouke7nG8ufGy77+Cvw==", + "peer": true, "engines": { "node": ">=12.17" } @@ -1166,6 +1188,7 @@ "version": "7.1.1", "resolved": "https://registry.npmjs.org/typical/-/typical-7.1.1.tgz", "integrity": "sha512-T+tKVNs6Wu7IWiAce5BgMd7OZfNYUndHwc5MknN+UHOudi7sGZzuHdCadllRuqJ3fPtgFtIH9+lt9qRv6lmpfA==", + "peer": true, "engines": { "node": ">=12.17" } @@ -1269,17 +1292,6 @@ "integrity": "sha512-MSjYzcWNOA0ewAHpz0MxpYFvwg6yjy1NG3xteoqz644VCo/RPgnr1/GGt+ic3iJTzQ8Eu3TdM14SawnVUmGE6A==", "dev": true }, - "node_modules/encoding": { - "version": "0.1.13", - "resolved": "https://registry.npmjs.org/encoding/-/encoding-0.1.13.tgz", - "integrity": "sha512-ETBauow1T35Y/WZMkio9jiM0Z5xjHHmJ4XmjZOq1l/dXz3lr2sRn87nJy20RupqSh1F2m3HHPSp8ShIPQJrJ3A==", - "dev": true, - "optional": true, - "peer": true, - "dependencies": { - "iconv-lite": "^0.6.2" - } - }, "node_modules/end-of-stream": { "version": "1.4.4", "resolved": "https://registry.npmjs.org/end-of-stream/-/end-of-stream-1.4.4.tgz", @@ -1290,9 +1302,9 @@ } }, "node_modules/esbuild": { - "version": "0.19.11", - "resolved": "https://registry.npmjs.org/esbuild/-/esbuild-0.19.11.tgz", - "integrity": "sha512-HJ96Hev2hX/6i5cDVwcqiJBBtuo9+FeIJOtZ9W1kA5M6AMJRHUZlpYZ1/SbEwtO0ioNAW8rUooVpC/WehY2SfA==", + "version": "0.19.12", + "resolved": "https://registry.npmjs.org/esbuild/-/esbuild-0.19.12.tgz", + "integrity": "sha512-aARqgq8roFBj054KvQr5f1sFu0D65G+miZRCuJyJ0G13Zwx7vRar5Zhn2tkQNzIXcBrNVsv/8stehpj+GAjgbg==", "dev": true, "hasInstallScript": true, "bin": { @@ -1302,35 +1314,35 @@ "node": ">=12" }, "optionalDependencies": { - "@esbuild/aix-ppc64": "0.19.11", - "@esbuild/android-arm": "0.19.11", - "@esbuild/android-arm64": "0.19.11", - "@esbuild/android-x64": "0.19.11", - "@esbuild/darwin-arm64": "0.19.11", - "@esbuild/darwin-x64": "0.19.11", - "@esbuild/freebsd-arm64": "0.19.11", - "@esbuild/freebsd-x64": "0.19.11", - "@esbuild/linux-arm": "0.19.11", - "@esbuild/linux-arm64": "0.19.11", - "@esbuild/linux-ia32": "0.19.11", - "@esbuild/linux-loong64": "0.19.11", - "@esbuild/linux-mips64el": "0.19.11", - "@esbuild/linux-ppc64": "0.19.11", - "@esbuild/linux-riscv64": "0.19.11", - "@esbuild/linux-s390x": "0.19.11", - "@esbuild/linux-x64": "0.19.11", - "@esbuild/netbsd-x64": "0.19.11", - "@esbuild/openbsd-x64": "0.19.11", - "@esbuild/sunos-x64": "0.19.11", - "@esbuild/win32-arm64": "0.19.11", - "@esbuild/win32-ia32": "0.19.11", - "@esbuild/win32-x64": "0.19.11" + "@esbuild/aix-ppc64": "0.19.12", + "@esbuild/android-arm": "0.19.12", + "@esbuild/android-arm64": "0.19.12", + "@esbuild/android-x64": "0.19.12", + "@esbuild/darwin-arm64": "0.19.12", + "@esbuild/darwin-x64": "0.19.12", + "@esbuild/freebsd-arm64": "0.19.12", + "@esbuild/freebsd-x64": "0.19.12", + "@esbuild/linux-arm": "0.19.12", + "@esbuild/linux-arm64": "0.19.12", + "@esbuild/linux-ia32": "0.19.12", + "@esbuild/linux-loong64": "0.19.12", + "@esbuild/linux-mips64el": "0.19.12", + "@esbuild/linux-ppc64": "0.19.12", + "@esbuild/linux-riscv64": "0.19.12", + "@esbuild/linux-s390x": "0.19.12", + "@esbuild/linux-x64": "0.19.12", + "@esbuild/netbsd-x64": "0.19.12", + "@esbuild/openbsd-x64": "0.19.12", + "@esbuild/sunos-x64": "0.19.12", + "@esbuild/win32-arm64": "0.19.12", + "@esbuild/win32-ia32": "0.19.12", + "@esbuild/win32-x64": "0.19.12" } }, "node_modules/escalade": { - "version": "3.1.1", - "resolved": "https://registry.npmjs.org/escalade/-/escalade-3.1.1.tgz", - "integrity": "sha512-k0er2gUkLf8O0zKJiAhmkTnJlTvINGv7ygDNPbeIsX/TJjGJZHuh9B2UxbsaEkmlEo9MfhrSzmhIlhRlI2GXnw==", + "version": "3.1.2", + "resolved": "https://registry.npmjs.org/escalade/-/escalade-3.1.2.tgz", + "integrity": "sha512-ErCHMCae19vR8vQGe50xIsVomy19rg6gFu3+r3jkEO46suLMWBksvVyoGgQV+jOfl84ZSOSlmv6Gxa89PmTGmA==", "dev": true, "engines": { "node": ">=6" @@ -1362,9 +1374,9 @@ } }, "node_modules/fastq": { - "version": "1.16.0", - "resolved": "https://registry.npmjs.org/fastq/-/fastq-1.16.0.tgz", - "integrity": "sha512-ifCoaXsDrsdkWTtiNJX5uzHDsrck5TzfKKDcuFFTIrrc/BS076qgEIfoIy1VeZqViznfKiysPYTh/QeHtnIsYA==", + "version": "1.17.1", + "resolved": "https://registry.npmjs.org/fastq/-/fastq-1.17.1.tgz", + "integrity": "sha512-sRVD3lWVIXWg6By68ZN7vho9a1pQcN/WBFaAAsDDFzlJjvoGx0P8z7V1t72grFJfJhu3YPZBuu25f7Kaw2jN1w==", "dev": true, "dependencies": { "reusify": "^1.0.4" @@ -1386,6 +1398,7 @@ "version": "3.0.0", "resolved": "https://registry.npmjs.org/find-replace/-/find-replace-3.0.0.tgz", "integrity": "sha512-6Tb2myMioCAgv5kfvP5/PkZZ/ntTpVK39fHY7WkWBgvbeE+VHd/tZuZ4mrC+bxh4cfOZeYKVPaJIZtZXV7GNCQ==", + "peer": true, "dependencies": { "array-back": "^3.0.1" }, @@ -1396,12 +1409,13 @@ "node_modules/flatbuffers": { "version": "23.5.26", "resolved": "https://registry.npmjs.org/flatbuffers/-/flatbuffers-23.5.26.tgz", - "integrity": "sha512-vE+SI9vrJDwi1oETtTIFldC/o9GsVKRM+s6EL0nQgxXlYV1Vc4Tk30hj4xGICftInKQKj1F3up2n8UbIVobISQ==" + "integrity": "sha512-vE+SI9vrJDwi1oETtTIFldC/o9GsVKRM+s6EL0nQgxXlYV1Vc4Tk30hj4xGICftInKQKj1F3up2n8UbIVobISQ==", + "peer": true }, "node_modules/follow-redirects": { - "version": "1.15.5", - "resolved": "https://registry.npmjs.org/follow-redirects/-/follow-redirects-1.15.5.tgz", - "integrity": "sha512-vSFWUON1B+yAw1VN4xMfxgn5fTUiaOzAJCKBwIIgT/+7CuGy9+r+5gITvP62j3RmaD5Ph65UaERdOSRGUzZtgw==", + "version": "1.15.6", + "resolved": "https://registry.npmjs.org/follow-redirects/-/follow-redirects-1.15.6.tgz", + "integrity": "sha512-wWN62YITEaOpSK584EZXJafH1AGpO8RVgElfkuXbTOrPX4fIfOyEpW/CsiNd8JdYrAoOvafRTOEnvsO++qCqFA==", "funding": [ { "type": "individual", @@ -1541,9 +1555,9 @@ } }, "node_modules/hasown": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/hasown/-/hasown-2.0.0.tgz", - "integrity": "sha512-vUptKVTpIJhcczKBbgnS+RtcuYMB8+oNzPK2/Hp3hanz8JmpATdmmgLgSaadVREkDm+e2giHwY3ZRkyjSIDDFA==", + "version": "2.0.2", + "resolved": "https://registry.npmjs.org/hasown/-/hasown-2.0.2.tgz", + "integrity": "sha512-0hJU9SCPvmMzIBdZFqNPXWa6dqh7WdH0cII9y+CyS8rG3nL48Bclra9HmKhVVUHyPWNH5Y7xDwAB7bfgSjkUMQ==", "dev": true, "dependencies": { "function-bind": "^1.1.2" @@ -1565,20 +1579,6 @@ "node": ">= 6" } }, - "node_modules/iconv-lite": { - "version": "0.6.3", - "resolved": "https://registry.npmjs.org/iconv-lite/-/iconv-lite-0.6.3.tgz", - "integrity": "sha512-4fCk79wshMdzMp2rH06qWrJE4iolqLhCUH+OiuIgU++RB0+94NlDL81atO7GX55uUKueo0txHNtvEyI6D7WdMw==", - "dev": true, - "optional": true, - "peer": true, - "dependencies": { - "safer-buffer": ">= 2.1.2 < 3.0.0" - }, - "engines": { - "node": ">=0.10.0" - } - }, "node_modules/ieee754": { "version": "1.2.1", "resolved": "https://registry.npmjs.org/ieee754/-/ieee754-1.2.1.tgz", @@ -1600,9 +1600,9 @@ ] }, "node_modules/ignore": { - "version": "5.3.0", - "resolved": "https://registry.npmjs.org/ignore/-/ignore-5.3.0.tgz", - "integrity": "sha512-g7dmpshy+gD7mh88OC9NwSGTKoc3kyLAZQRU1mt53Aw/vnvfXnbC+F/7F7QoYVKbV+KNvJx8wArewKy1vXMtlg==", + "version": "5.3.1", + "resolved": "https://registry.npmjs.org/ignore/-/ignore-5.3.1.tgz", + "integrity": "sha512-5Fytz/IraMjqpwfd34ke28PTVMjZjJG2MPn5t7OE4eUCUNf8BAa7b5WUS9/Qvr6mwOQS7Mk6vdsMno5he+T8Xw==", "dev": true, "engines": { "node": ">= 4" @@ -1709,6 +1709,7 @@ "version": "0.0.3", "resolved": "https://registry.npmjs.org/json-bignum/-/json-bignum-0.0.3.tgz", "integrity": "sha512-2WHyXj3OfHSgNyuzDbSxI1w2jgw5gkWSWhS7Qg4bWXx1nLk3jnbwfUeS0PSba3IzpTUWdHxBieELUzXRjQB2zg==", + "peer": true, "engines": { "node": ">=0.8" } @@ -1728,12 +1729,14 @@ "node_modules/lodash.assignwith": { "version": "4.2.0", "resolved": "https://registry.npmjs.org/lodash.assignwith/-/lodash.assignwith-4.2.0.tgz", - "integrity": "sha512-ZznplvbvtjK2gMvnQ1BR/zqPFZmS6jbK4p+6Up4xcRYA7yMIwxHCfbTcrYxXKzzqLsQ05eJPVznEW3tuwV7k1g==" + "integrity": "sha512-ZznplvbvtjK2gMvnQ1BR/zqPFZmS6jbK4p+6Up4xcRYA7yMIwxHCfbTcrYxXKzzqLsQ05eJPVznEW3tuwV7k1g==", + "peer": true }, "node_modules/lodash.camelcase": { "version": "4.3.0", "resolved": "https://registry.npmjs.org/lodash.camelcase/-/lodash.camelcase-4.3.0.tgz", - "integrity": "sha512-TwuEnCnxbc3rAvhf/LbG7tJUDzhqXyFnv3dtzLOPgCG/hODL7WFnsbwktkD7yUV0RrreP/l1PALq/YSg6VvjlA==" + "integrity": "sha512-TwuEnCnxbc3rAvhf/LbG7tJUDzhqXyFnv3dtzLOPgCG/hODL7WFnsbwktkD7yUV0RrreP/l1PALq/YSg6VvjlA==", + "peer": true }, "node_modules/lru-cache": { "version": "6.0.0", @@ -1874,9 +1877,9 @@ } }, "node_modules/node-abi": { - "version": "3.54.0", - "resolved": "https://registry.npmjs.org/node-abi/-/node-abi-3.54.0.tgz", - "integrity": "sha512-p7eGEiQil0YUV3ItH4/tBb781L5impVmmx2E9FRKF7d18XXzp4PGT2tdYMFY6wQqgxD0IwNZOiSJ0/K0fSi/OA==", + "version": "3.56.0", + "resolved": "https://registry.npmjs.org/node-abi/-/node-abi-3.56.0.tgz", + "integrity": "sha512-fZjdhDOeRcaS+rcpve7XuwHBmktS1nS1gzgghwKUQQ8nTy2FdSDr6ZT8k6YhvlJeHmmQMYiT/IH9hfco5zeW2Q==", "dev": true, "dependencies": { "semver": "^7.3.5" @@ -1926,6 +1929,7 @@ "version": "2.1.0", "resolved": "https://registry.npmjs.org/pad-left/-/pad-left-2.1.0.tgz", "integrity": "sha512-HJxs9K9AztdIQIAIa/OIazRAUW/L6B9hbQDxO4X07roW3eo9XqZc2ur9bn1StH9CnbbI9EgvejHQX7CBpCF1QA==", + "peer": true, "dependencies": { "repeat-string": "^1.5.4" }, @@ -2134,6 +2138,7 @@ "version": "1.6.1", "resolved": "https://registry.npmjs.org/repeat-string/-/repeat-string-1.6.1.tgz", "integrity": "sha512-PV0dzCYDNfRi1jCDbJzpW7jNNDRuCOG/jI5ctQcGKt/clZD+YcPS3yIlWuTJMmESC8aevCFmWJy5wjAFgNqN6w==", + "peer": true, "engines": { "node": ">=0.10" } @@ -2220,18 +2225,10 @@ "integrity": "sha512-Gd2UZBJDkXlY7GbJxfsE8/nvKkUEU1G38c1siN6QP6a9PT9MmHB8GnpscSmMJSoF8LOIrt8ud/wPtojys4G6+g==", "dev": true }, - "node_modules/safer-buffer": { - "version": "2.1.2", - "resolved": "https://registry.npmjs.org/safer-buffer/-/safer-buffer-2.1.2.tgz", - "integrity": "sha512-YZo3K82SD7Riyi0E1EQPojLz7kpepnSQI9IyPbHHg1XXXevb5dJI7tpyN2ADxGcQbHG7vcyRHk0cbwqcQriUtg==", - "dev": true, - "optional": true, - "peer": true - }, "node_modules/semver": { - "version": "7.5.4", - "resolved": "https://registry.npmjs.org/semver/-/semver-7.5.4.tgz", - "integrity": "sha512-1bCSESV6Pv+i21Hvpxp3Dx+pSD8lIPt8uVjRrxAUt/nbswYc+tK6Y2btiULjd4+fnq15PX+nqQDC7Oft7WkwcA==", + "version": "7.6.0", + "resolved": "https://registry.npmjs.org/semver/-/semver-7.6.0.tgz", + "integrity": "sha512-EnwXhrlwXMk9gKu5/flx5sv/an57AkRplG3hTK68W7FRDN+k+OWBj65M7719OkA82XLBxrcX0KSHj+X5COhOVg==", "dev": true, "dependencies": { "lru-cache": "^6.0.0" @@ -2310,6 +2307,7 @@ "version": "3.0.1", "resolved": "https://registry.npmjs.org/stream-read-all/-/stream-read-all-3.0.1.tgz", "integrity": "sha512-EWZT9XOceBPlVJRrYcykW8jyRSZYbkb/0ZK36uLEmoWVO5gxBOnntNTseNzfREsqxqdfEGQrD8SXQ3QWbBmq8A==", + "peer": true, "engines": { "node": ">=10" } @@ -2385,6 +2383,7 @@ "version": "3.0.2", "resolved": "https://registry.npmjs.org/table-layout/-/table-layout-3.0.2.tgz", "integrity": "sha512-rpyNZYRw+/C+dYkcQ3Pr+rLxW4CfHpXjPDnG7lYhdRoUcZTUt+KEsX+94RGp/aVp/MQU35JCITv2T/beY4m+hw==", + "peer": true, "dependencies": { "@75lb/deep-merge": "^1.1.1", "array-back": "^6.2.2", @@ -2405,6 +2404,7 @@ "version": "6.2.2", "resolved": "https://registry.npmjs.org/array-back/-/array-back-6.2.2.tgz", "integrity": "sha512-gUAZ7HPyb4SJczXAMUXMGAvI976JoK3qEx9v1FTmeYuJj0IBiaKttG1ydtGKdkfqWkIkouke7nG8ufGy77+Cvw==", + "peer": true, "engines": { "node": ">=12.17" } @@ -2413,6 +2413,7 @@ "version": "7.1.1", "resolved": "https://registry.npmjs.org/typical/-/typical-7.1.1.tgz", "integrity": "sha512-T+tKVNs6Wu7IWiAce5BgMd7OZfNYUndHwc5MknN+UHOudi7sGZzuHdCadllRuqJ3fPtgFtIH9+lt9qRv6lmpfA==", + "peer": true, "engines": { "node": ">=12.17" } @@ -2489,7 +2490,8 @@ "node_modules/tslib": { "version": "2.6.2", "resolved": "https://registry.npmjs.org/tslib/-/tslib-2.6.2.tgz", - "integrity": "sha512-AEYxH93jGFPn/a2iVAwW87VuUIkR1FVUKB77NwMF7nBTDkDrrT/Hpt/IrCJ0QXhW27jTBDcf5ZY7w6RiqTMw2Q==" + "integrity": "sha512-AEYxH93jGFPn/a2iVAwW87VuUIkR1FVUKB77NwMF7nBTDkDrrT/Hpt/IrCJ0QXhW27jTBDcf5ZY7w6RiqTMw2Q==", + "peer": true }, "node_modules/tunnel-agent": { "version": "0.6.0", @@ -2504,9 +2506,9 @@ } }, "node_modules/typescript": { - "version": "5.3.3", - "resolved": "https://registry.npmjs.org/typescript/-/typescript-5.3.3.tgz", - "integrity": "sha512-pXWcraxM0uxAS+tN0AG/BF2TyqmHO014Z070UsJ+pFvYuRSq8KH8DmWpnbXe0pEPDHXZV3FcAbJkijJ5oNEnWw==", + "version": "5.4.2", + "resolved": "https://registry.npmjs.org/typescript/-/typescript-5.4.2.tgz", + "integrity": "sha512-+2/g0Fds1ERlP6JsakQQDXjZdZMM+rqpamFZJEKh4kwTIn3iDkgKtby0CeNd5ATNZ4Ry1ax15TMx0W2V+miizQ==", "dev": true, "bin": { "tsc": "bin/tsc", @@ -2520,6 +2522,7 @@ "version": "4.0.0", "resolved": "https://registry.npmjs.org/typical/-/typical-4.0.0.tgz", "integrity": "sha512-VAH4IvQ7BDFYglMd7BPRDfLgxZZX4O4TFcRDA6EN5X7erNJJq+McIEp8np9aVtxrCJ6qx4GTYVfOWNjcqwZgRw==", + "peer": true, "engines": { "node": ">=8" } @@ -2557,9 +2560,9 @@ } }, "node_modules/vectordb": { - "version": "0.4.10", - "resolved": "https://registry.npmjs.org/vectordb/-/vectordb-0.4.10.tgz", - "integrity": "sha512-O6WR65CvpbIbTDs4awKV9smfymVuW1AqYOcdJf8PI0THr1b+h/LyDlAQBf3xBV5Ns8XeaIzWfSHoDspg+WJgKg==", + "version": "0.4.12", + "resolved": "https://registry.npmjs.org/vectordb/-/vectordb-0.4.12.tgz", + "integrity": "sha512-H2mFwZ87d3BcuX4yGx5RoW06amRZQ3W5u/FRTNc86rwVINuEEa+Ivsqng1i8hURHXoTDbF/0Y9qwCshySkeznQ==", "cpu": [ "x64", "arm64" @@ -2570,17 +2573,19 @@ "win32" ], "dependencies": { - "@apache-arrow/ts": "^14.0.2", "@neon-rs/load": "^0.0.74", - "apache-arrow": "^14.0.2", "axios": "^1.4.0" }, "optionalDependencies": { - "@lancedb/vectordb-darwin-arm64": "0.4.10", - "@lancedb/vectordb-darwin-x64": "0.4.10", - "@lancedb/vectordb-linux-arm64-gnu": "0.4.10", - "@lancedb/vectordb-linux-x64-gnu": "0.4.10", - "@lancedb/vectordb-win32-x64-msvc": "0.4.10" + "@lancedb/vectordb-darwin-arm64": "0.4.12", + "@lancedb/vectordb-darwin-x64": "0.4.12", + "@lancedb/vectordb-linux-arm64-gnu": "0.4.12", + "@lancedb/vectordb-linux-x64-gnu": "0.4.12", + "@lancedb/vectordb-win32-x64-msvc": "0.4.12" + }, + "peerDependencies": { + "@apache-arrow/ts": "^14.0.2", + "apache-arrow": "^14.0.2" } }, "node_modules/webidl-conversions": { @@ -2603,6 +2608,7 @@ "version": "5.1.0", "resolved": "https://registry.npmjs.org/wordwrapjs/-/wordwrapjs-5.1.0.tgz", "integrity": "sha512-JNjcULU2e4KJwUNv6CHgI46UvDGitb6dGryHajXTDiLgg1/RiGoPSDw4kZfYnwGtEXf2ZMeIewDQgFGzkCB2Sg==", + "peer": true, "engines": { "node": ">=12.17" } From e8d126c6eeeed53fc65ee663d1a2f92fdcd8229c Mon Sep 17 00:00:00 2001 From: Jason Jacobs Date: Wed, 13 Mar 2024 00:15:35 -0700 Subject: [PATCH 025/105] Refactored web crawling code for document indexing. The updated code uses a breadth-first search, filters out specific paths, and ensures that websites are not downloaded twice. --- core/indexing/docs/article.ts | 21 +-- core/indexing/docs/crawl.ts | 258 +++++++++++++--------------------- core/indexing/docs/db.ts | 10 ++ core/indexing/docs/index.ts | 39 ++--- core/package-lock.json | 11 -- core/yarn.lock | 5 - 6 files changed, 129 insertions(+), 215 deletions(-) diff --git a/core/indexing/docs/article.ts b/core/indexing/docs/article.ts index d38dc75fb..ec9a0c98b 100644 --- a/core/indexing/docs/article.ts +++ b/core/indexing/docs/article.ts @@ -2,13 +2,14 @@ import { Readability } from "@mozilla/readability"; import { Chunk } from "../.."; import { MAX_CHUNK_SIZE } from "../../llm/constants"; import { cleanFragment, cleanHeader } from "../chunk/markdown"; +import { PageData } from "./crawl" -type ArticleComponent = { +export type ArticleComponent = { title: string; body: string; }; -type Article = { +export type Article = { url: string; subpath: string; title: string; @@ -132,6 +133,7 @@ export async function stringToArticle( } let article_components = await extractTitlesAndBodies(article.content); + return { url, subpath, @@ -144,20 +146,11 @@ export async function stringToArticle( } } -export async function urlToArticle( - subpath: string, - baseUrl: URL, +export async function pageToArticle( + page: PageData ): Promise
{ - const url = new URL(subpath, baseUrl); try { - const response = await fetch(url.toString()); - - if (!response.ok) { - return undefined; - } - - const htmlContent = await response.text(); - return stringToArticle(baseUrl.toString(), htmlContent, subpath); + return stringToArticle(page.url, page.html, page.path); } catch (err) { console.error("Error converting URL to article components", err); return undefined; diff --git a/core/indexing/docs/crawl.ts b/core/indexing/docs/crawl.ts index 247c7d36e..524b602c4 100644 --- a/core/indexing/docs/crawl.ts +++ b/core/indexing/docs/crawl.ts @@ -1,13 +1,12 @@ import { Octokit } from "@octokit/rest"; import cheerio from "cheerio"; import fetch from "node-fetch"; -// const HCCrawler = require("headless-chrome-crawler"); +import { URL } from 'url'; const IGNORE_PATHS_ENDING_IN = [ "favicon.ico", "robots.txt", ".rst.txt", - // ReadTheDocs "genindex", "py-modindex", "search.html", @@ -19,70 +18,6 @@ const IGNORE_PATHS_ENDING_IN = [ const GITHUB_PATHS_TO_TRAVERSE = ["/blob/", "/tree/"]; -function shouldFilterPath(pathname: string, baseUrl: URL): boolean { - if (pathname.includes("#")) { - pathname = pathname.slice(0, pathname.indexOf("#")); - } - - if (pathname.endsWith("/")) { - pathname = pathname.slice(0, -1); - } - - if (baseUrl.hostname === "github.com") { - if ( - pathname.split("/").length > 3 && - !GITHUB_PATHS_TO_TRAVERSE.some((path) => pathname.includes(path)) - ) - return true; - return false; - } - - if (IGNORE_PATHS_ENDING_IN.some((path) => pathname.endsWith(path))) - return true; - return false; -} - -async function* crawlLinks( - pathname: string, - baseUrl: URL, - visited: Set, -): AsyncGenerator { - if (visited.has(pathname) || shouldFilterPath(pathname, baseUrl)) { - return; - } - visited.add(pathname); - yield visited.size; - - const response = await fetch(new URL(pathname, baseUrl)); - const text = await response.text(); - const $ = cheerio.load(text); - - const children: string[] = []; - $("a").each((_, element) => { - const href = $(element).attr("href"); - if (!href) { - return; - } - - const parsedUrl = new URL(href, baseUrl); - if ( - parsedUrl.hostname === baseUrl.hostname && - !visited.has(parsedUrl.pathname) - // parsedUrl.pathname.startsWith(baseUrl.pathname) - ) { - children.push(parsedUrl.pathname); - } - }); - - await Promise.all( - children.map(async (child) => { - for await (const _ of crawlLinks(child, baseUrl, visited)) { - } - }), - ); - yield visited.size; -} - async function crawlGithubRepo(baseUrl: URL) { const octokit = new Octokit({ auth: undefined, @@ -111,112 +46,115 @@ async function crawlGithubRepo(baseUrl: URL) { const paths = tree.data.tree .filter( (file) => file.type === "blob" && file.path?.endsWith(".md"), - // || - // file.path?.endsWith(".rst") || - // file.path?.split("/").includes("documentation") || - // file.path?.split("/").includes("docs") || - // file.path?.split("/").includes("doc") || - // file.path?.split("/").includes("examples") || - // file.path?.split("/").includes("example") ) .map((file) => baseUrl.pathname + "/tree/main/" + file.path); return paths; } -export async function* crawlSubpages( - baseUrl: URL, -): AsyncGenerator { - // Special case for GitHub repos - if (baseUrl.hostname === "github.com") { - return crawlGithubRepo(baseUrl); - } - - // First, check if the parent of the path redirects to the same page - if (baseUrl.pathname.endsWith("/")) { - baseUrl.pathname = baseUrl.pathname.slice(0, -1); - } - let realBaseUrl = new URL(baseUrl); - while (true) { - let parentUrl = new URL(realBaseUrl); - parentUrl.pathname = parentUrl.pathname.split("/").slice(0, -1).join("/"); - if ( - parentUrl.pathname === realBaseUrl.pathname || - parentUrl.pathname === "" - ) { - break; +async function getLinksFromUrl(url: string, path: string) { + const location = new URL(path, url); + let response; + try { + response = await fetch(location.toString()); + } catch (error: unknown) { + if (error instanceof Error && error.message.includes('maximum redirect')) { + console.error('Maximum redirect reached for: ', location.toString()); + return { + html: '', + links: [] + }; + } else { + console.error(error); + return { + html: '', + links: [] + }; + } } - const response = await fetch(parentUrl); - const redirected = response.url.toString() === baseUrl.toString() + "/"; - if (!redirected) { - break; - } - realBaseUrl = parentUrl; - } - const visited = new Set(); - for await (const count of crawlLinks( - realBaseUrl.pathname || "/", - realBaseUrl, - visited, - )) { - yield count; - } - return [...visited]; + const html = await response.text(); + let links: string[] = []; + + if (url.includes("github.com")) { + return { + html, + links + }; + } + + const $ = cheerio.load(html); + + $('a').each((_, element) => { + const link = $(element).attr('href'); + if (link) { + const fullUrl = new URL(link, url); + + if (fullUrl.pathname.startsWith(path)) { + links.push(fullUrl.pathname); + } + } + }); + + links = [...new Set(links)].filter(link => { + return !link.includes('#') && !IGNORE_PATHS_ENDING_IN.some(ending => link.endsWith(ending)); + }); + + return { + html, + links + }; } -// class NoEscapeTurndownService extends TurndownService { -// escape(str: string): string { -// return str; -// } -// } +function splitUrl(url: URL) { + const baseUrl = `${url.protocol}//${url.hostname}`; + const basePath = url.pathname; + return { + baseUrl, + basePath + }; +} -// async function convertURLToMarkdown(url: string): Promise { -// try { -// const response = await fetch(url); -// const htmlContent = await response.text(); -// const turndown = new NoEscapeTurndownService({ -// codeBlockStyle: "fenced", -// headingStyle: "atx", -// }).use([turndownPluginGfm.tables, turndownPluginGfm.strikethrough]); -// const markdown = turndown.turndown(htmlContent); -// return markdown; -// } catch (err) { -// console.error(err); -// throw new Error("Error converting URL to markdown"); -// } -// } +export type PageData = { + url: string; + path: string; + html: string; +}; + +export async function* crawlPage(url: URL): AsyncGenerator { + const { baseUrl, basePath } = splitUrl(url); + let paths: string[] = [basePath]; -// convertURLToMarkdown("https://python-socketio.readthedocs.io/en/stable").then( -// (md) => { -// console.log(md); -// } -// ); + if (url.hostname === "github.com") { + const githubLinks = await crawlGithubRepo(url); + paths = [...paths, ...githubLinks]; + } -let visited = new Set(); -const url = new URL("https://python-socketio.readthedocs.io/en/stable"); -const url2 = new URL("https://platform.openai.com/docs/api-reference"); -// crawlLinks(url.pathname, url, visited).then(() => { -// console.log(visited); -// }); + let index = 0; -// async function hcCrawlLinks() { -// const results: any[] = []; -// const crawler = await HCCrawler.launch({ -// // Function to be evaluated in browsers -// evaluatePage: () => ({ -// title: $("title").text(), -// }), -// // Function to be called with evaluated results from browsers -// onSuccess: (result: any) => { -// console.log(result); -// results.push(result.url); -// }, -// }); -// // Queue a request -// await crawler.queue(url.toString()); -// await crawler.onIdle(); // Resolved when no queue is left -// await crawler.close(); // Close the crawler + while (index < paths.length) { + const promises = paths.slice(index, index + 50).map(path => getLinksFromUrl(baseUrl, path)); -// return results; -// } + const results = await Promise.all(promises); + + for (const {html, links} of results) { + if (html !== '') { + yield { + url: url.toString(), + path: paths[index], + html: html + }; + } + + for (let link of links) { + if (!paths.includes(link)) { + paths.push(link); + } + } + + index++; + } + + paths = paths.filter(path => results.some(result => result.html !== '' && result.links.includes(path))); + } +} \ No newline at end of file diff --git a/core/indexing/docs/db.ts b/core/indexing/docs/db.ts index 73651452e..bde6ce980 100644 --- a/core/indexing/docs/db.ts +++ b/core/indexing/docs/db.ts @@ -140,3 +140,13 @@ export async function listDocs(): Promise< const docs = db.all(`SELECT title, baseUrl FROM docs`); return docs; } + +export async function hasDoc(baseUrl: string) { + const db = await open({ + filename: getDocsSqlitePath(), + driver: sqlite3.Database, + }); + await createDocsTable(db); + const doc = await db.get(`SELECT title FROM docs WHERE baseUrl =?`, baseUrl); + return!!doc; +} diff --git a/core/indexing/docs/index.ts b/core/indexing/docs/index.ts index 67478a0ce..89906f0f1 100644 --- a/core/indexing/docs/index.ts +++ b/core/indexing/docs/index.ts @@ -4,17 +4,16 @@ import { IndexingProgressUpdate, } from "../.."; -import { crawlSubpages } from "./crawl"; -import { addDocs, listDocs } from "./db"; -import { urlToArticle, chunkArticle } from "./article"; +import { crawlPage } from "./crawl"; +import { addDocs, hasDoc } from "./db"; +import { pageToArticle, chunkArticle, Article } from "./article"; export async function* indexDocs( title: string, baseUrl: URL, embeddingsProvider: EmbeddingsProvider, ): AsyncGenerator { - const existingDocs = await listDocs(); - if (existingDocs.find((doc) => doc.baseUrl === baseUrl.toString())) { + if (await hasDoc(baseUrl.toString())) { yield { progress: 1, desc: "Already indexed", @@ -27,36 +26,26 @@ export async function* indexDocs( desc: "Finding subpages", }; - const subpathGenerator = crawlSubpages(baseUrl); - let { value, done } = await subpathGenerator.next(); - - while (true) { - if (done) { - break; - } + const articles: Article[] = []; + + for await (const page of crawlPage(baseUrl)) { + const article = await pageToArticle(page); + if (!article) continue; + + articles.push(article); + yield { progress: 0, - desc: `Finding subpages (${value})`, + desc: `Finding subpages (${page.path})`, }; - const next = await subpathGenerator.next(); - value = next.value; - done = next.done; } - let subpaths = value as string[]; - const chunks: Chunk[] = []; const embeddings: number[][] = []; - let articles = await Promise.all( - subpaths.map(subpath => urlToArticle(subpath, baseUrl)), - ); - for (const article of articles) { - if (!article) continue; - yield { - progress: Math.max(1, Math.floor(100 / (subpaths.length + 1))), + progress: Math.max(1, Math.floor(100 / (articles.length + 1))), desc: `${article.subpath}`, }; diff --git a/core/package-lock.json b/core/package-lock.json index ff37c9bcc..d00ff5127 100644 --- a/core/package-lock.json +++ b/core/package-lock.json @@ -55,7 +55,6 @@ "@types/uuid": "^9.0.7", "esbuild": "^0.19.11", "jest": "^29.7.0", - "tree-sitter-cli": "^0.21.0", "ts-jest": "^29.1.1" } }, @@ -9575,16 +9574,6 @@ "integrity": "sha512-N3WMsuqV66lT30CrXNbEjx4GEwlow3v6rr4mCcv6prnfwhS01rkgyFdjPNBYd9br7LpXV1+Emh01fHnq2Gdgrw==", "license": "MIT" }, - "node_modules/tree-sitter-cli": { - "version": "0.21.0", - "resolved": "https://registry.npmjs.org/tree-sitter-cli/-/tree-sitter-cli-0.21.0.tgz", - "integrity": "sha512-wA7wT5724fNQW82XDH6zT6ZcYonjrAKLCHHuhLsPcAKULrhp3rNuMvlgBdB5FUBvmjHNhtTZF/qpHenMoRJPBw==", - "dev": true, - "hasInstallScript": true, - "bin": { - "tree-sitter": "cli.js" - } - }, "node_modules/tree-sitter-wasms": { "version": "0.1.6", "license": "Unlicense" diff --git a/core/yarn.lock b/core/yarn.lock index ee9b97f8e..f126d3619 100644 --- a/core/yarn.lock +++ b/core/yarn.lock @@ -5264,11 +5264,6 @@ tr46@~0.0.3: resolved "https://registry.npmjs.org/tr46/-/tr46-0.0.3.tgz" integrity sha512-N3WMsuqV66lT30CrXNbEjx4GEwlow3v6rr4mCcv6prnfwhS01rkgyFdjPNBYd9br7LpXV1+Emh01fHnq2Gdgrw== -tree-sitter-cli@^0.21.0: - version "0.21.0" - resolved "https://registry.npmjs.org/tree-sitter-cli/-/tree-sitter-cli-0.21.0.tgz" - integrity sha512-wA7wT5724fNQW82XDH6zT6ZcYonjrAKLCHHuhLsPcAKULrhp3rNuMvlgBdB5FUBvmjHNhtTZF/qpHenMoRJPBw== - tree-sitter-wasms@^0.1.6: version "0.1.6" From ed602f06f65a61a451192dbe3b07240e2131d87f Mon Sep 17 00:00:00 2001 From: Jason Jacobs Date: Thu, 14 Mar 2024 13:39:38 -0700 Subject: [PATCH 026/105] update hasDocs to use new pattern --- core/indexing/docs/db.ts | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/core/indexing/docs/db.ts b/core/indexing/docs/db.ts index bde6ce980..151b220fb 100644 --- a/core/indexing/docs/db.ts +++ b/core/indexing/docs/db.ts @@ -142,11 +142,7 @@ export async function listDocs(): Promise< } export async function hasDoc(baseUrl: string) { - const db = await open({ - filename: getDocsSqlitePath(), - driver: sqlite3.Database, - }); - await createDocsTable(db); + const db = await getDBDocs(); const doc = await db.get(`SELECT title FROM docs WHERE baseUrl =?`, baseUrl); return!!doc; } From efc1f3b9216d5bf503ecb58ff956f26a2bc4a130 Mon Sep 17 00:00:00 2001 From: Ben Force Date: Wed, 13 Mar 2024 07:05:49 -0500 Subject: [PATCH 027/105] feat: add gitlab context class --- .../GitLabMergeRequestContextProvider.ts | 185 ++++++++++++++++++ core/package-lock.json | 11 -- core/yarn.lock | 18 -- extensions/vscode/package-lock.json | 4 +- extensions/vscode/package.json | 2 +- extensions/vscode/yarn.lock | 23 +-- 6 files changed, 197 insertions(+), 46 deletions(-) create mode 100644 core/context/providers/GitLabMergeRequestContextProvider.ts diff --git a/core/context/providers/GitLabMergeRequestContextProvider.ts b/core/context/providers/GitLabMergeRequestContextProvider.ts new file mode 100644 index 000000000..abdb0a1cd --- /dev/null +++ b/core/context/providers/GitLabMergeRequestContextProvider.ts @@ -0,0 +1,185 @@ +import type { AxiosInstance, AxiosError } from "axios"; +import {BaseContextProvider} from ".."; +import { ContextProviderExtras, ContextItem, ContextProviderDescription } from "../.."; + +interface RemoteBranchInfo { + branch: string | null; + project: string | null; +} + +const trimFirstElement = (args: Array): string => { + return args[0].trim(); +}; + + +class GitLabMergeRequestContextProvider extends BaseContextProvider { + static description: ContextProviderDescription = { + title: 'gitlab-mr', + displayTitle: 'GitLab Merge Request', + description: 'Reference comments in a GitLab Merge Request', + type: 'normal' + }; + + private async getApi(): Promise { + const { default: Axios } = await import("axios"); + + const domain = this.options.domain ?? "gitlab.com"; + const token = this.options.token; + + if(!token) { + throw new Error(`GitLab Private Token is required!`); + } + + return Axios.create({ + baseURL: `https://${domain ?? "gitlab.com"}/api`, + headers: { + "PRIVATE-TOKEN": token, + }, + }); + }; + + + private async getRemoteBranchName(extras: ContextProviderExtras): Promise { + + const workingDir = await extras.ide + .getWorkspaceDirs() + .then(trimFirstElement); + + const subprocess = (command: string) => + extras.ide + .subprocess(`cd ${workingDir}; ${command}`) + .then(trimFirstElement); + + const branchName = await subprocess(`git branch --show-current`); + + const branchRemote = await subprocess( + `git config branch.${branchName}.remote` + ); + + const branchInfo = await subprocess(`git branch -vv`); + + const currentBranchInfo = branchInfo + .split("\n") + .find((line) => line.startsWith("*")); + + const remoteMatches = RegExp( + `\\[${branchRemote}/(?[^\\]]+)\\]` + ).exec(currentBranchInfo!); + + console.dir({ remoteMatches }); + + const remoteBranch = remoteMatches?.groups?.["remote_branch"] ?? null; + + const remoteUrl = await subprocess(`git remote get-url ${branchRemote}`); + + const urlMatches = RegExp(`:(?.*).git`).exec(remoteUrl); + + const project = urlMatches?.groups?.["project"] ?? null; + + return { + branch: remoteBranch, + project, + }; + }; + + async getContextItems(query: string, extras: ContextProviderExtras): Promise { + + const parts = [`# ${this.description.displayTitle}`]; + + const { branch, project } = await this.getRemoteBranchName(extras); + + const api = await this.getApi(); + + try { + const mergeRequests = await api + .get>( + `/v4/projects/${encodeURIComponent(project!)}/merge_requests`, + { + params: { + source_branch: branch, + state: "opened", + }, + } + ) + .then((x) => x.data); + + if (mergeRequests?.length) { + const mergeRequest = mergeRequests[0]; + + parts.push(`Merge Request: ${mergeRequest.iid}`); + + const comments = await api.get>( + `/v4/projects/${mergeRequest.project_id}/merge_requests/${mergeRequest.iid}/notes`, + { + params: { + sort: "asc", + order_by: "created_at", + }, + } + ); + + const locations = {} as Record>; + + for (const comment of comments.data.filter( + (x) => x.type === "DiffNote" + )) { + const filename = comment.position?.new_path ?? "general"; + + if (!locations[filename]) { + locations[filename] = []; + } + + locations[filename].push(comment); + } + + const commentFormatter = (comment: GitLabComment) => { + const commentParts = [ + `### ${comment.author.name} on ${comment.created_at}${ + comment.resolved ? " (Resolved)" : "" + }`, + ]; + + if (comment.position?.new_line) { + commentParts.push( + `line: ${comment.position.new_line}\ncommit: ${comment.position.head_sha}` + ); + } + + commentParts.push(comment.body); + + return commentParts.join("\n\n"); + }; + + for (const [filename, locationComments] of Object.entries(locations)) { + if (filename !== "general") { + parts.push(`## File ${filename}`); + locationComments.sort( + (a, b) => a.position!.new_line - b.position!.new_line + ); + } else { + parts.push("## Comments"); + } + + parts.push(...locationComments.map(commentFormatter)); + } + } + + const content = parts.join("\n\n"); + + return [ + { + name: `GitLab MR Comments`, + content, + description: `Comments from the Merge Request for this branch.`, + }, + ]; + } catch(ex) { + if(ex instanceof AxiosError) { + + } + } + } + +} + +export default GitLabMergeRequestContextProvider; \ No newline at end of file diff --git a/core/package-lock.json b/core/package-lock.json index ff37c9bcc..d00ff5127 100644 --- a/core/package-lock.json +++ b/core/package-lock.json @@ -55,7 +55,6 @@ "@types/uuid": "^9.0.7", "esbuild": "^0.19.11", "jest": "^29.7.0", - "tree-sitter-cli": "^0.21.0", "ts-jest": "^29.1.1" } }, @@ -9575,16 +9574,6 @@ "integrity": "sha512-N3WMsuqV66lT30CrXNbEjx4GEwlow3v6rr4mCcv6prnfwhS01rkgyFdjPNBYd9br7LpXV1+Emh01fHnq2Gdgrw==", "license": "MIT" }, - "node_modules/tree-sitter-cli": { - "version": "0.21.0", - "resolved": "https://registry.npmjs.org/tree-sitter-cli/-/tree-sitter-cli-0.21.0.tgz", - "integrity": "sha512-wA7wT5724fNQW82XDH6zT6ZcYonjrAKLCHHuhLsPcAKULrhp3rNuMvlgBdB5FUBvmjHNhtTZF/qpHenMoRJPBw==", - "dev": true, - "hasInstallScript": true, - "bin": { - "tree-sitter": "cli.js" - } - }, "node_modules/tree-sitter-wasms": { "version": "0.1.6", "license": "Unlicense" diff --git a/core/yarn.lock b/core/yarn.lock index ee9b97f8e..de8681ec2 100644 --- a/core/yarn.lock +++ b/core/yarn.lock @@ -318,11 +318,6 @@ resolved "https://registry.npmjs.org/@bcoe/v8-coverage/-/v8-coverage-0.2.3.tgz" integrity sha512-0hYQ8SB4Db5zvZB4axdMHGwEaQjkZzFjQiN9LVYvIFB2nSUHW9tYpxWriPrWDASIxiaXax83REcLxuSdnGPZtw== -"@esbuild/darwin-arm64@0.19.12": - version "0.19.12" - resolved "https://registry.npmjs.org/@esbuild/darwin-arm64/-/darwin-arm64-0.19.12.tgz" - integrity sha512-B6IeSgZgtEzGC42jsI+YYu9Z3HKRxp8ZT3cqhvliEHovq8HSX2YX8lNocDn79gCKJXOSaEot9MVYky7AKjCs8g== - "@eslint-community/eslint-utils@^4.2.0": version "4.4.0" dependencies: @@ -602,9 +597,6 @@ "@jridgewell/resolve-uri" "^3.1.0" "@jridgewell/sourcemap-codec" "^1.4.14" -"@lancedb/vectordb-darwin-arm64@0.4.11": - version "0.4.11" - "@mozilla/readability@^0.5.0": version "0.5.0" resolved "https://registry.npmjs.org/@mozilla/readability/-/readability-0.5.0.tgz" @@ -2501,11 +2493,6 @@ fs.realpath@^1.0.0: resolved "https://registry.npmjs.org/fs.realpath/-/fs.realpath-1.0.0.tgz" integrity sha512-OO0pH2lK6a0hZnAdau5ItzHPI6pUlvI7jMVnxUQRtw4owF2wk8lOSabtGDCTP4Ggrg2MbGnWO9X8K1t4+fGMDw== -fsevents@^2.3.2: - version "2.3.3" - resolved "https://registry.npmjs.org/fsevents/-/fsevents-2.3.3.tgz" - integrity sha512-5xoDfX+fL7faATnagmWPpbFtwh/R77WmMMqqHGS65C3vvB0YHrgF+B1YmZ3441tMj5n63k0212XNoJwzlhffQw== - function-bind@^1.1.2: version "1.1.2" resolved "https://registry.npmjs.org/function-bind/-/function-bind-1.1.2.tgz" @@ -5264,11 +5251,6 @@ tr46@~0.0.3: resolved "https://registry.npmjs.org/tr46/-/tr46-0.0.3.tgz" integrity sha512-N3WMsuqV66lT30CrXNbEjx4GEwlow3v6rr4mCcv6prnfwhS01rkgyFdjPNBYd9br7LpXV1+Emh01fHnq2Gdgrw== -tree-sitter-cli@^0.21.0: - version "0.21.0" - resolved "https://registry.npmjs.org/tree-sitter-cli/-/tree-sitter-cli-0.21.0.tgz" - integrity sha512-wA7wT5724fNQW82XDH6zT6ZcYonjrAKLCHHuhLsPcAKULrhp3rNuMvlgBdB5FUBvmjHNhtTZF/qpHenMoRJPBw== - tree-sitter-wasms@^0.1.6: version "0.1.6" diff --git a/extensions/vscode/package-lock.json b/extensions/vscode/package-lock.json index 9859539f9..f0c69c6e5 100644 --- a/extensions/vscode/package-lock.json +++ b/extensions/vscode/package-lock.json @@ -1,12 +1,12 @@ { "name": "continue", - "version": "0.9.84", + "version": "0.9.85", "lockfileVersion": 3, "requires": true, "packages": { "": { "name": "continue", - "version": "0.9.84", + "version": "0.9.85", "license": "Apache-2.0", "dependencies": { "@electron/rebuild": "^3.2.10", diff --git a/extensions/vscode/package.json b/extensions/vscode/package.json index b932feff0..5c7a84018 100644 --- a/extensions/vscode/package.json +++ b/extensions/vscode/package.json @@ -1,7 +1,7 @@ { "name": "continue", "icon": "media/icon.png", - "version": "0.9.84", + "version": "0.9.85", "repository": { "type": "git", "url": "https://github.com/continuedev/continue" diff --git a/extensions/vscode/yarn.lock b/extensions/vscode/yarn.lock index 58e092a54..66932aca8 100644 --- a/extensions/vscode/yarn.lock +++ b/extensions/vscode/yarn.lock @@ -368,15 +368,15 @@ tar "^6.0.5" yargs "^17.0.1" -"@esbuild/darwin-arm64@0.17.19": +"@esbuild/linux-x64@0.17.19": version "0.17.19" - resolved "https://registry.npmjs.org/@esbuild/darwin-arm64/-/darwin-arm64-0.17.19.tgz" - integrity sha512-80wEoCfF/hFKM6WE1FyBHc9SfUblloAWx6FJkFWTWiCoht9Mc0ARGEM47e67W9rI09YoUxJL68WHfDRYEAvOhg== + resolved "https://registry.npmjs.org/@esbuild/linux-x64/-/linux-x64-0.17.19.tgz" + integrity sha512-68ngA9lg2H6zkZcyp22tsVt38mlhWde8l3eJLWkyLrp4HwMUr3c1s/M2t7+kHIhvMjglIBrFpncX1SzMckomGw== -"@esbuild/darwin-arm64@0.18.20": +"@esbuild/linux-x64@0.18.20": version "0.18.20" - resolved "https://registry.npmjs.org/@esbuild/darwin-arm64/-/darwin-arm64-0.18.20.tgz" - integrity sha512-bxRHW5kHU38zS2lPTPOyuyTm+S+eobPUnTNkdJEfAddYgEcll4xkT8DB9d2008DtTbl7uJag2HuE5NZAZgnNEA== + resolved "https://registry.npmjs.org/@esbuild/linux-x64/-/linux-x64-0.18.20.tgz" + integrity sha512-UYqiqemphJcNsFEskc73jQ7B9jgwjWrSayxawS6UVFZGWrAAtkzjxSqnoclCXxWtfwLdzU+vTpcNYhpn43uP1w== "@eslint-community/eslint-utils@^4.2.0": version "4.4.0" @@ -691,10 +691,10 @@ resolved "https://registry.npmjs.org/@jsdevtools/ono/-/ono-7.1.3.tgz" integrity sha512-4JQNk+3mVzK3xh2rqd6RB4J46qUR19azEHBneZyTZM+c456qOrbbM/5xcR8huNCCcbVt7+UmizG6GuUvPvKUYg== -"@lancedb/vectordb-darwin-arm64@*", "@lancedb/vectordb-darwin-arm64@0.4.12": +"@lancedb/vectordb-linux-x64-gnu@0.4.12": version "0.4.12" - resolved "https://registry.npmjs.org/@lancedb/vectordb-darwin-arm64/-/vectordb-darwin-arm64-0.4.12.tgz" - integrity sha512-38/rkJRlWXkPWXuj9onzvbrhnIWcIUQjgEp5G9v5ixPosBowm7A4j8e2Q8CJMsVSNcVX2JLqwWVldiWegZFuYw== + resolved "https://registry.npmjs.org/@lancedb/vectordb-linux-x64-gnu/-/vectordb-linux-x64-gnu-0.4.12.tgz" + integrity sha512-gJqYR0aymrS+C60xc4EQPzmQ5/69XfeFv2ofBvAj7qW+c6BcnoAcfVl+7s1IrcWeGz251sm5cD5Lx4AzJd89dA== "@lukeed/csprng@^1.0.0": version "1.1.0" @@ -3444,11 +3444,6 @@ fs.realpath@^1.0.0: resolved "https://registry.npmjs.org/fs.realpath/-/fs.realpath-1.0.0.tgz" integrity sha512-OO0pH2lK6a0hZnAdau5ItzHPI6pUlvI7jMVnxUQRtw4owF2wk8lOSabtGDCTP4Ggrg2MbGnWO9X8K1t4+fGMDw== -fsevents@^2.3.2, fsevents@~2.3.2: - version "2.3.3" - resolved "https://registry.npmjs.org/fsevents/-/fsevents-2.3.3.tgz" - integrity sha512-5xoDfX+fL7faATnagmWPpbFtwh/R77WmMMqqHGS65C3vvB0YHrgF+B1YmZ3441tMj5n63k0212XNoJwzlhffQw== - function-bind@^1.1.2: version "1.1.2" resolved "https://registry.npmjs.org/function-bind/-/function-bind-1.1.2.tgz" From 0ace1699356be8024a8ab49ccadc4b1b22c18e08 Mon Sep 17 00:00:00 2001 From: Ben Force Date: Wed, 13 Mar 2024 07:34:22 -0500 Subject: [PATCH 028/105] feat: update to work as normal context provider --- .../GitLabMergeRequestContextProvider.ts | 103 ++++++++++++++---- 1 file changed, 82 insertions(+), 21 deletions(-) diff --git a/core/context/providers/GitLabMergeRequestContextProvider.ts b/core/context/providers/GitLabMergeRequestContextProvider.ts index abdb0a1cd..f78cd10a1 100644 --- a/core/context/providers/GitLabMergeRequestContextProvider.ts +++ b/core/context/providers/GitLabMergeRequestContextProvider.ts @@ -1,4 +1,4 @@ -import type { AxiosInstance, AxiosError } from "axios"; +import { AxiosInstance, AxiosError } from "axios"; import {BaseContextProvider} from ".."; import { ContextProviderExtras, ContextItem, ContextProviderDescription } from "../.."; @@ -7,6 +7,51 @@ interface RemoteBranchInfo { project: string | null; } +interface GitLabUser { + id: number; + username: string; + name: string; + state: "active"; + locked: boolean; + avatar_url: string; + web_url: string; +} + +interface GitLabMergeRequest { + iid: number; + project_id: number; + title: string; + description: string; +} + +interface GitLabComment { + type: null | "DiffNote"; + resolvable: boolean; + resolved?: boolean; + body: string; + created_at: string; + author: GitLabUser; + position?: { + new_path: string; + new_line: number; + head_sha: string; + line_range: { + start: { + line_code: string; + type: "new"; + old_line: null; + new_line: number; + }; + end: { + line_code: string; + type: "new"; + old_line: null; + new_line: number; + }; + }; + }; +} + const trimFirstElement = (args: Array): string => { return args[0].trim(); }; @@ -31,7 +76,7 @@ class GitLabMergeRequestContextProvider extends BaseContextProvider { } return Axios.create({ - baseURL: `https://${domain ?? "gitlab.com"}/api`, + baseURL: `https://${domain ?? "gitlab.com"}/api/v4`, headers: { "PRIVATE-TOKEN": token, }, @@ -82,18 +127,18 @@ class GitLabMergeRequestContextProvider extends BaseContextProvider { }; }; - async getContextItems(query: string, extras: ContextProviderExtras): Promise { - - const parts = [`# ${this.description.displayTitle}`]; + async getContextItems(query: string, extras: ContextProviderExtras): Promise { const { branch, project } = await this.getRemoteBranchName(extras); const api = await this.getApi(); + + const result = [] as Array; try { const mergeRequests = await api - .get>( - `/v4/projects/${encodeURIComponent(project!)}/merge_requests`, + .get>( + `/projects/${encodeURIComponent(project!)}/merge_requests`, { params: { source_branch: branch, @@ -103,13 +148,17 @@ class GitLabMergeRequestContextProvider extends BaseContextProvider { ) .then((x) => x.data); - if (mergeRequests?.length) { - const mergeRequest = mergeRequests[0]; - - parts.push(`Merge Request: ${mergeRequest.iid}`); + for (const mergeRequest of mergeRequests) { + const parts = [ + `# ${mergeRequest.title}` + ]; + + if (mergeRequest?.description) { + parts.push(`## Description`, mergeRequest.description); + } const comments = await api.get>( - `/v4/projects/${mergeRequest.project_id}/merge_requests/${mergeRequest.iid}/notes`, + `/projects/${mergeRequest.project_id}/merge_requests/${mergeRequest.iid}/notes`, { params: { sort: "asc", @@ -117,12 +166,14 @@ class GitLabMergeRequestContextProvider extends BaseContextProvider { }, } ); + + const filteredComments = comments.data.filter( + (x) => x.type === "DiffNote" + ); const locations = {} as Record>; - for (const comment of comments.data.filter( - (x) => x.type === "DiffNote" - )) { + for (const comment of filteredComments) { const filename = comment.position?.new_path ?? "general"; if (!locations[filename]) { @@ -162,22 +213,32 @@ class GitLabMergeRequestContextProvider extends BaseContextProvider { parts.push(...locationComments.map(commentFormatter)); } - } - + + const content = parts.join("\n\n"); - return [ + result.push( { - name: `GitLab MR Comments`, + name: mergeRequest.title, content, description: `Comments from the Merge Request for this branch.`, }, - ]; + ); + } + } catch(ex) { if(ex instanceof AxiosError) { - + if (ex.response) { + throw ex.response?.data ?? new Error(`GitLab error ${ex.response.status}: ${ex.response.statusText}`); + } else { + throw new Error(`GitLab Request Error ${ex.request}`); + } } + + throw ex; } + + return result; } } From ae888d9e814cf10931222070ed1e2ae5438325fe Mon Sep 17 00:00:00 2001 From: Ben Force Date: Fri, 15 Mar 2024 05:48:20 -0500 Subject: [PATCH 029/105] fix: add context provider --- core/context/providers/index.ts | 2 ++ core/index.d.ts | 3 +- docs/static/schemas/config.json | 27 +++++++++++++++ .../src/main/resources/config_schema.json | 27 +++++++++++++++ extensions/vscode/config_schema.json | 27 +++++++++++++++ extensions/vscode/continue_rc_schema.json | 33 +++++++++++++++++++ 6 files changed, 118 insertions(+), 1 deletion(-) diff --git a/core/context/providers/index.ts b/core/context/providers/index.ts index 978c8e94c..58016c3b7 100644 --- a/core/context/providers/index.ts +++ b/core/context/providers/index.ts @@ -17,6 +17,7 @@ import ProblemsContextProvider from "./ProblemsContextProvider"; import SearchContextProvider from "./SearchContextProvider"; import TerminalContextProvider from "./TerminalContextProvider"; import URLContextProvider from "./URLContextProvider"; +import GitLabMergeRequestContextProvider from "./GitLabMergeRequestContextProvider"; const Providers: (typeof BaseContextProvider)[] = [ DiffContextProvider, @@ -32,6 +33,7 @@ const Providers: (typeof BaseContextProvider)[] = [ ProblemsContextProvider, FolderContextProvider, DocsContextProvider, + GitLabMergeRequestContextProvider, // CodeHighlightsContextProvider, // CodeOutlineContextProvider, JiraIssuesContextProvider, diff --git a/core/index.d.ts b/core/index.d.ts index 18f88a2cd..c42bc662b 100644 --- a/core/index.d.ts +++ b/core/index.d.ts @@ -428,7 +428,8 @@ type ContextProviderName = | "postgres" | "database" | "code" - | "docs"; + | "docs" + | "gitlab-mr"; type TemplateType = | "llama2" diff --git a/docs/static/schemas/config.json b/docs/static/schemas/config.json index 7734d7cef..439e6c0d5 100644 --- a/docs/static/schemas/config.json +++ b/docs/static/schemas/config.json @@ -1241,6 +1241,33 @@ "required": ["connections"] } }, + { + "if": { + "properties": { + "name": { + "enum": ["gitlab-mr"] + } + } + }, + "then": { + "properties": { + "params": { + "properties": { + "domain": { + "type": "string", + "description": "Your GitLab domain, will default to gitlab.com" + }, + "token": { + "type": "string", + "description": "Your private access token." + } + }, + "required": ["token"] + } + }, + "required": ["params"] + } + }, { "if": { "properties": { diff --git a/extensions/intellij/src/main/resources/config_schema.json b/extensions/intellij/src/main/resources/config_schema.json index 7734d7cef..439e6c0d5 100644 --- a/extensions/intellij/src/main/resources/config_schema.json +++ b/extensions/intellij/src/main/resources/config_schema.json @@ -1241,6 +1241,33 @@ "required": ["connections"] } }, + { + "if": { + "properties": { + "name": { + "enum": ["gitlab-mr"] + } + } + }, + "then": { + "properties": { + "params": { + "properties": { + "domain": { + "type": "string", + "description": "Your GitLab domain, will default to gitlab.com" + }, + "token": { + "type": "string", + "description": "Your private access token." + } + }, + "required": ["token"] + } + }, + "required": ["params"] + } + }, { "if": { "properties": { diff --git a/extensions/vscode/config_schema.json b/extensions/vscode/config_schema.json index 7734d7cef..439e6c0d5 100644 --- a/extensions/vscode/config_schema.json +++ b/extensions/vscode/config_schema.json @@ -1241,6 +1241,33 @@ "required": ["connections"] } }, + { + "if": { + "properties": { + "name": { + "enum": ["gitlab-mr"] + } + } + }, + "then": { + "properties": { + "params": { + "properties": { + "domain": { + "type": "string", + "description": "Your GitLab domain, will default to gitlab.com" + }, + "token": { + "type": "string", + "description": "Your private access token." + } + }, + "required": ["token"] + } + }, + "required": ["params"] + } + }, { "if": { "properties": { diff --git a/extensions/vscode/continue_rc_schema.json b/extensions/vscode/continue_rc_schema.json index 996045153..7fdd0279b 100644 --- a/extensions/vscode/continue_rc_schema.json +++ b/extensions/vscode/continue_rc_schema.json @@ -1390,6 +1390,39 @@ ] } }, + { + "if": { + "properties": { + "name": { + "enum": [ + "gitlab-mr" + ] + } + } + }, + "then": { + "properties": { + "params": { + "properties": { + "domain": { + "type": "string", + "description": "Your GitLab domain, will default to gitlab.com" + }, + "token": { + "type": "string", + "description": "Your private access token." + } + }, + "required": [ + "token" + ] + } + }, + "required": [ + "params" + ] + } + }, { "if": { "properties": { From e3653f98f08e52fa6a55d41ca147add1c8e5515a Mon Sep 17 00:00:00 2001 From: Ben Force Date: Fri, 15 Mar 2024 07:07:26 -0500 Subject: [PATCH 030/105] feat: add code that comment is based on --- .../GitLabMergeRequestContextProvider.ts | 88 ++++++++++++------- 1 file changed, 56 insertions(+), 32 deletions(-) diff --git a/core/context/providers/GitLabMergeRequestContextProvider.ts b/core/context/providers/GitLabMergeRequestContextProvider.ts index f78cd10a1..c845c959c 100644 --- a/core/context/providers/GitLabMergeRequestContextProvider.ts +++ b/core/context/providers/GitLabMergeRequestContextProvider.ts @@ -56,6 +56,17 @@ const trimFirstElement = (args: Array): string => { return args[0].trim(); }; +const getSubprocess = async (extras: ContextProviderExtras) => { + const workingDir = await extras.ide + .getWorkspaceDirs() + .then(trimFirstElement); + + return (command: string) => + extras.ide + .subprocess(`cd ${workingDir}; ${command}`) + .then(trimFirstElement); +}; + class GitLabMergeRequestContextProvider extends BaseContextProvider { static description: ContextProviderDescription = { @@ -86,14 +97,7 @@ class GitLabMergeRequestContextProvider extends BaseContextProvider { private async getRemoteBranchName(extras: ContextProviderExtras): Promise { - const workingDir = await extras.ide - .getWorkspaceDirs() - .then(trimFirstElement); - - const subprocess = (command: string) => - extras.ide - .subprocess(`cd ${workingDir}; ${command}`) - .then(trimFirstElement); + const subprocess = await getSubprocess(extras); const branchName = await subprocess(`git branch --show-current`); @@ -147,15 +151,15 @@ class GitLabMergeRequestContextProvider extends BaseContextProvider { } ) .then((x) => x.data); + + + const subprocess = await getSubprocess(extras); for (const mergeRequest of mergeRequests) { const parts = [ - `# ${mergeRequest.title}` + `# GitLab Merge Request\ntitle: "${mergeRequest.title}"\ndescription: "${mergeRequest.description ?? 'None'}"`, + `## Comments`, ]; - - if (mergeRequest?.description) { - parts.push(`## Description`, mergeRequest.description); - } const comments = await api.get>( `/projects/${mergeRequest.project_id}/merge_requests/${mergeRequest.iid}/notes`, @@ -183,35 +187,43 @@ class GitLabMergeRequestContextProvider extends BaseContextProvider { locations[filename].push(comment); } - const commentFormatter = (comment: GitLabComment) => { - const commentParts = [ - `### ${comment.author.name} on ${comment.created_at}${ - comment.resolved ? " (Resolved)" : "" - }`, - ]; + const commentFormatter = async (comment: GitLabComment) => { + const commentLabel = comment.body.includes("```suggestion") ? 'Code Suggestion' : 'Comment'; + let result = `#### ${commentLabel}\nauthor: "${comment.author.name}"\ndate: "${comment.created_at}"\nresolved: ${ + comment.resolved ? "Yes" : "No" + }`; if (comment.position?.new_line) { - commentParts.push( - `line: ${comment.position.new_line}\ncommit: ${comment.position.head_sha}` - ); + result += `\nline: ${comment.position.new_line}`; + + if (comment.position.head_sha) { + const sourceLines = await subprocess(`git show ${comment.position.head_sha}:${comment.position.new_path}`).then(result => result.split("\n")).catch(ex => []); + + const line = comment.position.new_line <= sourceLines.length ? sourceLines[comment.position.new_line - 1] : null; + + if (line) { + result += `\nsource: \`${line}\``; + } + } } - commentParts.push(comment.body); + result += `\n\n${comment.body}`; - return commentParts.join("\n\n"); + return result; }; for (const [filename, locationComments] of Object.entries(locations)) { if (filename !== "general") { - parts.push(`## File ${filename}`); + parts.push(`### File ${filename}`); locationComments.sort( (a, b) => a.position!.new_line - b.position!.new_line ); } else { - parts.push("## Comments"); + parts.push("### General"); } - parts.push(...locationComments.map(commentFormatter)); + const commentSections = await Promise.all(locationComments.map(commentFormatter)); + parts.push(...commentSections); } @@ -226,16 +238,28 @@ class GitLabMergeRequestContextProvider extends BaseContextProvider { ); } - } catch(ex) { - if(ex instanceof AxiosError) { + } catch (ex) { + let content = `# GitLab Merge Request\n\nError getting merge request. `; + if (ex instanceof AxiosError) { if (ex.response) { - throw ex.response?.data ?? new Error(`GitLab error ${ex.response.status}: ${ex.response.statusText}`); + const errorMessage = ex.response?.data ? ex.response.data.message ?? JSON.stringify(ex.response?.data) : `${ex.response.status}: ${ex.response.statusText}`; + content += `GitLab Error: ${errorMessage}`; } else { - throw new Error(`GitLab Request Error ${ex.request}`); + content += `GitLab Request Error ${ex.request}`; } + } else { + // @ts-ignore + content += `Unknown error: ${ex.message ?? JSON.stringify(ex)}`; } - throw ex; + + result.push( + { + name: `GitLab Merge Request`, + content, + description: `Error getting the Merge Request for this branch.`, + }, + ); } return result; From f0ad750d6cbdbfdb6ff57c5ce371134569956757 Mon Sep 17 00:00:00 2001 From: Ben Force Date: Fri, 15 Mar 2024 07:14:02 -0500 Subject: [PATCH 031/105] docs: add documentation --- docs/docs/customization/context-providers.md | 31 ++++++++++++++++++++ 1 file changed, 31 insertions(+) diff --git a/docs/docs/customization/context-providers.md b/docs/docs/customization/context-providers.md index 3328f2fbb..d17835a3d 100644 --- a/docs/docs/customization/context-providers.md +++ b/docs/docs/customization/context-providers.md @@ -120,6 +120,37 @@ Type '@issue' to reference the conversation in a GitHub issue. Make sure to incl } ``` +### GitLab Merge Request + +Type `@gitlab-mr` to reference an open MR for this branch on GitLab. + +#### Configuration + +You will need to create a [personal access token](https://docs.gitlab.com/ee/user/profile/personal_access_tokens.html) with the `read_api` scope. then add the following to your configuration: + +```json +{ + "name": "gitlab-mr", + "params": { + "token": "..." + } +} +``` + +#### Using Self-Hosted GitLab + +You can specify the domain to communicate with by setting the `domain` parameter in your configurtion. By default this is set to `gitlab.com`. + +```json +{ + "name": "gitlab-mr", + "params": { + "token": "...", + "domain": "gitlab.example.com" + } +} +``` + ### Jira Issues Type '@jira' to reference the conversation in a Jira issue. Make sure to include your own [Atlassian API Token](https://id.atlassian.com/manage-profile/security/api-tokens). From 471ca9eae5e1f82e04b2d6d600631bf24876ec06 Mon Sep 17 00:00:00 2001 From: Ben Force Date: Fri, 15 Mar 2024 12:43:33 -0500 Subject: [PATCH 032/105] feat: enable comment filtering --- .../context/providers/GitLabMergeRequestContextProvider.ts | 7 +++++++ docs/docs/customization/context-providers.md | 4 ++++ docs/static/schemas/config.json | 4 ++++ extensions/intellij/src/main/resources/config_schema.json | 4 ++++ extensions/vscode/config_schema.json | 4 ++++ extensions/vscode/continue_rc_schema.json | 4 ++++ 6 files changed, 27 insertions(+) diff --git a/core/context/providers/GitLabMergeRequestContextProvider.ts b/core/context/providers/GitLabMergeRequestContextProvider.ts index c845c959c..d1b3da8eb 100644 --- a/core/context/providers/GitLabMergeRequestContextProvider.ts +++ b/core/context/providers/GitLabMergeRequestContextProvider.ts @@ -186,6 +186,13 @@ class GitLabMergeRequestContextProvider extends BaseContextProvider { locations[filename].push(comment); } + + if (extras.selectedCode.length && this.options.filterComments) { + const toRemove = Object.keys(locations).filter(filename => !extras.selectedCode.find(selection => selection.filepath.endsWith(filename)) && filename !== "general"); + for (const filepath of toRemove) { + delete locations[filepath]; + } + } const commentFormatter = async (comment: GitLabComment) => { const commentLabel = comment.body.includes("```suggestion") ? 'Code Suggestion' : 'Comment'; diff --git a/docs/docs/customization/context-providers.md b/docs/docs/customization/context-providers.md index d17835a3d..94cbcb2ed 100644 --- a/docs/docs/customization/context-providers.md +++ b/docs/docs/customization/context-providers.md @@ -151,6 +151,10 @@ You can specify the domain to communicate with by setting the `domain` parameter } ``` +#### Filtering Comments + +If you select some code to be edited, you can have the context provider filter out comments for other files. To enable this feature, set `filterComments` to `true`. + ### Jira Issues Type '@jira' to reference the conversation in a Jira issue. Make sure to include your own [Atlassian API Token](https://id.atlassian.com/manage-profile/security/api-tokens). diff --git a/docs/static/schemas/config.json b/docs/static/schemas/config.json index 439e6c0d5..4d9ff78fd 100644 --- a/docs/static/schemas/config.json +++ b/docs/static/schemas/config.json @@ -1260,6 +1260,10 @@ "token": { "type": "string", "description": "Your private access token." + }, + "filterComments": { + "type": "boolean", + "description": "If you have code selected, filters out comments that aren't related to the selection." } }, "required": ["token"] diff --git a/extensions/intellij/src/main/resources/config_schema.json b/extensions/intellij/src/main/resources/config_schema.json index 439e6c0d5..4d9ff78fd 100644 --- a/extensions/intellij/src/main/resources/config_schema.json +++ b/extensions/intellij/src/main/resources/config_schema.json @@ -1260,6 +1260,10 @@ "token": { "type": "string", "description": "Your private access token." + }, + "filterComments": { + "type": "boolean", + "description": "If you have code selected, filters out comments that aren't related to the selection." } }, "required": ["token"] diff --git a/extensions/vscode/config_schema.json b/extensions/vscode/config_schema.json index 439e6c0d5..4d9ff78fd 100644 --- a/extensions/vscode/config_schema.json +++ b/extensions/vscode/config_schema.json @@ -1260,6 +1260,10 @@ "token": { "type": "string", "description": "Your private access token." + }, + "filterComments": { + "type": "boolean", + "description": "If you have code selected, filters out comments that aren't related to the selection." } }, "required": ["token"] diff --git a/extensions/vscode/continue_rc_schema.json b/extensions/vscode/continue_rc_schema.json index 7fdd0279b..277388a9e 100644 --- a/extensions/vscode/continue_rc_schema.json +++ b/extensions/vscode/continue_rc_schema.json @@ -1411,6 +1411,10 @@ "token": { "type": "string", "description": "Your private access token." + }, + "filterComments": { + "type": "boolean", + "description": "If you have code selected, filters out comments that aren't related to the selection." } }, "required": [ From ca2b4c6e97fe835e777c8fe8afa07e7c9ff94729 Mon Sep 17 00:00:00 2001 From: Nate Sesti Date: Fri, 15 Mar 2024 12:23:44 -0700 Subject: [PATCH 033/105] =?UTF-8?q?=F0=9F=90=9B=20fix=20autocomplete=20wit?= =?UTF-8?q?h=20azure?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- core/llm/llms/OpenAI.ts | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/core/llm/llms/OpenAI.ts b/core/llm/llms/OpenAI.ts index e3c50c5c5..a151e9737 100644 --- a/core/llm/llms/OpenAI.ts +++ b/core/llm/llms/OpenAI.ts @@ -71,9 +71,10 @@ class OpenAI extends BaseLLM { top_p: options.topP, frequency_penalty: options.frequencyPenalty, presence_penalty: options.presencePenalty, - stop: this.apiBase?.includes(":1337") - ? options.stop?.slice(0, 4) - : options.stop, + stop: + this.apiBase?.includes(":1337") || this.apiType === "azure" + ? options.stop?.slice(0, 4) + : options.stop, }; return finalOptions; From d348461753775fc7499819c81818861544c8b16d Mon Sep 17 00:00:00 2001 From: Nate Sesti Date: Fri, 15 Mar 2024 12:24:02 -0700 Subject: [PATCH 034/105] =?UTF-8?q?=E2=9C=A8=20jetbrains=20multiline=20com?= =?UTF-8?q?pletions?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../autocomplete/AutocompleteService.kt | 19 ++++- .../ContinueCustomElementRenderer.kt | 5 +- .../ContinueMultilineCustomElementRenderer.kt | 76 +++++++++++++++++++ 3 files changed, 98 insertions(+), 2 deletions(-) create mode 100644 extensions/intellij/src/main/kotlin/com/github/continuedev/continueintellijextension/autocomplete/ContinueMultilineCustomElementRenderer.kt diff --git a/extensions/intellij/src/main/kotlin/com/github/continuedev/continueintellijextension/autocomplete/AutocompleteService.kt b/extensions/intellij/src/main/kotlin/com/github/continuedev/continueintellijextension/autocomplete/AutocompleteService.kt index ecef2e490..9cf1c5500 100644 --- a/extensions/intellij/src/main/kotlin/com/github/continuedev/continueintellijextension/autocomplete/AutocompleteService.kt +++ b/extensions/intellij/src/main/kotlin/com/github/continuedev/continueintellijextension/autocomplete/AutocompleteService.kt @@ -1,14 +1,17 @@ package com.github.continuedev.continueintellijextension.autocomplete import com.github.continuedev.continueintellijextension.`continue`.uuid +import com.github.continuedev.continueintellijextension.services.ContinueExtensionSettings import com.github.continuedev.continueintellijextension.services.ContinuePluginService import com.google.gson.Gson import com.intellij.openapi.application.ApplicationManager import com.intellij.openapi.application.WriteAction import com.intellij.openapi.application.invokeLater import com.intellij.openapi.components.Service +import com.intellij.openapi.components.ServiceManager import com.intellij.openapi.components.service import com.intellij.openapi.editor.Editor +import com.intellij.openapi.editor.InlayProperties import com.intellij.openapi.fileEditor.FileDocumentManager import com.intellij.openapi.project.Project @@ -24,6 +27,12 @@ class AutocompleteService(private val project: Project) { var pendingCompletion: PendingCompletion? = null; fun triggerCompletion(editor: Editor) { + val settings = + ServiceManager.getService(ContinueExtensionSettings::class.java) + if (!settings.continueState.enableTabAutocomplete) { + return + } + if (pendingCompletion != null) { clearCompletions(pendingCompletion!!.editor) } @@ -59,7 +68,15 @@ class AutocompleteService(private val project: Project) { private fun renderCompletion(editor: Editor, offset: Int, text: String) { ApplicationManager.getApplication().invokeLater { WriteAction.run { - editor.inlayModel.addInlineElement(offset, true, ContinueCustomElementRenderer(editor, text)) + val properties = InlayProperties() + properties.relatesToPrecedingText(true) + properties.disableSoftWrapping(true) + + if (text.lines().size > 1) { + editor.inlayModel.addBlockElement(offset, properties, ContinueMultilineCustomElementRenderer(editor, text)) + } else { + editor.inlayModel.addInlineElement(offset, properties, ContinueCustomElementRenderer(editor, text)) + } } } } diff --git a/extensions/intellij/src/main/kotlin/com/github/continuedev/continueintellijextension/autocomplete/ContinueCustomElementRenderer.kt b/extensions/intellij/src/main/kotlin/com/github/continuedev/continueintellijextension/autocomplete/ContinueCustomElementRenderer.kt index 207f9d6ea..3a501971e 100644 --- a/extensions/intellij/src/main/kotlin/com/github/continuedev/continueintellijextension/autocomplete/ContinueCustomElementRenderer.kt +++ b/extensions/intellij/src/main/kotlin/com/github/continuedev/continueintellijextension/autocomplete/ContinueCustomElementRenderer.kt @@ -7,6 +7,8 @@ import com.intellij.openapi.editor.colors.EditorFontType import com.intellij.openapi.editor.impl.EditorImpl import com.intellij.openapi.editor.impl.FontInfo import com.intellij.openapi.editor.markup.TextAttributes +import com.intellij.ui.Gray +import com.intellij.ui.JBColor import java.awt.Color import java.awt.Font import java.awt.Graphics @@ -37,7 +39,8 @@ class ContinueCustomElementRenderer ( } override fun paint(inlay: Inlay<*>, g: Graphics, targetRegion: Rectangle, textAttributes: TextAttributes) { - g.color = Color(128, 128, 128) + g.color = JBColor.GRAY + g.font = font g.drawString(this.text, targetRegion.x, targetRegion.y + offsetY()) } } \ No newline at end of file diff --git a/extensions/intellij/src/main/kotlin/com/github/continuedev/continueintellijextension/autocomplete/ContinueMultilineCustomElementRenderer.kt b/extensions/intellij/src/main/kotlin/com/github/continuedev/continueintellijextension/autocomplete/ContinueMultilineCustomElementRenderer.kt new file mode 100644 index 000000000..4b69ea4dc --- /dev/null +++ b/extensions/intellij/src/main/kotlin/com/github/continuedev/continueintellijextension/autocomplete/ContinueMultilineCustomElementRenderer.kt @@ -0,0 +1,76 @@ +package com.github.continuedev.continueintellijextension.autocomplete + +import com.intellij.openapi.editor.Editor +import com.intellij.openapi.editor.EditorCustomElementRenderer +import com.intellij.openapi.editor.Inlay +import com.intellij.openapi.editor.colors.EditorFontType +import com.intellij.openapi.editor.impl.EditorImpl +import com.intellij.openapi.editor.impl.FontInfo +import com.intellij.openapi.editor.markup.TextAttributes +import com.intellij.ui.Gray +import com.intellij.ui.JBColor +import java.awt.Color +import java.awt.Font +import java.awt.Graphics +import java.awt.Rectangle +import kotlin.math.ceil +import kotlin.math.max + +class ContinueMultilineCustomElementRenderer ( + val editor: Editor, + val text: String, +) : EditorCustomElementRenderer { + override fun calcWidthInPixels(inlay: Inlay<*>): Int { + val lines = text.lines() + var maxLen = 0; + for (line in lines) { + val len = (inlay.editor as EditorImpl).getFontMetrics(Font.PLAIN).stringWidth(line) + if (len > maxLen) { + maxLen = len + } + } + return maxLen + } + + override fun calcHeightInPixels(inlay: Inlay<*>): Int { + return (inlay.editor as EditorImpl).lineHeight * text.lines().size + } + + protected val font: Font + get() { + val editorFont = editor.colorsScheme.getFont(EditorFontType.PLAIN) + return editorFont.deriveFont(Font.ITALIC) ?: editorFont + } + + private fun offsetY(): Int { + val metrics = + FontInfo.getFontMetrics(font, FontInfo.getFontRenderContext(editor.contentComponent)) + val fontHeight = + font.createGlyphVector(metrics.fontRenderContext, text).visualBounds.height + val height = (editor.lineHeight + fontHeight) / 2 + return ceil(height).toInt() + } + + private fun offsetX(): Int { + val currentLine = editor.caretModel.primaryCaret.logicalPosition.line + val currentColumn = editor.caretModel.primaryCaret.logicalPosition.column + val metrics = + FontInfo.getFontMetrics(font, FontInfo.getFontRenderContext(editor.contentComponent)) + val fontWidth = + font.createGlyphVector(metrics.fontRenderContext, text).visualBounds.width + val widthBeforeCaret = (editor as EditorImpl).getFontMetrics(Font.PLAIN).stringWidth(text.substring(0, currentColumn)) + return max(0, widthBeforeCaret - (editor as EditorImpl).scrollingModel.horizontalScrollOffset) + } + + override fun paint(inlay: Inlay<*>, g: Graphics, targetRegion: Rectangle, textAttributes: TextAttributes) { + g.color = JBColor.GRAY + g.font = font + var additionalYOffset = -editor.lineHeight; + var isFirstLine = true + for (line in text.lines()) { + g.drawString(line, if (isFirstLine) targetRegion.x + offsetX() else targetRegion.x, targetRegion.y + offsetY() + additionalYOffset) + additionalYOffset += editor.lineHeight + isFirstLine = false + } + } +} \ No newline at end of file From 573af8bbbe0f36d2614ce949b5df3ccaba70dd49 Mon Sep 17 00:00:00 2001 From: Nate Sesti Date: Fri, 15 Mar 2024 12:24:13 -0700 Subject: [PATCH 035/105] =?UTF-8?q?=F0=9F=90=9B=20fix=20file=20reading=20i?= =?UTF-8?q?n=20autocomplete?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../continue/IdeProtocolClient.kt | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) diff --git a/extensions/intellij/src/main/kotlin/com/github/continuedev/continueintellijextension/continue/IdeProtocolClient.kt b/extensions/intellij/src/main/kotlin/com/github/continuedev/continueintellijextension/continue/IdeProtocolClient.kt index 33cd33d7c..4deed6e6b 100644 --- a/extensions/intellij/src/main/kotlin/com/github/continuedev/continueintellijextension/continue/IdeProtocolClient.kt +++ b/extensions/intellij/src/main/kotlin/com/github/continuedev/continueintellijextension/continue/IdeProtocolClient.kt @@ -526,14 +526,17 @@ class IdeProtocolClient ( fun readFile(filepath: String): String { try { - val virtualFile = LocalFileSystem.getInstance().findFileByPath(filepath) - if (virtualFile != null && FileDocumentManager.getInstance().isFileModified(virtualFile)) { - val document = FileDocumentManager.getInstance().getDocument(virtualFile) - if (document != null) { - return document.text + val content = ApplicationManager.getApplication().runReadAction { + val virtualFile = LocalFileSystem.getInstance().findFileByPath(filepath) + if (virtualFile != null && FileDocumentManager.getInstance().isFileModified(virtualFile)) { + return@runReadAction FileDocumentManager.getInstance().getDocument(virtualFile)?.text } + return@runReadAction null } + if (content != null) { + return content + } val file = File(filepath) if (!file.exists()) return "" From 524ec018bf026dba184b5adb8b77994fedc0fe0d Mon Sep 17 00:00:00 2001 From: Nate Sesti Date: Fri, 15 Mar 2024 12:24:25 -0700 Subject: [PATCH 036/105] =?UTF-8?q?=E2=9C=A8=20option=20to=20disable=20jet?= =?UTF-8?q?brains=20autocomplete?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../services/ContinueExtensionSettingsService.kt | 9 ++++++++- .../toolWindow/ContinuePluginToolWindowFactory.kt | 1 + 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/extensions/intellij/src/main/kotlin/com/github/continuedev/continueintellijextension/services/ContinueExtensionSettingsService.kt b/extensions/intellij/src/main/kotlin/com/github/continuedev/continueintellijextension/services/ContinueExtensionSettingsService.kt index 2400a8fe5..8042cdc24 100644 --- a/extensions/intellij/src/main/kotlin/com/github/continuedev/continueintellijextension/services/ContinueExtensionSettingsService.kt +++ b/extensions/intellij/src/main/kotlin/com/github/continuedev/continueintellijextension/services/ContinueExtensionSettingsService.kt @@ -21,6 +21,7 @@ class ContinueSettingsComponent: DumbAware { val remoteConfigServerUrl: JTextField = JTextField() val remoteConfigSyncPeriod: JTextField = JTextField() val userToken: JTextField = JTextField() + val enableTabAutocomplete: JCheckBox = JCheckBox("Enable Tab Autocomplete") init { val constraints = GridBagConstraints() @@ -44,6 +45,8 @@ class ContinueSettingsComponent: DumbAware { constraints.gridy++ panel.add(userToken, constraints) constraints.gridy++ + panel.add(enableTabAutocomplete, constraints) + constraints.gridy++ // Add a "filler" component that takes up all remaining vertical space constraints.weighty = 1.0 @@ -63,6 +66,7 @@ open class ContinueExtensionSettings : PersistentStateComponent Date: Fri, 15 Mar 2024 12:40:19 -0700 Subject: [PATCH 037/105] =?UTF-8?q?=F0=9F=93=8C=20update=20package-lock=20?= =?UTF-8?q?files?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- core/package-lock.json | 11 ----------- core/yarn.lock | 5 ----- 2 files changed, 16 deletions(-) diff --git a/core/package-lock.json b/core/package-lock.json index 5670ffd72..4570869b7 100644 --- a/core/package-lock.json +++ b/core/package-lock.json @@ -55,7 +55,6 @@ "@types/uuid": "^9.0.7", "esbuild": "^0.19.11", "jest": "^29.7.0", - "tree-sitter-cli": "^0.21.0", "ts-jest": "^29.1.1" } }, @@ -9392,16 +9391,6 @@ "node": ">=18" } }, - "node_modules/tree-sitter-cli": { - "version": "0.21.0", - "resolved": "https://registry.npmjs.org/tree-sitter-cli/-/tree-sitter-cli-0.21.0.tgz", - "integrity": "sha512-wA7wT5724fNQW82XDH6zT6ZcYonjrAKLCHHuhLsPcAKULrhp3rNuMvlgBdB5FUBvmjHNhtTZF/qpHenMoRJPBw==", - "dev": true, - "hasInstallScript": true, - "bin": { - "tree-sitter": "cli.js" - } - }, "node_modules/tree-sitter-wasms": { "version": "0.1.7", "resolved": "https://registry.npmjs.org/tree-sitter-wasms/-/tree-sitter-wasms-0.1.7.tgz", diff --git a/core/yarn.lock b/core/yarn.lock index 33b36ba9a..6db13ef49 100644 --- a/core/yarn.lock +++ b/core/yarn.lock @@ -5512,11 +5512,6 @@ tr46@~0.0.3: resolved "https://registry.npmjs.org/tr46/-/tr46-0.0.3.tgz" integrity sha512-N3WMsuqV66lT30CrXNbEjx4GEwlow3v6rr4mCcv6prnfwhS01rkgyFdjPNBYd9br7LpXV1+Emh01fHnq2Gdgrw== -tree-sitter-cli@^0.21.0: - version "0.21.0" - resolved "https://registry.npmjs.org/tree-sitter-cli/-/tree-sitter-cli-0.21.0.tgz" - integrity sha512-wA7wT5724fNQW82XDH6zT6ZcYonjrAKLCHHuhLsPcAKULrhp3rNuMvlgBdB5FUBvmjHNhtTZF/qpHenMoRJPBw== - tree-sitter-wasms@^0.1.6: version "0.1.7" resolved "https://registry.npmjs.org/tree-sitter-wasms/-/tree-sitter-wasms-0.1.7.tgz" From 38bf73869c79baec14b9a1012a7b496718197a0a Mon Sep 17 00:00:00 2001 From: Nate Sesti Date: Fri, 15 Mar 2024 13:02:35 -0700 Subject: [PATCH 038/105] =?UTF-8?q?=F0=9F=90=9B=20fix=20localhost=20ollama?= =?UTF-8?q?=20bug=20with=20jetbrains=20binary?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- core/llm/llms/Ollama.ts | 17 +++++++++++++---- 1 file changed, 13 insertions(+), 4 deletions(-) diff --git a/core/llm/llms/Ollama.ts b/core/llm/llms/Ollama.ts index 1c0c77561..1ea5deab4 100644 --- a/core/llm/llms/Ollama.ts +++ b/core/llm/llms/Ollama.ts @@ -21,7 +21,7 @@ class Ollama extends BaseLLM { if (options.model === "AUTODETECT") { return; } - this.fetch(new URL("api/show", this.apiBase), { + this.fetch(this.getEndpoint("api/show"), { method: "POST", headers: {}, body: JSON.stringify({ name: this._getModel() }), @@ -137,11 +137,20 @@ class Ollama extends BaseLLM { return finalOptions; } + private getEndpoint(endpoint: string): URL { + let base = this.apiBase; + if (process.env.IS_BINARY) { + base = base?.replace("localhost", "127.0.0.1"); + } + + return new URL(endpoint, base); + } + protected async *_streamComplete( prompt: string, options: CompletionOptions, ): AsyncGenerator { - const response = await this.fetch(new URL("api/generate", this.apiBase), { + const response = await this.fetch(this.getEndpoint("api/generate"), { method: "POST", headers: { "Content-Type": "application/json", @@ -180,7 +189,7 @@ class Ollama extends BaseLLM { messages: ChatMessage[], options: CompletionOptions, ): AsyncGenerator { - const response = await this.fetch(new URL("api/chat", this.apiBase), { + const response = await this.fetch(this.getEndpoint("api/chat"), { method: "POST", headers: { "Content-Type": "application/json", @@ -220,7 +229,7 @@ class Ollama extends BaseLLM { async listModels(): Promise { const response = await this.fetch( // localhost was causing fetch failed in pkg binary only for this Ollama endpoint - new URL("api/tags", this.apiBase?.replace("localhost", "127.0.0.1")), + this.getEndpoint("api/tags"), { method: "GET", }, From f5305abd22672744addf57a512125a28edc977ef Mon Sep 17 00:00:00 2001 From: Nate Sesti Date: Fri, 15 Mar 2024 13:02:53 -0700 Subject: [PATCH 039/105] =?UTF-8?q?=F0=9F=94=A5=20disable=20apply=20to=20f?= =?UTF-8?q?ile=20in=20jetbrains=20for=20now?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../components/markdown/CodeBlockToolbar.tsx | 38 ++++++++++--------- 1 file changed, 20 insertions(+), 18 deletions(-) diff --git a/gui/src/components/markdown/CodeBlockToolbar.tsx b/gui/src/components/markdown/CodeBlockToolbar.tsx index 30556dbad..6bb735afb 100644 --- a/gui/src/components/markdown/CodeBlockToolbar.tsx +++ b/gui/src/components/markdown/CodeBlockToolbar.tsx @@ -6,7 +6,7 @@ import { import { useState } from "react"; import styled from "styled-components"; import { vscEditorBackground } from ".."; -import { postToIde } from "../../util/ide"; +import { isJetBrains, postToIde } from "../../util/ide"; import HeaderButtonWithText from "../HeaderButtonWithText"; const TopDiv = styled.div` @@ -39,23 +39,25 @@ function CodeBlockToolBar(props: CodeBlockToolBarProps) { return ( - { - if (applying) return; - postToIde("applyToCurrentFile", { text: props.text }); - setApplying(true); - setTimeout(() => setApplying(false), 2000); - }} - > - {applying ? ( - - ) : ( - - )} - + {isJetBrains() || ( + { + if (applying) return; + postToIde("applyToCurrentFile", { text: props.text }); + setApplying(true); + setTimeout(() => setApplying(false), 2000); + }} + > + {applying ? ( + + ) : ( + + )} + + )} Date: Fri, 15 Mar 2024 13:03:12 -0700 Subject: [PATCH 040/105] =?UTF-8?q?=F0=9F=9A=B8=20fix=20constant=20re-rend?= =?UTF-8?q?ering=20of=20code=20vision=20in=20jetbrains?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../autocomplete/AutocompleteService.kt | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/extensions/intellij/src/main/kotlin/com/github/continuedev/continueintellijextension/autocomplete/AutocompleteService.kt b/extensions/intellij/src/main/kotlin/com/github/continuedev/continueintellijextension/autocomplete/AutocompleteService.kt index 9cf1c5500..f272a0aac 100644 --- a/extensions/intellij/src/main/kotlin/com/github/continuedev/continueintellijextension/autocomplete/AutocompleteService.kt +++ b/extensions/intellij/src/main/kotlin/com/github/continuedev/continueintellijextension/autocomplete/AutocompleteService.kt @@ -105,7 +105,15 @@ class AutocompleteService(private val project: Project) { cancelCompletion(pendingCompletion!!) pendingCompletion = null } - editor.inlayModel.getInlineElementsInRange(0, editor.document.textLength).forEach { it.dispose() } - editor.inlayModel.getBlockElementsInRange(0, editor.document.textLength).forEach { it.dispose() } + editor.inlayModel.getInlineElementsInRange(0, editor.document.textLength).forEach { + if (it.renderer is ContinueCustomElementRenderer) { + it.dispose() + } + } + editor.inlayModel.getBlockElementsInRange(0, editor.document.textLength).forEach { + if (it.renderer is ContinueMultilineCustomElementRenderer) { + it.dispose() + } + } } } From 98800cbe72b08b8584d09be040be722a689bbaed Mon Sep 17 00:00:00 2001 From: Nate Sesti Date: Sat, 16 Mar 2024 01:33:43 -0700 Subject: [PATCH 041/105] =?UTF-8?q?=F0=9F=94=96=20update=20package.json=20?= =?UTF-8?q?versiojn?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- extensions/vscode/package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/extensions/vscode/package.json b/extensions/vscode/package.json index df487b4e0..67e507c22 100644 --- a/extensions/vscode/package.json +++ b/extensions/vscode/package.json @@ -1,7 +1,7 @@ { "name": "continue", "icon": "media/icon.png", - "version": "0.8.18", + "version": "0.9.88", "repository": { "type": "git", "url": "https://github.com/continuedev/continue" From 5b3dda00381dfc16e4f56680056cb7d0fba9a5f9 Mon Sep 17 00:00:00 2001 From: Nate Sesti Date: Sat, 16 Mar 2024 14:29:39 -0700 Subject: [PATCH 042/105] =?UTF-8?q?=F0=9F=90=9B=20don't=20override=20user?= =?UTF-8?q?=20temperature=20value=20for=20tab=20autocomplete=20model?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- core/autocomplete/completionProvider.ts | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/core/autocomplete/completionProvider.ts b/core/autocomplete/completionProvider.ts index 97f7013e5..66d29a17f 100644 --- a/core/autocomplete/completionProvider.ts +++ b/core/autocomplete/completionProvider.ts @@ -217,7 +217,6 @@ export async function getTabCompletion( () => llm.streamComplete(prompt, { ...completionOptions, - temperature: 0, raw: true, stop, }), @@ -386,6 +385,12 @@ export class CompletionProvider { if (!llm) { return undefined; } + + // Set temperature (but don't overrride) + if (llm.completionOptions.temperature === undefined) { + llm.completionOptions.temperature = 0.0; + } + const outcome = await getTabCompletion( token, options, From 6a5ad0e5d09ea8f2fde7eea7b0a663c98eb45342 Mon Sep 17 00:00:00 2001 From: Peter Zaback Date: Sat, 16 Mar 2024 16:33:19 -0500 Subject: [PATCH 043/105] Fix chat msg formatting in Output for image models (#971) --- core/llm/index.ts | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/core/llm/index.ts b/core/llm/index.ts index e6df8e2ba..8a5ecb442 100644 --- a/core/llm/index.ts +++ b/core/llm/index.ts @@ -29,6 +29,7 @@ import { compileChatMessages, countTokens, pruneRawPromptFromTop, + stripImages, } from "./countTokens"; import CompletionOptionsForModels from "./templates/options"; @@ -245,8 +246,13 @@ ${prompt}`; } private _formatChatMessages(messages: ChatMessage[]): string { + const msgsCopy = messages ? messages.map((msg) => ({ ...msg })) : []; let formatted = ""; - for (let msg of messages) { + for (let msg of msgsCopy) { + if ("content" in msg && Array.isArray(msg.content)) { + const content = stripImages(msg.content); + msg.content = content; + } formatted += `<${msg.role}>\n${msg.content || ""}\n\n`; } return formatted; From 3b6902fb6833c8dc5612b127195081bb1fe279c6 Mon Sep 17 00:00:00 2001 From: Nate Sesti Date: Sun, 17 Mar 2024 14:40:20 -0700 Subject: [PATCH 044/105] =?UTF-8?q?=F0=9F=93=9D=20tweak=20docs=20for=20"lo?= =?UTF-8?q?cals"=20ctx=20provider?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- core/config/default.ts | 1 - docs/docs/customization/context-providers.md | 6 ++---- 2 files changed, 2 insertions(+), 5 deletions(-) diff --git a/core/config/default.ts b/core/config/default.ts index 3391b47b3..f75fcbe65 100644 --- a/core/config/default.ts +++ b/core/config/default.ts @@ -63,7 +63,6 @@ export const defaultConfig: SerializedContinueConfig = { { name: "terminal", params: {} }, { name: "problems", params: {} }, { name: "codebase", params: {} }, - { name: "locals", params: {} }, ], tabAutocompleteModel: { title: "Starcoder 3b", diff --git a/docs/docs/customization/context-providers.md b/docs/docs/customization/context-providers.md index 343ceb279..f8cb25db6 100644 --- a/docs/docs/customization/context-providers.md +++ b/docs/docs/customization/context-providers.md @@ -230,11 +230,10 @@ Type `@database` to reference table schemas you can use the drop-down or start t } ``` -### Debugger Context - -#### LocalsProvider +### Debugger: Local Variables Type `@locals` to reference the contents of the local variables with top n level (defaulting to 3) of call stack for that thread. A dropdown will appear, allowing you to select a specific thread to see the local variables in that thread. + ```json { "name": "locals", @@ -244,7 +243,6 @@ Type `@locals` to reference the contents of the local variables with top n level } ``` - ### Requesting Context Providers Not seeing what you want? Create an issue [here](https://github.com/continuedev/continue/issues/new?assignees=TyDunn&labels=enhancement&projects=&template=feature-request-%F0%9F%92%AA.md&title=) to request a new ContextProvider. From b81946d7f89f701b25c94372b06a6bd0ffbc962c Mon Sep 17 00:00:00 2001 From: Nate Sesti Date: Sun, 17 Mar 2024 15:40:27 -0700 Subject: [PATCH 045/105] =?UTF-8?q?=F0=9F=A9=B9=20small=20tweak=20to=20lin?= =?UTF-8?q?k=20filtering=20logic?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- core/indexing/docs/crawl.ts | 142 +++++++++++++++------------- extensions/vscode/package-lock.json | 8 +- extensions/vscode/yarn.lock | 23 +++-- gui/package-lock.json | 6 ++ 4 files changed, 103 insertions(+), 76 deletions(-) diff --git a/core/indexing/docs/crawl.ts b/core/indexing/docs/crawl.ts index 524b602c4..fdc1e33dc 100644 --- a/core/indexing/docs/crawl.ts +++ b/core/indexing/docs/crawl.ts @@ -1,7 +1,7 @@ import { Octokit } from "@octokit/rest"; import cheerio from "cheerio"; import fetch from "node-fetch"; -import { URL } from 'url'; +import { URL } from "url"; const IGNORE_PATHS_ENDING_IN = [ "favicon.ico", @@ -44,83 +44,89 @@ async function crawlGithubRepo(baseUrl: URL) { ); const paths = tree.data.tree - .filter( - (file) => file.type === "blob" && file.path?.endsWith(".md"), - ) + .filter((file) => file.type === "blob" && file.path?.endsWith(".md")) .map((file) => baseUrl.pathname + "/tree/main/" + file.path); return paths; } async function getLinksFromUrl(url: string, path: string) { - const location = new URL(path, url); - let response; - try { - response = await fetch(location.toString()); - } catch (error: unknown) { - if (error instanceof Error && error.message.includes('maximum redirect')) { - console.error('Maximum redirect reached for: ', location.toString()); - return { - html: '', - links: [] - }; - } else { - console.error(error); - return { - html: '', - links: [] - }; - } - } - - const html = await response.text(); - let links: string[] = []; - - if (url.includes("github.com")) { + const baseUrl = new URL(url); + const location = new URL(path, url); + let response; + try { + response = await fetch(location.toString()); + } catch (error: unknown) { + if (error instanceof Error && error.message.includes("maximum redirect")) { + console.error("Maximum redirect reached for: ", location.toString()); return { - html, - links + html: "", + links: [], + }; + } else { + console.error(error); + return { + html: "", + links: [], }; } + } - const $ = cheerio.load(html); - - $('a').each((_, element) => { - const link = $(element).attr('href'); - if (link) { - const fullUrl = new URL(link, url); - - if (fullUrl.pathname.startsWith(path)) { - links.push(fullUrl.pathname); - } - } - }); - - links = [...new Set(links)].filter(link => { - return !link.includes('#') && !IGNORE_PATHS_ENDING_IN.some(ending => link.endsWith(ending)); - }); + const html = await response.text(); + let links: string[] = []; + if (url.includes("github.com")) { return { - html, - links + html, + links, }; + } + + const $ = cheerio.load(html); + + $("a").each((_, element) => { + const href = $(element).attr("href"); + if (!href) { + return; + } + + const parsedUrl = new URL(href, url); + if ( + parsedUrl.hostname === baseUrl.hostname + // parsedUrl.pathname.startsWith(baseUrl.pathname) + ) { + links.push(parsedUrl.pathname); + } + }); + + links = [...new Set(links)].filter((link) => { + return ( + !link.includes("#") && + !IGNORE_PATHS_ENDING_IN.some((ending) => link.endsWith(ending)) + ); + }); + + return { + html, + links, + }; } function splitUrl(url: URL) { - const baseUrl = `${url.protocol}//${url.hostname}`; - const basePath = url.pathname; - return { - baseUrl, - basePath - }; + const baseUrl = `${url.protocol}//${url.hostname}`; + const basePath = url.pathname; + return { + baseUrl, + basePath, + }; } export type PageData = { - url: string; - path: string; - html: string; + url: string; + path: string; + html: string; }; - + export async function* crawlPage(url: URL): AsyncGenerator { const { baseUrl, basePath } = splitUrl(url); let paths: string[] = [basePath]; @@ -133,16 +139,18 @@ export async function* crawlPage(url: URL): AsyncGenerator { let index = 0; while (index < paths.length) { - const promises = paths.slice(index, index + 50).map(path => getLinksFromUrl(baseUrl, path)); + const promises = paths + .slice(index, index + 50) + .map((path) => getLinksFromUrl(baseUrl, path)); const results = await Promise.all(promises); - for (const {html, links} of results) { - if (html !== '') { + for (const { html, links } of results) { + if (html !== "") { yield { - url: url.toString(), + url: url.toString(), path: paths[index], - html: html + html: html, }; } @@ -155,6 +163,10 @@ export async function* crawlPage(url: URL): AsyncGenerator { index++; } - paths = paths.filter(path => results.some(result => result.html !== '' && result.links.includes(path))); + paths = paths.filter((path) => + results.some( + (result) => result.html !== "" && result.links.includes(path), + ), + ); } -} \ No newline at end of file +} diff --git a/extensions/vscode/package-lock.json b/extensions/vscode/package-lock.json index be905ca16..e11749691 100644 --- a/extensions/vscode/package-lock.json +++ b/extensions/vscode/package-lock.json @@ -1,12 +1,12 @@ { "name": "continue", - "version": "0.8.18", + "version": "0.9.88", "lockfileVersion": 3, "requires": true, "packages": { "": { "name": "continue", - "version": "0.8.18", + "version": "0.9.88", "license": "Apache-2.0", "dependencies": { "@electron/rebuild": "^3.2.10", @@ -80,6 +80,7 @@ "vsce": "^2.15.0" }, "engines": { + "node": ">=20.11.0", "vscode": "^1.70.0" } }, @@ -134,6 +135,9 @@ "esbuild": "^0.19.11", "jest": "^29.7.0", "ts-jest": "^29.1.1" + }, + "engines": { + "node": ">=20.11.0" } }, "node_modules/@75lb/deep-merge": { diff --git a/extensions/vscode/yarn.lock b/extensions/vscode/yarn.lock index 66932aca8..58e092a54 100644 --- a/extensions/vscode/yarn.lock +++ b/extensions/vscode/yarn.lock @@ -368,15 +368,15 @@ tar "^6.0.5" yargs "^17.0.1" -"@esbuild/linux-x64@0.17.19": +"@esbuild/darwin-arm64@0.17.19": version "0.17.19" - resolved "https://registry.npmjs.org/@esbuild/linux-x64/-/linux-x64-0.17.19.tgz" - integrity sha512-68ngA9lg2H6zkZcyp22tsVt38mlhWde8l3eJLWkyLrp4HwMUr3c1s/M2t7+kHIhvMjglIBrFpncX1SzMckomGw== + resolved "https://registry.npmjs.org/@esbuild/darwin-arm64/-/darwin-arm64-0.17.19.tgz" + integrity sha512-80wEoCfF/hFKM6WE1FyBHc9SfUblloAWx6FJkFWTWiCoht9Mc0ARGEM47e67W9rI09YoUxJL68WHfDRYEAvOhg== -"@esbuild/linux-x64@0.18.20": +"@esbuild/darwin-arm64@0.18.20": version "0.18.20" - resolved "https://registry.npmjs.org/@esbuild/linux-x64/-/linux-x64-0.18.20.tgz" - integrity sha512-UYqiqemphJcNsFEskc73jQ7B9jgwjWrSayxawS6UVFZGWrAAtkzjxSqnoclCXxWtfwLdzU+vTpcNYhpn43uP1w== + resolved "https://registry.npmjs.org/@esbuild/darwin-arm64/-/darwin-arm64-0.18.20.tgz" + integrity sha512-bxRHW5kHU38zS2lPTPOyuyTm+S+eobPUnTNkdJEfAddYgEcll4xkT8DB9d2008DtTbl7uJag2HuE5NZAZgnNEA== "@eslint-community/eslint-utils@^4.2.0": version "4.4.0" @@ -691,10 +691,10 @@ resolved "https://registry.npmjs.org/@jsdevtools/ono/-/ono-7.1.3.tgz" integrity sha512-4JQNk+3mVzK3xh2rqd6RB4J46qUR19azEHBneZyTZM+c456qOrbbM/5xcR8huNCCcbVt7+UmizG6GuUvPvKUYg== -"@lancedb/vectordb-linux-x64-gnu@0.4.12": +"@lancedb/vectordb-darwin-arm64@*", "@lancedb/vectordb-darwin-arm64@0.4.12": version "0.4.12" - resolved "https://registry.npmjs.org/@lancedb/vectordb-linux-x64-gnu/-/vectordb-linux-x64-gnu-0.4.12.tgz" - integrity sha512-gJqYR0aymrS+C60xc4EQPzmQ5/69XfeFv2ofBvAj7qW+c6BcnoAcfVl+7s1IrcWeGz251sm5cD5Lx4AzJd89dA== + resolved "https://registry.npmjs.org/@lancedb/vectordb-darwin-arm64/-/vectordb-darwin-arm64-0.4.12.tgz" + integrity sha512-38/rkJRlWXkPWXuj9onzvbrhnIWcIUQjgEp5G9v5ixPosBowm7A4j8e2Q8CJMsVSNcVX2JLqwWVldiWegZFuYw== "@lukeed/csprng@^1.0.0": version "1.1.0" @@ -3444,6 +3444,11 @@ fs.realpath@^1.0.0: resolved "https://registry.npmjs.org/fs.realpath/-/fs.realpath-1.0.0.tgz" integrity sha512-OO0pH2lK6a0hZnAdau5ItzHPI6pUlvI7jMVnxUQRtw4owF2wk8lOSabtGDCTP4Ggrg2MbGnWO9X8K1t4+fGMDw== +fsevents@^2.3.2, fsevents@~2.3.2: + version "2.3.3" + resolved "https://registry.npmjs.org/fsevents/-/fsevents-2.3.3.tgz" + integrity sha512-5xoDfX+fL7faATnagmWPpbFtwh/R77WmMMqqHGS65C3vvB0YHrgF+B1YmZ3441tMj5n63k0212XNoJwzlhffQw== + function-bind@^1.1.2: version "1.1.2" resolved "https://registry.npmjs.org/function-bind/-/function-bind-1.1.2.tgz" diff --git a/gui/package-lock.json b/gui/package-lock.json index 7162eef5d..1a4bab758 100644 --- a/gui/package-lock.json +++ b/gui/package-lock.json @@ -67,6 +67,9 @@ "tailwindcss": "^3.2.7", "typescript": "^4.9.3", "vite": "^4.1.0" + }, + "engines": { + "node": ">=20.11.0" } }, "../core": { @@ -120,6 +123,9 @@ "esbuild": "^0.19.11", "jest": "^29.7.0", "ts-jest": "^29.1.1" + }, + "engines": { + "node": ">=20.11.0" } }, "node_modules/@alloc/quick-lru": { From fbca1f8912b46804c5853a2373b50bcf2852cd1f Mon Sep 17 00:00:00 2001 From: SR_team Date: Mon, 18 Mar 2024 00:49:52 +0200 Subject: [PATCH 046/105] Add more C++ extensions for AST parser (#972) --- core/util/treeSitter.ts | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/core/util/treeSitter.ts b/core/util/treeSitter.ts index a308cacb3..4a54f2044 100644 --- a/core/util/treeSitter.ts +++ b/core/util/treeSitter.ts @@ -8,6 +8,14 @@ export const supportedLanguages: { [key: string]: string } = { cc: "cpp", cxx: "cpp", hxx: "cpp", + cp: "cpp", + hh: "cpp", + inc: "cpp", + // Depended on this PR: https://github.com/tree-sitter/tree-sitter-cpp/pull/173 + // ccm: "cpp", + // c++m: "cpp", + // cppm: "cpp", + // cxxm: "cpp", cs: "c_sharp", c: "c", h: "c", From e3eb04435fd284406eb48af8511b5092fc596b02 Mon Sep 17 00:00:00 2001 From: Nate Sesti Date: Sun, 17 Mar 2024 23:10:51 -0700 Subject: [PATCH 047/105] =?UTF-8?q?=F0=9F=94=A5=20remove=20ruby=20example?= =?UTF-8?q?=20file?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../vscode/manual-testing-sandbox/test.rb | 29 ------------------- 1 file changed, 29 deletions(-) delete mode 100644 extensions/vscode/manual-testing-sandbox/test.rb diff --git a/extensions/vscode/manual-testing-sandbox/test.rb b/extensions/vscode/manual-testing-sandbox/test.rb deleted file mode 100644 index c51a74218..000000000 --- a/extensions/vscode/manual-testing-sandbox/test.rb +++ /dev/null @@ -1,29 +0,0 @@ -# Example Ruby File - -# Define a class called ExpertProgrammer -class ExpertProgrammer - # Define a method called rewrite_code - def rewrite_code(code) - # Remove any empty lines from the code - code = code.gsub(/^\s*\n/, '') - - # Remove any leading or trailing whitespace from each line - code = code.lines.map(&:strip).join("\n") - - # Output the rewritten code - code - end -end - -# Create an instance of ExpertProgrammer -programmer = ExpertProgrammer.new - -# Example usage -original_code = <<~CODE - def hello_world - puts "Hello, World!" - end -CODE - -rewritten_code = programmer.rewrite_code(original_code) -puts rewritten_code \ No newline at end of file From bde7f59d769045eed4caa62bf893bbbacde73a14 Mon Sep 17 00:00:00 2001 From: Nate Sesti Date: Sun, 17 Mar 2024 23:51:02 -0700 Subject: [PATCH 048/105] add claude3 to free trial --- core/config/default.ts | 10 ++++++++++ core/index.d.ts | 27 ++++++++++++++------------- core/llm/autodetect.ts | 3 ++- extensions/vscode/config_schema.json | 5 +++++ gui/src/util/modelData.ts | 14 +++++++++----- 5 files changed, 40 insertions(+), 19 deletions(-) diff --git a/core/config/default.ts b/core/config/default.ts index f75fcbe65..60d74f7ec 100644 --- a/core/config/default.ts +++ b/core/config/default.ts @@ -27,6 +27,11 @@ export const defaultConfig: SerializedContinueConfig = { provider: "free-trial", model: "mistral-8x7b", }, + { + title: "Claude 3 Sonnet (Free Trial)", + provider: "free-trial", + model: "claude-3-sonnet-20240229", + }, ], slashCommands: [ { @@ -98,6 +103,11 @@ export const defaultConfigJetBrains: SerializedContinueConfig = { provider: "free-trial", model: "mistral-8x7b", }, + { + title: "Claude 3 Sonnet (Free Trial)", + provider: "free-trial", + model: "claude-3-sonnet-20240229", + }, ], slashCommands: [ { diff --git a/core/index.d.ts b/core/index.d.ts index 02e10c17b..c8d03177a 100644 --- a/core/index.d.ts +++ b/core/index.d.ts @@ -16,7 +16,7 @@ declare global { postIntellijMessage?: ( messageType: string, data: any, - messageIde: string + messageIde: string, ) => void; } } @@ -73,17 +73,17 @@ export interface ILLM extends LLMOptions { streamComplete( prompt: string, - options?: LLMFullCompletionOptions + options?: LLMFullCompletionOptions, ): AsyncGenerator; streamChat( messages: ChatMessage[], - options?: LLMFullCompletionOptions + options?: LLMFullCompletionOptions, ): AsyncGenerator; chat( messages: ChatMessage[], - options?: LLMFullCompletionOptions + options?: LLMFullCompletionOptions, ): Promise; countTokens(text: string): number; @@ -123,10 +123,10 @@ export interface CustomContextProvider { type?: ContextProviderType; getContextItems( query: string, - extras: ContextProviderExtras + extras: ContextProviderExtras, ): Promise; loadSubmenuItems?: ( - args: LoadSubmenuItemsArgs + args: LoadSubmenuItemsArgs, ) => Promise; } @@ -141,7 +141,7 @@ export interface IContextProvider { getContextItems( query: string, - extras: ContextProviderExtras + extras: ContextProviderExtras, ): Promise; loadSubmenuItems(args: LoadSubmenuItemsArgs): Promise; @@ -287,15 +287,15 @@ export interface CustomLLMWithOptionals { streamCompletion?: ( prompt: string, options: CompletionOptions, - fetch: (input: RequestInfo | URL, init?: RequestInit) => Promise + fetch: (input: RequestInfo | URL, init?: RequestInit) => Promise, ) => AsyncGenerator; streamChat?: ( messages: ChatMessage[], options: CompletionOptions, - fetch: (input: RequestInfo | URL, init?: RequestInit) => Promise + fetch: (input: RequestInfo | URL, init?: RequestInit) => Promise, ) => AsyncGenerator; listModels?: ( - fetch: (input: RequestInfo | URL, init?: RequestInit) => Promise + fetch: (input: RequestInfo | URL, init?: RequestInit) => Promise, ) => Promise; } @@ -348,7 +348,7 @@ export interface IDE { getDebugLocals(threadIndex: number): Promise; getTopLevelCallStackSources( threadIndex: number, - stackDepth: number + stackDepth: number, ): Promise; getAvailableThreads(): Promise; listWorkspaceContents(directory?: string): Promise; @@ -366,12 +366,12 @@ export interface IDE { showLines( filepath: string, startLine: number, - endLine: number + endLine: number, ): Promise; showDiff( filepath: string, newContents: string, - stepIndex: number + stepIndex: number, ): Promise; getOpenFiles(): Promise; getPinnedFiles(): Promise; @@ -513,6 +513,7 @@ export type ModelName = | "claude-2" | "claude-3-opus-20240229" | "claude-3-sonnet-20240229" + | "claude-3-haiku-20240307" | "claude-2.1" // Google PaLM | "chat-bison-001" diff --git a/core/llm/autodetect.ts b/core/llm/autodetect.ts index a29ababf8..013525f47 100644 --- a/core/llm/autodetect.ts +++ b/core/llm/autodetect.ts @@ -151,8 +151,9 @@ function autodetectTemplateType(model: string): TemplateType | undefined { return "zephyr"; } + // Claude requests always sent through Messages API, so formatting not necessary if (lower.includes("claude")) { - return "anthropic"; + return "none"; } if (lower.includes("alpaca") || lower.includes("wizard")) { diff --git a/extensions/vscode/config_schema.json b/extensions/vscode/config_schema.json index 3ac512c20..f93ccb3ba 100644 --- a/extensions/vscode/config_schema.json +++ b/extensions/vscode/config_schema.json @@ -427,6 +427,9 @@ "gpt-4-vision-preview", "codellama-70b", "mistral-8x7b", + "claude-3-opus-20240229", + "claude-3-sonnet-20240229", + "claude-3-haiku-20240307", "AUTODETECT" ] } @@ -514,6 +517,7 @@ "claude-instant-1", "claude-3-opus-20240229", "claude-3-sonnet-20240229", + "claude-3-haiku-20240307", "claude-2.1" ] }, @@ -862,6 +866,7 @@ "claude-instant-1", "claude-3-opus-20240229", "claude-3-sonnet-20240229", + "claude-3-haiku-20240307", "claude-2.1", "chat-bison-001", "gemini-pro", diff --git a/gui/src/util/modelData.ts b/gui/src/util/modelData.ts index adab0715a..304a11cb2 100644 --- a/gui/src/util/modelData.ts +++ b/gui/src/util/modelData.ts @@ -562,7 +562,7 @@ const claude3Opus: ModelPackage = { title: "Claude 3 Opus", apiKey: "", }, - providerOptions: ["anthropic"], + providerOptions: ["anthropic", "freetrial"], icon: "anthropic.png", }; @@ -576,7 +576,7 @@ const claude3Sonnet: ModelPackage = { title: "Claude 3 Sonnet", apiKey: "", }, - providerOptions: ["anthropic"], + providerOptions: ["anthropic", "freetrial"], icon: "anthropic.png", }; @@ -585,12 +585,12 @@ const claude3Haiku: ModelPackage = { description: "The third most capable model in the Claude 3 series: fastest and most compact model for near-instant responsiveness", params: { - model: "claude-2", + model: "claude-3-haiku-20240307", contextLength: 200_000, title: "Claude 3 Haiku", apiKey: "", }, - providerOptions: ["anthropic"], + providerOptions: ["anthropic", "freetrial"], icon: "anthropic.png", }; @@ -625,6 +625,7 @@ export const MODEL_INFO: ModelPackage[] = [ geminiPro, claude3Opus, claude3Sonnet, + claude3Haiku, claude2, deepseek, mistral, @@ -693,7 +694,7 @@ export const PROVIDER_INFO: { [key: string]: ModelInfo } = { defaultValue: 100_000, }, ], - packages: [claude3Opus, claude3Sonnet, claude2], + packages: [claude3Opus, claude3Sonnet, claude3Haiku, claude2], }, ollama: { title: "Ollama", @@ -929,6 +930,9 @@ After it's up and running, you can start using Continue.`, packages: [ codellama70bTrial, mixtralTrial, + { ...claude3Opus, title: "Claude 3 Opus (trial)" }, + { ...claude3Sonnet, title: "Claude 3 Sonnet (trial)" }, + { ...claude3Haiku, title: "Claude 3 Haiku (trial)" }, { ...geminiPro, title: "Gemini Pro (trial)" }, { ...gpt4vision, title: "GPT-4 Vision (trial)" }, { ...gpt35turbo, title: "GPT-3.5-Turbo (trial)" }, From a99f99824020d78e889bf0327412503687c718e5 Mon Sep 17 00:00:00 2001 From: Nate Sesti Date: Mon, 18 Mar 2024 00:35:09 -0700 Subject: [PATCH 049/105] =?UTF-8?q?=F0=9F=90=9B=20fix=20codelens=20in=20tu?= =?UTF-8?q?torial?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- extensions/vscode/src/commands.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/extensions/vscode/src/commands.ts b/extensions/vscode/src/commands.ts index 5d38dd9d6..f5a38e7eb 100644 --- a/extensions/vscode/src/commands.ts +++ b/extensions/vscode/src/commands.ts @@ -318,7 +318,9 @@ const commandsMap: ( sidebar.webviewProtocol?.request("openSettings", undefined); }, "continue.sendMainUserInput": (text: string) => { - sidebar.sendMainUserInput(text); + sidebar.webviewProtocol?.request("userInput", { + input: text, + }); }, "continue.shareSession": () => { sidebar.sendMainUserInput("/share"); From e49db6be9d9752afb683968da507289f90e1f0ab Mon Sep 17 00:00:00 2001 From: Nate Sesti Date: Mon, 18 Mar 2024 00:35:23 -0700 Subject: [PATCH 050/105] =?UTF-8?q?=F0=9F=A7=B1=20change=20server=20url?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- core/llm/llms/FreeTrial.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/llm/llms/FreeTrial.ts b/core/llm/llms/FreeTrial.ts index 6f397174d..4bafdccba 100644 --- a/core/llm/llms/FreeTrial.ts +++ b/core/llm/llms/FreeTrial.ts @@ -3,7 +3,7 @@ import { ChatMessage, CompletionOptions, ModelProvider } from "../.."; import { streamResponse } from "../stream"; // const SERVER_URL = "http://localhost:3000"; -const SERVER_URL = "https://node-proxy-server-green-l6vsfbzhba-uw.a.run.app"; +const SERVER_URL = "https://node-proxy-server-blue-l6vsfbzhba-uw.a.run.app"; class FreeTrial extends BaseLLM { static providerName: ModelProvider = "free-trial"; From 0c75e4ccd2f2b895e2c60e41ef682be107b2cef5 Mon Sep 17 00:00:00 2001 From: Nate Sesti Date: Mon, 18 Mar 2024 09:57:32 -0700 Subject: [PATCH 051/105] =?UTF-8?q?=F0=9F=90=9B=20don't=20send=20image=5Fu?= =?UTF-8?q?rl=20if=20not=20image=20type?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- core/llm/llms/OpenAI.ts | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/core/llm/llms/OpenAI.ts b/core/llm/llms/OpenAI.ts index 262f2cdc8..da31df620 100644 --- a/core/llm/llms/OpenAI.ts +++ b/core/llm/llms/OpenAI.ts @@ -50,11 +50,14 @@ class OpenAI extends BaseLLM { } const parts = message.content.map((part) => { - return { + const msg: any = { type: part.type, text: part.text, - image_url: { ...part.imageUrl, detail: "low" }, }; + if (part.type === "imageUrl") { + msg.image_url = { ...part.imageUrl, detail: "low" }; + } + return msg; }); return { ...message, From a1a6107fcddb98647b90fe195227ef5a46068314 Mon Sep 17 00:00:00 2001 From: Nate Sesti Date: Mon, 18 Mar 2024 09:57:40 -0700 Subject: [PATCH 052/105] =?UTF-8?q?=F0=9F=94=A7=20update=20config=20schema?= =?UTF-8?q?s?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- docs/static/schemas/config.json | 5 +++++ extensions/intellij/src/main/resources/config_schema.json | 5 +++++ extensions/vscode/continue_rc_schema.json | 5 +++++ extensions/vscode/yarn.lock | 7 ++++++- 4 files changed, 21 insertions(+), 1 deletion(-) diff --git a/docs/static/schemas/config.json b/docs/static/schemas/config.json index 3ac512c20..f93ccb3ba 100644 --- a/docs/static/schemas/config.json +++ b/docs/static/schemas/config.json @@ -427,6 +427,9 @@ "gpt-4-vision-preview", "codellama-70b", "mistral-8x7b", + "claude-3-opus-20240229", + "claude-3-sonnet-20240229", + "claude-3-haiku-20240307", "AUTODETECT" ] } @@ -514,6 +517,7 @@ "claude-instant-1", "claude-3-opus-20240229", "claude-3-sonnet-20240229", + "claude-3-haiku-20240307", "claude-2.1" ] }, @@ -862,6 +866,7 @@ "claude-instant-1", "claude-3-opus-20240229", "claude-3-sonnet-20240229", + "claude-3-haiku-20240307", "claude-2.1", "chat-bison-001", "gemini-pro", diff --git a/extensions/intellij/src/main/resources/config_schema.json b/extensions/intellij/src/main/resources/config_schema.json index 3ac512c20..f93ccb3ba 100644 --- a/extensions/intellij/src/main/resources/config_schema.json +++ b/extensions/intellij/src/main/resources/config_schema.json @@ -427,6 +427,9 @@ "gpt-4-vision-preview", "codellama-70b", "mistral-8x7b", + "claude-3-opus-20240229", + "claude-3-sonnet-20240229", + "claude-3-haiku-20240307", "AUTODETECT" ] } @@ -514,6 +517,7 @@ "claude-instant-1", "claude-3-opus-20240229", "claude-3-sonnet-20240229", + "claude-3-haiku-20240307", "claude-2.1" ] }, @@ -862,6 +866,7 @@ "claude-instant-1", "claude-3-opus-20240229", "claude-3-sonnet-20240229", + "claude-3-haiku-20240307", "claude-2.1", "chat-bison-001", "gemini-pro", diff --git a/extensions/vscode/continue_rc_schema.json b/extensions/vscode/continue_rc_schema.json index ba961abdd..7e0a61118 100644 --- a/extensions/vscode/continue_rc_schema.json +++ b/extensions/vscode/continue_rc_schema.json @@ -463,6 +463,9 @@ "gpt-4-vision-preview", "codellama-70b", "mistral-8x7b", + "claude-3-opus-20240229", + "claude-3-sonnet-20240229", + "claude-3-haiku-20240307", "AUTODETECT" ] } @@ -558,6 +561,7 @@ "claude-instant-1", "claude-3-opus-20240229", "claude-3-sonnet-20240229", + "claude-3-haiku-20240307", "claude-2.1" ] }, @@ -961,6 +965,7 @@ "claude-instant-1", "claude-3-opus-20240229", "claude-3-sonnet-20240229", + "claude-3-haiku-20240307", "claude-2.1", "chat-bison-001", "gemini-pro", diff --git a/extensions/vscode/yarn.lock b/extensions/vscode/yarn.lock index 58e092a54..79910666c 100644 --- a/extensions/vscode/yarn.lock +++ b/extensions/vscode/yarn.lock @@ -691,7 +691,12 @@ resolved "https://registry.npmjs.org/@jsdevtools/ono/-/ono-7.1.3.tgz" integrity sha512-4JQNk+3mVzK3xh2rqd6RB4J46qUR19azEHBneZyTZM+c456qOrbbM/5xcR8huNCCcbVt7+UmizG6GuUvPvKUYg== -"@lancedb/vectordb-darwin-arm64@*", "@lancedb/vectordb-darwin-arm64@0.4.12": +"@lancedb/vectordb-darwin-arm64@*": + version "0.4.13" + resolved "https://registry.npmjs.org/@lancedb/vectordb-darwin-arm64/-/vectordb-darwin-arm64-0.4.13.tgz" + integrity sha512-JfroNCG8yKIU931Y+x8d0Fp8C9DHUSC5j+CjI+e5err7rTWtie4j3JbsXlWAnPFaFEOg0Xk3BWkSikCvhPGJGg== + +"@lancedb/vectordb-darwin-arm64@0.4.12": version "0.4.12" resolved "https://registry.npmjs.org/@lancedb/vectordb-darwin-arm64/-/vectordb-darwin-arm64-0.4.12.tgz" integrity sha512-38/rkJRlWXkPWXuj9onzvbrhnIWcIUQjgEp5G9v5ixPosBowm7A4j8e2Q8CJMsVSNcVX2JLqwWVldiWegZFuYw== From eb1ee5ddce54c591eb2ecd6939fdc3cda853e12a Mon Sep 17 00:00:00 2001 From: Nate Sesti Date: Mon, 18 Mar 2024 12:44:21 -0700 Subject: [PATCH 053/105] =?UTF-8?q?=F0=9F=93=8C=20update=20npm=20version?= =?UTF-8?q?=20to=20v20.11.0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .nvmrc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.nvmrc b/.nvmrc index dbecb9173..df9385826 100644 --- a/.nvmrc +++ b/.nvmrc @@ -1 +1 @@ -v19.0.0 \ No newline at end of file +v20.11.0 \ No newline at end of file From caedc54a1c8e5726a4680aa067c4b46c421916c3 Mon Sep 17 00:00:00 2001 From: Nate Sesti <33237525+sestinj@users.noreply.github.com> Date: Mon, 18 Mar 2024 17:27:28 -0700 Subject: [PATCH 054/105] =?UTF-8?q?=F0=9F=93=88=20Locally=20track=20tokens?= =?UTF-8?q?=20generated=20and=20show=20stats=20(#987)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * ✨ log tokens generated locally * 💄 UI for usage stats --- core/llm/index.ts | 2 + core/util/devdataSqlite.ts | 73 ++++++++++++++++ core/util/paths.ts | 4 + core/web/webviewProtocol.ts | 14 +-- extensions/vscode/src/webviewProtocol.ts | 11 ++- gui/src/App.tsx | 7 +- gui/src/components/index.ts | 8 +- gui/src/pages/help.tsx | 17 +++- gui/src/pages/settings.tsx | 7 +- gui/src/pages/stats.tsx | 107 +++++++++++++++++++++++ 10 files changed, 234 insertions(+), 16 deletions(-) create mode 100644 core/util/devdataSqlite.ts create mode 100644 gui/src/pages/stats.tsx diff --git a/core/llm/index.ts b/core/llm/index.ts index 8a5ecb442..a7e186ab7 100644 --- a/core/llm/index.ts +++ b/core/llm/index.ts @@ -11,6 +11,7 @@ import { RequestOptions, TemplateType, } from ".."; +import { DevDataSqliteDb } from "../util/devdataSqlite"; import mergeJson from "../util/merge"; import { Telemetry } from "../util/posthog"; import { @@ -203,6 +204,7 @@ ${prompt}`; provider: this.providerName, tokens: tokens, }); + DevDataSqliteDb.logTokensGenerated(model, this.providerName, tokens); } _fetch?: (input: RequestInfo | URL, init?: RequestInit) => Promise = diff --git a/core/util/devdataSqlite.ts b/core/util/devdataSqlite.ts new file mode 100644 index 000000000..0ca1aa8d8 --- /dev/null +++ b/core/util/devdataSqlite.ts @@ -0,0 +1,73 @@ +import fs from "fs"; +import { DatabaseConnection } from "../indexing/refreshIndex"; +import { getDevDataSqlitePath } from "./paths"; + +export class DevDataSqliteDb { + static db: DatabaseConnection | null = null; + + private static async createTables(db: DatabaseConnection) { + await db.exec( + `CREATE TABLE IF NOT EXISTS tokens_generated ( + id INTEGER PRIMARY KEY AUTOINCREMENT, + model TEXT NOT NULL, + provider TEXT NOT NULL, + tokens_generated INTEGER NOT NULL, + timestamp DATETIME DEFAULT CURRENT_TIMESTAMP + )`, + ); + } + + public static async logTokensGenerated( + model: string, + provider: string, + tokens: number, + ) { + const db = await DevDataSqliteDb.get(); + await db?.run( + `INSERT INTO tokens_generated (model, provider, tokens_generated) VALUES (?, ?, ?)`, + [model, provider, tokens], + ); + } + + public static async getTokensPerDay() { + const db = await DevDataSqliteDb.get(); + // Return a sum of tokens_generated column aggregated by day + const result = await db?.all( + `SELECT date(timestamp) as day, sum(tokens_generated) as tokens + FROM tokens_generated + GROUP BY date(timestamp)`, + // WHERE model = ? AND provider = ? + // [model, provider], + ); + return result ?? []; + } + + public static async getTokensPerModel() { + const db = await DevDataSqliteDb.get(); + // Return a sum of tokens_generated column aggregated by model + const result = await db?.all( + `SELECT model, sum(tokens_generated) as tokens + FROM tokens_generated + GROUP BY model`, + ); + return result ?? []; + } + + static async get() { + const devDataSqlitePath = getDevDataSqlitePath(); + if (DevDataSqliteDb.db && fs.existsSync(devDataSqlitePath)) { + return DevDataSqliteDb.db; + } + + const { open } = require("sqlite"); + const sqlite3 = require("sqlite3"); + DevDataSqliteDb.db = await open({ + filename: devDataSqlitePath, + driver: sqlite3.Database, + }); + + await DevDataSqliteDb.createTables(DevDataSqliteDb.db!); + + return DevDataSqliteDb.db; + } +} diff --git a/core/util/paths.ts b/core/util/paths.ts index 9f19099e7..c480116cd 100644 --- a/core/util/paths.ts +++ b/core/util/paths.ts @@ -138,6 +138,10 @@ export function devDataPath(): string { return sPath; } +export function getDevDataSqlitePath(): string { + return path.join(devDataPath(), "devdata.sqlite"); +} + export function getDevDataFilePath(fileName: string): string { return path.join(devDataPath(), fileName + ".jsonl"); } diff --git a/core/web/webviewProtocol.ts b/core/web/webviewProtocol.ts index e2c36d337..217bdf856 100644 --- a/core/web/webviewProtocol.ts +++ b/core/web/webviewProtocol.ts @@ -27,7 +27,7 @@ export type IdeProtocol = { readFile: [{ filepath: string }, string]; showDiff: [ { filepath: string; newContents: string; stepIndex: number }, - void + void, ]; diffLine: [ { @@ -36,7 +36,7 @@ export type IdeProtocol = { startLine: number; endLine: number; }, - void + void, ]; getProblems: [{ filepath: string }, Problem[]]; getBranch: [{ dir: string }, string]; @@ -50,7 +50,7 @@ export type IdeProtocol = { getDebugLocals: [{ threadIndex: Number }, string]; getTopLevelCallStackSources: [ { threadIndex: number; stackDepth: number }, - string[] + string[], ]; getAvailableThreads: [undefined, Thread[]]; isTelemetryEnabled: [undefined, boolean]; @@ -68,7 +68,7 @@ export type WebviewProtocol = Protocol & workspacePaths: string[]; vscMachineId: string; vscMediaUrl: string; - } + }, ]; errorPopup: [{ message: string }, void]; @@ -83,6 +83,8 @@ export type WebviewProtocol = Protocol & reloadWindow: [undefined, void]; focusEditor: [undefined, void]; toggleFullScreen: [undefined, void]; + "stats/getTokensPerDay": [undefined, { day: string; tokens: number }[]]; + "stats/getTokensPerModel": [undefined, { model: string; tokens: number }[]]; }; export type ReverseWebviewProtocol = { @@ -94,11 +96,11 @@ export type ReverseWebviewProtocol = { historyIndex: number; item: ContextItemWithId; }, - void + void, ]; updateSubmenuItems: [ { provider: string; submenuItems: ContextSubmenuItem[] }, - void + void, ]; getDefaultModelTitle: [undefined, string]; newSessionWithPrompt: [{ prompt: string }, void]; diff --git a/extensions/vscode/src/webviewProtocol.ts b/extensions/vscode/src/webviewProtocol.ts index 41697bccd..381b543e5 100644 --- a/extensions/vscode/src/webviewProtocol.ts +++ b/extensions/vscode/src/webviewProtocol.ts @@ -4,6 +4,7 @@ import { addModel, addOpenAIKey, deleteModel } from "core/config/util"; import { indexDocs } from "core/indexing/docs"; import TransformersJsEmbeddingsProvider from "core/indexing/embeddings/TransformersJsEmbeddingsProvider"; import { logDevData } from "core/util/devdata"; +import { DevDataSqliteDb } from "core/util/devdataSqlite"; import historyManager from "core/util/history"; import { Message } from "core/util/messenger"; import { getConfigJsonPath } from "core/util/paths"; @@ -170,7 +171,7 @@ export class VsCodeWebviewProtocol { this.on("getTopLevelCallStackSources", async (msg) => { return await ide.getTopLevelCallStackSources( msg.data.threadIndex, - msg.data.stackDepth + msg.data.stackDepth, ); }); this.on("listWorkspaceContents", async (msg) => { @@ -528,6 +529,14 @@ export class VsCodeWebviewProtocol { this.on("openUrl", (msg) => { vscode.env.openExternal(vscode.Uri.parse(msg.data)); }); + this.on("stats/getTokensPerDay", async (msg) => { + const rows = await DevDataSqliteDb.getTokensPerDay(); + return rows; + }); + this.on("stats/getTokensPerModel", async (msg) => { + const rows = await DevDataSqliteDb.getTokensPerModel(); + return rows; + }); } public request( diff --git a/gui/src/App.tsx b/gui/src/App.tsx index f32324081..797d51fe8 100644 --- a/gui/src/App.tsx +++ b/gui/src/App.tsx @@ -16,6 +16,7 @@ import SettingsPage from "./pages/settings"; import { ContextSubmenuItem } from "core"; import useSubmenuContextProviders from "./hooks/useSubmenuContextProviders"; import { useVscTheme } from "./hooks/useVscTheme"; +import Stats from "./pages/stats"; const router = createMemoryRouter([ { @@ -35,6 +36,10 @@ const router = createMemoryRouter([ path: "/history", element: , }, + { + path: "/stats", + element: , + }, { path: "/help", element: , @@ -70,7 +75,7 @@ const router = createMemoryRouter([ export const SubmenuContextProvidersContext = createContext<{ getSubmenuContextItems: ( providerTitle: string | undefined, - query: string + query: string, ) => (ContextSubmenuItem & { providerTitle: string })[]; addItem: (providerTitle: string, item: ContextSubmenuItem) => void; }>({ diff --git a/gui/src/components/index.ts b/gui/src/components/index.ts index f047fc1a4..19fc1c776 100644 --- a/gui/src/components/index.ts +++ b/gui/src/components/index.ts @@ -67,7 +67,7 @@ if (typeof document !== "undefined") { // Remove alpha channel from colors const value = getComputedStyle(document.documentElement).getPropertyValue( - colorVar + colorVar, ); if (colorVar.startsWith("#") && value.length > 7) { document.body.style.setProperty(colorVar, value.slice(0, 7)); @@ -97,7 +97,7 @@ export function parseHexColor(hexColor: string): { export function parseColorForHex(colorVar: string): string { const value = getComputedStyle(document.documentElement).getPropertyValue( - colorVar + colorVar, ); if (value.startsWith("#")) { return value.slice(0, 7); @@ -197,6 +197,10 @@ export const H3 = styled.h3` width: fit-content; `; +export const Hr = styled.hr` + border: 0.5px solid ${lightGray}; +`; + export const Input = styled.input` width: 100%; padding: 8px 12px; diff --git a/gui/src/pages/help.tsx b/gui/src/pages/help.tsx index 11fb045d8..8e857fb83 100644 --- a/gui/src/pages/help.tsx +++ b/gui/src/pages/help.tsx @@ -1,7 +1,13 @@ import { ArrowLeftIcon } from "@heroicons/react/24/outline"; import { useNavigate } from "react-router-dom"; import styled from "styled-components"; -import { Button, lightGray, vscBackground, vscForeground } from "../components"; +import { + Button, + Hr, + lightGray, + vscBackground, + vscForeground, +} from "../components"; import KeyboardShortcutsDialog from "../components/dialogs/KeyboardShortcuts"; import { useNavigationListener } from "../hooks/useNavigationListener"; import { postToIde } from "../util/ide"; @@ -75,6 +81,15 @@ function HelpPage() { +

{ + navigate("/stats"); + }} + > + View My Usage +

+

Resources

diff --git a/gui/src/pages/settings.tsx b/gui/src/pages/settings.tsx index 9147be056..63ee5d2f1 100644 --- a/gui/src/pages/settings.tsx +++ b/gui/src/pages/settings.tsx @@ -7,6 +7,7 @@ import { useNavigate } from "react-router-dom"; import styled from "styled-components"; import { Button, + Hr, NumberInput, TextArea, lightGray, @@ -20,10 +21,6 @@ import { RootState } from "../redux/store"; import { getFontSize, getPlatform } from "../util"; import { postToIde } from "../util/ide"; -const Hr = styled.hr` - border: 0.5px solid ${lightGray}; -`; - const CancelButton = styled(Button)` background-color: transparent; color: ${lightGray}; @@ -132,7 +129,7 @@ function Settings() { formMethods.setValue("systemMessage", config.systemMessage); formMethods.setValue( "completionOptions.temperature", - config.completionOptions?.temperature + config.completionOptions?.temperature, ); }, [config]); diff --git a/gui/src/pages/stats.tsx b/gui/src/pages/stats.tsx new file mode 100644 index 000000000..7c9d8f09c --- /dev/null +++ b/gui/src/pages/stats.tsx @@ -0,0 +1,107 @@ +import { ArrowLeftIcon } from "@heroicons/react/24/outline"; +import { useEffect, useState } from "react"; +import { useNavigate } from "react-router-dom"; +import styled from "styled-components"; +import { lightGray, vscBackground, vscInputBackground } from "../components"; +import { useNavigationListener } from "../hooks/useNavigationListener"; +import { ideRequest } from "../util/ide"; + +const Th = styled.th` + padding: 0.5rem; + text-align: left; + border: 1px solid ${vscInputBackground}; +`; + +const Tr = styled.tr` + &:hover { + background-color: ${vscInputBackground}; + } + + overflow-wrap: anywhere; + + border: 1px solid ${vscInputBackground}; +`; + +const Td = styled.td` + padding: 0.5rem; + border: 1px solid ${vscInputBackground}; +`; + +function Stats() { + useNavigationListener(); + const navigate = useNavigate(); + + const [days, setDays] = useState<{ day: string; tokens: number }[]>([]); + + useEffect(() => { + ideRequest("stats/getTokensPerDay", undefined).then((days) => { + setDays(days); + }); + }, []); + + const [models, setModels] = useState<{ model: string; tokens: number }[]>([]); + + useEffect(() => { + ideRequest("stats/getTokensPerModel", undefined).then((models) => { + setModels(models); + }); + }, []); + + return ( +
+
+ navigate("/")} + className="inline-block ml-4 cursor-pointer" + /> +

My Usage

+
+ +

Tokens per Day

+ + + + + + + + + {days.map((day) => ( + + + + + ))} + +
DayTokens
{day.day}{day.tokens}
+ +

Tokens per Model

+ + + + + + + + + {models.map((model) => ( + + + + + ))} + +
ModelTokens
{model.model}{model.tokens}
+
+ ); +} + +export default Stats; From e055541c9772af41930cc35656e89029280e015b Mon Sep 17 00:00:00 2001 From: Nate Sesti Date: Mon, 18 Mar 2024 20:42:11 -0700 Subject: [PATCH 055/105] =?UTF-8?q?=F0=9F=94=A5=20delete=20unused=20test?= =?UTF-8?q?=20file?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- core/test.ts | 34 ---------------------------------- 1 file changed, 34 deletions(-) delete mode 100644 core/test.ts diff --git a/core/test.ts b/core/test.ts deleted file mode 100644 index f61884337..000000000 --- a/core/test.ts +++ /dev/null @@ -1,34 +0,0 @@ -import { open } from "sqlite"; -import sqlite3 from "sqlite3"; - -async function test() { - const db = await open({ - filename: - "/Users/natesesti/Library/Application Support/Code - Insiders/User/globalStorage/state.vscdb", - driver: sqlite3.Database, - }); - - const rows = await db.all( - "SELECT * FROM ItemTable WHERE key = 'workbench.auxiliarybar.pinnedPanels'" - ); - - const pinnedPanels = rows[0].value === "" ? [] : JSON.parse(rows[0].value); - - if ( - !pinnedPanels.find( - (panel: any) => panel.id === "workbench.view.extension.continue" - ) - ) { - pinnedPanels.push({ - id: "workbench.view.extension.continue", - pinned: true, - order: 15, - }); - await db.run( - `UPDATE ItemTable SET value = ? WHERE key = 'workbench.auxiliarybar.pinnedPanels'`, - JSON.stringify(pinnedPanels) - ); - } -} - -export default test; From f0b38ca7188f34f8c09f325ae83448191b3a6080 Mon Sep 17 00:00:00 2001 From: Nate Sesti Date: Mon, 18 Mar 2024 20:42:25 -0700 Subject: [PATCH 056/105] =?UTF-8?q?=F0=9F=9A=9A=20rename=20core=20package?= =?UTF-8?q?=20for=20publishing=20on=20npm?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- core/package.json | 2 +- extensions/vscode/package-lock.json | 1 + extensions/vscode/yarn.lock | 5 ----- 3 files changed, 2 insertions(+), 6 deletions(-) diff --git a/core/package.json b/core/package.json index f099ecf29..ae789a1b4 100644 --- a/core/package.json +++ b/core/package.json @@ -1,5 +1,5 @@ { - "name": "core", + "name": "@continuedev/core", "version": "1.0.0", "description": "The Continue Core contains functionality that can be shared across web, VS Code, or Node.js server. It is written in TypeScript and contains much of the functionality that was previously inside of the legacy Continue Python Server.", "scripts": { diff --git a/extensions/vscode/package-lock.json b/extensions/vscode/package-lock.json index e11749691..c7becae55 100644 --- a/extensions/vscode/package-lock.json +++ b/extensions/vscode/package-lock.json @@ -85,6 +85,7 @@ } }, "../../core": { + "name": "@continuedev/core", "version": "1.0.0", "license": "Apache-2.0", "dependencies": { diff --git a/extensions/vscode/yarn.lock b/extensions/vscode/yarn.lock index 79910666c..ec25a3bd3 100644 --- a/extensions/vscode/yarn.lock +++ b/extensions/vscode/yarn.lock @@ -691,11 +691,6 @@ resolved "https://registry.npmjs.org/@jsdevtools/ono/-/ono-7.1.3.tgz" integrity sha512-4JQNk+3mVzK3xh2rqd6RB4J46qUR19azEHBneZyTZM+c456qOrbbM/5xcR8huNCCcbVt7+UmizG6GuUvPvKUYg== -"@lancedb/vectordb-darwin-arm64@*": - version "0.4.13" - resolved "https://registry.npmjs.org/@lancedb/vectordb-darwin-arm64/-/vectordb-darwin-arm64-0.4.13.tgz" - integrity sha512-JfroNCG8yKIU931Y+x8d0Fp8C9DHUSC5j+CjI+e5err7rTWtie4j3JbsXlWAnPFaFEOg0Xk3BWkSikCvhPGJGg== - "@lancedb/vectordb-darwin-arm64@0.4.12": version "0.4.12" resolved "https://registry.npmjs.org/@lancedb/vectordb-darwin-arm64/-/vectordb-darwin-arm64-0.4.12.tgz" From 9ab5d295ecfd71a1ca6c3678438876b1a17a2679 Mon Sep 17 00:00:00 2001 From: Peter Zaback Date: Mon, 18 Mar 2024 22:47:45 -0500 Subject: [PATCH 057/105] Remove duplicate itemType property (#986) --- gui/src/components/mainInput/MentionList.tsx | 1 - 1 file changed, 1 deletion(-) diff --git a/gui/src/components/mainInput/MentionList.tsx b/gui/src/components/mainInput/MentionList.tsx index 8400292cc..b594dd54a 100644 --- a/gui/src/components/mainInput/MentionList.tsx +++ b/gui/src/components/mainInput/MentionList.tsx @@ -304,7 +304,6 @@ const MentionList = forwardRef((props: MentionListProps, ref) => { itemType: querySubmenuItem.type, query: queryInputRef.current.value, label: `${querySubmenuItem.label}: ${queryInputRef.current.value}`, - itemType: querySubmenuItem.type, }); } } else if (e.key === "Escape") { From f010d9529cf53a44b2fd710447fd1abd30a0ac6c Mon Sep 17 00:00:00 2001 From: Nate Sesti Date: Mon, 18 Mar 2024 21:08:03 -0700 Subject: [PATCH 058/105] =?UTF-8?q?=F0=9F=94=92=EF=B8=8F=20add=20.env=20to?= =?UTF-8?q?=20.gitignore=20for=20npm=20package?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- core/.gitignore | 1 + core/package.json | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/core/.gitignore b/core/.gitignore index 6d41026be..81e9d5af3 100644 --- a/core/.gitignore +++ b/core/.gitignore @@ -2,3 +2,4 @@ target **/node_modules **/.DS_Store npm-debug.log* +.env \ No newline at end of file diff --git a/core/package.json b/core/package.json index ae789a1b4..a75a889eb 100644 --- a/core/package.json +++ b/core/package.json @@ -1,6 +1,6 @@ { "name": "@continuedev/core", - "version": "1.0.0", + "version": "1.0.1", "description": "The Continue Core contains functionality that can be shared across web, VS Code, or Node.js server. It is written in TypeScript and contains much of the functionality that was previously inside of the legacy Continue Python Server.", "scripts": { "test": "jest ./test/diff.test.ts" From 60d2cb4450bed6a303946ccb6680c16cba86ff1b Mon Sep 17 00:00:00 2001 From: Jason Jacobs Date: Mon, 18 Mar 2024 21:26:11 -0700 Subject: [PATCH 059/105] =?UTF-8?q?Add=20SystemContextProvider=20to=20cont?= =?UTF-8?q?ext=20providers=20so=20that=20users=20can=20use=20=E2=80=A6=20(?= =?UTF-8?q?#988)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * Add SystemContextProvider to context providers so that users can use their own system cpu and os for a resource * change to OSContextProvider * update descriptor --- core/context/providers/OSContextProvider.ts | 36 +++++++++++++++++++ core/context/providers/index.ts | 2 ++ core/index.d.ts | 3 +- docs/static/schemas/config.json | 6 ++-- .../src/main/resources/config_schema.json | 8 +++-- extensions/vscode/config_schema.json | 6 ++-- extensions/vscode/continue_rc_schema.json | 6 ++-- 7 files changed, 57 insertions(+), 10 deletions(-) create mode 100644 core/context/providers/OSContextProvider.ts diff --git a/core/context/providers/OSContextProvider.ts b/core/context/providers/OSContextProvider.ts new file mode 100644 index 000000000..fd0996e94 --- /dev/null +++ b/core/context/providers/OSContextProvider.ts @@ -0,0 +1,36 @@ +//os.platform() +//os.arch() + +import { BaseContextProvider } from ".."; +import { + ContextItem, + ContextProviderDescription, + ContextProviderExtras, +} from "../.."; +import os from "os"; + +class OSContextProvider extends BaseContextProvider { + static description: ContextProviderDescription = { + title: "OS", + displayTitle: "OS", + description: "OS and CPU Information.", + type: "normal", + }; + + async getContextItems( + query: string, + extras: ContextProviderExtras, + ): Promise { + const cpu = os.arch(); + const platform = os.platform(); + return [ + { + description: "Your OS and CPU", + content: `I am running ${platform} on ${cpu}.`, + name: "OS", + }, + ]; + } +} + +export default OSContextProvider; diff --git a/core/context/providers/index.ts b/core/context/providers/index.ts index c30dc63b0..4fd950b26 100644 --- a/core/context/providers/index.ts +++ b/core/context/providers/index.ts @@ -15,6 +15,7 @@ import OpenFilesContextProvider from "./OpenFilesContextProvider"; import PostgresContextProvider from "./PostgresContextProvider"; import ProblemsContextProvider from "./ProblemsContextProvider"; import SearchContextProvider from "./SearchContextProvider"; +import OSContextProvider from "./OSContextProvider"; import TerminalContextProvider from "./TerminalContextProvider"; import LocalsProvider from "./LocalsProvider"; import URLContextProvider from "./URLContextProvider"; @@ -31,6 +32,7 @@ const Providers: (typeof BaseContextProvider)[] = [ OpenFilesContextProvider, HttpContextProvider, SearchContextProvider, + OSContextProvider, CodebaseContextProvider, ProblemsContextProvider, FolderContextProvider, diff --git a/core/index.d.ts b/core/index.d.ts index c8d03177a..5485a1d49 100644 --- a/core/index.d.ts +++ b/core/index.d.ts @@ -441,7 +441,8 @@ type ContextProviderName = | "database" | "code" | "docs" - | "gitlab-mr"; + | "gitlab-mr" + | "os"; type TemplateType = | "llama2" diff --git a/docs/static/schemas/config.json b/docs/static/schemas/config.json index f93ccb3ba..a8c88a803 100644 --- a/docs/static/schemas/config.json +++ b/docs/static/schemas/config.json @@ -1062,7 +1062,8 @@ "highlights", "outline", "postgres", - "code" + "code", + "system" ], "markdownEnumDescriptions": [ "Reference the contents of the current changes as given by `git diff`", @@ -1082,7 +1083,8 @@ "Displays important snippets of code from the currently open files", "Displays definition lines from the currently open files", "References Postgres table schema and sample rows", - "Reference specific functions and classes from throughout your codebase" + "Reference specific functions and classes from throughout your codebase", + "Reference your operating system and cpu" ], "type": "string" }, diff --git a/extensions/intellij/src/main/resources/config_schema.json b/extensions/intellij/src/main/resources/config_schema.json index f93ccb3ba..bf9419678 100644 --- a/extensions/intellij/src/main/resources/config_schema.json +++ b/extensions/intellij/src/main/resources/config_schema.json @@ -1,4 +1,4 @@ -{ +git st{ "title": "config.json", "$ref": "#/definitions/SerializedContinueConfig", "definitions": { @@ -1062,7 +1062,8 @@ "highlights", "outline", "postgres", - "code" + "code", + "OS" ], "markdownEnumDescriptions": [ "Reference the contents of the current changes as given by `git diff`", @@ -1082,7 +1083,8 @@ "Displays important snippets of code from the currently open files", "Displays definition lines from the currently open files", "References Postgres table schema and sample rows", - "Reference specific functions and classes from throughout your codebase" + "Reference specific functions and classes from throughout your codebase", + "Reference your operating system with cpu" ], "type": "string" }, diff --git a/extensions/vscode/config_schema.json b/extensions/vscode/config_schema.json index f93ccb3ba..a8c88a803 100644 --- a/extensions/vscode/config_schema.json +++ b/extensions/vscode/config_schema.json @@ -1062,7 +1062,8 @@ "highlights", "outline", "postgres", - "code" + "code", + "system" ], "markdownEnumDescriptions": [ "Reference the contents of the current changes as given by `git diff`", @@ -1082,7 +1083,8 @@ "Displays important snippets of code from the currently open files", "Displays definition lines from the currently open files", "References Postgres table schema and sample rows", - "Reference specific functions and classes from throughout your codebase" + "Reference specific functions and classes from throughout your codebase", + "Reference your operating system and cpu" ], "type": "string" }, diff --git a/extensions/vscode/continue_rc_schema.json b/extensions/vscode/continue_rc_schema.json index 7e0a61118..67a294786 100644 --- a/extensions/vscode/continue_rc_schema.json +++ b/extensions/vscode/continue_rc_schema.json @@ -1178,7 +1178,8 @@ "highlights", "outline", "postgres", - "code" + "code", + "system" ], "markdownEnumDescriptions": [ "Reference the contents of the current changes as given by `git diff`", @@ -1198,7 +1199,8 @@ "Displays important snippets of code from the currently open files", "Displays definition lines from the currently open files", "References Postgres table schema and sample rows", - "Reference specific functions and classes from throughout your codebase" + "Reference specific functions and classes from throughout your codebase", + "Reference your operating system and cpu" ], "type": "string" }, From 535b5afffdc6b32441bed5f854653575959de60f Mon Sep 17 00:00:00 2001 From: Nate Sesti Date: Tue, 19 Mar 2024 10:11:47 -0700 Subject: [PATCH 060/105] =?UTF-8?q?=F0=9F=8E=A8=20export=20transformers.js?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- core/indexing/embeddings/TransformersJsEmbeddingsProvider.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/indexing/embeddings/TransformersJsEmbeddingsProvider.ts b/core/indexing/embeddings/TransformersJsEmbeddingsProvider.ts index 112899ec1..249aaf36f 100644 --- a/core/indexing/embeddings/TransformersJsEmbeddingsProvider.ts +++ b/core/indexing/embeddings/TransformersJsEmbeddingsProvider.ts @@ -28,7 +28,7 @@ class EmbeddingsPipeline { } } -class TransformersJsEmbeddingsProvider extends BaseEmbeddingsProvider { +export class TransformersJsEmbeddingsProvider extends BaseEmbeddingsProvider { static MaxGroupSize: number = 4; constructor() { From bc1bbab3b7485797812287e4df227f8ac4c8eaf3 Mon Sep 17 00:00:00 2001 From: Nate Sesti Date: Tue, 19 Mar 2024 10:26:51 -0700 Subject: [PATCH 061/105] =?UTF-8?q?=F0=9F=90=9B=20fix=20/edit=20for=20anth?= =?UTF-8?q?ropic?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- core/llm/autodetect.ts | 4 ++-- core/llm/llms/Anthropic.ts | 11 +++++++++++ extensions/vscode/package-lock.json | 2 +- extensions/vscode/yarn.lock | 7 ++++++- gui/package-lock.json | 3 ++- 5 files changed, 22 insertions(+), 5 deletions(-) diff --git a/core/llm/autodetect.ts b/core/llm/autodetect.ts index 013525f47..4be960b99 100644 --- a/core/llm/autodetect.ts +++ b/core/llm/autodetect.ts @@ -22,11 +22,11 @@ import { codellamaEditPrompt, deepseekEditPrompt, gemmaEditPrompt, + gptEditPrompt, mistralEditPrompt, neuralChatEditPrompt, openchatEditPrompt, phindEditPrompt, - simplestEditPrompt, simplifiedEditPrompt, xWinCoderEditPrompt, zephyrEditPrompt, @@ -256,7 +256,7 @@ function autodetectPromptTemplates( } else if (templateType === "gemma") { editTemplate = gemmaEditPrompt; } else if (templateType) { - editTemplate = simplestEditPrompt; + editTemplate = gptEditPrompt; } if (editTemplate !== null) { diff --git a/core/llm/llms/Anthropic.ts b/core/llm/llms/Anthropic.ts index 8bb642648..674de84b8 100644 --- a/core/llm/llms/Anthropic.ts +++ b/core/llm/llms/Anthropic.ts @@ -5,6 +5,7 @@ import { LLMOptions, ModelProvider, } from "../.."; +import { stripImages } from "../countTokens"; import { streamSse } from "../stream"; class Anthropic extends BaseLLM { @@ -65,6 +66,16 @@ class Anthropic extends BaseLLM { return messages; } + protected async *_streamComplete( + prompt: string, + options: CompletionOptions, + ): AsyncGenerator { + const messages = [{ role: "user" as const, content: prompt }]; + for await (const update of this._streamChat(messages, options)) { + yield stripImages(update.content); + } + } + protected async *_streamChat( messages: ChatMessage[], options: CompletionOptions, diff --git a/extensions/vscode/package-lock.json b/extensions/vscode/package-lock.json index c7becae55..d2afbe815 100644 --- a/extensions/vscode/package-lock.json +++ b/extensions/vscode/package-lock.json @@ -86,7 +86,7 @@ }, "../../core": { "name": "@continuedev/core", - "version": "1.0.0", + "version": "1.0.1", "license": "Apache-2.0", "dependencies": { "@mozilla/readability": "^0.5.0", diff --git a/extensions/vscode/yarn.lock b/extensions/vscode/yarn.lock index ec25a3bd3..b47e18677 100644 --- a/extensions/vscode/yarn.lock +++ b/extensions/vscode/yarn.lock @@ -691,6 +691,11 @@ resolved "https://registry.npmjs.org/@jsdevtools/ono/-/ono-7.1.3.tgz" integrity sha512-4JQNk+3mVzK3xh2rqd6RB4J46qUR19azEHBneZyTZM+c456qOrbbM/5xcR8huNCCcbVt7+UmizG6GuUvPvKUYg== +"@lancedb/vectordb-darwin-arm64@*": + version "0.4.13" + resolved "https://registry.npmjs.org/@lancedb/vectordb-darwin-arm64/-/vectordb-darwin-arm64-0.4.13.tgz" + integrity sha512-JfroNCG8yKIU931Y+x8d0Fp8C9DHUSC5j+CjI+e5err7rTWtie4j3JbsXlWAnPFaFEOg0Xk3BWkSikCvhPGJGg== + "@lancedb/vectordb-darwin-arm64@0.4.12": version "0.4.12" resolved "https://registry.npmjs.org/@lancedb/vectordb-darwin-arm64/-/vectordb-darwin-arm64-0.4.12.tgz" @@ -2348,7 +2353,7 @@ core-util-is@1.0.2: integrity sha512-3lqz5YjWTYnW6dlDa5TLaTCcShfar1e40rmcJVwCBJC6mWlFuj0eCHIElmG1g5kyuJ/GD+8Wn4FFCcz4gJPfaQ== "core@file:../../core": - version "1.0.0" + version "1.0.1" resolved "file:../../core" dependencies: "@mozilla/readability" "^0.5.0" diff --git a/gui/package-lock.json b/gui/package-lock.json index 1a4bab758..92bc8e738 100644 --- a/gui/package-lock.json +++ b/gui/package-lock.json @@ -73,7 +73,8 @@ } }, "../core": { - "version": "1.0.0", + "name": "@continuedev/core", + "version": "1.0.1", "license": "Apache-2.0", "dependencies": { "@mozilla/readability": "^0.5.0", From 66ae9f24052d0845bd4a0b05f9cc38f411034f91 Mon Sep 17 00:00:00 2001 From: Nate Sesti Date: Tue, 19 Mar 2024 10:30:37 -0700 Subject: [PATCH 062/105] =?UTF-8?q?=F0=9F=9A=91=20fix=20autocomplete=20by?= =?UTF-8?q?=20binding=20function?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- extensions/intellij/src/main/resources/config_schema.json | 6 +++--- extensions/vscode/src/autocomplete/completionProvider.ts | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/extensions/intellij/src/main/resources/config_schema.json b/extensions/intellij/src/main/resources/config_schema.json index bf9419678..a8c88a803 100644 --- a/extensions/intellij/src/main/resources/config_schema.json +++ b/extensions/intellij/src/main/resources/config_schema.json @@ -1,4 +1,4 @@ -git st{ +{ "title": "config.json", "$ref": "#/definitions/SerializedContinueConfig", "definitions": { @@ -1063,7 +1063,7 @@ git st{ "outline", "postgres", "code", - "OS" + "system" ], "markdownEnumDescriptions": [ "Reference the contents of the current changes as given by `git diff`", @@ -1084,7 +1084,7 @@ git st{ "Displays definition lines from the currently open files", "References Postgres table schema and sample rows", "Reference specific functions and classes from throughout your codebase", - "Reference your operating system with cpu" + "Reference your operating system and cpu" ], "type": "string" }, diff --git a/extensions/vscode/src/autocomplete/completionProvider.ts b/extensions/vscode/src/autocomplete/completionProvider.ts index c8a035114..30866ca74 100644 --- a/extensions/vscode/src/autocomplete/completionProvider.ts +++ b/extensions/vscode/src/autocomplete/completionProvider.ts @@ -37,7 +37,7 @@ export class ContinueCompletionProvider this.completionProvider = new CompletionProvider( this.configHandler, this.ide, - this.tabAutocompleteModel.get, + this.tabAutocompleteModel.get.bind(this.tabAutocompleteModel), this.onError.bind(this), getDefinitionsFromLsp, ); From d87df3f7ea21353d1ec775d4b02f3d1b0287832a Mon Sep 17 00:00:00 2001 From: Nate Sesti Date: Tue, 19 Mar 2024 11:54:53 -0700 Subject: [PATCH 063/105] =?UTF-8?q?=E2=9C=A8=20add=20pre-indexed=20langcha?= =?UTF-8?q?in?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- core/indexing/docs/preIndexedDocs.ts | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/core/indexing/docs/preIndexedDocs.ts b/core/indexing/docs/preIndexedDocs.ts index 6680e3c45..2fe2fe415 100644 --- a/core/indexing/docs/preIndexedDocs.ts +++ b/core/indexing/docs/preIndexedDocs.ts @@ -211,6 +211,11 @@ const configs: SiteIndexingConfig[] = [ startUrl: "https://www.w3schools.com/css/default.asp", rootUrl: "https://www.w3schools.com/css", }, + { + title: "Langchain", + startUrl: "https://python.langchain.com/docs/get_started/introduction", + rootUrl: "https://python.langchain.com/docs", + }, ]; export default configs; From e236cef37c69d1f4ecb0650c4e0e6e09afff2742 Mon Sep 17 00:00:00 2001 From: Nate Sesti Date: Tue, 19 Mar 2024 12:33:37 -0700 Subject: [PATCH 064/105] =?UTF-8?q?=F0=9F=93=A6=20package=20.js=20in=20npm?= =?UTF-8?q?=20package?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- core/.npmignore | 2 ++ core/package.json | 3 ++- core/tsconfig.npm.json | 22 ++++++++++++++++++++++ 3 files changed, 26 insertions(+), 1 deletion(-) create mode 100644 core/.npmignore create mode 100644 core/tsconfig.npm.json diff --git a/core/.npmignore b/core/.npmignore new file mode 100644 index 000000000..c2111fc33 --- /dev/null +++ b/core/.npmignore @@ -0,0 +1,2 @@ +.env +.vscode \ No newline at end of file diff --git a/core/package.json b/core/package.json index 184dd7a56..a058ceb75 100644 --- a/core/package.json +++ b/core/package.json @@ -3,7 +3,8 @@ "version": "1.0.1", "description": "The Continue Core contains functionality that can be shared across web, VS Code, or Node.js server. It is written in TypeScript and contains much of the functionality that was previously inside of the legacy Continue Python Server.", "scripts": { - "test": "jest ./test/diff.test.ts" + "test": "jest ./test/diff.test.ts", + "build:npm": "tsc -p ./tsconfig.npm.json" }, "author": "Nate Sesti and Ty Dunn", "license": "Apache-2.0", diff --git a/core/tsconfig.npm.json b/core/tsconfig.npm.json new file mode 100644 index 000000000..7a807f03f --- /dev/null +++ b/core/tsconfig.npm.json @@ -0,0 +1,22 @@ +{ + "compilerOptions": { + "target": "ESNext", + "useDefineForClassFields": true, + "lib": ["DOM", "DOM.Iterable", "ESNext", "ES2021"], + "allowJs": false, + "skipLibCheck": true, + "esModuleInterop": false, + "allowSyntheticDefaultImports": true, + "strict": true, + "forceConsistentCasingInFileNames": true, + "module": "ESNext", + "moduleResolution": "Node", + "resolveJsonModule": true, + "isolatedModules": true, + "jsx": "react-jsx", + "noEmitOnError": false, + "types": ["jest", "node"], + "outDir": "dist" + }, + "include": ["./**/*.ts", "indexing/embeddings/TransformersJsWorkerThread.js"] +} From 2f93b3bc7fc27e861313f32380c8bb76adb9c087 Mon Sep 17 00:00:00 2001 From: Nate Sesti Date: Tue, 19 Mar 2024 12:39:07 -0700 Subject: [PATCH 065/105] =?UTF-8?q?=F0=9F=94=96=20bump=20@continuedev/cont?= =?UTF-8?q?inue=20version?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- core/package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/package.json b/core/package.json index a058ceb75..7a7863e46 100644 --- a/core/package.json +++ b/core/package.json @@ -1,6 +1,6 @@ { "name": "@continuedev/core", - "version": "1.0.1", + "version": "1.0.2", "description": "The Continue Core contains functionality that can be shared across web, VS Code, or Node.js server. It is written in TypeScript and contains much of the functionality that was previously inside of the legacy Continue Python Server.", "scripts": { "test": "jest ./test/diff.test.ts", From 52e1b687bdd7f14a9ebfbf92f3e194b632eed111 Mon Sep 17 00:00:00 2001 From: Nate Sesti Date: Tue, 19 Mar 2024 12:54:17 -0700 Subject: [PATCH 066/105] =?UTF-8?q?=F0=9F=94=A5=20add=20tests=20to=20.npmi?= =?UTF-8?q?gnore?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- core/.npmignore | 3 ++- core/package.json | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/core/.npmignore b/core/.npmignore index c2111fc33..899fde2a6 100644 --- a/core/.npmignore +++ b/core/.npmignore @@ -1,2 +1,3 @@ .env -.vscode \ No newline at end of file +.vscode +test \ No newline at end of file diff --git a/core/package.json b/core/package.json index 7a7863e46..07f3145e0 100644 --- a/core/package.json +++ b/core/package.json @@ -1,6 +1,6 @@ { "name": "@continuedev/core", - "version": "1.0.2", + "version": "1.0.3", "description": "The Continue Core contains functionality that can be shared across web, VS Code, or Node.js server. It is written in TypeScript and contains much of the functionality that was previously inside of the legacy Continue Python Server.", "scripts": { "test": "jest ./test/diff.test.ts", From 1bdde5deceef26f5d5883e2754c842528773a055 Mon Sep 17 00:00:00 2001 From: Nate Sesti Date: Tue, 19 Mar 2024 14:50:33 -0700 Subject: [PATCH 067/105] =?UTF-8?q?=F0=9F=93=9D=20update=20keyboard=20shor?= =?UTF-8?q?tcut=20docs=20for=20toggle=20sidebar?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- gui/src/components/dialogs/KeyboardShortcuts.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/gui/src/components/dialogs/KeyboardShortcuts.tsx b/gui/src/components/dialogs/KeyboardShortcuts.tsx index 574ee48ff..d4a55d030 100644 --- a/gui/src/components/dialogs/KeyboardShortcuts.tsx +++ b/gui/src/components/dialogs/KeyboardShortcuts.tsx @@ -114,8 +114,8 @@ const vscodeShortcuts: KeyboardShortcutProps[] = [ description: "Reject Diff", }, { - mac: "⌥ ⌘ M", - windows: "⌥ ⌃ M", + mac: "⌥ ⌘ L", + windows: "⌥ ⌃ L", description: "Toggle Auxiliary Bar", }, { From 0c9748322accf77bea377abceb05e7d17c4e1bcf Mon Sep 17 00:00:00 2001 From: Nate Sesti Date: Tue, 19 Mar 2024 14:58:07 -0700 Subject: [PATCH 068/105] =?UTF-8?q?=E2=9A=A1=EF=B8=8F=20temporarily=20user?= =?UTF-8?q?OtherFiles:=20false=20as=20default?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- core/autocomplete/parameters.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/autocomplete/parameters.ts b/core/autocomplete/parameters.ts index 2bde04cf5..4940a6710 100644 --- a/core/autocomplete/parameters.ts +++ b/core/autocomplete/parameters.ts @@ -14,5 +14,5 @@ export const DEFAULT_AUTOCOMPLETE_OPTS: TabAutocompleteOptions = { recentlyEditedSimilarityThreshold: 0.3, useCache: true, onlyMyCode: true, - useOtherFiles: true, + useOtherFiles: false, }; From 5e6a77d27978fa49a0a4f5dc04862488f87d6542 Mon Sep 17 00:00:00 2001 From: Nate Sesti Date: Tue, 19 Mar 2024 15:35:28 -0700 Subject: [PATCH 069/105] =?UTF-8?q?=F0=9F=8F=B7=EF=B8=8F=20publish=20types?= =?UTF-8?q?=20with=20@continuedev/continue=20on=20npm?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- core/package.json | 2 +- core/tsconfig.npm.json | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/core/package.json b/core/package.json index 07f3145e0..3cd4ea5f0 100644 --- a/core/package.json +++ b/core/package.json @@ -1,6 +1,6 @@ { "name": "@continuedev/core", - "version": "1.0.3", + "version": "1.0.4", "description": "The Continue Core contains functionality that can be shared across web, VS Code, or Node.js server. It is written in TypeScript and contains much of the functionality that was previously inside of the legacy Continue Python Server.", "scripts": { "test": "jest ./test/diff.test.ts", diff --git a/core/tsconfig.npm.json b/core/tsconfig.npm.json index 7a807f03f..5e1cff7bd 100644 --- a/core/tsconfig.npm.json +++ b/core/tsconfig.npm.json @@ -16,7 +16,8 @@ "jsx": "react-jsx", "noEmitOnError": false, "types": ["jest", "node"], - "outDir": "dist" + "outDir": "dist", + "declaration": true }, "include": ["./**/*.ts", "indexing/embeddings/TransformersJsWorkerThread.js"] } From 67954525c45396e47311f04c53557656ff2c763f Mon Sep 17 00:00:00 2001 From: Nate Sesti Date: Tue, 19 Mar 2024 17:33:20 -0700 Subject: [PATCH 070/105] =?UTF-8?q?=F0=9F=A9=B9=20filter=20out=20empty=20m?= =?UTF-8?q?essages=20in=20case=20of=20error?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- core/llm/countTokens.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/core/llm/countTokens.ts b/core/llm/countTokens.ts index 4274c3a55..a82104afd 100644 --- a/core/llm/countTokens.ts +++ b/core/llm/countTokens.ts @@ -281,7 +281,9 @@ function compileChatMessages( functions: any[] | undefined = undefined, systemMessage: string | undefined = undefined, ): ChatMessage[] { - const msgsCopy = msgs ? msgs.map((msg) => ({ ...msg })) : []; + const msgsCopy = msgs + ? msgs.map((msg) => ({ ...msg })).filter((msg) => msg.content !== "") + : []; if (prompt) { const promptMsg: ChatMessage = { From 3a38495412dc8895230a4c6c90e896e10ce9a804 Mon Sep 17 00:00:00 2001 From: Nate Sesti Date: Tue, 19 Mar 2024 17:33:36 -0700 Subject: [PATCH 071/105] =?UTF-8?q?=F0=9F=94=A7=20generate=20.d.ts=20files?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- core/autocomplete/lineStream.ts | 1 + core/tsconfig.npm.json | 3 ++- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/core/autocomplete/lineStream.ts b/core/autocomplete/lineStream.ts index 98f39b326..b24cb1458 100644 --- a/core/autocomplete/lineStream.ts +++ b/core/autocomplete/lineStream.ts @@ -127,6 +127,7 @@ function isEnglishFirstLine(line: string) { } if ( line.startsWith("here is") || + line.startsWith("here's") || line.startsWith("sure, here") || line.startsWith("sure thing") || line.startsWith("sure!") diff --git a/core/tsconfig.npm.json b/core/tsconfig.npm.json index 5e1cff7bd..3e6d85576 100644 --- a/core/tsconfig.npm.json +++ b/core/tsconfig.npm.json @@ -17,7 +17,8 @@ "noEmitOnError": false, "types": ["jest", "node"], "outDir": "dist", - "declaration": true + "declaration": true, + "declarationMap": true }, "include": ["./**/*.ts", "indexing/embeddings/TransformersJsWorkerThread.js"] } From da1adc6982dd2d28b3293f0223a87a361bc48b66 Mon Sep 17 00:00:00 2001 From: Nate Sesti Date: Tue, 19 Mar 2024 21:08:12 -0700 Subject: [PATCH 072/105] =?UTF-8?q?=F0=9F=94=A5=20ignore=20type=20annotati?= =?UTF-8?q?ons=20in=20core=20from=20extension?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- extensions/vscode/tsconfig.json | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/extensions/vscode/tsconfig.json b/extensions/vscode/tsconfig.json index a46bb2042..9d1481221 100644 --- a/extensions/vscode/tsconfig.json +++ b/extensions/vscode/tsconfig.json @@ -14,5 +14,6 @@ "esModuleInterop": true /* Enables emit interoperability between CommonJS and ES Modules via creation of namespace objects for all imports. Implies 'allowSyntheticDefaultImports'. */, "resolveJsonModule": true /* Enable importing .json files */ }, - "include": ["src/**/*", "../../core/**/*.ts"] + "include": ["src/**/*", "../../core/**/*.ts"], + "exclude": ["../../core/dist/**/*"] } From 224089b74a5a1aff7cd76668fd0f0a27f765b593 Mon Sep 17 00:00:00 2001 From: Nate Sesti Date: Tue, 19 Mar 2024 22:57:41 -0700 Subject: [PATCH 073/105] =?UTF-8?q?=F0=9F=A9=B9=20ensure=20ordering=20in?= =?UTF-8?q?=20markComplete?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- core/indexing/refreshIndex.ts | 7 +++- .../vscode/src/extension/vscodeExtension.ts | 38 +++++++++---------- 2 files changed, 25 insertions(+), 20 deletions(-) diff --git a/core/indexing/refreshIndex.ts b/core/indexing/refreshIndex.ts index 03bf7f7fa..6f6ec1406 100644 --- a/core/indexing/refreshIndex.ts +++ b/core/indexing/refreshIndex.ts @@ -147,7 +147,12 @@ async function getAddRemoveForTag( } = {}; async function markComplete(items: PathAndCacheKey[], _: IndexResultType) { - const actions = items.map((item) => itemToAction[JSON.stringify(item)]); + const actions = items.map( + (item) => + itemToAction[ + JSON.stringify({ path: item.path, cacheKey: item.cacheKey }) + ], + ); for (const [{ path, cacheKey }, resultType] of actions) { switch (resultType) { case AddRemoveResultType.Add: diff --git a/extensions/vscode/src/extension/vscodeExtension.ts b/extensions/vscode/src/extension/vscodeExtension.ts index 9c57b884e..6af26350d 100644 --- a/extensions/vscode/src/extension/vscodeExtension.ts +++ b/extensions/vscode/src/extension/vscodeExtension.ts @@ -6,6 +6,7 @@ import * as vscode from "vscode"; import { ContinueCompletionProvider } from "../autocomplete/completionProvider"; import { setupStatusBar } from "../autocomplete/statusBar"; import { registerAllCommands } from "../commands"; +import { registerDebugTracker } from "../debug/debug"; import { ContinueGUIWebviewViewProvider } from "../debugPanel"; import { DiffManager } from "../diff/horizontal"; import { VerticalPerLineDiffManager } from "../diff/verticalPerLine/manager"; @@ -14,7 +15,6 @@ import { registerAllCodeLensProviders } from "../lang-server/codeLens"; import { setupRemoteConfigSync } from "../stubs/activation"; import { TabAutocompleteModel } from "../util/loadAutocompleteModel"; import { VsCodeWebviewProtocol } from "../webviewProtocol"; -import { registerDebugTracker } from "../debug/debug"; export class VsCodeExtension { private configHandler: ConfigHandler; @@ -48,26 +48,26 @@ export class VsCodeExtension { // Config Handler with output channel const outputChannel = vscode.window.createOutputChannel( - "Continue - LLM Prompt/Completion" + "Continue - LLM Prompt/Completion", ); this.configHandler = new ConfigHandler( this.ide, Promise.resolve(ideSettings), async (log: string) => { outputChannel.appendLine( - "==========================================================================" + "==========================================================================", ); outputChannel.appendLine( - "==========================================================================" + "==========================================================================", ); outputChannel.append(log); }, - () => this.webviewProtocol?.request("configUpdate", undefined) + () => this.webviewProtocol?.request("configUpdate", undefined), ); this.configHandler.reloadConfig(); this.verticalDiffManager = new VerticalPerLineDiffManager( - this.configHandler + this.configHandler, ); this.extensionContext = context; this.tabAutocompleteModel = new TabAutocompleteModel(this.configHandler); @@ -77,7 +77,7 @@ export class VsCodeExtension { this.ide, this.windowId, this.extensionContext, - this.verticalDiffManager + this.verticalDiffManager, ); setupRemoteConfigSync( @@ -91,14 +91,14 @@ export class VsCodeExtension { this.sidebar, { webviewOptions: { retainContextWhenHidden: true }, - } - ) + }, + ), ); this.webviewProtocol = this.sidebar.webviewProtocol; // Indexing + pause token const indexingPauseToken = new PauseToken( - context.globalState.get("continue.indexingPaused") === true + context.globalState.get("continue.indexingPaused") === true, ); this.webviewProtocol.on("index/setPaused", (msg) => { context.globalState.update("continue.indexingPaused", msg.data); @@ -109,14 +109,14 @@ export class VsCodeExtension { this.indexer = new CodebaseIndexer( this.configHandler, this.ide, - indexingPauseToken + indexingPauseToken, ); // CodeLens registerAllCodeLensProviders( context, this.diffManager, - this.verticalDiffManager.editorToVerticalDiffCodeLens + this.verticalDiffManager.editorToVerticalDiffCodeLens, ); // Tab autocomplete @@ -131,9 +131,9 @@ export class VsCodeExtension { new ContinueCompletionProvider( this.configHandler, this.ide, - this.tabAutocompleteModel - ) - ) + this.tabAutocompleteModel, + ), + ), ); // Commands @@ -144,7 +144,7 @@ export class VsCodeExtension { this.sidebar, this.configHandler, this.diffManager, - this.verticalDiffManager + this.verticalDiffManager, ); registerDebugTracker(this.webviewProtocol, this.ide); @@ -195,7 +195,7 @@ export class VsCodeExtension { } }); } - }) + }), ); // Register a content provider for the readonly virtual documents @@ -213,8 +213,8 @@ export class VsCodeExtension { context.subscriptions.push( vscode.workspace.registerTextDocumentContentProvider( VsCodeExtension.continueVirtualDocumentScheme, - documentContentProvider - ) + documentContentProvider, + ), ); } From 9a25999092dc2112e6eda6b6042231187abee97e Mon Sep 17 00:00:00 2001 From: German Swan Date: Wed, 20 Mar 2024 11:39:03 +0200 Subject: [PATCH 074/105] jsdom import -> require --- core/indexing/docs/article.ts | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/core/indexing/docs/article.ts b/core/indexing/docs/article.ts index ec9a0c98b..8c9c06e3e 100644 --- a/core/indexing/docs/article.ts +++ b/core/indexing/docs/article.ts @@ -2,7 +2,8 @@ import { Readability } from "@mozilla/readability"; import { Chunk } from "../.."; import { MAX_CHUNK_SIZE } from "../../llm/constants"; import { cleanFragment, cleanHeader } from "../chunk/markdown"; -import { PageData } from "./crawl" +import { PageData } from "./crawl"; +import type jsdom from "jsdom"; export type ArticleComponent = { title: string; @@ -96,7 +97,7 @@ export function chunkArticle(articleResult: Article): Chunk[] { async function extractTitlesAndBodies( html: string, ): Promise { - const { JSDOM } = await import("jsdom"); + const JSDOM = require("jsdom").JSDOM as typeof jsdom.JSDOM; const dom = new JSDOM(html); const document = dom.window.document; @@ -123,7 +124,7 @@ export async function stringToArticle( subpath: string, ): Promise
{ try { - const { JSDOM } = await import("jsdom"); + const JSDOM = require("jsdom").JSDOM as typeof jsdom.JSDOM; const dom = new JSDOM(htmlContent); let reader = new Readability(dom.window.document); let article = reader.parse(); @@ -133,7 +134,7 @@ export async function stringToArticle( } let article_components = await extractTitlesAndBodies(article.content); - + return { url, subpath, From 59b2040faf424b731c590f02a5f99a6b82878be0 Mon Sep 17 00:00:00 2001 From: German Swan Date: Wed, 20 Mar 2024 13:09:12 +0200 Subject: [PATCH 075/105] add warning comment remove unnecessary async/await --- core/indexing/docs/article.ts | 29 +++++++++++++++++------------ core/indexing/docs/index.ts | 2 +- 2 files changed, 18 insertions(+), 13 deletions(-) diff --git a/core/indexing/docs/article.ts b/core/indexing/docs/article.ts index 8c9c06e3e..ceb23dbec 100644 --- a/core/indexing/docs/article.ts +++ b/core/indexing/docs/article.ts @@ -94,11 +94,17 @@ export function chunkArticle(articleResult: Article): Chunk[] { return chunks; } -async function extractTitlesAndBodies( - html: string, -): Promise { +function htmlToJSDOM(html: string) { + // This project uses the CommonJS module system. + // Do not use inline `import` (of ES modules) here. const JSDOM = require("jsdom").JSDOM as typeof jsdom.JSDOM; - const dom = new JSDOM(html); + return new JSDOM(html); +} + +function extractTitlesAndBodies( + html: string, +): ArticleComponent[] { + const dom = htmlToJSDOM(html); const document = dom.window.document; const titles = Array.from(document.querySelectorAll("h2")); @@ -118,14 +124,13 @@ async function extractTitlesAndBodies( return result; } -export async function stringToArticle( +export function stringToArticle( url: string, - htmlContent: string, + html: string, subpath: string, -): Promise
{ +): Article | undefined { try { - const JSDOM = require("jsdom").JSDOM as typeof jsdom.JSDOM; - const dom = new JSDOM(htmlContent); + const dom = htmlToJSDOM(html); let reader = new Readability(dom.window.document); let article = reader.parse(); @@ -133,7 +138,7 @@ export async function stringToArticle( return undefined; } - let article_components = await extractTitlesAndBodies(article.content); + let article_components = extractTitlesAndBodies(article.content); return { url, @@ -147,9 +152,9 @@ export async function stringToArticle( } } -export async function pageToArticle( +export function pageToArticle( page: PageData -): Promise
{ +): Article | undefined { try { return stringToArticle(page.url, page.html, page.path); } catch (err) { diff --git a/core/indexing/docs/index.ts b/core/indexing/docs/index.ts index 89906f0f1..79d96371c 100644 --- a/core/indexing/docs/index.ts +++ b/core/indexing/docs/index.ts @@ -29,7 +29,7 @@ export async function* indexDocs( const articles: Article[] = []; for await (const page of crawlPage(baseUrl)) { - const article = await pageToArticle(page); + const article = pageToArticle(page); if (!article) continue; articles.push(article); From 0ecac8461057685cc39cf74bf5bddb791277b9a8 Mon Sep 17 00:00:00 2001 From: German Swan Date: Wed, 20 Mar 2024 13:10:30 +0200 Subject: [PATCH 076/105] add issue to the comment --- core/indexing/docs/article.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/core/indexing/docs/article.ts b/core/indexing/docs/article.ts index ceb23dbec..6e7c60e75 100644 --- a/core/indexing/docs/article.ts +++ b/core/indexing/docs/article.ts @@ -97,6 +97,7 @@ export function chunkArticle(articleResult: Article): Chunk[] { function htmlToJSDOM(html: string) { // This project uses the CommonJS module system. // Do not use inline `import` (of ES modules) here. + // See https://github.com/continuedev/continue/pull/999 const JSDOM = require("jsdom").JSDOM as typeof jsdom.JSDOM; return new JSDOM(html); } From 30a3adf04e0b78188d360dc67ea7e6801aec3573 Mon Sep 17 00:00:00 2001 From: Nate Sesti Date: Wed, 20 Mar 2024 10:16:28 -0700 Subject: [PATCH 077/105] =?UTF-8?q?=F0=9F=A9=B9=20add=20claude=20models=20?= =?UTF-8?q?to=20/models=20response=20for=20free=20trial?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- core/llm/llms/FreeTrial.ts | 3 +++ 1 file changed, 3 insertions(+) diff --git a/core/llm/llms/FreeTrial.ts b/core/llm/llms/FreeTrial.ts index 4bafdccba..d59d114b9 100644 --- a/core/llm/llms/FreeTrial.ts +++ b/core/llm/llms/FreeTrial.ts @@ -98,6 +98,9 @@ class FreeTrial extends BaseLLM { "gemini-pro", "gpt-4-vision-preview", "codellama-70b", + "claude-3-opus-20240229", + "claude-3-sonnet-20240229", + "claude-3-haiku-20240307", ]; } } From 96074a529d6c6f49ae413c049e694f1934ab80b9 Mon Sep 17 00:00:00 2001 From: Nate Sesti Date: Wed, 20 Mar 2024 16:45:26 -0700 Subject: [PATCH 078/105] =?UTF-8?q?=F0=9F=A9=B9=20disable=20free=20trial?= =?UTF-8?q?=20for=20autocomplete=20(because=20none=20of=20the=20models=20a?= =?UTF-8?q?re=20built=20for=20this)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- core/autocomplete/completionProvider.ts | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/core/autocomplete/completionProvider.ts b/core/autocomplete/completionProvider.ts index 66d29a17f..fd49b76e6 100644 --- a/core/autocomplete/completionProvider.ts +++ b/core/autocomplete/completionProvider.ts @@ -105,6 +105,10 @@ export async function getTabCompletion( // Model if (llm instanceof OpenAI) { llm.useLegacyCompletionsEndpoint = true; + } else if (llm.providerName === "free-trial") { + throw new Error( + "Free trial is not supported for tab-autocomplete. We recommend using starcoder with Ollama, LM Studio, or another provider.", + ); } if (!llm) return; From d4d1a8eec9fa253e34d650316a73172bcdec3cac Mon Sep 17 00:00:00 2001 From: Nate Sesti Date: Wed, 20 Mar 2024 16:46:08 -0700 Subject: [PATCH 079/105] =?UTF-8?q?=F0=9F=90=9B=20Ctrl/Cmd=20in=20tutorial?= =?UTF-8?q?=20and=20make=20sure=20to=20use=20correct=20one=20for=20OS?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- extensions/vscode/continue_tutorial.py | 14 +++++++------- extensions/vscode/src/activation/activate.ts | 2 +- 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/extensions/vscode/continue_tutorial.py b/extensions/vscode/continue_tutorial.py index 2583d5621..e00c03b23 100644 --- a/extensions/vscode/continue_tutorial.py +++ b/extensions/vscode/continue_tutorial.py @@ -12,7 +12,7 @@ You can either - follow along by clicking the gray CodeLens buttons above the lines, in order, starting with "Begin Section" """ -# region —————————————————————————— Part 1: Ask a question about code [⌘ L] —————————————————————————— +# region —————————————————————————— Part 1: Ask a question about code [Cmd+L] —————————————————————————— """Step 1: Highlight the function below""" @@ -27,14 +27,14 @@ def mysterious_function(x): return x -"""Step 2: Use the keyboard shortcut [⌘ L] to +"""Step 2: Use the keyboard shortcut [Cmd+L] to select the code and toggle the Continue input box""" """Step 3: Ask a question and press Enter""" # endregion -# region ————————————————————————————————— Part 2: Edit code [⌘ I] ————————————————————————————————— +# region ————————————————————————————————— Part 2: Edit code [Cmd+I] ————————————————————————————————— """Step 1: Highlight this code""" @@ -53,16 +53,16 @@ def mysterious_function(x): return x -"""Step 2: Use the keyboard shortcut [⌘ I] to edit""" +"""Step 2: Use the keyboard shortcut [Cmd+I] to edit""" """Step 3: Type "" and press Enter""" """Step 4: Use keyboard shortcuts to -accept [⌘ ⇧ ⏎] or reject [⌘ ⇧ ⌫] the edit""" +accept [Cmd+Shift+Enter] or reject [Cmd+Shift+Backspace] the edit""" # endregion -# region ———————————————————————————— Part 3: Debug automatically [⌘ ⇧ R] ———————————————————————————— +# region ———————————————————————————— Part 3: Debug automatically [Cmd+Shift+R] ———————————————————————————— """Step 1: Run this Python file (it should error!)""" @@ -72,7 +72,7 @@ def print_sum(list_to_print): print(sum(list_to_print)) -"""Step 2: Use the keyboard shortcut [⌘ ⇧ R] +"""Step 2: Use the keyboard shortcut [Cmd+Shift+R] to automatically debug the error""" print_sum(["a", "b", "c"]) diff --git a/extensions/vscode/src/activation/activate.ts b/extensions/vscode/src/activation/activate.ts index 3de6b77be..3b999b4b9 100644 --- a/extensions/vscode/src/activation/activate.ts +++ b/extensions/vscode/src/activation/activate.ts @@ -17,7 +17,7 @@ export async function showTutorial() { // Ensure keyboard shortcuts match OS if (process.platform !== "darwin") { let tutorialContent = fs.readFileSync(tutorialPath, "utf8"); - tutorialContent = tutorialContent.replace("⌘", "^"); + tutorialContent = tutorialContent.replace("⌘", "^").replace("Cmd", "Ctrl"); fs.writeFileSync(tutorialPath, tutorialContent); } From 4c13ac753b105881d375a2d5870af33736357c4e Mon Sep 17 00:00:00 2001 From: Nate Sesti Date: Wed, 20 Mar 2024 19:27:34 -0700 Subject: [PATCH 080/105] =?UTF-8?q?=F0=9F=9A=B8=20allow=20errors=20parsing?= =?UTF-8?q?=20config.json=20to=20be=20thrown?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- core/config/handler.ts | 91 +++++++++++------------- core/config/load.ts | 4 +- extensions/vscode/src/webviewProtocol.ts | 2 +- gui/src/redux/slices/stateSlice.ts | 39 ++++------ 4 files changed, 57 insertions(+), 79 deletions(-) diff --git a/core/config/handler.ts b/core/config/handler.ts index 33712ed60..221a3ae37 100644 --- a/core/config/handler.ts +++ b/core/config/handler.ts @@ -16,15 +16,11 @@ export class ConfigHandler { private savedConfig: ContinueConfig | undefined; private savedBrowserConfig?: BrowserSerializedContinueConfig; - private readonly ide: IDE; - private ideSettingsPromise: Promise; - private readonly writeLog: (text: string) => void; - private readonly onConfigUpdate: () => void; constructor( - ide: IDE, - ideSettingsPromise: Promise, - writeLog: (text: string) => void, - onConfigUpdate: () => void, + private readonly ide: IDE, + private ideSettingsPromise: Promise, + private readonly writeLog: (text: string) => void, + private readonly onConfigUpdate: () => void, ) { this.ide = ide; this.ideSettingsPromise = ideSettingsPromise; @@ -58,50 +54,45 @@ export class ConfigHandler { } async loadConfig(): Promise { - try { - if (this.savedConfig) { - return this.savedConfig; - } - - let workspaceConfigs: ContinueRcJson[] = []; - try { - workspaceConfigs = await this.ide.getWorkspaceConfigs(); - } catch (e) { - console.warn("Failed to load workspace configs"); - } - - const ideInfo = await this.ide.getIdeInfo(); - const ideSettings = await this.ideSettingsPromise; - let remoteConfigServerUrl = undefined; - try { - remoteConfigServerUrl = - typeof ideSettings.remoteConfigServerUrl !== "string" || - ideSettings.remoteConfigServerUrl === "" - ? undefined - : new URL(ideSettings.remoteConfigServerUrl); - } catch (e) {} - - this.savedConfig = await loadFullConfigNode( - this.ide.readFile, - workspaceConfigs, - remoteConfigServerUrl, - ideInfo.ideType, - ); - this.savedConfig.allowAnonymousTelemetry = - this.savedConfig.allowAnonymousTelemetry && - (await this.ide.isTelemetryEnabled()); - - // Setup telemetry only after (and if) we know it is enabled - await Telemetry.setup( - this.savedConfig.allowAnonymousTelemetry ?? true, - await this.ide.getUniqueId(), - ); - + if (this.savedConfig) { return this.savedConfig; - } catch (e: any) { - console.error("Failed to loadConfig: ", e.message); - throw new Error("Failed to loadConfig: " + e.message); } + + let workspaceConfigs: ContinueRcJson[] = []; + try { + workspaceConfigs = await this.ide.getWorkspaceConfigs(); + } catch (e) { + console.warn("Failed to load workspace configs"); + } + + const ideInfo = await this.ide.getIdeInfo(); + const ideSettings = await this.ideSettingsPromise; + let remoteConfigServerUrl = undefined; + try { + remoteConfigServerUrl = + typeof ideSettings.remoteConfigServerUrl !== "string" || + ideSettings.remoteConfigServerUrl === "" + ? undefined + : new URL(ideSettings.remoteConfigServerUrl); + } catch (e) {} + + this.savedConfig = await loadFullConfigNode( + this.ide.readFile, + workspaceConfigs, + remoteConfigServerUrl, + ideInfo.ideType, + ); + this.savedConfig.allowAnonymousTelemetry = + this.savedConfig.allowAnonymousTelemetry && + (await this.ide.isTelemetryEnabled()); + + // Setup telemetry only after (and if) we know it is enabled + await Telemetry.setup( + this.savedConfig.allowAnonymousTelemetry ?? true, + await this.ide.getUniqueId(), + ); + + return this.savedConfig; } setupLlm(llm: ILLM): ILLM { diff --git a/core/config/load.ts b/core/config/load.ts index e30980b4b..6aa876417 100644 --- a/core/config/load.ts +++ b/core/config/load.ts @@ -38,7 +38,6 @@ import { getContinueDotEnv, migrate, } from "../util/paths"; -import { defaultConfig } from "./default"; const { execSync } = require("child_process"); function resolveSerializedConfig(filepath: string): SerializedContinueConfig { @@ -80,8 +79,7 @@ function loadSerializedConfig( try { config = resolveSerializedConfig(configPath); } catch (e) { - console.log("config.json is invalid. Falling back to default."); - config = defaultConfig; + throw new Error(`Failed to parse config.json: ${e}`); } if (config.allowAnonymousTelemetry === undefined) { diff --git a/extensions/vscode/src/webviewProtocol.ts b/extensions/vscode/src/webviewProtocol.ts index 381b543e5..ebca69c18 100644 --- a/extensions/vscode/src/webviewProtocol.ts +++ b/extensions/vscode/src/webviewProtocol.ts @@ -83,7 +83,7 @@ export class VsCodeWebviewProtocol { JSON.stringify({ msg }, null, 2), ); - let message = `Continue error: ${e.message}`; + let message = e.message; if (e.cause) { if (e.cause.name === "ConnectTimeoutError") { message = `Connection timed out. If you expect it to take a long time to connect, you can increase the timeout in config.json by setting "requestOptions": { "timeout": 10000 }. You can find the full config reference here: https://continue.dev/docs/reference/config`; diff --git a/gui/src/redux/slices/stateSlice.ts b/gui/src/redux/slices/stateSlice.ts index a51c85965..86dde5ccf 100644 --- a/gui/src/redux/slices/stateSlice.ts +++ b/gui/src/redux/slices/stateSlice.ts @@ -97,18 +97,7 @@ const initialState: State = { contextItems: [], active: false, config: { - models: [ - { - title: "GPT-4 (Free Trial)", - model: "gpt-4", - provider: "free-trial", - }, - { - title: "GPT-3.5-Turbo (Free Trial)", - model: "gpt-3.5-turbo", - provider: "free-trial", - }, - ], + models: [], slashCommands: [ { name: "edit", @@ -140,7 +129,7 @@ export const stateSlice = createSlice({ reducers: { setConfig: ( state, - { payload: config }: PayloadAction + { payload: config }: PayloadAction, ) => { const defaultModelTitle = config.models.find((model) => model.title === state.defaultModelTitle) @@ -168,7 +157,7 @@ export const stateSlice = createSlice({ }: PayloadAction<{ index: number; contextItems: ChatHistoryItem["contextItems"]; - }> + }>, ) => { if (state.history[index]) { state.history[index].contextItems = contextItems; @@ -178,7 +167,7 @@ export const stateSlice = createSlice({ state, { payload: { index, item }, - }: PayloadAction<{ index?: number; item: ContextItemWithId }> + }: PayloadAction<{ index?: number; item: ContextItemWithId }>, ) => { if (index === undefined) { const isFirstContextItem = @@ -201,7 +190,7 @@ export const stateSlice = createSlice({ }: PayloadAction<{ index: number; editorState: JSONContent; - }> + }>, ) => { const historyItem = state.history[payload.index]; if (!historyItem) { @@ -228,7 +217,7 @@ export const stateSlice = createSlice({ payload, }: PayloadAction<{ editorState: JSONContent; - }> + }>, ) => { state.history.push({ message: { role: "user", content: "" }, @@ -253,7 +242,7 @@ export const stateSlice = createSlice({ message: ChatMessage; index: number; contextItems?: ContextItemWithId[]; - }> + }>, ) => { if (payload.index >= state.history.length) { state.history.push({ @@ -281,7 +270,7 @@ export const stateSlice = createSlice({ }: PayloadAction<{ index: number; contextItems: ContextItemWithId[]; - }> + }>, ) => { const historyItem = state.history[payload.index]; if (!historyItem) { @@ -300,7 +289,7 @@ export const stateSlice = createSlice({ }, newSession: ( state, - { payload }: PayloadAction + { payload }: PayloadAction, ) => { if (payload) { state.history = payload.history; @@ -318,14 +307,14 @@ export const stateSlice = createSlice({ state, { payload, - }: PayloadAction<{ ids: ContextItemId[]; index: number | undefined }> + }: PayloadAction<{ ids: ContextItemId[]; index: number | undefined }>, ) => { const getKey = (id: ContextItemId) => `${id.providerTitle}-${id.itemId}`; const ids = new Set(payload.ids.map(getKey)); if (payload.index === undefined) { state.contextItems = state.contextItems.filter( - (item) => !ids.has(getKey(item.id)) + (item) => !ids.has(getKey(item.id)), ); } else { state.history[payload.index].contextItems = state.history[ @@ -337,7 +326,7 @@ export const stateSlice = createSlice({ state, { payload, - }: PayloadAction<{ rangeInFileWithContents: any; edit: boolean }> + }: PayloadAction<{ rangeInFileWithContents: any; edit: boolean }>, ) => { let contextItems = [...state.contextItems].map((item) => { return { ...item, editing: false }; @@ -400,7 +389,7 @@ export const stateSlice = createSlice({ state, { payload, - }: PayloadAction<{ ids: ContextItemId[]; index: number | undefined }> + }: PayloadAction<{ ids: ContextItemId[]; index: number | undefined }>, ) => { const ids = payload.ids.map((id) => id.itemId); @@ -436,7 +425,7 @@ export const stateSlice = createSlice({ }, setDefaultModel: (state, { payload }: PayloadAction) => { const model = state.config.models.find( - (model) => model.title === payload + (model) => model.title === payload, ); if (!model) return; return { From 8ee0db6441de469d90ae5a2d282aab60a4c9e0a3 Mon Sep 17 00:00:00 2001 From: Nate Sesti Date: Wed, 20 Mar 2024 19:45:18 -0700 Subject: [PATCH 081/105] =?UTF-8?q?=F0=9F=A9=B9=20add=20.wav=20to=20ignore?= =?UTF-8?q?d=20file=20types?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- extensions/vscode/src/util/traverseDirectory.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/extensions/vscode/src/util/traverseDirectory.ts b/extensions/vscode/src/util/traverseDirectory.ts index e1af01848..e97623163 100644 --- a/extensions/vscode/src/util/traverseDirectory.ts +++ b/extensions/vscode/src/util/traverseDirectory.ts @@ -51,6 +51,7 @@ const DEFAULT_IGNORE_FILETYPES = [ "*.onnx", "*.parquet", "*.pqt", + "*.wav", ]; export const defaultIgnoreFile = ignore().add(DEFAULT_IGNORE_FILETYPES); const DEFAULT_IGNORE_DIRS = [ From 315d179d829de4df88606af56673e7b4cb3ada0d Mon Sep 17 00:00:00 2001 From: Nate Sesti Date: Wed, 20 Mar 2024 19:46:47 -0700 Subject: [PATCH 082/105] =?UTF-8?q?=F0=9F=A9=B9=20add=20.wav=20and=20.webp?= =?UTF-8?q?=20to=20list=20of=20ignored=20file=20types?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- extensions/vscode/src/util/traverseDirectory.ts | 2 ++ 1 file changed, 2 insertions(+) diff --git a/extensions/vscode/src/util/traverseDirectory.ts b/extensions/vscode/src/util/traverseDirectory.ts index e1af01848..cd4095da4 100644 --- a/extensions/vscode/src/util/traverseDirectory.ts +++ b/extensions/vscode/src/util/traverseDirectory.ts @@ -51,6 +51,8 @@ const DEFAULT_IGNORE_FILETYPES = [ "*.onnx", "*.parquet", "*.pqt", + "*.wav", + "*.webp", ]; export const defaultIgnoreFile = ignore().add(DEFAULT_IGNORE_FILETYPES); const DEFAULT_IGNORE_DIRS = [ From 15fd7ae3311c48abbb162383b584c3afd3ca6b42 Mon Sep 17 00:00:00 2001 From: Nate Sesti Date: Wed, 20 Mar 2024 21:39:08 -0700 Subject: [PATCH 083/105] =?UTF-8?q?=F0=9F=A9=B9=20switch=20to=20lowercase?= =?UTF-8?q?=20for=20docs=20lancedb=20schema?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- core/indexing/docs/db.ts | 27 ++++++++++++++------------- 1 file changed, 14 insertions(+), 13 deletions(-) diff --git a/core/indexing/docs/db.ts b/core/indexing/docs/db.ts index 151b220fb..2e94aba91 100644 --- a/core/indexing/docs/db.ts +++ b/core/indexing/docs/db.ts @@ -8,19 +8,20 @@ import { default as configs } from "./preIndexedDocs"; const DOCS_TABLE_NAME = "docs"; +// Purposefully lowercase because lancedb converts interface LanceDbDocsRow { title: string; - baseUrl: string; + baseurl: string; // Chunk content: string; path: string; - startLine: number; - endLine: number; + startline: number; + endline: number; vector: number[]; [key: string]: any; } -let dbDocs:Database; +let dbDocs: Database; async function getDBDocs() { if (!dbDocs) { @@ -28,7 +29,7 @@ async function getDBDocs() { filename: getDocsSqlitePath(), driver: sqlite3.Database, }); - + dbDocs.exec(`CREATE TABLE IF NOT EXISTS docs ( id INTEGER PRIMARY KEY AUTOINCREMENT, title STRING NOT NULL, @@ -75,10 +76,10 @@ export async function retrieveDocs( let docs: LanceDbDocsRow[] = await table .search(vector) .limit(nRetrieve) - .where(`baseUrl = '${baseUrl}'`) + .where(`baseurl = '${baseUrl}'`) .execute(); - docs = docs.filter((doc) => doc.baseUrl === baseUrl); + docs = docs.filter((doc) => doc.baseurl === baseUrl); if ((!docs || docs.length === 0) && !nested) { const downloaded = await downloadDocs(); @@ -88,8 +89,8 @@ export async function retrieveDocs( return docs.map((doc) => ({ digest: doc.path, filepath: doc.path, - startLine: doc.startLine, - endLine: doc.endLine, + startLine: doc.startline, + endLine: doc.endline, index: 0, content: doc.content, otherMetadata: { @@ -106,11 +107,11 @@ export async function addDocs( ) { const data: LanceDbDocsRow[] = chunks.map((chunk, i) => ({ title: chunk.otherMetadata?.title || title, - baseUrl: baseUrl.toString(), + baseurl: baseUrl.toString(), content: chunk.content, path: chunk.filepath, - startLine: chunk.startLine, - endLine: chunk.endLine, + startline: chunk.startLine, + endline: chunk.endLine, vector: embeddings[i], })); @@ -144,5 +145,5 @@ export async function listDocs(): Promise< export async function hasDoc(baseUrl: string) { const db = await getDBDocs(); const doc = await db.get(`SELECT title FROM docs WHERE baseUrl =?`, baseUrl); - return!!doc; + return !!doc; } From 8140600a8c17229a9afaf3f67cda620a40f8c387 Mon Sep 17 00:00:00 2001 From: Nate Sesti Date: Wed, 20 Mar 2024 21:43:16 -0700 Subject: [PATCH 084/105] =?UTF-8?q?=F0=9F=90=9B=20copy=20over=20xhr-sync-w?= =?UTF-8?q?orker=20for=20jsdom?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- core/indexing/docs/article.ts | 9 ++++----- extensions/vscode/esbuild.js | 2 +- extensions/vscode/scripts/prepackage.js | 15 ++++++++------- pkg/build.js | 22 ++++++++++++++-------- 4 files changed, 27 insertions(+), 21 deletions(-) diff --git a/core/indexing/docs/article.ts b/core/indexing/docs/article.ts index ec9a0c98b..9cc90d34b 100644 --- a/core/indexing/docs/article.ts +++ b/core/indexing/docs/article.ts @@ -1,8 +1,9 @@ import { Readability } from "@mozilla/readability"; +import { JSDOM } from "jsdom"; import { Chunk } from "../.."; import { MAX_CHUNK_SIZE } from "../../llm/constants"; import { cleanFragment, cleanHeader } from "../chunk/markdown"; -import { PageData } from "./crawl" +import { PageData } from "./crawl"; export type ArticleComponent = { title: string; @@ -96,7 +97,6 @@ export function chunkArticle(articleResult: Article): Chunk[] { async function extractTitlesAndBodies( html: string, ): Promise { - const { JSDOM } = await import("jsdom"); const dom = new JSDOM(html); const document = dom.window.document; @@ -123,7 +123,6 @@ export async function stringToArticle( subpath: string, ): Promise
{ try { - const { JSDOM } = await import("jsdom"); const dom = new JSDOM(htmlContent); let reader = new Readability(dom.window.document); let article = reader.parse(); @@ -133,7 +132,7 @@ export async function stringToArticle( } let article_components = await extractTitlesAndBodies(article.content); - + return { url, subpath, @@ -147,7 +146,7 @@ export async function stringToArticle( } export async function pageToArticle( - page: PageData + page: PageData, ): Promise
{ try { return stringToArticle(page.url, page.html, page.path); diff --git a/extensions/vscode/esbuild.js b/extensions/vscode/esbuild.js index 67c307d05..fed18197a 100644 --- a/extensions/vscode/esbuild.js +++ b/extensions/vscode/esbuild.js @@ -6,7 +6,7 @@ const esbuildConfig = { entryPoints: ["src/extension.ts"], bundle: true, outfile: "out/extension.js", - external: ["vscode", "esbuild", "jsdom"], + external: ["vscode", "esbuild"], format: "cjs", platform: "node", sourcemap: true, diff --git a/extensions/vscode/scripts/prepackage.js b/extensions/vscode/scripts/prepackage.js index cdcf4c2b1..0cc7e8348 100644 --- a/extensions/vscode/scripts/prepackage.js +++ b/extensions/vscode/scripts/prepackage.js @@ -317,13 +317,7 @@ if (args[2] === "--target") { }); // Copy node_modules for pre-built binaries - const NODE_MODULES_TO_COPY = [ - "esbuild", - "@esbuild", - "@lancedb", - "@vscode", - "jsdom", - ]; + const NODE_MODULES_TO_COPY = ["esbuild", "@esbuild", "@lancedb", "@vscode"]; fs.mkdirSync("out/node_modules", { recursive: true }); await Promise.all( @@ -346,5 +340,12 @@ if (args[2] === "--target") { }), ), ); + console.log(`[info] Copied ${NODE_MODULES_TO_COPY.join(", ")}`); + + // Copy over any worker files + fs.cpSync( + "node_modules/jsdom/lib/jsdom/living/xhr/xhr-sync-worker.js", + "out/xhr-sync-worker.js", + ); })(); diff --git a/pkg/build.js b/pkg/build.js index 623df780d..414b17c42 100644 --- a/pkg/build.js +++ b/pkg/build.js @@ -7,7 +7,7 @@ const esbuildOutputFile = "out/index.js"; const platforms = ["darwin", "linux", "win32"]; const architectures = ["x64", "arm64"]; let targets = platforms.flatMap((platform) => - architectures.map((arch) => `${platform}-${arch}`) + architectures.map((arch) => `${platform}-${arch}`), ); let esbuildOnly = false; @@ -57,7 +57,7 @@ const targetToLanceDb = { } else { resolve(); } - } + }, ); ncp( `node_modules/${mod}`, @@ -69,10 +69,10 @@ const targetToLanceDb = { } else { resolve(); } - } + }, ); - }) - ) + }), + ), ); console.log(`[info] Copied ${DYNAMIC_IMPORTS.join(", ")}`); @@ -105,6 +105,12 @@ const targetToLanceDb = { define: { "import.meta.url": "importMetaUrl" }, }); + // Copy over any worker files + fs.cpSync( + "../core/node_modules/jsdom/lib/jsdom/living/xhr/xhr-sync-worker.js", + "out/xhr-sync-worker.js", + ); + if (esbuildOnly) { return; } @@ -114,7 +120,7 @@ const targetToLanceDb = { const targetDir = `bin/${target}`; console.log(`[info] Building ${target}...`); execSync( - `npx pkg --no-bytecode --public-packages "*" --public pkgJson/${target} --out-path ${targetDir}` + `npx pkg --no-bytecode --public-packages "*" --public pkgJson/${target} --out-path ${targetDir}`, ); // Download and unzip prebuilt sqlite3 binary for the target @@ -125,7 +131,7 @@ const targetToLanceDb = { execSync(`cd ${targetDir} && tar -xvzf build.tar.gz`); fs.copyFileSync( `${targetDir}/build/Release/node_sqlite3.node`, - `${targetDir}/node_sqlite3.node` + `${targetDir}/node_sqlite3.node`, ); fs.unlinkSync(`${targetDir}/build.tar.gz`); fs.rmSync(`${targetDir}/build`, { @@ -136,7 +142,7 @@ const targetToLanceDb = { // Download and unzip prebuilt esbuild binary for the target console.log(`[info] Downloading esbuild for ${target}...`); execSync( - `curl -o ${targetDir}/esbuild.tgz https://registry.npmjs.org/@esbuild/${target}/-/${target}-0.19.11.tgz` + `curl -o ${targetDir}/esbuild.tgz https://registry.npmjs.org/@esbuild/${target}/-/${target}-0.19.11.tgz`, ); execSync(`tar -xzvf ${targetDir}/esbuild.tgz -C ${targetDir}`); if (target.startsWith("win32")) { From 020782705d9c2db01cddbf0f91e183946bdf214c Mon Sep 17 00:00:00 2001 From: Nate Sesti Date: Wed, 20 Mar 2024 21:43:34 -0700 Subject: [PATCH 085/105] =?UTF-8?q?=F0=9F=92=9A=20remove=20--yarn=20from?= =?UTF-8?q?=20package.js=20to=20match=20CI=20script?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- extensions/vscode/scripts/package.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/extensions/vscode/scripts/package.js b/extensions/vscode/scripts/package.js index 3da971d49..208ef0019 100644 --- a/extensions/vscode/scripts/package.js +++ b/extensions/vscode/scripts/package.js @@ -9,8 +9,8 @@ if (!fs.existsSync("build")) { } const command = isPreRelease - ? "vsce package --out ./build patch --pre-release --yarn" - : "vsce package --out ./build patch --yarn"; + ? "vsce package --out ./build patch --pre-release" // --yarn" + : "vsce package --out ./build patch"; // --yarn"; exec(command, (error) => { if (error) throw error; From 3e9ca173f6b126f25426564fcfa7fc4c649a6c19 Mon Sep 17 00:00:00 2001 From: Nate Sesti Date: Wed, 20 Mar 2024 21:57:02 -0700 Subject: [PATCH 086/105] =?UTF-8?q?=F0=9F=A9=B9=20disable=20.yaml=20tree-s?= =?UTF-8?q?itter?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- core/util/treeSitter.ts | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/core/util/treeSitter.ts b/core/util/treeSitter.ts index 4a54f2044..64a7d66d3 100644 --- a/core/util/treeSitter.ts +++ b/core/util/treeSitter.ts @@ -36,8 +36,9 @@ export const supportedLanguages: { [key: string]: string } = { cts: "typescript", tsx: "tsx", vue: "vue", - yaml: "yaml", - yml: "yaml", + // The .wasm file being used is faulty, and yaml is split line-by-line anyway for the most part + // yaml: "yaml", + // yml: "yaml", elm: "elm", js: "javascript", jsx: "javascript", From 6e5d4a4d1b4b046c9e081666adb6d873f4541b6e Mon Sep 17 00:00:00 2001 From: Nate Sesti Date: Wed, 20 Mar 2024 21:57:22 -0700 Subject: [PATCH 087/105] =?UTF-8?q?=F0=9F=90=9B=20fix=20error=20loading=20?= =?UTF-8?q?code=20context=20provider=20first=20time?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- core/indexing/CodeSnippetsIndex.ts | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/core/indexing/CodeSnippetsIndex.ts b/core/indexing/CodeSnippetsIndex.ts index c1ab1c68d..f8f92443f 100644 --- a/core/indexing/CodeSnippetsIndex.ts +++ b/core/indexing/CodeSnippetsIndex.ts @@ -27,7 +27,7 @@ export class CodeSnippetsCodebaseIndex implements CodebaseIndex { constructor(private readonly ide: IDE) {} - private async _createTables(db: DatabaseConnection) { + private static async _createTables(db: DatabaseConnection) { await db.exec(`CREATE TABLE IF NOT EXISTS code_snippets ( id INTEGER PRIMARY KEY, path TEXT NOT NULL, @@ -98,7 +98,7 @@ export class CodeSnippetsCodebaseIndex implements CodebaseIndex { markComplete: MarkCompleteCallback, ): AsyncGenerator { const db = await SqliteDb.get(); - await this._createTables(db); + await CodeSnippetsCodebaseIndex._createTables(db); const tagString = tagToString(tag); for (let i = 0; i < results.compute.length; i++) { @@ -193,6 +193,7 @@ export class CodeSnippetsCodebaseIndex implements CodebaseIndex { static async getAll(tag: IndexTag): Promise { const db = await SqliteDb.get(); + await CodeSnippetsCodebaseIndex._createTables(db); try { const rows = await db.all( `SELECT cs.id, cs.path, cs.title From 871d0bb6d3c60743ca36709fe9bba14008f4eb65 Mon Sep 17 00:00:00 2001 From: Nate Sesti Date: Wed, 20 Mar 2024 22:06:52 -0700 Subject: [PATCH 088/105] =?UTF-8?q?=F0=9F=93=8C=20update=20package=20locks?= =?UTF-8?q?=20to=20new=20@continuedev/core=20version?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- core/package-lock.json | 11 +++++++---- core/yarn.lock | 10 ++++++++++ extensions/vscode/package-lock.json | 4 ++-- extensions/vscode/yarn.lock | 7 +------ gui/package-lock.json | 4 ++-- 5 files changed, 22 insertions(+), 14 deletions(-) diff --git a/core/package-lock.json b/core/package-lock.json index 545983547..9c82cd3d2 100644 --- a/core/package-lock.json +++ b/core/package-lock.json @@ -1,12 +1,12 @@ { - "name": "core", - "version": "1.0.0", + "name": "@continuedev/core", + "version": "1.0.4", "lockfileVersion": 3, "requires": true, "packages": { "": { - "name": "core", - "version": "1.0.0", + "name": "@continuedev/core", + "version": "1.0.4", "license": "Apache-2.0", "dependencies": { "@mozilla/readability": "^0.5.0", @@ -56,6 +56,9 @@ "esbuild": "^0.19.11", "jest": "^29.7.0", "ts-jest": "^29.1.1" + }, + "engines": { + "node": ">=20.11.0" } }, "node_modules/@75lb/deep-merge": { diff --git a/core/yarn.lock b/core/yarn.lock index e3d3fc3d9..795d82637 100644 --- a/core/yarn.lock +++ b/core/yarn.lock @@ -326,6 +326,11 @@ resolved "https://registry.npmjs.org/@bcoe/v8-coverage/-/v8-coverage-0.2.3.tgz" integrity sha512-0hYQ8SB4Db5zvZB4axdMHGwEaQjkZzFjQiN9LVYvIFB2nSUHW9tYpxWriPrWDASIxiaXax83REcLxuSdnGPZtw== +"@esbuild/darwin-arm64@0.19.12": + version "0.19.12" + resolved "https://registry.npmjs.org/@esbuild/darwin-arm64/-/darwin-arm64-0.19.12.tgz" + integrity sha512-B6IeSgZgtEzGC42jsI+YYu9Z3HKRxp8ZT3cqhvliEHovq8HSX2YX8lNocDn79gCKJXOSaEot9MVYky7AKjCs8g== + "@eslint-community/eslint-utils@^4.2.0": version "4.4.0" resolved "https://registry.npmjs.org/@eslint-community/eslint-utils/-/eslint-utils-4.4.0.tgz" @@ -2662,6 +2667,11 @@ fs.realpath@^1.0.0: resolved "https://registry.npmjs.org/fs.realpath/-/fs.realpath-1.0.0.tgz" integrity sha512-OO0pH2lK6a0hZnAdau5ItzHPI6pUlvI7jMVnxUQRtw4owF2wk8lOSabtGDCTP4Ggrg2MbGnWO9X8K1t4+fGMDw== +fsevents@^2.3.2: + version "2.3.3" + resolved "https://registry.npmjs.org/fsevents/-/fsevents-2.3.3.tgz" + integrity sha512-5xoDfX+fL7faATnagmWPpbFtwh/R77WmMMqqHGS65C3vvB0YHrgF+B1YmZ3441tMj5n63k0212XNoJwzlhffQw== + function-bind@^1.1.2: version "1.1.2" resolved "https://registry.npmjs.org/function-bind/-/function-bind-1.1.2.tgz" diff --git a/extensions/vscode/package-lock.json b/extensions/vscode/package-lock.json index d2afbe815..49945c294 100644 --- a/extensions/vscode/package-lock.json +++ b/extensions/vscode/package-lock.json @@ -86,7 +86,7 @@ }, "../../core": { "name": "@continuedev/core", - "version": "1.0.1", + "version": "1.0.4", "license": "Apache-2.0", "dependencies": { "@mozilla/readability": "^0.5.0", @@ -123,7 +123,7 @@ "sqlite3": "^5.1.7", "tree-sitter-wasms": "^0.1.6", "uuid": "^9.0.1", - "vectordb": "^0.4.3", + "vectordb": "^0.4.12", "web-tree-sitter": "^0.21.0" }, "devDependencies": { diff --git a/extensions/vscode/yarn.lock b/extensions/vscode/yarn.lock index b47e18677..ca4f8e209 100644 --- a/extensions/vscode/yarn.lock +++ b/extensions/vscode/yarn.lock @@ -691,11 +691,6 @@ resolved "https://registry.npmjs.org/@jsdevtools/ono/-/ono-7.1.3.tgz" integrity sha512-4JQNk+3mVzK3xh2rqd6RB4J46qUR19azEHBneZyTZM+c456qOrbbM/5xcR8huNCCcbVt7+UmizG6GuUvPvKUYg== -"@lancedb/vectordb-darwin-arm64@*": - version "0.4.13" - resolved "https://registry.npmjs.org/@lancedb/vectordb-darwin-arm64/-/vectordb-darwin-arm64-0.4.13.tgz" - integrity sha512-JfroNCG8yKIU931Y+x8d0Fp8C9DHUSC5j+CjI+e5err7rTWtie4j3JbsXlWAnPFaFEOg0Xk3BWkSikCvhPGJGg== - "@lancedb/vectordb-darwin-arm64@0.4.12": version "0.4.12" resolved "https://registry.npmjs.org/@lancedb/vectordb-darwin-arm64/-/vectordb-darwin-arm64-0.4.12.tgz" @@ -2353,7 +2348,7 @@ core-util-is@1.0.2: integrity sha512-3lqz5YjWTYnW6dlDa5TLaTCcShfar1e40rmcJVwCBJC6mWlFuj0eCHIElmG1g5kyuJ/GD+8Wn4FFCcz4gJPfaQ== "core@file:../../core": - version "1.0.1" + version "1.0.4" resolved "file:../../core" dependencies: "@mozilla/readability" "^0.5.0" diff --git a/gui/package-lock.json b/gui/package-lock.json index 92bc8e738..29944de82 100644 --- a/gui/package-lock.json +++ b/gui/package-lock.json @@ -74,7 +74,7 @@ }, "../core": { "name": "@continuedev/core", - "version": "1.0.1", + "version": "1.0.4", "license": "Apache-2.0", "dependencies": { "@mozilla/readability": "^0.5.0", @@ -111,7 +111,7 @@ "sqlite3": "^5.1.7", "tree-sitter-wasms": "^0.1.6", "uuid": "^9.0.1", - "vectordb": "^0.4.3", + "vectordb": "^0.4.12", "web-tree-sitter": "^0.21.0" }, "devDependencies": { From 9792e683f9e52aaa6978653bb5a0f19482d2191d Mon Sep 17 00:00:00 2001 From: Nate Sesti Date: Wed, 20 Mar 2024 23:09:25 -0700 Subject: [PATCH 089/105] =?UTF-8?q?=F0=9F=94=96=20update=20package.json=20?= =?UTF-8?q?version?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- extensions/vscode/package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/extensions/vscode/package.json b/extensions/vscode/package.json index 92b991564..badb8cfb6 100644 --- a/extensions/vscode/package.json +++ b/extensions/vscode/package.json @@ -1,7 +1,7 @@ { "name": "continue", "icon": "media/icon.png", - "version": "0.9.88", + "version": "0.9.92", "repository": { "type": "git", "url": "https://github.com/continuedev/continue" From f6c8fbec3bd98765996801ae001b454986c025c5 Mon Sep 17 00:00:00 2001 From: German Swan Date: Thu, 21 Mar 2024 12:23:08 +0200 Subject: [PATCH 090/105] remove unnecessary async/await --- core/indexing/docs/article.ts | 11 ++++++----- core/indexing/docs/index.ts | 2 +- 2 files changed, 7 insertions(+), 6 deletions(-) diff --git a/core/indexing/docs/article.ts b/core/indexing/docs/article.ts index 7301625dd..6e7c60e75 100644 --- a/core/indexing/docs/article.ts +++ b/core/indexing/docs/article.ts @@ -2,7 +2,8 @@ import { Readability } from "@mozilla/readability"; import { Chunk } from "../.."; import { MAX_CHUNK_SIZE } from "../../llm/constants"; import { cleanFragment, cleanHeader } from "../chunk/markdown"; -import { PageData } from "./crawl" +import { PageData } from "./crawl"; +import type jsdom from "jsdom"; export type ArticleComponent = { title: string; @@ -138,8 +139,8 @@ export function stringToArticle( return undefined; } - let article_components = await extractTitlesAndBodies(article.content); - + let article_components = extractTitlesAndBodies(article.content); + return { url, subpath, @@ -152,9 +153,9 @@ export function stringToArticle( } } -export async function pageToArticle( +export function pageToArticle( page: PageData -): Promise
{ +): Article | undefined { try { return stringToArticle(page.url, page.html, page.path); } catch (err) { diff --git a/core/indexing/docs/index.ts b/core/indexing/docs/index.ts index 89906f0f1..79d96371c 100644 --- a/core/indexing/docs/index.ts +++ b/core/indexing/docs/index.ts @@ -29,7 +29,7 @@ export async function* indexDocs( const articles: Article[] = []; for await (const page of crawlPage(baseUrl)) { - const article = await pageToArticle(page); + const article = pageToArticle(page); if (!article) continue; articles.push(article); From 942d82b5c51f1f2da39c5f688c54111598b5363d Mon Sep 17 00:00:00 2001 From: German Swan Date: Thu, 21 Mar 2024 12:34:38 +0200 Subject: [PATCH 091/105] remove require("jsdom") as it can be imported as usual --- core/indexing/docs/article.ts | 18 +++++------------- 1 file changed, 5 insertions(+), 13 deletions(-) diff --git a/core/indexing/docs/article.ts b/core/indexing/docs/article.ts index b13cb55fb..a931fc166 100644 --- a/core/indexing/docs/article.ts +++ b/core/indexing/docs/article.ts @@ -94,17 +94,9 @@ export function chunkArticle(articleResult: Article): Chunk[] { return chunks; } -function htmlToJSDOM(html: string) { - // This project uses the CommonJS module system. - // Do not use inline `import` (of ES modules) here. - // See https://github.com/continuedev/continue/pull/999 - const JSDOM = require("jsdom").JSDOM as typeof jsdom.JSDOM; - return new JSDOM(html); -} - function extractTitlesAndBodies( html: string, -): Promise { +): ArticleComponent[] { const dom = new JSDOM(html); const document = dom.window.document; @@ -131,7 +123,7 @@ export function stringToArticle( subpath: string, ): Article | undefined { try { - const dom = new JSDOM(htmlContent); + const dom = new JSDOM(html); let reader = new Readability(dom.window.document); let article = reader.parse(); @@ -139,7 +131,7 @@ export function stringToArticle( return undefined; } - let article_components = await extractTitlesAndBodies(article.content); + let article_components = extractTitlesAndBodies(article.content); return { url, @@ -153,9 +145,9 @@ export function stringToArticle( } } -export async function pageToArticle( +export function pageToArticle( page: PageData, -): Promise
{ +): Article | undefined { try { return stringToArticle(page.url, page.html, page.path); } catch (err) { From ce02c3d7ca47a5c9c41634c2ac50cdc4e7fbf71e Mon Sep 17 00:00:00 2001 From: Nate Sesti Date: Thu, 21 Mar 2024 13:04:46 -0700 Subject: [PATCH 092/105] =?UTF-8?q?=F0=9F=A7=91=E2=80=8D=F0=9F=92=BB=20npm?= =?UTF-8?q?=20link=20@continuedev/core,=20not=20core?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- install-dependencies.ps1 | 4 ++-- install-dependencies.sh | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/install-dependencies.ps1 b/install-dependencies.ps1 index 5a9ecea2d..768f34701 100644 --- a/install-dependencies.ps1 +++ b/install-dependencies.ps1 @@ -79,7 +79,7 @@ Pop-Location Write-Output "`nInstalling GUI extension dependencies..." -ForegroundColor White Push-Location gui npm install -npm link core +npm link @continuedev/core npm run build Pop-Location @@ -89,7 +89,7 @@ Push-Location extensions/vscode # This does way too many things inline but is the common denominator between many of the scripts npm install -npm link core +npm link @continuedev/core npm run package diff --git a/install-dependencies.sh b/install-dependencies.sh index a9342f917..3a7d36515 100755 --- a/install-dependencies.sh +++ b/install-dependencies.sh @@ -13,7 +13,7 @@ popd echo "Installing GUI extension dependencies..." pushd gui npm install -npm link core +npm link @continuedev/core npm run build popd # VSCode Extension (will also package GUI) @@ -22,5 +22,5 @@ pushd extensions/vscode # This does way too many things inline but is the common denominator between many of the scripts npm install -npm link core +npm link @continuedev/core npm run package From 8aa06607cc73b5ced1be78ea9c55611540fb2921 Mon Sep 17 00:00:00 2001 From: Peter Zaback Date: Thu, 21 Mar 2024 19:51:43 -0500 Subject: [PATCH 093/105] Update message to match revised shortcut (#1002) --- core/commands/slash/edit.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/commands/slash/edit.ts b/core/commands/slash/edit.ts index 00a29459c..8cb85e442 100644 --- a/core/commands/slash/edit.ts +++ b/core/commands/slash/edit.ts @@ -225,7 +225,7 @@ const EditSlashCommand: SlashCommand = { } if (!contextItemToEdit) { - yield "Select (highlight and press `cmd+shift+M` (MacOS) / `ctrl+shift+M` (Windows)) the code that you want to edit first"; + yield "Select (highlight and press `cmd+shift+L` (MacOS) / `ctrl+shift+L` (Windows)) the code that you want to edit first"; return; } From 740d03467c1ef5801664638204f2fcae3456a4d2 Mon Sep 17 00:00:00 2001 From: Nate Sesti Date: Thu, 21 Mar 2024 18:17:02 -0700 Subject: [PATCH 094/105] =?UTF-8?q?=F0=9F=93=9D=20make=20it=20more=20clear?= =?UTF-8?q?=20what=20Show=20Inline=20Tip=20setting=20does?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- extensions/vscode/package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/extensions/vscode/package.json b/extensions/vscode/package.json index badb8cfb6..50d9a7872 100644 --- a/extensions/vscode/package.json +++ b/extensions/vscode/package.json @@ -62,7 +62,7 @@ "continue.showInlineTip": { "type": "boolean", "default": true, - "description": "Show inline suggestion to use the Continue keyboard shortcuts." + "description": "Show inline suggestion to use the Continue keyboard shortcuts (e.g. \"Cmd/Ctrl L to select code, Cmd/Ctrl I to edit\")." }, "continue.enableTabAutocomplete": { "type": "boolean", From ef282d194b3bdc91ca9d0b35031626709ae3bdad Mon Sep 17 00:00:00 2001 From: Shankhadeep Dey Date: Fri, 22 Mar 2024 12:31:56 +0530 Subject: [PATCH 095/105] Fix/autocomplete errors (#1007) * fix: tab autocomplete URL and remove unnecessary code * fix: formatting issues in completionProvider.ts * remove: error handling in ContinueCompletionProvider --- core/autocomplete/completionProvider.ts | 34 ++++++++++--------- .../src/autocomplete/completionProvider.ts | 18 +++++----- 2 files changed, 26 insertions(+), 26 deletions(-) diff --git a/core/autocomplete/completionProvider.ts b/core/autocomplete/completionProvider.ts index fd49b76e6..8e0664136 100644 --- a/core/autocomplete/completionProvider.ts +++ b/core/autocomplete/completionProvider.ts @@ -53,7 +53,7 @@ const autocompleteCache = AutocompleteLruCache.get(); function formatExternalSnippet( filepath: string, snippet: string, - language: AutocompleteLanguageInfo, + language: AutocompleteLanguageInfo ) { const comment = language.comment; const lines = [ @@ -78,8 +78,8 @@ export async function getTabCompletion( filepath: string, contents: string, cursorIndex: number, - ide: IDE, - ) => Promise, + ide: IDE + ) => Promise ): Promise { const startTime = Date.now(); @@ -129,7 +129,7 @@ export async function getTabCompletion( filepath, fullPrefix + fullSuffix, fullPrefix.length, - ide, + ide ), new Promise((resolve) => { setTimeout(() => resolve([]), 100); @@ -155,7 +155,7 @@ export async function getTabCompletion( recentlyEditedRanges, recentlyEditedFiles, llm.model, - extrasSnippets, + extrasSnippets ); // Template prompt @@ -172,7 +172,7 @@ export async function getTabCompletion( // Format snippets as comments and prepend to prefix const formattedSnippets = snippets .map((snippet) => - formatExternalSnippet(snippet.filepath, snippet.contents, lang), + formatExternalSnippet(snippet.filepath, snippet.contents, lang) ) .join("\n"); if (formattedSnippets.length > 0) { @@ -224,7 +224,7 @@ export async function getTabCompletion( raw: true, stop, }), - multiline, + multiline ); // LLM @@ -241,13 +241,13 @@ export async function getTabCompletion( let chars = generatorWithCancellation(); const gen2 = onlyWhitespaceAfterEndOfLine( noFirstCharNewline(chars), - lang.endOfLine, + lang.endOfLine ); const lineGenerator = streamWithNewLines( avoidPathLine( stopAtRepeatingLines(stopAtLines(streamLines(gen2))), - lang.comment, - ), + lang.comment + ) ); const finalGenerator = stopAtSimilarLine(lineGenerator, lineBelowCursor); for await (const update of finalGenerator) { @@ -293,11 +293,11 @@ export class CompletionProvider { filepath: string, contents: string, cursorIndex: number, - ide: IDE, - ) => Promise, + ide: IDE + ) => Promise ) { this.generatorReuseManager = new GeneratorReuseManager( - this.onError.bind(this), + this.onError.bind(this) ); } @@ -347,7 +347,7 @@ export class CompletionProvider { public async provideInlineCompletionItems( input: AutocompleteInput, - token: AbortSignal | undefined, + token: AbortSignal | undefined ): Promise { // Create abort signal if not given if (!token) { @@ -372,7 +372,7 @@ export class CompletionProvider { const lastUUID = await new Promise((resolve) => setTimeout(() => { resolve(CompletionProvider.lastUUID); - }, options.debounceDelay), + }, options.debounceDelay) ); if (uuid !== lastUUID) { return undefined; @@ -402,7 +402,7 @@ export class CompletionProvider { this.ide, this.generatorReuseManager, input, - this.getDefinitionsFromLsp, + this.getDefinitionsFromLsp ); const completion = outcome?.completion; @@ -434,6 +434,8 @@ export class CompletionProvider { this._logRejectionTimeouts.set(input.completionId, logRejectionTimeout); return outcome; + } catch (e: any) { + this.onError(e); } finally { this._abortControllers.delete(input.completionId); } diff --git a/extensions/vscode/src/autocomplete/completionProvider.ts b/extensions/vscode/src/autocomplete/completionProvider.ts index 30866ca74..24140cde9 100644 --- a/extensions/vscode/src/autocomplete/completionProvider.ts +++ b/extensions/vscode/src/autocomplete/completionProvider.ts @@ -20,8 +20,8 @@ export class ContinueCompletionProvider if (val === "Documentation") { vscode.env.openExternal( vscode.Uri.parse( - "https://continue.dev/docs/walkthroughs/tab-autocomplete", - ), + "https://continue.dev/docs/walkthroughs/tab-autocomplete" + ) ); } }); @@ -32,14 +32,14 @@ export class ContinueCompletionProvider constructor( private readonly configHandler: ConfigHandler, private readonly ide: IDE, - private readonly tabAutocompleteModel: TabAutocompleteModel, + private readonly tabAutocompleteModel: TabAutocompleteModel ) { this.completionProvider = new CompletionProvider( this.configHandler, this.ide, this.tabAutocompleteModel.get.bind(this.tabAutocompleteModel), this.onError.bind(this), - getDefinitionsFromLsp, + getDefinitionsFromLsp ); } @@ -47,7 +47,7 @@ export class ContinueCompletionProvider document: vscode.TextDocument, position: vscode.Position, context: vscode.InlineCompletionContext, - token: vscode.CancellationToken, + token: vscode.CancellationToken //@ts-ignore ): ProviderResult { const enableTabAutocomplete = @@ -75,7 +75,7 @@ export class ContinueCompletionProvider const outcome = await this.completionProvider.provideInlineCompletionItems( input, - signal, + signal ); if (!outcome || !outcome.completion) { @@ -100,17 +100,15 @@ export class ContinueCompletionProvider outcome.completion, new vscode.Range( position, - position.translate(0, outcome.completion.length), + position.translate(0, outcome.completion.length) ), { title: "Log Autocomplete Outcome", command: "continue.logAutocompleteOutcome", arguments: [outcome, logRejectionTimeout], - }, + } ), ]; - } catch (e: any) { - this.onError(e); } finally { stopStatusBarLoading(); } From 0bdac760f766c12af85fd6606f26a03c491fe87d Mon Sep 17 00:00:00 2001 From: German Swan Date: Fri, 22 Mar 2024 09:02:57 +0200 Subject: [PATCH 096/105] Config: add ui.codeBlockToolbarPosition (#1006) * Config: add ui.codeBlockToolbarPosition * remove ui from default config, remove "true" used for debugging --- core/config/default.ts | 3 +++ core/config/load.ts | 1 + core/index.d.ts | 9 +++++++++ gui/src/components/markdown/CodeBlockToolbar.tsx | 7 ++++--- gui/src/components/markdown/PreWithToolbar.tsx | 7 ++++++- gui/src/hooks/useUIConfig.ts | 8 ++++++++ 6 files changed, 31 insertions(+), 4 deletions(-) create mode 100644 gui/src/hooks/useUIConfig.ts diff --git a/core/config/default.ts b/core/config/default.ts index 60d74f7ec..da0f9aa91 100644 --- a/core/config/default.ts +++ b/core/config/default.ts @@ -137,4 +137,7 @@ export const defaultConfigJetBrains: SerializedContinueConfig = { params: {}, }, ], + ui: { + codeBlockToolbarPosition: "top", + } }; diff --git a/core/config/load.ts b/core/config/load.ts index 6aa876417..c52ab61cc 100644 --- a/core/config/load.ts +++ b/core/config/load.ts @@ -319,6 +319,7 @@ function finalToBrowserConfig( disableSessionTitles: final.disableSessionTitles, userToken: final.userToken, embeddingsProvider: final.embeddingsProvider?.id, + ui: final.ui, }; } diff --git a/core/index.d.ts b/core/index.d.ts index 5485a1d49..f1c2ab35a 100644 --- a/core/index.d.ts +++ b/core/index.d.ts @@ -624,6 +624,10 @@ export interface TabAutocompleteOptions { useOtherFiles: boolean; } +export interface ContinueUIConfig { + codeBlockToolbarPosition?: "top" | "bottom"; +} + export interface SerializedContinueConfig { env?: string[]; allowAnonymousTelemetry?: boolean; @@ -639,6 +643,7 @@ export interface SerializedContinueConfig { embeddingsProvider?: EmbeddingsProviderDescription; tabAutocompleteModel?: ModelDescription; tabAutocompleteOptions?: Partial; + ui?: ContinueUIConfig; } export type ConfigMergeType = "merge" | "overwrite"; @@ -677,6 +682,8 @@ export interface Config { tabAutocompleteModel?: CustomLLM | ModelDescription; /** Options for tab autocomplete */ tabAutocompleteOptions?: Partial; + /** UI styles customization */ + ui?: ContinueUIConfig; } export interface ContinueConfig { @@ -692,6 +699,7 @@ export interface ContinueConfig { embeddingsProvider: EmbeddingsProvider; tabAutocompleteModel?: ILLM; tabAutocompleteOptions?: Partial; + ui?: ContinueUIConfig; } export interface BrowserSerializedContinueConfig { @@ -705,4 +713,5 @@ export interface BrowserSerializedContinueConfig { disableSessionTitles?: boolean; userToken?: string; embeddingsProvider?: string; + ui?: ContinueUIConfig; } diff --git a/gui/src/components/markdown/CodeBlockToolbar.tsx b/gui/src/components/markdown/CodeBlockToolbar.tsx index 6bb735afb..e07a6f93e 100644 --- a/gui/src/components/markdown/CodeBlockToolbar.tsx +++ b/gui/src/components/markdown/CodeBlockToolbar.tsx @@ -19,9 +19,9 @@ const TopDiv = styled.div` z-index: 100; `; -const SecondDiv = styled.div` +const SecondDiv = styled.div<{ bottom: boolean; }>` position: absolute; - top: 4px; + ${(props) => props.bottom ? "bottom: 1.2rem;" : "top: 4px;"} right: 4px; display: flex; gap: 4px; @@ -30,6 +30,7 @@ const SecondDiv = styled.div` interface CodeBlockToolBarProps { text: string; + bottom: boolean; } function CodeBlockToolBar(props: CodeBlockToolBarProps) { @@ -38,7 +39,7 @@ function CodeBlockToolBar(props: CodeBlockToolBarProps) { return ( - + {isJetBrains() || ( setHovering(true)} onMouseLeave={() => setHovering(false)} > - {hovering && } + {!toolbarBottom && hovering && } {props.children} + {toolbarBottom && hovering && } ); } diff --git a/gui/src/hooks/useUIConfig.ts b/gui/src/hooks/useUIConfig.ts new file mode 100644 index 000000000..07cce9598 --- /dev/null +++ b/gui/src/hooks/useUIConfig.ts @@ -0,0 +1,8 @@ +import { useSelector } from 'react-redux'; +import { RootState } from '../redux/store'; + +function useUIConfig() { + return useSelector((store: RootState) => store.state.config.ui); +} + +export default useUIConfig; From f1f8967b6c4b422428fcad0575c0b24ae78bf34a Mon Sep 17 00:00:00 2001 From: Marius <90092216+mariusgau@users.noreply.github.com> Date: Fri, 22 Mar 2024 09:11:46 +0100 Subject: [PATCH 097/105] fix(llm/Ollama): changed buffer handling like in streamChat() --- core/llm/llms/Ollama.ts | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/core/llm/llms/Ollama.ts b/core/llm/llms/Ollama.ts index 1ea5deab4..b7209e94c 100644 --- a/core/llm/llms/Ollama.ts +++ b/core/llm/llms/Ollama.ts @@ -164,6 +164,7 @@ class Ollama extends BaseLLM { buffer += value; // Split the buffer into individual JSON chunks const chunks = buffer.split("\n"); + buffer = chunks.pop() ?? ""; for (let i = 0; i < chunks.length; i++) { const chunk = chunks[i]; @@ -180,8 +181,6 @@ class Ollama extends BaseLLM { } } } - // Assign the last chunk to the buffer - buffer = chunks[chunks.length - 1]; } } From 7753d4937756740f0d983285a20e1358e560ad50 Mon Sep 17 00:00:00 2001 From: Nate Sesti Date: Fri, 22 Mar 2024 16:19:16 +0000 Subject: [PATCH 098/105] =?UTF-8?q?=F0=9F=90=9B=20fix=20reading=20unsaved?= =?UTF-8?q?=20files=20over=20SSH?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- extensions/vscode/src/util/ideUtils.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/extensions/vscode/src/util/ideUtils.ts b/extensions/vscode/src/util/ideUtils.ts index 3004e9b4c..0f1557d40 100644 --- a/extensions/vscode/src/util/ideUtils.ts +++ b/extensions/vscode/src/util/ideUtils.ts @@ -1,6 +1,7 @@ import { FileEdit, RangeInFile, Thread } from "core"; import path from "path"; import * as vscode from "vscode"; +import { threadStopped } from "../debug/debug"; import { VsCodeExtension } from "../extension/vscodeExtension"; import { SuggestionRanges, @@ -15,7 +16,6 @@ import { openEditorAndRevealRange, uriFromFilePath, } from "./vscode"; -import { threadStopped } from "../debug/debug"; const util = require("util"); const asyncExec = util.promisify(require("child_process").exec); @@ -298,7 +298,7 @@ export class VsCodeIdeUtils { // Check first whether it's an open document const openTextDocument = vscode.workspace.textDocuments.find( - (doc) => doc.uri.toString() === uri.toString(), + (doc) => doc.uri.fsPath === uri.fsPath, ); if (openTextDocument !== undefined) { return openTextDocument.getText(); From ba4660cd3d52bb718b074a473ef80beb31410e25 Mon Sep 17 00:00:00 2001 From: Nate Sesti Date: Fri, 22 Mar 2024 16:19:34 +0000 Subject: [PATCH 099/105] =?UTF-8?q?=F0=9F=A7=91=E2=80=8D=F0=9F=92=BB=20fix?= =?UTF-8?q?=20developer=20setup=20on=20SSH?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .vscode/settings.json | 9 ++++++++- .vscode/tasks.json | 4 ++-- 2 files changed, 10 insertions(+), 3 deletions(-) diff --git a/.vscode/settings.json b/.vscode/settings.json index 37b52608c..2224a7a16 100644 --- a/.vscode/settings.json +++ b/.vscode/settings.json @@ -5,5 +5,12 @@ "python.autoComplete.extraPaths": [], "python.testing.pytestArgs": ["server"], "python.testing.unittestEnabled": false, - "python.testing.pytestEnabled": true + "python.testing.pytestEnabled": true, + "terminal.integrated.defaultProfile.linux": "bash", + "terminal.integrated.profiles.linux": { + "bash": { + "path": "bash", + "args": ["-l"] + } + } } diff --git a/.vscode/tasks.json b/.vscode/tasks.json index 2a2944567..ac279cdba 100644 --- a/.vscode/tasks.json +++ b/.vscode/tasks.json @@ -121,7 +121,7 @@ "type": "shell", "command": "npm", "options": { - "cwd": "gui" + "cwd": "${workspaceFolder}/gui" }, "args": ["run", "dev"], "isBackground": true, @@ -142,7 +142,7 @@ } } ] - }, + }, // // esbuild for the core binary { From 6aae6ea2335985e61c4595773781817233e89cbd Mon Sep 17 00:00:00 2001 From: Nate Sesti Date: Fri, 22 Mar 2024 09:21:32 -0700 Subject: [PATCH 100/105] =?UTF-8?q?=F0=9F=93=9D=20link=20to=20docs=20in=20?= =?UTF-8?q?continue=20tutorial?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- extensions/intellij/src/main/resources/continue_tutorial.py | 2 ++ extensions/vscode/continue_tutorial.py | 2 ++ 2 files changed, 4 insertions(+) diff --git a/extensions/intellij/src/main/resources/continue_tutorial.py b/extensions/intellij/src/main/resources/continue_tutorial.py index 5bdc1ab85..7c8d6b0c8 100644 --- a/extensions/intellij/src/main/resources/continue_tutorial.py +++ b/extensions/intellij/src/main/resources/continue_tutorial.py @@ -65,3 +65,5 @@ select the code""" accept [⌘ ⇧ ⏎] or reject [⌘ ⇧ ⌫] the edit""" # endregion + +# Ready to learn more? Check out the Continue documentation: https://continue.dev/docs \ No newline at end of file diff --git a/extensions/vscode/continue_tutorial.py b/extensions/vscode/continue_tutorial.py index e00c03b23..e332e22af 100644 --- a/extensions/vscode/continue_tutorial.py +++ b/extensions/vscode/continue_tutorial.py @@ -77,3 +77,5 @@ to automatically debug the error""" print_sum(["a", "b", "c"]) # endregion + +# Ready to learn more? Check out the Continue documentation: https://continue.dev/docs \ No newline at end of file From c4b6e7c33d2d91650af6f7a2b4a8b09c312f03d3 Mon Sep 17 00:00:00 2001 From: Nate Sesti <33237525+sestinj@users.noreply.github.com> Date: Fri, 22 Mar 2024 19:36:57 -0700 Subject: [PATCH 101/105] JetBrains fixes (#1017) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * 🐛 use off-screen rendering * 💄 only use OSR for linux * 🧑‍💻 setup Intellij for hot-reloading of tool window * 🐛 fix config loading issues in Intellij * 🐛 fix jetbrains encoding error * 💄 improve model select and config loading in UI * 🐛 don't render mid-line, multi-line completions in jetbrains * 💄 turn off spell check in sidebar * 🚧 partial autocomplete acceptance jetbrains * 🔖 update gradle.properties version --- extensions/intellij/gradle.properties | 2 +- .../autocomplete/AutocompleteService.kt | 24 ++++++++++++-- .../PartialAcceptAutocompleteAction.kt | 26 +++++++++++++++ .../continue/CoreMessenger.kt | 3 +- .../ContinuePluginToolWindowFactory.kt | 18 ++++++++-- .../vscode/src/extension/vscodeExtension.ts | 4 ++- gui/public/jetbrains_index.html | 26 +++++++++++++++ gui/src/components/mainInput/TipTapEditor.tsx | 1 + .../markdown/CodeSnippetPreview.tsx | 1 + .../components/modelSelection/ModelSelect.tsx | 13 ++++---- gui/src/hooks/useSetup.ts | 16 +++++++-- gui/src/main.tsx | 9 +---- gui/src/redux/slices/stateSlice.ts | 33 ++++++++++++++++++- pkg/src/core.ts | 2 +- 14 files changed, 151 insertions(+), 27 deletions(-) create mode 100644 extensions/intellij/src/main/kotlin/com/github/continuedev/continueintellijextension/autocomplete/PartialAcceptAutocompleteAction.kt create mode 100644 gui/public/jetbrains_index.html diff --git a/extensions/intellij/gradle.properties b/extensions/intellij/gradle.properties index 6445a7577..65089e0f9 100644 --- a/extensions/intellij/gradle.properties +++ b/extensions/intellij/gradle.properties @@ -4,7 +4,7 @@ pluginGroup = com.github.continuedev.continueintellijextension pluginName = continue-intellij-extension pluginRepositoryUrl = https://github.com/continuedev/continue # SemVer format -> https://semver.org -pluginVersion = 0.0.38 +pluginVersion = 0.0.39 # Supported build number ranges and IntelliJ Platform versions -> https://plugins.jetbrains.com/docs/intellij/build-number-ranges.html pluginSinceBuild = 223 diff --git a/extensions/intellij/src/main/kotlin/com/github/continuedev/continueintellijextension/autocomplete/AutocompleteService.kt b/extensions/intellij/src/main/kotlin/com/github/continuedev/continueintellijextension/autocomplete/AutocompleteService.kt index f272a0aac..2c9a5c874 100644 --- a/extensions/intellij/src/main/kotlin/com/github/continuedev/continueintellijextension/autocomplete/AutocompleteService.kt +++ b/extensions/intellij/src/main/kotlin/com/github/continuedev/continueintellijextension/autocomplete/AutocompleteService.kt @@ -4,6 +4,11 @@ import com.github.continuedev.continueintellijextension.`continue`.uuid import com.github.continuedev.continueintellijextension.services.ContinueExtensionSettings import com.github.continuedev.continueintellijextension.services.ContinuePluginService import com.google.gson.Gson +import com.intellij.codeInsight.AutoPopupController +import com.intellij.codeInsight.lookup.LookupManager +import com.intellij.codeInsight.lookup.impl.LookupImpl +import com.intellij.openapi.actionSystem.ActionManager +import com.intellij.openapi.actionSystem.AnActionEvent import com.intellij.openapi.application.ApplicationManager import com.intellij.openapi.application.WriteAction import com.intellij.openapi.application.invokeLater @@ -44,23 +49,36 @@ class AutocompleteService(private val project: Project) { // Request a completion from the core val virtualFile = FileDocumentManager.getInstance().getFile(editor.document) + val column = editor.caretModel.primaryCaret.logicalPosition.column val input = mapOf( "completionId" to completionId, "filepath" to virtualFile?.path, "pos" to mapOf( "line" to editor.caretModel.primaryCaret.logicalPosition.line, - "character" to editor.caretModel.primaryCaret.logicalPosition.column + "character" to column ), "recentlyEditedFiles" to emptyList(), "recentlyEditedRanges" to emptyList(), "clipboardText" to "" ) + + val lineStart = editor.document.getLineStartOffset(editor.caretModel.primaryCaret.logicalPosition.line) + val lineEnd = editor.document.getLineEndOffset(editor.caretModel.primaryCaret.logicalPosition.line) + val lineLength = lineEnd - lineStart + project.service().coreMessenger?.request("autocomplete/complete", input, null, ({ response -> val completions = Gson().fromJson(response, List::class.java) if (completions.isNotEmpty()) { val completion = completions[0].toString() - renderCompletion(editor, offset, completion) - pendingCompletion = pendingCompletion?.copy(text = completion) + + if (completion.lines().size === 1 || column >= lineLength) { + // Do not render if completion is multi-line and caret is in middle of line + renderCompletion(editor, offset, completion) + pendingCompletion = pendingCompletion?.copy(text = completion) + + // Hide auto-popup +// AutoPopupController.getInstance(project).cancelAllRequests() + } } })) } diff --git a/extensions/intellij/src/main/kotlin/com/github/continuedev/continueintellijextension/autocomplete/PartialAcceptAutocompleteAction.kt b/extensions/intellij/src/main/kotlin/com/github/continuedev/continueintellijextension/autocomplete/PartialAcceptAutocompleteAction.kt new file mode 100644 index 000000000..1cd223df9 --- /dev/null +++ b/extensions/intellij/src/main/kotlin/com/github/continuedev/continueintellijextension/autocomplete/PartialAcceptAutocompleteAction.kt @@ -0,0 +1,26 @@ +package com.github.continuedev.continueintellijextension.autocomplete + +import com.intellij.openapi.actionSystem.DataContext +import com.intellij.openapi.application.ApplicationManager +import com.intellij.openapi.components.service +import com.intellij.openapi.editor.Caret +import com.intellij.openapi.editor.Editor +import com.intellij.openapi.editor.actionSystem.EditorAction +import com.intellij.openapi.editor.actionSystem.EditorActionHandler + +class PartialAcceptAutocompleteAction: EditorAction(object : EditorActionHandler() { + override fun doExecute(editor: Editor, caret: Caret?, dataContext: DataContext?) { + ApplicationManager.getApplication().runWriteAction { + // TODO +// editor.project?.service()?.accept() + } + } + + override fun isEnabledForCaret(editor: Editor, caret: Caret, dataContext: DataContext?): Boolean { + val autocompleteService = editor.project?.service(); + val enabled = editor == autocompleteService?.pendingCompletion?.editor + && caret.offset == autocompleteService.pendingCompletion?.offset + && autocompleteService.pendingCompletion?.text != null + return enabled + } +}) {} \ No newline at end of file diff --git a/extensions/intellij/src/main/kotlin/com/github/continuedev/continueintellijextension/continue/CoreMessenger.kt b/extensions/intellij/src/main/kotlin/com/github/continuedev/continueintellijextension/continue/CoreMessenger.kt index ae74a89e1..bd9f2f676 100644 --- a/extensions/intellij/src/main/kotlin/com/github/continuedev/continueintellijextension/continue/CoreMessenger.kt +++ b/extensions/intellij/src/main/kotlin/com/github/continuedev/continueintellijextension/continue/CoreMessenger.kt @@ -6,6 +6,7 @@ import java.io.OutputStreamWriter import java.io.* import com.google.gson.Gson +import java.nio.charset.StandardCharsets import java.nio.file.Files import java.nio.file.Paths import java.nio.file.attribute.PosixFilePermission @@ -147,7 +148,7 @@ class CoreMessenger(esbuildPath: String, continueCorePath: String, ideProtocolCl val inputStream = process.inputStream writer = OutputStreamWriter(outputStream) - reader = BufferedReader(InputStreamReader(inputStream)) + reader = BufferedReader(InputStreamReader(inputStream, StandardCharsets.UTF_8)) process.onExit().thenRun { val err = process.errorStream.bufferedReader().readText().trim() diff --git a/extensions/intellij/src/main/kotlin/com/github/continuedev/continueintellijextension/toolWindow/ContinuePluginToolWindowFactory.kt b/extensions/intellij/src/main/kotlin/com/github/continuedev/continueintellijextension/toolWindow/ContinuePluginToolWindowFactory.kt index c3ae201ef..873ccb911 100644 --- a/extensions/intellij/src/main/kotlin/com/github/continuedev/continueintellijextension/toolWindow/ContinuePluginToolWindowFactory.kt +++ b/extensions/intellij/src/main/kotlin/com/github/continuedev/continueintellijextension/toolWindow/ContinuePluginToolWindowFactory.kt @@ -76,19 +76,31 @@ class ContinuePluginToolWindowFactory : ToolWindowFactory, DumbAware { init { System.setProperty("ide.browser.jcef.jsQueryPoolSize", JS_QUERY_POOL_SIZE) - System.setProperty("ide.browser.jcef.osr.enabled", "false") System.setProperty("ide.browser.jcef.contextMenu.devTools.enabled", "true") } val webView: JBCefBrowser by lazy { - val browser = JBCefBrowser.createBuilder().setOffScreenRendering(false).build() + val osName = System.getProperty("os.name").toLowerCase() + val os = when { + osName.contains("mac") || osName.contains("darwin") -> "darwin" + osName.contains("win") -> "win32" + osName.contains("nix") || osName.contains("nux") || osName.contains("aix") -> "linux" + else -> "linux" + } + + val browser = JBCefBrowser.createBuilder().setOffScreenRendering(os == "linux").build() browser.jbCefClient.setProperty( JBCefClient.Properties.JS_QUERY_POOL_SIZE, JS_QUERY_POOL_SIZE ) registerAppSchemeHandler() - browser.loadURL("http://continue/index.html") + // Use to get hot-reloading in local development + if (false) { + browser.loadURL("http://localhost:5173/jetbrains_index.html"); + } else { + browser.loadURL("http://continue/index.html") + } // browser.loadHTML("") // browser.loadURL("http://localhost:5173/index.html") Disposer.register(project, browser) diff --git a/extensions/vscode/src/extension/vscodeExtension.ts b/extensions/vscode/src/extension/vscodeExtension.ts index 6af26350d..4d41632e9 100644 --- a/extensions/vscode/src/extension/vscodeExtension.ts +++ b/extensions/vscode/src/extension/vscodeExtension.ts @@ -62,7 +62,9 @@ export class VsCodeExtension { ); outputChannel.append(log); }, - () => this.webviewProtocol?.request("configUpdate", undefined), + (() => this.webviewProtocol?.request("configUpdate", undefined)).bind( + this, + ), ); this.configHandler.reloadConfig(); diff --git a/gui/public/jetbrains_index.html b/gui/public/jetbrains_index.html new file mode 100644 index 000000000..590109a35 --- /dev/null +++ b/gui/public/jetbrains_index.html @@ -0,0 +1,26 @@ + + + + + + + + Continue + + +
+ + + + + + + diff --git a/gui/src/components/mainInput/TipTapEditor.tsx b/gui/src/components/mainInput/TipTapEditor.tsx index c29f063e5..80c8142ff 100644 --- a/gui/src/components/mainInput/TipTapEditor.tsx +++ b/gui/src/components/mainInput/TipTapEditor.tsx @@ -582,6 +582,7 @@ function TipTapEditor(props: TipTapEditorProps) { }} > { setInputFocused(true); diff --git a/gui/src/components/markdown/CodeSnippetPreview.tsx b/gui/src/components/markdown/CodeSnippetPreview.tsx index d5c80e08c..0f3edac89 100644 --- a/gui/src/components/markdown/CodeSnippetPreview.tsx +++ b/gui/src/components/markdown/CodeSnippetPreview.tsx @@ -74,6 +74,7 @@ function CodeSnippetPreview(props: CodeSnippetPreviewProps) { return ( setHovered(true)} onMouseLeave={() => setHovered(false)} borderColor={props.borderColor} diff --git a/gui/src/components/modelSelection/ModelSelect.tsx b/gui/src/components/modelSelection/ModelSelect.tsx index 75220b843..d1c793fe2 100644 --- a/gui/src/components/modelSelection/ModelSelect.tsx +++ b/gui/src/components/modelSelection/ModelSelect.tsx @@ -158,8 +158,8 @@ function ListBoxOption({ onConfirm={() => { postToIde("config/deleteModel", { title: option.title }); }} - /> - ) + />, + ), ); e.stopPropagation(); e.preventDefault(); @@ -195,7 +195,7 @@ function ModelSelect(props: {}) { const dispatch = useDispatch(); const defaultModel = useSelector(defaultModelSelector); const allModels = useSelector( - (state: RootState) => state.state.config.models + (state: RootState) => state.state.config.models, ); const navigate = useNavigate(); @@ -209,7 +209,7 @@ function ModelSelect(props: {}) { value: model.title, title: modelSelectTitle(model), }; - }) + }), ); }, [allModels]); @@ -220,7 +220,7 @@ function ModelSelect(props: {}) { if (event.key === "'" && isMetaEquivalentKeyPressed(event)) { const direction = event.shiftKey ? -1 : 1; const currentIndex = options.findIndex( - (option) => option.value === defaultModel?.title + (option) => option.value === defaultModel?.title, ); let nextIndex = (currentIndex + 1 * direction) % options.length; if (nextIndex < 0) nextIndex = options.length - 1; @@ -274,12 +274,13 @@ function ModelSelect(props: {}) { showDelete={options.length > 1} /> ))} + {options.length === 0 && No models found} {getMetaKeyLabel()}' to toggle , - topDiv + topDiv, )} diff --git a/gui/src/hooks/useSetup.ts b/gui/src/hooks/useSetup.ts index 04e69af95..419e23b91 100644 --- a/gui/src/hooks/useSetup.ts +++ b/gui/src/hooks/useSetup.ts @@ -1,5 +1,5 @@ import { Dispatch } from "@reduxjs/toolkit"; -import { useEffect } from "react"; +import { useEffect, useState } from "react"; import { useSelector } from "react-redux"; import { VSC_THEME_COLOR_VARS } from "../components"; import { setVscMachineId } from "../redux/slices/configSlice"; @@ -14,15 +14,27 @@ import useChatHandler from "./useChatHandler"; import { useWebviewListener } from "./useWebviewListener"; function useSetup(dispatch: Dispatch) { + const [configLoaded, setConfigLoaded] = useState(false); + const loadConfig = async () => { const config = await ideRequest("config/getBrowserSerialized", undefined); dispatch(setConfig(config)); + setConfigLoaded(true); }; // Load config from the IDE useEffect(() => { loadConfig(); - }, []); + const interval = setInterval(() => { + if (configLoaded) { + clearInterval(interval); + return; + } + loadConfig(); + }, 2_000); + + return () => clearInterval(interval); + }, [configLoaded]); useEffect(() => { // Override persisted state diff --git a/gui/src/main.tsx b/gui/src/main.tsx index f217f1dd8..f13e5fbbe 100644 --- a/gui/src/main.tsx +++ b/gui/src/main.tsx @@ -1,4 +1,3 @@ -import { loadWASM } from "onigasm"; import React from "react"; import ReactDOM from "react-dom/client"; import { Provider } from "react-redux"; @@ -9,12 +8,6 @@ import "./index.css"; import { persistor, store } from "./redux/store"; (async () => { - // "" lets it pass through to the correct path for JetBrains - const onigPath = (window.vscMediaUrl ?? "") + "/onigasm.wasm"; - const resp = await fetch(onigPath); - const onigWasm = await resp.arrayBuffer(); - await loadWASM(onigWasm); - ReactDOM.createRoot(document.getElementById("root") as HTMLElement).render( @@ -24,6 +17,6 @@ import { persistor, store } from "./redux/store"; - + , ); })(); diff --git a/gui/src/redux/slices/stateSlice.ts b/gui/src/redux/slices/stateSlice.ts index 86dde5ccf..f151df3bc 100644 --- a/gui/src/redux/slices/stateSlice.ts +++ b/gui/src/redux/slices/stateSlice.ts @@ -97,7 +97,6 @@ const initialState: State = { contextItems: [], active: false, config: { - models: [], slashCommands: [ { name: "edit", @@ -117,6 +116,38 @@ const initialState: State = { }, ], contextProviders: [], + models: [ + { + title: "GPT-4 Vision (Free Trial)", + provider: "free-trial", + model: "gpt-4-vision-preview", + }, + { + title: "GPT-3.5-Turbo (Free Trial)", + provider: "free-trial", + model: "gpt-3.5-turbo", + }, + { + title: "Gemini Pro (Free Trial)", + provider: "free-trial", + model: "gemini-pro", + }, + { + title: "Codellama 70b (Free Trial)", + provider: "free-trial", + model: "codellama-70b", + }, + { + title: "Mixtral (Free Trial)", + provider: "free-trial", + model: "mistral-8x7b", + }, + { + title: "Claude 3 Sonnet (Free Trial)", + provider: "free-trial", + model: "claude-3-sonnet-20240229", + }, + ], }, title: "New Session", sessionId: v4(), diff --git a/pkg/src/core.ts b/pkg/src/core.ts index eba31a3be..fe762c8f6 100644 --- a/pkg/src/core.ts +++ b/pkg/src/core.ts @@ -40,7 +40,7 @@ export class Core { this.ide, ideSettingsPromise, (text: string) => {}, - () => {}, + (() => this.messenger.send("configUpdate", undefined)).bind(this), ); this.codebaseIndexer = new CodebaseIndexer( this.configHandler, From 1be3a7a2fd4119181232f4b0dada7e85cfda7ad3 Mon Sep 17 00:00:00 2001 From: Nate Sesti Date: Fri, 22 Mar 2024 20:32:53 -0700 Subject: [PATCH 102/105] =?UTF-8?q?=F0=9F=92=84=20copy=20table=20for=20usa?= =?UTF-8?q?ge=20stats?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- extensions/vscode/package-lock.json | 4 +- extensions/vscode/yarn.lock | 7 +- gui/package-lock.json | 157 +++++++++++++++++- gui/package.json | 1 + .../components/markdown/CodeBlockToolbar.tsx | 27 +-- gui/src/components/markdown/CopyButton.tsx | 34 ++++ gui/src/pages/stats.tsx | 28 +++- 7 files changed, 230 insertions(+), 28 deletions(-) create mode 100644 gui/src/components/markdown/CopyButton.tsx diff --git a/extensions/vscode/package-lock.json b/extensions/vscode/package-lock.json index 49945c294..6ab6ac9f7 100644 --- a/extensions/vscode/package-lock.json +++ b/extensions/vscode/package-lock.json @@ -1,12 +1,12 @@ { "name": "continue", - "version": "0.9.88", + "version": "0.9.92", "lockfileVersion": 3, "requires": true, "packages": { "": { "name": "continue", - "version": "0.9.88", + "version": "0.9.92", "license": "Apache-2.0", "dependencies": { "@electron/rebuild": "^3.2.10", diff --git a/extensions/vscode/yarn.lock b/extensions/vscode/yarn.lock index ca4f8e209..9268fc252 100644 --- a/extensions/vscode/yarn.lock +++ b/extensions/vscode/yarn.lock @@ -691,6 +691,11 @@ resolved "https://registry.npmjs.org/@jsdevtools/ono/-/ono-7.1.3.tgz" integrity sha512-4JQNk+3mVzK3xh2rqd6RB4J46qUR19azEHBneZyTZM+c456qOrbbM/5xcR8huNCCcbVt7+UmizG6GuUvPvKUYg== +"@lancedb/vectordb-darwin-arm64@*": + version "0.4.13" + resolved "https://registry.npmjs.org/@lancedb/vectordb-darwin-arm64/-/vectordb-darwin-arm64-0.4.13.tgz" + integrity sha512-JfroNCG8yKIU931Y+x8d0Fp8C9DHUSC5j+CjI+e5err7rTWtie4j3JbsXlWAnPFaFEOg0Xk3BWkSikCvhPGJGg== + "@lancedb/vectordb-darwin-arm64@0.4.12": version "0.4.12" resolved "https://registry.npmjs.org/@lancedb/vectordb-darwin-arm64/-/vectordb-darwin-arm64-0.4.12.tgz" @@ -2385,7 +2390,7 @@ core-util-is@1.0.2: sqlite3 "^5.1.7" tree-sitter-wasms "^0.1.6" uuid "^9.0.1" - vectordb "^0.4.3" + vectordb "^0.4.12" web-tree-sitter "^0.21.0" cors@^2.8.5: diff --git a/gui/package-lock.json b/gui/package-lock.json index 29944de82..6f308aca7 100644 --- a/gui/package-lock.json +++ b/gui/package-lock.json @@ -48,6 +48,7 @@ "seti-file-icons": "^0.0.8", "socket.io-client": "^4.7.2", "styled-components": "^5.3.6", + "table": "^6.8.1", "tippy.js": "^6.3.7", "unist-util-visit": "^5.0.0", "uuid": "^9.0.1", @@ -1960,6 +1961,21 @@ "vite": "^4 || ^5" } }, + "node_modules/ajv": { + "version": "8.12.0", + "resolved": "https://registry.npmjs.org/ajv/-/ajv-8.12.0.tgz", + "integrity": "sha512-sRu1kpcO9yLtYxBKvqfTeh9KzZEwO3STyX1HT+4CaDzC6HpTGYhIhPIzj9XuKU7KYDwnaeh5hcOwjy1QuJzBPA==", + "dependencies": { + "fast-deep-equal": "^3.1.1", + "json-schema-traverse": "^1.0.0", + "require-from-string": "^2.0.2", + "uri-js": "^4.2.2" + }, + "funding": { + "type": "github", + "url": "https://github.com/sponsors/epoberezkin" + } + }, "node_modules/ansi-regex": { "version": "6.0.1", "resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-6.0.1.tgz", @@ -2013,6 +2029,14 @@ "resolved": "https://registry.npmjs.org/argparse/-/argparse-2.0.1.tgz", "integrity": "sha512-8+9WqebbFzpX9OR+Wa6O29asIogeRMzcGtAINdpMHHyAg10f05aSFVBbcEqGf/PXw1EjAZ+q2/bEBg3DvurK3Q==" }, + "node_modules/astral-regex": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/astral-regex/-/astral-regex-2.0.0.tgz", + "integrity": "sha512-Z7tMw1ytTXt5jqMcOP+OQteU1VuNK9Y02uuJtKQ1Sv69jXQKKg5cibLwGJow8yzZP+eAc18EmLGPal0bp36rvQ==", + "engines": { + "node": ">=8" + } + }, "node_modules/asynckit": { "version": "0.4.0", "resolved": "https://registry.npmjs.org/asynckit/-/asynckit-0.4.0.tgz", @@ -3531,7 +3555,6 @@ "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==", - "dev": true, "engines": { "node": ">=8" } @@ -3645,6 +3668,11 @@ "node": ">=4" } }, + "node_modules/json-schema-traverse": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/json-schema-traverse/-/json-schema-traverse-1.0.0.tgz", + "integrity": "sha512-NM8/P9n3XjXhIZn1lLhkFaACTOURQXjWhV4BA/RnOv8xvgqtqpAX9IO4mRQxSx1Rlo4tqzeqb0sOlruaOy3dug==" + }, "node_modules/json5": { "version": "2.2.3", "resolved": "https://registry.npmjs.org/json5/-/json5-2.2.3.tgz", @@ -3711,6 +3739,11 @@ "resolved": "https://registry.npmjs.org/lodash/-/lodash-4.17.21.tgz", "integrity": "sha512-v2kDEe57lecTulaDIuNTPy3Ry4gLGJ6Z1O3vE1krgXZNrsQ+LFTGHVxVjcXPs17LhbZVGedAJv8XZ1tvj5FvSg==" }, + "node_modules/lodash.truncate": { + "version": "4.4.2", + "resolved": "https://registry.npmjs.org/lodash.truncate/-/lodash.truncate-4.4.2.tgz", + "integrity": "sha512-jttmRe7bRse52OsWIMDLaXxWqRAmtIUccAQ3garviCqJjafXOfNMO0yMfNpdD6zbGaTU0P5Nz7e7gAT6cKmJRw==" + }, "node_modules/longest-streak": { "version": "3.1.0", "resolved": "https://registry.npmjs.org/longest-streak/-/longest-streak-3.1.0.tgz", @@ -5120,6 +5153,14 @@ "prosemirror-transform": "^1.1.0" } }, + "node_modules/punycode": { + "version": "2.3.1", + "resolved": "https://registry.npmjs.org/punycode/-/punycode-2.3.1.tgz", + "integrity": "sha512-vYt7UD1U9Wg6138shLtLOvdAu+8DsC/ilFtEVHcH+wydcSpNE20AfSOduf6MkRFahL5FY7X1oU7nKVZFtfq8Fg==", + "engines": { + "node": ">=6" + } + }, "node_modules/punycode.js": { "version": "2.3.1", "resolved": "https://registry.npmjs.org/punycode.js/-/punycode.js-2.3.1.tgz", @@ -6010,6 +6051,14 @@ "url": "https://opencollective.com/unified" } }, + "node_modules/require-from-string": { + "version": "2.0.2", + "resolved": "https://registry.npmjs.org/require-from-string/-/require-from-string-2.0.2.tgz", + "integrity": "sha512-Xf0nWe6RseziFMu+Ap9biiUbmplq6S9/p+7w7YXP/JBHhrUDDUhwa+vANyubuqfZWTveU//DYVGsDG7RKL/vEw==", + "engines": { + "node": ">=0.10.0" + } + }, "node_modules/reselect": { "version": "4.1.8", "resolved": "https://registry.npmjs.org/reselect/-/reselect-4.1.8.tgz", @@ -6146,6 +6195,52 @@ "url": "https://github.com/sponsors/isaacs" } }, + "node_modules/slice-ansi": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/slice-ansi/-/slice-ansi-4.0.0.tgz", + "integrity": "sha512-qMCMfhY040cVHT43K9BFygqYbUPFZKHOg7K73mtTWJRb8pyP3fzf4Ixd5SzdEJQ6MRUg/WBnOLxghZtKKurENQ==", + "dependencies": { + "ansi-styles": "^4.0.0", + "astral-regex": "^2.0.0", + "is-fullwidth-code-point": "^3.0.0" + }, + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/chalk/slice-ansi?sponsor=1" + } + }, + "node_modules/slice-ansi/node_modules/ansi-styles": { + "version": "4.3.0", + "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.3.0.tgz", + "integrity": "sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==", + "dependencies": { + "color-convert": "^2.0.1" + }, + "engines": { + "node": ">=8" + }, + "funding": { + "url": "https://github.com/chalk/ansi-styles?sponsor=1" + } + }, + "node_modules/slice-ansi/node_modules/color-convert": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz", + "integrity": "sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==", + "dependencies": { + "color-name": "~1.1.4" + }, + "engines": { + "node": ">=7.0.0" + } + }, + "node_modules/slice-ansi/node_modules/color-name": { + "version": "1.1.4", + "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz", + "integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==" + }, "node_modules/socket.io-client": { "version": "4.7.4", "resolved": "https://registry.npmjs.org/socket.io-client/-/socket.io-client-4.7.4.tgz", @@ -6395,6 +6490,58 @@ "url": "https://github.com/sponsors/ljharb" } }, + "node_modules/table": { + "version": "6.8.1", + "resolved": "https://registry.npmjs.org/table/-/table-6.8.1.tgz", + "integrity": "sha512-Y4X9zqrCftUhMeH2EptSSERdVKt/nEdijTOacGD/97EKjhQ/Qs8RTlEGABSJNNN8lac9kheH+af7yAkEWlgneA==", + "dependencies": { + "ajv": "^8.0.1", + "lodash.truncate": "^4.4.2", + "slice-ansi": "^4.0.0", + "string-width": "^4.2.3", + "strip-ansi": "^6.0.1" + }, + "engines": { + "node": ">=10.0.0" + } + }, + "node_modules/table/node_modules/ansi-regex": { + "version": "5.0.1", + "resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-5.0.1.tgz", + "integrity": "sha512-quJQXlTSUGL2LH9SUXo8VwsY4soanhgo6LNSm84E1LBcE8s3O0wpdiRzyR9z/ZZJMlMWv37qOOb9pdJlMUEKFQ==", + "engines": { + "node": ">=8" + } + }, + "node_modules/table/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==" + }, + "node_modules/table/node_modules/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==", + "dependencies": { + "emoji-regex": "^8.0.0", + "is-fullwidth-code-point": "^3.0.0", + "strip-ansi": "^6.0.1" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/table/node_modules/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/tailwindcss": { "version": "3.4.1", "resolved": "https://registry.npmjs.org/tailwindcss/-/tailwindcss-3.4.1.tgz", @@ -6715,6 +6862,14 @@ "browserslist": ">= 4.21.0" } }, + "node_modules/uri-js": { + "version": "4.4.1", + "resolved": "https://registry.npmjs.org/uri-js/-/uri-js-4.4.1.tgz", + "integrity": "sha512-7rKUyy33Q1yc98pQ1DAmLtwX109F7TIfWlW1Ydo8Wl1ii1SeHieeh0HHfPeL2fMXK6z0s8ecKs9frCuLJvndBg==", + "dependencies": { + "punycode": "^2.1.0" + } + }, "node_modules/use-sync-external-store": { "version": "1.2.0", "resolved": "https://registry.npmjs.org/use-sync-external-store/-/use-sync-external-store-1.2.0.tgz", diff --git a/gui/package.json b/gui/package.json index e37a80785..3fbbea92b 100644 --- a/gui/package.json +++ b/gui/package.json @@ -50,6 +50,7 @@ "seti-file-icons": "^0.0.8", "socket.io-client": "^4.7.2", "styled-components": "^5.3.6", + "table": "^6.8.1", "tippy.js": "^6.3.7", "unist-util-visit": "^5.0.0", "uuid": "^9.0.1", diff --git a/gui/src/components/markdown/CodeBlockToolbar.tsx b/gui/src/components/markdown/CodeBlockToolbar.tsx index e07a6f93e..b23c5ff61 100644 --- a/gui/src/components/markdown/CodeBlockToolbar.tsx +++ b/gui/src/components/markdown/CodeBlockToolbar.tsx @@ -1,13 +1,10 @@ -import { - CheckIcon, - ClipboardIcon, - PlayIcon, -} from "@heroicons/react/24/outline"; +import { CheckIcon, PlayIcon } from "@heroicons/react/24/outline"; import { useState } from "react"; import styled from "styled-components"; import { vscEditorBackground } from ".."; import { isJetBrains, postToIde } from "../../util/ide"; import HeaderButtonWithText from "../HeaderButtonWithText"; +import { CopyButton } from "./CopyButton"; const TopDiv = styled.div` position: sticky; @@ -19,9 +16,9 @@ const TopDiv = styled.div` z-index: 100; `; -const SecondDiv = styled.div<{ bottom: boolean; }>` +const SecondDiv = styled.div<{ bottom: boolean }>` position: absolute; - ${(props) => props.bottom ? "bottom: 1.2rem;" : "top: 4px;"} + ${(props) => (props.bottom ? "bottom: 1.2rem;" : "top: 4px;")} right: 4px; display: flex; gap: 4px; @@ -59,21 +56,7 @@ function CodeBlockToolBar(props: CodeBlockToolBarProps) { )}
)} - { - navigator.clipboard.writeText(props.text); - setCopied(true); - setTimeout(() => setCopied(false), 2000); - }} - > - {copied ? ( - - ) : ( - - )} - +
); diff --git a/gui/src/components/markdown/CopyButton.tsx b/gui/src/components/markdown/CopyButton.tsx new file mode 100644 index 000000000..a284745d6 --- /dev/null +++ b/gui/src/components/markdown/CopyButton.tsx @@ -0,0 +1,34 @@ +import { CheckIcon, ClipboardIcon } from "@heroicons/react/24/outline"; +import { useState } from "react"; +import { vscEditorBackground } from ".."; +import HeaderButtonWithText from "../HeaderButtonWithText"; + +interface CopyButtonProps { + text: string | (() => string); +} + +export function CopyButton(props: CopyButtonProps) { + const [copied, setCopied] = useState(false); + + return ( + <> + { + navigator.clipboard.writeText( + typeof props.text === "string" ? props.text : props.text(), + ); + setCopied(true); + setTimeout(() => setCopied(false), 2000); + }} + > + {copied ? ( + + ) : ( + + )} + + + ); +} diff --git a/gui/src/pages/stats.tsx b/gui/src/pages/stats.tsx index 7c9d8f09c..74942795f 100644 --- a/gui/src/pages/stats.tsx +++ b/gui/src/pages/stats.tsx @@ -2,7 +2,9 @@ import { ArrowLeftIcon } from "@heroicons/react/24/outline"; import { useEffect, useState } from "react"; import { useNavigate } from "react-router-dom"; import styled from "styled-components"; +import { table } from "table"; import { lightGray, vscBackground, vscInputBackground } from "../components"; +import { CopyButton } from "../components/markdown/CopyButton"; import { useNavigationListener } from "../hooks/useNavigationListener"; import { ideRequest } from "../util/ide"; @@ -27,6 +29,10 @@ const Td = styled.td` border: 1px solid ${vscInputBackground}; `; +function generateTable(data: unknown[][]) { + return table(data); +} + function Stats() { useNavigationListener(); const navigate = useNavigate(); @@ -65,7 +71,16 @@ function Stats() {

My Usage

-

Tokens per Day

+
+

Tokens per Day

+ [day.day, day.tokens]), + ), + )} + /> +
@@ -83,7 +98,16 @@ function Stats() {
-

Tokens per Model

+
+

Tokens per Model

+ [model.model, model.tokens]), + ), + )} + /> +
From 42c02bed5fb61f925eb829cd8e7e39425225cc30 Mon Sep 17 00:00:00 2001 From: Shankhadeep Dey Date: Sat, 23 Mar 2024 14:26:19 +0530 Subject: [PATCH 103/105] fix: code automatically expands after pressing enter --- gui/src/components/mainInput/resolveInput.ts | 7 ++++--- .../components/markdown/CodeSnippetPreview.tsx | 17 +++++++++-------- 2 files changed, 13 insertions(+), 11 deletions(-) diff --git a/gui/src/components/mainInput/resolveInput.ts b/gui/src/components/mainInput/resolveInput.ts index 0460c719e..ac039d694 100644 --- a/gui/src/components/mainInput/resolveInput.ts +++ b/gui/src/components/mainInput/resolveInput.ts @@ -34,8 +34,9 @@ async function resolveEditorContent( for (const p of editorState?.content) { if (p.type === "paragraph") { const [text, ctxItems, foundSlashCommand] = resolveParagraph(p); - + // Only take the first slash command + if (foundSlashCommand && typeof slashCommand === "undefined") { slashCommand = foundSlashCommand; } @@ -89,14 +90,14 @@ async function resolveEditorContent( let contextItemsText = ""; let contextItems: ContextItemWithId[] = []; - const ide = new WebviewIde(); for (const item of contextItemAttrs) { if (item.itemType === "file") { + const ide = new WebviewIde(); // This is a quick way to resolve @file references const basename = getBasename(item.id); const rawContent = await ide.readFile(item.id); const content = `\`\`\`title="${basename}"\n${rawContent}\n\`\`\`\n`; - contextItemsText += content + contextItemsText += content; contextItems.push({ name: basename, description: item.id, diff --git a/gui/src/components/markdown/CodeSnippetPreview.tsx b/gui/src/components/markdown/CodeSnippetPreview.tsx index d5c80e08c..159c6c5a2 100644 --- a/gui/src/components/markdown/CodeSnippetPreview.tsx +++ b/gui/src/components/markdown/CodeSnippetPreview.tsx @@ -71,6 +71,12 @@ function CodeSnippetPreview(props: CodeSnippetPreviewProps) { }, [props.item.content]); const codeBlockRef = React.useRef(null); + const codeBlockHeight = `${Math.min( + MAX_PREVIEW_HEIGHT, + codeBlockRef.current?.scrollHeight + ? codeBlockRef.current?.scrollHeight + : Number.MAX_SAFE_INTEGER + )}px`; return ( From 2cf16cb52386c85e5e3c7873671b34c62816f9d2 Mon Sep 17 00:00:00 2001 From: Nate Sesti Date: Sat, 23 Mar 2024 10:11:15 -0700 Subject: [PATCH 104/105] =?UTF-8?q?=F0=9F=92=9A=20improve=20ghAction()=20d?= =?UTF-8?q?etection=20function?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- extensions/vscode/scripts/prepackage.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/extensions/vscode/scripts/prepackage.js b/extensions/vscode/scripts/prepackage.js index 0cc7e8348..3b3e06a0e 100644 --- a/extensions/vscode/scripts/prepackage.js +++ b/extensions/vscode/scripts/prepackage.js @@ -241,7 +241,7 @@ if (args[2] === "--target") { }); function ghAction() { - return target !== undefined; + return !!process.env.GITHUB_ACTIONS; } function isArm() { From 5d1c57e317f3c67f3b806248cd0b93688d81186f Mon Sep 17 00:00:00 2001 From: Nate Sesti Date: Sat, 23 Mar 2024 10:11:53 -0700 Subject: [PATCH 105/105] =?UTF-8?q?=F0=9F=94=8A=20log=20ctx=20prov=20name?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- extensions/vscode/src/diff/verticalPerLine/manager.ts | 5 +++++ extensions/vscode/src/webviewProtocol.ts | 10 ++++++++++ pkg/package-lock.json | 8 ++++++-- pkg/src/core.ts | 10 ++++++++++ 4 files changed, 31 insertions(+), 2 deletions(-) diff --git a/extensions/vscode/src/diff/verticalPerLine/manager.ts b/extensions/vscode/src/diff/verticalPerLine/manager.ts index 4aed9174c..7d10ff8f1 100644 --- a/extensions/vscode/src/diff/verticalPerLine/manager.ts +++ b/extensions/vscode/src/diff/verticalPerLine/manager.ts @@ -1,5 +1,6 @@ import { ConfigHandler } from "core/config/handler"; import { getMarkdownLanguageTagForFile } from "core/util"; +import { Telemetry } from "core/util/posthog"; import { streamDiffLines } from "core/util/verticalEdit"; import * as vscode from "vscode"; import { VerticalPerLineDiffHandler } from "./handler"; @@ -182,6 +183,10 @@ export class VerticalPerLineDiffManager { input = `Original request: ${existingHandler.input}\nUpdated request: ${input}`; } try { + Telemetry.capture("inlineEdit", { + model: llm.model, + provider: llm.providerName, + }); await diffHandler.run( streamDiffLines( rangeContent, diff --git a/extensions/vscode/src/webviewProtocol.ts b/extensions/vscode/src/webviewProtocol.ts index ebca69c18..3b21730ca 100644 --- a/extensions/vscode/src/webviewProtocol.ts +++ b/extensions/vscode/src/webviewProtocol.ts @@ -8,6 +8,7 @@ import { DevDataSqliteDb } from "core/util/devdataSqlite"; import historyManager from "core/util/history"; import { Message } from "core/util/messenger"; import { getConfigJsonPath } from "core/util/paths"; +import { Telemetry } from "core/util/posthog"; import { ReverseWebviewProtocol, WebviewProtocol, @@ -387,6 +388,10 @@ export class VsCodeWebviewProtocol { throw new Error(`Unknown slash command ${slashCommandName}`); } + Telemetry.capture("useSlashCommand", { + name: slashCommandName, + }); + for await (const content of slashCommand.run({ input, history, @@ -465,6 +470,11 @@ export class VsCodeWebviewProtocol { ide, selectedCode, }); + + Telemetry.capture("useContextProvider", { + name: provider.description.title, + }); + return items.map((item) => ({ ...item, id })); } catch (e) { vscode.window.showErrorMessage( diff --git a/pkg/package-lock.json b/pkg/package-lock.json index 845e62db8..5ccdb9584 100644 --- a/pkg/package-lock.json +++ b/pkg/package-lock.json @@ -31,7 +31,8 @@ } }, "../core": { - "version": "1.0.0", + "name": "@continuedev/core", + "version": "1.0.4", "license": "Apache-2.0", "dependencies": { "@mozilla/readability": "^0.5.0", @@ -68,7 +69,7 @@ "sqlite3": "^5.1.7", "tree-sitter-wasms": "^0.1.6", "uuid": "^9.0.1", - "vectordb": "^0.4.3", + "vectordb": "^0.4.12", "web-tree-sitter": "^0.21.0" }, "devDependencies": { @@ -81,6 +82,9 @@ "esbuild": "^0.19.11", "jest": "^29.7.0", "ts-jest": "^29.1.1" + }, + "engines": { + "node": ">=20.11.0" } }, "node_modules/@75lb/deep-merge": { diff --git a/pkg/src/core.ts b/pkg/src/core.ts index fe762c8f6..0ee89ff18 100644 --- a/pkg/src/core.ts +++ b/pkg/src/core.ts @@ -8,6 +8,7 @@ import { CodebaseIndexer, PauseToken } from "core/indexing/indexCodebase"; import { logDevData } from "core/util/devdata"; import historyManager from "core/util/history"; import { Message } from "core/util/messenger"; +import { Telemetry } from "core/util/posthog"; import { v4 as uuidv4 } from "uuid"; import { IpcMessenger } from "./messenger"; import { Protocol } from "./protocol"; @@ -151,6 +152,11 @@ export class Core { ide, selectedCode: msg.data.selectedCode, }); + + Telemetry.capture("useContextProvider", { + name: provider.description.title, + }); + return items.map((item) => ({ ...item, id, @@ -243,6 +249,10 @@ export class Core { throw new Error(`Unknown slash command ${slashCommandName}`); } + Telemetry.capture("useSlashCommand", { + name: slashCommandName, + }); + for await (const content of slashCommand.run({ input, history,