From 6c63aeb5dc0b4eede7508cb448545d90757ee21c Mon Sep 17 00:00:00 2001 From: Nate Sesti Date: Fri, 14 Jun 2024 09:11:01 -0700 Subject: [PATCH 001/268] allow setting apiBase for bedrock provider --- core/llm/llms/Bedrock.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/core/llm/llms/Bedrock.ts b/core/llm/llms/Bedrock.ts index de3055189..04af2b7c2 100644 --- a/core/llm/llms/Bedrock.ts +++ b/core/llm/llms/Bedrock.ts @@ -38,7 +38,9 @@ class Bedrock extends BaseLLM { constructor(options: LLMOptions) { super(options); - this.apiBase = `https://bedrock-runtime.${options.region}.amazonaws.com`; + if (!options.apiBase) { + this.apiBase = `https://bedrock-runtime.${options.region}.amazonaws.com`; + } } private _convertModelName(model: string): string { From 3a96050e3da0c54ed046fab7997e53f47f367eb3 Mon Sep 17 00:00:00 2001 From: Nate Sesti Date: Fri, 14 Jun 2024 15:45:25 -0700 Subject: [PATCH 002/268] =?UTF-8?q?=E2=9A=A1=EF=B8=8F=20better=20linking?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- extensions/vscode/src/ideProtocol.ts | 15 ++-- gui/src/components/markdown/LinkableCode.tsx | 87 ++++++++++++++++---- 2 files changed, 75 insertions(+), 27 deletions(-) diff --git a/extensions/vscode/src/ideProtocol.ts b/extensions/vscode/src/ideProtocol.ts index a9181e8cd..80f3e5e8a 100644 --- a/extensions/vscode/src/ideProtocol.ts +++ b/extensions/vscode/src/ideProtocol.ts @@ -365,15 +365,12 @@ class VsCodeIde implements IDE { new vscode.Position(startLine, 0), new vscode.Position(endLine, 0), ); - openEditorAndRevealRange(filepath, range).then(() => { - // TODO: Highlight lines - // this.ideUtils.highlightCode( - // { - // filepath, - // range, - // }, - // "#fff1" - // ); + openEditorAndRevealRange(filepath, range).then((editor) => { + // Select the lines + editor.selection = new vscode.Selection( + new vscode.Position(startLine, 0), + new vscode.Position(endLine, 0), + ); }); } diff --git a/gui/src/components/markdown/LinkableCode.tsx b/gui/src/components/markdown/LinkableCode.tsx index 8f323a003..24c85426d 100644 --- a/gui/src/components/markdown/LinkableCode.tsx +++ b/gui/src/components/markdown/LinkableCode.tsx @@ -1,3 +1,4 @@ +import { RangeInFile } from "core"; import { useContext, useEffect, useState } from "react"; import { useSelector } from "react-redux"; import styled from "styled-components"; @@ -24,14 +25,13 @@ function LinkableCode(props: any) { const [linkingDone, setLinkingDone] = useState(false); const [isLink, setIsLink] = useState(false); - const [filepath, setFilepath] = useState(""); - const [line, setLine] = useState(0); + const [rif, setRif] = useState(undefined); useEffect(() => { if (linkingDone) return; setLinkingDone(true); - // Get filename from props.children + // Get content of the code tag let content: string | undefined = undefined; if (typeof props.children === "string") { content = props.children; @@ -44,7 +44,7 @@ function LinkableCode(props: any) { } if (!content) return; - // Check if this is a real file + // Match filepath with context items const contextItemFileMatch = contextItems.find( (item) => ["file", "codebase", "folder"].includes(item.id.providerTitle) && @@ -58,38 +58,89 @@ function LinkableCode(props: any) { .split(" (")[1] .split(")")[0] .split("-"); - setFilepath(contextItemFileMatch.description.split(" (")[0]); - setLine(parseInt(startLine)); + const filepath = contextItemFileMatch.description.split(" (")[0]; + setRif({ + filepath, + range: { + start: { + line: 0, + character: 0, + }, + end: { + line: 0, + character: 0, + }, + }, + }); + return; } else { - setFilepath(contextItemFileMatch.description.split(" (")[0]); - setLine(0); + // If no line number, just open the file + setRif({ + filepath: contextItemFileMatch.description.split(" (")[0], + range: { + start: { + line: 0, + character: 0, + }, + end: { + line: 0, + character: 0, + }, + }, + }); + return; } } - if (content.length > 6) { + // Try to match the content with a line in a file + if (content.length > 8) { const contextItemContentMatch = contextItems.find( (item) => ["file", "codebase", "folder"].includes(item.id.providerTitle) && item.content.includes(content), ); if (contextItemContentMatch) { + const line = contextItemContentMatch.content + .split("\n") + .slice(1) // code block fence + .findIndex((line) => line.includes(content)); + + const [filepath, rest] = + contextItemContentMatch.description.split(" ("); + const [startLine, endLine] = rest.split(")")[0]?.split("-") || [ + "0", + "0", + ]; + const start = parseInt(startLine); + const end = parseInt(endLine); + setIsLink(true); - setFilepath(contextItemContentMatch.description.split(" (")[0]); - setLine( - contextItemContentMatch.content - .split("\n") - .findIndex((line) => line.includes(content)) + 1, - ); + setRif({ + filepath, + range: { + start: { + line: start + line, + character: 0, + }, + end: { + line: start + line + 1, + character: 0, + }, + }, + }); + + console.log("MATCH: ", content, contextItemContentMatch, line); } } }, [linkingDone, contextItems]); const onClick = () => { if (!isLink) return; + if (!rif) return; ideMessenger.post("showLines", { - filepath, - startLine: line, - endLine: line + 1, + filepath: rif.filepath, + startLine: rif.range.start.line, + endLine: rif.range.end.line, }); }; From 5a7083ba544fdc1b7f38ebfd3d12666b74055295 Mon Sep 17 00:00:00 2001 From: Nate Sesti Date: Fri, 14 Jun 2024 16:30:34 -0700 Subject: [PATCH 003/268] =?UTF-8?q?=E2=9C=A8=20new=20prompt=20file=20actio?= =?UTF-8?q?n?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- core/config/load.ts | 11 +++- core/config/promptFile.ts | 57 +++++++++++++++++++ core/core.ts | 7 +++ core/protocol/core.ts | 1 + core/protocol/passThrough.ts | 1 + .../toolWindow/ContinueBrowser.kt | 1 + gui/src/components/mainInput/TipTapEditor.tsx | 1 + gui/src/components/mainInput/getSuggestion.ts | 21 ++++++- 8 files changed, 96 insertions(+), 4 deletions(-) diff --git a/core/config/load.ts b/core/config/load.ts index 8dd708b7e..0745614d7 100644 --- a/core/config/load.ts +++ b/core/config/load.ts @@ -54,7 +54,11 @@ import { defaultSlashCommandsJetBrains, defaultSlashCommandsVscode, } from "./default.js"; -import { getPromptFiles, slashCommandFromPromptFile } from "./promptFile.js"; +import { + DEFAULT_PROMPTS_FOLDER, + getPromptFiles, + slashCommandFromPromptFile, +} from "./promptFile.js"; const { execSync } = require("child_process"); function resolveSerializedConfig(filepath: string): SerializedContinueConfig { @@ -171,7 +175,10 @@ async function serializedToIntermediateConfig( promptFiles = ( await Promise.all( workspaceDirs.map((dir) => - getPromptFiles(ide, path.join(dir, promptFolder ?? ".prompts")), + getPromptFiles( + ide, + path.join(dir, promptFolder ?? DEFAULT_PROMPTS_FOLDER), + ), ), ) ) diff --git a/core/config/promptFile.ts b/core/config/promptFile.ts index 9fa66c892..e537dd4d5 100644 --- a/core/config/promptFile.ts +++ b/core/config/promptFile.ts @@ -1,9 +1,12 @@ +import path from "path"; import * as YAML from "yaml"; import type { IDE, SlashCommand } from ".."; import { stripImages } from "../llm/countTokens.js"; import { renderTemplatedString } from "../llm/llms/index.js"; import { getBasename } from "../util/index.js"; +export const DEFAULT_PROMPTS_FOLDER = ".prompts"; + export async function getPromptFiles( ide: IDE, dir: string, @@ -21,6 +24,60 @@ export async function getPromptFiles( } } +const DEFAULT_PROMPT_FILE = `# This is an example ".prompt" file +# It is used to define and reuse prompts within Continue +# Continue will automatically create a slash command for each prompt in the .prompts folder +# To learn more, see the full .prompt file reference: https://docs.continue.dev/walkthroughs/prompt-files +temperature: 0.0 +--- +{{{ diff }}} + +Give me feedback on the above changes. For each file, you should output a markdown section including the following: +- If you found any problems, an h3 like "❌ " +- If you didn't find any problems, an h3 like "✅ " +- If you found any problems, add below a bullet point description of what you found, including a minimal code snippet explaining how to fix it +- If you didn't find any problems, you don't need to add anything else + +Here is an example. The example is surrounded in backticks, but your response should not be: + +\`\`\` +### ✅ + +### ❌ + + +\`\`\` + +You should look primarily for the following types of issues, and only mention other problems if they are highly pressing. + +- console.logs that have been left after debugging +- repeated code +- algorithmic errors that could fail under edge cases +- something that could be refactored + +Make sure to review ALL files that were changed, do not skip any. +`; + +export async function createNewPromptFile( + ide: IDE, + promptPath: string | undefined, +): Promise { + const workspaceDirs = await ide.getWorkspaceDirs(); + if (workspaceDirs.length === 0) { + throw new Error( + "No workspace directories found. Make sure you've opened a folder in your IDE.", + ); + } + const promptFilePath = path.join( + workspaceDirs[0], + promptPath ?? DEFAULT_PROMPTS_FOLDER, + "new-prompt-file.prompt", + ); + + await ide.writeFile(promptFilePath, DEFAULT_PROMPT_FILE); + await ide.openFile(promptFilePath); +} + export function slashCommandFromPromptFile( path: string, content: string, diff --git a/core/core.ts b/core/core.ts index 8aa577251..5bc049255 100644 --- a/core/core.ts +++ b/core/core.ts @@ -14,6 +14,7 @@ import { setupLocalMode, setupOptimizedExistingUserMode, } from "./config/onboarding.js"; +import { createNewPromptFile } from "./config/promptFile"; import { addModel, addOpenAIKey, deleteModel } from "./config/util.js"; import { ContinueServerClient } from "./continueServer/stubs/client.js"; import { indexDocs } from "./indexing/docs/index.js"; @@ -190,6 +191,12 @@ export class Core { deleteModel(msg.data.title); this.configHandler.reloadConfig(); }); + on("config/newPromptFile", async (msg) => { + createNewPromptFile( + this.ide, + (await this.config()).experimental?.promptPath, + ); + }); on("config/reload", (msg) => { this.configHandler.reloadConfig(); return this.configHandler.getSerializedConfig(); diff --git a/core/protocol/core.ts b/core/protocol/core.ts index 977e4edcd..995c6a961 100644 --- a/core/protocol/core.ts +++ b/core/protocol/core.ts @@ -45,6 +45,7 @@ export type ToCoreFromIdeOrWebviewProtocol = { { model: SerializedContinueConfig["models"][number] }, void, ]; + "config/newPromptFile": [undefined, void]; "config/ideSettingsUpdate": [IdeSettings, void]; "config/getBrowserSerialized": [undefined, BrowserSerializedContinueConfig]; "config/deleteModel": [{ title: string }, void]; diff --git a/core/protocol/passThrough.ts b/core/protocol/passThrough.ts index 441659823..9e22bda32 100644 --- a/core/protocol/passThrough.ts +++ b/core/protocol/passThrough.ts @@ -16,6 +16,7 @@ export const WEBVIEW_TO_CORE_PASS_THROUGH: (keyof ToCoreFromWebviewProtocol)[] = "devdata/log", "config/addOpenAiKey", "config/addModel", + "config/newPromptFile", "config/ideSettingsUpdate", "config/getBrowserSerialized", "config/deleteModel", diff --git a/extensions/intellij/src/main/kotlin/com/github/continuedev/continueintellijextension/toolWindow/ContinueBrowser.kt b/extensions/intellij/src/main/kotlin/com/github/continuedev/continueintellijextension/toolWindow/ContinueBrowser.kt index 159e8471f..e230658fa 100644 --- a/extensions/intellij/src/main/kotlin/com/github/continuedev/continueintellijextension/toolWindow/ContinueBrowser.kt +++ b/extensions/intellij/src/main/kotlin/com/github/continuedev/continueintellijextension/toolWindow/ContinueBrowser.kt @@ -48,6 +48,7 @@ class ContinueBrowser(val project: Project, url: String, useOsr: Boolean = false "config/ideSettingsUpdate", "config/getBrowserSerialized", "config/deleteModel", + "config/newPromptFile", "config/reload", "context/getContextItems", "context/loadSubmenuItems", diff --git a/gui/src/components/mainInput/TipTapEditor.tsx b/gui/src/components/mainInput/TipTapEditor.tsx index 19dea7770..04e3f8c62 100644 --- a/gui/src/components/mainInput/TipTapEditor.tsx +++ b/gui/src/components/mainInput/TipTapEditor.tsx @@ -374,6 +374,7 @@ function TipTapEditor(props: TipTapEditorProps) { availableSlashCommandsRef, onClose, onOpen, + ideMessenger, ), renderText: (props) => { return props.node.attrs.label; diff --git a/gui/src/components/mainInput/getSuggestion.ts b/gui/src/components/mainInput/getSuggestion.ts index 5e7dd605b..7fb953b10 100644 --- a/gui/src/components/mainInput/getSuggestion.ts +++ b/gui/src/components/mainInput/getSuggestion.ts @@ -161,10 +161,26 @@ export function getCommandSuggestion( availableSlashCommandsRef: MutableRefObject, onClose: () => void, onOpen: () => void, + ideMessenger: IIdeMessenger, ) { const items = async ({ query }) => { + const options = [ + ...availableSlashCommandsRef.current, + { + title: "Build a custom prompt", + description: "Build a custom prompt", + type: "action", + id: "createPromptFile", + label: "Create Prompt File", + action: () => { + console.log("I", ideMessenger.request); + ideMessenger.request("config/newPromptFile", undefined); + }, + name: "Create Prompt File", + }, + ]; return ( - availableSlashCommandsRef.current?.filter((slashCommand) => { + options.filter((slashCommand) => { const sc = slashCommand.title.substring(1).toLowerCase(); const iv = query.toLowerCase(); return sc.startsWith(iv); @@ -175,7 +191,8 @@ export function getCommandSuggestion( id: provider.title, title: provider.title, label: provider.title, - type: "slashCommand" as ComboBoxItemType, + type: (provider.type ?? "slashCommand") as ComboBoxItemType, + action: provider.action, })); }; return getSuggestion(items, undefined, onClose, onOpen); From f97573e77ee3f7073142ceca9da30a7de07562d0 Mon Sep 17 00:00:00 2001 From: Nate Sesti Date: Sun, 16 Jun 2024 19:15:22 -0700 Subject: [PATCH 004/268] =?UTF-8?q?=E2=9A=A1=EF=B8=8F=20strip=20=20from=20GPT-4=20completion?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- core/autocomplete/completionProvider.ts | 2 ++ core/autocomplete/lineStream.ts | 16 ++++++++++++++++ 2 files changed, 18 insertions(+) diff --git a/core/autocomplete/completionProvider.ts b/core/autocomplete/completionProvider.ts index 3590a2383..873515bf5 100644 --- a/core/autocomplete/completionProvider.ts +++ b/core/autocomplete/completionProvider.ts @@ -38,6 +38,7 @@ import { AutocompleteLanguageInfo } from "./languages.js"; import { avoidPathLine, noTopLevelKeywordsMidline, + skipPrefixes, stopAtLines, stopAtRepeatingLines, stopAtSimilarLine, @@ -407,6 +408,7 @@ export async function getTabCompletion( lineGenerator = stopAtLines(lineGenerator, fullStop); lineGenerator = stopAtRepeatingLines(lineGenerator, fullStop); lineGenerator = avoidPathLine(lineGenerator, lang.singleLineComment); + lineGenerator = skipPrefixes(lineGenerator); lineGenerator = noTopLevelKeywordsMidline( lineGenerator, lang.topLevelKeywords, diff --git a/core/autocomplete/lineStream.ts b/core/autocomplete/lineStream.ts index 3f552e5f5..14d4c4ab7 100644 --- a/core/autocomplete/lineStream.ts +++ b/core/autocomplete/lineStream.ts @@ -121,6 +121,22 @@ export async function* stopAtLines( } } +const PREFIXES_TO_SKIP = [""]; +export async function* skipPrefixes(lines: LineStream): LineStream { + let isFirstLine = true; + for await (const line of lines) { + if (isFirstLine) { + const match = PREFIXES_TO_SKIP.find((prefix) => line.startsWith(prefix)); + if (match) { + yield line.slice(match.length); + continue; + } + isFirstLine = false; + } + yield line; + } +} + const LINES_TO_SKIP = [""]; export async function* skipLines(stream: LineStream): LineStream { From c8709c299fc9d3e37cd87745ff67c8add4e80eab Mon Sep 17 00:00:00 2001 From: Nate Sesti Date: Mon, 17 Jun 2024 17:34:45 -0700 Subject: [PATCH 005/268] continue proxy FIM support --- core/llm/llms/Mistral.ts | 40 +--------------------------- core/llm/llms/OpenAI.ts | 32 ++++++++++++++++++++++ core/llm/llms/stubs/ContinueProxy.ts | 4 +++ 3 files changed, 37 insertions(+), 39 deletions(-) diff --git a/core/llm/llms/Mistral.ts b/core/llm/llms/Mistral.ts index d05615db8..fee8fadac 100644 --- a/core/llm/llms/Mistral.ts +++ b/core/llm/llms/Mistral.ts @@ -1,10 +1,4 @@ -import { - ChatMessage, - CompletionOptions, - LLMOptions, - ModelProvider, -} from "../../index.js"; -import { streamSse } from "../stream.js"; +import { ChatMessage, LLMOptions, ModelProvider } from "../../index.js"; import { gptEditPrompt } from "../templates/edit.js"; import OpenAI from "./OpenAI.js"; @@ -47,38 +41,6 @@ class Mistral extends OpenAI { supportsFim(): boolean { return true; } - - async *_streamFim( - prefix: string, - suffix: string, - options: CompletionOptions, - ): AsyncGenerator { - const endpoint = new URL("fim/completions", this.apiBase); - const resp = await this.fetch(endpoint, { - method: "POST", - body: JSON.stringify({ - model: options.model, - prompt: prefix, - suffix, - max_tokens: options.maxTokens, - temperature: options.temperature, - top_p: options.topP, - frequency_penalty: options.frequencyPenalty, - presence_penalty: options.presencePenalty, - stop: options.stop, - stream: true, - }), - headers: { - "Content-Type": "application/json", - Accept: "application/json", - "x-api-key": this.apiKey ?? "", - Authorization: `Bearer ${this.apiKey}`, - }, - }); - for await (const chunk of streamSse(resp)) { - yield chunk.choices[0].delta.content; - } - } } export default Mistral; diff --git a/core/llm/llms/OpenAI.ts b/core/llm/llms/OpenAI.ts index d05c3315c..08b728f2f 100644 --- a/core/llm/llms/OpenAI.ts +++ b/core/llm/llms/OpenAI.ts @@ -226,6 +226,38 @@ class OpenAI extends BaseLLM { } } + async *_streamFim( + prefix: string, + suffix: string, + options: CompletionOptions, + ): AsyncGenerator { + const endpoint = new URL("fim/completions", this.apiBase); + const resp = await this.fetch(endpoint, { + method: "POST", + body: JSON.stringify({ + model: options.model, + prompt: prefix, + suffix, + max_tokens: options.maxTokens, + temperature: options.temperature, + top_p: options.topP, + frequency_penalty: options.frequencyPenalty, + presence_penalty: options.presencePenalty, + stop: options.stop, + stream: true, + }), + headers: { + "Content-Type": "application/json", + Accept: "application/json", + "x-api-key": this.apiKey ?? "", + Authorization: `Bearer ${this.apiKey}`, + }, + }); + for await (const chunk of streamSse(resp)) { + yield chunk.choices[0].delta.content; + } + } + async listModels(): Promise { const response = await this.fetch(this._getEndpoint("models"), { method: "GET", diff --git a/core/llm/llms/stubs/ContinueProxy.ts b/core/llm/llms/stubs/ContinueProxy.ts index 8db6b4518..f23ea35cc 100644 --- a/core/llm/llms/stubs/ContinueProxy.ts +++ b/core/llm/llms/stubs/ContinueProxy.ts @@ -6,6 +6,10 @@ class ContinueProxy extends OpenAI { static defaultOptions: Partial = { apiBase: "http://localhost:3000/proxy/v1", }; + + supportsFim(): boolean { + return true; + } } export default ContinueProxy; From 82f032912456501df6c045642ff0a2635d39fe39 Mon Sep 17 00:00:00 2001 From: Nate Sesti Date: Wed, 19 Jun 2024 10:11:15 -0700 Subject: [PATCH 006/268] warn user if potentially dangerous command is generated --- core/commands/slash/cmd.ts | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/core/commands/slash/cmd.ts b/core/commands/slash/cmd.ts index 797bd9826..c171384bd 100644 --- a/core/commands/slash/cmd.ts +++ b/core/commands/slash/cmd.ts @@ -2,6 +2,14 @@ import { streamLines } from "../../diff/util.js"; import { SlashCommand } from "../../index.js"; import { removeQuotesAndEscapes } from "../../util/index.js"; +function commandIsPotentiallyDangerous(command: string) { + return ( + command.includes("rm -rf") || + command.includes("sudo") || + command.includes("cd / ") + ); +} + const GenerateTerminalCommand: SlashCommand = { name: "cmd", description: "Generate a shell command", @@ -35,8 +43,12 @@ Please write a shell command that will do what the user requested. Your output s break; } - await ide.runCommand(cmd); yield `Generated shell command: ${cmd}`; + if (commandIsPotentiallyDangerous(cmd)) { + yield "\n\nWarning: This command may be potentially dangerous. Please double-check before pasting it in your terminal."; + } else { + await ide.runCommand(cmd); + } }, }; From 07f682e7fdc91a9d9ab3bb6dc02c4761d1984db3 Mon Sep 17 00:00:00 2001 From: Nate Sesti Date: Wed, 19 Jun 2024 11:37:41 -0700 Subject: [PATCH 007/268] tab autocomplete docs --- docs/docs/walkthroughs/tab-autocomplete.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/docs/walkthroughs/tab-autocomplete.md b/docs/docs/walkthroughs/tab-autocomplete.md index 4790808d9..959384f72 100644 --- a/docs/docs/walkthroughs/tab-autocomplete.md +++ b/docs/docs/walkthroughs/tab-autocomplete.md @@ -89,7 +89,7 @@ This is just another object like the ones in the `"models"` array of `config.jso ### `tabAutocompleteOptions` -This object allows you to customize the behavior of tab-autocomplete. The available options are: +This object allows you to customize the behavior of tab-autocomplete. The available options are shown below, and you can find their default values [here](https://github.com/continuedev/continue/blob/fbeb2e4fe15d4b434a30a136f74b672485c852d9/core/util/parameters.ts). - `disable`: Disable autocomplete (can also be done from IDE settings) - `template`: An optional template string to be used for autocomplete. It will be rendered with the Mustache templating language, and is passed the 'prefix' and 'suffix' variables. (String) From a6ff923ddecab7d3fecad58d9e56d88614d244c4 Mon Sep 17 00:00:00 2001 From: Patrick Erichsen Date: Thu, 20 Jun 2024 15:16:12 -0500 Subject: [PATCH 008/268] docs: update PR template (#1531) --- .github/pull_request_template.md | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.github/pull_request_template.md b/.github/pull_request_template.md index 83dbcefd8..4bb4e6de4 100644 --- a/.github/pull_request_template.md +++ b/.github/pull_request_template.md @@ -4,4 +4,5 @@ ## Checklist -- [ ] The base branch of this PR is `preview`, rather than `main` +- [ ] The base branch of this PR is `dev`, rather than `main` +- [ ] The relevant docs, if any, have been updated or created From 5876649991ae87aa5f04f746ad4b55ff4d6b3c59 Mon Sep 17 00:00:00 2001 From: Patrick Erichsen Date: Thu, 20 Jun 2024 16:50:10 -0500 Subject: [PATCH 009/268] chore: add docs to install script (#1533) --- .vscode/tasks.json | 10 + docs/package-lock.json | 1350 +++++++++++++-------------- docs/package.json | 6 +- extensions/vscode/package-lock.json | 4 +- extensions/vscode/package.json | 2 +- scripts/install-dependencies.ps1 | 3 + scripts/install-dependencies.sh | 13 +- 7 files changed, 662 insertions(+), 726 deletions(-) diff --git a/.vscode/tasks.json b/.vscode/tasks.json index 19992f866..e1fa3e1b3 100644 --- a/.vscode/tasks.json +++ b/.vscode/tasks.json @@ -154,6 +154,16 @@ "options": { "cwd": "binary" } + }, + { + "label": "docs:start", + "type": "shell", + "command": "npm", + "args": ["run", "start"], + "problemMatcher": [], + "options": { + "cwd": "docs" + } } ] } diff --git a/docs/package-lock.json b/docs/package-lock.json index c1cba2aef..68e4cd8fa 100644 --- a/docs/package-lock.json +++ b/docs/package-lock.json @@ -8,9 +8,9 @@ "name": "continue-docs", "version": "0.0.0", "dependencies": { - "@docusaurus/core": "^3.2.1", - "@docusaurus/plugin-client-redirects": "^3.2.1", - "@docusaurus/preset-classic": "^3.2.1", + "@docusaurus/core": "^3.4.0", + "@docusaurus/plugin-client-redirects": "^3.4.0", + "@docusaurus/preset-classic": "^3.4.0", "@mdx-js/react": "^3.0.0", "clsx": "^2.1.0", "docusaurus-json-schema-plugin": "^1.11.0", @@ -548,9 +548,9 @@ } }, "node_modules/@babel/helper-plugin-utils": { - "version": "7.22.5", - "resolved": "https://registry.npmjs.org/@babel/helper-plugin-utils/-/helper-plugin-utils-7.22.5.tgz", - "integrity": "sha512-uLls06UVKgFG9QD4OeFYLEGteMIAa5kpTPcFL28yuCIIzsf6ZyKZMllKVOCZFhiZ5ptnwX4mtKdWCBE/uT4amg==", + "version": "7.24.7", + "resolved": "https://registry.npmjs.org/@babel/helper-plugin-utils/-/helper-plugin-utils-7.24.7.tgz", + "integrity": "sha512-Rq76wjt7yz9AAc1KnlRKNAi/dMSVWgDRx43FHoJEbcYU6xOWaE2dVPwcdTukJrjxS65GITyfbvEYHvkirZ6uEg==", "engines": { "node": ">=6.9.0" } @@ -1625,11 +1625,11 @@ } }, "node_modules/@babel/plugin-transform-react-constant-elements": { - "version": "7.23.3", - "resolved": "https://registry.npmjs.org/@babel/plugin-transform-react-constant-elements/-/plugin-transform-react-constant-elements-7.23.3.tgz", - "integrity": "sha512-zP0QKq/p6O42OL94udMgSfKXyse4RyJ0JqbQ34zDAONWjyrEsghYEyTSK5FIpmXmCpB55SHokL1cRRKHv8L2Qw==", + "version": "7.24.7", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-react-constant-elements/-/plugin-transform-react-constant-elements-7.24.7.tgz", + "integrity": "sha512-7LidzZfUXyfZ8/buRW6qIIHBY8wAZ1OrY9c/wTr8YhZ6vMPo+Uc/CVFLYY1spZrEQlD4w5u8wjqk5NQ3OVqQKA==", "dependencies": { - "@babel/helper-plugin-utils": "^7.22.5" + "@babel/helper-plugin-utils": "^7.24.7" }, "engines": { "node": ">=6.9.0" @@ -2181,9 +2181,9 @@ } }, "node_modules/@docusaurus/core": { - "version": "3.2.1", - "resolved": "https://registry.npmjs.org/@docusaurus/core/-/core-3.2.1.tgz", - "integrity": "sha512-ZeMAqNvy0eBv2dThEeMuNzzuu+4thqMQakhxsgT5s02A8LqRcdkg+rbcnuNqUIpekQ4GRx3+M5nj0ODJhBXo9w==", + "version": "3.4.0", + "resolved": "https://registry.npmjs.org/@docusaurus/core/-/core-3.4.0.tgz", + "integrity": "sha512-g+0wwmN2UJsBqy2fQRQ6fhXruoEa62JDeEa5d8IdTJlMoaDaEDfHh7WjwGRn4opuTQWpjAwP/fbcgyHKlE+64w==", "dependencies": { "@babel/core": "^7.23.3", "@babel/generator": "^7.23.3", @@ -2195,14 +2195,12 @@ "@babel/runtime": "^7.22.6", "@babel/runtime-corejs3": "^7.22.6", "@babel/traverse": "^7.22.8", - "@docusaurus/cssnano-preset": "3.2.1", - "@docusaurus/logger": "3.2.1", - "@docusaurus/mdx-loader": "3.2.1", - "@docusaurus/react-loadable": "5.5.2", - "@docusaurus/utils": "3.2.1", - "@docusaurus/utils-common": "3.2.1", - "@docusaurus/utils-validation": "3.2.1", - "@svgr/webpack": "^6.5.1", + "@docusaurus/cssnano-preset": "3.4.0", + "@docusaurus/logger": "3.4.0", + "@docusaurus/mdx-loader": "3.4.0", + "@docusaurus/utils": "3.4.0", + "@docusaurus/utils-common": "3.4.0", + "@docusaurus/utils-validation": "3.4.0", "autoprefixer": "^10.4.14", "babel-loader": "^9.1.3", "babel-plugin-dynamic-import-node": "^2.3.3", @@ -2216,8 +2214,8 @@ "copy-webpack-plugin": "^11.0.0", "core-js": "^3.31.1", "css-loader": "^6.8.1", - "css-minimizer-webpack-plugin": "^4.2.2", - "cssnano": "^5.1.15", + "css-minimizer-webpack-plugin": "^5.0.1", + "cssnano": "^6.1.2", "del": "^6.1.1", "detect-port": "^1.5.1", "escape-html": "^1.0.3", @@ -2237,7 +2235,7 @@ "prompts": "^2.4.2", "react-dev-utils": "^12.0.1", "react-helmet-async": "^1.3.0", - "react-loadable": "npm:@docusaurus/react-loadable@5.5.2", + "react-loadable": "npm:@docusaurus/react-loadable@6.0.0", "react-loadable-ssr-addon-v5-slorber": "^1.0.1", "react-router": "^5.3.4", "react-router-config": "^5.1.1", @@ -2268,13 +2266,13 @@ } }, "node_modules/@docusaurus/cssnano-preset": { - "version": "3.2.1", - "resolved": "https://registry.npmjs.org/@docusaurus/cssnano-preset/-/cssnano-preset-3.2.1.tgz", - "integrity": "sha512-wTL9KuSSbMJjKrfu385HZEzAoamUsbKqwscAQByZw4k6Ja/RWpqgVvt/CbAC+aYEH6inLzOt+MjuRwMOrD3VBA==", + "version": "3.4.0", + "resolved": "https://registry.npmjs.org/@docusaurus/cssnano-preset/-/cssnano-preset-3.4.0.tgz", + "integrity": "sha512-qwLFSz6v/pZHy/UP32IrprmH5ORce86BGtN0eBtG75PpzQJAzp9gefspox+s8IEOr0oZKuQ/nhzZ3xwyc3jYJQ==", "dependencies": { - "cssnano-preset-advanced": "^5.3.10", - "postcss": "^8.4.26", - "postcss-sort-media-queries": "^4.4.1", + "cssnano-preset-advanced": "^6.1.2", + "postcss": "^8.4.38", + "postcss-sort-media-queries": "^5.2.0", "tslib": "^2.6.0" }, "engines": { @@ -2282,9 +2280,9 @@ } }, "node_modules/@docusaurus/logger": { - "version": "3.2.1", - "resolved": "https://registry.npmjs.org/@docusaurus/logger/-/logger-3.2.1.tgz", - "integrity": "sha512-0voOKJCn9RaM3np6soqEfo7SsVvf2C+CDTWhW+H/1AyBhybASpExtDEz+7ECck9TwPzFQ5tt+I3zVugUJbJWDg==", + "version": "3.4.0", + "resolved": "https://registry.npmjs.org/@docusaurus/logger/-/logger-3.4.0.tgz", + "integrity": "sha512-bZwkX+9SJ8lB9kVRkXw+xvHYSMGG4bpYHKGXeXFvyVc79NMeeBSGgzd4TQLHH+DYeOJoCdl8flrFJVxlZ0wo/Q==", "dependencies": { "chalk": "^4.1.2", "tslib": "^2.6.0" @@ -2294,13 +2292,13 @@ } }, "node_modules/@docusaurus/mdx-loader": { - "version": "3.2.1", - "resolved": "https://registry.npmjs.org/@docusaurus/mdx-loader/-/mdx-loader-3.2.1.tgz", - "integrity": "sha512-Fs8tXhXKZjNkdGaOy1xSLXSwfjCMT73J3Zfrju2U16uGedRFRjgK0ojpK5tiC7TnunsL3tOFgp1BSMBRflX9gw==", + "version": "3.4.0", + "resolved": "https://registry.npmjs.org/@docusaurus/mdx-loader/-/mdx-loader-3.4.0.tgz", + "integrity": "sha512-kSSbrrk4nTjf4d+wtBA9H+FGauf2gCax89kV8SUSJu3qaTdSIKdWERlngsiHaCFgZ7laTJ8a67UFf+xlFPtuTw==", "dependencies": { - "@docusaurus/logger": "3.2.1", - "@docusaurus/utils": "3.2.1", - "@docusaurus/utils-validation": "3.2.1", + "@docusaurus/logger": "3.4.0", + "@docusaurus/utils": "3.4.0", + "@docusaurus/utils-validation": "3.4.0", "@mdx-js/mdx": "^3.0.0", "@slorber/remark-comment": "^1.0.0", "escape-html": "^1.0.3", @@ -2332,18 +2330,17 @@ } }, "node_modules/@docusaurus/module-type-aliases": { - "version": "3.2.1", - "resolved": "https://registry.npmjs.org/@docusaurus/module-type-aliases/-/module-type-aliases-3.2.1.tgz", - "integrity": "sha512-FyViV5TqhL1vsM7eh29nJ5NtbRE6Ra6LP1PDcPvhwPSlA7eiWGRKAn3jWwMUcmjkos5SYY+sr0/feCdbM3eQHQ==", + "version": "3.4.0", + "resolved": "https://registry.npmjs.org/@docusaurus/module-type-aliases/-/module-type-aliases-3.4.0.tgz", + "integrity": "sha512-A1AyS8WF5Bkjnb8s+guTDuYmUiwJzNrtchebBHpc0gz0PyHJNMaybUlSrmJjHVcGrya0LKI4YcR3lBDQfXRYLw==", "dependencies": { - "@docusaurus/react-loadable": "5.5.2", - "@docusaurus/types": "3.2.1", + "@docusaurus/types": "3.4.0", "@types/history": "^4.7.11", "@types/react": "*", "@types/react-router-config": "*", "@types/react-router-dom": "*", "react-helmet-async": "*", - "react-loadable": "npm:@docusaurus/react-loadable@5.5.2" + "react-loadable": "npm:@docusaurus/react-loadable@6.0.0" }, "peerDependencies": { "react": "*", @@ -2351,15 +2348,15 @@ } }, "node_modules/@docusaurus/plugin-client-redirects": { - "version": "3.2.1", - "resolved": "https://registry.npmjs.org/@docusaurus/plugin-client-redirects/-/plugin-client-redirects-3.2.1.tgz", - "integrity": "sha512-GgzuqwbqNQSP5s/ouUrOQFuHI8m4Rn8a5CHuWkwpqj+5lbQMsABcvsoiWjrH9M00CzN48q+slSbJy7rtHjn7zg==", + "version": "3.4.0", + "resolved": "https://registry.npmjs.org/@docusaurus/plugin-client-redirects/-/plugin-client-redirects-3.4.0.tgz", + "integrity": "sha512-Pr8kyh/+OsmYCvdZhc60jy/FnrY6flD2TEAhl4rJxeVFxnvvRgEhoaIVX8q9MuJmaQoh6frPk94pjs7/6YgBDQ==", "dependencies": { - "@docusaurus/core": "3.2.1", - "@docusaurus/logger": "3.2.1", - "@docusaurus/utils": "3.2.1", - "@docusaurus/utils-common": "3.2.1", - "@docusaurus/utils-validation": "3.2.1", + "@docusaurus/core": "3.4.0", + "@docusaurus/logger": "3.4.0", + "@docusaurus/utils": "3.4.0", + "@docusaurus/utils-common": "3.4.0", + "@docusaurus/utils-validation": "3.4.0", "eta": "^2.2.0", "fs-extra": "^11.1.1", "lodash": "^4.17.21", @@ -2374,17 +2371,17 @@ } }, "node_modules/@docusaurus/plugin-content-blog": { - "version": "3.2.1", - "resolved": "https://registry.npmjs.org/@docusaurus/plugin-content-blog/-/plugin-content-blog-3.2.1.tgz", - "integrity": "sha512-lOx0JfhlGZoZu6pEJfeEpSISZR5dQbJGGvb42IP13G5YThNHhG9R9uoWuo4IOimPqBC7sHThdLA3VLevk61Fsw==", + "version": "3.4.0", + "resolved": "https://registry.npmjs.org/@docusaurus/plugin-content-blog/-/plugin-content-blog-3.4.0.tgz", + "integrity": "sha512-vv6ZAj78ibR5Jh7XBUT4ndIjmlAxkijM3Sx5MAAzC1gyv0vupDQNhzuFg1USQmQVj3P5I6bquk12etPV3LJ+Xw==", "dependencies": { - "@docusaurus/core": "3.2.1", - "@docusaurus/logger": "3.2.1", - "@docusaurus/mdx-loader": "3.2.1", - "@docusaurus/types": "3.2.1", - "@docusaurus/utils": "3.2.1", - "@docusaurus/utils-common": "3.2.1", - "@docusaurus/utils-validation": "3.2.1", + "@docusaurus/core": "3.4.0", + "@docusaurus/logger": "3.4.0", + "@docusaurus/mdx-loader": "3.4.0", + "@docusaurus/types": "3.4.0", + "@docusaurus/utils": "3.4.0", + "@docusaurus/utils-common": "3.4.0", + "@docusaurus/utils-validation": "3.4.0", "cheerio": "^1.0.0-rc.12", "feed": "^4.2.2", "fs-extra": "^11.1.1", @@ -2405,18 +2402,18 @@ } }, "node_modules/@docusaurus/plugin-content-docs": { - "version": "3.2.1", - "resolved": "https://registry.npmjs.org/@docusaurus/plugin-content-docs/-/plugin-content-docs-3.2.1.tgz", - "integrity": "sha512-GHe5b/lCskAR8QVbfWAfPAApvRZgqk7FN3sOHgjCtjzQACZxkHmq6QqyqZ8Jp45V7lVck4wt2Xw2IzBJ7Cz3bA==", + "version": "3.4.0", + "resolved": "https://registry.npmjs.org/@docusaurus/plugin-content-docs/-/plugin-content-docs-3.4.0.tgz", + "integrity": "sha512-HkUCZffhBo7ocYheD9oZvMcDloRnGhBMOZRyVcAQRFmZPmNqSyISlXA1tQCIxW+r478fty97XXAGjNYzBjpCsg==", "dependencies": { - "@docusaurus/core": "3.2.1", - "@docusaurus/logger": "3.2.1", - "@docusaurus/mdx-loader": "3.2.1", - "@docusaurus/module-type-aliases": "3.2.1", - "@docusaurus/types": "3.2.1", - "@docusaurus/utils": "3.2.1", - "@docusaurus/utils-common": "3.2.1", - "@docusaurus/utils-validation": "3.2.1", + "@docusaurus/core": "3.4.0", + "@docusaurus/logger": "3.4.0", + "@docusaurus/mdx-loader": "3.4.0", + "@docusaurus/module-type-aliases": "3.4.0", + "@docusaurus/types": "3.4.0", + "@docusaurus/utils": "3.4.0", + "@docusaurus/utils-common": "3.4.0", + "@docusaurus/utils-validation": "3.4.0", "@types/react-router-config": "^5.0.7", "combine-promises": "^1.1.0", "fs-extra": "^11.1.1", @@ -2435,15 +2432,15 @@ } }, "node_modules/@docusaurus/plugin-content-pages": { - "version": "3.2.1", - "resolved": "https://registry.npmjs.org/@docusaurus/plugin-content-pages/-/plugin-content-pages-3.2.1.tgz", - "integrity": "sha512-TOqVfMVTAHqWNEGM94Drz+PUpHDbwFy6ucHFgyTx9zJY7wPNSG5EN+rd/mU7OvAi26qpOn2o9xTdUmb28QLjEQ==", + "version": "3.4.0", + "resolved": "https://registry.npmjs.org/@docusaurus/plugin-content-pages/-/plugin-content-pages-3.4.0.tgz", + "integrity": "sha512-h2+VN/0JjpR8fIkDEAoadNjfR3oLzB+v1qSXbIAKjQ46JAHx3X22n9nqS+BWSQnTnp1AjkjSvZyJMekmcwxzxg==", "dependencies": { - "@docusaurus/core": "3.2.1", - "@docusaurus/mdx-loader": "3.2.1", - "@docusaurus/types": "3.2.1", - "@docusaurus/utils": "3.2.1", - "@docusaurus/utils-validation": "3.2.1", + "@docusaurus/core": "3.4.0", + "@docusaurus/mdx-loader": "3.4.0", + "@docusaurus/types": "3.4.0", + "@docusaurus/utils": "3.4.0", + "@docusaurus/utils-validation": "3.4.0", "fs-extra": "^11.1.1", "tslib": "^2.6.0", "webpack": "^5.88.1" @@ -2457,13 +2454,13 @@ } }, "node_modules/@docusaurus/plugin-debug": { - "version": "3.2.1", - "resolved": "https://registry.npmjs.org/@docusaurus/plugin-debug/-/plugin-debug-3.2.1.tgz", - "integrity": "sha512-AMKq8NuUKf2sRpN1m/sIbqbRbnmk+rSA+8mNU1LNxEl9BW9F/Gng8m9HKlzeyMPrf5XidzS1jqkuTLDJ6KIrFw==", + "version": "3.4.0", + "resolved": "https://registry.npmjs.org/@docusaurus/plugin-debug/-/plugin-debug-3.4.0.tgz", + "integrity": "sha512-uV7FDUNXGyDSD3PwUaf5YijX91T5/H9SX4ErEcshzwgzWwBtK37nUWPU3ZLJfeTavX3fycTOqk9TglpOLaWkCg==", "dependencies": { - "@docusaurus/core": "3.2.1", - "@docusaurus/types": "3.2.1", - "@docusaurus/utils": "3.2.1", + "@docusaurus/core": "3.4.0", + "@docusaurus/types": "3.4.0", + "@docusaurus/utils": "3.4.0", "fs-extra": "^11.1.1", "react-json-view-lite": "^1.2.0", "tslib": "^2.6.0" @@ -2477,13 +2474,13 @@ } }, "node_modules/@docusaurus/plugin-google-analytics": { - "version": "3.2.1", - "resolved": "https://registry.npmjs.org/@docusaurus/plugin-google-analytics/-/plugin-google-analytics-3.2.1.tgz", - "integrity": "sha512-/rJ+9u+Px0eTCiF4TNcNtj3kHf8cp6K1HCwOTdbsSlz6Xn21syZYcy+f1VM9wF6HrvUkXUcbM5TDCvg2IRL6bQ==", + "version": "3.4.0", + "resolved": "https://registry.npmjs.org/@docusaurus/plugin-google-analytics/-/plugin-google-analytics-3.4.0.tgz", + "integrity": "sha512-mCArluxEGi3cmYHqsgpGGt3IyLCrFBxPsxNZ56Mpur0xSlInnIHoeLDH7FvVVcPJRPSQ9/MfRqLsainRw+BojA==", "dependencies": { - "@docusaurus/core": "3.2.1", - "@docusaurus/types": "3.2.1", - "@docusaurus/utils-validation": "3.2.1", + "@docusaurus/core": "3.4.0", + "@docusaurus/types": "3.4.0", + "@docusaurus/utils-validation": "3.4.0", "tslib": "^2.6.0" }, "engines": { @@ -2495,13 +2492,13 @@ } }, "node_modules/@docusaurus/plugin-google-gtag": { - "version": "3.2.1", - "resolved": "https://registry.npmjs.org/@docusaurus/plugin-google-gtag/-/plugin-google-gtag-3.2.1.tgz", - "integrity": "sha512-XtuJnlMvYfppeVdUyKiDIJAa/gTJKCQU92z8CLZZ9ibJdgVjFOLS10s0hIC0eL5z0U2u2loJz2rZ63HOkNHbBA==", + "version": "3.4.0", + "resolved": "https://registry.npmjs.org/@docusaurus/plugin-google-gtag/-/plugin-google-gtag-3.4.0.tgz", + "integrity": "sha512-Dsgg6PLAqzZw5wZ4QjUYc8Z2KqJqXxHxq3vIoyoBWiLEEfigIs7wHR+oiWUQy3Zk9MIk6JTYj7tMoQU0Jm3nqA==", "dependencies": { - "@docusaurus/core": "3.2.1", - "@docusaurus/types": "3.2.1", - "@docusaurus/utils-validation": "3.2.1", + "@docusaurus/core": "3.4.0", + "@docusaurus/types": "3.4.0", + "@docusaurus/utils-validation": "3.4.0", "@types/gtag.js": "^0.0.12", "tslib": "^2.6.0" }, @@ -2514,13 +2511,13 @@ } }, "node_modules/@docusaurus/plugin-google-tag-manager": { - "version": "3.2.1", - "resolved": "https://registry.npmjs.org/@docusaurus/plugin-google-tag-manager/-/plugin-google-tag-manager-3.2.1.tgz", - "integrity": "sha512-wiS/kE0Ny5pnjTxVCs8ljRnkL1RVMj59t6jmSsgEX7piDOoaXSMIUaoIt9ogS/v132uO0xEsxHstkRUZHQyPcQ==", + "version": "3.4.0", + "resolved": "https://registry.npmjs.org/@docusaurus/plugin-google-tag-manager/-/plugin-google-tag-manager-3.4.0.tgz", + "integrity": "sha512-O9tX1BTwxIhgXpOLpFDueYA9DWk69WCbDRrjYoMQtFHSkTyE7RhNgyjSPREUWJb9i+YUg3OrsvrBYRl64FCPCQ==", "dependencies": { - "@docusaurus/core": "3.2.1", - "@docusaurus/types": "3.2.1", - "@docusaurus/utils-validation": "3.2.1", + "@docusaurus/core": "3.4.0", + "@docusaurus/types": "3.4.0", + "@docusaurus/utils-validation": "3.4.0", "tslib": "^2.6.0" }, "engines": { @@ -2532,16 +2529,16 @@ } }, "node_modules/@docusaurus/plugin-sitemap": { - "version": "3.2.1", - "resolved": "https://registry.npmjs.org/@docusaurus/plugin-sitemap/-/plugin-sitemap-3.2.1.tgz", - "integrity": "sha512-uWZ7AxzdeaQSTCwD2yZtOiEm9zyKU+wqCmi/Sf25kQQqqFSBZUStXfaQ8OHP9cecnw893ZpZ811rPhB/wfujJw==", + "version": "3.4.0", + "resolved": "https://registry.npmjs.org/@docusaurus/plugin-sitemap/-/plugin-sitemap-3.4.0.tgz", + "integrity": "sha512-+0VDvx9SmNrFNgwPoeoCha+tRoAjopwT0+pYO1xAbyLcewXSemq+eLxEa46Q1/aoOaJQ0qqHELuQM7iS2gp33Q==", "dependencies": { - "@docusaurus/core": "3.2.1", - "@docusaurus/logger": "3.2.1", - "@docusaurus/types": "3.2.1", - "@docusaurus/utils": "3.2.1", - "@docusaurus/utils-common": "3.2.1", - "@docusaurus/utils-validation": "3.2.1", + "@docusaurus/core": "3.4.0", + "@docusaurus/logger": "3.4.0", + "@docusaurus/types": "3.4.0", + "@docusaurus/utils": "3.4.0", + "@docusaurus/utils-common": "3.4.0", + "@docusaurus/utils-validation": "3.4.0", "fs-extra": "^11.1.1", "sitemap": "^7.1.1", "tslib": "^2.6.0" @@ -2555,23 +2552,23 @@ } }, "node_modules/@docusaurus/preset-classic": { - "version": "3.2.1", - "resolved": "https://registry.npmjs.org/@docusaurus/preset-classic/-/preset-classic-3.2.1.tgz", - "integrity": "sha512-E3OHSmttpEBcSMhfPBq3EJMBxZBM01W1rnaCUTXy9EHvkmB5AwgTfW1PwGAybPAX579ntE03R+2zmXdizWfKnQ==", + "version": "3.4.0", + "resolved": "https://registry.npmjs.org/@docusaurus/preset-classic/-/preset-classic-3.4.0.tgz", + "integrity": "sha512-Ohj6KB7siKqZaQhNJVMBBUzT3Nnp6eTKqO+FXO3qu/n1hJl3YLwVKTWBg28LF7MWrKu46UuYavwMRxud0VyqHg==", "dependencies": { - "@docusaurus/core": "3.2.1", - "@docusaurus/plugin-content-blog": "3.2.1", - "@docusaurus/plugin-content-docs": "3.2.1", - "@docusaurus/plugin-content-pages": "3.2.1", - "@docusaurus/plugin-debug": "3.2.1", - "@docusaurus/plugin-google-analytics": "3.2.1", - "@docusaurus/plugin-google-gtag": "3.2.1", - "@docusaurus/plugin-google-tag-manager": "3.2.1", - "@docusaurus/plugin-sitemap": "3.2.1", - "@docusaurus/theme-classic": "3.2.1", - "@docusaurus/theme-common": "3.2.1", - "@docusaurus/theme-search-algolia": "3.2.1", - "@docusaurus/types": "3.2.1" + "@docusaurus/core": "3.4.0", + "@docusaurus/plugin-content-blog": "3.4.0", + "@docusaurus/plugin-content-docs": "3.4.0", + "@docusaurus/plugin-content-pages": "3.4.0", + "@docusaurus/plugin-debug": "3.4.0", + "@docusaurus/plugin-google-analytics": "3.4.0", + "@docusaurus/plugin-google-gtag": "3.4.0", + "@docusaurus/plugin-google-tag-manager": "3.4.0", + "@docusaurus/plugin-sitemap": "3.4.0", + "@docusaurus/theme-classic": "3.4.0", + "@docusaurus/theme-common": "3.4.0", + "@docusaurus/theme-search-algolia": "3.4.0", + "@docusaurus/types": "3.4.0" }, "engines": { "node": ">=18.0" @@ -2581,35 +2578,23 @@ "react-dom": "^18.0.0" } }, - "node_modules/@docusaurus/react-loadable": { - "version": "5.5.2", - "resolved": "https://registry.npmjs.org/@docusaurus/react-loadable/-/react-loadable-5.5.2.tgz", - "integrity": "sha512-A3dYjdBGuy0IGT+wyLIGIKLRE+sAk1iNk0f1HjNDysO7u8lhL4N3VEm+FAubmJbAztn94F7MxBTPmnixbiyFdQ==", - "dependencies": { - "@types/react": "*", - "prop-types": "^15.6.2" - }, - "peerDependencies": { - "react": "*" - } - }, "node_modules/@docusaurus/theme-classic": { - "version": "3.2.1", - "resolved": "https://registry.npmjs.org/@docusaurus/theme-classic/-/theme-classic-3.2.1.tgz", - "integrity": "sha512-+vSbnQyoWjc6vRZi4vJO2dBU02wqzynsai15KK+FANZudrYaBHtkbLZAQhgmxzBGVpxzi87gRohlMm+5D8f4tA==", + "version": "3.4.0", + "resolved": "https://registry.npmjs.org/@docusaurus/theme-classic/-/theme-classic-3.4.0.tgz", + "integrity": "sha512-0IPtmxsBYv2adr1GnZRdMkEQt1YW6tpzrUPj02YxNpvJ5+ju4E13J5tB4nfdaen/tfR1hmpSPlTFPvTf4kwy8Q==", "dependencies": { - "@docusaurus/core": "3.2.1", - "@docusaurus/mdx-loader": "3.2.1", - "@docusaurus/module-type-aliases": "3.2.1", - "@docusaurus/plugin-content-blog": "3.2.1", - "@docusaurus/plugin-content-docs": "3.2.1", - "@docusaurus/plugin-content-pages": "3.2.1", - "@docusaurus/theme-common": "3.2.1", - "@docusaurus/theme-translations": "3.2.1", - "@docusaurus/types": "3.2.1", - "@docusaurus/utils": "3.2.1", - "@docusaurus/utils-common": "3.2.1", - "@docusaurus/utils-validation": "3.2.1", + "@docusaurus/core": "3.4.0", + "@docusaurus/mdx-loader": "3.4.0", + "@docusaurus/module-type-aliases": "3.4.0", + "@docusaurus/plugin-content-blog": "3.4.0", + "@docusaurus/plugin-content-docs": "3.4.0", + "@docusaurus/plugin-content-pages": "3.4.0", + "@docusaurus/theme-common": "3.4.0", + "@docusaurus/theme-translations": "3.4.0", + "@docusaurus/types": "3.4.0", + "@docusaurus/utils": "3.4.0", + "@docusaurus/utils-common": "3.4.0", + "@docusaurus/utils-validation": "3.4.0", "@mdx-js/react": "^3.0.0", "clsx": "^2.0.0", "copy-text-to-clipboard": "^3.2.0", @@ -2633,17 +2618,17 @@ } }, "node_modules/@docusaurus/theme-common": { - "version": "3.2.1", - "resolved": "https://registry.npmjs.org/@docusaurus/theme-common/-/theme-common-3.2.1.tgz", - "integrity": "sha512-d+adiD7L9xv6EvfaAwUqdKf4orsM3jqgeqAM+HAjgL/Ux0GkVVnfKr+tsoe+4ow4rHe6NUt+nkkW8/K8dKdilA==", + "version": "3.4.0", + "resolved": "https://registry.npmjs.org/@docusaurus/theme-common/-/theme-common-3.4.0.tgz", + "integrity": "sha512-0A27alXuv7ZdCg28oPE8nH/Iz73/IUejVaCazqu9elS4ypjiLhK3KfzdSQBnL/g7YfHSlymZKdiOHEo8fJ0qMA==", "dependencies": { - "@docusaurus/mdx-loader": "3.2.1", - "@docusaurus/module-type-aliases": "3.2.1", - "@docusaurus/plugin-content-blog": "3.2.1", - "@docusaurus/plugin-content-docs": "3.2.1", - "@docusaurus/plugin-content-pages": "3.2.1", - "@docusaurus/utils": "3.2.1", - "@docusaurus/utils-common": "3.2.1", + "@docusaurus/mdx-loader": "3.4.0", + "@docusaurus/module-type-aliases": "3.4.0", + "@docusaurus/plugin-content-blog": "3.4.0", + "@docusaurus/plugin-content-docs": "3.4.0", + "@docusaurus/plugin-content-pages": "3.4.0", + "@docusaurus/utils": "3.4.0", + "@docusaurus/utils-common": "3.4.0", "@types/history": "^4.7.11", "@types/react": "*", "@types/react-router-config": "*", @@ -2662,18 +2647,18 @@ } }, "node_modules/@docusaurus/theme-search-algolia": { - "version": "3.2.1", - "resolved": "https://registry.npmjs.org/@docusaurus/theme-search-algolia/-/theme-search-algolia-3.2.1.tgz", - "integrity": "sha512-bzhCrpyXBXzeydNUH83II2akvFEGfhsNTPPWsk5N7e+odgQCQwoHhcF+2qILbQXjaoZ6B3c48hrvkyCpeyqGHw==", + "version": "3.4.0", + "resolved": "https://registry.npmjs.org/@docusaurus/theme-search-algolia/-/theme-search-algolia-3.4.0.tgz", + "integrity": "sha512-aiHFx7OCw4Wck1z6IoShVdUWIjntC8FHCw9c5dR8r3q4Ynh+zkS8y2eFFunN/DL6RXPzpnvKCg3vhLQYJDmT9Q==", "dependencies": { "@docsearch/react": "^3.5.2", - "@docusaurus/core": "3.2.1", - "@docusaurus/logger": "3.2.1", - "@docusaurus/plugin-content-docs": "3.2.1", - "@docusaurus/theme-common": "3.2.1", - "@docusaurus/theme-translations": "3.2.1", - "@docusaurus/utils": "3.2.1", - "@docusaurus/utils-validation": "3.2.1", + "@docusaurus/core": "3.4.0", + "@docusaurus/logger": "3.4.0", + "@docusaurus/plugin-content-docs": "3.4.0", + "@docusaurus/theme-common": "3.4.0", + "@docusaurus/theme-translations": "3.4.0", + "@docusaurus/utils": "3.4.0", + "@docusaurus/utils-validation": "3.4.0", "algoliasearch": "^4.18.0", "algoliasearch-helper": "^3.13.3", "clsx": "^2.0.0", @@ -2692,9 +2677,9 @@ } }, "node_modules/@docusaurus/theme-translations": { - "version": "3.2.1", - "resolved": "https://registry.npmjs.org/@docusaurus/theme-translations/-/theme-translations-3.2.1.tgz", - "integrity": "sha512-jAUMkIkFfY+OAhJhv6mV8zlwY6J4AQxJPTgLdR2l+Otof9+QdJjHNh/ifVEu9q0lp3oSPlJj9l05AaP7Ref+cg==", + "version": "3.4.0", + "resolved": "https://registry.npmjs.org/@docusaurus/theme-translations/-/theme-translations-3.4.0.tgz", + "integrity": "sha512-zSxCSpmQCCdQU5Q4CnX/ID8CSUUI3fvmq4hU/GNP/XoAWtXo9SAVnM3TzpU8Gb//H3WCsT8mJcTfyOk3d9ftNg==", "dependencies": { "fs-extra": "^11.1.1", "tslib": "^2.6.0" @@ -2704,9 +2689,9 @@ } }, "node_modules/@docusaurus/types": { - "version": "3.2.1", - "resolved": "https://registry.npmjs.org/@docusaurus/types/-/types-3.2.1.tgz", - "integrity": "sha512-n/toxBzL2oxTtRTOFiGKsHypzn/Pm+sXyw+VSk1UbqbXQiHOwHwts55bpKwbcUgA530Is6kix3ELiFOv9GAMfw==", + "version": "3.4.0", + "resolved": "https://registry.npmjs.org/@docusaurus/types/-/types-3.4.0.tgz", + "integrity": "sha512-4jcDO8kXi5Cf9TcyikB/yKmz14f2RZ2qTRerbHAsS+5InE9ZgSLBNLsewtFTcTOXSVcbU3FoGOzcNWAmU1TR0A==", "dependencies": { "@mdx-js/mdx": "^3.0.0", "@types/history": "^4.7.11", @@ -2724,13 +2709,13 @@ } }, "node_modules/@docusaurus/utils": { - "version": "3.2.1", - "resolved": "https://registry.npmjs.org/@docusaurus/utils/-/utils-3.2.1.tgz", - "integrity": "sha512-DPkIS/EPc+pGAV798PUXgNzJFM3HJouoQXgr0KDZuJVz1EkWbDLOcQwLIz8Qx7liI9ddfkN/TXTRQdsTPZNakw==", + "version": "3.4.0", + "resolved": "https://registry.npmjs.org/@docusaurus/utils/-/utils-3.4.0.tgz", + "integrity": "sha512-fRwnu3L3nnWaXOgs88BVBmG1yGjcQqZNHG+vInhEa2Sz2oQB+ZjbEMO5Rh9ePFpZ0YDiDUhpaVjwmS+AU2F14g==", "dependencies": { - "@docusaurus/logger": "3.2.1", - "@docusaurus/utils-common": "3.2.1", - "@svgr/webpack": "^6.5.1", + "@docusaurus/logger": "3.4.0", + "@docusaurus/utils-common": "3.4.0", + "@svgr/webpack": "^8.1.0", "escape-string-regexp": "^4.0.0", "file-loader": "^6.2.0", "fs-extra": "^11.1.1", @@ -2746,6 +2731,7 @@ "shelljs": "^0.8.5", "tslib": "^2.6.0", "url-loader": "^4.1.1", + "utility-types": "^3.10.0", "webpack": "^5.88.1" }, "engines": { @@ -2761,9 +2747,9 @@ } }, "node_modules/@docusaurus/utils-common": { - "version": "3.2.1", - "resolved": "https://registry.npmjs.org/@docusaurus/utils-common/-/utils-common-3.2.1.tgz", - "integrity": "sha512-N5vadULnRLiqX2QfTjVEU3u5vo6RG2EZTdyXvJdzDOdrLCGIZAfnf/VkssinFZ922sVfaFfQ4FnStdhn5TWdVg==", + "version": "3.4.0", + "resolved": "https://registry.npmjs.org/@docusaurus/utils-common/-/utils-common-3.4.0.tgz", + "integrity": "sha512-NVx54Wr4rCEKsjOH5QEVvxIqVvm+9kh7q8aYTU5WzUU9/Hctd6aTrcZ3G0Id4zYJ+AeaG5K5qHA4CY5Kcm2iyQ==", "dependencies": { "tslib": "^2.6.0" }, @@ -2780,15 +2766,17 @@ } }, "node_modules/@docusaurus/utils-validation": { - "version": "3.2.1", - "resolved": "https://registry.npmjs.org/@docusaurus/utils-validation/-/utils-validation-3.2.1.tgz", - "integrity": "sha512-+x7IR9hNMXi62L1YAglwd0s95fR7+EtirjTxSN4kahYRWGqOi3jlQl1EV0az/yTEvKbxVvOPcdYicGu9dk4LJw==", + "version": "3.4.0", + "resolved": "https://registry.npmjs.org/@docusaurus/utils-validation/-/utils-validation-3.4.0.tgz", + "integrity": "sha512-hYQ9fM+AXYVTWxJOT1EuNaRnrR2WGpRdLDQG07O8UOpsvCPWUVOeo26Rbm0JWY2sGLfzAb+tvJ62yF+8F+TV0g==", "dependencies": { - "@docusaurus/logger": "3.2.1", - "@docusaurus/utils": "3.2.1", - "@docusaurus/utils-common": "3.2.1", + "@docusaurus/logger": "3.4.0", + "@docusaurus/utils": "3.4.0", + "@docusaurus/utils-common": "3.4.0", + "fs-extra": "^11.2.0", "joi": "^17.9.2", "js-yaml": "^4.1.0", + "lodash": "^4.17.21", "tslib": "^2.6.0" }, "engines": { @@ -3125,11 +3113,11 @@ } }, "node_modules/@svgr/babel-plugin-add-jsx-attribute": { - "version": "6.5.1", - "resolved": "https://registry.npmjs.org/@svgr/babel-plugin-add-jsx-attribute/-/babel-plugin-add-jsx-attribute-6.5.1.tgz", - "integrity": "sha512-9PYGcXrAxitycIjRmZB+Q0JaN07GZIWaTBIGQzfaZv+qr1n8X1XUEJ5rZ/vx6OVD9RRYlrNnXWExQXcmZeD/BQ==", + "version": "8.0.0", + "resolved": "https://registry.npmjs.org/@svgr/babel-plugin-add-jsx-attribute/-/babel-plugin-add-jsx-attribute-8.0.0.tgz", + "integrity": "sha512-b9MIk7yhdS1pMCZM8VeNfUlSKVRhsHZNMl5O9SfaX0l0t5wjdgu4IDzGB8bpnGBBOjGST3rRFVsaaEtI4W6f7g==", "engines": { - "node": ">=10" + "node": ">=14" }, "funding": { "type": "github", @@ -3170,11 +3158,11 @@ } }, "node_modules/@svgr/babel-plugin-replace-jsx-attribute-value": { - "version": "6.5.1", - "resolved": "https://registry.npmjs.org/@svgr/babel-plugin-replace-jsx-attribute-value/-/babel-plugin-replace-jsx-attribute-value-6.5.1.tgz", - "integrity": "sha512-8DPaVVE3fd5JKuIC29dqyMB54sA6mfgki2H2+swh+zNJoynC8pMPzOkidqHOSc6Wj032fhl8Z0TVn1GiPpAiJg==", + "version": "8.0.0", + "resolved": "https://registry.npmjs.org/@svgr/babel-plugin-replace-jsx-attribute-value/-/babel-plugin-replace-jsx-attribute-value-8.0.0.tgz", + "integrity": "sha512-KVQ+PtIjb1BuYT3ht8M5KbzWBhdAjjUPdlMtpuw/VjT8coTrItWX6Qafl9+ji831JaJcu6PJNKCV0bp01lBNzQ==", "engines": { - "node": ">=10" + "node": ">=14" }, "funding": { "type": "github", @@ -3185,11 +3173,11 @@ } }, "node_modules/@svgr/babel-plugin-svg-dynamic-title": { - "version": "6.5.1", - "resolved": "https://registry.npmjs.org/@svgr/babel-plugin-svg-dynamic-title/-/babel-plugin-svg-dynamic-title-6.5.1.tgz", - "integrity": "sha512-FwOEi0Il72iAzlkaHrlemVurgSQRDFbk0OC8dSvD5fSBPHltNh7JtLsxmZUhjYBZo2PpcU/RJvvi6Q0l7O7ogw==", + "version": "8.0.0", + "resolved": "https://registry.npmjs.org/@svgr/babel-plugin-svg-dynamic-title/-/babel-plugin-svg-dynamic-title-8.0.0.tgz", + "integrity": "sha512-omNiKqwjNmOQJ2v6ge4SErBbkooV2aAWwaPFs2vUY7p7GhVkzRkJ00kILXQvRhA6miHnNpXv7MRnnSjdRjK8og==", "engines": { - "node": ">=10" + "node": ">=14" }, "funding": { "type": "github", @@ -3200,11 +3188,11 @@ } }, "node_modules/@svgr/babel-plugin-svg-em-dimensions": { - "version": "6.5.1", - "resolved": "https://registry.npmjs.org/@svgr/babel-plugin-svg-em-dimensions/-/babel-plugin-svg-em-dimensions-6.5.1.tgz", - "integrity": "sha512-gWGsiwjb4tw+ITOJ86ndY/DZZ6cuXMNE/SjcDRg+HLuCmwpcjOktwRF9WgAiycTqJD/QXqL2f8IzE2Rzh7aVXA==", + "version": "8.0.0", + "resolved": "https://registry.npmjs.org/@svgr/babel-plugin-svg-em-dimensions/-/babel-plugin-svg-em-dimensions-8.0.0.tgz", + "integrity": "sha512-mURHYnu6Iw3UBTbhGwE/vsngtCIbHE43xCRK7kCw4t01xyGqb2Pd+WXekRRoFOBIY29ZoOhUCTEweDMdrjfi9g==", "engines": { - "node": ">=10" + "node": ">=14" }, "funding": { "type": "github", @@ -3215,11 +3203,11 @@ } }, "node_modules/@svgr/babel-plugin-transform-react-native-svg": { - "version": "6.5.1", - "resolved": "https://registry.npmjs.org/@svgr/babel-plugin-transform-react-native-svg/-/babel-plugin-transform-react-native-svg-6.5.1.tgz", - "integrity": "sha512-2jT3nTayyYP7kI6aGutkyfJ7UMGtuguD72OjeGLwVNyfPRBD8zQthlvL+fAbAKk5n9ZNcvFkp/b1lZ7VsYqVJg==", + "version": "8.1.0", + "resolved": "https://registry.npmjs.org/@svgr/babel-plugin-transform-react-native-svg/-/babel-plugin-transform-react-native-svg-8.1.0.tgz", + "integrity": "sha512-Tx8T58CHo+7nwJ+EhUwx3LfdNSG9R2OKfaIXXs5soiy5HtgoAEkDay9LIimLOcG8dJQH1wPZp/cnAv6S9CrR1Q==", "engines": { - "node": ">=10" + "node": ">=14" }, "funding": { "type": "github", @@ -3230,9 +3218,9 @@ } }, "node_modules/@svgr/babel-plugin-transform-svg-component": { - "version": "6.5.1", - "resolved": "https://registry.npmjs.org/@svgr/babel-plugin-transform-svg-component/-/babel-plugin-transform-svg-component-6.5.1.tgz", - "integrity": "sha512-a1p6LF5Jt33O3rZoVRBqdxL350oge54iZWHNI6LJB5tQ7EelvD/Mb1mfBiZNAan0dt4i3VArkFRjA4iObuNykQ==", + "version": "8.0.0", + "resolved": "https://registry.npmjs.org/@svgr/babel-plugin-transform-svg-component/-/babel-plugin-transform-svg-component-8.0.0.tgz", + "integrity": "sha512-DFx8xa3cZXTdb/k3kfPeaixecQLgKh5NVBMwD0AQxOzcZawK4oo1Jh9LbrcACUivsCA7TLG8eeWgrDXjTMhRmw==", "engines": { "node": ">=12" }, @@ -3245,21 +3233,21 @@ } }, "node_modules/@svgr/babel-preset": { - "version": "6.5.1", - "resolved": "https://registry.npmjs.org/@svgr/babel-preset/-/babel-preset-6.5.1.tgz", - "integrity": "sha512-6127fvO/FF2oi5EzSQOAjo1LE3OtNVh11R+/8FXa+mHx1ptAaS4cknIjnUA7e6j6fwGGJ17NzaTJFUwOV2zwCw==", + "version": "8.1.0", + "resolved": "https://registry.npmjs.org/@svgr/babel-preset/-/babel-preset-8.1.0.tgz", + "integrity": "sha512-7EYDbHE7MxHpv4sxvnVPngw5fuR6pw79SkcrILHJ/iMpuKySNCl5W1qcwPEpU+LgyRXOaAFgH0KhwD18wwg6ug==", "dependencies": { - "@svgr/babel-plugin-add-jsx-attribute": "^6.5.1", - "@svgr/babel-plugin-remove-jsx-attribute": "*", - "@svgr/babel-plugin-remove-jsx-empty-expression": "*", - "@svgr/babel-plugin-replace-jsx-attribute-value": "^6.5.1", - "@svgr/babel-plugin-svg-dynamic-title": "^6.5.1", - "@svgr/babel-plugin-svg-em-dimensions": "^6.5.1", - "@svgr/babel-plugin-transform-react-native-svg": "^6.5.1", - "@svgr/babel-plugin-transform-svg-component": "^6.5.1" + "@svgr/babel-plugin-add-jsx-attribute": "8.0.0", + "@svgr/babel-plugin-remove-jsx-attribute": "8.0.0", + "@svgr/babel-plugin-remove-jsx-empty-expression": "8.0.0", + "@svgr/babel-plugin-replace-jsx-attribute-value": "8.0.0", + "@svgr/babel-plugin-svg-dynamic-title": "8.0.0", + "@svgr/babel-plugin-svg-em-dimensions": "8.0.0", + "@svgr/babel-plugin-transform-react-native-svg": "8.1.0", + "@svgr/babel-plugin-transform-svg-component": "8.0.0" }, "engines": { - "node": ">=10" + "node": ">=14" }, "funding": { "type": "github", @@ -3270,18 +3258,18 @@ } }, "node_modules/@svgr/core": { - "version": "6.5.1", - "resolved": "https://registry.npmjs.org/@svgr/core/-/core-6.5.1.tgz", - "integrity": "sha512-/xdLSWxK5QkqG524ONSjvg3V/FkNyCv538OIBdQqPNaAta3AsXj/Bd2FbvR87yMbXO2hFSWiAe/Q6IkVPDw+mw==", + "version": "8.1.0", + "resolved": "https://registry.npmjs.org/@svgr/core/-/core-8.1.0.tgz", + "integrity": "sha512-8QqtOQT5ACVlmsvKOJNEaWmRPmcojMOzCz4Hs2BGG/toAp/K38LcsMRyLp349glq5AzJbCEeimEoxaX6v/fLrA==", "dependencies": { - "@babel/core": "^7.19.6", - "@svgr/babel-preset": "^6.5.1", - "@svgr/plugin-jsx": "^6.5.1", + "@babel/core": "^7.21.3", + "@svgr/babel-preset": "8.1.0", "camelcase": "^6.2.0", - "cosmiconfig": "^7.0.1" + "cosmiconfig": "^8.1.3", + "snake-case": "^3.0.4" }, "engines": { - "node": ">=10" + "node": ">=14" }, "funding": { "type": "github", @@ -3289,15 +3277,15 @@ } }, "node_modules/@svgr/hast-util-to-babel-ast": { - "version": "6.5.1", - "resolved": "https://registry.npmjs.org/@svgr/hast-util-to-babel-ast/-/hast-util-to-babel-ast-6.5.1.tgz", - "integrity": "sha512-1hnUxxjd83EAxbL4a0JDJoD3Dao3hmjvyvyEV8PzWmLK3B9m9NPlW7GKjFyoWE8nM7HnXzPcmmSyOW8yOddSXw==", + "version": "8.0.0", + "resolved": "https://registry.npmjs.org/@svgr/hast-util-to-babel-ast/-/hast-util-to-babel-ast-8.0.0.tgz", + "integrity": "sha512-EbDKwO9GpfWP4jN9sGdYwPBU0kdomaPIL2Eu4YwmgP+sJeXT+L7bMwJUBnhzfH8Q2qMBqZ4fJwpCyYsAN3mt2Q==", "dependencies": { - "@babel/types": "^7.20.0", + "@babel/types": "^7.21.3", "entities": "^4.4.0" }, "engines": { - "node": ">=10" + "node": ">=14" }, "funding": { "type": "github", @@ -3305,37 +3293,37 @@ } }, "node_modules/@svgr/plugin-jsx": { - "version": "6.5.1", - "resolved": "https://registry.npmjs.org/@svgr/plugin-jsx/-/plugin-jsx-6.5.1.tgz", - "integrity": "sha512-+UdQxI3jgtSjCykNSlEMuy1jSRQlGC7pqBCPvkG/2dATdWo082zHTTK3uhnAju2/6XpE6B5mZ3z4Z8Ns01S8Gw==", + "version": "8.1.0", + "resolved": "https://registry.npmjs.org/@svgr/plugin-jsx/-/plugin-jsx-8.1.0.tgz", + "integrity": "sha512-0xiIyBsLlr8quN+WyuxooNW9RJ0Dpr8uOnH/xrCVO8GLUcwHISwj1AG0k+LFzteTkAA0GbX0kj9q6Dk70PTiPA==", "dependencies": { - "@babel/core": "^7.19.6", - "@svgr/babel-preset": "^6.5.1", - "@svgr/hast-util-to-babel-ast": "^6.5.1", + "@babel/core": "^7.21.3", + "@svgr/babel-preset": "8.1.0", + "@svgr/hast-util-to-babel-ast": "8.0.0", "svg-parser": "^2.0.4" }, "engines": { - "node": ">=10" + "node": ">=14" }, "funding": { "type": "github", "url": "https://github.com/sponsors/gregberge" }, "peerDependencies": { - "@svgr/core": "^6.0.0" + "@svgr/core": "*" } }, "node_modules/@svgr/plugin-svgo": { - "version": "6.5.1", - "resolved": "https://registry.npmjs.org/@svgr/plugin-svgo/-/plugin-svgo-6.5.1.tgz", - "integrity": "sha512-omvZKf8ixP9z6GWgwbtmP9qQMPX4ODXi+wzbVZgomNFsUIlHA1sf4fThdwTWSsZGgvGAG6yE+b/F5gWUkcZ/iQ==", + "version": "8.1.0", + "resolved": "https://registry.npmjs.org/@svgr/plugin-svgo/-/plugin-svgo-8.1.0.tgz", + "integrity": "sha512-Ywtl837OGO9pTLIN/onoWLmDQ4zFUycI1g76vuKGEz6evR/ZTJlJuz3G/fIkb6OVBJ2g0o6CGJzaEjfmEo3AHA==", "dependencies": { - "cosmiconfig": "^7.0.1", - "deepmerge": "^4.2.2", - "svgo": "^2.8.0" + "cosmiconfig": "^8.1.3", + "deepmerge": "^4.3.1", + "svgo": "^3.0.2" }, "engines": { - "node": ">=10" + "node": ">=14" }, "funding": { "type": "github", @@ -3346,21 +3334,21 @@ } }, "node_modules/@svgr/webpack": { - "version": "6.5.1", - "resolved": "https://registry.npmjs.org/@svgr/webpack/-/webpack-6.5.1.tgz", - "integrity": "sha512-cQ/AsnBkXPkEK8cLbv4Dm7JGXq2XrumKnL1dRpJD9rIO2fTIlJI9a1uCciYG1F2aUsox/hJQyNGbt3soDxSRkA==", + "version": "8.1.0", + "resolved": "https://registry.npmjs.org/@svgr/webpack/-/webpack-8.1.0.tgz", + "integrity": "sha512-LnhVjMWyMQV9ZmeEy26maJk+8HTIbd59cH4F2MJ439k9DqejRisfFNGAPvRYlKETuh9LrImlS8aKsBgKjMA8WA==", "dependencies": { - "@babel/core": "^7.19.6", - "@babel/plugin-transform-react-constant-elements": "^7.18.12", - "@babel/preset-env": "^7.19.4", + "@babel/core": "^7.21.3", + "@babel/plugin-transform-react-constant-elements": "^7.21.3", + "@babel/preset-env": "^7.20.2", "@babel/preset-react": "^7.18.6", - "@babel/preset-typescript": "^7.18.6", - "@svgr/core": "^6.5.1", - "@svgr/plugin-jsx": "^6.5.1", - "@svgr/plugin-svgo": "^6.5.1" + "@babel/preset-typescript": "^7.21.0", + "@svgr/core": "8.1.0", + "@svgr/plugin-jsx": "8.1.0", + "@svgr/plugin-svgo": "8.1.0" }, "engines": { - "node": ">=10" + "node": ">=14" }, "funding": { "type": "github", @@ -4040,9 +4028,9 @@ } }, "node_modules/algoliasearch-helper": { - "version": "3.18.0", - "resolved": "https://registry.npmjs.org/algoliasearch-helper/-/algoliasearch-helper-3.18.0.tgz", - "integrity": "sha512-ZXvA8r6VG46V343jnIE7Tei8Xr0/9N8YhD27joC0BKxeogQyvNu7O37i510wA7FnrDjoa/tFhK90WUaBlkaqnw==", + "version": "3.22.1", + "resolved": "https://registry.npmjs.org/algoliasearch-helper/-/algoliasearch-helper-3.22.1.tgz", + "integrity": "sha512-fSxJ4YreH4kOME9CnKazbAn2tK/rvBoV37ETd6nTt4j7QfkcnW+c+F22WfuE9Q/sRpvOMnUwU/BXAVEiwW7p/w==", "dependencies": { "@algolia/events": "^4.0.1" }, @@ -5128,18 +5116,28 @@ "integrity": "sha512-ZQBvi1DcpJ4GDqanjucZ2Hj3wEO5pZDS89BWbkcrvdxksJorwUDDZamX9ldFkp9aw2lmBDLgkObEA4DWNJ9FYQ==" }, "node_modules/cosmiconfig": { - "version": "7.1.0", - "resolved": "https://registry.npmjs.org/cosmiconfig/-/cosmiconfig-7.1.0.tgz", - "integrity": "sha512-AdmX6xUzdNASswsFtmwSt7Vj8po9IuqXm0UXz7QKPuEUmPB4XyjGfaAr2PSuELMwkRMVH1EpIkX5bTZGRB3eCA==", + "version": "8.3.6", + "resolved": "https://registry.npmjs.org/cosmiconfig/-/cosmiconfig-8.3.6.tgz", + "integrity": "sha512-kcZ6+W5QzcJ3P1Mt+83OUv/oHFqZHIx8DuxG6eZ5RGMERoLqp4BuGjhHLYGK+Kf5XVkQvqBSmAy/nGWN3qDgEA==", "dependencies": { - "@types/parse-json": "^4.0.0", - "import-fresh": "^3.2.1", - "parse-json": "^5.0.0", - "path-type": "^4.0.0", - "yaml": "^1.10.0" + "import-fresh": "^3.3.0", + "js-yaml": "^4.1.0", + "parse-json": "^5.2.0", + "path-type": "^4.0.0" }, "engines": { - "node": ">=10" + "node": ">=14" + }, + "funding": { + "url": "https://github.com/sponsors/d-fischer" + }, + "peerDependencies": { + "typescript": ">=4.9.5" + }, + "peerDependenciesMeta": { + "typescript": { + "optional": true + } } }, "node_modules/cross-spawn": { @@ -5181,11 +5179,11 @@ } }, "node_modules/css-declaration-sorter": { - "version": "6.4.1", - "resolved": "https://registry.npmjs.org/css-declaration-sorter/-/css-declaration-sorter-6.4.1.tgz", - "integrity": "sha512-rtdthzxKuyq6IzqX6jEcIzQF/YqccluefyCYheovBOLhFT/drQA9zj/UbRAa9J7C0o6EG6u3E6g+vKkay7/k3g==", + "version": "7.2.0", + "resolved": "https://registry.npmjs.org/css-declaration-sorter/-/css-declaration-sorter-7.2.0.tgz", + "integrity": "sha512-h70rUM+3PNFuaBDTLe8wF/cdWu+dOZmb7pJt8Z2sedYbAcQVQV/tEchueg3GWxwqS0cxtbxmaHEdkNACqcvsow==", "engines": { - "node": "^10 || ^12 || >=14" + "node": "^14 || ^16 || >=18" }, "peerDependencies": { "postcss": "^8.0.9" @@ -5217,16 +5215,16 @@ } }, "node_modules/css-minimizer-webpack-plugin": { - "version": "4.2.2", - "resolved": "https://registry.npmjs.org/css-minimizer-webpack-plugin/-/css-minimizer-webpack-plugin-4.2.2.tgz", - "integrity": "sha512-s3Of/4jKfw1Hj9CxEO1E5oXhQAxlayuHO2y/ML+C6I9sQ7FdzfEV6QgMLN3vI+qFsjJGIAFLKtQK7t8BOXAIyA==", + "version": "5.0.1", + "resolved": "https://registry.npmjs.org/css-minimizer-webpack-plugin/-/css-minimizer-webpack-plugin-5.0.1.tgz", + "integrity": "sha512-3caImjKFQkS+ws1TGcFn0V1HyDJFq1Euy589JlD6/3rV2kj+w7r5G9WDMgSHvpvXHNZ2calVypZWuEDQd9wfLg==", "dependencies": { - "cssnano": "^5.1.8", - "jest-worker": "^29.1.2", - "postcss": "^8.4.17", - "schema-utils": "^4.0.0", - "serialize-javascript": "^6.0.0", - "source-map": "^0.6.1" + "@jridgewell/trace-mapping": "^0.3.18", + "cssnano": "^6.0.1", + "jest-worker": "^29.4.3", + "postcss": "^8.4.24", + "schema-utils": "^4.0.1", + "serialize-javascript": "^6.0.1" }, "engines": { "node": ">= 14.15.0" @@ -5259,14 +5257,6 @@ } } }, - "node_modules/css-minimizer-webpack-plugin/node_modules/source-map": { - "version": "0.6.1", - "resolved": "https://registry.npmjs.org/source-map/-/source-map-0.6.1.tgz", - "integrity": "sha512-UjgapumWlbMhkBgzT7Ykc5YXUT46F0iKu8SGXq0bcwP5dz/h0Plj6enJqjz1Zbq2l5WaqYnrVbwWOWMyF3F47g==", - "engines": { - "node": ">=0.10.0" - } - }, "node_modules/css-select": { "version": "5.1.0", "resolved": "https://registry.npmjs.org/css-select/-/css-select-5.1.0.tgz", @@ -5283,23 +5273,15 @@ } }, "node_modules/css-tree": { - "version": "1.1.3", - "resolved": "https://registry.npmjs.org/css-tree/-/css-tree-1.1.3.tgz", - "integrity": "sha512-tRpdppF7TRazZrjJ6v3stzv93qxRcSsFmW6cX0Zm2NVKpxE1WV1HblnghVv9TreireHkqI/VDEsfolRF1p6y7Q==", + "version": "2.3.1", + "resolved": "https://registry.npmjs.org/css-tree/-/css-tree-2.3.1.tgz", + "integrity": "sha512-6Fv1DV/TYw//QF5IzQdqsNDjx/wc8TrMBZsqjL9eW01tWb7R7k/mq+/VXfJCl7SoD5emsJop9cOByJZfs8hYIw==", "dependencies": { - "mdn-data": "2.0.14", - "source-map": "^0.6.1" + "mdn-data": "2.0.30", + "source-map-js": "^1.0.1" }, "engines": { - "node": ">=8.0.0" - } - }, - "node_modules/css-tree/node_modules/source-map": { - "version": "0.6.1", - "resolved": "https://registry.npmjs.org/source-map/-/source-map-0.6.1.tgz", - "integrity": "sha512-UjgapumWlbMhkBgzT7Ykc5YXUT46F0iKu8SGXq0bcwP5dz/h0Plj6enJqjz1Zbq2l5WaqYnrVbwWOWMyF3F47g==", - "engines": { - "node": ">=0.10.0" + "node": "^10 || ^12.20.0 || ^14.13.0 || >=15.0.0" } }, "node_modules/css-what": { @@ -5325,108 +5307,128 @@ } }, "node_modules/cssnano": { - "version": "5.1.15", - "resolved": "https://registry.npmjs.org/cssnano/-/cssnano-5.1.15.tgz", - "integrity": "sha512-j+BKgDcLDQA+eDifLx0EO4XSA56b7uut3BQFH+wbSaSTuGLuiyTa/wbRYthUXX8LC9mLg+WWKe8h+qJuwTAbHw==", + "version": "6.1.2", + "resolved": "https://registry.npmjs.org/cssnano/-/cssnano-6.1.2.tgz", + "integrity": "sha512-rYk5UeX7VAM/u0lNqewCdasdtPK81CgX8wJFLEIXHbV2oldWRgJAsZrdhRXkV1NJzA2g850KiFm9mMU2HxNxMA==", "dependencies": { - "cssnano-preset-default": "^5.2.14", - "lilconfig": "^2.0.3", - "yaml": "^1.10.2" + "cssnano-preset-default": "^6.1.2", + "lilconfig": "^3.1.1" }, "engines": { - "node": "^10 || ^12 || >=14.0" + "node": "^14 || ^16 || >=18.0" }, "funding": { "type": "opencollective", "url": "https://opencollective.com/cssnano" }, "peerDependencies": { - "postcss": "^8.2.15" + "postcss": "^8.4.31" } }, "node_modules/cssnano-preset-advanced": { - "version": "5.3.10", - "resolved": "https://registry.npmjs.org/cssnano-preset-advanced/-/cssnano-preset-advanced-5.3.10.tgz", - "integrity": "sha512-fnYJyCS9jgMU+cmHO1rPSPf9axbQyD7iUhLO5Df6O4G+fKIOMps+ZbU0PdGFejFBBZ3Pftf18fn1eG7MAPUSWQ==", + "version": "6.1.2", + "resolved": "https://registry.npmjs.org/cssnano-preset-advanced/-/cssnano-preset-advanced-6.1.2.tgz", + "integrity": "sha512-Nhao7eD8ph2DoHolEzQs5CfRpiEP0xa1HBdnFZ82kvqdmbwVBUr2r1QuQ4t1pi+D1ZpqpcO4T+wy/7RxzJ/WPQ==", "dependencies": { - "autoprefixer": "^10.4.12", - "cssnano-preset-default": "^5.2.14", - "postcss-discard-unused": "^5.1.0", - "postcss-merge-idents": "^5.1.1", - "postcss-reduce-idents": "^5.2.0", - "postcss-zindex": "^5.1.0" + "autoprefixer": "^10.4.19", + "browserslist": "^4.23.0", + "cssnano-preset-default": "^6.1.2", + "postcss-discard-unused": "^6.0.5", + "postcss-merge-idents": "^6.0.3", + "postcss-reduce-idents": "^6.0.3", + "postcss-zindex": "^6.0.2" }, "engines": { - "node": "^10 || ^12 || >=14.0" + "node": "^14 || ^16 || >=18.0" }, "peerDependencies": { - "postcss": "^8.2.15" + "postcss": "^8.4.31" } }, "node_modules/cssnano-preset-default": { - "version": "5.2.14", - "resolved": "https://registry.npmjs.org/cssnano-preset-default/-/cssnano-preset-default-5.2.14.tgz", - "integrity": "sha512-t0SFesj/ZV2OTylqQVOrFgEh5uanxbO6ZAdeCrNsUQ6fVuXwYTxJPNAGvGTxHbD68ldIJNec7PyYZDBrfDQ+6A==", + "version": "6.1.2", + "resolved": "https://registry.npmjs.org/cssnano-preset-default/-/cssnano-preset-default-6.1.2.tgz", + "integrity": "sha512-1C0C+eNaeN8OcHQa193aRgYexyJtU8XwbdieEjClw+J9d94E41LwT6ivKH0WT+fYwYWB0Zp3I3IZ7tI/BbUbrg==", "dependencies": { - "css-declaration-sorter": "^6.3.1", - "cssnano-utils": "^3.1.0", - "postcss-calc": "^8.2.3", - "postcss-colormin": "^5.3.1", - "postcss-convert-values": "^5.1.3", - "postcss-discard-comments": "^5.1.2", - "postcss-discard-duplicates": "^5.1.0", - "postcss-discard-empty": "^5.1.1", - "postcss-discard-overridden": "^5.1.0", - "postcss-merge-longhand": "^5.1.7", - "postcss-merge-rules": "^5.1.4", - "postcss-minify-font-values": "^5.1.0", - "postcss-minify-gradients": "^5.1.1", - "postcss-minify-params": "^5.1.4", - "postcss-minify-selectors": "^5.2.1", - "postcss-normalize-charset": "^5.1.0", - "postcss-normalize-display-values": "^5.1.0", - "postcss-normalize-positions": "^5.1.1", - "postcss-normalize-repeat-style": "^5.1.1", - "postcss-normalize-string": "^5.1.0", - "postcss-normalize-timing-functions": "^5.1.0", - "postcss-normalize-unicode": "^5.1.1", - "postcss-normalize-url": "^5.1.0", - "postcss-normalize-whitespace": "^5.1.1", - "postcss-ordered-values": "^5.1.3", - "postcss-reduce-initial": "^5.1.2", - "postcss-reduce-transforms": "^5.1.0", - "postcss-svgo": "^5.1.0", - "postcss-unique-selectors": "^5.1.1" + "browserslist": "^4.23.0", + "css-declaration-sorter": "^7.2.0", + "cssnano-utils": "^4.0.2", + "postcss-calc": "^9.0.1", + "postcss-colormin": "^6.1.0", + "postcss-convert-values": "^6.1.0", + "postcss-discard-comments": "^6.0.2", + "postcss-discard-duplicates": "^6.0.3", + "postcss-discard-empty": "^6.0.3", + "postcss-discard-overridden": "^6.0.2", + "postcss-merge-longhand": "^6.0.5", + "postcss-merge-rules": "^6.1.1", + "postcss-minify-font-values": "^6.1.0", + "postcss-minify-gradients": "^6.0.3", + "postcss-minify-params": "^6.1.0", + "postcss-minify-selectors": "^6.0.4", + "postcss-normalize-charset": "^6.0.2", + "postcss-normalize-display-values": "^6.0.2", + "postcss-normalize-positions": "^6.0.2", + "postcss-normalize-repeat-style": "^6.0.2", + "postcss-normalize-string": "^6.0.2", + "postcss-normalize-timing-functions": "^6.0.2", + "postcss-normalize-unicode": "^6.1.0", + "postcss-normalize-url": "^6.0.2", + "postcss-normalize-whitespace": "^6.0.2", + "postcss-ordered-values": "^6.0.2", + "postcss-reduce-initial": "^6.1.0", + "postcss-reduce-transforms": "^6.0.2", + "postcss-svgo": "^6.0.3", + "postcss-unique-selectors": "^6.0.4" }, "engines": { - "node": "^10 || ^12 || >=14.0" + "node": "^14 || ^16 || >=18.0" }, "peerDependencies": { - "postcss": "^8.2.15" + "postcss": "^8.4.31" } }, "node_modules/cssnano-utils": { - "version": "3.1.0", - "resolved": "https://registry.npmjs.org/cssnano-utils/-/cssnano-utils-3.1.0.tgz", - "integrity": "sha512-JQNR19/YZhz4psLX/rQ9M83e3z2Wf/HdJbryzte4a3NSuafyp9w/I4U+hx5C2S9g41qlstH7DEWnZaaj83OuEA==", + "version": "4.0.2", + "resolved": "https://registry.npmjs.org/cssnano-utils/-/cssnano-utils-4.0.2.tgz", + "integrity": "sha512-ZR1jHg+wZ8o4c3zqf1SIUSTIvm/9mU343FMR6Obe/unskbvpGhZOo1J6d/r8D1pzkRQYuwbcH3hToOuoA2G7oQ==", "engines": { - "node": "^10 || ^12 || >=14.0" + "node": "^14 || ^16 || >=18.0" }, "peerDependencies": { - "postcss": "^8.2.15" + "postcss": "^8.4.31" } }, "node_modules/csso": { - "version": "4.2.0", - "resolved": "https://registry.npmjs.org/csso/-/csso-4.2.0.tgz", - "integrity": "sha512-wvlcdIbf6pwKEk7vHj8/Bkc0B4ylXZruLvOgs9doS5eOsOpuodOV2zJChSpkp+pRpYQLQMeF04nr3Z68Sta9jA==", + "version": "5.0.5", + "resolved": "https://registry.npmjs.org/csso/-/csso-5.0.5.tgz", + "integrity": "sha512-0LrrStPOdJj+SPCCrGhzryycLjwcgUSHBtxNA8aIDxf0GLsRh1cKYhB00Gd1lDOS4yGH69+SNn13+TWbVHETFQ==", "dependencies": { - "css-tree": "^1.1.2" + "css-tree": "~2.2.0" }, "engines": { - "node": ">=8.0.0" + "node": "^10 || ^12.20.0 || ^14.13.0 || >=15.0.0", + "npm": ">=7.0.0" } }, + "node_modules/csso/node_modules/css-tree": { + "version": "2.2.1", + "resolved": "https://registry.npmjs.org/css-tree/-/css-tree-2.2.1.tgz", + "integrity": "sha512-OA0mILzGc1kCOCSJerOeqDxDQ4HOh+G8NbOJFOTgOCzpw7fCBubk0fEyxp8AgOL/jvLgYA/uV0cMbe43ElF1JA==", + "dependencies": { + "mdn-data": "2.0.28", + "source-map-js": "^1.0.1" + }, + "engines": { + "node": "^10 || ^12.20.0 || ^14.13.0 || >=15.0.0", + "npm": ">=7.0.0" + } + }, + "node_modules/csso/node_modules/mdn-data": { + "version": "2.0.28", + "resolved": "https://registry.npmjs.org/mdn-data/-/mdn-data-2.0.28.tgz", + "integrity": "sha512-aylIc7Z9y4yzHYAJNuESG3hfhC+0Ibp/MAMiaOZgNv4pmEdFyfZhhhny4MNiAfWdBQ1RQ2mfDWmM1x8SvGyp8g==" + }, "node_modules/csstype": { "version": "3.1.3", "resolved": "https://registry.npmjs.org/csstype/-/csstype-3.1.3.tgz", @@ -8120,11 +8122,14 @@ } }, "node_modules/lilconfig": { - "version": "2.1.0", - "resolved": "https://registry.npmjs.org/lilconfig/-/lilconfig-2.1.0.tgz", - "integrity": "sha512-utWOt/GHzuUxnLKxB6dk81RoOeoNeHgbrXiuGk4yyF5qlRz+iIVWu56E2fqGHFrXz0QNUhLB/8nKqvRH66JKGQ==", + "version": "3.1.2", + "resolved": "https://registry.npmjs.org/lilconfig/-/lilconfig-3.1.2.tgz", + "integrity": "sha512-eop+wDAvpItUys0FWkHIKeC9ybYrTGbU41U5K7+bttZZeohvnY7M9dZ5kB21GNWiFT2q1OoPTvncPCgSOVO5ow==", "engines": { - "node": ">=10" + "node": ">=14" + }, + "funding": { + "url": "https://github.com/sponsors/antonk52" } }, "node_modules/lines-and-columns": { @@ -8633,9 +8638,9 @@ } }, "node_modules/mdn-data": { - "version": "2.0.14", - "resolved": "https://registry.npmjs.org/mdn-data/-/mdn-data-2.0.14.tgz", - "integrity": "sha512-dn6wd0uw5GsdswPFfsgMp5NSB0/aDe6fK94YJV/AJDYXL6HVLWBsxeq7js7Ad+mU2K9LAlwpk6kN2D5mwCPVow==" + "version": "2.0.30", + "resolved": "https://registry.npmjs.org/mdn-data/-/mdn-data-2.0.30.tgz", + "integrity": "sha512-GaqWWShW4kv/G9IEucWScBx9G1/vsFZZJUO+tD26M8J8z3Kw5RDQjaoZe03YAClgeS/SWPOcb4nkFBTEi5DUEA==" }, "node_modules/media-typer": { "version": "0.3.0", @@ -10580,17 +10585,6 @@ "node": ">=0.10.0" } }, - "node_modules/normalize-url": { - "version": "6.1.0", - "resolved": "https://registry.npmjs.org/normalize-url/-/normalize-url-6.1.0.tgz", - "integrity": "sha512-DlL+XwOy3NxAQ8xuC0okPgK46iuVNAK01YN7RueYBqqFeGsBjV9XmCAzAdgt+667bCl5kPh9EqKKDwnaPG1I7A==", - "engines": { - "node": ">=10" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - }, "node_modules/npm-run-path": { "version": "4.0.1", "resolved": "https://registry.npmjs.org/npm-run-path/-/npm-run-path-4.0.1.tgz", @@ -11080,9 +11074,9 @@ } }, "node_modules/postcss": { - "version": "8.4.33", - "resolved": "https://registry.npmjs.org/postcss/-/postcss-8.4.33.tgz", - "integrity": "sha512-Kkpbhhdjw2qQs2O2DGX+8m5OVqEcbB9HRBvuYM9pgrjEFUg30A9LmXNlTAUj4S9kgtGyrMbTzVjH7E+s5Re2yg==", + "version": "8.4.38", + "resolved": "https://registry.npmjs.org/postcss/-/postcss-8.4.38.tgz", + "integrity": "sha512-Wglpdk03BSfXkHoQa3b/oulrotAkwrlLDRSOb9D0bN86FdRyE9lppSp33aHNPgBa0JKCoB+drFLZkQoRRYae5A==", "funding": [ { "type": "opencollective", @@ -11100,112 +11094,115 @@ "dependencies": { "nanoid": "^3.3.7", "picocolors": "^1.0.0", - "source-map-js": "^1.0.2" + "source-map-js": "^1.2.0" }, "engines": { "node": "^10 || ^12 || >=14" } }, "node_modules/postcss-calc": { - "version": "8.2.4", - "resolved": "https://registry.npmjs.org/postcss-calc/-/postcss-calc-8.2.4.tgz", - "integrity": "sha512-SmWMSJmB8MRnnULldx0lQIyhSNvuDl9HfrZkaqqE/WHAhToYsAvDq+yAsA/kIyINDszOp3Rh0GFoNuH5Ypsm3Q==", + "version": "9.0.1", + "resolved": "https://registry.npmjs.org/postcss-calc/-/postcss-calc-9.0.1.tgz", + "integrity": "sha512-TipgjGyzP5QzEhsOZUaIkeO5mKeMFpebWzRogWG/ysonUlnHcq5aJe0jOjpfzUU8PeSaBQnrE8ehR0QA5vs8PQ==", "dependencies": { - "postcss-selector-parser": "^6.0.9", + "postcss-selector-parser": "^6.0.11", "postcss-value-parser": "^4.2.0" }, + "engines": { + "node": "^14 || ^16 || >=18.0" + }, "peerDependencies": { "postcss": "^8.2.2" } }, "node_modules/postcss-colormin": { - "version": "5.3.1", - "resolved": "https://registry.npmjs.org/postcss-colormin/-/postcss-colormin-5.3.1.tgz", - "integrity": "sha512-UsWQG0AqTFQmpBegeLLc1+c3jIqBNB0zlDGRWR+dQ3pRKJL1oeMzyqmH3o2PIfn9MBdNrVPWhDbT769LxCTLJQ==", + "version": "6.1.0", + "resolved": "https://registry.npmjs.org/postcss-colormin/-/postcss-colormin-6.1.0.tgz", + "integrity": "sha512-x9yX7DOxeMAR+BgGVnNSAxmAj98NX/YxEMNFP+SDCEeNLb2r3i6Hh1ksMsnW8Ub5SLCpbescQqn9YEbE9554Sw==", "dependencies": { - "browserslist": "^4.21.4", + "browserslist": "^4.23.0", "caniuse-api": "^3.0.0", - "colord": "^2.9.1", + "colord": "^2.9.3", "postcss-value-parser": "^4.2.0" }, "engines": { - "node": "^10 || ^12 || >=14.0" + "node": "^14 || ^16 || >=18.0" }, "peerDependencies": { - "postcss": "^8.2.15" + "postcss": "^8.4.31" } }, "node_modules/postcss-convert-values": { - "version": "5.1.3", - "resolved": "https://registry.npmjs.org/postcss-convert-values/-/postcss-convert-values-5.1.3.tgz", - "integrity": "sha512-82pC1xkJZtcJEfiLw6UXnXVXScgtBrjlO5CBmuDQc+dlb88ZYheFsjTn40+zBVi3DkfF7iezO0nJUPLcJK3pvA==", + "version": "6.1.0", + "resolved": "https://registry.npmjs.org/postcss-convert-values/-/postcss-convert-values-6.1.0.tgz", + "integrity": "sha512-zx8IwP/ts9WvUM6NkVSkiU902QZL1bwPhaVaLynPtCsOTqp+ZKbNi+s6XJg3rfqpKGA/oc7Oxk5t8pOQJcwl/w==", "dependencies": { - "browserslist": "^4.21.4", + "browserslist": "^4.23.0", "postcss-value-parser": "^4.2.0" }, "engines": { - "node": "^10 || ^12 || >=14.0" + "node": "^14 || ^16 || >=18.0" }, "peerDependencies": { - "postcss": "^8.2.15" + "postcss": "^8.4.31" } }, "node_modules/postcss-discard-comments": { - "version": "5.1.2", - "resolved": "https://registry.npmjs.org/postcss-discard-comments/-/postcss-discard-comments-5.1.2.tgz", - "integrity": "sha512-+L8208OVbHVF2UQf1iDmRcbdjJkuBF6IS29yBDSiWUIzpYaAhtNl6JYnYm12FnkeCwQqF5LeklOu6rAqgfBZqQ==", + "version": "6.0.2", + "resolved": "https://registry.npmjs.org/postcss-discard-comments/-/postcss-discard-comments-6.0.2.tgz", + "integrity": "sha512-65w/uIqhSBBfQmYnG92FO1mWZjJ4GL5b8atm5Yw2UgrwD7HiNiSSNwJor1eCFGzUgYnN/iIknhNRVqjrrpuglw==", "engines": { - "node": "^10 || ^12 || >=14.0" + "node": "^14 || ^16 || >=18.0" }, "peerDependencies": { - "postcss": "^8.2.15" + "postcss": "^8.4.31" } }, "node_modules/postcss-discard-duplicates": { - "version": "5.1.0", - "resolved": "https://registry.npmjs.org/postcss-discard-duplicates/-/postcss-discard-duplicates-5.1.0.tgz", - "integrity": "sha512-zmX3IoSI2aoenxHV6C7plngHWWhUOV3sP1T8y2ifzxzbtnuhk1EdPwm0S1bIUNaJ2eNbWeGLEwzw8huPD67aQw==", + "version": "6.0.3", + "resolved": "https://registry.npmjs.org/postcss-discard-duplicates/-/postcss-discard-duplicates-6.0.3.tgz", + "integrity": "sha512-+JA0DCvc5XvFAxwx6f/e68gQu/7Z9ud584VLmcgto28eB8FqSFZwtrLwB5Kcp70eIoWP/HXqz4wpo8rD8gpsTw==", "engines": { - "node": "^10 || ^12 || >=14.0" + "node": "^14 || ^16 || >=18.0" }, "peerDependencies": { - "postcss": "^8.2.15" + "postcss": "^8.4.31" } }, "node_modules/postcss-discard-empty": { - "version": "5.1.1", - "resolved": "https://registry.npmjs.org/postcss-discard-empty/-/postcss-discard-empty-5.1.1.tgz", - "integrity": "sha512-zPz4WljiSuLWsI0ir4Mcnr4qQQ5e1Ukc3i7UfE2XcrwKK2LIPIqE5jxMRxO6GbI3cv//ztXDsXwEWT3BHOGh3A==", + "version": "6.0.3", + "resolved": "https://registry.npmjs.org/postcss-discard-empty/-/postcss-discard-empty-6.0.3.tgz", + "integrity": "sha512-znyno9cHKQsK6PtxL5D19Fj9uwSzC2mB74cpT66fhgOadEUPyXFkbgwm5tvc3bt3NAy8ltE5MrghxovZRVnOjQ==", "engines": { - "node": "^10 || ^12 || >=14.0" + "node": "^14 || ^16 || >=18.0" }, "peerDependencies": { - "postcss": "^8.2.15" + "postcss": "^8.4.31" } }, "node_modules/postcss-discard-overridden": { - "version": "5.1.0", - "resolved": "https://registry.npmjs.org/postcss-discard-overridden/-/postcss-discard-overridden-5.1.0.tgz", - "integrity": "sha512-21nOL7RqWR1kasIVdKs8HNqQJhFxLsyRfAnUDm4Fe4t4mCWL9OJiHvlHPjcd8zc5Myu89b/7wZDnOSjFgeWRtw==", + "version": "6.0.2", + "resolved": "https://registry.npmjs.org/postcss-discard-overridden/-/postcss-discard-overridden-6.0.2.tgz", + "integrity": "sha512-j87xzI4LUggC5zND7KdjsI25APtyMuynXZSujByMaav2roV6OZX+8AaCUcZSWqckZpjAjRyFDdpqybgjFO0HJQ==", "engines": { - "node": "^10 || ^12 || >=14.0" + "node": "^14 || ^16 || >=18.0" }, "peerDependencies": { - "postcss": "^8.2.15" + "postcss": "^8.4.31" } }, "node_modules/postcss-discard-unused": { - "version": "5.1.0", - "resolved": "https://registry.npmjs.org/postcss-discard-unused/-/postcss-discard-unused-5.1.0.tgz", - "integrity": "sha512-KwLWymI9hbwXmJa0dkrzpRbSJEh0vVUd7r8t0yOGPcfKzyJJxFM8kLyC5Ev9avji6nY95pOp1W6HqIrfT+0VGw==", + "version": "6.0.5", + "resolved": "https://registry.npmjs.org/postcss-discard-unused/-/postcss-discard-unused-6.0.5.tgz", + "integrity": "sha512-wHalBlRHkaNnNwfC8z+ppX57VhvS+HWgjW508esjdaEYr3Mx7Gnn2xA4R/CKf5+Z9S5qsqC+Uzh4ueENWwCVUA==", "dependencies": { - "postcss-selector-parser": "^6.0.5" + "postcss-selector-parser": "^6.0.16" }, "engines": { - "node": "^10 || ^12 || >=14.0" + "node": "^14 || ^16 || >=18.0" }, "peerDependencies": { - "postcss": "^8.2.15" + "postcss": "^8.4.31" } }, "node_modules/postcss-loader": { @@ -11229,136 +11226,111 @@ "webpack": "^5.0.0" } }, - "node_modules/postcss-loader/node_modules/cosmiconfig": { - "version": "8.3.6", - "resolved": "https://registry.npmjs.org/cosmiconfig/-/cosmiconfig-8.3.6.tgz", - "integrity": "sha512-kcZ6+W5QzcJ3P1Mt+83OUv/oHFqZHIx8DuxG6eZ5RGMERoLqp4BuGjhHLYGK+Kf5XVkQvqBSmAy/nGWN3qDgEA==", - "dependencies": { - "import-fresh": "^3.3.0", - "js-yaml": "^4.1.0", - "parse-json": "^5.2.0", - "path-type": "^4.0.0" - }, - "engines": { - "node": ">=14" - }, - "funding": { - "url": "https://github.com/sponsors/d-fischer" - }, - "peerDependencies": { - "typescript": ">=4.9.5" - }, - "peerDependenciesMeta": { - "typescript": { - "optional": true - } - } - }, "node_modules/postcss-merge-idents": { - "version": "5.1.1", - "resolved": "https://registry.npmjs.org/postcss-merge-idents/-/postcss-merge-idents-5.1.1.tgz", - "integrity": "sha512-pCijL1TREiCoog5nQp7wUe+TUonA2tC2sQ54UGeMmryK3UFGIYKqDyjnqd6RcuI4znFn9hWSLNN8xKE/vWcUQw==", + "version": "6.0.3", + "resolved": "https://registry.npmjs.org/postcss-merge-idents/-/postcss-merge-idents-6.0.3.tgz", + "integrity": "sha512-1oIoAsODUs6IHQZkLQGO15uGEbK3EAl5wi9SS8hs45VgsxQfMnxvt+L+zIr7ifZFIH14cfAeVe2uCTa+SPRa3g==", "dependencies": { - "cssnano-utils": "^3.1.0", + "cssnano-utils": "^4.0.2", "postcss-value-parser": "^4.2.0" }, "engines": { - "node": "^10 || ^12 || >=14.0" + "node": "^14 || ^16 || >=18.0" }, "peerDependencies": { - "postcss": "^8.2.15" + "postcss": "^8.4.31" } }, "node_modules/postcss-merge-longhand": { - "version": "5.1.7", - "resolved": "https://registry.npmjs.org/postcss-merge-longhand/-/postcss-merge-longhand-5.1.7.tgz", - "integrity": "sha512-YCI9gZB+PLNskrK0BB3/2OzPnGhPkBEwmwhfYk1ilBHYVAZB7/tkTHFBAnCrvBBOmeYyMYw3DMjT55SyxMBzjQ==", + "version": "6.0.5", + "resolved": "https://registry.npmjs.org/postcss-merge-longhand/-/postcss-merge-longhand-6.0.5.tgz", + "integrity": "sha512-5LOiordeTfi64QhICp07nzzuTDjNSO8g5Ksdibt44d+uvIIAE1oZdRn8y/W5ZtYgRH/lnLDlvi9F8btZcVzu3w==", "dependencies": { "postcss-value-parser": "^4.2.0", - "stylehacks": "^5.1.1" + "stylehacks": "^6.1.1" }, "engines": { - "node": "^10 || ^12 || >=14.0" + "node": "^14 || ^16 || >=18.0" }, "peerDependencies": { - "postcss": "^8.2.15" + "postcss": "^8.4.31" } }, "node_modules/postcss-merge-rules": { - "version": "5.1.4", - "resolved": "https://registry.npmjs.org/postcss-merge-rules/-/postcss-merge-rules-5.1.4.tgz", - "integrity": "sha512-0R2IuYpgU93y9lhVbO/OylTtKMVcHb67zjWIfCiKR9rWL3GUk1677LAqD/BcHizukdZEjT8Ru3oHRoAYoJy44g==", + "version": "6.1.1", + "resolved": "https://registry.npmjs.org/postcss-merge-rules/-/postcss-merge-rules-6.1.1.tgz", + "integrity": "sha512-KOdWF0gju31AQPZiD+2Ar9Qjowz1LTChSjFFbS+e2sFgc4uHOp3ZvVX4sNeTlk0w2O31ecFGgrFzhO0RSWbWwQ==", "dependencies": { - "browserslist": "^4.21.4", + "browserslist": "^4.23.0", "caniuse-api": "^3.0.0", - "cssnano-utils": "^3.1.0", - "postcss-selector-parser": "^6.0.5" + "cssnano-utils": "^4.0.2", + "postcss-selector-parser": "^6.0.16" }, "engines": { - "node": "^10 || ^12 || >=14.0" + "node": "^14 || ^16 || >=18.0" }, "peerDependencies": { - "postcss": "^8.2.15" + "postcss": "^8.4.31" } }, "node_modules/postcss-minify-font-values": { - "version": "5.1.0", - "resolved": "https://registry.npmjs.org/postcss-minify-font-values/-/postcss-minify-font-values-5.1.0.tgz", - "integrity": "sha512-el3mYTgx13ZAPPirSVsHqFzl+BBBDrXvbySvPGFnQcTI4iNslrPaFq4muTkLZmKlGk4gyFAYUBMH30+HurREyA==", + "version": "6.1.0", + "resolved": "https://registry.npmjs.org/postcss-minify-font-values/-/postcss-minify-font-values-6.1.0.tgz", + "integrity": "sha512-gklfI/n+9rTh8nYaSJXlCo3nOKqMNkxuGpTn/Qm0gstL3ywTr9/WRKznE+oy6fvfolH6dF+QM4nCo8yPLdvGJg==", "dependencies": { "postcss-value-parser": "^4.2.0" }, "engines": { - "node": "^10 || ^12 || >=14.0" + "node": "^14 || ^16 || >=18.0" }, "peerDependencies": { - "postcss": "^8.2.15" + "postcss": "^8.4.31" } }, "node_modules/postcss-minify-gradients": { - "version": "5.1.1", - "resolved": "https://registry.npmjs.org/postcss-minify-gradients/-/postcss-minify-gradients-5.1.1.tgz", - "integrity": "sha512-VGvXMTpCEo4qHTNSa9A0a3D+dxGFZCYwR6Jokk+/3oB6flu2/PnPXAh2x7x52EkY5xlIHLm+Le8tJxe/7TNhzw==", + "version": "6.0.3", + "resolved": "https://registry.npmjs.org/postcss-minify-gradients/-/postcss-minify-gradients-6.0.3.tgz", + "integrity": "sha512-4KXAHrYlzF0Rr7uc4VrfwDJ2ajrtNEpNEuLxFgwkhFZ56/7gaE4Nr49nLsQDZyUe+ds+kEhf+YAUolJiYXF8+Q==", "dependencies": { - "colord": "^2.9.1", - "cssnano-utils": "^3.1.0", + "colord": "^2.9.3", + "cssnano-utils": "^4.0.2", "postcss-value-parser": "^4.2.0" }, "engines": { - "node": "^10 || ^12 || >=14.0" + "node": "^14 || ^16 || >=18.0" }, "peerDependencies": { - "postcss": "^8.2.15" + "postcss": "^8.4.31" } }, "node_modules/postcss-minify-params": { - "version": "5.1.4", - "resolved": "https://registry.npmjs.org/postcss-minify-params/-/postcss-minify-params-5.1.4.tgz", - "integrity": "sha512-+mePA3MgdmVmv6g+30rn57USjOGSAyuxUmkfiWpzalZ8aiBkdPYjXWtHuwJGm1v5Ojy0Z0LaSYhHaLJQB0P8Jw==", + "version": "6.1.0", + "resolved": "https://registry.npmjs.org/postcss-minify-params/-/postcss-minify-params-6.1.0.tgz", + "integrity": "sha512-bmSKnDtyyE8ujHQK0RQJDIKhQ20Jq1LYiez54WiaOoBtcSuflfK3Nm596LvbtlFcpipMjgClQGyGr7GAs+H1uA==", "dependencies": { - "browserslist": "^4.21.4", - "cssnano-utils": "^3.1.0", + "browserslist": "^4.23.0", + "cssnano-utils": "^4.0.2", "postcss-value-parser": "^4.2.0" }, "engines": { - "node": "^10 || ^12 || >=14.0" + "node": "^14 || ^16 || >=18.0" }, "peerDependencies": { - "postcss": "^8.2.15" + "postcss": "^8.4.31" } }, "node_modules/postcss-minify-selectors": { - "version": "5.2.1", - "resolved": "https://registry.npmjs.org/postcss-minify-selectors/-/postcss-minify-selectors-5.2.1.tgz", - "integrity": "sha512-nPJu7OjZJTsVUmPdm2TcaiohIwxP+v8ha9NehQ2ye9szv4orirRU3SDdtUmKH+10nzn0bAyOXZ0UEr7OpvLehg==", + "version": "6.0.4", + "resolved": "https://registry.npmjs.org/postcss-minify-selectors/-/postcss-minify-selectors-6.0.4.tgz", + "integrity": "sha512-L8dZSwNLgK7pjTto9PzWRoMbnLq5vsZSTu8+j1P/2GB8qdtGQfn+K1uSvFgYvgh83cbyxT5m43ZZhUMTJDSClQ==", "dependencies": { - "postcss-selector-parser": "^6.0.5" + "postcss-selector-parser": "^6.0.16" }, "engines": { - "node": "^10 || ^12 || >=14.0" + "node": "^14 || ^16 || >=18.0" }, "peerDependencies": { - "postcss": "^8.2.15" + "postcss": "^8.4.31" } }, "node_modules/postcss-modules-extract-imports": { @@ -11417,192 +11389,191 @@ } }, "node_modules/postcss-normalize-charset": { - "version": "5.1.0", - "resolved": "https://registry.npmjs.org/postcss-normalize-charset/-/postcss-normalize-charset-5.1.0.tgz", - "integrity": "sha512-mSgUJ+pd/ldRGVx26p2wz9dNZ7ji6Pn8VWBajMXFf8jk7vUoSrZ2lt/wZR7DtlZYKesmZI680qjr2CeFF2fbUg==", + "version": "6.0.2", + "resolved": "https://registry.npmjs.org/postcss-normalize-charset/-/postcss-normalize-charset-6.0.2.tgz", + "integrity": "sha512-a8N9czmdnrjPHa3DeFlwqst5eaL5W8jYu3EBbTTkI5FHkfMhFZh1EGbku6jhHhIzTA6tquI2P42NtZ59M/H/kQ==", "engines": { - "node": "^10 || ^12 || >=14.0" + "node": "^14 || ^16 || >=18.0" }, "peerDependencies": { - "postcss": "^8.2.15" + "postcss": "^8.4.31" } }, "node_modules/postcss-normalize-display-values": { - "version": "5.1.0", - "resolved": "https://registry.npmjs.org/postcss-normalize-display-values/-/postcss-normalize-display-values-5.1.0.tgz", - "integrity": "sha512-WP4KIM4o2dazQXWmFaqMmcvsKmhdINFblgSeRgn8BJ6vxaMyaJkwAzpPpuvSIoG/rmX3M+IrRZEz2H0glrQNEA==", + "version": "6.0.2", + "resolved": "https://registry.npmjs.org/postcss-normalize-display-values/-/postcss-normalize-display-values-6.0.2.tgz", + "integrity": "sha512-8H04Mxsb82ON/aAkPeq8kcBbAtI5Q2a64X/mnRRfPXBq7XeogoQvReqxEfc0B4WPq1KimjezNC8flUtC3Qz6jg==", "dependencies": { "postcss-value-parser": "^4.2.0" }, "engines": { - "node": "^10 || ^12 || >=14.0" + "node": "^14 || ^16 || >=18.0" }, "peerDependencies": { - "postcss": "^8.2.15" + "postcss": "^8.4.31" } }, "node_modules/postcss-normalize-positions": { - "version": "5.1.1", - "resolved": "https://registry.npmjs.org/postcss-normalize-positions/-/postcss-normalize-positions-5.1.1.tgz", - "integrity": "sha512-6UpCb0G4eofTCQLFVuI3EVNZzBNPiIKcA1AKVka+31fTVySphr3VUgAIULBhxZkKgwLImhzMR2Bw1ORK+37INg==", + "version": "6.0.2", + "resolved": "https://registry.npmjs.org/postcss-normalize-positions/-/postcss-normalize-positions-6.0.2.tgz", + "integrity": "sha512-/JFzI441OAB9O7VnLA+RtSNZvQ0NCFZDOtp6QPFo1iIyawyXg0YI3CYM9HBy1WvwCRHnPep/BvI1+dGPKoXx/Q==", "dependencies": { "postcss-value-parser": "^4.2.0" }, "engines": { - "node": "^10 || ^12 || >=14.0" + "node": "^14 || ^16 || >=18.0" }, "peerDependencies": { - "postcss": "^8.2.15" + "postcss": "^8.4.31" } }, "node_modules/postcss-normalize-repeat-style": { - "version": "5.1.1", - "resolved": "https://registry.npmjs.org/postcss-normalize-repeat-style/-/postcss-normalize-repeat-style-5.1.1.tgz", - "integrity": "sha512-mFpLspGWkQtBcWIRFLmewo8aC3ImN2i/J3v8YCFUwDnPu3Xz4rLohDO26lGjwNsQxB3YF0KKRwspGzE2JEuS0g==", + "version": "6.0.2", + "resolved": "https://registry.npmjs.org/postcss-normalize-repeat-style/-/postcss-normalize-repeat-style-6.0.2.tgz", + "integrity": "sha512-YdCgsfHkJ2jEXwR4RR3Tm/iOxSfdRt7jplS6XRh9Js9PyCR/aka/FCb6TuHT2U8gQubbm/mPmF6L7FY9d79VwQ==", "dependencies": { "postcss-value-parser": "^4.2.0" }, "engines": { - "node": "^10 || ^12 || >=14.0" + "node": "^14 || ^16 || >=18.0" }, "peerDependencies": { - "postcss": "^8.2.15" + "postcss": "^8.4.31" } }, "node_modules/postcss-normalize-string": { - "version": "5.1.0", - "resolved": "https://registry.npmjs.org/postcss-normalize-string/-/postcss-normalize-string-5.1.0.tgz", - "integrity": "sha512-oYiIJOf4T9T1N4i+abeIc7Vgm/xPCGih4bZz5Nm0/ARVJ7K6xrDlLwvwqOydvyL3RHNf8qZk6vo3aatiw/go3w==", + "version": "6.0.2", + "resolved": "https://registry.npmjs.org/postcss-normalize-string/-/postcss-normalize-string-6.0.2.tgz", + "integrity": "sha512-vQZIivlxlfqqMp4L9PZsFE4YUkWniziKjQWUtsxUiVsSSPelQydwS8Wwcuw0+83ZjPWNTl02oxlIvXsmmG+CiQ==", "dependencies": { "postcss-value-parser": "^4.2.0" }, "engines": { - "node": "^10 || ^12 || >=14.0" + "node": "^14 || ^16 || >=18.0" }, "peerDependencies": { - "postcss": "^8.2.15" + "postcss": "^8.4.31" } }, "node_modules/postcss-normalize-timing-functions": { - "version": "5.1.0", - "resolved": "https://registry.npmjs.org/postcss-normalize-timing-functions/-/postcss-normalize-timing-functions-5.1.0.tgz", - "integrity": "sha512-DOEkzJ4SAXv5xkHl0Wa9cZLF3WCBhF3o1SKVxKQAa+0pYKlueTpCgvkFAHfk+Y64ezX9+nITGrDZeVGgITJXjg==", + "version": "6.0.2", + "resolved": "https://registry.npmjs.org/postcss-normalize-timing-functions/-/postcss-normalize-timing-functions-6.0.2.tgz", + "integrity": "sha512-a+YrtMox4TBtId/AEwbA03VcJgtyW4dGBizPl7e88cTFULYsprgHWTbfyjSLyHeBcK/Q9JhXkt2ZXiwaVHoMzA==", "dependencies": { "postcss-value-parser": "^4.2.0" }, "engines": { - "node": "^10 || ^12 || >=14.0" + "node": "^14 || ^16 || >=18.0" }, "peerDependencies": { - "postcss": "^8.2.15" + "postcss": "^8.4.31" } }, "node_modules/postcss-normalize-unicode": { - "version": "5.1.1", - "resolved": "https://registry.npmjs.org/postcss-normalize-unicode/-/postcss-normalize-unicode-5.1.1.tgz", - "integrity": "sha512-qnCL5jzkNUmKVhZoENp1mJiGNPcsJCs1aaRmURmeJGES23Z/ajaln+EPTD+rBeNkSryI+2WTdW+lwcVdOikrpA==", + "version": "6.1.0", + "resolved": "https://registry.npmjs.org/postcss-normalize-unicode/-/postcss-normalize-unicode-6.1.0.tgz", + "integrity": "sha512-QVC5TQHsVj33otj8/JD869Ndr5Xcc/+fwRh4HAsFsAeygQQXm+0PySrKbr/8tkDKzW+EVT3QkqZMfFrGiossDg==", "dependencies": { - "browserslist": "^4.21.4", + "browserslist": "^4.23.0", "postcss-value-parser": "^4.2.0" }, "engines": { - "node": "^10 || ^12 || >=14.0" + "node": "^14 || ^16 || >=18.0" }, "peerDependencies": { - "postcss": "^8.2.15" + "postcss": "^8.4.31" } }, "node_modules/postcss-normalize-url": { - "version": "5.1.0", - "resolved": "https://registry.npmjs.org/postcss-normalize-url/-/postcss-normalize-url-5.1.0.tgz", - "integrity": "sha512-5upGeDO+PVthOxSmds43ZeMeZfKH+/DKgGRD7TElkkyS46JXAUhMzIKiCa7BabPeIy3AQcTkXwVVN7DbqsiCew==", + "version": "6.0.2", + "resolved": "https://registry.npmjs.org/postcss-normalize-url/-/postcss-normalize-url-6.0.2.tgz", + "integrity": "sha512-kVNcWhCeKAzZ8B4pv/DnrU1wNh458zBNp8dh4y5hhxih5RZQ12QWMuQrDgPRw3LRl8mN9vOVfHl7uhvHYMoXsQ==", "dependencies": { - "normalize-url": "^6.0.1", "postcss-value-parser": "^4.2.0" }, "engines": { - "node": "^10 || ^12 || >=14.0" + "node": "^14 || ^16 || >=18.0" }, "peerDependencies": { - "postcss": "^8.2.15" + "postcss": "^8.4.31" } }, "node_modules/postcss-normalize-whitespace": { - "version": "5.1.1", - "resolved": "https://registry.npmjs.org/postcss-normalize-whitespace/-/postcss-normalize-whitespace-5.1.1.tgz", - "integrity": "sha512-83ZJ4t3NUDETIHTa3uEg6asWjSBYL5EdkVB0sDncx9ERzOKBVJIUeDO9RyA9Zwtig8El1d79HBp0JEi8wvGQnA==", + "version": "6.0.2", + "resolved": "https://registry.npmjs.org/postcss-normalize-whitespace/-/postcss-normalize-whitespace-6.0.2.tgz", + "integrity": "sha512-sXZ2Nj1icbJOKmdjXVT9pnyHQKiSAyuNQHSgRCUgThn2388Y9cGVDR+E9J9iAYbSbLHI+UUwLVl1Wzco/zgv0Q==", "dependencies": { "postcss-value-parser": "^4.2.0" }, "engines": { - "node": "^10 || ^12 || >=14.0" + "node": "^14 || ^16 || >=18.0" }, "peerDependencies": { - "postcss": "^8.2.15" + "postcss": "^8.4.31" } }, "node_modules/postcss-ordered-values": { - "version": "5.1.3", - "resolved": "https://registry.npmjs.org/postcss-ordered-values/-/postcss-ordered-values-5.1.3.tgz", - "integrity": "sha512-9UO79VUhPwEkzbb3RNpqqghc6lcYej1aveQteWY+4POIwlqkYE21HKWaLDF6lWNuqCobEAyTovVhtI32Rbv2RQ==", + "version": "6.0.2", + "resolved": "https://registry.npmjs.org/postcss-ordered-values/-/postcss-ordered-values-6.0.2.tgz", + "integrity": "sha512-VRZSOB+JU32RsEAQrO94QPkClGPKJEL/Z9PCBImXMhIeK5KAYo6slP/hBYlLgrCjFxyqvn5VC81tycFEDBLG1Q==", "dependencies": { - "cssnano-utils": "^3.1.0", + "cssnano-utils": "^4.0.2", "postcss-value-parser": "^4.2.0" }, "engines": { - "node": "^10 || ^12 || >=14.0" + "node": "^14 || ^16 || >=18.0" }, "peerDependencies": { - "postcss": "^8.2.15" + "postcss": "^8.4.31" } }, "node_modules/postcss-reduce-idents": { - "version": "5.2.0", - "resolved": "https://registry.npmjs.org/postcss-reduce-idents/-/postcss-reduce-idents-5.2.0.tgz", - "integrity": "sha512-BTrLjICoSB6gxbc58D5mdBK8OhXRDqud/zodYfdSi52qvDHdMwk+9kB9xsM8yJThH/sZU5A6QVSmMmaN001gIg==", + "version": "6.0.3", + "resolved": "https://registry.npmjs.org/postcss-reduce-idents/-/postcss-reduce-idents-6.0.3.tgz", + "integrity": "sha512-G3yCqZDpsNPoQgbDUy3T0E6hqOQ5xigUtBQyrmq3tn2GxlyiL0yyl7H+T8ulQR6kOcHJ9t7/9H4/R2tv8tJbMA==", "dependencies": { "postcss-value-parser": "^4.2.0" }, "engines": { - "node": "^10 || ^12 || >=14.0" + "node": "^14 || ^16 || >=18.0" }, "peerDependencies": { - "postcss": "^8.2.15" + "postcss": "^8.4.31" } }, "node_modules/postcss-reduce-initial": { - "version": "5.1.2", - "resolved": "https://registry.npmjs.org/postcss-reduce-initial/-/postcss-reduce-initial-5.1.2.tgz", - "integrity": "sha512-dE/y2XRaqAi6OvjzD22pjTUQ8eOfc6m/natGHgKFBK9DxFmIm69YmaRVQrGgFlEfc1HePIurY0TmDeROK05rIg==", + "version": "6.1.0", + "resolved": "https://registry.npmjs.org/postcss-reduce-initial/-/postcss-reduce-initial-6.1.0.tgz", + "integrity": "sha512-RarLgBK/CrL1qZags04oKbVbrrVK2wcxhvta3GCxrZO4zveibqbRPmm2VI8sSgCXwoUHEliRSbOfpR0b/VIoiw==", "dependencies": { - "browserslist": "^4.21.4", + "browserslist": "^4.23.0", "caniuse-api": "^3.0.0" }, "engines": { - "node": "^10 || ^12 || >=14.0" + "node": "^14 || ^16 || >=18.0" }, "peerDependencies": { - "postcss": "^8.2.15" + "postcss": "^8.4.31" } }, "node_modules/postcss-reduce-transforms": { - "version": "5.1.0", - "resolved": "https://registry.npmjs.org/postcss-reduce-transforms/-/postcss-reduce-transforms-5.1.0.tgz", - "integrity": "sha512-2fbdbmgir5AvpW9RLtdONx1QoYG2/EtqpNQbFASDlixBbAYuTcJ0dECwlqNqH7VbaUnEnh8SrxOe2sRIn24XyQ==", + "version": "6.0.2", + "resolved": "https://registry.npmjs.org/postcss-reduce-transforms/-/postcss-reduce-transforms-6.0.2.tgz", + "integrity": "sha512-sB+Ya++3Xj1WaT9+5LOOdirAxP7dJZms3GRcYheSPi1PiTMigsxHAdkrbItHxwYHr4kt1zL7mmcHstgMYT+aiA==", "dependencies": { "postcss-value-parser": "^4.2.0" }, "engines": { - "node": "^10 || ^12 || >=14.0" + "node": "^14 || ^16 || >=18.0" }, "peerDependencies": { - "postcss": "^8.2.15" + "postcss": "^8.4.31" } }, "node_modules/postcss-selector-parser": { - "version": "6.0.15", - "resolved": "https://registry.npmjs.org/postcss-selector-parser/-/postcss-selector-parser-6.0.15.tgz", - "integrity": "sha512-rEYkQOMUCEMhsKbK66tbEU9QVIxbhN18YiniAwA7XQYTVBqrBy+P2p5JcdqsHgKM2zWylp8d7J6eszocfds5Sw==", + "version": "6.1.0", + "resolved": "https://registry.npmjs.org/postcss-selector-parser/-/postcss-selector-parser-6.1.0.tgz", + "integrity": "sha512-UMz42UD0UY0EApS0ZL9o1XnLhSTtvvvLe5Dc2H2O56fvRZi+KulDyf5ctDhhtYJBGKStV2FL1fy6253cmLgqVQ==", "dependencies": { "cssesc": "^3.0.0", "util-deprecate": "^1.0.2" @@ -11612,46 +11583,46 @@ } }, "node_modules/postcss-sort-media-queries": { - "version": "4.4.1", - "resolved": "https://registry.npmjs.org/postcss-sort-media-queries/-/postcss-sort-media-queries-4.4.1.tgz", - "integrity": "sha512-QDESFzDDGKgpiIh4GYXsSy6sek2yAwQx1JASl5AxBtU1Lq2JfKBljIPNdil989NcSKRQX1ToiaKphImtBuhXWw==", + "version": "5.2.0", + "resolved": "https://registry.npmjs.org/postcss-sort-media-queries/-/postcss-sort-media-queries-5.2.0.tgz", + "integrity": "sha512-AZ5fDMLD8SldlAYlvi8NIqo0+Z8xnXU2ia0jxmuhxAU+Lqt9K+AlmLNJ/zWEnE9x+Zx3qL3+1K20ATgNOr3fAA==", "dependencies": { - "sort-css-media-queries": "2.1.0" + "sort-css-media-queries": "2.2.0" }, "engines": { - "node": ">=10.0.0" + "node": ">=14.0.0" }, "peerDependencies": { - "postcss": "^8.4.16" + "postcss": "^8.4.23" } }, "node_modules/postcss-svgo": { - "version": "5.1.0", - "resolved": "https://registry.npmjs.org/postcss-svgo/-/postcss-svgo-5.1.0.tgz", - "integrity": "sha512-D75KsH1zm5ZrHyxPakAxJWtkyXew5qwS70v56exwvw542d9CRtTo78K0WeFxZB4G7JXKKMbEZtZayTGdIky/eA==", + "version": "6.0.3", + "resolved": "https://registry.npmjs.org/postcss-svgo/-/postcss-svgo-6.0.3.tgz", + "integrity": "sha512-dlrahRmxP22bX6iKEjOM+c8/1p+81asjKT+V5lrgOH944ryx/OHpclnIbGsKVd3uWOXFLYJwCVf0eEkJGvO96g==", "dependencies": { "postcss-value-parser": "^4.2.0", - "svgo": "^2.7.0" + "svgo": "^3.2.0" }, "engines": { - "node": "^10 || ^12 || >=14.0" + "node": "^14 || ^16 || >= 18" }, "peerDependencies": { - "postcss": "^8.2.15" + "postcss": "^8.4.31" } }, "node_modules/postcss-unique-selectors": { - "version": "5.1.1", - "resolved": "https://registry.npmjs.org/postcss-unique-selectors/-/postcss-unique-selectors-5.1.1.tgz", - "integrity": "sha512-5JiODlELrz8L2HwxfPnhOWZYWDxVHWL83ufOv84NrcgipI7TaeRsatAhK4Tr2/ZiYldpK/wBvw5BD3qfaK96GA==", + "version": "6.0.4", + "resolved": "https://registry.npmjs.org/postcss-unique-selectors/-/postcss-unique-selectors-6.0.4.tgz", + "integrity": "sha512-K38OCaIrO8+PzpArzkLKB42dSARtC2tmG6PvD4b1o1Q2E9Os8jzfWFfSy/rixsHwohtsDdFtAWGjFVFUdwYaMg==", "dependencies": { - "postcss-selector-parser": "^6.0.5" + "postcss-selector-parser": "^6.0.16" }, "engines": { - "node": "^10 || ^12 || >=14.0" + "node": "^14 || ^16 || >=18.0" }, "peerDependencies": { - "postcss": "^8.2.15" + "postcss": "^8.4.31" } }, "node_modules/postcss-value-parser": { @@ -11660,14 +11631,14 @@ "integrity": "sha512-1NNCs6uurfkVbeXG4S8JFT9t19m45ICnif8zWLd5oPSZ50QnwMfK+H3jv408d4jw/7Bttv5axS5IiHoLaVNHeQ==" }, "node_modules/postcss-zindex": { - "version": "5.1.0", - "resolved": "https://registry.npmjs.org/postcss-zindex/-/postcss-zindex-5.1.0.tgz", - "integrity": "sha512-fgFMf0OtVSBR1va1JNHYgMxYk73yhn/qb4uQDq1DLGYolz8gHCyr/sesEuGUaYs58E3ZJRcpoGuPVoB7Meiq9A==", + "version": "6.0.2", + "resolved": "https://registry.npmjs.org/postcss-zindex/-/postcss-zindex-6.0.2.tgz", + "integrity": "sha512-5BxW9l1evPB/4ZIc+2GobEBoKC+h8gPGCMi+jxsYvd2x0mjq7wazk6DrP71pStqxE9Foxh5TVnonbWpFZzXaYg==", "engines": { - "node": "^10 || ^12 || >=14.0" + "node": "^14 || ^16 || >=18.0" }, "peerDependencies": { - "postcss": "^8.2.15" + "postcss": "^8.4.31" } }, "node_modules/pretty-error": { @@ -12072,9 +12043,9 @@ "integrity": "sha512-24e6ynE2H+OKt4kqsOvNd8kBpV65zoxbA4BVsEOB3ARVWQki/DHzaUoC5KuON/BiccDaCCTZBuOcfZs70kR8bQ==" }, "node_modules/react-json-view-lite": { - "version": "1.3.0", - "resolved": "https://registry.npmjs.org/react-json-view-lite/-/react-json-view-lite-1.3.0.tgz", - "integrity": "sha512-aN1biKC5v4DQkmQBlZjuMFR09MKZGMPtIg+cut8zEeg2HXd6gl2gRy0n4HMacHf0dznQgo0SVXN7eT8zV3hEuQ==", + "version": "1.4.0", + "resolved": "https://registry.npmjs.org/react-json-view-lite/-/react-json-view-lite-1.4.0.tgz", + "integrity": "sha512-wh6F6uJyYAmQ4fK0e8dSQMEWuvTs2Wr3el3sLD9bambX1+pSWUVXIz1RFaoy3TI1mZ0FqdpKq9YgbgTTgyrmXA==", "engines": { "node": ">=14" }, @@ -12084,12 +12055,11 @@ }, "node_modules/react-loadable": { "name": "@docusaurus/react-loadable", - "version": "5.5.2", - "resolved": "https://registry.npmjs.org/@docusaurus/react-loadable/-/react-loadable-5.5.2.tgz", - "integrity": "sha512-A3dYjdBGuy0IGT+wyLIGIKLRE+sAk1iNk0f1HjNDysO7u8lhL4N3VEm+FAubmJbAztn94F7MxBTPmnixbiyFdQ==", + "version": "6.0.0", + "resolved": "https://registry.npmjs.org/@docusaurus/react-loadable/-/react-loadable-6.0.0.tgz", + "integrity": "sha512-YMMxTUQV/QFSnbgrP3tjDzLHRg7vsbMn8e9HAa8o/1iXoiomo48b7sk/kkmWEuWNDPJVlKSJRB6Y2fHqdJk+SQ==", "dependencies": { - "@types/react": "*", - "prop-types": "^15.6.2" + "@types/react": "*" }, "peerDependencies": { "react": "*" @@ -12751,9 +12721,9 @@ } }, "node_modules/search-insights": { - "version": "2.13.0", - "resolved": "https://registry.npmjs.org/search-insights/-/search-insights-2.13.0.tgz", - "integrity": "sha512-Orrsjf9trHHxFRuo9/rzm0KIWmgzE8RMlZMzuhZOJ01Rnz3D0YBAe+V6473t6/H6c7irs6Lt48brULAiRWb3Vw==", + "version": "2.14.0", + "resolved": "https://registry.npmjs.org/search-insights/-/search-insights-2.14.0.tgz", + "integrity": "sha512-OLN6MsPMCghDOqlCtsIsYgtsC0pnwVTyT9Mu6A3ewOj1DxvzZF6COrn2g86E/c05xbktB0XN04m/t1Z+n+fTGw==", "peer": true }, "node_modules/section-matter": { @@ -13106,9 +13076,9 @@ "integrity": "sha512-bLGGlR1QxBcynn2d5YmDX4MGjlZvy2MRBDRNHLJ8VI6l6+9FUiyTFNJ0IveOSP0bcXgVDPRcfGqA0pjaqUpfVg==" }, "node_modules/sitemap": { - "version": "7.1.1", - "resolved": "https://registry.npmjs.org/sitemap/-/sitemap-7.1.1.tgz", - "integrity": "sha512-mK3aFtjz4VdJN0igpIJrinf3EO8U8mxOPsTBzSsy06UtjZQJ3YY3o3Xa7zSc5nMqcMrRwlChHZ18Kxg0caiPBg==", + "version": "7.1.2", + "resolved": "https://registry.npmjs.org/sitemap/-/sitemap-7.1.2.tgz", + "integrity": "sha512-ARCqzHJ0p4gWt+j7NlU5eDlIO9+Rkr/JhPFZKKQ1l5GCus7rJH4UdrlVAh0xC/gDS/Qir2UMxqYNHtsKr2rpCw==", "dependencies": { "@types/node": "^17.0.5", "@types/sax": "^1.2.1", @@ -13147,6 +13117,15 @@ "node": ">=8" } }, + "node_modules/snake-case": { + "version": "3.0.4", + "resolved": "https://registry.npmjs.org/snake-case/-/snake-case-3.0.4.tgz", + "integrity": "sha512-LAOh4z89bGQvl9pFfNF8V146i7o7/CqFPbqzYgP+yYzDIDeS9HaNFtXABamRW+AQzEVODcvE79ljJ+8a9YSdMg==", + "dependencies": { + "dot-case": "^3.0.4", + "tslib": "^2.0.3" + } + }, "node_modules/sockjs": { "version": "0.3.24", "resolved": "https://registry.npmjs.org/sockjs/-/sockjs-0.3.24.tgz", @@ -13158,9 +13137,9 @@ } }, "node_modules/sort-css-media-queries": { - "version": "2.1.0", - "resolved": "https://registry.npmjs.org/sort-css-media-queries/-/sort-css-media-queries-2.1.0.tgz", - "integrity": "sha512-IeWvo8NkNiY2vVYdPa27MCQiR0MN0M80johAYFVxWWXQ44KU84WNxjslwBHmc/7ZL2ccwkM7/e6S5aiKZXm7jA==", + "version": "2.2.0", + "resolved": "https://registry.npmjs.org/sort-css-media-queries/-/sort-css-media-queries-2.2.0.tgz", + "integrity": "sha512-0xtkGhWCC9MGt/EzgnvbbbKhqWjl1+/rncmhTh5qCpbYguXh6S/qwePfv/JQ8jePXXmqingylxoC49pCkSPIbA==", "engines": { "node": ">= 6.3.0" } @@ -13174,9 +13153,9 @@ } }, "node_modules/source-map-js": { - "version": "1.0.2", - "resolved": "https://registry.npmjs.org/source-map-js/-/source-map-js-1.0.2.tgz", - "integrity": "sha512-R0XvVJ9WusLiqTCEiGCmICCMplcCkIwwR11mOSD9CR5u+IXYdiseeEuXCVAjS54zqwkLcPNnmU4OeJ6tUrWhDw==", + "version": "1.2.0", + "resolved": "https://registry.npmjs.org/source-map-js/-/source-map-js-1.2.0.tgz", + "integrity": "sha512-itJW8lvSA0TXEphiRoawsCksnlf8SyvmFzIhltqAHluXd88pkCd+cXJVHTDwdCr0IzwptSm035IHQktUu1QUMg==", "engines": { "node": ">=0.10.0" } @@ -13251,12 +13230,6 @@ "url": "https://github.com/sponsors/sindresorhus" } }, - "node_modules/stable": { - "version": "0.1.8", - "resolved": "https://registry.npmjs.org/stable/-/stable-0.1.8.tgz", - "integrity": "sha512-ji9qxRnOVfcuLDySj9qzhGSEFVobyt1kIOSkj1qZzYLzq7Tos/oUUWvotUPQLlrsidqsK6tBH89Bc9kL5zHA6w==", - "deprecated": "Modern JS already guarantees Array#sort() is a stable sort, so this library is deprecated. See the compatibility table on MDN: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/sort#browser_compatibility" - }, "node_modules/statuses": { "version": "2.0.1", "resolved": "https://registry.npmjs.org/statuses/-/statuses-2.0.1.tgz", @@ -13392,18 +13365,18 @@ } }, "node_modules/stylehacks": { - "version": "5.1.1", - "resolved": "https://registry.npmjs.org/stylehacks/-/stylehacks-5.1.1.tgz", - "integrity": "sha512-sBpcd5Hx7G6seo7b1LkpttvTz7ikD0LlH5RmdcBNb6fFR0Fl7LQwHDFr300q4cwUqi+IYrFGmsIHieMBfnN/Bw==", + "version": "6.1.1", + "resolved": "https://registry.npmjs.org/stylehacks/-/stylehacks-6.1.1.tgz", + "integrity": "sha512-gSTTEQ670cJNoaeIp9KX6lZmm8LJ3jPB5yJmX8Zq/wQxOsAFXV3qjWzHas3YYk1qesuVIyYWWUpZ0vSE/dTSGg==", "dependencies": { - "browserslist": "^4.21.4", - "postcss-selector-parser": "^6.0.4" + "browserslist": "^4.23.0", + "postcss-selector-parser": "^6.0.16" }, "engines": { - "node": "^10 || ^12 || >=14.0" + "node": "^14 || ^16 || >=18.0" }, "peerDependencies": { - "postcss": "^8.2.15" + "postcss": "^8.4.31" } }, "node_modules/supports-color": { @@ -13434,23 +13407,27 @@ "integrity": "sha512-e4hG1hRwoOdRb37cIMSgzNsxyzKfayW6VOflrwvR+/bzrkyxY/31WkbgnQpgtrNp1SdpJvpUAGTa/ZoiPNDuRQ==" }, "node_modules/svgo": { - "version": "2.8.0", - "resolved": "https://registry.npmjs.org/svgo/-/svgo-2.8.0.tgz", - "integrity": "sha512-+N/Q9kV1+F+UeWYoSiULYo4xYSDQlTgb+ayMobAXPwMnLvop7oxKMo9OzIrX5x3eS4L4f2UHhc9axXwY8DpChg==", + "version": "3.3.2", + "resolved": "https://registry.npmjs.org/svgo/-/svgo-3.3.2.tgz", + "integrity": "sha512-OoohrmuUlBs8B8o6MB2Aevn+pRIH9zDALSR+6hhqVfa6fRwG/Qw9VUMSMW9VNg2CFc/MTIfabtdOVl9ODIJjpw==", "dependencies": { "@trysound/sax": "0.2.0", "commander": "^7.2.0", - "css-select": "^4.1.3", - "css-tree": "^1.1.3", - "csso": "^4.2.0", - "picocolors": "^1.0.0", - "stable": "^0.1.8" + "css-select": "^5.1.0", + "css-tree": "^2.3.1", + "css-what": "^6.1.0", + "csso": "^5.0.5", + "picocolors": "^1.0.0" }, "bin": { "svgo": "bin/svgo" }, "engines": { - "node": ">=10.13.0" + "node": ">=14.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/svgo" } }, "node_modules/svgo/node_modules/commander": { @@ -13461,69 +13438,6 @@ "node": ">= 10" } }, - "node_modules/svgo/node_modules/css-select": { - "version": "4.3.0", - "resolved": "https://registry.npmjs.org/css-select/-/css-select-4.3.0.tgz", - "integrity": "sha512-wPpOYtnsVontu2mODhA19JrqWxNsfdatRKd64kmpRbQgh1KtItko5sTnEpPdpSaJszTOhEMlF/RPz28qj4HqhQ==", - "dependencies": { - "boolbase": "^1.0.0", - "css-what": "^6.0.1", - "domhandler": "^4.3.1", - "domutils": "^2.8.0", - "nth-check": "^2.0.1" - }, - "funding": { - "url": "https://github.com/sponsors/fb55" - } - }, - "node_modules/svgo/node_modules/dom-serializer": { - "version": "1.4.1", - "resolved": "https://registry.npmjs.org/dom-serializer/-/dom-serializer-1.4.1.tgz", - "integrity": "sha512-VHwB3KfrcOOkelEG2ZOfxqLZdfkil8PtJi4P8N2MMXucZq2yLp75ClViUlOVwyoHEDjYU433Aq+5zWP61+RGag==", - "dependencies": { - "domelementtype": "^2.0.1", - "domhandler": "^4.2.0", - "entities": "^2.0.0" - }, - "funding": { - "url": "https://github.com/cheeriojs/dom-serializer?sponsor=1" - } - }, - "node_modules/svgo/node_modules/domhandler": { - "version": "4.3.1", - "resolved": "https://registry.npmjs.org/domhandler/-/domhandler-4.3.1.tgz", - "integrity": "sha512-GrwoxYN+uWlzO8uhUXRl0P+kHE4GtVPfYzVLcUxPL7KNdHKj66vvlhiweIHqYYXWlw+T8iLMp42Lm67ghw4WMQ==", - "dependencies": { - "domelementtype": "^2.2.0" - }, - "engines": { - "node": ">= 4" - }, - "funding": { - "url": "https://github.com/fb55/domhandler?sponsor=1" - } - }, - "node_modules/svgo/node_modules/domutils": { - "version": "2.8.0", - "resolved": "https://registry.npmjs.org/domutils/-/domutils-2.8.0.tgz", - "integrity": "sha512-w96Cjofp72M5IIhpjgobBimYEfoPjx1Vx0BSX9P30WBdZW2WIKU0T1Bd0kz2eNZ9ikjKgHbEyKx8BB6H1L3h3A==", - "dependencies": { - "dom-serializer": "^1.0.1", - "domelementtype": "^2.2.0", - "domhandler": "^4.2.0" - }, - "funding": { - "url": "https://github.com/fb55/domutils?sponsor=1" - } - }, - "node_modules/svgo/node_modules/entities": { - "version": "2.2.0", - "resolved": "https://registry.npmjs.org/entities/-/entities-2.2.0.tgz", - "integrity": "sha512-p92if5Nz619I0w+akJrLZH0MX0Pb5DX39XOwQTtXSdQQOaYH03S1uIQp4mhOZtAXrxq4ViO67YTiLBo2638o9A==", - "funding": { - "url": "https://github.com/fb55/entities?sponsor=1" - } - }, "node_modules/tapable": { "version": "2.2.1", "resolved": "https://registry.npmjs.org/tapable/-/tapable-2.2.1.tgz", diff --git a/docs/package.json b/docs/package.json index c23deeea9..a3ae7a2d3 100644 --- a/docs/package.json +++ b/docs/package.json @@ -15,9 +15,9 @@ "write-heading-ids": "docusaurus write-heading-ids" }, "dependencies": { - "@docusaurus/core": "^3.2.1", - "@docusaurus/plugin-client-redirects": "^3.2.1", - "@docusaurus/preset-classic": "^3.2.1", + "@docusaurus/core": "^3.4.0", + "@docusaurus/plugin-client-redirects": "^3.4.0", + "@docusaurus/preset-classic": "^3.4.0", "@mdx-js/react": "^3.0.0", "clsx": "^2.1.0", "docusaurus-json-schema-plugin": "^1.11.0", diff --git a/extensions/vscode/package-lock.json b/extensions/vscode/package-lock.json index 701eaf3bb..4f1d7b967 100644 --- a/extensions/vscode/package-lock.json +++ b/extensions/vscode/package-lock.json @@ -1,12 +1,12 @@ { "name": "continue", - "version": "0.9.163", + "version": "0.9.165", "lockfileVersion": 3, "requires": true, "packages": { "": { "name": "continue", - "version": "0.9.163", + "version": "0.9.165", "license": "Apache-2.0", "dependencies": { "@electron/rebuild": "^3.2.10", diff --git a/extensions/vscode/package.json b/extensions/vscode/package.json index a1b72944f..4c8e46a09 100644 --- a/extensions/vscode/package.json +++ b/extensions/vscode/package.json @@ -1,7 +1,7 @@ { "name": "continue", "icon": "media/icon.png", - "version": "0.9.163", + "version": "0.9.165", "repository": { "type": "git", "url": "https://github.com/continuedev/continue" diff --git a/scripts/install-dependencies.ps1 b/scripts/install-dependencies.ps1 index 956489aa5..710ac3724 100644 --- a/scripts/install-dependencies.ps1 +++ b/scripts/install-dependencies.ps1 @@ -82,4 +82,7 @@ npm run build Pop-Location +Write-Output "`nInstalling docs dependencies..." -ForegroundColor White +Push-Location docs +npm install diff --git a/scripts/install-dependencies.sh b/scripts/install-dependencies.sh index 0da8b69d2..6fe6e1fce 100755 --- a/scripts/install-dependencies.sh +++ b/scripts/install-dependencies.sh @@ -4,10 +4,12 @@ # - Run Task -> Install Dependencies # - Debug -> Extension set -e + echo "Installing Core extension dependencies..." pushd core npm install npm link + popd echo "Installing GUI extension dependencies..." @@ -15,11 +17,12 @@ pushd gui npm install npm link @continuedev/core npm run build + popd + # VSCode Extension (will also package GUI) echo "Installing VSCode extension dependencies..." pushd extensions/vscode - # This does way too many things inline but is the common denominator between many of the scripts npm install npm link @continuedev/core @@ -31,4 +34,10 @@ popd echo "Installing binary dependencies..." pushd binary npm install -npm run build \ No newline at end of file +npm run build + +popd + +echo "Installing docs dependencies..." +pushd docs +npm install From 6fdad553b6ac7f64c1bb23617dbe313e16174a56 Mon Sep 17 00:00:00 2001 From: Patrick Erichsen Date: Thu, 20 Jun 2024 18:35:18 -0500 Subject: [PATCH 010/268] fix(extensions): schema for db ctx provider (#1534) * fix(extensions): schema for db ctx provider * fix: invalid enum --- docs/static/schemas/config.json | 101 ++++++++------- .../src/main/resources/config_schema.json | 101 ++++++++------- extensions/vscode/config_schema.json | 108 ++++++++-------- extensions/vscode/continue_rc_schema.json | 115 ++++++++++-------- 4 files changed, 230 insertions(+), 195 deletions(-) diff --git a/docs/static/schemas/config.json b/docs/static/schemas/config.json index ba9304c8e..6428abfed 100644 --- a/docs/static/schemas/config.json +++ b/docs/static/schemas/config.json @@ -1318,7 +1318,8 @@ "code", "system", "currentFile", - "url" + "url", + "database" ], "markdownEnumDescriptions": [ "Reference the contents of the current changes as given by `git diff`", @@ -1341,7 +1342,8 @@ "Reference specific functions and classes from throughout your codebase", "Reference your operating system and cpu", "Reference the contents of the currently active file", - "Reference the contents of a page at a URL" + "Reference the contents of a page at a URL", + "Reference table schemas" ], "type": "string" }, @@ -1457,56 +1459,63 @@ } }, "then": { - "connections": { - "type": "array", - "description": "A list of database connections", - "items": { - "type": "object", + "properties": { + "params": { "properties": { - "name": { - "type": "string", - "description": "A unique name for this database connection" - }, - "connection_type": { - "type": "string", - "description": "The type of database (e.g., 'postgres', 'mysql')", - "enum": ["postgres", "mysql", "sqlite"] - }, - "connection": { - "type": "object", - "properties": { - "user": { - "type": "string", - "description": "The database user name" + "connections": { + "type": "array", + "description": "A list of database connections", + "items": { + "type": "object", + "properties": { + "name": { + "type": "string", + "description": "A unique name for this database connection" + }, + "connection_type": { + "type": "string", + "description": "The type of database (e.g., 'postgres', 'mysql')", + "enum": ["postgres", "mysql", "sqlite"] + }, + "connection": { + "type": "object", + "properties": { + "user": { + "type": "string", + "description": "The database user name" + }, + "host": { + "type": "string", + "description": "The host address of the database server" + }, + "database": { + "type": "string", + "description": "The name of the database to connect to" + }, + "password": { + "type": "string", + "description": "The password for the database user" + }, + "port": { + "type": "integer", + "description": "The port number to connect to at the host" + }, + "filename": { + "type": "string", + "description": "File location for simple file DB's" + } + }, + "required": [] + } }, - "host": { - "type": "string", - "description": "The host address of the database server" - }, - "database": { - "type": "string", - "description": "The name of the database to connect to" - }, - "password": { - "type": "string", - "description": "The password for the database user" - }, - "port": { - "type": "integer", - "description": "The port number to connect to at the host" - }, - "filename": { - "type": "string", - "description": "File location for simple file DB's" - } - }, - "required": [] + "required": ["name", "connection_type", "connection"] + } } }, - "required": ["name", "type", "connection"] + "required": ["connections"] } }, - "required": ["connections"] + "required": ["params"] } }, { diff --git a/extensions/intellij/src/main/resources/config_schema.json b/extensions/intellij/src/main/resources/config_schema.json index ba9304c8e..6428abfed 100644 --- a/extensions/intellij/src/main/resources/config_schema.json +++ b/extensions/intellij/src/main/resources/config_schema.json @@ -1318,7 +1318,8 @@ "code", "system", "currentFile", - "url" + "url", + "database" ], "markdownEnumDescriptions": [ "Reference the contents of the current changes as given by `git diff`", @@ -1341,7 +1342,8 @@ "Reference specific functions and classes from throughout your codebase", "Reference your operating system and cpu", "Reference the contents of the currently active file", - "Reference the contents of a page at a URL" + "Reference the contents of a page at a URL", + "Reference table schemas" ], "type": "string" }, @@ -1457,56 +1459,63 @@ } }, "then": { - "connections": { - "type": "array", - "description": "A list of database connections", - "items": { - "type": "object", + "properties": { + "params": { "properties": { - "name": { - "type": "string", - "description": "A unique name for this database connection" - }, - "connection_type": { - "type": "string", - "description": "The type of database (e.g., 'postgres', 'mysql')", - "enum": ["postgres", "mysql", "sqlite"] - }, - "connection": { - "type": "object", - "properties": { - "user": { - "type": "string", - "description": "The database user name" + "connections": { + "type": "array", + "description": "A list of database connections", + "items": { + "type": "object", + "properties": { + "name": { + "type": "string", + "description": "A unique name for this database connection" + }, + "connection_type": { + "type": "string", + "description": "The type of database (e.g., 'postgres', 'mysql')", + "enum": ["postgres", "mysql", "sqlite"] + }, + "connection": { + "type": "object", + "properties": { + "user": { + "type": "string", + "description": "The database user name" + }, + "host": { + "type": "string", + "description": "The host address of the database server" + }, + "database": { + "type": "string", + "description": "The name of the database to connect to" + }, + "password": { + "type": "string", + "description": "The password for the database user" + }, + "port": { + "type": "integer", + "description": "The port number to connect to at the host" + }, + "filename": { + "type": "string", + "description": "File location for simple file DB's" + } + }, + "required": [] + } }, - "host": { - "type": "string", - "description": "The host address of the database server" - }, - "database": { - "type": "string", - "description": "The name of the database to connect to" - }, - "password": { - "type": "string", - "description": "The password for the database user" - }, - "port": { - "type": "integer", - "description": "The port number to connect to at the host" - }, - "filename": { - "type": "string", - "description": "File location for simple file DB's" - } - }, - "required": [] + "required": ["name", "connection_type", "connection"] + } } }, - "required": ["name", "type", "connection"] + "required": ["connections"] } }, - "required": ["connections"] + "required": ["params"] } }, { diff --git a/extensions/vscode/config_schema.json b/extensions/vscode/config_schema.json index ba9304c8e..dbb658fa1 100644 --- a/extensions/vscode/config_schema.json +++ b/extensions/vscode/config_schema.json @@ -1316,13 +1316,14 @@ "outline", "postgres", "code", - "system", "currentFile", - "url" + "url", + "database" ], "markdownEnumDescriptions": [ "Reference the contents of the current changes as given by `git diff`", "Reference the contents of the terminal", + "Reference the contents of the local variables with top n level (defaulting to 3) of call stack for that thread", "Reference the contents of all open or pinned files.", "Enter a search phrase and include the Google search results as context", "Reference the results of a ripgrep search in your codebase", @@ -1332,16 +1333,14 @@ "Include important files from a folder in the prompt, as determined by similarity search", "Reference GitHub issues from a repository", "Retrieve important pages from a documentation website, as determined by similarity search", - "Index and retrieve the contents of any documentation site, using embeddings to find important snippets", "Display a file tree of the current workspace", + "Include important highlighted sections from your code", "Include a repo map showing important code objects", - "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 your operating system and cpu", "Reference the contents of the currently active file", - "Reference the contents of a page at a URL" + "Reference the contents of a page at a URL", + "Reference table schemas" ], "type": "string" }, @@ -1457,56 +1456,63 @@ } }, "then": { - "connections": { - "type": "array", - "description": "A list of database connections", - "items": { - "type": "object", + "properties": { + "params": { "properties": { - "name": { - "type": "string", - "description": "A unique name for this database connection" - }, - "connection_type": { - "type": "string", - "description": "The type of database (e.g., 'postgres', 'mysql')", - "enum": ["postgres", "mysql", "sqlite"] - }, - "connection": { - "type": "object", - "properties": { - "user": { - "type": "string", - "description": "The database user name" + "connections": { + "type": "array", + "description": "A list of database connections", + "items": { + "type": "object", + "properties": { + "name": { + "type": "string", + "description": "A unique name for this database connection" + }, + "connection_type": { + "type": "string", + "description": "The type of database (e.g., 'postgres', 'mysql')", + "enum": ["postgres", "mysql", "sqlite"] + }, + "connection": { + "type": "object", + "properties": { + "user": { + "type": "string", + "description": "The database user name" + }, + "host": { + "type": "string", + "description": "The host address of the database server" + }, + "database": { + "type": "string", + "description": "The name of the database to connect to" + }, + "password": { + "type": "string", + "description": "The password for the database user" + }, + "port": { + "type": "integer", + "description": "The port number to connect to at the host" + }, + "filename": { + "type": "string", + "description": "File location for simple file DB's" + } + }, + "required": [] + } }, - "host": { - "type": "string", - "description": "The host address of the database server" - }, - "database": { - "type": "string", - "description": "The name of the database to connect to" - }, - "password": { - "type": "string", - "description": "The password for the database user" - }, - "port": { - "type": "integer", - "description": "The port number to connect to at the host" - }, - "filename": { - "type": "string", - "description": "File location for simple file DB's" - } - }, - "required": [] + "required": ["name", "connection_type", "connection"] + } } }, - "required": ["name", "type", "connection"] + "required": ["connections"] } }, - "required": ["connections"] + "required": ["params"] } }, { diff --git a/extensions/vscode/continue_rc_schema.json b/extensions/vscode/continue_rc_schema.json index 9b0f6fc9f..23ed8e9c6 100644 --- a/extensions/vscode/continue_rc_schema.json +++ b/extensions/vscode/continue_rc_schema.json @@ -1461,7 +1461,8 @@ "code", "system", "currentFile", - "url" + "url", + "database" ], "markdownEnumDescriptions": [ "Reference the contents of the current changes as given by `git diff`", @@ -1484,7 +1485,8 @@ "Reference specific functions and classes from throughout your codebase", "Reference your operating system and cpu", "Reference the contents of the currently active file", - "Reference the contents of a page at a URL" + "Reference the contents of a page at a URL", + "Reference table schemas" ], "type": "string" }, @@ -1623,65 +1625,74 @@ } }, "then": { - "connections": { - "type": "array", - "description": "A list of database connections", - "items": { - "type": "object", + "properties": { + "params": { "properties": { - "name": { - "type": "string", - "description": "A unique name for this database connection" - }, - "connection_type": { - "type": "string", - "description": "The type of database (e.g., 'postgres', 'mysql')", - "enum": [ - "postgres", - "mysql", - "sqlite" - ] - }, - "connection": { - "type": "object", - "properties": { - "user": { - "type": "string", - "description": "The database user name" + "connections": { + "type": "array", + "description": "A list of database connections", + "items": { + "type": "object", + "properties": { + "name": { + "type": "string", + "description": "A unique name for this database connection" + }, + "connection_type": { + "type": "string", + "description": "The type of database (e.g., 'postgres', 'mysql')", + "enum": [ + "postgres", + "mysql", + "sqlite" + ] + }, + "connection": { + "type": "object", + "properties": { + "user": { + "type": "string", + "description": "The database user name" + }, + "host": { + "type": "string", + "description": "The host address of the database server" + }, + "database": { + "type": "string", + "description": "The name of the database to connect to" + }, + "password": { + "type": "string", + "description": "The password for the database user" + }, + "port": { + "type": "integer", + "description": "The port number to connect to at the host" + }, + "filename": { + "type": "string", + "description": "File location for simple file DB's" + } + }, + "required": [] + } }, - "host": { - "type": "string", - "description": "The host address of the database server" - }, - "database": { - "type": "string", - "description": "The name of the database to connect to" - }, - "password": { - "type": "string", - "description": "The password for the database user" - }, - "port": { - "type": "integer", - "description": "The port number to connect to at the host" - }, - "filename": { - "type": "string", - "description": "File location for simple file DB's" - } - }, - "required": [] + "required": [ + "name", + "connection_type", + "connection" + ] + } } }, "required": [ - "name", - "type", - "connection" + "connections" ] } }, "required": [ - "connections" + "params" ] } }, From b402b91e7588ae5ce2d9712a786922355474ba6b Mon Sep 17 00:00:00 2001 From: Nate Sesti Date: Thu, 20 Jun 2024 17:27:06 -0700 Subject: [PATCH 011/268] prettierignore --- .prettierignore | 1 + 1 file changed, 1 insertion(+) create mode 100644 .prettierignore diff --git a/.prettierignore b/.prettierignore new file mode 100644 index 000000000..b497624cc --- /dev/null +++ b/.prettierignore @@ -0,0 +1 @@ +extensions/vscode/continue_rc_schema.json \ No newline at end of file From 2ed4ff67c97c2acb027c891f598074926a98e207 Mon Sep 17 00:00:00 2001 From: Patrick Erichsen Date: Thu, 20 Jun 2024 19:28:10 -0500 Subject: [PATCH 012/268] docs: add docs and schema for "OS" provider (#1536) --- core/context/providers/OSContextProvider.ts | 13 +- docs/docs/customization/context-providers.md | 8 + extensions/vscode/config_schema.json | 6 +- extensions/vscode/continue_rc_schema.json | 508 +++++-------------- 4 files changed, 139 insertions(+), 396 deletions(-) diff --git a/core/context/providers/OSContextProvider.ts b/core/context/providers/OSContextProvider.ts index 316b6c24d..5f06e5f3d 100644 --- a/core/context/providers/OSContextProvider.ts +++ b/core/context/providers/OSContextProvider.ts @@ -1,6 +1,3 @@ -//os.platform() -//os.arch() - import os from "os"; import { ContextItem, @@ -11,9 +8,9 @@ import { BaseContextProvider } from "../index.js"; class OSContextProvider extends BaseContextProvider { static description: ContextProviderDescription = { - title: "OS", - displayTitle: "OS", - description: "OS and CPU Information.", + title: "os", + displayTitle: "Operating System", + description: "Operating system and CPU Information.", type: "normal", }; @@ -25,9 +22,9 @@ class OSContextProvider extends BaseContextProvider { const platform = os.platform(); return [ { - description: "Your OS and CPU", + description: "Your operating system and CPU", content: `I am running ${platform} on ${cpu}.`, - name: "OS", + name: "os", }, ]; } diff --git a/docs/docs/customization/context-providers.md b/docs/docs/customization/context-providers.md index fcb61b6d1..fae39432f 100644 --- a/docs/docs/customization/context-providers.md +++ b/docs/docs/customization/context-providers.md @@ -288,6 +288,14 @@ Type `@locals` to reference the contents of the local variables with top n level } ``` +### Operating System + +Type `@os` to reference the architecture and platform of your current operating system. + +```json +{ "name": "os" } +``` + ### 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. diff --git a/extensions/vscode/config_schema.json b/extensions/vscode/config_schema.json index dbb658fa1..66fdf453e 100644 --- a/extensions/vscode/config_schema.json +++ b/extensions/vscode/config_schema.json @@ -1318,7 +1318,8 @@ "code", "currentFile", "url", - "database" + "database", + "os" ], "markdownEnumDescriptions": [ "Reference the contents of the current changes as given by `git diff`", @@ -1340,7 +1341,8 @@ "Reference specific functions and classes from throughout your codebase", "Reference the contents of the currently active file", "Reference the contents of a page at a URL", - "Reference table schemas" + "Reference table schemas", + "Operating system and CPU Information" ], "type": "string" }, diff --git a/extensions/vscode/continue_rc_schema.json b/extensions/vscode/continue_rc_schema.json index 23ed8e9c6..04c1a41aa 100644 --- a/extensions/vscode/continue_rc_schema.json +++ b/extensions/vscode/continue_rc_schema.json @@ -279,10 +279,7 @@ "apiType": { "title": "Api Type", "markdownDescription": "OpenAI API type, either `openai` or `azure`", - "enum": [ - "openai", - "azure" - ] + "enum": ["openai", "azure"] }, "apiVersion": { "title": "Api Version", @@ -295,11 +292,7 @@ "type": "string" } }, - "required": [ - "title", - "provider", - "model" - ], + "required": ["title", "provider", "model"], "allOf": [ { "if": { @@ -309,9 +302,7 @@ } }, "not": { - "required": [ - "provider" - ] + "required": ["provider"] } }, "then": { @@ -338,48 +329,33 @@ ] } }, - "required": [ - "provider" - ] + "required": ["provider"] }, "then": { - "required": [ - "apiKey" - ] + "required": ["apiKey"] } }, { "if": { "properties": { "provider": { - "enum": [ - "huggingface-tgi", - "huggingface-inference-api" - ] + "enum": ["huggingface-tgi", "huggingface-inference-api"] } } }, "then": { - "required": [ - "apiBase" - ] + "required": ["apiBase"] }, - "required": [ - "provider" - ] + "required": ["provider"] }, { "if": { "properties": { "provider": { - "enum": [ - "openai" - ] + "enum": ["openai"] } }, - "required": [ - "provider" - ] + "required": ["provider"] }, "then": { "properties": { @@ -399,14 +375,10 @@ "if": { "properties": { "provider": { - "enum": [ - "cloudflare" - ] + "enum": ["cloudflare"] } }, - "required": [ - "provider" - ] + "required": ["provider"] }, "then": { "properties": { @@ -464,14 +436,10 @@ "if": { "properties": { "provider": { - "enum": [ - "openai" - ] + "enum": ["openai"] } }, - "required": [ - "provider" - ] + "required": ["provider"] }, "then": { "properties": { @@ -502,14 +470,10 @@ "if": { "properties": { "provider": { - "enum": [ - "replicate" - ] + "enum": ["replicate"] } }, - "required": [ - "provider" - ] + "required": ["provider"] }, "then": { "properties": { @@ -539,14 +503,10 @@ "if": { "properties": { "provider": { - "enum": [ - "free-trial" - ] + "enum": ["free-trial"] } }, - "required": [ - "provider" - ] + "required": ["provider"] }, "then": { "properties": { @@ -571,9 +531,7 @@ "if": { "properties": { "provider": { - "enum": [ - "openai" - ] + "enum": ["openai"] }, "apiType": { "not": { @@ -581,9 +539,7 @@ } } }, - "required": [ - "provider" - ] + "required": ["provider"] }, "then": { "properties": { @@ -641,14 +597,10 @@ "if": { "properties": { "provider": { - "enum": [ - "anthropic" - ] + "enum": ["anthropic"] } }, - "required": [ - "provider" - ] + "required": ["provider"] }, "then": { "properties": { @@ -676,22 +628,15 @@ "if": { "properties": { "provider": { - "enum": [ - "cohere" - ] + "enum": ["cohere"] } }, - "required": [ - "provider" - ] + "required": ["provider"] }, "then": { "properties": { "model": { - "enum": [ - "command-r", - "command-r-plus" - ] + "enum": ["command-r", "command-r-plus"] } } } @@ -700,14 +645,10 @@ "if": { "properties": { "provider": { - "enum": [ - "bedrock" - ] + "enum": ["bedrock"] } }, - "required": [ - "provider" - ] + "required": ["provider"] }, "then": { "properties": { @@ -732,14 +673,10 @@ "if": { "properties": { "provider": { - "enum": [ - "gemini" - ] + "enum": ["gemini"] } }, - "required": [ - "provider" - ] + "required": ["provider"] }, "then": { "properties": { @@ -760,14 +697,10 @@ "if": { "properties": { "provider": { - "enum": [ - "together" - ] + "enum": ["together"] } }, - "required": [ - "provider" - ] + "required": ["provider"] }, "then": { "properties": { @@ -801,14 +734,10 @@ "if": { "properties": { "provider": { - "enum": [ - "deepinfra" - ] + "enum": ["deepinfra"] } }, - "required": [ - "provider" - ] + "required": ["provider"] }, "then": { "properties": { @@ -831,9 +760,7 @@ ] } }, - "required": [ - "provider" - ] + "required": ["provider"] }, "then": { "properties": { @@ -879,14 +806,10 @@ "if": { "properties": { "provider": { - "enum": [ - "ollama" - ] + "enum": ["ollama"] } }, - "required": [ - "provider" - ] + "required": ["provider"] }, "then": { "properties": { @@ -934,14 +857,10 @@ "if": { "properties": { "provider": { - "enum": [ - "mistral" - ] + "enum": ["mistral"] } }, - "required": [ - "provider" - ] + "required": ["provider"] }, "then": { "properties": { @@ -962,22 +881,15 @@ "if": { "properties": { "provider": { - "enum": [ - "deepseek" - ] + "enum": ["deepseek"] } }, - "required": [ - "provider" - ] + "required": ["provider"] }, "then": { "properties": { "model": { - "enum": [ - "deepseek-chat", - "deepseek-coder" - ] + "enum": ["deepseek-chat", "deepseek-coder"] } } } @@ -986,14 +898,10 @@ "if": { "properties": { "provider": { - "enum": [ - "groq" - ] + "enum": ["groq"] } }, - "required": [ - "provider" - ] + "required": ["provider"] }, "then": { "properties": { @@ -1014,21 +922,15 @@ "if": { "properties": { "provider": { - "enum": [ - "fireworks" - ] + "enum": ["fireworks"] } }, - "required": [ - "provider" - ] + "required": ["provider"] }, "then": { "properties": { "model": { - "enum": [ - "starcoder-7b" - ] + "enum": ["starcoder-7b"] } } } @@ -1040,30 +942,20 @@ "const": "azure" } }, - "required": [ - "apiType" - ] + "required": ["apiType"] }, "then": { - "required": [ - "engine", - "apiVersion", - "apiBase" - ] + "required": ["engine", "apiVersion", "apiBase"] } }, { "if": { "properties": { "provider": { - "enum": [ - "openai" - ] + "enum": ["openai"] } }, - "required": [ - "provider" - ] + "required": ["provider"] }, "then": { "properties": { @@ -1080,9 +972,7 @@ "const": "llamafile" } }, - "required": [ - "provider" - ] + "required": ["provider"] }, "then": { "properties": { @@ -1096,14 +986,10 @@ "if": { "properties": { "provider": { - "enum": [ - "text-gen-webui" - ] + "enum": ["text-gen-webui"] } }, - "required": [ - "provider" - ] + "required": ["provider"] }, "then": { "properties": { @@ -1117,14 +1003,10 @@ "if": { "properties": { "provider": { - "enum": [ - "flowise" - ] + "enum": ["flowise"] } }, - "required": [ - "provider" - ] + "required": ["provider"] }, "then": { "properties": { @@ -1151,10 +1033,7 @@ "type": "string" } }, - "required": [ - "key", - "value" - ] + "required": ["key", "value"] } }, "additionalFlowiseConfiguration": { @@ -1173,10 +1052,7 @@ "description": "Configuration Property value" } }, - "required": [ - "key", - "value" - ] + "required": ["key", "value"] } }, "model": { @@ -1268,9 +1144,7 @@ "type": "string" } }, - "required": [ - "default" - ] + "required": ["default"] }, "SlashCommand": { "title": "SlashCommand", @@ -1329,9 +1203,7 @@ "if": { "properties": { "name": { - "enum": [ - "issue" - ] + "enum": ["issue"] } } }, @@ -1344,23 +1216,17 @@ "description": "Enter the URL of the GitHub repository for which you want to generate the issue." } }, - "required": [ - "repositoryUrl" - ] + "required": ["repositoryUrl"] } }, - "required": [ - "params" - ] + "required": ["params"] } }, { "if": { "properties": { "name": { - "enum": [ - "edit" - ] + "enum": ["edit"] } } }, @@ -1385,9 +1251,7 @@ "if": { "properties": { "name": { - "enum": [ - "share" - ] + "enum": ["share"] } } }, @@ -1405,10 +1269,7 @@ } } ], - "required": [ - "name", - "description" - ] + "required": ["name", "description"] }, "CustomCommand": { "title": "CustomCommand", @@ -1427,11 +1288,7 @@ "type": "string" } }, - "required": [ - "name", - "prompt", - "description" - ] + "required": ["name", "prompt", "description"] }, "ContextProviderWithParams": { "title": "ContextProviderWithParams", @@ -1459,14 +1316,15 @@ "outline", "postgres", "code", - "system", "currentFile", "url", - "database" + "database", + "os" ], "markdownEnumDescriptions": [ "Reference the contents of the current changes as given by `git diff`", "Reference the contents of the terminal", + "Reference the contents of the local variables with top n level (defaulting to 3) of call stack for that thread", "Reference the contents of all open or pinned files.", "Enter a search phrase and include the Google search results as context", "Reference the results of a ripgrep search in your codebase", @@ -1476,17 +1334,15 @@ "Include important files from a folder in the prompt, as determined by similarity search", "Reference GitHub issues from a repository", "Retrieve important pages from a documentation website, as determined by similarity search", - "Index and retrieve the contents of any documentation site, using embeddings to find important snippets", "Display a file tree of the current workspace", + "Include important highlighted sections from your code", "Include a repo map showing important code objects", - "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 your operating system and cpu", "Reference the contents of the currently active file", "Reference the contents of a page at a URL", - "Reference table schemas" + "Reference table schemas", + "Operating system and CPU Information" ], "type": "string" }, @@ -1506,9 +1362,7 @@ "if": { "properties": { "name": { - "enum": [ - "google" - ] + "enum": ["google"] } } }, @@ -1521,23 +1375,17 @@ "description": "Your API key for https://serper.dev in order to get Google search results" } }, - "required": [ - "serperApiKey" - ] + "required": ["serperApiKey"] } }, - "required": [ - "params" - ] + "required": ["params"] } }, { "if": { "properties": { "name": { - "enum": [ - "open" - ] + "enum": ["open"] } } }, @@ -1559,9 +1407,7 @@ "if": { "properties": { "name": { - "enum": [ - "issue" - ] + "enum": ["issue"] } } }, @@ -1590,37 +1436,24 @@ "type": { "type": "string", "description": "The type of issues to search for", - "enum": [ - "open", - "closed", - "all" - ] + "enum": ["open", "closed", "all"] } }, - "required": [ - "owner", - "repo" - ] + "required": ["owner", "repo"] } } }, - "required": [ - "repos" - ] + "required": ["repos"] } }, - "required": [ - "params" - ] + "required": ["params"] } }, { "if": { "properties": { "name": { - "enum": [ - "database" - ] + "enum": ["database"] } } }, @@ -1641,11 +1474,7 @@ "connection_type": { "type": "string", "description": "The type of database (e.g., 'postgres', 'mysql')", - "enum": [ - "postgres", - "mysql", - "sqlite" - ] + "enum": ["postgres", "mysql", "sqlite"] }, "connection": { "type": "object", @@ -1678,31 +1507,21 @@ "required": [] } }, - "required": [ - "name", - "connection_type", - "connection" - ] + "required": ["name", "connection_type", "connection"] } } }, - "required": [ - "connections" - ] + "required": ["connections"] } }, - "required": [ - "params" - ] + "required": ["params"] } }, { "if": { "properties": { "name": { - "enum": [ - "gitlab-mr" - ] + "enum": ["gitlab-mr"] } } }, @@ -1723,23 +1542,17 @@ "description": "If you have code selected, filters out comments that aren't related to the selection." } }, - "required": [ - "token" - ] + "required": ["token"] } }, - "required": [ - "params" - ] + "required": ["params"] } }, { "if": { "properties": { "name": { - "enum": [ - "jira" - ] + "enum": ["jira"] } } }, @@ -1785,24 +1598,17 @@ ] } }, - "required": [ - "domain", - "token" - ] + "required": ["domain", "token"] } }, - "required": [ - "params" - ] + "required": ["params"] } }, { "if": { "properties": { "name": { - "enum": [ - "http" - ] + "enum": ["http"] } } }, @@ -1815,24 +1621,17 @@ "description": "The HTTP endpoint of your context provider server." } }, - "required": [ - "url" - ] + "required": ["url"] } }, - "required": [ - "params" - ] + "required": ["params"] } }, { "if": { "properties": { "name": { - "enum": [ - "codebase", - "folder" - ] + "enum": ["codebase", "folder"] } } }, @@ -1867,9 +1666,7 @@ "if": { "properties": { "name": { - "enum": [ - "postgres" - ] + "enum": ["postgres"] } } }, @@ -1921,19 +1718,11 @@ } } }, - "required": [ - "host", - "port", - "user", - "password", - "database" - ] + "required": ["host", "port", "user", "password", "database"] } } ], - "required": [ - "name" - ] + "required": ["name"] }, "SerializedContinueConfig": { "title": "config.json", @@ -2085,46 +1874,32 @@ "$ref": "#/definitions/RequestOptions" } }, - "required": [ - "provider" - ], + "required": ["provider"], "allOf": [ { "if": { "properties": { "provider": { - "enum": [ - "cohere" - ] + "enum": ["cohere"] } }, - "required": [ - "provider" - ] + "required": ["provider"] }, "then": { - "required": [ - "apiKey" - ] + "required": ["apiKey"] } }, { "if": { "properties": { "provider": { - "enum": [ - "gemini" - ] + "enum": ["gemini"] } }, - "required": [ - "provider" - ] + "required": ["provider"] }, "then": { - "required": [ - "apiKey" - ] + "required": ["apiKey"] } } ] @@ -2135,33 +1910,22 @@ "type": "object", "properties": { "name": { - "enum": [ - "cohere", - "voyage", - "llm", - "free-trial" - ] + "enum": ["cohere", "voyage", "llm", "free-trial"] }, "params": { "type": "object" } }, - "required": [ - "name" - ], + "required": ["name"], "allOf": [ { "if": { "properties": { "name": { - "enum": [ - "cohere" - ] + "enum": ["cohere"] } }, - "required": [ - "name" - ] + "required": ["name"] }, "then": { "properties": { @@ -2183,9 +1947,7 @@ "type": "string" } }, - "required": [ - "apiKey" - ] + "required": ["apiKey"] } } } @@ -2194,14 +1956,10 @@ "if": { "properties": { "name": { - "enum": [ - "llm" - ] + "enum": ["llm"] } }, - "required": [ - "name" - ] + "required": ["name"] }, "then": { "properties": { @@ -2212,9 +1970,7 @@ "type": "string" } }, - "required": [ - "modelTitle" - ] + "required": ["modelTitle"] } } } @@ -2223,14 +1979,10 @@ "if": { "properties": { "name": { - "enum": [ - "voyage" - ] + "enum": ["voyage"] } }, - "required": [ - "name" - ] + "required": ["name"] }, "then": { "properties": { @@ -2241,14 +1993,10 @@ "type": "string" }, "model": { - "enum": [ - "rerank-lite-1" - ] + "enum": ["rerank-lite-1"] } }, - "required": [ - "apiKey" - ] + "required": ["apiKey"] } } } @@ -2314,11 +2062,7 @@ "description": "An optional template string to be used for autocomplete. It will be rendered with the Mustache templating language, and is passed the 'prefix' and 'suffix' variables." }, "multilineCompletions": { - "enum": [ - "always", - "never", - "auto" - ], + "enum": ["always", "never", "auto"], "description": "If set to true, Continue will only complete a single line at a time." }, "useCache": { @@ -2347,10 +2091,7 @@ "type": "object", "properties": { "codeBlockToolbarPosition": { - "enum": [ - "top", - "bottom" - ], + "enum": ["top", "bottom"], "default": "top", "description": "Whether to show the copy and apply code buttons at the top or bottom of code blocks in the sidebar." }, @@ -2367,9 +2108,7 @@ "defaultContext": { "type": "array", "items": { - "enum": [ - "activeFile" - ] + "enum": ["activeFile"] } }, "modelRoles": { @@ -2412,10 +2151,7 @@ }, "mergeBehavior": { "type": "string", - "enum": [ - "merge", - "overwrite" - ], + "enum": ["merge", "overwrite"], "default": "merge", "title": "Merge behavior", "markdownDescription": "If set to 'merge', .continuerc.json will be applied on top of config.json (arrays and objects are merged). If set to 'overwrite', then every top-level property of .continuerc.json will overwrite that property from config.json." @@ -2423,4 +2159,4 @@ } } } -} \ No newline at end of file +} From 20bf1bd670389de83ecb7186b8f15e20f746981a Mon Sep 17 00:00:00 2001 From: Nate Sesti <33237525+sestinj@users.noreply.github.com> Date: Thu, 20 Jun 2024 20:08:25 -0700 Subject: [PATCH 013/268] tests (#1501) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * 👷 CI for jetbrains * default working dir * changelog * build binaries * binary testing setup * idesettings * core binary testing * run binary tests in ci * remove unused targets * needs build * console.log bin contents * fix ci * fix win32 binary download * test * no linux arm64 * macos latest * macos-12 * binary permissions * upload logs * fix * upload full folder as binary artifact * test * test macos only * set full execute permissions * copy sqlite binary * cd * it worked! * build again in test job * debug * remove timeout * info * log * log2 * more logs * catch * fewer logs * test all platforms * test downloaded artifact * needs build * updates * build * false * release * add tag and upload binaryes * change tag name * proper artifact upload * jest updates * ✅ generate a few unit tests with Continue * fix imports related to IdeSettings * run tsc on PRs * remove shareSession command (unused) * update release process * update plugin version * don't show ghost text when jetbrains completion visible * run jetbrains ci in main --- .github/workflows/jetbrains-build.yaml | 448 +++ .github/workflows/jetbrains-release.yaml | 142 + .github/workflows/preview.yaml | 6 + .github/workflows/ts-check.yaml | 89 + .prompts/test.prompt | 19 + .vscode/launch.json | 3 +- binary/jest.config.js | 23 + binary/package-lock.json | 3494 ++++++++++++++++- binary/package.json | 5 +- binary/src/IpcMessenger.ts | 233 +- binary/src/TcpMessenger.ts | 5 + binary/src/index.ts | 1 + binary/test/binary.test.ts | 136 + binary/tsconfig.json | 5 +- core/autocomplete/lineStream.ts | 2 + core/autocomplete/templates.ts | 11 +- core/config/handler.ts | 5 +- core/config/load.ts | 3 +- core/core.ts | 1 + core/index.d.ts | 7 + core/jest.config.js | 23 +- core/llm/index.ts | 23 +- core/llm/llms/Ollama.ts | 21 +- core/llm/llms/index.ts | 2 +- core/package-lock.json | 2 +- core/package.json | 4 +- core/protocol/core.ts | 2 +- core/protocol/ide.ts | 2 +- core/protocol/ideWebview.ts | 6 - core/test/diff.test.ts | 2 +- core/test/llm.test.ts | 13 +- .../util/dedentAndGetCommonWhitespace.test.ts | 76 + core/test/util/getLastNPathParts.test.ts | 51 + core/test/util/lcs.test.ts | 40 + core/test/util/merge.test.ts | 100 + .../test/util/ranges/getRangeInString.test.ts | 105 + core/test/util/ranges/intersection.test.ts | 123 + core/test/util/ranges/maxMinPosition.test.ts | 70 + core/test/util/ranges/union.test.ts | 92 + core/util/devdataSqlite.ts | 4 +- core/util/fetchWithOptions.ts | 4 +- core/util/filesystem.ts | 22 +- core/util/index.ts | 26 +- core/util/messageIde.ts | 4 + core/util/paths.ts | 6 +- core/util/reverseMessageIde.ts | 191 + extensions/intellij/build.gradle.kts | 2 +- extensions/intellij/gradle.properties | 2 +- .../AutocompleteEditorListener.kt | 2 +- .../AutocompleteLookupListener.kt | 48 + .../autocomplete/AutocompleteService.kt | 18 + .../src/main/resources/META-INF/plugin.xml | 3 + extensions/vscode/package-lock.json | 2 +- extensions/vscode/package.json | 6 - extensions/vscode/src/commands.ts | 3 - .../vscode/src/extension/vscodeExtension.ts | 2 +- extensions/vscode/src/ideProtocol.ts | 8 +- gui/package-lock.json | 2 +- 58 files changed, 5568 insertions(+), 182 deletions(-) create mode 100644 .github/workflows/jetbrains-build.yaml create mode 100644 .github/workflows/jetbrains-release.yaml create mode 100644 .github/workflows/ts-check.yaml create mode 100644 .prompts/test.prompt create mode 100644 binary/jest.config.js create mode 100644 binary/test/binary.test.ts create mode 100644 core/test/util/dedentAndGetCommonWhitespace.test.ts create mode 100644 core/test/util/getLastNPathParts.test.ts create mode 100644 core/test/util/lcs.test.ts create mode 100644 core/test/util/merge.test.ts create mode 100644 core/test/util/ranges/getRangeInString.test.ts create mode 100644 core/test/util/ranges/intersection.test.ts create mode 100644 core/test/util/ranges/maxMinPosition.test.ts create mode 100644 core/test/util/ranges/union.test.ts create mode 100644 core/util/reverseMessageIde.ts create mode 100644 extensions/intellij/src/main/kotlin/com/github/continuedev/continueintellijextension/autocomplete/AutocompleteLookupListener.kt diff --git a/.github/workflows/jetbrains-build.yaml b/.github/workflows/jetbrains-build.yaml new file mode 100644 index 000000000..570196005 --- /dev/null +++ b/.github/workflows/jetbrains-build.yaml @@ -0,0 +1,448 @@ +# GitHub Actions Workflow is created for testing and preparing the plugin release in the following steps: +# - Validate Gradle Wrapper. +# - Run 'test' and 'verifyPlugin' tasks. +# - Run Qodana inspections. +# - Run the 'buildPlugin' task and prepare artifact for further tests. +# - Run the 'runPluginVerifier' task. +# - Create a draft release. +# +# The workflow is triggered on push and pull_request events. +# +# GitHub Actions reference: https://help.github.com/en/actions +# +## JBIJPPTPL + +name: Build +on: + # Trigger the workflow on pushes to only the 'main' branch (this avoids duplicate checks being run e.g., for dependabot pull requests) + push: + branches: [preview, main] + # Trigger the workflow on any pull request + # pull_request: + +concurrency: + group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }} + cancel-in-progress: true + +defaults: + run: + working-directory: ./extensions/intellij + +jobs: + # Prepare environment and build the plugin + build: + name: Build + runs-on: ubuntu-latest + outputs: + version: ${{ steps.properties.outputs.version }} + changelog: ${{ steps.properties.outputs.changelog }} + pluginVerifierHomeDir: ${{ steps.properties.outputs.pluginVerifierHomeDir }} + steps: + # Check out current repository + - name: Fetch Sources + uses: actions/checkout@v4 + + # Validate wrapper + - name: Gradle Wrapper Validation + uses: gradle/actions/wrapper-validation@v3 + + # Set up Java environment for the next steps + - name: Setup Java + uses: actions/setup-java@v4 + with: + distribution: zulu + java-version: 17 + + # Setup Gradle + - name: Setup Gradle + uses: gradle/actions/setup-gradle@v3 + with: + gradle-home-cache-cleanup: true + + # Set environment variables + - name: Export Properties + id: properties + shell: bash + run: | + PROPERTIES="$(./gradlew properties --console=plain -q)" + VERSION="$(echo "$PROPERTIES" | grep "^version:" | cut -f2- -d ' ')" + # CHANGELOG="$(./gradlew getChangelog --unreleased --no-header --console=plain -q)" + CHANGELOG="" + + echo "version=$VERSION" >> $GITHUB_OUTPUT + echo "pluginVerifierHomeDir=~/.pluginVerifier" >> $GITHUB_OUTPUT + + echo "changelog<> $GITHUB_OUTPUT + echo "$CHANGELOG" >> $GITHUB_OUTPUT + echo "EOF" >> $GITHUB_OUTPUT + + ./gradlew listProductsReleases # prepare list of IDEs for Plugin Verifier + + # Setup Node.js + - name: Use Node.js from .nvmrc + uses: actions/setup-node@v4 + with: + node-version-file: ".nvmrc" + + # Cache node_modules + - name: Cache core node_modules + uses: actions/cache@v3 + with: + path: core/node_modules + key: ${{ runner.os }}-node-${{ hashFiles('core/package-lock.json') }} + + - name: Cache binary node_modules + uses: actions/cache@v3 + with: + path: binary/node_modules + key: ${{ runner.os }}-node-${{ hashFiles('binary/package-lock.json') }} + + # npm install core + - name: Install core node_modules + run: | + cd ../../core + npm ci + + # npm install binary + - name: Install core node_modules + run: | + cd ../../binary + npm ci + + # Build binaries + - name: Install core node_modules + run: | + cd ../../binary + npm run build + + # Build plugin + - name: Build plugin + run: ./gradlew buildPlugin + + # Prepare plugin archive content for creating artifact + - name: Prepare Plugin Artifact + id: artifact + shell: bash + run: | + cd ${{ github.workspace }}/extensions/intellij/build/distributions + FILENAME=`ls *.zip` + unzip "$FILENAME" -d content + + echo "filename=${FILENAME:0:-4}" >> $GITHUB_OUTPUT + + # Store already-built plugin as an artifact for downloading + - name: Upload artifact + uses: actions/upload-artifact@v4 + with: + name: ${{ steps.artifact.outputs.filename }} + path: ./extensions/intellij/build/distributions/content/*/* + + # Upload binaries as artifacts + - name: Upload artifact (darwin-arm64) + uses: actions/upload-artifact@v4 + with: + name: continue-binary-darwin-arm64 + path: ./binary/bin/darwin-arm64/ + + - name: Upload artifact (darwin-x64) + uses: actions/upload-artifact@v4 + with: + name: continue-binary-darwin-x64 + path: ./binary/bin/darwin-x64/ + + - name: Upload artifact (win32-x64) + uses: actions/upload-artifact@v4 + with: + name: continue-binary-win32-x64 + path: ./binary/bin/win32-x64/ + + - name: Upload artifact (linux-arm64) + uses: actions/upload-artifact@v4 + with: + name: continue-binary-linux-arm64 + path: ./binary/bin/linux-arm64/ + + - name: Upload artifact (linux-x64) + uses: actions/upload-artifact@v4 + with: + name: continue-binary-linux-x64 + path: ./binary/bin/linux-x64/ + + test-binaries: + needs: build + strategy: + matrix: + include: + - os: windows-latest + platform: win32 + arch: x64 + npm_config_arch: x64 + - os: ubuntu-latest + platform: linux + arch: x64 + npm_config_arch: x64 + # arm64 not actually supported by GitHub + # - os: ubuntu-latest + # platform: linux + # arch: arm64 + # npm_config_arch: arm64 + - os: macos-12 + platform: darwin + arch: x64 + npm_config_arch: x64 + - os: macos-latest + platform: darwin + arch: arm64 + npm_config_arch: arm64 + runs-on: ${{ matrix.os }} + steps: + # 1. Check-out repository + - name: Check-out repository + uses: actions/checkout@v4 + + # 2. Install npm dependencies + - name: Use Node.js from .nvmrc + uses: actions/setup-node@v4 + with: + node-version-file: ".nvmrc" + + - name: Cache core node_modules + uses: actions/cache@v3 + with: + path: core/node_modules + key: ${{ runner.os }}-node-${{ hashFiles('core/package-lock.json') }} + + - name: Cache binary node_modules + uses: actions/cache@v3 + with: + path: binary/node_modules + key: ${{ runner.os }}-node-${{ hashFiles('binary/package-lock.json') }} + + - name: Install Core Dependencies + run: | + cd ../../core + npm ci + + - name: Install Binary Dependencies + run: | + cd ../../binary + npm ci + + # Download the binary artifact + - name: Download binary artifact + uses: actions/download-artifact@v4 + with: + name: continue-binary-${{ matrix.platform }}-${{ matrix.arch }} + path: ./binary/bin/${{ matrix.platform }}-${{ matrix.arch }}/ + + # Set execute permissions for the binary (non-Windows) + - name: Set execute permissions + run: | + cd ../../binary/bin/${{ matrix.platform }}-${{ matrix.arch }} + chmod +x continue-binary + chmod +x node_sqlite3.node + chmod +x index.node + chmod +x esbuild + if: ${{ matrix.platform }} != 'win32' + + - name: Copy node_sqlite3.node to necessary location + run: | + cd ../../binary + mkdir build + cp ./bin/${{ matrix.platform }}-${{ matrix.arch }}/node_sqlite3.node ./build/node_sqlite3.node + + # Run tests for binary + - name: Run binary tests + run: | + cd ../../binary + npm run test + + - name: Upload logs + if: ${{ always() }} + uses: actions/upload-artifact@v2 + with: + name: core-logs-${{ matrix.platform }}-${{ matrix.arch }} + path: binary/.continue/logs/core.log + + # Run tests and upload a code coverage report + test: + name: Test + needs: [build] + runs-on: ubuntu-latest + steps: + # Check out current repository + - name: Fetch Sources + uses: actions/checkout@v4 + + # Set up Java environment for the next steps + - name: Setup Java + uses: actions/setup-java@v4 + with: + distribution: zulu + java-version: 17 + + # Setup Gradle + - name: Setup Gradle + uses: gradle/actions/setup-gradle@v3 + with: + gradle-home-cache-cleanup: true + + # Run tests + - name: Run Tests + run: ./gradlew check + + # Collect Tests Result of failed tests + - name: Collect Tests Result + if: ${{ failure() }} + uses: actions/upload-artifact@v4 + with: + name: tests-result + path: ${{ github.workspace }}/extensions/intellij/build/reports/tests + + # Upload the Kover report to CodeCov + # - name: Upload Code Coverage Report + # uses: codecov/codecov-action@v4 + # with: + # files: ${{ github.workspace }}/build/reports/kover/report.xml + + # Run Qodana inspections and provide report + inspectCode: + if: false + name: Inspect code + needs: [build] + runs-on: ubuntu-latest + permissions: + contents: write + checks: write + pull-requests: write + steps: + # Free GitHub Actions Environment Disk Space + - name: Maximize Build Space + uses: jlumbroso/free-disk-space@main + with: + tool-cache: false + large-packages: false + + # Check out current repository + - name: Fetch Sources + uses: actions/checkout@v4 + + # Set up Java environment for the next steps + - name: Setup Java + uses: actions/setup-java@v4 + with: + distribution: zulu + java-version: 17 + + # Run Qodana inspections + - name: Qodana - Code Inspection + uses: JetBrains/qodana-action@v2024.1.5 + with: + cache-default-branch-only: true + + # Run plugin structure verification along with IntelliJ Plugin Verifier + verify: + name: Verify plugin + needs: [build] + runs-on: ubuntu-latest + steps: + # Free GitHub Actions Environment Disk Space + - name: Maximize Build Space + uses: jlumbroso/free-disk-space@main + with: + tool-cache: false + large-packages: false + + # Check out current repository + - name: Fetch Sources + uses: actions/checkout@v4 + + # Set up Java environment for the next steps + - name: Setup Java + uses: actions/setup-java@v4 + with: + distribution: zulu + java-version: 17 + + # Setup Gradle + - name: Setup Gradle + uses: gradle/actions/setup-gradle@v3 + with: + gradle-home-cache-cleanup: true + + # Cache Plugin Verifier IDEs + - name: Setup Plugin Verifier IDEs Cache + uses: actions/cache@v4 + with: + path: ${{ needs.build.outputs.pluginVerifierHomeDir }}/ides + key: plugin-verifier-${{ hashFiles('build/listProductsReleases.txt') }} + + # Run Verify Plugin task and IntelliJ Plugin Verifier tool + - name: Run Plugin Verification tasks + run: ./gradlew runPluginVerifier -Dplugin.verifier.home.dir=${{ needs.build.outputs.pluginVerifierHomeDir }} + + # Collect Plugin Verifier Result + - name: Collect Plugin Verifier Result + if: ${{ always() }} + uses: actions/upload-artifact@v4 + with: + name: pluginVerifier-result + path: ${{ github.workspace }}/build/reports/pluginVerifier + + # Prepare a draft release for GitHub Releases page for the manual verification + # If accepted and published, release workflow would be triggered + releaseDraft: + name: Release draft + if: github.event_name != 'pull_request' + needs: [build, test, test-binaries, verify] + runs-on: ubuntu-latest + permissions: + contents: write + steps: + # Check out current repository + - name: Fetch Sources + uses: actions/checkout@v4 + + - name: Set up Git + run: | + git config --local user.email "action@github.com" + git config --local user.name "GitHub Action" + + - name: Tag the repository + id: tag + run: | + # See https://docs.github.com/en/get-started/using-git/dealing-with-special-characters-in-branch-and-tag-names + TAG=v${{ needs.build.outputs.version }}-jetbrains + echo "$TAG" + echo "tag=$TAG" >> $GITHUB_OUTPUT + git tag -a $TAG -m "Published version $TAG" ${GITHUB_SHA} + git push origin $TAG + + # Remove old release drafts by using the curl request for the available releases with a draft flag + - name: Remove Old Release Drafts + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + run: | + gh api repos/{owner}/{repo}/releases \ + --jq '.[] | select(.draft == true) | .id' \ + | xargs -I '{}' gh api -X DELETE repos/{owner}/{repo}/releases/{} + + # Create a new release draft which is not publicly visible and requires manual acceptance + - name: Create Release Draft + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + run: | + gh release create "${{ steps.tag.outputs.tag }}" \ + --draft \ + --title "v${{ needs.build.outputs.version }}-jetbrains" \ + --notes "$(cat << 'EOM' + ${{ needs.build.outputs.changelog }} + EOM + )" + + # Download the Gradle build artifact + - name: Download Gradle build artifact + uses: actions/download-artifact@v4 + with: + name: ${{ needs.build.outputs.filename }} + path: ./artifacts diff --git a/.github/workflows/jetbrains-release.yaml b/.github/workflows/jetbrains-release.yaml new file mode 100644 index 000000000..8b4fec404 --- /dev/null +++ b/.github/workflows/jetbrains-release.yaml @@ -0,0 +1,142 @@ +# GitHub Actions Workflow created for handling the release process based on the draft release prepared with the Build workflow. +# Running the publishPlugin task requires all following secrets to be provided: PUBLISH_TOKEN, PRIVATE_KEY, PRIVATE_KEY_PASSWORD, CERTIFICATE_CHAIN. +# See https://plugins.jetbrains.com/docs/intellij/plugin-signing.html for more information. + +name: Release +on: + release: + types: [prereleased, released] + +defaults: + run: + working-directory: ./extensions/intellij + +jobs: + # Prepare and publish the plugin to JetBrains Marketplace repository + release: + name: Publish Plugin + runs-on: ubuntu-latest + permissions: + contents: write + pull-requests: write + steps: + # Check out current repository + - name: Fetch Sources + uses: actions/checkout@v4 + with: + ref: ${{ github.event.release.tag_name }} + + # Set up Java environment for the next steps + - name: Setup Java + uses: actions/setup-java@v4 + with: + distribution: zulu + java-version: 17 + + # Setup Gradle + - name: Setup Gradle + uses: gradle/actions/setup-gradle@v3 + with: + gradle-home-cache-cleanup: true + + # Set environment variables + - name: Export Properties + id: properties + shell: bash + run: | + CHANGELOG="$(cat << 'EOM' | sed -e 's/^[[:space:]]*$//g' -e '/./,$!d' + ${{ github.event.release.body }} + EOM + )" + + echo "changelog<> $GITHUB_OUTPUT + echo "$CHANGELOG" >> $GITHUB_OUTPUT + echo "EOF" >> $GITHUB_OUTPUT + + # Setup Node.js + - name: Use Node.js from .nvmrc + uses: actions/setup-node@v4 + with: + node-version-file: ".nvmrc" + + # Cache node_modules + - name: Cache core node_modules + uses: actions/cache@v3 + with: + path: core/node_modules + key: ${{ runner.os }}-node-${{ hashFiles('core/package-lock.json') }} + + - name: Cache binary node_modules + uses: actions/cache@v3 + with: + path: binary/node_modules + key: ${{ runner.os }}-node-${{ hashFiles('binary/package-lock.json') }} + + # npm install core + - name: Install core node_modules + run: | + cd ../../core + npm ci + + # npm install binary + - name: Install core node_modules + run: | + cd ../../binary + npm ci + + # Build binaries + - name: Install core node_modules + run: | + cd ../../binary + npm run build + + # Update Unreleased section with the current release note + - name: Patch Changelog + if: ${{ steps.properties.outputs.changelog != '' }} + env: + CHANGELOG: ${{ steps.properties.outputs.changelog }} + run: | + ./gradlew patchChangelog --release-note="$CHANGELOG" + + # Publish the plugin to JetBrains Marketplace + - name: Publish Plugin + env: + PUBLISH_TOKEN: ${{ secrets.JETBRAINS_PUBLISH_TOKEN }} + CERTIFICATE_CHAIN: ${{ secrets.JETBRAINS_CERTIFICATE_CHAIN }} + PRIVATE_KEY: ${{ secrets.JETBRAINS_PRIVATE_KEY }} + PRIVATE_KEY_PASSWORD: ${{ secrets.JETBRAINS_PRIVATE_KEY_PASSWORD }} + run: ./gradlew publishPlugin + + # Upload artifact as a release asset + - name: Upload Release Asset + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + run: gh release upload ${{ github.event.release.tag_name }} ./build/distributions/* + + # Create a pull request + - name: Create Pull Request + if: ${{ steps.properties.outputs.changelog != '' }} + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + run: | + VERSION="${{ github.event.release.tag_name }}" + BRANCH="changelog-update-$VERSION" + LABEL="release changelog" + + git config user.email "action@github.com" + git config user.name "GitHub Action" + + git checkout -b $BRANCH + git commit -am "Changelog update - $VERSION" + git push --set-upstream origin $BRANCH + + gh label create "$LABEL" \ + --description "Pull requests with release changelog update" \ + --force \ + || true + + gh pr create \ + --title "Changelog update - \`$VERSION\`" \ + --body "Current pull request contains patched \`CHANGELOG.md\` file for the \`$VERSION\` version." \ + --label "$LABEL" \ + --head $BRANCH diff --git a/.github/workflows/preview.yaml b/.github/workflows/preview.yaml index cfbc9b8bf..95e426f6f 100644 --- a/.github/workflows/preview.yaml +++ b/.github/workflows/preview.yaml @@ -90,6 +90,12 @@ jobs: cd core npm ci + # 2.25 Run core tests + - name: Run core tests + run: | + cd core + npm run test + # 2.5. Pre package - name: Set var for environment info shell: pwsh diff --git a/.github/workflows/ts-check.yaml b/.github/workflows/ts-check.yaml new file mode 100644 index 000000000..f0baf029d --- /dev/null +++ b/.github/workflows/ts-check.yaml @@ -0,0 +1,89 @@ +name: TypeScript Check + +on: + pull_request: + branches: + - main + - preview + +jobs: + tsc-check: + runs-on: ubuntu-latest + + steps: + # 1. Check-out repository + - name: Check-out repository + uses: actions/checkout@v4 + + # 2. Install npm dependencies + - name: Use Node.js from .nvmrc + uses: actions/setup-node@v4 + with: + node-version-file: ".nvmrc" + + - name: Cache extension node_modules + uses: actions/cache@v3 + with: + path: extensions/vscode/node_modules + key: ${{ runner.os }}-node-${{ hashFiles('extensions/vscode/package-lock.json') }} + + - name: Cache core node_modules + uses: actions/cache@v3 + with: + path: core/node_modules + key: ${{ runner.os }}-node-${{ hashFiles('core/package-lock.json') }} + + - name: Cache gui node_modules + uses: actions/cache@v3 + with: + path: gui/node_modules + key: ${{ runner.os }}-node-${{ hashFiles('gui/package-lock.json') }} + + - name: Cache binary node_modules + uses: actions/cache@v3 + with: + path: binary/node_modules + key: ${{ runner.os }}-node-${{ hashFiles('binary/package-lock.json') }} + + - name: Install extension Dependencies + run: | + cd extensions/vscode + npm ci + env: + # https://github.com/microsoft/vscode-ripgrep/issues/9#issuecomment-643965333 + GITHUB_TOKEN: ${{ secrets.CI_GITHUB_TOKEN }} + + - name: Install gui Dependencies + run: | + cd gui + npm ci + + - name: Install Core Dependencies + run: | + cd core + npm ci + + - name: Install Binary Dependencies + run: | + cd binary + npm ci + + - name: tsc core + run: | + cd core + npx tsc + + - name: tsc extensions/vscode + run: | + cd extensions/vscode + npx tsc + + - name: tsc binary + run: | + cd binary + npx tsc + + - name: tsc gui + run: | + cd gui + npx tsc diff --git a/.prompts/test.prompt b/.prompts/test.prompt new file mode 100644 index 000000000..e2f5d8662 --- /dev/null +++ b/.prompts/test.prompt @@ -0,0 +1,19 @@ +temperature: 0.5 +maxTokens: 4096 +name: jest +description: Write Jest unit tests +--- + +You are an expert programmer + + +{{{ input }}} + +Write unit tests for the above selected code, following each of these instructions: +- Use `jest` +- Properly set up and tear down +- Include important edge cases +- The tests should be complete and sophisticated +- Give the tests just as chat output, don't edit any file +- Don't explain how to set up `jest` +- Write a single code block, making sure to label with the language being used (e.g. "```typscript") \ No newline at end of file diff --git a/.vscode/launch.json b/.vscode/launch.json index f11b70528..c9085a951 100644 --- a/.vscode/launch.json +++ b/.vscode/launch.json @@ -18,7 +18,8 @@ "internalConsoleOptions": "openOnSessionStart", "cwd": "${workspaceFolder}/binary", "env": { - "CONTINUE_DEVELOPMENT": "true" + "CONTINUE_DEVELOPMENT": "true", + "CONTINUE_GLOBAL_DIR": "${workspaceFolder}/binary/.continue" } }, { diff --git a/binary/jest.config.js b/binary/jest.config.js new file mode 100644 index 000000000..e5d833a48 --- /dev/null +++ b/binary/jest.config.js @@ -0,0 +1,23 @@ +module.exports = { + roots: ["/test"], + transform: { + "^.+\\.ts?$": [ + "ts-jest", + { + useESM: true, + }, + ], + "^.+\\.js$": [ + "babel-jest", + { + presets: [["@babel/preset-env", { targets: { node: "current" } }]], + }, + ], + }, + moduleFileExtensions: ["ts", "tsx", "js", "jsx", "json", "node", ".d.ts"], + extensionsToTreatAsEsm: [".ts", ".d.ts"], + // Remove or comment out the moduleNameMapper configuration + moduleNameMapper: { + "^(.*)\\.js$": "$1", + }, +}; diff --git a/binary/package-lock.json b/binary/package-lock.json index 00a81d0a9..4ed57c259 100644 --- a/binary/package-lock.json +++ b/binary/package-lock.json @@ -28,11 +28,14 @@ "devDependencies": { "@biomejs/biome": "1.6.4", "@types/follow-redirects": "^1.14.4", + "@types/jest": "^29.5.12", "@types/uuid": "^9.0.8", "@vercel/ncc": "^0.38.1", "esbuild": "0.19.11", + "jest": "^29.7.0", "pkg": "^5.8.1", "rimraf": "^5.0.7", + "ts-jest": "^29.1.4", "typescript": "^5.3.3" } }, @@ -133,6 +136,19 @@ "node": ">=12.17" } }, + "node_modules/@ampproject/remapping": { + "version": "2.3.0", + "resolved": "https://registry.npmjs.org/@ampproject/remapping/-/remapping-2.3.0.tgz", + "integrity": "sha512-30iZtAPgz+LTIYoeivqYo853f02jBYSd5uGnGpkFV0M3xOt9aN73erkgYAmZU43x4VfqcnLxW9Kpg3R5LC4YYw==", + "dev": true, + "dependencies": { + "@jridgewell/gen-mapping": "^0.3.5", + "@jridgewell/trace-mapping": "^0.3.24" + }, + "engines": { + "node": ">=6.0.0" + } + }, "node_modules/@apache-arrow/ts": { "version": "14.0.2", "resolved": "https://registry.npmjs.org/@apache-arrow/ts/-/ts-14.0.2.tgz", @@ -151,6 +167,108 @@ "tslib": "^2.5.3" } }, + "node_modules/@babel/code-frame": { + "version": "7.24.7", + "resolved": "https://registry.npmjs.org/@babel/code-frame/-/code-frame-7.24.7.tgz", + "integrity": "sha512-BcYH1CVJBO9tvyIZ2jVeXgSIMvGZ2FDRvDdOIVQyuklNKSsx+eppDEBq/g47Ayw+RqNFE+URvOShmf+f/qwAlA==", + "dev": true, + "dependencies": { + "@babel/highlight": "^7.24.7", + "picocolors": "^1.0.0" + }, + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/@babel/compat-data": { + "version": "7.24.7", + "resolved": "https://registry.npmjs.org/@babel/compat-data/-/compat-data-7.24.7.tgz", + "integrity": "sha512-qJzAIcv03PyaWqxRgO4mSU3lihncDT296vnyuE2O8uA4w3UHWI4S3hgeZd1L8W1Bft40w9JxJ2b412iDUFFRhw==", + "dev": true, + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/@babel/core": { + "version": "7.24.7", + "resolved": "https://registry.npmjs.org/@babel/core/-/core-7.24.7.tgz", + "integrity": "sha512-nykK+LEK86ahTkX/3TgauT0ikKoNCfKHEaZYTUVupJdTLzGNvrblu4u6fa7DhZONAltdf8e662t/abY8idrd/g==", + "dev": true, + "dependencies": { + "@ampproject/remapping": "^2.2.0", + "@babel/code-frame": "^7.24.7", + "@babel/generator": "^7.24.7", + "@babel/helper-compilation-targets": "^7.24.7", + "@babel/helper-module-transforms": "^7.24.7", + "@babel/helpers": "^7.24.7", + "@babel/parser": "^7.24.7", + "@babel/template": "^7.24.7", + "@babel/traverse": "^7.24.7", + "@babel/types": "^7.24.7", + "convert-source-map": "^2.0.0", + "debug": "^4.1.0", + "gensync": "^1.0.0-beta.2", + "json5": "^2.2.3", + "semver": "^6.3.1" + }, + "engines": { + "node": ">=6.9.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/babel" + } + }, + "node_modules/@babel/core/node_modules/@babel/generator": { + "version": "7.24.7", + "resolved": "https://registry.npmjs.org/@babel/generator/-/generator-7.24.7.tgz", + "integrity": "sha512-oipXieGC3i45Y1A41t4tAqpnEZWgB/lC6Ehh6+rOviR5XWpTtMmLN+fGjz9vOiNRt0p6RtO6DtD0pdU3vpqdSA==", + "dev": true, + "dependencies": { + "@babel/types": "^7.24.7", + "@jridgewell/gen-mapping": "^0.3.5", + "@jridgewell/trace-mapping": "^0.3.25", + "jsesc": "^2.5.1" + }, + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/@babel/core/node_modules/@babel/parser": { + "version": "7.24.7", + "resolved": "https://registry.npmjs.org/@babel/parser/-/parser-7.24.7.tgz", + "integrity": "sha512-9uUYRm6OqQrCqQdG1iCBwBPZgN8ciDBro2nIOFaiRz1/BCxaI7CNvQbDHvsArAC7Tw9Hda/B3U+6ui9u4HWXPw==", + "dev": true, + "bin": { + "parser": "bin/babel-parser.js" + }, + "engines": { + "node": ">=6.0.0" + } + }, + "node_modules/@babel/core/node_modules/@babel/types": { + "version": "7.24.7", + "resolved": "https://registry.npmjs.org/@babel/types/-/types-7.24.7.tgz", + "integrity": "sha512-XEFXSlxiG5td2EJRe8vOmRbaXVgfcBlszKujvVmWIK/UpywWljQCfzAv3RQCGujWQ1RD4YYWEAqDXfuJiy8f5Q==", + "dev": true, + "dependencies": { + "@babel/helper-string-parser": "^7.24.7", + "@babel/helper-validator-identifier": "^7.24.7", + "to-fast-properties": "^2.0.0" + }, + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/@babel/core/node_modules/semver": { + "version": "6.3.1", + "resolved": "https://registry.npmjs.org/semver/-/semver-6.3.1.tgz", + "integrity": "sha512-BR7VvDCVHO+q2xBEWskxS6DJE1qRnb7DxzUrogb71CWoSficBxYsiAGd+Kl0mmq/MprG9yArRkyrQxTO6XjMzA==", + "dev": true, + "bin": { + "semver": "bin/semver.js" + } + }, "node_modules/@babel/generator": { "version": "7.18.2", "resolved": "https://registry.npmjs.org/@babel/generator/-/generator-7.18.2.tgz", @@ -165,24 +283,367 @@ "node": ">=6.9.0" } }, + "node_modules/@babel/helper-compilation-targets": { + "version": "7.24.7", + "resolved": "https://registry.npmjs.org/@babel/helper-compilation-targets/-/helper-compilation-targets-7.24.7.tgz", + "integrity": "sha512-ctSdRHBi20qWOfy27RUb4Fhp07KSJ3sXcuSvTrXrc4aG8NSYDo1ici3Vhg9bg69y5bj0Mr1lh0aeEgTvc12rMg==", + "dev": true, + "dependencies": { + "@babel/compat-data": "^7.24.7", + "@babel/helper-validator-option": "^7.24.7", + "browserslist": "^4.22.2", + "lru-cache": "^5.1.1", + "semver": "^6.3.1" + }, + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/@babel/helper-compilation-targets/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, + "dependencies": { + "yallist": "^3.0.2" + } + }, + "node_modules/@babel/helper-compilation-targets/node_modules/semver": { + "version": "6.3.1", + "resolved": "https://registry.npmjs.org/semver/-/semver-6.3.1.tgz", + "integrity": "sha512-BR7VvDCVHO+q2xBEWskxS6DJE1qRnb7DxzUrogb71CWoSficBxYsiAGd+Kl0mmq/MprG9yArRkyrQxTO6XjMzA==", + "dev": true, + "bin": { + "semver": "bin/semver.js" + } + }, + "node_modules/@babel/helper-environment-visitor": { + "version": "7.24.7", + "resolved": "https://registry.npmjs.org/@babel/helper-environment-visitor/-/helper-environment-visitor-7.24.7.tgz", + "integrity": "sha512-DoiN84+4Gnd0ncbBOM9AZENV4a5ZiL39HYMyZJGZ/AZEykHYdJw0wW3kdcsh9/Kn+BRXHLkkklZ51ecPKmI1CQ==", + "dev": true, + "dependencies": { + "@babel/types": "^7.24.7" + }, + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/@babel/helper-environment-visitor/node_modules/@babel/types": { + "version": "7.24.7", + "resolved": "https://registry.npmjs.org/@babel/types/-/types-7.24.7.tgz", + "integrity": "sha512-XEFXSlxiG5td2EJRe8vOmRbaXVgfcBlszKujvVmWIK/UpywWljQCfzAv3RQCGujWQ1RD4YYWEAqDXfuJiy8f5Q==", + "dev": true, + "dependencies": { + "@babel/helper-string-parser": "^7.24.7", + "@babel/helper-validator-identifier": "^7.24.7", + "to-fast-properties": "^2.0.0" + }, + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/@babel/helper-function-name": { + "version": "7.24.7", + "resolved": "https://registry.npmjs.org/@babel/helper-function-name/-/helper-function-name-7.24.7.tgz", + "integrity": "sha512-FyoJTsj/PEUWu1/TYRiXTIHc8lbw+TDYkZuoE43opPS5TrI7MyONBE1oNvfguEXAD9yhQRrVBnXdXzSLQl9XnA==", + "dev": true, + "dependencies": { + "@babel/template": "^7.24.7", + "@babel/types": "^7.24.7" + }, + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/@babel/helper-function-name/node_modules/@babel/types": { + "version": "7.24.7", + "resolved": "https://registry.npmjs.org/@babel/types/-/types-7.24.7.tgz", + "integrity": "sha512-XEFXSlxiG5td2EJRe8vOmRbaXVgfcBlszKujvVmWIK/UpywWljQCfzAv3RQCGujWQ1RD4YYWEAqDXfuJiy8f5Q==", + "dev": true, + "dependencies": { + "@babel/helper-string-parser": "^7.24.7", + "@babel/helper-validator-identifier": "^7.24.7", + "to-fast-properties": "^2.0.0" + }, + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/@babel/helper-hoist-variables": { + "version": "7.24.7", + "resolved": "https://registry.npmjs.org/@babel/helper-hoist-variables/-/helper-hoist-variables-7.24.7.tgz", + "integrity": "sha512-MJJwhkoGy5c4ehfoRyrJ/owKeMl19U54h27YYftT0o2teQ3FJ3nQUf/I3LlJsX4l3qlw7WRXUmiyajvHXoTubQ==", + "dev": true, + "dependencies": { + "@babel/types": "^7.24.7" + }, + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/@babel/helper-hoist-variables/node_modules/@babel/types": { + "version": "7.24.7", + "resolved": "https://registry.npmjs.org/@babel/types/-/types-7.24.7.tgz", + "integrity": "sha512-XEFXSlxiG5td2EJRe8vOmRbaXVgfcBlszKujvVmWIK/UpywWljQCfzAv3RQCGujWQ1RD4YYWEAqDXfuJiy8f5Q==", + "dev": true, + "dependencies": { + "@babel/helper-string-parser": "^7.24.7", + "@babel/helper-validator-identifier": "^7.24.7", + "to-fast-properties": "^2.0.0" + }, + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/@babel/helper-module-imports": { + "version": "7.24.7", + "resolved": "https://registry.npmjs.org/@babel/helper-module-imports/-/helper-module-imports-7.24.7.tgz", + "integrity": "sha512-8AyH3C+74cgCVVXow/myrynrAGv+nTVg5vKu2nZph9x7RcRwzmh0VFallJuFTZ9mx6u4eSdXZfcOzSqTUm0HCA==", + "dev": true, + "dependencies": { + "@babel/traverse": "^7.24.7", + "@babel/types": "^7.24.7" + }, + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/@babel/helper-module-imports/node_modules/@babel/types": { + "version": "7.24.7", + "resolved": "https://registry.npmjs.org/@babel/types/-/types-7.24.7.tgz", + "integrity": "sha512-XEFXSlxiG5td2EJRe8vOmRbaXVgfcBlszKujvVmWIK/UpywWljQCfzAv3RQCGujWQ1RD4YYWEAqDXfuJiy8f5Q==", + "dev": true, + "dependencies": { + "@babel/helper-string-parser": "^7.24.7", + "@babel/helper-validator-identifier": "^7.24.7", + "to-fast-properties": "^2.0.0" + }, + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/@babel/helper-module-transforms": { + "version": "7.24.7", + "resolved": "https://registry.npmjs.org/@babel/helper-module-transforms/-/helper-module-transforms-7.24.7.tgz", + "integrity": "sha512-1fuJEwIrp+97rM4RWdO+qrRsZlAeL1lQJoPqtCYWv0NL115XM93hIH4CSRln2w52SqvmY5hqdtauB6QFCDiZNQ==", + "dev": true, + "dependencies": { + "@babel/helper-environment-visitor": "^7.24.7", + "@babel/helper-module-imports": "^7.24.7", + "@babel/helper-simple-access": "^7.24.7", + "@babel/helper-split-export-declaration": "^7.24.7", + "@babel/helper-validator-identifier": "^7.24.7" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0" + } + }, + "node_modules/@babel/helper-plugin-utils": { + "version": "7.24.7", + "resolved": "https://registry.npmjs.org/@babel/helper-plugin-utils/-/helper-plugin-utils-7.24.7.tgz", + "integrity": "sha512-Rq76wjt7yz9AAc1KnlRKNAi/dMSVWgDRx43FHoJEbcYU6xOWaE2dVPwcdTukJrjxS65GITyfbvEYHvkirZ6uEg==", + "dev": true, + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/@babel/helper-simple-access": { + "version": "7.24.7", + "resolved": "https://registry.npmjs.org/@babel/helper-simple-access/-/helper-simple-access-7.24.7.tgz", + "integrity": "sha512-zBAIvbCMh5Ts+b86r/CjU+4XGYIs+R1j951gxI3KmmxBMhCg4oQMsv6ZXQ64XOm/cvzfU1FmoCyt6+owc5QMYg==", + "dev": true, + "dependencies": { + "@babel/traverse": "^7.24.7", + "@babel/types": "^7.24.7" + }, + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/@babel/helper-simple-access/node_modules/@babel/types": { + "version": "7.24.7", + "resolved": "https://registry.npmjs.org/@babel/types/-/types-7.24.7.tgz", + "integrity": "sha512-XEFXSlxiG5td2EJRe8vOmRbaXVgfcBlszKujvVmWIK/UpywWljQCfzAv3RQCGujWQ1RD4YYWEAqDXfuJiy8f5Q==", + "dev": true, + "dependencies": { + "@babel/helper-string-parser": "^7.24.7", + "@babel/helper-validator-identifier": "^7.24.7", + "to-fast-properties": "^2.0.0" + }, + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/@babel/helper-split-export-declaration": { + "version": "7.24.7", + "resolved": "https://registry.npmjs.org/@babel/helper-split-export-declaration/-/helper-split-export-declaration-7.24.7.tgz", + "integrity": "sha512-oy5V7pD+UvfkEATUKvIjvIAH/xCzfsFVw7ygW2SI6NClZzquT+mwdTfgfdbUiceh6iQO0CHtCPsyze/MZ2YbAA==", + "dev": true, + "dependencies": { + "@babel/types": "^7.24.7" + }, + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/@babel/helper-split-export-declaration/node_modules/@babel/types": { + "version": "7.24.7", + "resolved": "https://registry.npmjs.org/@babel/types/-/types-7.24.7.tgz", + "integrity": "sha512-XEFXSlxiG5td2EJRe8vOmRbaXVgfcBlszKujvVmWIK/UpywWljQCfzAv3RQCGujWQ1RD4YYWEAqDXfuJiy8f5Q==", + "dev": true, + "dependencies": { + "@babel/helper-string-parser": "^7.24.7", + "@babel/helper-validator-identifier": "^7.24.7", + "to-fast-properties": "^2.0.0" + }, + "engines": { + "node": ">=6.9.0" + } + }, "node_modules/@babel/helper-string-parser": { - "version": "7.24.1", - "resolved": "https://registry.npmjs.org/@babel/helper-string-parser/-/helper-string-parser-7.24.1.tgz", - "integrity": "sha512-2ofRCjnnA9y+wk8b9IAREroeUP02KHp431N2mhKniy2yKIDKpbrHv9eXwm8cBeWQYcJmzv5qKCu65P47eCF7CQ==", + "version": "7.24.7", + "resolved": "https://registry.npmjs.org/@babel/helper-string-parser/-/helper-string-parser-7.24.7.tgz", + "integrity": "sha512-7MbVt6xrwFQbunH2DNQsAP5sTGxfqQtErvBIvIMi6EQnbgUOuVYanvREcmFrOPhoXBrTtjhhP+lW+o5UfK+tDg==", "dev": true, "engines": { "node": ">=6.9.0" } }, "node_modules/@babel/helper-validator-identifier": { - "version": "7.24.5", - "resolved": "https://registry.npmjs.org/@babel/helper-validator-identifier/-/helper-validator-identifier-7.24.5.tgz", - "integrity": "sha512-3q93SSKX2TWCG30M2G2kwaKeTYgEUp5Snjuj8qm729SObL6nbtUldAi37qbxkD5gg3xnBio+f9nqpSepGZMvxA==", + "version": "7.24.7", + "resolved": "https://registry.npmjs.org/@babel/helper-validator-identifier/-/helper-validator-identifier-7.24.7.tgz", + "integrity": "sha512-rR+PBcQ1SMQDDyF6X0wxtG8QyLCgUB0eRAGguqRLfkCA87l7yAP7ehq8SNj96OOGTO8OBV70KhuFYcIkHXOg0w==", "dev": true, "engines": { "node": ">=6.9.0" } }, + "node_modules/@babel/helper-validator-option": { + "version": "7.24.7", + "resolved": "https://registry.npmjs.org/@babel/helper-validator-option/-/helper-validator-option-7.24.7.tgz", + "integrity": "sha512-yy1/KvjhV/ZCL+SM7hBrvnZJ3ZuT9OuZgIJAGpPEToANvc3iM6iDvBnRjtElWibHU6n8/LPR/EjX9EtIEYO3pw==", + "dev": true, + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/@babel/helpers": { + "version": "7.24.7", + "resolved": "https://registry.npmjs.org/@babel/helpers/-/helpers-7.24.7.tgz", + "integrity": "sha512-NlmJJtvcw72yRJRcnCmGvSi+3jDEg8qFu3z0AFoymmzLx5ERVWyzd9kVXr7Th9/8yIJi2Zc6av4Tqz3wFs8QWg==", + "dev": true, + "dependencies": { + "@babel/template": "^7.24.7", + "@babel/types": "^7.24.7" + }, + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/@babel/helpers/node_modules/@babel/types": { + "version": "7.24.7", + "resolved": "https://registry.npmjs.org/@babel/types/-/types-7.24.7.tgz", + "integrity": "sha512-XEFXSlxiG5td2EJRe8vOmRbaXVgfcBlszKujvVmWIK/UpywWljQCfzAv3RQCGujWQ1RD4YYWEAqDXfuJiy8f5Q==", + "dev": true, + "dependencies": { + "@babel/helper-string-parser": "^7.24.7", + "@babel/helper-validator-identifier": "^7.24.7", + "to-fast-properties": "^2.0.0" + }, + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/@babel/highlight": { + "version": "7.24.7", + "resolved": "https://registry.npmjs.org/@babel/highlight/-/highlight-7.24.7.tgz", + "integrity": "sha512-EStJpq4OuY8xYfhGVXngigBJRWxftKX9ksiGDnmlY3o7B/V7KIAc9X4oiK87uPJSc/vs5L869bem5fhZa8caZw==", + "dev": true, + "dependencies": { + "@babel/helper-validator-identifier": "^7.24.7", + "chalk": "^2.4.2", + "js-tokens": "^4.0.0", + "picocolors": "^1.0.0" + }, + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/@babel/highlight/node_modules/ansi-styles": { + "version": "3.2.1", + "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-3.2.1.tgz", + "integrity": "sha512-VT0ZI6kZRdTh8YyJw3SMbYm/u+NqfsAxEpWO0Pf9sq8/e94WxxOpPKx9FR1FlyCtOVDNOQ+8ntlqFxiRc+r5qA==", + "dev": true, + "dependencies": { + "color-convert": "^1.9.0" + }, + "engines": { + "node": ">=4" + } + }, + "node_modules/@babel/highlight/node_modules/chalk": { + "version": "2.4.2", + "resolved": "https://registry.npmjs.org/chalk/-/chalk-2.4.2.tgz", + "integrity": "sha512-Mti+f9lpJNcwF4tWV8/OrTTtF1gZi+f8FqlyAdouralcFWFQWF2+NgCHShjkCb+IFBLq9buZwE1xckQU4peSuQ==", + "dev": true, + "dependencies": { + "ansi-styles": "^3.2.1", + "escape-string-regexp": "^1.0.5", + "supports-color": "^5.3.0" + }, + "engines": { + "node": ">=4" + } + }, + "node_modules/@babel/highlight/node_modules/color-convert": { + "version": "1.9.3", + "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-1.9.3.tgz", + "integrity": "sha512-QfAUtd+vFdAtFQcC8CCyYt1fYWxSqAiK2cSD6zDB8N3cpsEBAvRxp9zOGg6G/SHHJYAT88/az/IuDGALsNVbGg==", + "dev": true, + "dependencies": { + "color-name": "1.1.3" + } + }, + "node_modules/@babel/highlight/node_modules/color-name": { + "version": "1.1.3", + "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.3.tgz", + "integrity": "sha512-72fSenhMw2HZMTVHeCA9KCmpEIbzWiQsjN+BHcBbS9vr1mtt+vJjPdksIBNUmKAW8TFUDPJK5SUU3QhE9NEXDw==", + "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, + "engines": { + "node": ">=0.8.0" + } + }, + "node_modules/@babel/highlight/node_modules/has-flag": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-3.0.0.tgz", + "integrity": "sha512-sKJf1+ceQBr4SMkvQnBDNDtf4TXpVhVGateu0t918bl30FnbE2m4vNLX+VWe/dpjlb+HugGYzW7uQXH98HPEYw==", + "dev": true, + "engines": { + "node": ">=4" + } + }, + "node_modules/@babel/highlight/node_modules/supports-color": { + "version": "5.5.0", + "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-5.5.0.tgz", + "integrity": "sha512-QjVjwdXIt408MIiAqCX4oUKsgU2EqAGzs2Ppkm4aQYbjm+ZEWEcW4SfFNTr4uMNZma0ey4f5lgLrkB0aX0QMow==", + "dev": true, + "dependencies": { + "has-flag": "^3.0.0" + }, + "engines": { + "node": ">=4" + } + }, "node_modules/@babel/parser": { "version": "7.18.4", "resolved": "https://registry.npmjs.org/@babel/parser/-/parser-7.18.4.tgz", @@ -195,6 +656,285 @@ "node": ">=6.0.0" } }, + "node_modules/@babel/plugin-syntax-async-generators": { + "version": "7.8.4", + "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-async-generators/-/plugin-syntax-async-generators-7.8.4.tgz", + "integrity": "sha512-tycmZxkGfZaxhMRbXlPXuVFpdWlXpir2W4AMhSJgRKzk/eDlIXOhb2LHWoLpDF7TEHylV5zNhykX6KAgHJmTNw==", + "dev": true, + "dependencies": { + "@babel/helper-plugin-utils": "^7.8.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-syntax-bigint": { + "version": "7.8.3", + "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, + "dependencies": { + "@babel/helper-plugin-utils": "^7.8.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-syntax-class-properties": { + "version": "7.12.13", + "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-class-properties/-/plugin-syntax-class-properties-7.12.13.tgz", + "integrity": "sha512-fm4idjKla0YahUNgFNLCB0qySdsoPiZP3iQE3rky0mBUtMZ23yDJ9SJdg6dXTSDnulOVqiF3Hgr9nbXvXTQZYA==", + "dev": true, + "dependencies": { + "@babel/helper-plugin-utils": "^7.12.13" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-syntax-import-meta": { + "version": "7.10.4", + "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, + "dependencies": { + "@babel/helper-plugin-utils": "^7.10.4" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-syntax-json-strings": { + "version": "7.8.3", + "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, + "dependencies": { + "@babel/helper-plugin-utils": "^7.8.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-syntax-jsx": { + "version": "7.24.7", + "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-jsx/-/plugin-syntax-jsx-7.24.7.tgz", + "integrity": "sha512-6ddciUPe/mpMnOKv/U+RSd2vvVy+Yw/JfBB0ZHYjEZt9NLHmCUylNYlsbqCCS1Bffjlb0fCwC9Vqz+sBz6PsiQ==", + "dev": true, + "dependencies": { + "@babel/helper-plugin-utils": "^7.24.7" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-syntax-logical-assignment-operators": { + "version": "7.10.4", + "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, + "dependencies": { + "@babel/helper-plugin-utils": "^7.10.4" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-syntax-nullish-coalescing-operator": { + "version": "7.8.3", + "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, + "dependencies": { + "@babel/helper-plugin-utils": "^7.8.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-syntax-numeric-separator": { + "version": "7.10.4", + "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, + "dependencies": { + "@babel/helper-plugin-utils": "^7.10.4" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-syntax-object-rest-spread": { + "version": "7.8.3", + "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, + "dependencies": { + "@babel/helper-plugin-utils": "^7.8.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-syntax-optional-catch-binding": { + "version": "7.8.3", + "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, + "dependencies": { + "@babel/helper-plugin-utils": "^7.8.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-syntax-optional-chaining": { + "version": "7.8.3", + "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, + "dependencies": { + "@babel/helper-plugin-utils": "^7.8.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-syntax-top-level-await": { + "version": "7.14.5", + "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, + "dependencies": { + "@babel/helper-plugin-utils": "^7.14.5" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-syntax-typescript": { + "version": "7.24.7", + "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-typescript/-/plugin-syntax-typescript-7.24.7.tgz", + "integrity": "sha512-c/+fVeJBB0FeKsFvwytYiUD+LBvhHjGSI0g446PRGdSVGZLRNArBUno2PETbAly3tpiNAQR5XaZ+JslxkotsbA==", + "dev": true, + "dependencies": { + "@babel/helper-plugin-utils": "^7.24.7" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/template": { + "version": "7.24.7", + "resolved": "https://registry.npmjs.org/@babel/template/-/template-7.24.7.tgz", + "integrity": "sha512-jYqfPrU9JTF0PmPy1tLYHW4Mp4KlgxJD9l2nP9fD6yT/ICi554DmrWBAEYpIelzjHf1msDP3PxJIRt/nFNfBig==", + "dev": true, + "dependencies": { + "@babel/code-frame": "^7.24.7", + "@babel/parser": "^7.24.7", + "@babel/types": "^7.24.7" + }, + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/@babel/template/node_modules/@babel/parser": { + "version": "7.24.7", + "resolved": "https://registry.npmjs.org/@babel/parser/-/parser-7.24.7.tgz", + "integrity": "sha512-9uUYRm6OqQrCqQdG1iCBwBPZgN8ciDBro2nIOFaiRz1/BCxaI7CNvQbDHvsArAC7Tw9Hda/B3U+6ui9u4HWXPw==", + "dev": true, + "bin": { + "parser": "bin/babel-parser.js" + }, + "engines": { + "node": ">=6.0.0" + } + }, + "node_modules/@babel/template/node_modules/@babel/types": { + "version": "7.24.7", + "resolved": "https://registry.npmjs.org/@babel/types/-/types-7.24.7.tgz", + "integrity": "sha512-XEFXSlxiG5td2EJRe8vOmRbaXVgfcBlszKujvVmWIK/UpywWljQCfzAv3RQCGujWQ1RD4YYWEAqDXfuJiy8f5Q==", + "dev": true, + "dependencies": { + "@babel/helper-string-parser": "^7.24.7", + "@babel/helper-validator-identifier": "^7.24.7", + "to-fast-properties": "^2.0.0" + }, + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/@babel/traverse": { + "version": "7.24.7", + "resolved": "https://registry.npmjs.org/@babel/traverse/-/traverse-7.24.7.tgz", + "integrity": "sha512-yb65Ed5S/QAcewNPh0nZczy9JdYXkkAbIsEo+P7BE7yO3txAY30Y/oPa3QkQ5It3xVG2kpKMg9MsdxZaO31uKA==", + "dev": true, + "dependencies": { + "@babel/code-frame": "^7.24.7", + "@babel/generator": "^7.24.7", + "@babel/helper-environment-visitor": "^7.24.7", + "@babel/helper-function-name": "^7.24.7", + "@babel/helper-hoist-variables": "^7.24.7", + "@babel/helper-split-export-declaration": "^7.24.7", + "@babel/parser": "^7.24.7", + "@babel/types": "^7.24.7", + "debug": "^4.3.1", + "globals": "^11.1.0" + }, + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/@babel/traverse/node_modules/@babel/generator": { + "version": "7.24.7", + "resolved": "https://registry.npmjs.org/@babel/generator/-/generator-7.24.7.tgz", + "integrity": "sha512-oipXieGC3i45Y1A41t4tAqpnEZWgB/lC6Ehh6+rOviR5XWpTtMmLN+fGjz9vOiNRt0p6RtO6DtD0pdU3vpqdSA==", + "dev": true, + "dependencies": { + "@babel/types": "^7.24.7", + "@jridgewell/gen-mapping": "^0.3.5", + "@jridgewell/trace-mapping": "^0.3.25", + "jsesc": "^2.5.1" + }, + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/@babel/traverse/node_modules/@babel/parser": { + "version": "7.24.7", + "resolved": "https://registry.npmjs.org/@babel/parser/-/parser-7.24.7.tgz", + "integrity": "sha512-9uUYRm6OqQrCqQdG1iCBwBPZgN8ciDBro2nIOFaiRz1/BCxaI7CNvQbDHvsArAC7Tw9Hda/B3U+6ui9u4HWXPw==", + "dev": true, + "bin": { + "parser": "bin/babel-parser.js" + }, + "engines": { + "node": ">=6.0.0" + } + }, + "node_modules/@babel/traverse/node_modules/@babel/types": { + "version": "7.24.7", + "resolved": "https://registry.npmjs.org/@babel/types/-/types-7.24.7.tgz", + "integrity": "sha512-XEFXSlxiG5td2EJRe8vOmRbaXVgfcBlszKujvVmWIK/UpywWljQCfzAv3RQCGujWQ1RD4YYWEAqDXfuJiy8f5Q==", + "dev": true, + "dependencies": { + "@babel/helper-string-parser": "^7.24.7", + "@babel/helper-validator-identifier": "^7.24.7", + "to-fast-properties": "^2.0.0" + }, + "engines": { + "node": ">=6.9.0" + } + }, "node_modules/@babel/types": { "version": "7.19.0", "resolved": "https://registry.npmjs.org/@babel/types/-/types-7.19.0.tgz", @@ -209,6 +949,12 @@ "node": ">=6.9.0" } }, + "node_modules/@bcoe/v8-coverage": { + "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/@biomejs/biome": { "version": "1.6.4", "resolved": "https://registry.npmjs.org/@biomejs/biome/-/biome-1.6.4.tgz", @@ -749,6 +1495,394 @@ "node": ">=12" } }, + "node_modules/@istanbuljs/load-nyc-config": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/@istanbuljs/load-nyc-config/-/load-nyc-config-1.1.0.tgz", + "integrity": "sha512-VjeHSlIzpv/NyD3N0YuHfXOPDIixcA1q2ZV98wsMqcYlPmv2n3Yb2lYP9XMElnaFVXg5A7YLTeLu6V84uQDjmQ==", + "dev": true, + "dependencies": { + "camelcase": "^5.3.1", + "find-up": "^4.1.0", + "get-package-type": "^0.1.0", + "js-yaml": "^3.13.1", + "resolve-from": "^5.0.0" + }, + "engines": { + "node": ">=8" + } + }, + "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, + "engines": { + "node": ">=8" + } + }, + "node_modules/@jest/console": { + "version": "29.7.0", + "resolved": "https://registry.npmjs.org/@jest/console/-/console-29.7.0.tgz", + "integrity": "sha512-5Ni4CU7XHQi32IJ398EEP4RrB8eV09sXP2ROqD4bksHrnTree52PsxvX8tpL8LvTZ3pFzXyPbNQReSN41CAhOg==", + "dev": true, + "dependencies": { + "@jest/types": "^29.6.3", + "@types/node": "*", + "chalk": "^4.0.0", + "jest-message-util": "^29.7.0", + "jest-util": "^29.7.0", + "slash": "^3.0.0" + }, + "engines": { + "node": "^14.15.0 || ^16.10.0 || >=18.0.0" + } + }, + "node_modules/@jest/core": { + "version": "29.7.0", + "resolved": "https://registry.npmjs.org/@jest/core/-/core-29.7.0.tgz", + "integrity": "sha512-n7aeXWKMnGtDA48y8TLWJPJmLmmZ642Ceo78cYWEpiD7FzDgmNDV/GCVRorPABdXLJZ/9wzzgZAlHjXjxDHGsg==", + "dev": true, + "dependencies": { + "@jest/console": "^29.7.0", + "@jest/reporters": "^29.7.0", + "@jest/test-result": "^29.7.0", + "@jest/transform": "^29.7.0", + "@jest/types": "^29.6.3", + "@types/node": "*", + "ansi-escapes": "^4.2.1", + "chalk": "^4.0.0", + "ci-info": "^3.2.0", + "exit": "^0.1.2", + "graceful-fs": "^4.2.9", + "jest-changed-files": "^29.7.0", + "jest-config": "^29.7.0", + "jest-haste-map": "^29.7.0", + "jest-message-util": "^29.7.0", + "jest-regex-util": "^29.6.3", + "jest-resolve": "^29.7.0", + "jest-resolve-dependencies": "^29.7.0", + "jest-runner": "^29.7.0", + "jest-runtime": "^29.7.0", + "jest-snapshot": "^29.7.0", + "jest-util": "^29.7.0", + "jest-validate": "^29.7.0", + "jest-watcher": "^29.7.0", + "micromatch": "^4.0.4", + "pretty-format": "^29.7.0", + "slash": "^3.0.0", + "strip-ansi": "^6.0.0" + }, + "engines": { + "node": "^14.15.0 || ^16.10.0 || >=18.0.0" + }, + "peerDependencies": { + "node-notifier": "^8.0.1 || ^9.0.0 || ^10.0.0" + }, + "peerDependenciesMeta": { + "node-notifier": { + "optional": true + } + } + }, + "node_modules/@jest/core/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==", + "dev": true, + "engines": { + "node": ">=8" + } + }, + "node_modules/@jest/core/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==", + "dev": true, + "dependencies": { + "ansi-regex": "^5.0.1" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/@jest/environment": { + "version": "29.7.0", + "resolved": "https://registry.npmjs.org/@jest/environment/-/environment-29.7.0.tgz", + "integrity": "sha512-aQIfHDq33ExsN4jP1NWGXhxgQ/wixs60gDiKO+XVMd8Mn0NWPWgc34ZQDTb2jKaUWQ7MuwoitXAsN2XVXNMpAw==", + "dev": true, + "dependencies": { + "@jest/fake-timers": "^29.7.0", + "@jest/types": "^29.6.3", + "@types/node": "*", + "jest-mock": "^29.7.0" + }, + "engines": { + "node": "^14.15.0 || ^16.10.0 || >=18.0.0" + } + }, + "node_modules/@jest/expect": { + "version": "29.7.0", + "resolved": "https://registry.npmjs.org/@jest/expect/-/expect-29.7.0.tgz", + "integrity": "sha512-8uMeAMycttpva3P1lBHB8VciS9V0XAr3GymPpipdyQXbBcuhkLQOSe8E/p92RyAdToS6ZD1tFkX+CkhoECE0dQ==", + "dev": true, + "dependencies": { + "expect": "^29.7.0", + "jest-snapshot": "^29.7.0" + }, + "engines": { + "node": "^14.15.0 || ^16.10.0 || >=18.0.0" + } + }, + "node_modules/@jest/expect-utils": { + "version": "29.7.0", + "resolved": "https://registry.npmjs.org/@jest/expect-utils/-/expect-utils-29.7.0.tgz", + "integrity": "sha512-GlsNBWiFQFCVi9QVSx7f5AgMeLxe9YCCs5PuP2O2LdjDAA8Jh9eX7lA1Jq/xdXw3Wb3hyvlFNfZIfcRetSzYcA==", + "dev": true, + "dependencies": { + "jest-get-type": "^29.6.3" + }, + "engines": { + "node": "^14.15.0 || ^16.10.0 || >=18.0.0" + } + }, + "node_modules/@jest/fake-timers": { + "version": "29.7.0", + "resolved": "https://registry.npmjs.org/@jest/fake-timers/-/fake-timers-29.7.0.tgz", + "integrity": "sha512-q4DH1Ha4TTFPdxLsqDXK1d3+ioSL7yL5oCMJZgDYm6i+6CygW5E5xVr/D1HdsGxjt1ZWSfUAs9OxSB/BNelWrQ==", + "dev": true, + "dependencies": { + "@jest/types": "^29.6.3", + "@sinonjs/fake-timers": "^10.0.2", + "@types/node": "*", + "jest-message-util": "^29.7.0", + "jest-mock": "^29.7.0", + "jest-util": "^29.7.0" + }, + "engines": { + "node": "^14.15.0 || ^16.10.0 || >=18.0.0" + } + }, + "node_modules/@jest/globals": { + "version": "29.7.0", + "resolved": "https://registry.npmjs.org/@jest/globals/-/globals-29.7.0.tgz", + "integrity": "sha512-mpiz3dutLbkW2MNFubUGUEVLkTGiqW6yLVTA+JbP6fI6J5iL9Y0Nlg8k95pcF8ctKwCS7WVxteBs29hhfAotzQ==", + "dev": true, + "dependencies": { + "@jest/environment": "^29.7.0", + "@jest/expect": "^29.7.0", + "@jest/types": "^29.6.3", + "jest-mock": "^29.7.0" + }, + "engines": { + "node": "^14.15.0 || ^16.10.0 || >=18.0.0" + } + }, + "node_modules/@jest/reporters": { + "version": "29.7.0", + "resolved": "https://registry.npmjs.org/@jest/reporters/-/reporters-29.7.0.tgz", + "integrity": "sha512-DApq0KJbJOEzAFYjHADNNxAE3KbhxQB1y5Kplb5Waqw6zVbuWatSnMjE5gs8FUgEPmNsnZA3NCWl9NG0ia04Pg==", + "dev": true, + "dependencies": { + "@bcoe/v8-coverage": "^0.2.3", + "@jest/console": "^29.7.0", + "@jest/test-result": "^29.7.0", + "@jest/transform": "^29.7.0", + "@jest/types": "^29.6.3", + "@jridgewell/trace-mapping": "^0.3.18", + "@types/node": "*", + "chalk": "^4.0.0", + "collect-v8-coverage": "^1.0.0", + "exit": "^0.1.2", + "glob": "^7.1.3", + "graceful-fs": "^4.2.9", + "istanbul-lib-coverage": "^3.0.0", + "istanbul-lib-instrument": "^6.0.0", + "istanbul-lib-report": "^3.0.0", + "istanbul-lib-source-maps": "^4.0.0", + "istanbul-reports": "^3.1.3", + "jest-message-util": "^29.7.0", + "jest-util": "^29.7.0", + "jest-worker": "^29.7.0", + "slash": "^3.0.0", + "string-length": "^4.0.1", + "strip-ansi": "^6.0.0", + "v8-to-istanbul": "^9.0.1" + }, + "engines": { + "node": "^14.15.0 || ^16.10.0 || >=18.0.0" + }, + "peerDependencies": { + "node-notifier": "^8.0.1 || ^9.0.0 || ^10.0.0" + }, + "peerDependenciesMeta": { + "node-notifier": { + "optional": true + } + } + }, + "node_modules/@jest/reporters/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==", + "dev": true, + "engines": { + "node": ">=8" + } + }, + "node_modules/@jest/reporters/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==", + "dev": true, + "dependencies": { + "balanced-match": "^1.0.0", + "concat-map": "0.0.1" + } + }, + "node_modules/@jest/reporters/node_modules/glob": { + "version": "7.2.3", + "resolved": "https://registry.npmjs.org/glob/-/glob-7.2.3.tgz", + "integrity": "sha512-nFR0zLpU2YCaRxwoCJvL6UvCH2JFyFVIvwTLsIf21AuHlMskA1hhTdk+LlYJtOlYt9v6dvszD2BGRqBL+iQK9Q==", + "deprecated": "Glob versions prior to v9 are no longer supported", + "dev": true, + "dependencies": { + "fs.realpath": "^1.0.0", + "inflight": "^1.0.4", + "inherits": "2", + "minimatch": "^3.1.1", + "once": "^1.3.0", + "path-is-absolute": "^1.0.0" + }, + "engines": { + "node": "*" + }, + "funding": { + "url": "https://github.com/sponsors/isaacs" + } + }, + "node_modules/@jest/reporters/node_modules/minimatch": { + "version": "3.1.2", + "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-3.1.2.tgz", + "integrity": "sha512-J7p63hRiAjw1NDEww1W7i37+ByIrOWO5XQQAzZ3VOcL0PNybwpfmV/N05zFAzwQ9USyEcX6t3UO+K5aqBQOIHw==", + "dev": true, + "dependencies": { + "brace-expansion": "^1.1.7" + }, + "engines": { + "node": "*" + } + }, + "node_modules/@jest/reporters/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==", + "dev": true, + "dependencies": { + "ansi-regex": "^5.0.1" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/@jest/schemas": { + "version": "29.6.3", + "resolved": "https://registry.npmjs.org/@jest/schemas/-/schemas-29.6.3.tgz", + "integrity": "sha512-mo5j5X+jIZmJQveBKeS/clAueipV7KgiX1vMgCxam1RNYiqE1w62n0/tJJnHtjW8ZHcQco5gY85jA3mi0L+nSA==", + "dev": true, + "dependencies": { + "@sinclair/typebox": "^0.27.8" + }, + "engines": { + "node": "^14.15.0 || ^16.10.0 || >=18.0.0" + } + }, + "node_modules/@jest/source-map": { + "version": "29.6.3", + "resolved": "https://registry.npmjs.org/@jest/source-map/-/source-map-29.6.3.tgz", + "integrity": "sha512-MHjT95QuipcPrpLM+8JMSzFx6eHp5Bm+4XeFDJlwsvVBjmKNiIAvasGK2fxz2WbGRlnvqehFbh07MMa7n3YJnw==", + "dev": true, + "dependencies": { + "@jridgewell/trace-mapping": "^0.3.18", + "callsites": "^3.0.0", + "graceful-fs": "^4.2.9" + }, + "engines": { + "node": "^14.15.0 || ^16.10.0 || >=18.0.0" + } + }, + "node_modules/@jest/test-result": { + "version": "29.7.0", + "resolved": "https://registry.npmjs.org/@jest/test-result/-/test-result-29.7.0.tgz", + "integrity": "sha512-Fdx+tv6x1zlkJPcWXmMDAG2HBnaR9XPSd5aDWQVsfrZmLVT3lU1cwyxLgRmXR9yrq4NBoEm9BMsfgFzTQAbJYA==", + "dev": true, + "dependencies": { + "@jest/console": "^29.7.0", + "@jest/types": "^29.6.3", + "@types/istanbul-lib-coverage": "^2.0.0", + "collect-v8-coverage": "^1.0.0" + }, + "engines": { + "node": "^14.15.0 || ^16.10.0 || >=18.0.0" + } + }, + "node_modules/@jest/test-sequencer": { + "version": "29.7.0", + "resolved": "https://registry.npmjs.org/@jest/test-sequencer/-/test-sequencer-29.7.0.tgz", + "integrity": "sha512-GQwJ5WZVrKnOJuiYiAF52UNUJXgTZx1NHjFSEB0qEMmSZKAkdMoIzw/Cj6x6NF4AvV23AUqDpFzQkN/eYCYTxw==", + "dev": true, + "dependencies": { + "@jest/test-result": "^29.7.0", + "graceful-fs": "^4.2.9", + "jest-haste-map": "^29.7.0", + "slash": "^3.0.0" + }, + "engines": { + "node": "^14.15.0 || ^16.10.0 || >=18.0.0" + } + }, + "node_modules/@jest/transform": { + "version": "29.7.0", + "resolved": "https://registry.npmjs.org/@jest/transform/-/transform-29.7.0.tgz", + "integrity": "sha512-ok/BTPFzFKVMwO5eOHRrvnBVHdRy9IrsrW1GpMaQ9MCnilNLXQKmAX8s1YXDFaai9xJpac2ySzV0YeRRECr2Vw==", + "dev": true, + "dependencies": { + "@babel/core": "^7.11.6", + "@jest/types": "^29.6.3", + "@jridgewell/trace-mapping": "^0.3.18", + "babel-plugin-istanbul": "^6.1.1", + "chalk": "^4.0.0", + "convert-source-map": "^2.0.0", + "fast-json-stable-stringify": "^2.1.0", + "graceful-fs": "^4.2.9", + "jest-haste-map": "^29.7.0", + "jest-regex-util": "^29.6.3", + "jest-util": "^29.7.0", + "micromatch": "^4.0.4", + "pirates": "^4.0.4", + "slash": "^3.0.0", + "write-file-atomic": "^4.0.2" + }, + "engines": { + "node": "^14.15.0 || ^16.10.0 || >=18.0.0" + } + }, + "node_modules/@jest/types": { + "version": "29.6.3", + "resolved": "https://registry.npmjs.org/@jest/types/-/types-29.6.3.tgz", + "integrity": "sha512-u3UPsIilWKOM3F9CXtrG8LEJmNxwoCQC/XVj4IKYXvvpx7QIi/Kg1LI5uDmDpKlac62NUtX7eLjRh+jVZcLOzw==", + "dev": true, + "dependencies": { + "@jest/schemas": "^29.6.3", + "@types/istanbul-lib-coverage": "^2.0.0", + "@types/istanbul-reports": "^3.0.0", + "@types/node": "*", + "@types/yargs": "^17.0.8", + "chalk": "^4.0.0" + }, + "engines": { + "node": "^14.15.0 || ^16.10.0 || >=18.0.0" + } + }, "node_modules/@jridgewell/gen-mapping": { "version": "0.3.5", "resolved": "https://registry.npmjs.org/@jridgewell/gen-mapping/-/gen-mapping-0.3.5.tgz", @@ -1050,6 +2184,111 @@ "node": ">=14" } }, + "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 + }, + "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, + "dependencies": { + "type-detect": "4.0.8" + } + }, + "node_modules/@sinonjs/fake-timers": { + "version": "10.3.0", + "resolved": "https://registry.npmjs.org/@sinonjs/fake-timers/-/fake-timers-10.3.0.tgz", + "integrity": "sha512-V4BG07kuYSUkTCSBHG8G8TNhM+F19jXFWnQtzj+we8DrkpSBCee9Z3Ms8yiGer/dlmhe35/Xdgyo3/0rQKg7YA==", + "dev": true, + "dependencies": { + "@sinonjs/commons": "^3.0.0" + } + }, + "node_modules/@types/babel__core": { + "version": "7.20.5", + "resolved": "https://registry.npmjs.org/@types/babel__core/-/babel__core-7.20.5.tgz", + "integrity": "sha512-qoQprZvz5wQFJwMDqeseRXWv3rqMvhgpbXFfVyWhbx9X47POIA6i/+dXefEmZKoAgOaTdaIgNSMqMIU61yRyzA==", + "dev": true, + "dependencies": { + "@babel/parser": "^7.20.7", + "@babel/types": "^7.20.7", + "@types/babel__generator": "*", + "@types/babel__template": "*", + "@types/babel__traverse": "*" + } + }, + "node_modules/@types/babel__core/node_modules/@babel/parser": { + "version": "7.24.7", + "resolved": "https://registry.npmjs.org/@babel/parser/-/parser-7.24.7.tgz", + "integrity": "sha512-9uUYRm6OqQrCqQdG1iCBwBPZgN8ciDBro2nIOFaiRz1/BCxaI7CNvQbDHvsArAC7Tw9Hda/B3U+6ui9u4HWXPw==", + "dev": true, + "bin": { + "parser": "bin/babel-parser.js" + }, + "engines": { + "node": ">=6.0.0" + } + }, + "node_modules/@types/babel__core/node_modules/@babel/types": { + "version": "7.24.7", + "resolved": "https://registry.npmjs.org/@babel/types/-/types-7.24.7.tgz", + "integrity": "sha512-XEFXSlxiG5td2EJRe8vOmRbaXVgfcBlszKujvVmWIK/UpywWljQCfzAv3RQCGujWQ1RD4YYWEAqDXfuJiy8f5Q==", + "dev": true, + "dependencies": { + "@babel/helper-string-parser": "^7.24.7", + "@babel/helper-validator-identifier": "^7.24.7", + "to-fast-properties": "^2.0.0" + }, + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/@types/babel__generator": { + "version": "7.6.8", + "resolved": "https://registry.npmjs.org/@types/babel__generator/-/babel__generator-7.6.8.tgz", + "integrity": "sha512-ASsj+tpEDsEiFr1arWrlN6V3mdfjRMZt6LtK/Vp/kreFLnr5QH5+DhvD5nINYZXzwJvXeGq+05iUXcAzVrqWtw==", + "dev": true, + "dependencies": { + "@babel/types": "^7.0.0" + } + }, + "node_modules/@types/babel__template": { + "version": "7.4.4", + "resolved": "https://registry.npmjs.org/@types/babel__template/-/babel__template-7.4.4.tgz", + "integrity": "sha512-h/NUaSyG5EyxBIp8YRxo4RMe2/qQgvyowRwVMzhYhBCONbW8PUsg4lkFMrhgZhUe5z3L3MiLDuvyJ/CaPa2A8A==", + "dev": true, + "dependencies": { + "@babel/parser": "^7.1.0", + "@babel/types": "^7.0.0" + } + }, + "node_modules/@types/babel__traverse": { + "version": "7.20.6", + "resolved": "https://registry.npmjs.org/@types/babel__traverse/-/babel__traverse-7.20.6.tgz", + "integrity": "sha512-r1bzfrm0tomOI8g1SzvCaQHo6Lcv6zu0EA+W2kHrt8dyrHQxGzBBL4kdkzIS+jBMV+EYcMAEAqXqYaLJq5rOZg==", + "dev": true, + "dependencies": { + "@babel/types": "^7.20.7" + } + }, + "node_modules/@types/babel__traverse/node_modules/@babel/types": { + "version": "7.24.7", + "resolved": "https://registry.npmjs.org/@babel/types/-/types-7.24.7.tgz", + "integrity": "sha512-XEFXSlxiG5td2EJRe8vOmRbaXVgfcBlszKujvVmWIK/UpywWljQCfzAv3RQCGujWQ1RD4YYWEAqDXfuJiy8f5Q==", + "dev": true, + "dependencies": { + "@babel/helper-string-parser": "^7.24.7", + "@babel/helper-validator-identifier": "^7.24.7", + "to-fast-properties": "^2.0.0" + }, + "engines": { + "node": ">=6.9.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", @@ -1071,6 +2310,49 @@ "@types/node": "*" } }, + "node_modules/@types/graceful-fs": { + "version": "4.1.9", + "resolved": "https://registry.npmjs.org/@types/graceful-fs/-/graceful-fs-4.1.9.tgz", + "integrity": "sha512-olP3sd1qOEe5dXTSaFvQG+02VdRXcdytWLAZsAq1PecU8uqQAhkrnbli7DagjtXKW/Bl7YJbUsa8MPcuc8LHEQ==", + "dev": true, + "dependencies": { + "@types/node": "*" + } + }, + "node_modules/@types/istanbul-lib-coverage": { + "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 + }, + "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, + "dependencies": { + "@types/istanbul-lib-coverage": "*" + } + }, + "node_modules/@types/istanbul-reports": { + "version": "3.0.4", + "resolved": "https://registry.npmjs.org/@types/istanbul-reports/-/istanbul-reports-3.0.4.tgz", + "integrity": "sha512-pk2B1NWalF9toCRu6gjBzR69syFjP4Od8WRAX+0mmf9lAjCRicLOWc+ZrxZHx/0XRjotgkF9t6iaMJ+aXcOdZQ==", + "dev": true, + "dependencies": { + "@types/istanbul-lib-report": "*" + } + }, + "node_modules/@types/jest": { + "version": "29.5.12", + "resolved": "https://registry.npmjs.org/@types/jest/-/jest-29.5.12.tgz", + "integrity": "sha512-eDC8bTvT/QhYdxJAulQikueigY5AsdBRH2yDKW3yveW7svY3+DzN84/2NUgkw10RTiJbWqZrTtoGVdYlvFJdLw==", + "dev": true, + "dependencies": { + "expect": "^29.0.0", + "pretty-format": "^29.0.0" + } + }, "node_modules/@types/node": { "version": "20.3.0", "resolved": "https://registry.npmjs.org/@types/node/-/node-20.3.0.tgz", @@ -1082,12 +2364,33 @@ "integrity": "sha512-Xd22WCRBydkGSApl5Bw0PhAOHKSVjNL3E3AwzKaps96IMraPqy5BvZIsBVK6JLwdybUzjHnuWVwpDd0JjTfHXA==", "peer": 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 + }, "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 }, + "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, + "dependencies": { + "@types/yargs-parser": "*" + } + }, + "node_modules/@types/yargs-parser": { + "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 + }, "node_modules/@vercel/ncc": { "version": "0.38.1", "resolved": "https://registry.npmjs.org/@vercel/ncc/-/ncc-0.38.1.tgz", @@ -1109,6 +2412,21 @@ "node": ">= 6.0.0" } }, + "node_modules/ansi-escapes": { + "version": "4.3.2", + "resolved": "https://registry.npmjs.org/ansi-escapes/-/ansi-escapes-4.3.2.tgz", + "integrity": "sha512-gKXj5ALrKWQLsYG9jlTRmR/xKluxHV+Z9QEwNIgCfM1/uwPMCuzVVnh5mwTd+OuBZcwSIMbqssNWRm1lE51QaQ==", + "dev": true, + "dependencies": { + "type-fest": "^0.21.3" + }, + "engines": { + "node": ">=8" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, "node_modules/ansi-regex": { "version": "6.0.1", "resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-6.0.1.tgz", @@ -1135,6 +2453,19 @@ "url": "https://github.com/chalk/ansi-styles?sponsor=1" } }, + "node_modules/anymatch": { + "version": "3.1.3", + "resolved": "https://registry.npmjs.org/anymatch/-/anymatch-3.1.3.tgz", + "integrity": "sha512-KMReFUr0B4t+D+OBkjR3KYqvocp2XaSzO55UcB6mgQMd3KbcE+mWTyvVV7D/zsdEbNnV6acZUutkiHQXvTr1Rw==", + "dev": true, + "dependencies": { + "normalize-path": "^3.0.0", + "picomatch": "^2.0.4" + }, + "engines": { + "node": ">= 8" + } + }, "node_modules/apache-arrow": { "version": "14.0.2", "resolved": "https://registry.npmjs.org/apache-arrow/-/apache-arrow-14.0.2.tgz", @@ -1156,6 +2487,15 @@ "arrow2csv": "bin/arrow2csv.js" } }, + "node_modules/argparse": { + "version": "1.0.10", + "resolved": "https://registry.npmjs.org/argparse/-/argparse-1.0.10.tgz", + "integrity": "sha512-o5Roy6tNG4SL/FOkCAN6RzjiakZS25RLYFrcMttJqbdd8BWrnA+fGz57iN5Pb06pvBGvl5gQ0B48dJlslXvoTg==", + "dev": true, + "dependencies": { + "sprintf-js": "~1.0.2" + } + }, "node_modules/array-back": { "version": "3.1.0", "resolved": "https://registry.npmjs.org/array-back/-/array-back-3.1.0.tgz", @@ -1198,6 +2538,122 @@ "proxy-from-env": "^1.1.0" } }, + "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, + "dependencies": { + "@jest/transform": "^29.7.0", + "@types/babel__core": "^7.1.14", + "babel-plugin-istanbul": "^6.1.1", + "babel-preset-jest": "^29.6.3", + "chalk": "^4.0.0", + "graceful-fs": "^4.2.9", + "slash": "^3.0.0" + }, + "engines": { + "node": "^14.15.0 || ^16.10.0 || >=18.0.0" + }, + "peerDependencies": { + "@babel/core": "^7.8.0" + } + }, + "node_modules/babel-plugin-istanbul": { + "version": "6.1.1", + "resolved": "https://registry.npmjs.org/babel-plugin-istanbul/-/babel-plugin-istanbul-6.1.1.tgz", + "integrity": "sha512-Y1IQok9821cC9onCx5otgFfRm7Lm+I+wwxOx738M/WLPZ9Q42m4IG5W0FNX8WLL2gYMZo3JkuXIH2DOpWM+qwA==", + "dev": true, + "dependencies": { + "@babel/helper-plugin-utils": "^7.0.0", + "@istanbuljs/load-nyc-config": "^1.0.0", + "@istanbuljs/schema": "^0.1.2", + "istanbul-lib-instrument": "^5.0.4", + "test-exclude": "^6.0.0" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/babel-plugin-istanbul/node_modules/istanbul-lib-instrument": { + "version": "5.2.1", + "resolved": "https://registry.npmjs.org/istanbul-lib-instrument/-/istanbul-lib-instrument-5.2.1.tgz", + "integrity": "sha512-pzqtp31nLv/XFOzXGuvhCb8qhjmTVo5vjVk19XE4CRlSWz0KoeJ3bw9XsA7nOp9YBf4qHjwBxkDzKcME/J29Yg==", + "dev": true, + "dependencies": { + "@babel/core": "^7.12.3", + "@babel/parser": "^7.14.7", + "@istanbuljs/schema": "^0.1.2", + "istanbul-lib-coverage": "^3.2.0", + "semver": "^6.3.0" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/babel-plugin-istanbul/node_modules/semver": { + "version": "6.3.1", + "resolved": "https://registry.npmjs.org/semver/-/semver-6.3.1.tgz", + "integrity": "sha512-BR7VvDCVHO+q2xBEWskxS6DJE1qRnb7DxzUrogb71CWoSficBxYsiAGd+Kl0mmq/MprG9yArRkyrQxTO6XjMzA==", + "dev": true, + "bin": { + "semver": "bin/semver.js" + } + }, + "node_modules/babel-plugin-jest-hoist": { + "version": "29.6.3", + "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, + "dependencies": { + "@babel/template": "^7.3.3", + "@babel/types": "^7.3.3", + "@types/babel__core": "^7.1.14", + "@types/babel__traverse": "^7.0.6" + }, + "engines": { + "node": "^14.15.0 || ^16.10.0 || >=18.0.0" + } + }, + "node_modules/babel-preset-current-node-syntax": { + "version": "1.0.1", + "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, + "dependencies": { + "@babel/plugin-syntax-async-generators": "^7.8.4", + "@babel/plugin-syntax-bigint": "^7.8.3", + "@babel/plugin-syntax-class-properties": "^7.8.3", + "@babel/plugin-syntax-import-meta": "^7.8.3", + "@babel/plugin-syntax-json-strings": "^7.8.3", + "@babel/plugin-syntax-logical-assignment-operators": "^7.8.3", + "@babel/plugin-syntax-nullish-coalescing-operator": "^7.8.3", + "@babel/plugin-syntax-numeric-separator": "^7.8.3", + "@babel/plugin-syntax-object-rest-spread": "^7.8.3", + "@babel/plugin-syntax-optional-catch-binding": "^7.8.3", + "@babel/plugin-syntax-optional-chaining": "^7.8.3", + "@babel/plugin-syntax-top-level-await": "^7.8.3" + }, + "peerDependencies": { + "@babel/core": "^7.0.0" + } + }, + "node_modules/babel-preset-jest": { + "version": "29.6.3", + "resolved": "https://registry.npmjs.org/babel-preset-jest/-/babel-preset-jest-29.6.3.tgz", + "integrity": "sha512-0B3bhxR6snWXJZtR/RliHTDPRgn1sNHOR0yVtq/IiQFyuOVjFS+wuio/R4gSNkyYmKmJB4wGZv2NZanmKmTnNA==", + "dev": true, + "dependencies": { + "babel-plugin-jest-hoist": "^29.6.3", + "babel-preset-current-node-syntax": "^1.0.0" + }, + "engines": { + "node": "^14.15.0 || ^16.10.0 || >=18.0.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0" + } + }, "node_modules/balanced-match": { "version": "1.0.2", "resolved": "https://registry.npmjs.org/balanced-match/-/balanced-match-1.0.2.tgz", @@ -1284,6 +2740,59 @@ "node": ">=8" } }, + "node_modules/browserslist": { + "version": "4.23.1", + "resolved": "https://registry.npmjs.org/browserslist/-/browserslist-4.23.1.tgz", + "integrity": "sha512-TUfofFo/KsK/bWZ9TWQ5O26tsWW4Uhmt8IYklbnUa70udB6P2wA7w7o4PY4muaEPBQaAX+CEnmmIA41NVHtPVw==", + "dev": true, + "funding": [ + { + "type": "opencollective", + "url": "https://opencollective.com/browserslist" + }, + { + "type": "tidelift", + "url": "https://tidelift.com/funding/github/npm/browserslist" + }, + { + "type": "github", + "url": "https://github.com/sponsors/ai" + } + ], + "dependencies": { + "caniuse-lite": "^1.0.30001629", + "electron-to-chromium": "^1.4.796", + "node-releases": "^2.0.14", + "update-browserslist-db": "^1.0.16" + }, + "bin": { + "browserslist": "cli.js" + }, + "engines": { + "node": "^6 || ^7 || ^8 || ^9 || ^10 || ^11 || ^12 || >=13.7" + } + }, + "node_modules/bs-logger": { + "version": "0.2.6", + "resolved": "https://registry.npmjs.org/bs-logger/-/bs-logger-0.2.6.tgz", + "integrity": "sha512-pd8DCoxmbgc7hyPKOvxtqNcjYoOsABPQdcCUjGp3d42VR2CX1ORhk2A87oqqu5R1kk+76nsxZupkmyd+MVtCog==", + "dev": true, + "dependencies": { + "fast-json-stable-stringify": "2.x" + }, + "engines": { + "node": ">= 6" + } + }, + "node_modules/bser": { + "version": "2.1.1", + "resolved": "https://registry.npmjs.org/bser/-/bser-2.1.1.tgz", + "integrity": "sha512-gQxTNE/GAfIIrmHLUE3oJyp5FO6HRBfhjnw4/wMmA63ZGDJnWBmgY/lyQBpnDUkGmAhbSe39tx2d/iTOAfglwQ==", + "dev": true, + "dependencies": { + "node-int64": "^0.4.0" + } + }, "node_modules/buffer": { "version": "5.7.1", "resolved": "https://registry.npmjs.org/buffer/-/buffer-5.7.1.tgz", @@ -1308,6 +2817,50 @@ "ieee754": "^1.1.13" } }, + "node_modules/buffer-from": { + "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 + }, + "node_modules/callsites": { + "version": "3.1.0", + "resolved": "https://registry.npmjs.org/callsites/-/callsites-3.1.0.tgz", + "integrity": "sha512-P8BjAsXvZS+VIDUI11hHCQEv74YT67YUi5JJFNWIqL235sBmjX4+qx9Muvls5ivyNENctx46xQLQ3aTuE7ssaQ==", + "dev": true, + "engines": { + "node": ">=6" + } + }, + "node_modules/camelcase": { + "version": "5.3.1", + "resolved": "https://registry.npmjs.org/camelcase/-/camelcase-5.3.1.tgz", + "integrity": "sha512-L28STB170nwWS63UjtlEOE3dldQApaJXZkOI1uMFfzf3rRuPegHaHesyee+YxQ+W6SvRDQV6UrdOdRiR153wJg==", + "dev": true, + "engines": { + "node": ">=6" + } + }, + "node_modules/caniuse-lite": { + "version": "1.0.30001634", + "resolved": "https://registry.npmjs.org/caniuse-lite/-/caniuse-lite-1.0.30001634.tgz", + "integrity": "sha512-fbBYXQ9q3+yp1q1gBk86tOFs4pyn/yxFm5ZNP18OXJDfA3txImOY9PhfxVggZ4vRHDqoU8NrKU81eN0OtzOgRA==", + "dev": true, + "funding": [ + { + "type": "opencollective", + "url": "https://opencollective.com/browserslist" + }, + { + "type": "tidelift", + "url": "https://tidelift.com/funding/github/npm/caniuse-lite" + }, + { + "type": "github", + "url": "https://github.com/sponsors/ai" + } + ] + }, "node_modules/chalk": { "version": "4.1.2", "resolved": "https://registry.npmjs.org/chalk/-/chalk-4.1.2.tgz", @@ -1338,12 +2891,42 @@ "url": "https://github.com/chalk/chalk-template?sponsor=1" } }, + "node_modules/char-regex": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/char-regex/-/char-regex-1.0.2.tgz", + "integrity": "sha512-kWWXztvZ5SBQV+eRgKFeh8q5sLuZY2+8WUIzlxWVTg+oGwY14qylx1KbKzHd8P6ZYkAg0xyIDU9JMHhyJMZ1jw==", + "dev": true, + "engines": { + "node": ">=10" + } + }, "node_modules/chownr": { "version": "1.1.4", "resolved": "https://registry.npmjs.org/chownr/-/chownr-1.1.4.tgz", "integrity": "sha512-jJ0bqzaylmJtVnNgzTeSOs8DPavpbYgEr/b0YL8/2GO3xJEhInFmhKMUnEJQjZumK7KXGFhUy89PrsJWlakBVg==", "dev": true }, + "node_modules/ci-info": { + "version": "3.9.0", + "resolved": "https://registry.npmjs.org/ci-info/-/ci-info-3.9.0.tgz", + "integrity": "sha512-NIxF55hv4nSqQswkAeiOi1r83xy8JldOFDTWiug55KBu9Jnblncd2U6ViHmYgHf01TPZS77NJBhBMKdWj9HQMQ==", + "dev": true, + "funding": [ + { + "type": "github", + "url": "https://github.com/sponsors/sibiraj-s" + } + ], + "engines": { + "node": ">=8" + } + }, + "node_modules/cjs-module-lexer": { + "version": "1.3.1", + "resolved": "https://registry.npmjs.org/cjs-module-lexer/-/cjs-module-lexer-1.3.1.tgz", + "integrity": "sha512-a3KdPAANPbNE4ZUv9h6LckSl9zLsYOP4MBmhIPkRaeyybt+r4UghLvq+xw/YwUcC1gqylCkL4rdVs3Lwupjm4Q==", + "dev": true + }, "node_modules/cliui": { "version": "7.0.4", "resolved": "https://registry.npmjs.org/cliui/-/cliui-7.0.4.tgz", @@ -1413,6 +2996,22 @@ "url": "https://github.com/chalk/wrap-ansi?sponsor=1" } }, + "node_modules/co": { + "version": "4.6.0", + "resolved": "https://registry.npmjs.org/co/-/co-4.6.0.tgz", + "integrity": "sha512-QVb0dM5HvG+uaxitm8wONl7jltx8dqhfU33DcqtOZcLSVIKSDDLDi7+0LbAKiyI8hD9u42m2YxXSkMGWThaecQ==", + "dev": true, + "engines": { + "iojs": ">= 1.0.0", + "node": ">= 0.12.0" + } + }, + "node_modules/collect-v8-coverage": { + "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 + }, "node_modules/color-convert": { "version": "2.0.1", "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz", @@ -1496,6 +3095,18 @@ "node": ">=18" } }, + "node_modules/concat-map": { + "version": "0.0.1", + "resolved": "https://registry.npmjs.org/concat-map/-/concat-map-0.0.1.tgz", + "integrity": "sha512-/Srv4dswyQNBfohGpz9o6Yb3Gz3SrUDqBH5rTuhGR7ahtlbYKnVxw2bCFMRljaA7EXHaXZ8wsHdodFvbkhKmqg==", + "dev": 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 + }, "node_modules/core": { "resolved": "../core", "link": true @@ -1506,6 +3117,27 @@ "integrity": "sha512-ZQBvi1DcpJ4GDqanjucZ2Hj3wEO5pZDS89BWbkcrvdxksJorwUDDZamX9ldFkp9aw2lmBDLgkObEA4DWNJ9FYQ==", "dev": true }, + "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, + "dependencies": { + "@jest/types": "^29.6.3", + "chalk": "^4.0.0", + "exit": "^0.1.2", + "graceful-fs": "^4.2.9", + "jest-config": "^29.7.0", + "jest-util": "^29.7.0", + "prompts": "^2.0.1" + }, + "bin": { + "create-jest": "bin/create-jest.js" + }, + "engines": { + "node": "^14.15.0 || ^16.10.0 || >=18.0.0" + } + }, "node_modules/cross-spawn": { "version": "7.0.3", "resolved": "https://registry.npmjs.org/cross-spawn/-/cross-spawn-7.0.3.tgz", @@ -1560,6 +3192,20 @@ "url": "https://github.com/sponsors/sindresorhus" } }, + "node_modules/dedent": { + "version": "1.5.3", + "resolved": "https://registry.npmjs.org/dedent/-/dedent-1.5.3.tgz", + "integrity": "sha512-NHQtfOOW68WD8lgypbLA5oT+Bt0xXJhiYvoR6SmmNXZfpzOGXwdKWmcwG8N7PwVVWV3eF/68nmD9BaJSsTBhyQ==", + "dev": true, + "peerDependencies": { + "babel-plugin-macros": "^3.1.0" + }, + "peerDependenciesMeta": { + "babel-plugin-macros": { + "optional": true + } + } + }, "node_modules/deep-extend": { "version": "0.6.0", "resolved": "https://registry.npmjs.org/deep-extend/-/deep-extend-0.6.0.tgz", @@ -1569,6 +3215,15 @@ "node": ">=4.0.0" } }, + "node_modules/deepmerge": { + "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==", + "dev": true, + "engines": { + "node": ">=0.10.0" + } + }, "node_modules/delayed-stream": { "version": "1.0.0", "resolved": "https://registry.npmjs.org/delayed-stream/-/delayed-stream-1.0.0.tgz", @@ -1591,6 +3246,24 @@ "node": ">=8" } }, + "node_modules/detect-newline": { + "version": "3.1.0", + "resolved": "https://registry.npmjs.org/detect-newline/-/detect-newline-3.1.0.tgz", + "integrity": "sha512-TLz+x/vEXm/Y7P7wn1EJFNLxYpUD4TgMosxY6fAVJUnJMbupHBOncxyWUG9OpTaH9EBD7uFI5LfEgmMOc54DsA==", + "dev": true, + "engines": { + "node": ">=8" + } + }, + "node_modules/diff-sequences": { + "version": "29.6.3", + "resolved": "https://registry.npmjs.org/diff-sequences/-/diff-sequences-29.6.3.tgz", + "integrity": "sha512-EjePK1srD3P08o2j4f0ExnylqRs5B9tJjcp9t1krH2qRi8CCdsYfwe9JgSLurFBWwq4uOlipzfk5fHNvwFKr8Q==", + "dev": true, + "engines": { + "node": "^14.15.0 || ^16.10.0 || >=18.0.0" + } + }, "node_modules/dir-glob": { "version": "3.0.1", "resolved": "https://registry.npmjs.org/dir-glob/-/dir-glob-3.0.1.tgz", @@ -1609,6 +3282,24 @@ "integrity": "sha512-I88TYZWc9XiYHRQ4/3c5rjjfgkjhLyW2luGIheGERbNQ6OY7yTybanSpDXZa8y7VUP9YmDcYa+eyq4ca7iLqWA==", "dev": true }, + "node_modules/electron-to-chromium": { + "version": "1.4.803", + "resolved": "https://registry.npmjs.org/electron-to-chromium/-/electron-to-chromium-1.4.803.tgz", + "integrity": "sha512-61H9mLzGOCLLVsnLiRzCbc63uldP0AniRYPV3hbGVtONA1pI7qSGILdbofR7A8TMbOypDocEAjH/e+9k1QIe3g==", + "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, + "engines": { + "node": ">=12" + }, + "funding": { + "url": "https://github.com/sindresorhus/emittery?sponsor=1" + } + }, "node_modules/emoji-regex": { "version": "9.2.2", "resolved": "https://registry.npmjs.org/emoji-regex/-/emoji-regex-9.2.2.tgz", @@ -1624,6 +3315,15 @@ "once": "^1.4.0" } }, + "node_modules/error-ex": { + "version": "1.3.2", + "resolved": "https://registry.npmjs.org/error-ex/-/error-ex-1.3.2.tgz", + "integrity": "sha512-7dFHNmqeFSEt2ZBsCriorKnn3Z2pj+fd9kmI6QoWw4//DL+icEBfc0U7qJCisqrTsKTjw4fNFy2pW9OqStD84g==", + "dev": true, + "dependencies": { + "is-arrayish": "^0.2.1" + } + }, "node_modules/esbuild": { "version": "0.19.11", "resolved": "https://registry.npmjs.org/esbuild/-/esbuild-0.19.11.tgz", @@ -1671,6 +3371,66 @@ "node": ">=6" } }, + "node_modules/escape-string-regexp": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/escape-string-regexp/-/escape-string-regexp-2.0.0.tgz", + "integrity": "sha512-UpzcLCXolUWcNu5HtVMHYdXJjArjsF9C0aNnquZYY4uW/Vu0miy5YoWvbV345HauVvcAUnpRuhMMcqTcGOY2+w==", + "dev": true, + "engines": { + "node": ">=8" + } + }, + "node_modules/esprima": { + "version": "4.0.1", + "resolved": "https://registry.npmjs.org/esprima/-/esprima-4.0.1.tgz", + "integrity": "sha512-eGuFFw7Upda+g4p+QHvnW0RyTX/SVeJBDM/gCtMARO0cLuT2HcEKnTPvhjV6aGeqrCB/sbNop0Kszm0jsaWU4A==", + "dev": true, + "bin": { + "esparse": "bin/esparse.js", + "esvalidate": "bin/esvalidate.js" + }, + "engines": { + "node": ">=4" + } + }, + "node_modules/execa": { + "version": "5.1.1", + "resolved": "https://registry.npmjs.org/execa/-/execa-5.1.1.tgz", + "integrity": "sha512-8uSpZZocAZRBAPIEINJj3Lo9HyGitllczc27Eh5YYojjMFMn8yHMDMaUHE2Jqfq05D/wucwI4JGURyXt1vchyg==", + "dev": true, + "dependencies": { + "cross-spawn": "^7.0.3", + "get-stream": "^6.0.0", + "human-signals": "^2.1.0", + "is-stream": "^2.0.0", + "merge-stream": "^2.0.0", + "npm-run-path": "^4.0.1", + "onetime": "^5.1.2", + "signal-exit": "^3.0.3", + "strip-final-newline": "^2.0.0" + }, + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/sindresorhus/execa?sponsor=1" + } + }, + "node_modules/execa/node_modules/signal-exit": { + "version": "3.0.7", + "resolved": "https://registry.npmjs.org/signal-exit/-/signal-exit-3.0.7.tgz", + "integrity": "sha512-wnD2ZE+l+SPC/uoS0vXeE9L1+0wuaMqKlfz9AMUo38JsyLSBWSFcHR1Rri62LZc12vLr1gb3jl7iwQhgwpAbGQ==", + "dev": true + }, + "node_modules/exit": { + "version": "0.1.2", + "resolved": "https://registry.npmjs.org/exit/-/exit-0.1.2.tgz", + "integrity": "sha512-Zk/eNKV2zbjpKzrsQ+n1G6poVbErQxJ0LBOJXaKZ1EViLzH+hrLu9cdXI4zw9dBQJslwBEpbQ2P1oS7nDxs6jQ==", + "dev": true, + "engines": { + "node": ">= 0.8.0" + } + }, "node_modules/expand-template": { "version": "2.0.3", "resolved": "https://registry.npmjs.org/expand-template/-/expand-template-2.0.3.tgz", @@ -1680,6 +3440,22 @@ "node": ">=6" } }, + "node_modules/expect": { + "version": "29.7.0", + "resolved": "https://registry.npmjs.org/expect/-/expect-29.7.0.tgz", + "integrity": "sha512-2Zks0hf1VLFYI1kbh0I5jP3KHHyCHpkfyHBzsSXRFgl/Bg9mWYfMW8oD+PdMPlEwy5HNsR9JutYy6pMeOh61nw==", + "dev": true, + "dependencies": { + "@jest/expect-utils": "^29.7.0", + "jest-get-type": "^29.6.3", + "jest-matcher-utils": "^29.7.0", + "jest-message-util": "^29.7.0", + "jest-util": "^29.7.0" + }, + "engines": { + "node": "^14.15.0 || ^16.10.0 || >=18.0.0" + } + }, "node_modules/fast-glob": { "version": "3.3.2", "resolved": "https://registry.npmjs.org/fast-glob/-/fast-glob-3.3.2.tgz", @@ -1696,6 +3472,12 @@ "node": ">=8.6.0" } }, + "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==", + "dev": true + }, "node_modules/fastq": { "version": "1.17.1", "resolved": "https://registry.npmjs.org/fastq/-/fastq-1.17.1.tgz", @@ -1705,6 +3487,15 @@ "reusify": "^1.0.4" } }, + "node_modules/fb-watchman": { + "version": "2.0.2", + "resolved": "https://registry.npmjs.org/fb-watchman/-/fb-watchman-2.0.2.tgz", + "integrity": "sha512-p5161BqbuCaSnB8jIbzQHOlpgsPmK5rJVDfDKO91Axs5NC1uu3HRQm6wt9cd9/+GtQQIO53JdGXXoyDpTAsgYA==", + "dev": true, + "dependencies": { + "bser": "2.1.1" + } + }, "node_modules/fetch-blob": { "version": "3.2.0", "resolved": "https://registry.npmjs.org/fetch-blob/-/fetch-blob-3.2.0.tgz", @@ -1757,6 +3548,19 @@ "node": ">=4.0.0" } }, + "node_modules/find-up": { + "version": "4.1.0", + "resolved": "https://registry.npmjs.org/find-up/-/find-up-4.1.0.tgz", + "integrity": "sha512-PpOwAdQ/YlXQ2vj8a3h8IipDuYRi3wceVQQGYWxNINccq40Anw7BlsEXCMbt1Zt+OLA6Fq9suIpIWD0OsnISlw==", + "dev": true, + "dependencies": { + "locate-path": "^5.0.0", + "path-exists": "^4.0.0" + }, + "engines": { + "node": ">=8" + } + }, "node_modules/flatbuffers": { "version": "23.5.26", "resolved": "https://registry.npmjs.org/flatbuffers/-/flatbuffers-23.5.26.tgz", @@ -1853,6 +3657,26 @@ "node": ">=10" } }, + "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==", + "dev": true + }, + "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, + "hasInstallScript": true, + "optional": true, + "os": [ + "darwin" + ], + "engines": { + "node": "^8.16.0 || ^10.6.0 || >=11.0.0" + } + }, "node_modules/function-bind": { "version": "1.1.2", "resolved": "https://registry.npmjs.org/function-bind/-/function-bind-1.1.2.tgz", @@ -1862,6 +3686,15 @@ "url": "https://github.com/sponsors/ljharb" } }, + "node_modules/gensync": { + "version": "1.0.0-beta.2", + "resolved": "https://registry.npmjs.org/gensync/-/gensync-1.0.0-beta.2.tgz", + "integrity": "sha512-3hN7NaskYvMDLQY55gnW3NQ+mesEAepTqlg+VEbj7zzqEMBVNhzcGYYeqFo/TlYz6eQiFcp1HcsCZO+nGgS8zg==", + "dev": true, + "engines": { + "node": ">=6.9.0" + } + }, "node_modules/get-caller-file": { "version": "2.0.5", "resolved": "https://registry.npmjs.org/get-caller-file/-/get-caller-file-2.0.5.tgz", @@ -1871,6 +3704,27 @@ "node": "6.* || 8.* || >= 10.*" } }, + "node_modules/get-package-type": { + "version": "0.1.0", + "resolved": "https://registry.npmjs.org/get-package-type/-/get-package-type-0.1.0.tgz", + "integrity": "sha512-pjzuKtY64GYfWizNAJ0fr9VqttZkNiK2iS430LtIHzjBEr6bX8Am2zm4sW4Ro5wjWW5cAlRL1qAMTcXbjNAO2Q==", + "dev": true, + "engines": { + "node": ">=8.0.0" + } + }, + "node_modules/get-stream": { + "version": "6.0.1", + "resolved": "https://registry.npmjs.org/get-stream/-/get-stream-6.0.1.tgz", + "integrity": "sha512-ts6Wi+2j3jQjqi70w5AlN8DFnkSwC+MqmxEzdEALB2qXZYV3X/b1CTfgPLGJNMeAWxdPfU8FO1ms3NUfaHCPYg==", + "dev": true, + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, "node_modules/github-from-package": { "version": "0.0.0", "resolved": "https://registry.npmjs.org/github-from-package/-/github-from-package-0.0.0.tgz", @@ -1911,6 +3765,15 @@ "node": ">= 6" } }, + "node_modules/globals": { + "version": "11.12.0", + "resolved": "https://registry.npmjs.org/globals/-/globals-11.12.0.tgz", + "integrity": "sha512-WOBp/EEGUiIsJSp7wcv/y6MO+lV9UoncWqxuFfm8eBwzWNgyfBd6Gz+IeKQ9jCmyhoH99g15M3T+QaVHFjizVA==", + "dev": true, + "engines": { + "node": ">=4" + } + }, "node_modules/globby": { "version": "11.1.0", "resolved": "https://registry.npmjs.org/globby/-/globby-11.1.0.tgz", @@ -1966,6 +3829,12 @@ "node": ">= 0.4" } }, + "node_modules/html-escaper": { + "version": "2.0.2", + "resolved": "https://registry.npmjs.org/html-escaper/-/html-escaper-2.0.2.tgz", + "integrity": "sha512-H2iMtd0I4Mt5eYiapRdIDjp+XzelXQ0tFE4JS7YFwFevXXMmOp9myNrUvCg0D6ws8iqkRPBfKHgbwig1SmlLfg==", + "dev": true + }, "node_modules/https-proxy-agent": { "version": "5.0.1", "resolved": "https://registry.npmjs.org/https-proxy-agent/-/https-proxy-agent-5.0.1.tgz", @@ -1979,6 +3848,15 @@ "node": ">= 6" } }, + "node_modules/human-signals": { + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/human-signals/-/human-signals-2.1.0.tgz", + "integrity": "sha512-B4FFZ6q/T2jhhksgkbEW3HBvWIfDW85snkQgawt07S7J5QXTk6BkNV+0yAeZrM5QpMAdYlocGoljn0sJ/WQkFw==", + "dev": true, + "engines": { + "node": ">=10.17.0" + } + }, "node_modules/ieee754": { "version": "1.2.1", "resolved": "https://registry.npmjs.org/ieee754/-/ieee754-1.2.1.tgz", @@ -2008,6 +3886,45 @@ "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, + "dependencies": { + "pkg-dir": "^4.2.0", + "resolve-cwd": "^3.0.0" + }, + "bin": { + "import-local-fixture": "fixtures/cli.js" + }, + "engines": { + "node": ">=8" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/imurmurhash": { + "version": "0.1.4", + "resolved": "https://registry.npmjs.org/imurmurhash/-/imurmurhash-0.1.4.tgz", + "integrity": "sha512-JmXMZ6wuvDmLiHEml9ykzqO6lwFbof0GG4IkcGaENdCRDDmMVnny7s5HsIgHCbaq0w2MyPhDqkhTUgS2LU2PHA==", + "dev": true, + "engines": { + "node": ">=0.8.19" + } + }, + "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==", + "deprecated": "This module is not supported, and leaks memory. Do not use it. Check out lru-cache if you want a good and tested way to coalesce async requests by a key value, which is much more comprehensive and powerful.", + "dev": true, + "dependencies": { + "once": "^1.3.0", + "wrappy": "1" + } + }, "node_modules/inherits": { "version": "2.0.4", "resolved": "https://registry.npmjs.org/inherits/-/inherits-2.0.4.tgz", @@ -2036,6 +3953,12 @@ "url": "https://github.com/sponsors/sindresorhus" } }, + "node_modules/is-arrayish": { + "version": "0.2.1", + "resolved": "https://registry.npmjs.org/is-arrayish/-/is-arrayish-0.2.1.tgz", + "integrity": "sha512-zz06S8t0ozoDXMG+ube26zeCTNXcKIPJZJi8hBrF4idCLms4CG9QtK7qBl1boi5ODzFpjswb5JPmHCbMpjaYzg==", + "dev": true + }, "node_modules/is-core-module": { "version": "2.9.0", "resolved": "https://registry.npmjs.org/is-core-module/-/is-core-module-2.9.0.tgz", @@ -2071,6 +3994,15 @@ "node": ">=8" } }, + "node_modules/is-generator-fn": { + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/is-generator-fn/-/is-generator-fn-2.1.0.tgz", + "integrity": "sha512-cTIB4yPYL/Grw0EaSzASzg6bBy9gqCofvWN8okThAYIxKJZC+udlRAmGbM0XLeniEJSs8uEgHPGuHSe1XsOLSQ==", + "dev": true, + "engines": { + "node": ">=6" + } + }, "node_modules/is-glob": { "version": "4.0.3", "resolved": "https://registry.npmjs.org/is-glob/-/is-glob-4.0.3.tgz", @@ -2092,6 +4024,18 @@ "node": ">=0.12.0" } }, + "node_modules/is-stream": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/is-stream/-/is-stream-2.0.1.tgz", + "integrity": "sha512-hFoiJiTl63nn+kstHGBtewWSKnQLpyb155KHheA1l39uvtO9nWIop1p3udqPcUd/xbF1VLMO4n7OI6p7RbngDg==", + "dev": true, + "engines": { + "node": ">=8" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, "node_modules/isarray": { "version": "1.0.0", "resolved": "https://registry.npmjs.org/isarray/-/isarray-1.0.0.tgz", @@ -2104,6 +4048,99 @@ "integrity": "sha512-RHxMLp9lnKHGHRng9QFhRCMbYAcVpn69smSGcq3f36xjgVVWThj4qqLbTLlq7Ssj8B+fIQ1EuCEGI2lKsyQeIw==", "dev": true }, + "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, + "engines": { + "node": ">=8" + } + }, + "node_modules/istanbul-lib-instrument": { + "version": "6.0.2", + "resolved": "https://registry.npmjs.org/istanbul-lib-instrument/-/istanbul-lib-instrument-6.0.2.tgz", + "integrity": "sha512-1WUsZ9R1lA0HtBSohTkm39WTPlNKSJ5iFk7UwqXkBLoHQT+hfqPsfsTDVuZdKGaBwn7din9bS7SsnoAr943hvw==", + "dev": true, + "dependencies": { + "@babel/core": "^7.23.9", + "@babel/parser": "^7.23.9", + "@istanbuljs/schema": "^0.1.3", + "istanbul-lib-coverage": "^3.2.0", + "semver": "^7.5.4" + }, + "engines": { + "node": ">=10" + } + }, + "node_modules/istanbul-lib-instrument/node_modules/@babel/parser": { + "version": "7.24.7", + "resolved": "https://registry.npmjs.org/@babel/parser/-/parser-7.24.7.tgz", + "integrity": "sha512-9uUYRm6OqQrCqQdG1iCBwBPZgN8ciDBro2nIOFaiRz1/BCxaI7CNvQbDHvsArAC7Tw9Hda/B3U+6ui9u4HWXPw==", + "dev": true, + "bin": { + "parser": "bin/babel-parser.js" + }, + "engines": { + "node": ">=6.0.0" + } + }, + "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, + "dependencies": { + "istanbul-lib-coverage": "^3.0.0", + "make-dir": "^4.0.0", + "supports-color": "^7.1.0" + }, + "engines": { + "node": ">=10" + } + }, + "node_modules/istanbul-lib-report/node_modules/make-dir": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/make-dir/-/make-dir-4.0.0.tgz", + "integrity": "sha512-hXdUTZYIVOt1Ex//jAQi+wTZZpUpwBj/0QsOzqegb3rGMMeJiSEu5xLHnYfBrRV4RH2+OCSOO95Is/7x1WJ4bw==", + "dev": true, + "dependencies": { + "semver": "^7.5.3" + }, + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/istanbul-lib-source-maps": { + "version": "4.0.1", + "resolved": "https://registry.npmjs.org/istanbul-lib-source-maps/-/istanbul-lib-source-maps-4.0.1.tgz", + "integrity": "sha512-n3s8EwkdFIJCG3BPKBYvskgXGoy88ARzvegkitk60NxRdwltLOTaH7CUiMRXvwYorl0Q712iEjcWB+fK/MrWVw==", + "dev": true, + "dependencies": { + "debug": "^4.1.1", + "istanbul-lib-coverage": "^3.0.0", + "source-map": "^0.6.1" + }, + "engines": { + "node": ">=10" + } + }, + "node_modules/istanbul-reports": { + "version": "3.1.7", + "resolved": "https://registry.npmjs.org/istanbul-reports/-/istanbul-reports-3.1.7.tgz", + "integrity": "sha512-BewmUXImeuRk2YY0PVbxgKAysvhRPUQE0h5QRM++nVWyubKGV0l8qQ5op8+B2DOmwSe63Jivj0BjkPQVf8fP5g==", + "dev": true, + "dependencies": { + "html-escaper": "^2.0.0", + "istanbul-lib-report": "^3.0.0" + }, + "engines": { + "node": ">=8" + } + }, "node_modules/jackspeak": { "version": "2.3.6", "resolved": "https://registry.npmjs.org/jackspeak/-/jackspeak-2.3.6.tgz", @@ -2122,6 +4159,777 @@ "@pkgjs/parseargs": "^0.11.0" } }, + "node_modules/jest": { + "version": "29.7.0", + "resolved": "https://registry.npmjs.org/jest/-/jest-29.7.0.tgz", + "integrity": "sha512-NIy3oAFp9shda19hy4HK0HRTWKtPJmGdnvywu01nOqNC2vZg+Z+fvJDxpMQA88eb2I9EcafcdjYgsDthnYTvGw==", + "dev": true, + "dependencies": { + "@jest/core": "^29.7.0", + "@jest/types": "^29.6.3", + "import-local": "^3.0.2", + "jest-cli": "^29.7.0" + }, + "bin": { + "jest": "bin/jest.js" + }, + "engines": { + "node": "^14.15.0 || ^16.10.0 || >=18.0.0" + }, + "peerDependencies": { + "node-notifier": "^8.0.1 || ^9.0.0 || ^10.0.0" + }, + "peerDependenciesMeta": { + "node-notifier": { + "optional": true + } + } + }, + "node_modules/jest-changed-files": { + "version": "29.7.0", + "resolved": "https://registry.npmjs.org/jest-changed-files/-/jest-changed-files-29.7.0.tgz", + "integrity": "sha512-fEArFiwf1BpQ+4bXSprcDc3/x4HSzL4al2tozwVpDFpsxALjLYdyiIK4e5Vz66GQJIbXJ82+35PtysofptNX2w==", + "dev": true, + "dependencies": { + "execa": "^5.0.0", + "jest-util": "^29.7.0", + "p-limit": "^3.1.0" + }, + "engines": { + "node": "^14.15.0 || ^16.10.0 || >=18.0.0" + } + }, + "node_modules/jest-circus": { + "version": "29.7.0", + "resolved": "https://registry.npmjs.org/jest-circus/-/jest-circus-29.7.0.tgz", + "integrity": "sha512-3E1nCMgipcTkCocFwM90XXQab9bS+GMsjdpmPrlelaxwD93Ad8iVEjX/vvHPdLPnFf+L40u+5+iutRdA1N9myw==", + "dev": true, + "dependencies": { + "@jest/environment": "^29.7.0", + "@jest/expect": "^29.7.0", + "@jest/test-result": "^29.7.0", + "@jest/types": "^29.6.3", + "@types/node": "*", + "chalk": "^4.0.0", + "co": "^4.6.0", + "dedent": "^1.0.0", + "is-generator-fn": "^2.0.0", + "jest-each": "^29.7.0", + "jest-matcher-utils": "^29.7.0", + "jest-message-util": "^29.7.0", + "jest-runtime": "^29.7.0", + "jest-snapshot": "^29.7.0", + "jest-util": "^29.7.0", + "p-limit": "^3.1.0", + "pretty-format": "^29.7.0", + "pure-rand": "^6.0.0", + "slash": "^3.0.0", + "stack-utils": "^2.0.3" + }, + "engines": { + "node": "^14.15.0 || ^16.10.0 || >=18.0.0" + } + }, + "node_modules/jest-cli": { + "version": "29.7.0", + "resolved": "https://registry.npmjs.org/jest-cli/-/jest-cli-29.7.0.tgz", + "integrity": "sha512-OVVobw2IubN/GSYsxETi+gOe7Ka59EFMR/twOU3Jb2GnKKeMGJB5SGUUrEz3SFVmJASUdZUzy83sLNNQ2gZslg==", + "dev": true, + "dependencies": { + "@jest/core": "^29.7.0", + "@jest/test-result": "^29.7.0", + "@jest/types": "^29.6.3", + "chalk": "^4.0.0", + "create-jest": "^29.7.0", + "exit": "^0.1.2", + "import-local": "^3.0.2", + "jest-config": "^29.7.0", + "jest-util": "^29.7.0", + "jest-validate": "^29.7.0", + "yargs": "^17.3.1" + }, + "bin": { + "jest": "bin/jest.js" + }, + "engines": { + "node": "^14.15.0 || ^16.10.0 || >=18.0.0" + }, + "peerDependencies": { + "node-notifier": "^8.0.1 || ^9.0.0 || ^10.0.0" + }, + "peerDependenciesMeta": { + "node-notifier": { + "optional": true + } + } + }, + "node_modules/jest-cli/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==", + "dev": true, + "engines": { + "node": ">=8" + } + }, + "node_modules/jest-cli/node_modules/cliui": { + "version": "8.0.1", + "resolved": "https://registry.npmjs.org/cliui/-/cliui-8.0.1.tgz", + "integrity": "sha512-BSeNnyus75C4//NQ9gQt1/csTXyo/8Sb+afLAkzAptFuMsod9HFokGNudZpi/oQV73hnVK+sR+5PVRMd+Dr7YQ==", + "dev": true, + "dependencies": { + "string-width": "^4.2.0", + "strip-ansi": "^6.0.1", + "wrap-ansi": "^7.0.0" + }, + "engines": { + "node": ">=12" + } + }, + "node_modules/jest-cli/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==", + "dev": true + }, + "node_modules/jest-cli/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==", + "dev": true, + "dependencies": { + "emoji-regex": "^8.0.0", + "is-fullwidth-code-point": "^3.0.0", + "strip-ansi": "^6.0.1" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/jest-cli/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==", + "dev": true, + "dependencies": { + "ansi-regex": "^5.0.1" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/jest-cli/node_modules/wrap-ansi": { + "version": "7.0.0", + "resolved": "https://registry.npmjs.org/wrap-ansi/-/wrap-ansi-7.0.0.tgz", + "integrity": "sha512-YVGIj2kamLSTxw6NsZjoBxfSwsn0ycdesmc4p+Q21c5zPuZ1pl+NfxVdxPtdHvmNVOQ6XSYG4AUtyt/Fi7D16Q==", + "dev": true, + "dependencies": { + "ansi-styles": "^4.0.0", + "string-width": "^4.1.0", + "strip-ansi": "^6.0.0" + }, + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/chalk/wrap-ansi?sponsor=1" + } + }, + "node_modules/jest-cli/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, + "dependencies": { + "cliui": "^8.0.1", + "escalade": "^3.1.1", + "get-caller-file": "^2.0.5", + "require-directory": "^2.1.1", + "string-width": "^4.2.3", + "y18n": "^5.0.5", + "yargs-parser": "^21.1.1" + }, + "engines": { + "node": ">=12" + } + }, + "node_modules/jest-cli/node_modules/yargs-parser": { + "version": "21.1.1", + "resolved": "https://registry.npmjs.org/yargs-parser/-/yargs-parser-21.1.1.tgz", + "integrity": "sha512-tVpsJW7DdjecAiFpbIB1e3qxIQsE6NoPc5/eTdrbbIC4h0LVsWhnoa3g+m2HclBIujHzsxZ4VJVA+GUuc2/LBw==", + "dev": true, + "engines": { + "node": ">=12" + } + }, + "node_modules/jest-config": { + "version": "29.7.0", + "resolved": "https://registry.npmjs.org/jest-config/-/jest-config-29.7.0.tgz", + "integrity": "sha512-uXbpfeQ7R6TZBqI3/TxCU4q4ttk3u0PJeC+E0zbfSoSjq6bJ7buBPxzQPL0ifrkY4DNu4JUdk0ImlBUYi840eQ==", + "dev": true, + "dependencies": { + "@babel/core": "^7.11.6", + "@jest/test-sequencer": "^29.7.0", + "@jest/types": "^29.6.3", + "babel-jest": "^29.7.0", + "chalk": "^4.0.0", + "ci-info": "^3.2.0", + "deepmerge": "^4.2.2", + "glob": "^7.1.3", + "graceful-fs": "^4.2.9", + "jest-circus": "^29.7.0", + "jest-environment-node": "^29.7.0", + "jest-get-type": "^29.6.3", + "jest-regex-util": "^29.6.3", + "jest-resolve": "^29.7.0", + "jest-runner": "^29.7.0", + "jest-util": "^29.7.0", + "jest-validate": "^29.7.0", + "micromatch": "^4.0.4", + "parse-json": "^5.2.0", + "pretty-format": "^29.7.0", + "slash": "^3.0.0", + "strip-json-comments": "^3.1.1" + }, + "engines": { + "node": "^14.15.0 || ^16.10.0 || >=18.0.0" + }, + "peerDependencies": { + "@types/node": "*", + "ts-node": ">=9.0.0" + }, + "peerDependenciesMeta": { + "@types/node": { + "optional": true + }, + "ts-node": { + "optional": true + } + } + }, + "node_modules/jest-config/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==", + "dev": true, + "dependencies": { + "balanced-match": "^1.0.0", + "concat-map": "0.0.1" + } + }, + "node_modules/jest-config/node_modules/glob": { + "version": "7.2.3", + "resolved": "https://registry.npmjs.org/glob/-/glob-7.2.3.tgz", + "integrity": "sha512-nFR0zLpU2YCaRxwoCJvL6UvCH2JFyFVIvwTLsIf21AuHlMskA1hhTdk+LlYJtOlYt9v6dvszD2BGRqBL+iQK9Q==", + "deprecated": "Glob versions prior to v9 are no longer supported", + "dev": true, + "dependencies": { + "fs.realpath": "^1.0.0", + "inflight": "^1.0.4", + "inherits": "2", + "minimatch": "^3.1.1", + "once": "^1.3.0", + "path-is-absolute": "^1.0.0" + }, + "engines": { + "node": "*" + }, + "funding": { + "url": "https://github.com/sponsors/isaacs" + } + }, + "node_modules/jest-config/node_modules/minimatch": { + "version": "3.1.2", + "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-3.1.2.tgz", + "integrity": "sha512-J7p63hRiAjw1NDEww1W7i37+ByIrOWO5XQQAzZ3VOcL0PNybwpfmV/N05zFAzwQ9USyEcX6t3UO+K5aqBQOIHw==", + "dev": true, + "dependencies": { + "brace-expansion": "^1.1.7" + }, + "engines": { + "node": "*" + } + }, + "node_modules/jest-config/node_modules/strip-json-comments": { + "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==", + "dev": true, + "engines": { + "node": ">=8" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/jest-diff": { + "version": "29.7.0", + "resolved": "https://registry.npmjs.org/jest-diff/-/jest-diff-29.7.0.tgz", + "integrity": "sha512-LMIgiIrhigmPrs03JHpxUh2yISK3vLFPkAodPeo0+BuF7wA2FoQbkEg1u8gBYBThncu7e1oEDUfIXVuTqLRUjw==", + "dev": true, + "dependencies": { + "chalk": "^4.0.0", + "diff-sequences": "^29.6.3", + "jest-get-type": "^29.6.3", + "pretty-format": "^29.7.0" + }, + "engines": { + "node": "^14.15.0 || ^16.10.0 || >=18.0.0" + } + }, + "node_modules/jest-docblock": { + "version": "29.7.0", + "resolved": "https://registry.npmjs.org/jest-docblock/-/jest-docblock-29.7.0.tgz", + "integrity": "sha512-q617Auw3A612guyaFgsbFeYpNP5t2aoUNLwBUbc/0kD1R4t9ixDbyFTHd1nok4epoVFpr7PmeWHrhvuV3XaJ4g==", + "dev": true, + "dependencies": { + "detect-newline": "^3.0.0" + }, + "engines": { + "node": "^14.15.0 || ^16.10.0 || >=18.0.0" + } + }, + "node_modules/jest-each": { + "version": "29.7.0", + "resolved": "https://registry.npmjs.org/jest-each/-/jest-each-29.7.0.tgz", + "integrity": "sha512-gns+Er14+ZrEoC5fhOfYCY1LOHHr0TI+rQUHZS8Ttw2l7gl+80eHc/gFf2Ktkw0+SIACDTeWvpFcv3B04VembQ==", + "dev": true, + "dependencies": { + "@jest/types": "^29.6.3", + "chalk": "^4.0.0", + "jest-get-type": "^29.6.3", + "jest-util": "^29.7.0", + "pretty-format": "^29.7.0" + }, + "engines": { + "node": "^14.15.0 || ^16.10.0 || >=18.0.0" + } + }, + "node_modules/jest-environment-node": { + "version": "29.7.0", + "resolved": "https://registry.npmjs.org/jest-environment-node/-/jest-environment-node-29.7.0.tgz", + "integrity": "sha512-DOSwCRqXirTOyheM+4d5YZOrWcdu0LNZ87ewUoywbcb2XR4wKgqiG8vNeYwhjFMbEkfju7wx2GYH0P2gevGvFw==", + "dev": true, + "dependencies": { + "@jest/environment": "^29.7.0", + "@jest/fake-timers": "^29.7.0", + "@jest/types": "^29.6.3", + "@types/node": "*", + "jest-mock": "^29.7.0", + "jest-util": "^29.7.0" + }, + "engines": { + "node": "^14.15.0 || ^16.10.0 || >=18.0.0" + } + }, + "node_modules/jest-get-type": { + "version": "29.6.3", + "resolved": "https://registry.npmjs.org/jest-get-type/-/jest-get-type-29.6.3.tgz", + "integrity": "sha512-zrteXnqYxfQh7l5FHyL38jL39di8H8rHoecLH3JNxH3BwOrBsNeabdap5e0I23lD4HHI8W5VFBZqG4Eaq5LNcw==", + "dev": true, + "engines": { + "node": "^14.15.0 || ^16.10.0 || >=18.0.0" + } + }, + "node_modules/jest-haste-map": { + "version": "29.7.0", + "resolved": "https://registry.npmjs.org/jest-haste-map/-/jest-haste-map-29.7.0.tgz", + "integrity": "sha512-fP8u2pyfqx0K1rGn1R9pyE0/KTn+G7PxktWidOBTqFPLYX0b9ksaMFkhK5vrS3DVun09pckLdlx90QthlW7AmA==", + "dev": true, + "dependencies": { + "@jest/types": "^29.6.3", + "@types/graceful-fs": "^4.1.3", + "@types/node": "*", + "anymatch": "^3.0.3", + "fb-watchman": "^2.0.0", + "graceful-fs": "^4.2.9", + "jest-regex-util": "^29.6.3", + "jest-util": "^29.7.0", + "jest-worker": "^29.7.0", + "micromatch": "^4.0.4", + "walker": "^1.0.8" + }, + "engines": { + "node": "^14.15.0 || ^16.10.0 || >=18.0.0" + }, + "optionalDependencies": { + "fsevents": "^2.3.2" + } + }, + "node_modules/jest-leak-detector": { + "version": "29.7.0", + "resolved": "https://registry.npmjs.org/jest-leak-detector/-/jest-leak-detector-29.7.0.tgz", + "integrity": "sha512-kYA8IJcSYtST2BY9I+SMC32nDpBT3J2NvWJx8+JCuCdl/CR1I4EKUJROiP8XtCcxqgTTBGJNdbB1A8XRKbTetw==", + "dev": true, + "dependencies": { + "jest-get-type": "^29.6.3", + "pretty-format": "^29.7.0" + }, + "engines": { + "node": "^14.15.0 || ^16.10.0 || >=18.0.0" + } + }, + "node_modules/jest-matcher-utils": { + "version": "29.7.0", + "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, + "dependencies": { + "chalk": "^4.0.0", + "jest-diff": "^29.7.0", + "jest-get-type": "^29.6.3", + "pretty-format": "^29.7.0" + }, + "engines": { + "node": "^14.15.0 || ^16.10.0 || >=18.0.0" + } + }, + "node_modules/jest-message-util": { + "version": "29.7.0", + "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, + "dependencies": { + "@babel/code-frame": "^7.12.13", + "@jest/types": "^29.6.3", + "@types/stack-utils": "^2.0.0", + "chalk": "^4.0.0", + "graceful-fs": "^4.2.9", + "micromatch": "^4.0.4", + "pretty-format": "^29.7.0", + "slash": "^3.0.0", + "stack-utils": "^2.0.3" + }, + "engines": { + "node": "^14.15.0 || ^16.10.0 || >=18.0.0" + } + }, + "node_modules/jest-mock": { + "version": "29.7.0", + "resolved": "https://registry.npmjs.org/jest-mock/-/jest-mock-29.7.0.tgz", + "integrity": "sha512-ITOMZn+UkYS4ZFh83xYAOzWStloNzJFO2s8DWrE4lhtGD+AorgnbkiKERe4wQVBydIGPx059g6riW5Btp6Llnw==", + "dev": true, + "dependencies": { + "@jest/types": "^29.6.3", + "@types/node": "*", + "jest-util": "^29.7.0" + }, + "engines": { + "node": "^14.15.0 || ^16.10.0 || >=18.0.0" + } + }, + "node_modules/jest-pnp-resolver": { + "version": "1.2.3", + "resolved": "https://registry.npmjs.org/jest-pnp-resolver/-/jest-pnp-resolver-1.2.3.tgz", + "integrity": "sha512-+3NpwQEnRoIBtx4fyhblQDPgJI0H1IEIkX7ShLUjPGA7TtUTvI1oiKi3SR4oBR0hQhQR80l4WAe5RrXBwWMA8w==", + "dev": true, + "engines": { + "node": ">=6" + }, + "peerDependencies": { + "jest-resolve": "*" + }, + "peerDependenciesMeta": { + "jest-resolve": { + "optional": true + } + } + }, + "node_modules/jest-regex-util": { + "version": "29.6.3", + "resolved": "https://registry.npmjs.org/jest-regex-util/-/jest-regex-util-29.6.3.tgz", + "integrity": "sha512-KJJBsRCyyLNWCNBOvZyRDnAIfUiRJ8v+hOBQYGn8gDyF3UegwiP4gwRR3/SDa42g1YbVycTidUF3rKjyLFDWbg==", + "dev": true, + "engines": { + "node": "^14.15.0 || ^16.10.0 || >=18.0.0" + } + }, + "node_modules/jest-resolve": { + "version": "29.7.0", + "resolved": "https://registry.npmjs.org/jest-resolve/-/jest-resolve-29.7.0.tgz", + "integrity": "sha512-IOVhZSrg+UvVAshDSDtHyFCCBUl/Q3AAJv8iZ6ZjnZ74xzvwuzLXid9IIIPgTnY62SJjfuupMKZsZQRsCvxEgA==", + "dev": true, + "dependencies": { + "chalk": "^4.0.0", + "graceful-fs": "^4.2.9", + "jest-haste-map": "^29.7.0", + "jest-pnp-resolver": "^1.2.2", + "jest-util": "^29.7.0", + "jest-validate": "^29.7.0", + "resolve": "^1.20.0", + "resolve.exports": "^2.0.0", + "slash": "^3.0.0" + }, + "engines": { + "node": "^14.15.0 || ^16.10.0 || >=18.0.0" + } + }, + "node_modules/jest-resolve-dependencies": { + "version": "29.7.0", + "resolved": "https://registry.npmjs.org/jest-resolve-dependencies/-/jest-resolve-dependencies-29.7.0.tgz", + "integrity": "sha512-un0zD/6qxJ+S0et7WxeI3H5XSe9lTBBR7bOHCHXkKR6luG5mwDDlIzVQ0V5cZCuoTgEdcdwzTghYkTWfubi+nA==", + "dev": true, + "dependencies": { + "jest-regex-util": "^29.6.3", + "jest-snapshot": "^29.7.0" + }, + "engines": { + "node": "^14.15.0 || ^16.10.0 || >=18.0.0" + } + }, + "node_modules/jest-runner": { + "version": "29.7.0", + "resolved": "https://registry.npmjs.org/jest-runner/-/jest-runner-29.7.0.tgz", + "integrity": "sha512-fsc4N6cPCAahybGBfTRcq5wFR6fpLznMg47sY5aDpsoejOcVYFb07AHuSnR0liMcPTgBsA3ZJL6kFOjPdoNipQ==", + "dev": true, + "dependencies": { + "@jest/console": "^29.7.0", + "@jest/environment": "^29.7.0", + "@jest/test-result": "^29.7.0", + "@jest/transform": "^29.7.0", + "@jest/types": "^29.6.3", + "@types/node": "*", + "chalk": "^4.0.0", + "emittery": "^0.13.1", + "graceful-fs": "^4.2.9", + "jest-docblock": "^29.7.0", + "jest-environment-node": "^29.7.0", + "jest-haste-map": "^29.7.0", + "jest-leak-detector": "^29.7.0", + "jest-message-util": "^29.7.0", + "jest-resolve": "^29.7.0", + "jest-runtime": "^29.7.0", + "jest-util": "^29.7.0", + "jest-watcher": "^29.7.0", + "jest-worker": "^29.7.0", + "p-limit": "^3.1.0", + "source-map-support": "0.5.13" + }, + "engines": { + "node": "^14.15.0 || ^16.10.0 || >=18.0.0" + } + }, + "node_modules/jest-runtime": { + "version": "29.7.0", + "resolved": "https://registry.npmjs.org/jest-runtime/-/jest-runtime-29.7.0.tgz", + "integrity": "sha512-gUnLjgwdGqW7B4LvOIkbKs9WGbn+QLqRQQ9juC6HndeDiezIwhDP+mhMwHWCEcfQ5RUXa6OPnFF8BJh5xegwwQ==", + "dev": true, + "dependencies": { + "@jest/environment": "^29.7.0", + "@jest/fake-timers": "^29.7.0", + "@jest/globals": "^29.7.0", + "@jest/source-map": "^29.6.3", + "@jest/test-result": "^29.7.0", + "@jest/transform": "^29.7.0", + "@jest/types": "^29.6.3", + "@types/node": "*", + "chalk": "^4.0.0", + "cjs-module-lexer": "^1.0.0", + "collect-v8-coverage": "^1.0.0", + "glob": "^7.1.3", + "graceful-fs": "^4.2.9", + "jest-haste-map": "^29.7.0", + "jest-message-util": "^29.7.0", + "jest-mock": "^29.7.0", + "jest-regex-util": "^29.6.3", + "jest-resolve": "^29.7.0", + "jest-snapshot": "^29.7.0", + "jest-util": "^29.7.0", + "slash": "^3.0.0", + "strip-bom": "^4.0.0" + }, + "engines": { + "node": "^14.15.0 || ^16.10.0 || >=18.0.0" + } + }, + "node_modules/jest-runtime/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==", + "dev": true, + "dependencies": { + "balanced-match": "^1.0.0", + "concat-map": "0.0.1" + } + }, + "node_modules/jest-runtime/node_modules/glob": { + "version": "7.2.3", + "resolved": "https://registry.npmjs.org/glob/-/glob-7.2.3.tgz", + "integrity": "sha512-nFR0zLpU2YCaRxwoCJvL6UvCH2JFyFVIvwTLsIf21AuHlMskA1hhTdk+LlYJtOlYt9v6dvszD2BGRqBL+iQK9Q==", + "deprecated": "Glob versions prior to v9 are no longer supported", + "dev": true, + "dependencies": { + "fs.realpath": "^1.0.0", + "inflight": "^1.0.4", + "inherits": "2", + "minimatch": "^3.1.1", + "once": "^1.3.0", + "path-is-absolute": "^1.0.0" + }, + "engines": { + "node": "*" + }, + "funding": { + "url": "https://github.com/sponsors/isaacs" + } + }, + "node_modules/jest-runtime/node_modules/minimatch": { + "version": "3.1.2", + "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-3.1.2.tgz", + "integrity": "sha512-J7p63hRiAjw1NDEww1W7i37+ByIrOWO5XQQAzZ3VOcL0PNybwpfmV/N05zFAzwQ9USyEcX6t3UO+K5aqBQOIHw==", + "dev": true, + "dependencies": { + "brace-expansion": "^1.1.7" + }, + "engines": { + "node": "*" + } + }, + "node_modules/jest-snapshot": { + "version": "29.7.0", + "resolved": "https://registry.npmjs.org/jest-snapshot/-/jest-snapshot-29.7.0.tgz", + "integrity": "sha512-Rm0BMWtxBcioHr1/OX5YCP8Uov4riHvKPknOGs804Zg9JGZgmIBkbtlxJC/7Z4msKYVbIJtfU+tKb8xlYNfdkw==", + "dev": true, + "dependencies": { + "@babel/core": "^7.11.6", + "@babel/generator": "^7.7.2", + "@babel/plugin-syntax-jsx": "^7.7.2", + "@babel/plugin-syntax-typescript": "^7.7.2", + "@babel/types": "^7.3.3", + "@jest/expect-utils": "^29.7.0", + "@jest/transform": "^29.7.0", + "@jest/types": "^29.6.3", + "babel-preset-current-node-syntax": "^1.0.0", + "chalk": "^4.0.0", + "expect": "^29.7.0", + "graceful-fs": "^4.2.9", + "jest-diff": "^29.7.0", + "jest-get-type": "^29.6.3", + "jest-matcher-utils": "^29.7.0", + "jest-message-util": "^29.7.0", + "jest-util": "^29.7.0", + "natural-compare": "^1.4.0", + "pretty-format": "^29.7.0", + "semver": "^7.5.3" + }, + "engines": { + "node": "^14.15.0 || ^16.10.0 || >=18.0.0" + } + }, + "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, + "dependencies": { + "@jest/types": "^29.6.3", + "@types/node": "*", + "chalk": "^4.0.0", + "ci-info": "^3.2.0", + "graceful-fs": "^4.2.9", + "picomatch": "^2.2.3" + }, + "engines": { + "node": "^14.15.0 || ^16.10.0 || >=18.0.0" + } + }, + "node_modules/jest-validate": { + "version": "29.7.0", + "resolved": "https://registry.npmjs.org/jest-validate/-/jest-validate-29.7.0.tgz", + "integrity": "sha512-ZB7wHqaRGVw/9hST/OuFUReG7M8vKeq0/J2egIGLdvjHCmYqGARhzXmtgi+gVeZ5uXFF219aOc3Ls2yLg27tkw==", + "dev": true, + "dependencies": { + "@jest/types": "^29.6.3", + "camelcase": "^6.2.0", + "chalk": "^4.0.0", + "jest-get-type": "^29.6.3", + "leven": "^3.1.0", + "pretty-format": "^29.7.0" + }, + "engines": { + "node": "^14.15.0 || ^16.10.0 || >=18.0.0" + } + }, + "node_modules/jest-validate/node_modules/camelcase": { + "version": "6.3.0", + "resolved": "https://registry.npmjs.org/camelcase/-/camelcase-6.3.0.tgz", + "integrity": "sha512-Gmy6FhYlCY7uOElZUSbxo2UCDH8owEk996gkbrpsgGtrJLM3J7jGxl9Ic7Qwwj4ivOE5AWZWRMecDdF7hqGjFA==", + "dev": true, + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/jest-watcher": { + "version": "29.7.0", + "resolved": "https://registry.npmjs.org/jest-watcher/-/jest-watcher-29.7.0.tgz", + "integrity": "sha512-49Fg7WXkU3Vl2h6LbLtMQ/HyB6rXSIX7SqvBLQmssRBGN9I0PNvPmAmCWSOY6SOvrjhI/F7/bGAv9RtnsPA03g==", + "dev": true, + "dependencies": { + "@jest/test-result": "^29.7.0", + "@jest/types": "^29.6.3", + "@types/node": "*", + "ansi-escapes": "^4.2.1", + "chalk": "^4.0.0", + "emittery": "^0.13.1", + "jest-util": "^29.7.0", + "string-length": "^4.0.1" + }, + "engines": { + "node": "^14.15.0 || ^16.10.0 || >=18.0.0" + } + }, + "node_modules/jest-worker": { + "version": "29.7.0", + "resolved": "https://registry.npmjs.org/jest-worker/-/jest-worker-29.7.0.tgz", + "integrity": "sha512-eIz2msL/EzL9UFTFFx7jBTkeZfku0yUAyZZZmJ93H2TYEiroIx2PQjEXcwYtYl8zXCxb+PAmA2hLIt/6ZEkPHw==", + "dev": true, + "dependencies": { + "@types/node": "*", + "jest-util": "^29.7.0", + "merge-stream": "^2.0.0", + "supports-color": "^8.0.0" + }, + "engines": { + "node": "^14.15.0 || ^16.10.0 || >=18.0.0" + } + }, + "node_modules/jest-worker/node_modules/supports-color": { + "version": "8.1.1", + "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-8.1.1.tgz", + "integrity": "sha512-MpUEN2OodtUzxvKQl72cUF7RQ5EiHsGvSsVG0ia9c5RbWGL2CI4C7EpPS8UTBIplnlzZiNuV56w+FuNxy3ty2Q==", + "dev": true, + "dependencies": { + "has-flag": "^4.0.0" + }, + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/chalk/supports-color?sponsor=1" + } + }, + "node_modules/js-tokens": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/js-tokens/-/js-tokens-4.0.0.tgz", + "integrity": "sha512-RdJUflcE3cUzKiMqQgsCu06FPu9UdIJO0beYbPhHN4k6apgJtifcoCtT9bcxOpYBtpD2kCM6Sbzg4CausW/PKQ==", + "dev": true + }, + "node_modules/js-yaml": { + "version": "3.14.1", + "resolved": "https://registry.npmjs.org/js-yaml/-/js-yaml-3.14.1.tgz", + "integrity": "sha512-okMH7OXXJ7YrN9Ok3/SXrnu4iX9yOk+25nqX4imS2npuvTYDmo/QEZoqwZkYaIDk3jVvBOTOIEgEhaLOynBS9g==", + "dev": true, + "dependencies": { + "argparse": "^1.0.7", + "esprima": "^4.0.0" + }, + "bin": { + "js-yaml": "bin/js-yaml.js" + } + }, "node_modules/jsesc": { "version": "2.5.2", "resolved": "https://registry.npmjs.org/jsesc/-/jsesc-2.5.2.tgz", @@ -2143,6 +4951,24 @@ "node": ">=0.8" } }, + "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 + }, + "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, + "bin": { + "json5": "lib/cli.js" + }, + "engines": { + "node": ">=6" + } + }, "node_modules/jsonfile": { "version": "6.1.0", "resolved": "https://registry.npmjs.org/jsonfile/-/jsonfile-6.1.0.tgz", @@ -2155,6 +4981,42 @@ "graceful-fs": "^4.1.6" } }, + "node_modules/kleur": { + "version": "3.0.3", + "resolved": "https://registry.npmjs.org/kleur/-/kleur-3.0.3.tgz", + "integrity": "sha512-eTIzlVOSUR+JxdDFepEYcBMtZ9Qqdef+rnzWdRZuMbOywu5tO2w2N7rqjoANZ5k9vywhL6Br1VRjUIgTQx4E8w==", + "dev": true, + "engines": { + "node": ">=6" + } + }, + "node_modules/leven": { + "version": "3.1.0", + "resolved": "https://registry.npmjs.org/leven/-/leven-3.1.0.tgz", + "integrity": "sha512-qsda+H8jTaUaN/x5vzW2rzc+8Rw4TAQ/4KjB46IwK5VH+IlVeeeje/EoZRpiXvIqjFgK84QffqPztGI3VBLG1A==", + "dev": true, + "engines": { + "node": ">=6" + } + }, + "node_modules/lines-and-columns": { + "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 + }, + "node_modules/locate-path": { + "version": "5.0.0", + "resolved": "https://registry.npmjs.org/locate-path/-/locate-path-5.0.0.tgz", + "integrity": "sha512-t7hw9pI+WvuwNJXwk5zVHpyhIqzg2qTlklJOf0mVxGSbe3Fp2VieZcduNYjaLDoy6p9uGpQEGWG87WpMKlNq8g==", + "dev": true, + "dependencies": { + "p-locate": "^4.1.0" + }, + "engines": { + "node": ">=8" + } + }, "node_modules/lodash.assignwith": { "version": "4.2.0", "resolved": "https://registry.npmjs.org/lodash.assignwith/-/lodash.assignwith-4.2.0.tgz", @@ -2167,6 +5029,12 @@ "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 + }, "node_modules/lru-cache": { "version": "10.2.2", "resolved": "https://registry.npmjs.org/lru-cache/-/lru-cache-10.2.2.tgz", @@ -2209,6 +5077,27 @@ "node": ">=4" } }, + "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 + }, + "node_modules/makeerror": { + "version": "1.0.12", + "resolved": "https://registry.npmjs.org/makeerror/-/makeerror-1.0.12.tgz", + "integrity": "sha512-JmqCvUhmt43madlpFzG4BQzG2Z3m6tvQDNKdClZnO3VbIudJYmxsT0FNJMeiB2+JTSlTQTSbU8QdesVmwJcmLg==", + "dev": true, + "dependencies": { + "tmpl": "1.0.5" + } + }, + "node_modules/merge-stream": { + "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 + }, "node_modules/merge2": { "version": "1.4.1", "resolved": "https://registry.npmjs.org/merge2/-/merge2-1.4.1.tgz", @@ -2250,6 +5139,15 @@ "node": ">= 0.6" } }, + "node_modules/mimic-fn": { + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/mimic-fn/-/mimic-fn-2.1.0.tgz", + "integrity": "sha512-OqbOk5oEQeAZ8WXWydlu9HJjz9WVdEIvamMCcXmuqUYjTknH/sqsWvhQ3vgwKFRR1HpjvNBKQ37nbJgYzGqGcg==", + "dev": true, + "engines": { + "node": ">=6" + } + }, "node_modules/mimic-response": { "version": "3.1.0", "resolved": "https://registry.npmjs.org/mimic-response/-/mimic-response-3.1.0.tgz", @@ -2351,6 +5249,12 @@ "integrity": "sha512-ONmRUqK7zj7DWX0D9ADe03wbwOBZxNAfF20PlGfCWQcD3+/MakShIHrMqx9YwPTfxDdF1zLeL+RGZiR9kGMLdg==", "dev": true }, + "node_modules/natural-compare": { + "version": "1.4.0", + "resolved": "https://registry.npmjs.org/natural-compare/-/natural-compare-1.4.0.tgz", + "integrity": "sha512-OWND8ei3VtNC9h7V60qff3SVobHr996CTwgxubgyQYEpg290h9J0buyECNNJexkFm5sOajh5G116RYA1c8ZMSw==", + "dev": true + }, "node_modules/ncp": { "version": "2.0.0", "resolved": "https://registry.npmjs.org/ncp/-/ncp-2.0.0.tgz", @@ -2420,6 +5324,39 @@ "node": ">= 6.13.0" } }, + "node_modules/node-int64": { + "version": "0.4.0", + "resolved": "https://registry.npmjs.org/node-int64/-/node-int64-0.4.0.tgz", + "integrity": "sha512-O5lz91xSOeoXP6DulyHfllpq+Eg00MWitZIbtPfoSEvqIHdl5gfcY6hYzDWnj0qD5tz52PI08u9qUvSVeUBeHw==", + "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 + }, + "node_modules/normalize-path": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/normalize-path/-/normalize-path-3.0.0.tgz", + "integrity": "sha512-6eZs5Ls3WtCisHWp9S2GUy8dqkpGi4BVSz3GaqiE6ezub0512ESztXUwUB6C6IKbQkY2Pnb/mD4WYojCRwcwLA==", + "dev": true, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/npm-run-path": { + "version": "4.0.1", + "resolved": "https://registry.npmjs.org/npm-run-path/-/npm-run-path-4.0.1.tgz", + "integrity": "sha512-S48WzZW777zhNIrn7gxOlISNAqi9ZC/uQFnRdbeIHhZhCA6UqpkOT8T1G7BvfdgP4Er8gF4sUbaS0i7QvIfCWw==", + "dev": true, + "dependencies": { + "path-key": "^3.0.0" + }, + "engines": { + "node": ">=8" + } + }, "node_modules/once": { "version": "1.4.0", "resolved": "https://registry.npmjs.org/once/-/once-1.4.0.tgz", @@ -2428,6 +5365,21 @@ "wrappy": "1" } }, + "node_modules/onetime": { + "version": "5.1.2", + "resolved": "https://registry.npmjs.org/onetime/-/onetime-5.1.2.tgz", + "integrity": "sha512-kbpaSSGJTWdAY5KPVeMOKXSrPtr8C8C7wodJbcsd51jRnmD+GZu8Y0VoU6Dm5Z4vWr0Ig/1NKuWRKf7j5aaYSg==", + "dev": true, + "dependencies": { + "mimic-fn": "^2.1.0" + }, + "engines": { + "node": ">=6" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, "node_modules/p-is-promise": { "version": "3.0.0", "resolved": "https://registry.npmjs.org/p-is-promise/-/p-is-promise-3.0.0.tgz", @@ -2437,6 +5389,57 @@ "node": ">=8" } }, + "node_modules/p-limit": { + "version": "3.1.0", + "resolved": "https://registry.npmjs.org/p-limit/-/p-limit-3.1.0.tgz", + "integrity": "sha512-TYOanM3wGwNGsZN2cVTYPArw454xnXj5qmWF1bEoAc4+cU/ol7GVh7odevjp1FNHduHc3KZMcFduxU5Xc6uJRQ==", + "dev": true, + "dependencies": { + "yocto-queue": "^0.1.0" + }, + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/p-locate": { + "version": "4.1.0", + "resolved": "https://registry.npmjs.org/p-locate/-/p-locate-4.1.0.tgz", + "integrity": "sha512-R79ZZ/0wAxKGu3oYMlz8jy/kbhsNrS7SKZ7PxEHBgJ5+F2mtFW2fK2cOtBh1cHYkQsbzFV7I+EoRKe6Yt0oK7A==", + "dev": true, + "dependencies": { + "p-limit": "^2.2.0" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/p-locate/node_modules/p-limit": { + "version": "2.3.0", + "resolved": "https://registry.npmjs.org/p-limit/-/p-limit-2.3.0.tgz", + "integrity": "sha512-//88mFWSJx8lxCzwdAABTJL2MyWB12+eIY7MDL2SqLmAkeKU9qxRvWuSyTjm3FUmpBEMuFfckAIqEaVGUDxb6w==", + "dev": true, + "dependencies": { + "p-try": "^2.0.0" + }, + "engines": { + "node": ">=6" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/p-try": { + "version": "2.2.0", + "resolved": "https://registry.npmjs.org/p-try/-/p-try-2.2.0.tgz", + "integrity": "sha512-R4nPAVTAU0B9D35/Gk3uJf/7XYbQcyohSKdvAxIRSNghFl4e71hVoGnBNQz9cWaXxO2I10KTC+3jMdvvoKw6dQ==", + "dev": true, + "engines": { + "node": ">=6" + } + }, "node_modules/pad-left": { "version": "2.1.0", "resolved": "https://registry.npmjs.org/pad-left/-/pad-left-2.1.0.tgz", @@ -2449,6 +5452,42 @@ "node": ">=0.10.0" } }, + "node_modules/parse-json": { + "version": "5.2.0", + "resolved": "https://registry.npmjs.org/parse-json/-/parse-json-5.2.0.tgz", + "integrity": "sha512-ayCKvm/phCGxOkYRSCM82iDwct8/EonSEgCSxWxD7ve6jHggsFl4fZVQBPRNgQoKiuV/odhFrGzQXZwbifC8Rg==", + "dev": true, + "dependencies": { + "@babel/code-frame": "^7.0.0", + "error-ex": "^1.3.1", + "json-parse-even-better-errors": "^2.3.0", + "lines-and-columns": "^1.1.6" + }, + "engines": { + "node": ">=8" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/path-exists": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/path-exists/-/path-exists-4.0.0.tgz", + "integrity": "sha512-ak9Qy5Q7jYb2Wwcey5Fpvg2KoAc/ZIhLSLOSBmRmygPsGwkVVt0fZa0qrtMz+m6tJTAHfZQ8FnmB4MG4LWy7/w==", + "dev": true, + "engines": { + "node": ">=8" + } + }, + "node_modules/path-is-absolute": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/path-is-absolute/-/path-is-absolute-1.0.1.tgz", + "integrity": "sha512-AVbw3UJ2e9bq64vSaS9Am0fje1Pa8pbGqTTsmXfaIiMpnr5DlDhfJOuLj9Sf95ZPVDAUerDfEk88MPmPe7UCQg==", + "dev": true, + "engines": { + "node": ">=0.10.0" + } + }, "node_modules/path-key": { "version": "3.1.1", "resolved": "https://registry.npmjs.org/path-key/-/path-key-3.1.1.tgz", @@ -2489,6 +5528,12 @@ "node": ">=8" } }, + "node_modules/picocolors": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/picocolors/-/picocolors-1.0.1.tgz", + "integrity": "sha512-anP1Z8qwhkbmu7MFP5iTt+wQKXgwzf7zTyGlcdzabySa9vd0Xt392U0rVmz9poOaBj0uHJKyyo9/upk0HrEQew==", + "dev": true + }, "node_modules/picomatch": { "version": "2.3.1", "resolved": "https://registry.npmjs.org/picomatch/-/picomatch-2.3.1.tgz", @@ -2509,6 +5554,15 @@ "node": ">=4" } }, + "node_modules/pirates": { + "version": "4.0.6", + "resolved": "https://registry.npmjs.org/pirates/-/pirates-4.0.6.tgz", + "integrity": "sha512-saLsH7WeYYPiD25LDuLRRY/i+6HaPYr6G1OUlN39otzkSTxKnubR9RTxS3/Kk50s1g2JTgFwWQDQyplC5/SHZg==", + "dev": true, + "engines": { + "node": ">= 6" + } + }, "node_modules/pkg": { "version": "5.8.1", "resolved": "https://registry.npmjs.org/pkg/-/pkg-5.8.1.tgz", @@ -2542,6 +5596,18 @@ } } }, + "node_modules/pkg-dir": { + "version": "4.2.0", + "resolved": "https://registry.npmjs.org/pkg-dir/-/pkg-dir-4.2.0.tgz", + "integrity": "sha512-HRDzbaKjC+AOWVXxAU/x54COGeIv9eb+6CkDSQoNTt4XyWoIJvuPsXizxu/Fr23EiekbtZwmh1IcIG/l/a10GQ==", + "dev": true, + "dependencies": { + "find-up": "^4.0.0" + }, + "engines": { + "node": ">=8" + } + }, "node_modules/pkg-fetch": { "version": "3.4.2", "resolved": "https://registry.npmjs.org/pkg-fetch/-/pkg-fetch-3.4.2.tgz", @@ -2619,6 +5685,32 @@ "node": ">=10" } }, + "node_modules/pretty-format": { + "version": "29.7.0", + "resolved": "https://registry.npmjs.org/pretty-format/-/pretty-format-29.7.0.tgz", + "integrity": "sha512-Pdlw/oPxN+aXdmM9R00JVC9WVFoCLTKJvDVLgmJ+qAffBMxsV85l/Lu7sNx4zSzPyoL2euImuEwHhOXdEgNFZQ==", + "dev": true, + "dependencies": { + "@jest/schemas": "^29.6.3", + "ansi-styles": "^5.0.0", + "react-is": "^18.0.0" + }, + "engines": { + "node": "^14.15.0 || ^16.10.0 || >=18.0.0" + } + }, + "node_modules/pretty-format/node_modules/ansi-styles": { + "version": "5.2.0", + "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-5.2.0.tgz", + "integrity": "sha512-Cxwpt2SfTzTtXcfOlzGEee8O+c+MmUgGrNiBcXnuWxuFJHe6a5Hz7qwhwe5OgaSYI0IJvkLqWX1ASG+cJOkEiA==", + "dev": true, + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/chalk/ansi-styles?sponsor=1" + } + }, "node_modules/process-nextick-args": { "version": "2.0.1", "resolved": "https://registry.npmjs.org/process-nextick-args/-/process-nextick-args-2.0.1.tgz", @@ -2634,6 +5726,19 @@ "node": ">=0.4.0" } }, + "node_modules/prompts": { + "version": "2.4.2", + "resolved": "https://registry.npmjs.org/prompts/-/prompts-2.4.2.tgz", + "integrity": "sha512-NxNv/kLguCA7p3jE8oL2aEBsrJWgAakBpgmgK6lpPWV+WuOmY6r2/zbAVnP+T8bQlA0nzHXSJSJW0Hq7ylaD2Q==", + "dev": true, + "dependencies": { + "kleur": "^3.0.3", + "sisteransi": "^1.0.5" + }, + "engines": { + "node": ">= 6" + } + }, "node_modules/proxy-from-env": { "version": "1.1.0", "resolved": "https://registry.npmjs.org/proxy-from-env/-/proxy-from-env-1.1.0.tgz", @@ -2649,6 +5754,22 @@ "once": "^1.3.1" } }, + "node_modules/pure-rand": { + "version": "6.1.0", + "resolved": "https://registry.npmjs.org/pure-rand/-/pure-rand-6.1.0.tgz", + "integrity": "sha512-bVWawvoZoBYpp6yIoQtQXHZjmz35RSVHnUOTefl8Vcjr8snTPY1wnpSPMWekcFwbxI6gtmT7rSYPFvz71ldiOA==", + "dev": true, + "funding": [ + { + "type": "individual", + "url": "https://github.com/sponsors/dubzzz" + }, + { + "type": "opencollective", + "url": "https://opencollective.com/fast-check" + } + ] + }, "node_modules/queue-microtask": { "version": "1.2.3", "resolved": "https://registry.npmjs.org/queue-microtask/-/queue-microtask-1.2.3.tgz", @@ -2684,6 +5805,12 @@ "rc": "cli.js" } }, + "node_modules/react-is": { + "version": "18.3.1", + "resolved": "https://registry.npmjs.org/react-is/-/react-is-18.3.1.tgz", + "integrity": "sha512-/LLMVyas0ljjAtoYiPqYiL8VWXzUUdThrmU5+n20DZv+a+ClRoevUzw5JxU+Ieh5/c87ytoTBV9G1FiKfNJdmg==", + "dev": true + }, "node_modules/readable-stream": { "version": "2.3.8", "resolved": "https://registry.npmjs.org/readable-stream/-/readable-stream-2.3.8.tgz", @@ -2734,6 +5861,36 @@ "url": "https://github.com/sponsors/ljharb" } }, + "node_modules/resolve-cwd": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/resolve-cwd/-/resolve-cwd-3.0.0.tgz", + "integrity": "sha512-OrZaX2Mb+rJCpH/6CpSqt9xFVpN++x01XnN2ie9g6P5/3xelLAkXWVADpdz1IHD/KFfEXyE6V0U01OQ3UO2rEg==", + "dev": true, + "dependencies": { + "resolve-from": "^5.0.0" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/resolve-from": { + "version": "5.0.0", + "resolved": "https://registry.npmjs.org/resolve-from/-/resolve-from-5.0.0.tgz", + "integrity": "sha512-qYg9KP24dD5qka9J47d0aVky0N+b4fTU89LN9iDnjB5waksiC49rvMB0PrUJQGoTmH50XPiqOvAjDfaijGxYZw==", + "dev": true, + "engines": { + "node": ">=8" + } + }, + "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, + "engines": { + "node": ">=10" + } + }, "node_modules/resolve/node_modules/is-core-module": { "version": "2.13.1", "resolved": "https://registry.npmjs.org/is-core-module/-/is-core-module-2.13.1.tgz", @@ -2898,6 +6055,12 @@ "simple-concat": "^1.0.0" } }, + "node_modules/sisteransi": { + "version": "1.0.5", + "resolved": "https://registry.npmjs.org/sisteransi/-/sisteransi-1.0.5.tgz", + "integrity": "sha512-bLGGlR1QxBcynn2d5YmDX4MGjlZvy2MRBDRNHLJ8VI6l6+9FUiyTFNJ0IveOSP0bcXgVDPRcfGqA0pjaqUpfVg==", + "dev": true + }, "node_modules/slash": { "version": "3.0.0", "resolved": "https://registry.npmjs.org/slash/-/slash-3.0.0.tgz", @@ -2907,6 +6070,25 @@ "node": ">=8" } }, + "node_modules/source-map": { + "version": "0.6.1", + "resolved": "https://registry.npmjs.org/source-map/-/source-map-0.6.1.tgz", + "integrity": "sha512-UjgapumWlbMhkBgzT7Ykc5YXUT46F0iKu8SGXq0bcwP5dz/h0Plj6enJqjz1Zbq2l5WaqYnrVbwWOWMyF3F47g==", + "dev": true, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/source-map-support": { + "version": "0.5.13", + "resolved": "https://registry.npmjs.org/source-map-support/-/source-map-support-0.5.13.tgz", + "integrity": "sha512-SHSKFHadjVA5oR4PPqhtAVdcBWwRYVd6g6cAXnIbRiIwc2EhPrTuKUBdSLvlEKyIP3GCf89fltvcZiP9MMFA1w==", + "dev": true, + "dependencies": { + "buffer-from": "^1.0.0", + "source-map": "^0.6.0" + } + }, "node_modules/split": { "version": "1.0.1", "resolved": "https://registry.npmjs.org/split/-/split-1.0.1.tgz", @@ -2918,6 +6100,24 @@ "node": "*" } }, + "node_modules/sprintf-js": { + "version": "1.0.3", + "resolved": "https://registry.npmjs.org/sprintf-js/-/sprintf-js-1.0.3.tgz", + "integrity": "sha512-D9cPgkvLlV3t3IzL0D0YLvGA9Ahk4PcvVwUbN0dSGr1aP0Nrt4AEnTUbuGvquEC0mA64Gqt1fzirlRs5ibXx8g==", + "dev": true + }, + "node_modules/stack-utils": { + "version": "2.0.6", + "resolved": "https://registry.npmjs.org/stack-utils/-/stack-utils-2.0.6.tgz", + "integrity": "sha512-XlkWvfIm6RmsWtNJx+uqtKLS8eqFbxUg0ZzLXqY0caEy9l7hruX8IpiDnjsLavoBgqCCR71TqWO8MaXYheJ3RQ==", + "dev": true, + "dependencies": { + "escape-string-regexp": "^2.0.0" + }, + "engines": { + "node": ">=10" + } + }, "node_modules/stream-meter": { "version": "1.0.4", "resolved": "https://registry.npmjs.org/stream-meter/-/stream-meter-1.0.4.tgz", @@ -2945,6 +6145,40 @@ "safe-buffer": "~5.1.0" } }, + "node_modules/string-length": { + "version": "4.0.2", + "resolved": "https://registry.npmjs.org/string-length/-/string-length-4.0.2.tgz", + "integrity": "sha512-+l6rNN5fYHNhZZy41RXsYptCjA2Igmq4EG7kZAYFQI1E1VTXarr6ZPXBg6eq7Y6eK4FEhY6AJlyuFIb/v/S0VQ==", + "dev": true, + "dependencies": { + "char-regex": "^1.0.2", + "strip-ansi": "^6.0.0" + }, + "engines": { + "node": ">=10" + } + }, + "node_modules/string-length/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==", + "dev": true, + "engines": { + "node": ">=8" + } + }, + "node_modules/string-length/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==", + "dev": true, + "dependencies": { + "ansi-regex": "^5.0.1" + }, + "engines": { + "node": ">=8" + } + }, "node_modules/string-width": { "version": "5.1.2", "resolved": "https://registry.npmjs.org/string-width/-/string-width-5.1.2.tgz", @@ -3041,6 +6275,24 @@ "node": ">=8" } }, + "node_modules/strip-bom": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/strip-bom/-/strip-bom-4.0.0.tgz", + "integrity": "sha512-3xurFv5tEgii33Zi8Jtp55wEIILR9eh34FAW00PZf+JnSsTmV/ioewSgQl97JHvgjoRGwPShsWm+IdrxB35d0w==", + "dev": true, + "engines": { + "node": ">=8" + } + }, + "node_modules/strip-final-newline": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/strip-final-newline/-/strip-final-newline-2.0.0.tgz", + "integrity": "sha512-BrpvfNAE3dcvq7ll3xVumzjKjZQ5tI1sEUIKr3Uoks0XUl45St3FlatVqef9prk4jRDzhW6WZg+3bk93y6pLjA==", + "dev": true, + "engines": { + "node": ">=6" + } + }, "node_modules/strip-json-comments": { "version": "2.0.1", "resolved": "https://registry.npmjs.org/strip-json-comments/-/strip-json-comments-2.0.1.tgz", @@ -3163,11 +6415,74 @@ "node": ">= 6" } }, + "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, + "dependencies": { + "@istanbuljs/schema": "^0.1.2", + "glob": "^7.1.4", + "minimatch": "^3.0.4" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/test-exclude/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==", + "dev": true, + "dependencies": { + "balanced-match": "^1.0.0", + "concat-map": "0.0.1" + } + }, + "node_modules/test-exclude/node_modules/glob": { + "version": "7.2.3", + "resolved": "https://registry.npmjs.org/glob/-/glob-7.2.3.tgz", + "integrity": "sha512-nFR0zLpU2YCaRxwoCJvL6UvCH2JFyFVIvwTLsIf21AuHlMskA1hhTdk+LlYJtOlYt9v6dvszD2BGRqBL+iQK9Q==", + "deprecated": "Glob versions prior to v9 are no longer supported", + "dev": true, + "dependencies": { + "fs.realpath": "^1.0.0", + "inflight": "^1.0.4", + "inherits": "2", + "minimatch": "^3.1.1", + "once": "^1.3.0", + "path-is-absolute": "^1.0.0" + }, + "engines": { + "node": "*" + }, + "funding": { + "url": "https://github.com/sponsors/isaacs" + } + }, + "node_modules/test-exclude/node_modules/minimatch": { + "version": "3.1.2", + "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-3.1.2.tgz", + "integrity": "sha512-J7p63hRiAjw1NDEww1W7i37+ByIrOWO5XQQAzZ3VOcL0PNybwpfmV/N05zFAzwQ9USyEcX6t3UO+K5aqBQOIHw==", + "dev": true, + "dependencies": { + "brace-expansion": "^1.1.7" + }, + "engines": { + "node": "*" + } + }, "node_modules/through": { "version": "2.3.8", "resolved": "https://registry.npmjs.org/through/-/through-2.3.8.tgz", "integrity": "sha512-w89qg7PI8wAdvX60bMDP+bFoD5Dvhm9oLheFp5O4a2QF0cSBGsBX4qZmadPMvVqlLJBBci+WqGGOAPvcDeNSVg==" }, + "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 + }, "node_modules/to-fast-properties": { "version": "2.0.0", "resolved": "https://registry.npmjs.org/to-fast-properties/-/to-fast-properties-2.0.0.tgz", @@ -3195,6 +6510,62 @@ "integrity": "sha512-N3WMsuqV66lT30CrXNbEjx4GEwlow3v6rr4mCcv6prnfwhS01rkgyFdjPNBYd9br7LpXV1+Emh01fHnq2Gdgrw==", "dev": true }, + "node_modules/ts-jest": { + "version": "29.1.4", + "resolved": "https://registry.npmjs.org/ts-jest/-/ts-jest-29.1.4.tgz", + "integrity": "sha512-YiHwDhSvCiItoAgsKtoLFCuakDzDsJ1DLDnSouTaTmdOcOwIkSzbLXduaQ6M5DRVhuZC/NYaaZ/mtHbWMv/S6Q==", + "dev": true, + "dependencies": { + "bs-logger": "0.x", + "fast-json-stable-stringify": "2.x", + "jest-util": "^29.0.0", + "json5": "^2.2.3", + "lodash.memoize": "4.x", + "make-error": "1.x", + "semver": "^7.5.3", + "yargs-parser": "^21.0.1" + }, + "bin": { + "ts-jest": "cli.js" + }, + "engines": { + "node": "^14.15.0 || ^16.10.0 || ^18.0.0 || >=20.0.0" + }, + "peerDependencies": { + "@babel/core": ">=7.0.0-beta.0 <8", + "@jest/transform": "^29.0.0", + "@jest/types": "^29.0.0", + "babel-jest": "^29.0.0", + "jest": "^29.0.0", + "typescript": ">=4.3 <6" + }, + "peerDependenciesMeta": { + "@babel/core": { + "optional": true + }, + "@jest/transform": { + "optional": true + }, + "@jest/types": { + "optional": true + }, + "babel-jest": { + "optional": true + }, + "esbuild": { + "optional": true + } + } + }, + "node_modules/ts-jest/node_modules/yargs-parser": { + "version": "21.1.1", + "resolved": "https://registry.npmjs.org/yargs-parser/-/yargs-parser-21.1.1.tgz", + "integrity": "sha512-tVpsJW7DdjecAiFpbIB1e3qxIQsE6NoPc5/eTdrbbIC4h0LVsWhnoa3g+m2HclBIujHzsxZ4VJVA+GUuc2/LBw==", + "dev": true, + "engines": { + "node": ">=12" + } + }, "node_modules/tslib": { "version": "2.6.2", "resolved": "https://registry.npmjs.org/tslib/-/tslib-2.6.2.tgz", @@ -3213,6 +6584,27 @@ "node": "*" } }, + "node_modules/type-detect": { + "version": "4.0.8", + "resolved": "https://registry.npmjs.org/type-detect/-/type-detect-4.0.8.tgz", + "integrity": "sha512-0fr/mIH1dlO+x7TlcMy+bIDqKPsw/70tVyeHW787goQjhmqaZe10uwLujubK9q9Lg6Fiho1KUKDYz0Z7k7g5/g==", + "dev": true, + "engines": { + "node": ">=4" + } + }, + "node_modules/type-fest": { + "version": "0.21.3", + "resolved": "https://registry.npmjs.org/type-fest/-/type-fest-0.21.3.tgz", + "integrity": "sha512-t0rzBq87m3fVcduHDUFhKmyyX+9eo6WQjZvf51Ea/M0Q7+T374Jp1aUiyUl0GKxp8M/OETVHSDvmkyPgvX+X2w==", + "dev": true, + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, "node_modules/typescript": { "version": "5.4.5", "resolved": "https://registry.npmjs.org/typescript/-/typescript-5.4.5.tgz", @@ -3249,6 +6641,36 @@ "node": ">= 10.0.0" } }, + "node_modules/update-browserslist-db": { + "version": "1.0.16", + "resolved": "https://registry.npmjs.org/update-browserslist-db/-/update-browserslist-db-1.0.16.tgz", + "integrity": "sha512-KVbTxlBYlckhF5wgfyZXTWnMn7MMZjMu9XG8bPlliUOP9ThaF4QnhP8qrjrH7DRzHfSk0oQv1wToW+iA5GajEQ==", + "dev": true, + "funding": [ + { + "type": "opencollective", + "url": "https://opencollective.com/browserslist" + }, + { + "type": "tidelift", + "url": "https://tidelift.com/funding/github/npm/browserslist" + }, + { + "type": "github", + "url": "https://github.com/sponsors/ai" + } + ], + "dependencies": { + "escalade": "^3.1.2", + "picocolors": "^1.0.1" + }, + "bin": { + "update-browserslist-db": "cli.js" + }, + "peerDependencies": { + "browserslist": ">= 4.21.0" + } + }, "node_modules/util-deprecate": { "version": "1.0.2", "resolved": "https://registry.npmjs.org/util-deprecate/-/util-deprecate-1.0.2.tgz", @@ -3267,6 +6689,20 @@ "uuid": "dist/bin/uuid" } }, + "node_modules/v8-to-istanbul": { + "version": "9.2.0", + "resolved": "https://registry.npmjs.org/v8-to-istanbul/-/v8-to-istanbul-9.2.0.tgz", + "integrity": "sha512-/EH/sDgxU2eGxajKdwLCDmQ4FWq+kpi3uCmBGpw1xJtnAxEjlD8j8PEiGWpCIMIs3ciNAgH0d3TTJiUkYzyZjA==", + "dev": true, + "dependencies": { + "@jridgewell/trace-mapping": "^0.3.12", + "@types/istanbul-lib-coverage": "^2.0.1", + "convert-source-map": "^2.0.0" + }, + "engines": { + "node": ">=10.12.0" + } + }, "node_modules/vectordb": { "version": "0.4.20", "resolved": "https://registry.npmjs.org/vectordb/-/vectordb-0.4.20.tgz", @@ -3296,6 +6732,15 @@ "apache-arrow": "^14.0.2" } }, + "node_modules/walker": { + "version": "1.0.8", + "resolved": "https://registry.npmjs.org/walker/-/walker-1.0.8.tgz", + "integrity": "sha512-ts/8E8l5b7kY0vlWLewOkDXMmPdLcVV4GmOQLyxuSswIJsweeFZtAsMF7k1Nszz+TYBQrlYRmzOnr398y1JemQ==", + "dev": true, + "dependencies": { + "makeerror": "1.0.12" + } + }, "node_modules/web-streams-polyfill": { "version": "3.3.3", "resolved": "https://registry.npmjs.org/web-streams-polyfill/-/web-streams-polyfill-3.3.3.tgz", @@ -3470,6 +6915,25 @@ "resolved": "https://registry.npmjs.org/wrappy/-/wrappy-1.0.2.tgz", "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, + "dependencies": { + "imurmurhash": "^0.1.4", + "signal-exit": "^3.0.7" + }, + "engines": { + "node": "^12.13.0 || ^14.15.0 || >=16.0.0" + } + }, + "node_modules/write-file-atomic/node_modules/signal-exit": { + "version": "3.0.7", + "resolved": "https://registry.npmjs.org/signal-exit/-/signal-exit-3.0.7.tgz", + "integrity": "sha512-wnD2ZE+l+SPC/uoS0vXeE9L1+0wuaMqKlfz9AMUo38JsyLSBWSFcHR1Rri62LZc12vLr1gb3jl7iwQhgwpAbGQ==", + "dev": true + }, "node_modules/y18n": { "version": "5.0.8", "resolved": "https://registry.npmjs.org/y18n/-/y18n-5.0.8.tgz", @@ -3479,6 +6943,12 @@ "node": ">=10" } }, + "node_modules/yallist": { + "version": "3.1.1", + "resolved": "https://registry.npmjs.org/yallist/-/yallist-3.1.1.tgz", + "integrity": "sha512-a4UGQaWPH59mOXUYnAG2ewncQS4i4F43Tv3JoAM+s2VDAmS9NsK8GpDMLrCHPksFT7h3K6TOoUNn2pb7RoXx4g==", + "dev": true + }, "node_modules/yargs": { "version": "16.2.0", "resolved": "https://registry.npmjs.org/yargs/-/yargs-16.2.0.tgz", @@ -3546,6 +7016,18 @@ "engines": { "node": ">=8" } + }, + "node_modules/yocto-queue": { + "version": "0.1.0", + "resolved": "https://registry.npmjs.org/yocto-queue/-/yocto-queue-0.1.0.tgz", + "integrity": "sha512-rVksvsnNCdJ/ohGc6xgPwyN8eheCxsiLM8mxuE/t/mOVqJewPuO1miLpTHQiRgTKCLexL4MeAFVagts7HmNZ2Q==", + "dev": true, + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } } } } diff --git a/binary/package.json b/binary/package.json index 3f1a24308..774993a9f 100644 --- a/binary/package.json +++ b/binary/package.json @@ -20,7 +20,7 @@ "outputPath": "bin" }, "scripts": { - "test": "echo \"Error: no test specified\" && exit 1", + "test": "jest", "build": "node build.js", "build:old": "ncc build src/index.ts -o out && pkg .", "build:dev": "tsc", @@ -31,11 +31,14 @@ "devDependencies": { "@biomejs/biome": "1.6.4", "@types/follow-redirects": "^1.14.4", + "@types/jest": "^29.5.12", "@types/uuid": "^9.0.8", "@vercel/ncc": "^0.38.1", "esbuild": "0.19.11", + "jest": "^29.7.0", "pkg": "^5.8.1", "rimraf": "^5.0.7", + "ts-jest": "^29.1.4", "typescript": "^5.3.3" }, "dependencies": { diff --git a/binary/src/IpcMessenger.ts b/binary/src/IpcMessenger.ts index 9c06fcb1b..c8640f513 100644 --- a/binary/src/IpcMessenger.ts +++ b/binary/src/IpcMessenger.ts @@ -1,43 +1,22 @@ -import { IProtocol } from "core/protocol"; +import { IProtocol } from "core/protocol/index.js"; import { IMessenger, type Message } from "core/util/messenger"; +import { ChildProcessWithoutNullStreams } from "node:child_process"; import * as fs from "node:fs"; +import net from "node:net"; import { v4 as uuidv4 } from "uuid"; -export class IpcMessenger< +class IPCMessengerBase< ToProtocol extends IProtocol, FromProtocol extends IProtocol, > implements IMessenger { + _sendMsg(message: Message) { + throw new Error("Not implemented"); + } + typeListeners = new Map any)[]>(); idListeners = new Map any>(); - constructor() { - process.stdin.on("data", (data) => { - this._handleData(data); - }); - process.stdout.on("close", () => { - fs.writeFileSync("./error.log", `${new Date().toISOString()}\n`); - console.log("[info] Exiting Continue core..."); - process.exit(1); - }); - process.stdin.on("close", () => { - fs.writeFileSync("./error.log", `${new Date().toISOString()}\n`); - console.log("[info] Exiting Continue core..."); - process.exit(1); - }); - } - - private _onErrorHandlers: ((error: Error) => void)[] = []; - - onError(handler: (error: Error) => void) { - this._onErrorHandlers.push(handler); - } - - mock(data: any) { - const d = JSON.stringify(data); - this._handleData(Buffer.from(d)); - } - private _handleLine(line: string) { try { const msg: Message = JSON.parse(line); @@ -83,7 +62,7 @@ export class IpcMessenger< } private _unfinishedLine: string | undefined = undefined; - private _handleData(data: Buffer) { + protected _handleData(data: Buffer) { const d = data.toString(); const lines = d.split(/\r\n/).filter((line) => line.trim() !== ""); if (lines.length === 0) { @@ -100,41 +79,10 @@ export class IpcMessenger< lines.forEach((line) => this._handleLine(line)); } - send( - messageType: T, - data: FromProtocol[T][0], - messageId?: string, - ): string { - messageId = messageId ?? uuidv4(); - const msg: Message = { - messageType: messageType as string, - data, - messageId, - }; - // process.send?.(data); - process.stdout?.write(JSON.stringify(msg) + "\r\n"); - return messageId; - } + private _onErrorHandlers: ((error: Error) => void)[] = []; - on( - messageType: T, - handler: (message: Message) => ToProtocol[T][1], - ): void { - if (!this.typeListeners.has(messageType)) { - this.typeListeners.set(messageType, []); - } - this.typeListeners.get(messageType)?.push(handler); - } - - invoke( - messageType: T, - data: ToProtocol[T][0], - ): ToProtocol[T][1] { - return this.typeListeners.get(messageType)?.[0]?.({ - messageId: uuidv4(), - messageType: messageType as string, - data, - }); + onError(handler: (error: Error) => void) { + this._onErrorHandlers.push(handler); } request( @@ -151,4 +99,161 @@ export class IpcMessenger< this.send(messageType, data, messageId); }); } + + mock(data: any) { + const d = JSON.stringify(data); + this._handleData(Buffer.from(d)); + } + + send( + messageType: T, + data: FromProtocol[T][0], + messageId?: string, + ): string { + messageId = messageId ?? uuidv4(); + const msg: Message = { + messageType: messageType as string, + data, + messageId, + }; + this._sendMsg(msg); + return messageId; + } + + invoke( + messageType: T, + data: ToProtocol[T][0], + ): ToProtocol[T][1] { + return this.typeListeners.get(messageType)?.[0]?.({ + messageId: uuidv4(), + messageType: messageType as string, + data, + }); + } + + on( + messageType: T, + handler: ( + message: Message, + ) => Promise | ToProtocol[T][1], + ): void { + if (!this.typeListeners.has(messageType)) { + this.typeListeners.set(messageType, []); + } + this.typeListeners.get(messageType)?.push(handler); + } +} + +export class IpcMessenger< + ToProtocol extends IProtocol, + FromProtocol extends IProtocol, + > + extends IPCMessengerBase + implements IMessenger +{ + constructor() { + super(); + console.log("Setup"); + process.stdin.on("data", (data) => { + // console.log("[info] Received data: ", data.toString()); + this._handleData(data); + }); + process.stdout.on("close", () => { + fs.writeFileSync("./error.log", `${new Date().toISOString()}\n`); + console.log("[info] Exiting Continue core..."); + process.exit(1); + }); + process.stdin.on("close", () => { + fs.writeFileSync("./error.log", `${new Date().toISOString()}\n`); + console.log("[info] Exiting Continue core..."); + process.exit(1); + }); + } + _sendMsg(msg: Message) { + // console.log("[info] Sending message: ", msg); + const d = JSON.stringify(msg); + process.stdout?.write(d + "\r\n"); + } +} + +export class CoreBinaryMessenger< + ToProtocol extends IProtocol, + FromProtocol extends IProtocol, + > + extends IPCMessengerBase + implements IMessenger +{ + private errorHandler: (error: Error) => void = () => {}; + private messageHandlers: Map< + keyof ToProtocol, + (message: Message) => Promise | any + > = new Map(); + + constructor(private readonly subprocess: ChildProcessWithoutNullStreams) { + super(); + console.log("Setup"); + this.subprocess.stdout.on("data", (data) => { + console.log("[info] Received data from core:", data.toString() + "\n"); + this._handleData(data); + }); + this.subprocess.stdout.on("close", () => { + console.log("[info] Continue core exited"); + }); + this.subprocess.stdin.on("close", () => { + console.log("[info] Continue core exited"); + }); + } + + _sendMsg(msg: Message) { + console.log("[info] Sending message to core:", msg); + const d = JSON.stringify(msg); + this.subprocess.stdin.write(d + "\r\n"); + } +} + +export class CoreBinaryTcpMessenger< + ToProtocol extends IProtocol, + FromProtocol extends IProtocol, + > + extends IPCMessengerBase + implements IMessenger +{ + private port: number = 3000; + private socket: net.Socket | null = null; + + typeListeners = new Map any)[]>(); + idListeners = new Map any>(); + + constructor() { + super(); + const socket = net.createConnection(this.port, "localhost"); + + this.socket = socket; + socket.on("data", (data: Buffer) => { + // console.log("[info] Received data from core:", data.toString() + "\n"); + this._handleData(data); + }); + + socket.on("end", () => { + console.log("Disconnected from server"); + }); + + socket.on("error", (err: any) => { + console.error("Client error:", err); + }); + } + + close() { + this.socket?.end(); + } + + _sendMsg(msg: Message) { + if (this.socket) { + // console.log("[info] Sending message to core:", msg); + const d = JSON.stringify(msg); + this.socket.write(d + "\r\n"); + } else { + console.error("Socket is not connected"); + } + } } diff --git a/binary/src/TcpMessenger.ts b/binary/src/TcpMessenger.ts index 544a24128..c306af44b 100644 --- a/binary/src/TcpMessenger.ts +++ b/binary/src/TcpMessenger.ts @@ -17,6 +17,11 @@ export class TcpMessenger< constructor() { const server = net.createServer((socket) => { this.socket = socket; + + socket.on("connect", () => { + console.log("Connected to server"); + }); + socket.on("data", (data: Buffer) => { this._handleData(data); }); diff --git a/binary/src/index.ts b/binary/src/index.ts index a4496e64d..04be5de5a 100644 --- a/binary/src/index.ts +++ b/binary/src/index.ts @@ -35,6 +35,7 @@ program.action(async () => { const core = new Core(messenger, ide, async (text) => { fs.appendFileSync(promptLogsPath, text + "\n\n"); }); + console.log("Core started"); } catch (e) { fs.writeFileSync("./error.log", `${new Date().toISOString()} ${e}\n`); console.log("Error: ", e); diff --git a/binary/test/binary.test.ts b/binary/test/binary.test.ts new file mode 100644 index 000000000..87549e155 --- /dev/null +++ b/binary/test/binary.test.ts @@ -0,0 +1,136 @@ +import { FromIdeProtocol, ToIdeProtocol } from "core/protocol/index.js"; +import FileSystemIde from "core/util/filesystem"; +import { IMessenger } from "core/util/messenger"; +import { ReverseMessageIde } from "core/util/reverseMessageIde"; +import fs from "fs"; +import { ChildProcessWithoutNullStreams, spawn } from "node:child_process"; +import path from "path"; +import { + CoreBinaryMessenger, + CoreBinaryTcpMessenger, +} from "../src/IpcMessenger"; + +// jest.setTimeout(100_000); + +const USE_TCP = false; + +function autodetectPlatformAndArch() { + const platform = { + aix: "linux", + darwin: "darwin", + freebsd: "linux", + linux: "linux", + openbsd: "linux", + sunos: "linux", + win32: "win32", + android: "linux", + cygwin: "win32", + netbsd: "linux", + haiku: "linux", + }[process.platform]; + const arch = { + arm: "arm64", + arm64: "arm64", + ia32: "x64", + loong64: "arm64", + mips: "arm64", + mipsel: "arm64", + ppc: "x64", + ppc64: "x64", + riscv64: "arm64", + s390: "x64", + s390x: "x64", + x64: "x64", + }[process.arch]; + return [platform, arch]; +} + +const CONTINUE_GLOBAL_DIR = path.join(__dirname, "..", ".continue"); + +describe("Test Suite", () => { + let messenger: IMessenger; + let subprocess: ChildProcessWithoutNullStreams; + + beforeAll(async () => { + const [platform, arch] = autodetectPlatformAndArch(); + const binaryPath = path.join( + __dirname, + "..", + "bin", + `${platform}-${arch}`, + `continue-binary${platform === "win32" ? ".exe" : ""}`, + ); + expect(fs.existsSync(binaryPath)).toBe(true); + + if (USE_TCP) { + messenger = new CoreBinaryTcpMessenger(); + } else { + subprocess = spawn(binaryPath, { + env: { ...process.env, CONTINUE_GLOBAL_DIR }, + }); + messenger = new CoreBinaryMessenger( + subprocess, + ); + } + + const ide = new FileSystemIde(); + const reverseIde = new ReverseMessageIde(messenger.on.bind(messenger), ide); + + // Wait for core to set itself up + await new Promise((resolve) => setTimeout(resolve, 1000)); + }); + + afterAll(async () => { + // Wait for the subprocess to exit + if (USE_TCP) { + ( + messenger as CoreBinaryTcpMessenger + ).close(); + } else { + subprocess.kill(); + await new Promise((resolve) => subprocess.on("close", resolve)); + await new Promise((resolve) => setTimeout(resolve, 1000)); + } + }); + + it("should respond to ping with pong", async () => { + const resp = await messenger.request("ping", "ping"); + expect(resp).toBe("pong"); + }); + + it("should create .continue directory at the specified location with expected files", async () => { + expect(fs.existsSync(CONTINUE_GLOBAL_DIR)).toBe(true); + + // Many of the files are only created when trying to load the config + const config = await messenger.request( + "config/getBrowserSerialized", + undefined, + ); + + const expectedFiles = [ + "config.json", + "config.ts", + "package.json", + "logs/core.log", + "index/autocompleteCache.sqlite", + "out/config.js", + "types/core/index.d.ts", + ]; + + for (const file of expectedFiles) { + const filePath = path.join(CONTINUE_GLOBAL_DIR, file); + expect(fs.existsSync(filePath)).toBe(true); + } + }); + + it("should properly edit config", async () => { + const config = await messenger.request( + "config/getBrowserSerialized", + undefined, + ); + expect(config).toHaveProperty("models"); + expect(config).toHaveProperty("embeddingsProvider"); + expect(config).toHaveProperty("contextProviders"); + expect(config).toHaveProperty("slashCommands"); + }); +}); diff --git a/binary/tsconfig.json b/binary/tsconfig.json index 94fbda91f..351115f59 100644 --- a/binary/tsconfig.json +++ b/binary/tsconfig.json @@ -13,7 +13,8 @@ // "noFallthroughCasesInSwitch": true, /* Report errors for fallthrough cases in switch statement. */ // "noUnusedParameters": true, /* Report errors on unused parameters. */ "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 */ + "resolveJsonModule": true /* Enable importing .json files */, + "types": ["jest"] }, - "include": ["src/**/*"] + "include": ["src/**/*", "test/**/*"] } diff --git a/core/autocomplete/lineStream.ts b/core/autocomplete/lineStream.ts index 14d4c4ab7..674f0d46e 100644 --- a/core/autocomplete/lineStream.ts +++ b/core/autocomplete/lineStream.ts @@ -218,6 +218,8 @@ function isEnglishFirstLine(line: string) { line.startsWith("sure thing") || line.startsWith("sure!") || line.startsWith("to fill") || + line.startsWith("certainly") || + line.startsWith("of course") || line.startsWith("the code should") ) { return true; diff --git a/core/autocomplete/templates.ts b/core/autocomplete/templates.ts index 7ce321b45..46c60ca6b 100644 --- a/core/autocomplete/templates.ts +++ b/core/autocomplete/templates.ts @@ -28,7 +28,13 @@ interface AutocompleteTemplate { const stableCodeFimTemplate: AutocompleteTemplate = { template: "{{{prefix}}}{{{suffix}}}", completionOptions: { - stop: ["", "", "", "<|endoftext|>"], + stop: [ + "", + "", + "", + "<|endoftext|>", + "", + ], }, }; @@ -277,7 +283,8 @@ export function getTemplateForModel(model: string): AutocompleteTemplate { lowerCaseModel.includes("starchat") || lowerCaseModel.includes("octocoder") || lowerCaseModel.includes("stable") || - lowerCaseModel.includes("codeqwen") + lowerCaseModel.includes("codeqwen") || + lowerCaseModel.includes("qwen") ) { return stableCodeFimTemplate; } diff --git a/core/config/handler.ts b/core/config/handler.ts index 0cc12a765..0fd2c0503 100644 --- a/core/config/handler.ts +++ b/core/config/handler.ts @@ -4,9 +4,9 @@ import { ContinueRcJson, IContextProvider, IDE, + IdeSettings, ILLM, } from "../index.js"; -import { IdeSettings } from "../protocol/ideWebview.js"; import { Telemetry } from "../util/posthog.js"; import { finalToBrowserConfig, loadFullConfigNode } from "./load.js"; @@ -72,11 +72,12 @@ export class ConfigHandler { const ideInfo = await this.ide.getIdeInfo(); const uniqueId = await this.ide.getUniqueId(); + const ideSettings = await this.ideSettingsPromise; const newConfig = await loadFullConfigNode( this.ide, workspaceConfigs, - await this.ideSettingsPromise, + ideSettings, ideInfo.ideType, uniqueId, this.writeLog, diff --git a/core/config/load.ts b/core/config/load.ts index 0745614d7..1a6c2929a 100644 --- a/core/config/load.ts +++ b/core/config/load.ts @@ -21,6 +21,7 @@ import { EmbeddingsProviderDescription, IContextProvider, IDE, + IdeSettings, IdeType, ModelDescription, Reranker, @@ -34,7 +35,7 @@ import { BaseLLM } from "../llm/index.js"; import CustomLLMClass from "../llm/llms/CustomLLM.js"; import FreeTrial from "../llm/llms/FreeTrial.js"; import { llmFromDescription } from "../llm/llms/index.js"; -import { IdeSettings } from "../protocol/ideWebview.js"; + import { fetchwithRequestOptions } from "../util/fetchWithOptions.js"; import { copyOf } from "../util/index.js"; import mergeJson from "../util/merge.js"; diff --git a/core/core.ts b/core/core.ts index 5bc049255..d78a6fb21 100644 --- a/core/core.ts +++ b/core/core.ts @@ -196,6 +196,7 @@ export class Core { this.ide, (await this.config()).experimental?.promptPath, ); + this.configHandler.reloadConfig(); }); on("config/reload", (msg) => { this.configHandler.reloadConfig(); diff --git a/core/index.d.ts b/core/index.d.ts index 406e82d27..6ad9c10e9 100644 --- a/core/index.d.ts +++ b/core/index.d.ts @@ -402,8 +402,15 @@ export enum FileType { SymbolicLink = 64, } +export interface IdeSettings { + remoteConfigServerUrl: string | undefined; + remoteConfigSyncPeriod: number; + userToken: string; +} + export interface IDE { getIdeInfo(): Promise; + getIdeSettings(): Promise; getDiff(): Promise; isTelemetryEnabled(): Promise; getUniqueId(): Promise; diff --git a/core/jest.config.js b/core/jest.config.js index 9791e7fe6..1dfa0e681 100644 --- a/core/jest.config.js +++ b/core/jest.config.js @@ -1,23 +1,12 @@ export default { - roots: [""], transform: { - "^.+\\.ts?$": [ - "ts-jest", - { - useESM: true, - }, - ], - "^.+\\.js$": [ - "babel-jest", - { - presets: [["@babel/preset-env", { targets: { node: "current" } }]], - }, - ], + "\\.[jt]sx?$": ["ts-jest", { useESM: true }], }, - moduleFileExtensions: ["ts", "tsx", "js", "jsx", "json", "node"], - extensionsToTreatAsEsm: [".ts"], - // Remove or comment out the moduleNameMapper configuration + moduleNameMapper: { - "^(.*)\\.js$": "$1", + "(.+)\\.js": "$1", }, + extensionsToTreatAsEsm: [".ts"], + preset: "ts-jest/presets/default-esm", + testTimeout: 10000, }; diff --git a/core/llm/index.ts b/core/llm/index.ts index 2a372e887..728bdeef4 100644 --- a/core/llm/index.ts +++ b/core/llm/index.ts @@ -293,17 +293,20 @@ ${prompt}`; return resp; } catch (e: any) { - console.warn( - `${e.message}\n\nCode: ${e.code}\nError number: ${e.errno}\nSyscall: ${e.erroredSysCall}\nType: ${e.type}\n\n${e.stack}`, - ); - - if ( - e.code === "ECONNREFUSED" && - e.message.includes("http://127.0.0.1:11434") - ) { - throw new Error( - "Failed to connect to local Ollama instance. To start Ollama, first download it at https://ollama.ai.", + // Errors to ignore + if (!e.message.includes("/api/show")) { + console.warn( + `${e.message}\n\nCode: ${e.code}\nError number: ${e.errno}\nSyscall: ${e.erroredSysCall}\nType: ${e.type}\n\n${e.stack}`, ); + + if ( + e.code === "ECONNREFUSED" && + e.message.includes("http://127.0.0.1:11434") + ) { + throw new Error( + "Failed to connect to local Ollama instance. To start Ollama, first download it at https://ollama.ai.", + ); + } } throw new Error(e.message); } diff --git a/core/llm/llms/Ollama.ts b/core/llm/llms/Ollama.ts index 8789e80d4..c6d6acdb6 100644 --- a/core/llm/llms/Ollama.ts +++ b/core/llm/llms/Ollama.ts @@ -21,14 +21,15 @@ class Ollama extends BaseLLM { if (options.model === "AUTODETECT") { return; } - try { - this.fetch(this.getEndpoint("api/show"), { - method: "POST", - headers: { - Authorization: `Bearer ${this.apiKey}`, - }, - body: JSON.stringify({ name: this._getModel() }), - }).then(async (response) => { + + this.fetch(this.getEndpoint("api/show"), { + method: "POST", + headers: { + Authorization: `Bearer ${this.apiKey}`, + }, + body: JSON.stringify({ name: this._getModel() }), + }) + .then(async (response) => { if (response.status !== 200) { // console.warn( // "Error calling Ollama /api/show endpoint: ", @@ -67,8 +68,10 @@ class Ollama extends BaseLLM { } } } + }) + .catch((e) => { + // console.warn("Error calling the Ollama /api/show endpoint: ", e); }); - } catch (e) {} } private _getModel() { diff --git a/core/llm/llms/index.ts b/core/llm/llms/index.ts index 4fbf29d8b..ea871bd12 100644 --- a/core/llm/llms/index.ts +++ b/core/llm/llms/index.ts @@ -2,11 +2,11 @@ import Handlebars from "handlebars"; import { v4 as uuidv4 } from "uuid"; import { BaseCompletionOptions, + IdeSettings, ILLM, LLMOptions, ModelDescription, } from "../../index.js"; -import { IdeSettings } from "../../protocol/ideWebview.js"; import { DEFAULT_MAX_TOKENS } from "../constants.js"; import { BaseLLM } from "../index.js"; import Anthropic from "./Anthropic.js"; diff --git a/core/package-lock.json b/core/package-lock.json index 49a52ecb4..e4587f56b 100644 --- a/core/package-lock.json +++ b/core/package-lock.json @@ -26,7 +26,7 @@ "commander": "^12.0.0", "comment-json": "^4.2.3", "dbinfoz": "^0.1.4", - "dotenv": "^16.3.1", + "dotenv": "^16.4.5", "fastest-levenshtein": "^1.0.16", "follow-redirects": "^1.15.5", "handlebars": "^4.7.8", diff --git a/core/package.json b/core/package.json index f93a00116..fd34477ef 100644 --- a/core/package.json +++ b/core/package.json @@ -3,7 +3,7 @@ "version": "1.0.13", "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": "NODE_OPTIONS=\"$NODE_OPTIONS --experimental-vm-modules\" jest ./test", + "test": "NODE_OPTIONS=\"$NODE_OPTIONS --experimental-vm-modules\" jest", "build:npm": "tsc -p ./tsconfig.npm.json", "lint": "eslint . --ext ts", "lint:fix": "eslint . --ext ts --fix" @@ -46,7 +46,7 @@ "commander": "^12.0.0", "comment-json": "^4.2.3", "dbinfoz": "^0.1.4", - "dotenv": "^16.3.1", + "dotenv": "^16.4.5", "fastest-levenshtein": "^1.0.16", "follow-redirects": "^1.15.5", "handlebars": "^4.7.8", diff --git a/core/protocol/core.ts b/core/protocol/core.ts index 995c6a961..be0f80d55 100644 --- a/core/protocol/core.ts +++ b/core/protocol/core.ts @@ -4,6 +4,7 @@ import type { ContextItemWithId, ContextSubmenuItem, DiffLine, + IdeSettings, LLMFullCompletionOptions, MessageContent, ModelDescription, @@ -14,7 +15,6 @@ import type { SiteIndexingConfig, } from ".."; import type { AutocompleteInput } from "../autocomplete/completionProvider"; -import type { IdeSettings } from "./ideWebview"; export type ProtocolGeneratorType = AsyncGenerator<{ done?: boolean; diff --git a/core/protocol/ide.ts b/core/protocol/ide.ts index db44053c4..ab32f52aa 100644 --- a/core/protocol/ide.ts +++ b/core/protocol/ide.ts @@ -3,12 +3,12 @@ import type { DiffLine, FileType, IdeInfo, + IdeSettings, IndexTag, Problem, Range, Thread, } from ".."; -import type { IdeSettings } from "./ideWebview"; export type ToIdeFromWebviewOrCoreProtocol = { // Methods from IDE type diff --git a/core/protocol/ideWebview.ts b/core/protocol/ideWebview.ts index 3683d9ec0..4aac41735 100644 --- a/core/protocol/ideWebview.ts +++ b/core/protocol/ideWebview.ts @@ -3,12 +3,6 @@ import type { RangeInFileWithContents } from "../commands/util"; import { ToIdeFromWebviewOrCoreProtocol } from "./ide.js"; import { ToWebviewFromIdeOrCoreProtocol } from "./webview.js"; -export interface IdeSettings { - remoteConfigServerUrl: string | undefined; - remoteConfigSyncPeriod: number; - userToken: string; -} - export type ToIdeFromWebviewProtocol = ToIdeFromWebviewOrCoreProtocol & { onLoad: [ undefined, diff --git a/core/test/diff.test.ts b/core/test/diff.test.ts index 93a46842f..8bbd2cd25 100644 --- a/core/test/diff.test.ts +++ b/core/test/diff.test.ts @@ -102,7 +102,7 @@ async function* generateLines(lines: string[]): AsyncGenerator { } } -describe("streamDiff", () => { +describe.skip("streamDiff", () => { for (let i = 0; i < oldCode.length; i++) { test(`outputs valid diff #${i}`, async () => { const oldLines = oldCode[i].split("\n"); diff --git a/core/test/llm.test.ts b/core/test/llm.test.ts index 6e5303873..2583acddd 100644 --- a/core/test/llm.test.ts +++ b/core/test/llm.test.ts @@ -2,8 +2,9 @@ import * as dotenv from "dotenv"; import { CompletionOptions } from "../index.js"; import { BaseLLM } from "../llm/index.js"; +import OpenAI from "../llm/llms/OpenAI.js"; -jest.setTimeout(100_000); +// jest.setTimeout(100_000); dotenv.config(); @@ -61,17 +62,17 @@ describe("LLM", () => { // testLLM( // new FreeTrial({ // model: "gpt-3.5-turbo", - // }) + // }), // ); // testLLM( // new Anthropic({ // model: "claude-2", // apiKey: process.env.ANTHROPIC_API_KEY, - // }) - // ); - // testLLM( - // new OpenAI({ apiKey: process.env.OPENAI_API_KEY, model: "gpt-3.5-turbo" }) + // }), // ); + testLLM( + new OpenAI({ apiKey: process.env.OPENAI_API_KEY, model: "gpt-3.5-turbo" }), + ); // TODO: Fix Replicate // testLLM( // new Replicate({ diff --git a/core/test/util/dedentAndGetCommonWhitespace.test.ts b/core/test/util/dedentAndGetCommonWhitespace.test.ts new file mode 100644 index 000000000..5f3c6a4be --- /dev/null +++ b/core/test/util/dedentAndGetCommonWhitespace.test.ts @@ -0,0 +1,76 @@ +// File generated by Continue +import { dedentAndGetCommonWhitespace } from "../../util"; + +describe("dedentAndGetCommonWhitespace", () => { + let originalString: string; + + beforeEach(() => { + // Setup any global variables or states if needed + originalString = " line1\n line2\n line3"; + }); + + afterEach(() => { + // Tear down any changes to global variables or states if needed + originalString = ""; + }); + + test("should dedent and return common whitespace for a simple case", () => { + const input = " line1\n line2\n line3"; + const output = dedentAndGetCommonWhitespace(input); + expect(output).toEqual(["line1\nline2\nline3", " "]); + }); + + test("should handle empty string", () => { + const input = ""; + const output = dedentAndGetCommonWhitespace(input); + expect(output).toEqual(["", ""]); + }); + + test("should handle string with only whitespace", () => { + const input = " "; + const output = dedentAndGetCommonWhitespace(input); + expect(output).toEqual(["", ""]); + }); + + test("should handle string with mixed whitespace and content", () => { + const input = " line1\n line2\n line3"; + const output = dedentAndGetCommonWhitespace(input); + expect(output).toEqual([" line1\nline2\n line3", " "]); + }); + + test("should handle string with no common leading whitespace", () => { + const input = "line1\n line2\n line3"; + const output = dedentAndGetCommonWhitespace(input); + expect(output).toEqual([input, ""]); + }); + + test("should handle string with empty lines", () => { + const input = " line1\n\n line3"; + const output = dedentAndGetCommonWhitespace(input); + expect(output).toEqual(["line1\n\nline3", " "]); + }); + + test("should handle string with only empty lines", () => { + const input = "\n\n"; + const output = dedentAndGetCommonWhitespace(input); + expect(output).toEqual(["\n\n", ""]); + }); + + test("should handle string with tabs as whitespace", () => { + const input = "\tline1\n\tline2\n\tline3"; + const output = dedentAndGetCommonWhitespace(input); + expect(output).toEqual(["line1\nline2\nline3", "\t"]); + }); + + test("should handle string with mixed tabs and spaces", () => { + const input = "\t line1\n\t line2\n\t line3"; + const output = dedentAndGetCommonWhitespace(input); + expect(output).toEqual(["line1\nline2\nline3", "\t "]); + }); + + test("should handle string with different leading whitespace lengths", () => { + const input = " line1\n line2\n line3"; + const output = dedentAndGetCommonWhitespace(input); + expect(output).toEqual([" line1\nline2\n line3", " "]); + }); +}); diff --git a/core/test/util/getLastNPathParts.test.ts b/core/test/util/getLastNPathParts.test.ts new file mode 100644 index 000000000..ba72b4520 --- /dev/null +++ b/core/test/util/getLastNPathParts.test.ts @@ -0,0 +1,51 @@ +// File generated by Continue +import { getLastNPathParts } from "../../util"; + +describe("getLastNPathParts", () => { + const SEP_REGEX = /[\\/]+/; + + beforeAll(() => { + // Setup code if needed + }); + + afterAll(() => { + // Teardown code if needed + }); + + test("returns the last N parts of a filepath with forward slashes", () => { + const filepath = "home/user/documents/project/file.txt"; + expect(getLastNPathParts(filepath, 2)).toBe("project/file.txt"); + }); + + test("returns the last N parts of a filepath with backward slashes", () => { + const filepath = "C:\\home\\user\\documents\\project\\file.txt"; + expect(getLastNPathParts(filepath, 3)).toBe("documents/project/file.txt"); + }); + + test("returns the last part if N is 1", () => { + const filepath = "/home/user/documents/project/file.txt"; + expect(getLastNPathParts(filepath, 1)).toBe("file.txt"); + }); + + test("returns the entire path if N is greater than the number of parts", () => { + const filepath = "home/user/documents/project/file.txt"; + expect(getLastNPathParts(filepath, 10)).toBe( + "home/user/documents/project/file.txt", + ); + }); + + test("returns an empty string if N is 0", () => { + const filepath = "home/user/documents/project/file.txt"; + expect(getLastNPathParts(filepath, 0)).toBe(""); + }); + + test("handles paths with mixed forward and backward slashes", () => { + const filepath = "home\\user/documents\\project/file.txt"; + expect(getLastNPathParts(filepath, 3)).toBe("documents/project/file.txt"); + }); + + test("handles edge case with empty filepath", () => { + const filepath = ""; + expect(getLastNPathParts(filepath, 2)).toBe(""); + }); +}); diff --git a/core/test/util/lcs.test.ts b/core/test/util/lcs.test.ts new file mode 100644 index 000000000..da10cdf90 --- /dev/null +++ b/core/test/util/lcs.test.ts @@ -0,0 +1,40 @@ +// This file is generated by Continue +import { longestCommonSubsequence } from "../../util/lcs"; + +describe("longestCommonSubsequence", () => { + beforeAll(() => { + // Setup if needed + }); + + afterAll(() => { + // Teardown if needed + }); + + test("should return the longest common subsequence for non-empty strings", () => { + expect(longestCommonSubsequence("abcde", "ace")).toBe("ace"); + expect(longestCommonSubsequence("abc", "abc")).toBe("abc"); + expect(longestCommonSubsequence("abc", "def")).toBe(""); + }); + + test("should handle cases where one or both strings are empty", () => { + expect(longestCommonSubsequence("", "abc")).toBe(""); + expect(longestCommonSubsequence("abc", "")).toBe(""); + expect(longestCommonSubsequence("", "")).toBe(""); + }); + + test("should handle cases with no common subsequence", () => { + expect(longestCommonSubsequence("abc", "def")).toBe(""); + expect(longestCommonSubsequence("xyz", "abc")).toBe(""); + }); + + test("should handle cases with special characters", () => { + expect(longestCommonSubsequence("a!@#b$c", "!@#$")).toBe("!@#$"); + expect(longestCommonSubsequence("a!@#b$c", "xyz")).toBe(""); + }); + + test("should handle long strings efficiently", () => { + const str1 = "a".repeat(1000) + "b".repeat(1000); + const str2 = "a".repeat(1000) + "c".repeat(1000); + expect(longestCommonSubsequence(str1, str2)).toBe("a".repeat(1000)); + }); +}); diff --git a/core/test/util/merge.test.ts b/core/test/util/merge.test.ts new file mode 100644 index 000000000..a39a5bc30 --- /dev/null +++ b/core/test/util/merge.test.ts @@ -0,0 +1,100 @@ +// File generated by Continue +import { mergeJson } from "../../util/merge"; + +describe("mergeJson", () => { + it("should merge two simple JSON objects", () => { + const first = { a: 1, b: 2 }; + const second = { b: 3, c: 4 }; + const result = mergeJson(first, second); + expect(result).toEqual({ a: 1, b: 3, c: 4 }); + }); + + it('should overwrite values when mergeBehavior is "overwrite"', () => { + const first = { a: 1, b: 2 }; + const second = { b: 3, c: 4 }; + const result = mergeJson(first, second, "overwrite"); + expect(result).toEqual({ a: 1, b: 3, c: 4 }); + }); + + it("should merge nested objects", () => { + const first = { a: { b: 1 } }; + const second = { a: { c: 2 } }; + const result = mergeJson(first, second); + expect(result).toEqual({ a: { b: 1, c: 2 } }); + }); + + it("should merge arrays without mergeKeys", () => { + const first = { a: [1, 2] }; + const second = { a: [3, 4] }; + const result = mergeJson(first, second); + expect(result).toEqual({ a: [1, 2, 3, 4] }); + }); + + it("should merge arrays with mergeKeys", () => { + const first = { + a: [ + { id: 1, value: "first" }, + { id: 2, value: "second" }, + ], + }; + const second = { + a: [ + { id: 2, value: "updated" }, + { id: 3, value: "third" }, + ], + }; + const mergeKeys = { + a: (item1: any, item2: any) => item1.id === item2.id, + }; + const result = mergeJson(first, second, undefined, mergeKeys); + expect(result).toEqual({ + a: [ + { id: 1, value: "first" }, + { id: 2, value: "updated" }, + { id: 3, value: "third" }, + ], + }); + }); + + it("should handle non-object values correctly", () => { + const first = { a: 1, b: "string", c: true }; + const second = { a: 2, b: "new string", c: false }; + const result = mergeJson(first, second); + expect(result).toEqual({ a: 2, b: "new string", c: false }); + }); + + it("should handle null and undefined values correctly", () => { + const first = { a: 1, b: null }; + const second = { b: 2, c: undefined }; + const result = mergeJson(first, second); + expect(result).toEqual({ a: 1, b: 2, c: undefined }); + }); + + it("should handle empty objects", () => { + const first = {}; + const second = { a: 1 }; + const result = mergeJson(first, second); + expect(result).toEqual({ a: 1 }); + }); + + it("should handle empty second object", () => { + const first = { a: 1 }; + const second = {}; + const result = mergeJson(first, second); + expect(result).toEqual({ a: 1 }); + }); + + it("should handle errors gracefully", () => { + const first = { a: 1 }; + const second = { b: () => {} }; // Functions are not serializable in JSON + const result = mergeJson(first, second); + expect(result).toEqual({ a: 1, b: expect.any(Function) }); + }); + + it("should merge deeply nested objects", () => { + const first = { a: { b: { c: 1 } } }; + const second = { a: { b: { d: 2 } } }; + const result = mergeJson(first, second); + expect(result).toEqual({ a: { b: { c: 1, d: 2 } } }); + }); +}); diff --git a/core/test/util/ranges/getRangeInString.test.ts b/core/test/util/ranges/getRangeInString.test.ts new file mode 100644 index 000000000..e0a4df67a --- /dev/null +++ b/core/test/util/ranges/getRangeInString.test.ts @@ -0,0 +1,105 @@ +// This file is generated by Continue + +import { getRangeInString } from "../../../util/ranges"; + +describe.skip("getRangeInString", () => { + let content: string; + + beforeEach(() => { + content = `Line 1 +Line 2 +Line 3 +Line 4 +Line 5`; + }); + + afterEach(() => { + content = ""; + }); + + test("should return substring within the same line", () => { + const range = { + start: { line: 1, character: 0 }, + end: { line: 1, character: 4 }, + }; + expect(getRangeInString(content, range)).toBe("Line"); + }); + + test("should return substring spanning multiple lines", () => { + const range = { + start: { line: 1, character: 2 }, + end: { line: 3, character: 3 }, + }; + const expected = `ne 2 +Line 3 +Line 4`; + expect(getRangeInString(content, range)).toBe(expected); + }); + + test("should handle range that starts and ends at the same character", () => { + const range = { + start: { line: 2, character: 0 }, + end: { line: 2, character: 0 }, + }; + expect(getRangeInString(content, range)).toBe("L"); + }); + + test("should handle range that spans entire content", () => { + const range = { + start: { line: 0, character: 0 }, + end: { line: 4, character: 5 }, + }; + expect(getRangeInString(content, range)).toBe(content); + }); + + test("should handle range that spans to the end of the last line", () => { + const range = { + start: { line: 3, character: 2 }, + end: { line: 4, character: 5 }, + }; + const expected = `ne 4 +Line 5`; + expect(getRangeInString(content, range)).toBe(expected); + }); + + test("should handle empty content", () => { + content = ""; + const range = { + start: { line: 0, character: 0 }, + end: { line: 0, character: 0 }, + }; + expect(getRangeInString(content, range)).toBe(""); + }); + + test("should handle invalid range (start line > end line)", () => { + const range = { + start: { line: 3, character: 0 }, + end: { line: 2, character: 0 }, + }; + expect(getRangeInString(content, range)).toBe(""); + }); + + test("should handle invalid range (start character > end character on same line)", () => { + const range = { + start: { line: 1, character: 5 }, + end: { line: 1, character: 2 }, + }; + expect(getRangeInString(content, range)).toBe(""); + }); + + test("should handle range that starts and ends at the same line but different characters", () => { + const range = { + start: { line: 1, character: 2 }, + end: { line: 1, character: 6 }, + }; + expect(getRangeInString(content, range)).toBe("ne 2"); + }); + + test("should handle range that starts and ends at the same line and same characters", () => { + const range = { + start: { line: 1, character: 2 }, + end: { line: 1, character: 2 }, + }; + expect(getRangeInString(content, range)).toBe("n"); + }); +}); diff --git a/core/test/util/ranges/intersection.test.ts b/core/test/util/ranges/intersection.test.ts new file mode 100644 index 000000000..397dbc1a8 --- /dev/null +++ b/core/test/util/ranges/intersection.test.ts @@ -0,0 +1,123 @@ +// This file is generated by Continue + +import { intersection } from "../../../util/ranges"; + +interface Position { + line: number; + character: number; +} + +interface Range { + start: Position; + end: Position; +} + +describe("intersection", () => { + let rangeA: Range; + let rangeB: Range; + + beforeEach(() => { + rangeA = { + start: { line: 1, character: 0 }, + end: { line: 3, character: 5 }, + }; + + rangeB = { + start: { line: 2, character: 2 }, + end: { line: 4, character: 0 }, + }; + }); + + test("returns correct intersection for overlapping ranges", () => { + const result = intersection(rangeA, rangeB); + expect(result).toEqual({ + start: { line: 2, character: 2 }, + end: { line: 3, character: 5 }, + }); + }); + + test("returns null for non-overlapping ranges", () => { + rangeA = { + start: { line: 1, character: 0 }, + end: { line: 2, character: 0 }, + }; + + rangeB = { + start: { line: 3, character: 0 }, + end: { line: 4, character: 0 }, + }; + + const result = intersection(rangeA, rangeB); + expect(result).toBeNull(); + }); + + // TODO + test.skip("returns correct intersection for single line overlap", () => { + rangeA = { + start: { line: 1, character: 0 }, + end: { line: 1, character: 5 }, + }; + + rangeB = { + start: { line: 1, character: 3 }, + end: { line: 2, character: 0 }, + }; + + const result = intersection(rangeA, rangeB); + expect(result).toEqual({ + start: { line: 1, character: 3 }, + end: { line: 1, character: 5 }, + }); + }); + + test("returns null for single line non-overlapping ranges", () => { + rangeA = { + start: { line: 1, character: 0 }, + end: { line: 1, character: 2 }, + }; + + rangeB = { + start: { line: 1, character: 3 }, + end: { line: 1, character: 5 }, + }; + + const result = intersection(rangeA, rangeB); + expect(result).toBeNull(); + }); + + test("returns correct intersection when one range is fully within another", () => { + rangeA = { + start: { line: 1, character: 0 }, + end: { line: 4, character: 5 }, + }; + + rangeB = { + start: { line: 2, character: 2 }, + end: { line: 3, character: 3 }, + }; + + const result = intersection(rangeA, rangeB); + expect(result).toEqual({ + start: { line: 2, character: 2 }, + end: { line: 3, character: 3 }, + }); + }); + + test("returns correct intersection when ranges touch at the edge", () => { + rangeA = { + start: { line: 1, character: 0 }, + end: { line: 2, character: 0 }, + }; + + rangeB = { + start: { line: 2, character: 0 }, + end: { line: 3, character: 0 }, + }; + + const result = intersection(rangeA, rangeB); + expect(result).toEqual({ + start: { line: 2, character: 0 }, + end: { line: 2, character: 0 }, + }); + }); +}); diff --git a/core/test/util/ranges/maxMinPosition.test.ts b/core/test/util/ranges/maxMinPosition.test.ts new file mode 100644 index 000000000..0468df1cd --- /dev/null +++ b/core/test/util/ranges/maxMinPosition.test.ts @@ -0,0 +1,70 @@ +import { maxPosition, minPosition } from "../../../util/ranges"; + +// This file is generated by Continue +interface Position { + line: number; + character: number; +} + +describe("Position comparison functions", () => { + let pos1: Position; + let pos2: Position; + let pos3: Position; + let pos4: Position; + + beforeAll(() => { + // Setup: Initializing positions + pos1 = { line: 1, character: 5 }; + pos2 = { line: 2, character: 3 }; + pos3 = { line: 1, character: 7 }; + pos4 = { line: 2, character: 3 }; // Same as pos2 to test equality + }); + + describe("maxPosition", () => { + it("should return the position with the greater line number", () => { + expect(maxPosition(pos1, pos2)).toEqual(pos2); + }); + + it("should return the position with the greater character number when lines are equal", () => { + expect(maxPosition(pos1, pos3)).toEqual(pos3); + }); + + it("should return the first position when both positions are equal", () => { + expect(maxPosition(pos2, pos4)).toEqual(pos2); + }); + + it("should handle positions with negative line numbers", () => { + const posNegative = { line: -1, character: 0 }; + expect(maxPosition(posNegative, pos1)).toEqual(pos1); + }); + + it("should handle positions with negative character numbers", () => { + const posNegativeChar = { line: 1, character: -1 }; + expect(maxPosition(posNegativeChar, pos1)).toEqual(pos1); + }); + }); + + describe("minPosition", () => { + it("should return the position with the lesser line number", () => { + expect(minPosition(pos1, pos2)).toEqual(pos1); + }); + + it("should return the position with the lesser character number when lines are equal", () => { + expect(minPosition(pos1, pos3)).toEqual(pos1); + }); + + it("should return the first position when both positions are equal", () => { + expect(minPosition(pos2, pos4)).toEqual(pos2); + }); + + it("should handle positions with negative line numbers", () => { + const posNegative = { line: -1, character: 0 }; + expect(minPosition(posNegative, pos1)).toEqual(posNegative); + }); + + it("should handle positions with negative character numbers", () => { + const posNegativeChar = { line: 1, character: -1 }; + expect(minPosition(posNegativeChar, pos1)).toEqual(posNegativeChar); + }); + }); +}); diff --git a/core/test/util/ranges/union.test.ts b/core/test/util/ranges/union.test.ts new file mode 100644 index 000000000..9d06a97b4 --- /dev/null +++ b/core/test/util/ranges/union.test.ts @@ -0,0 +1,92 @@ +import { union } from "../../../util/ranges"; + +// This file is generated by Continue +interface Position { + line: number; + character: number; +} + +interface Range { + start: Position; + end: Position; +} + +describe("union", () => { + let rangeA: Range; + let rangeB: Range; + + beforeEach(() => { + rangeA = { + start: { line: 1, character: 0 }, + end: { line: 3, character: 5 }, + }; + + rangeB = { + start: { line: 2, character: 3 }, + end: { line: 4, character: 2 }, + }; + }); + + test("should return the union of two overlapping ranges", () => { + const result = union(rangeA, rangeB); + expect(result).toEqual({ + start: { line: 1, character: 0 }, + end: { line: 4, character: 2 }, + }); + }); + + test("should return the union when ranges are identical", () => { + const result = union(rangeA, rangeA); + expect(result).toEqual(rangeA); + }); + + test("should return the union when ranges do not overlap but are adjacent", () => { + rangeB = { + start: { line: 3, character: 5 }, + end: { line: 4, character: 2 }, + }; + const result = union(rangeA, rangeB); + expect(result).toEqual({ + start: { line: 1, character: 0 }, + end: { line: 4, character: 2 }, + }); + }); + + test("should return the union when one range is completely within the other", () => { + rangeB = { + start: { line: 2, character: 1 }, + end: { line: 2, character: 4 }, + }; + const result = union(rangeA, rangeB); + expect(result).toEqual(rangeA); + }); + + test("should return the union when ranges do not overlap and are not adjacent", () => { + rangeB = { + start: { line: 4, character: 3 }, + end: { line: 5, character: 1 }, + }; + const result = union(rangeA, rangeB); + expect(result).toEqual({ + start: { line: 1, character: 0 }, + end: { line: 5, character: 1 }, + }); + }); + + // TODO + test.skip("should handle edge case where start and end lines are the same", () => { + rangeA = { + start: { line: 1, character: 0 }, + end: { line: 1, character: 5 }, + }; + rangeB = { + start: { line: 1, character: 3 }, + end: { line: 1, character: 7 }, + }; + const result = union(rangeA, rangeB); + expect(result).toEqual({ + start: { line: 1, character: 0 }, + end: { line: 1, character: 7 }, + }); + }); +}); diff --git a/core/util/devdataSqlite.ts b/core/util/devdataSqlite.ts index 017169434..9724e9f21 100644 --- a/core/util/devdataSqlite.ts +++ b/core/util/devdataSqlite.ts @@ -1,4 +1,6 @@ import fs from "fs"; +import { open } from "sqlite"; +import sqlite3 from "sqlite3"; import { DatabaseConnection } from "../indexing/refreshIndex.js"; import { getDevDataSqlitePath } from "./paths.js"; @@ -72,8 +74,6 @@ export class DevDataSqliteDb { return DevDataSqliteDb.db; } - const { open } = require("sqlite"); - const sqlite3 = require("sqlite3"); DevDataSqliteDb.db = await open({ filename: devDataSqlitePath, driver: sqlite3.Database, diff --git a/core/util/fetchWithOptions.ts b/core/util/fetchWithOptions.ts index aa581b9d0..a2efe48af 100644 --- a/core/util/fetchWithOptions.ts +++ b/core/util/fetchWithOptions.ts @@ -1,4 +1,4 @@ -import { http, https } from "follow-redirects"; +import * as followRedirects from "follow-redirects"; import { HttpProxyAgent } from "http-proxy-agent"; import { globalAgent } from "https"; import { HttpsProxyAgent } from "https-proxy-agent"; @@ -7,6 +7,8 @@ import * as fs from "node:fs"; import tls from "node:tls"; import { RequestOptions } from "../index.js"; +const { http, https } = (followRedirects as any).default; + export function fetchwithRequestOptions( url_: URL | string, init?: RequestInit, diff --git a/core/util/filesystem.ts b/core/util/filesystem.ts index 25bdd3d70..20373eebd 100644 --- a/core/util/filesystem.ts +++ b/core/util/filesystem.ts @@ -4,15 +4,29 @@ import { FileType, IDE, IdeInfo, + IdeSettings, IndexTag, Problem, Range, Thread, -} from "../index.js"; +} from "../index.d.js"; import { getContinueGlobalPath } from "./paths.js"; class FileSystemIde implements IDE { + static workspaceDir = "/tmp/continue"; + + constructor() { + fs.mkdirSync(FileSystemIde.workspaceDir, { recursive: true }); + } + + async getIdeSettings(): Promise { + return { + remoteConfigServerUrl: undefined, + remoteConfigSyncPeriod: 60, + userToken: "", + }; + } async getGitHubAuthToken(): Promise { return undefined; } @@ -68,7 +82,7 @@ class FileSystemIde implements IDE { } isTelemetryEnabled(): Promise { - return Promise.resolve(false); + return Promise.resolve(true); } getUniqueId(): Promise { @@ -115,7 +129,7 @@ class FileSystemIde implements IDE { useGitIgnore?: boolean, ): Promise { return new Promise((resolve, reject) => { - fs.readdir("/tmp/continue", (err, files) => { + fs.readdir(FileSystemIde.workspaceDir, (err, files) => { if (err) { reject(err); } @@ -126,7 +140,7 @@ class FileSystemIde implements IDE { getWorkspaceDirs(): Promise { return new Promise((resolve, reject) => { - fs.mkdtemp("/tmp/continue", (err, folder) => { + fs.mkdtemp(FileSystemIde.workspaceDir, (err, folder) => { if (err) { reject(err); } diff --git a/core/util/index.ts b/core/util/index.ts index bcc7eda22..b1461ba74 100644 --- a/core/util/index.ts +++ b/core/util/index.ts @@ -27,29 +27,6 @@ export function removeQuotesAndEscapes(output: string): string { return output; } -export function proxyFetch(url: string, init?: RequestInit): Promise { - if (!(window as any)._fetch) { - throw new Error("Proxy fetch not initialized"); - } - - if (!(url.startsWith("http://") || url.startsWith("https://"))) { - // Relative URL - const fullUrl = `${window.vscMediaUrl}/${url}`; - return (window as any)._fetch(fullUrl, init); - } - - const proxyServerUrl = - (window as any).proxyServerUrl || "http://localhost:65433"; - - const headers = new Headers(init?.headers); - headers.append("x-continue-url", url); - - return (window as any)._fetch(proxyServerUrl, { - ...init, - headers, - }); -} - export function dedentAndGetCommonWhitespace(s: string): [string, string] { const lines = s.split("\n"); if (lines.length === 0 || (lines[0].trim() === "" && lines.length === 1)) { @@ -96,6 +73,9 @@ export function getBasename(filepath: string): string { } export function getLastNPathParts(filepath: string, n: number): string { + if (n <= 0) { + return ""; + } return filepath.split(SEP_REGEX).slice(-n).join("/"); } diff --git a/core/util/messageIde.ts b/core/util/messageIde.ts index b81045096..4523babba 100644 --- a/core/util/messageIde.ts +++ b/core/util/messageIde.ts @@ -3,6 +3,7 @@ import type { FileType, IDE, IdeInfo, + IdeSettings, IndexTag, Problem, Range, @@ -17,6 +18,9 @@ export class MessageIde implements IDE { data: ToIdeFromWebviewOrCoreProtocol[T][0], ) => Promise, ) {} + getIdeSettings(): Promise { + return this.request("getIdeSettings", undefined); + } getGitHubAuthToken(): Promise { return this.request("getGitHubAuthToken", undefined); } diff --git a/core/util/paths.ts b/core/util/paths.ts index 0c6cb6948..1cb76c47a 100644 --- a/core/util/paths.ts +++ b/core/util/paths.ts @@ -7,9 +7,13 @@ import { defaultConfig, defaultConfigJetBrains } from "../config/default.js"; import Types from "../config/types.js"; import { IdeType, SerializedContinueConfig } from "../index.js"; +dotenv.config(); +const CONTINUE_GLOBAL_DIR = + process.env.CONTINUE_GLOBAL_DIR ?? path.join(os.homedir(), ".continue"); + export function getContinueGlobalPath(): string { // This is ~/.continue on mac/linux - const continuePath = path.join(os.homedir(), ".continue"); + const continuePath = CONTINUE_GLOBAL_DIR; if (!fs.existsSync(continuePath)) { fs.mkdirSync(continuePath); } diff --git a/core/util/reverseMessageIde.ts b/core/util/reverseMessageIde.ts new file mode 100644 index 000000000..0ea2ce357 --- /dev/null +++ b/core/util/reverseMessageIde.ts @@ -0,0 +1,191 @@ +import { IDE } from ".."; +import { ToIdeFromWebviewOrCoreProtocol } from "../protocol/ide"; +import { Message } from "./messenger"; + +export class ReverseMessageIde { + private on( + messageType: T, + handler: ( + data: ToIdeFromWebviewOrCoreProtocol[T][0], + ) => + | Promise + | ToIdeFromWebviewOrCoreProtocol[T][1], + ): void { + this._on(messageType, (msg) => { + const data = msg.data; + const result = handler(data); + return result; + }); + } + + constructor( + private readonly _on: ( + messageType: T, + handler: ( + message: Message, + ) => + | Promise + | ToIdeFromWebviewOrCoreProtocol[T][1], + ) => void, + private readonly ide: IDE, + ) { + this.initializeListeners(); + } + + private initializeListeners() { + this.on("getGitHubAuthToken", () => { + return this.ide.getGitHubAuthToken(); + }); + + this.on("getLastModified", (data) => { + return this.ide.getLastModified(data.files); + }); + + this.on("getGitRootPath", (data) => { + return this.ide.getGitRootPath(data.dir); + }); + + this.on("listDir", (data) => { + return this.ide.listDir(data.dir); + }); + + this.on("infoPopup", (data) => { + return this.ide.infoPopup(data.message); + }); + + this.on("errorPopup", (data) => { + return this.ide.errorPopup(data.message); + }); + + this.on("getRepoName", (data) => { + return this.ide.getRepoName(data.dir); + }); + + this.on("getDebugLocals", (data) => { + return this.ide.getDebugLocals(data.threadIndex); + }); + + this.on("getTopLevelCallStackSources", (data) => { + return this.ide.getTopLevelCallStackSources( + data.threadIndex, + data.stackDepth, + ); + }); + + this.on("getAvailableThreads", () => { + return this.ide.getAvailableThreads(); + }); + + this.on("getTags", (data) => { + return this.ide.getTags(data); + }); + + this.on("getIdeInfo", () => { + return this.ide.getIdeInfo(); + }); + + this.on("readRangeInFile", (data) => { + return this.ide.readRangeInFile(data.filepath, data.range); + }); + + this.on("isTelemetryEnabled", () => { + return this.ide.isTelemetryEnabled(); + }); + + this.on("getUniqueId", () => { + return this.ide.getUniqueId(); + }); + + this.on("getWorkspaceConfigs", () => { + return this.ide.getWorkspaceConfigs(); + }); + + this.on("getIdeSettings", () => { + return this.ide.getIdeSettings(); + }); + + this.on("getDiff", () => { + return this.ide.getDiff(); + }); + + this.on("getTerminalContents", () => { + return this.ide.getTerminalContents(); + }); + + this.on("listWorkspaceContents", (data) => { + return this.ide.listWorkspaceContents(data.directory, data.useGitIgnore); + }); + + this.on("getWorkspaceDirs", () => { + return this.ide.getWorkspaceDirs(); + }); + + this.on("showLines", (data) => { + return this.ide.showLines(data.filepath, data.startLine, data.endLine); + }); + + this.on("listFolders", () => { + return this.ide.listFolders(); + }); + + this.on("getContinueDir", () => { + return this.ide.getContinueDir(); + }); + + this.on("writeFile", (data) => { + return this.ide.writeFile(data.path, data.contents); + }); + + this.on("showVirtualFile", (data) => { + return this.ide.showVirtualFile(data.name, data.content); + }); + + this.on("openFile", (data) => { + return this.ide.openFile(data.path); + }); + + this.on("runCommand", (data) => { + return this.ide.runCommand(data.command); + }); + + this.on("saveFile", (data) => { + return this.ide.saveFile(data.filepath); + }); + + this.on("readFile", (data) => { + return this.ide.readFile(data.filepath); + }); + + this.on("showDiff", (data) => { + return this.ide.showDiff(data.filepath, data.newContents, data.stepIndex); + }); + + this.on("getOpenFiles", () => { + return this.ide.getOpenFiles(); + }); + + this.on("getCurrentFile", () => { + return this.ide.getCurrentFile(); + }); + + this.on("getPinnedFiles", () => { + return this.ide.getPinnedFiles(); + }); + + this.on("getSearchResults", (data) => { + return this.ide.getSearchResults(data.query); + }); + + this.on("getProblems", (data) => { + return this.ide.getProblems(data.filepath); + }); + + this.on("subprocess", (data) => { + return this.ide.subprocess(data.command); + }); + + this.on("getBranch", (data) => { + return this.ide.getBranch(data.dir); + }); + } +} diff --git a/extensions/intellij/build.gradle.kts b/extensions/intellij/build.gradle.kts index d801ee4b4..e3eba0461 100644 --- a/extensions/intellij/build.gradle.kts +++ b/extensions/intellij/build.gradle.kts @@ -137,7 +137,7 @@ tasks { } publishPlugin { - dependsOn("patchChangelog") +// dependsOn("patchChangelog") token = environment("PUBLISH_TOKEN") // The pluginVersion is based on the SemVer (https://semver.org) and supports pre-release labels, like 2.1.7-alpha.3 // Specify pre-release label to publish the plugin in a custom Release Channel automatically. Read more: diff --git a/extensions/intellij/gradle.properties b/extensions/intellij/gradle.properties index 1ad2540f8..73defa15f 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.51 +pluginVersion = 0.0.52 # 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/AutocompleteEditorListener.kt b/extensions/intellij/src/main/kotlin/com/github/continuedev/continueintellijextension/autocomplete/AutocompleteEditorListener.kt index f0d37ea25..9320705f8 100644 --- 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 @@ -42,7 +42,7 @@ class AutocompleteEditorListener: EditorFactoryListener { override fun editorCreated(event: EditorFactoryEvent) { val editor = event.editor val project = editor.project ?: return - val editorManager = project.let { FileEditorManager.getInstance(it) } + val editorManager = project.let { FileEditorManager.getInstance(it) } ?: return val completionProvider = project.service() // Listen to changes to mouse position diff --git a/extensions/intellij/src/main/kotlin/com/github/continuedev/continueintellijextension/autocomplete/AutocompleteLookupListener.kt b/extensions/intellij/src/main/kotlin/com/github/continuedev/continueintellijextension/autocomplete/AutocompleteLookupListener.kt new file mode 100644 index 000000000..a59169ea2 --- /dev/null +++ b/extensions/intellij/src/main/kotlin/com/github/continuedev/continueintellijextension/autocomplete/AutocompleteLookupListener.kt @@ -0,0 +1,48 @@ +package com.github.continuedev.continueintellijextension.autocomplete + +import com.intellij.codeInsight.lookup.impl.LookupImpl +import com.intellij.codeInsight.lookup.Lookup +import com.intellij.codeInsight.lookup.LookupEvent +import com.intellij.codeInsight.lookup.LookupListener +import com.intellij.codeInsight.lookup.LookupManagerListener +import com.intellij.openapi.application.ApplicationManager +import com.intellij.openapi.components.Service +import com.intellij.openapi.components.service +import com.intellij.openapi.project.Project +import java.util.concurrent.atomic.AtomicBoolean + +@Service(Service.Level.PROJECT) +class AutocompleteLookupListener(project: Project) : LookupManagerListener { + private val isLookupShown = AtomicBoolean(true) + + fun isLookupEmpty(): Boolean { + return isLookupShown.get() + } + + init { + project.messageBus.connect().subscribe(LookupManagerListener.TOPIC, this) + } + + override fun activeLookupChanged(oldLookup: Lookup?, newLookup: Lookup?) { + val newEditor = newLookup?.editor ?: return + if (newLookup is LookupImpl) { + newLookup.addLookupListener( + object : LookupListener { + override fun lookupShown(event: LookupEvent) { + super.lookupShown(event) + ApplicationManager.getApplication().invokeLater { + isLookupShown.set(false) + event.lookup.editor.project?.service()?.hideCompletions(newEditor) + } + } + + override fun lookupCanceled(event: LookupEvent) { + super.lookupCanceled(event) + ApplicationManager.getApplication().invokeLater { + isLookupShown.set(true) + } + } + }) + } + } +} \ 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 index 5c76ec3c7..6d3691ad6 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 @@ -25,6 +25,7 @@ data class PendingCompletion ( @Service(Service.Level.PROJECT) class AutocompleteService(private val project: Project) { var pendingCompletion: PendingCompletion? = null; + private val autocompleteLookupListener = project.service() fun triggerCompletion(editor: Editor) { val settings = @@ -79,6 +80,10 @@ class AutocompleteService(private val project: Project) { } private fun renderCompletion(editor: Editor, offset: Int, text: String) { + // Don't render completions when code completion dropdown is visible + if (!autocompleteLookupListener.isLookupEmpty()) { + return + } ApplicationManager.getApplication().invokeLater { WriteAction.run { val properties = InlayProperties() @@ -136,4 +141,17 @@ class AutocompleteService(private val project: Project) { } } } + + fun hideCompletions(editor: Editor) { + 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() + } + } + } } diff --git a/extensions/intellij/src/main/resources/META-INF/plugin.xml b/extensions/intellij/src/main/resources/META-INF/plugin.xml index dc1d5a03f..73f88efb9 100644 --- a/extensions/intellij/src/main/resources/META-INF/plugin.xml +++ b/extensions/intellij/src/main/resources/META-INF/plugin.xml @@ -19,6 +19,9 @@ + messages.MyBundle diff --git a/extensions/vscode/package-lock.json b/extensions/vscode/package-lock.json index 4f1d7b967..6d0e21452 100644 --- a/extensions/vscode/package-lock.json +++ b/extensions/vscode/package-lock.json @@ -110,7 +110,7 @@ "commander": "^12.0.0", "comment-json": "^4.2.3", "dbinfoz": "^0.1.4", - "dotenv": "^16.3.1", + "dotenv": "^16.4.5", "fastest-levenshtein": "^1.0.16", "follow-redirects": "^1.15.5", "handlebars": "^4.7.8", diff --git a/extensions/vscode/package.json b/extensions/vscode/package.json index 4c8e46a09..17b9f38fa 100644 --- a/extensions/vscode/package.json +++ b/extensions/vscode/package.json @@ -172,12 +172,6 @@ "title": "Toggle Autocomplete Enabled", "group": "Continue" }, - { - "command": "continue.shareSession", - "category": "Continue", - "title": "Share Session", - "group": "Continue" - }, { "command": "continue.selectFilesAsContext", "category": "Continue", diff --git a/extensions/vscode/src/commands.ts b/extensions/vscode/src/commands.ts index b2bf277f8..5c3ae6fcf 100644 --- a/extensions/vscode/src/commands.ts +++ b/extensions/vscode/src/commands.ts @@ -403,9 +403,6 @@ const commandsMap: ( input: text, }); }, - "continue.shareSession": () => { - sidebar.sendMainUserInput("/share"); - }, "continue.selectRange": (startLine: number, endLine: number) => { if (!vscode.window.activeTextEditor) { return; diff --git a/extensions/vscode/src/extension/vscodeExtension.ts b/extensions/vscode/src/extension/vscodeExtension.ts index c5b390b45..739a047cb 100644 --- a/extensions/vscode/src/extension/vscodeExtension.ts +++ b/extensions/vscode/src/extension/vscodeExtension.ts @@ -47,7 +47,7 @@ export class VsCodeExtension { this.extensionContext = context; this.windowId = uuidv4(); - const ideSettings = this.ide.getIdeSettings(); + const ideSettings = this.ide.getIdeSettingsSync(); const { remoteConfigServerUrl } = ideSettings; // Dependencies of core diff --git a/extensions/vscode/src/ideProtocol.ts b/extensions/vscode/src/ideProtocol.ts index 80f3e5e8a..d584d0615 100644 --- a/extensions/vscode/src/ideProtocol.ts +++ b/extensions/vscode/src/ideProtocol.ts @@ -7,13 +7,13 @@ import type { FileType, IDE, IdeInfo, + IdeSettings, IndexTag, Problem, Thread, } from "core"; import { Range } from "core"; import { defaultIgnoreFile } from "core/indexing/ignore"; -import { IdeSettings } from "core/protocol/ideWebview"; import { editConfigJson, getConfigJsonPath, @@ -510,7 +510,7 @@ class VsCodeIde implements IDE { .map(([name, type]) => [path.join(dir, name), type]) as any; } - getIdeSettings(): IdeSettings { + getIdeSettingsSync(): IdeSettings { const settings = vscode.workspace.getConfiguration("continue"); const remoteConfigServerUrl = settings.get( "remoteConfigServerUrl", @@ -526,6 +526,10 @@ class VsCodeIde implements IDE { }; return ideSettings; } + + async getIdeSettings(): Promise { + return this.getIdeSettingsSync(); + } } export { VsCodeIde }; diff --git a/gui/package-lock.json b/gui/package-lock.json index dc9cee0f1..d652bc561 100644 --- a/gui/package-lock.json +++ b/gui/package-lock.json @@ -103,7 +103,7 @@ "commander": "^12.0.0", "comment-json": "^4.2.3", "dbinfoz": "^0.1.4", - "dotenv": "^16.3.1", + "dotenv": "^16.4.5", "fastest-levenshtein": "^1.0.16", "follow-redirects": "^1.15.5", "handlebars": "^4.7.8", From 027d15f44637e762ab017d25130c50b65f814711 Mon Sep 17 00:00:00 2001 From: Nate Sesti Date: Fri, 21 Jun 2024 07:58:56 -0700 Subject: [PATCH 014/268] check ts in dev --- .github/workflows/ts-check.yaml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/ts-check.yaml b/.github/workflows/ts-check.yaml index f0baf029d..1b069db35 100644 --- a/.github/workflows/ts-check.yaml +++ b/.github/workflows/ts-check.yaml @@ -5,6 +5,7 @@ on: branches: - main - preview + - dev jobs: tsc-check: From 8d7b7604cc155c974ab4459c8fd0d1306eff06eb Mon Sep 17 00:00:00 2001 From: Nate Sesti Date: Fri, 21 Jun 2024 10:33:26 -0700 Subject: [PATCH 015/268] ignore .env --- .github/workflows/preview.yaml | 1 + core/indexing/ignore.ts | 1 + docs/static/schemas/config.json | 13 +- .../src/main/resources/config_schema.json | 13 +- extensions/vscode/continue_rc_schema.json | 495 ++++++++++++++---- 5 files changed, 393 insertions(+), 130 deletions(-) diff --git a/.github/workflows/preview.yaml b/.github/workflows/preview.yaml index 95e426f6f..c038ea7fb 100644 --- a/.github/workflows/preview.yaml +++ b/.github/workflows/preview.yaml @@ -216,6 +216,7 @@ jobs: # 3. Publish the extension to Open VSX Registry - name: Publish (Open VSX Registry) + continue-on-error: true run: | cd extensions/vscode npx ovsx publish --pre-release -p ${{ secrets.VSX_REGISTRY_TOKEN }} --packagePath ../../alpine-x64/*.vsix ../../darwin-arm64/*.vsix ../../darwin-x64/*.vsix ../../linux-arm64/*.vsix ../../linux-armhf/*.vsix ../../linux-x64/*.vsix ../../win32-x64/*.vsix ../../win32-arm64/*.vsix diff --git a/core/indexing/ignore.ts b/core/indexing/ignore.ts index 6d7e00e84..2fe5e2ca2 100644 --- a/core/indexing/ignore.ts +++ b/core/indexing/ignore.ts @@ -59,6 +59,7 @@ const DEFAULT_IGNORE_FILETYPES = [ "*.gcda", "*.gcno", "go.sum", + ".env", ]; export const defaultIgnoreFile = ignore().add(DEFAULT_IGNORE_FILETYPES); export const DEFAULT_IGNORE_DIRS = [ diff --git a/docs/static/schemas/config.json b/docs/static/schemas/config.json index 6428abfed..66fdf453e 100644 --- a/docs/static/schemas/config.json +++ b/docs/static/schemas/config.json @@ -1316,14 +1316,15 @@ "outline", "postgres", "code", - "system", "currentFile", "url", - "database" + "database", + "os" ], "markdownEnumDescriptions": [ "Reference the contents of the current changes as given by `git diff`", "Reference the contents of the terminal", + "Reference the contents of the local variables with top n level (defaulting to 3) of call stack for that thread", "Reference the contents of all open or pinned files.", "Enter a search phrase and include the Google search results as context", "Reference the results of a ripgrep search in your codebase", @@ -1333,17 +1334,15 @@ "Include important files from a folder in the prompt, as determined by similarity search", "Reference GitHub issues from a repository", "Retrieve important pages from a documentation website, as determined by similarity search", - "Index and retrieve the contents of any documentation site, using embeddings to find important snippets", "Display a file tree of the current workspace", + "Include important highlighted sections from your code", "Include a repo map showing important code objects", - "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 your operating system and cpu", "Reference the contents of the currently active file", "Reference the contents of a page at a URL", - "Reference table schemas" + "Reference table schemas", + "Operating system and CPU Information" ], "type": "string" }, diff --git a/extensions/intellij/src/main/resources/config_schema.json b/extensions/intellij/src/main/resources/config_schema.json index 6428abfed..66fdf453e 100644 --- a/extensions/intellij/src/main/resources/config_schema.json +++ b/extensions/intellij/src/main/resources/config_schema.json @@ -1316,14 +1316,15 @@ "outline", "postgres", "code", - "system", "currentFile", "url", - "database" + "database", + "os" ], "markdownEnumDescriptions": [ "Reference the contents of the current changes as given by `git diff`", "Reference the contents of the terminal", + "Reference the contents of the local variables with top n level (defaulting to 3) of call stack for that thread", "Reference the contents of all open or pinned files.", "Enter a search phrase and include the Google search results as context", "Reference the results of a ripgrep search in your codebase", @@ -1333,17 +1334,15 @@ "Include important files from a folder in the prompt, as determined by similarity search", "Reference GitHub issues from a repository", "Retrieve important pages from a documentation website, as determined by similarity search", - "Index and retrieve the contents of any documentation site, using embeddings to find important snippets", "Display a file tree of the current workspace", + "Include important highlighted sections from your code", "Include a repo map showing important code objects", - "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 your operating system and cpu", "Reference the contents of the currently active file", "Reference the contents of a page at a URL", - "Reference table schemas" + "Reference table schemas", + "Operating system and CPU Information" ], "type": "string" }, diff --git a/extensions/vscode/continue_rc_schema.json b/extensions/vscode/continue_rc_schema.json index 04c1a41aa..e4ac18216 100644 --- a/extensions/vscode/continue_rc_schema.json +++ b/extensions/vscode/continue_rc_schema.json @@ -279,7 +279,10 @@ "apiType": { "title": "Api Type", "markdownDescription": "OpenAI API type, either `openai` or `azure`", - "enum": ["openai", "azure"] + "enum": [ + "openai", + "azure" + ] }, "apiVersion": { "title": "Api Version", @@ -292,7 +295,11 @@ "type": "string" } }, - "required": ["title", "provider", "model"], + "required": [ + "title", + "provider", + "model" + ], "allOf": [ { "if": { @@ -302,7 +309,9 @@ } }, "not": { - "required": ["provider"] + "required": [ + "provider" + ] } }, "then": { @@ -329,33 +338,48 @@ ] } }, - "required": ["provider"] + "required": [ + "provider" + ] }, "then": { - "required": ["apiKey"] + "required": [ + "apiKey" + ] } }, { "if": { "properties": { "provider": { - "enum": ["huggingface-tgi", "huggingface-inference-api"] + "enum": [ + "huggingface-tgi", + "huggingface-inference-api" + ] } } }, "then": { - "required": ["apiBase"] + "required": [ + "apiBase" + ] }, - "required": ["provider"] + "required": [ + "provider" + ] }, { "if": { "properties": { "provider": { - "enum": ["openai"] + "enum": [ + "openai" + ] } }, - "required": ["provider"] + "required": [ + "provider" + ] }, "then": { "properties": { @@ -375,10 +399,14 @@ "if": { "properties": { "provider": { - "enum": ["cloudflare"] + "enum": [ + "cloudflare" + ] } }, - "required": ["provider"] + "required": [ + "provider" + ] }, "then": { "properties": { @@ -436,10 +464,14 @@ "if": { "properties": { "provider": { - "enum": ["openai"] + "enum": [ + "openai" + ] } }, - "required": ["provider"] + "required": [ + "provider" + ] }, "then": { "properties": { @@ -470,10 +502,14 @@ "if": { "properties": { "provider": { - "enum": ["replicate"] + "enum": [ + "replicate" + ] } }, - "required": ["provider"] + "required": [ + "provider" + ] }, "then": { "properties": { @@ -503,10 +539,14 @@ "if": { "properties": { "provider": { - "enum": ["free-trial"] + "enum": [ + "free-trial" + ] } }, - "required": ["provider"] + "required": [ + "provider" + ] }, "then": { "properties": { @@ -531,7 +571,9 @@ "if": { "properties": { "provider": { - "enum": ["openai"] + "enum": [ + "openai" + ] }, "apiType": { "not": { @@ -539,7 +581,9 @@ } } }, - "required": ["provider"] + "required": [ + "provider" + ] }, "then": { "properties": { @@ -597,10 +641,14 @@ "if": { "properties": { "provider": { - "enum": ["anthropic"] + "enum": [ + "anthropic" + ] } }, - "required": ["provider"] + "required": [ + "provider" + ] }, "then": { "properties": { @@ -628,15 +676,22 @@ "if": { "properties": { "provider": { - "enum": ["cohere"] + "enum": [ + "cohere" + ] } }, - "required": ["provider"] + "required": [ + "provider" + ] }, "then": { "properties": { "model": { - "enum": ["command-r", "command-r-plus"] + "enum": [ + "command-r", + "command-r-plus" + ] } } } @@ -645,10 +700,14 @@ "if": { "properties": { "provider": { - "enum": ["bedrock"] + "enum": [ + "bedrock" + ] } }, - "required": ["provider"] + "required": [ + "provider" + ] }, "then": { "properties": { @@ -673,10 +732,14 @@ "if": { "properties": { "provider": { - "enum": ["gemini"] + "enum": [ + "gemini" + ] } }, - "required": ["provider"] + "required": [ + "provider" + ] }, "then": { "properties": { @@ -697,10 +760,14 @@ "if": { "properties": { "provider": { - "enum": ["together"] + "enum": [ + "together" + ] } }, - "required": ["provider"] + "required": [ + "provider" + ] }, "then": { "properties": { @@ -734,10 +801,14 @@ "if": { "properties": { "provider": { - "enum": ["deepinfra"] + "enum": [ + "deepinfra" + ] } }, - "required": ["provider"] + "required": [ + "provider" + ] }, "then": { "properties": { @@ -760,7 +831,9 @@ ] } }, - "required": ["provider"] + "required": [ + "provider" + ] }, "then": { "properties": { @@ -806,10 +879,14 @@ "if": { "properties": { "provider": { - "enum": ["ollama"] + "enum": [ + "ollama" + ] } }, - "required": ["provider"] + "required": [ + "provider" + ] }, "then": { "properties": { @@ -857,10 +934,14 @@ "if": { "properties": { "provider": { - "enum": ["mistral"] + "enum": [ + "mistral" + ] } }, - "required": ["provider"] + "required": [ + "provider" + ] }, "then": { "properties": { @@ -881,15 +962,22 @@ "if": { "properties": { "provider": { - "enum": ["deepseek"] + "enum": [ + "deepseek" + ] } }, - "required": ["provider"] + "required": [ + "provider" + ] }, "then": { "properties": { "model": { - "enum": ["deepseek-chat", "deepseek-coder"] + "enum": [ + "deepseek-chat", + "deepseek-coder" + ] } } } @@ -898,10 +986,14 @@ "if": { "properties": { "provider": { - "enum": ["groq"] + "enum": [ + "groq" + ] } }, - "required": ["provider"] + "required": [ + "provider" + ] }, "then": { "properties": { @@ -922,15 +1014,21 @@ "if": { "properties": { "provider": { - "enum": ["fireworks"] + "enum": [ + "fireworks" + ] } }, - "required": ["provider"] + "required": [ + "provider" + ] }, "then": { "properties": { "model": { - "enum": ["starcoder-7b"] + "enum": [ + "starcoder-7b" + ] } } } @@ -942,20 +1040,30 @@ "const": "azure" } }, - "required": ["apiType"] + "required": [ + "apiType" + ] }, "then": { - "required": ["engine", "apiVersion", "apiBase"] + "required": [ + "engine", + "apiVersion", + "apiBase" + ] } }, { "if": { "properties": { "provider": { - "enum": ["openai"] + "enum": [ + "openai" + ] } }, - "required": ["provider"] + "required": [ + "provider" + ] }, "then": { "properties": { @@ -972,7 +1080,9 @@ "const": "llamafile" } }, - "required": ["provider"] + "required": [ + "provider" + ] }, "then": { "properties": { @@ -986,10 +1096,14 @@ "if": { "properties": { "provider": { - "enum": ["text-gen-webui"] + "enum": [ + "text-gen-webui" + ] } }, - "required": ["provider"] + "required": [ + "provider" + ] }, "then": { "properties": { @@ -1003,10 +1117,14 @@ "if": { "properties": { "provider": { - "enum": ["flowise"] + "enum": [ + "flowise" + ] } }, - "required": ["provider"] + "required": [ + "provider" + ] }, "then": { "properties": { @@ -1033,7 +1151,10 @@ "type": "string" } }, - "required": ["key", "value"] + "required": [ + "key", + "value" + ] } }, "additionalFlowiseConfiguration": { @@ -1052,7 +1173,10 @@ "description": "Configuration Property value" } }, - "required": ["key", "value"] + "required": [ + "key", + "value" + ] } }, "model": { @@ -1144,7 +1268,9 @@ "type": "string" } }, - "required": ["default"] + "required": [ + "default" + ] }, "SlashCommand": { "title": "SlashCommand", @@ -1203,7 +1329,9 @@ "if": { "properties": { "name": { - "enum": ["issue"] + "enum": [ + "issue" + ] } } }, @@ -1216,17 +1344,23 @@ "description": "Enter the URL of the GitHub repository for which you want to generate the issue." } }, - "required": ["repositoryUrl"] + "required": [ + "repositoryUrl" + ] } }, - "required": ["params"] + "required": [ + "params" + ] } }, { "if": { "properties": { "name": { - "enum": ["edit"] + "enum": [ + "edit" + ] } } }, @@ -1251,7 +1385,9 @@ "if": { "properties": { "name": { - "enum": ["share"] + "enum": [ + "share" + ] } } }, @@ -1269,7 +1405,10 @@ } } ], - "required": ["name", "description"] + "required": [ + "name", + "description" + ] }, "CustomCommand": { "title": "CustomCommand", @@ -1288,7 +1427,11 @@ "type": "string" } }, - "required": ["name", "prompt", "description"] + "required": [ + "name", + "prompt", + "description" + ] }, "ContextProviderWithParams": { "title": "ContextProviderWithParams", @@ -1362,7 +1505,9 @@ "if": { "properties": { "name": { - "enum": ["google"] + "enum": [ + "google" + ] } } }, @@ -1375,17 +1520,23 @@ "description": "Your API key for https://serper.dev in order to get Google search results" } }, - "required": ["serperApiKey"] + "required": [ + "serperApiKey" + ] } }, - "required": ["params"] + "required": [ + "params" + ] } }, { "if": { "properties": { "name": { - "enum": ["open"] + "enum": [ + "open" + ] } } }, @@ -1407,7 +1558,9 @@ "if": { "properties": { "name": { - "enum": ["issue"] + "enum": [ + "issue" + ] } } }, @@ -1436,24 +1589,37 @@ "type": { "type": "string", "description": "The type of issues to search for", - "enum": ["open", "closed", "all"] + "enum": [ + "open", + "closed", + "all" + ] } }, - "required": ["owner", "repo"] + "required": [ + "owner", + "repo" + ] } } }, - "required": ["repos"] + "required": [ + "repos" + ] } }, - "required": ["params"] + "required": [ + "params" + ] } }, { "if": { "properties": { "name": { - "enum": ["database"] + "enum": [ + "database" + ] } } }, @@ -1474,7 +1640,11 @@ "connection_type": { "type": "string", "description": "The type of database (e.g., 'postgres', 'mysql')", - "enum": ["postgres", "mysql", "sqlite"] + "enum": [ + "postgres", + "mysql", + "sqlite" + ] }, "connection": { "type": "object", @@ -1507,21 +1677,31 @@ "required": [] } }, - "required": ["name", "connection_type", "connection"] + "required": [ + "name", + "connection_type", + "connection" + ] } } }, - "required": ["connections"] + "required": [ + "connections" + ] } }, - "required": ["params"] + "required": [ + "params" + ] } }, { "if": { "properties": { "name": { - "enum": ["gitlab-mr"] + "enum": [ + "gitlab-mr" + ] } } }, @@ -1542,17 +1722,23 @@ "description": "If you have code selected, filters out comments that aren't related to the selection." } }, - "required": ["token"] + "required": [ + "token" + ] } }, - "required": ["params"] + "required": [ + "params" + ] } }, { "if": { "properties": { "name": { - "enum": ["jira"] + "enum": [ + "jira" + ] } } }, @@ -1598,17 +1784,24 @@ ] } }, - "required": ["domain", "token"] + "required": [ + "domain", + "token" + ] } }, - "required": ["params"] + "required": [ + "params" + ] } }, { "if": { "properties": { "name": { - "enum": ["http"] + "enum": [ + "http" + ] } } }, @@ -1621,17 +1814,24 @@ "description": "The HTTP endpoint of your context provider server." } }, - "required": ["url"] + "required": [ + "url" + ] } }, - "required": ["params"] + "required": [ + "params" + ] } }, { "if": { "properties": { "name": { - "enum": ["codebase", "folder"] + "enum": [ + "codebase", + "folder" + ] } } }, @@ -1666,7 +1866,9 @@ "if": { "properties": { "name": { - "enum": ["postgres"] + "enum": [ + "postgres" + ] } } }, @@ -1718,11 +1920,19 @@ } } }, - "required": ["host", "port", "user", "password", "database"] + "required": [ + "host", + "port", + "user", + "password", + "database" + ] } } ], - "required": ["name"] + "required": [ + "name" + ] }, "SerializedContinueConfig": { "title": "config.json", @@ -1874,32 +2084,46 @@ "$ref": "#/definitions/RequestOptions" } }, - "required": ["provider"], + "required": [ + "provider" + ], "allOf": [ { "if": { "properties": { "provider": { - "enum": ["cohere"] + "enum": [ + "cohere" + ] } }, - "required": ["provider"] + "required": [ + "provider" + ] }, "then": { - "required": ["apiKey"] + "required": [ + "apiKey" + ] } }, { "if": { "properties": { "provider": { - "enum": ["gemini"] + "enum": [ + "gemini" + ] } }, - "required": ["provider"] + "required": [ + "provider" + ] }, "then": { - "required": ["apiKey"] + "required": [ + "apiKey" + ] } } ] @@ -1910,22 +2134,33 @@ "type": "object", "properties": { "name": { - "enum": ["cohere", "voyage", "llm", "free-trial"] + "enum": [ + "cohere", + "voyage", + "llm", + "free-trial" + ] }, "params": { "type": "object" } }, - "required": ["name"], + "required": [ + "name" + ], "allOf": [ { "if": { "properties": { "name": { - "enum": ["cohere"] + "enum": [ + "cohere" + ] } }, - "required": ["name"] + "required": [ + "name" + ] }, "then": { "properties": { @@ -1947,7 +2182,9 @@ "type": "string" } }, - "required": ["apiKey"] + "required": [ + "apiKey" + ] } } } @@ -1956,10 +2193,14 @@ "if": { "properties": { "name": { - "enum": ["llm"] + "enum": [ + "llm" + ] } }, - "required": ["name"] + "required": [ + "name" + ] }, "then": { "properties": { @@ -1970,7 +2211,9 @@ "type": "string" } }, - "required": ["modelTitle"] + "required": [ + "modelTitle" + ] } } } @@ -1979,10 +2222,14 @@ "if": { "properties": { "name": { - "enum": ["voyage"] + "enum": [ + "voyage" + ] } }, - "required": ["name"] + "required": [ + "name" + ] }, "then": { "properties": { @@ -1993,10 +2240,14 @@ "type": "string" }, "model": { - "enum": ["rerank-lite-1"] + "enum": [ + "rerank-lite-1" + ] } }, - "required": ["apiKey"] + "required": [ + "apiKey" + ] } } } @@ -2062,7 +2313,11 @@ "description": "An optional template string to be used for autocomplete. It will be rendered with the Mustache templating language, and is passed the 'prefix' and 'suffix' variables." }, "multilineCompletions": { - "enum": ["always", "never", "auto"], + "enum": [ + "always", + "never", + "auto" + ], "description": "If set to true, Continue will only complete a single line at a time." }, "useCache": { @@ -2091,7 +2346,10 @@ "type": "object", "properties": { "codeBlockToolbarPosition": { - "enum": ["top", "bottom"], + "enum": [ + "top", + "bottom" + ], "default": "top", "description": "Whether to show the copy and apply code buttons at the top or bottom of code blocks in the sidebar." }, @@ -2108,7 +2366,9 @@ "defaultContext": { "type": "array", "items": { - "enum": ["activeFile"] + "enum": [ + "activeFile" + ] } }, "modelRoles": { @@ -2151,7 +2411,10 @@ }, "mergeBehavior": { "type": "string", - "enum": ["merge", "overwrite"], + "enum": [ + "merge", + "overwrite" + ], "default": "merge", "title": "Merge behavior", "markdownDescription": "If set to 'merge', .continuerc.json will be applied on top of config.json (arrays and objects are merged). If set to 'overwrite', then every top-level property of .continuerc.json will overwrite that property from config.json." @@ -2159,4 +2422,4 @@ } } } -} +} \ No newline at end of file From 24d02e8404bcd9158dee3737cfedc585d3152a19 Mon Sep 17 00:00:00 2001 From: Nate Sesti Date: Fri, 21 Jun 2024 11:04:44 -0700 Subject: [PATCH 016/268] =?UTF-8?q?=F0=9F=9A=91=20fix=20constant=20warning?= =?UTF-8?q?s=20when=20onboarding=20with=20Ollama?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- core/core.ts | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/core/core.ts b/core/core.ts index d78a6fb21..87af833f5 100644 --- a/core/core.ts +++ b/core/core.ts @@ -368,7 +368,13 @@ export class Core { return model.listModels(); } else { if (msg.data.title === "Ollama") { - return new Ollama({ model: "" }).listModels(); + try { + const models = await new Ollama({ model: "" }).listModels(); + return models; + } catch (e) { + console.warn(`Error listing Ollama models: ${e}`); + return undefined; + } } else { return undefined; } From 8a92f4312693549a1590e99c70152b843d59b119 Mon Sep 17 00:00:00 2001 From: Patrick Erichsen Date: Fri, 21 Jun 2024 15:58:04 -0500 Subject: [PATCH 017/268] fix(gui): ctx rendering w/ renderInlineAs: "" (#1541) --- extensions/vscode/CONTRIBUTING.md | 4 ++-- gui/src/components/mainInput/resolveInput.ts | 15 ++++++++++++--- 2 files changed, 14 insertions(+), 5 deletions(-) diff --git a/extensions/vscode/CONTRIBUTING.md b/extensions/vscode/CONTRIBUTING.md index ddeca6bcb..5cfbf3cb1 100644 --- a/extensions/vscode/CONTRIBUTING.md +++ b/extensions/vscode/CONTRIBUTING.md @@ -7,11 +7,11 @@ This is the Continue VS Code Extension. Its primary jobs are # How to run the extension -See [Environment Setup](../CONTRIBUTING.md#environment-setup) +See [Environment Setup](../../CONTRIBUTING.md#environment-setup) # How to run and debug tests -After following the setup in [Environment Setup](../CONTRIBUTING.md#environment-setup) you can run the `Extension (VSCode)` launch configuration in VS Code. +After following the setup in [Environment Setup](../../CONTRIBUTING.md#environment-setup) you can run the `Extension (VSCode)` launch configuration in VS Code. ## Notes diff --git a/gui/src/components/mainInput/resolveInput.ts b/gui/src/components/mainInput/resolveInput.ts index bb628f4ce..cabe66bd3 100644 --- a/gui/src/components/mainInput/resolveInput.ts +++ b/gui/src/components/mainInput/resolveInput.ts @@ -42,6 +42,9 @@ async function resolveEditorContent( if (foundSlashCommand && typeof slashCommand === "undefined") { slashCommand = foundSlashCommand; } + + contextItemAttrs.push(...ctxItems); + if (text === "") { continue; } @@ -51,11 +54,14 @@ async function resolveEditorContent( } else { parts.push({ type: "text", text }); } - contextItemAttrs.push(...ctxItems); } else if (p.type === "codeBlock") { if (!p.attrs.item.editing) { const text = - "```" + p.attrs.item.description + "\n" + p.attrs.item.content + "\n```"; + "```" + + p.attrs.item.description + + "\n" + + p.attrs.item.content + + "\n```"; if (parts[parts.length - 1]?.type === "text") { parts[parts.length - 1].text += "\n" + text; } else { @@ -96,7 +102,10 @@ async function resolveEditorContent( if (item.itemType === "file") { // This is a quick way to resolve @file references const basename = getBasename(item.id); - const relativeFilePath = getRelativePath(item.id, await ideMessenger.ide.getWorkspaceDirs()); + const relativeFilePath = getRelativePath( + item.id, + await ideMessenger.ide.getWorkspaceDirs(), + ); const rawContent = await ideMessenger.ide.readFile(item.id); const content = `\`\`\`${relativeFilePath}\n${rawContent}\n\`\`\`\n`; contextItemsText += content; From 851e825af63e8605894aa16a1a717fb052e6b82b Mon Sep 17 00:00:00 2001 From: Nate Sesti <33237525+sestinj@users.noreply.github.com> Date: Fri, 21 Jun 2024 14:02:29 -0700 Subject: [PATCH 018/268] =?UTF-8?q?=E2=9C=A8=20use=20and=20cache=20imports?= =?UTF-8?q?=20for=20autocomplete=20(#1456)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * ✨ use and cache imports for autocomplete * fix tsc --- binary/src/IpcIde.ts | 2 +- core/autocomplete/ImportDefinitionsService.ts | 81 +++ core/autocomplete/NearbyDefinitionsService.ts | 45 ++ core/autocomplete/completionProvider.ts | 688 +++++++++--------- core/autocomplete/constructPrompt.ts | 26 + core/index.d.ts | 12 + core/indexing/CodeSnippetsIndex.ts | 27 +- core/protocol/ide.ts | 4 + core/protocol/index.ts | 5 +- core/util/LruCache.ts | 30 + core/util/filesystem.ts | 9 + core/util/messageIde.ts | 14 + core/util/parameters.ts | 1 + core/util/treeSitter.ts | 34 +- extensions/vscode/scripts/prepackage.js | 2 +- extensions/vscode/src/autocomplete/lsp.ts | 4 +- extensions/vscode/src/ideProtocol.ts | 22 + .../{tree-sitter-c-tags.scm => c.scm} | 0 ...ee-sitter-c_sharp-tags.scm => c_sharp.scm} | 0 .../{tree-sitter-cpp-tags.scm => cpp.scm} | 0 .../{tree-sitter-elisp-tags.scm => elisp.scm} | 0 ...tree-sitter-elixir-tags.scm => elixir.scm} | 0 .../{tree-sitter-go-tags.scm => go.scm} | 0 .../{tree-sitter-java-tags.scm => java.scm} | 0 ...ter-javascript-tags.scm => javascript.scm} | 0 .../{tree-sitter-ocaml-tags.scm => ocaml.scm} | 0 .../{tree-sitter-php-tags.scm => php.scm} | 0 ...tree-sitter-python-tags.scm => python.scm} | 0 .../{tree-sitter-ql-tags.scm => ql.scm} | 0 .../{tree-sitter-ruby-tags.scm => ruby.scm} | 0 .../{tree-sitter-rust-tags.scm => rust.scm} | 0 ...ter-typescript-tags.scm => typescript.scm} | 0 .../tree-sitter/import-queries/typescript.scm | 9 + gui/src/context/IdeMessenger.ts | 2 +- 34 files changed, 639 insertions(+), 378 deletions(-) create mode 100644 core/autocomplete/ImportDefinitionsService.ts create mode 100644 core/autocomplete/NearbyDefinitionsService.ts create mode 100644 core/util/LruCache.ts rename extensions/vscode/tree-sitter/code-snippet-queries/{tree-sitter-c-tags.scm => c.scm} (100%) rename extensions/vscode/tree-sitter/code-snippet-queries/{tree-sitter-c_sharp-tags.scm => c_sharp.scm} (100%) rename extensions/vscode/tree-sitter/code-snippet-queries/{tree-sitter-cpp-tags.scm => cpp.scm} (100%) rename extensions/vscode/tree-sitter/code-snippet-queries/{tree-sitter-elisp-tags.scm => elisp.scm} (100%) rename extensions/vscode/tree-sitter/code-snippet-queries/{tree-sitter-elixir-tags.scm => elixir.scm} (100%) rename extensions/vscode/tree-sitter/code-snippet-queries/{tree-sitter-go-tags.scm => go.scm} (100%) rename extensions/vscode/tree-sitter/code-snippet-queries/{tree-sitter-java-tags.scm => java.scm} (100%) rename extensions/vscode/tree-sitter/code-snippet-queries/{tree-sitter-javascript-tags.scm => javascript.scm} (100%) rename extensions/vscode/tree-sitter/code-snippet-queries/{tree-sitter-ocaml-tags.scm => ocaml.scm} (100%) rename extensions/vscode/tree-sitter/code-snippet-queries/{tree-sitter-php-tags.scm => php.scm} (100%) rename extensions/vscode/tree-sitter/code-snippet-queries/{tree-sitter-python-tags.scm => python.scm} (100%) rename extensions/vscode/tree-sitter/code-snippet-queries/{tree-sitter-ql-tags.scm => ql.scm} (100%) rename extensions/vscode/tree-sitter/code-snippet-queries/{tree-sitter-ruby-tags.scm => ruby.scm} (100%) rename extensions/vscode/tree-sitter/code-snippet-queries/{tree-sitter-rust-tags.scm => rust.scm} (100%) rename extensions/vscode/tree-sitter/code-snippet-queries/{tree-sitter-typescript-tags.scm => typescript.scm} (100%) create mode 100644 extensions/vscode/tree-sitter/import-queries/typescript.scm diff --git a/binary/src/IpcIde.ts b/binary/src/IpcIde.ts index 2be3bd354..ee2649c36 100644 --- a/binary/src/IpcIde.ts +++ b/binary/src/IpcIde.ts @@ -3,6 +3,6 @@ import { MessageIde } from "core/util/messageIde"; export class IpcIde extends MessageIde { constructor(messenger: TODO) { - super(messenger.request.bind(messenger)); + super(messenger.request.bind(messenger), messenger.on.bind(messenger)); } } diff --git a/core/autocomplete/ImportDefinitionsService.ts b/core/autocomplete/ImportDefinitionsService.ts new file mode 100644 index 000000000..19287bf81 --- /dev/null +++ b/core/autocomplete/ImportDefinitionsService.ts @@ -0,0 +1,81 @@ +import { IDE } from ".."; +import { RangeInFileWithContents } from "../commands/util"; +import { PrecalculatedLruCache } from "../util/LruCache"; +import { + TSQueryType, + getParserForFile, + getQueryForFile, +} from "../util/treeSitter"; + +interface FileInfo { + imports: { [key: string]: RangeInFileWithContents[] }; +} + +export class ImportDefinitionsService { + static N = 10; + + private cache: PrecalculatedLruCache = + new PrecalculatedLruCache( + this._getFileInfo.bind(this), + ImportDefinitionsService.N, + ); + + constructor(private readonly ide: IDE) { + ide.onDidChangeActiveTextEditor((filepath) => { + this.cache.initKey(filepath); + }); + } + + get(filepath: string): FileInfo | undefined { + return this.cache.get(filepath); + } + + private async _getFileInfo(filepath: string): Promise { + const parser = await getParserForFile(filepath); + if (!parser) { + return { + imports: {}, + }; + } + const ast = parser.parse(await this.ide.readFile(filepath), undefined, { + includedRanges: [ + { + startIndex: 0, + endIndex: 10_000, + startPosition: { row: 0, column: 0 }, + endPosition: { row: 100, column: 0 }, + }, + ], + }); + const query = await getQueryForFile(filepath, TSQueryType.Imports); + if (!query) { + return { + imports: {}, + }; + } + + const matches = query?.matches(ast.rootNode); + + const fileInfo: FileInfo = { + imports: {}, + }; + for (const match of matches) { + const startPosition = match.captures[0].node.startPosition; + const defs = await this.ide.gotoDefinition({ + filepath, + position: { + line: startPosition.row, + character: startPosition.column, + }, + }); + fileInfo.imports[match.captures[0].node.text] = await Promise.all( + defs.map(async (def) => ({ + ...def, + contents: await this.ide.readRangeInFile(def.filepath, def.range), + })), + ); + } + + return fileInfo; + } +} diff --git a/core/autocomplete/NearbyDefinitionsService.ts b/core/autocomplete/NearbyDefinitionsService.ts new file mode 100644 index 000000000..79cd0af0a --- /dev/null +++ b/core/autocomplete/NearbyDefinitionsService.ts @@ -0,0 +1,45 @@ +import { IDE, Location } from ".."; +import { LANGUAGES } from "./languages"; +import { getSymbolsForSnippet } from "./ranking"; + +interface FileInfo { + filepath: string; +} + +export class NearbyDefinitionsService { + static N = 10; + + constructor(private readonly ide: IDE) {} + + async getDefinitionsForLine(filepath: string, line: number) { + const lineContent = await this.ide.readRangeInFile(filepath, { + start: { + line, + character: 0, + }, + end: { + line: line + 1, + character: 0, + }, + }); + + // Remove keywords + const lang = LANGUAGES[filepath.split(".").slice(-1)[0]]; + const symbols = Array.from(getSymbolsForSnippet(lineContent)) + .filter((s) => s.length > 0) + .filter((s) => !(lang && lang?.stopWords?.includes(s))); + + return Promise.all( + symbols.map((s) => { + const character = lineContent.indexOf(s); + const pos: Location = { + filepath, + position: { + line, + character, + }, + }; + }), + ); + } +} diff --git a/core/autocomplete/completionProvider.ts b/core/autocomplete/completionProvider.ts index 873515bf5..f1cdfb165 100644 --- a/core/autocomplete/completionProvider.ts +++ b/core/autocomplete/completionProvider.ts @@ -1,5 +1,5 @@ -import Handlebars from "handlebars"; import ignore from "ignore"; +import OpenAI from "openai"; import path from "path"; import { v4 as uuidv4 } from "uuid"; import { RangeInFileWithContents } from "../commands/util.js"; @@ -14,7 +14,6 @@ import { Range, TabAutocompleteOptions, } from "../index.js"; -import OpenAI from "../llm/llms/OpenAI.js"; import { logDevData } from "../util/devdata.js"; import { getBasename, getLastNPathParts } from "../util/index.js"; import { @@ -23,6 +22,7 @@ import { } from "../util/parameters.js"; import { Telemetry } from "../util/posthog.js"; import { getRangeInString } from "../util/ranges.js"; +import { ImportDefinitionsService } from "./ImportDefinitionsService.js"; import { BracketMatchingService } from "./brackets.js"; import AutocompleteLruCache from "./cache.js"; import { @@ -138,342 +138,6 @@ export type GetLspDefinitionsFunction = ( lang: AutocompleteLanguageInfo, ) => Promise; -export async function getTabCompletion( - token: AbortSignal, - options: TabAutocompleteOptions, - llm: ILLM, - ide: IDE, - generatorReuseManager: GeneratorReuseManager, - input: AutocompleteInput, - getDefinitionsFromLsp: GetLspDefinitionsFunction, - bracketMatchingService: BracketMatchingService, -): Promise { - const startTime = Date.now(); - - const { - filepath, - pos, - recentlyEditedFiles, - recentlyEditedRanges, - clipboardText, - manuallyPassFileContents, - manuallyPassPrefix, - } = input; - const fileContents = - manuallyPassFileContents ?? (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) { - return; - } - if (llm instanceof OpenAI) { - llm.useLegacyCompletionsEndpoint = true; - } else if ( - llm.providerName === "free-trial" && - llm.model !== TRIAL_FIM_MODEL - ) { - llm.model = TRIAL_FIM_MODEL; - } - - if ( - !shownGptClaudeWarning && - nonAutocompleteModels.some((model) => llm.model.includes(model)) && - !llm.model.includes("deepseek") - ) { - shownGptClaudeWarning = true; - throw new Error( - `Warning: ${llm.model} is not trained for tab-autocomplete, and will result in low-quality suggestions. See the docs to learn more about why: https://docs.continue.dev/walkthroughs/tab-autocomplete#i-want-better-completions-should-i-use-gpt-4`, - ); - } - - // Prompt - let fullPrefix = - getRangeInString(fileContents, { - start: { line: 0, character: 0 }, - end: input.selectedCompletionInfo?.range.start ?? pos, - }) + (input.selectedCompletionInfo?.text ?? ""); - - if (input.injectDetails) { - const lines = fullPrefix.split("\n"); - fullPrefix = `${lines.slice(0, -1).join("\n")}\n${ - lang.singleLineComment - } ${input.injectDetails.split("\n").join(`\n${lang.singleLineComment} `)}\n${ - lines[lines.length - 1] - }`; - } - - const fullSuffix = getRangeInString(fileContents, { - start: pos, - end: { line: fileLines.length - 1, character: Number.MAX_SAFE_INTEGER }, - }); - - // First non-whitespace line below the cursor - let lineBelowCursor = ""; - let i = 1; - while ( - lineBelowCursor.trim() === "" && - pos.line + i <= fileLines.length - 1 - ) { - lineBelowCursor = fileLines[Math.min(pos.line + i, fileLines.length - 1)]; - i++; - } - - let extrasSnippets = options.useOtherFiles - ? ((await Promise.race([ - getDefinitionsFromLsp( - filepath, - fullPrefix + fullSuffix, - fullPrefix.length, - ide, - lang, - ), - 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, - ); - - // If prefix is manually passed - if (manuallyPassPrefix) { - prefix = manuallyPassPrefix; - suffix = ""; - } - - // Template prompt - const { - template, - completionOptions, - compilePrefixSuffix = undefined, - } = options.template - ? { template: options.template, completionOptions: {} } - : getTemplateForModel(llm.model); - - let prompt: string; - const filename = getBasename(filepath); - const reponame = getBasename(workspaceDirs[0] ?? "myproject"); - - // Some models have prompts that need two passes. This lets us pass the compiled prefix/suffix - // into either the 2nd template to generate a raw string, or to pass prefix, suffix to a FIM endpoint - if (compilePrefixSuffix) { - [prefix, suffix] = compilePrefixSuffix( - prefix, - suffix, - filepath, - reponame, - snippets, - ); - } - - 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}`; - } else if (prefix.trim().length === 0 && suffix.trim().length === 0) { - // If it's an empty file, include the file name as a comment - prefix = `${lang.singleLineComment} ${getLastNPathParts(filepath, 2)}\n${prefix}`; - } - - prompt = compiledTemplate({ - prefix, - suffix, - filename, - reponame, - }); - } else { - // Let the template function format snippets - prompt = template(prefix, suffix, filepath, reponame, snippets); - } - - // Completion - let completion = ""; - - const cache = await autocompleteCache; - const cachedCompletion = options.useCache - ? await cache.get(prefix) - : undefined; - let cacheHit = false; - if (cachedCompletion) { - // Cache - cacheHit = true; - completion = cachedCompletion; - } else { - const stop = [ - ...(completionOptions?.stop || []), - ...multilineStops, - ...commonStops, - ...(llm.model.toLowerCase().includes("starcoder2") - ? STARCODER2_T_ARTIFACTS - : []), - ...(lang.stopWords ?? []), - ...lang.topLevelKeywords.map((word) => `\n${word}`), - ]; - - let langMultilineDecision = lang.useMultiline?.({ prefix, suffix }); - let multiline: boolean = false; - if (langMultilineDecision) { - multiline = langMultilineDecision; - } else { - multiline = - !input.selectedCompletionInfo && // Only ever single-line if using intellisense selected value - options.multilineCompletions !== "never" && - (options.multilineCompletions === "always" || completeMultiline); - } - - // Try to reuse pending requests if what the user typed matches start of completion - const generator = generatorReuseManager.getGenerator( - prefix, - () => - llm.supportsFim() - ? llm.streamFim(prefix, suffix, { - ...completionOptions, - stop, - }) - : llm.streamComplete(prompt, { - ...completionOptions, - raw: true, - stop, - }), - multiline, - ); - - // Full stop means to stop the LLM's generation, instead of just truncating the displayed completion - const fullStop = () => generatorReuseManager.currentGenerator?.cancel(); - - // LLM - let cancelled = false; - const generatorWithCancellation = async function* () { - for await (const update of generator) { - if (token.aborted) { - cancelled = true; - return; - } - yield update; - } - }; - let charGenerator = generatorWithCancellation(); - charGenerator = noFirstCharNewline(charGenerator); - charGenerator = onlyWhitespaceAfterEndOfLine( - charGenerator, - lang.endOfLine, - fullStop, - ); - charGenerator = bracketMatchingService.stopOnUnmatchedClosingBracket( - charGenerator, - prefix, - suffix, - filepath, - multiline, - ); - - let lineGenerator = streamLines(charGenerator); - lineGenerator = stopAtLines(lineGenerator, fullStop); - lineGenerator = stopAtRepeatingLines(lineGenerator, fullStop); - lineGenerator = avoidPathLine(lineGenerator, lang.singleLineComment); - lineGenerator = skipPrefixes(lineGenerator); - lineGenerator = noTopLevelKeywordsMidline( - lineGenerator, - lang.topLevelKeywords, - fullStop, - ); - - for (const lineFilter of lang.lineFilters ?? []) { - lineGenerator = lineFilter({ lines: lineGenerator, fullStop }); - } - - lineGenerator = streamWithNewLines(lineGenerator); - - const finalGenerator = stopAtSimilarLine( - lineGenerator, - lineBelowCursor, - fullStop, - ); - - try { - for await (const update of finalGenerator) { - completion += update; - } - } catch (e: any) { - if (ERRORS_TO_IGNORE.some((err) => e.includes(err))) { - return undefined; - } - throw e; - } - - if (cancelled) { - return undefined; - } - - const processedCompletion = postprocessCompletion({ - completion, - prefix, - suffix, - llm, - }); - - if (!processedCompletion) { - return undefined; - } - completion = processedCompletion; - } - - const time = Date.now() - startTime; - return { - time, - completion, - prefix, - suffix, - prompt, - modelProvider: llm.providerName, - modelName: llm.model, - completionOptions, - cacheHit, - filepath: input.filepath, - completionId: input.completionId, - gitRepo: await ide.getRepoName(input.filepath), - uniqueId: await ide.getUniqueId(), - ...options, - }; -} - export class CompletionProvider { private static debounceTimeout: NodeJS.Timeout | undefined = undefined; private static debouncing = false; @@ -489,12 +153,15 @@ export class CompletionProvider { this.generatorReuseManager = new GeneratorReuseManager( this.onError.bind(this), ); + this.importDefinitionsService = new ImportDefinitionsService(this.ide); } + private importDefinitionsService: ImportDefinitionsService; private generatorReuseManager: GeneratorReuseManager; private autocompleteCache = AutocompleteLruCache.get(); public errorsShown: Set = new Set(); private bracketMatchingService = new BracketMatchingService(); + // private nearbyDefinitionsService = new NearbyDefinitionsService(); private onError(e: any) { console.warn("Error generating autocompletion: ", e); @@ -654,16 +321,7 @@ export class CompletionProvider { options.maxPromptTokens = 500; } - const outcome = await getTabCompletion( - token, - options, - llm, - this.ide, - this.generatorReuseManager, - input, - this.getDefinitionsFromLsp, - this.bracketMatchingService, - ); + const outcome = await this.getTabCompletion(token, options, llm, input); if (!outcome?.completion) { return undefined; @@ -735,4 +393,338 @@ export class CompletionProvider { displayedAt: now, }; } + + async getTabCompletion( + token: AbortSignal, + options: TabAutocompleteOptions, + llm: ILLM, + input: AutocompleteInput, + ): Promise { + const startTime = Date.now(); + + const { + filepath, + pos, + recentlyEditedFiles, + recentlyEditedRanges, + clipboardText, + manuallyPassFileContents, + manuallyPassPrefix, + } = input; + const fileContents = + manuallyPassFileContents ?? (await this.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) { + return; + } + if (llm instanceof OpenAI) { + llm.useLegacyCompletionsEndpoint = true; + } else if ( + llm.providerName === "free-trial" && + llm.model !== TRIAL_FIM_MODEL + ) { + llm.model = TRIAL_FIM_MODEL; + } + + if ( + !shownGptClaudeWarning && + nonAutocompleteModels.some((model) => llm.model.includes(model)) && + !llm.model.includes("deepseek") + ) { + shownGptClaudeWarning = true; + throw new Error( + `Warning: ${llm.model} is not trained for tab-autocomplete, and will result in low-quality suggestions. See the docs to learn more about why: https://docs.continue.dev/walkthroughs/tab-autocomplete#i-want-better-completions-should-i-use-gpt-4`, + ); + } + + // Prompt + let fullPrefix = + getRangeInString(fileContents, { + start: { line: 0, character: 0 }, + end: input.selectedCompletionInfo?.range.start ?? pos, + }) + (input.selectedCompletionInfo?.text ?? ""); + + if (input.injectDetails) { + const lines = fullPrefix.split("\n"); + fullPrefix = `${lines.slice(0, -1).join("\n")}\n${ + lang.singleLineComment + } ${input.injectDetails.split("\n").join(`\n${lang.singleLineComment} `)}\n${ + lines[lines.length - 1] + }`; + } + + const fullSuffix = getRangeInString(fileContents, { + start: pos, + end: { line: fileLines.length - 1, character: Number.MAX_SAFE_INTEGER }, + }); + + // First non-whitespace line below the cursor + let lineBelowCursor = ""; + let i = 1; + while ( + lineBelowCursor.trim() === "" && + pos.line + i <= fileLines.length - 1 + ) { + lineBelowCursor = fileLines[Math.min(pos.line + i, fileLines.length - 1)]; + i++; + } + + let extrasSnippets = options.useOtherFiles + ? ((await Promise.race([ + this.getDefinitionsFromLsp( + filepath, + fullPrefix + fullSuffix, + fullPrefix.length, + this.ide, + lang, + ), + new Promise((resolve) => { + setTimeout(() => resolve([]), 100); + }), + ])) as AutocompleteSnippet[]) + : []; + + const workspaceDirs = await this.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, + this.importDefinitionsService, + ); + + // If prefix is manually passed + if (manuallyPassPrefix) { + prefix = manuallyPassPrefix; + suffix = ""; + } + + // Template prompt + const { + template, + completionOptions, + compilePrefixSuffix = undefined, + } = options.template + ? { template: options.template, completionOptions: {} } + : getTemplateForModel(llm.model); + + let prompt: string; + const filename = getBasename(filepath); + const reponame = getBasename(workspaceDirs[0] ?? "myproject"); + + // Some models have prompts that need two passes. This lets us pass the compiled prefix/suffix + // into either the 2nd template to generate a raw string, or to pass prefix, suffix to a FIM endpoint + if (compilePrefixSuffix) { + [prefix, suffix] = compilePrefixSuffix( + prefix, + suffix, + filepath, + reponame, + snippets, + ); + } + + 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}`; + } else if (prefix.trim().length === 0 && suffix.trim().length === 0) { + // If it's an empty file, include the file name as a comment + prefix = `${lang.singleLineComment} ${getLastNPathParts(filepath, 2)}\n${prefix}`; + } + + prompt = compiledTemplate({ + prefix, + suffix, + filename, + reponame, + }); + } else { + // Let the template function format snippets + prompt = template(prefix, suffix, filepath, reponame, snippets); + } + + // Completion + let completion = ""; + + const cache = await autocompleteCache; + const cachedCompletion = options.useCache + ? await cache.get(prefix) + : undefined; + let cacheHit = false; + if (cachedCompletion) { + // Cache + cacheHit = true; + completion = cachedCompletion; + } else { + const stop = [ + ...(completionOptions?.stop || []), + ...multilineStops, + ...commonStops, + ...(llm.model.toLowerCase().includes("starcoder2") + ? STARCODER2_T_ARTIFACTS + : []), + ...(lang.stopWords ?? []), + ...lang.topLevelKeywords.map((word) => `\n${word}`), + ]; + + let langMultilineDecision = lang.useMultiline?.({ prefix, suffix }); + let multiline: boolean = false; + if (langMultilineDecision) { + multiline = langMultilineDecision; + } else { + multiline = + !input.selectedCompletionInfo && // Only ever single-line if using intellisense selected value + options.multilineCompletions !== "never" && + (options.multilineCompletions === "always" || completeMultiline); + } + + // Try to reuse pending requests if what the user typed matches start of completion + const generator = this.generatorReuseManager.getGenerator( + prefix, + () => + llm.supportsFim() + ? llm.streamFim(prefix, suffix, { + ...completionOptions, + stop, + }) + : llm.streamComplete(prompt, { + ...completionOptions, + raw: true, + stop, + }), + multiline, + ); + + // Full stop means to stop the LLM's generation, instead of just truncating the displayed completion + const fullStop = () => + this.generatorReuseManager.currentGenerator?.cancel(); + + // LLM + let cancelled = false; + const generatorWithCancellation = async function* () { + for await (const update of generator) { + if (token.aborted) { + cancelled = true; + return; + } + yield update; + } + }; + let charGenerator = generatorWithCancellation(); + charGenerator = noFirstCharNewline(charGenerator); + charGenerator = onlyWhitespaceAfterEndOfLine( + charGenerator, + lang.endOfLine, + fullStop, + ); + charGenerator = this.bracketMatchingService.stopOnUnmatchedClosingBracket( + charGenerator, + prefix, + suffix, + filepath, + multiline, + ); + + let lineGenerator = streamLines(charGenerator); + lineGenerator = stopAtLines(lineGenerator, fullStop); + lineGenerator = stopAtRepeatingLines(lineGenerator, fullStop); + lineGenerator = avoidPathLine(lineGenerator, lang.singleLineComment); + lineGenerator = skipPrefixes(lineGenerator); + lineGenerator = noTopLevelKeywordsMidline( + lineGenerator, + lang.topLevelKeywords, + fullStop, + ); + + for (const lineFilter of lang.lineFilters ?? []) { + lineGenerator = lineFilter({ lines: lineGenerator, fullStop }); + } + + lineGenerator = streamWithNewLines(lineGenerator); + + const finalGenerator = stopAtSimilarLine( + lineGenerator, + lineBelowCursor, + fullStop, + ); + + try { + for await (const update of finalGenerator) { + completion += update; + } + } catch (e: any) { + if (ERRORS_TO_IGNORE.some((err) => e.includes(err))) { + return undefined; + } + throw e; + } + + if (cancelled) { + return undefined; + } + + const processedCompletion = postprocessCompletion({ + completion, + prefix, + suffix, + llm, + }); + + if (!processedCompletion) { + return undefined; + } + completion = processedCompletion; + } + + const time = Date.now() - startTime; + return { + time, + completion, + prefix, + suffix, + prompt, + modelProvider: llm.providerName, + modelName: llm.model, + completionOptions, + cacheHit, + filepath: input.filepath, + completionId: input.completionId, + gitRepo: await this.ide.getRepoName(input.filepath), + uniqueId: await this.ide.getUniqueId(), + ...options, + }; + } } diff --git a/core/autocomplete/constructPrompt.ts b/core/autocomplete/constructPrompt.ts index 6f97e75ac..78770a0d5 100644 --- a/core/autocomplete/constructPrompt.ts +++ b/core/autocomplete/constructPrompt.ts @@ -7,6 +7,7 @@ import { pruneLinesFromBottom, pruneLinesFromTop, } from "../llm/countTokens.js"; +import { ImportDefinitionsService } from "./ImportDefinitionsService.js"; import { getAst, getTreePathAtCursor } from "./ast.js"; import { AutocompleteLanguageInfo, @@ -15,6 +16,7 @@ import { } from "./languages.js"; import { fillPromptWithSnippets, + getSymbolsForSnippet, rankSnippets, removeRangeFromSnippets, type AutocompleteSnippet, @@ -124,6 +126,7 @@ export async function constructAutocompletePrompt( recentlyEditedFiles: RangeInFileWithContents[], modelName: string, extraSnippets: AutocompleteSnippet[], + importDefinitionsService: ImportDefinitionsService, ): Promise<{ prefix: string; suffix: string; @@ -189,6 +192,29 @@ export async function constructAutocompletePrompt( } } + // Use imports + if (options.useImports) { + const importSnippets = []; + const fileInfo = importDefinitionsService.get(filepath); + if (fileInfo) { + const { imports } = fileInfo; + // Look for imports of any symbols around the current range + const textAroundCursor = + fullPrefix.split("\n").slice(-5).join("\n") + + fullSuffix.split("\n").slice(0, 3).join("\n"); + const symbols = Array.from( + getSymbolsForSnippet(textAroundCursor), + ).filter((symbol) => !language.topLevelKeywords.includes(symbol)); + for (const symbol of symbols) { + const rifs = imports[symbol]; + if (rifs) { + importSnippets.push(...rifs); + } + } + } + snippets.push(...importSnippets); + } + // Filter out empty snippets and ones that are already in the prefix/suffix snippets = snippets .map((snippet) => ({ ...snippet })) diff --git a/core/index.d.ts b/core/index.d.ts index b5f40c322..658f5c980 100644 --- a/core/index.d.ts +++ b/core/index.d.ts @@ -201,6 +201,11 @@ export interface RangeInFile { range: Range; } +export interface Location { + filepath: string; + position: Position; +} + export interface FileWithContents { filepath: string; contents: string; @@ -462,6 +467,12 @@ export interface IDE { listDir(dir: string): Promise<[string, FileType][]>; getLastModified(files: string[]): Promise<{ [path: string]: number }>; getGitHubAuthToken(): Promise; + + // LSP + gotoDefinition(location: Location): Promise; + + // Callbacks + onDidChangeActiveTextEditor(callback: (filepath: string) => void): void; } // Slash Commands @@ -756,6 +767,7 @@ export interface TabAutocompleteOptions { useRecentlyEdited: boolean; recentLinePrefixMatchMinLength: number; disableInFiles?: string[]; + useImports?: boolean; } export interface ContinueUIConfig { diff --git a/core/indexing/CodeSnippetsIndex.ts b/core/indexing/CodeSnippetsIndex.ts index 11a6a01bb..23dd5f535 100644 --- a/core/indexing/CodeSnippetsIndex.ts +++ b/core/indexing/CodeSnippetsIndex.ts @@ -1,5 +1,3 @@ -import fs from "node:fs"; -import path from "node:path"; import type { ChunkWithoutID, ContextItem, @@ -10,9 +8,9 @@ import type { } from "../index.js"; import { getBasename, getLastNPathParts } from "../util/index.js"; import { - getLanguageForFile, + TSQueryType, getParserForFile, - supportedLanguages, + getQueryForFile, } from "../util/treeSitter.js"; import { DatabaseConnection, SqliteDb, tagToString } from "./refreshIndex.js"; import { @@ -46,35 +44,16 @@ export class CodeSnippetsCodebaseIndex implements CodebaseIndex { )`); } - private getQuerySource(filepath: string) { - const fullLangName = supportedLanguages[filepath.split(".").pop() ?? ""]; - const sourcePath = path.join( - __dirname, - "..", - "tree-sitter", - "code-snippet-queries", - `tree-sitter-${fullLangName}-tags.scm`, - ); - if (!fs.existsSync(sourcePath)) { - return ""; - } - return fs.readFileSync(sourcePath).toString(); - } - async getSnippetsInFile( filepath: string, contents: string, ): Promise<(ChunkWithoutID & { title: string })[]> { - const lang = await getLanguageForFile(filepath); - if (!lang) { - return []; - } const parser = await getParserForFile(filepath); if (!parser) { return []; } const ast = parser.parse(contents); - const query = lang?.query(this.getQuerySource(filepath)); + const query = await getQueryForFile(filepath, TSQueryType.CodeSnippets); const matches = query?.matches(ast.rootNode); return ( diff --git a/core/protocol/ide.ts b/core/protocol/ide.ts index ab32f52aa..31308ad4d 100644 --- a/core/protocol/ide.ts +++ b/core/protocol/ide.ts @@ -5,8 +5,10 @@ import type { IdeInfo, IdeSettings, IndexTag, + Location, Problem, Range, + RangeInFile, Thread, } from ".."; @@ -73,5 +75,7 @@ export type ToIdeFromWebviewOrCoreProtocol = { listDir: [{ dir: string }, [string, FileType][]]; getLastModified: [{ files: string[] }, { [path: string]: number }]; + gotoDefinition: [{ location: Location }, RangeInFile[]]; + getGitHubAuthToken: [undefined, string | undefined]; }; diff --git a/core/protocol/index.ts b/core/protocol/index.ts index 36c73e0b0..ac89c3b42 100644 --- a/core/protocol/index.ts +++ b/core/protocol/index.ts @@ -12,7 +12,10 @@ export type IProtocol = Record; // IDE export type ToIdeProtocol = ToIdeFromWebviewProtocol & ToIdeFromCoreProtocol; -export type FromIdeProtocol = ToWebviewFromIdeProtocol & ToCoreFromIdeProtocol; +export type FromIdeProtocol = ToWebviewFromIdeProtocol & + ToCoreFromIdeProtocol & { + didChangeActiveTextEditor: [{ filepath: string }, void]; + }; // Webview export type ToWebviewProtocol = ToWebviewFromIdeProtocol & diff --git a/core/util/LruCache.ts b/core/util/LruCache.ts new file mode 100644 index 000000000..f6d923fed --- /dev/null +++ b/core/util/LruCache.ts @@ -0,0 +1,30 @@ +export class PrecalculatedLruCache { + private items: [string, V][] = []; + constructor( + private readonly calculateValue: (key: string) => Promise, + private readonly N: number, + ) {} + + async initKey(key: string) { + // Maintain LRU + const index = this.items.findIndex((item) => item[0] === key); + + if (index < 0) { + // Calculate info for new file + const value: V = await this.calculateValue(key); + + this.items.push([key, value]); + if (this.items.length > this.N) { + this.items.shift(); + } + } else { + // Move to end of array, since it was recently used + const [item] = this.items.splice(index, 1); + this.items.push(item); + } + } + + get(key: string): V | undefined { + return this.items.find((item) => item[0] === key)?.[1]; + } +} diff --git a/core/util/filesystem.ts b/core/util/filesystem.ts index 20373eebd..9745d1628 100644 --- a/core/util/filesystem.ts +++ b/core/util/filesystem.ts @@ -6,8 +6,10 @@ import { IdeInfo, IdeSettings, IndexTag, + Location, Problem, Range, + RangeInFile, Thread, } from "../index.d.js"; @@ -20,6 +22,13 @@ class FileSystemIde implements IDE { fs.mkdirSync(FileSystemIde.workspaceDir, { recursive: true }); } + gotoDefinition(location: Location): Promise { + throw new Error("Method not implemented."); + } + onDidChangeActiveTextEditor(callback: (filepath: string) => void): void { + throw new Error("Method not implemented."); + } + async getIdeSettings(): Promise { return { remoteConfigServerUrl: undefined, diff --git a/core/util/messageIde.ts b/core/util/messageIde.ts index 4523babba..d74a0ebe4 100644 --- a/core/util/messageIde.ts +++ b/core/util/messageIde.ts @@ -5,11 +5,14 @@ import type { IdeInfo, IdeSettings, IndexTag, + Location, Problem, Range, + RangeInFile, Thread, } from "../index.js"; import { ToIdeFromWebviewOrCoreProtocol } from "../protocol/ide.js"; +import { FromIdeProtocol } from "../protocol/index.js"; export class MessageIde implements IDE { constructor( @@ -17,7 +20,18 @@ export class MessageIde implements IDE { messageType: T, data: ToIdeFromWebviewOrCoreProtocol[T][0], ) => Promise, + private readonly on: ( + messageType: T, + callback: (data: FromIdeProtocol[T][0]) => FromIdeProtocol[T][1], + ) => void, ) {} + async gotoDefinition(location: Location): Promise { + return this.request("gotoDefinition", { location }); + } + onDidChangeActiveTextEditor(callback: (filepath: string) => void): void { + this.on("didChangeActiveTextEditor", (data) => callback(data.filepath)); + } + getIdeSettings(): Promise { return this.request("getIdeSettings", undefined); } diff --git a/core/util/parameters.ts b/core/util/parameters.ts index 83b77046d..8909af6f4 100644 --- a/core/util/parameters.ts +++ b/core/util/parameters.ts @@ -19,6 +19,7 @@ export const DEFAULT_AUTOCOMPLETE_OPTS: TabAutocompleteOptions = { useRecentlyEdited: true, recentLinePrefixMatchMinLength: 7, disableInFiles: undefined, + useImports: true, }; export const COUNT_COMPLETION_REJECTED_AFTER = 10_000; diff --git a/core/util/treeSitter.ts b/core/util/treeSitter.ts index 967f5d979..95a7a10ce 100644 --- a/core/util/treeSitter.ts +++ b/core/util/treeSitter.ts @@ -1,4 +1,5 @@ -import * as path from "path"; +import fs from "node:fs"; +import path from "node:path"; import Parser, { Language } from "web-tree-sitter"; export const supportedLanguages: { [key: string]: string } = { @@ -115,3 +116,34 @@ export async function getLanguageForFile( return undefined; } } + +export enum TSQueryType { + CodeSnippets = "code-snippet-queries", + Imports = "import-queries", +} + +export async function getQueryForFile( + filepath: string, + queryType: TSQueryType, +): Promise { + const language = await getLanguageForFile(filepath); + if (!language) { + return undefined; + } + + const fullLangName = supportedLanguages[filepath.split(".").pop() ?? ""]; + const sourcePath = path.join( + __dirname, + "..", + "tree-sitter", + queryType, + `${fullLangName}.scm`, + ); + if (!fs.existsSync(sourcePath)) { + return undefined; + } + const querySource = fs.readFileSync(sourcePath).toString(); + + const query = language.query(querySource); + return query; +} diff --git a/extensions/vscode/scripts/prepackage.js b/extensions/vscode/scripts/prepackage.js index d5a8b0c0d..71ff48e4e 100644 --- a/extensions/vscode/scripts/prepackage.js +++ b/extensions/vscode/scripts/prepackage.js @@ -470,7 +470,7 @@ const exe = os === "win32" ? ".exe" : ""; // Validate the all of the necessary files are present validateFilesPresent([ // Queries used to create the index for @code context provider - "tree-sitter/code-snippet-queries/tree-sitter-c_sharp-tags.scm", + "tree-sitter/code-snippet-queries/c_sharp.scm", // Queries used for @outline and @highlights context providers "tag-qry/tree-sitter-c_sharp-tags.scm", diff --git a/extensions/vscode/src/autocomplete/lsp.ts b/extensions/vscode/src/autocomplete/lsp.ts index 02441e965..8ac365826 100644 --- a/extensions/vscode/src/autocomplete/lsp.ts +++ b/extensions/vscode/src/autocomplete/lsp.ts @@ -32,7 +32,9 @@ function gotoInputKey(input: GotoInput) { const MAX_CACHE_SIZE = 50; const gotoCache = new Map(); -async function executeGotoProvider(input: GotoInput): Promise { +export async function executeGotoProvider( + input: GotoInput, +): Promise { const cacheKey = gotoInputKey(input); const cached = gotoCache.get(cacheKey); if (cached) { diff --git a/extensions/vscode/src/ideProtocol.ts b/extensions/vscode/src/ideProtocol.ts index d584d0615..a608b1757 100644 --- a/extensions/vscode/src/ideProtocol.ts +++ b/extensions/vscode/src/ideProtocol.ts @@ -9,7 +9,9 @@ import type { IdeInfo, IdeSettings, IndexTag, + Location, Problem, + RangeInFile, Thread, } from "core"; import { Range } from "core"; @@ -20,6 +22,7 @@ import { getContinueGlobalPath, } from "core/util/paths"; import * as vscode from "vscode"; +import { executeGotoProvider } from "./autocomplete/lsp"; import { DiffManager } from "./diff/horizontal"; import { Repository } from "./otherExtensions/git"; import { VsCodeIdeUtils } from "./util/ideUtils"; @@ -41,6 +44,25 @@ class VsCodeIde implements IDE { this.ideUtils = new VsCodeIdeUtils(); } + async gotoDefinition(location: Location): Promise { + const result = await executeGotoProvider({ + uri: location.filepath, + line: location.position.line, + character: location.position.character, + name: "vscode.executeDefinitionProvider", + }); + + return result; + } + + onDidChangeActiveTextEditor(callback: (filepath: string) => void): void { + vscode.window.onDidChangeActiveTextEditor((editor) => { + if (editor) { + callback(editor.document.uri.fsPath); + } + }); + } + private authToken: string | undefined; private askedForAuth = false; diff --git a/extensions/vscode/tree-sitter/code-snippet-queries/tree-sitter-c-tags.scm b/extensions/vscode/tree-sitter/code-snippet-queries/c.scm similarity index 100% rename from extensions/vscode/tree-sitter/code-snippet-queries/tree-sitter-c-tags.scm rename to extensions/vscode/tree-sitter/code-snippet-queries/c.scm diff --git a/extensions/vscode/tree-sitter/code-snippet-queries/tree-sitter-c_sharp-tags.scm b/extensions/vscode/tree-sitter/code-snippet-queries/c_sharp.scm similarity index 100% rename from extensions/vscode/tree-sitter/code-snippet-queries/tree-sitter-c_sharp-tags.scm rename to extensions/vscode/tree-sitter/code-snippet-queries/c_sharp.scm diff --git a/extensions/vscode/tree-sitter/code-snippet-queries/tree-sitter-cpp-tags.scm b/extensions/vscode/tree-sitter/code-snippet-queries/cpp.scm similarity index 100% rename from extensions/vscode/tree-sitter/code-snippet-queries/tree-sitter-cpp-tags.scm rename to extensions/vscode/tree-sitter/code-snippet-queries/cpp.scm diff --git a/extensions/vscode/tree-sitter/code-snippet-queries/tree-sitter-elisp-tags.scm b/extensions/vscode/tree-sitter/code-snippet-queries/elisp.scm similarity index 100% rename from extensions/vscode/tree-sitter/code-snippet-queries/tree-sitter-elisp-tags.scm rename to extensions/vscode/tree-sitter/code-snippet-queries/elisp.scm diff --git a/extensions/vscode/tree-sitter/code-snippet-queries/tree-sitter-elixir-tags.scm b/extensions/vscode/tree-sitter/code-snippet-queries/elixir.scm similarity index 100% rename from extensions/vscode/tree-sitter/code-snippet-queries/tree-sitter-elixir-tags.scm rename to extensions/vscode/tree-sitter/code-snippet-queries/elixir.scm diff --git a/extensions/vscode/tree-sitter/code-snippet-queries/tree-sitter-go-tags.scm b/extensions/vscode/tree-sitter/code-snippet-queries/go.scm similarity index 100% rename from extensions/vscode/tree-sitter/code-snippet-queries/tree-sitter-go-tags.scm rename to extensions/vscode/tree-sitter/code-snippet-queries/go.scm diff --git a/extensions/vscode/tree-sitter/code-snippet-queries/tree-sitter-java-tags.scm b/extensions/vscode/tree-sitter/code-snippet-queries/java.scm similarity index 100% rename from extensions/vscode/tree-sitter/code-snippet-queries/tree-sitter-java-tags.scm rename to extensions/vscode/tree-sitter/code-snippet-queries/java.scm diff --git a/extensions/vscode/tree-sitter/code-snippet-queries/tree-sitter-javascript-tags.scm b/extensions/vscode/tree-sitter/code-snippet-queries/javascript.scm similarity index 100% rename from extensions/vscode/tree-sitter/code-snippet-queries/tree-sitter-javascript-tags.scm rename to extensions/vscode/tree-sitter/code-snippet-queries/javascript.scm diff --git a/extensions/vscode/tree-sitter/code-snippet-queries/tree-sitter-ocaml-tags.scm b/extensions/vscode/tree-sitter/code-snippet-queries/ocaml.scm similarity index 100% rename from extensions/vscode/tree-sitter/code-snippet-queries/tree-sitter-ocaml-tags.scm rename to extensions/vscode/tree-sitter/code-snippet-queries/ocaml.scm diff --git a/extensions/vscode/tree-sitter/code-snippet-queries/tree-sitter-php-tags.scm b/extensions/vscode/tree-sitter/code-snippet-queries/php.scm similarity index 100% rename from extensions/vscode/tree-sitter/code-snippet-queries/tree-sitter-php-tags.scm rename to extensions/vscode/tree-sitter/code-snippet-queries/php.scm diff --git a/extensions/vscode/tree-sitter/code-snippet-queries/tree-sitter-python-tags.scm b/extensions/vscode/tree-sitter/code-snippet-queries/python.scm similarity index 100% rename from extensions/vscode/tree-sitter/code-snippet-queries/tree-sitter-python-tags.scm rename to extensions/vscode/tree-sitter/code-snippet-queries/python.scm diff --git a/extensions/vscode/tree-sitter/code-snippet-queries/tree-sitter-ql-tags.scm b/extensions/vscode/tree-sitter/code-snippet-queries/ql.scm similarity index 100% rename from extensions/vscode/tree-sitter/code-snippet-queries/tree-sitter-ql-tags.scm rename to extensions/vscode/tree-sitter/code-snippet-queries/ql.scm diff --git a/extensions/vscode/tree-sitter/code-snippet-queries/tree-sitter-ruby-tags.scm b/extensions/vscode/tree-sitter/code-snippet-queries/ruby.scm similarity index 100% rename from extensions/vscode/tree-sitter/code-snippet-queries/tree-sitter-ruby-tags.scm rename to extensions/vscode/tree-sitter/code-snippet-queries/ruby.scm diff --git a/extensions/vscode/tree-sitter/code-snippet-queries/tree-sitter-rust-tags.scm b/extensions/vscode/tree-sitter/code-snippet-queries/rust.scm similarity index 100% rename from extensions/vscode/tree-sitter/code-snippet-queries/tree-sitter-rust-tags.scm rename to extensions/vscode/tree-sitter/code-snippet-queries/rust.scm diff --git a/extensions/vscode/tree-sitter/code-snippet-queries/tree-sitter-typescript-tags.scm b/extensions/vscode/tree-sitter/code-snippet-queries/typescript.scm similarity index 100% rename from extensions/vscode/tree-sitter/code-snippet-queries/tree-sitter-typescript-tags.scm rename to extensions/vscode/tree-sitter/code-snippet-queries/typescript.scm diff --git a/extensions/vscode/tree-sitter/import-queries/typescript.scm b/extensions/vscode/tree-sitter/import-queries/typescript.scm new file mode 100644 index 000000000..19a4d024a --- /dev/null +++ b/extensions/vscode/tree-sitter/import-queries/typescript.scm @@ -0,0 +1,9 @@ +(import_statement + (import_clause + (named_imports + (import_specifier + (identifier) @import)))) + +(import_statement + (import_clause + (identifier) @import )) \ No newline at end of file diff --git a/gui/src/context/IdeMessenger.ts b/gui/src/context/IdeMessenger.ts index 81d2201f9..7534d59b6 100644 --- a/gui/src/context/IdeMessenger.ts +++ b/gui/src/context/IdeMessenger.ts @@ -54,7 +54,7 @@ export class IdeMessenger implements IIdeMessenger { ide: IDE; constructor() { - this.ide = new MessageIde(this.request.bind(this)); + this.ide = new MessageIde(this.request.bind(this), () => {}); } private _postToIde(messageType: string, data: any, messageId?: string) { From 18c935eb852c958615c9db1c8281d4bb3eb5afd6 Mon Sep 17 00:00:00 2001 From: Nate Sesti Date: Fri, 21 Jun 2024 15:55:14 -0700 Subject: [PATCH 019/268] =?UTF-8?q?=F0=9F=90=9B=20fix=20regression=20in=20?= =?UTF-8?q?/edit=20slash=20command?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- core/commands/util.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/commands/util.ts b/core/commands/util.ts index e0a6eca33..207b6c5ec 100644 --- a/core/commands/util.ts +++ b/core/commands/util.ts @@ -15,7 +15,7 @@ export function contextItemToRangeInFileWithContents( const lines = item.name.split("(")[1].split(")")[0].split("-"); const rif: RangeInFileWithContents = { - filepath: item.description.split(" (")[0], + filepath: item.id.itemId, range: { start: { line: Number.parseInt(lines[0]), From 37355ec1db07e7fca51b65944289f0b91a6ffffd Mon Sep 17 00:00:00 2001 From: Nate Sesti Date: Fri, 21 Jun 2024 21:59:38 -0700 Subject: [PATCH 020/268] organize autocomplete folder --- .../services/BracketMatchingService.ts | 134 +++++++ .../services/ImportDefinitionsService.ts | 81 ++++ .../services/NearbyDefinitionsService.ts | 45 +++ .../streamTransforms/charStream.ts | 41 ++ .../streamTransforms/lineStream.ts | 349 ++++++++++++++++++ 5 files changed, 650 insertions(+) create mode 100644 core/autocomplete/services/BracketMatchingService.ts create mode 100644 core/autocomplete/services/ImportDefinitionsService.ts create mode 100644 core/autocomplete/services/NearbyDefinitionsService.ts create mode 100644 core/autocomplete/streamTransforms/charStream.ts create mode 100644 core/autocomplete/streamTransforms/lineStream.ts diff --git a/core/autocomplete/services/BracketMatchingService.ts b/core/autocomplete/services/BracketMatchingService.ts new file mode 100644 index 000000000..63afdfd10 --- /dev/null +++ b/core/autocomplete/services/BracketMatchingService.ts @@ -0,0 +1,134 @@ +/** + * We follow the policy of only completing bracket pairs that we started + * But sometimes we started the pair in a previous autocomplete suggestion + */ +export class BracketMatchingService { + private openingBracketsFromLastCompletion: string[] = []; + private lastCompletionFile: string | undefined = undefined; + + static BRACKETS: { [key: string]: string } = { "(": ")", "{": "}", "[": "]" }; + static BRACKETS_REVERSE: { [key: string]: string } = { + ")": "(", + "}": "{", + "]": "[", + }; + + handleAcceptedCompletion(completion: string, filepath: string) { + this.openingBracketsFromLastCompletion = []; + const stack: string[] = []; + + for (let i = 0; i < completion.length; i++) { + const char = completion[i]; + if (Object.keys(BracketMatchingService.BRACKETS).includes(char)) { + // It's an opening bracket + stack.push(char); + } else if ( + Object.values(BracketMatchingService.BRACKETS).includes(char) + ) { + // It's a closing bracket + if ( + stack.length === 0 || + BracketMatchingService.BRACKETS[stack.pop()!] !== char + ) { + break; + } + } + } + + // Any remaining opening brackets in the stack are uncompleted + this.openingBracketsFromLastCompletion = stack; + this.lastCompletionFile = filepath; + } + + async *stopOnUnmatchedClosingBracket( + stream: AsyncGenerator, + prefix: string, + suffix: string, + filepath: string, + multiline: boolean, // Whether this is a multiline completion or not + ): AsyncGenerator { + let stack: string[] = []; + if (multiline) { + // Add opening brackets from the previous response + if (this.lastCompletionFile === filepath) { + stack = [...this.openingBracketsFromLastCompletion]; + } else { + this.lastCompletionFile = undefined; + } + } else { + // If single line completion, then allow completing bracket pairs that are + // started on the current line but not finished on the current line + if (!multiline) { + const currentLine = + (prefix.split("\n").pop() ?? "") + (suffix.split("\n")[0] ?? ""); + for (let i = 0; i < currentLine.length; i++) { + const char = currentLine[i]; + if (Object.keys(BracketMatchingService.BRACKETS).includes(char)) { + // It's an opening bracket + stack.push(char); + } else if ( + Object.values(BracketMatchingService.BRACKETS).includes(char) + ) { + // It's a closing bracket + if ( + stack.length === 0 || + BracketMatchingService.BRACKETS[stack.pop()!] !== char + ) { + break; + } + } + } + } + } + + // Add corresponding open brackets from suffix to stack + // because we overwrite them and the diff is displayed, and this allows something to be edited after that + for (let i = 0; i < suffix.length; i++) { + if (suffix[i] === " ") continue; + const openBracket = BracketMatchingService.BRACKETS_REVERSE[suffix[i]]; + if (!openBracket) break; + stack.unshift(openBracket); + } + + let all = ""; + let seenNonWhitespaceOrClosingBracket = false; + for await (let chunk of stream) { + // Allow closing brackets before any non-whitespace characters + if (!seenNonWhitespaceOrClosingBracket) { + const firstNonWhitespaceOrClosingBracketIndex = + chunk.search(/[^\s\)\}\]]/); + if (firstNonWhitespaceOrClosingBracketIndex !== -1) { + yield chunk.slice(0, firstNonWhitespaceOrClosingBracketIndex); + chunk = chunk.slice(firstNonWhitespaceOrClosingBracketIndex); + seenNonWhitespaceOrClosingBracket = true; + } else { + yield chunk; + continue; + } + } + + all += chunk; + const allLines = all.split("\n"); + for (let i = 0; i < chunk.length; i++) { + const char = chunk[i]; + if (Object.values(BracketMatchingService.BRACKETS).includes(char)) { + // It's a closing bracket + if ( + stack.length === 0 || + BracketMatchingService.BRACKETS[stack.pop()!] !== char + ) { + // If the stack is empty or the top of the stack doesn't match the current closing bracket + yield chunk.slice(0, i); + return; // Stop the generator if the closing bracket doesn't have a matching opening bracket in the stream + } + } else if ( + Object.keys(BracketMatchingService.BRACKETS).includes(char) + ) { + // It's an opening bracket + stack.push(char); + } + } + yield chunk; + } + } +} diff --git a/core/autocomplete/services/ImportDefinitionsService.ts b/core/autocomplete/services/ImportDefinitionsService.ts new file mode 100644 index 000000000..19287bf81 --- /dev/null +++ b/core/autocomplete/services/ImportDefinitionsService.ts @@ -0,0 +1,81 @@ +import { IDE } from ".."; +import { RangeInFileWithContents } from "../commands/util"; +import { PrecalculatedLruCache } from "../util/LruCache"; +import { + TSQueryType, + getParserForFile, + getQueryForFile, +} from "../util/treeSitter"; + +interface FileInfo { + imports: { [key: string]: RangeInFileWithContents[] }; +} + +export class ImportDefinitionsService { + static N = 10; + + private cache: PrecalculatedLruCache = + new PrecalculatedLruCache( + this._getFileInfo.bind(this), + ImportDefinitionsService.N, + ); + + constructor(private readonly ide: IDE) { + ide.onDidChangeActiveTextEditor((filepath) => { + this.cache.initKey(filepath); + }); + } + + get(filepath: string): FileInfo | undefined { + return this.cache.get(filepath); + } + + private async _getFileInfo(filepath: string): Promise { + const parser = await getParserForFile(filepath); + if (!parser) { + return { + imports: {}, + }; + } + const ast = parser.parse(await this.ide.readFile(filepath), undefined, { + includedRanges: [ + { + startIndex: 0, + endIndex: 10_000, + startPosition: { row: 0, column: 0 }, + endPosition: { row: 100, column: 0 }, + }, + ], + }); + const query = await getQueryForFile(filepath, TSQueryType.Imports); + if (!query) { + return { + imports: {}, + }; + } + + const matches = query?.matches(ast.rootNode); + + const fileInfo: FileInfo = { + imports: {}, + }; + for (const match of matches) { + const startPosition = match.captures[0].node.startPosition; + const defs = await this.ide.gotoDefinition({ + filepath, + position: { + line: startPosition.row, + character: startPosition.column, + }, + }); + fileInfo.imports[match.captures[0].node.text] = await Promise.all( + defs.map(async (def) => ({ + ...def, + contents: await this.ide.readRangeInFile(def.filepath, def.range), + })), + ); + } + + return fileInfo; + } +} diff --git a/core/autocomplete/services/NearbyDefinitionsService.ts b/core/autocomplete/services/NearbyDefinitionsService.ts new file mode 100644 index 000000000..12d6f7947 --- /dev/null +++ b/core/autocomplete/services/NearbyDefinitionsService.ts @@ -0,0 +1,45 @@ +import { IDE, Location } from "../.."; +import { LANGUAGES } from "../languages"; +import { getSymbolsForSnippet } from "../ranking"; + +interface FileInfo { + filepath: string; +} + +export class NearbyDefinitionsService { + static N = 10; + + constructor(private readonly ide: IDE) {} + + async getDefinitionsForLine(filepath: string, line: number) { + const lineContent = await this.ide.readRangeInFile(filepath, { + start: { + line, + character: 0, + }, + end: { + line: line + 1, + character: 0, + }, + }); + + // Remove keywords + const lang = LANGUAGES[filepath.split(".").slice(-1)[0]]; + const symbols = Array.from(getSymbolsForSnippet(lineContent)) + .filter((s) => s.length > 0) + .filter((s) => !(lang && lang?.stopWords?.includes(s))); + + return Promise.all( + symbols.map((s) => { + const character = lineContent.indexOf(s); + const pos: Location = { + filepath, + position: { + line, + character, + }, + }; + }), + ); + } +} diff --git a/core/autocomplete/streamTransforms/charStream.ts b/core/autocomplete/streamTransforms/charStream.ts new file mode 100644 index 000000000..39a1c6729 --- /dev/null +++ b/core/autocomplete/streamTransforms/charStream.ts @@ -0,0 +1,41 @@ +export async function* onlyWhitespaceAfterEndOfLine( + stream: AsyncGenerator, + endOfLine: string[], + fullStop: () => void, +): AsyncGenerator { + let pending = ""; + for await (let chunk of stream) { + chunk = pending + chunk; + pending = ""; + for (let i = 0; i < chunk.length - 1; i++) { + if ( + endOfLine.includes(chunk[i]) && + chunk[i + 1].trim() === chunk[i + 1] + ) { + yield chunk.slice(0, i + 1); + fullStop(); + return; + } + } + if (endOfLine.includes(chunk[chunk.length - 1])) { + pending = chunk[chunk.length - 1]; + yield chunk.slice(0, chunk.length - 1); + } else { + yield chunk; + } + } + yield pending; +} + +export async function* noFirstCharNewline(stream: AsyncGenerator) { + let first = true; + for await (const char of stream) { + if (first) { + first = false; + if (char.startsWith("\n") || char.startsWith("\r")) { + return; + } + } + yield char; + } +} diff --git a/core/autocomplete/streamTransforms/lineStream.ts b/core/autocomplete/streamTransforms/lineStream.ts new file mode 100644 index 000000000..268801994 --- /dev/null +++ b/core/autocomplete/streamTransforms/lineStream.ts @@ -0,0 +1,349 @@ +import { distance } from "fastest-levenshtein"; +import { LineStream } from "../../diff/util.js"; +import { DiffLine } from "../../index.js"; + +export type LineFilter = (args: { + lines: LineStream; + fullStop: () => void; +}) => LineStream; + +export async function* noTopLevelKeywordsMidline( + lines: LineStream, + topLevelKeywords: string[], + fullStop: () => void, +): LineStream { + for await (const line of lines) { + for (const keyword of topLevelKeywords) { + const indexOf = line.indexOf(`${keyword} `); + if (indexOf >= 0 && line.slice(indexOf - 1, indexOf).trim() !== "") { + yield line.slice(0, indexOf); + fullStop(); + break; + } + } + yield line; + } +} + +export async function* avoidPathLine( + stream: LineStream, + comment: string, +): LineStream { + // Snippets are inserted as comments with a line at the start '// Path: '. + // Sometimes the model with copy this pattern, which is unwanted + for await (const line of stream) { + // Also filter lines that are empty comments + if (line.startsWith(`${comment} Path: `) || line.trim() === comment) { + continue; + } + yield line; + } +} + +export async function* streamWithNewLines(stream: LineStream): LineStream { + let firstLine = true; + for await (const nextLine of stream) { + if (!firstLine) { + yield "\n"; + } + firstLine = false; + yield nextLine; + } +} + +const bracketEnding = [")", "]", "}", ";"]; +function isBracketEnding(line: string): boolean { + return line + .trim() + .split("") + .some((char) => bracketEnding.includes(char)); +} + +function commonPrefixLength(a: string, b: string): number { + let i = 0; + while (i < a.length && i < b.length && a[i] === b[i]) { + i++; + } + return i; +} + +export function lineIsRepeated(a: string, b: string): boolean { + if (a.length <= 4 || b.length <= 4) { + return false; + } + + const aTrim = a.trim(); + const bTrim = b.trim(); + return ( + commonPrefixLength(aTrim, bTrim) > 12 || + distance(aTrim, bTrim) / bTrim.length < 0.1 + ); +} + +export async function* stopAtSimilarLine( + stream: LineStream, + line: string, + fullStop: () => void, +): AsyncGenerator { + const trimmedLine = line.trim(); + const lineIsBracketEnding = isBracketEnding(trimmedLine); + for await (const nextLine of stream) { + if (nextLine === line) { + fullStop(); + break; + } + + if (lineIsBracketEnding && trimmedLine.trim() === nextLine.trim()) { + yield nextLine; + continue; + } + + if (lineIsRepeated(nextLine, trimmedLine)) { + fullStop(); + break; + } + yield nextLine; + } +} + +const LINES_TO_STOP_AT = ["# End of file.", " void, +): LineStream { + for await (const line of stream) { + if (LINES_TO_STOP_AT.some((stopAt) => line.trim().includes(stopAt))) { + fullStop(); + break; + } + yield line; + } +} + +const PREFIXES_TO_SKIP = [""]; +export async function* skipPrefixes(lines: LineStream): LineStream { + let isFirstLine = true; + for await (const line of lines) { + if (isFirstLine) { + const match = PREFIXES_TO_SKIP.find((prefix) => line.startsWith(prefix)); + if (match) { + yield line.slice(match.length); + continue; + } + isFirstLine = false; + } + yield line; + } +} + +const LINES_TO_SKIP = [""]; + +export async function* skipLines(stream: LineStream): LineStream { + for await (const line of stream) { + if (!LINES_TO_SKIP.some((skipAt) => line.startsWith(skipAt))) { + yield line; + } + } +} + +const LINES_TO_REMOVE_BEFORE_START = [ + "", + "[CODE]", + "", +]; + +function shouldRemoveLineBeforeStart(line: string): boolean { + return ( + line.trimStart().startsWith("```") || + LINES_TO_REMOVE_BEFORE_START.some((l) => line.trim() === l) + ); +} + +function shouldChangeLineAndStop(line: string): string | undefined { + if (line.trimStart() === "```") { + return line; + } + + if (line.includes("[/CODE]")) { + return line.split("[/CODE]")[0].trimEnd(); + } + + return undefined; +} + +export async function* filterCodeBlockLines(rawLines: LineStream): LineStream { + let seenValidLine = false; + + let waitingToSeeIfLineIsLast = undefined; + + for await (const line of rawLines) { + // Filter out starting ``` + if (!seenValidLine) { + if (shouldRemoveLineBeforeStart(line)) { + continue; + } + seenValidLine = true; + } + + // Filter out ending ``` + if (typeof waitingToSeeIfLineIsLast !== "undefined") { + yield waitingToSeeIfLineIsLast; + waitingToSeeIfLineIsLast = undefined; + } + + const changedEndLine = shouldChangeLineAndStop(line); + if (typeof changedEndLine === "string") { + yield changedEndLine; + return; + } + + if (line.startsWith("```")) { + waitingToSeeIfLineIsLast = line; + } else { + yield line; + } + } +} + +function isEnglishFirstLine(line: string) { + line = line.trim().toLowerCase(); + if (line.endsWith(":") && !line.trimStart().startsWith("def")) { + return true; + } + if ( + line.startsWith("here is") || + line.startsWith("here's") || + line.startsWith("sure, here") || + line.startsWith("sure thing") || + line.startsWith("sure!") || + line.startsWith("to fill") || + line.startsWith("certainly") || + line.startsWith("of course") || + line.startsWith("the code should") + ) { + return true; + } + + return false; +} + +export async function* filterEnglishLinesAtStart(lines: LineStream) { + let i = 0; + let wasEnglishFirstLine = false; + for await (const line of lines) { + if (i === 0 && line.trim() === "") { + continue; + } + if (i === 0) { + if (isEnglishFirstLine(line)) { + wasEnglishFirstLine = true; + i++; + continue; + } + } else if (i === 1 && wasEnglishFirstLine && line.trim() === "") { + i++; + continue; + } + i++; + yield line; + } +} + +function isEnglishPostExplanation(line: string): boolean { + const lower = line.toLowerCase(); + return ( + lower.startsWith("explanation:") || + lower.startsWith("here is") || + lower.startsWith("here's how") || + lower.startsWith("the above") + ); +} + +export async function* filterEnglishLinesAtEnd(lines: LineStream) { + let finishedCodeBlock = false; + for await (const line of lines) { + if (line.trim() === "```") { + finishedCodeBlock = true; + } + if (finishedCodeBlock && isEnglishPostExplanation(line)) { + break; + } + yield line; + } +} + +export async function* fixCodeLlamaFirstLineIndentation(lines: LineStream) { + let isFirstLine = true; + for await (const line of lines) { + if (isFirstLine && line.startsWith(" ")) { + yield line.slice(2); + isFirstLine = false; + } else { + yield line; + } + } +} + +function isUselessLine(line: string): boolean { + const trimmed = line.trim().toLowerCase(); + return trimmed === "" || trimmed === "```" || trimmed.startsWith("// end"); +} + +export async function* filterLeadingAndTrailingNewLineInsertion( + diffLines: AsyncGenerator, +): AsyncGenerator { + let isFirst = true; + let buffer: DiffLine[] = []; + for await (const diffLine of diffLines) { + const isBlankLineInsertion = + diffLine.type === "new" && isUselessLine(diffLine.line); + if (isFirst && isBlankLineInsertion) { + isFirst = false; + continue; + } + isFirst = false; + + if (isBlankLineInsertion) { + buffer.push(diffLine); + } else { + if (diffLine.type === "old") { + buffer = []; + } else { + while (buffer.length > 0) { + yield buffer.shift()!; + } + } + yield diffLine; + } + } +} + +export async function* stopAtRepeatingLines( + lines: LineStream, + fullStop: () => void, +): LineStream { + const repeatedLines: string[] = []; + for await (const line of lines) { + if (repeatedLines.length === 0) { + repeatedLines.push(line); + } else if (repeatedLines.length < 3) { + if (repeatedLines[repeatedLines.length - 1] === line) { + repeatedLines.push(line); + } else { + while (repeatedLines.length > 0) { + yield repeatedLines.shift()!; + } + yield line; + } + } else { + yield repeatedLines[0]; + fullStop(); + return; + } + } + + while (repeatedLines.length > 0) { + yield repeatedLines.shift()!; + } +} From cf362627384e7f7ea6dcb48a4fe461f17daace52 Mon Sep 17 00:00:00 2001 From: Nate Sesti Date: Fri, 21 Jun 2024 21:59:46 -0700 Subject: [PATCH 021/268] organize autocomplete folder --- core/autocomplete/ImportDefinitionsService.ts | 81 ---- core/autocomplete/NearbyDefinitionsService.ts | 45 --- core/autocomplete/brackets.ts | 134 ------- core/autocomplete/charStream.ts | 41 -- core/autocomplete/completionProvider.ts | 20 +- core/autocomplete/constructPrompt.ts | 2 +- core/autocomplete/languages.ts | 2 +- core/autocomplete/lineStream.ts | 349 ------------------ core/autocomplete/postprocessing.ts | 2 +- core/commands/slash/edit.ts | 4 +- core/util/verticalEdit.ts | 2 +- 11 files changed, 16 insertions(+), 666 deletions(-) delete mode 100644 core/autocomplete/ImportDefinitionsService.ts delete mode 100644 core/autocomplete/NearbyDefinitionsService.ts delete mode 100644 core/autocomplete/brackets.ts delete mode 100644 core/autocomplete/charStream.ts delete mode 100644 core/autocomplete/lineStream.ts diff --git a/core/autocomplete/ImportDefinitionsService.ts b/core/autocomplete/ImportDefinitionsService.ts deleted file mode 100644 index 19287bf81..000000000 --- a/core/autocomplete/ImportDefinitionsService.ts +++ /dev/null @@ -1,81 +0,0 @@ -import { IDE } from ".."; -import { RangeInFileWithContents } from "../commands/util"; -import { PrecalculatedLruCache } from "../util/LruCache"; -import { - TSQueryType, - getParserForFile, - getQueryForFile, -} from "../util/treeSitter"; - -interface FileInfo { - imports: { [key: string]: RangeInFileWithContents[] }; -} - -export class ImportDefinitionsService { - static N = 10; - - private cache: PrecalculatedLruCache = - new PrecalculatedLruCache( - this._getFileInfo.bind(this), - ImportDefinitionsService.N, - ); - - constructor(private readonly ide: IDE) { - ide.onDidChangeActiveTextEditor((filepath) => { - this.cache.initKey(filepath); - }); - } - - get(filepath: string): FileInfo | undefined { - return this.cache.get(filepath); - } - - private async _getFileInfo(filepath: string): Promise { - const parser = await getParserForFile(filepath); - if (!parser) { - return { - imports: {}, - }; - } - const ast = parser.parse(await this.ide.readFile(filepath), undefined, { - includedRanges: [ - { - startIndex: 0, - endIndex: 10_000, - startPosition: { row: 0, column: 0 }, - endPosition: { row: 100, column: 0 }, - }, - ], - }); - const query = await getQueryForFile(filepath, TSQueryType.Imports); - if (!query) { - return { - imports: {}, - }; - } - - const matches = query?.matches(ast.rootNode); - - const fileInfo: FileInfo = { - imports: {}, - }; - for (const match of matches) { - const startPosition = match.captures[0].node.startPosition; - const defs = await this.ide.gotoDefinition({ - filepath, - position: { - line: startPosition.row, - character: startPosition.column, - }, - }); - fileInfo.imports[match.captures[0].node.text] = await Promise.all( - defs.map(async (def) => ({ - ...def, - contents: await this.ide.readRangeInFile(def.filepath, def.range), - })), - ); - } - - return fileInfo; - } -} diff --git a/core/autocomplete/NearbyDefinitionsService.ts b/core/autocomplete/NearbyDefinitionsService.ts deleted file mode 100644 index 79cd0af0a..000000000 --- a/core/autocomplete/NearbyDefinitionsService.ts +++ /dev/null @@ -1,45 +0,0 @@ -import { IDE, Location } from ".."; -import { LANGUAGES } from "./languages"; -import { getSymbolsForSnippet } from "./ranking"; - -interface FileInfo { - filepath: string; -} - -export class NearbyDefinitionsService { - static N = 10; - - constructor(private readonly ide: IDE) {} - - async getDefinitionsForLine(filepath: string, line: number) { - const lineContent = await this.ide.readRangeInFile(filepath, { - start: { - line, - character: 0, - }, - end: { - line: line + 1, - character: 0, - }, - }); - - // Remove keywords - const lang = LANGUAGES[filepath.split(".").slice(-1)[0]]; - const symbols = Array.from(getSymbolsForSnippet(lineContent)) - .filter((s) => s.length > 0) - .filter((s) => !(lang && lang?.stopWords?.includes(s))); - - return Promise.all( - symbols.map((s) => { - const character = lineContent.indexOf(s); - const pos: Location = { - filepath, - position: { - line, - character, - }, - }; - }), - ); - } -} diff --git a/core/autocomplete/brackets.ts b/core/autocomplete/brackets.ts deleted file mode 100644 index 63afdfd10..000000000 --- a/core/autocomplete/brackets.ts +++ /dev/null @@ -1,134 +0,0 @@ -/** - * We follow the policy of only completing bracket pairs that we started - * But sometimes we started the pair in a previous autocomplete suggestion - */ -export class BracketMatchingService { - private openingBracketsFromLastCompletion: string[] = []; - private lastCompletionFile: string | undefined = undefined; - - static BRACKETS: { [key: string]: string } = { "(": ")", "{": "}", "[": "]" }; - static BRACKETS_REVERSE: { [key: string]: string } = { - ")": "(", - "}": "{", - "]": "[", - }; - - handleAcceptedCompletion(completion: string, filepath: string) { - this.openingBracketsFromLastCompletion = []; - const stack: string[] = []; - - for (let i = 0; i < completion.length; i++) { - const char = completion[i]; - if (Object.keys(BracketMatchingService.BRACKETS).includes(char)) { - // It's an opening bracket - stack.push(char); - } else if ( - Object.values(BracketMatchingService.BRACKETS).includes(char) - ) { - // It's a closing bracket - if ( - stack.length === 0 || - BracketMatchingService.BRACKETS[stack.pop()!] !== char - ) { - break; - } - } - } - - // Any remaining opening brackets in the stack are uncompleted - this.openingBracketsFromLastCompletion = stack; - this.lastCompletionFile = filepath; - } - - async *stopOnUnmatchedClosingBracket( - stream: AsyncGenerator, - prefix: string, - suffix: string, - filepath: string, - multiline: boolean, // Whether this is a multiline completion or not - ): AsyncGenerator { - let stack: string[] = []; - if (multiline) { - // Add opening brackets from the previous response - if (this.lastCompletionFile === filepath) { - stack = [...this.openingBracketsFromLastCompletion]; - } else { - this.lastCompletionFile = undefined; - } - } else { - // If single line completion, then allow completing bracket pairs that are - // started on the current line but not finished on the current line - if (!multiline) { - const currentLine = - (prefix.split("\n").pop() ?? "") + (suffix.split("\n")[0] ?? ""); - for (let i = 0; i < currentLine.length; i++) { - const char = currentLine[i]; - if (Object.keys(BracketMatchingService.BRACKETS).includes(char)) { - // It's an opening bracket - stack.push(char); - } else if ( - Object.values(BracketMatchingService.BRACKETS).includes(char) - ) { - // It's a closing bracket - if ( - stack.length === 0 || - BracketMatchingService.BRACKETS[stack.pop()!] !== char - ) { - break; - } - } - } - } - } - - // Add corresponding open brackets from suffix to stack - // because we overwrite them and the diff is displayed, and this allows something to be edited after that - for (let i = 0; i < suffix.length; i++) { - if (suffix[i] === " ") continue; - const openBracket = BracketMatchingService.BRACKETS_REVERSE[suffix[i]]; - if (!openBracket) break; - stack.unshift(openBracket); - } - - let all = ""; - let seenNonWhitespaceOrClosingBracket = false; - for await (let chunk of stream) { - // Allow closing brackets before any non-whitespace characters - if (!seenNonWhitespaceOrClosingBracket) { - const firstNonWhitespaceOrClosingBracketIndex = - chunk.search(/[^\s\)\}\]]/); - if (firstNonWhitespaceOrClosingBracketIndex !== -1) { - yield chunk.slice(0, firstNonWhitespaceOrClosingBracketIndex); - chunk = chunk.slice(firstNonWhitespaceOrClosingBracketIndex); - seenNonWhitespaceOrClosingBracket = true; - } else { - yield chunk; - continue; - } - } - - all += chunk; - const allLines = all.split("\n"); - for (let i = 0; i < chunk.length; i++) { - const char = chunk[i]; - if (Object.values(BracketMatchingService.BRACKETS).includes(char)) { - // It's a closing bracket - if ( - stack.length === 0 || - BracketMatchingService.BRACKETS[stack.pop()!] !== char - ) { - // If the stack is empty or the top of the stack doesn't match the current closing bracket - yield chunk.slice(0, i); - return; // Stop the generator if the closing bracket doesn't have a matching opening bracket in the stream - } - } else if ( - Object.keys(BracketMatchingService.BRACKETS).includes(char) - ) { - // It's an opening bracket - stack.push(char); - } - } - yield chunk; - } - } -} diff --git a/core/autocomplete/charStream.ts b/core/autocomplete/charStream.ts deleted file mode 100644 index 39a1c6729..000000000 --- a/core/autocomplete/charStream.ts +++ /dev/null @@ -1,41 +0,0 @@ -export async function* onlyWhitespaceAfterEndOfLine( - stream: AsyncGenerator, - endOfLine: string[], - fullStop: () => void, -): AsyncGenerator { - let pending = ""; - for await (let chunk of stream) { - chunk = pending + chunk; - pending = ""; - for (let i = 0; i < chunk.length - 1; i++) { - if ( - endOfLine.includes(chunk[i]) && - chunk[i + 1].trim() === chunk[i + 1] - ) { - yield chunk.slice(0, i + 1); - fullStop(); - return; - } - } - if (endOfLine.includes(chunk[chunk.length - 1])) { - pending = chunk[chunk.length - 1]; - yield chunk.slice(0, chunk.length - 1); - } else { - yield chunk; - } - } - yield pending; -} - -export async function* noFirstCharNewline(stream: AsyncGenerator) { - let first = true; - for await (const char of stream) { - if (first) { - first = false; - if (char.startsWith("\n") || char.startsWith("\r")) { - return; - } - } - yield char; - } -} diff --git a/core/autocomplete/completionProvider.ts b/core/autocomplete/completionProvider.ts index f1cdfb165..260535d4b 100644 --- a/core/autocomplete/completionProvider.ts +++ b/core/autocomplete/completionProvider.ts @@ -22,19 +22,22 @@ import { } from "../util/parameters.js"; import { Telemetry } from "../util/posthog.js"; import { getRangeInString } from "../util/ranges.js"; -import { ImportDefinitionsService } from "./ImportDefinitionsService.js"; -import { BracketMatchingService } from "./brackets.js"; import AutocompleteLruCache from "./cache.js"; -import { - noFirstCharNewline, - onlyWhitespaceAfterEndOfLine, -} from "./charStream.js"; import { constructAutocompletePrompt, languageForFilepath, } from "./constructPrompt.js"; import { isOnlyPunctuationAndWhitespace } from "./filter.js"; import { AutocompleteLanguageInfo } from "./languages.js"; +import { postprocessCompletion } from "./postprocessing.js"; +import { AutocompleteSnippet } from "./ranking.js"; +import { RecentlyEditedRange } from "./recentlyEdited.js"; +import { BracketMatchingService } from "./services/BracketMatchingService.js"; +import { ImportDefinitionsService } from "./services/ImportDefinitionsService.js"; +import { + noFirstCharNewline, + onlyWhitespaceAfterEndOfLine, +} from "./streamTransforms/charStream.js"; import { avoidPathLine, noTopLevelKeywordsMidline, @@ -43,10 +46,7 @@ import { stopAtRepeatingLines, stopAtSimilarLine, streamWithNewLines, -} from "./lineStream.js"; -import { postprocessCompletion } from "./postprocessing.js"; -import { AutocompleteSnippet } from "./ranking.js"; -import { RecentlyEditedRange } from "./recentlyEdited.js"; +} from "./streamTransforms/lineStream.js"; import { getTemplateForModel } from "./templates.js"; import { GeneratorReuseManager } from "./util.js"; diff --git a/core/autocomplete/constructPrompt.ts b/core/autocomplete/constructPrompt.ts index 78770a0d5..7e63375bb 100644 --- a/core/autocomplete/constructPrompt.ts +++ b/core/autocomplete/constructPrompt.ts @@ -7,7 +7,6 @@ import { pruneLinesFromBottom, pruneLinesFromTop, } from "../llm/countTokens.js"; -import { ImportDefinitionsService } from "./ImportDefinitionsService.js"; import { getAst, getTreePathAtCursor } from "./ast.js"; import { AutocompleteLanguageInfo, @@ -22,6 +21,7 @@ import { type AutocompleteSnippet, } from "./ranking.js"; import { RecentlyEditedRange, findMatchingRange } from "./recentlyEdited.js"; +import { ImportDefinitionsService } from "./services/ImportDefinitionsService.js"; export function languageForFilepath( filepath: string, diff --git a/core/autocomplete/languages.ts b/core/autocomplete/languages.ts index 3360c3a9b..0ab63e716 100644 --- a/core/autocomplete/languages.ts +++ b/core/autocomplete/languages.ts @@ -1,4 +1,4 @@ -import type { LineFilter } from "./lineStream"; +import type { LineFilter } from "./streamTransforms/lineStream"; export interface AutocompleteLanguageInfo { topLevelKeywords: string[]; diff --git a/core/autocomplete/lineStream.ts b/core/autocomplete/lineStream.ts deleted file mode 100644 index 674f0d46e..000000000 --- a/core/autocomplete/lineStream.ts +++ /dev/null @@ -1,349 +0,0 @@ -import { distance } from "fastest-levenshtein"; -import { LineStream } from "../diff/util.js"; -import { DiffLine } from "../index.js"; - -export type LineFilter = (args: { - lines: LineStream; - fullStop: () => void; -}) => LineStream; - -export async function* noTopLevelKeywordsMidline( - lines: LineStream, - topLevelKeywords: string[], - fullStop: () => void, -): LineStream { - for await (const line of lines) { - for (const keyword of topLevelKeywords) { - const indexOf = line.indexOf(`${keyword} `); - if (indexOf >= 0 && line.slice(indexOf - 1, indexOf).trim() !== "") { - yield line.slice(0, indexOf); - fullStop(); - break; - } - } - yield line; - } -} - -export async function* avoidPathLine( - stream: LineStream, - comment: string, -): LineStream { - // Snippets are inserted as comments with a line at the start '// Path: '. - // Sometimes the model with copy this pattern, which is unwanted - for await (const line of stream) { - // Also filter lines that are empty comments - if (line.startsWith(`${comment} Path: `) || line.trim() === comment) { - continue; - } - yield line; - } -} - -export async function* streamWithNewLines(stream: LineStream): LineStream { - let firstLine = true; - for await (const nextLine of stream) { - if (!firstLine) { - yield "\n"; - } - firstLine = false; - yield nextLine; - } -} - -const bracketEnding = [")", "]", "}", ";"]; -function isBracketEnding(line: string): boolean { - return line - .trim() - .split("") - .some((char) => bracketEnding.includes(char)); -} - -function commonPrefixLength(a: string, b: string): number { - let i = 0; - while (i < a.length && i < b.length && a[i] === b[i]) { - i++; - } - return i; -} - -export function lineIsRepeated(a: string, b: string): boolean { - if (a.length <= 4 || b.length <= 4) { - return false; - } - - const aTrim = a.trim(); - const bTrim = b.trim(); - return ( - commonPrefixLength(aTrim, bTrim) > 12 || - distance(aTrim, bTrim) / bTrim.length < 0.1 - ); -} - -export async function* stopAtSimilarLine( - stream: LineStream, - line: string, - fullStop: () => void, -): AsyncGenerator { - const trimmedLine = line.trim(); - const lineIsBracketEnding = isBracketEnding(trimmedLine); - for await (const nextLine of stream) { - if (nextLine === line) { - fullStop(); - break; - } - - if (lineIsBracketEnding && trimmedLine.trim() === nextLine.trim()) { - yield nextLine; - continue; - } - - if (lineIsRepeated(nextLine, trimmedLine)) { - fullStop(); - break; - } - yield nextLine; - } -} - -const LINES_TO_STOP_AT = ["# End of file.", " void, -): LineStream { - for await (const line of stream) { - if (LINES_TO_STOP_AT.some((stopAt) => line.trim().includes(stopAt))) { - fullStop(); - break; - } - yield line; - } -} - -const PREFIXES_TO_SKIP = [""]; -export async function* skipPrefixes(lines: LineStream): LineStream { - let isFirstLine = true; - for await (const line of lines) { - if (isFirstLine) { - const match = PREFIXES_TO_SKIP.find((prefix) => line.startsWith(prefix)); - if (match) { - yield line.slice(match.length); - continue; - } - isFirstLine = false; - } - yield line; - } -} - -const LINES_TO_SKIP = [""]; - -export async function* skipLines(stream: LineStream): LineStream { - for await (const line of stream) { - if (!LINES_TO_SKIP.some((skipAt) => line.startsWith(skipAt))) { - yield line; - } - } -} - -const LINES_TO_REMOVE_BEFORE_START = [ - "", - "[CODE]", - "", -]; - -function shouldRemoveLineBeforeStart(line: string): boolean { - return ( - line.trimStart().startsWith("```") || - LINES_TO_REMOVE_BEFORE_START.some((l) => line.trim() === l) - ); -} - -function shouldChangeLineAndStop(line: string): string | undefined { - if (line.trimStart() === "```") { - return line; - } - - if (line.includes("[/CODE]")) { - return line.split("[/CODE]")[0].trimEnd(); - } - - return undefined; -} - -export async function* filterCodeBlockLines(rawLines: LineStream): LineStream { - let seenValidLine = false; - - let waitingToSeeIfLineIsLast = undefined; - - for await (const line of rawLines) { - // Filter out starting ``` - if (!seenValidLine) { - if (shouldRemoveLineBeforeStart(line)) { - continue; - } - seenValidLine = true; - } - - // Filter out ending ``` - if (typeof waitingToSeeIfLineIsLast !== "undefined") { - yield waitingToSeeIfLineIsLast; - waitingToSeeIfLineIsLast = undefined; - } - - const changedEndLine = shouldChangeLineAndStop(line); - if (typeof changedEndLine === "string") { - yield changedEndLine; - return; - } - - if (line.startsWith("```")) { - waitingToSeeIfLineIsLast = line; - } else { - yield line; - } - } -} - -function isEnglishFirstLine(line: string) { - line = line.trim().toLowerCase(); - if (line.endsWith(":") && !line.trimStart().startsWith("def")) { - return true; - } - if ( - line.startsWith("here is") || - line.startsWith("here's") || - line.startsWith("sure, here") || - line.startsWith("sure thing") || - line.startsWith("sure!") || - line.startsWith("to fill") || - line.startsWith("certainly") || - line.startsWith("of course") || - line.startsWith("the code should") - ) { - return true; - } - - return false; -} - -export async function* filterEnglishLinesAtStart(lines: LineStream) { - let i = 0; - let wasEnglishFirstLine = false; - for await (const line of lines) { - if (i === 0 && line.trim() === "") { - continue; - } - if (i === 0) { - if (isEnglishFirstLine(line)) { - wasEnglishFirstLine = true; - i++; - continue; - } - } else if (i === 1 && wasEnglishFirstLine && line.trim() === "") { - i++; - continue; - } - i++; - yield line; - } -} - -function isEnglishPostExplanation(line: string): boolean { - const lower = line.toLowerCase(); - return ( - lower.startsWith("explanation:") || - lower.startsWith("here is") || - lower.startsWith("here's how") || - lower.startsWith("the above") - ); -} - -export async function* filterEnglishLinesAtEnd(lines: LineStream) { - let finishedCodeBlock = false; - for await (const line of lines) { - if (line.trim() === "```") { - finishedCodeBlock = true; - } - if (finishedCodeBlock && isEnglishPostExplanation(line)) { - break; - } - yield line; - } -} - -export async function* fixCodeLlamaFirstLineIndentation(lines: LineStream) { - let isFirstLine = true; - for await (const line of lines) { - if (isFirstLine && line.startsWith(" ")) { - yield line.slice(2); - isFirstLine = false; - } else { - yield line; - } - } -} - -function isUselessLine(line: string): boolean { - const trimmed = line.trim().toLowerCase(); - return trimmed === "" || trimmed === "```" || trimmed.startsWith("// end"); -} - -export async function* filterLeadingAndTrailingNewLineInsertion( - diffLines: AsyncGenerator, -): AsyncGenerator { - let isFirst = true; - let buffer: DiffLine[] = []; - for await (const diffLine of diffLines) { - const isBlankLineInsertion = - diffLine.type === "new" && isUselessLine(diffLine.line); - if (isFirst && isBlankLineInsertion) { - isFirst = false; - continue; - } - isFirst = false; - - if (isBlankLineInsertion) { - buffer.push(diffLine); - } else { - if (diffLine.type === "old") { - buffer = []; - } else { - while (buffer.length > 0) { - yield buffer.shift()!; - } - } - yield diffLine; - } - } -} - -export async function* stopAtRepeatingLines( - lines: LineStream, - fullStop: () => void, -): LineStream { - const repeatedLines: string[] = []; - for await (const line of lines) { - if (repeatedLines.length === 0) { - repeatedLines.push(line); - } else if (repeatedLines.length < 3) { - if (repeatedLines[repeatedLines.length - 1] === line) { - repeatedLines.push(line); - } else { - while (repeatedLines.length > 0) { - yield repeatedLines.shift()!; - } - yield line; - } - } else { - yield repeatedLines[0]; - fullStop(); - return; - } - } - - while (repeatedLines.length > 0) { - yield repeatedLines.shift()!; - } -} diff --git a/core/autocomplete/postprocessing.ts b/core/autocomplete/postprocessing.ts index 724c826f2..b6841aebc 100644 --- a/core/autocomplete/postprocessing.ts +++ b/core/autocomplete/postprocessing.ts @@ -1,6 +1,6 @@ import type { ILLM } from ".."; import { longestCommonSubsequence } from "../util/lcs"; -import { lineIsRepeated } from "./lineStream"; +import { lineIsRepeated } from "./streamTransforms/lineStream"; function rewritesLineAbove(completion: string, prefix: string): boolean { const lineAbove = prefix diff --git a/core/commands/slash/edit.ts b/core/commands/slash/edit.ts index af64b0933..a87ebea6e 100644 --- a/core/commands/slash/edit.ts +++ b/core/commands/slash/edit.ts @@ -5,7 +5,7 @@ import { fixCodeLlamaFirstLineIndentation, stopAtLines, streamWithNewLines, -} from "../../autocomplete/lineStream.js"; +} from "../../autocomplete/streamTransforms/lineStream.js"; import { streamLines } from "../../diff/util.js"; import { ContextItemWithId, ILLM, SlashCommand } from "../../index.js"; import { stripImages } from "../../llm/countTokens.js"; @@ -252,7 +252,7 @@ const EditSlashCommand: SlashCommand = { ); // if the above replace fails to find a match, the code will still be present // in the userInput. Replace it with input if available. - if (userInput.includes("\`\`\`") && (input !== "" || !input)) { + if (userInput.includes("```") && (input !== "" || !input)) { userInput = input; } diff --git a/core/util/verticalEdit.ts b/core/util/verticalEdit.ts index e018d1be4..913c38ddc 100644 --- a/core/util/verticalEdit.ts +++ b/core/util/verticalEdit.ts @@ -5,7 +5,7 @@ import { filterLeadingAndTrailingNewLineInsertion, skipLines, stopAtLines, -} from "../autocomplete/lineStream.js"; +} from "../autocomplete/streamTransforms/lineStream.js"; import { streamDiff } from "../diff/streamDiff.js"; import { streamLines } from "../diff/util.js"; import { From faffaf08c4081dca4653c3efbe8910bd4b5c6654 Mon Sep 17 00:00:00 2001 From: Nate Sesti Date: Sun, 23 Jun 2024 10:08:50 -0700 Subject: [PATCH 022/268] working implementation with single ts query --- core/autocomplete/ast.ts | 4 +- core/autocomplete/completionProvider.ts | 7 ++ core/autocomplete/constructPrompt.ts | 42 ++++--- .../services/HierarchicalContextService.ts | 116 ++++++++++++++++++ .../services/ImportDefinitionsService.ts | 8 +- core/index.d.ts | 1 + core/package-lock.json | 21 +++- core/package.json | 1 + core/util/parameters.ts | 1 + core/util/treeSitter.ts | 2 + extensions/vscode/package-lock.json | 1 + extensions/vscode/src/activation/api.ts | 4 +- extensions/vscode/src/diff/horizontal.ts | 2 +- .../function_declaration/typescript.scm | 9 ++ gui/package-lock.json | 1 + 15 files changed, 189 insertions(+), 31 deletions(-) create mode 100644 core/autocomplete/services/HierarchicalContextService.ts create mode 100644 extensions/vscode/tree-sitter/hierarchical-context-queries/function_declaration/typescript.scm diff --git a/core/autocomplete/ast.ts b/core/autocomplete/ast.ts index 933ae76c0..139b22dbf 100644 --- a/core/autocomplete/ast.ts +++ b/core/autocomplete/ast.ts @@ -2,6 +2,8 @@ import Parser from "web-tree-sitter"; import { RangeInFileWithContents } from "../commands/util.js"; import { getParserForFile } from "../util/treeSitter.js"; +export type AstPath = Parser.SyntaxNode[]; + export async function getAst( filepath: string, fileContents: string, @@ -23,7 +25,7 @@ export async function getAst( export async function getTreePathAtCursor( ast: Parser.Tree, cursorIndex: number, -): Promise { +): Promise { const path = [ast.rootNode]; while (path[path.length - 1].childCount > 0) { let foundChild = false; diff --git a/core/autocomplete/completionProvider.ts b/core/autocomplete/completionProvider.ts index 260535d4b..6a2c994a1 100644 --- a/core/autocomplete/completionProvider.ts +++ b/core/autocomplete/completionProvider.ts @@ -33,6 +33,7 @@ import { postprocessCompletion } from "./postprocessing.js"; import { AutocompleteSnippet } from "./ranking.js"; import { RecentlyEditedRange } from "./recentlyEdited.js"; import { BracketMatchingService } from "./services/BracketMatchingService.js"; +import { HierarchicalContextService } from "./services/HierarchicalContextService.js"; import { ImportDefinitionsService } from "./services/ImportDefinitionsService.js"; import { noFirstCharNewline, @@ -154,9 +155,14 @@ export class CompletionProvider { this.onError.bind(this), ); this.importDefinitionsService = new ImportDefinitionsService(this.ide); + this.hierarchicalContextService = new HierarchicalContextService( + this.importDefinitionsService, + this.ide, + ); } private importDefinitionsService: ImportDefinitionsService; + private hierarchicalContextService: HierarchicalContextService; private generatorReuseManager: GeneratorReuseManager; private autocompleteCache = AutocompleteLruCache.get(); public errorsShown: Set = new Set(); @@ -516,6 +522,7 @@ export class CompletionProvider { llm.model, extrasSnippets, this.importDefinitionsService, + this.hierarchicalContextService, ); // If prefix is manually passed diff --git a/core/autocomplete/constructPrompt.ts b/core/autocomplete/constructPrompt.ts index 7e63375bb..3c633218d 100644 --- a/core/autocomplete/constructPrompt.ts +++ b/core/autocomplete/constructPrompt.ts @@ -1,4 +1,3 @@ -import Parser from "web-tree-sitter"; import { RangeInFileWithContents } from "../commands/util.js"; import { TabAutocompleteOptions } from "../index.js"; @@ -7,7 +6,7 @@ import { pruneLinesFromBottom, pruneLinesFromTop, } from "../llm/countTokens.js"; -import { getAst, getTreePathAtCursor } from "./ast.js"; +import { AstPath, getAst, getTreePathAtCursor } from "./ast.js"; import { AutocompleteLanguageInfo, LANGUAGES, @@ -21,6 +20,7 @@ import { type AutocompleteSnippet, } from "./ranking.js"; import { RecentlyEditedRange, findMatchingRange } from "./recentlyEdited.js"; +import { HierarchicalContextService } from "./services/HierarchicalContextService.js"; import { ImportDefinitionsService } from "./services/ImportDefinitionsService.js"; export function languageForFilepath( @@ -32,7 +32,7 @@ export function languageForFilepath( const BLOCK_TYPES = ["body", "statement_block"]; function shouldCompleteMultilineAst( - treePath: Parser.SyntaxNode[], + treePath: AstPath, cursorLine: number, ): boolean { // If at the base of the file, do multiline @@ -63,7 +63,7 @@ function isMidlineCompletion(prefix: string, suffix: string): boolean { } async function shouldCompleteMultiline( - filepath: string, + treePath: AstPath | undefined, fullPrefix: string, fullSuffix: string, language: AutocompleteLanguageInfo, @@ -94,18 +94,6 @@ async function shouldCompleteMultiline( } // Use AST to determine whether to complete multiline - let treePath: Parser.SyntaxNode[] | undefined; - try { - const ast = await getAst(filepath, fullPrefix + fullSuffix); - if (!ast) { - return true; - } - - treePath = await getTreePathAtCursor(ast, fullPrefix.length); - } catch (e) { - console.error("Failed to parse AST", e); - } - let completeMultiline = false; if (treePath) { const cursorLine = fullPrefix.split("\n").length - 1; @@ -127,6 +115,7 @@ export async function constructAutocompletePrompt( modelName: string, extraSnippets: AutocompleteSnippet[], importDefinitionsService: ImportDefinitionsService, + hierarchicalContextService: HierarchicalContextService, ): Promise<{ prefix: string; suffix: string; @@ -145,6 +134,17 @@ export async function constructAutocompletePrompt( ); const suffix = pruneLinesFromBottom(fullSuffix, maxSuffixTokens, modelName); + // Calculate AST Path + let treePath: AstPath | undefined; + try { + const ast = await getAst(filepath, fullPrefix + fullSuffix); + if (ast) { + treePath = await getTreePathAtCursor(ast, fullPrefix.length); + } + } catch (e) { + console.error("Failed to parse AST", e); + } + // Find external snippets let snippets: AutocompleteSnippet[] = []; @@ -215,6 +215,14 @@ export async function constructAutocompletePrompt( snippets.push(...importSnippets); } + if (options.useHierarchicalContext && treePath) { + const ctx = await hierarchicalContextService.getContextForPath( + filepath, + treePath, + ); + snippets.push(...ctx); + } + // Filter out empty snippets and ones that are already in the prefix/suffix snippets = snippets .map((snippet) => ({ ...snippet })) @@ -269,7 +277,7 @@ export async function constructAutocompletePrompt( suffix, useFim: true, completeMultiline: await shouldCompleteMultiline( - filepath, + treePath, fullPrefix, fullSuffix, language, diff --git a/core/autocomplete/services/HierarchicalContextService.ts b/core/autocomplete/services/HierarchicalContextService.ts new file mode 100644 index 000000000..5424d1b25 --- /dev/null +++ b/core/autocomplete/services/HierarchicalContextService.ts @@ -0,0 +1,116 @@ +import { createHash } from "crypto"; +import { LRUCache } from "lru-cache"; +import Parser from "web-tree-sitter"; +import { IDE } from "../.."; +import { getQueryForFile, TSQueryType } from "../../util/treeSitter"; +import { AstPath } from "../ast"; +import { AutocompleteSnippet } from "../ranking"; +import { ImportDefinitionsService } from "./ImportDefinitionsService"; + +export class HierarchicalContextService { + private cache = new LRUCache({ + max: 100, + }); + + constructor( + private readonly importDefinitionsService: ImportDefinitionsService, + private readonly ide: IDE, + ) {} + + private static getNodeId(node: Parser.SyntaxNode): string { + return `${node.startIndex}`; + } + + private static TYPES_TO_USE = new Set(["program", "function_declaration"]); + + /** + * Key comes from hash of parent key and node type and node id. + */ + private static keyFromNode( + parentKey: string, + astNode: Parser.SyntaxNode, + ): string { + return createHash("sha256") + .update(parentKey) + .update(astNode.type) + .update(HierarchicalContextService.getNodeId(astNode)) + .digest("hex"); + } + + private async getSnippetsForNode( + filepath: string, + node: Parser.SyntaxNode, + ): Promise { + const snippets: AutocompleteSnippet[] = []; + + let query: Parser.Query | undefined; + switch (node.type) { + case "program": + this.importDefinitionsService.get(filepath); + break; + case "function_declaration": + query = await getQueryForFile( + filepath, + TSQueryType.FunctionDeclaration, + ); + break; + default: + break; + } + + if (!query) { + return snippets; + } + + await Promise.all( + query.matches(node).map(async (match) => { + const startPosition = match.captures[0].node.startPosition; + const endPosition = match.captures[0].node.endPosition; + const definitions = await this.ide.gotoDefinition({ + filepath, + position: { + line: endPosition.row, + character: endPosition.column, + }, + }); + const newSnippets = await Promise.all( + definitions.map(async (def) => ({ + ...def, + contents: await this.ide.readRangeInFile(def.filepath, def.range), + })), + ); + snippets.push(...newSnippets); + }), + ); + + return snippets; + } + + async getContextForPath( + filepath: string, + astPath: AstPath, + // cursorIndex: number, + ): Promise { + const snippets: AutocompleteSnippet[] = []; + + let parentKey = filepath; + for (const astNode of astPath.filter((node) => + HierarchicalContextService.TYPES_TO_USE.has(node.type), + )) { + const key = HierarchicalContextService.keyFromNode(parentKey, astNode); + + const foundInCache = this.cache.get(key); + const newSnippets = + foundInCache ?? (await this.getSnippetsForNode(filepath, astNode)); + snippets.push(...newSnippets); + + if (!foundInCache) { + this.cache.set(key, newSnippets); + } + + parentKey = key; + } + + return snippets; + } +} diff --git a/core/autocomplete/services/ImportDefinitionsService.ts b/core/autocomplete/services/ImportDefinitionsService.ts index 19287bf81..0df08f096 100644 --- a/core/autocomplete/services/ImportDefinitionsService.ts +++ b/core/autocomplete/services/ImportDefinitionsService.ts @@ -1,11 +1,11 @@ -import { IDE } from ".."; -import { RangeInFileWithContents } from "../commands/util"; -import { PrecalculatedLruCache } from "../util/LruCache"; +import { IDE } from "../.."; +import { RangeInFileWithContents } from "../../commands/util"; +import { PrecalculatedLruCache } from "../../util/LruCache"; import { TSQueryType, getParserForFile, getQueryForFile, -} from "../util/treeSitter"; +} from "../../util/treeSitter"; interface FileInfo { imports: { [key: string]: RangeInFileWithContents[] }; diff --git a/core/index.d.ts b/core/index.d.ts index 658f5c980..ef12570d5 100644 --- a/core/index.d.ts +++ b/core/index.d.ts @@ -768,6 +768,7 @@ export interface TabAutocompleteOptions { recentLinePrefixMatchMinLength: number; disableInFiles?: string[]; useImports?: boolean; + useHierarchicalContext?: boolean; } export interface ContinueUIConfig { diff --git a/core/package-lock.json b/core/package-lock.json index e4587f56b..5b9ca2b15 100644 --- a/core/package-lock.json +++ b/core/package-lock.json @@ -37,6 +37,7 @@ "jsdom": "^24.0.0", "launchdarkly-node-client-sdk": "^3.2.0", "llm-code-highlighter": "^0.0.14", + "lru-cache": "^10.2.2", "mac-ca": "^3.1.0", "node-fetch": "^3.3.2", "node-html-markdown": "^1.3.0", @@ -2027,6 +2028,15 @@ "node": ">=6.9.0" } }, + "node_modules/@babel/helper-compilation-targets/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, + "dependencies": { + "yallist": "^3.0.2" + } + }, "node_modules/@babel/helper-compilation-targets/node_modules/semver": { "version": "6.3.1", "resolved": "https://registry.npmjs.org/semver/-/semver-6.3.1.tgz", @@ -10826,12 +10836,11 @@ "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, - "dependencies": { - "yallist": "^3.0.2" + "version": "10.2.2", + "resolved": "https://registry.npmjs.org/lru-cache/-/lru-cache-10.2.2.tgz", + "integrity": "sha512-9hp3Vp2/hFQUiIwKo8XCeFVnrg8Pk3TYNPIR7tJADKi5YfcF7vEaK7avFHTlSy3kOKYaJQaalfEo6YuXdceBOQ==", + "engines": { + "node": "14 || >=16.14" } }, "node_modules/mac-ca": { diff --git a/core/package.json b/core/package.json index fd34477ef..b52c8818d 100644 --- a/core/package.json +++ b/core/package.json @@ -57,6 +57,7 @@ "jsdom": "^24.0.0", "launchdarkly-node-client-sdk": "^3.2.0", "llm-code-highlighter": "^0.0.14", + "lru-cache": "^10.2.2", "mac-ca": "^3.1.0", "node-fetch": "^3.3.2", "node-html-markdown": "^1.3.0", diff --git a/core/util/parameters.ts b/core/util/parameters.ts index 8909af6f4..f64750255 100644 --- a/core/util/parameters.ts +++ b/core/util/parameters.ts @@ -20,6 +20,7 @@ export const DEFAULT_AUTOCOMPLETE_OPTS: TabAutocompleteOptions = { recentLinePrefixMatchMinLength: 7, disableInFiles: undefined, useImports: true, + useHierarchicalContext: true, }; export const COUNT_COMPLETION_REJECTED_AFTER = 10_000; diff --git a/core/util/treeSitter.ts b/core/util/treeSitter.ts index 95a7a10ce..904f87e39 100644 --- a/core/util/treeSitter.ts +++ b/core/util/treeSitter.ts @@ -120,6 +120,8 @@ export async function getLanguageForFile( export enum TSQueryType { CodeSnippets = "code-snippet-queries", Imports = "import-queries", + // Used in HierarchicalContextService.ts + FunctionDeclaration = "hierarchical-context-queries/function_declaration", } export async function getQueryForFile( diff --git a/extensions/vscode/package-lock.json b/extensions/vscode/package-lock.json index 6d0e21452..65b5fd37b 100644 --- a/extensions/vscode/package-lock.json +++ b/extensions/vscode/package-lock.json @@ -121,6 +121,7 @@ "jsdom": "^24.0.0", "launchdarkly-node-client-sdk": "^3.2.0", "llm-code-highlighter": "^0.0.14", + "lru-cache": "^10.2.2", "mac-ca": "^3.1.0", "node-fetch": "^3.3.2", "node-html-markdown": "^1.3.0", diff --git a/extensions/vscode/src/activation/api.ts b/extensions/vscode/src/activation/api.ts index 03a814ae9..bc5f261e0 100644 --- a/extensions/vscode/src/activation/api.ts +++ b/extensions/vscode/src/activation/api.ts @@ -1,5 +1,5 @@ -import { VsCodeExtension } from "../extension/vscodeExtension"; import { IContextProvider } from "core"; +import { VsCodeExtension } from "../extension/vscodeExtension"; export class VsCodeContinueApi { constructor(private readonly vscodeExtension: VsCodeExtension) {} @@ -7,4 +7,4 @@ export class VsCodeContinueApi { registerCustomContextProvider(contextProvider: IContextProvider) { this.vscodeExtension.registerCustomContextProvider(contextProvider); } -} \ No newline at end of file +} diff --git a/extensions/vscode/src/diff/horizontal.ts b/extensions/vscode/src/diff/horizontal.ts index 870022457..da922cd50 100644 --- a/extensions/vscode/src/diff/horizontal.ts +++ b/extensions/vscode/src/diff/horizontal.ts @@ -1,7 +1,7 @@ +import { devDataPath } from "core/util/paths"; import * as fs from "node:fs"; import * as os from "node:os"; import * as path from "node:path"; -import { devDataPath } from "core/util/paths"; import * as vscode from "vscode"; import { getMetaKeyLabel, getPlatform } from "../util/util"; import { uriFromFilePath } from "../util/vscode"; diff --git a/extensions/vscode/tree-sitter/hierarchical-context-queries/function_declaration/typescript.scm b/extensions/vscode/tree-sitter/hierarchical-context-queries/function_declaration/typescript.scm new file mode 100644 index 000000000..75cac3c55 --- /dev/null +++ b/extensions/vscode/tree-sitter/hierarchical-context-queries/function_declaration/typescript.scm @@ -0,0 +1,9 @@ +( + (function_declaration + (formal_parameters + (_ + (type_annotation) @a + ) + ) + ) +) \ No newline at end of file diff --git a/gui/package-lock.json b/gui/package-lock.json index d652bc561..e9952da27 100644 --- a/gui/package-lock.json +++ b/gui/package-lock.json @@ -114,6 +114,7 @@ "jsdom": "^24.0.0", "launchdarkly-node-client-sdk": "^3.2.0", "llm-code-highlighter": "^0.0.14", + "lru-cache": "^10.2.2", "mac-ca": "^3.1.0", "node-fetch": "^3.3.2", "node-html-markdown": "^1.3.0", From 196992c6bd50bab1ee2f0e38b2a6888f64a04041 Mon Sep 17 00:00:00 2001 From: Nate Sesti Date: Sun, 23 Jun 2024 10:22:04 -0700 Subject: [PATCH 023/268] method_definition --- core/autocomplete/services/HierarchicalContextService.ts | 9 ++++++++- core/util/treeSitter.ts | 1 + .../function_declaration/typescript.scm | 2 +- .../method_definition/typescript.scm | 9 +++++++++ 4 files changed, 19 insertions(+), 2 deletions(-) create mode 100644 extensions/vscode/tree-sitter/hierarchical-context-queries/method_definition/typescript.scm diff --git a/core/autocomplete/services/HierarchicalContextService.ts b/core/autocomplete/services/HierarchicalContextService.ts index 5424d1b25..c14ec9aca 100644 --- a/core/autocomplete/services/HierarchicalContextService.ts +++ b/core/autocomplete/services/HierarchicalContextService.ts @@ -21,7 +21,11 @@ export class HierarchicalContextService { return `${node.startIndex}`; } - private static TYPES_TO_USE = new Set(["program", "function_declaration"]); + private static TYPES_TO_USE = new Set([ + "program", + "function_declaration", + "method_definition", + ]); /** * Key comes from hash of parent key and node type and node id. @@ -54,6 +58,9 @@ export class HierarchicalContextService { TSQueryType.FunctionDeclaration, ); break; + case "method_definition": + query = await getQueryForFile(filepath, TSQueryType.MethodDefinition); + break; default: break; } diff --git a/core/util/treeSitter.ts b/core/util/treeSitter.ts index 904f87e39..8b87a3713 100644 --- a/core/util/treeSitter.ts +++ b/core/util/treeSitter.ts @@ -122,6 +122,7 @@ export enum TSQueryType { Imports = "import-queries", // Used in HierarchicalContextService.ts FunctionDeclaration = "hierarchical-context-queries/function_declaration", + MethodDefinition = "hierarchical-context-queries/method_definition", } export async function getQueryForFile( diff --git a/extensions/vscode/tree-sitter/hierarchical-context-queries/function_declaration/typescript.scm b/extensions/vscode/tree-sitter/hierarchical-context-queries/function_declaration/typescript.scm index 75cac3c55..c0d936f5e 100644 --- a/extensions/vscode/tree-sitter/hierarchical-context-queries/function_declaration/typescript.scm +++ b/extensions/vscode/tree-sitter/hierarchical-context-queries/function_declaration/typescript.scm @@ -2,7 +2,7 @@ (function_declaration (formal_parameters (_ - (type_annotation) @a + (type_annotation) @type ) ) ) diff --git a/extensions/vscode/tree-sitter/hierarchical-context-queries/method_definition/typescript.scm b/extensions/vscode/tree-sitter/hierarchical-context-queries/method_definition/typescript.scm new file mode 100644 index 000000000..10ee28346 --- /dev/null +++ b/extensions/vscode/tree-sitter/hierarchical-context-queries/method_definition/typescript.scm @@ -0,0 +1,9 @@ +( + (method_definition + (formal_parameters + (_ + (type_annotation) @type + ) + ) + ) +) \ No newline at end of file From 0d70cd742095cd1a7bc184870c6418b1da7db089 Mon Sep 17 00:00:00 2001 From: Nate Sesti Date: Sat, 29 Jun 2024 20:40:01 -0700 Subject: [PATCH 024/268] hierarchical context support for more languages --- .../services/HierarchicalContextService.ts | 6 ++++++ core/util/treeSitter.ts | 2 ++ .../nested-folder/helloNested.py | 12 +++++++++++- .../function_definition/cpp.scm | 13 +++++++++++++ .../function_definition/python.scm | 17 +++++++++++++++++ .../method_declaration/java.scm | 13 +++++++++++++ .../vscode/tree-sitter/import-queries/cpp.scm | 9 +++++++++ .../vscode/tree-sitter/import-queries/java.scm | 3 +++ .../tree-sitter/import-queries/python.scm | 8 ++++++++ 9 files changed, 82 insertions(+), 1 deletion(-) create mode 100644 extensions/vscode/tree-sitter/hierarchical-context-queries/function_definition/cpp.scm create mode 100644 extensions/vscode/tree-sitter/hierarchical-context-queries/function_definition/python.scm create mode 100644 extensions/vscode/tree-sitter/hierarchical-context-queries/method_declaration/java.scm create mode 100644 extensions/vscode/tree-sitter/import-queries/cpp.scm create mode 100644 extensions/vscode/tree-sitter/import-queries/java.scm create mode 100644 extensions/vscode/tree-sitter/import-queries/python.scm diff --git a/core/autocomplete/services/HierarchicalContextService.ts b/core/autocomplete/services/HierarchicalContextService.ts index c14ec9aca..53f0ba4be 100644 --- a/core/autocomplete/services/HierarchicalContextService.ts +++ b/core/autocomplete/services/HierarchicalContextService.ts @@ -61,6 +61,12 @@ export class HierarchicalContextService { case "method_definition": query = await getQueryForFile(filepath, TSQueryType.MethodDefinition); break; + case "function_definition": + query = await getQueryForFile(filepath, TSQueryType.FunctionDefinition); + break; + case "method_declaration": + query = await getQueryForFile(filepath, TSQueryType.MethodDeclaration); + break; default: break; } diff --git a/core/util/treeSitter.ts b/core/util/treeSitter.ts index 8b87a3713..df699b208 100644 --- a/core/util/treeSitter.ts +++ b/core/util/treeSitter.ts @@ -123,6 +123,8 @@ export enum TSQueryType { // Used in HierarchicalContextService.ts FunctionDeclaration = "hierarchical-context-queries/function_declaration", MethodDefinition = "hierarchical-context-queries/method_definition", + FunctionDefinition = "hierarchical-context-queries/function_definition", + MethodDeclaration = "hierarchical-context-queries/method_declaration", } export async function getQueryForFile( diff --git a/extensions/vscode/manual-testing-sandbox/nested-folder/helloNested.py b/extensions/vscode/manual-testing-sandbox/nested-folder/helloNested.py index 1912b9ffd..b43d5d8d6 100644 --- a/extensions/vscode/manual-testing-sandbox/nested-folder/helloNested.py +++ b/extensions/vscode/manual-testing-sandbox/nested-folder/helloNested.py @@ -1,5 +1,15 @@ -def main(): +from typing import List + +Vector = List[float] + + +def main(a: Vector): print("Hello Nested!") +class MyClass: + def test(a: Vector) -> Vector: + return a + + raise Exception("This is an error") diff --git a/extensions/vscode/tree-sitter/hierarchical-context-queries/function_definition/cpp.scm b/extensions/vscode/tree-sitter/hierarchical-context-queries/function_definition/cpp.scm new file mode 100644 index 000000000..2610f5393 --- /dev/null +++ b/extensions/vscode/tree-sitter/hierarchical-context-queries/function_definition/cpp.scm @@ -0,0 +1,13 @@ +(function_definition + (function_declarator + (parameter_list + (parameter_declaration + (type_identifier) @a + ) + ) + ) +) + +(function_definition + (type_identifier) @b +) \ No newline at end of file diff --git a/extensions/vscode/tree-sitter/hierarchical-context-queries/function_definition/python.scm b/extensions/vscode/tree-sitter/hierarchical-context-queries/function_definition/python.scm new file mode 100644 index 000000000..864666a4a --- /dev/null +++ b/extensions/vscode/tree-sitter/hierarchical-context-queries/function_definition/python.scm @@ -0,0 +1,17 @@ +( + (function_definition + (parameters + (_ + (type) @a + (#not-match? @a "^(str|int|float|bool|list|dict|tuple)$") + ) + ) + ) +) + +( + (function_definition + (type) @b + (#not-match? @b "^(str|int|float|bool|list|dict|tuple)$") + ) +) \ No newline at end of file diff --git a/extensions/vscode/tree-sitter/hierarchical-context-queries/method_declaration/java.scm b/extensions/vscode/tree-sitter/hierarchical-context-queries/method_declaration/java.scm new file mode 100644 index 000000000..ff77555c7 --- /dev/null +++ b/extensions/vscode/tree-sitter/hierarchical-context-queries/method_declaration/java.scm @@ -0,0 +1,13 @@ +; Method parameters +(method_declaration + (formal_parameters + (formal_parameter + (type_identifier) @a + ) + ) +) + +; Return type +(method_declaration + (type_identifier) @b +) \ No newline at end of file diff --git a/extensions/vscode/tree-sitter/import-queries/cpp.scm b/extensions/vscode/tree-sitter/import-queries/cpp.scm new file mode 100644 index 000000000..c740cf762 --- /dev/null +++ b/extensions/vscode/tree-sitter/import-queries/cpp.scm @@ -0,0 +1,9 @@ +(using_declaration + (qualified_identifier + (identifier) @a)) + +(namespace_alias_definition + (nested_namespace_specifier) @b) + +(preproc_include + (system_lib_string) @c) \ No newline at end of file diff --git a/extensions/vscode/tree-sitter/import-queries/java.scm b/extensions/vscode/tree-sitter/import-queries/java.scm new file mode 100644 index 000000000..51920eda7 --- /dev/null +++ b/extensions/vscode/tree-sitter/import-queries/java.scm @@ -0,0 +1,3 @@ +(import_declaration + (scoped_identifier + (identifier) @import)) \ No newline at end of file diff --git a/extensions/vscode/tree-sitter/import-queries/python.scm b/extensions/vscode/tree-sitter/import-queries/python.scm new file mode 100644 index 000000000..dedaf23aa --- /dev/null +++ b/extensions/vscode/tree-sitter/import-queries/python.scm @@ -0,0 +1,8 @@ +(import_from_statement + (dotted_name) ; skip the first (this is the module) + (dotted_name + (identifier) @importa)) + +(import_statement + (dotted_name + (identifier) @importb )) \ No newline at end of file From c234cbe1077c13d45d448cd47b26d8055049b2af Mon Sep 17 00:00:00 2001 From: Nate Date: Wed, 4 Sep 2024 19:44:32 -0700 Subject: [PATCH 025/268] client changes for on prem proxy --- core/config/profile/doLoadConfig.ts | 54 ++++++++++++++----- .../rerankers/ContinueProxyReranker.ts | 21 ++++---- core/control-plane/TeamAnalytics.ts | 13 +++-- .../ContinueProxyAnalyticsProvider.ts | 17 +++--- .../analytics/IAnalyticsProvider.ts | 8 ++- .../analytics/LogStashAnalyticsProvider.ts | 7 ++- .../analytics/PostHogAnalyticsProvider.ts | 7 ++- core/control-plane/client.ts | 5 ++ .../ContinueProxyEmbeddingsProvider.ts | 24 +++------ core/llm/llms/stubs/ContinueProxy.ts | 16 ++---- gui/src/components/mainInput/TipTapEditor.tsx | 3 +- packages/config-types/package-lock.json | 4 +- packages/config-types/package.json | 2 +- packages/config-types/src/index.ts | 5 ++ 14 files changed, 115 insertions(+), 71 deletions(-) diff --git a/core/config/profile/doLoadConfig.ts b/core/config/profile/doLoadConfig.ts index 13b098f50..e19feed85 100644 --- a/core/config/profile/doLoadConfig.ts +++ b/core/config/profile/doLoadConfig.ts @@ -1,7 +1,12 @@ import { ContinueProxyReranker } from "../../context/rerankers/ContinueProxyReranker.js"; -import { ControlPlaneClient } from "../../control-plane/client.js"; +import { ControlPlaneProxyInfo } from "../../control-plane/analytics/IAnalyticsProvider.js"; +import { + ControlPlaneClient, + DEFAULT_CONTROL_PLANE_PROXY_URL, +} from "../../control-plane/client.js"; import { TeamAnalytics } from "../../control-plane/TeamAnalytics.js"; import { + ContinueConfig, ContinueRcJson, IDE, IdeSettings, @@ -33,7 +38,7 @@ export default async function doLoadConfig( const ideSettings = await ideSettingsPromise; const workOsAccessToken = await controlPlaneClient.getAccessToken(); - const newConfig = await loadFullConfigNode( + let newConfig = await loadFullConfigNode( ide, workspaceConfigs, ideSettings, @@ -56,34 +61,59 @@ export default async function doLoadConfig( // TODO: pass config to pre-load non-system TTS models await TTS.setup(); + // Set up control plane proxy if configured + let controlPlaneProxyUrl: string = + (newConfig as any).controlPlane?.proxyUrl ?? + DEFAULT_CONTROL_PLANE_PROXY_URL; + if (!controlPlaneProxyUrl.endsWith("/")) { + controlPlaneProxyUrl += "/"; + } + const controlPlaneProxyInfo = { + workspaceId, + controlPlaneProxyUrl, + workOsAccessToken, + }; + if (newConfig.analytics) { await TeamAnalytics.setup( newConfig.analytics as any, // TODO: Need to get rid of index.d.ts once and for all uniqueId, ideInfo.extensionVersion, controlPlaneClient, - workspaceId, + controlPlaneProxyInfo, ); } - [...newConfig.models, ...(newConfig.tabAutocompleteModels ?? [])].forEach( + newConfig = await injectControlPlaneProxyInfo( + newConfig, + controlPlaneProxyInfo, + ); + + return newConfig; +} + +// Pass ControlPlaneProxyInfo to objects that need it +async function injectControlPlaneProxyInfo( + config: ContinueConfig, + info: ControlPlaneProxyInfo, +): Promise { + [...config.models, ...(config.tabAutocompleteModels ?? [])].forEach( async (model) => { if (model.providerName === "continue-proxy") { - (model as ContinueProxy).workOsAccessToken = workOsAccessToken; + (model as ContinueProxy).controlPlaneProxyInfo = info; } }, ); - if (newConfig.embeddingsProvider?.providerName === "continue-proxy") { + if (config.embeddingsProvider?.providerName === "continue-proxy") { ( - newConfig.embeddingsProvider as ContinueProxyEmbeddingsProvider - ).workOsAccessToken = workOsAccessToken; + config.embeddingsProvider as ContinueProxyEmbeddingsProvider + ).controlPlaneProxyInfo = info; } - if (newConfig.reranker?.name === "continue-proxy") { - (newConfig.reranker as ContinueProxyReranker).workOsAccessToken = - workOsAccessToken; + if (config.reranker?.name === "continue-proxy") { + (config.reranker as ContinueProxyReranker).controlPlaneProxyInfo = info; } - return newConfig; + return config; } diff --git a/core/context/rerankers/ContinueProxyReranker.ts b/core/context/rerankers/ContinueProxyReranker.ts index abeff24dc..1ca10436b 100644 --- a/core/context/rerankers/ContinueProxyReranker.ts +++ b/core/context/rerankers/ContinueProxyReranker.ts @@ -1,21 +1,15 @@ import fetch from "node-fetch"; -import { CONTROL_PLANE_URL } from "../../control-plane/client.js"; +import { ControlPlaneProxyInfo } from "../../control-plane/analytics/IAnalyticsProvider.js"; import { Chunk, Reranker } from "../../index.js"; export class ContinueProxyReranker implements Reranker { name = "continue-proxy"; - private _workOsAccessToken: string | undefined = undefined; + private _controlPlaneProxyInfo?: ControlPlaneProxyInfo; - get workOsAccessToken(): string | undefined { - return this._workOsAccessToken; - } - - set workOsAccessToken(value: string | undefined) { - if (this._workOsAccessToken !== value) { - this._workOsAccessToken = value; - this.params.apiKey = value!; - } + set controlPlaneProxyInfo(value: ControlPlaneProxyInfo) { + this.params.apiKey = value.workOsAccessToken!; + this._controlPlaneProxyInfo = value; } constructor( @@ -26,7 +20,10 @@ export class ContinueProxyReranker implements Reranker { ) {} async rerank(query: string, chunks: Chunk[]): Promise { - const url = new URL("/model-proxy/v1/rerank", CONTROL_PLANE_URL); + const url = new URL( + "openai/v1/rerank", + this._controlPlaneProxyInfo?.controlPlaneProxyUrl, + ); const resp = await fetch(url, { method: "POST", headers: { diff --git a/core/control-plane/TeamAnalytics.ts b/core/control-plane/TeamAnalytics.ts index f39bc261e..e6ad9e364 100644 --- a/core/control-plane/TeamAnalytics.ts +++ b/core/control-plane/TeamAnalytics.ts @@ -1,7 +1,10 @@ import { Analytics } from "@continuedev/config-types"; import os from "node:os"; import ContinueProxyAnalyticsProvider from "./analytics/ContinueProxyAnalyticsProvider.js"; -import { IAnalyticsProvider } from "./analytics/IAnalyticsProvider.js"; +import { + ControlPlaneProxyInfo, + IAnalyticsProvider, +} from "./analytics/IAnalyticsProvider.js"; import LogStashAnalyticsProvider from "./analytics/LogStashAnalyticsProvider.js"; import PostHogAnalyticsProvider from "./analytics/PostHogAnalyticsProvider.js"; import { ControlPlaneClient } from "./client.js"; @@ -41,7 +44,7 @@ export class TeamAnalytics { uniqueId: string, extensionVersion: string, controlPlaneClient: ControlPlaneClient, - workspaceId?: string, + controlPlaneProxyInfo: ControlPlaneProxyInfo, ) { TeamAnalytics.uniqueId = uniqueId; TeamAnalytics.os = os.platform(); @@ -52,7 +55,11 @@ export class TeamAnalytics { TeamAnalytics.provider = undefined; } else { TeamAnalytics.provider = createAnalyticsProvider(config); - await TeamAnalytics.provider?.setup(config, uniqueId, workspaceId); + await TeamAnalytics.provider?.setup( + config, + uniqueId, + controlPlaneProxyInfo, + ); if (config.provider === "continue-proxy") { ( diff --git a/core/control-plane/analytics/ContinueProxyAnalyticsProvider.ts b/core/control-plane/analytics/ContinueProxyAnalyticsProvider.ts index de9d9efbe..284a3ce3e 100644 --- a/core/control-plane/analytics/ContinueProxyAnalyticsProvider.ts +++ b/core/control-plane/analytics/ContinueProxyAnalyticsProvider.ts @@ -1,13 +1,16 @@ import { Analytics } from "@continuedev/config-types"; import fetch from "node-fetch"; -import { CONTROL_PLANE_URL, ControlPlaneClient } from "../client.js"; -import { IAnalyticsProvider } from "./IAnalyticsProvider.js"; +import { ControlPlaneClient } from "../client.js"; +import { + ControlPlaneProxyInfo, + IAnalyticsProvider, +} from "./IAnalyticsProvider.js"; export default class ContinueProxyAnalyticsProvider implements IAnalyticsProvider { uniqueId?: string; - workspaceId?: string; + controlPlaneProxyInfo?: ControlPlaneProxyInfo; controlPlaneClient?: ControlPlaneClient; @@ -16,8 +19,8 @@ export default class ContinueProxyAnalyticsProvider properties: { [key: string]: any }, ): Promise { const url = new URL( - `proxy/analytics/${this.workspaceId}/capture`, - CONTROL_PLANE_URL, + `proxy/analytics/${this.controlPlaneProxyInfo?.workspaceId}/capture`, + this.controlPlaneProxyInfo?.controlPlaneProxyUrl, ).toString(); fetch(url, { method: "POST", @@ -35,10 +38,10 @@ export default class ContinueProxyAnalyticsProvider async setup( config: Analytics, uniqueId: string, - workspaceId?: string, + controlPlaneProxyInfo?: ControlPlaneProxyInfo, ): Promise { this.uniqueId = uniqueId; - this.workspaceId = workspaceId; + this.controlPlaneProxyInfo = controlPlaneProxyInfo; } async shutdown(): Promise {} diff --git a/core/control-plane/analytics/IAnalyticsProvider.ts b/core/control-plane/analytics/IAnalyticsProvider.ts index 1bb2a727c..c069695d0 100644 --- a/core/control-plane/analytics/IAnalyticsProvider.ts +++ b/core/control-plane/analytics/IAnalyticsProvider.ts @@ -4,12 +4,18 @@ export interface AnalyticsMetadata { extensionVersion: string; } +export interface ControlPlaneProxyInfo { + workspaceId?: string; + controlPlaneProxyUrl: string; + workOsAccessToken?: string; +} + export interface IAnalyticsProvider { capture(event: string, properties: { [key: string]: any }): Promise; setup( config: Analytics, uniqueId: string, - workspaceId?: string, + controlPlaneProxyInfo?: ControlPlaneProxyInfo, ): Promise; shutdown(): Promise; } diff --git a/core/control-plane/analytics/LogStashAnalyticsProvider.ts b/core/control-plane/analytics/LogStashAnalyticsProvider.ts index ccf445474..3a94bd9d6 100644 --- a/core/control-plane/analytics/LogStashAnalyticsProvider.ts +++ b/core/control-plane/analytics/LogStashAnalyticsProvider.ts @@ -1,6 +1,9 @@ import { Analytics } from "@continuedev/config-types"; import net from "node:net"; -import { IAnalyticsProvider } from "./IAnalyticsProvider.js"; +import { + ControlPlaneProxyInfo, + IAnalyticsProvider, +} from "./IAnalyticsProvider.js"; export default class LogStashAnalyticsProvider implements IAnalyticsProvider { private host?: string; @@ -31,7 +34,7 @@ export default class LogStashAnalyticsProvider implements IAnalyticsProvider { async setup( config: Analytics, uniqueId: string, - workspaceId?: string, + controlPlaneProxyInfo?: ControlPlaneProxyInfo, ): Promise { if (!config.url) { console.warn("LogStashAnalyticsProvider is missing a URL"); diff --git a/core/control-plane/analytics/PostHogAnalyticsProvider.ts b/core/control-plane/analytics/PostHogAnalyticsProvider.ts index ecb4e071a..db8ac1065 100644 --- a/core/control-plane/analytics/PostHogAnalyticsProvider.ts +++ b/core/control-plane/analytics/PostHogAnalyticsProvider.ts @@ -1,5 +1,8 @@ import { Analytics } from "@continuedev/config-types"; -import { IAnalyticsProvider } from "./IAnalyticsProvider.js"; +import { + ControlPlaneProxyInfo, + IAnalyticsProvider, +} from "./IAnalyticsProvider.js"; export default class PostHogAnalyticsProvider implements IAnalyticsProvider { client?: any; @@ -19,7 +22,7 @@ export default class PostHogAnalyticsProvider implements IAnalyticsProvider { async setup( config: Analytics, uniqueId: string, - workspaceId?: string, + controlPlaneProxyInfo?: ControlPlaneProxyInfo, ): Promise { if (!config || !config.clientKey || !config.url) { this.client = undefined; diff --git a/core/control-plane/client.ts b/core/control-plane/client.ts index d34ac5ff8..80b67bac6 100644 --- a/core/control-plane/client.ts +++ b/core/control-plane/client.ts @@ -18,6 +18,11 @@ export interface ControlPlaneWorkspace { export interface ControlPlaneModelDescription extends ModelDescription {} +export const DEFAULT_CONTROL_PLANE_PROXY_URL = + process.env.CONTROL_PLANE_ENV === "local" + ? "http://localhost:3002/" + : "https://control-plane-proxy.continue.dev/"; + export const CONTROL_PLANE_URL = process.env.CONTROL_PLANE_ENV === "local" ? "http://localhost:3001/" diff --git a/core/indexing/embeddings/ContinueProxyEmbeddingsProvider.ts b/core/indexing/embeddings/ContinueProxyEmbeddingsProvider.ts index c02685af7..811a4fb0f 100644 --- a/core/indexing/embeddings/ContinueProxyEmbeddingsProvider.ts +++ b/core/indexing/embeddings/ContinueProxyEmbeddingsProvider.ts @@ -1,24 +1,16 @@ -import { CONTROL_PLANE_URL } from "../../control-plane/client.js"; -import { EmbeddingsProviderName, EmbedOptions } from "../../index.js"; +import { ControlPlaneProxyInfo } from "../../control-plane/analytics/IAnalyticsProvider.js"; +import { EmbeddingsProviderName } from "../../index.js"; import OpenAIEmbeddingsProvider from "./OpenAIEmbeddingsProvider.js"; class ContinueProxyEmbeddingsProvider extends OpenAIEmbeddingsProvider { static providerName: EmbeddingsProviderName = "continue-proxy"; - static defaultOptions: Partial | undefined = { - apiBase: new URL("/model-proxy/v1", CONTROL_PLANE_URL).toString(), - }; - private _workOsAccessToken: string | undefined = undefined; - - get workOsAccessToken(): string | undefined { - return this._workOsAccessToken; - } - - set workOsAccessToken(value: string | undefined) { - if (this._workOsAccessToken !== value) { - this._workOsAccessToken = value; - this.options.apiKey = value; - } + set controlPlaneProxyInfo(value: ControlPlaneProxyInfo) { + this.options.apiKey = value.workOsAccessToken; + this.options.apiBase = new URL( + "openai/v1", + value.controlPlaneProxyUrl, + ).toString(); } } diff --git a/core/llm/llms/stubs/ContinueProxy.ts b/core/llm/llms/stubs/ContinueProxy.ts index 63712c993..2713e894b 100644 --- a/core/llm/llms/stubs/ContinueProxy.ts +++ b/core/llm/llms/stubs/ContinueProxy.ts @@ -1,23 +1,15 @@ -import { CONTROL_PLANE_URL } from "../../../control-plane/client.js"; +import { ControlPlaneProxyInfo } from "../../../control-plane/analytics/IAnalyticsProvider.js"; import type { LLMOptions, ModelProvider } from "../../../index.js"; import OpenAI from "../OpenAI.js"; class ContinueProxy extends OpenAI { - private _workOsAccessToken: string | undefined = undefined; - - get workOsAccessToken(): string | undefined { - return this._workOsAccessToken; + set controlPlaneProxyInfo(value: ControlPlaneProxyInfo) { + this.apiKey = value.workOsAccessToken; + this.apiBase = new URL("openai/v1", value.controlPlaneProxyUrl).toString(); } - set workOsAccessToken(value: string | undefined) { - if (this._workOsAccessToken !== value) { - this._workOsAccessToken = value; - this.apiKey = value; - } - } static providerName: ModelProvider = "continue-proxy"; static defaultOptions: Partial = { - apiBase: new URL("/model-proxy/v1", CONTROL_PLANE_URL).toString(), useLegacyCompletionsEndpoint: false, }; diff --git a/gui/src/components/mainInput/TipTapEditor.tsx b/gui/src/components/mainInput/TipTapEditor.tsx index 4cb6fb1fa..cd372cb57 100644 --- a/gui/src/components/mainInput/TipTapEditor.tsx +++ b/gui/src/components/mainInput/TipTapEditor.tsx @@ -43,6 +43,7 @@ import { import { RootState } from "../../redux/store"; import { getFontSize, + getMetaKeyLabel, isJetBrains, isMetaEquivalentKeyPressed, isWebEnvironment, @@ -302,7 +303,7 @@ function TipTapEditor(props: TipTapEditorProps) { placeholder: () => historyLengthRef.current === 0 ? "Ask anything, '/' for slash commands, '@' to add context" - : "Ask a follow-up", + : `Ask a follow-up (${getMetaKeyLabel()}⇧L)`, }), Paragraph.extend({ addKeyboardShortcuts() { diff --git a/packages/config-types/package-lock.json b/packages/config-types/package-lock.json index 814551554..b5bec468b 100644 --- a/packages/config-types/package-lock.json +++ b/packages/config-types/package-lock.json @@ -1,12 +1,12 @@ { "name": "@continuedev/config-types", - "version": "1.0.4", + "version": "1.0.12", "lockfileVersion": 3, "requires": true, "packages": { "": { "name": "@continuedev/config-types", - "version": "1.0.4", + "version": "1.0.12", "license": "Apache-2.0", "dependencies": { "zod": "^3.23.8" diff --git a/packages/config-types/package.json b/packages/config-types/package.json index 3c715cc2b..93c7c7ef9 100644 --- a/packages/config-types/package.json +++ b/packages/config-types/package.json @@ -1,6 +1,6 @@ { "name": "@continuedev/config-types", - "version": "1.0.11", + "version": "1.0.12", "description": "", "main": "dist/index.js", "types": "dist/index.d.ts", diff --git a/packages/config-types/src/index.ts b/packages/config-types/src/index.ts index 52ac10dad..822312969 100644 --- a/packages/config-types/src/index.ts +++ b/packages/config-types/src/index.ts @@ -206,6 +206,10 @@ export const siteIndexingConfigSchema = z.object({ faviconUrl: z.string().optional(), }); +export const controlPlaneConfigSchema = z.object({ + proxyUrl: z.string().optional(), +}); + export const configJsonSchema = z.object({ models: z.array(modelDescriptionSchema), tabAutocompleteModel: modelDescriptionSchema.optional(), @@ -224,5 +228,6 @@ export const configJsonSchema = z.object({ tabAutocompleteOptions: tabAutocompleteOptionsSchema.optional(), ui: uiOptionsSchema.optional(), docs: z.array(siteIndexingConfigSchema).optional(), + controlPlane: controlPlaneConfigSchema.optional(), }); export type ConfigJson = z.infer; From c6cc076c19c1b21d71413fd5a334a7c98ff6e909 Mon Sep 17 00:00:00 2001 From: Nate Date: Thu, 5 Sep 2024 09:29:08 -0700 Subject: [PATCH 026/268] more client updates --- .vscode/launch.json | 2 +- core/control-plane/client.ts | 2 +- core/llm/llms/Bedrock.ts | 2 +- core/llm/llms/stubs/ContinueProxy.ts | 2 +- docs/static/schemas/config.json | 47 +++++++++++++++++++-- extensions/vscode/continue_rc_schema.json | 51 +++++++++++++++++++++-- 6 files changed, 96 insertions(+), 10 deletions(-) diff --git a/.vscode/launch.json b/.vscode/launch.json index 896793040..835c09089 100644 --- a/.vscode/launch.json +++ b/.vscode/launch.json @@ -20,7 +20,7 @@ "outFiles": ["${workspaceFolder}/extensions/vscode/out/extension.js"], "preLaunchTask": "vscode-extension:build", "env": { - // "CONTROL_PLANE_ENV": "local" + "CONTROL_PLANE_ENV": "local" } }, { diff --git a/core/control-plane/client.ts b/core/control-plane/client.ts index 80b67bac6..f54b550b2 100644 --- a/core/control-plane/client.ts +++ b/core/control-plane/client.ts @@ -20,7 +20,7 @@ export interface ControlPlaneModelDescription extends ModelDescription {} export const DEFAULT_CONTROL_PLANE_PROXY_URL = process.env.CONTROL_PLANE_ENV === "local" - ? "http://localhost:3002/" + ? "http://localhost:3001/proxy" : "https://control-plane-proxy.continue.dev/"; export const CONTROL_PLANE_URL = diff --git a/core/llm/llms/Bedrock.ts b/core/llm/llms/Bedrock.ts index 415ec0f10..c96330855 100644 --- a/core/llm/llms/Bedrock.ts +++ b/core/llm/llms/Bedrock.ts @@ -18,7 +18,7 @@ class Bedrock extends BaseLLM { static defaultOptions: Partial = { region: "us-east-1", model: "anthropic.claude-3-sonnet-20240229-v1:0", - contextLength: 200_000 + contextLength: 200_000, }; profile?: string | undefined; diff --git a/core/llm/llms/stubs/ContinueProxy.ts b/core/llm/llms/stubs/ContinueProxy.ts index 2713e894b..e91e92e06 100644 --- a/core/llm/llms/stubs/ContinueProxy.ts +++ b/core/llm/llms/stubs/ContinueProxy.ts @@ -5,7 +5,7 @@ import OpenAI from "../OpenAI.js"; class ContinueProxy extends OpenAI { set controlPlaneProxyInfo(value: ControlPlaneProxyInfo) { this.apiKey = value.workOsAccessToken; - this.apiBase = new URL("openai/v1", value.controlPlaneProxyUrl).toString(); + this.apiBase = new URL("openai/v1/", value.controlPlaneProxyUrl).toString(); } static providerName: ModelProvider = "continue-proxy"; diff --git a/docs/static/schemas/config.json b/docs/static/schemas/config.json index 7166520e1..108714449 100644 --- a/docs/static/schemas/config.json +++ b/docs/static/schemas/config.json @@ -200,8 +200,8 @@ "### Free Trial\nNew users can try out Continue for free using a proxy server that securely makes calls to OpenAI using our API key. If you are ready to use your own API key or have used all 250 free uses, you can enter your API key in config.json where it says `apiKey=\"\"` or select another model provider.\n> [Reference](https://docs.continue.dev/reference/Model%20Providers/freetrial)", "### Anthropic\nTo get started with Anthropic models, you first need to sign up for the open beta [here](https://claude.ai/login) to obtain an API key.\n> [Reference](https://docs.continue.dev/reference/Model%20Providers/anthropicllm)", "### Cohere\nTo use Cohere, visit the [Cohere dashboard](https://dashboard.cohere.com/api-keys) to create an API key.\n\n> [Reference](https://docs.continue.dev/reference/Model%20Providers/cohere)", - "### Bedrock\nTo get started with Bedrock you need to sign up on AWS [here](https://aws.amazon.com/bedrock/claude/)", - "### Bedrock Imported Models\nTo get started with Bedrock you need to sign up on AWS [here](https://aws.amazon.com/bedrock/claude/)", + "### Bedrock\nTo get started with Bedrock you need to sign up on AWS [here](https://aws.amazon.com/bedrock)", + "### Bedrock Imported Models\nTo get started with Bedrock you need to sign up on AWS [here](https://aws.amazon.com/bedrock)", "### Sagemaker\nSagemaker is AWS' machine learning platform.", "### Together\nTogether is a hosted service that provides extremely fast streaming of open-source language models. To get started with Together:\n1. Obtain an API key from [here](https://together.ai)\n2. Paste below\n3. Select a model preset\n> [Reference](https://docs.continue.dev/reference/Model%20Providers/togetherllm)", "### Ollama\nTo get started with Ollama, follow these steps:\n1. Download from [ollama.ai](https://ollama.ai/) and open the application\n2. Open a terminal and run `ollama run `. Example model names are `codellama:7b-instruct` or `llama2:7b-text`. You can find the full list [here](https://ollama.ai/library).\n3. Make sure that the model name used in step 2 is the same as the one in config.json (e.g. `model=\"codellama:7b-instruct\"`)\n4. Once the model has finished downloading, you can start asking questions through Continue.\n> [Reference](https://docs.continue.dev/reference/Model%20Providers/ollama)", @@ -242,6 +242,21 @@ "description": "The base URL of the LLM API.", "type": "string" }, + "region": { + "title": "Region", + "description": "The region where the model is hosted", + "type": "string" + }, + "profile": { + "title": "Profile", + "description": "The AWS security profile to use", + "type": "string" + }, + "modelArn": { + "title": "Profile", + "description": "The AWS arn for the imported model", + "type": "string" + }, "contextLength": { "title": "Context Length", "description": "The maximum context length of the LLM in tokens, as counted by countTokens.", @@ -393,6 +408,21 @@ "required": ["apiKey"] } }, + { + "if": { + "properties": { + "provider": { + "enum": [ + "bedrockimport" + ] + } + }, + "required": ["provider"] + }, + "then": { + "required": ["modelArn"] + } + }, { "if": { "properties": { @@ -2030,7 +2060,8 @@ "cohere", "free-trial", "gemini", - "voyage" + "voyage", + "bedrock" ] }, "model": { @@ -2053,6 +2084,16 @@ "type": "integer", "minimum": 128, "exclusiveMaximum": 2147483647 + }, + "region": { + "title": "Region", + "description": "The region where the model is hosted", + "type": "string" + }, + "profile": { + "title": "Profile", + "description": "The AWS security profile to use", + "type": "string" } }, "required": ["provider"], diff --git a/extensions/vscode/continue_rc_schema.json b/extensions/vscode/continue_rc_schema.json index 70c584b9e..03d2b147b 100644 --- a/extensions/vscode/continue_rc_schema.json +++ b/extensions/vscode/continue_rc_schema.json @@ -203,8 +203,8 @@ "### Free Trial\nNew users can try out Continue for free using a proxy server that securely makes calls to OpenAI using our API key. If you are ready to use your own API key or have used all 250 free uses, you can enter your API key in config.json where it says `apiKey=\"\"` or select another model provider.\n> [Reference](https://docs.continue.dev/reference/Model%20Providers/freetrial)", "### Anthropic\nTo get started with Anthropic models, you first need to sign up for the open beta [here](https://claude.ai/login) to obtain an API key.\n> [Reference](https://docs.continue.dev/reference/Model%20Providers/anthropicllm)", "### Cohere\nTo use Cohere, visit the [Cohere dashboard](https://dashboard.cohere.com/api-keys) to create an API key.\n\n> [Reference](https://docs.continue.dev/reference/Model%20Providers/cohere)", - "### Bedrock\nTo get started with Bedrock you need to sign up on AWS [here](https://aws.amazon.com/bedrock/claude/)", - "### Bedrock Imported Models\nTo get started with Bedrock you need to sign up on AWS [here](https://aws.amazon.com/bedrock/claude/)", + "### Bedrock\nTo get started with Bedrock you need to sign up on AWS [here](https://aws.amazon.com/bedrock)", + "### Bedrock Imported Models\nTo get started with Bedrock you need to sign up on AWS [here](https://aws.amazon.com/bedrock)", "### Sagemaker\nSagemaker is AWS' machine learning platform.", "### Together\nTogether is a hosted service that provides extremely fast streaming of open-source language models. To get started with Together:\n1. Obtain an API key from [here](https://together.ai)\n2. Paste below\n3. Select a model preset\n> [Reference](https://docs.continue.dev/reference/Model%20Providers/togetherllm)", "### Ollama\nTo get started with Ollama, follow these steps:\n1. Download from [ollama.ai](https://ollama.ai/) and open the application\n2. Open a terminal and run `ollama run `. Example model names are `codellama:7b-instruct` or `llama2:7b-text`. You can find the full list [here](https://ollama.ai/library).\n3. Make sure that the model name used in step 2 is the same as the one in config.json (e.g. `model=\"codellama:7b-instruct\"`)\n4. Once the model has finished downloading, you can start asking questions through Continue.\n> [Reference](https://docs.continue.dev/reference/Model%20Providers/ollama)", @@ -245,6 +245,21 @@ "description": "The base URL of the LLM API.", "type": "string" }, + "region": { + "title": "Region", + "description": "The region where the model is hosted", + "type": "string" + }, + "profile": { + "title": "Profile", + "description": "The AWS security profile to use", + "type": "string" + }, + "modelArn": { + "title": "Profile", + "description": "The AWS arn for the imported model", + "type": "string" + }, "contextLength": { "title": "Context Length", "description": "The maximum context length of the LLM in tokens, as counted by countTokens.", @@ -409,6 +424,25 @@ ] } }, + { + "if": { + "properties": { + "provider": { + "enum": [ + "bedrockimport" + ] + } + }, + "required": [ + "provider" + ] + }, + "then": { + "required": [ + "modelArn" + ] + } + }, { "if": { "properties": { @@ -2257,7 +2291,8 @@ "cohere", "free-trial", "gemini", - "voyage" + "voyage", + "bedrock" ] }, "model": { @@ -2280,6 +2315,16 @@ "type": "integer", "minimum": 128, "exclusiveMaximum": 2147483647 + }, + "region": { + "title": "Region", + "description": "The region where the model is hosted", + "type": "string" + }, + "profile": { + "title": "Profile", + "description": "The AWS security profile to use", + "type": "string" } }, "required": [ From 64e50ec1fa050e2ac0568c6f04eae7010a03bd9b Mon Sep 17 00:00:00 2001 From: Nate Date: Wed, 11 Sep 2024 10:08:20 -0700 Subject: [PATCH 027/268] use lazy edit in apply --- core/autocomplete/lineStream.ts | 16 +- core/core.ts | 2 +- core/diff/util.ts | 34 ++-- core/edit/lazy/prompts.ts | 51 +++++ core/edit/lazy/streamLazyApply.ts | 184 ++++++++++++++++++ .../streamDiffLines.ts} | 2 +- .../src/diff/verticalPerLine/manager.ts | 71 ++++++- .../vscode/src/extension/VsCodeMessenger.ts | 39 ++-- 8 files changed, 364 insertions(+), 35 deletions(-) create mode 100644 core/edit/lazy/prompts.ts create mode 100644 core/edit/lazy/streamLazyApply.ts rename core/{util/verticalEdit.ts => edit/streamDiffLines.ts} (98%) diff --git a/core/autocomplete/lineStream.ts b/core/autocomplete/lineStream.ts index e7d3493bd..56d0fb12d 100644 --- a/core/autocomplete/lineStream.ts +++ b/core/autocomplete/lineStream.ts @@ -1,6 +1,6 @@ import { distance } from "fastest-levenshtein"; -import { LineStream } from "../diff/util"; import { DiffLine } from "../"; +import { LineStream } from "../diff/util"; export type LineFilter = (args: { lines: LineStream; @@ -238,9 +238,10 @@ export async function* stopAtSimilarLine( export async function* stopAtLines( stream: LineStream, fullStop: () => void, + linesToStopAt: string[] = LINES_TO_STOP_AT, ): LineStream { for await (const line of stream) { - if (LINES_TO_STOP_AT.some((stopAt) => line.trim().includes(stopAt))) { + if (linesToStopAt.some((stopAt) => line.trim().includes(stopAt))) { fullStop(); break; } @@ -382,6 +383,17 @@ export async function* filterEnglishLinesAtEnd(lines: LineStream) { } } +export async function* filterLeadingNewline(lines: LineStream): LineStream { + let firstLine = true; + for await (const line of lines) { + if (firstLine && line.trim() === "") { + firstLine = false; + continue; + } + yield line; + } +} + /** * Removes leading indentation from the first line of a CodeLlama output. * @param {LineStream} lines - The input stream of lines. diff --git a/core/core.ts b/core/core.ts index ad72a44ce..55502b317 100644 --- a/core/core.ts +++ b/core/core.ts @@ -14,6 +14,7 @@ import { recentlyEditedFilesCache } from "./context/retrieval/recentlyEditedFile import { ContinueServerClient } from "./continueServer/stubs/client"; import { getAuthUrlForTokenPage } from "./control-plane/auth/index"; import { ControlPlaneClient } from "./control-plane/client"; +import { streamDiffLines } from "./edit/streamDiffLines"; import { CodebaseIndexer, PauseToken } from "./indexing/CodebaseIndexer"; import DocsService from "./indexing/docs/DocsService"; import Ollama from "./llm/llms/Ollama"; @@ -27,7 +28,6 @@ import type { IMessenger, Message } from "./util/messenger"; import { editConfigJson } from "./util/paths"; import { Telemetry } from "./util/posthog"; import { TTS } from "./util/tts"; -import { streamDiffLines } from "./util/verticalEdit"; export class Core { // implements IMessenger diff --git a/core/diff/util.ts b/core/diff/util.ts index 0e24ee373..685a29a43 100644 --- a/core/diff/util.ts +++ b/core/diff/util.ts @@ -93,19 +93,31 @@ export function matchLine( */ export async function* streamLines( streamCompletion: AsyncGenerator, + log: boolean = false, ): LineStream { + let allLines = []; + let buffer = ""; - for await (const update of streamCompletion) { - const chunk = - typeof update === "string" ? update : stripImages(update.content); - buffer += chunk; - const lines = buffer.split("\n"); - buffer = lines.pop() ?? ""; - for (const line of lines) { - yield line; + + try { + for await (const update of streamCompletion) { + const chunk = + typeof update === "string" ? update : stripImages(update.content); + buffer += chunk; + const lines = buffer.split("\n"); + buffer = lines.pop() ?? ""; + for (const line of lines) { + yield line; + allLines.push(line); + } + } + if (buffer.length > 0) { + yield buffer; + allLines.push(buffer); + } + } finally { + if (log) { + console.log("Streamed lines: ", allLines.join("\n")); } } - if (buffer.length > 0) { - yield buffer; - } } diff --git a/core/edit/lazy/prompts.ts b/core/edit/lazy/prompts.ts new file mode 100644 index 000000000..ee2c668c7 --- /dev/null +++ b/core/edit/lazy/prompts.ts @@ -0,0 +1,51 @@ +import { ChatMessage, ModelProvider } from "../.."; +import { dedent } from "../../util"; + +export const UNCHANGED_CODE = "UNCHANGED CODE"; + +type LazyApplyPrompt = ( + oldCode: string, + filename: string, + newCode: string, +) => ChatMessage[]; + +function claude35SonnetLazyApplyPrompt( + ...args: Parameters +): ReturnType { + const userContent = dedent` + ORIGINAL CODE: + \`\`\`${args[1]} + ${args[0]} + \`\`\` + + NEW CODE: + \`\`\` + ${args[2]} + \`\`\` + + Above is a code block containing the original version of a file (ORIGINAL CODE) and below it is a code snippet (NEW CODE) that was suggested as modification to the original file. + + Your task is to apply the NEW CODE to the ORIGINAL CODE and show what the entire file would look like after it is applied. Your response should be a code block containing a new version of the entire file. Whenever any part of the code is the same as before, you may simply indicate this with a comment that says "${UNCHANGED_CODE}" instead of rewriting. You may do this for imports as well if needed. Do not explain your changes either before or after the code block. + `; + + const assistantContent = dedent` + Sure! Here's the modified version of the file after applying the new code: + \`\`\`${args[1]} + `; + + return [ + { role: "user", content: userContent }, + { role: "assistant", content: assistantContent }, + ]; +} + +export function lazyApplyPromptForModel( + model: string, + provider: ModelProvider, +): LazyApplyPrompt | undefined { + if (model.includes("sonnet")) { + return claude35SonnetLazyApplyPrompt; + } + + return undefined; +} diff --git a/core/edit/lazy/streamLazyApply.ts b/core/edit/lazy/streamLazyApply.ts new file mode 100644 index 000000000..648a32868 --- /dev/null +++ b/core/edit/lazy/streamLazyApply.ts @@ -0,0 +1,184 @@ +import { + filterLeadingAndTrailingNewLineInsertion, + filterLeadingNewline, + stopAtLines, +} from "../../autocomplete/lineStream.js"; +import { streamDiff } from "../../diff/streamDiff.js"; +import { LineStream, streamLines } from "../../diff/util.js"; +import { DiffLine, ILLM } from "../../index.js"; +import { lazyApplyPromptForModel, UNCHANGED_CODE } from "./prompts.js"; + +export async function* streamLazyApply( + oldCode: string, + filename: string, + newCode: string, + llm: ILLM, +): AsyncGenerator { + const promptFactory = lazyApplyPromptForModel(llm.model, llm.providerName); + if (!promptFactory) { + throw new Error(`Lazy apply not supported for model ${llm.model}`); + } + + const promptMessages = promptFactory(oldCode, filename, newCode); + const lazyCompletion = llm.streamChat(promptMessages); + + // Do find and replace over the lazy edit response + async function replacementFunction( + oldCode: string, + linesBefore: string[], + linesAfter: string[], + ): Promise { + let r = getReplacementByMatching(oldCode, linesBefore, linesAfter); + if (r) { + return r; + } + r = await getReplacementWithLlm(oldCode, linesBefore, linesAfter, llm); + if (r) { + return r; + } + return "// NO REPLACEMENT FOUND"; + } + let lazyCompletionLines = streamLines(lazyCompletion, true); + // Process line output + // lazyCompletionLines = filterEnglishLinesAtStart(lazyCompletionLines); + lazyCompletionLines = stopAtLines(lazyCompletionLines, () => {}, ["```"]); + lazyCompletionLines = filterLeadingNewline(lazyCompletionLines); + + // Fill in unchanged code + let lines = streamFillUnchangedCode( + lazyCompletionLines, + oldCode, + replacementFunction, + ); + + // Convert output to diff + const oldLines = oldCode.split(/\r?\n/); + let diffLines = streamDiff(oldLines, lines); + diffLines = filterLeadingAndTrailingNewLineInsertion(diffLines); + for await (const diffLine of diffLines) { + yield diffLine; + } +} + +const BUFFER_LINES_BELOW = 2; +async function* streamFillUnchangedCode( + lines: LineStream, + oldCode: string, + replacementFunction: ( + oldCode: string, + linesBefore: string[], + linesAfter: string[], + ) => Promise, +): LineStream { + const newLines = []; + let buffer = []; + let waitingForBuffer = false; + + for await (const line of lines) { + if (waitingForBuffer) { + buffer.push(line); + + if (buffer.length >= BUFFER_LINES_BELOW) { + // Find the replacement and continue streaming once we have it + const replacement = await replacementFunction( + oldCode, + newLines, + buffer, + ); + for (const replacementLine of replacement.split("\n")) { + yield replacementLine; + newLines.push(replacementLine); + } + + console.log("FOUND REPLACEMENT:\n", replacement); + + // Yield the buffered lines + for (const bufferedLine of buffer) { + yield bufferedLine; + newLines.push(bufferedLine); + } + + waitingForBuffer = false; + buffer = []; + } else { + continue; + } + } + + if (line.includes(UNCHANGED_CODE)) { + // Buffer so we can give the context of BUFFER_LINES_BELOW lines below + waitingForBuffer = true; + // TODO: If the UNCHANGED CODE is at the very top of the file we need to handle a bit differently + } else { + yield line; + newLines.push(line); + } + } + + if (waitingForBuffer) { + // If we're still waiting for a buffer, we've reached the end of the stream + // and we should just look for the replacement with what we have + const replacement = await replacementFunction(oldCode, newLines, buffer); + for (const replacementLine of replacement.split("\n")) { + yield replacementLine; + newLines.push(replacementLine); + } + // Yield the buffered lines + for (const bufferedLine of buffer) { + yield bufferedLine; + newLines.push(bufferedLine); + } + } +} + +const MATCH_LINES_ABOVE = 1; +function getReplacementByMatching( + oldCode: string, + linesBefore: string[], + linesAfter: string[], +): string | undefined { + const oldLines = oldCode.split("\n"); + const linesToMatchAbove = MATCH_LINES_ABOVE; + const linesToMatchBelow = Math.min(BUFFER_LINES_BELOW, linesAfter.length); + + // Get surrounding lines around the gap + const beforeContext = linesBefore.slice(-linesToMatchAbove).join("\n"); + const afterContext = linesAfter.slice(0, linesToMatchBelow).join("\n"); + + // Find the start index in the old code + const startIndex = oldLines.findIndex((line, index) => { + const chunk = oldLines.slice(index, index + linesToMatchAbove).join("\n"); + return chunk === beforeContext; + }); + + if (startIndex === -1) { + return undefined; // Couldn't find matching start + } + + // Find the end index in the old code + const endIndex = oldLines.findIndex((line, index) => { + if (index <= startIndex + linesToMatchBelow) return false; + const chunk = oldLines.slice(index, index + linesToMatchBelow).join("\n"); + return chunk === afterContext; + }); + + if (endIndex === -1) { + return undefined; // Couldn't find matching end + } + + // Extract the replacement code + const replacement = oldLines + .slice(startIndex + linesToMatchAbove, endIndex) + .join("\n"); + + return replacement; +} + +async function getReplacementWithLlm( + oldCode: string, + linesBefore: string[], + linesAfter: string[], + llm: ILLM, +): Promise { + return "// TODO"; +} diff --git a/core/util/verticalEdit.ts b/core/edit/streamDiffLines.ts similarity index 98% rename from core/util/verticalEdit.ts rename to core/edit/streamDiffLines.ts index 34a17ebd4..8448262e1 100644 --- a/core/util/verticalEdit.ts +++ b/core/edit/streamDiffLines.ts @@ -15,7 +15,7 @@ import { LLMFullCompletionOptions, } from "../index.js"; import { gptEditPrompt } from "../llm/templates/edit.js"; -import { Telemetry } from "./posthog.js"; +import { Telemetry } from "../util/posthog.js"; function constructPrompt( prefix: string, diff --git a/extensions/vscode/src/diff/verticalPerLine/manager.ts b/extensions/vscode/src/diff/verticalPerLine/manager.ts index 123832611..c86868dca 100644 --- a/extensions/vscode/src/diff/verticalPerLine/manager.ts +++ b/extensions/vscode/src/diff/verticalPerLine/manager.ts @@ -1,7 +1,9 @@ import { ConfigHandler } from "core/config/ConfigHandler"; import { pruneLinesFromBottom, pruneLinesFromTop } from "core/llm/countTokens"; import { getMarkdownLanguageTagForFile } from "core/util"; -import { streamDiffLines } from "core/util/verticalEdit"; + +import { DiffLine } from "core"; +import { streamDiffLines } from "core/edit/streamDiffLines"; import * as vscode from "vscode"; import { VerticalPerLineDiffHandler } from "./handler"; @@ -29,7 +31,7 @@ export class VerticalPerLineDiffManager { filepath: string, startLine: number, endLine: number, - input: string, + input?: string, ) { if (this.filepathToHandler.has(filepath)) { this.filepathToHandler.get(filepath)?.clear(false); @@ -172,6 +174,71 @@ export class VerticalPerLineDiffManager { } } + async streamDiffLines(diffStream: AsyncGenerator) { + vscode.commands.executeCommand("setContext", "continue.diffVisible", true); + + // Get the current editor filepath/range + let editor = vscode.window.activeTextEditor; + if (!editor) { + return; + } + const filepath = editor.document.uri.fsPath; + const startLine = 0; + const endLine = editor.document.lineCount - 1; + + // Check for existing handlers in the same file the new one will be created in + const existingHandler = this.getHandlerForFile(filepath); + if (existingHandler) { + existingHandler.clear(false); + } + + await new Promise((resolve) => { + setTimeout(resolve, 200); + }); + + // Create new handler with determined start/end + const diffHandler = this.createVerticalPerLineDiffHandler( + filepath, + startLine, + endLine, + ); + + if (!diffHandler) { + console.warn("Issue occured while creating new vertical diff handler"); + return; + } + + if (editor.selection) { + // Unselect the range + editor.selection = new vscode.Selection( + editor.selection.active, + editor.selection.active, + ); + } + + vscode.commands.executeCommand( + "setContext", + "continue.streamingDiff", + true, + ); + + try { + await diffHandler.run(diffStream); + + // enable a listener for user edits to file while diff is open + this.enableDocumentChangeListener(); + } catch (e) { + this.disableDocumentChangeListener(); + vscode.window.showErrorMessage(`Error streaming diff: ${e}`); + } finally { + vscode.commands.executeCommand( + "setContext", + "continue.streamingDiff", + false, + ); + } + } + /** * Streams an edit to the current document based on user input and model output. * diff --git a/extensions/vscode/src/extension/VsCodeMessenger.ts b/extensions/vscode/src/extension/VsCodeMessenger.ts index a1bb9e109..a3dd065e7 100644 --- a/extensions/vscode/src/extension/VsCodeMessenger.ts +++ b/extensions/vscode/src/extension/VsCodeMessenger.ts @@ -1,4 +1,5 @@ import { ConfigHandler } from "core/config/ConfigHandler"; +import { streamLazyApply } from "core/edit/lazy/streamLazyApply"; import { FromCoreProtocol, FromWebviewProtocol, @@ -11,18 +12,19 @@ import { CORE_TO_WEBVIEW_PASS_THROUGH, WEBVIEW_TO_CORE_PASS_THROUGH, } from "core/protocol/passThrough"; +import { getBasename } from "core/util"; import { InProcessMessenger, Message } from "core/util/messenger"; import { getConfigJsonPath } from "core/util/paths"; import * as fs from "node:fs"; import * as path from "node:path"; import * as vscode from "vscode"; import { VerticalPerLineDiffManager } from "../diff/verticalPerLine/manager"; -import { VsCodeIde } from "../VsCodeIde"; import { getControlPlaneSessionInfo, WorkOsAuthProvider, } from "../stubs/WorkOsAuthProvider"; import { getExtensionUri } from "../util/vscode"; +import { VsCodeIde } from "../VsCodeIde"; import { VsCodeWebviewProtocol } from "../webviewProtocol"; /** @@ -124,35 +126,36 @@ export class VsCodeMessenger { }); this.onWebview("applyToCurrentFile", async (msg) => { - // Select the entire current file + // Get active text editor const editor = vscode.window.activeTextEditor; - if (!editor) { vscode.window.showErrorMessage("No active editor to apply edits to"); return; } - if (editor.selection.isEmpty) { - const document = editor.document; - const start = new vscode.Position(0, 0); - const end = new vscode.Position( - document.lineCount - 1, - document.lineAt(document.lineCount - 1).text.length, - ); - editor.selection = new vscode.Selection(start, end); - } - - const verticalDiffManager = await this.verticalDiffManagerPromise; - const prompt = `The following code was suggested as an edit:\n\`\`\`\n${msg.data.text}\n\`\`\`\nPlease apply it to the previous code.`; - + // Get LLM from config const configHandler = await configHandlerPromise; const config = await configHandler.loadConfig(); - const modelTitle = config.experimental?.modelRoles?.applyCodeBlock ?? (await this.webviewProtocol.request("getDefaultModelTitle", undefined)); + const llm = config.models.find((model) => model.title === modelTitle); + if (!llm) { + vscode.window.showErrorMessage( + `Model ${modelTitle} not found in config.`, + ); + return; + } - verticalDiffManager.streamEdit(prompt, modelTitle); + // Generate the diff and pass through diff manager + const diffLines = streamLazyApply( + editor.document.getText(), + getBasename(editor.document.fileName), + msg.data.text, + llm, + ); + const verticalDiffManager = await this.verticalDiffManagerPromise; + verticalDiffManager.streamDiffLines(diffLines); }); this.onWebview("showTutorial", async (msg) => { From d460d4ff099bd0ffedfdaca6887cb94e0398e0eb Mon Sep 17 00:00:00 2001 From: Nate Date: Wed, 11 Sep 2024 14:54:57 -0700 Subject: [PATCH 028/268] adjusting prompt --- core/edit/lazy/prompts.ts | 14 +++++++++++--- 1 file changed, 11 insertions(+), 3 deletions(-) diff --git a/core/edit/lazy/prompts.ts b/core/edit/lazy/prompts.ts index ee2c668c7..b0ab0458a 100644 --- a/core/edit/lazy/prompts.ts +++ b/core/edit/lazy/prompts.ts @@ -9,6 +9,15 @@ type LazyApplyPrompt = ( newCode: string, ) => ChatMessage[]; +const RULES = [ + `Your response should be a code block containing a new version of the entire file.`, + `Whenever any part of the code is the same as before, you may simply indicate this with a comment that says "${UNCHANGED_CODE}" instead of rewriting.`, + `You should write "${UNCHANGED_CODE}" at least for each function that is unchanged, rather than grouping them into a single comment.`, + // `You should lean toward using a smaller number of these comments rather than rewriting it for every function if all of them are unchanged.`, + `You may do this for imports as well if needed.`, + `Do not explain your changes either before or after the code block.`, +]; + function claude35SonnetLazyApplyPrompt( ...args: Parameters ): ReturnType { @@ -23,9 +32,8 @@ function claude35SonnetLazyApplyPrompt( ${args[2]} \`\`\` - Above is a code block containing the original version of a file (ORIGINAL CODE) and below it is a code snippet (NEW CODE) that was suggested as modification to the original file. - - Your task is to apply the NEW CODE to the ORIGINAL CODE and show what the entire file would look like after it is applied. Your response should be a code block containing a new version of the entire file. Whenever any part of the code is the same as before, you may simply indicate this with a comment that says "${UNCHANGED_CODE}" instead of rewriting. You may do this for imports as well if needed. Do not explain your changes either before or after the code block. + Above is a code block containing the original version of a file (ORIGINAL CODE) and below it is a code snippet (NEW CODE) that was suggested as modification to the original file. Your task is to apply the NEW CODE to the ORIGINAL CODE and show what the entire file would look like after it is applied. + - ${RULES.join("\n- ")} `; const assistantContent = dedent` From e78c81f7cba55c049c96b58a9c7a48b3af19f78f Mon Sep 17 00:00:00 2001 From: Nate Date: Thu, 12 Sep 2024 14:26:39 -0700 Subject: [PATCH 029/268] adjust prompt --- core/edit/lazy/prompts.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/core/edit/lazy/prompts.ts b/core/edit/lazy/prompts.ts index b0ab0458a..a7dac5e92 100644 --- a/core/edit/lazy/prompts.ts +++ b/core/edit/lazy/prompts.ts @@ -11,9 +11,9 @@ type LazyApplyPrompt = ( const RULES = [ `Your response should be a code block containing a new version of the entire file.`, - `Whenever any part of the code is the same as before, you may simply indicate this with a comment that says "${UNCHANGED_CODE}" instead of rewriting.`, + `Whenever any part of the code is the same as before, you may simply indicate this with a comment that says "${UNCHANGED_CODE}" instead of rewriting. You must keep at least one line above and below from the original code, so that we can identify what the previous code was.`, `You should write "${UNCHANGED_CODE}" at least for each function that is unchanged, rather than grouping them into a single comment.`, - // `You should lean toward using a smaller number of these comments rather than rewriting it for every function if all of them are unchanged.`, + `You should lean toward using a smaller number of these comments rather than rewriting it for every function if all of them are unchanged.`, `You may do this for imports as well if needed.`, `Do not explain your changes either before or after the code block.`, ]; From 23b6dac06d672fa02cf5d616c820fdf63f63f08f Mon Sep 17 00:00:00 2001 From: Nate Date: Thu, 12 Sep 2024 15:59:39 -0700 Subject: [PATCH 030/268] rename HeaderButton --- ...ttonWithText.tsx => ButtonWithTooltip.tsx} | 6 ++--- gui/src/components/Layout.tsx | 6 ++--- gui/src/components/ProfileSwitcher.tsx | 10 ++++---- gui/src/components/gui/ErrorStepContainer.tsx | 10 ++++---- gui/src/components/gui/StepContainer.tsx | 25 +++++++++++-------- gui/src/components/mainInput/MentionList.tsx | 12 +++++---- .../components/markdown/CodeBlockToolbar.tsx | 14 +++++------ .../markdown/CodeSnippetPreview.tsx | 12 ++++----- gui/src/components/markdown/CopyButton.tsx | 8 +++--- .../components/markdown/PreWithToolbar.tsx | 1 + .../modelSelection/LegacyModelSelect.tsx | 6 ++--- .../components/modelSelection/ModelCard.tsx | 10 ++++---- gui/src/index.css | 7 ++++++ gui/src/pages/history.tsx | 10 ++++---- gui/src/pages/monaco.tsx | 10 ++++---- 15 files changed, 81 insertions(+), 66 deletions(-) rename gui/src/components/{HeaderButtonWithText.tsx => ButtonWithTooltip.tsx} (95%) diff --git a/gui/src/components/HeaderButtonWithText.tsx b/gui/src/components/ButtonWithTooltip.tsx similarity index 95% rename from gui/src/components/HeaderButtonWithText.tsx rename to gui/src/components/ButtonWithTooltip.tsx index 9af9a4236..abf9173da 100644 --- a/gui/src/components/HeaderButtonWithText.tsx +++ b/gui/src/components/ButtonWithTooltip.tsx @@ -1,7 +1,7 @@ import React, { useState } from "react"; import ReactDOM from "react-dom"; -import { HeaderButton, StyledTooltip } from "."; import { type PlacesType } from "react-tooltip"; +import { HeaderButton, StyledTooltip } from "."; import { v4 as uuidv4 } from "uuid"; @@ -21,7 +21,7 @@ interface HeaderButtonWithTextProps { tooltipPlacement?: PlacesType; } -const HeaderButtonWithText = React.forwardRef< +const ButtonWithTooltip = React.forwardRef< HTMLButtonElement, HeaderButtonWithTextProps >((props: HeaderButtonWithTextProps, ref) => { @@ -71,4 +71,4 @@ const HeaderButtonWithText = React.forwardRef< ); }); -export default HeaderButtonWithText; +export default ButtonWithTooltip; diff --git a/gui/src/components/Layout.tsx b/gui/src/components/Layout.tsx index 2ec23ea2f..eede7e04c 100644 --- a/gui/src/components/Layout.tsx +++ b/gui/src/components/Layout.tsx @@ -22,8 +22,8 @@ import { RootState } from "../redux/store"; import { getFontSize, isMetaEquivalentKeyPressed } from "../util"; import { FREE_TRIAL_LIMIT_REQUESTS } from "../util/freeTrial"; import { getLocalStorage, setLocalStorage } from "../util/localStorage"; +import ButtonWithTooltip from "./ButtonWithTooltip"; import TextDialog from "./dialogs"; -import HeaderButtonWithText from "./HeaderButtonWithText"; import ProgressBar from "./loaders/ProgressBar"; import PostHogPageView from "./PosthogPageView"; import ProfileSwitcher from "./ProfileSwitcher"; @@ -264,7 +264,7 @@ const Layout = () => { - { @@ -276,7 +276,7 @@ const Layout = () => { }} > - + )} diff --git a/gui/src/components/ProfileSwitcher.tsx b/gui/src/components/ProfileSwitcher.tsx index 44ba57b42..b6d9729a3 100644 --- a/gui/src/components/ProfileSwitcher.tsx +++ b/gui/src/components/ProfileSwitcher.tsx @@ -24,7 +24,7 @@ import { useWebviewListener } from "../hooks/useWebviewListener"; import { setLastControlServerBetaEnabledStatus } from "../redux/slices/miscSlice"; import { RootState } from "../redux/store"; import { getFontSize } from "../util"; -import HeaderButtonWithText from "./HeaderButtonWithText"; +import ButtonWithTooltip from "./ButtonWithTooltip"; const StyledListbox = styled(Listbox)` background-color: ${vscBackground}; @@ -235,7 +235,7 @@ function ProfileSwitcher(props: {}) { )} {/* Settings button (either opens config.json or /settings page in control plane) */} - { if (selectedProfileId === "local") { @@ -250,11 +250,11 @@ function ProfileSwitcher(props: {}) { text="Configure Continue" > - + {/* Only show login if beta explicitly enabled */} {controlServerBetaEnabled && ( - - + )} ); diff --git a/gui/src/components/gui/ErrorStepContainer.tsx b/gui/src/components/gui/ErrorStepContainer.tsx index 5eb353831..e1d0515ce 100644 --- a/gui/src/components/gui/ErrorStepContainer.tsx +++ b/gui/src/components/gui/ErrorStepContainer.tsx @@ -2,7 +2,7 @@ import { MinusCircleIcon, XMarkIcon } from "@heroicons/react/24/outline"; import { ContinueError } from "core"; import styled from "styled-components"; import { defaultBorderRadius, vscBackground } from ".."; -import HeaderButtonWithText from "../HeaderButtonWithText"; +import ButtonWithTooltip from "../ButtonWithTooltip"; const Div = styled.div` padding: 8px; @@ -29,12 +29,12 @@ function ErrorStepContainer(props: ErrorStepContainerProps) { display: "flex", }} > - props.onClose()}> + props.onClose()}> - - props.onDelete()}> + + props.onDelete()}> - +
diff --git a/gui/src/components/gui/StepContainer.tsx b/gui/src/components/gui/StepContainer.tsx
index 48958805f..f238feaa0 100644
--- a/gui/src/components/gui/StepContainer.tsx
+++ b/gui/src/components/gui/StepContainer.tsx
@@ -20,7 +20,7 @@ import { IdeMessengerContext } from "../../context/IdeMessenger";
 import useUIConfig from "../../hooks/useUIConfig";
 import { RootState } from "../../redux/store";
 import { getFontSize } from "../../util";
-import HeaderButtonWithText from "../HeaderButtonWithText";
+import ButtonWithTooltip from "../ButtonWithTooltip";
 import { CopyButton } from "../markdown/CopyButton";
 import StyledMarkdownPreview from "../markdown/StyledMarkdownPreview";
 
@@ -145,7 +145,8 @@ function StepContainer(props: StepContainerProps) {
               )}
 
               {truncatedEarly && (
-                 {
                     props.onContinueGeneration();
@@ -156,23 +157,25 @@ function StepContainer(props: StepContainerProps) {
                     width="1.2em"
                     height="1.2em"
                   />
-                
+                
               )}
 
               
-               {
                   props.onRetry();
                 }}
               >
                 
-              
+              
               {feedback === false || (
-                
+                
                   
-                
+                
               )}
               {feedback === true || (
-                
+                
                   
-                
+                
               )}
-              
+              
                 
-              
+              
             
)} diff --git a/gui/src/components/mainInput/MentionList.tsx b/gui/src/components/mainInput/MentionList.tsx index 7ad231a39..ebe6048d2 100644 --- a/gui/src/components/mainInput/MentionList.tsx +++ b/gui/src/components/mainInput/MentionList.tsx @@ -2,6 +2,7 @@ import { ArrowRightIcon, ArrowUpOnSquareIcon, AtSymbolIcon, + BoltIcon, BookOpenIcon, CodeBracketIcon, CommandLineIcon, @@ -16,7 +17,6 @@ import { PlusIcon, SparklesIcon, TrashIcon, - BoltIcon, } from "@heroicons/react/24/outline"; import { Editor } from "@tiptap/react"; import { @@ -40,8 +40,8 @@ import { setDialogMessage, setShowDialog, } from "../../redux/slices/uiStateSlice"; +import ButtonWithTooltip from "../ButtonWithTooltip"; import FileIcon from "../FileIcon"; -import HeaderButtonWithText from "../HeaderButtonWithText"; import SafeImg from "../SafeImg"; import AddDocsDialog from "../dialogs/AddDocsDialog"; import { ComboBoxItem } from "./types"; @@ -113,7 +113,9 @@ function DropdownIcon(props: { className?: string; item: ComboBoxItem }) { const ItemsDiv = styled.div` border-radius: ${defaultBorderRadius}; - box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.05), 0px 10px 20px rgba(0, 0, 0, 0.1); + box-shadow: + 0 0 0 1px rgba(0, 0, 0, 0.05), + 0px 10px 20px rgba(0, 0, 0, 0.1); font-size: 0.9rem; overflow-x: hidden; overflow-y: auto; @@ -410,7 +412,7 @@ const MentionList = forwardRef((props: MentionListProps, ref) => { {item.subActions?.map((subAction) => { const Icon = ICONS_FOR_DROPDOWN[subAction.icon]; return ( - { subAction.action(item); e.stopPropagation(); @@ -420,7 +422,7 @@ const MentionList = forwardRef((props: MentionListProps, ref) => { text={undefined} > - + ); })} diff --git a/gui/src/components/markdown/CodeBlockToolbar.tsx b/gui/src/components/markdown/CodeBlockToolbar.tsx index c7f695f00..f01a86c18 100644 --- a/gui/src/components/markdown/CodeBlockToolbar.tsx +++ b/gui/src/components/markdown/CodeBlockToolbar.tsx @@ -8,7 +8,7 @@ import styled from "styled-components"; import { defaultBorderRadius, vscEditorBackground } from ".."; import { IdeMessengerContext } from "../../context/IdeMessenger"; import { isJetBrains } from "../../util"; -import HeaderButtonWithText from "../HeaderButtonWithText"; +import ButtonWithTooltip from "../ButtonWithTooltip"; import { CopyButton } from "./CopyButton"; const TopDiv = styled.div` @@ -78,13 +78,13 @@ function CodeBlockToolBar(props: CodeBlockToolBarProps) { {isJetBrains() || ( - )} - + )} - { @@ -121,7 +121,7 @@ function CodeBlockToolBar(props: CodeBlockToolBarProps) { }} > - + diff --git a/gui/src/components/markdown/CodeSnippetPreview.tsx b/gui/src/components/markdown/CodeSnippetPreview.tsx index a47261cb2..80b8fe1a4 100644 --- a/gui/src/components/markdown/CodeSnippetPreview.tsx +++ b/gui/src/components/markdown/CodeSnippetPreview.tsx @@ -11,8 +11,8 @@ import styled from "styled-components"; import { defaultBorderRadius, lightGray, vscEditorBackground } from ".."; import { IdeMessengerContext } from "../../context/IdeMessenger"; import { getFontSize } from "../../util"; +import ButtonWithTooltip from "../ButtonWithTooltip"; import FileIcon from "../FileIcon"; -import HeaderButtonWithText from "../HeaderButtonWithText"; import StyledMarkdownPreview from "./StyledMarkdownPreview"; const PreviewMarkdownDiv = styled.div<{ @@ -49,7 +49,7 @@ interface CodeSnippetPreviewProps { editing?: boolean; } -const StyledHeaderButtonWithText = styled(HeaderButtonWithText)<{ +const StyledHeaderButtonWithText = styled(ButtonWithTooltip)<{ color?: string; }>` ${(props) => props.color && `background-color: ${props.color};`} @@ -133,7 +133,7 @@ function CodeSnippetPreview(props: CodeSnippetPreviewProps) { )} - { e.stopPropagation(); @@ -141,7 +141,7 @@ function CodeSnippetPreview(props: CodeSnippetPreviewProps) { }} > - +
{(codeBlockRef.current?.scrollHeight ?? 0) > MAX_PREVIEW_HEIGHT && ( - @@ -179,7 +179,7 @@ function CodeSnippetPreview(props: CodeSnippetPreviewProps) { onClick={() => setCollapsed(true)} /> )} - + )} ); diff --git a/gui/src/components/markdown/CopyButton.tsx b/gui/src/components/markdown/CopyButton.tsx index 0627f4e47..cd47df6db 100644 --- a/gui/src/components/markdown/CopyButton.tsx +++ b/gui/src/components/markdown/CopyButton.tsx @@ -2,11 +2,12 @@ import { CheckIcon, ClipboardIcon } from "@heroicons/react/24/outline"; import { useContext, useState } from "react"; import { IdeMessengerContext } from "../../context/IdeMessenger"; import { isJetBrains } from "../../util"; -import HeaderButtonWithText from "../HeaderButtonWithText"; +import ButtonWithTooltip from "../ButtonWithTooltip"; interface CopyButtonProps { text: string | (() => string); color?: string; + tabIndex?: number; } export function CopyButton(props: CopyButtonProps) { @@ -16,7 +17,8 @@ export function CopyButton(props: CopyButtonProps) { return ( <> - { const text = @@ -36,7 +38,7 @@ export function CopyButton(props: CopyButtonProps) { ) : ( )} - + ); } diff --git a/gui/src/components/markdown/PreWithToolbar.tsx b/gui/src/components/markdown/PreWithToolbar.tsx index 3731109f5..ca9631c1c 100644 --- a/gui/src/components/markdown/PreWithToolbar.tsx +++ b/gui/src/components/markdown/PreWithToolbar.tsx @@ -41,6 +41,7 @@ function PreWithToolbar(props: { children: any; language: string | null }) { return (
setHovering(true)} diff --git a/gui/src/components/modelSelection/LegacyModelSelect.tsx b/gui/src/components/modelSelection/LegacyModelSelect.tsx index c5bcb4026..21d81ccbb 100644 --- a/gui/src/components/modelSelection/LegacyModelSelect.tsx +++ b/gui/src/components/modelSelection/LegacyModelSelect.tsx @@ -27,7 +27,7 @@ import { } from "../../redux/slices/uiStateSlice"; import { RootState } from "../../redux/store"; import { getMetaKeyLabel, isMetaEquivalentKeyPressed } from "../../util"; -import HeaderButtonWithText from "../HeaderButtonWithText"; +import ButtonWithTooltip from "../ButtonWithTooltip"; import ConfirmationDialog from "../dialogs/ConfirmationDialog"; const GridDiv = styled.div` @@ -149,7 +149,7 @@ function ListBoxOption({
{option.title} {hovered && showDelete && ( - { dispatch(setShowDialog(true)); @@ -173,7 +173,7 @@ function ListBoxOption({ className="absolute right-0 p-1" > - + )}
diff --git a/gui/src/components/modelSelection/ModelCard.tsx b/gui/src/components/modelSelection/ModelCard.tsx index 71820d0a3..e17204301 100644 --- a/gui/src/components/modelSelection/ModelCard.tsx +++ b/gui/src/components/modelSelection/ModelCard.tsx @@ -9,7 +9,7 @@ import { } from ".."; import { PackageDimension } from "../../pages/AddNewModel/configs/models"; import { providers } from "../../pages/AddNewModel/configs/providers"; -import HeaderButtonWithText from "../HeaderButtonWithText"; +import ButtonWithTooltip from "../ButtonWithTooltip"; import InfoHover from "../InfoHover"; import ModelProviderTag, { ModelProviderTags } from "./ModelProviderTag"; @@ -161,9 +161,9 @@ function ModelCard(props: ModelCardProps) { href={props.refUrl} target="_blank" > - + - + )}
@@ -216,7 +216,7 @@ function ModelCard(props: ModelCardProps) { return null; } return ( - )} - + ); })}
diff --git a/gui/src/index.css b/gui/src/index.css index 8511531f3..77022daf3 100644 --- a/gui/src/index.css +++ b/gui/src/index.css @@ -45,6 +45,13 @@ a:focus { outline: none; } +*:focus { + outline: 1px solid red; + border: 1px solid black; + background-color: gainsboro; + visibility: visible !important; +} + @keyframes fadeIn { from { opacity: 0; diff --git a/gui/src/pages/history.tsx b/gui/src/pages/history.tsx index f81dd1769..2bfa45355 100644 --- a/gui/src/pages/history.tsx +++ b/gui/src/pages/history.tsx @@ -18,7 +18,7 @@ import { vscForeground, vscInputBackground, } from "../components"; -import HeaderButtonWithText from "../components/HeaderButtonWithText"; +import ButtonWithTooltip from "../components/ButtonWithTooltip"; import useHistory from "../hooks/useHistory"; import { useNavigationListener } from "../hooks/useNavigationListener"; import { getFontSize } from "../util"; @@ -175,7 +175,7 @@ function TableRow({ {hovered && ( - { @@ -183,11 +183,11 @@ function TableRow({ }} > - + )} {hovered && ( - { @@ -196,7 +196,7 @@ function TableRow({ }} > - + )} diff --git a/gui/src/pages/monaco.tsx b/gui/src/pages/monaco.tsx index ba441d0c8..1e1e9879f 100644 --- a/gui/src/pages/monaco.tsx +++ b/gui/src/pages/monaco.tsx @@ -3,7 +3,7 @@ import { DiffEditor } from "@monaco-editor/react"; import React, { useContext, useEffect } from "react"; import { v4 } from "uuid"; import { vscInputBackground } from "../components"; -import HeaderButtonWithText from "../components/HeaderButtonWithText"; +import ButtonWithTooltip from "../components/ButtonWithTooltip"; import { IdeMessengerContext } from "../context/IdeMessenger"; interface EditorFrameProps { @@ -53,12 +53,12 @@ function EditorFrame(props: EditorFrameProps) { {props.filename.split("/").pop()}
- {}}> + {}}> - - {}}> + + {}}> - +
{/* Date: Thu, 12 Sep 2024 16:57:51 -0700 Subject: [PATCH 031/268] code block setup --- core/protocol/ideWebview.ts | 1 + extensions/vscode/package.json | 12 +++++ extensions/vscode/src/commands.ts | 3 ++ gui/src/components/Layout.tsx | 29 +----------- .../dialogs/AddContextGroupDialog.tsx | 47 ------------------- .../components/markdown/CodeBlockToolbar.tsx | 17 +++++++ .../components/markdown/PreWithToolbar.tsx | 1 - .../markdown/StyledMarkdownPreview.tsx | 21 ++++++--- gui/src/redux/slices/uiStateSlice.ts | 38 ++++----------- 9 files changed, 58 insertions(+), 111 deletions(-) delete mode 100644 gui/src/components/dialogs/AddContextGroupDialog.tsx diff --git a/core/protocol/ideWebview.ts b/core/protocol/ideWebview.ts index 5e1e74589..873c72598 100644 --- a/core/protocol/ideWebview.ts +++ b/core/protocol/ideWebview.ts @@ -61,4 +61,5 @@ export type ToWebviewFromIdeProtocol = ToWebviewFromIdeOrCoreProtocol & { setupLocalModel: [undefined, void]; incrementFtc: [undefined, void]; openOnboarding: [undefined, void]; + applyCodeFromChat: [undefined, void]; }; diff --git a/extensions/vscode/package.json b/extensions/vscode/package.json index a9a290153..566784d34 100644 --- a/extensions/vscode/package.json +++ b/extensions/vscode/package.json @@ -127,6 +127,12 @@ } }, "commands": [ + { + "command": "continue.applyCodeFromChat", + "category": "Continue", + "title": "Apply code from chat", + "group": "Continue" + }, { "command": "continue.acceptDiff", "category": "Continue", @@ -340,6 +346,12 @@ "mac": "cmd+k cmd+a", "key": "ctrl+k ctrl+a", "when": "!terminalFocus" + }, + { + "command": "continue.applyCodeFromChat", + "mac": "alt+l", + "key": "alt+l", + "when": "continue.continueGUIView.visible" } ], "submenus": [ diff --git a/extensions/vscode/src/commands.ts b/extensions/vscode/src/commands.ts index 979c782b0..3619e545b 100644 --- a/extensions/vscode/src/commands.ts +++ b/extensions/vscode/src/commands.ts @@ -460,6 +460,9 @@ const commandsMap: ( "continue.viewHistory": () => { sidebar.webviewProtocol?.request("viewHistory", undefined); }, + "continue.applyCodeFromChat": () => { + sidebar.webviewProtocol.request("applyCodeFromChat", undefined); + }, "continue.toggleFullScreen": () => { // Check if full screen is already open by checking open tabs const fullScreenTab = getFullScreenTab(); diff --git a/gui/src/components/Layout.tsx b/gui/src/components/Layout.tsx index eede7e04c..ebe8d5d46 100644 --- a/gui/src/components/Layout.tsx +++ b/gui/src/components/Layout.tsx @@ -13,11 +13,7 @@ import { IdeMessengerContext } from "../context/IdeMessenger"; import { useWebviewListener } from "../hooks/useWebviewListener"; import { isNewUserOnboarding } from "../pages/onboarding/utils"; import { defaultModelSelector } from "../redux/selectors/modelSelectors"; -import { - setBottomMessage, - setBottomMessageCloseTimeout, - setShowDialog, -} from "../redux/slices/uiStateSlice"; +import { setShowDialog } from "../redux/slices/uiStateSlice"; import { RootState } from "../redux/store"; import { getFontSize, isMetaEquivalentKeyPressed } from "../util"; import { FREE_TRIAL_LIMIT_REQUESTS } from "../util/freeTrial"; @@ -122,14 +118,6 @@ const Layout = () => { ); const defaultModel = useSelector(defaultModelSelector); - - const bottomMessage = useSelector( - (state: RootState) => state.uiState.bottomMessage, - ); - const displayBottomMessageOnBottom = useSelector( - (state: RootState) => state.uiState.displayBottomMessageOnBottom, - ); - const timeline = useSelector((state: RootState) => state.state.history); useEffect(() => { @@ -280,21 +268,6 @@ const Layout = () => { )} - - { - dispatch(setBottomMessageCloseTimeout(undefined)); - }} - onMouseLeave={(e) => { - if (!e.buttons) { - dispatch(setBottomMessage(undefined)); - } - }} - hidden={!bottomMessage} - > - {bottomMessage} -
{ - dispatch(setDialogMessage(undefined)); - dispatch(setShowDialog(false)); - const title = inputElement ? inputElement.value : "My Context Group"; - // TODO - }; - - return ( -
- { - inputElement = input; - }} - onKeyDown={(e) => { - if (e.key === "Enter") { - handleCreate(); - } - }} - /> -
- -
- ); -} - -export default AddContextGroupDialog; diff --git a/gui/src/components/markdown/CodeBlockToolbar.tsx b/gui/src/components/markdown/CodeBlockToolbar.tsx index f01a86c18..c751f9a3a 100644 --- a/gui/src/components/markdown/CodeBlockToolbar.tsx +++ b/gui/src/components/markdown/CodeBlockToolbar.tsx @@ -4,9 +4,11 @@ import { PlayIcon, } from "@heroicons/react/24/outline"; import { useContext, useState } from "react"; +import { useSelector } from "react-redux"; import styled from "styled-components"; import { defaultBorderRadius, vscEditorBackground } from ".."; import { IdeMessengerContext } from "../../context/IdeMessenger"; +import { RootState } from "../../redux/store"; import { isJetBrains } from "../../util"; import ButtonWithTooltip from "../ButtonWithTooltip"; import { CopyButton } from "./CopyButton"; @@ -74,6 +76,21 @@ function CodeBlockToolBar(props: CodeBlockToolBarProps) { const ideMessenger = useContext(IdeMessengerContext); const [applying, setApplying] = useState(false); + const nextCodeBlockToApplyIndex = useSelector( + (state: RootState) => state.uiState.nextCodeBlockToApplyIndex, + ); + + // Handle apply keyboard shortcut + // useWebviewListener( + // "applyCodeFromChat", + // async () => { + // await ideMessenger.request("applyToCurrentFile", { + // text: "", + // }); + // }, + // [nextCodeBlockToApplyIndex], + // ); + return ( diff --git a/gui/src/components/markdown/PreWithToolbar.tsx b/gui/src/components/markdown/PreWithToolbar.tsx index ca9631c1c..7486c218e 100644 --- a/gui/src/components/markdown/PreWithToolbar.tsx +++ b/gui/src/components/markdown/PreWithToolbar.tsx @@ -24,7 +24,6 @@ function PreWithToolbar(props: { children: any; language: string | null }) { const toolbarBottom = uiConfig?.codeBlockToolbarPosition == "bottom"; const [hovering, setHovering] = useState(false); - const [copyValue, setCopyValue] = useState(""); useEffect(() => { diff --git a/gui/src/components/markdown/StyledMarkdownPreview.tsx b/gui/src/components/markdown/StyledMarkdownPreview.tsx index 311d8c84a..9296ae465 100644 --- a/gui/src/components/markdown/StyledMarkdownPreview.tsx +++ b/gui/src/components/markdown/StyledMarkdownPreview.tsx @@ -12,12 +12,11 @@ import { vscForeground, } from ".."; import { getFontSize } from "../../util"; +import "./katex.css"; import LinkableCode from "./LinkableCode"; +import "./markdown.css"; import PreWithToolbar from "./PreWithToolbar"; import { SyntaxHighlightedPre } from "./SyntaxHighlightedPre"; -import { common } from "lowlight"; -import "./katex.css"; -import "./markdown.css"; const StyledMarkdown = styled.div<{ fontSize?: number; @@ -58,9 +57,19 @@ const StyledMarkdown = styled.div<{ } background-color: ${vscBackground}; - font-family: var(--vscode-font-family), system-ui, -apple-system, - BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, - "Open Sans", "Helvetica Neue", sans-serif; + font-family: + var(--vscode-font-family), + system-ui, + -apple-system, + BlinkMacSystemFont, + "Segoe UI", + Roboto, + Oxygen, + Ubuntu, + Cantarell, + "Open Sans", + "Helvetica Neue", + sans-serif; font-size: ${(props) => props.fontSize || getFontSize()}px; padding-left: 8px; padding-right: 8px; diff --git a/gui/src/redux/slices/uiStateSlice.ts b/gui/src/redux/slices/uiStateSlice.ts index 0d6671162..60e9270d8 100644 --- a/gui/src/redux/slices/uiStateSlice.ts +++ b/gui/src/redux/slices/uiStateSlice.ts @@ -1,39 +1,20 @@ import { PayloadAction, createSlice } from "@reduxjs/toolkit"; type UiState = { - bottomMessage: JSX.Element | undefined; - bottomMessageCloseTimeout: NodeJS.Timeout | undefined; - displayBottomMessageOnBottom: boolean; showDialog: boolean; dialogMessage: string | JSX.Element | undefined; dialogEntryOn: boolean; + nextCodeBlockToApplyIndex: number; }; export const uiStateSlice = createSlice({ name: "uiState", initialState: { - bottomMessage: undefined, - bottomMessageCloseTimeout: undefined, showDialog: false, dialogMessage: "", dialogEntryOn: false, - displayBottomMessageOnBottom: true, + nextCodeBlockToApplyIndex: -1, } as UiState, reducers: { - setBottomMessage: ( - state, - action: PayloadAction, - ) => { - state.bottomMessage = action.payload; - }, - setBottomMessageCloseTimeout: ( - state, - action: PayloadAction, - ) => { - if (state.bottomMessageCloseTimeout) { - clearTimeout(state.bottomMessageCloseTimeout); - } - state.bottomMessageCloseTimeout = action.payload; - }, setDialogMessage: ( state, action: PayloadAction, @@ -49,21 +30,20 @@ export const uiStateSlice = createSlice({ setShowDialog: (state, action: PayloadAction) => { state.showDialog = action.payload; }, - setDisplayBottomMessageOnBottom: ( - state, - action: PayloadAction, - ) => { - state.displayBottomMessageOnBottom = action.payload; + resetNextCodeBlockToApplyIndex: (state) => { + state.nextCodeBlockToApplyIndex = -1; + }, + incrementNextCodeBlockToApplyIndex: (state, action) => { + state.nextCodeBlockToApplyIndex++; }, }, }); export const { - setBottomMessage, - setBottomMessageCloseTimeout, setDialogMessage, setDialogEntryOn, setShowDialog, - setDisplayBottomMessageOnBottom, + resetNextCodeBlockToApplyIndex, + incrementNextCodeBlockToApplyIndex, } = uiStateSlice.actions; export default uiStateSlice.reducer; From d22774e95539eac8bb8454e1170beb3a39df8038 Mon Sep 17 00:00:00 2001 From: Nate Date: Thu, 12 Sep 2024 21:30:19 -0700 Subject: [PATCH 032/268] update lazy find/replace logic --- core/autocomplete/lineStream.ts | 16 +++++ core/edit/lazy/prompts.ts | 14 ++-- core/edit/lazy/replace.ts | 96 ++++++++++++++++++++++++++++ core/edit/lazy/streamLazyApply.ts | 103 +++++++++--------------------- gui/src/index.css | 7 -- 5 files changed, 149 insertions(+), 87 deletions(-) create mode 100644 core/edit/lazy/replace.ts diff --git a/core/autocomplete/lineStream.ts b/core/autocomplete/lineStream.ts index 56d0fb12d..4ba14e687 100644 --- a/core/autocomplete/lineStream.ts +++ b/core/autocomplete/lineStream.ts @@ -494,3 +494,19 @@ export async function* stopAtRepeatingLines( previousLine = line; } } + +/** + * Pass-through, except logs the total output at the end + * @param lines a `LineStream` + */ +export async function* logLines( + lines: LineStream, + prefix: string = "STREAMED LINES", +): LineStream { + let linesToLog = []; + for await (const line of lines) { + yield line; + linesToLog.push(line); + } + console.log(`${prefix}:\n${linesToLog.join("\n")}\n\n`); +} diff --git a/core/edit/lazy/prompts.ts b/core/edit/lazy/prompts.ts index a7dac5e92..94c7dd58d 100644 --- a/core/edit/lazy/prompts.ts +++ b/core/edit/lazy/prompts.ts @@ -10,12 +10,14 @@ type LazyApplyPrompt = ( ) => ChatMessage[]; const RULES = [ - `Your response should be a code block containing a new version of the entire file.`, - `Whenever any part of the code is the same as before, you may simply indicate this with a comment that says "${UNCHANGED_CODE}" instead of rewriting. You must keep at least one line above and below from the original code, so that we can identify what the previous code was.`, - `You should write "${UNCHANGED_CODE}" at least for each function that is unchanged, rather than grouping them into a single comment.`, - `You should lean toward using a smaller number of these comments rather than rewriting it for every function if all of them are unchanged.`, - `You may do this for imports as well if needed.`, - `Do not explain your changes either before or after the code block.`, + `Your response should be a code block containing a rewritten version of the file.`, + `Whenever any part of the code is the same as before, you may simply indicate this with a comment that says "${UNCHANGED_CODE}" instead of rewriting.`, + `You must keep at least one line above and below from the original code, so that we can identify what the previous code was.`, + `Do not place miscellaneous "${UNCHANGED_CODE}" comments at the top or bottom of the file when there is nothing to replace them.`, + // `You should write "${UNCHANGED_CODE}" at least for each function that is unchanged, rather than grouping them into a single comment.`, + // `You should lean toward using a smaller number of these comments rather than rewriting it for every function if all of them are unchanged.`, + // `You may do this for imports as well if needed.`, + // `Do not explain your changes either before or after the code block.`, ]; function claude35SonnetLazyApplyPrompt( diff --git a/core/edit/lazy/replace.ts b/core/edit/lazy/replace.ts new file mode 100644 index 000000000..556255ad7 --- /dev/null +++ b/core/edit/lazy/replace.ts @@ -0,0 +1,96 @@ +import { ILLM } from "../.."; +import { + filterLeadingNewline, + stopAtLines, +} from "../../autocomplete/lineStream"; +import { streamLines } from "../../diff/util"; +import { dedent } from "../../util"; + +export const BUFFER_LINES_BELOW = 3; + +const MATCH_LINES_ABOVE = 1; +export function getReplacementByMatching( + oldCode: string, + linesBefore: string[], + linesAfter: string[], +): string | undefined { + const oldLines = oldCode.split("\n"); + const linesToMatchAbove = MATCH_LINES_ABOVE; + const linesToMatchBelow = Math.min(BUFFER_LINES_BELOW, linesAfter.length); + + // Get surrounding lines around the gap + const beforeContext = linesBefore.slice(-linesToMatchAbove).join("\n"); + const afterContext = linesAfter.slice(0, linesToMatchBelow).join("\n"); + + // Find the start index in the old code + const startIndex = oldLines.findIndex((line, index) => { + const chunk = oldLines.slice(index, index + linesToMatchAbove).join("\n"); + return chunk === beforeContext; + }); + + if (startIndex === -1) { + return undefined; // Couldn't find matching start + } + + // Find the end index in the old code + const endIndex = oldLines.findIndex((line, index) => { + if (index <= startIndex + linesToMatchBelow) return false; + const chunk = oldLines.slice(index, index + linesToMatchBelow).join("\n"); + return chunk === afterContext; + }); + + if (endIndex === -1) { + return undefined; // Couldn't find matching end + } + + // Extract the replacement code + const replacement = oldLines + .slice(startIndex + linesToMatchAbove, endIndex) + .join("\n"); + + return replacement; +} + +const REPLACE_HERE = "// REPLACE HERE //"; +export async function* getReplacementWithLlm( + oldCode: string, + linesBefore: string[], + linesAfter: string[], + llm: ILLM, +): AsyncGenerator { + const userPrompt = dedent` + ORIGINAL CODE: + \`\`\` + ${oldCode} + \`\`\` + + UPDATED CODE: + \`\`\` + ${linesBefore.join("\n")} + ${REPLACE_HERE} + ${linesAfter.join("\n")} + \`\`\` + + Above is an original version of a file, followed by a newer version that is in the process of being written. The new version contains a section which is exactly the same as in the original code, and has been marked with "${REPLACE_HERE}". Your task is to give the exact snippet of code from the original code that should replace "${REPLACE_HERE}" in the new version. + + Your output should be a single code block. We will paste the contents of that code block directly into the new version, so make sure that it has correct indentation. + `; + + const assistantPrompt = dedent` + Here is the snippet of code that will replace "${REPLACE_HERE}" in the new version: + \`\`\` + `; + + const completion = await llm.streamChat([ + { role: "user", content: userPrompt }, + { role: "assistant", content: assistantPrompt }, + ]); + + let lines = streamLines(completion); + lines = filterLeadingNewline(lines); + lines = stopAtLines(lines, () => {}, ["```"]); + + for await (const line of lines) { + yield line; + } +} diff --git a/core/edit/lazy/streamLazyApply.ts b/core/edit/lazy/streamLazyApply.ts index 648a32868..9d667ea57 100644 --- a/core/edit/lazy/streamLazyApply.ts +++ b/core/edit/lazy/streamLazyApply.ts @@ -7,6 +7,7 @@ import { streamDiff } from "../../diff/streamDiff.js"; import { LineStream, streamLines } from "../../diff/util.js"; import { DiffLine, ILLM } from "../../index.js"; import { lazyApplyPromptForModel, UNCHANGED_CODE } from "./prompts.js"; +import { BUFFER_LINES_BELOW, getReplacementWithLlm } from "./replace.js"; export async function* streamLazyApply( oldCode: string, @@ -23,21 +24,31 @@ export async function* streamLazyApply( const lazyCompletion = llm.streamChat(promptMessages); // Do find and replace over the lazy edit response - async function replacementFunction( + async function* replacementFunction( oldCode: string, linesBefore: string[], linesAfter: string[], - ): Promise { - let r = getReplacementByMatching(oldCode, linesBefore, linesAfter); - if (r) { - return r; + ): AsyncGenerator { + for await (const line of getReplacementWithLlm( + oldCode, + linesBefore, + linesAfter, + llm, + )) { + yield line; } - r = await getReplacementWithLlm(oldCode, linesBefore, linesAfter, llm); - if (r) { - return r; - } - return "// NO REPLACEMENT FOUND"; + + // let r = getReplacementByMatching(oldCode, linesBefore, linesAfter); + // if (r) { + // return r; + // } + // r = await getReplacementWithLlm(oldCode, linesBefore, linesAfter, llm); + // if (r) { + // return r; + // } + // return "// NO REPLACEMENT FOUND"; } + let lazyCompletionLines = streamLines(lazyCompletion, true); // Process line output // lazyCompletionLines = filterEnglishLinesAtStart(lazyCompletionLines); @@ -60,7 +71,6 @@ export async function* streamLazyApply( } } -const BUFFER_LINES_BELOW = 2; async function* streamFillUnchangedCode( lines: LineStream, oldCode: string, @@ -68,7 +78,7 @@ async function* streamFillUnchangedCode( oldCode: string, linesBefore: string[], linesAfter: string[], - ) => Promise, + ) => AsyncGenerator, ): LineStream { const newLines = []; let buffer = []; @@ -80,18 +90,14 @@ async function* streamFillUnchangedCode( if (buffer.length >= BUFFER_LINES_BELOW) { // Find the replacement and continue streaming once we have it - const replacement = await replacementFunction( - oldCode, - newLines, - buffer, - ); - for (const replacementLine of replacement.split("\n")) { + const replacementLines = replacementFunction(oldCode, newLines, buffer); + let replacement = ""; + for await (const replacementLine of replacementLines) { yield replacementLine; newLines.push(replacementLine); + replacement += replacementLine + "\n"; } - console.log("FOUND REPLACEMENT:\n", replacement); - // Yield the buffered lines for (const bufferedLine of buffer) { yield bufferedLine; @@ -100,6 +106,7 @@ async function* streamFillUnchangedCode( waitingForBuffer = false; buffer = []; + continue; } else { continue; } @@ -118,8 +125,8 @@ async function* streamFillUnchangedCode( if (waitingForBuffer) { // If we're still waiting for a buffer, we've reached the end of the stream // and we should just look for the replacement with what we have - const replacement = await replacementFunction(oldCode, newLines, buffer); - for (const replacementLine of replacement.split("\n")) { + const replacementLines = replacementFunction(oldCode, newLines, buffer); + for await (const replacementLine of replacementLines) { yield replacementLine; newLines.push(replacementLine); } @@ -130,55 +137,3 @@ async function* streamFillUnchangedCode( } } } - -const MATCH_LINES_ABOVE = 1; -function getReplacementByMatching( - oldCode: string, - linesBefore: string[], - linesAfter: string[], -): string | undefined { - const oldLines = oldCode.split("\n"); - const linesToMatchAbove = MATCH_LINES_ABOVE; - const linesToMatchBelow = Math.min(BUFFER_LINES_BELOW, linesAfter.length); - - // Get surrounding lines around the gap - const beforeContext = linesBefore.slice(-linesToMatchAbove).join("\n"); - const afterContext = linesAfter.slice(0, linesToMatchBelow).join("\n"); - - // Find the start index in the old code - const startIndex = oldLines.findIndex((line, index) => { - const chunk = oldLines.slice(index, index + linesToMatchAbove).join("\n"); - return chunk === beforeContext; - }); - - if (startIndex === -1) { - return undefined; // Couldn't find matching start - } - - // Find the end index in the old code - const endIndex = oldLines.findIndex((line, index) => { - if (index <= startIndex + linesToMatchBelow) return false; - const chunk = oldLines.slice(index, index + linesToMatchBelow).join("\n"); - return chunk === afterContext; - }); - - if (endIndex === -1) { - return undefined; // Couldn't find matching end - } - - // Extract the replacement code - const replacement = oldLines - .slice(startIndex + linesToMatchAbove, endIndex) - .join("\n"); - - return replacement; -} - -async function getReplacementWithLlm( - oldCode: string, - linesBefore: string[], - linesAfter: string[], - llm: ILLM, -): Promise { - return "// TODO"; -} diff --git a/gui/src/index.css b/gui/src/index.css index 77022daf3..8511531f3 100644 --- a/gui/src/index.css +++ b/gui/src/index.css @@ -45,13 +45,6 @@ a:focus { outline: none; } -*:focus { - outline: 1px solid red; - border: 1px solid black; - background-color: gainsboro; - visibility: visible !important; -} - @keyframes fadeIn { from { opacity: 0; From aca3f1652ffc2a168cb82ee5c3895b2683ac6387 Mon Sep 17 00:00:00 2001 From: Nate Date: Thu, 12 Sep 2024 22:16:06 -0700 Subject: [PATCH 033/268] indexes for code blocks to apply one-by-one --- extensions/vscode/package.json | 3 +- .../components/markdown/CodeBlockToolbar.tsx | 38 +++++++++++-------- .../components/markdown/PreWithToolbar.tsx | 14 ++++++- .../markdown/StyledMarkdownPreview.tsx | 12 ++++++ gui/src/redux/slices/uiStateSlice.ts | 2 +- 5 files changed, 49 insertions(+), 20 deletions(-) diff --git a/extensions/vscode/package.json b/extensions/vscode/package.json index 566784d34..3774fb309 100644 --- a/extensions/vscode/package.json +++ b/extensions/vscode/package.json @@ -350,8 +350,7 @@ { "command": "continue.applyCodeFromChat", "mac": "alt+l", - "key": "alt+l", - "when": "continue.continueGUIView.visible" + "key": "alt+l" } ], "submenus": [ diff --git a/gui/src/components/markdown/CodeBlockToolbar.tsx b/gui/src/components/markdown/CodeBlockToolbar.tsx index c751f9a3a..061860830 100644 --- a/gui/src/components/markdown/CodeBlockToolbar.tsx +++ b/gui/src/components/markdown/CodeBlockToolbar.tsx @@ -4,11 +4,12 @@ import { PlayIcon, } from "@heroicons/react/24/outline"; import { useContext, useState } from "react"; -import { useSelector } from "react-redux"; +import { useDispatch } from "react-redux"; import styled from "styled-components"; import { defaultBorderRadius, vscEditorBackground } from ".."; import { IdeMessengerContext } from "../../context/IdeMessenger"; -import { RootState } from "../../redux/store"; +import { useWebviewListener } from "../../hooks/useWebviewListener"; +import { incrementNextCodeBlockToApplyIndex } from "../../redux/slices/uiStateSlice"; import { isJetBrains } from "../../util"; import ButtonWithTooltip from "../ButtonWithTooltip"; import { CopyButton } from "./CopyButton"; @@ -39,6 +40,7 @@ interface CodeBlockToolBarProps { text: string; bottom: boolean; language: string | undefined; + isNextCodeBlock: boolean; } const terminalLanguages = ["bash", "sh"]; @@ -75,25 +77,29 @@ function isTerminalCodeBlock(language: string | undefined, text: string) { function CodeBlockToolBar(props: CodeBlockToolBarProps) { const ideMessenger = useContext(IdeMessengerContext); const [applying, setApplying] = useState(false); - - const nextCodeBlockToApplyIndex = useSelector( - (state: RootState) => state.uiState.nextCodeBlockToApplyIndex, - ); + const dispatch = useDispatch(); // Handle apply keyboard shortcut - // useWebviewListener( - // "applyCodeFromChat", - // async () => { - // await ideMessenger.request("applyToCurrentFile", { - // text: "", - // }); - // }, - // [nextCodeBlockToApplyIndex], - // ); + useWebviewListener( + "applyCodeFromChat", + async () => { + await ideMessenger.request("applyToCurrentFile", { + text: props.text, + }); + dispatch(incrementNextCodeBlockToApplyIndex({})); + }, + [props.isNextCodeBlock, props.text], + !props.isNextCodeBlock, + ); return ( - + {isJetBrains() || ( childToText(child)).join(""); } -function PreWithToolbar(props: { children: any; language: string | null }) { +function PreWithToolbar(props: { + children: any; + language: string | null; + codeBlockIndex: number; +}) { const uiConfig = useUIConfig(); const toolbarBottom = uiConfig?.codeBlockToolbarPosition == "bottom"; const [hovering, setHovering] = useState(false); const [copyValue, setCopyValue] = useState(""); + const nextCodeBlockIndex = useSelector( + (state: RootState) => state.uiState.nextCodeBlockToApplyIndex, + ); + useEffect(() => { const debouncedEffect = debounce(() => { setCopyValue(childrenToText(props.children.props.children)); @@ -48,6 +58,7 @@ function PreWithToolbar(props: { children: any; language: string | null }) { > {!toolbarBottom && hovering && ( { + let codeBlockIndex = 0; + return (tree) => { + visit(tree, { tagName: "pre" }, (node: any) => { + // Add an index (0, 1, 2, etc...) to each code block. + node.properties = { codeBlockIndex }; + codeBlockIndex++; + }); + }; + }, + {}, ], rehypeReactOptions: { components: { @@ -149,6 +160,7 @@ const StyledMarkdownPreview = memo(function StyledMarkdownPreview( return props.showCodeBorder ? ( diff --git a/gui/src/redux/slices/uiStateSlice.ts b/gui/src/redux/slices/uiStateSlice.ts index 60e9270d8..39598684a 100644 --- a/gui/src/redux/slices/uiStateSlice.ts +++ b/gui/src/redux/slices/uiStateSlice.ts @@ -12,7 +12,7 @@ export const uiStateSlice = createSlice({ showDialog: false, dialogMessage: "", dialogEntryOn: false, - nextCodeBlockToApplyIndex: -1, + nextCodeBlockToApplyIndex: 0, } as UiState, reducers: { setDialogMessage: ( From 396ca3e704527e91a97cbd599584e77297094e8d Mon Sep 17 00:00:00 2001 From: Nate Date: Fri, 13 Sep 2024 01:13:06 -0700 Subject: [PATCH 034/268] lazy ast diff algorithm --- core/diff/streamDiff.test.ts | 8 +- ...add-comments.diff => add-comments.py.diff} | 0 ...es.diff => fastapi-tabs-vs-spaces.py.diff} | 0 .../{fastapi.diff => fastapi.py.diff} | 0 .../{mock-llm.diff => mock-llm.ts.diff} | 0 core/edit/lazy/deterministic.test.ts | 126 ++++++++++++++++ core/edit/lazy/deterministic.ts | 136 ++++++++++++++++++ core/edit/lazy/prompts.ts | 1 + core/edit/lazy/test-examples/fastapi.py.diff | 37 +++++ 9 files changed, 304 insertions(+), 4 deletions(-) rename core/diff/test-examples/{add-comments.diff => add-comments.py.diff} (100%) rename core/diff/test-examples/{fastapi-tabs-vs-spaces.diff => fastapi-tabs-vs-spaces.py.diff} (100%) rename core/diff/test-examples/{fastapi.diff => fastapi.py.diff} (100%) rename core/diff/test-examples/{mock-llm.diff => mock-llm.ts.diff} (100%) create mode 100644 core/edit/lazy/deterministic.test.ts create mode 100644 core/edit/lazy/deterministic.ts create mode 100644 core/edit/lazy/test-examples/fastapi.py.diff diff --git a/core/diff/streamDiff.test.ts b/core/diff/streamDiff.test.ts index 0ad669280..13a9c3acb 100644 --- a/core/diff/streamDiff.test.ts +++ b/core/diff/streamDiff.test.ts @@ -224,18 +224,18 @@ describe("streamDiff(", () => { }); test("tabs vs. spaces differences are ignored", async () => { - await expectDiff("fastapi-tabs-vs-spaces"); + await expectDiff("fastapi-tabs-vs-spaces.py"); }); test("FastAPI example", async () => { - await expectDiff("fastapi"); + await expectDiff("fastapi.py"); }); test("FastAPI comments", async () => { - await expectDiff("add-comments"); + await expectDiff("add-comments.py"); }); test("Mock LLM example", async () => { - await expectDiff("mock-llm"); + await expectDiff("mock-llm.ts"); }); }); diff --git a/core/diff/test-examples/add-comments.diff b/core/diff/test-examples/add-comments.py.diff similarity index 100% rename from core/diff/test-examples/add-comments.diff rename to core/diff/test-examples/add-comments.py.diff diff --git a/core/diff/test-examples/fastapi-tabs-vs-spaces.diff b/core/diff/test-examples/fastapi-tabs-vs-spaces.py.diff similarity index 100% rename from core/diff/test-examples/fastapi-tabs-vs-spaces.diff rename to core/diff/test-examples/fastapi-tabs-vs-spaces.py.diff diff --git a/core/diff/test-examples/fastapi.diff b/core/diff/test-examples/fastapi.py.diff similarity index 100% rename from core/diff/test-examples/fastapi.diff rename to core/diff/test-examples/fastapi.py.diff diff --git a/core/diff/test-examples/mock-llm.diff b/core/diff/test-examples/mock-llm.ts.diff similarity index 100% rename from core/diff/test-examples/mock-llm.diff rename to core/diff/test-examples/mock-llm.ts.diff diff --git a/core/edit/lazy/deterministic.test.ts b/core/edit/lazy/deterministic.test.ts new file mode 100644 index 000000000..ca3a1c40c --- /dev/null +++ b/core/edit/lazy/deterministic.test.ts @@ -0,0 +1,126 @@ +import fs from "node:fs"; + +// @ts-ignore no typings available +import { changed, diff as myersDiff } from "myers-diff"; +import path from "node:path"; +import { DiffLine, DiffLineType } from "../.."; +import { dedent } from "../../util"; +import { deterministicApplyLazyEdit } from "./deterministic"; + +// "modification" is an extra type used to represent an "old" + "new" diff line +type MyersDiffTypes = Extract | "modification"; + +const UNIFIED_DIFF_SYMBOLS = { + same: "", + new: "+", + old: "-", +}; + +async function collectDiffs( + oldFile: string, + newFile: string, + filename: string, +): Promise<{ ourDiffs: DiffLine[]; myersDiffs: any }> { + const ourDiffs: DiffLine[] = []; + + for (const diffLine of (await deterministicApplyLazyEdit( + oldFile, + newFile, + filename, + )) ?? []) { + ourDiffs.push(diffLine); + } + + const myersDiffs = myersDiff(oldFile, newFile); + + return { ourDiffs, myersDiffs }; +} + +function getMyersDiffType(diff: any): MyersDiffTypes | undefined { + if (changed(diff.rhs) && !changed(diff.lhs)) { + return "new"; + } + + if (!changed(diff.rhs) && changed(diff.lhs)) { + return "old"; + } + + if (changed(diff.rhs) && changed(diff.lhs)) { + return "modification"; + } + + return undefined; +} + +function displayDiff(diff: DiffLine[]) { + return diff + .map(({ type, line }) => `${UNIFIED_DIFF_SYMBOLS[type]} ${line}`) + .join("\n"); +} + +async function expectDiff(file: string) { + const testFilePath = path.join( + __dirname, + "edit", + "lazy", + "test-examples", + file + ".diff", + ); + const testFileContents = fs.readFileSync(testFilePath, "utf-8"); + const [oldFile, newFile, expectedDiff] = testFileContents + .split("\n---\n") + .map((s) => s.replace(/^\n+/, "").trimEnd()); + const { ourDiffs: streamDiffs, myersDiffs } = await collectDiffs( + oldFile, + newFile, + file, + ); + const displayedDiff = displayDiff(streamDiffs); + + if (!expectedDiff || expectedDiff.trim() === "") { + console.log( + "Expected diff was empty. Writing computed diff to the test file", + ); + fs.writeFileSync( + testFilePath, + `${oldFile}\n\n---\n\n${newFile}\n\n---\n\n${displayedDiff}`, + ); + + throw new Error("Expected diff is empty"); + } + + expect(displayedDiff).toEqual(expectedDiff); +} + +describe("deterministicApplyLazyEdit(", () => { + test("no changes", async () => { + const file = dedent` + function test() { + return 1; + } + + function test2(a) { + return a * 2; + } + `; + + const { ourDiffs: streamDiffs, myersDiffs } = await collectDiffs( + file, + file, + "test.js", + ); + + expect(streamDiffs).toEqual( + file.split("\n").map((line) => ({ + line, + type: "same", + })), + ); + + expect(myersDiffs).toEqual([]); + }); + + test.only("tabs vs. spaces differences are ignored", async () => { + await expectDiff("fastapi.py"); + }); +}); diff --git a/core/edit/lazy/deterministic.ts b/core/edit/lazy/deterministic.ts new file mode 100644 index 000000000..d3da100db --- /dev/null +++ b/core/edit/lazy/deterministic.ts @@ -0,0 +1,136 @@ +import Parser from "web-tree-sitter"; +import { DiffLine } from "../.."; +import { getParserForFile } from "../../util/treeSitter"; + +// TODO: If we don't have high confidence, return undefined to fall back to slower methods +export async function deterministicApplyLazyEdit( + oldFile: string, + newLazyFile: string, + filename: string, +): Promise { + const parser = await getParserForFile(filename); + if (!parser) { + return undefined; + } + + const oldTree = parser.parse(oldFile); + const newTree = parser.parse(newLazyFile); + + const diffLines = diffNodes(oldTree.rootNode, newTree.rootNode); + + return diffLines; +} + +const COMMENT_TYPES = ["comment"]; +const LAZY_COMMENT_REGEX = /\s*...\s*.?\s...$/; +function isLazyBlock(node: Parser.SyntaxNode): boolean { + return ( + COMMENT_TYPES.includes(node.type) && LAZY_COMMENT_REGEX.test(node.text) + ); +} + +/** + * Determine whether two nodes are similar + * @param a + * @param b + * @returns + */ +function nodesAreSimilar(a: Parser.SyntaxNode, b: Parser.SyntaxNode): boolean { + if (a.type !== b.type) { + return false; + } + + return true; // TODO +} + +function nodesAreExact(a: Parser.SyntaxNode, b: Parser.SyntaxNode): boolean { + return a.text === b.text; +} + +function diffLinesForNode( + node: Parser.SyntaxNode, + type: DiffLine["type"], +): DiffLine[] { + return node.text.split("\n").map((line) => ({ + line, + type, + })); +} + +/** + * Should be like Myers diff, but lazy blocks consume all nodes until the next match + * @param newNode + * @param oldNode + * @returns + */ +function diffNodes( + oldNode: Parser.SyntaxNode, + newNode: Parser.SyntaxNode, +): DiffLine[] { + // Base case + if (nodesAreExact(oldNode, newNode)) { + return diffLinesForNode(newNode, "same"); + } + + const diffLines: DiffLine[] = []; + const leftChildren = oldNode.children; + const rightChildren = newNode.children; + let isLazy = false; + + while (leftChildren.length > 0 && rightChildren.length > 0) { + const L = leftChildren[0]; + const R = rightChildren[0]; + + // Consume lazy block + if (isLazyBlock(R)) { + isLazy = true; + rightChildren.shift(); + continue; + } + + if (isLazy) { + if (nodesAreSimilar(L, R)) { + // L ~= R + + // recurse + const subDiffs = diffNodes(L, R); + diffLines.push(...subDiffs); + + // then consume lazy, L, and R + isLazy = false; + leftChildren.shift(); + rightChildren.shift(); + } else { + // L != R, consume L + leftChildren.shift(); + } + } else { + // When not lazy, we look for the first match of L + const index = rightChildren.findIndex((node) => nodesAreSimilar(L, node)); + + if (index === -1) { + leftChildren.shift(); + diffLines.push( + // TODO: What are we returning? Iterate over the lines? + ...diffLinesForNode(L, "old"), + ); + } else { + // Match found, insert all right nodes before the match + for (let i = 0; i < index; i++) { + diffLines.push(...diffLinesForNode(rightChildren[0], "new")); + rightChildren.shift(); + } + + // then recurse at the match + const subDiffs = diffNodes(L, rightChildren[0]); + diffLines.push(...subDiffs); + + // then consume L and R + leftChildren.shift(); + rightChildren.shift(); + } + } + } + + return diffLines; +} diff --git a/core/edit/lazy/prompts.ts b/core/edit/lazy/prompts.ts index 94c7dd58d..aa8328e76 100644 --- a/core/edit/lazy/prompts.ts +++ b/core/edit/lazy/prompts.ts @@ -18,6 +18,7 @@ const RULES = [ // `You should lean toward using a smaller number of these comments rather than rewriting it for every function if all of them are unchanged.`, // `You may do this for imports as well if needed.`, // `Do not explain your changes either before or after the code block.`, + `The code should always be syntactically valid, even with the comments.`, ]; function claude35SonnetLazyApplyPrompt( diff --git a/core/edit/lazy/test-examples/fastapi.py.diff b/core/edit/lazy/test-examples/fastapi.py.diff new file mode 100644 index 000000000..030d330c6 --- /dev/null +++ b/core/edit/lazy/test-examples/fastapi.py.diff @@ -0,0 +1,37 @@ +from fastapi import FastAPI + +app = FastAPI() + +@app.get("/") +def read_root(): + return {"Hello": "World"} + +@app.get("/landing") +def read_landing_page(): + return {"message": "Welcome to the landing page"} + +--- + +from fastapi import FastAPI, HTTPException + +# ... same ... + +@app.get("/landing") +def read_landing_page(): + raise HTTPException(status_code=404, detail="Page not found") + +--- + +- from fastapi import FastAPI ++ from fastapi import FastAPI, HTTPException + + app = FastAPI() + + @app.get("/") + def read_root(): + return {"Hello": "World"} + + @app.get("/landing") + def read_landing_page(): ++ raise HTTPException(status_code=404, detail="Page not found") +- return {"message": "Welcome to the landing page"} \ No newline at end of file From a0e503fde00397da746911bd96d0ed18cc0e4a17 Mon Sep 17 00:00:00 2001 From: Nate Date: Fri, 13 Sep 2024 14:49:01 -0700 Subject: [PATCH 035/268] stuff --- core/edit/lazy/deterministic.test.ts | 6 +- core/edit/lazy/streamLazyApply.ts | 15 +-- .../lazy/test-examples/calculator-exp.js.diff | 99 +++++++++++++++++++ .../vscode/src/extension/VsCodeMessenger.ts | 12 +++ 4 files changed, 125 insertions(+), 7 deletions(-) create mode 100644 core/edit/lazy/test-examples/calculator-exp.js.diff diff --git a/core/edit/lazy/deterministic.test.ts b/core/edit/lazy/deterministic.test.ts index ca3a1c40c..c061bf681 100644 --- a/core/edit/lazy/deterministic.test.ts +++ b/core/edit/lazy/deterministic.test.ts @@ -120,7 +120,11 @@ describe("deterministicApplyLazyEdit(", () => { expect(myersDiffs).toEqual([]); }); - test.only("tabs vs. spaces differences are ignored", async () => { + test.only("fastapi", async () => { + await expectDiff("fastapi.py"); + }); + + test.only("calculator exp", async () => { await expectDiff("fastapi.py"); }); }); diff --git a/core/edit/lazy/streamLazyApply.ts b/core/edit/lazy/streamLazyApply.ts index 9d667ea57..a9378bfa3 100644 --- a/core/edit/lazy/streamLazyApply.ts +++ b/core/edit/lazy/streamLazyApply.ts @@ -14,6 +14,7 @@ export async function* streamLazyApply( filename: string, newCode: string, llm: ILLM, + fastLlm: ILLM, ): AsyncGenerator { const promptFactory = lazyApplyPromptForModel(llm.model, llm.providerName); if (!promptFactory) { @@ -33,19 +34,21 @@ export async function* streamLazyApply( oldCode, linesBefore, linesAfter, - llm, + fastLlm, )) { yield line; } // let r = getReplacementByMatching(oldCode, linesBefore, linesAfter); // if (r) { - // return r; - // } - // r = await getReplacementWithLlm(oldCode, linesBefore, linesAfter, llm); - // if (r) { - // return r; + // for (let line of r.split("\n")) { + // yield line; + // } // } + // // r = await getReplacementWithLlm(oldCode, linesBefore, linesAfter, llm); + // // if (r) { + // // return r; + // // } // return "// NO REPLACEMENT FOUND"; } diff --git a/core/edit/lazy/test-examples/calculator-exp.js.diff b/core/edit/lazy/test-examples/calculator-exp.js.diff new file mode 100644 index 000000000..1652cfc22 --- /dev/null +++ b/core/edit/lazy/test-examples/calculator-exp.js.diff @@ -0,0 +1,99 @@ +class Calculator { + constructor() { + this.result = 0; + } + + add(number) { + this.result += number; + return this; + } + + subtract(number) { + this.result -= number; + return this; + } + + multiply(number) { + this.result *= number; + return this; + } + + divide(number) { + if (number === 0) { + throw new Error("Cannot divide by zero"); + } + this.result /= number; + return this; + } + + getResult() { + return this.result; + } + + reset() { + this.result = 0; + return this; + } +} + +--- + +class Calculator { + constructor() { + this.result = 0; + } + + // ... same ... + + exp(a) { + this.result = Math.pow(this.result, a); + return this; + } + + // ... same ... +} + +--- + +class Calculator { + constructor() { + this.result = 0; + } + + add(number) { + this.result += number; + return this; + } + + subtract(number) { + this.result -= number; + return this; + } + + multiply(number) { + this.result *= number; + return this; + } + + divide(number) { + if (number === 0) { + throw new Error("Cannot divide by zero"); + } + this.result /= number; + return this; + } ++ ++ exp(a) { ++ this.result = Math.pow(this.result, a); ++ return this; ++ } + + getResult() { + return this.result; + } + + reset() { + this.result = 0; + return this; + } +} \ No newline at end of file diff --git a/extensions/vscode/src/extension/VsCodeMessenger.ts b/extensions/vscode/src/extension/VsCodeMessenger.ts index a3dd065e7..c72ac3785 100644 --- a/extensions/vscode/src/extension/VsCodeMessenger.ts +++ b/extensions/vscode/src/extension/VsCodeMessenger.ts @@ -1,3 +1,4 @@ +import { ILLM } from "core"; import { ConfigHandler } from "core/config/ConfigHandler"; import { streamLazyApply } from "core/edit/lazy/streamLazyApply"; import { @@ -147,12 +148,23 @@ export class VsCodeMessenger { return; } + let fastLlm: ILLM | undefined; + if (config.experimental?.modelRoles?.repoMapFileSelection) { + fastLlm = config.models.find( + (model) => + model.title === + config.experimental?.modelRoles?.repoMapFileSelection, + ); + } + fastLlm ??= llm; + // Generate the diff and pass through diff manager const diffLines = streamLazyApply( editor.document.getText(), getBasename(editor.document.fileName), msg.data.text, llm, + fastLlm, ); const verticalDiffManager = await this.verticalDiffManagerPromise; verticalDiffManager.streamDiffLines(diffLines); From fe58421cc4e39f5af471280d527f10392f855a3c Mon Sep 17 00:00:00 2001 From: Nate Date: Fri, 13 Sep 2024 15:45:24 -0700 Subject: [PATCH 036/268] myers diff utility --- core/diff/myers.test.ts | 23 +++++++++++++++++++++++ core/diff/myers.ts | 19 +++++++++++++++++++ core/edit/lazy/deterministic.ts | 10 ++++++++++ core/package-lock.json | 16 ++++++++++++++++ core/package.json | 2 ++ 5 files changed, 70 insertions(+) create mode 100644 core/diff/myers.test.ts create mode 100644 core/diff/myers.ts diff --git a/core/diff/myers.test.ts b/core/diff/myers.test.ts new file mode 100644 index 000000000..5d68cfabf --- /dev/null +++ b/core/diff/myers.test.ts @@ -0,0 +1,23 @@ +import { dedent } from "../util"; +import { myersDiff } from "./myers"; + +describe("Test myers diff function", () => { + test("should ...", () => { + const linesA = dedent` + A + B + C + D + E + `; + const linesB = dedent` + A + B + C' + D' + E + `; + const diffLines = myersDiff(linesA, linesB); + console.log(diffLines); + }); +}); diff --git a/core/diff/myers.ts b/core/diff/myers.ts new file mode 100644 index 000000000..6fca96668 --- /dev/null +++ b/core/diff/myers.ts @@ -0,0 +1,19 @@ +import { diffLines } from "diff"; +import { DiffLine } from ".."; + +const headerLineRegex = /^\s*@@ -(\d+),\d+ \+(\d+),\d+ @@/i; +const noNewLineRegex = /\\ No newline at end of file/; +export function myersDiff(oldContent: string, newContent: string): DiffLine[] { + const theirFormat = diffLines(oldContent, newContent); + const ourFormat = theirFormat.flatMap((change) => { + const type: DiffLine["type"] = change.added + ? "new" + : change.removed + ? "old" + : "same"; + const lines = change.value.split("\n"); + return lines.map((line) => ({ type, line })); + }); + + return ourFormat; +} diff --git a/core/edit/lazy/deterministic.ts b/core/edit/lazy/deterministic.ts index d3da100db..ad4132524 100644 --- a/core/edit/lazy/deterministic.ts +++ b/core/edit/lazy/deterministic.ts @@ -1,5 +1,6 @@ import Parser from "web-tree-sitter"; import { DiffLine } from "../.."; +import { myersDiff } from "../../diff/myers"; import { getParserForFile } from "../../util/treeSitter"; // TODO: If we don't have high confidence, return undefined to fall back to slower methods @@ -72,6 +73,15 @@ function diffNodes( return diffLinesForNode(newNode, "same"); } + // Other base case: no lazy blocks => use line-by-line diff + const firstLazyBlockIndex = newNode.children.find((child) => + isLazyBlock(child), + ); + if (!firstLazyBlockIndex) { + const diffLines = myersDiff(oldNode.text, newNode.text); + return diffLines; + } + const diffLines: DiffLine[] = []; const leftChildren = oldNode.children; const rightChildren = newNode.children; diff --git a/core/package-lock.json b/core/package-lock.json index a3332dc01..f74caf540 100644 --- a/core/package-lock.json +++ b/core/package-lock.json @@ -26,6 +26,7 @@ "commander": "^12.0.0", "comment-json": "^4.2.3", "dbinfoz": "^0.1.4", + "diff": "^7.0.0", "dotenv": "^16.4.5", "fastest-levenshtein": "^1.0.16", "follow-redirects": "^1.15.5", @@ -69,6 +70,7 @@ "@babel/preset-env": "^7.24.7", "@biomejs/biome": "1.6.4", "@google/generative-ai": "^0.11.4", + "@types/diff": "^5.2.2", "@types/follow-redirects": "^1.14.4", "@types/jest": "^29.5.12", "@types/jquery": "^3.5.29", @@ -4756,6 +4758,12 @@ "integrity": "sha512-n7RlEEJ+4x4TS7ZQddTmNSxP+zziEG0TNsMfiRIxcIVXt71ENJ9ojeXmGO3wPoTdn7pJcU2xc3CJYMktNT6DPg==", "peer": true }, + "node_modules/@types/diff": { + "version": "5.2.2", + "resolved": "https://registry.npmjs.org/@types/diff/-/diff-5.2.2.tgz", + "integrity": "sha512-qVqLpd49rmJA2nZzLVsmfS/aiiBpfVE95dHhPVwG0NmSBAt+riPxnj53wq2oBq5m4Q2RF1IWFEUpnZTgrQZfEQ==", + "dev": true + }, "node_modules/@types/follow-redirects": { "version": "1.14.4", "resolved": "https://registry.npmjs.org/@types/follow-redirects/-/follow-redirects-1.14.4.tgz", @@ -6922,6 +6930,14 @@ "resolved": "https://registry.npmjs.org/devtools-protocol/-/devtools-protocol-0.0.1312386.tgz", "integrity": "sha512-DPnhUXvmvKT2dFA/j7B+riVLUt9Q6RKJlcppojL5CoRywJJKLDYnRlw0gTFKfgDPHP5E04UoB71SxoJlVZy8FA==" }, + "node_modules/diff": { + "version": "7.0.0", + "resolved": "https://registry.npmjs.org/diff/-/diff-7.0.0.tgz", + "integrity": "sha512-PJWHUb1RFevKCwaFA9RlG5tCd+FO5iRh9A8HEtkmBH2Li03iJriB6m6JIN4rGz3K3JLawI7/veA1xzRKP6ISBw==", + "engines": { + "node": ">=0.3.1" + } + }, "node_modules/diff-sequences": { "version": "29.6.3", "resolved": "https://registry.npmjs.org/diff-sequences/-/diff-sequences-29.6.3.tgz", diff --git a/core/package.json b/core/package.json index f261f7078..c63c05283 100644 --- a/core/package.json +++ b/core/package.json @@ -15,6 +15,7 @@ "@babel/preset-env": "^7.24.7", "@biomejs/biome": "1.6.4", "@google/generative-ai": "^0.11.4", + "@types/diff": "^5.2.2", "@types/follow-redirects": "^1.14.4", "@types/jest": "^29.5.12", "@types/jquery": "^3.5.29", @@ -55,6 +56,7 @@ "commander": "^12.0.0", "comment-json": "^4.2.3", "dbinfoz": "^0.1.4", + "diff": "^7.0.0", "dotenv": "^16.4.5", "fastest-levenshtein": "^1.0.16", "follow-redirects": "^1.15.5", From 48031dab0693379a41e849a17e9d28776876ec77 Mon Sep 17 00:00:00 2001 From: Nate Date: Fri, 13 Sep 2024 17:12:22 -0700 Subject: [PATCH 037/268] checkpoint --- core/diff/myers.ts | 4 +- core/diff/streamDiff.test.ts | 7 +-- core/diff/util.ts | 7 +++ core/edit/lazy/deterministic.ts | 60 +++++++++++++++---- core/edit/lazy/findInAst.ts | 16 +++++ core/edit/lazy/test-examples/fastapi.py.diff | 4 +- extensions/vscode/package-lock.json | 2 + .../vscode/src/extension/VsCodeMessenger.ts | 19 ++++-- gui/package-lock.json | 2 + 9 files changed, 93 insertions(+), 28 deletions(-) create mode 100644 core/edit/lazy/findInAst.ts diff --git a/core/diff/myers.ts b/core/diff/myers.ts index 6fca96668..0a8eac3a8 100644 --- a/core/diff/myers.ts +++ b/core/diff/myers.ts @@ -1,8 +1,6 @@ import { diffLines } from "diff"; import { DiffLine } from ".."; -const headerLineRegex = /^\s*@@ -(\d+),\d+ \+(\d+),\d+ @@/i; -const noNewLineRegex = /\\ No newline at end of file/; export function myersDiff(oldContent: string, newContent: string): DiffLine[] { const theirFormat = diffLines(oldContent, newContent); const ourFormat = theirFormat.flatMap((change) => { @@ -11,7 +9,7 @@ export function myersDiff(oldContent: string, newContent: string): DiffLine[] { : change.removed ? "old" : "same"; - const lines = change.value.split("\n"); + const lines = change.value.trimEnd().split("\n"); return lines.map((line) => ({ type, line })); }); diff --git a/core/diff/streamDiff.test.ts b/core/diff/streamDiff.test.ts index 13a9c3acb..0b884369e 100644 --- a/core/diff/streamDiff.test.ts +++ b/core/diff/streamDiff.test.ts @@ -4,6 +4,7 @@ import { DiffLine, DiffLineType } from "../index.js"; // @ts-ignore no typings available import { changed, diff as myersDiff } from "myers-diff"; import path from "node:path"; +import { generateLines } from "./util.js"; // "modification" is an extra type used to represent an "old" + "new" diff line type MyersDiffTypes = Extract | "modification"; @@ -14,12 +15,6 @@ const UNIFIED_DIFF_SYMBOLS = { old: "-", }; -async function* generateLines(lines: string[]): AsyncGenerator { - for (const line of lines) { - yield line; - } -} - async function collectDiffs( oldLines: string[], newLines: string[], diff --git a/core/diff/util.ts b/core/diff/util.ts index 685a29a43..6d218bcbf 100644 --- a/core/diff/util.ts +++ b/core/diff/util.ts @@ -121,3 +121,10 @@ export async function* streamLines( } } } + +export async function* generateLines(lines: T[]): AsyncGenerator { + for (const line of lines) { + yield line; + // await new Promise((resolve, reject) => setTimeout(() => resolve(null), 50)); + } +} diff --git a/core/edit/lazy/deterministic.ts b/core/edit/lazy/deterministic.ts index ad4132524..aa72d6bc7 100644 --- a/core/edit/lazy/deterministic.ts +++ b/core/edit/lazy/deterministic.ts @@ -1,7 +1,9 @@ +import { distance } from "fastest-levenshtein"; import Parser from "web-tree-sitter"; import { DiffLine } from "../.."; import { myersDiff } from "../../diff/myers"; import { getParserForFile } from "../../util/treeSitter"; +import { findInAst } from "./findInAst"; // TODO: If we don't have high confidence, return undefined to fall back to slower methods export async function deterministicApplyLazyEdit( @@ -41,7 +43,18 @@ function nodesAreSimilar(a: Parser.SyntaxNode, b: Parser.SyntaxNode): boolean { return false; } - return true; // TODO + if ( + a.children[0]?.text === b.children[0]?.text && + a.children[1]?.text === b.children[1]?.text + ) { + return true; + } + + const lineOneA = a.text.split("\n")[0]; + const lineOneB = b.text.split("\n")[0]; + + const levDist = distance(lineOneA, lineOneB); + return levDist / Math.min(lineOneA.length, lineOneB.length) <= 0.25; } function nodesAreExact(a: Parser.SyntaxNode, b: Parser.SyntaxNode): boolean { @@ -74,12 +87,10 @@ function diffNodes( } // Other base case: no lazy blocks => use line-by-line diff - const firstLazyBlockIndex = newNode.children.find((child) => - isLazyBlock(child), - ); - if (!firstLazyBlockIndex) { - const diffLines = myersDiff(oldNode.text, newNode.text); - return diffLines; + const firstLazyNodeInSubtree = findInAst(newNode, isLazyBlock); + if (!firstLazyNodeInSubtree) { + const myersDiffLines = myersDiff(oldNode.text, newNode.text); + return myersDiffLines; } const diffLines: DiffLine[] = []; @@ -87,6 +98,30 @@ function diffNodes( const rightChildren = newNode.children; let isLazy = false; + // Deal with any leading whitespace in this node + const leadingNewlines = + leftChildren[0].startPosition.row - oldNode.endPosition.row; + for (let i = 1; i < leadingNewlines - 1; ++i) { + diffLines.push({ type: "same", line: "" }); + } + + function consumeLeftChild(L: Parser.SyntaxNode) { + leftChildren.shift(); + const nextNode = leftChildren[0]; + + if (!nextNode) { + return; + } + + const blankLinesBetween = nextNode.startPosition.row - L.endPosition.row; + for (let i = 0; i < blankLinesBetween - 1; i++) { + diffLines.push({ + type: "same", + line: "", + }); + } + } + while (leftChildren.length > 0 && rightChildren.length > 0) { const L = leftChildren[0]; const R = rightChildren[0]; @@ -108,22 +143,25 @@ function diffNodes( // then consume lazy, L, and R isLazy = false; - leftChildren.shift(); + consumeLeftChild(L); rightChildren.shift(); } else { + // Push "same" lines + diffLines.push(...diffLinesForNode(L, "same")); + // L != R, consume L - leftChildren.shift(); + consumeLeftChild(L); } } else { // When not lazy, we look for the first match of L const index = rightChildren.findIndex((node) => nodesAreSimilar(L, node)); if (index === -1) { - leftChildren.shift(); diffLines.push( // TODO: What are we returning? Iterate over the lines? ...diffLinesForNode(L, "old"), ); + consumeLeftChild(L); } else { // Match found, insert all right nodes before the match for (let i = 0; i < index; i++) { @@ -136,7 +174,7 @@ function diffNodes( diffLines.push(...subDiffs); // then consume L and R - leftChildren.shift(); + consumeLeftChild(L); rightChildren.shift(); } } diff --git a/core/edit/lazy/findInAst.ts b/core/edit/lazy/findInAst.ts new file mode 100644 index 000000000..9f47355b8 --- /dev/null +++ b/core/edit/lazy/findInAst.ts @@ -0,0 +1,16 @@ +import Parser from "web-tree-sitter"; + +export function findInAst( + node: Parser.SyntaxNode, + criterion: (node: Parser.SyntaxNode) => boolean, +): Parser.SyntaxNode | null { + const stack = [node]; + while (stack.length > 0) { + let node = stack.pop()!; + if (criterion(node)) { + return node; + } + stack.push(...node.children); + } + return null; +} diff --git a/core/edit/lazy/test-examples/fastapi.py.diff b/core/edit/lazy/test-examples/fastapi.py.diff index 030d330c6..0bf713ae7 100644 --- a/core/edit/lazy/test-examples/fastapi.py.diff +++ b/core/edit/lazy/test-examples/fastapi.py.diff @@ -33,5 +33,5 @@ def read_landing_page(): @app.get("/landing") def read_landing_page(): -+ raise HTTPException(status_code=404, detail="Page not found") -- return {"message": "Welcome to the landing page"} \ No newline at end of file +- return {"message": "Welcome to the landing page"} ++ raise HTTPException(status_code=404, detail="Page not found") \ No newline at end of file diff --git a/extensions/vscode/package-lock.json b/extensions/vscode/package-lock.json index cc7f02c23..41d58e35a 100644 --- a/extensions/vscode/package-lock.json +++ b/extensions/vscode/package-lock.json @@ -112,6 +112,7 @@ "commander": "^12.0.0", "comment-json": "^4.2.3", "dbinfoz": "^0.1.4", + "diff": "^7.0.0", "dotenv": "^16.4.5", "fastest-levenshtein": "^1.0.16", "follow-redirects": "^1.15.5", @@ -155,6 +156,7 @@ "@babel/preset-env": "^7.24.7", "@biomejs/biome": "1.6.4", "@google/generative-ai": "^0.11.4", + "@types/diff": "^5.2.2", "@types/follow-redirects": "^1.14.4", "@types/jest": "^29.5.12", "@types/jquery": "^3.5.29", diff --git a/extensions/vscode/src/extension/VsCodeMessenger.ts b/extensions/vscode/src/extension/VsCodeMessenger.ts index c72ac3785..7ad953f8c 100644 --- a/extensions/vscode/src/extension/VsCodeMessenger.ts +++ b/extensions/vscode/src/extension/VsCodeMessenger.ts @@ -1,6 +1,7 @@ import { ILLM } from "core"; import { ConfigHandler } from "core/config/ConfigHandler"; -import { streamLazyApply } from "core/edit/lazy/streamLazyApply"; +import { generateLines } from "core/diff/util"; +import { deterministicApplyLazyEdit } from "core/edit/lazy/deterministic"; import { FromCoreProtocol, FromWebviewProtocol, @@ -159,15 +160,21 @@ export class VsCodeMessenger { fastLlm ??= llm; // Generate the diff and pass through diff manager - const diffLines = streamLazyApply( + // const diffLines = streamLazyApply( + // editor.document.getText(), + // getBasename(editor.document.fileName), + // msg.data.text, + // llm, + // fastLlm, + // ); + const diffLines = await deterministicApplyLazyEdit( editor.document.getText(), - getBasename(editor.document.fileName), msg.data.text, - llm, - fastLlm, + getBasename(editor.document.fileName), ); + const diffGenerator = generateLines(diffLines!); const verticalDiffManager = await this.verticalDiffManagerPromise; - verticalDiffManager.streamDiffLines(diffLines); + verticalDiffManager.streamDiffLines(diffGenerator); }); this.onWebview("showTutorial", async (msg) => { diff --git a/gui/package-lock.json b/gui/package-lock.json index 589d7578f..900492655 100644 --- a/gui/package-lock.json +++ b/gui/package-lock.json @@ -105,6 +105,7 @@ "commander": "^12.0.0", "comment-json": "^4.2.3", "dbinfoz": "^0.1.4", + "diff": "^7.0.0", "dotenv": "^16.4.5", "fastest-levenshtein": "^1.0.16", "follow-redirects": "^1.15.5", @@ -148,6 +149,7 @@ "@babel/preset-env": "^7.24.7", "@biomejs/biome": "1.6.4", "@google/generative-ai": "^0.11.4", + "@types/diff": "^5.2.2", "@types/follow-redirects": "^1.14.4", "@types/jest": "^29.5.12", "@types/jquery": "^3.5.29", From c4f2881bf515c34536af641e281b1d507e7017c7 Mon Sep 17 00:00:00 2001 From: Nate Date: Fri, 13 Sep 2024 18:11:44 -0700 Subject: [PATCH 038/268] checkpoint instant apply v2 --- core/diff/myers.ts | 22 +++++----- core/edit/lazy/deterministic.ts | 10 +++-- core/edit/lazy/deterministic2.ts | 40 +++++++++++++++++++ .../vscode/src/extension/VsCodeMessenger.ts | 4 +- 4 files changed, 60 insertions(+), 16 deletions(-) create mode 100644 core/edit/lazy/deterministic2.ts diff --git a/core/diff/myers.ts b/core/diff/myers.ts index 0a8eac3a8..16600e5d4 100644 --- a/core/diff/myers.ts +++ b/core/diff/myers.ts @@ -1,17 +1,19 @@ -import { diffLines } from "diff"; +import { diffLines, type Change } from "diff"; import { DiffLine } from ".."; +export function convertMyersChangeToDiffLines(change: Change): DiffLine[] { + const type: DiffLine["type"] = change.added + ? "new" + : change.removed + ? "old" + : "same"; + const lines = change.value.trimEnd().split("\n"); + return lines.map((line) => ({ type, line })); +} + export function myersDiff(oldContent: string, newContent: string): DiffLine[] { const theirFormat = diffLines(oldContent, newContent); - const ourFormat = theirFormat.flatMap((change) => { - const type: DiffLine["type"] = change.added - ? "new" - : change.removed - ? "old" - : "same"; - const lines = change.value.trimEnd().split("\n"); - return lines.map((line) => ({ type, line })); - }); + const ourFormat = theirFormat.flatMap(convertMyersChangeToDiffLines); return ourFormat; } diff --git a/core/edit/lazy/deterministic.ts b/core/edit/lazy/deterministic.ts index aa72d6bc7..6a0276aef 100644 --- a/core/edit/lazy/deterministic.ts +++ b/core/edit/lazy/deterministic.ts @@ -25,11 +25,13 @@ export async function deterministicApplyLazyEdit( } const COMMENT_TYPES = ["comment"]; -const LAZY_COMMENT_REGEX = /\s*...\s*.?\s...$/; +const LAZY_COMMENT_REGEX = /\.{3}\s*(.+?)\s*\.{3}/; +export function isLazyLine(text: string): boolean { + return LAZY_COMMENT_REGEX.test(text); +} + function isLazyBlock(node: Parser.SyntaxNode): boolean { - return ( - COMMENT_TYPES.includes(node.type) && LAZY_COMMENT_REGEX.test(node.text) - ); + return COMMENT_TYPES.includes(node.type) && isLazyLine(node.text); } /** diff --git a/core/edit/lazy/deterministic2.ts b/core/edit/lazy/deterministic2.ts new file mode 100644 index 000000000..868c4c370 --- /dev/null +++ b/core/edit/lazy/deterministic2.ts @@ -0,0 +1,40 @@ +import { diffLines } from "diff"; +import { DiffLine } from "../.."; +import { convertMyersChangeToDiffLines } from "../../diff/myers"; +import { isLazyLine } from "./deterministic"; + +export async function deterministicApplyLazyEdit2( + oldFile: string, + newLazyFile: string, + filename: string, +): Promise { + const theirFormat = diffLines(oldFile, newLazyFile); + const lines: DiffLine[] = []; + + const removedLinesBuffer: DiffLine[] = []; + + for (const change of theirFormat) { + if (!change.added && !change.removed) { + lines.push(...removedLinesBuffer); + removedLinesBuffer.length = 0; + lines.push(...convertMyersChangeToDiffLines(change)); + } else if (change.added && isLazyLine(change.value.trim())) { + lines.push( + ...removedLinesBuffer.map((diffLine) => ({ + ...diffLine, + type: "same" as const, + })), + ); + removedLinesBuffer.length = 0; + } else if (change.added) { + lines.push(...removedLinesBuffer); + removedLinesBuffer.length = 0; + lines.push(...convertMyersChangeToDiffLines(change)); + } else if (change.removed) { + removedLinesBuffer.push(...convertMyersChangeToDiffLines(change)); + } + } + + lines.push(...removedLinesBuffer); + return lines; +} diff --git a/extensions/vscode/src/extension/VsCodeMessenger.ts b/extensions/vscode/src/extension/VsCodeMessenger.ts index 7ad953f8c..b9ca68b30 100644 --- a/extensions/vscode/src/extension/VsCodeMessenger.ts +++ b/extensions/vscode/src/extension/VsCodeMessenger.ts @@ -1,7 +1,7 @@ import { ILLM } from "core"; import { ConfigHandler } from "core/config/ConfigHandler"; import { generateLines } from "core/diff/util"; -import { deterministicApplyLazyEdit } from "core/edit/lazy/deterministic"; +import { deterministicApplyLazyEdit2 } from "core/edit/lazy/deterministic2"; import { FromCoreProtocol, FromWebviewProtocol, @@ -167,7 +167,7 @@ export class VsCodeMessenger { // llm, // fastLlm, // ); - const diffLines = await deterministicApplyLazyEdit( + const diffLines = await deterministicApplyLazyEdit2( editor.document.getText(), msg.data.text, getBasename(editor.document.fileName), From 7c0d10e744e2cb5dd79b0ed40c87429520b0719c Mon Sep 17 00:00:00 2001 From: Nate Date: Fri, 13 Sep 2024 19:31:58 -0700 Subject: [PATCH 039/268] progress --- core/diff/myers.ts | 8 +- core/edit/lazy/deterministic.test.ts | 23 +++- core/edit/lazy/deterministic2.ts | 29 +++- .../test-examples/calculator-comments.js.diff | 129 ++++++++++++++++++ 4 files changed, 182 insertions(+), 7 deletions(-) create mode 100644 core/edit/lazy/test-examples/calculator-comments.js.diff diff --git a/core/diff/myers.ts b/core/diff/myers.ts index 16600e5d4..06b0ce7ec 100644 --- a/core/diff/myers.ts +++ b/core/diff/myers.ts @@ -7,7 +7,13 @@ export function convertMyersChangeToDiffLines(change: Change): DiffLine[] { : change.removed ? "old" : "same"; - const lines = change.value.trimEnd().split("\n"); + const lines = change.value.split("\n"); + + // `diff` package is always adding an extra new line at the end of the array + if (lines[lines.length - 1] === "") { + lines.pop(); + } + return lines.map((line) => ({ type, line })); } diff --git a/core/edit/lazy/deterministic.test.ts b/core/edit/lazy/deterministic.test.ts index c061bf681..c146df0cf 100644 --- a/core/edit/lazy/deterministic.test.ts +++ b/core/edit/lazy/deterministic.test.ts @@ -5,7 +5,7 @@ import { changed, diff as myersDiff } from "myers-diff"; import path from "node:path"; import { DiffLine, DiffLineType } from "../.."; import { dedent } from "../../util"; -import { deterministicApplyLazyEdit } from "./deterministic"; +import { deterministicApplyLazyEdit2 as deterministicApplyLazyEdit } from "./deterministic2"; // "modification" is an extra type used to represent an "old" + "new" diff line type MyersDiffTypes = Extract | "modification"; @@ -58,6 +58,13 @@ function displayDiff(diff: DiffLine[]) { .join("\n"); } +function normalizeDisplayedDiff(d: string): string { + return d + .split("\n") + .map((line) => (line.trim() === "" ? "" : line)) + .join("\n"); +} + async function expectDiff(file: string) { const testFilePath = path.join( __dirname, @@ -89,7 +96,9 @@ async function expectDiff(file: string) { throw new Error("Expected diff is empty"); } - expect(displayedDiff).toEqual(expectedDiff); + expect(normalizeDisplayedDiff(displayedDiff)).toEqual( + normalizeDisplayedDiff(expectedDiff), + ); } describe("deterministicApplyLazyEdit(", () => { @@ -120,11 +129,15 @@ describe("deterministicApplyLazyEdit(", () => { expect(myersDiffs).toEqual([]); }); - test.only("fastapi", async () => { + test("fastapi", async () => { await expectDiff("fastapi.py"); }); - test.only("calculator exp", async () => { - await expectDiff("fastapi.py"); + test("calculator exp", async () => { + await expectDiff("calculator-exp.js"); + }); + + test.only("calculator comments", async () => { + await expectDiff("calculator-comments.js"); }); }); diff --git a/core/edit/lazy/deterministic2.ts b/core/edit/lazy/deterministic2.ts index 868c4c370..ae1a1bbbf 100644 --- a/core/edit/lazy/deterministic2.ts +++ b/core/edit/lazy/deterministic2.ts @@ -8,7 +8,26 @@ export async function deterministicApplyLazyEdit2( newLazyFile: string, filename: string, ): Promise { - const theirFormat = diffLines(oldFile, newLazyFile); + // // Strip surrounding new lines away from lazy blocks + // const lazyFileLines = newLazyFile.split("\n"); + // const processedLazyFileLines = []; + // for (let i = 0; i < lazyFileLines.length - 1; ++i) { + // const line = lazyFileLines[i]; + // const nextLine = lazyFileLines[i + 1]; + // if (line.trim() === "" && isLazyLine(nextLine)) { + // continue; + // } else if (isLazyLine(line) && nextLine.trim() === "") { + // i++; + // processedLazyFileLines.push(line); + // continue; + // } + // processedLazyFileLines.push(line); + // } + // newLazyFile = processedLazyFileLines.join("\n"); + + const theirFormat = diffLines(oldFile, newLazyFile, { + newlineIsToken: false, + }); const lines: DiffLine[] = []; const removedLinesBuffer: DiffLine[] = []; @@ -26,6 +45,14 @@ export async function deterministicApplyLazyEdit2( })), ); removedLinesBuffer.length = 0; + if (!isLazyLine(change.value.split("\n")[0])) { + lines.push( + ...convertMyersChangeToDiffLines({ + ...change, + value: change.value.split("\n").slice(0, -1).join("\n"), + }), + ); + } } else if (change.added) { lines.push(...removedLinesBuffer); removedLinesBuffer.length = 0; diff --git a/core/edit/lazy/test-examples/calculator-comments.js.diff b/core/edit/lazy/test-examples/calculator-comments.js.diff new file mode 100644 index 000000000..da4c6f5bc --- /dev/null +++ b/core/edit/lazy/test-examples/calculator-comments.js.diff @@ -0,0 +1,129 @@ +class Calculator { + constructor() { + this.result = 0; + } + + add(number) { + this.result += number; + return this; + } + + subtract(number) { + this.result -= number; + return this; + } + + multiply(number) { + this.result *= number; + return this; + } + + divide(number) { + if (number === 0) { + throw new Error("Cannot divide by zero"); + } + this.result /= number; + return this; + } + + getResult() { + return this.result; + } + + reset() { + this.result = 0; + return this; + } +} + +--- + +class Calculator { + // ... existing code ... + + // Adds the given number to the result + add(number) { + this.result += number; + return this; + } + + // Subtracts the given number from the result + subtract(number) { + this.result -= number; + return this; + } + + // Multiplies the result by the given number + multiply(number) { + this.result *= number; + return this; + } + + // Divides the result by the given number + // Throws an error if attempting to divide by zero + divide(number) { + if (number === 0) { + throw new Error("Cannot divide by zero"); + } + this.result /= number; + return this; + } + + // Returns the current result + getResult() { + return this.result; + } + + // Resets the result to zero + reset() { + this.result = 0; + return this; + } +} + +--- + + class Calculator { + constructor() { + this.result = 0; + } + ++ // Adds the given number to the result + add(number) { + this.result += number; + return this; + } + ++ // Subtracts the given number from the result + subtract(number) { + this.result -= number; + return this; + } + ++ // Multiplies the result by the given number + multiply(number) { + this.result *= number; + return this; + } + ++ // Divides the result by the given number ++ // Throws an error if attempting to divide by zero + divide(number) { + if (number === 0) { + throw new Error("Cannot divide by zero"); + } + this.result /= number; + return this; + } + ++ // Returns the current result + getResult() { + return this.result; + } + ++ // Resets the result to zero + reset() { + this.result = 0; + return this; + } + } \ No newline at end of file From a21d3e026ac65bfe031f3fcebe805697fa5ccb10 Mon Sep 17 00:00:00 2001 From: Nate Date: Fri, 13 Sep 2024 20:11:02 -0700 Subject: [PATCH 040/268] bubble up lazy blocks --- core/edit/lazy/deterministic2.ts | 36 +++++++++++++++++++++++++++++--- 1 file changed, 33 insertions(+), 3 deletions(-) diff --git a/core/edit/lazy/deterministic2.ts b/core/edit/lazy/deterministic2.ts index ae1a1bbbf..2ffffd43a 100644 --- a/core/edit/lazy/deterministic2.ts +++ b/core/edit/lazy/deterministic2.ts @@ -1,8 +1,37 @@ -import { diffLines } from "diff"; +import { diffLines, type Change } from "diff"; import { DiffLine } from "../.."; import { convertMyersChangeToDiffLines } from "../../diff/myers"; import { isLazyLine } from "./deterministic"; +function bubbleUpLazyBlocks(originalChanges: Change[]): Change[] { + const changes = [...originalChanges]; + for (let i = 1; i < changes.length; i++) { + const change = changes[i]; + if ( + // Single line + change.count === 1 && + // lazy line + isLazyLine(change.value) && + // with a removal above + changes[i - 1].removed + ) { + // Bubble up and merge together the removals into a single remove change + while ( + i + 1 < changes.length && + (changes[i + 1].value.trim() === "" || changes[i + 1].removed) + ) { + // Merge the removed/new line with the removal above + const changeValue = changes[i + 1].value; + changes[i - 1].value += changeValue; + + // and then delete + changes.splice(i + 1, 1); + } + } + } + return changes; +} + export async function deterministicApplyLazyEdit2( oldFile: string, newLazyFile: string, @@ -25,13 +54,14 @@ export async function deterministicApplyLazyEdit2( // } // newLazyFile = processedLazyFileLines.join("\n"); - const theirFormat = diffLines(oldFile, newLazyFile, { + let theirFormat = diffLines(oldFile, newLazyFile, { newlineIsToken: false, }); const lines: DiffLine[] = []; - const removedLinesBuffer: DiffLine[] = []; + theirFormat = bubbleUpLazyBlocks(theirFormat); + for (const change of theirFormat) { if (!change.added && !change.removed) { lines.push(...removedLinesBuffer); From 85d4d4f4f140e886a6f6c13f3f8da8723ae179d3 Mon Sep 17 00:00:00 2001 From: Nate Date: Sat, 14 Sep 2024 14:21:46 -0700 Subject: [PATCH 041/268] update os context provider --- core/context/providers/OSContextProvider.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/context/providers/OSContextProvider.ts b/core/context/providers/OSContextProvider.ts index 5f06e5f3d..e0894a1cd 100644 --- a/core/context/providers/OSContextProvider.ts +++ b/core/context/providers/OSContextProvider.ts @@ -23,7 +23,7 @@ class OSContextProvider extends BaseContextProvider { return [ { description: "Your operating system and CPU", - content: `I am running ${platform} on ${cpu}.`, + content: `I am running ${platform === "win32" ? "Windows" : platform} on ${cpu}.`, name: "os", }, ]; From 6350993007ce3f10bb200b2347e7234b2a35ff53 Mon Sep 17 00:00:00 2001 From: Justin Milner Date: Sat, 14 Sep 2024 19:37:32 -0400 Subject: [PATCH 042/268] rebase to dev --- core/config/types.ts | 3 +- .../providers/GreptileContextProvider.ts | 186 ++++++ core/context/providers/index.ts | 2 + core/index.d.ts | 1 + docs/docs/customization/context-providers.md | 580 ++++++++++++++++++ docs/static/schemas/config.json | 6 +- extensions/vscode/config_schema.json | 6 +- extensions/vscode/continue_rc_schema.json | 6 +- 8 files changed, 783 insertions(+), 7 deletions(-) create mode 100644 core/context/providers/GreptileContextProvider.ts create mode 100644 docs/docs/customization/context-providers.md diff --git a/core/config/types.ts b/core/config/types.ts index e69c312ab..4a329d7a4 100644 --- a/core/config/types.ts +++ b/core/config/types.ts @@ -547,7 +547,8 @@ declare global { | "docs" | "gitlab-mr" | "os" - | "currentFile"; + | "currentFile" + | "greptile; type TemplateType = | "llama2" diff --git a/core/context/providers/GreptileContextProvider.ts b/core/context/providers/GreptileContextProvider.ts new file mode 100644 index 000000000..dee597adc --- /dev/null +++ b/core/context/providers/GreptileContextProvider.ts @@ -0,0 +1,186 @@ +import { + ContextItem, + ContextProviderDescription, + ContextProviderExtras, + } from "../../index.js"; + import { BaseContextProvider } from "../index.js"; + import { execSync } from "child_process"; + import * as path from "path"; + import * as fs from "fs"; + + class GreptileContextProvider extends BaseContextProvider { + static description: ContextProviderDescription = { + title: "greptile", + displayTitle: "Greptile", + description: "Query Greptile for relevant code snippets", + type: "query", + }; + + async getContextItems( + query: string, + extras: ContextProviderExtras, + ): Promise { + const greptileToken = this.getGreptileToken(); + const githubToken = process.env.GITHUB_TOKEN; + + if (!greptileToken || !githubToken) { + throw new Error("Greptile token or GitHub token not found."); + } + + let absPath = await this.getWorkspaceDir(extras); + if (!absPath) { + throw new Error("Failed to determine the workspace directory."); + } + var remoteUrl = getRemoteUrl(absPath) + remoteUrl = getRemoteUrl(absPath); + const repoName = extractRepoName(remoteUrl); + const branch = getCurrentBranch(absPath); + const remoteType = getRemoteType(remoteUrl); + + if (!remoteType) { + throw new Error("Unable to determine remote type."); + } + + const options = { + method: 'POST', + headers: { + Authorization: `Bearer ${greptileToken}`, + 'X-GitHub-Token': githubToken, + 'Content-Type': 'application/json', + }, + body: JSON.stringify({ + messages: [{ id: "", content: query, role: "user" }], + repositories: [{ + remote: remoteType, + branch: branch, + repository: repoName + }], + sessionId: extras.config.userToken || "default-session", + stream: false, + genius: true, + }), + }; + + // Log request details for debugging + console.log("Request URL: https://api.greptile.com/v2/query"); + console.log("Request Headers:", options.headers); + console.log("Request Body:", options.body); + + try { + const response = await extras.fetch('https://api.greptile.com/v2/query', options); + + // Log the raw response text for debugging + const rawText = await response.text(); + console.log("Raw response from Greptile:", rawText); + + // Check for HTTP errors + if (!response.ok) { + throw new Error(`HTTP error! status: ${response.status}`); + } + + // Parse the response as JSON + const json = JSON.parse(rawText); + + return json.sources.map((source: any) => ({ + description: source.filepath, + content: `File: ${source.filepath}\nLines: ${source.linestart}-${source.lineend}\n\n${source.summary}`, + name: (source.filepath.split("/").pop() ?? "").split("\\").pop() ?? "", + })); + } catch (error) { + console.error("Error getting context items from Greptile:", error); + throw new Error(`Error getting context items from Greptile`); + } + } + + private getGreptileToken(): string | undefined { + return this.options.token || process.env.GREPTILE_AUTH_TOKEN; + } + + private async getWorkspaceDir(extras: ContextProviderExtras): Promise { + try { + const workspaceDirs = await extras.ide.getWorkspaceDirs(); + if (workspaceDirs && workspaceDirs.length > 0) { + return workspaceDirs[0]; + } else { + console.warn(`extras.ide.getWorkspaceDirs() returned undefined or empty array.`); + } + } catch (err) { + console.warn(`Failed to get workspace directories from extras.ide.getWorkspaceDirs():`); + } + + // Fallback to using Git commands + try { + const currentDir = process.cwd(); + if (this.isGitRepository(currentDir)) { + const workspaceDir = execSync('git rev-parse --show-toplevel').toString().trim(); + return workspaceDir; + } else { + console.warn(`Current directory is not a Git repository: ${currentDir}`); + return null; + } + } catch (err) { + console.warn(`Failed to get workspace directory using Git commands: `); + return null; + } + } + + private isGitRepository(dir: string): boolean { + try { + const gitDir = path.join(dir, '.git'); + return fs.existsSync(gitDir); + } catch (err) { + console.warn(`Failed to check if directory is a Git repository:`); + return false; + } + } + } + + // Helper functions + function getRemoteUrl(absPath: string): string { + try { + const remote = execSync(`git -C ${absPath} remote get-url origin`).toString().trim(); + return remote; + } catch (err) { + console.warn(`Failed to get remote URL`); + return ""; + } + } + + function getCurrentBranch(absPath: string): string { + try { + const branch = execSync(`git -C ${absPath} rev-parse --abbrev-ref HEAD`).toString().trim(); + return branch; + } catch (err) { + console.warn(`Failed to get current branch`); + return "master"; // Default to 'master' if the current branch cannot be determined + } + } + + function extractRepoName(remote: string): string { + if (remote.startsWith("http://") || remote.startsWith("https://")) { + const parts = remote.split("/"); + if (parts.length >= 2) { + return parts[parts.length - 2] + "/" + parts[parts.length - 1].replace(".git", ""); + } + } else if (remote.startsWith("git@")) { + const parts = remote.split(":"); + if (parts.length >= 2) { + return parts[1].replace(".git", ""); + } + } + return ""; + } + + function getRemoteType(remote: string): string { + if (remote.includes("github.com")) { + return "github"; + } else if (remote.includes("gitlab.com")) { + return "gitlab"; + } else if (remote.includes("azure.com")) { + return "azure"; + } + return ""; + } + + export default GreptileContextProvider; + \ No newline at end of file diff --git a/core/context/providers/index.ts b/core/context/providers/index.ts index 92cabb222..06683f181 100644 --- a/core/context/providers/index.ts +++ b/core/context/providers/index.ts @@ -22,6 +22,7 @@ import SearchContextProvider from "./SearchContextProvider"; import TerminalContextProvider from "./TerminalContextProvider"; import URLContextProvider from "./URLContextProvider"; import RepoMapContextProvider from "./RepoMapContextProvider"; +import GreptileContextProvider from "./GreptileContextProvider"; /** * Note: We are currently omitting the following providers due to bugs: @@ -53,6 +54,7 @@ const Providers: (typeof BaseContextProvider)[] = [ URLContextProvider, ContinueProxyContextProvider, RepoMapContextProvider, + GreptileContextProvider, ]; export function contextProviderClassFromName( diff --git a/core/index.d.ts b/core/index.d.ts index 0c7c9b521..8486f24ee 100644 --- a/core/index.d.ts +++ b/core/index.d.ts @@ -578,6 +578,7 @@ type ContextProviderName = | "gitlab-mr" | "os" | "currentFile" + | "greptile" | "outline" | "continue-proxy" | "highlights" diff --git a/docs/docs/customization/context-providers.md b/docs/docs/customization/context-providers.md new file mode 100644 index 000000000..b806e2b63 --- /dev/null +++ b/docs/docs/customization/context-providers.md @@ -0,0 +1,580 @@ +--- +title: Context Providers +description: Type '@' to select content to the LLM as context +keywords: [context, "@", provider, LLM] +--- + +# Context Providers + +Context Providers allow you to type '@' and see a dropdown of content that can all be fed to the LLM as context. Every context provider is a plugin, which means if you want to reference some source of information that you don't see here, you can request (or build!) a new context provider. + +As an example, say you are working on solving a new GitHub Issue. You type '@issue' and select the one you are working on. Continue can now see the issue title and contents. You also know that the issue is related to the files 'readme.md' and 'helloNested.py', so you type '@readme' and '@hello' to find and select them. Now these 3 "Context Items" are displayed inline with the rest of your input. + +![Context Items](/img/context-provider-example.png) + +## Built-in Context Providers + +To use any of the built-in context providers, open `~/.continue/config.json` and add it to the `contextProviders` list. + +### Files + +Type '@file' to reference any file in your current workspace. + +```json +{ "name": "file" } +``` + +### Code + +Type '@code' to reference specific functions or classes from throughout your project. + +```json +{ "name": "code" } +``` + +### Git Diff + +Type '@diff' to reference all of the changes you've made to your current branch. This is useful if you want to summarize what you've done or ask for a general review of your work before committing. + +```json +{ "name": "diff" } +``` + +### Terminal + +Type '@terminal' to reference the contents of your IDE's terminal. + +```json +{ "name": "terminal" } +``` + +### Documentation + +Type `@docs` to index and retrieve snippets from any documentation site. + +```json +{ "name": "docs" } +``` + +To learn more, visit [Talk To Your Docs](../features/talk-to-your-docs.md). + +### Open Files + +Type '@open' to reference the contents of all of your open files. Set `onlyPinned` to `true` to only reference pinned files. + +```json +{ "name": "open", "params": { "onlyPinned": true } } +``` + +### Codebase Retrieval + +Type '@codebase' to automatically retrieve the most relevant snippets from your codebase. Read more about indexing and retrieval [here](../features/codebase-embeddings.md). + +```json +{ "name": "codebase" } +``` + +### Folders + +Type '@folder' to use the same retrieval mechanism as '@codebase', but only on a single folder. + +```json +{ "name": "folder" } +``` + +### Exact Search + +Type '@search' to reference the results of codebase search, just like the results you would get from VS Code search. This context provider is powered by [ripgrep](https://github.com/BurntSushi/ripgrep). + +```json +{ "name": "search" } +``` + +### URL + +Type '@url' and input a URL, then Continue will convert it to a markdown document to pass to the model. + +```json +{ "name": "url" } +``` + +### File Tree + +Type '@tree' to reference the structure of your current workspace. The LLM will be able to see the nested directory structure of your project. + +```json +{ "name": "tree" } +``` + +### Google + +Type '@google' to reference the results of a Google search. For example, type "@google python tutorial" if you want to search and discuss ways of learning Python. + +```json +{ + "name": "google", + "params": { "serperApiKey": "" } +} +``` + +Note: You can get an API key for free at [serper.dev](https://serper.dev). + +### GitHub Issues + +Type '@issue' to reference the conversation in a GitHub issue. Make sure to include your own [GitHub personal access token](https://docs.github.com/en/authentication/keeping-your-account-and-data-secure/managing-your-personal-access-tokens#creating-a-fine-grained-personal-access-token) to avoid being rate-limited: + +```json +{ + "name": "issue", + "params": { + "repos": [ + { + "owner": "continuedev", + "repo": "continue" + } + ], + "githubToken": "ghp_xxx" + } +} +``` + +### 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" + } +} +``` + +#### 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), or use your `email` and `token`, with token set to your password for basic authentication. If you use your own Atlassian API Token, don't configure your email. + +```json +{ + "name": "jira", + "params": { + "domain": "company.atlassian.net", + "token ": "ATATT..." + } +} +``` + +#### Jira Datacenter Support + +This context provider supports both Jira API version 2 and 3. It will use version 3 by default since +that's what the cloud version uses, but if you have the datacenter version of Jira, you'll need +to set the API Version to 2 using the `apiVersion` property. + +```json + "params": { + "apiVersion": "2", + ... + } +``` + +#### Issue Query + +By default, the following query will be used to find issues: + +```jql +assignee = currentUser() AND resolution = Unresolved order by updated DESC +``` + +You can override this query by setting the `issueQuery` parameter. + + + + + +### PostgreSQL + +Type `@postgres` to reference the schema of a table, and some sample rows. A dropdown will appear, allowing you to select a specific table, or all tables. + +The only required settings are those for creating the database connection: `host`, `port`, `user`, `password`, and `database`. + +By default, the `schema` filter is set to `public`, and the `sampleRows` is set to 3. You may unset the schema if you want to include tables from all schemas. + +[Here is a short demo.](https://github.com/continuedev/continue/pull/859) + +```json +{ + "name": "postgres", + "params": { + "host": "localhost", + "port": 5436, + "user": "myuser", + "password": "catsarecool", + "database": "animals", + "schema": "public", + "sampleRows": 3 + } +} +``` + +### Database Tables + +Type `@database` to reference table schemas you can use the drop-down or start typeing table names based off of your configuration. Configuration supports multiple databases, allowing you to specify various connection details for PostgreSQL, MySQL, SQLite. Each connection should include a unique name, the connection_type (e.g., postgres, sqlite), and the necessary connection parameters specific to each database type. + +```json +{ + "name": "database", + "params": { + "connections": [ + { + "name": "examplePostgres", + "connection_type": "postgres", + "connection": { + "user": "username", + "host": "localhost", + "database": "exampleDB", + "password": "yourPassword", + "port": 5432 + } + }, + { + "name": "exampleSqlite", + "connection_type": "sqlite", + "connection": { + "filename": "/path/to/your/sqlite/database.db" + } + } + ] + } +} +``` + +### 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", + "params": { + "stackDepth": 3 + } +} +``` + +### Repository map + +Provides an overview of all files and the call signatures of top-level classes, functions, and methods. This helps the model better understand how a particular piece of code relates to the rest of the codebase. + +This context provider is inpsired by [Aider's repository map](https://aider.chat/2023/10/22/repomap.html). + +```json +{ + "name": "repo-map" +} +``` + +### Operating System + +Type `@os` to reference the architecture and platform of your current operating system. + +```json +{ "name": "os" } +``` + +### Greptile +Type @greptile to query your Greptile indexes. + ```json + {"name": "greptile"} + ``` + +### 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. + +## Building Your Own Context Provider + +### Introductory Example + +To write your own context provider, you just have to implement the `CustomContextProvider` +interface: + +```typescript +interface CustomContextProvider { + title: string; + displayTitle?: string; + description?: string; + renderInlineAs?: string; + type?: ContextProviderType; + getContextItems( + query: string, + extras: ContextProviderExtras, + ): Promise; + loadSubmenuItems?: ( + args: LoadSubmenuItemsArgs, + ) => Promise; +} +``` + +As an example, let's say you have a set of internal documents that have been indexed in a vector database. You've set up a simple REST API that allows internal users to query and get back relevant snippets. This context provider will send the query to this server and return the results from the vector database. The return type of `getContextItems` _must_ be an array of objects that have all of the following properties: + +- `name`: The name of the context item, which will be displayed as a title +- `description`: A longer description of the context item +- `content`: The actual content of the context item, which will be fed to the LLM as context + +```typescript title="~/.continue/config.ts" +const RagContextProvider: CustomContextProvider = { + title: "rag", + displayTitle: "RAG", + description: + "Retrieve snippets from our vector database of internal documents", + + getContextItems: async ( + query: string, + extras: ContextProviderExtras, + ): Promise => { + const response = await fetch("https://internal_rag_server.com/retrieve", { + method: "POST", + body: JSON.stringify({ query }), + }); + + const results = await response.json(); + + return results.map((result) => ({ + name: result.title, + description: result.title, + content: result.contents, + })); + }, +}; +``` + +It can then be added in `config.ts` like so: + +```typescript title="~/.continue/config.ts" +export function modifyConfig(config: Config): Config { + if (!config.contextProviders) { + config.contextProviders = []; + } + config.contextProviders.push(RagContextProvider); + return config; +} +``` + +No modification in `config.json` is necessary. + +### Custom Context Providers with Submenu or Query + +There are 3 types of context providers: "normal", "query", and "submenu". The "normal" type is the default, and is what we've seen so far. + +The **"query"** type is used when you want to display a text box to the user, and then use the contents of that text box to generate the context items. Built-in examples include ["search"](#exact-search) and ["google"](#google). This text is what gets passed to the "query" argument in `getContextItems`. To implement a "query" context provider, simply set `"type": "query"` in your custom context provider object. + +The **"submenu"** type is used when you want to display a list of searchable items in the dropdown. Built-in examples include ["issue"](#github-issues) and ["folder"](#folders). To implement a "submenu" context provider, set `"type": "submenu"` and implement the `loadSubmenuItems` and `getContextItems` functions. Here is an example that shows a list of all README files in the current workspace: + +```typescript title="~/.continue/config.ts" +const ReadMeContextProvider: CustomContextProvider = { + title: "readme", + displayTitle: "README", + description: "Reference README.md files in your workspace", + type: "submenu", + + getContextItems: async ( + query: string, + extras: ContextProviderExtras, + ): Promise => { + // 'query' is the filepath of the README selected from the dropdown + const content = await extras.ide.readFile(query); + return [ + { + name: getFolder(query), + description: getFolderAndBasename(query), + content, + }, + ]; + }, + + loadSubmenuItems: async ( + args: LoadSubmenuItemsArgs, + ): Promise => { + // Filter all workspace files for READMEs + const allFiles = await args.ide.listWorkspaceContents(); + const readmes = allFiles.filter((filepath) => + filepath.endsWith("README.md"), + ); + + // Return the items that will be shown in the dropdown + return readmes.map((filepath) => { + return { + id: filepath, + title: getFolder(filepath), + description: getFolderAndBasename(filepath), + }; + }); + }, +}; + +export function modifyConfig(config: Config): Config { + if (!config.contextProviders) { + config.contextProviders = []; + } + config.contextProviders.push(ReadMeContextProvider); + return config; +} + +function getFolder(path: string): string { + return path.split(/[\/\\]/g).slice(-2)[0]; +} + +function getFolderAndBasename(path: string): string { + return path + .split(/[\/\\]/g) + .slice(-2) + .join("/"); +} +``` + +The flow of information in the above example is as follows: + +1. The user types `@readme` and selects it from the dropdown, now displaying the submenu where they can search for any item returned by `loadSubmenuItems`. +2. The user selects one of the READMEs in the submenu, enters the rest of their input, and presses enter. +3. The `id` of the chosen `ContextSubmenuItem` is passed to `getContextItems` as the `query` argument. In this case it is the filepath of the README. +4. The `getContextItems` function can then use the `query` to retrieve the full contents of the README and format the content before returning the context item which will be included in the prompt. + +### Importing outside modules + +To include outside Node modules in your config.ts, run `npm install ` from the `~/.continue` directory, and then import them in config.ts. + +Continue will use [esbuild](https://esbuild.github.io/) to bundle your `config.ts` and any dependencies into a single Javascript file. The exact configuration used can be found [here](https://github.com/continuedev/continue/blob/5c9874400e223bbc9786a8823614a2e501fbdaf7/extensions/vscode/src/ideProtocol.ts#L45-L52). + +### `CustomContextProvider` Reference + +- `title`: An identifier for the context provider +- `displayTitle` (optional): The title displayed in the dropdown +- `description` (optional): The longer description displayed in the dropdown when hovered +- `type` (optional): The type of context provider. Options are "normal", "query", and "submenu". Defaults to "normal". +- `renderInlineAs` (optional): The string that will be rendered inline at the top of the prompt. If no value is provided, the `displayTitle` will be used. An empty string can be provided to prevent rendering the default `displayTitle`. +- `getContextItems`: A function that returns the documents to include in the prompt. It should return a list of `ContextItem`s, and is given access to the following arguments: + - `extras.fullInput`: A string representing the user's full input to the text box. This can be used for example to generate an embedding to compare against a set of other embedded documents + - `extras.embeddingsProvider`: The embeddings provider has an `embed` function that will convert text (such as `fullInput`) to an embedding + - `extras.llm`: The current default LLM, which you can use to make completion requests + - `extras.ide`: An instance of the `IDE` class, which lets you gather various sources of information from the IDE, including the contents of the terminal, the list of open files, or any warnings in the currently open file. + - `query`: (not currently used) A string representing the query +- `loadSubmenuItems` (optional): A function that returns a list of `ContextSubmenuItem`s to display in a submenu. It is given access to an `IDE`, the same that is passed to `getContextItems`. + +### Writing Context Providers in Other Languages + +If you'd like to write a context provider in a language other than TypeScript, you can use the "http" context provider to call a server that hosts your own code. Add the context provider to `config.json` like this: + +```json +{ + "name": "http", + "params": { + "url": "https://myserver.com/context-provider", + "title": "http", + "description": "Custom HTTP Context Provider", + "displayTitle": "My Custom Context" + } +} +``` + +Then, create a server that responds to requests as are made from [HttpContextProvider.ts](../../../core/context/providers/HttpContextProvider.ts). See the `hello` endpoint in [context_provider_server.py](../../../core/context/providers/context_provider_server.py) for an example that uses FastAPI. + +### Extension API for VSCode + +Continue exposes an API for registering context providers from a 3rd party VSCode extension. This is useful if you have a VSCode extension that provides some additional context that you would like to use in Continue. To use this API, add the following to your `package.json`: + +```json +{ + "extensionDependencies": ["continue.continue"] +} +``` + +Or copy `~/.continue/type/core/index.d.ts` to your extension repository. + +Then, you can use the `registerCustomContextProvider` function to register your context provider. Your custom context provider must implement the `IContextProvider` interface. +Here is an example: + +```typescript +import * as vscode from "vscode"; + +class MyCustomProvider implements IContextProvider { + get description(): ContextProviderDescription { + return { + title: "custom", + displayTitle: "Custom", + description: "Custom description", + type: "normal", + }; + } + + async getContextItems( + query: string, + extras: ContextProviderExtras, + ): Promise { + return [ + { + name: "Custom", + description: "Custom description", + content: "Custom content", + }, + ]; + } + + async loadSubmenuItems( + args: LoadSubmenuItemsArgs, + ): Promise { + return []; + } +} + +// create an instance of your custom provider +const customProvider = new MyCustomProvider(); + +// get Continue extension using vscode API +const continueExt = vscode.extensions.getExtension("continue.continue"); + +// get the API from the extension +const continueApi = continueExt?.exports; + +// register your custom provider +continueApi?.registerCustomContextProvider(customProvider); +``` diff --git a/docs/static/schemas/config.json b/docs/static/schemas/config.json index 45faeb06f..c2bf890e5 100644 --- a/docs/static/schemas/config.json +++ b/docs/static/schemas/config.json @@ -1534,7 +1534,8 @@ "url", "database", "os", - "repo-map" + "repo-map", + "greptile" ], "markdownEnumDescriptions": [ "Reference the contents of the current changes as given by `git diff`", @@ -1558,7 +1559,8 @@ "Reference the contents of a page at a URL", "Reference table schemas", "Operating system and CPU Information", - "Map of files in the repository with important code highlights" + "Map of files in the repository with important code highlights", + "Query your greptile index of the current repo" ], "type": "string" }, diff --git a/extensions/vscode/config_schema.json b/extensions/vscode/config_schema.json index cbf47d4b4..ab2186d62 100644 --- a/extensions/vscode/config_schema.json +++ b/extensions/vscode/config_schema.json @@ -1529,7 +1529,8 @@ "url", "database", "os", - "repo-map" + "repo-map", + "greptile" ], "markdownEnumDescriptions": [ "Reference the contents of the current changes as given by `git diff`", @@ -1553,7 +1554,8 @@ "Reference the contents of a page at a URL", "Reference table schemas", "Operating system and CPU Information", - "Map of files in the repository with important code highlights" + "Map of files in the repository with important code highlights", + "Query your greptile index of the current repo" ], "type": "string" }, diff --git a/extensions/vscode/continue_rc_schema.json b/extensions/vscode/continue_rc_schema.json index c33df73c2..62797714b 100644 --- a/extensions/vscode/continue_rc_schema.json +++ b/extensions/vscode/continue_rc_schema.json @@ -1700,7 +1700,8 @@ "url", "database", "os", - "repo-map" + "repo-map", + "greptile" ], "markdownEnumDescriptions": [ "Reference the contents of the current changes as given by `git diff`", @@ -1724,7 +1725,8 @@ "Reference the contents of a page at a URL", "Reference table schemas", "Operating system and CPU Information", - "Map of files in the repository with important code highlights" + "Map of files in the repository with important code highlights", + "Query your greptile index of the current repo" ], "type": "string" }, From 0d91dea826709b3c405d9bfc8e2888c1bca1aac4 Mon Sep 17 00:00:00 2001 From: Justin Milner Date: Sat, 14 Sep 2024 17:42:19 -0400 Subject: [PATCH 043/268] working draft --- docs/static/schemas/config.json | 100 ++++++++--------- .../src/main/resources/config_schema.json | 106 +++++++++--------- extensions/vscode/continue_rc_schema.json | 83 +++++++------- 3 files changed, 145 insertions(+), 144 deletions(-) diff --git a/docs/static/schemas/config.json b/docs/static/schemas/config.json index c2bf890e5..ab2186d62 100644 --- a/docs/static/schemas/config.json +++ b/docs/static/schemas/config.json @@ -204,7 +204,7 @@ "### Bedrock\nTo get started with Bedrock you need to sign up on AWS [here](https://aws.amazon.com/bedrock)", "### Bedrock Imported Models\nTo get started with Bedrock you need to sign up on AWS [here](https://aws.amazon.com/bedrock)", "### Sagemaker\nSagemaker is AWS' machine learning platform.", - "### Together\nTogether is a hosted service that provides extremely fast streaming of open-source language models. To get started with Together:\n1. Obtain an API key from [here](https://together.ai)\n2. Paste below\n3. Select a model preset\n> [Reference](https://docs.continue.dev/reference/Model%20Providers/together)", + "### Together\nTogether is a hosted service that provides extremely fast streaming of open-source language models. To get started with Together:\n1. Obtain an API key from [here](https://together.ai)\n2. Paste below\n3. Select a model preset\n> [Reference](https://docs.continue.dev/reference/Model%20Providers/togetherllm)", "### Ollama\nTo get started with Ollama, follow these steps:\n1. Download from [ollama.ai](https://ollama.ai/) and open the application\n2. Open a terminal and run `ollama run `. Example model names are `codellama:7b-instruct` or `llama2:7b-text`. You can find the full list [here](https://ollama.ai/library).\n3. Make sure that the model name used in step 2 is the same as the one in config.json (e.g. `model=\"codellama:7b-instruct\"`)\n4. Once the model has finished downloading, you can start asking questions through Continue.\n> [Reference](https://docs.continue.dev/reference/Model%20Providers/ollama)", "### Huggingface TGI\n\n> [Reference](https://docs.continue.dev/reference/Model%20Providers/huggingfacetgi)", "### Huggingface Inference API\n\n> [Reference](https://docs.continue.dev/reference/Model%20Providers/huggingfaceinferenceapi)", @@ -244,10 +244,10 @@ "type": "string" }, "region": { - "title": "Region", - "description": "The region where the model is hosted", - "type": "string" - }, + "title": "Region", + "description": "The region where the model is hosted", + "type": "string" + }, "profile": { "title": "Profile", "description": "The AWS security profile to use", @@ -414,9 +414,7 @@ "if": { "properties": { "provider": { - "enum": [ - "bedrockimport" - ] + "enum": ["bedrockimport"] } }, "required": ["provider"] @@ -526,7 +524,7 @@ "if": { "properties": { "provider": { - "enum": ["openai", "azure"] + "enum": ["openai"] } }, "required": ["provider"] @@ -710,13 +708,13 @@ "anyOf": [ { "enum": [ + "claude-2", + "claude-instant-1", "claude-3-5-sonnet-20240620", "claude-3-opus-20240229", "claude-3-sonnet-20240229", "claude-3-haiku-20240307", - "claude-2.1", - "claude-2", - "claude-instant-1" + "claude-2.1" ] }, { @@ -759,7 +757,6 @@ "anyOf": [ { "enum": [ - "anthropic.claude-3-5-sonnet-20240620-v1:0", "claude-3-sonnet-20240229", "claude-3-haiku-20240307", "claude-2" @@ -806,6 +803,7 @@ }, "model": { "enum": [ + "chat-bison-001", "gemini-pro", "gemini-1.5-pro-latest", "gemini-1.5-pro", @@ -946,33 +944,33 @@ "anyOf": [ { "enum": [ - "mistral:7b", - "llama2:7b", - "llama2:13b", - "codellama:7b", - "codellama:13b", - "codellama:34b", - "codellama:70b", - "llama3:8b", - "llama3:70b", - "llama3.1:8b", - "llama3.1:70b", - "llama3.1:405b", - "phi:2", - "phind:codellama:34b", - "wizardcoder:7b", - "wizardcoder:13b", - "wizardcoder:34b", - "zephyr:7b", - "codeup:13b", - "deepseek:7b", - "deepseek:33b", - "neural:chat:7b", - "deepseek:1b", - "stable:code:3b", - "starcoder:1b", - "starcoder:3b", - "starcoder2:3b", + "mistral-7b", + "llama2-7b", + "llama2-13b", + "codellama-7b", + "codellama-13b", + "codellama-34b", + "codellama-70b", + "llama3-8b", + "llama3-70b", + "llama3.1-8b", + "llama3.1-70b", + "llama3.1-405b", + "phi-2", + "phind-codellama-34b", + "wizardcoder-7b", + "wizardcoder-13b", + "wizardcoder-34b", + "zephyr-7b", + "codeup-13b", + "deepseek-7b", + "deepseek-33b", + "neural-chat-7b", + "deepseek-1b", + "stable-code-3b", + "starcoder-1b", + "starcoder-3b", + "starcoder2-3b", "AUTODETECT" ] }, @@ -1237,6 +1235,7 @@ "claude-2.1", "command-r", "command-r-plus", + "chat-bison-001", "gemini-pro", "gemini-1.5-pro-latest", "gemini-1.5-pro", @@ -1316,11 +1315,7 @@ "model": { "anyOf": [ { - "enum": [ - "llama3.1-8b", - "llama3.1-70b", - "llama3.1-405b" - ] + "enum": ["llama3.1-8b", "llama3.1-70b", "llama3.1-405b"] }, { "type": "string" @@ -2483,16 +2478,13 @@ "type": "object", "properties": { "inlineEdit": { - "description": "The 'title' property of the model you wish to use for inline edits", - "type": "string" + "$ref": "#/definitions/ModelTitle" }, "applyCodeBlock": { - "description": "The 'title' property of the model you wish to use for applying code blocks", - "type": "string" + "$ref": "#/definitions/ModelTitle" }, "repoMapFileSelection": { - "description": "The 'title' property of the model you wish to use for repo map file selections", - "type": "string" + "$ref": "#/definitions/ModelTitle" } } }, @@ -2555,6 +2547,12 @@ } } } + }, + "ModelTitle": { + "type": "string", + "enum": { + "$data": "/models/title" + } } } } diff --git a/extensions/intellij/src/main/resources/config_schema.json b/extensions/intellij/src/main/resources/config_schema.json index 45faeb06f..ab2186d62 100644 --- a/extensions/intellij/src/main/resources/config_schema.json +++ b/extensions/intellij/src/main/resources/config_schema.json @@ -204,7 +204,7 @@ "### Bedrock\nTo get started with Bedrock you need to sign up on AWS [here](https://aws.amazon.com/bedrock)", "### Bedrock Imported Models\nTo get started with Bedrock you need to sign up on AWS [here](https://aws.amazon.com/bedrock)", "### Sagemaker\nSagemaker is AWS' machine learning platform.", - "### Together\nTogether is a hosted service that provides extremely fast streaming of open-source language models. To get started with Together:\n1. Obtain an API key from [here](https://together.ai)\n2. Paste below\n3. Select a model preset\n> [Reference](https://docs.continue.dev/reference/Model%20Providers/together)", + "### Together\nTogether is a hosted service that provides extremely fast streaming of open-source language models. To get started with Together:\n1. Obtain an API key from [here](https://together.ai)\n2. Paste below\n3. Select a model preset\n> [Reference](https://docs.continue.dev/reference/Model%20Providers/togetherllm)", "### Ollama\nTo get started with Ollama, follow these steps:\n1. Download from [ollama.ai](https://ollama.ai/) and open the application\n2. Open a terminal and run `ollama run `. Example model names are `codellama:7b-instruct` or `llama2:7b-text`. You can find the full list [here](https://ollama.ai/library).\n3. Make sure that the model name used in step 2 is the same as the one in config.json (e.g. `model=\"codellama:7b-instruct\"`)\n4. Once the model has finished downloading, you can start asking questions through Continue.\n> [Reference](https://docs.continue.dev/reference/Model%20Providers/ollama)", "### Huggingface TGI\n\n> [Reference](https://docs.continue.dev/reference/Model%20Providers/huggingfacetgi)", "### Huggingface Inference API\n\n> [Reference](https://docs.continue.dev/reference/Model%20Providers/huggingfaceinferenceapi)", @@ -244,10 +244,10 @@ "type": "string" }, "region": { - "title": "Region", - "description": "The region where the model is hosted", - "type": "string" - }, + "title": "Region", + "description": "The region where the model is hosted", + "type": "string" + }, "profile": { "title": "Profile", "description": "The AWS security profile to use", @@ -414,9 +414,7 @@ "if": { "properties": { "provider": { - "enum": [ - "bedrockimport" - ] + "enum": ["bedrockimport"] } }, "required": ["provider"] @@ -526,7 +524,7 @@ "if": { "properties": { "provider": { - "enum": ["openai", "azure"] + "enum": ["openai"] } }, "required": ["provider"] @@ -710,13 +708,13 @@ "anyOf": [ { "enum": [ + "claude-2", + "claude-instant-1", "claude-3-5-sonnet-20240620", "claude-3-opus-20240229", "claude-3-sonnet-20240229", "claude-3-haiku-20240307", - "claude-2.1", - "claude-2", - "claude-instant-1" + "claude-2.1" ] }, { @@ -759,7 +757,6 @@ "anyOf": [ { "enum": [ - "anthropic.claude-3-5-sonnet-20240620-v1:0", "claude-3-sonnet-20240229", "claude-3-haiku-20240307", "claude-2" @@ -806,6 +803,7 @@ }, "model": { "enum": [ + "chat-bison-001", "gemini-pro", "gemini-1.5-pro-latest", "gemini-1.5-pro", @@ -946,33 +944,33 @@ "anyOf": [ { "enum": [ - "mistral:7b", - "llama2:7b", - "llama2:13b", - "codellama:7b", - "codellama:13b", - "codellama:34b", - "codellama:70b", - "llama3:8b", - "llama3:70b", - "llama3.1:8b", - "llama3.1:70b", - "llama3.1:405b", - "phi:2", - "phind:codellama:34b", - "wizardcoder:7b", - "wizardcoder:13b", - "wizardcoder:34b", - "zephyr:7b", - "codeup:13b", - "deepseek:7b", - "deepseek:33b", - "neural:chat:7b", - "deepseek:1b", - "stable:code:3b", - "starcoder:1b", - "starcoder:3b", - "starcoder2:3b", + "mistral-7b", + "llama2-7b", + "llama2-13b", + "codellama-7b", + "codellama-13b", + "codellama-34b", + "codellama-70b", + "llama3-8b", + "llama3-70b", + "llama3.1-8b", + "llama3.1-70b", + "llama3.1-405b", + "phi-2", + "phind-codellama-34b", + "wizardcoder-7b", + "wizardcoder-13b", + "wizardcoder-34b", + "zephyr-7b", + "codeup-13b", + "deepseek-7b", + "deepseek-33b", + "neural-chat-7b", + "deepseek-1b", + "stable-code-3b", + "starcoder-1b", + "starcoder-3b", + "starcoder2-3b", "AUTODETECT" ] }, @@ -1237,6 +1235,7 @@ "claude-2.1", "command-r", "command-r-plus", + "chat-bison-001", "gemini-pro", "gemini-1.5-pro-latest", "gemini-1.5-pro", @@ -1316,11 +1315,7 @@ "model": { "anyOf": [ { - "enum": [ - "llama3.1-8b", - "llama3.1-70b", - "llama3.1-405b" - ] + "enum": ["llama3.1-8b", "llama3.1-70b", "llama3.1-405b"] }, { "type": "string" @@ -1534,7 +1529,8 @@ "url", "database", "os", - "repo-map" + "repo-map", + "greptile" ], "markdownEnumDescriptions": [ "Reference the contents of the current changes as given by `git diff`", @@ -1558,7 +1554,8 @@ "Reference the contents of a page at a URL", "Reference table schemas", "Operating system and CPU Information", - "Map of files in the repository with important code highlights" + "Map of files in the repository with important code highlights", + "Query your greptile index of the current repo" ], "type": "string" }, @@ -2481,16 +2478,13 @@ "type": "object", "properties": { "inlineEdit": { - "description": "The 'title' property of the model you wish to use for inline edits", - "type": "string" + "$ref": "#/definitions/ModelTitle" }, "applyCodeBlock": { - "description": "The 'title' property of the model you wish to use for applying code blocks", - "type": "string" + "$ref": "#/definitions/ModelTitle" }, "repoMapFileSelection": { - "description": "The 'title' property of the model you wish to use for repo map file selections", - "type": "string" + "$ref": "#/definitions/ModelTitle" } } }, @@ -2553,6 +2547,12 @@ } } } + }, + "ModelTitle": { + "type": "string", + "enum": { + "$data": "/models/title" + } } } } diff --git a/extensions/vscode/continue_rc_schema.json b/extensions/vscode/continue_rc_schema.json index 62797714b..d880fad45 100644 --- a/extensions/vscode/continue_rc_schema.json +++ b/extensions/vscode/continue_rc_schema.json @@ -207,7 +207,7 @@ "### Bedrock\nTo get started with Bedrock you need to sign up on AWS [here](https://aws.amazon.com/bedrock)", "### Bedrock Imported Models\nTo get started with Bedrock you need to sign up on AWS [here](https://aws.amazon.com/bedrock)", "### Sagemaker\nSagemaker is AWS' machine learning platform.", - "### Together\nTogether is a hosted service that provides extremely fast streaming of open-source language models. To get started with Together:\n1. Obtain an API key from [here](https://together.ai)\n2. Paste below\n3. Select a model preset\n> [Reference](https://docs.continue.dev/reference/Model%20Providers/together)", + "### Together\nTogether is a hosted service that provides extremely fast streaming of open-source language models. To get started with Together:\n1. Obtain an API key from [here](https://together.ai)\n2. Paste below\n3. Select a model preset\n> [Reference](https://docs.continue.dev/reference/Model%20Providers/togetherllm)", "### Ollama\nTo get started with Ollama, follow these steps:\n1. Download from [ollama.ai](https://ollama.ai/) and open the application\n2. Open a terminal and run `ollama run `. Example model names are `codellama:7b-instruct` or `llama2:7b-text`. You can find the full list [here](https://ollama.ai/library).\n3. Make sure that the model name used in step 2 is the same as the one in config.json (e.g. `model=\"codellama:7b-instruct\"`)\n4. Once the model has finished downloading, you can start asking questions through Continue.\n> [Reference](https://docs.continue.dev/reference/Model%20Providers/ollama)", "### Huggingface TGI\n\n> [Reference](https://docs.continue.dev/reference/Model%20Providers/huggingfacetgi)", "### Huggingface Inference API\n\n> [Reference](https://docs.continue.dev/reference/Model%20Providers/huggingfaceinferenceapi)", @@ -562,8 +562,7 @@ "properties": { "provider": { "enum": [ - "openai", - "azure" + "openai" ] } }, @@ -766,13 +765,13 @@ "anyOf": [ { "enum": [ + "claude-2", + "claude-instant-1", "claude-3-5-sonnet-20240620", "claude-3-opus-20240229", "claude-3-sonnet-20240229", "claude-3-haiku-20240307", - "claude-2.1", - "claude-2", - "claude-instant-1" + "claude-2.1" ] }, { @@ -826,7 +825,6 @@ "anyOf": [ { "enum": [ - "anthropic.claude-3-5-sonnet-20240620-v1:0", "claude-3-sonnet-20240229", "claude-3-haiku-20240307", "claude-2" @@ -881,6 +879,7 @@ }, "model": { "enum": [ + "chat-bison-001", "gemini-pro", "gemini-1.5-pro-latest", "gemini-1.5-pro", @@ -1035,33 +1034,33 @@ "anyOf": [ { "enum": [ - "mistral:7b", - "llama2:7b", - "llama2:13b", - "codellama:7b", - "codellama:13b", - "codellama:34b", - "codellama:70b", - "llama3:8b", - "llama3:70b", - "llama3.1:8b", - "llama3.1:70b", - "llama3.1:405b", - "phi:2", - "phind:codellama:34b", - "wizardcoder:7b", - "wizardcoder:13b", - "wizardcoder:34b", - "zephyr:7b", - "codeup:13b", - "deepseek:7b", - "deepseek:33b", - "neural:chat:7b", - "deepseek:1b", - "stable:code:3b", - "starcoder:1b", - "starcoder:3b", - "starcoder2:3b", + "mistral-7b", + "llama2-7b", + "llama2-13b", + "codellama-7b", + "codellama-13b", + "codellama-34b", + "codellama-70b", + "llama3-8b", + "llama3-70b", + "llama3.1-8b", + "llama3.1-70b", + "llama3.1-405b", + "phi-2", + "phind-codellama-34b", + "wizardcoder-7b", + "wizardcoder-13b", + "wizardcoder-34b", + "zephyr-7b", + "codeup-13b", + "deepseek-7b", + "deepseek-33b", + "neural-chat-7b", + "deepseek-1b", + "stable-code-3b", + "starcoder-1b", + "starcoder-3b", + "starcoder2-3b", "AUTODETECT" ] }, @@ -1373,6 +1372,7 @@ "claude-2.1", "command-r", "command-r-plus", + "chat-bison-001", "gemini-pro", "gemini-1.5-pro-latest", "gemini-1.5-pro", @@ -2784,16 +2784,13 @@ "type": "object", "properties": { "inlineEdit": { - "description": "The 'title' property of the model you wish to use for inline edits", - "type": "string" + "$ref": "#/definitions/ModelTitle" }, "applyCodeBlock": { - "description": "The 'title' property of the model you wish to use for applying code blocks", - "type": "string" + "$ref": "#/definitions/ModelTitle" }, "repoMapFileSelection": { - "description": "The 'title' property of the model you wish to use for repo map file selections", - "type": "string" + "$ref": "#/definitions/ModelTitle" } } }, @@ -2869,6 +2866,12 @@ "markdownDescription": "If set to 'merge', .continuerc.json will be applied on top of config.json (arrays and objects are merged). If set to 'overwrite', then every top-level property of .continuerc.json will overwrite that property from config.json." } } + }, + "ModelTitle": { + "type": "string", + "enum": { + "$data": "/models/title" + } } } } \ No newline at end of file From 0b789ae095a1f8bcc72dcea1e4de9d671ed518a8 Mon Sep 17 00:00:00 2001 From: Justin Milner Date: Sat, 14 Sep 2024 19:28:30 -0400 Subject: [PATCH 044/268] review --- core/context/providers/GreptileContextProvider.ts | 2 +- docs/docs/customization/context-providers.md | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/core/context/providers/GreptileContextProvider.ts b/core/context/providers/GreptileContextProvider.ts index dee597adc..5c8d5f3ea 100644 --- a/core/context/providers/GreptileContextProvider.ts +++ b/core/context/providers/GreptileContextProvider.ts @@ -12,7 +12,7 @@ import { static description: ContextProviderDescription = { title: "greptile", displayTitle: "Greptile", - description: "Query Greptile for relevant code snippets", + description: "Insert query to Greptile", type: "query", }; diff --git a/docs/docs/customization/context-providers.md b/docs/docs/customization/context-providers.md index b806e2b63..77efdd567 100644 --- a/docs/docs/customization/context-providers.md +++ b/docs/docs/customization/context-providers.md @@ -322,7 +322,8 @@ Type `@os` to reference the architecture and platform of your current operating ``` ### Greptile -Type @greptile to query your Greptile indexes. +Type @greptile to perform file retrieval using your greptile indices. +Enter your query to greptile in the popup text box. The currently active vscode project is automatically used as the repository of interest (this must be pre-indexed with greptile). ```json {"name": "greptile"} ``` From 2be4d76b6191023068bc686bedd1e5e489d71218 Mon Sep 17 00:00:00 2001 From: Justin Milner Date: Sat, 14 Sep 2024 20:12:22 -0400 Subject: [PATCH 045/268] remove rebase unwanted --- docs/docs/customization/context-providers.md | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/docs/docs/customization/context-providers.md b/docs/docs/customization/context-providers.md index 77efdd567..b806e2b63 100644 --- a/docs/docs/customization/context-providers.md +++ b/docs/docs/customization/context-providers.md @@ -322,8 +322,7 @@ Type `@os` to reference the architecture and platform of your current operating ``` ### Greptile -Type @greptile to perform file retrieval using your greptile indices. -Enter your query to greptile in the popup text box. The currently active vscode project is automatically used as the repository of interest (this must be pre-indexed with greptile). +Type @greptile to query your Greptile indexes. ```json {"name": "greptile"} ``` From 4595b0006ddd39fa6fbe81c6945c0e5af82a7b1d Mon Sep 17 00:00:00 2001 From: Justin Milner Date: Sat, 14 Sep 2024 20:17:18 -0400 Subject: [PATCH 046/268] fix rebase --- docs/docs/customization/context-providers.md | 580 ------------------ docs/static/schemas/config.json | 106 ++-- .../src/main/resources/config_schema.json | 106 ++-- 3 files changed, 106 insertions(+), 686 deletions(-) delete mode 100644 docs/docs/customization/context-providers.md diff --git a/docs/docs/customization/context-providers.md b/docs/docs/customization/context-providers.md deleted file mode 100644 index b806e2b63..000000000 --- a/docs/docs/customization/context-providers.md +++ /dev/null @@ -1,580 +0,0 @@ ---- -title: Context Providers -description: Type '@' to select content to the LLM as context -keywords: [context, "@", provider, LLM] ---- - -# Context Providers - -Context Providers allow you to type '@' and see a dropdown of content that can all be fed to the LLM as context. Every context provider is a plugin, which means if you want to reference some source of information that you don't see here, you can request (or build!) a new context provider. - -As an example, say you are working on solving a new GitHub Issue. You type '@issue' and select the one you are working on. Continue can now see the issue title and contents. You also know that the issue is related to the files 'readme.md' and 'helloNested.py', so you type '@readme' and '@hello' to find and select them. Now these 3 "Context Items" are displayed inline with the rest of your input. - -![Context Items](/img/context-provider-example.png) - -## Built-in Context Providers - -To use any of the built-in context providers, open `~/.continue/config.json` and add it to the `contextProviders` list. - -### Files - -Type '@file' to reference any file in your current workspace. - -```json -{ "name": "file" } -``` - -### Code - -Type '@code' to reference specific functions or classes from throughout your project. - -```json -{ "name": "code" } -``` - -### Git Diff - -Type '@diff' to reference all of the changes you've made to your current branch. This is useful if you want to summarize what you've done or ask for a general review of your work before committing. - -```json -{ "name": "diff" } -``` - -### Terminal - -Type '@terminal' to reference the contents of your IDE's terminal. - -```json -{ "name": "terminal" } -``` - -### Documentation - -Type `@docs` to index and retrieve snippets from any documentation site. - -```json -{ "name": "docs" } -``` - -To learn more, visit [Talk To Your Docs](../features/talk-to-your-docs.md). - -### Open Files - -Type '@open' to reference the contents of all of your open files. Set `onlyPinned` to `true` to only reference pinned files. - -```json -{ "name": "open", "params": { "onlyPinned": true } } -``` - -### Codebase Retrieval - -Type '@codebase' to automatically retrieve the most relevant snippets from your codebase. Read more about indexing and retrieval [here](../features/codebase-embeddings.md). - -```json -{ "name": "codebase" } -``` - -### Folders - -Type '@folder' to use the same retrieval mechanism as '@codebase', but only on a single folder. - -```json -{ "name": "folder" } -``` - -### Exact Search - -Type '@search' to reference the results of codebase search, just like the results you would get from VS Code search. This context provider is powered by [ripgrep](https://github.com/BurntSushi/ripgrep). - -```json -{ "name": "search" } -``` - -### URL - -Type '@url' and input a URL, then Continue will convert it to a markdown document to pass to the model. - -```json -{ "name": "url" } -``` - -### File Tree - -Type '@tree' to reference the structure of your current workspace. The LLM will be able to see the nested directory structure of your project. - -```json -{ "name": "tree" } -``` - -### Google - -Type '@google' to reference the results of a Google search. For example, type "@google python tutorial" if you want to search and discuss ways of learning Python. - -```json -{ - "name": "google", - "params": { "serperApiKey": "" } -} -``` - -Note: You can get an API key for free at [serper.dev](https://serper.dev). - -### GitHub Issues - -Type '@issue' to reference the conversation in a GitHub issue. Make sure to include your own [GitHub personal access token](https://docs.github.com/en/authentication/keeping-your-account-and-data-secure/managing-your-personal-access-tokens#creating-a-fine-grained-personal-access-token) to avoid being rate-limited: - -```json -{ - "name": "issue", - "params": { - "repos": [ - { - "owner": "continuedev", - "repo": "continue" - } - ], - "githubToken": "ghp_xxx" - } -} -``` - -### 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" - } -} -``` - -#### 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), or use your `email` and `token`, with token set to your password for basic authentication. If you use your own Atlassian API Token, don't configure your email. - -```json -{ - "name": "jira", - "params": { - "domain": "company.atlassian.net", - "token ": "ATATT..." - } -} -``` - -#### Jira Datacenter Support - -This context provider supports both Jira API version 2 and 3. It will use version 3 by default since -that's what the cloud version uses, but if you have the datacenter version of Jira, you'll need -to set the API Version to 2 using the `apiVersion` property. - -```json - "params": { - "apiVersion": "2", - ... - } -``` - -#### Issue Query - -By default, the following query will be used to find issues: - -```jql -assignee = currentUser() AND resolution = Unresolved order by updated DESC -``` - -You can override this query by setting the `issueQuery` parameter. - - - - - -### PostgreSQL - -Type `@postgres` to reference the schema of a table, and some sample rows. A dropdown will appear, allowing you to select a specific table, or all tables. - -The only required settings are those for creating the database connection: `host`, `port`, `user`, `password`, and `database`. - -By default, the `schema` filter is set to `public`, and the `sampleRows` is set to 3. You may unset the schema if you want to include tables from all schemas. - -[Here is a short demo.](https://github.com/continuedev/continue/pull/859) - -```json -{ - "name": "postgres", - "params": { - "host": "localhost", - "port": 5436, - "user": "myuser", - "password": "catsarecool", - "database": "animals", - "schema": "public", - "sampleRows": 3 - } -} -``` - -### Database Tables - -Type `@database` to reference table schemas you can use the drop-down or start typeing table names based off of your configuration. Configuration supports multiple databases, allowing you to specify various connection details for PostgreSQL, MySQL, SQLite. Each connection should include a unique name, the connection_type (e.g., postgres, sqlite), and the necessary connection parameters specific to each database type. - -```json -{ - "name": "database", - "params": { - "connections": [ - { - "name": "examplePostgres", - "connection_type": "postgres", - "connection": { - "user": "username", - "host": "localhost", - "database": "exampleDB", - "password": "yourPassword", - "port": 5432 - } - }, - { - "name": "exampleSqlite", - "connection_type": "sqlite", - "connection": { - "filename": "/path/to/your/sqlite/database.db" - } - } - ] - } -} -``` - -### 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", - "params": { - "stackDepth": 3 - } -} -``` - -### Repository map - -Provides an overview of all files and the call signatures of top-level classes, functions, and methods. This helps the model better understand how a particular piece of code relates to the rest of the codebase. - -This context provider is inpsired by [Aider's repository map](https://aider.chat/2023/10/22/repomap.html). - -```json -{ - "name": "repo-map" -} -``` - -### Operating System - -Type `@os` to reference the architecture and platform of your current operating system. - -```json -{ "name": "os" } -``` - -### Greptile -Type @greptile to query your Greptile indexes. - ```json - {"name": "greptile"} - ``` - -### 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. - -## Building Your Own Context Provider - -### Introductory Example - -To write your own context provider, you just have to implement the `CustomContextProvider` -interface: - -```typescript -interface CustomContextProvider { - title: string; - displayTitle?: string; - description?: string; - renderInlineAs?: string; - type?: ContextProviderType; - getContextItems( - query: string, - extras: ContextProviderExtras, - ): Promise; - loadSubmenuItems?: ( - args: LoadSubmenuItemsArgs, - ) => Promise; -} -``` - -As an example, let's say you have a set of internal documents that have been indexed in a vector database. You've set up a simple REST API that allows internal users to query and get back relevant snippets. This context provider will send the query to this server and return the results from the vector database. The return type of `getContextItems` _must_ be an array of objects that have all of the following properties: - -- `name`: The name of the context item, which will be displayed as a title -- `description`: A longer description of the context item -- `content`: The actual content of the context item, which will be fed to the LLM as context - -```typescript title="~/.continue/config.ts" -const RagContextProvider: CustomContextProvider = { - title: "rag", - displayTitle: "RAG", - description: - "Retrieve snippets from our vector database of internal documents", - - getContextItems: async ( - query: string, - extras: ContextProviderExtras, - ): Promise => { - const response = await fetch("https://internal_rag_server.com/retrieve", { - method: "POST", - body: JSON.stringify({ query }), - }); - - const results = await response.json(); - - return results.map((result) => ({ - name: result.title, - description: result.title, - content: result.contents, - })); - }, -}; -``` - -It can then be added in `config.ts` like so: - -```typescript title="~/.continue/config.ts" -export function modifyConfig(config: Config): Config { - if (!config.contextProviders) { - config.contextProviders = []; - } - config.contextProviders.push(RagContextProvider); - return config; -} -``` - -No modification in `config.json` is necessary. - -### Custom Context Providers with Submenu or Query - -There are 3 types of context providers: "normal", "query", and "submenu". The "normal" type is the default, and is what we've seen so far. - -The **"query"** type is used when you want to display a text box to the user, and then use the contents of that text box to generate the context items. Built-in examples include ["search"](#exact-search) and ["google"](#google). This text is what gets passed to the "query" argument in `getContextItems`. To implement a "query" context provider, simply set `"type": "query"` in your custom context provider object. - -The **"submenu"** type is used when you want to display a list of searchable items in the dropdown. Built-in examples include ["issue"](#github-issues) and ["folder"](#folders). To implement a "submenu" context provider, set `"type": "submenu"` and implement the `loadSubmenuItems` and `getContextItems` functions. Here is an example that shows a list of all README files in the current workspace: - -```typescript title="~/.continue/config.ts" -const ReadMeContextProvider: CustomContextProvider = { - title: "readme", - displayTitle: "README", - description: "Reference README.md files in your workspace", - type: "submenu", - - getContextItems: async ( - query: string, - extras: ContextProviderExtras, - ): Promise => { - // 'query' is the filepath of the README selected from the dropdown - const content = await extras.ide.readFile(query); - return [ - { - name: getFolder(query), - description: getFolderAndBasename(query), - content, - }, - ]; - }, - - loadSubmenuItems: async ( - args: LoadSubmenuItemsArgs, - ): Promise => { - // Filter all workspace files for READMEs - const allFiles = await args.ide.listWorkspaceContents(); - const readmes = allFiles.filter((filepath) => - filepath.endsWith("README.md"), - ); - - // Return the items that will be shown in the dropdown - return readmes.map((filepath) => { - return { - id: filepath, - title: getFolder(filepath), - description: getFolderAndBasename(filepath), - }; - }); - }, -}; - -export function modifyConfig(config: Config): Config { - if (!config.contextProviders) { - config.contextProviders = []; - } - config.contextProviders.push(ReadMeContextProvider); - return config; -} - -function getFolder(path: string): string { - return path.split(/[\/\\]/g).slice(-2)[0]; -} - -function getFolderAndBasename(path: string): string { - return path - .split(/[\/\\]/g) - .slice(-2) - .join("/"); -} -``` - -The flow of information in the above example is as follows: - -1. The user types `@readme` and selects it from the dropdown, now displaying the submenu where they can search for any item returned by `loadSubmenuItems`. -2. The user selects one of the READMEs in the submenu, enters the rest of their input, and presses enter. -3. The `id` of the chosen `ContextSubmenuItem` is passed to `getContextItems` as the `query` argument. In this case it is the filepath of the README. -4. The `getContextItems` function can then use the `query` to retrieve the full contents of the README and format the content before returning the context item which will be included in the prompt. - -### Importing outside modules - -To include outside Node modules in your config.ts, run `npm install ` from the `~/.continue` directory, and then import them in config.ts. - -Continue will use [esbuild](https://esbuild.github.io/) to bundle your `config.ts` and any dependencies into a single Javascript file. The exact configuration used can be found [here](https://github.com/continuedev/continue/blob/5c9874400e223bbc9786a8823614a2e501fbdaf7/extensions/vscode/src/ideProtocol.ts#L45-L52). - -### `CustomContextProvider` Reference - -- `title`: An identifier for the context provider -- `displayTitle` (optional): The title displayed in the dropdown -- `description` (optional): The longer description displayed in the dropdown when hovered -- `type` (optional): The type of context provider. Options are "normal", "query", and "submenu". Defaults to "normal". -- `renderInlineAs` (optional): The string that will be rendered inline at the top of the prompt. If no value is provided, the `displayTitle` will be used. An empty string can be provided to prevent rendering the default `displayTitle`. -- `getContextItems`: A function that returns the documents to include in the prompt. It should return a list of `ContextItem`s, and is given access to the following arguments: - - `extras.fullInput`: A string representing the user's full input to the text box. This can be used for example to generate an embedding to compare against a set of other embedded documents - - `extras.embeddingsProvider`: The embeddings provider has an `embed` function that will convert text (such as `fullInput`) to an embedding - - `extras.llm`: The current default LLM, which you can use to make completion requests - - `extras.ide`: An instance of the `IDE` class, which lets you gather various sources of information from the IDE, including the contents of the terminal, the list of open files, or any warnings in the currently open file. - - `query`: (not currently used) A string representing the query -- `loadSubmenuItems` (optional): A function that returns a list of `ContextSubmenuItem`s to display in a submenu. It is given access to an `IDE`, the same that is passed to `getContextItems`. - -### Writing Context Providers in Other Languages - -If you'd like to write a context provider in a language other than TypeScript, you can use the "http" context provider to call a server that hosts your own code. Add the context provider to `config.json` like this: - -```json -{ - "name": "http", - "params": { - "url": "https://myserver.com/context-provider", - "title": "http", - "description": "Custom HTTP Context Provider", - "displayTitle": "My Custom Context" - } -} -``` - -Then, create a server that responds to requests as are made from [HttpContextProvider.ts](../../../core/context/providers/HttpContextProvider.ts). See the `hello` endpoint in [context_provider_server.py](../../../core/context/providers/context_provider_server.py) for an example that uses FastAPI. - -### Extension API for VSCode - -Continue exposes an API for registering context providers from a 3rd party VSCode extension. This is useful if you have a VSCode extension that provides some additional context that you would like to use in Continue. To use this API, add the following to your `package.json`: - -```json -{ - "extensionDependencies": ["continue.continue"] -} -``` - -Or copy `~/.continue/type/core/index.d.ts` to your extension repository. - -Then, you can use the `registerCustomContextProvider` function to register your context provider. Your custom context provider must implement the `IContextProvider` interface. -Here is an example: - -```typescript -import * as vscode from "vscode"; - -class MyCustomProvider implements IContextProvider { - get description(): ContextProviderDescription { - return { - title: "custom", - displayTitle: "Custom", - description: "Custom description", - type: "normal", - }; - } - - async getContextItems( - query: string, - extras: ContextProviderExtras, - ): Promise { - return [ - { - name: "Custom", - description: "Custom description", - content: "Custom content", - }, - ]; - } - - async loadSubmenuItems( - args: LoadSubmenuItemsArgs, - ): Promise { - return []; - } -} - -// create an instance of your custom provider -const customProvider = new MyCustomProvider(); - -// get Continue extension using vscode API -const continueExt = vscode.extensions.getExtension("continue.continue"); - -// get the API from the extension -const continueApi = continueExt?.exports; - -// register your custom provider -continueApi?.registerCustomContextProvider(customProvider); -``` diff --git a/docs/static/schemas/config.json b/docs/static/schemas/config.json index ab2186d62..45faeb06f 100644 --- a/docs/static/schemas/config.json +++ b/docs/static/schemas/config.json @@ -204,7 +204,7 @@ "### Bedrock\nTo get started with Bedrock you need to sign up on AWS [here](https://aws.amazon.com/bedrock)", "### Bedrock Imported Models\nTo get started with Bedrock you need to sign up on AWS [here](https://aws.amazon.com/bedrock)", "### Sagemaker\nSagemaker is AWS' machine learning platform.", - "### Together\nTogether is a hosted service that provides extremely fast streaming of open-source language models. To get started with Together:\n1. Obtain an API key from [here](https://together.ai)\n2. Paste below\n3. Select a model preset\n> [Reference](https://docs.continue.dev/reference/Model%20Providers/togetherllm)", + "### Together\nTogether is a hosted service that provides extremely fast streaming of open-source language models. To get started with Together:\n1. Obtain an API key from [here](https://together.ai)\n2. Paste below\n3. Select a model preset\n> [Reference](https://docs.continue.dev/reference/Model%20Providers/together)", "### Ollama\nTo get started with Ollama, follow these steps:\n1. Download from [ollama.ai](https://ollama.ai/) and open the application\n2. Open a terminal and run `ollama run `. Example model names are `codellama:7b-instruct` or `llama2:7b-text`. You can find the full list [here](https://ollama.ai/library).\n3. Make sure that the model name used in step 2 is the same as the one in config.json (e.g. `model=\"codellama:7b-instruct\"`)\n4. Once the model has finished downloading, you can start asking questions through Continue.\n> [Reference](https://docs.continue.dev/reference/Model%20Providers/ollama)", "### Huggingface TGI\n\n> [Reference](https://docs.continue.dev/reference/Model%20Providers/huggingfacetgi)", "### Huggingface Inference API\n\n> [Reference](https://docs.continue.dev/reference/Model%20Providers/huggingfaceinferenceapi)", @@ -244,10 +244,10 @@ "type": "string" }, "region": { - "title": "Region", - "description": "The region where the model is hosted", - "type": "string" - }, + "title": "Region", + "description": "The region where the model is hosted", + "type": "string" + }, "profile": { "title": "Profile", "description": "The AWS security profile to use", @@ -414,7 +414,9 @@ "if": { "properties": { "provider": { - "enum": ["bedrockimport"] + "enum": [ + "bedrockimport" + ] } }, "required": ["provider"] @@ -524,7 +526,7 @@ "if": { "properties": { "provider": { - "enum": ["openai"] + "enum": ["openai", "azure"] } }, "required": ["provider"] @@ -708,13 +710,13 @@ "anyOf": [ { "enum": [ - "claude-2", - "claude-instant-1", "claude-3-5-sonnet-20240620", "claude-3-opus-20240229", "claude-3-sonnet-20240229", "claude-3-haiku-20240307", - "claude-2.1" + "claude-2.1", + "claude-2", + "claude-instant-1" ] }, { @@ -757,6 +759,7 @@ "anyOf": [ { "enum": [ + "anthropic.claude-3-5-sonnet-20240620-v1:0", "claude-3-sonnet-20240229", "claude-3-haiku-20240307", "claude-2" @@ -803,7 +806,6 @@ }, "model": { "enum": [ - "chat-bison-001", "gemini-pro", "gemini-1.5-pro-latest", "gemini-1.5-pro", @@ -944,33 +946,33 @@ "anyOf": [ { "enum": [ - "mistral-7b", - "llama2-7b", - "llama2-13b", - "codellama-7b", - "codellama-13b", - "codellama-34b", - "codellama-70b", - "llama3-8b", - "llama3-70b", - "llama3.1-8b", - "llama3.1-70b", - "llama3.1-405b", - "phi-2", - "phind-codellama-34b", - "wizardcoder-7b", - "wizardcoder-13b", - "wizardcoder-34b", - "zephyr-7b", - "codeup-13b", - "deepseek-7b", - "deepseek-33b", - "neural-chat-7b", - "deepseek-1b", - "stable-code-3b", - "starcoder-1b", - "starcoder-3b", - "starcoder2-3b", + "mistral:7b", + "llama2:7b", + "llama2:13b", + "codellama:7b", + "codellama:13b", + "codellama:34b", + "codellama:70b", + "llama3:8b", + "llama3:70b", + "llama3.1:8b", + "llama3.1:70b", + "llama3.1:405b", + "phi:2", + "phind:codellama:34b", + "wizardcoder:7b", + "wizardcoder:13b", + "wizardcoder:34b", + "zephyr:7b", + "codeup:13b", + "deepseek:7b", + "deepseek:33b", + "neural:chat:7b", + "deepseek:1b", + "stable:code:3b", + "starcoder:1b", + "starcoder:3b", + "starcoder2:3b", "AUTODETECT" ] }, @@ -1235,7 +1237,6 @@ "claude-2.1", "command-r", "command-r-plus", - "chat-bison-001", "gemini-pro", "gemini-1.5-pro-latest", "gemini-1.5-pro", @@ -1315,7 +1316,11 @@ "model": { "anyOf": [ { - "enum": ["llama3.1-8b", "llama3.1-70b", "llama3.1-405b"] + "enum": [ + "llama3.1-8b", + "llama3.1-70b", + "llama3.1-405b" + ] }, { "type": "string" @@ -1529,8 +1534,7 @@ "url", "database", "os", - "repo-map", - "greptile" + "repo-map" ], "markdownEnumDescriptions": [ "Reference the contents of the current changes as given by `git diff`", @@ -1554,8 +1558,7 @@ "Reference the contents of a page at a URL", "Reference table schemas", "Operating system and CPU Information", - "Map of files in the repository with important code highlights", - "Query your greptile index of the current repo" + "Map of files in the repository with important code highlights" ], "type": "string" }, @@ -2478,13 +2481,16 @@ "type": "object", "properties": { "inlineEdit": { - "$ref": "#/definitions/ModelTitle" + "description": "The 'title' property of the model you wish to use for inline edits", + "type": "string" }, "applyCodeBlock": { - "$ref": "#/definitions/ModelTitle" + "description": "The 'title' property of the model you wish to use for applying code blocks", + "type": "string" }, "repoMapFileSelection": { - "$ref": "#/definitions/ModelTitle" + "description": "The 'title' property of the model you wish to use for repo map file selections", + "type": "string" } } }, @@ -2547,12 +2553,6 @@ } } } - }, - "ModelTitle": { - "type": "string", - "enum": { - "$data": "/models/title" - } } } } diff --git a/extensions/intellij/src/main/resources/config_schema.json b/extensions/intellij/src/main/resources/config_schema.json index ab2186d62..45faeb06f 100644 --- a/extensions/intellij/src/main/resources/config_schema.json +++ b/extensions/intellij/src/main/resources/config_schema.json @@ -204,7 +204,7 @@ "### Bedrock\nTo get started with Bedrock you need to sign up on AWS [here](https://aws.amazon.com/bedrock)", "### Bedrock Imported Models\nTo get started with Bedrock you need to sign up on AWS [here](https://aws.amazon.com/bedrock)", "### Sagemaker\nSagemaker is AWS' machine learning platform.", - "### Together\nTogether is a hosted service that provides extremely fast streaming of open-source language models. To get started with Together:\n1. Obtain an API key from [here](https://together.ai)\n2. Paste below\n3. Select a model preset\n> [Reference](https://docs.continue.dev/reference/Model%20Providers/togetherllm)", + "### Together\nTogether is a hosted service that provides extremely fast streaming of open-source language models. To get started with Together:\n1. Obtain an API key from [here](https://together.ai)\n2. Paste below\n3. Select a model preset\n> [Reference](https://docs.continue.dev/reference/Model%20Providers/together)", "### Ollama\nTo get started with Ollama, follow these steps:\n1. Download from [ollama.ai](https://ollama.ai/) and open the application\n2. Open a terminal and run `ollama run `. Example model names are `codellama:7b-instruct` or `llama2:7b-text`. You can find the full list [here](https://ollama.ai/library).\n3. Make sure that the model name used in step 2 is the same as the one in config.json (e.g. `model=\"codellama:7b-instruct\"`)\n4. Once the model has finished downloading, you can start asking questions through Continue.\n> [Reference](https://docs.continue.dev/reference/Model%20Providers/ollama)", "### Huggingface TGI\n\n> [Reference](https://docs.continue.dev/reference/Model%20Providers/huggingfacetgi)", "### Huggingface Inference API\n\n> [Reference](https://docs.continue.dev/reference/Model%20Providers/huggingfaceinferenceapi)", @@ -244,10 +244,10 @@ "type": "string" }, "region": { - "title": "Region", - "description": "The region where the model is hosted", - "type": "string" - }, + "title": "Region", + "description": "The region where the model is hosted", + "type": "string" + }, "profile": { "title": "Profile", "description": "The AWS security profile to use", @@ -414,7 +414,9 @@ "if": { "properties": { "provider": { - "enum": ["bedrockimport"] + "enum": [ + "bedrockimport" + ] } }, "required": ["provider"] @@ -524,7 +526,7 @@ "if": { "properties": { "provider": { - "enum": ["openai"] + "enum": ["openai", "azure"] } }, "required": ["provider"] @@ -708,13 +710,13 @@ "anyOf": [ { "enum": [ - "claude-2", - "claude-instant-1", "claude-3-5-sonnet-20240620", "claude-3-opus-20240229", "claude-3-sonnet-20240229", "claude-3-haiku-20240307", - "claude-2.1" + "claude-2.1", + "claude-2", + "claude-instant-1" ] }, { @@ -757,6 +759,7 @@ "anyOf": [ { "enum": [ + "anthropic.claude-3-5-sonnet-20240620-v1:0", "claude-3-sonnet-20240229", "claude-3-haiku-20240307", "claude-2" @@ -803,7 +806,6 @@ }, "model": { "enum": [ - "chat-bison-001", "gemini-pro", "gemini-1.5-pro-latest", "gemini-1.5-pro", @@ -944,33 +946,33 @@ "anyOf": [ { "enum": [ - "mistral-7b", - "llama2-7b", - "llama2-13b", - "codellama-7b", - "codellama-13b", - "codellama-34b", - "codellama-70b", - "llama3-8b", - "llama3-70b", - "llama3.1-8b", - "llama3.1-70b", - "llama3.1-405b", - "phi-2", - "phind-codellama-34b", - "wizardcoder-7b", - "wizardcoder-13b", - "wizardcoder-34b", - "zephyr-7b", - "codeup-13b", - "deepseek-7b", - "deepseek-33b", - "neural-chat-7b", - "deepseek-1b", - "stable-code-3b", - "starcoder-1b", - "starcoder-3b", - "starcoder2-3b", + "mistral:7b", + "llama2:7b", + "llama2:13b", + "codellama:7b", + "codellama:13b", + "codellama:34b", + "codellama:70b", + "llama3:8b", + "llama3:70b", + "llama3.1:8b", + "llama3.1:70b", + "llama3.1:405b", + "phi:2", + "phind:codellama:34b", + "wizardcoder:7b", + "wizardcoder:13b", + "wizardcoder:34b", + "zephyr:7b", + "codeup:13b", + "deepseek:7b", + "deepseek:33b", + "neural:chat:7b", + "deepseek:1b", + "stable:code:3b", + "starcoder:1b", + "starcoder:3b", + "starcoder2:3b", "AUTODETECT" ] }, @@ -1235,7 +1237,6 @@ "claude-2.1", "command-r", "command-r-plus", - "chat-bison-001", "gemini-pro", "gemini-1.5-pro-latest", "gemini-1.5-pro", @@ -1315,7 +1316,11 @@ "model": { "anyOf": [ { - "enum": ["llama3.1-8b", "llama3.1-70b", "llama3.1-405b"] + "enum": [ + "llama3.1-8b", + "llama3.1-70b", + "llama3.1-405b" + ] }, { "type": "string" @@ -1529,8 +1534,7 @@ "url", "database", "os", - "repo-map", - "greptile" + "repo-map" ], "markdownEnumDescriptions": [ "Reference the contents of the current changes as given by `git diff`", @@ -1554,8 +1558,7 @@ "Reference the contents of a page at a URL", "Reference table schemas", "Operating system and CPU Information", - "Map of files in the repository with important code highlights", - "Query your greptile index of the current repo" + "Map of files in the repository with important code highlights" ], "type": "string" }, @@ -2478,13 +2481,16 @@ "type": "object", "properties": { "inlineEdit": { - "$ref": "#/definitions/ModelTitle" + "description": "The 'title' property of the model you wish to use for inline edits", + "type": "string" }, "applyCodeBlock": { - "$ref": "#/definitions/ModelTitle" + "description": "The 'title' property of the model you wish to use for applying code blocks", + "type": "string" }, "repoMapFileSelection": { - "$ref": "#/definitions/ModelTitle" + "description": "The 'title' property of the model you wish to use for repo map file selections", + "type": "string" } } }, @@ -2547,12 +2553,6 @@ } } } - }, - "ModelTitle": { - "type": "string", - "enum": { - "$data": "/models/title" - } } } } From 7afd26997e3ee835c8dd82535e2c0739adddacbf Mon Sep 17 00:00:00 2001 From: Justin Milner Date: Sat, 14 Sep 2024 20:18:15 -0400 Subject: [PATCH 047/268] one more --- extensions/vscode/continue_rc_schema.json | 89 +++++++++++------------ 1 file changed, 42 insertions(+), 47 deletions(-) diff --git a/extensions/vscode/continue_rc_schema.json b/extensions/vscode/continue_rc_schema.json index d880fad45..c33df73c2 100644 --- a/extensions/vscode/continue_rc_schema.json +++ b/extensions/vscode/continue_rc_schema.json @@ -207,7 +207,7 @@ "### Bedrock\nTo get started with Bedrock you need to sign up on AWS [here](https://aws.amazon.com/bedrock)", "### Bedrock Imported Models\nTo get started with Bedrock you need to sign up on AWS [here](https://aws.amazon.com/bedrock)", "### Sagemaker\nSagemaker is AWS' machine learning platform.", - "### Together\nTogether is a hosted service that provides extremely fast streaming of open-source language models. To get started with Together:\n1. Obtain an API key from [here](https://together.ai)\n2. Paste below\n3. Select a model preset\n> [Reference](https://docs.continue.dev/reference/Model%20Providers/togetherllm)", + "### Together\nTogether is a hosted service that provides extremely fast streaming of open-source language models. To get started with Together:\n1. Obtain an API key from [here](https://together.ai)\n2. Paste below\n3. Select a model preset\n> [Reference](https://docs.continue.dev/reference/Model%20Providers/together)", "### Ollama\nTo get started with Ollama, follow these steps:\n1. Download from [ollama.ai](https://ollama.ai/) and open the application\n2. Open a terminal and run `ollama run `. Example model names are `codellama:7b-instruct` or `llama2:7b-text`. You can find the full list [here](https://ollama.ai/library).\n3. Make sure that the model name used in step 2 is the same as the one in config.json (e.g. `model=\"codellama:7b-instruct\"`)\n4. Once the model has finished downloading, you can start asking questions through Continue.\n> [Reference](https://docs.continue.dev/reference/Model%20Providers/ollama)", "### Huggingface TGI\n\n> [Reference](https://docs.continue.dev/reference/Model%20Providers/huggingfacetgi)", "### Huggingface Inference API\n\n> [Reference](https://docs.continue.dev/reference/Model%20Providers/huggingfaceinferenceapi)", @@ -562,7 +562,8 @@ "properties": { "provider": { "enum": [ - "openai" + "openai", + "azure" ] } }, @@ -765,13 +766,13 @@ "anyOf": [ { "enum": [ - "claude-2", - "claude-instant-1", "claude-3-5-sonnet-20240620", "claude-3-opus-20240229", "claude-3-sonnet-20240229", "claude-3-haiku-20240307", - "claude-2.1" + "claude-2.1", + "claude-2", + "claude-instant-1" ] }, { @@ -825,6 +826,7 @@ "anyOf": [ { "enum": [ + "anthropic.claude-3-5-sonnet-20240620-v1:0", "claude-3-sonnet-20240229", "claude-3-haiku-20240307", "claude-2" @@ -879,7 +881,6 @@ }, "model": { "enum": [ - "chat-bison-001", "gemini-pro", "gemini-1.5-pro-latest", "gemini-1.5-pro", @@ -1034,33 +1035,33 @@ "anyOf": [ { "enum": [ - "mistral-7b", - "llama2-7b", - "llama2-13b", - "codellama-7b", - "codellama-13b", - "codellama-34b", - "codellama-70b", - "llama3-8b", - "llama3-70b", - "llama3.1-8b", - "llama3.1-70b", - "llama3.1-405b", - "phi-2", - "phind-codellama-34b", - "wizardcoder-7b", - "wizardcoder-13b", - "wizardcoder-34b", - "zephyr-7b", - "codeup-13b", - "deepseek-7b", - "deepseek-33b", - "neural-chat-7b", - "deepseek-1b", - "stable-code-3b", - "starcoder-1b", - "starcoder-3b", - "starcoder2-3b", + "mistral:7b", + "llama2:7b", + "llama2:13b", + "codellama:7b", + "codellama:13b", + "codellama:34b", + "codellama:70b", + "llama3:8b", + "llama3:70b", + "llama3.1:8b", + "llama3.1:70b", + "llama3.1:405b", + "phi:2", + "phind:codellama:34b", + "wizardcoder:7b", + "wizardcoder:13b", + "wizardcoder:34b", + "zephyr:7b", + "codeup:13b", + "deepseek:7b", + "deepseek:33b", + "neural:chat:7b", + "deepseek:1b", + "stable:code:3b", + "starcoder:1b", + "starcoder:3b", + "starcoder2:3b", "AUTODETECT" ] }, @@ -1372,7 +1373,6 @@ "claude-2.1", "command-r", "command-r-plus", - "chat-bison-001", "gemini-pro", "gemini-1.5-pro-latest", "gemini-1.5-pro", @@ -1700,8 +1700,7 @@ "url", "database", "os", - "repo-map", - "greptile" + "repo-map" ], "markdownEnumDescriptions": [ "Reference the contents of the current changes as given by `git diff`", @@ -1725,8 +1724,7 @@ "Reference the contents of a page at a URL", "Reference table schemas", "Operating system and CPU Information", - "Map of files in the repository with important code highlights", - "Query your greptile index of the current repo" + "Map of files in the repository with important code highlights" ], "type": "string" }, @@ -2784,13 +2782,16 @@ "type": "object", "properties": { "inlineEdit": { - "$ref": "#/definitions/ModelTitle" + "description": "The 'title' property of the model you wish to use for inline edits", + "type": "string" }, "applyCodeBlock": { - "$ref": "#/definitions/ModelTitle" + "description": "The 'title' property of the model you wish to use for applying code blocks", + "type": "string" }, "repoMapFileSelection": { - "$ref": "#/definitions/ModelTitle" + "description": "The 'title' property of the model you wish to use for repo map file selections", + "type": "string" } } }, @@ -2866,12 +2867,6 @@ "markdownDescription": "If set to 'merge', .continuerc.json will be applied on top of config.json (arrays and objects are merged). If set to 'overwrite', then every top-level property of .continuerc.json will overwrite that property from config.json." } } - }, - "ModelTitle": { - "type": "string", - "enum": { - "$data": "/models/title" - } } } } \ No newline at end of file From 2349477512df394dbb7fd807e867fad8e49570ee Mon Sep 17 00:00:00 2001 From: Nate Date: Sat, 14 Sep 2024 22:12:40 -0700 Subject: [PATCH 048/268] fix lsp bug --- extensions/vscode/src/autocomplete/lsp.ts | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/extensions/vscode/src/autocomplete/lsp.ts b/extensions/vscode/src/autocomplete/lsp.ts index 8ac365826..220b259d5 100644 --- a/extensions/vscode/src/autocomplete/lsp.ts +++ b/extensions/vscode/src/autocomplete/lsp.ts @@ -59,13 +59,15 @@ export async function executeGotoProvider( if (gotoCache.size >= MAX_CACHE_SIZE) { // Remove the oldest item from the cache const oldestKey = gotoCache.keys().next().value; - gotoCache.delete(oldestKey); + if (oldestKey) { + gotoCache.delete(oldestKey); + } } gotoCache.set(cacheKey, results); return results; } catch (e) { - console.warn(`Error executing ${name}:`, e); + console.warn(`Error executing ${input.name}:`, e); return []; } } From a96e81bb369d36ee7226f5fc773a2c8332a2b550 Mon Sep 17 00:00:00 2001 From: Nate Date: Sat, 14 Sep 2024 22:27:42 -0700 Subject: [PATCH 049/268] openrouter image support --- core/llm/autodetect.ts | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/core/llm/autodetect.ts b/core/llm/autodetect.ts index 523bcb028..e87e7417e 100644 --- a/core/llm/autodetect.ts +++ b/core/llm/autodetect.ts @@ -58,6 +58,7 @@ const PROVIDER_SUPPORTS_IMAGES: ModelProvider[] = [ "bedrock", "sagemaker", "continue-proxy", + "openrouter", ]; const MODEL_SUPPORTS_IMAGES: string[] = [ @@ -79,9 +80,11 @@ function modelSupportsImages( provider: ModelProvider, model: string, title: string | undefined, - capabilities: ModelCapability | undefined + capabilities: ModelCapability | undefined, ): boolean { - if (capabilities?.uploadImage !== undefined) {return capabilities.uploadImage;} + if (capabilities?.uploadImage !== undefined) { + return capabilities.uploadImage; + } if (!PROVIDER_SUPPORTS_IMAGES.includes(provider)) { return false; } From f339f0395b21662565f4cf73fbae9c20ffebdf54 Mon Sep 17 00:00:00 2001 From: Nate Date: Sun, 15 Sep 2024 12:52:36 -0700 Subject: [PATCH 050/268] remove local from launch.json --- .vscode/launch.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.vscode/launch.json b/.vscode/launch.json index 835c09089..896793040 100644 --- a/.vscode/launch.json +++ b/.vscode/launch.json @@ -20,7 +20,7 @@ "outFiles": ["${workspaceFolder}/extensions/vscode/out/extension.js"], "preLaunchTask": "vscode-extension:build", "env": { - "CONTROL_PLANE_ENV": "local" + // "CONTROL_PLANE_ENV": "local" } }, { From 3025730aa630c5464ed8e90f3cde936284e425cc Mon Sep 17 00:00:00 2001 From: Nate Date: Sun, 15 Sep 2024 13:01:45 -0700 Subject: [PATCH 051/268] update config_schemas --- docs/static/schemas/config.json | 82 +++++++------- .../src/main/resources/config_schema.json | 100 +++++++++--------- extensions/vscode/continue_rc_schema.json | 83 ++++++++------- 3 files changed, 135 insertions(+), 130 deletions(-) diff --git a/docs/static/schemas/config.json b/docs/static/schemas/config.json index 8586c9981..cbf47d4b4 100644 --- a/docs/static/schemas/config.json +++ b/docs/static/schemas/config.json @@ -204,7 +204,7 @@ "### Bedrock\nTo get started with Bedrock you need to sign up on AWS [here](https://aws.amazon.com/bedrock)", "### Bedrock Imported Models\nTo get started with Bedrock you need to sign up on AWS [here](https://aws.amazon.com/bedrock)", "### Sagemaker\nSagemaker is AWS' machine learning platform.", - "### Together\nTogether is a hosted service that provides extremely fast streaming of open-source language models. To get started with Together:\n1. Obtain an API key from [here](https://together.ai)\n2. Paste below\n3. Select a model preset\n> [Reference](https://docs.continue.dev/reference/Model%20Providers/together)", + "### Together\nTogether is a hosted service that provides extremely fast streaming of open-source language models. To get started with Together:\n1. Obtain an API key from [here](https://together.ai)\n2. Paste below\n3. Select a model preset\n> [Reference](https://docs.continue.dev/reference/Model%20Providers/togetherllm)", "### Ollama\nTo get started with Ollama, follow these steps:\n1. Download from [ollama.ai](https://ollama.ai/) and open the application\n2. Open a terminal and run `ollama run `. Example model names are `codellama:7b-instruct` or `llama2:7b-text`. You can find the full list [here](https://ollama.ai/library).\n3. Make sure that the model name used in step 2 is the same as the one in config.json (e.g. `model=\"codellama:7b-instruct\"`)\n4. Once the model has finished downloading, you can start asking questions through Continue.\n> [Reference](https://docs.continue.dev/reference/Model%20Providers/ollama)", "### Huggingface TGI\n\n> [Reference](https://docs.continue.dev/reference/Model%20Providers/huggingfacetgi)", "### Huggingface Inference API\n\n> [Reference](https://docs.continue.dev/reference/Model%20Providers/huggingfaceinferenceapi)", @@ -524,7 +524,7 @@ "if": { "properties": { "provider": { - "enum": ["openai", "azure"] + "enum": ["openai"] } }, "required": ["provider"] @@ -708,13 +708,13 @@ "anyOf": [ { "enum": [ + "claude-2", + "claude-instant-1", "claude-3-5-sonnet-20240620", "claude-3-opus-20240229", "claude-3-sonnet-20240229", "claude-3-haiku-20240307", - "claude-2.1", - "claude-2", - "claude-instant-1" + "claude-2.1" ] }, { @@ -757,7 +757,6 @@ "anyOf": [ { "enum": [ - "anthropic.claude-3-5-sonnet-20240620-v1:0", "claude-3-sonnet-20240229", "claude-3-haiku-20240307", "claude-2" @@ -804,6 +803,7 @@ }, "model": { "enum": [ + "chat-bison-001", "gemini-pro", "gemini-1.5-pro-latest", "gemini-1.5-pro", @@ -944,33 +944,33 @@ "anyOf": [ { "enum": [ - "mistral:7b", - "llama2:7b", - "llama2:13b", - "codellama:7b", - "codellama:13b", - "codellama:34b", - "codellama:70b", - "llama3:8b", - "llama3:70b", - "llama3.1:8b", - "llama3.1:70b", - "llama3.1:405b", - "phi:2", - "phind:codellama:34b", - "wizardcoder:7b", - "wizardcoder:13b", - "wizardcoder:34b", - "zephyr:7b", - "codeup:13b", - "deepseek:7b", - "deepseek:33b", - "neural:chat:7b", - "deepseek:1b", - "stable:code:3b", - "starcoder:1b", - "starcoder:3b", - "starcoder2:3b", + "mistral-7b", + "llama2-7b", + "llama2-13b", + "codellama-7b", + "codellama-13b", + "codellama-34b", + "codellama-70b", + "llama3-8b", + "llama3-70b", + "llama3.1-8b", + "llama3.1-70b", + "llama3.1-405b", + "phi-2", + "phind-codellama-34b", + "wizardcoder-7b", + "wizardcoder-13b", + "wizardcoder-34b", + "zephyr-7b", + "codeup-13b", + "deepseek-7b", + "deepseek-33b", + "neural-chat-7b", + "deepseek-1b", + "stable-code-3b", + "starcoder-1b", + "starcoder-3b", + "starcoder2-3b", "AUTODETECT" ] }, @@ -1235,6 +1235,7 @@ "claude-2.1", "command-r", "command-r-plus", + "chat-bison-001", "gemini-pro", "gemini-1.5-pro-latest", "gemini-1.5-pro", @@ -2475,16 +2476,13 @@ "type": "object", "properties": { "inlineEdit": { - "description": "The 'title' property of the model you wish to use for inline edits", - "type": "string" + "$ref": "#/definitions/ModelTitle" }, "applyCodeBlock": { - "description": "The 'title' property of the model you wish to use for applying code blocks", - "type": "string" + "$ref": "#/definitions/ModelTitle" }, "repoMapFileSelection": { - "description": "The 'title' property of the model you wish to use for repo map file selections", - "type": "string" + "$ref": "#/definitions/ModelTitle" } } }, @@ -2547,6 +2545,12 @@ } } } + }, + "ModelTitle": { + "type": "string", + "enum": { + "$data": "/models/title" + } } } } diff --git a/extensions/intellij/src/main/resources/config_schema.json b/extensions/intellij/src/main/resources/config_schema.json index 45faeb06f..cbf47d4b4 100644 --- a/extensions/intellij/src/main/resources/config_schema.json +++ b/extensions/intellij/src/main/resources/config_schema.json @@ -204,7 +204,7 @@ "### Bedrock\nTo get started with Bedrock you need to sign up on AWS [here](https://aws.amazon.com/bedrock)", "### Bedrock Imported Models\nTo get started with Bedrock you need to sign up on AWS [here](https://aws.amazon.com/bedrock)", "### Sagemaker\nSagemaker is AWS' machine learning platform.", - "### Together\nTogether is a hosted service that provides extremely fast streaming of open-source language models. To get started with Together:\n1. Obtain an API key from [here](https://together.ai)\n2. Paste below\n3. Select a model preset\n> [Reference](https://docs.continue.dev/reference/Model%20Providers/together)", + "### Together\nTogether is a hosted service that provides extremely fast streaming of open-source language models. To get started with Together:\n1. Obtain an API key from [here](https://together.ai)\n2. Paste below\n3. Select a model preset\n> [Reference](https://docs.continue.dev/reference/Model%20Providers/togetherllm)", "### Ollama\nTo get started with Ollama, follow these steps:\n1. Download from [ollama.ai](https://ollama.ai/) and open the application\n2. Open a terminal and run `ollama run `. Example model names are `codellama:7b-instruct` or `llama2:7b-text`. You can find the full list [here](https://ollama.ai/library).\n3. Make sure that the model name used in step 2 is the same as the one in config.json (e.g. `model=\"codellama:7b-instruct\"`)\n4. Once the model has finished downloading, you can start asking questions through Continue.\n> [Reference](https://docs.continue.dev/reference/Model%20Providers/ollama)", "### Huggingface TGI\n\n> [Reference](https://docs.continue.dev/reference/Model%20Providers/huggingfacetgi)", "### Huggingface Inference API\n\n> [Reference](https://docs.continue.dev/reference/Model%20Providers/huggingfaceinferenceapi)", @@ -244,10 +244,10 @@ "type": "string" }, "region": { - "title": "Region", - "description": "The region where the model is hosted", - "type": "string" - }, + "title": "Region", + "description": "The region where the model is hosted", + "type": "string" + }, "profile": { "title": "Profile", "description": "The AWS security profile to use", @@ -414,9 +414,7 @@ "if": { "properties": { "provider": { - "enum": [ - "bedrockimport" - ] + "enum": ["bedrockimport"] } }, "required": ["provider"] @@ -526,7 +524,7 @@ "if": { "properties": { "provider": { - "enum": ["openai", "azure"] + "enum": ["openai"] } }, "required": ["provider"] @@ -710,13 +708,13 @@ "anyOf": [ { "enum": [ + "claude-2", + "claude-instant-1", "claude-3-5-sonnet-20240620", "claude-3-opus-20240229", "claude-3-sonnet-20240229", "claude-3-haiku-20240307", - "claude-2.1", - "claude-2", - "claude-instant-1" + "claude-2.1" ] }, { @@ -759,7 +757,6 @@ "anyOf": [ { "enum": [ - "anthropic.claude-3-5-sonnet-20240620-v1:0", "claude-3-sonnet-20240229", "claude-3-haiku-20240307", "claude-2" @@ -806,6 +803,7 @@ }, "model": { "enum": [ + "chat-bison-001", "gemini-pro", "gemini-1.5-pro-latest", "gemini-1.5-pro", @@ -946,33 +944,33 @@ "anyOf": [ { "enum": [ - "mistral:7b", - "llama2:7b", - "llama2:13b", - "codellama:7b", - "codellama:13b", - "codellama:34b", - "codellama:70b", - "llama3:8b", - "llama3:70b", - "llama3.1:8b", - "llama3.1:70b", - "llama3.1:405b", - "phi:2", - "phind:codellama:34b", - "wizardcoder:7b", - "wizardcoder:13b", - "wizardcoder:34b", - "zephyr:7b", - "codeup:13b", - "deepseek:7b", - "deepseek:33b", - "neural:chat:7b", - "deepseek:1b", - "stable:code:3b", - "starcoder:1b", - "starcoder:3b", - "starcoder2:3b", + "mistral-7b", + "llama2-7b", + "llama2-13b", + "codellama-7b", + "codellama-13b", + "codellama-34b", + "codellama-70b", + "llama3-8b", + "llama3-70b", + "llama3.1-8b", + "llama3.1-70b", + "llama3.1-405b", + "phi-2", + "phind-codellama-34b", + "wizardcoder-7b", + "wizardcoder-13b", + "wizardcoder-34b", + "zephyr-7b", + "codeup-13b", + "deepseek-7b", + "deepseek-33b", + "neural-chat-7b", + "deepseek-1b", + "stable-code-3b", + "starcoder-1b", + "starcoder-3b", + "starcoder2-3b", "AUTODETECT" ] }, @@ -1237,6 +1235,7 @@ "claude-2.1", "command-r", "command-r-plus", + "chat-bison-001", "gemini-pro", "gemini-1.5-pro-latest", "gemini-1.5-pro", @@ -1316,11 +1315,7 @@ "model": { "anyOf": [ { - "enum": [ - "llama3.1-8b", - "llama3.1-70b", - "llama3.1-405b" - ] + "enum": ["llama3.1-8b", "llama3.1-70b", "llama3.1-405b"] }, { "type": "string" @@ -2481,16 +2476,13 @@ "type": "object", "properties": { "inlineEdit": { - "description": "The 'title' property of the model you wish to use for inline edits", - "type": "string" + "$ref": "#/definitions/ModelTitle" }, "applyCodeBlock": { - "description": "The 'title' property of the model you wish to use for applying code blocks", - "type": "string" + "$ref": "#/definitions/ModelTitle" }, "repoMapFileSelection": { - "description": "The 'title' property of the model you wish to use for repo map file selections", - "type": "string" + "$ref": "#/definitions/ModelTitle" } } }, @@ -2553,6 +2545,12 @@ } } } + }, + "ModelTitle": { + "type": "string", + "enum": { + "$data": "/models/title" + } } } } diff --git a/extensions/vscode/continue_rc_schema.json b/extensions/vscode/continue_rc_schema.json index c33df73c2..58453fc5c 100644 --- a/extensions/vscode/continue_rc_schema.json +++ b/extensions/vscode/continue_rc_schema.json @@ -207,7 +207,7 @@ "### Bedrock\nTo get started with Bedrock you need to sign up on AWS [here](https://aws.amazon.com/bedrock)", "### Bedrock Imported Models\nTo get started with Bedrock you need to sign up on AWS [here](https://aws.amazon.com/bedrock)", "### Sagemaker\nSagemaker is AWS' machine learning platform.", - "### Together\nTogether is a hosted service that provides extremely fast streaming of open-source language models. To get started with Together:\n1. Obtain an API key from [here](https://together.ai)\n2. Paste below\n3. Select a model preset\n> [Reference](https://docs.continue.dev/reference/Model%20Providers/together)", + "### Together\nTogether is a hosted service that provides extremely fast streaming of open-source language models. To get started with Together:\n1. Obtain an API key from [here](https://together.ai)\n2. Paste below\n3. Select a model preset\n> [Reference](https://docs.continue.dev/reference/Model%20Providers/togetherllm)", "### Ollama\nTo get started with Ollama, follow these steps:\n1. Download from [ollama.ai](https://ollama.ai/) and open the application\n2. Open a terminal and run `ollama run `. Example model names are `codellama:7b-instruct` or `llama2:7b-text`. You can find the full list [here](https://ollama.ai/library).\n3. Make sure that the model name used in step 2 is the same as the one in config.json (e.g. `model=\"codellama:7b-instruct\"`)\n4. Once the model has finished downloading, you can start asking questions through Continue.\n> [Reference](https://docs.continue.dev/reference/Model%20Providers/ollama)", "### Huggingface TGI\n\n> [Reference](https://docs.continue.dev/reference/Model%20Providers/huggingfacetgi)", "### Huggingface Inference API\n\n> [Reference](https://docs.continue.dev/reference/Model%20Providers/huggingfaceinferenceapi)", @@ -562,8 +562,7 @@ "properties": { "provider": { "enum": [ - "openai", - "azure" + "openai" ] } }, @@ -766,13 +765,13 @@ "anyOf": [ { "enum": [ + "claude-2", + "claude-instant-1", "claude-3-5-sonnet-20240620", "claude-3-opus-20240229", "claude-3-sonnet-20240229", "claude-3-haiku-20240307", - "claude-2.1", - "claude-2", - "claude-instant-1" + "claude-2.1" ] }, { @@ -826,7 +825,6 @@ "anyOf": [ { "enum": [ - "anthropic.claude-3-5-sonnet-20240620-v1:0", "claude-3-sonnet-20240229", "claude-3-haiku-20240307", "claude-2" @@ -881,6 +879,7 @@ }, "model": { "enum": [ + "chat-bison-001", "gemini-pro", "gemini-1.5-pro-latest", "gemini-1.5-pro", @@ -1035,33 +1034,33 @@ "anyOf": [ { "enum": [ - "mistral:7b", - "llama2:7b", - "llama2:13b", - "codellama:7b", - "codellama:13b", - "codellama:34b", - "codellama:70b", - "llama3:8b", - "llama3:70b", - "llama3.1:8b", - "llama3.1:70b", - "llama3.1:405b", - "phi:2", - "phind:codellama:34b", - "wizardcoder:7b", - "wizardcoder:13b", - "wizardcoder:34b", - "zephyr:7b", - "codeup:13b", - "deepseek:7b", - "deepseek:33b", - "neural:chat:7b", - "deepseek:1b", - "stable:code:3b", - "starcoder:1b", - "starcoder:3b", - "starcoder2:3b", + "mistral-7b", + "llama2-7b", + "llama2-13b", + "codellama-7b", + "codellama-13b", + "codellama-34b", + "codellama-70b", + "llama3-8b", + "llama3-70b", + "llama3.1-8b", + "llama3.1-70b", + "llama3.1-405b", + "phi-2", + "phind-codellama-34b", + "wizardcoder-7b", + "wizardcoder-13b", + "wizardcoder-34b", + "zephyr-7b", + "codeup-13b", + "deepseek-7b", + "deepseek-33b", + "neural-chat-7b", + "deepseek-1b", + "stable-code-3b", + "starcoder-1b", + "starcoder-3b", + "starcoder2-3b", "AUTODETECT" ] }, @@ -1373,6 +1372,7 @@ "claude-2.1", "command-r", "command-r-plus", + "chat-bison-001", "gemini-pro", "gemini-1.5-pro-latest", "gemini-1.5-pro", @@ -2782,16 +2782,13 @@ "type": "object", "properties": { "inlineEdit": { - "description": "The 'title' property of the model you wish to use for inline edits", - "type": "string" + "$ref": "#/definitions/ModelTitle" }, "applyCodeBlock": { - "description": "The 'title' property of the model you wish to use for applying code blocks", - "type": "string" + "$ref": "#/definitions/ModelTitle" }, "repoMapFileSelection": { - "description": "The 'title' property of the model you wish to use for repo map file selections", - "type": "string" + "$ref": "#/definitions/ModelTitle" } } }, @@ -2867,6 +2864,12 @@ "markdownDescription": "If set to 'merge', .continuerc.json will be applied on top of config.json (arrays and objects are merged). If set to 'overwrite', then every top-level property of .continuerc.json will overwrite that property from config.json." } } + }, + "ModelTitle": { + "type": "string", + "enum": { + "$data": "/models/title" + } } } } \ No newline at end of file From 874b375489e6d4707a22129ab79ed339b4dc8d64 Mon Sep 17 00:00:00 2001 From: Nate Date: Sun, 15 Sep 2024 16:25:21 -0700 Subject: [PATCH 052/268] update llm-info --- packages/llm-info/package.json | 2 +- packages/llm-info/src/models/anthropic.ts | 7 +++ packages/llm-info/src/models/google.ts | 2 + packages/llm-info/src/models/openai.ts | 55 ++++++++++++++++------- packages/llm-info/src/types.ts | 1 + 5 files changed, 49 insertions(+), 18 deletions(-) diff --git a/packages/llm-info/package.json b/packages/llm-info/package.json index 450614c85..5cdb50937 100644 --- a/packages/llm-info/package.json +++ b/packages/llm-info/package.json @@ -1,6 +1,6 @@ { "name": "@continuedev/llm-info", - "version": "1.0.1", + "version": "1.0.2", "description": "", "main": "dist/index.js", "types": "dist/index.d.ts", diff --git a/packages/llm-info/src/models/anthropic.ts b/packages/llm-info/src/models/anthropic.ts index e3c85230c..d84e50c71 100644 --- a/packages/llm-info/src/models/anthropic.ts +++ b/packages/llm-info/src/models/anthropic.ts @@ -5,6 +5,7 @@ export const AnthropicLlms: LlmInfo[] = [ model: "claude-3-5-sonnet-20240620", displayName: "Claude 3.5 Sonnet", contextLength: 200_000, + maxCompletionTokens: 8192, description: "Most intelligent model with the highest level of intelligence and capability.", regex: /claude-3\.5-sonnet/i, @@ -13,6 +14,7 @@ export const AnthropicLlms: LlmInfo[] = [ model: "claude-3-opus-20240229", displayName: "Claude 3 Opus", contextLength: 200_000, + maxCompletionTokens: 4096, description: "Powerful model for highly complex tasks with top-level performance, intelligence, fluency, and understanding.", regex: /claude-3-opus/i, @@ -21,6 +23,7 @@ export const AnthropicLlms: LlmInfo[] = [ model: "claude-3-sonnet-20240229", displayName: "Claude 3 Sonnet", contextLength: 200_000, + maxCompletionTokens: 4096, description: "Balance of intelligence and speed with strong utility, balanced for scaled deployments.", regex: /claude-3-sonnet/i, @@ -29,6 +32,7 @@ export const AnthropicLlms: LlmInfo[] = [ model: "claude-3-haiku-20240307", displayName: "Claude 3 Haiku", contextLength: 200_000, + maxCompletionTokens: 4096, description: "Fastest and most compact model for near-instant responsiveness with quick and accurate targeted performance.", regex: /claude-3-haiku/i, @@ -37,6 +41,7 @@ export const AnthropicLlms: LlmInfo[] = [ model: "claude-2.1", displayName: "Claude 2.1", contextLength: 200_000, + maxCompletionTokens: 4096, description: "Updated version of Claude 2 with improved accuracy and consistency.", regex: /claude-2\.1/i, @@ -45,6 +50,7 @@ export const AnthropicLlms: LlmInfo[] = [ model: "claude-2.0", displayName: "Claude 2", contextLength: 100_000, + maxCompletionTokens: 4096, description: "Predecessor to Claude 3, offering strong all-round performance.", regex: /claude-2\.0/i, @@ -53,6 +59,7 @@ export const AnthropicLlms: LlmInfo[] = [ model: "claude-instant-1.2", displayName: "Claude Instant 1.2", contextLength: 100_000, + maxCompletionTokens: 4096, description: "Our cheapest small and fast model, a predecessor of Claude Haiku.", regex: /claude-instant-1\.2/i, diff --git a/packages/llm-info/src/models/google.ts b/packages/llm-info/src/models/google.ts index 65704cdba..64c23d52e 100644 --- a/packages/llm-info/src/models/google.ts +++ b/packages/llm-info/src/models/google.ts @@ -5,6 +5,7 @@ export const GoogleLlms: LlmInfo[] = [ model: "gemini-1.5-flash", displayName: "Gemini 1.5 Flash", contextLength: 1_048_576, + maxCompletionTokens: 8192, mediaTypes: AllMediaTypes, regex: /gemini-1\.5-flash/i, }, @@ -12,6 +13,7 @@ export const GoogleLlms: LlmInfo[] = [ model: "gemini-1.5-pro", displayName: "Gemini 1.5 Pro", contextLength: 2_097_152, + maxCompletionTokens: 8192, regex: /gemini-1\.5-pro/i, }, { diff --git a/packages/llm-info/src/models/openai.ts b/packages/llm-info/src/models/openai.ts index c7b0cd778..2f354c15b 100644 --- a/packages/llm-info/src/models/openai.ts +++ b/packages/llm-info/src/models/openai.ts @@ -4,48 +4,71 @@ export const OpenAiLlms: LlmInfo[] = [ { model: "gpt-3.5-turbo", displayName: "GPT-3.5 Turbo", - contextLength: 4096, - }, - { - model: "gpt-3.5-turbo-0613", - displayName: "GPT-3.5 Turbo (0613)", - contextLength: 4096, + contextLength: 16_385, + maxCompletionTokens: 4096, }, { model: "gpt-3.5-turbo-16k", displayName: "GPT-3.5 Turbo 16K", contextLength: 16384, + maxCompletionTokens: 4096, }, { model: "gpt-35-turbo-16k", displayName: "GPT-3.5 Turbo 16K", contextLength: 16384, + maxCompletionTokens: 4096, }, { model: "gpt-35-turbo-0613", displayName: "GPT-3.5 Turbo (0613)", contextLength: 4096, + maxCompletionTokens: 4096, }, { model: "gpt-35-turbo", displayName: "GPT-3.5 Turbo", contextLength: 4096, + maxCompletionTokens: 4096, }, + // gpt-4 { model: "gpt-4", displayName: "GPT-4", - contextLength: 4096, + contextLength: 8192, + maxCompletionTokens: 8192, }, { model: "gpt-4-32k", displayName: "GPT-4 32K", - contextLength: 4096, + contextLength: 32_000, + maxCompletionTokens: 8192, }, { model: "gpt-4-turbo-preview", displayName: "GPT-4 Turbo Preview", contextLength: 128_000, + maxCompletionTokens: 4096, }, + { + model: "gpt-4-vision", + displayName: "GPT-4 Vision", + contextLength: 128_000, + maxCompletionTokens: 4096, + }, + { + model: "gpt-4-0125-preview", + displayName: "GPT-4 (0125 Preview)", + contextLength: 128_000, + maxCompletionTokens: 4096, + }, + { + model: "gpt-4-1106-preview", + displayName: "GPT-4 (1106 Preview)", + contextLength: 128_000, + maxCompletionTokens: 4096, + }, + // gpt-4o { model: "gpt-4o", displayName: "GPT-4o", @@ -56,19 +79,17 @@ export const OpenAiLlms: LlmInfo[] = [ displayName: "GPT-4o Mini", contextLength: 128_000, }, + // o1 { - model: "gpt-4-vision", - displayName: "GPT-4 Vision", + model: "o1-preview", + displayName: "o1 Preview", contextLength: 128_000, + maxCompletionTokens: 32_768, }, { - model: "gpt-4-0125-preview", - displayName: "GPT-4 (0125 Preview)", - contextLength: 128_000, - }, - { - model: "gpt-4-1106-preview", - displayName: "GPT-4 (1106 Preview)", + model: "o1-mini", + displayName: "o1 Mini", contextLength: 128_000, + maxCompletionTokens: 65_536, }, ]; diff --git a/packages/llm-info/src/types.ts b/packages/llm-info/src/types.ts index 176989d57..e52b081c4 100644 --- a/packages/llm-info/src/types.ts +++ b/packages/llm-info/src/types.ts @@ -3,6 +3,7 @@ export interface LlmInfo { displayName?: string; description?: string; contextLength?: number; + maxCompletionTokens?: number; regex?: RegExp; /** If not set, assumes "text" only */ From 69286a73a7fef8faf65e3f803bca534e7b01f8cc Mon Sep 17 00:00:00 2001 From: Nate Date: Sun, 15 Sep 2024 16:34:49 -0700 Subject: [PATCH 053/268] update llm-info usage in core --- core/llm/index.ts | 1 + core/package-lock.json | 8 ++++---- core/package.json | 2 +- 3 files changed, 6 insertions(+), 5 deletions(-) diff --git a/core/llm/index.ts b/core/llm/index.ts index 9a1ddaf46..8150b64dd 100644 --- a/core/llm/index.ts +++ b/core/llm/index.ts @@ -135,6 +135,7 @@ export abstract class BaseLLM implements ILLM { }; this.model = options.model; + // Use @continuedev/llm-info package to autodetect certain parameters const llmInfo = findLlmInfo(this.model); const templateType = diff --git a/core/package-lock.json b/core/package-lock.json index a3332dc01..2dfc86570 100644 --- a/core/package-lock.json +++ b/core/package-lock.json @@ -13,7 +13,7 @@ "@aws-sdk/client-sagemaker-runtime": "^3.621.0", "@aws-sdk/credential-providers": "^3.620.1", "@continuedev/config-types": "^1.0.10", - "@continuedev/llm-info": "^1.0.1", + "@continuedev/llm-info": "^1.0.2", "@mozilla/readability": "^0.5.0", "@octokit/rest": "^20.0.2", "@typescript-eslint/eslint-plugin": "^7.8.0", @@ -3128,9 +3128,9 @@ } }, "node_modules/@continuedev/llm-info": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/@continuedev/llm-info/-/llm-info-1.0.1.tgz", - "integrity": "sha512-fmRXuOSwJ9ogBPSDduoedHF3WVg1rge3o8SRRg1hkUagRnxwZqtQj1sS5SjQyAqjQv6VPMGPDEtD77Za/hc4Jg==" + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/@continuedev/llm-info/-/llm-info-1.0.2.tgz", + "integrity": "sha512-B5VFcZlwlwQg6htbIjCjj3z/pj3I929BzgWowiLzxYC40ag+v3e/hM9EDGWCEdNIT+PDMchAwS67iNB+WhE7qg==" }, "node_modules/@esbuild/darwin-x64": { "version": "0.17.19", diff --git a/core/package.json b/core/package.json index f261f7078..002550df7 100644 --- a/core/package.json +++ b/core/package.json @@ -42,7 +42,7 @@ "@aws-sdk/client-sagemaker-runtime": "^3.621.0", "@aws-sdk/credential-providers": "^3.620.1", "@continuedev/config-types": "^1.0.10", - "@continuedev/llm-info": "^1.0.1", + "@continuedev/llm-info": "^1.0.2", "@mozilla/readability": "^0.5.0", "@octokit/rest": "^20.0.2", "@typescript-eslint/eslint-plugin": "^7.8.0", From 06ed48a9c9ce8b10a7bac59486d04ac25f6c7fec Mon Sep 17 00:00:00 2001 From: Nate Date: Sun, 15 Sep 2024 16:35:07 -0700 Subject: [PATCH 054/268] autodetect and increase maximum output tokens --- core/llm/constants.ts | 4 ++-- core/llm/index.ts | 11 ++++++++++- 2 files changed, 12 insertions(+), 3 deletions(-) diff --git a/core/llm/constants.ts b/core/llm/constants.ts index cc1866d4b..52265d509 100644 --- a/core/llm/constants.ts +++ b/core/llm/constants.ts @@ -1,5 +1,5 @@ -const DEFAULT_MAX_TOKENS = 1024; -const DEFAULT_CONTEXT_LENGTH = 4096; +const DEFAULT_MAX_TOKENS = 2048; +const DEFAULT_CONTEXT_LENGTH = 8096; const DEFAULT_TEMPERATURE = 0.5; const DEFAULT_ARGS = { diff --git a/core/llm/index.ts b/core/llm/index.ts index 8150b64dd..d7d0c5425 100644 --- a/core/llm/index.ts +++ b/core/llm/index.ts @@ -150,7 +150,16 @@ export abstract class BaseLLM implements ILLM { this.completionOptions = { ...options.completionOptions, model: options.model || "gpt-4", - maxTokens: options.completionOptions?.maxTokens ?? DEFAULT_MAX_TOKENS, + maxTokens: + options.completionOptions?.maxTokens ?? + (llmInfo?.maxCompletionTokens + ? Math.min( + llmInfo.maxCompletionTokens, + // Even if the model has a large maxTokens, we don't want to use that every time, + // because it takes away from the context length + this.contextLength / 4, + ) + : DEFAULT_MAX_TOKENS), }; if (CompletionOptionsForModels[options.model as ModelName]) { this.completionOptions = mergeJson( From ce612bc3340dfa843081c51214a04791b91a382e Mon Sep 17 00:00:00 2001 From: Nate Date: Sun, 15 Sep 2024 16:40:04 -0700 Subject: [PATCH 055/268] bump and update changelog --- .changes/extensions/vscode/0.9.210.md | 10 ++ .../unreleased/Added-20240915-163755.yaml | 4 + .../unreleased/Changed-20240905-130813.yaml | 4 - .../unreleased/Fixed-20240915-163641.yaml | 4 + extensions/intellij/CHANGELOG.md | 6 ++ extensions/vscode/CHANGELOG.md | 102 +++++++----------- extensions/vscode/package.json | 2 +- 7 files changed, 61 insertions(+), 71 deletions(-) create mode 100644 .changes/extensions/vscode/0.9.210.md create mode 100644 .changes/unreleased/Added-20240915-163755.yaml delete mode 100644 .changes/unreleased/Changed-20240905-130813.yaml create mode 100644 .changes/unreleased/Fixed-20240915-163641.yaml diff --git a/.changes/extensions/vscode/0.9.210.md b/.changes/extensions/vscode/0.9.210.md new file mode 100644 index 000000000..9f37dead1 --- /dev/null +++ b/.changes/extensions/vscode/0.9.210.md @@ -0,0 +1,10 @@ +## 0.9.210 - 2024-09-15 +### Added +* Majorly improved onboarding flow +* NVIDIA NIMs embeddings provider +* SambaNova LLM Provider +* Support for OpenAI's new o1-preview and o1-mini models +### Changed +* Use Chromium only as a fallback after asking user +### Fixed +* Increased default maxTokens, and autodetect for common models diff --git a/.changes/unreleased/Added-20240915-163755.yaml b/.changes/unreleased/Added-20240915-163755.yaml new file mode 100644 index 000000000..7d1fbe876 --- /dev/null +++ b/.changes/unreleased/Added-20240915-163755.yaml @@ -0,0 +1,4 @@ +project: extensions/intellij +kind: Added +body: Support for the "search" context provider +time: 2024-09-15T16:37:55.460922-07:00 diff --git a/.changes/unreleased/Changed-20240905-130813.yaml b/.changes/unreleased/Changed-20240905-130813.yaml deleted file mode 100644 index 415831eb6..000000000 --- a/.changes/unreleased/Changed-20240905-130813.yaml +++ /dev/null @@ -1,4 +0,0 @@ -project: extensions/vscode -kind: Changed -body: Use Chromium only as a fallback after asking user -time: 2024-09-05T13:08:13.018136-07:00 diff --git a/.changes/unreleased/Fixed-20240915-163641.yaml b/.changes/unreleased/Fixed-20240915-163641.yaml new file mode 100644 index 000000000..9b516c48c --- /dev/null +++ b/.changes/unreleased/Fixed-20240915-163641.yaml @@ -0,0 +1,4 @@ +project: extensions/intellij +kind: Fixed +body: Fixed bug where only first module would be recognized +time: 2024-09-15T16:36:41.899428-07:00 diff --git a/extensions/intellij/CHANGELOG.md b/extensions/intellij/CHANGELOG.md index 45fe2339a..80bde8774 100644 --- a/extensions/intellij/CHANGELOG.md +++ b/extensions/intellij/CHANGELOG.md @@ -5,6 +5,12 @@ adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html), and is generated by [Changie](https://github.com/miniscruff/changie). +Pre-release Changes +### Added +* Support for the "search" context provider +### Fixed +* Fixed bug where only first module would be recognized + ## 0.0.54 - 2024-07-13 ### Added * Partial autocomplete acceptance diff --git a/extensions/vscode/CHANGELOG.md b/extensions/vscode/CHANGELOG.md index f3a4e2ddd..4e37fb0e1 100644 --- a/extensions/vscode/CHANGELOG.md +++ b/extensions/vscode/CHANGELOG.md @@ -4,86 +4,70 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html), and is generated by [Changie](https://github.com/miniscruff/changie). -Pre-release Changes +## 0.9.210 - 2024-09-15 +### Added +* Majorly improved onboarding flow +* NVIDIA NIMs embeddings provider +* SambaNova LLM Provider +* Support for OpenAI's new o1-preview and o1-mini models ### Changed - * Use Chromium only as a fallback after asking user +### Fixed +* Increased default maxTokens, and autodetect for common models + +## 0.8.51 - 2024-09-05 +### Fixed +* Fixed CRLF bug causing diff streams to treat every line as changed on Windows ## 0.8.50 - 2024-09-02 - ### Fixed - * Hotfix for ability to use more than one inline context provider ## 0.8.49 - 2024-09-01 - ### Fixed - * Hotfix: submenu context providers ## 0.8.48 - 2024-09-01 - ### Added - * Improved indexing progress UI * Improved @codebase using repomap * Repo map context provider - ### Fixed - * Many small UI improvements * Fixes db.search not a function ## 0.8.47 - 2024-08-27 - ### Added - * Use headless browser for crawling to get better results * TTS support in the chat window - ### Changed - * Improved support for WatsonX models - ### Fixed - * Fixed several small indexing bugs ## 0.8.46 - 2024-08-11 - ### Added - * new /onboard slash command - ### Fixed - * Fixed problem loading config.ts * Fixed bug causing duplicate indexing work ## 0.8.45 - 2024-08-05 - ### Added - * Support for Llama 3.1 and gpt-4o-mini * Support for WatsonX+Granite models - ### Changed - * Significant improvements to indexing performance * Improved @codebase quality by more accurately searching over file names and paths * Improved @codebase accuracy * Further improvements to indexing performance - ### Fixed - * Improved docs indexing and management * Fixed Gemini embeddings provider ## 0.8.43 - 2024-07-08 - ### Added - * Improved indexing reliability and testing * Quick Actions: use CodeLens to quickly take common actions like adding docstrings @@ -91,60 +75,46 @@ Pre-release Changes ### Added -* Support for Gemini 1.5 Pro -* Link to code in the sidebar when using codebase retrieval -* Smoother onboarding experience -* .prompt files, a way of saving and sharing slash commands -* Support for Claude 3.5 Sonnet, Deepseek Coder v2, and other new models -* Support for comments in config.json -* Specify multiple autocomplete models and switch between them -* Improved bracket matching strategy reduces noisy completions +- Support for Gemini 1.5 Pro +- Link to code in the sidebar when using codebase retrieval +- Smoother onboarding experience +- .prompt files, a way of saving and sharing slash commands +- Support for Claude 3.5 Sonnet, Deepseek Coder v2, and other new models +- Support for comments in config.json +- Specify multiple autocomplete models and switch between them +- Improved bracket matching strategy reduces noisy completions ### Fixed -* Numerous reliability upgrades to codebase indexing +- Numerous reliability upgrades to codebase indexing ## 0.8.24 - 2024-04-12 - ### Added - * Support for improved retrieval models (Voyage embeddings/reranking) * New @code context provider * Personal usage analytics ## 0.8.15 - 2024-03-05 - ### Added - * Tab-autocomplete in beta ## 0.8.14 - 2024-03-03 - ### Added - * Image support * Full-text search index for retrieval * Docs context provider * CodeLlama-70b support - ### Changed - * config.ts only runs in NodeJS, not browser - ### Fixed - * Fixed proxy setting in config.json ## v0.8.2 - 2024-01-23 - ### Added - * Add codellama and gemini to free trial, using new server * Local codebase syncing and embeddings using LanceDB * Improved VS Code theme matching - ### Changed - * Updates to packaging to download native modules for current platform (lancedb, sqlite, onnxruntime, tree-sitter wasms) * Context providers now run from the extension side (in Node.js instead of browser javascript) @@ -152,55 +122,55 @@ Pre-release Changes ### Added -* disableSessionTitles option in config.json +- disableSessionTitles option in config.json ### Changed -* Use Ollama /chat endpoint instead of raw completions by default, and /show endpoint to gather model parameters like context length and stop tokens +- Use Ollama /chat endpoint instead of raw completions by default, and /show endpoint to gather model parameters like context length and stop tokens ## v0.6.19 - 2024-01-05 ### Added -* support for .continuerc.json in root of workspace to override config.json -* Inline context providers -* cmd+shift+L with new diff streaming UI for edits +- support for .continuerc.json in root of workspace to override config.json +- Inline context providers +- cmd+shift+L with new diff streaming UI for edits ### Changed -* Allow certain LLM servers to handle templating +- Allow certain LLM servers to handle templating ## v0.6.16 - 2023-12-25 ### Changed -* Context items are now kept around as a part of past messages, instead of staying at the main input -* No more Python server - Continue runs entirely in Typescript +- Context items are now kept around as a part of past messages, instead of staying at the main input +- No more Python server - Continue runs entirely in Typescript ## v0.6.4 - 2023-11-19 ### Changed -* migrated to .json config file format +- migrated to .json config file format ## v0.6.0 - 2023-11-10 ### Added -* Full screen mode -* StackOverflow slash command to augment with web search -* VS Code context menus: right click to add code to context, debug the terminal, or share your Continue session +- Full screen mode +- StackOverflow slash command to augment with web search +- VS Code context menus: right click to add code to context, debug the terminal, or share your Continue session ### Fixed -* Reliability improvements to JetBrains by bringing up-to-date with the socket.io refactor +- Reliability improvements to JetBrains by bringing up-to-date with the socket.io refactor ## v0.5.0 - 2023-11-09 ### Added -* Codebase Retrieval: Use /codebase or cmd+enter and Continue will automatically gather the most important context +- Codebase Retrieval: Use /codebase or cmd+enter and Continue will automatically gather the most important context ### Changed -* Switch from Websockets to Socket.io +- Switch from Websockets to Socket.io diff --git a/extensions/vscode/package.json b/extensions/vscode/package.json index 20582c70b..c359b86df 100644 --- a/extensions/vscode/package.json +++ b/extensions/vscode/package.json @@ -2,7 +2,7 @@ "name": "continue", "icon": "media/icon.png", "author": "Continue Dev, Inc", - "version": "0.9.209", + "version": "0.9.210", "repository": { "type": "git", "url": "https://github.com/continuedev/continue" From 5c80050d03f4983f9d452d54663301f8d44ce586 Mon Sep 17 00:00:00 2001 From: Nate Date: Sun, 15 Sep 2024 16:40:51 -0700 Subject: [PATCH 056/268] fix changelog --- .changes/extensions/vscode/0.9.210.md | 17 +++++++++++------ extensions/vscode/CHANGELOG.md | 1 - 2 files changed, 11 insertions(+), 7 deletions(-) diff --git a/.changes/extensions/vscode/0.9.210.md b/.changes/extensions/vscode/0.9.210.md index 9f37dead1..8e255dc2e 100644 --- a/.changes/extensions/vscode/0.9.210.md +++ b/.changes/extensions/vscode/0.9.210.md @@ -1,10 +1,15 @@ ## 0.9.210 - 2024-09-15 + ### Added -* Majorly improved onboarding flow -* NVIDIA NIMs embeddings provider -* SambaNova LLM Provider -* Support for OpenAI's new o1-preview and o1-mini models + +- NVIDIA NIMs embeddings provider +- SambaNova LLM Provider +- Support for OpenAI's new o1-preview and o1-mini models + ### Changed -* Use Chromium only as a fallback after asking user + +- Use Chromium only as a fallback after asking user + ### Fixed -* Increased default maxTokens, and autodetect for common models + +- Increased default maxTokens, and autodetect for common models diff --git a/extensions/vscode/CHANGELOG.md b/extensions/vscode/CHANGELOG.md index 4e37fb0e1..e7b4f883a 100644 --- a/extensions/vscode/CHANGELOG.md +++ b/extensions/vscode/CHANGELOG.md @@ -7,7 +7,6 @@ and is generated by [Changie](https://github.com/miniscruff/changie). ## 0.9.210 - 2024-09-15 ### Added -* Majorly improved onboarding flow * NVIDIA NIMs embeddings provider * SambaNova LLM Provider * Support for OpenAI's new o1-preview and o1-mini models From a795d70806b61a254776d9bdb66c687afb5e552b Mon Sep 17 00:00:00 2001 From: Nate Date: Mon, 16 Sep 2024 09:33:28 -0700 Subject: [PATCH 057/268] get a count of total pages crawled --- core/indexing/docs/DocsService.ts | 15 +++++++++------ 1 file changed, 9 insertions(+), 6 deletions(-) diff --git a/core/indexing/docs/DocsService.ts b/core/indexing/docs/DocsService.ts index 79e6dc86f..de773e662 100644 --- a/core/indexing/docs/DocsService.ts +++ b/core/indexing/docs/DocsService.ts @@ -1,8 +1,6 @@ import { open, type Database } from "sqlite"; import sqlite3 from "sqlite3"; import lancedb, { Connection } from "vectordb"; -import { ConfigHandler } from "../../config/ConfigHandler"; -import DocsContextProvider from "../../context/providers/DocsContextProvider"; import { Chunk, ContinueConfig, @@ -11,6 +9,9 @@ import { IndexingProgressUpdate, SiteIndexingConfig, } from "../.."; +import { ConfigHandler } from "../../config/ConfigHandler"; +import { addContextProvider } from "../../config/util"; +import DocsContextProvider from "../../context/providers/DocsContextProvider"; import { FromCoreProtocol, ToCoreProtocol } from "../../protocol"; import { GlobalContext } from "../../util/GlobalContext"; import { IMessenger } from "../../util/messenger"; @@ -31,7 +32,6 @@ import { SiteIndexingResults, } from "./preIndexed"; import preIndexedDocs from "./preIndexedDocs"; -import { addContextProvider } from "../../config/util"; // Purposefully lowercase because lancedb converts export interface LanceDbDocsRow { @@ -250,6 +250,10 @@ export default class DocsService { } } + Telemetry.capture("docs_pages_crawled", { + count: processedPages, + }); + const chunks: Chunk[] = []; const embeddings: number[][] = []; @@ -533,9 +537,8 @@ export default class DocsService { private async getLanceTableNameFromEmbeddingsProvider( isPreIndexedDoc: boolean, ) { - const embeddingsProvider = await this.getEmbeddingsProvider( - isPreIndexedDoc, - ); + const embeddingsProvider = + await this.getEmbeddingsProvider(isPreIndexedDoc); const embeddingsProviderId = this.removeInvalidLanceTableNameChars( embeddingsProvider.id, ); From 732609ca925ee62a69529750843c3494b8baf1b3 Mon Sep 17 00:00:00 2001 From: Nate Date: Mon, 16 Sep 2024 13:04:46 -0700 Subject: [PATCH 058/268] make sure that jetbrains tooltips disappera --- binary/package-lock.json | 2 +- extensions/intellij/gradle.properties | 2 +- .../ContinuePluginSelectionListener.kt | 29 +++++++++++-------- .../ContinueExtensionSettingsService.kt | 1 + extensions/vscode/package-lock.json | 6 ++-- gui/package-lock.json | 2 +- 6 files changed, 24 insertions(+), 18 deletions(-) diff --git a/binary/package-lock.json b/binary/package-lock.json index 7ed2f9aea..39367be9a 100644 --- a/binary/package-lock.json +++ b/binary/package-lock.json @@ -48,7 +48,7 @@ "@aws-sdk/client-sagemaker-runtime": "^3.621.0", "@aws-sdk/credential-providers": "^3.620.1", "@continuedev/config-types": "^1.0.10", - "@continuedev/llm-info": "^1.0.1", + "@continuedev/llm-info": "^1.0.2", "@mozilla/readability": "^0.5.0", "@octokit/rest": "^20.0.2", "@typescript-eslint/eslint-plugin": "^7.8.0", diff --git a/extensions/intellij/gradle.properties b/extensions/intellij/gradle.properties index a416d2887..34fbfa779 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.68 +pluginVersion = 0.0.69 # 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/listeners/ContinuePluginSelectionListener.kt b/extensions/intellij/src/main/kotlin/com/github/continuedev/continueintellijextension/listeners/ContinuePluginSelectionListener.kt index 55b106790..bf262a415 100644 --- a/extensions/intellij/src/main/kotlin/com/github/continuedev/continueintellijextension/listeners/ContinuePluginSelectionListener.kt +++ b/extensions/intellij/src/main/kotlin/com/github/continuedev/continueintellijextension/listeners/ContinuePluginSelectionListener.kt @@ -6,6 +6,7 @@ import com.github.continuedev.continueintellijextension.services.ContinueExtensi import com.github.continuedev.continueintellijextension.utils.Debouncer import com.intellij.openapi.application.ApplicationManager import com.intellij.openapi.components.service +import com.intellij.openapi.editor.Editor import com.intellij.openapi.editor.LogicalPosition import com.intellij.openapi.editor.SelectionModel import com.intellij.openapi.editor.event.SelectionEvent @@ -26,7 +27,18 @@ class ContinuePluginSelectionListener( debouncer.debounce { handleSelection(e) } } - private var toolTipComponent: ToolTipComponent? = null + private var toolTipComponents: ArrayList = ArrayList() + + private fun removeExistingTooltips(editor: Editor) { + ApplicationManager.getApplication().invokeLater { + toolTipComponents.forEach { + editor.contentComponent.remove(it) + } + editor.contentComponent.revalidate() + editor.contentComponent.repaint() + toolTipComponents.clear() + } + } private fun handleSelection(e: SelectionEvent) { ApplicationManager.getApplication().runReadAction { @@ -36,12 +48,7 @@ class ContinuePluginSelectionListener( // If selected text is empty, remove the tooltip if (selectedText.isNullOrEmpty()) { - ApplicationManager.getApplication().invokeLater { - toolTipComponent?.let { editor.contentComponent.remove(it) } - toolTipComponent = null - editor.contentComponent.revalidate() - editor.contentComponent.repaint() - } + removeExistingTooltips(editor) return@runReadAction } @@ -66,8 +73,7 @@ class ContinuePluginSelectionListener( val filepath = virtualFile?.path ?: "Unknown path" ApplicationManager.getApplication().invokeLater { - toolTipComponent?.let { editor.contentComponent.remove(it) } - + removeExistingTooltips(editor) editor.contentComponent.layout = null val line = startLine - 2 @@ -84,10 +90,9 @@ class ContinuePluginSelectionListener( val maxToolTipWidth = 600 x = max(0, min(x, maxEditorWidth - maxToolTipWidth)) - toolTipComponent = ToolTipComponent(editor, x, y) + val toolTipComponent = ToolTipComponent(editor, x, y) + toolTipComponents.add(toolTipComponent) editor.contentComponent.add(toolTipComponent) - } else { - toolTipComponent = null } editor.contentComponent.revalidate() 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 76439f260..30eb27204 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 @@ -41,6 +41,7 @@ class ContinueSettingsComponent: DumbAware { panel.add(JLabel("Remote Config Server URL:"), constraints) constraints.gridy++ + constraints.gridy++ panel.add(remoteConfigServerUrl, constraints) constraints.gridy++ panel.add(JLabel("Remote Config Sync Period (in minutes):"), constraints) diff --git a/extensions/vscode/package-lock.json b/extensions/vscode/package-lock.json index 890c69954..5b1d2e7c5 100644 --- a/extensions/vscode/package-lock.json +++ b/extensions/vscode/package-lock.json @@ -1,12 +1,12 @@ { "name": "continue", - "version": "0.9.209", + "version": "0.9.210", "lockfileVersion": 3, "requires": true, "packages": { "": { "name": "continue", - "version": "0.9.209", + "version": "0.9.210", "license": "Apache-2.0", "dependencies": { "@electron/rebuild": "^3.2.10", @@ -99,7 +99,7 @@ "@aws-sdk/client-sagemaker-runtime": "^3.621.0", "@aws-sdk/credential-providers": "^3.620.1", "@continuedev/config-types": "^1.0.10", - "@continuedev/llm-info": "^1.0.1", + "@continuedev/llm-info": "^1.0.2", "@mozilla/readability": "^0.5.0", "@octokit/rest": "^20.0.2", "@typescript-eslint/eslint-plugin": "^7.8.0", diff --git a/gui/package-lock.json b/gui/package-lock.json index 589d7578f..aa31ee27b 100644 --- a/gui/package-lock.json +++ b/gui/package-lock.json @@ -92,7 +92,7 @@ "@aws-sdk/client-sagemaker-runtime": "^3.621.0", "@aws-sdk/credential-providers": "^3.620.1", "@continuedev/config-types": "^1.0.10", - "@continuedev/llm-info": "^1.0.1", + "@continuedev/llm-info": "^1.0.2", "@mozilla/readability": "^0.5.0", "@octokit/rest": "^20.0.2", "@typescript-eslint/eslint-plugin": "^7.8.0", From 9d7da683a1b91bbfefb0d0934f735e11618dd5f6 Mon Sep 17 00:00:00 2001 From: Nate Date: Mon, 16 Sep 2024 13:40:55 -0700 Subject: [PATCH 059/268] more fixes to tooltip display --- .../ContinuePluginSelectionListener.kt | 43 ++++++++++--------- 1 file changed, 23 insertions(+), 20 deletions(-) diff --git a/extensions/intellij/src/main/kotlin/com/github/continuedev/continueintellijextension/listeners/ContinuePluginSelectionListener.kt b/extensions/intellij/src/main/kotlin/com/github/continuedev/continueintellijextension/listeners/ContinuePluginSelectionListener.kt index bf262a415..81609a1cc 100644 --- a/extensions/intellij/src/main/kotlin/com/github/continuedev/continueintellijextension/listeners/ContinuePluginSelectionListener.kt +++ b/extensions/intellij/src/main/kotlin/com/github/continuedev/continueintellijextension/listeners/ContinuePluginSelectionListener.kt @@ -29,7 +29,7 @@ class ContinuePluginSelectionListener( private var toolTipComponents: ArrayList = ArrayList() - private fun removeExistingTooltips(editor: Editor) { + private fun removeExistingTooltips(editor: Editor, onComplete : () -> Unit = {}) { ApplicationManager.getApplication().invokeLater { toolTipComponents.forEach { editor.contentComponent.remove(it) @@ -37,6 +37,7 @@ class ContinuePluginSelectionListener( editor.contentComponent.revalidate() editor.contentComponent.repaint() toolTipComponents.clear() + onComplete() } } @@ -72,31 +73,33 @@ class ContinuePluginSelectionListener( FileDocumentManager.getInstance().getFile(document) val filepath = virtualFile?.path ?: "Unknown path" - ApplicationManager.getApplication().invokeLater { - removeExistingTooltips(editor) - editor.contentComponent.layout = null - val line = startLine - 2 - if (line > 0 && startLine < endLine) { - // Get the text on line number "line" + removeExistingTooltips(editor) { + ApplicationManager.getApplication().invokeLater { + editor.contentComponent.layout = null + + val line = startLine - 2 + if (line > 0 && startLine < endLine) { + // Get the text on line number "line" // val text = document.getText(document.getLineStartOffset(line), document.getLineEndOffset(line)) - val pos = LogicalPosition(line, selectedText.split("\n")[0].length + 1) - val y: Int = editor.logicalPositionToXY(pos).y + editor.lineHeight - var x: Int = editor.logicalPositionToXY(pos).x + val pos = LogicalPosition(line, selectedText.split("\n")[0].length + 1) + val y: Int = editor.logicalPositionToXY(pos).y + editor.lineHeight + var x: Int = editor.logicalPositionToXY(pos).x - // Check if x is out of bounds - val maxEditorWidth = editor.contentComponent.width - val maxToolTipWidth = 600 - x = max(0, min(x, maxEditorWidth - maxToolTipWidth)) + // Check if x is out of bounds + val maxEditorWidth = editor.contentComponent.width + val maxToolTipWidth = 600 + x = max(0, min(x, maxEditorWidth - maxToolTipWidth)) - val toolTipComponent = ToolTipComponent(editor, x, y) - toolTipComponents.add(toolTipComponent) - editor.contentComponent.add(toolTipComponent) + val toolTipComponent = ToolTipComponent(editor, x, y) + toolTipComponents.add(toolTipComponent) + editor.contentComponent.add(toolTipComponent) + } + + editor.contentComponent.revalidate() + editor.contentComponent.repaint() } - - editor.contentComponent.revalidate() - editor.contentComponent.repaint() } } } From 3d45d4cf20e39d87aaabe912f763b4ce818139e7 Mon Sep 17 00:00:00 2001 From: Nate Date: Mon, 16 Sep 2024 14:05:58 -0700 Subject: [PATCH 060/268] test ci fix --- .github/workflows/jetbrains-release.yaml | 42 +++++++++++++----------- 1 file changed, 23 insertions(+), 19 deletions(-) diff --git a/.github/workflows/jetbrains-release.yaml b/.github/workflows/jetbrains-release.yaml index e4400f20b..ec67ef480 100644 --- a/.github/workflows/jetbrains-release.yaml +++ b/.github/workflows/jetbrains-release.yaml @@ -5,6 +5,9 @@ name: JetBrains Release on: + push: + branches: + - nate/jetbrains-updates release: types: [prereleased] @@ -171,27 +174,27 @@ jobs: # options: --options runtime --entitlements entitlements.xml # Build plugin - - name: Build plugin - run: ./gradlew buildPlugin + # - name: Build plugin + # run: ./gradlew buildPlugin - # Publish the plugin to JetBrains Marketplace - - name: Publish EAP Plugin - env: - PUBLISH_TOKEN: ${{ secrets.JETBRAINS_PUBLISH_TOKEN }} - CERTIFICATE_CHAIN: ${{ secrets.JETBRAINS_CERTIFICATE_CHAIN }} - PRIVATE_KEY: ${{ secrets.JETBRAINS_PRIVATE_KEY }} - PRIVATE_KEY_PASSWORD: ${{ secrets.JETBRAINS_PRIVATE_KEY_PASSWORD }} - RELEASE_CHANNEL: eap - run: ./gradlew publishPlugin + # # Publish the plugin to JetBrains Marketplace + # - name: Publish EAP Plugin + # env: + # PUBLISH_TOKEN: ${{ secrets.JETBRAINS_PUBLISH_TOKEN }} + # CERTIFICATE_CHAIN: ${{ secrets.JETBRAINS_CERTIFICATE_CHAIN }} + # PRIVATE_KEY: ${{ secrets.JETBRAINS_PRIVATE_KEY }} + # PRIVATE_KEY_PASSWORD: ${{ secrets.JETBRAINS_PRIVATE_KEY_PASSWORD }} + # RELEASE_CHANNEL: eap + # run: ./gradlew publishPlugin - - name: Publish Stable Plugin - env: - PUBLISH_TOKEN: ${{ secrets.JETBRAINS_PUBLISH_TOKEN }} - CERTIFICATE_CHAIN: ${{ secrets.JETBRAINS_CERTIFICATE_CHAIN }} - PRIVATE_KEY: ${{ secrets.JETBRAINS_PRIVATE_KEY }} - PRIVATE_KEY_PASSWORD: ${{ secrets.JETBRAINS_PRIVATE_KEY_PASSWORD }} - RELEASE_CHANNEL: default - run: ./gradlew publishPlugin + # - name: Publish Stable Plugin + # env: + # PUBLISH_TOKEN: ${{ secrets.JETBRAINS_PUBLISH_TOKEN }} + # CERTIFICATE_CHAIN: ${{ secrets.JETBRAINS_CERTIFICATE_CHAIN }} + # PRIVATE_KEY: ${{ secrets.JETBRAINS_PRIVATE_KEY }} + # PRIVATE_KEY_PASSWORD: ${{ secrets.JETBRAINS_PRIVATE_KEY_PASSWORD }} + # RELEASE_CHANNEL: default + # run: ./gradlew publishPlugin # Prepare plugin archive content for creating artifact - name: Prepare Plugin Artifact @@ -203,6 +206,7 @@ jobs: ls echo "---" FILENAME=`ls continue-intellij-extension-*.zip` + echo "Filename=${FILENAME}" unzip "$FILENAME" -d content echo "filename=${FILENAME%.????}" >> $GITHUB_OUTPUT From db8bbd5d3f3dc174adfb25f38ebfe71dac41bc54 Mon Sep 17 00:00:00 2001 From: Nate Date: Mon, 16 Sep 2024 14:13:11 -0700 Subject: [PATCH 061/268] don't check release name --- .github/workflows/jetbrains-release.yaml | 28 ++++++++++++------------ 1 file changed, 14 insertions(+), 14 deletions(-) diff --git a/.github/workflows/jetbrains-release.yaml b/.github/workflows/jetbrains-release.yaml index ec67ef480..155e84cdf 100644 --- a/.github/workflows/jetbrains-release.yaml +++ b/.github/workflows/jetbrains-release.yaml @@ -20,23 +20,23 @@ concurrency: cancel-in-progress: true jobs: - check_release_name: - runs-on: ubuntu-latest - outputs: - should_run: ${{ steps.check.outputs.should_run }} - steps: - - id: check - working-directory: . - run: | - if [[ "${{ github.event.release.tag_name }}" == v0.0.*-jetbrains ]]; then - echo "should_run=true" >> $GITHUB_OUTPUT - else - echo "should_run=false" >> $GITHUB_OUTPUT - fi + # check_release_name: + # runs-on: ubuntu-latest + # outputs: + # should_run: ${{ steps.check.outputs.should_run }} + # steps: + # - id: check + # working-directory: . + # run: | + # if [[ "${{ github.event.release.tag_name }}" == v0.0.*-jetbrains ]]; then + # echo "should_run=true" >> $GITHUB_OUTPUT + # else + # echo "should_run=false" >> $GITHUB_OUTPUT + # fi # Prepare and publish the plugin to JetBrains Marketplace repository build: - needs: check_release_name + # needs: check_release_name if: needs.check_release_name.outputs.should_run == 'true' name: Build Plugin runs-on: macos-latest From 22ba458b780d3c37859feb954baaca1d18d0120d Mon Sep 17 00:00:00 2001 From: Nate Date: Mon, 16 Sep 2024 14:15:41 -0700 Subject: [PATCH 062/268] update verification task file --- extensions/intellij/.run/Run Verifications.run.xml | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/extensions/intellij/.run/Run Verifications.run.xml b/extensions/intellij/.run/Run Verifications.run.xml index 3a8d68859..35b018168 100644 --- a/extensions/intellij/.run/Run Verifications.run.xml +++ b/extensions/intellij/.run/Run Verifications.run.xml @@ -3,7 +3,7 @@
{tooltipPortalDiv && ReactDOM.createPortal( - + Configure a model above in order to continue - , + , tooltipPortalDiv, )} @@ -117,9 +118,9 @@ const ProgressBar = ({ completed, total }: ProgressBarProps) => { {tooltipPortalDiv && ReactDOM.createPortal( - + {`Click to use your own API key or local LLM (required after ${FREE_TRIAL_LIMIT_REQUESTS} inputs)`} - , + , tooltipPortalDiv, )} diff --git a/gui/src/components/mainInput/CodeBlockComponent.tsx b/gui/src/components/mainInput/CodeBlockComponent.tsx new file mode 100644 index 000000000..3c0ba951f --- /dev/null +++ b/gui/src/components/mainInput/CodeBlockComponent.tsx @@ -0,0 +1,97 @@ +import { NodeViewWrapper } from "@tiptap/react"; +import { ContextItemWithId } from "core"; +import { useDispatch, useSelector } from "react-redux"; +import { vscBadgeBackground } from ".."; +import { setEditingContextItemAtIndex } from "../../redux/slices/stateSlice"; +import { RootState } from "../../redux/store"; +import CodeSnippetPreview from "../markdown/CodeSnippetPreview"; + +export const CodeBlockComponent = ({ + node, + deleteNode, + selected, + editor, + updateAttributes, +}: any) => { + const dispatch = useDispatch(); + const item: ContextItemWithId = node.attrs.item; + + const contextItems = useSelector( + (state: RootState) => state.state.contextItems, + ); + return ( + + { + deleteNode(); + }} + onEdit={async () => { + dispatch(setEditingContextItemAtIndex({ item })); + if (item.id === contextItems[0]?.id) { + // Find and delete the /edit command + let index = 0; + for (const el of editor.getJSON().content) { + if (el.type === "slashcommand") { + if (el.attrs.id === "/edit") { + editor + .chain() + .deleteRange({ from: index, to: index + 2 }) + .focus("end") + .run(); + break; + } + } + index += 1; + } + + updateAttributes({ + item: { + ...item, + editing: false, + }, + }); + } else { + let index = 0; + for (const el of editor.getJSON().content) { + if (el.type === "codeBlock") { + index += 2; + } else { + break; + } + } + editor + .chain() + .focus("end") + .insertContent([ + { + type: "slashcommand", + attrs: { id: "/edit", label: "/edit" }, + }, + { type: "text", text: " " }, + ]) + .run(); + + updateAttributes({ + item: { + ...item, + editing: true, + }, + }); + + await new Promise((resolve) => setTimeout(resolve, 100)); + editor.commands.focus("end"); + } + }} + editing={item.id === contextItems[0]?.id} + /> + + ); +}; diff --git a/gui/src/components/mainInput/CodeBlockExtension.tsx b/gui/src/components/mainInput/CodeBlockExtension.tsx index 4f9c670af..57be51893 100644 --- a/gui/src/components/mainInput/CodeBlockExtension.tsx +++ b/gui/src/components/mainInput/CodeBlockExtension.tsx @@ -1,103 +1,8 @@ import { mergeAttributes, Node } from "@tiptap/core"; -import { NodeViewWrapper, ReactNodeViewRenderer } from "@tiptap/react"; -import { ContextItemWithId } from "core"; -import { useDispatch, useSelector } from "react-redux"; -import { vscBadgeBackground } from ".."; -import { setEditingContextItemAtIndex } from "../../redux/slices/stateSlice"; -import { RootState } from "../../redux/store"; -import CodeSnippetPreview from "../markdown/CodeSnippetPreview"; +import { ReactNodeViewRenderer } from "@tiptap/react"; +import { CodeBlockComponent } from "./CodeBlockComponent"; -const CodeBlockComponent = ({ - node, - deleteNode, - selected, - editor, - updateAttributes, -}: any) => { - const dispatch = useDispatch(); - const item: ContextItemWithId = node.attrs.item; - - const contextItems = useSelector( - (state: RootState) => state.state.contextItems, - ); - return ( - - { - deleteNode(); - }} - onEdit={async () => { - dispatch(setEditingContextItemAtIndex({ item })); - if (item.id === contextItems[0]?.id) { - // Find and delete the /edit command - let index = 0; - for (const el of editor.getJSON().content) { - if (el.type === "slashcommand") { - if (el.attrs.id === "/edit") { - editor - .chain() - .deleteRange({ from: index, to: index + 2 }) - .focus("end") - .run(); - break; - } - } - index += 1; - } - - updateAttributes({ - item: { - ...item, - editing: false, - }, - }); - } else { - let index = 0; - for (const el of editor.getJSON().content) { - if (el.type === "codeBlock") { - index += 2; - } else { - break; - } - } - editor - .chain() - .focus("end") - .insertContent([ - { - type: "slashcommand", - attrs: { id: "/edit", label: "/edit" }, - }, - { type: "text", text: " " }, - ]) - .run(); - - updateAttributes({ - item: { - ...item, - editing: true, - }, - }); - - await new Promise((resolve) => setTimeout(resolve, 100)); - editor.commands.focus("end"); - } - }} - editing={item.id === contextItems[0]?.id} - /> - - ); -}; - -export default Node.create({ +export const CodeBlockExtension = Node.create({ name: "codeBlock", group: "block", diff --git a/gui/src/components/mainInput/InputToolbar.tsx b/gui/src/components/mainInput/InputToolbar.tsx index 7462c69cd..960baa999 100644 --- a/gui/src/components/mainInput/InputToolbar.tsx +++ b/gui/src/components/mainInput/InputToolbar.tsx @@ -202,7 +202,7 @@ function InputToolbar(props: InputToolbarProps) { }} className={"hover:underline cursor-pointer float-right"} > - {getMetaKeyLabel()} ⏎ Use codebase + {getMetaKeyLabel()} ⏎ Use @codebase )} ` opacity: 0.5; ` : props.hovered - ? ` + ? ` border: 1px solid ${props.color}; background-color: ${props.color}22; cursor: pointer;` - : ""} + : ""} `; const DimensionsDiv = styled.div` @@ -147,7 +148,9 @@ function ModelCard(props: ModelCardProps) {

{props.title}

- {props.tags?.map((tag, i) => )} + {props.tags?.map((tag, i) => ( + + ))}

{props.description}

diff --git a/gui/src/components/modelSelection/ModelProviderTag.tsx b/gui/src/components/modelSelection/ModelProviderTag.tsx index 11fbece42..0c0df5767 100644 --- a/gui/src/components/modelSelection/ModelProviderTag.tsx +++ b/gui/src/components/modelSelection/ModelProviderTag.tsx @@ -1,24 +1,11 @@ import { defaultBorderRadius } from ".."; - -export enum ModelProviderTags { - RequiresApiKey = "Requires API Key", - Local = "Local", - Free = "Free", - OpenSource = "Open-Source", -} +import { MODEL_PROVIDER_TAG_COLORS, ModelProviderTags } from "./utils"; export interface ModelProviderTagProps { tag: ModelProviderTags; } -export const MODEL_PROVIDER_TAG_COLORS = { - [ModelProviderTags.RequiresApiKey]: "#FF0000", - [ModelProviderTags.Local]: "#00bb00", - [ModelProviderTags.OpenSource]: "#0033FF", - [ModelProviderTags.Free]: "#ffff00", -}; - -export default function ModelProviderTag({ tag }: ModelProviderTagProps) { +export function ModelProviderTag({ tag }: ModelProviderTagProps) { return ( {option.title} -
+
{showDelete && ( diff --git a/gui/src/components/modelSelection/ModelSelectionListbox.tsx b/gui/src/components/modelSelection/ModelSelectionListbox.tsx index fd732d163..fcac2ce8b 100644 --- a/gui/src/components/modelSelection/ModelSelectionListbox.tsx +++ b/gui/src/components/modelSelection/ModelSelectionListbox.tsx @@ -111,7 +111,7 @@ function ModelSelectionListbox({ }: ModelSelectionListboxProps) { return ( -
+
{window.vscMediaUrl && selectedProvider.icon && ( @@ -160,7 +160,7 @@ function ModelSelectionListbox({ {option.title} {selected ? ( - + ) : null} diff --git a/gui/src/components/modelSelection/utils.ts b/gui/src/components/modelSelection/utils.ts new file mode 100644 index 000000000..f4a3ee8c8 --- /dev/null +++ b/gui/src/components/modelSelection/utils.ts @@ -0,0 +1,13 @@ +export enum ModelProviderTags { + RequiresApiKey = "Requires API Key", + Local = "Local", + Free = "Free", + OpenSource = "Open-Source", +} + +export const MODEL_PROVIDER_TAG_COLORS = { + [ModelProviderTags.RequiresApiKey]: "#FF0000", + [ModelProviderTags.Local]: "#00bb00", + [ModelProviderTags.OpenSource]: "#0033FF", + [ModelProviderTags.Free]: "#ffff00", +}; diff --git a/gui/src/forms/AddModelForm.tsx b/gui/src/forms/AddModelForm.tsx index ddb29799d..94aa0cf3b 100644 --- a/gui/src/forms/AddModelForm.tsx +++ b/gui/src/forms/AddModelForm.tsx @@ -177,7 +177,9 @@ function AddModelForm({ {selectedProvider.apiKeyUrl && (
<> - + { + packages: [models.llama31Chat].map((p) => { p.params.contextLength = 4096; return p; }), diff --git a/gui/src/pages/gui.tsx b/gui/src/pages/gui.tsx index 5f00d93e6..9b8b1d9b0 100644 --- a/gui/src/pages/gui.tsx +++ b/gui/src/pages/gui.tsx @@ -31,7 +31,8 @@ import TimelineItem from "../components/gui/TimelineItem"; import ContinueInputBox from "../components/mainInput/ContinueInputBox"; import { defaultInputModifiers } from "../components/mainInput/inputModifiers"; import { TutorialCard } from "../components/mainInput/TutorialCard"; -import OnboardingCard, { +import { + OnboardingCard, useOnboardingCard, } from "../components/OnboardingCard"; import { IdeMessengerContext } from "../context/IdeMessenger"; From a9a5faa59808fb87dc4cc068bd92bf1f9437ba25 Mon Sep 17 00:00:00 2001 From: Test Date: Tue, 17 Sep 2024 12:13:50 -0700 Subject: [PATCH 074/268] docs: clarify context provider examples --- core/autocomplete/README.md | 8 +- docs/docs/customize/context-providers.md | 325 ++++++++++++------ .../docs/customize/deep-dives/autocomplete.md | 4 +- 3 files changed, 229 insertions(+), 108 deletions(-) diff --git a/core/autocomplete/README.md b/core/autocomplete/README.md index 2c68be1bf..0aa95488f 100644 --- a/core/autocomplete/README.md +++ b/core/autocomplete/README.md @@ -25,7 +25,7 @@ You can also set up tab-autocomplete with a local LM Studio instance by followin Example: -```json title=~/.continue/config.json +```json title=config.json { "tabAutocompleteModel": { "title": "Starcoder2 3b", @@ -40,7 +40,7 @@ Example: All of the configuration options available for chat models are available to use for tab-autocomplete. For example, if you wanted to use a remote vLLM instance you would edit your `config.json` like this (note that it is not inside the models array), filling in the correct model name and vLLM endpoint: -```json title=~/.continue/config.json +```json title=config.json { "tabAutocompleteModel": { "title": "Tab Autocomplete Model", @@ -54,7 +54,7 @@ All of the configuration options available for chat models are available to use As another example, say you want to use a different model, `deepseek-coder:6.7b-base`, with Ollama: -```json title=~/.continue/config.json +```json title=config.json { "tabAutocompleteModel": { "title": "Tab Autocomplete Model", @@ -100,7 +100,7 @@ This object allows you to customize the behavior of tab-autocomplete. The availa ### Full example -```json title=~/.continue/config.json +```json title=config.json { "tabAutocompleteModel": { "title": "Tab Autocomplete Model", diff --git a/docs/docs/customize/context-providers.md b/docs/docs/customize/context-providers.md index 85433002a..e28e2a761 100644 --- a/docs/docs/customize/context-providers.md +++ b/docs/docs/customize/context-providers.md @@ -12,46 +12,76 @@ As an example, say you are working on solving a new GitHub Issue. You type '@iss ## Built-in Context Providers -To use any of the built-in context providers, open `~/.continue/config.json` and add it to the `contextProviders` list. +To use any of the built-in context providers, open `config.json` and add it to the `contextProviders` list. ### Files Type '@file' to reference any file in your current workspace. -```json -{ "name": "file" } +```json title=config.json +{ + "contextProviders": [ + { + "name": "file" + } + ] +} ``` ### Code Type '@code' to reference specific functions or classes from throughout your project. -```json -{ "name": "code" } +```json title=config.json +{ + "contextProviders": [ + { + "name": "code" + } + ] +} ``` ### Git Diff Type '@diff' to reference all of the changes you've made to your current branch. This is useful if you want to summarize what you've done or ask for a general review of your work before committing. -```json -{ "name": "diff" } +```json title=config.json +{ + "contextProviders": [ + { + "name": "diff" + } + ] +} ``` ### Terminal Type '@terminal' to reference the contents of your IDE's terminal. -```json -{ "name": "terminal" } +```json title=config.json +{ + "contextProviders": [ + { + "name": "terminal" + } + ] +} ``` ### Documentation Type `@docs` to index and retrieve snippets from any documentation site. -```json -{ "name": "docs" } +```json title=config.json +{ + "contextProviders": [ + { + "name": "docs" + } + ] +} ``` To learn more, visit `[@docs](../customize/deep-dives/docs.md)`. @@ -60,58 +90,103 @@ To learn more, visit `[@docs](../customize/deep-dives/docs.md)`. Type '@open' to reference the contents of all of your open files. Set `onlyPinned` to `true` to only reference pinned files. -```json -{ "name": "open", "params": { "onlyPinned": true } } +```json title=config.json +{ + "contextProviders": [ + { + "name": "open", + "params": { + "onlyPinned": true + } + } + ] +} ``` ### Codebase Retrieval Type '@codebase' to automatically retrieve the most relevant snippets from your codebase. Read more about indexing and retrieval [here](../customize/deep-dives/codebase.md). -```json -{ "name": "codebase" } +```json title=config.json +{ + "contextProviders": [ + { + "name": "codebase" + } + ] +} ``` ### Folders Type '@folder' to use the same retrieval mechanism as '@codebase', but only on a single folder. -```json -{ "name": "folder" } +```json title=config.json +{ + "contextProviders": [ + { + "name": "folder" + } + ] +} ``` ### Exact Search Type '@search' to reference the results of codebase search, just like the results you would get from VS Code search. This context provider is powered by [ripgrep](https://github.com/BurntSushi/ripgrep). -```json -{ "name": "search" } +```json title=config.json +{ + "contextProviders": [ + { + "name": "search" + } + ] +} ``` ### URL Type '@url' and input a URL, then Continue will convert it to a markdown document to pass to the model. -```json -{ "name": "url" } +```json title=config.json +{ + "contextProviders": [ + { + "name": "url" + } + ] +} ``` ### File Tree Type '@tree' to reference the structure of your current workspace. The LLM will be able to see the nested directory structure of your project. -```json -{ "name": "tree" } +```json title=config.json +{ + "contextProviders": [ + { + "name": "tree" + } + ] +} ``` ### Google Type '@google' to reference the results of a Google search. For example, type "@google python tutorial" if you want to search and discuss ways of learning Python. -```json +```json title=config.json { - "name": "google", - "params": { "serperApiKey": "" } + "contextProviders": [ + { + "name": "google", + "params": { + "serperApiKey": "" + } + } + ] } ``` @@ -121,18 +196,22 @@ Note: You can get an API key for free at [serper.dev](https://serper.dev). Type '@issue' to reference the conversation in a GitHub issue. Make sure to include your own [GitHub personal access token](https://docs.github.com/en/authentication/keeping-your-account-and-data-secure/managing-your-personal-access-tokens#creating-a-fine-grained-personal-access-token) to avoid being rate-limited: -```json +```json title=config.json { - "name": "issue", - "params": { - "repos": [ - { - "owner": "continuedev", - "repo": "continue" + "contextProviders": [ + { + "name": "issue", + "params": { + "repos": [ + { + "owner": "continuedev", + "repo": "continue" + } + ], + "githubToken": "ghp_xxx" } - ], - "githubToken": "ghp_xxx" - } + } + ] } ``` @@ -144,12 +223,16 @@ Type `@gitlab-mr` to reference an open MR for this branch on GitLab. 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 +```json title=config.json { - "name": "gitlab-mr", - "params": { - "token": "..." - } + "contextProviders": [ + { + "name": "gitlab-mr", + "params": { + "token": "..." + } + } + ] } ``` @@ -157,13 +240,17 @@ You will need to create a [personal access token](https://docs.gitlab.com/ee/use 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 +```json title=config.json { - "name": "gitlab-mr", - "params": { - "token": "...", - "domain": "gitlab.example.com" - } + "contextProviders": [ + { + "name": "gitlab-mr", + "params": { + "token": "...", + "domain": "gitlab.example.com" + } + } + ] } ``` @@ -175,13 +262,17 @@ If you select some code to be edited, you can have the context provider filter o 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), or use your `email` and `token`, with token set to your password for basic authentication. If you use your own Atlassian API Token, don't configure your email. -```json +```json title=config.json { - "name": "jira", - "params": { - "domain": "company.atlassian.net", - "token ": "ATATT..." - } + "contextProviders": [ + { + "name": "jira", + "params": { + "domain": "company.atlassian.net", + "token ": "ATATT..." + } + } + ] } ``` @@ -191,10 +282,18 @@ This context provider supports both Jira API version 2 and 3. It will use versio that's what the cloud version uses, but if you have the datacenter version of Jira, you'll need to set the API Version to 2 using the `apiVersion` property. -```json - "params": { - "apiVersion": "2", - ... +```json title=config.json +{ + "contextProviders": [ + { + "name": "jira", + "params": { + "apiVersion": "2" + } + } + ] +} +... } ``` @@ -217,7 +316,7 @@ You can override this query by setting the `issueQuery` parameter. Type '@outline' to reference the outline of all currently open files. The outline of a files consists of only the function and class definitions in the file. Supported file extensions are '.js', '.mjs', '.go', '.c', '.cc', '.cs', '.cpp', '.el', '.ex', '.elm', '.java', '.ml', '.php', '.ql', '.rb', '.rs', '.ts' -```json +```json title=config.json { "name": "outline" } ``` @@ -225,7 +324,7 @@ Type '@outline' to reference the outline of all currently open files. The outlin Type '@highlights' to reference the 'highlights' from all currently open files. The highlights are computed using Paul Gauthier's so-called ['repomap'](https://aider.chat/docs/repomap.html) technique in [Aider Chat](https://github.com/paul-gauthier/aider). Supported file extensions are the same as for '@Outline' (behind the scenes, we use the corresponding tree-sitter grammars for language parsing). -```json +```json title=config.json { "name": "highlights" } ``` --> @@ -239,18 +338,22 @@ By default, the `schema` filter is set to `public`, and the `sampleRows` is set [Here is a short demo.](https://github.com/continuedev/continue/pull/859) -```json +```json title=config.json { - "name": "postgres", - "params": { - "host": "localhost", - "port": 5436, - "user": "myuser", - "password": "catsarecool", - "database": "animals", - "schema": "public", - "sampleRows": 3 - } + "contextProviders": [ + { + "name": "postgres", + "params": { + "host": "localhost", + "port": 5436, + "user": "myuser", + "password": "catsarecool", + "database": "animals", + "schema": "public", + "sampleRows": 3 + } + } + ] } ``` @@ -258,31 +361,35 @@ By default, the `schema` filter is set to `public`, and the `sampleRows` is set Type `@database` to reference table schemas you can use the drop-down or start typeing table names based off of your configuration. Configuration supports multiple databases, allowing you to specify various connection details for PostgreSQL, MySQL, SQLite. Each connection should include a unique name, the connection_type (e.g., postgres, sqlite), and the necessary connection parameters specific to each database type. -```json +```json title=config.json { - "name": "database", - "params": { - "connections": [ - { - "name": "examplePostgres", - "connection_type": "postgres", - "connection": { - "user": "username", - "host": "localhost", - "database": "exampleDB", - "password": "yourPassword", - "port": 5432 - } - }, - { - "name": "exampleSqlite", - "connection_type": "sqlite", - "connection": { - "filename": "/path/to/your/sqlite/database.db" - } + "contextProviders": [ + { + "name": "database", + "params": { + "connections": [ + { + "name": "examplePostgres", + "connection_type": "postgres", + "connection": { + "user": "username", + "host": "localhost", + "database": "exampleDB", + "password": "yourPassword", + "port": 5432 + } + }, + { + "name": "exampleSqlite", + "connection_type": "sqlite", + "connection": { + "filename": "/path/to/your/sqlite/database.db" + } + } + ] } - ] - } + } + ] } ``` @@ -290,12 +397,16 @@ Type `@database` to reference table schemas you can use the drop-down or start t 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 +```json title=config.json { - "name": "locals", - "params": { - "stackDepth": 3 - } + "contextProviders": [ + { + "name": "locals", + "params": { + "stackDepth": 3 + } + } + ] } ``` @@ -305,9 +416,13 @@ Provides an overview of all files and the call signatures of top-level classes, This context provider is inpsired by [Aider's repository map](https://aider.chat/2023/10/22/repomap.html). -```json +```json title=config.json { - "name": "repo-map" + "contextProviders": [ + { + "name": "repo-map" + } + ] } ``` @@ -315,8 +430,14 @@ This context provider is inpsired by [Aider's repository map](https://aider.chat Type `@os` to reference the architecture and platform of your current operating system. -```json -{ "name": "os" } +```json title=config.json +{ + "contextProviders": [ + { + "name": "os" + } + ] +} ``` ### Requesting Context Providers diff --git a/docs/docs/customize/deep-dives/autocomplete.md b/docs/docs/customize/deep-dives/autocomplete.md index 3fd00ef02..8a45c1921 100644 --- a/docs/docs/customize/deep-dives/autocomplete.md +++ b/docs/docs/customize/deep-dives/autocomplete.md @@ -32,7 +32,7 @@ Once it has been downloaded, you should begin to see completions in VS Code. All of the configuration options available for chat models are available to use for tab-autocomplete. For example, if you wanted to use a remote Ollama instance you would edit your `config.json` like this (note that it is not inside the models array): -```json title=~/.continue/config.json +```json title=config.json { "tabAutocompleteModel": { "title": "Tab Autocomplete Model", @@ -73,7 +73,7 @@ This object allows you to customize the behavior of tab-autocomplete. The availa ### Full example -```json title=~/.continue/config.json +```json title=config.json { "tabAutocompleteModel": { "title": "Tab Autocomplete Model", From e9debd5a70c324400eda040d167da66fe22dca47 Mon Sep 17 00:00:00 2001 From: Test Date: Tue, 17 Sep 2024 12:19:27 -0700 Subject: [PATCH 075/268] update slash commands --- core/autocomplete/README.md | 8 +- docs/docs/customize/context-providers.md | 48 ++++----- .../docs/customize/deep-dives/autocomplete.md | 4 +- docs/docs/customize/deep-dives/docs.md | 2 +- docs/docs/customize/slash-commands.md | 100 ++++++++++++------ 5 files changed, 99 insertions(+), 63 deletions(-) diff --git a/core/autocomplete/README.md b/core/autocomplete/README.md index 0aa95488f..e19509bd8 100644 --- a/core/autocomplete/README.md +++ b/core/autocomplete/README.md @@ -25,7 +25,7 @@ You can also set up tab-autocomplete with a local LM Studio instance by followin Example: -```json title=config.json +```json title="config.json" { "tabAutocompleteModel": { "title": "Starcoder2 3b", @@ -40,7 +40,7 @@ Example: All of the configuration options available for chat models are available to use for tab-autocomplete. For example, if you wanted to use a remote vLLM instance you would edit your `config.json` like this (note that it is not inside the models array), filling in the correct model name and vLLM endpoint: -```json title=config.json +```json title="config.json" { "tabAutocompleteModel": { "title": "Tab Autocomplete Model", @@ -54,7 +54,7 @@ All of the configuration options available for chat models are available to use As another example, say you want to use a different model, `deepseek-coder:6.7b-base`, with Ollama: -```json title=config.json +```json title="config.json" { "tabAutocompleteModel": { "title": "Tab Autocomplete Model", @@ -100,7 +100,7 @@ This object allows you to customize the behavior of tab-autocomplete. The availa ### Full example -```json title=config.json +```json title="config.json" { "tabAutocompleteModel": { "title": "Tab Autocomplete Model", diff --git a/docs/docs/customize/context-providers.md b/docs/docs/customize/context-providers.md index e28e2a761..1347a9b0d 100644 --- a/docs/docs/customize/context-providers.md +++ b/docs/docs/customize/context-providers.md @@ -18,7 +18,7 @@ To use any of the built-in context providers, open `config.json` and add it to t Type '@file' to reference any file in your current workspace. -```json title=config.json +```json title="config.json" { "contextProviders": [ { @@ -32,7 +32,7 @@ Type '@file' to reference any file in your current workspace. Type '@code' to reference specific functions or classes from throughout your project. -```json title=config.json +```json title="config.json" { "contextProviders": [ { @@ -46,7 +46,7 @@ Type '@code' to reference specific functions or classes from throughout your pro Type '@diff' to reference all of the changes you've made to your current branch. This is useful if you want to summarize what you've done or ask for a general review of your work before committing. -```json title=config.json +```json title="config.json" { "contextProviders": [ { @@ -60,7 +60,7 @@ Type '@diff' to reference all of the changes you've made to your current branch. Type '@terminal' to reference the contents of your IDE's terminal. -```json title=config.json +```json title="config.json" { "contextProviders": [ { @@ -74,7 +74,7 @@ Type '@terminal' to reference the contents of your IDE's terminal. Type `@docs` to index and retrieve snippets from any documentation site. -```json title=config.json +```json title="config.json" { "contextProviders": [ { @@ -90,7 +90,7 @@ To learn more, visit `[@docs](../customize/deep-dives/docs.md)`. Type '@open' to reference the contents of all of your open files. Set `onlyPinned` to `true` to only reference pinned files. -```json title=config.json +```json title="config.json" { "contextProviders": [ { @@ -107,7 +107,7 @@ Type '@open' to reference the contents of all of your open files. Set `onlyPinne Type '@codebase' to automatically retrieve the most relevant snippets from your codebase. Read more about indexing and retrieval [here](../customize/deep-dives/codebase.md). -```json title=config.json +```json title="config.json" { "contextProviders": [ { @@ -121,7 +121,7 @@ Type '@codebase' to automatically retrieve the most relevant snippets from your Type '@folder' to use the same retrieval mechanism as '@codebase', but only on a single folder. -```json title=config.json +```json title="config.json" { "contextProviders": [ { @@ -135,7 +135,7 @@ Type '@folder' to use the same retrieval mechanism as '@codebase', but only on a Type '@search' to reference the results of codebase search, just like the results you would get from VS Code search. This context provider is powered by [ripgrep](https://github.com/BurntSushi/ripgrep). -```json title=config.json +```json title="config.json" { "contextProviders": [ { @@ -149,7 +149,7 @@ Type '@search' to reference the results of codebase search, just like the result Type '@url' and input a URL, then Continue will convert it to a markdown document to pass to the model. -```json title=config.json +```json title="config.json" { "contextProviders": [ { @@ -163,7 +163,7 @@ Type '@url' and input a URL, then Continue will convert it to a markdown documen Type '@tree' to reference the structure of your current workspace. The LLM will be able to see the nested directory structure of your project. -```json title=config.json +```json title="config.json" { "contextProviders": [ { @@ -177,7 +177,7 @@ Type '@tree' to reference the structure of your current workspace. The LLM will Type '@google' to reference the results of a Google search. For example, type "@google python tutorial" if you want to search and discuss ways of learning Python. -```json title=config.json +```json title="config.json" { "contextProviders": [ { @@ -196,7 +196,7 @@ Note: You can get an API key for free at [serper.dev](https://serper.dev). Type '@issue' to reference the conversation in a GitHub issue. Make sure to include your own [GitHub personal access token](https://docs.github.com/en/authentication/keeping-your-account-and-data-secure/managing-your-personal-access-tokens#creating-a-fine-grained-personal-access-token) to avoid being rate-limited: -```json title=config.json +```json title="config.json" { "contextProviders": [ { @@ -223,7 +223,7 @@ Type `@gitlab-mr` to reference an open MR for this branch on GitLab. 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 title=config.json +```json title="config.json" { "contextProviders": [ { @@ -240,7 +240,7 @@ You will need to create a [personal access token](https://docs.gitlab.com/ee/use 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 title=config.json +```json title="config.json" { "contextProviders": [ { @@ -262,7 +262,7 @@ If you select some code to be edited, you can have the context provider filter o 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), or use your `email` and `token`, with token set to your password for basic authentication. If you use your own Atlassian API Token, don't configure your email. -```json title=config.json +```json title="config.json" { "contextProviders": [ { @@ -282,7 +282,7 @@ This context provider supports both Jira API version 2 and 3. It will use versio that's what the cloud version uses, but if you have the datacenter version of Jira, you'll need to set the API Version to 2 using the `apiVersion` property. -```json title=config.json +```json title="config.json" { "contextProviders": [ { @@ -316,7 +316,7 @@ You can override this query by setting the `issueQuery` parameter. Type '@outline' to reference the outline of all currently open files. The outline of a files consists of only the function and class definitions in the file. Supported file extensions are '.js', '.mjs', '.go', '.c', '.cc', '.cs', '.cpp', '.el', '.ex', '.elm', '.java', '.ml', '.php', '.ql', '.rb', '.rs', '.ts' -```json title=config.json +```json title="config.json" { "name": "outline" } ``` @@ -324,7 +324,7 @@ Type '@outline' to reference the outline of all currently open files. The outlin Type '@highlights' to reference the 'highlights' from all currently open files. The highlights are computed using Paul Gauthier's so-called ['repomap'](https://aider.chat/docs/repomap.html) technique in [Aider Chat](https://github.com/paul-gauthier/aider). Supported file extensions are the same as for '@Outline' (behind the scenes, we use the corresponding tree-sitter grammars for language parsing). -```json title=config.json +```json title="config.json" { "name": "highlights" } ``` --> @@ -338,7 +338,7 @@ By default, the `schema` filter is set to `public`, and the `sampleRows` is set [Here is a short demo.](https://github.com/continuedev/continue/pull/859) -```json title=config.json +```json title="config.json" { "contextProviders": [ { @@ -361,7 +361,7 @@ By default, the `schema` filter is set to `public`, and the `sampleRows` is set Type `@database` to reference table schemas you can use the drop-down or start typeing table names based off of your configuration. Configuration supports multiple databases, allowing you to specify various connection details for PostgreSQL, MySQL, SQLite. Each connection should include a unique name, the connection_type (e.g., postgres, sqlite), and the necessary connection parameters specific to each database type. -```json title=config.json +```json title="config.json" { "contextProviders": [ { @@ -397,7 +397,7 @@ Type `@database` to reference table schemas you can use the drop-down or start t 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 title=config.json +```json title="config.json" { "contextProviders": [ { @@ -416,7 +416,7 @@ Provides an overview of all files and the call signatures of top-level classes, This context provider is inpsired by [Aider's repository map](https://aider.chat/2023/10/22/repomap.html). -```json title=config.json +```json title="config.json" { "contextProviders": [ { @@ -430,7 +430,7 @@ This context provider is inpsired by [Aider's repository map](https://aider.chat Type `@os` to reference the architecture and platform of your current operating system. -```json title=config.json +```json title="config.json" { "contextProviders": [ { diff --git a/docs/docs/customize/deep-dives/autocomplete.md b/docs/docs/customize/deep-dives/autocomplete.md index 8a45c1921..c84523f54 100644 --- a/docs/docs/customize/deep-dives/autocomplete.md +++ b/docs/docs/customize/deep-dives/autocomplete.md @@ -32,7 +32,7 @@ Once it has been downloaded, you should begin to see completions in VS Code. All of the configuration options available for chat models are available to use for tab-autocomplete. For example, if you wanted to use a remote Ollama instance you would edit your `config.json` like this (note that it is not inside the models array): -```json title=config.json +```json title="config.json" { "tabAutocompleteModel": { "title": "Tab Autocomplete Model", @@ -73,7 +73,7 @@ This object allows you to customize the behavior of tab-autocomplete. The availa ### Full example -```json title=config.json +```json title="config.json" { "tabAutocompleteModel": { "title": "Tab Autocomplete Model", diff --git a/docs/docs/customize/deep-dives/docs.md b/docs/docs/customize/deep-dives/docs.md index 7ae6b329b..e2291955c 100644 --- a/docs/docs/customize/deep-dives/docs.md +++ b/docs/docs/customize/deep-dives/docs.md @@ -74,7 +74,7 @@ By default, we use a lighter weight tool to crawl documentation sites that canno If you want to crawl a site that is dynamically generated, or you get an error while attempting to crawl a site, you can enable the experimental `useChromiumForDocsCrawling` feature in your `config.json`. This will download and install Chromium to `~/.continue/.utils`. -```json title=config.json +```json title="config.json" "experimental": { "useChromiumForDocsCrawling": true } diff --git a/docs/docs/customize/slash-commands.md b/docs/docs/customize/slash-commands.md index 6379b6db5..4cb216510 100644 --- a/docs/docs/customize/slash-commands.md +++ b/docs/docs/customize/slash-commands.md @@ -10,16 +10,20 @@ Slash commands are shortcuts that can be activated by typing '/' and selecting f ## Built-in Slash Commands -To use any of the built-in slash commands, open `~/.continue/config.json` and add it to the `slashCommands` list. +To use any of the built-in slash commands, open `config.json` and add it to the `slashCommands` list. ### `/edit` -Select code with ctrl/cmd + L (VS Code) or ctrl/cmd + J (JetBrains), and then type "/edit", followed by instructions for the edit. Continue will stream the changes into a side-by-side diff editor. +Select code with `ctrl/cmd + L` (VS Code) or `ctrl/cmd + J` (JetBrains), and then type "/edit", followed by instructions for the edit. Continue will stream the changes into a side-by-side diff editor. -```json +```json title="config.json" { - "name": "edit", - "description": "Edit highlighted code" + "slashCommands": [ + { + "name": "edit", + "description": "Edit highlighted code" + } + ] } ``` @@ -27,10 +31,14 @@ Select code with ctrl/cmd + L (VS Code) or ctrl/cmd + J (JetBrains), and then ty Comment works just like /edit, except it will automatically prompt the LLM to comment the code. -```json +```json title="config.json" { - "name": "comment", - "description": "Write comments for the highlighted code" + "slashCommands": [ + { + "name": "comment", + "description": "Write comments for the highlighted code" + } + ] } ``` @@ -38,11 +46,15 @@ Comment works just like /edit, except it will automatically prompt the LLM to co Type "/share" to generate a shareable markdown transcript of your current chat history. -```json +```json title="config.json" { - "name": "share", - "description": "Export the current chat session to markdown", - "params": { "outputDir": "~/.continue/session-transcripts" } + "slashCommands": [ + { + "name": "share", + "description": "Export the current chat session to markdown", + "params": { "outputDir": "~/.continue/session-transcripts" } + } + ] } ``` @@ -52,10 +64,14 @@ Use the `outputDir` parameter to specify where you want to the markdown file to Generate a shell command from natural language and (only in VS Code) automatically paste it into the terminal. -```json +```json title="config.json" { - "name": "cmd", - "description": "Generate a shell command" + "slashCommands": [ + { + "name": "cmd", + "description": "Generate a shell command" + } + ] } ``` @@ -63,10 +79,14 @@ Generate a shell command from natural language and (only in VS Code) automatical Shows the LLM your current git diff and asks it to generate a commit message. -```json +```json title="config.json" { - "name": "commit", - "description": "Generate a commit message for the current changes" + "slashCommands": [ + { + "name": "commit", + "description": "Generate a commit message for the current changes" + } + ] } ``` @@ -74,11 +94,15 @@ Shows the LLM your current git diff and asks it to generate a commit message. Write a custom slash command at your own HTTP endpoint. Set 'url' in the params object for the endpoint you have setup. The endpoint should return a sequence of string updates, which will be streamed to the Continue sidebar. See our basic [FastAPI example](https://github.com/continuedev/continue/blob/74002369a5e435735b83278fb965e004ae38a97d/core/context/providers/context_provider_server.py#L34-L45) for reference. -```json +```json title="config.json" { - "name": "http", - "description": "Does something custom", - "params": { "url": "" } + "slashCommands": [ + { + "name": "http", + "description": "Does something custom", + "params": { "url": "" } + } + ] } ``` @@ -86,11 +110,15 @@ Write a custom slash command at your own HTTP endpoint. Set 'url' in the params Describe the issue you'd like to generate, and Continue will turn into a well-formatted title and body, then give you a link to the draft so you can submit. Make sure to set the URL of the repository you want to generate issues for. -```json +```json title="config.json" { - "name": "issue", - "description": "Generate a link to a drafted GitHub issue", - "params": { "repositoryUrl": "https://github.com/continuedev/continue" } + "slashCommands": [ + { + "name": "issue", + "description": "Generate a link to a drafted GitHub issue", + "params": { "repositoryUrl": "https://github.com/continuedev/continue" } + } + ] } ``` @@ -98,10 +126,14 @@ Describe the issue you'd like to generate, and Continue will turn into a well-fo The StackOverflow slash command will automatically pull results from StackOverflow to answer your question, quoting links along with its answer. -```json +```json title="config.json" { - "name": "so", - "description": "Reference StackOverflow to answer the question" + "slashCommands": [ + { + "name": "so", + "description": "Reference StackOverflow to answer the question" + } + ] } ``` @@ -109,9 +141,13 @@ The StackOverflow slash command will automatically pull results from StackOverfl The Onboard slash command helps to familiarize yourself with a new project by analyzing the project structure, READMEs, and dependency files. It identifies key folders, explains their purpose, and highlights popular packages used. Additionally, it offers insights into the project's architecture. -```json +```json title="config.json" { - "name": "onboard", - "description": "Familiarize yourself with the codebase" + "slashCommands": [ + { + "name": "onboard", + "description": "Familiarize yourself with the codebase" + } + ] } ``` From 30fcb79990bb3133bb7863fdb9c8063e13ae9ee3 Mon Sep 17 00:00:00 2001 From: Test Date: Tue, 17 Sep 2024 12:56:59 -0700 Subject: [PATCH 076/268] chore: bump `dbinfoz` --- core/package-lock.json | 8 ++++---- core/package.json | 2 +- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/core/package-lock.json b/core/package-lock.json index 2dfc86570..74c5a38dc 100644 --- a/core/package-lock.json +++ b/core/package-lock.json @@ -25,7 +25,7 @@ "cheerio": "^1.0.0-rc.12", "commander": "^12.0.0", "comment-json": "^4.2.3", - "dbinfoz": "^0.1.4", + "dbinfoz": "^0.11.0", "dotenv": "^16.4.5", "fastest-levenshtein": "^1.0.16", "follow-redirects": "^1.15.5", @@ -6748,9 +6748,9 @@ } }, "node_modules/dbinfoz": { - "version": "0.1.4", - "resolved": "https://registry.npmjs.org/dbinfoz/-/dbinfoz-0.1.4.tgz", - "integrity": "sha512-MB56+xS571ip7qoXqxdnOUtXebbWaqoZN+S++W51SQYJRSjQFGEIPucNmxgeQlBGJ1vM4mQNV47wzV6fcrezZg==", + "version": "0.11.0", + "resolved": "https://registry.npmjs.org/dbinfoz/-/dbinfoz-0.11.0.tgz", + "integrity": "sha512-l7REBd9pwTBI6PWSk/dx+zCpSE2tiJdSKfApeoOajnSgyMJgkwGfhpPO2mV76MLQeKPaSm0mMKxmoqd38SaHmw==", "dependencies": { "mysql2": "^3.9.1", "pg": "^8.11.3", diff --git a/core/package.json b/core/package.json index 002550df7..e13084e6f 100644 --- a/core/package.json +++ b/core/package.json @@ -54,7 +54,7 @@ "cheerio": "^1.0.0-rc.12", "commander": "^12.0.0", "comment-json": "^4.2.3", - "dbinfoz": "^0.1.4", + "dbinfoz": "^0.11.0", "dotenv": "^16.4.5", "fastest-levenshtein": "^1.0.16", "follow-redirects": "^1.15.5", From 2355eb62a5c3c5034b528ab17e8ad7a0b661bc7c Mon Sep 17 00:00:00 2001 From: Test Date: Tue, 17 Sep 2024 13:07:42 -0700 Subject: [PATCH 077/268] fix: remove invalid schema --- docs/static/schemas/config.json | 15 ++++++--------- .../src/main/resources/config_schema.json | 15 ++++++--------- extensions/vscode/config_schema.json | 15 ++++++--------- extensions/vscode/continue_rc_schema.json | 15 ++++++--------- extensions/vscode/package-lock.json | 2 +- gui/package-lock.json | 2 +- 6 files changed, 26 insertions(+), 38 deletions(-) diff --git a/docs/static/schemas/config.json b/docs/static/schemas/config.json index cbf47d4b4..911278ebb 100644 --- a/docs/static/schemas/config.json +++ b/docs/static/schemas/config.json @@ -2476,13 +2476,16 @@ "type": "object", "properties": { "inlineEdit": { - "$ref": "#/definitions/ModelTitle" + "description": "The 'title' property of the model you wish to use for inline edits", + "type": "string" }, "applyCodeBlock": { - "$ref": "#/definitions/ModelTitle" + "description": "The 'title' property of the model you wish to use for applying code blocks", + "type": "string" }, "repoMapFileSelection": { - "$ref": "#/definitions/ModelTitle" + "description": "The 'title' property of the model you wish to use for repo map file selections", + "type": "string" } } }, @@ -2545,12 +2548,6 @@ } } } - }, - "ModelTitle": { - "type": "string", - "enum": { - "$data": "/models/title" - } } } } diff --git a/extensions/intellij/src/main/resources/config_schema.json b/extensions/intellij/src/main/resources/config_schema.json index cbf47d4b4..911278ebb 100644 --- a/extensions/intellij/src/main/resources/config_schema.json +++ b/extensions/intellij/src/main/resources/config_schema.json @@ -2476,13 +2476,16 @@ "type": "object", "properties": { "inlineEdit": { - "$ref": "#/definitions/ModelTitle" + "description": "The 'title' property of the model you wish to use for inline edits", + "type": "string" }, "applyCodeBlock": { - "$ref": "#/definitions/ModelTitle" + "description": "The 'title' property of the model you wish to use for applying code blocks", + "type": "string" }, "repoMapFileSelection": { - "$ref": "#/definitions/ModelTitle" + "description": "The 'title' property of the model you wish to use for repo map file selections", + "type": "string" } } }, @@ -2545,12 +2548,6 @@ } } } - }, - "ModelTitle": { - "type": "string", - "enum": { - "$data": "/models/title" - } } } } diff --git a/extensions/vscode/config_schema.json b/extensions/vscode/config_schema.json index cbf47d4b4..911278ebb 100644 --- a/extensions/vscode/config_schema.json +++ b/extensions/vscode/config_schema.json @@ -2476,13 +2476,16 @@ "type": "object", "properties": { "inlineEdit": { - "$ref": "#/definitions/ModelTitle" + "description": "The 'title' property of the model you wish to use for inline edits", + "type": "string" }, "applyCodeBlock": { - "$ref": "#/definitions/ModelTitle" + "description": "The 'title' property of the model you wish to use for applying code blocks", + "type": "string" }, "repoMapFileSelection": { - "$ref": "#/definitions/ModelTitle" + "description": "The 'title' property of the model you wish to use for repo map file selections", + "type": "string" } } }, @@ -2545,12 +2548,6 @@ } } } - }, - "ModelTitle": { - "type": "string", - "enum": { - "$data": "/models/title" - } } } } diff --git a/extensions/vscode/continue_rc_schema.json b/extensions/vscode/continue_rc_schema.json index 58453fc5c..101296fe6 100644 --- a/extensions/vscode/continue_rc_schema.json +++ b/extensions/vscode/continue_rc_schema.json @@ -2782,13 +2782,16 @@ "type": "object", "properties": { "inlineEdit": { - "$ref": "#/definitions/ModelTitle" + "description": "The 'title' property of the model you wish to use for inline edits", + "type": "string" }, "applyCodeBlock": { - "$ref": "#/definitions/ModelTitle" + "description": "The 'title' property of the model you wish to use for applying code blocks", + "type": "string" }, "repoMapFileSelection": { - "$ref": "#/definitions/ModelTitle" + "description": "The 'title' property of the model you wish to use for repo map file selections", + "type": "string" } } }, @@ -2864,12 +2867,6 @@ "markdownDescription": "If set to 'merge', .continuerc.json will be applied on top of config.json (arrays and objects are merged). If set to 'overwrite', then every top-level property of .continuerc.json will overwrite that property from config.json." } } - }, - "ModelTitle": { - "type": "string", - "enum": { - "$data": "/models/title" - } } } } \ No newline at end of file diff --git a/extensions/vscode/package-lock.json b/extensions/vscode/package-lock.json index 94995c095..8bb784a0e 100644 --- a/extensions/vscode/package-lock.json +++ b/extensions/vscode/package-lock.json @@ -111,7 +111,7 @@ "cheerio": "^1.0.0-rc.12", "commander": "^12.0.0", "comment-json": "^4.2.3", - "dbinfoz": "^0.1.4", + "dbinfoz": "^0.11.0", "dotenv": "^16.4.5", "fastest-levenshtein": "^1.0.16", "follow-redirects": "^1.15.5", diff --git a/gui/package-lock.json b/gui/package-lock.json index aa31ee27b..fcb69871d 100644 --- a/gui/package-lock.json +++ b/gui/package-lock.json @@ -104,7 +104,7 @@ "cheerio": "^1.0.0-rc.12", "commander": "^12.0.0", "comment-json": "^4.2.3", - "dbinfoz": "^0.1.4", + "dbinfoz": "^0.11.0", "dotenv": "^16.4.5", "fastest-levenshtein": "^1.0.16", "follow-redirects": "^1.15.5", From e4d8998ff82b97c2faf5a36450a9889f4a435074 Mon Sep 17 00:00:00 2001 From: Patrick Erichsen Date: Tue, 17 Sep 2024 13:45:19 -0700 Subject: [PATCH 078/268] Update DatabaseContextProvider.ts --- core/context/providers/DatabaseContextProvider.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/context/providers/DatabaseContextProvider.ts b/core/context/providers/DatabaseContextProvider.ts index 81a0a2710..3e7b54f0e 100644 --- a/core/context/providers/DatabaseContextProvider.ts +++ b/core/context/providers/DatabaseContextProvider.ts @@ -6,7 +6,7 @@ import { LoadSubmenuItemsArgs, } from "../../index.js"; import { BaseContextProvider } from "../index.js"; -import getDatabaseAdapter from "dbinfoz"; +import { getDatabaseAdapter } from "dbinfoz"; class DatabaseContextProvider extends BaseContextProvider { static description: ContextProviderDescription = { From 5b9215b3c4b241df27e5f54cfdab30014c170dbb Mon Sep 17 00:00:00 2001 From: Test Date: Tue, 17 Sep 2024 14:40:24 -0700 Subject: [PATCH 079/268] add `copy` text --- binary/package-lock.json | 4 +- .../providers/DatabaseContextProvider.ts | 2 +- core/package-lock.json | 2 +- extensions/vscode/package-lock.json | 4 +- extensions/vscode/package.json | 2 +- gui/package-lock.json | 3500 +++++++++-------- gui/src/components/Layout.tsx | 6 +- .../components/markdown/CodeBlockToolbar.tsx | 42 +- 8 files changed, 1914 insertions(+), 1648 deletions(-) diff --git a/binary/package-lock.json b/binary/package-lock.json index 39367be9a..5f1410c1a 100644 --- a/binary/package-lock.json +++ b/binary/package-lock.json @@ -60,7 +60,8 @@ "cheerio": "^1.0.0-rc.12", "commander": "^12.0.0", "comment-json": "^4.2.3", - "dbinfoz": "^0.1.4", + "dbinfoz": "^0.11.0", + "diff": "^7.0.0", "dotenv": "^16.4.5", "fastest-levenshtein": "^1.0.16", "follow-redirects": "^1.15.5", @@ -104,6 +105,7 @@ "@babel/preset-env": "^7.24.7", "@biomejs/biome": "1.6.4", "@google/generative-ai": "^0.11.4", + "@types/diff": "^5.2.2", "@types/follow-redirects": "^1.14.4", "@types/jest": "^29.5.12", "@types/jquery": "^3.5.29", diff --git a/core/context/providers/DatabaseContextProvider.ts b/core/context/providers/DatabaseContextProvider.ts index 81a0a2710..3e7b54f0e 100644 --- a/core/context/providers/DatabaseContextProvider.ts +++ b/core/context/providers/DatabaseContextProvider.ts @@ -6,7 +6,7 @@ import { LoadSubmenuItemsArgs, } from "../../index.js"; import { BaseContextProvider } from "../index.js"; -import getDatabaseAdapter from "dbinfoz"; +import { getDatabaseAdapter } from "dbinfoz"; class DatabaseContextProvider extends BaseContextProvider { static description: ContextProviderDescription = { diff --git a/core/package-lock.json b/core/package-lock.json index 05259f26c..e00d854cf 100644 --- a/core/package-lock.json +++ b/core/package-lock.json @@ -25,8 +25,8 @@ "cheerio": "^1.0.0-rc.12", "commander": "^12.0.0", "comment-json": "^4.2.3", - "diff": "^7.0.0", "dbinfoz": "^0.11.0", + "diff": "^7.0.0", "dotenv": "^16.4.5", "fastest-levenshtein": "^1.0.16", "follow-redirects": "^1.15.5", diff --git a/extensions/vscode/package-lock.json b/extensions/vscode/package-lock.json index 1efe40dfa..0eb4461d9 100644 --- a/extensions/vscode/package-lock.json +++ b/extensions/vscode/package-lock.json @@ -1,12 +1,12 @@ { "name": "continue", - "version": "0.9.211", + "version": "0.9.212", "lockfileVersion": 3, "requires": true, "packages": { "": { "name": "continue", - "version": "0.9.211", + "version": "0.9.212", "license": "Apache-2.0", "dependencies": { "@electron/rebuild": "^3.2.10", diff --git a/extensions/vscode/package.json b/extensions/vscode/package.json index 1d4e56883..75df6f097 100644 --- a/extensions/vscode/package.json +++ b/extensions/vscode/package.json @@ -2,7 +2,7 @@ "name": "continue", "icon": "media/icon.png", "author": "Continue Dev, Inc", - "version": "0.9.211", + "version": "0.9.212", "repository": { "type": "git", "url": "https://github.com/continuedev/continue" diff --git a/gui/package-lock.json b/gui/package-lock.json index 6d3527602..051455e7b 100644 --- a/gui/package-lock.json +++ b/gui/package-lock.json @@ -226,131 +226,169 @@ } }, "../core/node_modules/@aws-crypto/crc32": { - "version": "3.0.0", + "version": "5.2.0", "license": "Apache-2.0", "dependencies": { - "@aws-crypto/util": "^3.0.0", + "@aws-crypto/util": "^5.2.0", "@aws-sdk/types": "^3.222.0", - "tslib": "^1.11.1" + "tslib": "^2.6.2" + }, + "engines": { + "node": ">=16.0.0" } }, - "../core/node_modules/@aws-crypto/crc32/node_modules/tslib": { - "version": "1.14.1", - "license": "0BSD" - }, - "../core/node_modules/@aws-crypto/ie11-detection": { - "version": "3.0.0", - "license": "Apache-2.0", - "dependencies": { - "tslib": "^1.11.1" - } - }, - "../core/node_modules/@aws-crypto/ie11-detection/node_modules/tslib": { - "version": "1.14.1", - "license": "0BSD" - }, "../core/node_modules/@aws-crypto/sha256-browser": { - "version": "3.0.0", + "version": "5.2.0", "license": "Apache-2.0", "dependencies": { - "@aws-crypto/ie11-detection": "^3.0.0", - "@aws-crypto/sha256-js": "^3.0.0", - "@aws-crypto/supports-web-crypto": "^3.0.0", - "@aws-crypto/util": "^3.0.0", + "@aws-crypto/sha256-js": "^5.2.0", + "@aws-crypto/supports-web-crypto": "^5.2.0", + "@aws-crypto/util": "^5.2.0", "@aws-sdk/types": "^3.222.0", "@aws-sdk/util-locate-window": "^3.0.0", - "@aws-sdk/util-utf8-browser": "^3.0.0", - "tslib": "^1.11.1" + "@smithy/util-utf8": "^2.0.0", + "tslib": "^2.6.2" } }, - "../core/node_modules/@aws-crypto/sha256-browser/node_modules/tslib": { - "version": "1.14.1", - "license": "0BSD" + "../core/node_modules/@aws-crypto/sha256-browser/node_modules/@smithy/is-array-buffer": { + "version": "2.2.0", + "license": "Apache-2.0", + "dependencies": { + "tslib": "^2.6.2" + }, + "engines": { + "node": ">=14.0.0" + } + }, + "../core/node_modules/@aws-crypto/sha256-browser/node_modules/@smithy/util-buffer-from": { + "version": "2.2.0", + "license": "Apache-2.0", + "dependencies": { + "@smithy/is-array-buffer": "^2.2.0", + "tslib": "^2.6.2" + }, + "engines": { + "node": ">=14.0.0" + } + }, + "../core/node_modules/@aws-crypto/sha256-browser/node_modules/@smithy/util-utf8": { + "version": "2.3.0", + "license": "Apache-2.0", + "dependencies": { + "@smithy/util-buffer-from": "^2.2.0", + "tslib": "^2.6.2" + }, + "engines": { + "node": ">=14.0.0" + } }, "../core/node_modules/@aws-crypto/sha256-js": { - "version": "3.0.0", + "version": "5.2.0", "license": "Apache-2.0", "dependencies": { - "@aws-crypto/util": "^3.0.0", + "@aws-crypto/util": "^5.2.0", "@aws-sdk/types": "^3.222.0", - "tslib": "^1.11.1" + "tslib": "^2.6.2" + }, + "engines": { + "node": ">=16.0.0" } }, - "../core/node_modules/@aws-crypto/sha256-js/node_modules/tslib": { - "version": "1.14.1", - "license": "0BSD" - }, "../core/node_modules/@aws-crypto/supports-web-crypto": { - "version": "3.0.0", + "version": "5.2.0", "license": "Apache-2.0", "dependencies": { - "tslib": "^1.11.1" + "tslib": "^2.6.2" } }, - "../core/node_modules/@aws-crypto/supports-web-crypto/node_modules/tslib": { - "version": "1.14.1", - "license": "0BSD" - }, "../core/node_modules/@aws-crypto/util": { - "version": "3.0.0", + "version": "5.2.0", "license": "Apache-2.0", "dependencies": { "@aws-sdk/types": "^3.222.0", - "@aws-sdk/util-utf8-browser": "^3.0.0", - "tslib": "^1.11.1" + "@smithy/util-utf8": "^2.0.0", + "tslib": "^2.6.2" } }, - "../core/node_modules/@aws-crypto/util/node_modules/tslib": { - "version": "1.14.1", - "license": "0BSD" - }, - "../core/node_modules/@aws-sdk/client-bedrock-runtime": { - "version": "3.577.0", + "../core/node_modules/@aws-crypto/util/node_modules/@smithy/is-array-buffer": { + "version": "2.2.0", "license": "Apache-2.0", "dependencies": { - "@aws-crypto/sha256-browser": "3.0.0", - "@aws-crypto/sha256-js": "3.0.0", - "@aws-sdk/client-sso-oidc": "3.577.0", - "@aws-sdk/client-sts": "3.577.0", - "@aws-sdk/core": "3.576.0", - "@aws-sdk/credential-provider-node": "3.577.0", - "@aws-sdk/middleware-host-header": "3.577.0", - "@aws-sdk/middleware-logger": "3.577.0", - "@aws-sdk/middleware-recursion-detection": "3.577.0", - "@aws-sdk/middleware-user-agent": "3.577.0", - "@aws-sdk/region-config-resolver": "3.577.0", - "@aws-sdk/types": "3.577.0", - "@aws-sdk/util-endpoints": "3.577.0", - "@aws-sdk/util-user-agent-browser": "3.577.0", - "@aws-sdk/util-user-agent-node": "3.577.0", - "@smithy/config-resolver": "^3.0.0", - "@smithy/core": "^2.0.0", - "@smithy/eventstream-serde-browser": "^3.0.0", - "@smithy/eventstream-serde-config-resolver": "^3.0.0", - "@smithy/eventstream-serde-node": "^3.0.0", - "@smithy/fetch-http-handler": "^3.0.0", - "@smithy/hash-node": "^3.0.0", - "@smithy/invalid-dependency": "^3.0.0", - "@smithy/middleware-content-length": "^3.0.0", - "@smithy/middleware-endpoint": "^3.0.0", - "@smithy/middleware-retry": "^3.0.0", - "@smithy/middleware-serde": "^3.0.0", - "@smithy/middleware-stack": "^3.0.0", - "@smithy/node-config-provider": "^3.0.0", - "@smithy/node-http-handler": "^3.0.0", - "@smithy/protocol-http": "^4.0.0", - "@smithy/smithy-client": "^3.0.0", - "@smithy/types": "^3.0.0", - "@smithy/url-parser": "^3.0.0", + "tslib": "^2.6.2" + }, + "engines": { + "node": ">=14.0.0" + } + }, + "../core/node_modules/@aws-crypto/util/node_modules/@smithy/util-buffer-from": { + "version": "2.2.0", + "license": "Apache-2.0", + "dependencies": { + "@smithy/is-array-buffer": "^2.2.0", + "tslib": "^2.6.2" + }, + "engines": { + "node": ">=14.0.0" + } + }, + "../core/node_modules/@aws-crypto/util/node_modules/@smithy/util-utf8": { + "version": "2.3.0", + "license": "Apache-2.0", + "dependencies": { + "@smithy/util-buffer-from": "^2.2.0", + "tslib": "^2.6.2" + }, + "engines": { + "node": ">=14.0.0" + } + }, + "../core/node_modules/@aws-sdk/client-bedrock-runtime": { + "version": "3.620.1", + "license": "Apache-2.0", + "dependencies": { + "@aws-crypto/sha256-browser": "5.2.0", + "@aws-crypto/sha256-js": "5.2.0", + "@aws-sdk/client-sso-oidc": "3.620.1", + "@aws-sdk/client-sts": "3.620.1", + "@aws-sdk/core": "3.620.1", + "@aws-sdk/credential-provider-node": "3.620.1", + "@aws-sdk/middleware-host-header": "3.620.0", + "@aws-sdk/middleware-logger": "3.609.0", + "@aws-sdk/middleware-recursion-detection": "3.620.0", + "@aws-sdk/middleware-user-agent": "3.620.0", + "@aws-sdk/region-config-resolver": "3.614.0", + "@aws-sdk/types": "3.609.0", + "@aws-sdk/util-endpoints": "3.614.0", + "@aws-sdk/util-user-agent-browser": "3.609.0", + "@aws-sdk/util-user-agent-node": "3.614.0", + "@smithy/config-resolver": "^3.0.5", + "@smithy/core": "^2.3.0", + "@smithy/eventstream-serde-browser": "^3.0.5", + "@smithy/eventstream-serde-config-resolver": "^3.0.3", + "@smithy/eventstream-serde-node": "^3.0.4", + "@smithy/fetch-http-handler": "^3.2.3", + "@smithy/hash-node": "^3.0.3", + "@smithy/invalid-dependency": "^3.0.3", + "@smithy/middleware-content-length": "^3.0.5", + "@smithy/middleware-endpoint": "^3.1.0", + "@smithy/middleware-retry": "^3.0.12", + "@smithy/middleware-serde": "^3.0.3", + "@smithy/middleware-stack": "^3.0.3", + "@smithy/node-config-provider": "^3.1.4", + "@smithy/node-http-handler": "^3.1.4", + "@smithy/protocol-http": "^4.1.0", + "@smithy/smithy-client": "^3.1.10", + "@smithy/types": "^3.3.0", + "@smithy/url-parser": "^3.0.3", "@smithy/util-base64": "^3.0.0", "@smithy/util-body-length-browser": "^3.0.0", "@smithy/util-body-length-node": "^3.0.0", - "@smithy/util-defaults-mode-browser": "^3.0.0", - "@smithy/util-defaults-mode-node": "^3.0.0", - "@smithy/util-endpoints": "^2.0.0", - "@smithy/util-middleware": "^3.0.0", - "@smithy/util-retry": "^3.0.0", - "@smithy/util-stream": "^3.0.0", + "@smithy/util-defaults-mode-browser": "^3.0.12", + "@smithy/util-defaults-mode-node": "^3.0.12", + "@smithy/util-endpoints": "^2.0.5", + "@smithy/util-middleware": "^3.0.3", + "@smithy/util-retry": "^3.0.3", + "@smithy/util-stream": "^3.1.2", "@smithy/util-utf8": "^3.0.0", "tslib": "^2.6.2" }, @@ -359,48 +397,48 @@ } }, "../core/node_modules/@aws-sdk/client-cognito-identity": { - "version": "3.598.0", + "version": "3.620.1", "license": "Apache-2.0", "dependencies": { "@aws-crypto/sha256-browser": "5.2.0", "@aws-crypto/sha256-js": "5.2.0", - "@aws-sdk/client-sso-oidc": "3.598.0", - "@aws-sdk/client-sts": "3.598.0", - "@aws-sdk/core": "3.598.0", - "@aws-sdk/credential-provider-node": "3.598.0", - "@aws-sdk/middleware-host-header": "3.598.0", - "@aws-sdk/middleware-logger": "3.598.0", - "@aws-sdk/middleware-recursion-detection": "3.598.0", - "@aws-sdk/middleware-user-agent": "3.598.0", - "@aws-sdk/region-config-resolver": "3.598.0", - "@aws-sdk/types": "3.598.0", - "@aws-sdk/util-endpoints": "3.598.0", - "@aws-sdk/util-user-agent-browser": "3.598.0", - "@aws-sdk/util-user-agent-node": "3.598.0", - "@smithy/config-resolver": "^3.0.2", - "@smithy/core": "^2.2.1", - "@smithy/fetch-http-handler": "^3.0.2", - "@smithy/hash-node": "^3.0.1", - "@smithy/invalid-dependency": "^3.0.1", - "@smithy/middleware-content-length": "^3.0.1", - "@smithy/middleware-endpoint": "^3.0.2", - "@smithy/middleware-retry": "^3.0.4", - "@smithy/middleware-serde": "^3.0.1", - "@smithy/middleware-stack": "^3.0.1", - "@smithy/node-config-provider": "^3.1.1", - "@smithy/node-http-handler": "^3.0.1", - "@smithy/protocol-http": "^4.0.1", - "@smithy/smithy-client": "^3.1.2", - "@smithy/types": "^3.1.0", - "@smithy/url-parser": "^3.0.1", + "@aws-sdk/client-sso-oidc": "3.620.1", + "@aws-sdk/client-sts": "3.620.1", + "@aws-sdk/core": "3.620.1", + "@aws-sdk/credential-provider-node": "3.620.1", + "@aws-sdk/middleware-host-header": "3.620.0", + "@aws-sdk/middleware-logger": "3.609.0", + "@aws-sdk/middleware-recursion-detection": "3.620.0", + "@aws-sdk/middleware-user-agent": "3.620.0", + "@aws-sdk/region-config-resolver": "3.614.0", + "@aws-sdk/types": "3.609.0", + "@aws-sdk/util-endpoints": "3.614.0", + "@aws-sdk/util-user-agent-browser": "3.609.0", + "@aws-sdk/util-user-agent-node": "3.614.0", + "@smithy/config-resolver": "^3.0.5", + "@smithy/core": "^2.3.0", + "@smithy/fetch-http-handler": "^3.2.3", + "@smithy/hash-node": "^3.0.3", + "@smithy/invalid-dependency": "^3.0.3", + "@smithy/middleware-content-length": "^3.0.5", + "@smithy/middleware-endpoint": "^3.1.0", + "@smithy/middleware-retry": "^3.0.12", + "@smithy/middleware-serde": "^3.0.3", + "@smithy/middleware-stack": "^3.0.3", + "@smithy/node-config-provider": "^3.1.4", + "@smithy/node-http-handler": "^3.1.4", + "@smithy/protocol-http": "^4.1.0", + "@smithy/smithy-client": "^3.1.10", + "@smithy/types": "^3.3.0", + "@smithy/url-parser": "^3.0.3", "@smithy/util-base64": "^3.0.0", "@smithy/util-body-length-browser": "^3.0.0", "@smithy/util-body-length-node": "^3.0.0", - "@smithy/util-defaults-mode-browser": "^3.0.4", - "@smithy/util-defaults-mode-node": "^3.0.4", - "@smithy/util-endpoints": "^2.0.2", - "@smithy/util-middleware": "^3.0.1", - "@smithy/util-retry": "^3.0.1", + "@smithy/util-defaults-mode-browser": "^3.0.12", + "@smithy/util-defaults-mode-node": "^3.0.12", + "@smithy/util-endpoints": "^2.0.5", + "@smithy/util-middleware": "^3.0.3", + "@smithy/util-retry": "^3.0.3", "@smithy/util-utf8": "^3.0.0", "tslib": "^2.6.2" }, @@ -408,109 +446,53 @@ "node": ">=16.0.0" } }, - "../core/node_modules/@aws-sdk/client-cognito-identity/node_modules/@aws-crypto/sha256-browser": { - "version": "5.2.0", - "license": "Apache-2.0", - "dependencies": { - "@aws-crypto/sha256-js": "^5.2.0", - "@aws-crypto/supports-web-crypto": "^5.2.0", - "@aws-crypto/util": "^5.2.0", - "@aws-sdk/types": "^3.222.0", - "@aws-sdk/util-locate-window": "^3.0.0", - "@smithy/util-utf8": "^2.0.0", - "tslib": "^2.6.2" - } - }, - "../core/node_modules/@aws-sdk/client-cognito-identity/node_modules/@aws-crypto/sha256-browser/node_modules/@smithy/util-utf8": { - "version": "2.3.0", - "license": "Apache-2.0", - "dependencies": { - "@smithy/util-buffer-from": "^2.2.0", - "tslib": "^2.6.2" - }, - "engines": { - "node": ">=14.0.0" - } - }, - "../core/node_modules/@aws-sdk/client-cognito-identity/node_modules/@aws-crypto/sha256-js": { - "version": "5.2.0", - "license": "Apache-2.0", - "dependencies": { - "@aws-crypto/util": "^5.2.0", - "@aws-sdk/types": "^3.222.0", - "tslib": "^2.6.2" - }, - "engines": { - "node": ">=16.0.0" - } - }, - "../core/node_modules/@aws-sdk/client-cognito-identity/node_modules/@aws-crypto/supports-web-crypto": { - "version": "5.2.0", - "license": "Apache-2.0", - "dependencies": { - "tslib": "^2.6.2" - } - }, - "../core/node_modules/@aws-sdk/client-cognito-identity/node_modules/@aws-crypto/util": { - "version": "5.2.0", - "license": "Apache-2.0", - "dependencies": { - "@aws-sdk/types": "^3.222.0", - "@smithy/util-utf8": "^2.0.0", - "tslib": "^2.6.2" - } - }, - "../core/node_modules/@aws-sdk/client-cognito-identity/node_modules/@aws-crypto/util/node_modules/@smithy/util-utf8": { - "version": "2.3.0", - "license": "Apache-2.0", - "dependencies": { - "@smithy/util-buffer-from": "^2.2.0", - "tslib": "^2.6.2" - }, - "engines": { - "node": ">=14.0.0" - } - }, - "../core/node_modules/@aws-sdk/client-cognito-identity/node_modules/@aws-sdk/client-sso": { - "version": "3.598.0", + "../core/node_modules/@aws-sdk/client-sagemaker-runtime": { + "version": "3.624.0", "license": "Apache-2.0", "dependencies": { "@aws-crypto/sha256-browser": "5.2.0", "@aws-crypto/sha256-js": "5.2.0", - "@aws-sdk/core": "3.598.0", - "@aws-sdk/middleware-host-header": "3.598.0", - "@aws-sdk/middleware-logger": "3.598.0", - "@aws-sdk/middleware-recursion-detection": "3.598.0", - "@aws-sdk/middleware-user-agent": "3.598.0", - "@aws-sdk/region-config-resolver": "3.598.0", - "@aws-sdk/types": "3.598.0", - "@aws-sdk/util-endpoints": "3.598.0", - "@aws-sdk/util-user-agent-browser": "3.598.0", - "@aws-sdk/util-user-agent-node": "3.598.0", - "@smithy/config-resolver": "^3.0.2", - "@smithy/core": "^2.2.1", - "@smithy/fetch-http-handler": "^3.0.2", - "@smithy/hash-node": "^3.0.1", - "@smithy/invalid-dependency": "^3.0.1", - "@smithy/middleware-content-length": "^3.0.1", - "@smithy/middleware-endpoint": "^3.0.2", - "@smithy/middleware-retry": "^3.0.4", - "@smithy/middleware-serde": "^3.0.1", - "@smithy/middleware-stack": "^3.0.1", - "@smithy/node-config-provider": "^3.1.1", - "@smithy/node-http-handler": "^3.0.1", - "@smithy/protocol-http": "^4.0.1", - "@smithy/smithy-client": "^3.1.2", - "@smithy/types": "^3.1.0", - "@smithy/url-parser": "^3.0.1", + "@aws-sdk/client-sso-oidc": "3.624.0", + "@aws-sdk/client-sts": "3.624.0", + "@aws-sdk/core": "3.624.0", + "@aws-sdk/credential-provider-node": "3.624.0", + "@aws-sdk/middleware-host-header": "3.620.0", + "@aws-sdk/middleware-logger": "3.609.0", + "@aws-sdk/middleware-recursion-detection": "3.620.0", + "@aws-sdk/middleware-user-agent": "3.620.0", + "@aws-sdk/region-config-resolver": "3.614.0", + "@aws-sdk/types": "3.609.0", + "@aws-sdk/util-endpoints": "3.614.0", + "@aws-sdk/util-user-agent-browser": "3.609.0", + "@aws-sdk/util-user-agent-node": "3.614.0", + "@smithy/config-resolver": "^3.0.5", + "@smithy/core": "^2.3.2", + "@smithy/eventstream-serde-browser": "^3.0.5", + "@smithy/eventstream-serde-config-resolver": "^3.0.3", + "@smithy/eventstream-serde-node": "^3.0.4", + "@smithy/fetch-http-handler": "^3.2.4", + "@smithy/hash-node": "^3.0.3", + "@smithy/invalid-dependency": "^3.0.3", + "@smithy/middleware-content-length": "^3.0.5", + "@smithy/middleware-endpoint": "^3.1.0", + "@smithy/middleware-retry": "^3.0.14", + "@smithy/middleware-serde": "^3.0.3", + "@smithy/middleware-stack": "^3.0.3", + "@smithy/node-config-provider": "^3.1.4", + "@smithy/node-http-handler": "^3.1.4", + "@smithy/protocol-http": "^4.1.0", + "@smithy/smithy-client": "^3.1.12", + "@smithy/types": "^3.3.0", + "@smithy/url-parser": "^3.0.3", "@smithy/util-base64": "^3.0.0", "@smithy/util-body-length-browser": "^3.0.0", "@smithy/util-body-length-node": "^3.0.0", - "@smithy/util-defaults-mode-browser": "^3.0.4", - "@smithy/util-defaults-mode-node": "^3.0.4", - "@smithy/util-endpoints": "^2.0.2", - "@smithy/util-middleware": "^3.0.1", - "@smithy/util-retry": "^3.0.1", + "@smithy/util-defaults-mode-browser": "^3.0.14", + "@smithy/util-defaults-mode-node": "^3.0.14", + "@smithy/util-endpoints": "^2.0.5", + "@smithy/util-middleware": "^3.0.3", + "@smithy/util-retry": "^3.0.3", + "@smithy/util-stream": "^3.1.3", "@smithy/util-utf8": "^3.0.0", "tslib": "^2.6.2" }, @@ -518,48 +500,46 @@ "node": ">=16.0.0" } }, - "../core/node_modules/@aws-sdk/client-cognito-identity/node_modules/@aws-sdk/client-sso-oidc": { - "version": "3.598.0", + "../core/node_modules/@aws-sdk/client-sagemaker-runtime/node_modules/@aws-sdk/client-sso": { + "version": "3.624.0", "license": "Apache-2.0", "dependencies": { "@aws-crypto/sha256-browser": "5.2.0", "@aws-crypto/sha256-js": "5.2.0", - "@aws-sdk/client-sts": "3.598.0", - "@aws-sdk/core": "3.598.0", - "@aws-sdk/credential-provider-node": "3.598.0", - "@aws-sdk/middleware-host-header": "3.598.0", - "@aws-sdk/middleware-logger": "3.598.0", - "@aws-sdk/middleware-recursion-detection": "3.598.0", - "@aws-sdk/middleware-user-agent": "3.598.0", - "@aws-sdk/region-config-resolver": "3.598.0", - "@aws-sdk/types": "3.598.0", - "@aws-sdk/util-endpoints": "3.598.0", - "@aws-sdk/util-user-agent-browser": "3.598.0", - "@aws-sdk/util-user-agent-node": "3.598.0", - "@smithy/config-resolver": "^3.0.2", - "@smithy/core": "^2.2.1", - "@smithy/fetch-http-handler": "^3.0.2", - "@smithy/hash-node": "^3.0.1", - "@smithy/invalid-dependency": "^3.0.1", - "@smithy/middleware-content-length": "^3.0.1", - "@smithy/middleware-endpoint": "^3.0.2", - "@smithy/middleware-retry": "^3.0.4", - "@smithy/middleware-serde": "^3.0.1", - "@smithy/middleware-stack": "^3.0.1", - "@smithy/node-config-provider": "^3.1.1", - "@smithy/node-http-handler": "^3.0.1", - "@smithy/protocol-http": "^4.0.1", - "@smithy/smithy-client": "^3.1.2", - "@smithy/types": "^3.1.0", - "@smithy/url-parser": "^3.0.1", + "@aws-sdk/core": "3.624.0", + "@aws-sdk/middleware-host-header": "3.620.0", + "@aws-sdk/middleware-logger": "3.609.0", + "@aws-sdk/middleware-recursion-detection": "3.620.0", + "@aws-sdk/middleware-user-agent": "3.620.0", + "@aws-sdk/region-config-resolver": "3.614.0", + "@aws-sdk/types": "3.609.0", + "@aws-sdk/util-endpoints": "3.614.0", + "@aws-sdk/util-user-agent-browser": "3.609.0", + "@aws-sdk/util-user-agent-node": "3.614.0", + "@smithy/config-resolver": "^3.0.5", + "@smithy/core": "^2.3.2", + "@smithy/fetch-http-handler": "^3.2.4", + "@smithy/hash-node": "^3.0.3", + "@smithy/invalid-dependency": "^3.0.3", + "@smithy/middleware-content-length": "^3.0.5", + "@smithy/middleware-endpoint": "^3.1.0", + "@smithy/middleware-retry": "^3.0.14", + "@smithy/middleware-serde": "^3.0.3", + "@smithy/middleware-stack": "^3.0.3", + "@smithy/node-config-provider": "^3.1.4", + "@smithy/node-http-handler": "^3.1.4", + "@smithy/protocol-http": "^4.1.0", + "@smithy/smithy-client": "^3.1.12", + "@smithy/types": "^3.3.0", + "@smithy/url-parser": "^3.0.3", "@smithy/util-base64": "^3.0.0", "@smithy/util-body-length-browser": "^3.0.0", "@smithy/util-body-length-node": "^3.0.0", - "@smithy/util-defaults-mode-browser": "^3.0.4", - "@smithy/util-defaults-mode-node": "^3.0.4", - "@smithy/util-endpoints": "^2.0.2", - "@smithy/util-middleware": "^3.0.1", - "@smithy/util-retry": "^3.0.1", + "@smithy/util-defaults-mode-browser": "^3.0.14", + "@smithy/util-defaults-mode-node": "^3.0.14", + "@smithy/util-endpoints": "^2.0.5", + "@smithy/util-middleware": "^3.0.3", + "@smithy/util-retry": "^3.0.3", "@smithy/util-utf8": "^3.0.0", "tslib": "^2.6.2" }, @@ -567,48 +547,99 @@ "node": ">=16.0.0" } }, - "../core/node_modules/@aws-sdk/client-cognito-identity/node_modules/@aws-sdk/client-sts": { - "version": "3.598.0", + "../core/node_modules/@aws-sdk/client-sagemaker-runtime/node_modules/@aws-sdk/client-sso-oidc": { + "version": "3.624.0", "license": "Apache-2.0", "dependencies": { "@aws-crypto/sha256-browser": "5.2.0", "@aws-crypto/sha256-js": "5.2.0", - "@aws-sdk/client-sso-oidc": "3.598.0", - "@aws-sdk/core": "3.598.0", - "@aws-sdk/credential-provider-node": "3.598.0", - "@aws-sdk/middleware-host-header": "3.598.0", - "@aws-sdk/middleware-logger": "3.598.0", - "@aws-sdk/middleware-recursion-detection": "3.598.0", - "@aws-sdk/middleware-user-agent": "3.598.0", - "@aws-sdk/region-config-resolver": "3.598.0", - "@aws-sdk/types": "3.598.0", - "@aws-sdk/util-endpoints": "3.598.0", - "@aws-sdk/util-user-agent-browser": "3.598.0", - "@aws-sdk/util-user-agent-node": "3.598.0", - "@smithy/config-resolver": "^3.0.2", - "@smithy/core": "^2.2.1", - "@smithy/fetch-http-handler": "^3.0.2", - "@smithy/hash-node": "^3.0.1", - "@smithy/invalid-dependency": "^3.0.1", - "@smithy/middleware-content-length": "^3.0.1", - "@smithy/middleware-endpoint": "^3.0.2", - "@smithy/middleware-retry": "^3.0.4", - "@smithy/middleware-serde": "^3.0.1", - "@smithy/middleware-stack": "^3.0.1", - "@smithy/node-config-provider": "^3.1.1", - "@smithy/node-http-handler": "^3.0.1", - "@smithy/protocol-http": "^4.0.1", - "@smithy/smithy-client": "^3.1.2", - "@smithy/types": "^3.1.0", - "@smithy/url-parser": "^3.0.1", + "@aws-sdk/core": "3.624.0", + "@aws-sdk/credential-provider-node": "3.624.0", + "@aws-sdk/middleware-host-header": "3.620.0", + "@aws-sdk/middleware-logger": "3.609.0", + "@aws-sdk/middleware-recursion-detection": "3.620.0", + "@aws-sdk/middleware-user-agent": "3.620.0", + "@aws-sdk/region-config-resolver": "3.614.0", + "@aws-sdk/types": "3.609.0", + "@aws-sdk/util-endpoints": "3.614.0", + "@aws-sdk/util-user-agent-browser": "3.609.0", + "@aws-sdk/util-user-agent-node": "3.614.0", + "@smithy/config-resolver": "^3.0.5", + "@smithy/core": "^2.3.2", + "@smithy/fetch-http-handler": "^3.2.4", + "@smithy/hash-node": "^3.0.3", + "@smithy/invalid-dependency": "^3.0.3", + "@smithy/middleware-content-length": "^3.0.5", + "@smithy/middleware-endpoint": "^3.1.0", + "@smithy/middleware-retry": "^3.0.14", + "@smithy/middleware-serde": "^3.0.3", + "@smithy/middleware-stack": "^3.0.3", + "@smithy/node-config-provider": "^3.1.4", + "@smithy/node-http-handler": "^3.1.4", + "@smithy/protocol-http": "^4.1.0", + "@smithy/smithy-client": "^3.1.12", + "@smithy/types": "^3.3.0", + "@smithy/url-parser": "^3.0.3", "@smithy/util-base64": "^3.0.0", "@smithy/util-body-length-browser": "^3.0.0", "@smithy/util-body-length-node": "^3.0.0", - "@smithy/util-defaults-mode-browser": "^3.0.4", - "@smithy/util-defaults-mode-node": "^3.0.4", - "@smithy/util-endpoints": "^2.0.2", - "@smithy/util-middleware": "^3.0.1", - "@smithy/util-retry": "^3.0.1", + "@smithy/util-defaults-mode-browser": "^3.0.14", + "@smithy/util-defaults-mode-node": "^3.0.14", + "@smithy/util-endpoints": "^2.0.5", + "@smithy/util-middleware": "^3.0.3", + "@smithy/util-retry": "^3.0.3", + "@smithy/util-utf8": "^3.0.0", + "tslib": "^2.6.2" + }, + "engines": { + "node": ">=16.0.0" + }, + "peerDependencies": { + "@aws-sdk/client-sts": "^3.624.0" + } + }, + "../core/node_modules/@aws-sdk/client-sagemaker-runtime/node_modules/@aws-sdk/client-sts": { + "version": "3.624.0", + "license": "Apache-2.0", + "dependencies": { + "@aws-crypto/sha256-browser": "5.2.0", + "@aws-crypto/sha256-js": "5.2.0", + "@aws-sdk/client-sso-oidc": "3.624.0", + "@aws-sdk/core": "3.624.0", + "@aws-sdk/credential-provider-node": "3.624.0", + "@aws-sdk/middleware-host-header": "3.620.0", + "@aws-sdk/middleware-logger": "3.609.0", + "@aws-sdk/middleware-recursion-detection": "3.620.0", + "@aws-sdk/middleware-user-agent": "3.620.0", + "@aws-sdk/region-config-resolver": "3.614.0", + "@aws-sdk/types": "3.609.0", + "@aws-sdk/util-endpoints": "3.614.0", + "@aws-sdk/util-user-agent-browser": "3.609.0", + "@aws-sdk/util-user-agent-node": "3.614.0", + "@smithy/config-resolver": "^3.0.5", + "@smithy/core": "^2.3.2", + "@smithy/fetch-http-handler": "^3.2.4", + "@smithy/hash-node": "^3.0.3", + "@smithy/invalid-dependency": "^3.0.3", + "@smithy/middleware-content-length": "^3.0.5", + "@smithy/middleware-endpoint": "^3.1.0", + "@smithy/middleware-retry": "^3.0.14", + "@smithy/middleware-serde": "^3.0.3", + "@smithy/middleware-stack": "^3.0.3", + "@smithy/node-config-provider": "^3.1.4", + "@smithy/node-http-handler": "^3.1.4", + "@smithy/protocol-http": "^4.1.0", + "@smithy/smithy-client": "^3.1.12", + "@smithy/types": "^3.3.0", + "@smithy/url-parser": "^3.0.3", + "@smithy/util-base64": "^3.0.0", + "@smithy/util-body-length-browser": "^3.0.0", + "@smithy/util-body-length-node": "^3.0.0", + "@smithy/util-defaults-mode-browser": "^3.0.14", + "@smithy/util-defaults-mode-node": "^3.0.14", + "@smithy/util-endpoints": "^2.0.5", + "@smithy/util-middleware": "^3.0.3", + "@smithy/util-retry": "^3.0.3", "@smithy/util-utf8": "^3.0.0", "tslib": "^2.6.2" }, @@ -616,343 +647,178 @@ "node": ">=16.0.0" } }, - "../core/node_modules/@aws-sdk/client-cognito-identity/node_modules/@aws-sdk/core": { - "version": "3.598.0", + "../core/node_modules/@aws-sdk/client-sagemaker-runtime/node_modules/@aws-sdk/core": { + "version": "3.624.0", "license": "Apache-2.0", "dependencies": { - "@smithy/core": "^2.2.1", - "@smithy/protocol-http": "^4.0.1", - "@smithy/signature-v4": "^3.1.0", - "@smithy/smithy-client": "^3.1.2", - "@smithy/types": "^3.1.0", - "fast-xml-parser": "4.2.5", + "@smithy/core": "^2.3.2", + "@smithy/node-config-provider": "^3.1.4", + "@smithy/protocol-http": "^4.1.0", + "@smithy/signature-v4": "^4.1.0", + "@smithy/smithy-client": "^3.1.12", + "@smithy/types": "^3.3.0", + "@smithy/util-middleware": "^3.0.3", + "fast-xml-parser": "4.4.1", "tslib": "^2.6.2" }, "engines": { "node": ">=16.0.0" } }, - "../core/node_modules/@aws-sdk/client-cognito-identity/node_modules/@aws-sdk/credential-provider-env": { - "version": "3.598.0", + "../core/node_modules/@aws-sdk/client-sagemaker-runtime/node_modules/@aws-sdk/credential-provider-http": { + "version": "3.622.0", "license": "Apache-2.0", "dependencies": { - "@aws-sdk/types": "3.598.0", - "@smithy/property-provider": "^3.1.1", - "@smithy/types": "^3.1.0", + "@aws-sdk/types": "3.609.0", + "@smithy/fetch-http-handler": "^3.2.4", + "@smithy/node-http-handler": "^3.1.4", + "@smithy/property-provider": "^3.1.3", + "@smithy/protocol-http": "^4.1.0", + "@smithy/smithy-client": "^3.1.12", + "@smithy/types": "^3.3.0", + "@smithy/util-stream": "^3.1.3", "tslib": "^2.6.2" }, "engines": { "node": ">=16.0.0" } }, - "../core/node_modules/@aws-sdk/client-cognito-identity/node_modules/@aws-sdk/credential-provider-http": { - "version": "3.598.0", + "../core/node_modules/@aws-sdk/client-sagemaker-runtime/node_modules/@aws-sdk/credential-provider-ini": { + "version": "3.624.0", "license": "Apache-2.0", "dependencies": { - "@aws-sdk/types": "3.598.0", - "@smithy/fetch-http-handler": "^3.0.2", - "@smithy/node-http-handler": "^3.0.1", - "@smithy/property-provider": "^3.1.1", - "@smithy/protocol-http": "^4.0.1", - "@smithy/smithy-client": "^3.1.2", - "@smithy/types": "^3.1.0", - "@smithy/util-stream": "^3.0.2", - "tslib": "^2.6.2" - }, - "engines": { - "node": ">=16.0.0" - } - }, - "../core/node_modules/@aws-sdk/client-cognito-identity/node_modules/@aws-sdk/credential-provider-ini": { - "version": "3.598.0", - "license": "Apache-2.0", - "dependencies": { - "@aws-sdk/credential-provider-env": "3.598.0", - "@aws-sdk/credential-provider-http": "3.598.0", - "@aws-sdk/credential-provider-process": "3.598.0", - "@aws-sdk/credential-provider-sso": "3.598.0", - "@aws-sdk/credential-provider-web-identity": "3.598.0", - "@aws-sdk/types": "3.598.0", - "@smithy/credential-provider-imds": "^3.1.1", - "@smithy/property-provider": "^3.1.1", - "@smithy/shared-ini-file-loader": "^3.1.1", - "@smithy/types": "^3.1.0", + "@aws-sdk/credential-provider-env": "3.620.1", + "@aws-sdk/credential-provider-http": "3.622.0", + "@aws-sdk/credential-provider-process": "3.620.1", + "@aws-sdk/credential-provider-sso": "3.624.0", + "@aws-sdk/credential-provider-web-identity": "3.621.0", + "@aws-sdk/types": "3.609.0", + "@smithy/credential-provider-imds": "^3.2.0", + "@smithy/property-provider": "^3.1.3", + "@smithy/shared-ini-file-loader": "^3.1.4", + "@smithy/types": "^3.3.0", "tslib": "^2.6.2" }, "engines": { "node": ">=16.0.0" }, "peerDependencies": { - "@aws-sdk/client-sts": "^3.598.0" + "@aws-sdk/client-sts": "^3.624.0" } }, - "../core/node_modules/@aws-sdk/client-cognito-identity/node_modules/@aws-sdk/credential-provider-node": { - "version": "3.598.0", + "../core/node_modules/@aws-sdk/client-sagemaker-runtime/node_modules/@aws-sdk/credential-provider-node": { + "version": "3.624.0", "license": "Apache-2.0", "dependencies": { - "@aws-sdk/credential-provider-env": "3.598.0", - "@aws-sdk/credential-provider-http": "3.598.0", - "@aws-sdk/credential-provider-ini": "3.598.0", - "@aws-sdk/credential-provider-process": "3.598.0", - "@aws-sdk/credential-provider-sso": "3.598.0", - "@aws-sdk/credential-provider-web-identity": "3.598.0", - "@aws-sdk/types": "3.598.0", - "@smithy/credential-provider-imds": "^3.1.1", - "@smithy/property-provider": "^3.1.1", - "@smithy/shared-ini-file-loader": "^3.1.1", - "@smithy/types": "^3.1.0", + "@aws-sdk/credential-provider-env": "3.620.1", + "@aws-sdk/credential-provider-http": "3.622.0", + "@aws-sdk/credential-provider-ini": "3.624.0", + "@aws-sdk/credential-provider-process": "3.620.1", + "@aws-sdk/credential-provider-sso": "3.624.0", + "@aws-sdk/credential-provider-web-identity": "3.621.0", + "@aws-sdk/types": "3.609.0", + "@smithy/credential-provider-imds": "^3.2.0", + "@smithy/property-provider": "^3.1.3", + "@smithy/shared-ini-file-loader": "^3.1.4", + "@smithy/types": "^3.3.0", "tslib": "^2.6.2" }, "engines": { "node": ">=16.0.0" } }, - "../core/node_modules/@aws-sdk/client-cognito-identity/node_modules/@aws-sdk/credential-provider-process": { - "version": "3.598.0", + "../core/node_modules/@aws-sdk/client-sagemaker-runtime/node_modules/@aws-sdk/credential-provider-sso": { + "version": "3.624.0", "license": "Apache-2.0", "dependencies": { - "@aws-sdk/types": "3.598.0", - "@smithy/property-provider": "^3.1.1", - "@smithy/shared-ini-file-loader": "^3.1.1", - "@smithy/types": "^3.1.0", + "@aws-sdk/client-sso": "3.624.0", + "@aws-sdk/token-providers": "3.614.0", + "@aws-sdk/types": "3.609.0", + "@smithy/property-provider": "^3.1.3", + "@smithy/shared-ini-file-loader": "^3.1.4", + "@smithy/types": "^3.3.0", "tslib": "^2.6.2" }, "engines": { "node": ">=16.0.0" } }, - "../core/node_modules/@aws-sdk/client-cognito-identity/node_modules/@aws-sdk/credential-provider-sso": { - "version": "3.598.0", + "../core/node_modules/@aws-sdk/client-sagemaker-runtime/node_modules/@aws-sdk/credential-provider-web-identity": { + "version": "3.621.0", "license": "Apache-2.0", "dependencies": { - "@aws-sdk/client-sso": "3.598.0", - "@aws-sdk/token-providers": "3.598.0", - "@aws-sdk/types": "3.598.0", - "@smithy/property-provider": "^3.1.1", - "@smithy/shared-ini-file-loader": "^3.1.1", - "@smithy/types": "^3.1.0", - "tslib": "^2.6.2" - }, - "engines": { - "node": ">=16.0.0" - } - }, - "../core/node_modules/@aws-sdk/client-cognito-identity/node_modules/@aws-sdk/credential-provider-web-identity": { - "version": "3.598.0", - "license": "Apache-2.0", - "dependencies": { - "@aws-sdk/types": "3.598.0", - "@smithy/property-provider": "^3.1.1", - "@smithy/types": "^3.1.0", + "@aws-sdk/types": "3.609.0", + "@smithy/property-provider": "^3.1.3", + "@smithy/types": "^3.3.0", "tslib": "^2.6.2" }, "engines": { "node": ">=16.0.0" }, "peerDependencies": { - "@aws-sdk/client-sts": "^3.598.0" + "@aws-sdk/client-sts": "^3.621.0" } }, - "../core/node_modules/@aws-sdk/client-cognito-identity/node_modules/@aws-sdk/middleware-host-header": { - "version": "3.598.0", - "license": "Apache-2.0", - "dependencies": { - "@aws-sdk/types": "3.598.0", - "@smithy/protocol-http": "^4.0.1", - "@smithy/types": "^3.1.0", - "tslib": "^2.6.2" - }, - "engines": { - "node": ">=16.0.0" - } - }, - "../core/node_modules/@aws-sdk/client-cognito-identity/node_modules/@aws-sdk/middleware-logger": { - "version": "3.598.0", - "license": "Apache-2.0", - "dependencies": { - "@aws-sdk/types": "3.598.0", - "@smithy/types": "^3.1.0", - "tslib": "^2.6.2" - }, - "engines": { - "node": ">=16.0.0" - } - }, - "../core/node_modules/@aws-sdk/client-cognito-identity/node_modules/@aws-sdk/middleware-recursion-detection": { - "version": "3.598.0", - "license": "Apache-2.0", - "dependencies": { - "@aws-sdk/types": "3.598.0", - "@smithy/protocol-http": "^4.0.1", - "@smithy/types": "^3.1.0", - "tslib": "^2.6.2" - }, - "engines": { - "node": ">=16.0.0" - } - }, - "../core/node_modules/@aws-sdk/client-cognito-identity/node_modules/@aws-sdk/middleware-user-agent": { - "version": "3.598.0", - "license": "Apache-2.0", - "dependencies": { - "@aws-sdk/types": "3.598.0", - "@aws-sdk/util-endpoints": "3.598.0", - "@smithy/protocol-http": "^4.0.1", - "@smithy/types": "^3.1.0", - "tslib": "^2.6.2" - }, - "engines": { - "node": ">=16.0.0" - } - }, - "../core/node_modules/@aws-sdk/client-cognito-identity/node_modules/@aws-sdk/region-config-resolver": { - "version": "3.598.0", - "license": "Apache-2.0", - "dependencies": { - "@aws-sdk/types": "3.598.0", - "@smithy/node-config-provider": "^3.1.1", - "@smithy/types": "^3.1.0", - "@smithy/util-config-provider": "^3.0.0", - "@smithy/util-middleware": "^3.0.1", - "tslib": "^2.6.2" - }, - "engines": { - "node": ">=16.0.0" - } - }, - "../core/node_modules/@aws-sdk/client-cognito-identity/node_modules/@aws-sdk/token-providers": { - "version": "3.598.0", - "license": "Apache-2.0", - "dependencies": { - "@aws-sdk/types": "3.598.0", - "@smithy/property-provider": "^3.1.1", - "@smithy/shared-ini-file-loader": "^3.1.1", - "@smithy/types": "^3.1.0", - "tslib": "^2.6.2" - }, - "engines": { - "node": ">=16.0.0" - }, - "peerDependencies": { - "@aws-sdk/client-sso-oidc": "^3.598.0" - } - }, - "../core/node_modules/@aws-sdk/client-cognito-identity/node_modules/@aws-sdk/types": { - "version": "3.598.0", - "license": "Apache-2.0", - "dependencies": { - "@smithy/types": "^3.1.0", - "tslib": "^2.6.2" - }, - "engines": { - "node": ">=16.0.0" - } - }, - "../core/node_modules/@aws-sdk/client-cognito-identity/node_modules/@aws-sdk/util-endpoints": { - "version": "3.598.0", - "license": "Apache-2.0", - "dependencies": { - "@aws-sdk/types": "3.598.0", - "@smithy/types": "^3.1.0", - "@smithy/util-endpoints": "^2.0.2", - "tslib": "^2.6.2" - }, - "engines": { - "node": ">=16.0.0" - } - }, - "../core/node_modules/@aws-sdk/client-cognito-identity/node_modules/@aws-sdk/util-user-agent-browser": { - "version": "3.598.0", - "license": "Apache-2.0", - "dependencies": { - "@aws-sdk/types": "3.598.0", - "@smithy/types": "^3.1.0", - "bowser": "^2.11.0", - "tslib": "^2.6.2" - } - }, - "../core/node_modules/@aws-sdk/client-cognito-identity/node_modules/@aws-sdk/util-user-agent-node": { - "version": "3.598.0", - "license": "Apache-2.0", - "dependencies": { - "@aws-sdk/types": "3.598.0", - "@smithy/node-config-provider": "^3.1.1", - "@smithy/types": "^3.1.0", - "tslib": "^2.6.2" - }, - "engines": { - "node": ">=16.0.0" - }, - "peerDependencies": { - "aws-crt": ">=1.0.0" - }, - "peerDependenciesMeta": { - "aws-crt": { - "optional": true + "../core/node_modules/@aws-sdk/client-sagemaker-runtime/node_modules/fast-xml-parser": { + "version": "4.4.1", + "funding": [ + { + "type": "github", + "url": "https://github.com/sponsors/NaturalIntelligence" + }, + { + "type": "paypal", + "url": "https://paypal.me/naturalintelligence" } - } - }, - "../core/node_modules/@aws-sdk/client-cognito-identity/node_modules/@smithy/is-array-buffer": { - "version": "2.2.0", - "license": "Apache-2.0", + ], + "license": "MIT", "dependencies": { - "tslib": "^2.6.2" + "strnum": "^1.0.5" }, - "engines": { - "node": ">=14.0.0" - } - }, - "../core/node_modules/@aws-sdk/client-cognito-identity/node_modules/@smithy/util-buffer-from": { - "version": "2.2.0", - "license": "Apache-2.0", - "dependencies": { - "@smithy/is-array-buffer": "^2.2.0", - "tslib": "^2.6.2" - }, - "engines": { - "node": ">=14.0.0" + "bin": { + "fxparser": "src/cli/cli.js" } }, "../core/node_modules/@aws-sdk/client-sso": { - "version": "3.577.0", + "version": "3.620.1", "license": "Apache-2.0", "dependencies": { - "@aws-crypto/sha256-browser": "3.0.0", - "@aws-crypto/sha256-js": "3.0.0", - "@aws-sdk/core": "3.576.0", - "@aws-sdk/middleware-host-header": "3.577.0", - "@aws-sdk/middleware-logger": "3.577.0", - "@aws-sdk/middleware-recursion-detection": "3.577.0", - "@aws-sdk/middleware-user-agent": "3.577.0", - "@aws-sdk/region-config-resolver": "3.577.0", - "@aws-sdk/types": "3.577.0", - "@aws-sdk/util-endpoints": "3.577.0", - "@aws-sdk/util-user-agent-browser": "3.577.0", - "@aws-sdk/util-user-agent-node": "3.577.0", - "@smithy/config-resolver": "^3.0.0", - "@smithy/core": "^2.0.0", - "@smithy/fetch-http-handler": "^3.0.0", - "@smithy/hash-node": "^3.0.0", - "@smithy/invalid-dependency": "^3.0.0", - "@smithy/middleware-content-length": "^3.0.0", - "@smithy/middleware-endpoint": "^3.0.0", - "@smithy/middleware-retry": "^3.0.0", - "@smithy/middleware-serde": "^3.0.0", - "@smithy/middleware-stack": "^3.0.0", - "@smithy/node-config-provider": "^3.0.0", - "@smithy/node-http-handler": "^3.0.0", - "@smithy/protocol-http": "^4.0.0", - "@smithy/smithy-client": "^3.0.0", - "@smithy/types": "^3.0.0", - "@smithy/url-parser": "^3.0.0", + "@aws-crypto/sha256-browser": "5.2.0", + "@aws-crypto/sha256-js": "5.2.0", + "@aws-sdk/core": "3.620.1", + "@aws-sdk/middleware-host-header": "3.620.0", + "@aws-sdk/middleware-logger": "3.609.0", + "@aws-sdk/middleware-recursion-detection": "3.620.0", + "@aws-sdk/middleware-user-agent": "3.620.0", + "@aws-sdk/region-config-resolver": "3.614.0", + "@aws-sdk/types": "3.609.0", + "@aws-sdk/util-endpoints": "3.614.0", + "@aws-sdk/util-user-agent-browser": "3.609.0", + "@aws-sdk/util-user-agent-node": "3.614.0", + "@smithy/config-resolver": "^3.0.5", + "@smithy/core": "^2.3.0", + "@smithy/fetch-http-handler": "^3.2.3", + "@smithy/hash-node": "^3.0.3", + "@smithy/invalid-dependency": "^3.0.3", + "@smithy/middleware-content-length": "^3.0.5", + "@smithy/middleware-endpoint": "^3.1.0", + "@smithy/middleware-retry": "^3.0.12", + "@smithy/middleware-serde": "^3.0.3", + "@smithy/middleware-stack": "^3.0.3", + "@smithy/node-config-provider": "^3.1.4", + "@smithy/node-http-handler": "^3.1.4", + "@smithy/protocol-http": "^4.1.0", + "@smithy/smithy-client": "^3.1.10", + "@smithy/types": "^3.3.0", + "@smithy/url-parser": "^3.0.3", "@smithy/util-base64": "^3.0.0", "@smithy/util-body-length-browser": "^3.0.0", "@smithy/util-body-length-node": "^3.0.0", - "@smithy/util-defaults-mode-browser": "^3.0.0", - "@smithy/util-defaults-mode-node": "^3.0.0", - "@smithy/util-endpoints": "^2.0.0", - "@smithy/util-middleware": "^3.0.0", - "@smithy/util-retry": "^3.0.0", + "@smithy/util-defaults-mode-browser": "^3.0.12", + "@smithy/util-defaults-mode-node": "^3.0.12", + "@smithy/util-endpoints": "^2.0.5", + "@smithy/util-middleware": "^3.0.3", + "@smithy/util-retry": "^3.0.3", "@smithy/util-utf8": "^3.0.0", "tslib": "^2.6.2" }, @@ -961,96 +827,98 @@ } }, "../core/node_modules/@aws-sdk/client-sso-oidc": { - "version": "3.577.0", + "version": "3.620.1", "license": "Apache-2.0", "dependencies": { - "@aws-crypto/sha256-browser": "3.0.0", - "@aws-crypto/sha256-js": "3.0.0", - "@aws-sdk/client-sts": "3.577.0", - "@aws-sdk/core": "3.576.0", - "@aws-sdk/credential-provider-node": "3.577.0", - "@aws-sdk/middleware-host-header": "3.577.0", - "@aws-sdk/middleware-logger": "3.577.0", - "@aws-sdk/middleware-recursion-detection": "3.577.0", - "@aws-sdk/middleware-user-agent": "3.577.0", - "@aws-sdk/region-config-resolver": "3.577.0", - "@aws-sdk/types": "3.577.0", - "@aws-sdk/util-endpoints": "3.577.0", - "@aws-sdk/util-user-agent-browser": "3.577.0", - "@aws-sdk/util-user-agent-node": "3.577.0", - "@smithy/config-resolver": "^3.0.0", - "@smithy/core": "^2.0.0", - "@smithy/fetch-http-handler": "^3.0.0", - "@smithy/hash-node": "^3.0.0", - "@smithy/invalid-dependency": "^3.0.0", - "@smithy/middleware-content-length": "^3.0.0", - "@smithy/middleware-endpoint": "^3.0.0", - "@smithy/middleware-retry": "^3.0.0", - "@smithy/middleware-serde": "^3.0.0", - "@smithy/middleware-stack": "^3.0.0", - "@smithy/node-config-provider": "^3.0.0", - "@smithy/node-http-handler": "^3.0.0", - "@smithy/protocol-http": "^4.0.0", - "@smithy/smithy-client": "^3.0.0", - "@smithy/types": "^3.0.0", - "@smithy/url-parser": "^3.0.0", + "@aws-crypto/sha256-browser": "5.2.0", + "@aws-crypto/sha256-js": "5.2.0", + "@aws-sdk/core": "3.620.1", + "@aws-sdk/credential-provider-node": "3.620.1", + "@aws-sdk/middleware-host-header": "3.620.0", + "@aws-sdk/middleware-logger": "3.609.0", + "@aws-sdk/middleware-recursion-detection": "3.620.0", + "@aws-sdk/middleware-user-agent": "3.620.0", + "@aws-sdk/region-config-resolver": "3.614.0", + "@aws-sdk/types": "3.609.0", + "@aws-sdk/util-endpoints": "3.614.0", + "@aws-sdk/util-user-agent-browser": "3.609.0", + "@aws-sdk/util-user-agent-node": "3.614.0", + "@smithy/config-resolver": "^3.0.5", + "@smithy/core": "^2.3.0", + "@smithy/fetch-http-handler": "^3.2.3", + "@smithy/hash-node": "^3.0.3", + "@smithy/invalid-dependency": "^3.0.3", + "@smithy/middleware-content-length": "^3.0.5", + "@smithy/middleware-endpoint": "^3.1.0", + "@smithy/middleware-retry": "^3.0.12", + "@smithy/middleware-serde": "^3.0.3", + "@smithy/middleware-stack": "^3.0.3", + "@smithy/node-config-provider": "^3.1.4", + "@smithy/node-http-handler": "^3.1.4", + "@smithy/protocol-http": "^4.1.0", + "@smithy/smithy-client": "^3.1.10", + "@smithy/types": "^3.3.0", + "@smithy/url-parser": "^3.0.3", "@smithy/util-base64": "^3.0.0", "@smithy/util-body-length-browser": "^3.0.0", "@smithy/util-body-length-node": "^3.0.0", - "@smithy/util-defaults-mode-browser": "^3.0.0", - "@smithy/util-defaults-mode-node": "^3.0.0", - "@smithy/util-endpoints": "^2.0.0", - "@smithy/util-middleware": "^3.0.0", - "@smithy/util-retry": "^3.0.0", + "@smithy/util-defaults-mode-browser": "^3.0.12", + "@smithy/util-defaults-mode-node": "^3.0.12", + "@smithy/util-endpoints": "^2.0.5", + "@smithy/util-middleware": "^3.0.3", + "@smithy/util-retry": "^3.0.3", "@smithy/util-utf8": "^3.0.0", "tslib": "^2.6.2" }, "engines": { "node": ">=16.0.0" + }, + "peerDependencies": { + "@aws-sdk/client-sts": "^3.620.1" } }, "../core/node_modules/@aws-sdk/client-sts": { - "version": "3.577.0", + "version": "3.620.1", "license": "Apache-2.0", "dependencies": { - "@aws-crypto/sha256-browser": "3.0.0", - "@aws-crypto/sha256-js": "3.0.0", - "@aws-sdk/client-sso-oidc": "3.577.0", - "@aws-sdk/core": "3.576.0", - "@aws-sdk/credential-provider-node": "3.577.0", - "@aws-sdk/middleware-host-header": "3.577.0", - "@aws-sdk/middleware-logger": "3.577.0", - "@aws-sdk/middleware-recursion-detection": "3.577.0", - "@aws-sdk/middleware-user-agent": "3.577.0", - "@aws-sdk/region-config-resolver": "3.577.0", - "@aws-sdk/types": "3.577.0", - "@aws-sdk/util-endpoints": "3.577.0", - "@aws-sdk/util-user-agent-browser": "3.577.0", - "@aws-sdk/util-user-agent-node": "3.577.0", - "@smithy/config-resolver": "^3.0.0", - "@smithy/core": "^2.0.0", - "@smithy/fetch-http-handler": "^3.0.0", - "@smithy/hash-node": "^3.0.0", - "@smithy/invalid-dependency": "^3.0.0", - "@smithy/middleware-content-length": "^3.0.0", - "@smithy/middleware-endpoint": "^3.0.0", - "@smithy/middleware-retry": "^3.0.0", - "@smithy/middleware-serde": "^3.0.0", - "@smithy/middleware-stack": "^3.0.0", - "@smithy/node-config-provider": "^3.0.0", - "@smithy/node-http-handler": "^3.0.0", - "@smithy/protocol-http": "^4.0.0", - "@smithy/smithy-client": "^3.0.0", - "@smithy/types": "^3.0.0", - "@smithy/url-parser": "^3.0.0", + "@aws-crypto/sha256-browser": "5.2.0", + "@aws-crypto/sha256-js": "5.2.0", + "@aws-sdk/client-sso-oidc": "3.620.1", + "@aws-sdk/core": "3.620.1", + "@aws-sdk/credential-provider-node": "3.620.1", + "@aws-sdk/middleware-host-header": "3.620.0", + "@aws-sdk/middleware-logger": "3.609.0", + "@aws-sdk/middleware-recursion-detection": "3.620.0", + "@aws-sdk/middleware-user-agent": "3.620.0", + "@aws-sdk/region-config-resolver": "3.614.0", + "@aws-sdk/types": "3.609.0", + "@aws-sdk/util-endpoints": "3.614.0", + "@aws-sdk/util-user-agent-browser": "3.609.0", + "@aws-sdk/util-user-agent-node": "3.614.0", + "@smithy/config-resolver": "^3.0.5", + "@smithy/core": "^2.3.0", + "@smithy/fetch-http-handler": "^3.2.3", + "@smithy/hash-node": "^3.0.3", + "@smithy/invalid-dependency": "^3.0.3", + "@smithy/middleware-content-length": "^3.0.5", + "@smithy/middleware-endpoint": "^3.1.0", + "@smithy/middleware-retry": "^3.0.12", + "@smithy/middleware-serde": "^3.0.3", + "@smithy/middleware-stack": "^3.0.3", + "@smithy/node-config-provider": "^3.1.4", + "@smithy/node-http-handler": "^3.1.4", + "@smithy/protocol-http": "^4.1.0", + "@smithy/smithy-client": "^3.1.10", + "@smithy/types": "^3.3.0", + "@smithy/url-parser": "^3.0.3", "@smithy/util-base64": "^3.0.0", "@smithy/util-body-length-browser": "^3.0.0", "@smithy/util-body-length-node": "^3.0.0", - "@smithy/util-defaults-mode-browser": "^3.0.0", - "@smithy/util-defaults-mode-node": "^3.0.0", - "@smithy/util-endpoints": "^2.0.0", - "@smithy/util-middleware": "^3.0.0", - "@smithy/util-retry": "^3.0.0", + "@smithy/util-defaults-mode-browser": "^3.0.12", + "@smithy/util-defaults-mode-node": "^3.0.12", + "@smithy/util-endpoints": "^2.0.5", + "@smithy/util-middleware": "^3.0.3", + "@smithy/util-retry": "^3.0.3", "@smithy/util-utf8": "^3.0.0", "tslib": "^2.6.2" }, @@ -1059,14 +927,16 @@ } }, "../core/node_modules/@aws-sdk/core": { - "version": "3.576.0", + "version": "3.620.1", "license": "Apache-2.0", "dependencies": { - "@smithy/core": "^2.0.0", - "@smithy/protocol-http": "^4.0.0", - "@smithy/signature-v4": "^3.0.0", - "@smithy/smithy-client": "^3.0.0", - "@smithy/types": "^3.0.0", + "@smithy/core": "^2.3.0", + "@smithy/node-config-provider": "^3.1.4", + "@smithy/protocol-http": "^4.1.0", + "@smithy/signature-v4": "^4.1.0", + "@smithy/smithy-client": "^3.1.10", + "@smithy/types": "^3.3.0", + "@smithy/util-middleware": "^3.0.3", "fast-xml-parser": "4.2.5", "tslib": "^2.6.2" }, @@ -1075,24 +945,13 @@ } }, "../core/node_modules/@aws-sdk/credential-provider-cognito-identity": { - "version": "3.598.0", + "version": "3.620.1", "license": "Apache-2.0", "dependencies": { - "@aws-sdk/client-cognito-identity": "3.598.0", - "@aws-sdk/types": "3.598.0", - "@smithy/property-provider": "^3.1.1", - "@smithy/types": "^3.1.0", - "tslib": "^2.6.2" - }, - "engines": { - "node": ">=16.0.0" - } - }, - "../core/node_modules/@aws-sdk/credential-provider-cognito-identity/node_modules/@aws-sdk/types": { - "version": "3.598.0", - "license": "Apache-2.0", - "dependencies": { - "@smithy/types": "^3.1.0", + "@aws-sdk/client-cognito-identity": "3.620.1", + "@aws-sdk/types": "3.609.0", + "@smithy/property-provider": "^3.1.3", + "@smithy/types": "^3.3.0", "tslib": "^2.6.2" }, "engines": { @@ -1100,12 +959,12 @@ } }, "../core/node_modules/@aws-sdk/credential-provider-env": { - "version": "3.577.0", + "version": "3.620.1", "license": "Apache-2.0", "dependencies": { - "@aws-sdk/types": "3.577.0", - "@smithy/property-provider": "^3.0.0", - "@smithy/types": "^3.0.0", + "@aws-sdk/types": "3.609.0", + "@smithy/property-provider": "^3.1.3", + "@smithy/types": "^3.3.0", "tslib": "^2.6.2" }, "engines": { @@ -1113,17 +972,17 @@ } }, "../core/node_modules/@aws-sdk/credential-provider-http": { - "version": "3.577.0", + "version": "3.620.0", "license": "Apache-2.0", "dependencies": { - "@aws-sdk/types": "3.577.0", - "@smithy/fetch-http-handler": "^3.0.0", - "@smithy/node-http-handler": "^3.0.0", - "@smithy/property-provider": "^3.0.0", - "@smithy/protocol-http": "^4.0.0", - "@smithy/smithy-client": "^3.0.0", - "@smithy/types": "^3.0.0", - "@smithy/util-stream": "^3.0.0", + "@aws-sdk/types": "3.609.0", + "@smithy/fetch-http-handler": "^3.2.3", + "@smithy/node-http-handler": "^3.1.4", + "@smithy/property-provider": "^3.1.3", + "@smithy/protocol-http": "^4.1.0", + "@smithy/smithy-client": "^3.1.10", + "@smithy/types": "^3.3.0", + "@smithy/util-stream": "^3.1.2", "tslib": "^2.6.2" }, "engines": { @@ -1131,42 +990,43 @@ } }, "../core/node_modules/@aws-sdk/credential-provider-ini": { - "version": "3.577.0", + "version": "3.620.1", "license": "Apache-2.0", "dependencies": { - "@aws-sdk/credential-provider-env": "3.577.0", - "@aws-sdk/credential-provider-process": "3.577.0", - "@aws-sdk/credential-provider-sso": "3.577.0", - "@aws-sdk/credential-provider-web-identity": "3.577.0", - "@aws-sdk/types": "3.577.0", - "@smithy/credential-provider-imds": "^3.0.0", - "@smithy/property-provider": "^3.0.0", - "@smithy/shared-ini-file-loader": "^3.0.0", - "@smithy/types": "^3.0.0", + "@aws-sdk/credential-provider-env": "3.620.1", + "@aws-sdk/credential-provider-http": "3.620.0", + "@aws-sdk/credential-provider-process": "3.620.1", + "@aws-sdk/credential-provider-sso": "3.620.1", + "@aws-sdk/credential-provider-web-identity": "3.609.0", + "@aws-sdk/types": "3.609.0", + "@smithy/credential-provider-imds": "^3.2.0", + "@smithy/property-provider": "^3.1.3", + "@smithy/shared-ini-file-loader": "^3.1.4", + "@smithy/types": "^3.3.0", "tslib": "^2.6.2" }, "engines": { "node": ">=16.0.0" }, "peerDependencies": { - "@aws-sdk/client-sts": "^3.577.0" + "@aws-sdk/client-sts": "^3.620.1" } }, "../core/node_modules/@aws-sdk/credential-provider-node": { - "version": "3.577.0", + "version": "3.620.1", "license": "Apache-2.0", "dependencies": { - "@aws-sdk/credential-provider-env": "3.577.0", - "@aws-sdk/credential-provider-http": "3.577.0", - "@aws-sdk/credential-provider-ini": "3.577.0", - "@aws-sdk/credential-provider-process": "3.577.0", - "@aws-sdk/credential-provider-sso": "3.577.0", - "@aws-sdk/credential-provider-web-identity": "3.577.0", - "@aws-sdk/types": "3.577.0", - "@smithy/credential-provider-imds": "^3.0.0", - "@smithy/property-provider": "^3.0.0", - "@smithy/shared-ini-file-loader": "^3.0.0", - "@smithy/types": "^3.0.0", + "@aws-sdk/credential-provider-env": "3.620.1", + "@aws-sdk/credential-provider-http": "3.620.0", + "@aws-sdk/credential-provider-ini": "3.620.1", + "@aws-sdk/credential-provider-process": "3.620.1", + "@aws-sdk/credential-provider-sso": "3.620.1", + "@aws-sdk/credential-provider-web-identity": "3.609.0", + "@aws-sdk/types": "3.609.0", + "@smithy/credential-provider-imds": "^3.2.0", + "@smithy/property-provider": "^3.1.3", + "@smithy/shared-ini-file-loader": "^3.1.4", + "@smithy/types": "^3.3.0", "tslib": "^2.6.2" }, "engines": { @@ -1174,13 +1034,13 @@ } }, "../core/node_modules/@aws-sdk/credential-provider-process": { - "version": "3.577.0", + "version": "3.620.1", "license": "Apache-2.0", "dependencies": { - "@aws-sdk/types": "3.577.0", - "@smithy/property-provider": "^3.0.0", - "@smithy/shared-ini-file-loader": "^3.0.0", - "@smithy/types": "^3.0.0", + "@aws-sdk/types": "3.609.0", + "@smithy/property-provider": "^3.1.3", + "@smithy/shared-ini-file-loader": "^3.1.4", + "@smithy/types": "^3.3.0", "tslib": "^2.6.2" }, "engines": { @@ -1188,15 +1048,15 @@ } }, "../core/node_modules/@aws-sdk/credential-provider-sso": { - "version": "3.577.0", + "version": "3.620.1", "license": "Apache-2.0", "dependencies": { - "@aws-sdk/client-sso": "3.577.0", - "@aws-sdk/token-providers": "3.577.0", - "@aws-sdk/types": "3.577.0", - "@smithy/property-provider": "^3.0.0", - "@smithy/shared-ini-file-loader": "^3.0.0", - "@smithy/types": "^3.0.0", + "@aws-sdk/client-sso": "3.620.1", + "@aws-sdk/token-providers": "3.614.0", + "@aws-sdk/types": "3.609.0", + "@smithy/property-provider": "^3.1.3", + "@smithy/shared-ini-file-loader": "^3.1.4", + "@smithy/types": "^3.3.0", "tslib": "^2.6.2" }, "engines": { @@ -1204,558 +1064,53 @@ } }, "../core/node_modules/@aws-sdk/credential-provider-web-identity": { - "version": "3.577.0", + "version": "3.609.0", "license": "Apache-2.0", "dependencies": { - "@aws-sdk/types": "3.577.0", - "@smithy/property-provider": "^3.0.0", - "@smithy/types": "^3.0.0", + "@aws-sdk/types": "3.609.0", + "@smithy/property-provider": "^3.1.3", + "@smithy/types": "^3.3.0", "tslib": "^2.6.2" }, "engines": { "node": ">=16.0.0" }, "peerDependencies": { - "@aws-sdk/client-sts": "^3.577.0" + "@aws-sdk/client-sts": "^3.609.0" } }, "../core/node_modules/@aws-sdk/credential-providers": { - "version": "3.598.0", + "version": "3.620.1", "license": "Apache-2.0", "dependencies": { - "@aws-sdk/client-cognito-identity": "3.598.0", - "@aws-sdk/client-sso": "3.598.0", - "@aws-sdk/client-sts": "3.598.0", - "@aws-sdk/credential-provider-cognito-identity": "3.598.0", - "@aws-sdk/credential-provider-env": "3.598.0", - "@aws-sdk/credential-provider-http": "3.598.0", - "@aws-sdk/credential-provider-ini": "3.598.0", - "@aws-sdk/credential-provider-node": "3.598.0", - "@aws-sdk/credential-provider-process": "3.598.0", - "@aws-sdk/credential-provider-sso": "3.598.0", - "@aws-sdk/credential-provider-web-identity": "3.598.0", - "@aws-sdk/types": "3.598.0", - "@smithy/credential-provider-imds": "^3.1.1", - "@smithy/property-provider": "^3.1.1", - "@smithy/types": "^3.1.0", + "@aws-sdk/client-cognito-identity": "3.620.1", + "@aws-sdk/client-sso": "3.620.1", + "@aws-sdk/client-sts": "3.620.1", + "@aws-sdk/credential-provider-cognito-identity": "3.620.1", + "@aws-sdk/credential-provider-env": "3.620.1", + "@aws-sdk/credential-provider-http": "3.620.0", + "@aws-sdk/credential-provider-ini": "3.620.1", + "@aws-sdk/credential-provider-node": "3.620.1", + "@aws-sdk/credential-provider-process": "3.620.1", + "@aws-sdk/credential-provider-sso": "3.620.1", + "@aws-sdk/credential-provider-web-identity": "3.609.0", + "@aws-sdk/types": "3.609.0", + "@smithy/credential-provider-imds": "^3.2.0", + "@smithy/property-provider": "^3.1.3", + "@smithy/types": "^3.3.0", "tslib": "^2.6.2" }, "engines": { "node": ">=16.0.0" } }, - "../core/node_modules/@aws-sdk/credential-providers/node_modules/@aws-crypto/sha256-browser": { - "version": "5.2.0", - "license": "Apache-2.0", - "dependencies": { - "@aws-crypto/sha256-js": "^5.2.0", - "@aws-crypto/supports-web-crypto": "^5.2.0", - "@aws-crypto/util": "^5.2.0", - "@aws-sdk/types": "^3.222.0", - "@aws-sdk/util-locate-window": "^3.0.0", - "@smithy/util-utf8": "^2.0.0", - "tslib": "^2.6.2" - } - }, - "../core/node_modules/@aws-sdk/credential-providers/node_modules/@aws-crypto/sha256-browser/node_modules/@smithy/util-utf8": { - "version": "2.3.0", - "license": "Apache-2.0", - "dependencies": { - "@smithy/util-buffer-from": "^2.2.0", - "tslib": "^2.6.2" - }, - "engines": { - "node": ">=14.0.0" - } - }, - "../core/node_modules/@aws-sdk/credential-providers/node_modules/@aws-crypto/sha256-js": { - "version": "5.2.0", - "license": "Apache-2.0", - "dependencies": { - "@aws-crypto/util": "^5.2.0", - "@aws-sdk/types": "^3.222.0", - "tslib": "^2.6.2" - }, - "engines": { - "node": ">=16.0.0" - } - }, - "../core/node_modules/@aws-sdk/credential-providers/node_modules/@aws-crypto/supports-web-crypto": { - "version": "5.2.0", - "license": "Apache-2.0", - "dependencies": { - "tslib": "^2.6.2" - } - }, - "../core/node_modules/@aws-sdk/credential-providers/node_modules/@aws-crypto/util": { - "version": "5.2.0", - "license": "Apache-2.0", - "dependencies": { - "@aws-sdk/types": "^3.222.0", - "@smithy/util-utf8": "^2.0.0", - "tslib": "^2.6.2" - } - }, - "../core/node_modules/@aws-sdk/credential-providers/node_modules/@aws-crypto/util/node_modules/@smithy/util-utf8": { - "version": "2.3.0", - "license": "Apache-2.0", - "dependencies": { - "@smithy/util-buffer-from": "^2.2.0", - "tslib": "^2.6.2" - }, - "engines": { - "node": ">=14.0.0" - } - }, - "../core/node_modules/@aws-sdk/credential-providers/node_modules/@aws-sdk/client-sso": { - "version": "3.598.0", - "license": "Apache-2.0", - "dependencies": { - "@aws-crypto/sha256-browser": "5.2.0", - "@aws-crypto/sha256-js": "5.2.0", - "@aws-sdk/core": "3.598.0", - "@aws-sdk/middleware-host-header": "3.598.0", - "@aws-sdk/middleware-logger": "3.598.0", - "@aws-sdk/middleware-recursion-detection": "3.598.0", - "@aws-sdk/middleware-user-agent": "3.598.0", - "@aws-sdk/region-config-resolver": "3.598.0", - "@aws-sdk/types": "3.598.0", - "@aws-sdk/util-endpoints": "3.598.0", - "@aws-sdk/util-user-agent-browser": "3.598.0", - "@aws-sdk/util-user-agent-node": "3.598.0", - "@smithy/config-resolver": "^3.0.2", - "@smithy/core": "^2.2.1", - "@smithy/fetch-http-handler": "^3.0.2", - "@smithy/hash-node": "^3.0.1", - "@smithy/invalid-dependency": "^3.0.1", - "@smithy/middleware-content-length": "^3.0.1", - "@smithy/middleware-endpoint": "^3.0.2", - "@smithy/middleware-retry": "^3.0.4", - "@smithy/middleware-serde": "^3.0.1", - "@smithy/middleware-stack": "^3.0.1", - "@smithy/node-config-provider": "^3.1.1", - "@smithy/node-http-handler": "^3.0.1", - "@smithy/protocol-http": "^4.0.1", - "@smithy/smithy-client": "^3.1.2", - "@smithy/types": "^3.1.0", - "@smithy/url-parser": "^3.0.1", - "@smithy/util-base64": "^3.0.0", - "@smithy/util-body-length-browser": "^3.0.0", - "@smithy/util-body-length-node": "^3.0.0", - "@smithy/util-defaults-mode-browser": "^3.0.4", - "@smithy/util-defaults-mode-node": "^3.0.4", - "@smithy/util-endpoints": "^2.0.2", - "@smithy/util-middleware": "^3.0.1", - "@smithy/util-retry": "^3.0.1", - "@smithy/util-utf8": "^3.0.0", - "tslib": "^2.6.2" - }, - "engines": { - "node": ">=16.0.0" - } - }, - "../core/node_modules/@aws-sdk/credential-providers/node_modules/@aws-sdk/client-sso-oidc": { - "version": "3.598.0", - "license": "Apache-2.0", - "dependencies": { - "@aws-crypto/sha256-browser": "5.2.0", - "@aws-crypto/sha256-js": "5.2.0", - "@aws-sdk/client-sts": "3.598.0", - "@aws-sdk/core": "3.598.0", - "@aws-sdk/credential-provider-node": "3.598.0", - "@aws-sdk/middleware-host-header": "3.598.0", - "@aws-sdk/middleware-logger": "3.598.0", - "@aws-sdk/middleware-recursion-detection": "3.598.0", - "@aws-sdk/middleware-user-agent": "3.598.0", - "@aws-sdk/region-config-resolver": "3.598.0", - "@aws-sdk/types": "3.598.0", - "@aws-sdk/util-endpoints": "3.598.0", - "@aws-sdk/util-user-agent-browser": "3.598.0", - "@aws-sdk/util-user-agent-node": "3.598.0", - "@smithy/config-resolver": "^3.0.2", - "@smithy/core": "^2.2.1", - "@smithy/fetch-http-handler": "^3.0.2", - "@smithy/hash-node": "^3.0.1", - "@smithy/invalid-dependency": "^3.0.1", - "@smithy/middleware-content-length": "^3.0.1", - "@smithy/middleware-endpoint": "^3.0.2", - "@smithy/middleware-retry": "^3.0.4", - "@smithy/middleware-serde": "^3.0.1", - "@smithy/middleware-stack": "^3.0.1", - "@smithy/node-config-provider": "^3.1.1", - "@smithy/node-http-handler": "^3.0.1", - "@smithy/protocol-http": "^4.0.1", - "@smithy/smithy-client": "^3.1.2", - "@smithy/types": "^3.1.0", - "@smithy/url-parser": "^3.0.1", - "@smithy/util-base64": "^3.0.0", - "@smithy/util-body-length-browser": "^3.0.0", - "@smithy/util-body-length-node": "^3.0.0", - "@smithy/util-defaults-mode-browser": "^3.0.4", - "@smithy/util-defaults-mode-node": "^3.0.4", - "@smithy/util-endpoints": "^2.0.2", - "@smithy/util-middleware": "^3.0.1", - "@smithy/util-retry": "^3.0.1", - "@smithy/util-utf8": "^3.0.0", - "tslib": "^2.6.2" - }, - "engines": { - "node": ">=16.0.0" - } - }, - "../core/node_modules/@aws-sdk/credential-providers/node_modules/@aws-sdk/client-sts": { - "version": "3.598.0", - "license": "Apache-2.0", - "dependencies": { - "@aws-crypto/sha256-browser": "5.2.0", - "@aws-crypto/sha256-js": "5.2.0", - "@aws-sdk/client-sso-oidc": "3.598.0", - "@aws-sdk/core": "3.598.0", - "@aws-sdk/credential-provider-node": "3.598.0", - "@aws-sdk/middleware-host-header": "3.598.0", - "@aws-sdk/middleware-logger": "3.598.0", - "@aws-sdk/middleware-recursion-detection": "3.598.0", - "@aws-sdk/middleware-user-agent": "3.598.0", - "@aws-sdk/region-config-resolver": "3.598.0", - "@aws-sdk/types": "3.598.0", - "@aws-sdk/util-endpoints": "3.598.0", - "@aws-sdk/util-user-agent-browser": "3.598.0", - "@aws-sdk/util-user-agent-node": "3.598.0", - "@smithy/config-resolver": "^3.0.2", - "@smithy/core": "^2.2.1", - "@smithy/fetch-http-handler": "^3.0.2", - "@smithy/hash-node": "^3.0.1", - "@smithy/invalid-dependency": "^3.0.1", - "@smithy/middleware-content-length": "^3.0.1", - "@smithy/middleware-endpoint": "^3.0.2", - "@smithy/middleware-retry": "^3.0.4", - "@smithy/middleware-serde": "^3.0.1", - "@smithy/middleware-stack": "^3.0.1", - "@smithy/node-config-provider": "^3.1.1", - "@smithy/node-http-handler": "^3.0.1", - "@smithy/protocol-http": "^4.0.1", - "@smithy/smithy-client": "^3.1.2", - "@smithy/types": "^3.1.0", - "@smithy/url-parser": "^3.0.1", - "@smithy/util-base64": "^3.0.0", - "@smithy/util-body-length-browser": "^3.0.0", - "@smithy/util-body-length-node": "^3.0.0", - "@smithy/util-defaults-mode-browser": "^3.0.4", - "@smithy/util-defaults-mode-node": "^3.0.4", - "@smithy/util-endpoints": "^2.0.2", - "@smithy/util-middleware": "^3.0.1", - "@smithy/util-retry": "^3.0.1", - "@smithy/util-utf8": "^3.0.0", - "tslib": "^2.6.2" - }, - "engines": { - "node": ">=16.0.0" - } - }, - "../core/node_modules/@aws-sdk/credential-providers/node_modules/@aws-sdk/core": { - "version": "3.598.0", - "license": "Apache-2.0", - "dependencies": { - "@smithy/core": "^2.2.1", - "@smithy/protocol-http": "^4.0.1", - "@smithy/signature-v4": "^3.1.0", - "@smithy/smithy-client": "^3.1.2", - "@smithy/types": "^3.1.0", - "fast-xml-parser": "4.2.5", - "tslib": "^2.6.2" - }, - "engines": { - "node": ">=16.0.0" - } - }, - "../core/node_modules/@aws-sdk/credential-providers/node_modules/@aws-sdk/credential-provider-env": { - "version": "3.598.0", - "license": "Apache-2.0", - "dependencies": { - "@aws-sdk/types": "3.598.0", - "@smithy/property-provider": "^3.1.1", - "@smithy/types": "^3.1.0", - "tslib": "^2.6.2" - }, - "engines": { - "node": ">=16.0.0" - } - }, - "../core/node_modules/@aws-sdk/credential-providers/node_modules/@aws-sdk/credential-provider-http": { - "version": "3.598.0", - "license": "Apache-2.0", - "dependencies": { - "@aws-sdk/types": "3.598.0", - "@smithy/fetch-http-handler": "^3.0.2", - "@smithy/node-http-handler": "^3.0.1", - "@smithy/property-provider": "^3.1.1", - "@smithy/protocol-http": "^4.0.1", - "@smithy/smithy-client": "^3.1.2", - "@smithy/types": "^3.1.0", - "@smithy/util-stream": "^3.0.2", - "tslib": "^2.6.2" - }, - "engines": { - "node": ">=16.0.0" - } - }, - "../core/node_modules/@aws-sdk/credential-providers/node_modules/@aws-sdk/credential-provider-ini": { - "version": "3.598.0", - "license": "Apache-2.0", - "dependencies": { - "@aws-sdk/credential-provider-env": "3.598.0", - "@aws-sdk/credential-provider-http": "3.598.0", - "@aws-sdk/credential-provider-process": "3.598.0", - "@aws-sdk/credential-provider-sso": "3.598.0", - "@aws-sdk/credential-provider-web-identity": "3.598.0", - "@aws-sdk/types": "3.598.0", - "@smithy/credential-provider-imds": "^3.1.1", - "@smithy/property-provider": "^3.1.1", - "@smithy/shared-ini-file-loader": "^3.1.1", - "@smithy/types": "^3.1.0", - "tslib": "^2.6.2" - }, - "engines": { - "node": ">=16.0.0" - }, - "peerDependencies": { - "@aws-sdk/client-sts": "^3.598.0" - } - }, - "../core/node_modules/@aws-sdk/credential-providers/node_modules/@aws-sdk/credential-provider-node": { - "version": "3.598.0", - "license": "Apache-2.0", - "dependencies": { - "@aws-sdk/credential-provider-env": "3.598.0", - "@aws-sdk/credential-provider-http": "3.598.0", - "@aws-sdk/credential-provider-ini": "3.598.0", - "@aws-sdk/credential-provider-process": "3.598.0", - "@aws-sdk/credential-provider-sso": "3.598.0", - "@aws-sdk/credential-provider-web-identity": "3.598.0", - "@aws-sdk/types": "3.598.0", - "@smithy/credential-provider-imds": "^3.1.1", - "@smithy/property-provider": "^3.1.1", - "@smithy/shared-ini-file-loader": "^3.1.1", - "@smithy/types": "^3.1.0", - "tslib": "^2.6.2" - }, - "engines": { - "node": ">=16.0.0" - } - }, - "../core/node_modules/@aws-sdk/credential-providers/node_modules/@aws-sdk/credential-provider-process": { - "version": "3.598.0", - "license": "Apache-2.0", - "dependencies": { - "@aws-sdk/types": "3.598.0", - "@smithy/property-provider": "^3.1.1", - "@smithy/shared-ini-file-loader": "^3.1.1", - "@smithy/types": "^3.1.0", - "tslib": "^2.6.2" - }, - "engines": { - "node": ">=16.0.0" - } - }, - "../core/node_modules/@aws-sdk/credential-providers/node_modules/@aws-sdk/credential-provider-sso": { - "version": "3.598.0", - "license": "Apache-2.0", - "dependencies": { - "@aws-sdk/client-sso": "3.598.0", - "@aws-sdk/token-providers": "3.598.0", - "@aws-sdk/types": "3.598.0", - "@smithy/property-provider": "^3.1.1", - "@smithy/shared-ini-file-loader": "^3.1.1", - "@smithy/types": "^3.1.0", - "tslib": "^2.6.2" - }, - "engines": { - "node": ">=16.0.0" - } - }, - "../core/node_modules/@aws-sdk/credential-providers/node_modules/@aws-sdk/credential-provider-web-identity": { - "version": "3.598.0", - "license": "Apache-2.0", - "dependencies": { - "@aws-sdk/types": "3.598.0", - "@smithy/property-provider": "^3.1.1", - "@smithy/types": "^3.1.0", - "tslib": "^2.6.2" - }, - "engines": { - "node": ">=16.0.0" - }, - "peerDependencies": { - "@aws-sdk/client-sts": "^3.598.0" - } - }, - "../core/node_modules/@aws-sdk/credential-providers/node_modules/@aws-sdk/middleware-host-header": { - "version": "3.598.0", - "license": "Apache-2.0", - "dependencies": { - "@aws-sdk/types": "3.598.0", - "@smithy/protocol-http": "^4.0.1", - "@smithy/types": "^3.1.0", - "tslib": "^2.6.2" - }, - "engines": { - "node": ">=16.0.0" - } - }, - "../core/node_modules/@aws-sdk/credential-providers/node_modules/@aws-sdk/middleware-logger": { - "version": "3.598.0", - "license": "Apache-2.0", - "dependencies": { - "@aws-sdk/types": "3.598.0", - "@smithy/types": "^3.1.0", - "tslib": "^2.6.2" - }, - "engines": { - "node": ">=16.0.0" - } - }, - "../core/node_modules/@aws-sdk/credential-providers/node_modules/@aws-sdk/middleware-recursion-detection": { - "version": "3.598.0", - "license": "Apache-2.0", - "dependencies": { - "@aws-sdk/types": "3.598.0", - "@smithy/protocol-http": "^4.0.1", - "@smithy/types": "^3.1.0", - "tslib": "^2.6.2" - }, - "engines": { - "node": ">=16.0.0" - } - }, - "../core/node_modules/@aws-sdk/credential-providers/node_modules/@aws-sdk/middleware-user-agent": { - "version": "3.598.0", - "license": "Apache-2.0", - "dependencies": { - "@aws-sdk/types": "3.598.0", - "@aws-sdk/util-endpoints": "3.598.0", - "@smithy/protocol-http": "^4.0.1", - "@smithy/types": "^3.1.0", - "tslib": "^2.6.2" - }, - "engines": { - "node": ">=16.0.0" - } - }, - "../core/node_modules/@aws-sdk/credential-providers/node_modules/@aws-sdk/region-config-resolver": { - "version": "3.598.0", - "license": "Apache-2.0", - "dependencies": { - "@aws-sdk/types": "3.598.0", - "@smithy/node-config-provider": "^3.1.1", - "@smithy/types": "^3.1.0", - "@smithy/util-config-provider": "^3.0.0", - "@smithy/util-middleware": "^3.0.1", - "tslib": "^2.6.2" - }, - "engines": { - "node": ">=16.0.0" - } - }, - "../core/node_modules/@aws-sdk/credential-providers/node_modules/@aws-sdk/token-providers": { - "version": "3.598.0", - "license": "Apache-2.0", - "dependencies": { - "@aws-sdk/types": "3.598.0", - "@smithy/property-provider": "^3.1.1", - "@smithy/shared-ini-file-loader": "^3.1.1", - "@smithy/types": "^3.1.0", - "tslib": "^2.6.2" - }, - "engines": { - "node": ">=16.0.0" - }, - "peerDependencies": { - "@aws-sdk/client-sso-oidc": "^3.598.0" - } - }, - "../core/node_modules/@aws-sdk/credential-providers/node_modules/@aws-sdk/types": { - "version": "3.598.0", - "license": "Apache-2.0", - "dependencies": { - "@smithy/types": "^3.1.0", - "tslib": "^2.6.2" - }, - "engines": { - "node": ">=16.0.0" - } - }, - "../core/node_modules/@aws-sdk/credential-providers/node_modules/@aws-sdk/util-endpoints": { - "version": "3.598.0", - "license": "Apache-2.0", - "dependencies": { - "@aws-sdk/types": "3.598.0", - "@smithy/types": "^3.1.0", - "@smithy/util-endpoints": "^2.0.2", - "tslib": "^2.6.2" - }, - "engines": { - "node": ">=16.0.0" - } - }, - "../core/node_modules/@aws-sdk/credential-providers/node_modules/@aws-sdk/util-user-agent-browser": { - "version": "3.598.0", - "license": "Apache-2.0", - "dependencies": { - "@aws-sdk/types": "3.598.0", - "@smithy/types": "^3.1.0", - "bowser": "^2.11.0", - "tslib": "^2.6.2" - } - }, - "../core/node_modules/@aws-sdk/credential-providers/node_modules/@aws-sdk/util-user-agent-node": { - "version": "3.598.0", - "license": "Apache-2.0", - "dependencies": { - "@aws-sdk/types": "3.598.0", - "@smithy/node-config-provider": "^3.1.1", - "@smithy/types": "^3.1.0", - "tslib": "^2.6.2" - }, - "engines": { - "node": ">=16.0.0" - }, - "peerDependencies": { - "aws-crt": ">=1.0.0" - }, - "peerDependenciesMeta": { - "aws-crt": { - "optional": true - } - } - }, - "../core/node_modules/@aws-sdk/credential-providers/node_modules/@smithy/is-array-buffer": { - "version": "2.2.0", - "license": "Apache-2.0", - "dependencies": { - "tslib": "^2.6.2" - }, - "engines": { - "node": ">=14.0.0" - } - }, - "../core/node_modules/@aws-sdk/credential-providers/node_modules/@smithy/util-buffer-from": { - "version": "2.2.0", - "license": "Apache-2.0", - "dependencies": { - "@smithy/is-array-buffer": "^2.2.0", - "tslib": "^2.6.2" - }, - "engines": { - "node": ">=14.0.0" - } - }, "../core/node_modules/@aws-sdk/middleware-host-header": { - "version": "3.577.0", + "version": "3.620.0", "license": "Apache-2.0", "dependencies": { - "@aws-sdk/types": "3.577.0", - "@smithy/protocol-http": "^4.0.0", - "@smithy/types": "^3.0.0", + "@aws-sdk/types": "3.609.0", + "@smithy/protocol-http": "^4.1.0", + "@smithy/types": "^3.3.0", "tslib": "^2.6.2" }, "engines": { @@ -1763,11 +1118,11 @@ } }, "../core/node_modules/@aws-sdk/middleware-logger": { - "version": "3.577.0", + "version": "3.609.0", "license": "Apache-2.0", "dependencies": { - "@aws-sdk/types": "3.577.0", - "@smithy/types": "^3.0.0", + "@aws-sdk/types": "3.609.0", + "@smithy/types": "^3.3.0", "tslib": "^2.6.2" }, "engines": { @@ -1775,12 +1130,12 @@ } }, "../core/node_modules/@aws-sdk/middleware-recursion-detection": { - "version": "3.577.0", + "version": "3.620.0", "license": "Apache-2.0", "dependencies": { - "@aws-sdk/types": "3.577.0", - "@smithy/protocol-http": "^4.0.0", - "@smithy/types": "^3.0.0", + "@aws-sdk/types": "3.609.0", + "@smithy/protocol-http": "^4.1.0", + "@smithy/types": "^3.3.0", "tslib": "^2.6.2" }, "engines": { @@ -1788,13 +1143,13 @@ } }, "../core/node_modules/@aws-sdk/middleware-user-agent": { - "version": "3.577.0", + "version": "3.620.0", "license": "Apache-2.0", "dependencies": { - "@aws-sdk/types": "3.577.0", - "@aws-sdk/util-endpoints": "3.577.0", - "@smithy/protocol-http": "^4.0.0", - "@smithy/types": "^3.0.0", + "@aws-sdk/types": "3.609.0", + "@aws-sdk/util-endpoints": "3.614.0", + "@smithy/protocol-http": "^4.1.0", + "@smithy/types": "^3.3.0", "tslib": "^2.6.2" }, "engines": { @@ -1802,14 +1157,14 @@ } }, "../core/node_modules/@aws-sdk/region-config-resolver": { - "version": "3.577.0", + "version": "3.614.0", "license": "Apache-2.0", "dependencies": { - "@aws-sdk/types": "3.577.0", - "@smithy/node-config-provider": "^3.0.0", - "@smithy/types": "^3.0.0", + "@aws-sdk/types": "3.609.0", + "@smithy/node-config-provider": "^3.1.4", + "@smithy/types": "^3.3.0", "@smithy/util-config-provider": "^3.0.0", - "@smithy/util-middleware": "^3.0.0", + "@smithy/util-middleware": "^3.0.3", "tslib": "^2.6.2" }, "engines": { @@ -1817,27 +1172,27 @@ } }, "../core/node_modules/@aws-sdk/token-providers": { - "version": "3.577.0", + "version": "3.614.0", "license": "Apache-2.0", "dependencies": { - "@aws-sdk/types": "3.577.0", - "@smithy/property-provider": "^3.0.0", - "@smithy/shared-ini-file-loader": "^3.0.0", - "@smithy/types": "^3.0.0", + "@aws-sdk/types": "3.609.0", + "@smithy/property-provider": "^3.1.3", + "@smithy/shared-ini-file-loader": "^3.1.4", + "@smithy/types": "^3.3.0", "tslib": "^2.6.2" }, "engines": { "node": ">=16.0.0" }, "peerDependencies": { - "@aws-sdk/client-sso-oidc": "^3.577.0" + "@aws-sdk/client-sso-oidc": "^3.614.0" } }, "../core/node_modules/@aws-sdk/types": { - "version": "3.577.0", + "version": "3.609.0", "license": "Apache-2.0", "dependencies": { - "@smithy/types": "^3.0.0", + "@smithy/types": "^3.3.0", "tslib": "^2.6.2" }, "engines": { @@ -1845,12 +1200,12 @@ } }, "../core/node_modules/@aws-sdk/util-endpoints": { - "version": "3.577.0", + "version": "3.614.0", "license": "Apache-2.0", "dependencies": { - "@aws-sdk/types": "3.577.0", - "@smithy/types": "^3.0.0", - "@smithy/util-endpoints": "^2.0.0", + "@aws-sdk/types": "3.609.0", + "@smithy/types": "^3.3.0", + "@smithy/util-endpoints": "^2.0.5", "tslib": "^2.6.2" }, "engines": { @@ -1868,22 +1223,22 @@ } }, "../core/node_modules/@aws-sdk/util-user-agent-browser": { - "version": "3.577.0", + "version": "3.609.0", "license": "Apache-2.0", "dependencies": { - "@aws-sdk/types": "3.577.0", - "@smithy/types": "^3.0.0", + "@aws-sdk/types": "3.609.0", + "@smithy/types": "^3.3.0", "bowser": "^2.11.0", "tslib": "^2.6.2" } }, "../core/node_modules/@aws-sdk/util-user-agent-node": { - "version": "3.577.0", + "version": "3.614.0", "license": "Apache-2.0", "dependencies": { - "@aws-sdk/types": "3.577.0", - "@smithy/node-config-provider": "^3.0.0", - "@smithy/types": "^3.0.0", + "@aws-sdk/types": "3.609.0", + "@smithy/node-config-provider": "^3.1.4", + "@smithy/types": "^3.3.0", "tslib": "^2.6.2" }, "engines": { @@ -1898,16 +1253,8 @@ } } }, - "../core/node_modules/@aws-sdk/util-utf8-browser": { - "version": "3.259.0", - "license": "Apache-2.0", - "dependencies": { - "tslib": "^2.3.1" - } - }, "../core/node_modules/@babel/code-frame": { "version": "7.24.7", - "dev": true, "license": "MIT", "dependencies": { "@babel/highlight": "^7.24.7", @@ -2263,7 +1610,6 @@ }, "../core/node_modules/@babel/helper-validator-identifier": { "version": "7.24.7", - "dev": true, "license": "MIT", "engines": { "node": ">=6.9.0" @@ -2306,7 +1652,6 @@ }, "../core/node_modules/@babel/highlight": { "version": "7.24.7", - "dev": true, "license": "MIT", "dependencies": { "@babel/helper-validator-identifier": "^7.24.7", @@ -2320,7 +1665,6 @@ }, "../core/node_modules/@babel/highlight/node_modules/ansi-styles": { "version": "3.2.1", - "dev": true, "license": "MIT", "dependencies": { "color-convert": "^1.9.0" @@ -2331,7 +1675,6 @@ }, "../core/node_modules/@babel/highlight/node_modules/chalk": { "version": "2.4.2", - "dev": true, "license": "MIT", "dependencies": { "ansi-styles": "^3.2.1", @@ -2344,7 +1687,6 @@ }, "../core/node_modules/@babel/highlight/node_modules/color-convert": { "version": "1.9.3", - "dev": true, "license": "MIT", "dependencies": { "color-name": "1.1.3" @@ -2352,12 +1694,10 @@ }, "../core/node_modules/@babel/highlight/node_modules/color-name": { "version": "1.1.3", - "dev": true, "license": "MIT" }, "../core/node_modules/@babel/highlight/node_modules/escape-string-regexp": { "version": "1.0.5", - "dev": true, "license": "MIT", "engines": { "node": ">=0.8.0" @@ -2365,7 +1705,6 @@ }, "../core/node_modules/@babel/highlight/node_modules/has-flag": { "version": "3.0.0", - "dev": true, "license": "MIT", "engines": { "node": ">=4" @@ -2373,7 +1712,6 @@ }, "../core/node_modules/@babel/highlight/node_modules/supports-color": { "version": "5.5.0", - "dev": true, "license": "MIT", "dependencies": { "has-flag": "^3.0.0" @@ -3683,14 +3021,14 @@ } }, "../core/node_modules/@continuedev/config-types": { - "version": "1.0.8", + "version": "1.0.10", "license": "Apache-2.0", "dependencies": { "zod": "^3.23.8" } }, "../core/node_modules/@continuedev/llm-info": { - "version": "1.0.1", + "version": "1.0.2", "license": "Apache-2.0" }, "../core/node_modules/@esbuild/darwin-x64": { @@ -4497,6 +3835,26 @@ "version": "1.1.0", "license": "BSD-3-Clause" }, + "../core/node_modules/@puppeteer/browsers": { + "version": "2.3.0", + "license": "Apache-2.0", + "dependencies": { + "debug": "^4.3.5", + "extract-zip": "^2.0.1", + "progress": "^2.0.3", + "proxy-agent": "^6.4.0", + "semver": "^7.6.3", + "tar-fs": "^3.0.6", + "unbzip2-stream": "^1.4.3", + "yargs": "^17.7.2" + }, + "bin": { + "browsers": "lib/cjs/main-cli.js" + }, + "engines": { + "node": ">=18" + } + }, "../core/node_modules/@sinclair/typebox": { "version": "0.27.8", "dev": true, @@ -4519,10 +3877,10 @@ } }, "../core/node_modules/@smithy/abort-controller": { - "version": "3.0.1", + "version": "3.1.1", "license": "Apache-2.0", "dependencies": { - "@smithy/types": "^3.1.0", + "@smithy/types": "^3.3.0", "tslib": "^2.6.2" }, "engines": { @@ -4530,13 +3888,13 @@ } }, "../core/node_modules/@smithy/config-resolver": { - "version": "3.0.2", + "version": "3.0.5", "license": "Apache-2.0", "dependencies": { - "@smithy/node-config-provider": "^3.1.1", - "@smithy/types": "^3.1.0", + "@smithy/node-config-provider": "^3.1.4", + "@smithy/types": "^3.3.0", "@smithy/util-config-provider": "^3.0.0", - "@smithy/util-middleware": "^3.0.1", + "@smithy/util-middleware": "^3.0.3", "tslib": "^2.6.2" }, "engines": { @@ -4544,16 +3902,16 @@ } }, "../core/node_modules/@smithy/core": { - "version": "2.2.1", + "version": "2.3.2", "license": "Apache-2.0", "dependencies": { - "@smithy/middleware-endpoint": "^3.0.2", - "@smithy/middleware-retry": "^3.0.4", - "@smithy/middleware-serde": "^3.0.1", - "@smithy/protocol-http": "^4.0.1", - "@smithy/smithy-client": "^3.1.2", - "@smithy/types": "^3.1.0", - "@smithy/util-middleware": "^3.0.1", + "@smithy/middleware-endpoint": "^3.1.0", + "@smithy/middleware-retry": "^3.0.14", + "@smithy/middleware-serde": "^3.0.3", + "@smithy/protocol-http": "^4.1.0", + "@smithy/smithy-client": "^3.1.12", + "@smithy/types": "^3.3.0", + "@smithy/util-middleware": "^3.0.3", "tslib": "^2.6.2" }, "engines": { @@ -4561,13 +3919,13 @@ } }, "../core/node_modules/@smithy/credential-provider-imds": { - "version": "3.1.1", + "version": "3.2.0", "license": "Apache-2.0", "dependencies": { - "@smithy/node-config-provider": "^3.1.1", - "@smithy/property-provider": "^3.1.1", - "@smithy/types": "^3.1.0", - "@smithy/url-parser": "^3.0.1", + "@smithy/node-config-provider": "^3.1.4", + "@smithy/property-provider": "^3.1.3", + "@smithy/types": "^3.3.0", + "@smithy/url-parser": "^3.0.3", "tslib": "^2.6.2" }, "engines": { @@ -4575,21 +3933,21 @@ } }, "../core/node_modules/@smithy/eventstream-codec": { - "version": "3.0.0", + "version": "3.1.2", "license": "Apache-2.0", "dependencies": { - "@aws-crypto/crc32": "3.0.0", - "@smithy/types": "^3.0.0", + "@aws-crypto/crc32": "5.2.0", + "@smithy/types": "^3.3.0", "@smithy/util-hex-encoding": "^3.0.0", "tslib": "^2.6.2" } }, "../core/node_modules/@smithy/eventstream-serde-browser": { - "version": "3.0.0", + "version": "3.0.5", "license": "Apache-2.0", "dependencies": { - "@smithy/eventstream-serde-universal": "^3.0.0", - "@smithy/types": "^3.0.0", + "@smithy/eventstream-serde-universal": "^3.0.4", + "@smithy/types": "^3.3.0", "tslib": "^2.6.2" }, "engines": { @@ -4597,10 +3955,10 @@ } }, "../core/node_modules/@smithy/eventstream-serde-config-resolver": { - "version": "3.0.0", + "version": "3.0.3", "license": "Apache-2.0", "dependencies": { - "@smithy/types": "^3.0.0", + "@smithy/types": "^3.3.0", "tslib": "^2.6.2" }, "engines": { @@ -4608,11 +3966,11 @@ } }, "../core/node_modules/@smithy/eventstream-serde-node": { - "version": "3.0.0", + "version": "3.0.4", "license": "Apache-2.0", "dependencies": { - "@smithy/eventstream-serde-universal": "^3.0.0", - "@smithy/types": "^3.0.0", + "@smithy/eventstream-serde-universal": "^3.0.4", + "@smithy/types": "^3.3.0", "tslib": "^2.6.2" }, "engines": { @@ -4620,11 +3978,11 @@ } }, "../core/node_modules/@smithy/eventstream-serde-universal": { - "version": "3.0.0", + "version": "3.0.4", "license": "Apache-2.0", "dependencies": { - "@smithy/eventstream-codec": "^3.0.0", - "@smithy/types": "^3.0.0", + "@smithy/eventstream-codec": "^3.1.2", + "@smithy/types": "^3.3.0", "tslib": "^2.6.2" }, "engines": { @@ -4632,21 +3990,21 @@ } }, "../core/node_modules/@smithy/fetch-http-handler": { - "version": "3.0.2", + "version": "3.2.4", "license": "Apache-2.0", "dependencies": { - "@smithy/protocol-http": "^4.0.1", - "@smithy/querystring-builder": "^3.0.1", - "@smithy/types": "^3.1.0", + "@smithy/protocol-http": "^4.1.0", + "@smithy/querystring-builder": "^3.0.3", + "@smithy/types": "^3.3.0", "@smithy/util-base64": "^3.0.0", "tslib": "^2.6.2" } }, "../core/node_modules/@smithy/hash-node": { - "version": "3.0.1", + "version": "3.0.3", "license": "Apache-2.0", "dependencies": { - "@smithy/types": "^3.1.0", + "@smithy/types": "^3.3.0", "@smithy/util-buffer-from": "^3.0.0", "@smithy/util-utf8": "^3.0.0", "tslib": "^2.6.2" @@ -4656,10 +4014,10 @@ } }, "../core/node_modules/@smithy/invalid-dependency": { - "version": "3.0.1", + "version": "3.0.3", "license": "Apache-2.0", "dependencies": { - "@smithy/types": "^3.1.0", + "@smithy/types": "^3.3.0", "tslib": "^2.6.2" } }, @@ -4674,11 +4032,11 @@ } }, "../core/node_modules/@smithy/middleware-content-length": { - "version": "3.0.1", + "version": "3.0.5", "license": "Apache-2.0", "dependencies": { - "@smithy/protocol-http": "^4.0.1", - "@smithy/types": "^3.1.0", + "@smithy/protocol-http": "^4.1.0", + "@smithy/types": "^3.3.0", "tslib": "^2.6.2" }, "engines": { @@ -4686,15 +4044,15 @@ } }, "../core/node_modules/@smithy/middleware-endpoint": { - "version": "3.0.2", + "version": "3.1.0", "license": "Apache-2.0", "dependencies": { - "@smithy/middleware-serde": "^3.0.1", - "@smithy/node-config-provider": "^3.1.1", - "@smithy/shared-ini-file-loader": "^3.1.1", - "@smithy/types": "^3.1.0", - "@smithy/url-parser": "^3.0.1", - "@smithy/util-middleware": "^3.0.1", + "@smithy/middleware-serde": "^3.0.3", + "@smithy/node-config-provider": "^3.1.4", + "@smithy/shared-ini-file-loader": "^3.1.4", + "@smithy/types": "^3.3.0", + "@smithy/url-parser": "^3.0.3", + "@smithy/util-middleware": "^3.0.3", "tslib": "^2.6.2" }, "engines": { @@ -4702,16 +4060,16 @@ } }, "../core/node_modules/@smithy/middleware-retry": { - "version": "3.0.4", + "version": "3.0.14", "license": "Apache-2.0", "dependencies": { - "@smithy/node-config-provider": "^3.1.1", - "@smithy/protocol-http": "^4.0.1", - "@smithy/service-error-classification": "^3.0.1", - "@smithy/smithy-client": "^3.1.2", - "@smithy/types": "^3.1.0", - "@smithy/util-middleware": "^3.0.1", - "@smithy/util-retry": "^3.0.1", + "@smithy/node-config-provider": "^3.1.4", + "@smithy/protocol-http": "^4.1.0", + "@smithy/service-error-classification": "^3.0.3", + "@smithy/smithy-client": "^3.1.12", + "@smithy/types": "^3.3.0", + "@smithy/util-middleware": "^3.0.3", + "@smithy/util-retry": "^3.0.3", "tslib": "^2.6.2", "uuid": "^9.0.1" }, @@ -4720,10 +4078,10 @@ } }, "../core/node_modules/@smithy/middleware-serde": { - "version": "3.0.1", + "version": "3.0.3", "license": "Apache-2.0", "dependencies": { - "@smithy/types": "^3.1.0", + "@smithy/types": "^3.3.0", "tslib": "^2.6.2" }, "engines": { @@ -4731,10 +4089,10 @@ } }, "../core/node_modules/@smithy/middleware-stack": { - "version": "3.0.1", + "version": "3.0.3", "license": "Apache-2.0", "dependencies": { - "@smithy/types": "^3.1.0", + "@smithy/types": "^3.3.0", "tslib": "^2.6.2" }, "engines": { @@ -4742,12 +4100,12 @@ } }, "../core/node_modules/@smithy/node-config-provider": { - "version": "3.1.1", + "version": "3.1.4", "license": "Apache-2.0", "dependencies": { - "@smithy/property-provider": "^3.1.1", - "@smithy/shared-ini-file-loader": "^3.1.1", - "@smithy/types": "^3.1.0", + "@smithy/property-provider": "^3.1.3", + "@smithy/shared-ini-file-loader": "^3.1.4", + "@smithy/types": "^3.3.0", "tslib": "^2.6.2" }, "engines": { @@ -4755,13 +4113,13 @@ } }, "../core/node_modules/@smithy/node-http-handler": { - "version": "3.0.1", + "version": "3.1.4", "license": "Apache-2.0", "dependencies": { - "@smithy/abort-controller": "^3.0.1", - "@smithy/protocol-http": "^4.0.1", - "@smithy/querystring-builder": "^3.0.1", - "@smithy/types": "^3.1.0", + "@smithy/abort-controller": "^3.1.1", + "@smithy/protocol-http": "^4.1.0", + "@smithy/querystring-builder": "^3.0.3", + "@smithy/types": "^3.3.0", "tslib": "^2.6.2" }, "engines": { @@ -4769,10 +4127,10 @@ } }, "../core/node_modules/@smithy/property-provider": { - "version": "3.1.1", + "version": "3.1.3", "license": "Apache-2.0", "dependencies": { - "@smithy/types": "^3.1.0", + "@smithy/types": "^3.3.0", "tslib": "^2.6.2" }, "engines": { @@ -4780,10 +4138,10 @@ } }, "../core/node_modules/@smithy/protocol-http": { - "version": "4.0.1", + "version": "4.1.0", "license": "Apache-2.0", "dependencies": { - "@smithy/types": "^3.1.0", + "@smithy/types": "^3.3.0", "tslib": "^2.6.2" }, "engines": { @@ -4791,10 +4149,10 @@ } }, "../core/node_modules/@smithy/querystring-builder": { - "version": "3.0.1", + "version": "3.0.3", "license": "Apache-2.0", "dependencies": { - "@smithy/types": "^3.1.0", + "@smithy/types": "^3.3.0", "@smithy/util-uri-escape": "^3.0.0", "tslib": "^2.6.2" }, @@ -4803,10 +4161,10 @@ } }, "../core/node_modules/@smithy/querystring-parser": { - "version": "3.0.1", + "version": "3.0.3", "license": "Apache-2.0", "dependencies": { - "@smithy/types": "^3.1.0", + "@smithy/types": "^3.3.0", "tslib": "^2.6.2" }, "engines": { @@ -4814,20 +4172,20 @@ } }, "../core/node_modules/@smithy/service-error-classification": { - "version": "3.0.1", + "version": "3.0.3", "license": "Apache-2.0", "dependencies": { - "@smithy/types": "^3.1.0" + "@smithy/types": "^3.3.0" }, "engines": { "node": ">=16.0.0" } }, "../core/node_modules/@smithy/shared-ini-file-loader": { - "version": "3.1.1", + "version": "3.1.4", "license": "Apache-2.0", "dependencies": { - "@smithy/types": "^3.1.0", + "@smithy/types": "^3.3.0", "tslib": "^2.6.2" }, "engines": { @@ -4835,13 +4193,14 @@ } }, "../core/node_modules/@smithy/signature-v4": { - "version": "3.1.0", + "version": "4.1.0", "license": "Apache-2.0", "dependencies": { "@smithy/is-array-buffer": "^3.0.0", - "@smithy/types": "^3.1.0", + "@smithy/protocol-http": "^4.1.0", + "@smithy/types": "^3.3.0", "@smithy/util-hex-encoding": "^3.0.0", - "@smithy/util-middleware": "^3.0.1", + "@smithy/util-middleware": "^3.0.3", "@smithy/util-uri-escape": "^3.0.0", "@smithy/util-utf8": "^3.0.0", "tslib": "^2.6.2" @@ -4851,14 +4210,14 @@ } }, "../core/node_modules/@smithy/smithy-client": { - "version": "3.1.2", + "version": "3.1.12", "license": "Apache-2.0", "dependencies": { - "@smithy/middleware-endpoint": "^3.0.2", - "@smithy/middleware-stack": "^3.0.1", - "@smithy/protocol-http": "^4.0.1", - "@smithy/types": "^3.1.0", - "@smithy/util-stream": "^3.0.2", + "@smithy/middleware-endpoint": "^3.1.0", + "@smithy/middleware-stack": "^3.0.3", + "@smithy/protocol-http": "^4.1.0", + "@smithy/types": "^3.3.0", + "@smithy/util-stream": "^3.1.3", "tslib": "^2.6.2" }, "engines": { @@ -4866,7 +4225,7 @@ } }, "../core/node_modules/@smithy/types": { - "version": "3.1.0", + "version": "3.3.0", "license": "Apache-2.0", "dependencies": { "tslib": "^2.6.2" @@ -4876,11 +4235,11 @@ } }, "../core/node_modules/@smithy/url-parser": { - "version": "3.0.1", + "version": "3.0.3", "license": "Apache-2.0", "dependencies": { - "@smithy/querystring-parser": "^3.0.1", - "@smithy/types": "^3.1.0", + "@smithy/querystring-parser": "^3.0.3", + "@smithy/types": "^3.3.0", "tslib": "^2.6.2" } }, @@ -4935,12 +4294,12 @@ } }, "../core/node_modules/@smithy/util-defaults-mode-browser": { - "version": "3.0.4", + "version": "3.0.14", "license": "Apache-2.0", "dependencies": { - "@smithy/property-provider": "^3.1.1", - "@smithy/smithy-client": "^3.1.2", - "@smithy/types": "^3.1.0", + "@smithy/property-provider": "^3.1.3", + "@smithy/smithy-client": "^3.1.12", + "@smithy/types": "^3.3.0", "bowser": "^2.11.0", "tslib": "^2.6.2" }, @@ -4949,15 +4308,15 @@ } }, "../core/node_modules/@smithy/util-defaults-mode-node": { - "version": "3.0.4", + "version": "3.0.14", "license": "Apache-2.0", "dependencies": { - "@smithy/config-resolver": "^3.0.2", - "@smithy/credential-provider-imds": "^3.1.1", - "@smithy/node-config-provider": "^3.1.1", - "@smithy/property-provider": "^3.1.1", - "@smithy/smithy-client": "^3.1.2", - "@smithy/types": "^3.1.0", + "@smithy/config-resolver": "^3.0.5", + "@smithy/credential-provider-imds": "^3.2.0", + "@smithy/node-config-provider": "^3.1.4", + "@smithy/property-provider": "^3.1.3", + "@smithy/smithy-client": "^3.1.12", + "@smithy/types": "^3.3.0", "tslib": "^2.6.2" }, "engines": { @@ -4965,11 +4324,11 @@ } }, "../core/node_modules/@smithy/util-endpoints": { - "version": "2.0.2", + "version": "2.0.5", "license": "Apache-2.0", "dependencies": { - "@smithy/node-config-provider": "^3.1.1", - "@smithy/types": "^3.1.0", + "@smithy/node-config-provider": "^3.1.4", + "@smithy/types": "^3.3.0", "tslib": "^2.6.2" }, "engines": { @@ -4987,10 +4346,10 @@ } }, "../core/node_modules/@smithy/util-middleware": { - "version": "3.0.1", + "version": "3.0.3", "license": "Apache-2.0", "dependencies": { - "@smithy/types": "^3.1.0", + "@smithy/types": "^3.3.0", "tslib": "^2.6.2" }, "engines": { @@ -4998,11 +4357,11 @@ } }, "../core/node_modules/@smithy/util-retry": { - "version": "3.0.1", + "version": "3.0.3", "license": "Apache-2.0", "dependencies": { - "@smithy/service-error-classification": "^3.0.1", - "@smithy/types": "^3.1.0", + "@smithy/service-error-classification": "^3.0.3", + "@smithy/types": "^3.3.0", "tslib": "^2.6.2" }, "engines": { @@ -5010,12 +4369,12 @@ } }, "../core/node_modules/@smithy/util-stream": { - "version": "3.0.2", + "version": "3.1.3", "license": "Apache-2.0", "dependencies": { - "@smithy/fetch-http-handler": "^3.0.2", - "@smithy/node-http-handler": "^3.0.1", - "@smithy/types": "^3.1.0", + "@smithy/fetch-http-handler": "^3.2.4", + "@smithy/node-http-handler": "^3.1.4", + "@smithy/types": "^3.3.0", "@smithy/util-base64": "^3.0.0", "@smithy/util-buffer-from": "^3.0.0", "@smithy/util-hex-encoding": "^3.0.0", @@ -5059,6 +4418,10 @@ "node": ">= 6" } }, + "../core/node_modules/@tootallnate/quickjs-emscripten": { + "version": "0.23.0", + "license": "MIT" + }, "../core/node_modules/@types/babel__core": { "version": "7.20.5", "dev": true, @@ -5096,6 +4459,11 @@ "@babel/types": "^7.20.7" } }, + "../core/node_modules/@types/caseless": { + "version": "0.12.5", + "dev": true, + "license": "MIT" + }, "../core/node_modules/@types/command-line-args": { "version": "5.2.0", "license": "MIT", @@ -5200,11 +4568,105 @@ "form-data": "^4.0.0" } }, + "../core/node_modules/@types/node-forge": { + "version": "1.3.11", + "dev": true, + "license": "MIT", + "dependencies": { + "@types/node": "*" + } + }, "../core/node_modules/@types/pad-left": { "version": "2.1.1", "license": "MIT", "peer": true }, + "../core/node_modules/@types/pg": { + "version": "8.11.6", + "dev": true, + "license": "MIT", + "dependencies": { + "@types/node": "*", + "pg-protocol": "*", + "pg-types": "^4.0.1" + } + }, + "../core/node_modules/@types/pg/node_modules/pg-types": { + "version": "4.0.2", + "dev": true, + "license": "MIT", + "dependencies": { + "pg-int8": "1.0.1", + "pg-numeric": "1.0.2", + "postgres-array": "~3.0.1", + "postgres-bytea": "~3.0.0", + "postgres-date": "~2.1.0", + "postgres-interval": "^3.0.0", + "postgres-range": "^1.1.1" + }, + "engines": { + "node": ">=10" + } + }, + "../core/node_modules/@types/pg/node_modules/postgres-array": { + "version": "3.0.2", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=12" + } + }, + "../core/node_modules/@types/pg/node_modules/postgres-bytea": { + "version": "3.0.0", + "dev": true, + "license": "MIT", + "dependencies": { + "obuf": "~1.1.2" + }, + "engines": { + "node": ">= 6" + } + }, + "../core/node_modules/@types/pg/node_modules/postgres-date": { + "version": "2.1.0", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=12" + } + }, + "../core/node_modules/@types/pg/node_modules/postgres-interval": { + "version": "3.0.0", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=12" + } + }, + "../core/node_modules/@types/request": { + "version": "2.48.12", + "dev": true, + "license": "MIT", + "dependencies": { + "@types/caseless": "*", + "@types/node": "*", + "@types/tough-cookie": "*", + "form-data": "^2.5.0" + } + }, + "../core/node_modules/@types/request/node_modules/form-data": { + "version": "2.5.1", + "dev": true, + "license": "MIT", + "dependencies": { + "asynckit": "^0.4.0", + "combined-stream": "^1.0.6", + "mime-types": "^2.1.12" + }, + "engines": { + "node": ">= 0.12" + } + }, "../core/node_modules/@types/sizzle": { "version": "2.3.8", "dev": true, @@ -5225,6 +4687,15 @@ "dev": true, "license": "MIT" }, + "../core/node_modules/@types/win-ca": { + "version": "3.5.4", + "dev": true, + "license": "MIT", + "dependencies": { + "@types/node": "*", + "@types/node-forge": "*" + } + }, "../core/node_modules/@types/yargs": { "version": "17.0.32", "dev": true, @@ -5238,6 +4709,14 @@ "dev": true, "license": "MIT" }, + "../core/node_modules/@types/yauzl": { + "version": "2.10.3", + "license": "MIT", + "optional": true, + "dependencies": { + "@types/node": "*" + } + }, "../core/node_modules/@typescript-eslint/eslint-plugin": { "version": "7.10.0", "license": "MIT", @@ -5427,6 +4906,11 @@ "version": "1.1.1", "license": "MIT" }, + "../core/node_modules/abab": { + "version": "2.0.6", + "dev": true, + "license": "BSD-3-Clause" + }, "../core/node_modules/abbrev": { "version": "1.1.1", "license": "ISC", @@ -5452,6 +4936,15 @@ "node": ">=0.4.0" } }, + "../core/node_modules/acorn-globals": { + "version": "7.0.1", + "dev": true, + "license": "MIT", + "dependencies": { + "acorn": "^8.1.0", + "acorn-walk": "^8.0.2" + } + }, "../core/node_modules/acorn-jsx": { "version": "5.3.2", "license": "MIT", @@ -5459,6 +4952,17 @@ "acorn": "^6.0.0 || ^7.0.0 || ^8.0.0" } }, + "../core/node_modules/acorn-walk": { + "version": "8.3.3", + "dev": true, + "license": "MIT", + "dependencies": { + "acorn": "^8.11.0" + }, + "engines": { + "node": ">=0.4.0" + } + }, "../core/node_modules/adf-to-md": { "version": "1.1.0", "license": "MIT", @@ -5591,8 +5095,7 @@ }, "../core/node_modules/aproba": { "version": "2.0.0", - "license": "ISC", - "optional": true + "license": "ISC" }, "../core/node_modules/are-we-there-yet": { "version": "3.0.1", @@ -5758,6 +5261,16 @@ "node": ">=0.8" } }, + "../core/node_modules/ast-types": { + "version": "0.13.4", + "license": "MIT", + "dependencies": { + "tslib": "^2.0.1" + }, + "engines": { + "node": ">=4" + } + }, "../core/node_modules/async-mutex": { "version": "0.5.0", "license": "MIT", @@ -6017,6 +5530,13 @@ ], "license": "MIT" }, + "../core/node_modules/basic-ftp": { + "version": "5.0.5", + "license": "MIT", + "engines": { + "node": ">=10.0.0" + } + }, "../core/node_modules/bcrypt-pbkdf": { "version": "1.0.2", "license": "BSD-3-Clause", @@ -6176,6 +5696,13 @@ "ieee754": "^1.2.1" } }, + "../core/node_modules/buffer-crc32": { + "version": "0.2.13", + "license": "MIT", + "engines": { + "node": "*" + } + }, "../core/node_modules/buffer-from": { "version": "1.1.2", "dev": true, @@ -6316,6 +5843,44 @@ "node": ">=10" } }, + "../core/node_modules/cheerio": { + "version": "1.0.0", + "license": "MIT", + "dependencies": { + "cheerio-select": "^2.1.0", + "dom-serializer": "^2.0.0", + "domhandler": "^5.0.3", + "domutils": "^3.1.0", + "encoding-sniffer": "^0.2.0", + "htmlparser2": "^9.1.0", + "parse5": "^7.1.2", + "parse5-htmlparser2-tree-adapter": "^7.0.0", + "parse5-parser-stream": "^7.1.2", + "undici": "^6.19.5", + "whatwg-mimetype": "^4.0.0" + }, + "engines": { + "node": ">=18.17" + }, + "funding": { + "url": "https://github.com/cheeriojs/cheerio?sponsor=1" + } + }, + "../core/node_modules/cheerio-select": { + "version": "2.1.0", + "license": "BSD-2-Clause", + "dependencies": { + "boolbase": "^1.0.0", + "css-select": "^5.1.0", + "css-what": "^6.1.0", + "domelementtype": "^2.3.0", + "domhandler": "^5.0.3", + "domutils": "^3.0.1" + }, + "funding": { + "url": "https://github.com/sponsors/fb55" + } + }, "../core/node_modules/chownr": { "version": "2.0.0", "license": "ISC", @@ -6323,6 +5888,18 @@ "node": ">=10" } }, + "../core/node_modules/chromium-bidi": { + "version": "0.6.3", + "license": "Apache-2.0", + "dependencies": { + "mitt": "3.0.1", + "urlpattern-polyfill": "10.0.0", + "zod": "3.23.8" + }, + "peerDependencies": { + "devtools-protocol": "*" + } + }, "../core/node_modules/ci-info": { "version": "3.9.0", "dev": true, @@ -6352,7 +5929,6 @@ }, "../core/node_modules/cliui": { "version": "8.0.1", - "dev": true, "license": "ISC", "dependencies": { "string-width": "^4.2.0", @@ -6413,7 +5989,6 @@ "../core/node_modules/color-support": { "version": "1.1.3", "license": "ISC", - "optional": true, "bin": { "color-support": "bin.js" } @@ -6507,8 +6082,7 @@ }, "../core/node_modules/console-control-strings": { "version": "1.1.0", - "license": "ISC", - "optional": true + "license": "ISC" }, "../core/node_modules/convert-source-map": { "version": "2.0.0", @@ -6531,6 +6105,30 @@ "version": "1.0.2", "license": "MIT" }, + "../core/node_modules/cosmiconfig": { + "version": "9.0.0", + "license": "MIT", + "dependencies": { + "env-paths": "^2.2.1", + "import-fresh": "^3.3.0", + "js-yaml": "^4.1.0", + "parse-json": "^5.2.0" + }, + "engines": { + "node": ">=14" + }, + "funding": { + "url": "https://github.com/sponsors/d-fischer" + }, + "peerDependencies": { + "typescript": ">=4.9.5" + }, + "peerDependenciesMeta": { + "typescript": { + "optional": true + } + } + }, "../core/node_modules/create-jest": { "version": "29.7.0", "dev": true, @@ -6551,6 +6149,23 @@ "node": "^14.15.0 || ^16.10.0 || >=18.0.0" } }, + "../core/node_modules/cross-env": { + "version": "7.0.3", + "dev": true, + "license": "MIT", + "dependencies": { + "cross-spawn": "^7.0.1" + }, + "bin": { + "cross-env": "src/bin/cross-env.js", + "cross-env-shell": "src/bin/cross-env-shell.js" + }, + "engines": { + "node": ">=10.14", + "npm": ">=6", + "yarn": ">=1" + } + }, "../core/node_modules/cross-spawn": { "version": "7.0.3", "license": "MIT", @@ -6587,6 +6202,11 @@ "url": "https://github.com/sponsors/fb55" } }, + "../core/node_modules/cssom": { + "version": "0.5.0", + "dev": true, + "license": "MIT" + }, "../core/node_modules/cssstyle": { "version": "4.0.1", "license": "MIT", @@ -6671,7 +6291,7 @@ } }, "../core/node_modules/dbinfoz": { - "version": "0.1.4", + "version": "0.11.0", "license": "MIT", "dependencies": { "mysql2": "^3.9.1", @@ -6680,7 +6300,7 @@ } }, "../core/node_modules/debug": { - "version": "4.3.4", + "version": "4.3.6", "license": "MIT", "dependencies": { "ms": "2.1.2" @@ -6773,6 +6393,18 @@ "url": "https://github.com/sponsors/ljharb" } }, + "../core/node_modules/degenerator": { + "version": "5.0.1", + "license": "MIT", + "dependencies": { + "ast-types": "^0.13.4", + "escodegen": "^2.1.0", + "esprima": "^4.0.1" + }, + "engines": { + "node": ">= 14" + } + }, "../core/node_modules/delayed-stream": { "version": "1.0.0", "license": "MIT", @@ -6811,6 +6443,10 @@ "node": ">=8" } }, + "../core/node_modules/devtools-protocol": { + "version": "0.0.1312386", + "license": "BSD-3-Clause" + }, "../core/node_modules/diff-sequences": { "version": "29.6.3", "dev": true, @@ -6861,6 +6497,17 @@ ], "license": "BSD-2-Clause" }, + "../core/node_modules/domexception": { + "version": "4.0.0", + "dev": true, + "license": "MIT", + "dependencies": { + "webidl-conversions": "^7.0.0" + }, + "engines": { + "node": ">=12" + } + }, "../core/node_modules/domhandler": { "version": "5.0.3", "license": "BSD-2-Clause", @@ -6908,6 +6555,10 @@ "version": "0.1.1", "license": "MIT" }, + "../core/node_modules/eight-colors": { + "version": "1.3.0", + "license": "MIT" + }, "../core/node_modules/electron-to-chromium": { "version": "1.4.776", "dev": true, @@ -6926,7 +6577,6 @@ }, "../core/node_modules/emoji-regex": { "version": "8.0.0", - "devOptional": true, "license": "MIT" }, "../core/node_modules/encoding": { @@ -6937,6 +6587,17 @@ "iconv-lite": "^0.6.2" } }, + "../core/node_modules/encoding-sniffer": { + "version": "0.2.0", + "license": "MIT", + "dependencies": { + "iconv-lite": "^0.6.3", + "whatwg-encoding": "^3.1.1" + }, + "funding": { + "url": "https://github.com/fb55/encoding-sniffer?sponsor=1" + } + }, "../core/node_modules/end-of-stream": { "version": "1.4.4", "license": "MIT", @@ -6994,7 +6655,6 @@ "../core/node_modules/env-paths": { "version": "2.2.1", "license": "MIT", - "optional": true, "engines": { "node": ">=6" } @@ -7006,7 +6666,6 @@ }, "../core/node_modules/error-ex": { "version": "1.3.2", - "dev": true, "license": "MIT", "dependencies": { "is-arrayish": "^0.2.1" @@ -7169,7 +6828,6 @@ }, "../core/node_modules/escalade": { "version": "3.1.2", - "dev": true, "license": "MIT", "engines": { "node": ">=6" @@ -7185,6 +6843,25 @@ "url": "https://github.com/sponsors/sindresorhus" } }, + "../core/node_modules/escodegen": { + "version": "2.1.0", + "license": "BSD-2-Clause", + "dependencies": { + "esprima": "^4.0.1", + "estraverse": "^5.2.0", + "esutils": "^2.0.2" + }, + "bin": { + "escodegen": "bin/escodegen.js", + "esgenerate": "bin/esgenerate.js" + }, + "engines": { + "node": ">=6.0" + }, + "optionalDependencies": { + "source-map": "~0.6.1" + } + }, "../core/node_modules/eslint": { "version": "8.57.0", "license": "MIT", @@ -7553,6 +7230,37 @@ "version": "3.0.2", "license": "MIT" }, + "../core/node_modules/extract-zip": { + "version": "2.0.1", + "license": "BSD-2-Clause", + "dependencies": { + "debug": "^4.1.1", + "get-stream": "^5.1.0", + "yauzl": "^2.10.0" + }, + "bin": { + "extract-zip": "cli.js" + }, + "engines": { + "node": ">= 10.17.0" + }, + "optionalDependencies": { + "@types/yauzl": "^2.9.1" + } + }, + "../core/node_modules/extract-zip/node_modules/get-stream": { + "version": "5.2.0", + "license": "MIT", + "dependencies": { + "pump": "^3.0.0" + }, + "engines": { + "node": ">=8" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, "../core/node_modules/extsprintf": { "version": "1.3.0", "engines": [ @@ -7642,6 +7350,13 @@ "bser": "2.1.1" } }, + "../core/node_modules/fd-slicer": { + "version": "1.1.0", + "license": "MIT", + "dependencies": { + "pend": "~1.2.0" + } + }, "../core/node_modules/fetch-blob": { "version": "3.2.0", "funding": [ @@ -7813,6 +7528,25 @@ "version": "1.0.0", "license": "MIT" }, + "../core/node_modules/fs-extra": { + "version": "11.2.0", + "license": "MIT", + "dependencies": { + "graceful-fs": "^4.2.0", + "jsonfile": "^6.0.1", + "universalify": "^2.0.0" + }, + "engines": { + "node": ">=14.14" + } + }, + "../core/node_modules/fs-extra/node_modules/universalify": { + "version": "2.0.1", + "license": "MIT", + "engines": { + "node": ">= 10.0.0" + } + }, "../core/node_modules/fs-minipass": { "version": "2.1.0", "license": "ISC", @@ -7904,7 +7638,6 @@ }, "../core/node_modules/get-caller-file": { "version": "2.0.5", - "dev": true, "license": "ISC", "engines": { "node": "6.* || 8.* || >= 10.*" @@ -7961,6 +7694,26 @@ "url": "https://github.com/sponsors/ljharb" } }, + "../core/node_modules/get-uri": { + "version": "6.0.3", + "license": "MIT", + "dependencies": { + "basic-ftp": "^5.0.2", + "data-uri-to-buffer": "^6.0.2", + "debug": "^4.3.4", + "fs-extra": "^11.2.0" + }, + "engines": { + "node": ">= 14" + } + }, + "../core/node_modules/get-uri/node_modules/data-uri-to-buffer": { + "version": "6.0.2", + "license": "MIT", + "engines": { + "node": ">= 14" + } + }, "../core/node_modules/getpass": { "version": "0.1.7", "license": "MIT", @@ -8247,8 +8000,7 @@ }, "../core/node_modules/has-unicode": { "version": "2.0.1", - "license": "ISC", - "optional": true + "license": "ISC" }, "../core/node_modules/hasown": { "version": "2.0.2", @@ -8282,6 +8034,23 @@ "dev": true, "license": "MIT" }, + "../core/node_modules/htmlparser2": { + "version": "9.1.0", + "funding": [ + "https://github.com/fb55/htmlparser2?sponsor=1", + { + "type": "github", + "url": "https://github.com/sponsors/fb55" + } + ], + "license": "MIT", + "dependencies": { + "domelementtype": "^2.3.0", + "domhandler": "^5.0.3", + "domutils": "^3.1.0", + "entities": "^4.5.0" + } + }, "../core/node_modules/http-cache-semantics": { "version": "4.1.1", "license": "BSD-2-Clause", @@ -8312,7 +8081,7 @@ } }, "../core/node_modules/https-proxy-agent": { - "version": "7.0.4", + "version": "7.0.5", "license": "MIT", "dependencies": { "agent-base": "^7.0.2", @@ -8455,7 +8224,6 @@ "../core/node_modules/ip-address": { "version": "9.0.5", "license": "MIT", - "optional": true, "dependencies": { "jsbn": "1.1.0", "sprintf-js": "^1.1.3" @@ -8480,7 +8248,6 @@ }, "../core/node_modules/is-arrayish": { "version": "0.2.1", - "dev": true, "license": "MIT" }, "../core/node_modules/is-bigint": { @@ -8566,7 +8333,6 @@ }, "../core/node_modules/is-fullwidth-code-point": { "version": "3.0.0", - "devOptional": true, "license": "MIT", "engines": { "node": ">=8" @@ -8842,6 +8608,31 @@ "node": "^14.15.0 || ^16.10.0 || >=18.0.0" } }, + "../core/node_modules/jest-changed-files/node_modules/p-limit": { + "version": "3.1.0", + "dev": true, + "license": "MIT", + "dependencies": { + "yocto-queue": "^0.1.0" + }, + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "../core/node_modules/jest-changed-files/node_modules/yocto-queue": { + "version": "0.1.0", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, "../core/node_modules/jest-circus": { "version": "29.7.0", "dev": true, @@ -8872,6 +8663,31 @@ "node": "^14.15.0 || ^16.10.0 || >=18.0.0" } }, + "../core/node_modules/jest-circus/node_modules/p-limit": { + "version": "3.1.0", + "dev": true, + "license": "MIT", + "dependencies": { + "yocto-queue": "^0.1.0" + }, + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "../core/node_modules/jest-circus/node_modules/yocto-queue": { + "version": "0.1.0", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, "../core/node_modules/jest-cli": { "version": "29.7.0", "dev": true, @@ -8988,6 +8804,231 @@ "node": "^14.15.0 || ^16.10.0 || >=18.0.0" } }, + "../core/node_modules/jest-environment-jsdom": { + "version": "29.7.0", + "dev": true, + "license": "MIT", + "dependencies": { + "@jest/environment": "^29.7.0", + "@jest/fake-timers": "^29.7.0", + "@jest/types": "^29.6.3", + "@types/jsdom": "^20.0.0", + "@types/node": "*", + "jest-mock": "^29.7.0", + "jest-util": "^29.7.0", + "jsdom": "^20.0.0" + }, + "engines": { + "node": "^14.15.0 || ^16.10.0 || >=18.0.0" + }, + "peerDependencies": { + "canvas": "^2.5.0" + }, + "peerDependenciesMeta": { + "canvas": { + "optional": true + } + } + }, + "../core/node_modules/jest-environment-jsdom/node_modules/@tootallnate/once": { + "version": "2.0.0", + "dev": true, + "license": "MIT", + "engines": { + "node": ">= 10" + } + }, + "../core/node_modules/jest-environment-jsdom/node_modules/@types/jsdom": { + "version": "20.0.1", + "dev": true, + "license": "MIT", + "dependencies": { + "@types/node": "*", + "@types/tough-cookie": "*", + "parse5": "^7.0.0" + } + }, + "../core/node_modules/jest-environment-jsdom/node_modules/agent-base": { + "version": "6.0.2", + "dev": true, + "license": "MIT", + "dependencies": { + "debug": "4" + }, + "engines": { + "node": ">= 6.0.0" + } + }, + "../core/node_modules/jest-environment-jsdom/node_modules/cssstyle": { + "version": "2.3.0", + "dev": true, + "license": "MIT", + "dependencies": { + "cssom": "~0.3.6" + }, + "engines": { + "node": ">=8" + } + }, + "../core/node_modules/jest-environment-jsdom/node_modules/cssstyle/node_modules/cssom": { + "version": "0.3.8", + "dev": true, + "license": "MIT" + }, + "../core/node_modules/jest-environment-jsdom/node_modules/data-urls": { + "version": "3.0.2", + "dev": true, + "license": "MIT", + "dependencies": { + "abab": "^2.0.6", + "whatwg-mimetype": "^3.0.0", + "whatwg-url": "^11.0.0" + }, + "engines": { + "node": ">=12" + } + }, + "../core/node_modules/jest-environment-jsdom/node_modules/html-encoding-sniffer": { + "version": "3.0.0", + "dev": true, + "license": "MIT", + "dependencies": { + "whatwg-encoding": "^2.0.0" + }, + "engines": { + "node": ">=12" + } + }, + "../core/node_modules/jest-environment-jsdom/node_modules/http-proxy-agent": { + "version": "5.0.0", + "dev": true, + "license": "MIT", + "dependencies": { + "@tootallnate/once": "2", + "agent-base": "6", + "debug": "4" + }, + "engines": { + "node": ">= 6" + } + }, + "../core/node_modules/jest-environment-jsdom/node_modules/https-proxy-agent": { + "version": "5.0.1", + "dev": true, + "license": "MIT", + "dependencies": { + "agent-base": "6", + "debug": "4" + }, + "engines": { + "node": ">= 6" + } + }, + "../core/node_modules/jest-environment-jsdom/node_modules/jsdom": { + "version": "20.0.3", + "dev": true, + "license": "MIT", + "dependencies": { + "abab": "^2.0.6", + "acorn": "^8.8.1", + "acorn-globals": "^7.0.0", + "cssom": "^0.5.0", + "cssstyle": "^2.3.0", + "data-urls": "^3.0.2", + "decimal.js": "^10.4.2", + "domexception": "^4.0.0", + "escodegen": "^2.0.0", + "form-data": "^4.0.0", + "html-encoding-sniffer": "^3.0.0", + "http-proxy-agent": "^5.0.0", + "https-proxy-agent": "^5.0.1", + "is-potential-custom-element-name": "^1.0.1", + "nwsapi": "^2.2.2", + "parse5": "^7.1.1", + "saxes": "^6.0.0", + "symbol-tree": "^3.2.4", + "tough-cookie": "^4.1.2", + "w3c-xmlserializer": "^4.0.0", + "webidl-conversions": "^7.0.0", + "whatwg-encoding": "^2.0.0", + "whatwg-mimetype": "^3.0.0", + "whatwg-url": "^11.0.0", + "ws": "^8.11.0", + "xml-name-validator": "^4.0.0" + }, + "engines": { + "node": ">=14" + }, + "peerDependencies": { + "canvas": "^2.5.0" + }, + "peerDependenciesMeta": { + "canvas": { + "optional": true + } + } + }, + "../core/node_modules/jest-environment-jsdom/node_modules/tr46": { + "version": "3.0.0", + "dev": true, + "license": "MIT", + "dependencies": { + "punycode": "^2.1.1" + }, + "engines": { + "node": ">=12" + } + }, + "../core/node_modules/jest-environment-jsdom/node_modules/w3c-xmlserializer": { + "version": "4.0.0", + "dev": true, + "license": "MIT", + "dependencies": { + "xml-name-validator": "^4.0.0" + }, + "engines": { + "node": ">=14" + } + }, + "../core/node_modules/jest-environment-jsdom/node_modules/whatwg-encoding": { + "version": "2.0.0", + "dev": true, + "license": "MIT", + "dependencies": { + "iconv-lite": "0.6.3" + }, + "engines": { + "node": ">=12" + } + }, + "../core/node_modules/jest-environment-jsdom/node_modules/whatwg-mimetype": { + "version": "3.0.0", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=12" + } + }, + "../core/node_modules/jest-environment-jsdom/node_modules/whatwg-url": { + "version": "11.0.0", + "dev": true, + "license": "MIT", + "dependencies": { + "tr46": "^3.0.0", + "webidl-conversions": "^7.0.0" + }, + "engines": { + "node": ">=12" + } + }, + "../core/node_modules/jest-environment-jsdom/node_modules/xml-name-validator": { + "version": "4.0.0", + "dev": true, + "license": "Apache-2.0", + "engines": { + "node": ">=12" + } + }, "../core/node_modules/jest-environment-node": { "version": "29.7.0", "dev": true, @@ -9180,6 +9221,31 @@ "node": "^14.15.0 || ^16.10.0 || >=18.0.0" } }, + "../core/node_modules/jest-runner/node_modules/p-limit": { + "version": "3.1.0", + "dev": true, + "license": "MIT", + "dependencies": { + "yocto-queue": "^0.1.0" + }, + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "../core/node_modules/jest-runner/node_modules/yocto-queue": { + "version": "0.1.0", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, "../core/node_modules/jest-runtime": { "version": "29.7.0", "dev": true, @@ -9331,6 +9397,13 @@ "url": "https://github.com/chalk/supports-color?sponsor=1" } }, + "../core/node_modules/jinja-js": { + "version": "0.1.8", + "license": "BSD", + "bin": { + "jinjajs": "cli.js" + } + }, "../core/node_modules/js-tiktoken": { "version": "1.0.12", "license": "MIT", @@ -9340,7 +9413,6 @@ }, "../core/node_modules/js-tokens": { "version": "4.0.0", - "dev": true, "license": "MIT" }, "../core/node_modules/js-yaml": { @@ -9355,11 +9427,10 @@ }, "../core/node_modules/jsbn": { "version": "1.1.0", - "license": "MIT", - "optional": true + "license": "MIT" }, "../core/node_modules/jsdom": { - "version": "24.0.0", + "version": "24.1.1", "license": "MIT", "dependencies": { "cssstyle": "^4.0.1", @@ -9367,21 +9438,21 @@ "decimal.js": "^10.4.3", "form-data": "^4.0.0", "html-encoding-sniffer": "^4.0.0", - "http-proxy-agent": "^7.0.0", - "https-proxy-agent": "^7.0.2", + "http-proxy-agent": "^7.0.2", + "https-proxy-agent": "^7.0.5", "is-potential-custom-element-name": "^1.0.1", - "nwsapi": "^2.2.7", + "nwsapi": "^2.2.12", "parse5": "^7.1.2", - "rrweb-cssom": "^0.6.0", + "rrweb-cssom": "^0.7.1", "saxes": "^6.0.0", "symbol-tree": "^3.2.4", - "tough-cookie": "^4.1.3", + "tough-cookie": "^4.1.4", "w3c-xmlserializer": "^5.0.0", "webidl-conversions": "^7.0.0", "whatwg-encoding": "^3.1.1", "whatwg-mimetype": "^4.0.0", "whatwg-url": "^14.0.0", - "ws": "^8.16.0", + "ws": "^8.18.0", "xml-name-validator": "^5.0.0" }, "engines": { @@ -9396,6 +9467,10 @@ } } }, + "../core/node_modules/jsdom/node_modules/rrweb-cssom": { + "version": "0.7.1", + "license": "MIT" + }, "../core/node_modules/jsesc": { "version": "2.5.2", "dev": true, @@ -9420,7 +9495,6 @@ }, "../core/node_modules/json-parse-even-better-errors": { "version": "2.3.1", - "dev": true, "license": "MIT" }, "../core/node_modules/json-schema": { @@ -9450,6 +9524,23 @@ "node": ">=6" } }, + "../core/node_modules/jsonfile": { + "version": "6.1.0", + "license": "MIT", + "dependencies": { + "universalify": "^2.0.0" + }, + "optionalDependencies": { + "graceful-fs": "^4.1.6" + } + }, + "../core/node_modules/jsonfile/node_modules/universalify": { + "version": "2.0.1", + "license": "MIT", + "engines": { + "node": ">= 10.0.0" + } + }, "../core/node_modules/jsprim": { "version": "1.4.2", "license": "MIT", @@ -9538,7 +9629,6 @@ }, "../core/node_modules/lines-and-columns": { "version": "1.2.4", - "dev": true, "license": "MIT" }, "../core/node_modules/llm-code-highlighter": { @@ -9913,6 +10003,10 @@ "version": "4.0.0", "license": "ISC" }, + "../core/node_modules/mitt": { + "version": "3.0.1", + "license": "MIT" + }, "../core/node_modules/mkdirp": { "version": "1.0.4", "license": "MIT", @@ -10007,6 +10101,13 @@ "version": "2.6.2", "license": "MIT" }, + "../core/node_modules/netmask": { + "version": "2.0.2", + "license": "MIT", + "engines": { + "node": ">= 0.4.0" + } + }, "../core/node_modules/node-abi": { "version": "3.62.0", "license": "MIT", @@ -10188,7 +10289,7 @@ } }, "../core/node_modules/nwsapi": { - "version": "2.2.10", + "version": "2.2.12", "license": "MIT" }, "../core/node_modules/oauth-sign": { @@ -10287,6 +10388,11 @@ "version": "2.0.4", "license": "MIT" }, + "../core/node_modules/obuf": { + "version": "1.1.2", + "dev": true, + "license": "MIT" + }, "../core/node_modules/ollama": { "version": "0.4.9", "license": "MIT", @@ -10432,6 +10538,32 @@ } }, "../core/node_modules/p-limit": { + "version": "6.1.0", + "license": "MIT", + "dependencies": { + "yocto-queue": "^1.1.1" + }, + "engines": { + "node": ">=18" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "../core/node_modules/p-locate": { + "version": "5.0.0", + "license": "MIT", + "dependencies": { + "p-limit": "^3.0.2" + }, + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "../core/node_modules/p-locate/node_modules/p-limit": { "version": "3.1.0", "license": "MIT", "dependencies": { @@ -10444,12 +10576,9 @@ "url": "https://github.com/sponsors/sindresorhus" } }, - "../core/node_modules/p-locate": { - "version": "5.0.0", + "../core/node_modules/p-locate/node_modules/yocto-queue": { + "version": "0.1.0", "license": "MIT", - "dependencies": { - "p-limit": "^3.0.2" - }, "engines": { "node": ">=10" }, @@ -10479,6 +10608,46 @@ "node": ">=6" } }, + "../core/node_modules/pac-proxy-agent": { + "version": "7.0.2", + "license": "MIT", + "dependencies": { + "@tootallnate/quickjs-emscripten": "^0.23.0", + "agent-base": "^7.0.2", + "debug": "^4.3.4", + "get-uri": "^6.0.1", + "http-proxy-agent": "^7.0.0", + "https-proxy-agent": "^7.0.5", + "pac-resolver": "^7.0.1", + "socks-proxy-agent": "^8.0.4" + }, + "engines": { + "node": ">= 14" + } + }, + "../core/node_modules/pac-proxy-agent/node_modules/socks-proxy-agent": { + "version": "8.0.4", + "license": "MIT", + "dependencies": { + "agent-base": "^7.1.1", + "debug": "^4.3.4", + "socks": "^2.8.3" + }, + "engines": { + "node": ">= 14" + } + }, + "../core/node_modules/pac-resolver": { + "version": "7.0.1", + "license": "MIT", + "dependencies": { + "degenerator": "^5.0.0", + "netmask": "^2.0.2" + }, + "engines": { + "node": ">= 14" + } + }, "../core/node_modules/pad-left": { "version": "2.1.0", "license": "MIT", @@ -10502,7 +10671,6 @@ }, "../core/node_modules/parse-json": { "version": "5.2.0", - "dev": true, "license": "MIT", "dependencies": { "@babel/code-frame": "^7.0.0", @@ -10527,6 +10695,27 @@ "url": "https://github.com/inikulin/parse5?sponsor=1" } }, + "../core/node_modules/parse5-htmlparser2-tree-adapter": { + "version": "7.0.0", + "license": "MIT", + "dependencies": { + "domhandler": "^5.0.2", + "parse5": "^7.0.0" + }, + "funding": { + "url": "https://github.com/inikulin/parse5?sponsor=1" + } + }, + "../core/node_modules/parse5-parser-stream": { + "version": "7.1.2", + "license": "MIT", + "dependencies": { + "parse5": "^7.0.0" + }, + "funding": { + "url": "https://github.com/inikulin/parse5?sponsor=1" + } + }, "../core/node_modules/path-exists": { "version": "4.0.0", "license": "MIT", @@ -10559,6 +10748,10 @@ "node": ">=8" } }, + "../core/node_modules/pend": { + "version": "1.2.0", + "license": "MIT" + }, "../core/node_modules/performance-now": { "version": "2.1.0", "license": "MIT" @@ -10604,6 +10797,14 @@ "node": ">=4.0.0" } }, + "../core/node_modules/pg-numeric": { + "version": "1.0.2", + "dev": true, + "license": "ISC", + "engines": { + "node": ">=4" + } + }, "../core/node_modules/pg-pool": { "version": "3.6.2", "license": "MIT", @@ -10638,7 +10839,6 @@ }, "../core/node_modules/picocolors": { "version": "1.0.1", - "dev": true, "license": "ISC" }, "../core/node_modules/picomatch": { @@ -10768,6 +10968,11 @@ "node": ">=0.10.0" } }, + "../core/node_modules/postgres-range": { + "version": "1.1.4", + "dev": true, + "license": "MIT" + }, "../core/node_modules/posthog-node": { "version": "3.6.3", "license": "MIT", @@ -10882,6 +11087,13 @@ "node": ">= 0.6.0" } }, + "../core/node_modules/progress": { + "version": "2.0.3", + "license": "MIT", + "engines": { + "node": ">=0.4.0" + } + }, "../core/node_modules/promise-inflight": { "version": "1.0.1", "license": "ISC", @@ -10939,6 +11151,42 @@ "version": "4.0.0", "license": "Apache-2.0" }, + "../core/node_modules/proxy-agent": { + "version": "6.4.0", + "license": "MIT", + "dependencies": { + "agent-base": "^7.0.2", + "debug": "^4.3.4", + "http-proxy-agent": "^7.0.1", + "https-proxy-agent": "^7.0.3", + "lru-cache": "^7.14.1", + "pac-proxy-agent": "^7.0.1", + "proxy-from-env": "^1.1.0", + "socks-proxy-agent": "^8.0.2" + }, + "engines": { + "node": ">= 14" + } + }, + "../core/node_modules/proxy-agent/node_modules/lru-cache": { + "version": "7.18.3", + "license": "ISC", + "engines": { + "node": ">=12" + } + }, + "../core/node_modules/proxy-agent/node_modules/socks-proxy-agent": { + "version": "8.0.4", + "license": "MIT", + "dependencies": { + "agent-base": "^7.1.1", + "debug": "^4.3.4", + "socks": "^2.8.3" + }, + "engines": { + "node": ">= 14" + } + }, "../core/node_modules/proxy-from-env": { "version": "1.1.0", "license": "MIT" @@ -10962,6 +11210,122 @@ "node": ">=6" } }, + "../core/node_modules/puppeteer": { + "version": "22.15.0", + "hasInstallScript": true, + "license": "Apache-2.0", + "dependencies": { + "@puppeteer/browsers": "2.3.0", + "cosmiconfig": "^9.0.0", + "devtools-protocol": "0.0.1312386", + "puppeteer-core": "22.15.0" + }, + "bin": { + "puppeteer": "lib/esm/puppeteer/node/cli.js" + }, + "engines": { + "node": ">=18" + } + }, + "../core/node_modules/puppeteer-chromium-resolver": { + "version": "23.0.0", + "hasInstallScript": true, + "license": "MIT", + "dependencies": { + "@puppeteer/browsers": "^2.3.1", + "eight-colors": "^1.3.0", + "gauge": "^5.0.2", + "puppeteer-core": "^23.1.0" + } + }, + "../core/node_modules/puppeteer-chromium-resolver/node_modules/@puppeteer/browsers": { + "version": "2.3.1", + "license": "Apache-2.0", + "dependencies": { + "debug": "^4.3.6", + "extract-zip": "^2.0.1", + "progress": "^2.0.3", + "proxy-agent": "^6.4.0", + "semver": "^7.6.3", + "tar-fs": "^3.0.6", + "unbzip2-stream": "^1.4.3", + "yargs": "^17.7.2" + }, + "bin": { + "browsers": "lib/cjs/main-cli.js" + }, + "engines": { + "node": ">=18" + } + }, + "../core/node_modules/puppeteer-chromium-resolver/node_modules/chromium-bidi": { + "version": "0.6.4", + "license": "Apache-2.0", + "dependencies": { + "mitt": "3.0.1", + "urlpattern-polyfill": "10.0.0", + "zod": "3.23.8" + }, + "peerDependencies": { + "devtools-protocol": "*" + } + }, + "../core/node_modules/puppeteer-chromium-resolver/node_modules/gauge": { + "version": "5.0.2", + "license": "ISC", + "dependencies": { + "aproba": "^1.0.3 || ^2.0.0", + "color-support": "^1.1.3", + "console-control-strings": "^1.1.0", + "has-unicode": "^2.0.1", + "signal-exit": "^4.0.1", + "string-width": "^4.2.3", + "strip-ansi": "^6.0.1", + "wide-align": "^1.1.5" + }, + "engines": { + "node": "^14.17.0 || ^16.13.0 || >=18.0.0" + } + }, + "../core/node_modules/puppeteer-chromium-resolver/node_modules/puppeteer-core": { + "version": "23.1.1", + "license": "Apache-2.0", + "dependencies": { + "@puppeteer/browsers": "2.3.1", + "chromium-bidi": "0.6.4", + "debug": "^4.3.6", + "devtools-protocol": "0.0.1312386", + "typed-query-selector": "^2.12.0", + "ws": "^8.18.0" + }, + "engines": { + "node": ">=18" + } + }, + "../core/node_modules/puppeteer-chromium-resolver/node_modules/signal-exit": { + "version": "4.1.0", + "license": "ISC", + "engines": { + "node": ">=14" + }, + "funding": { + "url": "https://github.com/sponsors/isaacs" + } + }, + "../core/node_modules/puppeteer-core": { + "version": "22.15.0", + "license": "Apache-2.0", + "dependencies": { + "@puppeteer/browsers": "2.3.0", + "chromium-bidi": "0.6.3", + "debug": "^4.3.6", + "devtools-protocol": "0.0.1312386", + "ws": "^8.18.0" + }, + "engines": { + "node": ">=18" + } + }, "../core/node_modules/pure-rand": { "version": "6.1.0", "dev": true, @@ -11220,7 +11584,6 @@ }, "../core/node_modules/require-directory": { "version": "2.1.1", - "dev": true, "license": "MIT", "engines": { "node": ">=0.10.0" @@ -11401,7 +11764,7 @@ } }, "../core/node_modules/semver": { - "version": "7.6.2", + "version": "7.6.3", "license": "ISC", "bin": { "semver": "bin/semver.js" @@ -11579,7 +11942,6 @@ "../core/node_modules/smart-buffer": { "version": "4.2.0", "license": "MIT", - "optional": true, "engines": { "node": ">= 6.0.0", "npm": ">= 3.0.0" @@ -11612,7 +11974,6 @@ "../core/node_modules/socks": { "version": "2.8.3", "license": "MIT", - "optional": true, "dependencies": { "ip-address": "^9.0.5", "smart-buffer": "^4.2.0" @@ -11681,8 +12042,7 @@ }, "../core/node_modules/sprintf-js": { "version": "1.1.3", - "license": "BSD-3-Clause", - "optional": true + "license": "BSD-3-Clause" }, "../core/node_modules/sqlite": { "version": "5.1.1", @@ -11821,7 +12181,6 @@ }, "../core/node_modules/string-width": { "version": "4.2.3", - "devOptional": true, "license": "MIT", "dependencies": { "emoji-regex": "^8.0.0", @@ -12315,6 +12674,10 @@ "url": "https://github.com/sponsors/ljharb" } }, + "../core/node_modules/typed-query-selector": { + "version": "2.12.0", + "license": "MIT" + }, "../core/node_modules/typescript": { "version": "5.4.5", "license": "Apache-2.0", @@ -12359,8 +12722,38 @@ "url": "https://github.com/sponsors/ljharb" } }, + "../core/node_modules/unbzip2-stream": { + "version": "1.4.3", + "license": "MIT", + "dependencies": { + "buffer": "^5.2.1", + "through": "^2.3.8" + } + }, + "../core/node_modules/unbzip2-stream/node_modules/buffer": { + "version": "5.7.1", + "funding": [ + { + "type": "github", + "url": "https://github.com/sponsors/feross" + }, + { + "type": "patreon", + "url": "https://www.patreon.com/feross" + }, + { + "type": "consulting", + "url": "https://feross.org/support" + } + ], + "license": "MIT", + "dependencies": { + "base64-js": "^1.3.1", + "ieee754": "^1.1.13" + } + }, "../core/node_modules/undici": { - "version": "6.18.2", + "version": "6.19.8", "license": "MIT", "engines": { "node": ">=18.17" @@ -12477,6 +12870,10 @@ "requires-port": "^1.0.0" } }, + "../core/node_modules/urlpattern-polyfill": { + "version": "10.0.0", + "license": "MIT" + }, "../core/node_modules/util-deprecate": { "version": "1.0.2", "license": "MIT" @@ -12660,7 +13057,6 @@ "../core/node_modules/wide-align": { "version": "1.1.5", "license": "ISC", - "optional": true, "dependencies": { "string-width": "^1.0.2 || 2 || 3 || 4" } @@ -12705,9 +13101,12 @@ "node": ">=12.17" } }, + "../core/node_modules/workerpool": { + "version": "9.1.3", + "license": "Apache-2.0" + }, "../core/node_modules/wrap-ansi": { "version": "7.0.0", - "dev": true, "license": "MIT", "dependencies": { "ansi-styles": "^4.0.0", @@ -12738,7 +13137,7 @@ } }, "../core/node_modules/ws": { - "version": "8.17.0", + "version": "8.18.0", "license": "MIT", "engines": { "node": ">=10.0.0" @@ -12782,7 +13181,6 @@ }, "../core/node_modules/y18n": { "version": "5.0.8", - "dev": true, "license": "ISC", "engines": { "node": ">=10" @@ -12805,7 +13203,6 @@ }, "../core/node_modules/yargs": { "version": "17.7.2", - "dev": true, "license": "MIT", "dependencies": { "cliui": "^8.0.1", @@ -12822,17 +13219,24 @@ }, "../core/node_modules/yargs-parser": { "version": "21.1.1", - "dev": true, "license": "ISC", "engines": { "node": ">=12" } }, + "../core/node_modules/yauzl": { + "version": "2.10.0", + "license": "MIT", + "dependencies": { + "buffer-crc32": "~0.2.3", + "fd-slicer": "~1.1.0" + } + }, "../core/node_modules/yocto-queue": { - "version": "0.1.0", + "version": "1.1.1", "license": "MIT", "engines": { - "node": ">=10" + "node": ">=12.20" }, "funding": { "url": "https://github.com/sponsors/sindresorhus" @@ -13512,9 +13916,8 @@ }, "node_modules/@swc/cli": { "version": "0.3.14", - "resolved": "https://registry.npmjs.org/@swc/cli/-/cli-0.3.14.tgz", - "integrity": "sha512-0vGqD6FSW67PaZUZABkA+ADKsX7OUY/PwNEz1SbQdCvVk/e4Z36Gwh7mFVBQH9RIsMonTyhV1RHkwkGnEfR3zQ==", "dev": true, + "license": "MIT", "dependencies": { "@mole-inc/bin-wrapper": "^8.0.1", "@swc/counter": "^0.1.3", @@ -13557,10 +13960,9 @@ }, "node_modules/@swc/core": { "version": "1.7.2", - "resolved": "https://registry.npmjs.org/@swc/core/-/core-1.7.2.tgz", - "integrity": "sha512-mjIlT0e6ygKR8LZ1TjtNrDVMhnB8qpyYAdwexhuVHY255yDdDQCpuPGi20odwnE82QhFBSIWs4HcENDVO/yiMw==", "dev": true, "hasInstallScript": true, + "license": "Apache-2.0", "dependencies": { "@swc/counter": "^0.1.3", "@swc/types": "^0.1.12" @@ -13593,30 +13995,13 @@ } } }, - "node_modules/@swc/core-darwin-arm64": { - "version": "1.7.2", - "resolved": "https://registry.npmjs.org/@swc/core-darwin-arm64/-/core-darwin-arm64-1.7.2.tgz", - "integrity": "sha512-Zb8KiGaESzOgh5HBnp6Vhs2fRpngHIT81JOfIo0oaGlzAckamnG7UAXC/yK6cQ8q2KXc78utJ/yq/NM2yVKLqw==", - "cpu": [ - "arm64" - ], - "dev": true, - "optional": true, - "os": [ - "darwin" - ], - "engines": { - "node": ">=10" - } - }, "node_modules/@swc/core-darwin-x64": { "version": "1.7.2", - "resolved": "https://registry.npmjs.org/@swc/core-darwin-x64/-/core-darwin-x64-1.7.2.tgz", - "integrity": "sha512-qb0HY9GEexpPm46Hb3OY7E6xb4r+eniiThm+0Gcnhf19EZV2ZlsCC8Rdbhmav33x++ZqSDzZ44fxMY2vnN5VDg==", "cpu": [ "x64" ], "dev": true, + "license": "Apache-2.0 AND MIT", "optional": true, "os": [ "darwin" @@ -13625,134 +14010,6 @@ "node": ">=10" } }, - "node_modules/@swc/core-linux-arm-gnueabihf": { - "version": "1.7.2", - "resolved": "https://registry.npmjs.org/@swc/core-linux-arm-gnueabihf/-/core-linux-arm-gnueabihf-1.7.2.tgz", - "integrity": "sha512-x2+MOK3RzH3yEkaukKtpDW/udM1x9GoYtXaLNqlq6ovAzZPQ9FDFI0pm1asL4akHUw3s7YTh1aUY7QscstJAHQ==", - "cpu": [ - "arm" - ], - "dev": true, - "optional": true, - "os": [ - "linux" - ], - "engines": { - "node": ">=10" - } - }, - "node_modules/@swc/core-linux-arm64-gnu": { - "version": "1.7.2", - "resolved": "https://registry.npmjs.org/@swc/core-linux-arm64-gnu/-/core-linux-arm64-gnu-1.7.2.tgz", - "integrity": "sha512-4J3HGEDus7a9xnrJUFGyJJgvj4w+BFGiZvs08xbw4Z1ZN4uHJQiJiDsQEAWWciKUxrOndP3SocUq/GhEGiDm0g==", - "cpu": [ - "arm64" - ], - "dev": true, - "optional": true, - "os": [ - "linux" - ], - "engines": { - "node": ">=10" - } - }, - "node_modules/@swc/core-linux-arm64-musl": { - "version": "1.7.2", - "resolved": "https://registry.npmjs.org/@swc/core-linux-arm64-musl/-/core-linux-arm64-musl-1.7.2.tgz", - "integrity": "sha512-4FhQmYbj8SCmir4pHRLSn8IIFmRKHTL3eZFtOpm26RLME7rXL7Yt33DpzIeTRoHFIesI5NEfaR38WU5mY7P1pA==", - "cpu": [ - "arm64" - ], - "dev": true, - "optional": true, - "os": [ - "linux" - ], - "engines": { - "node": ">=10" - } - }, - "node_modules/@swc/core-linux-x64-gnu": { - "version": "1.7.2", - "resolved": "https://registry.npmjs.org/@swc/core-linux-x64-gnu/-/core-linux-x64-gnu-1.7.2.tgz", - "integrity": "sha512-Loz10Hy6z5mBIAOe6OInOVsYu+PVxyknCB3thtr7QH+uqEz6dcXhU2ERrO2Lf4dsTsFs/Wb80rv8zTSwB8dpsw==", - "cpu": [ - "x64" - ], - "dev": true, - "optional": true, - "os": [ - "linux" - ], - "engines": { - "node": ">=10" - } - }, - "node_modules/@swc/core-linux-x64-musl": { - "version": "1.7.2", - "resolved": "https://registry.npmjs.org/@swc/core-linux-x64-musl/-/core-linux-x64-musl-1.7.2.tgz", - "integrity": "sha512-8p8qNWaLcTa+qHX4NSv1KNm8BQ6zPoLXuOBo9DtOEqc+K60IISGKPCAS7TJlCcv0q20JnmxZ/cEWW5Qo4TR4XQ==", - "cpu": [ - "x64" - ], - "dev": true, - "optional": true, - "os": [ - "linux" - ], - "engines": { - "node": ">=10" - } - }, - "node_modules/@swc/core-win32-arm64-msvc": { - "version": "1.7.2", - "resolved": "https://registry.npmjs.org/@swc/core-win32-arm64-msvc/-/core-win32-arm64-msvc-1.7.2.tgz", - "integrity": "sha512-eNWAYOalBlFrhv/IVSQ1dxu7qIGuhxlUJZTYa8jsgLnKt93vAFd2cjLtKZ85k1OibBnq9PkKQyo4NKVr4hBavw==", - "cpu": [ - "arm64" - ], - "dev": true, - "optional": true, - "os": [ - "win32" - ], - "engines": { - "node": ">=10" - } - }, - "node_modules/@swc/core-win32-ia32-msvc": { - "version": "1.7.2", - "resolved": "https://registry.npmjs.org/@swc/core-win32-ia32-msvc/-/core-win32-ia32-msvc-1.7.2.tgz", - "integrity": "sha512-BbpaCPCnbQHCzpQ9yDH3qp1Y5Ijd0NSMNk4qqESN2WWx0ojV2uBTjPou5NC2MZxk8fM3iJpJ05enf+IeaXuh6A==", - "cpu": [ - "ia32" - ], - "dev": true, - "optional": true, - "os": [ - "win32" - ], - "engines": { - "node": ">=10" - } - }, - "node_modules/@swc/core-win32-x64-msvc": { - "version": "1.7.2", - "resolved": "https://registry.npmjs.org/@swc/core-win32-x64-msvc/-/core-win32-x64-msvc-1.7.2.tgz", - "integrity": "sha512-21mf4Jg9Arx0lUnmRQtYd8IQB4WkY4LHJrvcz3EmKbwCTCXI5rQ6Ifnjk7EmG3Tizv0giHqQBQLu5NXWBz45Mg==", - "cpu": [ - "x64" - ], - "dev": true, - "optional": true, - "os": [ - "win32" - ], - "engines": { - "node": ">=10" - } - }, "node_modules/@swc/counter": { "version": "0.1.3", "dev": true, @@ -13760,9 +14017,8 @@ }, "node_modules/@swc/types": { "version": "0.1.12", - "resolved": "https://registry.npmjs.org/@swc/types/-/types-0.1.12.tgz", - "integrity": "sha512-wBJA+SdtkbFhHjTMYH+dEH1y4VpfGdAc2Kw/LK09i9bXd/K6j6PkDcFCEzb6iVfZMkPRrl/q0e3toqTAJdkIVA==", "dev": true, + "license": "Apache-2.0", "dependencies": { "@swc/counter": "^0.1.3" } @@ -14355,9 +14611,8 @@ }, "node_modules/@vitejs/plugin-react-swc": { "version": "3.7.0", - "resolved": "https://registry.npmjs.org/@vitejs/plugin-react-swc/-/plugin-react-swc-3.7.0.tgz", - "integrity": "sha512-yrknSb3Dci6svCd/qhHqhFPDSw0QtjumcqdKMoNNzmOl5lMXTTiqzjWtG4Qask2HdvvzaNgSunbQGet8/GrKdA==", "dev": true, + "license": "MIT", "dependencies": { "@swc/core": "^1.5.7" }, @@ -17198,8 +17453,7 @@ }, "node_modules/minisearch": { "version": "7.0.2", - "resolved": "https://registry.npmjs.org/minisearch/-/minisearch-7.0.2.tgz", - "integrity": "sha512-Pf0sFXaCgRpOBDr4G8wTbVAEH9o9rvJzCMwj0TMe3L/NfUuG188xabfx6Vm3vD/Dv5L500n7JeiMB9Mq3sWMfQ==" + "license": "MIT" }, "node_modules/monaco-editor": { "version": "0.49.0", diff --git a/gui/src/components/Layout.tsx b/gui/src/components/Layout.tsx index 2fd5dafc1..9a66c9e05 100644 --- a/gui/src/components/Layout.tsx +++ b/gui/src/components/Layout.tsx @@ -27,7 +27,7 @@ import { setBottomMessageCloseTimeout, setShowDialog, } from "../redux/slices/uiStateSlice"; -import HeaderButtonWithText from "./HeaderButtonWithText"; +import ButtonWithTooltip from "./ButtonWithTooltip"; const FOOTER_HEIGHT = "1.8em"; @@ -248,7 +248,7 @@ const Layout = () => {
- { @@ -260,7 +260,7 @@ const Layout = () => { }} > - + diff --git a/gui/src/components/markdown/CodeBlockToolbar.tsx b/gui/src/components/markdown/CodeBlockToolbar.tsx index 2b71af624..376cd9105 100644 --- a/gui/src/components/markdown/CodeBlockToolbar.tsx +++ b/gui/src/components/markdown/CodeBlockToolbar.tsx @@ -101,16 +101,12 @@ function CodeBlockToolBar(props: CodeBlockToolBarProps) { return (
{ // Open the file }} > - + {props.language}
@@ -137,19 +133,20 @@ function CodeBlockToolBar(props: CodeBlockToolBarProps) { }} >
{applying ? ( ) : ( )} - {isTerminalCodeBlock(props.language, props.text) - ? "Run in terminal" - : applying + + {isTerminalCodeBlock(props.language, props.text) + ? "Run in terminal" + : applying ? "Applying..." : "Apply"} +
)} @@ -177,11 +174,24 @@ function CodeBlockToolBar(props: CodeBlockToolBarProps) { setTimeout(() => setCopied(false), 2000); }} > - {copied ? ( - - ) : ( - - )} +
+ {copied ? ( + <> + + Copied + + ) : ( + <> + + Copy + + )} +
From 870aef28b1b0f488951ae79caa709c73c276092f Mon Sep 17 00:00:00 2001 From: Nate Date: Tue, 17 Sep 2024 14:59:18 -0700 Subject: [PATCH 080/268] temporarily remove deprecated API usages --- .../continue/IdeProtocolClient.kt | 74 +++++++++---------- .../continueintellijextension/utils/Utils.kt | 7 +- .../src/main/resources/META-INF/plugin.xml | 1 - 3 files changed, 37 insertions(+), 45 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 13757524c..2f9793251 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 @@ -10,18 +10,13 @@ import com.github.continuedev.continueintellijextension.services.ContinuePluginS import com.google.gson.Gson import com.google.gson.GsonBuilder import com.google.gson.reflect.TypeToken -import com.intellij.codeInsight.daemon.DaemonCodeAnalyzer -import com.intellij.codeInsight.daemon.impl.DaemonCodeAnalyzerImpl -import com.intellij.codeInsight.daemon.impl.HighlightInfo import com.intellij.execution.configurations.GeneralCommandLine import com.intellij.execution.util.ExecUtil import com.intellij.ide.plugins.PluginManager import com.intellij.ide.plugins.PluginManagerCore -import com.intellij.lang.annotation.HighlightSeverity import com.intellij.openapi.Disposable import com.intellij.openapi.application.ApplicationInfo import com.intellij.openapi.application.ApplicationManager -import com.intellij.openapi.application.ReadAction import com.intellij.openapi.command.WriteCommandAction import com.intellij.openapi.components.ServiceManager import com.intellij.openapi.components.service @@ -32,7 +27,6 @@ import com.intellij.openapi.extensions.PluginId import com.intellij.openapi.fileEditor.FileDocumentManager import com.intellij.openapi.fileEditor.FileEditorManager import com.intellij.openapi.fileEditor.TextEditor -import com.intellij.openapi.fileEditor.impl.FileEditorManagerImpl import com.intellij.openapi.project.DumbAware import com.intellij.openapi.project.Project import com.intellij.openapi.ui.MessageType @@ -42,7 +36,6 @@ import com.intellij.openapi.vfs.* import com.intellij.openapi.vfs.newvfs.events.VFileEvent import com.intellij.openapi.wm.WindowManager import com.intellij.psi.PsiDocumentManager -import com.intellij.terminal.TerminalUtils import com.intellij.testFramework.LightVirtualFile import com.intellij.ui.awt.RelativePoint import com.intellij.util.concurrency.annotations.RequiresEdt @@ -543,35 +536,38 @@ class IdeProtocolClient ( val document: Document = editor!!.document val psiFile = PsiDocumentManager.getInstance(project).getPsiFile(document) ?: return@launch - val analyzer = DaemonCodeAnalyzer.getInstance(project) as DaemonCodeAnalyzerImpl - val highlightInfos = ReadAction.compute, Throwable> { - analyzer.getFileLevelHighlights(project, psiFile) - } - val problems = ArrayList>() - for (highlightInfo in highlightInfos) { - if (highlightInfo.severity === HighlightSeverity.ERROR || - highlightInfo.severity === HighlightSeverity.WARNING) { - val startOffset = highlightInfo.getStartOffset() - val endOffset = highlightInfo.getEndOffset() - val description = highlightInfo.description - problems.add(mapOf( - "filepath" to psiFile.virtualFile?.path, - "range" to mapOf( - "start" to mapOf( - "line" to document.getLineNumber(startOffset), - "character" to startOffset - document.getLineStartOffset(document.getLineNumber(startOffset)) - ), - "end" to mapOf( - "line" to document.getLineNumber(endOffset), - "character" to endOffset - document.getLineStartOffset(document.getLineNumber(endOffset)) - ) - ), - "message" to description - )) - } - } respond(problems) + + // DaemonCodeAnalyzerImpl has been made internal, which means we cannot access this +// val analyzer = DaemonCodeAnalyzer.getInstance(project) as DaemonCodeAnalyzerImpl +// val highlightInfos = ReadAction.compute, Throwable> { +// analyzer.getFileLevelHighlights(project, psiFile) +// } +// +// for (highlightInfo in highlightInfos) { +// if (highlightInfo.severity === HighlightSeverity.ERROR || +// highlightInfo.severity === HighlightSeverity.WARNING) { +// val startOffset = highlightInfo.getStartOffset() +// val endOffset = highlightInfo.getEndOffset() +// val description = highlightInfo.description +// problems.add(mapOf( +// "filepath" to psiFile.virtualFile?.path, +// "range" to mapOf( +// "start" to mapOf( +// "line" to document.getLineNumber(startOffset), +// "character" to startOffset - document.getLineStartOffset(document.getLineNumber(startOffset)) +// ), +// "end" to mapOf( +// "line" to document.getLineNumber(endOffset), +// "character" to endOffset - document.getLineStartOffset(document.getLineNumber(endOffset)) +// ) +// ), +// "message" to description +// )) +// } +// } +// respond(problems) } "getConfigJsUrl" -> { // Calculate a data URL for the config.js file @@ -975,10 +971,12 @@ class IdeProtocolClient ( @RequiresEdt private fun pinnedFiles(): List { - val fileEditorManager = FileEditorManager.getInstance(project) as? FileEditorManagerImpl ?: return listOf() - val openFiles = fileEditorManager.openFiles.map { it.path }.toList() - val pinnedFiles = fileEditorManager.windows.flatMap { window -> window.files.filter { window.isFilePinned(it) } }.map { it.path }.toSet() - return openFiles.intersect(pinnedFiles).toList() + // Caused incompatibility issue with JetBrains new release + return visibleFiles() +// val fileEditorManager = FileEditorManager.getInstance(project) as? FileEditorManagerImpl ?: return listOf() // FileEditorManagerImpl should be the type, but this was marked as internal +// val openFiles = fileEditorManager.openFiles.map { it.path }.toList() +// val pinnedFiles = fileEditorManager.windows.flatMap { window -> window.files.filter { window.isFilePinned(it) } }.map { it.path }.toSet() +// return openFiles.intersect(pinnedFiles).toList() } private fun currentFile(): String? { diff --git a/extensions/intellij/src/main/kotlin/com/github/continuedev/continueintellijextension/utils/Utils.kt b/extensions/intellij/src/main/kotlin/com/github/continuedev/continueintellijextension/utils/Utils.kt index 7aa1b2169..a743e8b50 100644 --- a/extensions/intellij/src/main/kotlin/com/github/continuedev/continueintellijextension/utils/Utils.kt +++ b/extensions/intellij/src/main/kotlin/com/github/continuedev/continueintellijextension/utils/Utils.kt @@ -1,7 +1,5 @@ package com.github.continuedev.continueintellijextension.utils -import org.jetbrains.plugins.terminal.TerminalView - enum class Os { MAC, WINDOWS, LINUX } @@ -31,7 +29,4 @@ fun getAltKeyLabel(): String { Os.WINDOWS -> "Alt" Os.LINUX -> "Alt" } -} - -fun TerminalView.isNotAvailable(): Boolean = - toolWindow == null || !toolWindow.isVisible || !toolWindow.isAvailable || toolWindow.isDisposed \ No newline at end of file +} \ 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 fc2206f26..ada642dac 100644 --- a/extensions/intellij/src/main/resources/META-INF/plugin.xml +++ b/extensions/intellij/src/main/resources/META-INF/plugin.xml @@ -4,7 +4,6 @@ Continue continue-dev com.intellij.modules.platform - org.jetbrains.plugins.terminal com.intellij.modules.json From 263b963746fe1886ebb8c290941e79d37e7de463 Mon Sep 17 00:00:00 2001 From: Nate Date: Tue, 17 Sep 2024 15:00:41 -0700 Subject: [PATCH 081/268] build plugin --- .github/workflows/jetbrains-release.yaml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/jetbrains-release.yaml b/.github/workflows/jetbrains-release.yaml index b79e155cd..ee41ce727 100644 --- a/.github/workflows/jetbrains-release.yaml +++ b/.github/workflows/jetbrains-release.yaml @@ -174,8 +174,8 @@ jobs: # options: --options runtime --entitlements entitlements.xml # Build plugin - # - name: Build plugin - # run: ./gradlew buildPlugin + - name: Build plugin + run: ./gradlew buildPlugin # # Publish the plugin to JetBrains Marketplace # - name: Publish EAP Plugin From 9850288e3927ac99ec512c299e30b835b8e06f7e Mon Sep 17 00:00:00 2001 From: Test Date: Tue, 17 Sep 2024 15:04:56 -0700 Subject: [PATCH 082/268] flip copy/apply ordering --- gui/src/components/gui/StepContainer.tsx | 8 --- .../components/markdown/CodeBlockToolbar.tsx | 70 +++++++++---------- 2 files changed, 35 insertions(+), 43 deletions(-) diff --git a/gui/src/components/gui/StepContainer.tsx b/gui/src/components/gui/StepContainer.tsx index f238feaa0..3f6876925 100644 --- a/gui/src/components/gui/StepContainer.tsx +++ b/gui/src/components/gui/StepContainer.tsx @@ -177,10 +177,6 @@ function StepContainer(props: StepContainerProps) { {feedback === false || ( - {props.language} + {props.language}
+ { + const text = + typeof props.text === "string" ? props.text : props.text; + if (isJetBrains()) { + ideMessenger.request("copyText", { text }); + } else { + navigator.clipboard.writeText(text); + } + + setCopied(true); + setTimeout(() => setCopied(false), 2000); + }} + > +
+ {copied ? ( + <> + + Copied + + ) : ( + <> + + Copy + + )} +
+
+ {isJetBrains() || ( */} - - { - const text = - typeof props.text === "string" ? props.text : props.text; - if (isJetBrains()) { - ideMessenger.request("copyText", { text }); - } else { - navigator.clipboard.writeText(text); - } - - setCopied(true); - setTimeout(() => setCopied(false), 2000); - }} - > -
- {copied ? ( - <> - - Copied - - ) : ( - <> - - Copy - - )} -
-
); From 1aef8e71fb035c21359e6450a48c12684cb2e8d8 Mon Sep 17 00:00:00 2001 From: Nate Date: Tue, 17 Sep 2024 15:40:35 -0700 Subject: [PATCH 083/268] adjust spacing on test examples --- core/edit/lazy/deterministic.test.ts | 30 +++------ core/edit/lazy/deterministic.ts | 5 +- .../test-examples/calculator-comments.js.diff | 62 +++++++++---------- .../lazy/test-examples/calculator-exp.js.diff | 62 +++++++++---------- .../test-examples/calculator-exp2.js.diff | 4 +- core/edit/lazy/test-examples/fastapi.py.diff | 12 ++-- 6 files changed, 80 insertions(+), 95 deletions(-) diff --git a/core/edit/lazy/deterministic.test.ts b/core/edit/lazy/deterministic.test.ts index e47ae3e37..bcefdb8ba 100644 --- a/core/edit/lazy/deterministic.test.ts +++ b/core/edit/lazy/deterministic.test.ts @@ -1,7 +1,7 @@ import fs from "node:fs"; // @ts-ignore no typings available -import { changed, diff as myersDiff } from "myers-diff"; +import { diff as myersDiff } from "myers-diff"; import path from "node:path"; import { DiffLine, DiffLineType } from "../.."; import { dedent } from "../../util"; @@ -36,25 +36,11 @@ async function collectDiffs( return { ourDiffs, myersDiffs }; } -function getMyersDiffType(diff: any): MyersDiffTypes | undefined { - if (changed(diff.rhs) && !changed(diff.lhs)) { - return "new"; - } - - if (!changed(diff.rhs) && changed(diff.lhs)) { - return "old"; - } - - if (changed(diff.rhs) && changed(diff.lhs)) { - return "modification"; - } - - return undefined; -} - function displayDiff(diff: DiffLine[]) { return diff - .map(({ type, line }) => `${UNIFIED_DIFF_SYMBOLS[type]} ${line}`) + .map(({ type, line }) => + type === "same" ? line : `${UNIFIED_DIFF_SYMBOLS[type]} ${line}`, + ) .join("\n"); } @@ -129,19 +115,19 @@ describe("deterministicApplyLazyEdit(", () => { expect(myersDiffs).toEqual([]); }); - test("fastapi", async () => { + test.skip("fastapi", async () => { await expectDiff("fastapi.py"); }); - test("calculator exp", async () => { + test.skip("calculator exp", async () => { await expectDiff("calculator-exp.js"); }); - test.only("calculator exp2", async () => { + test("calculator exp2", async () => { await expectDiff("calculator-exp2.js"); }); - test("calculator comments", async () => { + test.skip("calculator comments", async () => { await expectDiff("calculator-comments.js"); }); }); diff --git a/core/edit/lazy/deterministic.ts b/core/edit/lazy/deterministic.ts index 296bf0e56..400293017 100644 --- a/core/edit/lazy/deterministic.ts +++ b/core/edit/lazy/deterministic.ts @@ -86,7 +86,7 @@ function nodesAreSimilar(a: Parser.SyntaxNode, b: Parser.SyntaxNode): boolean { } if ( - a.children[0]?.text === b.children[0]?.text && + a.namedChildren[0]?.text === b.namedChildren[0]?.text && a.children[1]?.text === b.children[1]?.text ) { return true; @@ -96,7 +96,7 @@ function nodesAreSimilar(a: Parser.SyntaxNode, b: Parser.SyntaxNode): boolean { const lineOneB = b.text.split("\n")[0]; const levDist = distance(lineOneA, lineOneB); - return levDist / Math.min(lineOneA.length, lineOneB.length) <= 0.25; + return levDist / Math.min(lineOneA.length, lineOneB.length) <= 0.2; } function nodesAreExact(a: Parser.SyntaxNode, b: Parser.SyntaxNode): boolean { @@ -149,7 +149,6 @@ function diffNodes( // Enter "lazy mode" isLazy = true; currentLazyBlockNode = R; - R.startIndex; rightChildren.shift(); continue; } diff --git a/core/edit/lazy/test-examples/calculator-comments.js.diff b/core/edit/lazy/test-examples/calculator-comments.js.diff index da4c6f5bc..5aa52aead 100644 --- a/core/edit/lazy/test-examples/calculator-comments.js.diff +++ b/core/edit/lazy/test-examples/calculator-comments.js.diff @@ -83,47 +83,47 @@ class Calculator { --- - class Calculator { - constructor() { - this.result = 0; - } +class Calculator { + constructor() { + this.result = 0; + } + // Adds the given number to the result - add(number) { - this.result += number; - return this; - } + add(number) { + this.result += number; + return this; + } + // Subtracts the given number from the result - subtract(number) { - this.result -= number; - return this; - } + subtract(number) { + this.result -= number; + return this; + } + // Multiplies the result by the given number - multiply(number) { - this.result *= number; - return this; - } + multiply(number) { + this.result *= number; + return this; + } + // Divides the result by the given number + // Throws an error if attempting to divide by zero - divide(number) { - if (number === 0) { - throw new Error("Cannot divide by zero"); - } - this.result /= number; - return this; - } + divide(number) { + if (number === 0) { + throw new Error("Cannot divide by zero"); + } + this.result /= number; + return this; + } + // Returns the current result - getResult() { - return this.result; - } + getResult() { + return this.result; + } + // Resets the result to zero - reset() { - this.result = 0; - return this; - } - } \ No newline at end of file + reset() { + this.result = 0; + return this; + } +} \ No newline at end of file diff --git a/core/edit/lazy/test-examples/calculator-exp.js.diff b/core/edit/lazy/test-examples/calculator-exp.js.diff index 1652cfc22..b01b3bdbb 100644 --- a/core/edit/lazy/test-examples/calculator-exp.js.diff +++ b/core/edit/lazy/test-examples/calculator-exp.js.diff @@ -55,45 +55,45 @@ class Calculator { --- -class Calculator { - constructor() { - this.result = 0; - } + class Calculator { + constructor() { + this.result = 0; + } - add(number) { - this.result += number; - return this; - } + add(number) { + this.result += number; + return this; + } - subtract(number) { - this.result -= number; - return this; - } + subtract(number) { + this.result -= number; + return this; + } - multiply(number) { - this.result *= number; - return this; - } + multiply(number) { + this.result *= number; + return this; + } - divide(number) { - if (number === 0) { - throw new Error("Cannot divide by zero"); - } - this.result /= number; - return this; - } + divide(number) { + if (number === 0) { + throw new Error("Cannot divide by zero"); + } + this.result /= number; + return this; + } + + exp(a) { + this.result = Math.pow(this.result, a); + return this; + } - getResult() { - return this.result; - } + getResult() { + return this.result; + } - reset() { - this.result = 0; - return this; - } -} \ No newline at end of file + reset() { + this.result = 0; + return this; + } + } \ No newline at end of file diff --git a/core/edit/lazy/test-examples/calculator-exp2.js.diff b/core/edit/lazy/test-examples/calculator-exp2.js.diff index a580f5ee1..b845f5e5b 100644 --- a/core/edit/lazy/test-examples/calculator-exp2.js.diff +++ b/core/edit/lazy/test-examples/calculator-exp2.js.diff @@ -86,8 +86,8 @@ class Calculator { return this; } + -+ exp(a) { -+ this.result = Math.pow(this.result, a); ++ exp(number) { ++ this.result = Math.pow(this.result, number); + return this; + } } \ No newline at end of file diff --git a/core/edit/lazy/test-examples/fastapi.py.diff b/core/edit/lazy/test-examples/fastapi.py.diff index 0bf713ae7..12d60c3b3 100644 --- a/core/edit/lazy/test-examples/fastapi.py.diff +++ b/core/edit/lazy/test-examples/fastapi.py.diff @@ -25,13 +25,13 @@ def read_landing_page(): - from fastapi import FastAPI + from fastapi import FastAPI, HTTPException - app = FastAPI() +app = FastAPI() - @app.get("/") - def read_root(): - return {"Hello": "World"} +@app.get("/") +def read_root(): + return {"Hello": "World"} - @app.get("/landing") - def read_landing_page(): +@app.get("/landing") +def read_landing_page(): - return {"message": "Welcome to the landing page"} + raise HTTPException(status_code=404, detail="Page not found") \ No newline at end of file From 93b13a3e5c21b56d2ca5aabe61a33d1ef5740009 Mon Sep 17 00:00:00 2001 From: Nate Date: Tue, 17 Sep 2024 16:46:51 -0700 Subject: [PATCH 084/268] fix a test --- core/edit/lazy/deterministic.test.ts | 7 ++++--- core/edit/lazy/deterministic.ts | 4 ++-- core/edit/lazy/test-examples/calculator-exp.js.diff | 10 +++++----- 3 files changed, 11 insertions(+), 10 deletions(-) diff --git a/core/edit/lazy/deterministic.test.ts b/core/edit/lazy/deterministic.test.ts index bcefdb8ba..7e050055d 100644 --- a/core/edit/lazy/deterministic.test.ts +++ b/core/edit/lazy/deterministic.test.ts @@ -115,11 +115,12 @@ describe("deterministicApplyLazyEdit(", () => { expect(myersDiffs).toEqual([]); }); - test.skip("fastapi", async () => { + test("fastapi", async () => { await expectDiff("fastapi.py"); }); - test.skip("calculator exp", async () => { + // Whitespace + test("calculator exp", async () => { await expectDiff("calculator-exp.js"); }); @@ -127,7 +128,7 @@ describe("deterministicApplyLazyEdit(", () => { await expectDiff("calculator-exp2.js"); }); - test.skip("calculator comments", async () => { + test.only("calculator comments", async () => { await expectDiff("calculator-comments.js"); }); }); diff --git a/core/edit/lazy/deterministic.ts b/core/edit/lazy/deterministic.ts index 400293017..6945d6eb9 100644 --- a/core/edit/lazy/deterministic.ts +++ b/core/edit/lazy/deterministic.ts @@ -167,7 +167,7 @@ function diffNodes( // Record the replacement lines acc.push({ lazyBlockNode: currentLazyBlockNode!, - replacementNodes: currentLazyBlockReplacementNodes, + replacementNodes: [...currentLazyBlockReplacementNodes], }); // Exit "lazy mode" @@ -206,7 +206,7 @@ function diffNodes( if (isLazy) { acc.push({ lazyBlockNode: currentLazyBlockNode!, - replacementNodes: currentLazyBlockReplacementNodes, + replacementNodes: [...currentLazyBlockReplacementNodes], }); } diff --git a/core/edit/lazy/test-examples/calculator-exp.js.diff b/core/edit/lazy/test-examples/calculator-exp.js.diff index b01b3bdbb..9e4b9d2c1 100644 --- a/core/edit/lazy/test-examples/calculator-exp.js.diff +++ b/core/edit/lazy/test-examples/calculator-exp.js.diff @@ -82,11 +82,6 @@ class Calculator { this.result /= number; return this; } -+ -+ exp(a) { -+ this.result = Math.pow(this.result, a); -+ return this; -+ } getResult() { return this.result; @@ -96,4 +91,9 @@ class Calculator { this.result = 0; return this; } ++ ++ exp(a) { ++ this.result = Math.pow(this.result, a); ++ return this; ++ } } \ No newline at end of file From 5a18fbd3720a6030152108bf542610a65f404b1f Mon Sep 17 00:00:00 2001 From: Nate Date: Tue, 17 Sep 2024 17:01:30 -0700 Subject: [PATCH 085/268] algo fix/generalization --- core/edit/lazy/deterministic.ts | 57 +++++++---------- .../lazy/test-examples/calculator-exp.js.diff | 62 +++++++++---------- 2 files changed, 54 insertions(+), 65 deletions(-) diff --git a/core/edit/lazy/deterministic.ts b/core/edit/lazy/deterministic.ts index 6945d6eb9..d8c26b8ea 100644 --- a/core/edit/lazy/deterministic.ts +++ b/core/edit/lazy/deterministic.ts @@ -153,52 +153,41 @@ function diffNodes( continue; } - if (isLazy) { - if (nodesAreSimilar(L, R)) { - // L ~= R + // Look for the first match of L + const index = rightChildren.findIndex((node) => nodesAreSimilar(L, node)); - // recurse - diffNodes(L, R, acc); + if (index === -1) { + // No match + if (isLazy) { + // Add to replacements if in lazy mode + currentLazyBlockReplacementNodes.push(L); + } - // then consume lazy, L, and R - leftChildren.shift(); + // Consume + leftChildren.shift(); + } else { + // Match found, insert all right nodes before the match + for (let i = 0; i < index; i++) { rightChildren.shift(); + } + // then recurse at the match + diffNodes(L, rightChildren[0], acc); + + // then consume L and R + leftChildren.shift(); + rightChildren.shift(); + + // Exit "lazy mode" + if (isLazy) { // Record the replacement lines acc.push({ lazyBlockNode: currentLazyBlockNode!, replacementNodes: [...currentLazyBlockReplacementNodes], }); - - // Exit "lazy mode" isLazy = false; currentLazyBlockReplacementNodes.length = 0; currentLazyBlockNode = undefined; - } else { - // Push "same" lines - currentLazyBlockReplacementNodes.push(L); - - // L != R, consume L - leftChildren.shift(); - } - } else { - // When not lazy, we look for the first match of L - const index = rightChildren.findIndex((node) => nodesAreSimilar(L, node)); - - if (index === -1) { - leftChildren.shift(); - } else { - // Match found, insert all right nodes before the match - for (let i = 0; i < index; i++) { - rightChildren.shift(); - } - - // then recurse at the match - diffNodes(L, rightChildren[0], acc); - - // then consume L and R - leftChildren.shift(); - rightChildren.shift(); } } } diff --git a/core/edit/lazy/test-examples/calculator-exp.js.diff b/core/edit/lazy/test-examples/calculator-exp.js.diff index 9e4b9d2c1..4708a76a0 100644 --- a/core/edit/lazy/test-examples/calculator-exp.js.diff +++ b/core/edit/lazy/test-examples/calculator-exp.js.diff @@ -55,45 +55,45 @@ class Calculator { --- - class Calculator { - constructor() { - this.result = 0; - } +class Calculator { + constructor() { + this.result = 0; + } - add(number) { - this.result += number; - return this; - } + add(number) { + this.result += number; + return this; + } - subtract(number) { - this.result -= number; - return this; - } + subtract(number) { + this.result -= number; + return this; + } - multiply(number) { - this.result *= number; - return this; - } + multiply(number) { + this.result *= number; + return this; + } - divide(number) { - if (number === 0) { - throw new Error("Cannot divide by zero"); - } - this.result /= number; - return this; - } + divide(number) { + if (number === 0) { + throw new Error("Cannot divide by zero"); + } + this.result /= number; + return this; + } - getResult() { - return this.result; - } + getResult() { + return this.result; + } - reset() { - this.result = 0; - return this; - } + reset() { + this.result = 0; + return this; + } + + exp(a) { + this.result = Math.pow(this.result, a); + return this; + } - } \ No newline at end of file +} \ No newline at end of file From 8fe2791e7e9e0639aa4713994bf2fa2b99ee4797 Mon Sep 17 00:00:00 2001 From: Nate Date: Tue, 17 Sep 2024 18:12:54 -0700 Subject: [PATCH 086/268] docstrings test --- core/edit/lazy/deterministic.test.ts | 8 +- .../calculator-docstrings.js.diff | 189 ++++++++++++++++++ .../components/markdown/PreWithToolbar.tsx | 1 + 3 files changed, 196 insertions(+), 2 deletions(-) create mode 100644 core/edit/lazy/test-examples/calculator-docstrings.js.diff diff --git a/core/edit/lazy/deterministic.test.ts b/core/edit/lazy/deterministic.test.ts index 7e050055d..13a4da0bf 100644 --- a/core/edit/lazy/deterministic.test.ts +++ b/core/edit/lazy/deterministic.test.ts @@ -119,7 +119,7 @@ describe("deterministicApplyLazyEdit(", () => { await expectDiff("fastapi.py"); }); - // Whitespace + // TODO: Whitespace test("calculator exp", async () => { await expectDiff("calculator-exp.js"); }); @@ -128,7 +128,11 @@ describe("deterministicApplyLazyEdit(", () => { await expectDiff("calculator-exp2.js"); }); - test.only("calculator comments", async () => { + test("calculator comments", async () => { await expectDiff("calculator-comments.js"); }); + + test("calculator docstrings", async () => { + await expectDiff("calculator-docstrings.js"); + }); }); diff --git a/core/edit/lazy/test-examples/calculator-docstrings.js.diff b/core/edit/lazy/test-examples/calculator-docstrings.js.diff new file mode 100644 index 000000000..a7702238a --- /dev/null +++ b/core/edit/lazy/test-examples/calculator-docstrings.js.diff @@ -0,0 +1,189 @@ +class Calculator { + constructor() { + this.result = 0; + } + + add(number) { + this.result += number; + return this; + } + + subtract(number) { + this.result -= number; + return this; + } + + multiply(number) { + this.result *= number; + return this; + } + + divide(number) { + if (number === 0) { + throw new Error("Cannot divide by zero"); + } + this.result /= number; + return this; + } + + getResult() { + return this.result; + } + + reset() { + this.result = 0; + return this; + } +} + +--- + +/** + * Calculator class for performing basic arithmetic operations. + */ +class Calculator { + /** + * Creates a new Calculator instance. + * Initializes the result to 0. + */ + constructor() { + this.result = 0; + } + + /** + * Adds a number to the current result. + * @param {number} number - The number to add. + * @returns {Calculator} The Calculator instance for method chaining. + */ + add(number) { + this.result += number; + return this; + } + + /** + * Subtracts a number from the current result. + * @param {number} number - The number to subtract. + * @returns {Calculator} The Calculator instance for method chaining. + */ + subtract(number) { + this.result -= number; + return this; + } + + /** + * Multiplies the current result by a number. + * @param {number} number - The number to multiply by. + * @returns {Calculator} The Calculator instance for method chaining. + */ + multiply(number) { + this.result *= number; + return this; + } + + /** + * Divides the current result by a number. + * @param {number} number - The number to divide by. + * @returns {Calculator} The Calculator instance for method chaining. + * @throws {Error} If attempting to divide by zero. + */ + divide(number) { + if (number === 0) { + throw new Error("Cannot divide by zero"); + } + this.result /= number; + return this; + } + + /** + * Returns the current result. + * @returns {number} The current result. + */ + getResult() { + return this.result; + } + + /** + * Resets the calculator's result to 0. + * @returns {Calculator} The Calculator instance for method chaining. + */ + reset() { + this.result = 0; + return this; + } +} + +--- + ++ /** ++ * Calculator class for performing basic arithmetic operations. ++ */ +class Calculator { ++ /** ++ * Creates a new Calculator instance. ++ * Initializes the result to 0. ++ */ + constructor() { + this.result = 0; + } + ++ /** ++ * Adds a number to the current result. ++ * @param {number} number - The number to add. ++ * @returns {Calculator} The Calculator instance for method chaining. ++ */ + add(number) { + this.result += number; + return this; + } + ++ /** ++ * Subtracts a number from the current result. ++ * @param {number} number - The number to subtract. ++ * @returns {Calculator} The Calculator instance for method chaining. ++ */ + subtract(number) { + this.result -= number; + return this; + } + ++ /** ++ * Multiplies the current result by a number. ++ * @param {number} number - The number to multiply by. ++ * @returns {Calculator} The Calculator instance for method chaining. ++ */ + multiply(number) { + this.result *= number; + return this; + } + ++ /** ++ * Divides the current result by a number. ++ * @param {number} number - The number to divide by. ++ * @returns {Calculator} The Calculator instance for method chaining. ++ * @throws {Error} If attempting to divide by zero. ++ */ + divide(number) { + if (number === 0) { + throw new Error("Cannot divide by zero"); + } + this.result /= number; + return this; + } + ++ /** ++ * Returns the current result. ++ * @returns {number} The current result. ++ */ + getResult() { + return this.result; + } + ++ /** ++ * Resets the calculator's result to 0. ++ * @returns {Calculator} The Calculator instance for method chaining. ++ */ + reset() { + this.result = 0; + return this; + } +} \ No newline at end of file diff --git a/gui/src/components/markdown/PreWithToolbar.tsx b/gui/src/components/markdown/PreWithToolbar.tsx index 30c34a91d..02c055a92 100644 --- a/gui/src/components/markdown/PreWithToolbar.tsx +++ b/gui/src/components/markdown/PreWithToolbar.tsx @@ -10,6 +10,7 @@ import CodeBlockToolBar from "./CodeBlockToolbar"; const TopDiv = styled.div` border: 0.5px solid ${lightGray}80; border-radius: ${defaultBorderRadius}; + margin-bottom: 8px; `; function childToText(child: any) { From c1a8fb7e03603b73a9528533bb5f84a98bc4526e Mon Sep 17 00:00:00 2001 From: Test Date: Tue, 17 Sep 2024 19:17:48 -0700 Subject: [PATCH 087/268] add lazy system msg for anthropic --- core/core.ts | 59 +++++----- core/llm/index.ts | 24 +++- core/llm/llms/Anthropic.ts | 64 ++++++++++ extensions/vscode/package-lock.json | 4 +- extensions/vscode/package.json | 2 +- gui/src/components/FileIcon.tsx | 2 + .../components/markdown/CodeBlockToolbar.tsx | 110 +++++++++--------- .../markdown/CodeSnippetPreview.tsx | 6 +- .../components/markdown/PreWithToolbar.tsx | 4 +- .../markdown/StyledMarkdownPreview.tsx | 27 ++--- 10 files changed, 194 insertions(+), 108 deletions(-) diff --git a/core/core.ts b/core/core.ts index b07c35c54..f33ab17d4 100644 --- a/core/core.ts +++ b/core/core.ts @@ -119,7 +119,7 @@ export class Core { (resolve) => (continueServerClientResolve = resolve), ); - ideSettingsPromise.then((ideSettings) => { + void ideSettingsPromise.then((ideSettings) => { const continueServerClient = new ContinueServerClient( ideSettings.remoteConfigServerUrl, ideSettings.userToken, @@ -136,7 +136,7 @@ export class Core { ); // Index on initialization - this.ide.getWorkspaceDirs().then(async (dirs) => { + void this.ide.getWorkspaceDirs().then(async (dirs) => { // Respect pauseCodebaseIndexOnStart user settings if (ideSettings.pauseCodebaseIndexOnStart) { await this.messenger.request("indexProgress", { @@ -147,7 +147,7 @@ export class Core { return; } - this.refreshCodebaseIndex(dirs); + void this.refreshCodebaseIndex(dirs); }); }); @@ -172,11 +172,11 @@ export class Core { this.messenger.onError((err) => { console.error(err); - Telemetry.capture("core_messenger_error", { + void Telemetry.capture("core_messenger_error", { message: err.message, stack: err.stack, }); - this.ide.showToast("error", err.message); + void this.ide.showToast("error", err.message); }); // New @@ -186,7 +186,7 @@ export class Core { on("update/selectTabAutocompleteModel", async (msg) => { this.globalContext.update("selectedTabAutocompleteModel", msg.data); - this.configHandler.reloadConfig(); + void this.configHandler.reloadConfig(); }); // Special @@ -227,29 +227,29 @@ export class Core { on("config/addModel", (msg) => { const model = msg.data.model; addModel(model); - this.configHandler.reloadConfig(); + void this.configHandler.reloadConfig(); }); on("config/addOpenAiKey", (msg) => { addOpenAIKey(msg.data); - this.configHandler.reloadConfig(); + void this.configHandler.reloadConfig(); }); on("config/deleteModel", (msg) => { deleteModel(msg.data.title); - this.configHandler.reloadConfig(); + void this.configHandler.reloadConfig(); }); on("config/newPromptFile", async (msg) => { - createNewPromptFile( + void createNewPromptFile( this.ide, (await this.config()).experimental?.promptPath, ); - this.configHandler.reloadConfig(); + void this.configHandler.reloadConfig(); }); on("config/reload", (msg) => { - this.configHandler.reloadConfig(); + void this.configHandler.reloadConfig(); return this.configHandler.getSerializedConfig(); }); @@ -272,9 +272,12 @@ export class Core { } if (hasFailed) { - this.ide.showToast("info", `Failed to index ${msg.data.startUrl}`); + void this.ide.showToast("info", `Failed to index ${msg.data.startUrl}`); } else { - this.ide.showToast("info", `Successfully indexed ${msg.data.startUrl}`); + void this.ide.showToast( + "info", + `Successfully indexed ${msg.data.startUrl}`, + ); this.messenger.send("refreshSubmenuItems", undefined); } }); @@ -331,7 +334,7 @@ export class Core { fetchwithRequestOptions(url, init, config.requestOptions), }); - Telemetry.capture( + void Telemetry.capture( "useContextProvider", { name: provider.description.title, @@ -344,7 +347,7 @@ export class Core { id, })); } catch (e) { - this.ide.showToast( + void this.ide.showToast( "error", `Error getting context items from ${name}: ${e}`, ); @@ -368,7 +371,7 @@ export class Core { // Stop TTS on new StreamChat if (config.experimental?.readResponseTTS) { - TTS.kill(); + void TTS.kill(); } const model = await configHandler.llmFromTitle(msg.data.title); @@ -396,7 +399,7 @@ export class Core { } if (config.experimental?.readResponseTTS && "completion" in next.value) { - TTS.read(next.value?.completion); + void TTS.read(next.value?.completion); } return { done: true, content: next.value }; @@ -477,7 +480,7 @@ export class Core { TTS.messenger = this.messenger; on("tts/kill", async () => { - TTS.kill(); + void TTS.kill(); }); async function* runNodeJsSlashCommand( @@ -506,7 +509,7 @@ export class Core { throw new Error(`Unknown slash command ${slashCommandName}`); } - Telemetry.capture( + void Telemetry.capture( "useSlashCommand", { name: slashCommandName, @@ -529,7 +532,7 @@ export class Core { params, ide, addContextItem: (item) => { - messenger.request("addContextItem", { + void messenger.request("addContextItem", { item, historyIndex, }); @@ -636,7 +639,7 @@ export class Core { editConfigJson(editConfigJsonCallback); - this.configHandler.reloadConfig(); + void this.configHandler.reloadConfig(); }); on("addAutocompleteModel", (msg) => { @@ -646,7 +649,7 @@ export class Core { tabAutocompleteModel: msg.data.model, }; }); - this.configHandler.reloadConfig(); + void this.configHandler.reloadConfig(); }); on("stats/getTokensPerDay", async (msg) => { @@ -674,13 +677,13 @@ export class Core { // Triggered when progress bar is initialized. // If a non-default state has been stored, update the indexing display to that state if (this.indexingState.status !== "loading") { - this.messenger.request("indexProgress", this.indexingState); + void this.messenger.request("indexProgress", this.indexingState); } }); on("didChangeSelectedProfile", (msg) => { - this.configHandler.setSelectedProfile(msg.data.id); - this.configHandler.reloadConfig(); + void this.configHandler.setSelectedProfile(msg.data.id); + void this.configHandler.reloadConfig(); }); on("didChangeControlPlaneSessionInfo", async (msg) => { this.configHandler.updateControlPlaneSessionInfo(msg.data.sessionInfo); @@ -713,7 +716,7 @@ export class Core { updateToSend.progress = 1.0; } - this.messenger.request("indexProgress", updateToSend); + void this.messenger.request("indexProgress", updateToSend); this.indexingState = updateToSend; if (update.status === "failed") { @@ -722,7 +725,7 @@ export class Core { update.desc, update.debugInfo, ); - Telemetry.capture( + void Telemetry.capture( "indexing_error", { error: update.desc, diff --git a/core/llm/index.ts b/core/llm/index.ts index ee70973b3..046d7af3d 100644 --- a/core/llm/index.ts +++ b/core/llm/index.ts @@ -281,7 +281,8 @@ ${prompt}`; ) { let promptTokens = this.countTokens(prompt); let generatedTokens = this.countTokens(completion); - Telemetry.capture( + + void Telemetry.capture( "tokens_generated", { model: model, @@ -291,12 +292,14 @@ ${prompt}`; }, true, ); - DevDataSqliteDb.logTokensGenerated( + + void DevDataSqliteDb.logTokensGenerated( model, this.providerName, promptTokens, generatedTokens, ); + logDevData("tokens_generated", { model: model, provider: this.providerName, @@ -342,11 +345,11 @@ ${prompt}`; ) { if (resp.url.includes("codestral.mistral.ai")) { throw new Error( - 'You are using a Mistral API key, which is not compatible with the Codestral API. Please either obtain a Codestral API key, or use the Mistral API by setting "apiBase" to "https://api.mistral.ai/v1" in config.json.', + "You are using a Mistral API key, which is not compatible with the Codestral API. Please either obtain a Codestral API key, or use the Mistral API by setting 'apiBase' to 'https://api.mistral.ai/v1' in config.json.", ); } else { throw new Error( - 'You are using a Codestral API key, which is not compatible with the Mistral API. Please either obtain a Mistral API key, or use the the Codestral API by setting "apiBase" to "https://codestral.mistral.ai/v1" in config.json.', + "You are using a Codestral API key, which is not compatible with the Mistral API. Please either obtain a Mistral API key, or use the the Codestral API by setting 'apiBase' to 'https://codestral.mistral.ai/v1' in config.json.", ); } } @@ -542,6 +545,7 @@ ${prompt}`; const completion = await this._complete(prompt, completionOptions); this._logTokensGenerated(completionOptions.model, prompt, completion); + if (log && this.writeLog) { await this.writeLog(`Completion:\n\n${completion}\n\n`); } @@ -557,6 +561,17 @@ ${prompt}`; return { role: "assistant" as ChatMessageRole, content: completion }; } + hasCodeBlockWithFilename(content: ChatMessage["content"]): boolean { + const contentStr = typeof content === "string" ? content : content[0].text; + + if (!contentStr) { + return false; + } + + const codeBlockRegex = /```[\w\W]*?\.[\w\W]*/; + return codeBlockRegex.test(contentStr); + } + async *streamChat( _messages: ChatMessage[], options: LLMFullCompletionOptions = {}, @@ -604,6 +619,7 @@ ${prompt}`; } this._logTokensGenerated(completionOptions.model, prompt, completion); + if (log && this.writeLog) { await this.writeLog(`Completion:\n\n${completion}\n\n`); } diff --git a/core/llm/llms/Anthropic.ts b/core/llm/llms/Anthropic.ts index 320dd9798..f0d90967d 100644 --- a/core/llm/llms/Anthropic.ts +++ b/core/llm/llms/Anthropic.ts @@ -20,6 +20,56 @@ class Anthropic extends BaseLLM { apiBase: "https://api.anthropic.com/v1/", }; + static lazySystemMessage: string = `When generating new code: + +1. Always produce a single code block. +2. Never separate the code into multiple code blocks. +3. Only include the code that is being added. +4. Replace existing code with a "lazy" block like this: "// ... existing code ..." +5. If the user submits a code block that contains a filename in the language specifier, always include the filename in any code block you generate based on that file. The filename should be on the same line as the language specifier in your code block. + +Example 1: +Input: +\`\`\`test.js +class Calculator { + constructor() { + this.result = 0; + } + add(number) { + this.result += number; + return this; + } +} +\`\`\` +User request: Add a subtract method + +Output: +\`\`\`javascript test.js +class Calculator { + // ... existing code ... + + subtract(number) { + this.result -= number; + return this; + } +} +\`\`\` + +Example 2: +Input: +\`\`\`javascript test.js (6-9) +function helloWorld() {} +\`\`\` + +Output: +\`\`\`javascript test.js +function helloWorld() { + // New code here +} +\`\`\` + +Always follow these guidelines when generating code responses.`; + private _convertArgs(options: CompletionOptions) { const finalOptions = { top_k: options.topK, @@ -78,6 +128,18 @@ class Anthropic extends BaseLLM { const shouldCacheSystemMessage = !!this.systemMessage && !!this.cacheSystemMessage; + // This likely should be set in the base class where we wrap + // _streamChat in a try/catch + let curSystemMsg = this.systemMessage; + + // We only are doing lazy prompting with Sonnet right now + if ( + this.hasCodeBlockWithFilename(messages[0].content) && + options.model?.includes("sonnet") + ) { + this.systemMessage = `${this.systemMessage} ${Anthropic.lazySystemMessage}`; + } + const response = await this.fetch(new URL("messages", this.apiBase), { method: "POST", headers: { @@ -115,6 +177,8 @@ class Anthropic extends BaseLLM { yield { role: "assistant", content: value.delta.text }; } } + + this.systemMessage = curSystemMsg; } } diff --git a/extensions/vscode/package-lock.json b/extensions/vscode/package-lock.json index 0eb4461d9..238a2c841 100644 --- a/extensions/vscode/package-lock.json +++ b/extensions/vscode/package-lock.json @@ -1,12 +1,12 @@ { "name": "continue", - "version": "0.9.212", + "version": "0.9.213", "lockfileVersion": 3, "requires": true, "packages": { "": { "name": "continue", - "version": "0.9.212", + "version": "0.9.213", "license": "Apache-2.0", "dependencies": { "@electron/rebuild": "^3.2.10", diff --git a/extensions/vscode/package.json b/extensions/vscode/package.json index 75df6f097..07160070d 100644 --- a/extensions/vscode/package.json +++ b/extensions/vscode/package.json @@ -2,7 +2,7 @@ "name": "continue", "icon": "media/icon.png", "author": "Continue Dev, Inc", - "version": "0.9.212", + "version": "0.9.213", "repository": { "type": "git", "url": "https://github.com/continuedev/continue" diff --git a/gui/src/components/FileIcon.tsx b/gui/src/components/FileIcon.tsx index ab1dd5257..d1be4fbbf 100644 --- a/gui/src/components/FileIcon.tsx +++ b/gui/src/components/FileIcon.tsx @@ -14,6 +14,7 @@ const FileIcon = ({ ? filename.split(" ") : [filename, ""]; filenameParts.pop(); + const getIcon = themeIcons({ blue: "#268bd2", grey: "#657b83", @@ -27,6 +28,7 @@ const FileIcon = ({ yellow: "#b58900", ignore: "#586e75", }); + // Sanitize the SVG string before rendering it const { svg, color } = getIcon(filenameParts.join(" ")); const sanitizedSVG = DOMPurify.sanitize(svg); diff --git a/gui/src/components/markdown/CodeBlockToolbar.tsx b/gui/src/components/markdown/CodeBlockToolbar.tsx index a22b1da83..884aa9ea4 100644 --- a/gui/src/components/markdown/CodeBlockToolbar.tsx +++ b/gui/src/components/markdown/CodeBlockToolbar.tsx @@ -17,7 +17,7 @@ const ToolbarDiv = styled.div` display: flex; justify-content: space-between; align-items: center; - background: ${vscEditorBackground}; + background: inherit; font-size: ${getFontSize() - 2}px; padding: 3px; padding-left: 4px; @@ -46,6 +46,7 @@ interface CodeBlockToolBarProps { bottom: boolean; language: string | undefined; isNextCodeBlock: boolean; + filename?: string; } const terminalLanguages = ["bash", "sh"]; @@ -98,34 +99,66 @@ function CodeBlockToolBar(props: CodeBlockToolBarProps) { !props.isNextCodeBlock, ); + function onClickHeader() { + // TODO: Need to turn into relative or fq path + ideMessenger.post("showFile", { + filepath: props.filename, + }); + } + + function onClickCopy(e) { + const text = typeof props.text === "string" ? props.text : props.text; + if (isJetBrains()) { + ideMessenger.request("copyText", { text }); + } else { + navigator.clipboard.writeText(text); + } + + setCopied(true); + setTimeout(() => setCopied(false), 2000); + } + + function onClickActionButton() { + if (isTerminalCodeBlock(props.language, props.text)) { + let text = props.text; + if (text.startsWith("$ ")) { + text = text.slice(2); + } + ideMessenger.ide.runCommand(text); + return; + } + + if (applying) return; + ideMessenger.post("applyToCurrentFile", { + text: props.text, + }); + setApplying(true); + setTimeout(() => setApplying(false), 2000); + } + return (
{ - // Open the file - }} + onClick={onClickHeader} > - - {props.language} + {props.filename && ( + <> + + {props.filename}{" "} + + )}
-
- { - const text = - typeof props.text === "string" ? props.text : props.text; - if (isJetBrains()) { - ideMessenger.request("copyText", { text }); - } else { - navigator.clipboard.writeText(text); - } - setCopied(true); - setTimeout(() => setCopied(false), 2000); - }} - > +
+
{copied ? ( <> @@ -134,10 +167,7 @@ function CodeBlockToolBar(props: CodeBlockToolBarProps) { ) : ( <> - + Copy )} @@ -148,26 +178,11 @@ function CodeBlockToolBar(props: CodeBlockToolBarProps) { { - if (isTerminalCodeBlock(props.language, props.text)) { - let text = props.text; - if (text.startsWith("$ ")) { - text = text.slice(2); - } - ideMessenger.ide.runCommand(text); - return; - } - - if (applying) return; - ideMessenger.post("applyToCurrentFile", { - text: props.text, - }); - setApplying(true); - setTimeout(() => setApplying(false), 2000); - }} + onClick={onClickActionButton} >
{applying ? ( @@ -184,15 +199,6 @@ function CodeBlockToolBar(props: CodeBlockToolBarProps) {
)} - {/* { - ideMessenger.post("insertAtCursor", { text: props.text }); - }} - > - - */}
); diff --git a/gui/src/components/markdown/CodeSnippetPreview.tsx b/gui/src/components/markdown/CodeSnippetPreview.tsx index 80b8fe1a4..e1199b138 100644 --- a/gui/src/components/markdown/CodeSnippetPreview.tsx +++ b/gui/src/components/markdown/CodeSnippetPreview.tsx @@ -112,11 +112,7 @@ function CodeSnippetPreview(props: CodeSnippetPreviewProps) { }} >
- + {props.item.name}
diff --git a/gui/src/components/markdown/PreWithToolbar.tsx b/gui/src/components/markdown/PreWithToolbar.tsx index 02c055a92..c15ddaa64 100644 --- a/gui/src/components/markdown/PreWithToolbar.tsx +++ b/gui/src/components/markdown/PreWithToolbar.tsx @@ -33,6 +33,7 @@ function PreWithToolbar(props: { children: any; language: string | null; codeBlockIndex: number; + filename?: string | undefined; }) { const uiConfig = useUIConfig(); const toolbarBottom = uiConfig?.codeBlockToolbarPosition == "bottom"; @@ -67,7 +68,8 @@ function PreWithToolbar(props: { text={copyValue} bottom={toolbarBottom} language={props.language} - > + filename={props.filename} + /> {props.children} ); diff --git a/gui/src/components/markdown/StyledMarkdownPreview.tsx b/gui/src/components/markdown/StyledMarkdownPreview.tsx index 9f309f17b..845ed445d 100644 --- a/gui/src/components/markdown/StyledMarkdownPreview.tsx +++ b/gui/src/components/markdown/StyledMarkdownPreview.tsx @@ -51,19 +51,9 @@ const StyledMarkdown = styled.div<{ } background-color: ${vscBackground}; - font-family: - var(--vscode-font-family), - system-ui, - -apple-system, - BlinkMacSystemFont, - "Segoe UI", - Roboto, - Oxygen, - Ubuntu, - Cantarell, - "Open Sans", - "Helvetica Neue", - sans-serif; + font-family: var(--vscode-font-family), system-ui, -apple-system, + BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, + "Open Sans", "Helvetica Neue", sans-serif; font-size: ${(props) => props.fontSize || getFontSize()}px; padding-left: 8px; padding-right: 8px; @@ -113,6 +103,12 @@ const StyledMarkdownPreview = memo(function StyledMarkdownPreview( } else if (node.lang.includes(".")) { node.lang = node.lang.split(".").slice(-1)[0]; } + + if (node.meta) { + node.data = node.data || {}; + node.data.hProperties = node.data.hProperties || {}; + node.data.hProperties.filename = node.meta; + } }); }; }, @@ -150,12 +146,13 @@ const StyledMarkdownPreview = memo(function StyledMarkdownPreview( ); }, pre: ({ node, ...preProps }) => { - const childrenClassName = preProps?.children?.[0]?.props?.className; + const { className, filename } = preProps?.children?.[0]?.props; return props.showCodeBorder ? ( From aa262560dad96125bf8038346131e71b57e5949b Mon Sep 17 00:00:00 2001 From: Nate Date: Tue, 17 Sep 2024 19:41:47 -0700 Subject: [PATCH 088/268] fix trailing whitespace test --- core/edit/lazy/deterministic.test.ts | 6 +--- core/edit/lazy/deterministic.ts | 46 ++++++++++++++++++++++++---- 2 files changed, 41 insertions(+), 11 deletions(-) diff --git a/core/edit/lazy/deterministic.test.ts b/core/edit/lazy/deterministic.test.ts index 13a4da0bf..107dd203b 100644 --- a/core/edit/lazy/deterministic.test.ts +++ b/core/edit/lazy/deterministic.test.ts @@ -3,13 +3,10 @@ import fs from "node:fs"; // @ts-ignore no typings available import { diff as myersDiff } from "myers-diff"; import path from "node:path"; -import { DiffLine, DiffLineType } from "../.."; +import { DiffLine } from "../.."; import { dedent } from "../../util"; import { deterministicApplyLazyEdit } from "./deterministic"; -// "modification" is an extra type used to represent an "old" + "new" diff line -type MyersDiffTypes = Extract | "modification"; - const UNIFIED_DIFF_SYMBOLS = { same: "", new: "+", @@ -119,7 +116,6 @@ describe("deterministicApplyLazyEdit(", () => { await expectDiff("fastapi.py"); }); - // TODO: Whitespace test("calculator exp", async () => { await expectDiff("calculator-exp.js"); }); diff --git a/core/edit/lazy/deterministic.ts b/core/edit/lazy/deterministic.ts index d8c26b8ea..8b6e2a7f7 100644 --- a/core/edit/lazy/deterministic.ts +++ b/core/edit/lazy/deterministic.ts @@ -51,13 +51,47 @@ export async function deterministicApplyLazyEdit( replacementLines.length - 1 ].slice(0, endPosition.column); replacementText = replacementLines.join("\n"); - } - newFileChars.splice( - lazyBlockNode.startIndex, - lazyBlockNode.text.length, - replacementText, - ); + // Replace the lazy block + newFileChars.splice( + lazyBlockNode.startIndex, + lazyBlockNode.text.length, + replacementText, + ); + } else { + // If there are no replacements, then we want to strip the surrounding whitespace + // The example in calculator-exp.js.diff is a test where this is necessary + const lazyBlockStart = lazyBlockNode.startIndex; + const lazyBlockEnd = lazyBlockNode.endIndex - 1; + + // Remove leading whitespace up to two new lines + let startIndex = lazyBlockStart; + let newLinesFound = 0; + while ( + startIndex > 0 && + newFileChars[startIndex - 1].trim() === "" && + newLinesFound < 2 + ) { + startIndex--; + if (newFileChars[startIndex - 1] === "\n") { + newLinesFound++; + } + } + + // Remove trailing whitespace up to two new lines + const charAfter = newFileChars[lazyBlockEnd + 1]; + const secondCharAfter = newFileChars[lazyBlockEnd + 2]; + let endIndex = lazyBlockEnd; + if (charAfter === "\n") { + endIndex++; + if (secondCharAfter === "\n") { + endIndex++; + } + } + + // Remove the lazy block + newFileChars.splice(startIndex, endIndex - startIndex + 1); + } } const diff = myersDiff(oldFile, newFileChars.join("")); From 638b867503b7cf08747da16e5926547710ef5a49 Mon Sep 17 00:00:00 2001 From: Test Date: Tue, 17 Sep 2024 19:55:28 -0700 Subject: [PATCH 089/268] add more tests --- core/edit/lazy/deterministic.test.ts | 8 + core/edit/lazy/test-examples/gui.js.diff | 1186 +++++++++++++++++ .../lazy/test-examples/top-level-same.js.diff | 64 + core/llm/llms/Anthropic.ts | 9 +- gui/src/components/gui/StepContainer.tsx | 4 +- 5 files changed, 1268 insertions(+), 3 deletions(-) create mode 100644 core/edit/lazy/test-examples/gui.js.diff create mode 100644 core/edit/lazy/test-examples/top-level-same.js.diff diff --git a/core/edit/lazy/deterministic.test.ts b/core/edit/lazy/deterministic.test.ts index 13a4da0bf..b0345b995 100644 --- a/core/edit/lazy/deterministic.test.ts +++ b/core/edit/lazy/deterministic.test.ts @@ -135,4 +135,12 @@ describe("deterministicApplyLazyEdit(", () => { test("calculator docstrings", async () => { await expectDiff("calculator-docstrings.js"); }); + + test("top level same blocks", async () => { + await expectDiff("top-level-same.js"); + }); + + test("gui add toggle", async () => { + await expectDiff("gui.js"); + }); }); diff --git a/core/edit/lazy/test-examples/gui.js.diff b/core/edit/lazy/test-examples/gui.js.diff new file mode 100644 index 000000000..9b6ed209a --- /dev/null +++ b/core/edit/lazy/test-examples/gui.js.diff @@ -0,0 +1,1186 @@ +import { + ArrowLeftIcon, + ChatBubbleOvalLeftIcon, + CodeBracketSquareIcon, + ExclamationTriangleIcon, +} from "@heroicons/react/24/outline"; +import { JSONContent } from "@tiptap/react"; +import { InputModifiers } from "core"; +import { usePostHog } from "posthog-js/react"; +import { + Fragment, + useCallback, + useContext, + useEffect, + useRef, + useState, +} from "react"; +import { ErrorBoundary } from "react-error-boundary"; +import { useDispatch, useSelector } from "react-redux"; +import styled from "styled-components"; +import { + Button, + defaultBorderRadius, + lightGray, + vscBackground, + vscForeground, +} from "../components"; +import { ChatScrollAnchor } from "../components/ChatScrollAnchor"; +import StepContainer from "../components/gui/StepContainer"; +import TimelineItem from "../components/gui/TimelineItem"; +import ContinueInputBox from "../components/mainInput/ContinueInputBox"; +import { defaultInputModifiers } from "../components/mainInput/inputModifiers"; +import { TutorialCard } from "../components/mainInput/TutorialCard"; +import { + OnboardingCard, + useOnboardingCard, +} from "../components/OnboardingCard"; +import { IdeMessengerContext } from "../context/IdeMessenger"; +import useChatHandler from "../hooks/useChatHandler"; +import useHistory from "../hooks/useHistory"; +import { useTutorialCard } from "../hooks/useTutorialCard"; +import { useWebviewListener } from "../hooks/useWebviewListener"; +import { defaultModelSelector } from "../redux/selectors/modelSelectors"; +import { + clearLastResponse, + deleteMessage, + newSession, + setInactive, +} from "../redux/slices/stateSlice"; +import { + setDialogEntryOn, + setDialogMessage, + setShowDialog, +} from "../redux/slices/uiStateSlice"; +import { RootState } from "../redux/store"; +import { + getFontSize, + getMetaKeyLabel, + isJetBrains, + isMetaEquivalentKeyPressed, +} from "../util"; +import { FREE_TRIAL_LIMIT_REQUESTS } from "../util/freeTrial"; +import { getLocalStorage, setLocalStorage } from "../util/localStorage"; + +const TopGuiDiv = styled.div<{ + showScrollbar?: boolean; +}>` + overflow-y: auto; + height: 100%; + scrollbar-width: ${(props) => (props.showScrollbar ? "thin" : "none")}; + + &::-webkit-scrollbar { + display: ${(props) => (props.showScrollbar ? "block" : "none")}; + } +`; + +const StopButton = styled.div` + width: fit-content; + margin-right: auto; + margin-left: auto; + + font-size: ${getFontSize() - 2}px; + + border: 0.5px solid ${lightGray}; + border-radius: ${defaultBorderRadius}; + padding: 4px 8px; + color: ${lightGray}; + + cursor: pointer; +`; + +const StepsDiv = styled.div` + position: relative; + background-color: transparent; + + & > * { + position: relative; + } + + .thread-message { + margin: 8px 4px 0 4px; + padding-bottom: 8px; + } +`; + +const NewSessionButton = styled.div` + width: fit-content; + margin-right: auto; + margin-left: 6px; + margin-top: 2px; + margin-bottom: 8px; + font-size: ${getFontSize() - 2}px; + + border-radius: ${defaultBorderRadius}; + padding: 2px 6px; + color: ${lightGray}; + + &:hover { + background-color: ${lightGray}33; + color: ${vscForeground}; + } + + cursor: pointer; +`; + +function fallbackRender({ error, resetErrorBoundary }: any) { + // Call resetErrorBoundary() to reset the error boundary and retry the render. + + return ( +
+

Something went wrong:

+
{error.message}
+ +
+ +
+
+ ); +} + +function GUI() { + const posthog = usePostHog(); + const dispatch = useDispatch(); + const ideMessenger = useContext(IdeMessengerContext); + + const onboardingCard = useOnboardingCard(); + const { showTutorialCard, closeTutorialCard } = useTutorialCard(); + + const sessionState = useSelector((state: RootState) => state.state); + + const defaultModel = useSelector(defaultModelSelector); + + const ttsActive = useSelector((state: RootState) => state.state.ttsActive); + const active = useSelector((state: RootState) => state.state.active); + + const [stepsOpen, setStepsOpen] = useState<(boolean | undefined)[]>([]); + + const mainTextInputRef = useRef(null); + const topGuiDivRef = useRef(null); + + const [isAtBottom, setIsAtBottom] = useState(false); + + const state = useSelector((state: RootState) => state.state); + + const handleScroll = () => { + // Temporary fix to account for additional height when code blocks are added + const OFFSET_HERUISTIC = 300; + if (!topGuiDivRef.current) return; + + const { scrollTop, scrollHeight, clientHeight } = topGuiDivRef.current; + const atBottom = + scrollHeight - clientHeight <= scrollTop + OFFSET_HERUISTIC; + + setIsAtBottom(atBottom); + }; + + useEffect(() => { + if (!active || !topGuiDivRef.current) return; + + const scrollAreaElement = topGuiDivRef.current; + + scrollAreaElement.scrollTop = + scrollAreaElement.scrollHeight - scrollAreaElement.clientHeight; + + setIsAtBottom(true); + }, [active]); + + useEffect(() => { + // Cmd + Backspace to delete current step + const listener = (e: any) => { + if ( + e.key === "Backspace" && + isMetaEquivalentKeyPressed(e) && + !e.shiftKey + ) { + dispatch(setInactive()); + } + }; + window.addEventListener("keydown", listener); + + return () => { + window.removeEventListener("keydown", listener); + }; + }, [active]); + + // #endregion + + const { streamResponse } = useChatHandler(dispatch, ideMessenger); + + const sendInput = useCallback( + (editorState: JSONContent, modifiers: InputModifiers) => { + if (defaultModel?.provider === "free-trial") { + const u = getLocalStorage("ftc"); + if (u) { + setLocalStorage("ftc", u + 1); + + if (u >= FREE_TRIAL_LIMIT_REQUESTS) { + onboardingCard.open("Best"); + posthog?.capture("ftc_reached"); + ideMessenger.ide.showToast( + "info", + "You've reached the free trial limit. Please configure a model to continue.", + ); + return; + } + } else { + setLocalStorage("ftc", 1); + } + } + + streamResponse(editorState, modifiers, ideMessenger); + + // Increment localstorage counter for popup + const currentCount = getLocalStorage("mainTextEntryCounter"); + if (currentCount) { + setLocalStorage("mainTextEntryCounter", currentCount + 1); + if (currentCount === 300) { + dispatch( + setDialogMessage( +
+ 👋 Thanks for using Continue. We are always trying to improve + and love hearing from users. If you're interested in speaking, + enter your name and email. We won't use this information for + anything other than reaching out. +
+
+
{ + e.preventDefault(); + posthog?.capture("user_interest_form", { + name: e.target.elements[0].value, + email: e.target.elements[1].value, + }); + dispatch( + setDialogMessage( +
+ Thanks! We'll be in touch soon. +
, + ), + ); + }} + style={{ + display: "flex", + flexDirection: "column", + gap: "10px", + }} + > + + + +
+
, + ), + ); + dispatch(setDialogEntryOn(false)); + dispatch(setShowDialog(true)); + } + } else { + setLocalStorage("mainTextEntryCounter", 1); + } + }, + [ + sessionState.history, + sessionState.contextItems, + defaultModel, + state, + streamResponse, + ], + ); + + const { saveSession, getLastSessionId, loadLastSession } = + useHistory(dispatch); + + useWebviewListener( + "newSession", + async () => { + saveSession(); + mainTextInputRef.current?.focus?.(); + }, + [saveSession], + ); + + const isLastUserInput = useCallback( + (index: number): boolean => { + let foundLaterUserInput = false; + for (let i = index + 1; i < state.history.length; i++) { + if (state.history[i].message.role === "user") { + foundLaterUserInput = true; + break; + } + } + return !foundLaterUserInput; + }, + [state.history], + ); + + return ( + <> + +
+ + {state.history.map((item, index: number) => { + return ( + + { + dispatch(newSession()); + }} + > + {item.message.role === "user" ? ( + { + streamResponse( + editorState, + modifiers, + ideMessenger, + index, + ); + }} + isLastUserInput={isLastUserInput(index)} + isMainInput={false} + editorState={item.editorState} + contextItems={item.contextItems} + > + ) : ( +
+ + ) : false ? ( + + ) : ( + + ) + } + open={ + typeof stepsOpen[index] === "undefined" + ? false + ? false + : true + : stepsOpen[index]! + } + onToggle={() => {}} + > + {}} + item={item} + onReverse={() => {}} + onRetry={() => { + streamResponse( + state.history[index - 1].editorState, + state.history[index - 1].modifiers ?? + defaultInputModifiers, + ideMessenger, + index - 1, + ); + }} + onContinueGeneration={() => { + window.postMessage( + { + messageType: "userInput", + data: { + input: + "Continue your response exactly where you left off:", + }, + }, + "*", + ); + }} + onDelete={() => { + dispatch(deleteMessage(index)); + }} + modelTitle={item.promptLogs?.[0]?.modelTitle ?? ""} + /> + +
+ )} +
+
+ ); + })} +
+ { + sendInput(editorContent, modifiers); + }} + isLastUserInput={false} + isMainInput={true} + hidden={active} + > + + {active ? ( + <> +
+
+ + ) : state.history.length > 0 ? ( +
+ { + saveSession(); + }} + className="mr-auto" + > + New Session ({getMetaKeyLabel()} {isJetBrains() ? "J" : "L"}) + {" "} +
+ ) : ( + <> + {getLastSessionId() ? ( +
+ { + loadLastSession().catch((e) => + console.error(`Failed to load last session: ${e}`), + ); + }} + className="mr-auto flex items-center gap-2" + > + + Last Session + +
+ ) : null} + + {onboardingCard.show && ( +
+ +
+ )} + + {showTutorialCard !== false && !onboardingCard.open && ( +
+ +
+ )} + + )} +
+ + +
+ {ttsActive && ( + { + ideMessenger.post("tts/kill", undefined); + }} + > + ■ Stop TTS + + )} + {active && ( + { + dispatch(setInactive()); + if ( + state.history[state.history.length - 1]?.message.content + .length === 0 + ) { + dispatch(clearLastResponse()); + } + }} + > + {getMetaKeyLabel()} ⌫ Cancel + + )} + + ); +} + +export default GUI; + +--- + +import { + ArrowLeftIcon, + ChatBubbleOvalLeftIcon, + CodeBracketSquareIcon, + ExclamationTriangleIcon, +} from "@heroicons/react/24/outline"; +import { JSONContent } from "@tiptap/react"; +import { InputModifiers } from "core"; +import { usePostHog } from "posthog-js/react"; +import { + Fragment, + useCallback, + useContext, + useEffect, + useRef, + useState, +} from "react"; +// ... existing imports ... + +function GUI() { + const posthog = usePostHog(); + const dispatch = useDispatch(); + const ideMessenger = useContext(IdeMessengerContext); + + // ... existing code ... + + const [hello, setHello] = useState(false); + + // ... existing code ... + + return ( + <> + +
+
+ + {hello && world} +
+ + + {state.history.map((item, index: number) => { + // ... existing code ... + })} + + + // ... rest of the existing code ... +
+ + // ... existing code ... +
+ // ... rest of the existing code ... + + ); +} + +export default GUI; + + +--- + +import { + ArrowLeftIcon, + ChatBubbleOvalLeftIcon, + CodeBracketSquareIcon, + ExclamationTriangleIcon, +} from "@heroicons/react/24/outline"; +import { JSONContent } from "@tiptap/react"; +import { InputModifiers } from "core"; +import { usePostHog } from "posthog-js/react"; +import { + Fragment, + useCallback, + useContext, + useEffect, + useRef, + useState, +} from "react"; +import { ErrorBoundary } from "react-error-boundary"; +import { useDispatch, useSelector } from "react-redux"; +import styled from "styled-components"; +import { + Button, + defaultBorderRadius, + lightGray, + vscBackground, + vscForeground, +} from "../components"; +import { ChatScrollAnchor } from "../components/ChatScrollAnchor"; +import StepContainer from "../components/gui/StepContainer"; +import TimelineItem from "../components/gui/TimelineItem"; +import ContinueInputBox from "../components/mainInput/ContinueInputBox"; +import { defaultInputModifiers } from "../components/mainInput/inputModifiers"; +import { TutorialCard } from "../components/mainInput/TutorialCard"; +import { + OnboardingCard, + useOnboardingCard, +} from "../components/OnboardingCard"; +import { IdeMessengerContext } from "../context/IdeMessenger"; +import useChatHandler from "../hooks/useChatHandler"; +import useHistory from "../hooks/useHistory"; +import { useTutorialCard } from "../hooks/useTutorialCard"; +import { useWebviewListener } from "../hooks/useWebviewListener"; +import { defaultModelSelector } from "../redux/selectors/modelSelectors"; +import { + clearLastResponse, + deleteMessage, + newSession, + setInactive, +} from "../redux/slices/stateSlice"; +import { + setDialogEntryOn, + setDialogMessage, + setShowDialog, +} from "../redux/slices/uiStateSlice"; +import { RootState } from "../redux/store"; +import { + getFontSize, + getMetaKeyLabel, + isJetBrains, + isMetaEquivalentKeyPressed, +} from "../util"; +import { FREE_TRIAL_LIMIT_REQUESTS } from "../util/freeTrial"; +import { getLocalStorage, setLocalStorage } from "../util/localStorage"; + +const TopGuiDiv = styled.div<{ + showScrollbar?: boolean; +}>` + overflow-y: auto; + height: 100%; + scrollbar-width: ${(props) => (props.showScrollbar ? "thin" : "none")}; + + &::-webkit-scrollbar { + display: ${(props) => (props.showScrollbar ? "block" : "none")}; + } +`; + +const StopButton = styled.div` + width: fit-content; + margin-right: auto; + margin-left: auto; + + font-size: ${getFontSize() - 2}px; + + border: 0.5px solid ${lightGray}; + border-radius: ${defaultBorderRadius}; + padding: 4px 8px; + color: ${lightGray}; + + cursor: pointer; +`; + +const StepsDiv = styled.div` + position: relative; + background-color: transparent; + + & > * { + position: relative; + } + + .thread-message { + margin: 8px 4px 0 4px; + padding-bottom: 8px; + } +`; + +const NewSessionButton = styled.div` + width: fit-content; + margin-right: auto; + margin-left: 6px; + margin-top: 2px; + margin-bottom: 8px; + font-size: ${getFontSize() - 2}px; + + border-radius: ${defaultBorderRadius}; + padding: 2px 6px; + color: ${lightGray}; + + &:hover { + background-color: ${lightGray}33; + color: ${vscForeground}; + } + + cursor: pointer; +`; + +function fallbackRender({ error, resetErrorBoundary }: any) { + // Call resetErrorBoundary() to reset the error boundary and retry the render. + + return ( +
+

Something went wrong:

+
{error.message}
+ +
+ +
+
+ ); +} + +function GUI() { + const posthog = usePostHog(); + const dispatch = useDispatch(); + const ideMessenger = useContext(IdeMessengerContext); + ++ const [hello, setHello] = useState(false); + + const onboardingCard = useOnboardingCard(); + const { showTutorialCard, closeTutorialCard } = useTutorialCard(); + + const sessionState = useSelector((state: RootState) => state.state); + + const defaultModel = useSelector(defaultModelSelector); + + const ttsActive = useSelector((state: RootState) => state.state.ttsActive); + const active = useSelector((state: RootState) => state.state.active); + + const [stepsOpen, setStepsOpen] = useState<(boolean | undefined)[]>([]); + + const mainTextInputRef = useRef(null); + const topGuiDivRef = useRef(null); + + const [isAtBottom, setIsAtBottom] = useState(false); + + const state = useSelector((state: RootState) => state.state); + + const handleScroll = () => { + // Temporary fix to account for additional height when code blocks are added + const OFFSET_HERUISTIC = 300; + if (!topGuiDivRef.current) return; + + const { scrollTop, scrollHeight, clientHeight } = topGuiDivRef.current; + const atBottom = + scrollHeight - clientHeight <= scrollTop + OFFSET_HERUISTIC; + + setIsAtBottom(atBottom); + }; + + useEffect(() => { + if (!active || !topGuiDivRef.current) return; + + const scrollAreaElement = topGuiDivRef.current; + + scrollAreaElement.scrollTop = + scrollAreaElement.scrollHeight - scrollAreaElement.clientHeight; + + setIsAtBottom(true); + }, [active]); + + useEffect(() => { + // Cmd + Backspace to delete current step + const listener = (e: any) => { + if ( + e.key === "Backspace" && + isMetaEquivalentKeyPressed(e) && + !e.shiftKey + ) { + dispatch(setInactive()); + } + }; + window.addEventListener("keydown", listener); + + return () => { + window.removeEventListener("keydown", listener); + }; + }, [active]); + + // #endregion + + const { streamResponse } = useChatHandler(dispatch, ideMessenger); + + const sendInput = useCallback( + (editorState: JSONContent, modifiers: InputModifiers) => { + if (defaultModel?.provider === "free-trial") { + const u = getLocalStorage("ftc"); + if (u) { + setLocalStorage("ftc", u + 1); + + if (u >= FREE_TRIAL_LIMIT_REQUESTS) { + onboardingCard.open("Best"); + posthog?.capture("ftc_reached"); + ideMessenger.ide.showToast( + "info", + "You've reached the free trial limit. Please configure a model to continue.", + ); + return; + } + } else { + setLocalStorage("ftc", 1); + } + } + + streamResponse(editorState, modifiers, ideMessenger); + + // Increment localstorage counter for popup + const currentCount = getLocalStorage("mainTextEntryCounter"); + if (currentCount) { + setLocalStorage("mainTextEntryCounter", currentCount + 1); + if (currentCount === 300) { + dispatch( + setDialogMessage( +
+ 👋 Thanks for using Continue. We are always trying to improve + and love hearing from users. If you're interested in speaking, + enter your name and email. We won't use this information for + anything other than reaching out. +
+
+
{ + e.preventDefault(); + posthog?.capture("user_interest_form", { + name: e.target.elements[0].value, + email: e.target.elements[1].value, + }); + dispatch( + setDialogMessage( +
+ Thanks! We'll be in touch soon. +
, + ), + ); + }} + style={{ + display: "flex", + flexDirection: "column", + gap: "10px", + }} + > + + + +
+
, + ), + ); + dispatch(setDialogEntryOn(false)); + dispatch(setShowDialog(true)); + } + } else { + setLocalStorage("mainTextEntryCounter", 1); + } + }, + [ + sessionState.history, + sessionState.contextItems, + defaultModel, + state, + streamResponse, + ], + ); + + const { saveSession, getLastSessionId, loadLastSession } = + useHistory(dispatch); + + useWebviewListener( + "newSession", + async () => { + saveSession(); + mainTextInputRef.current?.focus?.(); + }, + [saveSession], + ); + + const isLastUserInput = useCallback( + (index: number): boolean => { + let foundLaterUserInput = false; + for (let i = index + 1; i < state.history.length; i++) { + if (state.history[i].message.role === "user") { + foundLaterUserInput = true; + break; + } + } + return !foundLaterUserInput; + }, + [state.history], + ); + + return ( + <> + +
++
++ ++ {hello && world} ++
+ + + {state.history.map((item, index: number) => { + return ( + + { + dispatch(newSession()); + }} + > + {item.message.role === "user" ? ( + { + streamResponse( + editorState, + modifiers, + ideMessenger, + index, + ); + }} + isLastUserInput={isLastUserInput(index)} + isMainInput={false} + editorState={item.editorState} + contextItems={item.contextItems} + > + ) : ( +
+ + ) : false ? ( + + ) : ( + + ) + } + open={ + typeof stepsOpen[index] === "undefined" + ? false + ? false + : true + : stepsOpen[index]! + } + onToggle={() => {}} + > + {}} + item={item} + onReverse={() => {}} + onRetry={() => { + streamResponse( + state.history[index - 1].editorState, + state.history[index - 1].modifiers ?? + defaultInputModifiers, + ideMessenger, + index - 1, + ); + }} + onContinueGeneration={() => { + window.postMessage( + { + messageType: "userInput", + data: { + input: + "Continue your response exactly where you left off:", + }, + }, + "*", + ); + }} + onDelete={() => { + dispatch(deleteMessage(index)); + }} + modelTitle={item.promptLogs?.[0]?.modelTitle ?? ""} + /> + +
+ )} +
+
+ ); + })} +
+ { + sendInput(editorContent, modifiers); + }} + isLastUserInput={false} + isMainInput={true} + hidden={active} + > + + {active ? ( + <> +
+
+ + ) : state.history.length > 0 ? ( +
+ { + saveSession(); + }} + className="mr-auto" + > + New Session ({getMetaKeyLabel()} {isJetBrains() ? "J" : "L"}) + {" "} +
+ ) : ( + <> + {getLastSessionId() ? ( +
+ { + loadLastSession().catch((e) => + console.error(`Failed to load last session: ${e}`), + ); + }} + className="mr-auto flex items-center gap-2" + > + + Last Session + +
+ ) : null} + + {onboardingCard.show && ( +
+ +
+ )} + + {showTutorialCard !== false && !onboardingCard.open && ( +
+ +
+ )} + + )} +
+ + +
+ {ttsActive && ( + { + ideMessenger.post("tts/kill", undefined); + }} + > + ■ Stop TTS + + )} + {active && ( + { + dispatch(setInactive()); + if ( + state.history[state.history.length - 1]?.message.content + .length === 0 + ) { + dispatch(clearLastResponse()); + } + }} + > + {getMetaKeyLabel()} ⌫ Cancel + + )} + + ); +} + +export default GUI; diff --git a/core/edit/lazy/test-examples/top-level-same.js.diff b/core/edit/lazy/test-examples/top-level-same.js.diff new file mode 100644 index 000000000..f37e4d9bf --- /dev/null +++ b/core/edit/lazy/test-examples/top-level-same.js.diff @@ -0,0 +1,64 @@ +class Calculator { + constructor() { + this.result = 0; + } +} + +class Subtract extends Calculator { + sub(num1, num2) { + this.result = num1 - num2; + return this.result; + } +} + +class Add extends Calculator { + add(num1, num2) { + this.result = num1 + num2; + return this.result; + } +} + +--- + +// ... existing code ... + +class Subtract extends Calculator { + sub(num1, num2) { + this.result = num1 - num2; + + if (this.result < 0) { + throw new Error("Result cannot be negative"); + } + + return this.result; + } +} + +// ... existing code ... + +--- + +class Calculator { + constructor() { + this.result = 0; + } +} + +class Subtract extends Calculator { + sub(num1, num2) { + this.result = num1 - num2; ++ ++ if (this.result < 0) { ++ throw new Error("Result cannot be negative"); ++ } ++ + return this.result; + } +} + +class Add extends Calculator { + add(num1, num2) { + this.result = num1 + num2; + return this.result; + } +} \ No newline at end of file diff --git a/core/llm/llms/Anthropic.ts b/core/llm/llms/Anthropic.ts index f0d90967d..497629338 100644 --- a/core/llm/llms/Anthropic.ts +++ b/core/llm/llms/Anthropic.ts @@ -26,15 +26,19 @@ class Anthropic extends BaseLLM { 2. Never separate the code into multiple code blocks. 3. Only include the code that is being added. 4. Replace existing code with a "lazy" block like this: "// ... existing code ..." -5. If the user submits a code block that contains a filename in the language specifier, always include the filename in any code block you generate based on that file. The filename should be on the same line as the language specifier in your code block. +5. You must always provide 1-2 lines of context above and below a "lazy" block +6. If the user submits a code block that contains a filename in the language specifier, always include the filename in any code block you generate based on that file. The filename should be on the same line as the language specifier in your code block. Example 1: Input: \`\`\`test.js +import addition from "addition" + class Calculator { constructor() { this.result = 0; } + add(number) { this.result += number; return this; @@ -45,6 +49,9 @@ User request: Add a subtract method Output: \`\`\`javascript test.js +// ... existing code ... +import subtraction from "subtraction" + class Calculator { // ... existing code ... diff --git a/gui/src/components/gui/StepContainer.tsx b/gui/src/components/gui/StepContainer.tsx index 3f6876925..245a1d57a 100644 --- a/gui/src/components/gui/StepContainer.tsx +++ b/gui/src/components/gui/StepContainer.tsx @@ -124,7 +124,7 @@ function StepContainer(props: StepContainerProps) { {(props.isLast || isHovered || typeof feedback !== "undefined") && !active && (
)} - + Date: Tue, 17 Sep 2024 20:08:14 -0700 Subject: [PATCH 090/268] make calculator stateless test --- core/edit/lazy/deterministic.test.ts | 5 ++ .../calculator-stateless.js.diff | 64 +++++++++++++++++++ 2 files changed, 69 insertions(+) create mode 100644 core/edit/lazy/test-examples/calculator-stateless.js.diff diff --git a/core/edit/lazy/deterministic.test.ts b/core/edit/lazy/deterministic.test.ts index 107dd203b..c618f1df0 100644 --- a/core/edit/lazy/deterministic.test.ts +++ b/core/edit/lazy/deterministic.test.ts @@ -131,4 +131,9 @@ describe("deterministicApplyLazyEdit(", () => { test("calculator docstrings", async () => { await expectDiff("calculator-docstrings.js"); }); + + // TODO + test("calculator stateless", async () => { + await expectDiff("calculator-stateless.js"); + }); }); diff --git a/core/edit/lazy/test-examples/calculator-stateless.js.diff b/core/edit/lazy/test-examples/calculator-stateless.js.diff new file mode 100644 index 000000000..275726885 --- /dev/null +++ b/core/edit/lazy/test-examples/calculator-stateless.js.diff @@ -0,0 +1,64 @@ +class Calculator { + constructor() { + this.result = 0; + } + + add(number) { + this.result += number; + return this; + } + + subtract(number) { + this.result -= number; + return this; + } + + multiply(number) { + this.result *= number; + return this; + } + + divide(number) { + if (number === 0) { + throw new Error("Cannot divide by zero"); + } + this.result /= number; + return this; + } + + getResult() { + return this.result; + } + + reset() { + this.result = 0; + return this; + } +} + +--- + +class Calculator { + // ... existing code ... + + static add(a, b) { + return a + b; + } + + static subtract(a, b) { + return a - b; + } + + static multiply(a, b) { + return a * b; + } + + static divide(a, b) { + if (b === 0) { + throw new Error("Cannot divide by zero"); + } + return a / b; + } +} + +--- \ No newline at end of file From 0358b3c14af1099308f5fef65da4df60559dfd9f Mon Sep 17 00:00:00 2001 From: Nate Date: Tue, 17 Sep 2024 20:08:30 -0700 Subject: [PATCH 091/268] verticalperlinediffhandleroptions --- .../vscode/src/diff/verticalPerLine/handler.ts | 16 +++++++++++++--- .../vscode/src/diff/verticalPerLine/manager.ts | 12 ++++++++---- 2 files changed, 21 insertions(+), 7 deletions(-) diff --git a/extensions/vscode/src/diff/verticalPerLine/handler.ts b/extensions/vscode/src/diff/verticalPerLine/handler.ts index feb948b0b..89554eba4 100644 --- a/extensions/vscode/src/diff/verticalPerLine/handler.ts +++ b/extensions/vscode/src/diff/verticalPerLine/handler.ts @@ -9,6 +9,11 @@ import { } from "./decorations"; import type { VerticalDiffCodeLens } from "./manager"; +export interface VerticalPerLineDiffHandlerOptions { + input?: string; + instant?: boolean; +} + export class VerticalPerLineDiffHandler implements vscode.Disposable { private editor: vscode.TextEditor; private startLine: number; @@ -24,7 +29,7 @@ export class VerticalPerLineDiffHandler implements vscode.Disposable { private newLinesAdded = 0; - public input?: string; + public options: VerticalPerLineDiffHandlerOptions; constructor( startLine: number, @@ -39,13 +44,13 @@ export class VerticalPerLineDiffHandler implements vscode.Disposable { accept: boolean, ) => void, private readonly refreshCodeLens: () => void, - input?: string, + options: VerticalPerLineDiffHandlerOptions, ) { this.currentLineIndex = startLine; this.startLine = startLine; this.endLine = endLine; this.editor = editor; - this.input = input; + this.options = options; this.redDecorationManager = new DecorationTypeRangeManager( redDecorationType, @@ -184,6 +189,11 @@ export class VerticalPerLineDiffHandler implements vscode.Disposable { } private updateIndexLineDecorations() { + if (this.options.instant) { + // We don't show progress on instant apply + return; + } + // Highlight the line at the currentLineIndex // And lightly highlight all lines between that and endLine if (this.currentLineIndex - this.newLinesAdded >= this.endLine) { diff --git a/extensions/vscode/src/diff/verticalPerLine/manager.ts b/extensions/vscode/src/diff/verticalPerLine/manager.ts index c86868dca..da9372e17 100644 --- a/extensions/vscode/src/diff/verticalPerLine/manager.ts +++ b/extensions/vscode/src/diff/verticalPerLine/manager.ts @@ -5,7 +5,10 @@ import { getMarkdownLanguageTagForFile } from "core/util"; import { DiffLine } from "core"; import { streamDiffLines } from "core/edit/streamDiffLines"; import * as vscode from "vscode"; -import { VerticalPerLineDiffHandler } from "./handler"; +import { + VerticalPerLineDiffHandler, + VerticalPerLineDiffHandlerOptions, +} from "./handler"; export interface VerticalDiffCodeLens { start: number; @@ -31,7 +34,7 @@ export class VerticalPerLineDiffManager { filepath: string, startLine: number, endLine: number, - input?: string, + options: VerticalPerLineDiffHandlerOptions, ) { if (this.filepathToHandler.has(filepath)) { this.filepathToHandler.get(filepath)?.clear(false); @@ -46,7 +49,7 @@ export class VerticalPerLineDiffManager { this.filepathToCodeLens, this.clearForFilepath.bind(this), this.refreshCodeLens, - input, + options, ); this.filepathToHandler.set(filepath, handler); return handler; @@ -201,6 +204,7 @@ export class VerticalPerLineDiffManager { filepath, startLine, endLine, + {}, ); if (!diffHandler) { @@ -334,7 +338,7 @@ export class VerticalPerLineDiffManager { filepath, startLine, endLine, - input, + { input }, ); if (!diffHandler) { From 928e73d5d3e6f2fa122fd429e90984da83382835 Mon Sep 17 00:00:00 2001 From: chezsmithy Date: Tue, 17 Sep 2024 20:46:40 -0700 Subject: [PATCH 092/268] fix-aws-expired-profile --- core/indexing/embeddings/BedrockEmbeddingsProvider.ts | 3 ++- core/llm/llms/Bedrock.ts | 1 + core/llm/llms/BedrockImport.ts | 3 ++- extensions/vscode/package-lock.json | 4 ++-- extensions/vscode/package.json | 2 +- 5 files changed, 8 insertions(+), 5 deletions(-) diff --git a/core/indexing/embeddings/BedrockEmbeddingsProvider.ts b/core/indexing/embeddings/BedrockEmbeddingsProvider.ts index aa9e8bd41..bf3bcac88 100644 --- a/core/indexing/embeddings/BedrockEmbeddingsProvider.ts +++ b/core/indexing/embeddings/BedrockEmbeddingsProvider.ts @@ -78,7 +78,8 @@ class BedrockEmbeddingsProvider extends BaseEmbeddingsProvider { try { return await fromIni({ - profile: this.profile + profile: this.profile, + ignoreCache: true })(); } catch (e) { console.warn( diff --git a/core/llm/llms/Bedrock.ts b/core/llm/llms/Bedrock.ts index db2603c03..485b87015 100644 --- a/core/llm/llms/Bedrock.ts +++ b/core/llm/llms/Bedrock.ts @@ -153,6 +153,7 @@ class Bedrock extends BaseLLM { try { return await fromIni({ profile: this.profile, + ignoreCache: true })(); } catch (e) { console.warn( diff --git a/core/llm/llms/BedrockImport.ts b/core/llm/llms/BedrockImport.ts index f53d4b15e..a265c7679 100644 --- a/core/llm/llms/BedrockImport.ts +++ b/core/llm/llms/BedrockImport.ts @@ -82,7 +82,8 @@ class BedrockImport extends BaseLLM { try { return await fromIni({ - profile: this.profile + profile: this.profile, + ignoreCache: true })(); } catch (e) { console.warn( diff --git a/extensions/vscode/package-lock.json b/extensions/vscode/package-lock.json index 8bb784a0e..37235f0fc 100644 --- a/extensions/vscode/package-lock.json +++ b/extensions/vscode/package-lock.json @@ -1,12 +1,12 @@ { "name": "continue", - "version": "0.9.211", + "version": "0.9.212", "lockfileVersion": 3, "requires": true, "packages": { "": { "name": "continue", - "version": "0.9.211", + "version": "0.9.212", "license": "Apache-2.0", "dependencies": { "@electron/rebuild": "^3.2.10", diff --git a/extensions/vscode/package.json b/extensions/vscode/package.json index 9277bd90e..5c712d2b5 100644 --- a/extensions/vscode/package.json +++ b/extensions/vscode/package.json @@ -2,7 +2,7 @@ "name": "continue", "icon": "media/icon.png", "author": "Continue Dev, Inc", - "version": "0.9.211", + "version": "0.9.212", "repository": { "type": "git", "url": "https://github.com/continuedev/continue" From dcf5e71358028f22ec615c7494365c5f9df0045a Mon Sep 17 00:00:00 2001 From: mq200 Date: Tue, 17 Sep 2024 21:30:33 -0700 Subject: [PATCH 093/268] watsonx - randomness parameters + remove extra params in deployment request --- core/llm/llms/WatsonX.ts | 89 ++++++++++++++++++++++------------------ 1 file changed, 49 insertions(+), 40 deletions(-) diff --git a/core/llm/llms/WatsonX.ts b/core/llm/llms/WatsonX.ts index 68dfef47c..c479f8f98 100644 --- a/core/llm/llms/WatsonX.ts +++ b/core/llm/llms/WatsonX.ts @@ -20,8 +20,8 @@ class WatsonX extends BaseLLM { super(options); } async getBearerToken(): Promise<{ token: string; expiration: number }> { - if ( + this.watsonxFullUrl?.includes("cloud.ibm.com") || this.watsonxUrl?.includes("cloud.ibm.com") ) { // watsonx SaaS @@ -43,14 +43,12 @@ class WatsonX extends BaseLLM { }; } else { // watsonx Software - if ( - !this.watsonxCreds?.includes(":") - ) { - // Using ZenApiKey auth - return { - token: this.watsonxCreds ?? "", - expiration: -1, - }; + if (!this.watsonxCreds?.includes(":")) { + // Using ZenApiKey auth + return { + token: this.watsonxCreds ?? "", + expiration: -1, + }; } else { // Using username/password auth const userPass = this.watsonxCreds?.split(":"); @@ -84,6 +82,13 @@ class WatsonX extends BaseLLM { } } + getWatsonxEndpoint(): string { + return ( + this.watsonxFullUrl ?? + `${this.watsonxUrl}/ml/v1/text/generation_stream?version=${this.watsonxApiVersion}` + ); + } + static providerName: ModelProvider = "watsonx"; protected _convertMessage(message: ChatMessage) { @@ -128,9 +133,8 @@ class WatsonX extends BaseLLM { protected _getHeaders() { return { "Content-Type": "application/json", - Authorization: `${ - watsonxConfig.accessToken.expiration === -1 ? "ZenApiKey" : "Bearer" - } ${watsonxConfig.accessToken.token}`, + Authorization: `${watsonxConfig.accessToken.expiration === -1 ? "ZenApiKey" : "Bearer" + } ${watsonxConfig.accessToken.token}`, }; } @@ -174,8 +178,7 @@ class WatsonX extends BaseLLM { watsonxConfig.accessToken = await this.getBearerToken(); } else { console.log( - `Reusing token (expires in ${ - (watsonxConfig.accessToken.expiration - now) / 60 + `Reusing token (expires in ${(watsonxConfig.accessToken.expiration - now) / 60 } mins)`, ); } @@ -186,31 +189,38 @@ class WatsonX extends BaseLLM { const stopToken = this.watsonxStopToken ?? (options.model?.includes("granite") ? "<|im_end|>" : undefined); - var response = await this.fetch( - `${this.watsonxUrl}/ml/v1/text/generation_stream?version=${this.watsonxApiVersion}`, - { - method: "POST", - headers: { - "Content-Type": "application/json", - Authorization: `${ - watsonxConfig.accessToken.expiration === -1 ? "ZenApiKey" : "Bearer" - } ${watsonxConfig.accessToken.token}`, - }, - body: JSON.stringify({ - input: messages[messages.length - 1].content, - parameters: { - decoding_method: "greedy", - max_new_tokens: options.maxTokens ?? 1024, - min_new_tokens: 1, - stop_sequences: stopToken ? [stopToken] : [], - include_stop_sequence: false, - repetition_penalty: 1, - }, - model_id: options.model, - project_id: this.watsonxProjectId - }), - }, - ); + const url = this.getWatsonxEndpoint(); + const headers = this._getHeaders(); + + const parameters = { + decoding_method: "greedy", + max_new_tokens: options.maxTokens ?? 1024, + min_new_tokens: 1, + stop_sequences: stopToken ? [stopToken] : [], + include_stop_sequence: false, + repetition_penalty: 1, + }; + if (!!options.temperature) { + parameters.decoding_method = "sample"; + parameters.temperature = options.temperature; + parameters.top_p = options.topP || 1; + parameters.top_k = options.topK; + } + + const payload = { + input: messages[messages.length - 1].content, + parameters: parameters, + }; + if (!this.watsonxFullUrl) { + payload.model_id = options.model; + payload.project_id = this.watsonxProjectId; + } + + var response = await this.fetch(url, { + method: "POST", + headers: headers, + body: JSON.stringify(payload), + }); if (!response.ok || response.body === null) { throw new Error( @@ -218,7 +228,6 @@ class WatsonX extends BaseLLM { ); } else { for await (const value of streamResponse(response)) { - const lines = value.split("\n"); let generatedChunk = ""; let generatedTextIndex = undefined; From 8bd1a42e27c79c1c2c6eb0c1b5341fa75daf0af5 Mon Sep 17 00:00:00 2001 From: mq200 Date: Tue, 17 Sep 2024 21:31:59 -0700 Subject: [PATCH 094/268] watsonx - default top p set to 1.0 --- core/llm/llms/WatsonX.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/llm/llms/WatsonX.ts b/core/llm/llms/WatsonX.ts index c479f8f98..4e0b690b4 100644 --- a/core/llm/llms/WatsonX.ts +++ b/core/llm/llms/WatsonX.ts @@ -203,7 +203,7 @@ class WatsonX extends BaseLLM { if (!!options.temperature) { parameters.decoding_method = "sample"; parameters.temperature = options.temperature; - parameters.top_p = options.topP || 1; + parameters.top_p = options.topP || 1.0; parameters.top_k = options.topK; } From 10b5ac52ddc92cbbb2f8eb6edebeddc0042470ba Mon Sep 17 00:00:00 2001 From: Nate Date: Wed, 18 Sep 2024 07:51:13 -0700 Subject: [PATCH 095/268] solve another test --- core/edit/lazy/deterministic.ts | 12 +----------- core/edit/lazy/test-examples/top-level-same.js.diff | 10 +++++----- 2 files changed, 6 insertions(+), 16 deletions(-) diff --git a/core/edit/lazy/deterministic.ts b/core/edit/lazy/deterministic.ts index 8b6e2a7f7..232914d0c 100644 --- a/core/edit/lazy/deterministic.ts +++ b/core/edit/lazy/deterministic.ts @@ -137,16 +137,6 @@ function nodesAreExact(a: Parser.SyntaxNode, b: Parser.SyntaxNode): boolean { return a.text === b.text; } -function diffLinesForNode( - node: Parser.SyntaxNode, - type: DiffLine["type"], -): DiffLine[] { - return node.text.split("\n").map((line) => ({ - line, - type, - })); -} - /** * Should be like Myers diff, but lazy blocks consume all nodes until the next match * @param newNode @@ -229,7 +219,7 @@ function diffNodes( if (isLazy) { acc.push({ lazyBlockNode: currentLazyBlockNode!, - replacementNodes: [...currentLazyBlockReplacementNodes], + replacementNodes: [...currentLazyBlockReplacementNodes, ...leftChildren], }); } diff --git a/core/edit/lazy/test-examples/top-level-same.js.diff b/core/edit/lazy/test-examples/top-level-same.js.diff index f37e4d9bf..97b65a51c 100644 --- a/core/edit/lazy/test-examples/top-level-same.js.diff +++ b/core/edit/lazy/test-examples/top-level-same.js.diff @@ -47,11 +47,11 @@ class Calculator { class Subtract extends Calculator { sub(num1, num2) { this.result = num1 - num2; -+ -+ if (this.result < 0) { -+ throw new Error("Result cannot be negative"); -+ } -+ ++ ++ if (this.result < 0) { ++ throw new Error("Result cannot be negative"); ++ } ++ return this.result; } } From 3daff071681a292a379139d0c33c2b8d6674773f Mon Sep 17 00:00:00 2001 From: Nate Date: Wed, 18 Sep 2024 08:21:09 -0700 Subject: [PATCH 096/268] use childForFieldName to check similarity --- core/edit/lazy/deterministic.test.ts | 13 +++-- core/edit/lazy/deterministic.ts | 8 +++ .../calculator-stateless.js.diff | 49 ++++++++++++++++++- 3 files changed, 62 insertions(+), 8 deletions(-) diff --git a/core/edit/lazy/deterministic.test.ts b/core/edit/lazy/deterministic.test.ts index 4bb3a6135..9bd17e676 100644 --- a/core/edit/lazy/deterministic.test.ts +++ b/core/edit/lazy/deterministic.test.ts @@ -4,6 +4,7 @@ import fs from "node:fs"; import { diff as myersDiff } from "myers-diff"; import path from "node:path"; import { DiffLine } from "../.."; +import { myersDiff as continueMyersDiff } from "../../diff/myers"; import { dedent } from "../../util"; import { deterministicApplyLazyEdit } from "./deterministic"; @@ -60,11 +61,7 @@ async function expectDiff(file: string) { const [oldFile, newFile, expectedDiff] = testFileContents .split("\n---\n") .map((s) => s.replace(/^\n+/, "").trimEnd()); - const { ourDiffs: streamDiffs, myersDiffs } = await collectDiffs( - oldFile, - newFile, - file, - ); + const { ourDiffs: streamDiffs } = await collectDiffs(oldFile, newFile, file); const displayedDiff = displayDiff(streamDiffs); if (!expectedDiff || expectedDiff.trim() === "") { @@ -73,7 +70,9 @@ async function expectDiff(file: string) { ); fs.writeFileSync( testFilePath, - `${oldFile}\n\n---\n\n${newFile}\n\n---\n\n${displayedDiff}`, + `${oldFile}\n\n---\n\n${newFile}\n\n---\n\n${displayDiff( + continueMyersDiff(oldFile, newFile), + )}`, ); throw new Error("Expected diff is empty"); @@ -141,7 +140,7 @@ describe("deterministicApplyLazyEdit(", () => { await expectDiff("top-level-same.js"); }); - test("gui add toggle", async () => { + test.skip("gui add toggle", async () => { await expectDiff("gui.js"); }); }); diff --git a/core/edit/lazy/deterministic.ts b/core/edit/lazy/deterministic.ts index 232914d0c..916154a4e 100644 --- a/core/edit/lazy/deterministic.ts +++ b/core/edit/lazy/deterministic.ts @@ -119,6 +119,14 @@ function nodesAreSimilar(a: Parser.SyntaxNode, b: Parser.SyntaxNode): boolean { return false; } + // Check if they have the same name + if ( + a.childForFieldName("name") !== null && + a.childForFieldName("name")?.text === b.childForFieldName("name")?.text + ) { + return true; + } + if ( a.namedChildren[0]?.text === b.namedChildren[0]?.text && a.children[1]?.text === b.children[1]?.text diff --git a/core/edit/lazy/test-examples/calculator-stateless.js.diff b/core/edit/lazy/test-examples/calculator-stateless.js.diff index 275726885..93d1a1dd5 100644 --- a/core/edit/lazy/test-examples/calculator-stateless.js.diff +++ b/core/edit/lazy/test-examples/calculator-stateless.js.diff @@ -61,4 +61,51 @@ class Calculator { } } ---- \ No newline at end of file +--- + +class Calculator { + constructor() { + this.result = 0; + } + +- add(number) { +- this.result += number; +- return this; ++ static add(a, b) { ++ return a + b; + } + +- subtract(number) { +- this.result -= number; +- return this; ++ static subtract(a, b) { ++ return a - b; + } + +- multiply(number) { +- this.result *= number; +- return this; ++ static multiply(a, b) { ++ return a * b; + } + +- divide(number) { +- if (number === 0) { ++ static divide(a, b) { ++ if (b === 0) { + throw new Error("Cannot divide by zero"); + } +- this.result /= number; +- return this; ++ return a / b; + } +- +- getResult() { +- return this.result; +- } +- +- reset() { +- this.result = 0; +- return this; +- } +} \ No newline at end of file From 08b75d52be33781c8bc2004bd20b1b9b2122f264 Mon Sep 17 00:00:00 2001 From: Nate Date: Wed, 18 Sep 2024 08:41:39 -0700 Subject: [PATCH 097/268] detect when instant apply allowed --- core/edit/lazy/applyCodeBlock.ts | 31 +++++++++++++++++++ core/edit/lazy/deterministic.test.ts | 2 +- extensions/vscode/package.json | 4 +-- .../src/diff/verticalPerLine/manager.ts | 9 ++++-- .../vscode/src/extension/VsCodeMessenger.ts | 17 +++------- .../src/quickEdit/QuickEditQuickPick.ts | 4 +-- 6 files changed, 48 insertions(+), 19 deletions(-) create mode 100644 core/edit/lazy/applyCodeBlock.ts diff --git a/core/edit/lazy/applyCodeBlock.ts b/core/edit/lazy/applyCodeBlock.ts new file mode 100644 index 000000000..8282682b0 --- /dev/null +++ b/core/edit/lazy/applyCodeBlock.ts @@ -0,0 +1,31 @@ +import path from "path"; +import { DiffLine, ILLM } from "../.."; +import { generateLines } from "../../diff/util"; +import { supportedLanguages } from "../../util/treeSitter"; +import { deterministicApplyLazyEdit } from "./deterministic"; +import { streamLazyApply } from "./streamLazyApply"; + +function canUseInstantApply(filename: string) { + const fileExtension = path.extname(filename).toLowerCase().slice(1); + return supportedLanguages[fileExtension] !== undefined; +} + +export async function applyCodeBlock( + oldFile: string, + newFile: string, + filename: string, + llm: ILLM, + fastLlm: ILLM, +): Promise<[boolean, AsyncGenerator]> { + if (canUseInstantApply(filename)) { + const diffLines = await deterministicApplyLazyEdit( + oldFile, + newFile, + filename, + ); + const diffGenerator = generateLines(diffLines!); + return [true, diffGenerator]; + } else { + return [false, streamLazyApply(oldFile, filename, newFile, llm, fastLlm)]; + } +} diff --git a/core/edit/lazy/deterministic.test.ts b/core/edit/lazy/deterministic.test.ts index 9bd17e676..74006e74d 100644 --- a/core/edit/lazy/deterministic.test.ts +++ b/core/edit/lazy/deterministic.test.ts @@ -140,7 +140,7 @@ describe("deterministicApplyLazyEdit(", () => { await expectDiff("top-level-same.js"); }); - test.skip("gui add toggle", async () => { + test("gui add toggle", async () => { await expectDiff("gui.js"); }); }); diff --git a/extensions/vscode/package.json b/extensions/vscode/package.json index 07160070d..5f3265799 100644 --- a/extensions/vscode/package.json +++ b/extensions/vscode/package.json @@ -349,8 +349,8 @@ }, { "command": "continue.applyCodeFromChat", - "mac": "alt+l", - "key": "alt+l" + "mac": "alt+a", + "key": "alt+a" } ], "submenus": [ diff --git a/extensions/vscode/src/diff/verticalPerLine/manager.ts b/extensions/vscode/src/diff/verticalPerLine/manager.ts index da9372e17..50db74506 100644 --- a/extensions/vscode/src/diff/verticalPerLine/manager.ts +++ b/extensions/vscode/src/diff/verticalPerLine/manager.ts @@ -177,7 +177,10 @@ export class VerticalPerLineDiffManager { } } - async streamDiffLines(diffStream: AsyncGenerator) { + async streamDiffLines( + diffStream: AsyncGenerator, + instant: boolean, + ) { vscode.commands.executeCommand("setContext", "continue.diffVisible", true); // Get the current editor filepath/range @@ -204,7 +207,9 @@ export class VerticalPerLineDiffManager { filepath, startLine, endLine, - {}, + { + instant, + }, ); if (!diffHandler) { diff --git a/extensions/vscode/src/extension/VsCodeMessenger.ts b/extensions/vscode/src/extension/VsCodeMessenger.ts index 6263ebdad..2949480ad 100644 --- a/extensions/vscode/src/extension/VsCodeMessenger.ts +++ b/extensions/vscode/src/extension/VsCodeMessenger.ts @@ -1,7 +1,6 @@ import { ILLM } from "core"; import { ConfigHandler } from "core/config/ConfigHandler"; -import { generateLines } from "core/diff/util"; -import { deterministicApplyLazyEdit2 } from "core/edit/lazy/deterministic2"; +import { applyCodeBlock } from "core/edit/lazy/applyCodeBlock"; import { FromCoreProtocol, FromWebviewProtocol, @@ -160,21 +159,15 @@ export class VsCodeMessenger { fastLlm ??= llm; // Generate the diff and pass through diff manager - // const diffLines = streamLazyApply( - // editor.document.getText(), - // getBasename(editor.document.fileName), - // msg.data.text, - // llm, - // fastLlm, - // ); - const diffLines = await deterministicApplyLazyEdit2( + const [instant, diffLines] = await applyCodeBlock( editor.document.getText(), msg.data.text, getBasename(editor.document.fileName), + llm, + fastLlm, ); - const diffGenerator = generateLines(diffLines!); const verticalDiffManager = await this.verticalDiffManagerPromise; - verticalDiffManager.streamDiffLines(diffGenerator); + verticalDiffManager.streamDiffLines(diffLines, instant); }); this.onWebview("showTutorial", async (msg) => { diff --git a/extensions/vscode/src/quickEdit/QuickEditQuickPick.ts b/extensions/vscode/src/quickEdit/QuickEditQuickPick.ts index 6b8c4d6db..6fc3404c6 100644 --- a/extensions/vscode/src/quickEdit/QuickEditQuickPick.ts +++ b/extensions/vscode/src/quickEdit/QuickEditQuickPick.ts @@ -1,5 +1,5 @@ /* eslint-disable @typescript-eslint/naming-convention */ -import { ContinueConfig, IDE } from "core"; +import { IDE } from "core"; import { walkDir } from "core/indexing/walkDir"; import { Telemetry } from "core/util/posthog"; import * as vscode from "vscode"; @@ -215,7 +215,7 @@ export class QuickEdit { ); this.editorWhenOpened = editor; - this.previousInput = existingHandler?.input; + this.previousInput = existingHandler?.options.input; } /** From 22352a95ad9b237d14f1d9daac2afaa952162139 Mon Sep 17 00:00:00 2001 From: Nate Date: Wed, 18 Sep 2024 08:57:21 -0700 Subject: [PATCH 098/268] tweaks --- core/edit/lazy/deterministic.ts | 58 ++++++++++++------- .../components/markdown/CodeBlockToolbar.tsx | 8 ++- gui/src/hooks/useChatHandler.ts | 9 ++- gui/src/redux/slices/uiStateSlice.ts | 4 +- 4 files changed, 49 insertions(+), 30 deletions(-) diff --git a/core/edit/lazy/deterministic.ts b/core/edit/lazy/deterministic.ts index 916154a4e..9e5962c34 100644 --- a/core/edit/lazy/deterministic.ts +++ b/core/edit/lazy/deterministic.ts @@ -10,32 +10,20 @@ type LazyBlockReplacements = Array<{ replacementNodes: Parser.SyntaxNode[]; }>; -// TODO: If we don't have high confidence, return undefined to fall back to slower methods -export async function deterministicApplyLazyEdit( +function reconstructNewFile( oldFile: string, - newLazyFile: string, - filename: string, -): Promise { - const parser = await getParserForFile(filename); - if (!parser) { - return undefined; - } - - const oldTree = parser.parse(oldFile); - const newTree = parser.parse(newLazyFile); - - const acc: LazyBlockReplacements = []; - diffNodes(oldTree.rootNode, newTree.rootNode, acc); - + newFile: string, + lazyBlockReplacements: LazyBlockReplacements, +): string { // Sort acc by reverse line number - acc + lazyBlockReplacements .sort((a, b) => a.lazyBlockNode.startIndex - b.lazyBlockNode.startIndex) .reverse(); // Reconstruct entire file by replacing lazy blocks with the replacement nodes const oldFileLines = oldFile.split("\n"); - const newFileChars = newLazyFile.split(""); - for (const { lazyBlockNode, replacementNodes } of acc) { + const newFileChars = newFile.split(""); + for (const { lazyBlockNode, replacementNodes } of lazyBlockReplacements) { // Get the full string from the replacement nodes let replacementText = ""; if (replacementNodes.length > 0) { @@ -94,7 +82,33 @@ export async function deterministicApplyLazyEdit( } } - const diff = myersDiff(oldFile, newFileChars.join("")); + return newFileChars.join(""); +} + +// TODO: If we don't have high confidence, return undefined to fall back to slower methods +export async function deterministicApplyLazyEdit( + oldFile: string, + newLazyFile: string, + filename: string, +): Promise { + const parser = await getParserForFile(filename); + if (!parser) { + return undefined; + } + + const oldTree = parser.parse(oldFile); + const newTree = parser.parse(newLazyFile); + + // If there is no lazy block anywhere, we add our own to the outsides + // so that large chunks of the file don't get removed + if (!findInAst(newTree.rootNode, isLazyBlock)) { + } + + const acc: LazyBlockReplacements = []; + findLazyBlockReplacements(oldTree.rootNode, newTree.rootNode, acc); + + const newFullFile = reconstructNewFile(oldFile, newLazyFile, acc); + const diff = myersDiff(oldFile, newFullFile); return diff; } @@ -151,7 +165,7 @@ function nodesAreExact(a: Parser.SyntaxNode, b: Parser.SyntaxNode): boolean { * @param oldNode * @returns */ -function diffNodes( +function findLazyBlockReplacements( oldNode: Parser.SyntaxNode, newNode: Parser.SyntaxNode, acc: LazyBlockReplacements, @@ -204,7 +218,7 @@ function diffNodes( } // then recurse at the match - diffNodes(L, rightChildren[0], acc); + findLazyBlockReplacements(L, rightChildren[0], acc); // then consume L and R leftChildren.shift(); diff --git a/gui/src/components/markdown/CodeBlockToolbar.tsx b/gui/src/components/markdown/CodeBlockToolbar.tsx index 884aa9ea4..c0fce249b 100644 --- a/gui/src/components/markdown/CodeBlockToolbar.tsx +++ b/gui/src/components/markdown/CodeBlockToolbar.tsx @@ -10,7 +10,7 @@ import { lightGray, vscEditorBackground, vscForeground } from ".."; import { IdeMessengerContext } from "../../context/IdeMessenger"; import { useWebviewListener } from "../../hooks/useWebviewListener"; import { incrementNextCodeBlockToApplyIndex } from "../../redux/slices/uiStateSlice"; -import { getFontSize, isJetBrains } from "../../util"; +import { getAltKeyLabel, getFontSize, isJetBrains } from "../../util"; import FileIcon from "../FileIcon"; const ToolbarDiv = styled.div` @@ -193,8 +193,10 @@ function CodeBlockToolBar(props: CodeBlockToolBarProps) { {isTerminalCodeBlock(props.language, props.text) ? "Run in terminal" : applying - ? "Applying..." - : "Apply"} + ? "Applying..." + : props.isNextCodeBlock + ? `Apply (${getAltKeyLabel()}A)` + : "Apply"}
diff --git a/gui/src/hooks/useChatHandler.ts b/gui/src/hooks/useChatHandler.ts index 34bcdafa5..aec90a4bf 100644 --- a/gui/src/hooks/useChatHandler.ts +++ b/gui/src/hooks/useChatHandler.ts @@ -30,6 +30,7 @@ import { setMessageAtIndex, streamUpdate, } from "../redux/slices/stateSlice"; +import { resetNextCodeBlockToApplyIndex } from "../redux/slices/uiStateSlice"; import { RootState } from "../redux/store"; function useChatHandler(dispatch: Dispatch, ideMessenger: IIdeMessenger) { @@ -178,6 +179,9 @@ function useChatHandler(dispatch: Dispatch, ideMessenger: IIdeMessenger) { dispatch(initNewActiveMessage({ editorState })); } + // Reset current code block index + dispatch(resetNextCodeBlockToApplyIndex()); + // Resolve context providers and construct new history const [selectedContextItems, selectedCode, content] = await resolveEditorContent( @@ -193,9 +197,8 @@ function useChatHandler(dispatch: Dispatch, ideMessenger: IIdeMessenger) { const currentFilePath = await ideMessenger.ide.getCurrentFile(); if (typeof currentFilePath === "string") { - let currentFileContents = await ideMessenger.ide.readFile( - currentFilePath, - ); + let currentFileContents = + await ideMessenger.ide.readFile(currentFilePath); if (usingFreeTrial) { currentFileContents = currentFileContents .split("\n") diff --git a/gui/src/redux/slices/uiStateSlice.ts b/gui/src/redux/slices/uiStateSlice.ts index 038166577..d4c4f7390 100644 --- a/gui/src/redux/slices/uiStateSlice.ts +++ b/gui/src/redux/slices/uiStateSlice.ts @@ -1,4 +1,4 @@ -import { PayloadAction, createSlice } from "@reduxjs/toolkit"; +import { createSlice, PayloadAction } from "@reduxjs/toolkit"; import { defaultOnboardingCardState, OnboardingCardState, @@ -71,7 +71,7 @@ export const uiStateSlice = createSlice({ state.displayBottomMessageOnBottom = action.payload; }, resetNextCodeBlockToApplyIndex: (state) => { - state.nextCodeBlockToApplyIndex = -1; + state.nextCodeBlockToApplyIndex = 0; }, incrementNextCodeBlockToApplyIndex: (state, action) => { state.nextCodeBlockToApplyIndex++; From 5cc345a22faeef97b2f56361d02998532e0c4cfc Mon Sep 17 00:00:00 2001 From: Test Date: Wed, 18 Sep 2024 10:10:06 -0700 Subject: [PATCH 099/268] use hover toolbar if no filename --- gui/src/components/gui/StepContainer.tsx | 2 +- .../components/markdown/CodeBlockToolbar.tsx | 227 ++++++++++++------ .../components/markdown/PreWithToolbar.tsx | 29 ++- .../markdown/StyledMarkdownPreview.tsx | 2 +- 4 files changed, 173 insertions(+), 87 deletions(-) diff --git a/gui/src/components/gui/StepContainer.tsx b/gui/src/components/gui/StepContainer.tsx index 245a1d57a..48f8cbc2a 100644 --- a/gui/src/components/gui/StepContainer.tsx +++ b/gui/src/components/gui/StepContainer.tsx @@ -124,7 +124,7 @@ function StepContainer(props: StepContainerProps) { {(props.isLast || isHovered || typeof feedback !== "undefined") && !active && (
` + position: absolute; + ${(props) => (props.bottom ? "bottom: 3px;" : "top: -11px;")} + right: 10px; + display: flex; + padding: 1px 2px; + gap: 4px; + border: 0.5px solid #8888; + border-radius: ${defaultBorderRadius}; + background-color: ${vscEditorBackground}; +`; + interface CodeBlockToolBarProps { text: string; bottom: boolean; @@ -80,11 +111,92 @@ function isTerminalCodeBlock(language: string | undefined, text: string) { ); } +function getTerminalCommand(text: string): string { + return text.startsWith("$ ") ? text.slice(2) : text; +} + +function useApplyAction(text: string, isTerminal: boolean) { + const [applying, setApplying] = useState(false); + const ideMessenger = useContext(IdeMessengerContext); + + const handleApply = useCallback(() => { + if (applying) return; + + if (isTerminal) { + ideMessenger.ide.runCommand(getTerminalCommand(text)); + } else { + ideMessenger.post("applyToCurrentFile", { text }); + setApplying(true); + setTimeout(() => setApplying(false), 2000); + } + }, [applying, isTerminal, text, ideMessenger]); + + return { applying, handleApply }; +} + +function useCopyAction(text: string) { + const [copied, setCopied] = useState(false); + const ideMessenger = useContext(IdeMessengerContext); + + const handleCopy = useCallback(() => { + if (isJetBrains()) { + ideMessenger.request("copyText", { text }); + } else { + navigator.clipboard.writeText(text); + } + + setCopied(true); + setTimeout(() => setCopied(false), 2000); + }, [text, ideMessenger]); + + return { copied, handleCopy }; +} + +const ApplyButton = ({ isTerminal, applying, onClick }) => ( + +
+ {applying ? ( + + ) : ( + + )} + + {isTerminal ? "Run in terminal" : applying ? "Applying..." : "Apply"} + +
+
+); + +const CopyButton = ({ copied, onClick }) => ( + +
+ {copied ? ( + <> + + Copied + + ) : ( + <> + + Copy + + )} +
+
+); + function CodeBlockToolBar(props: CodeBlockToolBarProps) { const ideMessenger = useContext(IdeMessengerContext); - const [copied, setCopied] = useState(false); - const [applying, setApplying] = useState(false); const dispatch = useDispatch(); + const isTerminal = isTerminalCodeBlock(props.language, props.text); + const { applying, handleApply } = useApplyAction(props.text, isTerminal); + const { copied, handleCopy } = useCopyAction(props.text); // Handle apply keyboard shortcut useWebviewListener( @@ -106,34 +218,33 @@ function CodeBlockToolBar(props: CodeBlockToolBarProps) { }); } - function onClickCopy(e) { - const text = typeof props.text === "string" ? props.text : props.text; - if (isJetBrains()) { - ideMessenger.request("copyText", { text }); - } else { - navigator.clipboard.writeText(text); - } - - setCopied(true); - setTimeout(() => setCopied(false), 2000); - } - - function onClickActionButton() { - if (isTerminalCodeBlock(props.language, props.text)) { - let text = props.text; - if (text.startsWith("$ ")) { - text = text.slice(2); - } - ideMessenger.ide.runCommand(text); - return; - } - - if (applying) return; - ideMessenger.post("applyToCurrentFile", { - text: props.text, - }); - setApplying(true); - setTimeout(() => setApplying(false), 2000); + if (!props.filename) { + return ( + + + {!isJetBrains() && isTerminal && ( + + + + )} + + ideMessenger.post("insertAtCursor", { text: props.text }) + } + > + + + + + + ); } return ( @@ -155,51 +266,13 @@ function CodeBlockToolBar(props: CodeBlockToolBarProps) {
- -
- {copied ? ( - <> - - Copied - - ) : ( - <> - - Copy - - )} -
-
- - {isJetBrains() || ( - -
- {applying ? ( - - ) : ( - - )} - - {isTerminalCodeBlock(props.language, props.text) - ? "Run in terminal" - : applying - ? "Applying..." - : props.isNextCodeBlock - ? `Apply (${getAltKeyLabel()}A)` - : "Apply"} - -
-
+ + {!isJetBrains() && ( + )}
diff --git a/gui/src/components/markdown/PreWithToolbar.tsx b/gui/src/components/markdown/PreWithToolbar.tsx index c15ddaa64..433d44d4f 100644 --- a/gui/src/components/markdown/PreWithToolbar.tsx +++ b/gui/src/components/markdown/PreWithToolbar.tsx @@ -8,7 +8,8 @@ import { RootState } from "../../redux/store"; import CodeBlockToolBar from "./CodeBlockToolbar"; const TopDiv = styled.div` - border: 0.5px solid ${lightGray}80; + outline: 0.5px solid rgba(153, 153, 152); + outline-offset: -0.5px; border-radius: ${defaultBorderRadius}; margin-bottom: 8px; `; @@ -63,13 +64,25 @@ function PreWithToolbar(props: { onMouseEnter={() => setHovering(true)} onMouseLeave={() => setHovering(false)} > - + {!!props.filename ? ( + + ) : ( + hovering && ( + + ) + )} + {props.children} ); diff --git a/gui/src/components/markdown/StyledMarkdownPreview.tsx b/gui/src/components/markdown/StyledMarkdownPreview.tsx index 845ed445d..02be7c0a6 100644 --- a/gui/src/components/markdown/StyledMarkdownPreview.tsx +++ b/gui/src/components/markdown/StyledMarkdownPreview.tsx @@ -30,7 +30,7 @@ const StyledMarkdown = styled.div<{ overflow-x: scroll; overflow-y: hidden; - padding: ${(props) => (props.showBorder ? "4px 12px" : "0px 2px")}; + padding: ${(props) => (props.showBorder ? "8px 12px" : "0px 2px")}; margin: 0px; } From f09044bc15a788df8ae392cec56894e2dcaf90e7 Mon Sep 17 00:00:00 2001 From: Test Date: Wed, 18 Sep 2024 10:14:48 -0700 Subject: [PATCH 100/268] Update CodeBlockToolbar.tsx --- gui/src/components/markdown/CodeBlockToolbar.tsx | 16 ++++++---------- 1 file changed, 6 insertions(+), 10 deletions(-) diff --git a/gui/src/components/markdown/CodeBlockToolbar.tsx b/gui/src/components/markdown/CodeBlockToolbar.tsx index 05bcd93db..f71d1db49 100644 --- a/gui/src/components/markdown/CodeBlockToolbar.tsx +++ b/gui/src/components/markdown/CodeBlockToolbar.tsx @@ -253,16 +253,12 @@ function CodeBlockToolBar(props: CodeBlockToolBarProps) { className="flex items-center cursor-pointer py-0.5 px-0.5" onClick={onClickHeader} > - {props.filename && ( - <> - - {props.filename}{" "} - - )} + + {props.filename}{" "}
From 7e875e0d3c2c51c9dc2188af8f0e3b3960b5828f Mon Sep 17 00:00:00 2001 From: Test Date: Wed, 18 Sep 2024 10:19:00 -0700 Subject: [PATCH 101/268] Update CodeBlockToolbar.tsx --- .../components/markdown/CodeBlockToolbar.tsx | 84 ++++++++----------- 1 file changed, 34 insertions(+), 50 deletions(-) diff --git a/gui/src/components/markdown/CodeBlockToolbar.tsx b/gui/src/components/markdown/CodeBlockToolbar.tsx index f71d1db49..d1dd52c9a 100644 --- a/gui/src/components/markdown/CodeBlockToolbar.tsx +++ b/gui/src/components/markdown/CodeBlockToolbar.tsx @@ -102,6 +102,7 @@ const commonTerminalCommands = [ "ruby", "bundle", ]; + function isTerminalCodeBlock(language: string | undefined, text: string) { return ( terminalLanguages.includes(language) || @@ -152,45 +153,6 @@ function useCopyAction(text: string) { return { copied, handleCopy }; } -const ApplyButton = ({ isTerminal, applying, onClick }) => ( - -
- {applying ? ( - - ) : ( - - )} - - {isTerminal ? "Run in terminal" : applying ? "Applying..." : "Apply"} - -
-
-); - -const CopyButton = ({ copied, onClick }) => ( - -
- {copied ? ( - <> - - Copied - - ) : ( - <> - - Copy - - )} -
-
-); - function CodeBlockToolBar(props: CodeBlockToolBarProps) { const ideMessenger = useContext(IdeMessengerContext); const dispatch = useDispatch(); @@ -253,22 +215,44 @@ function CodeBlockToolBar(props: CodeBlockToolBarProps) { className="flex items-center cursor-pointer py-0.5 px-0.5" onClick={onClickHeader} > - + {props.filename}{" "}
- + +
+ {copied ? ( + <> + + Copied + + ) : ( + <> + + Copy + + )} +
+
+ {!isJetBrains() && ( - + +
+ {applying ? ( + + ) : ( + + )} + {applying ? "Applying..." : "Apply"} +
+
)}
From 19fd9d610a7e15737ac92435f8905d3397afd4c6 Mon Sep 17 00:00:00 2001 From: Nate Date: Wed, 18 Sep 2024 10:32:55 -0700 Subject: [PATCH 102/268] acknowledge rust comments --- core/edit/lazy/deterministic.test.ts | 5 +- core/edit/lazy/deterministic.ts | 3 +- .../lazy/test-examples/rust-calc-exp.rs.diff | 126 ++++++++++++++++++ 3 files changed, 131 insertions(+), 3 deletions(-) create mode 100644 core/edit/lazy/test-examples/rust-calc-exp.rs.diff diff --git a/core/edit/lazy/deterministic.test.ts b/core/edit/lazy/deterministic.test.ts index 74006e74d..e899a250a 100644 --- a/core/edit/lazy/deterministic.test.ts +++ b/core/edit/lazy/deterministic.test.ts @@ -131,7 +131,6 @@ describe("deterministicApplyLazyEdit(", () => { await expectDiff("calculator-docstrings.js"); }); - // TODO test("calculator stateless", async () => { await expectDiff("calculator-stateless.js"); }); @@ -143,4 +142,8 @@ describe("deterministicApplyLazyEdit(", () => { test("gui add toggle", async () => { await expectDiff("gui.js"); }); + + test.only("rust calculator", async () => { + await expectDiff("rust-calc-exp.rs"); + }); }); diff --git a/core/edit/lazy/deterministic.ts b/core/edit/lazy/deterministic.ts index 9e5962c34..979b65bf0 100644 --- a/core/edit/lazy/deterministic.ts +++ b/core/edit/lazy/deterministic.ts @@ -112,14 +112,13 @@ export async function deterministicApplyLazyEdit( return diff; } -const COMMENT_TYPES = ["comment"]; const LAZY_COMMENT_REGEX = /\.{3}\s*(.+?)\s*\.{3}/; export function isLazyLine(text: string): boolean { return LAZY_COMMENT_REGEX.test(text); } function isLazyBlock(node: Parser.SyntaxNode): boolean { - return COMMENT_TYPES.includes(node.type) && isLazyLine(node.text); + return node.type.includes("comment") && isLazyLine(node.text); } /** diff --git a/core/edit/lazy/test-examples/rust-calc-exp.rs.diff b/core/edit/lazy/test-examples/rust-calc-exp.rs.diff new file mode 100644 index 000000000..21ab8bd10 --- /dev/null +++ b/core/edit/lazy/test-examples/rust-calc-exp.rs.diff @@ -0,0 +1,126 @@ +use std::io; + +fn main() { + println!("Welcome to the Calculator!"); + + loop { + println!("Please enter an operator (+, -, *, /) or 'q' to quit:"); + let operator = read_input(); + + if operator == "q" { + break; + } + + println!("Please enter the first number:"); + let num1 = read_input().parse::().unwrap(); + + println!("Please enter the second number:"); + let num2 = read_input().parse::().unwrap(); + + let result = match operator.as_str() { + "+" => num1 + num2, + "-" => num1 - num2, + "*" => num1 * num2, + "/" => num1 / num2, + _ => { + println!("Invalid operator. Please try again."); + continue; + } + }; + + println!("Result: {}", result); + } +} + +fn read_input() -> String { + let mut input = String::new(); + io::stdin() + .read_line(&mut input) + .expect("Failed to read input"); + input.trim().to_string() +} + +--- + +use std::io; + +fn main() { + println!("Welcome to the Calculator!"); + + loop { + println!("Please enter an operator (+, -, *, /, ^) or 'q' to quit:"); + let operator = read_input(); + + if operator == "q" { + break; + } + + println!("Please enter the first number:"); + let num1 = read_input().parse::().unwrap(); + + println!("Please enter the second number:"); + let num2 = read_input().parse::().unwrap(); + + let result = match operator.as_str() { + "+" => num1 + num2, + "-" => num1 - num2, + "*" => num1 * num2, + "/" => num1 / num2, + "^" => num1.powf(num2), + _ => { + println!("Invalid operator. Please try again."); + continue; + } + }; + + println!("Result: {}", result); + } +} + +// ... existing code ... + +--- + +use std::io; + +fn main() { + println!("Welcome to the Calculator!"); + + loop { +- println!("Please enter an operator (+, -, *, /) or 'q' to quit:"); ++ println!("Please enter an operator (+, -, *, /, ^) or 'q' to quit:"); + let operator = read_input(); + + if operator == "q" { + break; + } + + println!("Please enter the first number:"); + let num1 = read_input().parse::().unwrap(); + + println!("Please enter the second number:"); + let num2 = read_input().parse::().unwrap(); + + let result = match operator.as_str() { + "+" => num1 + num2, + "-" => num1 - num2, + "*" => num1 * num2, + "/" => num1 / num2, ++ "^" => num1.powf(num2), + _ => { + println!("Invalid operator. Please try again."); + continue; + } + }; + + println!("Result: {}", result); + } +} + +fn read_input() -> String { + let mut input = String::new(); + io::stdin() + .read_line(&mut input) + .expect("Failed to read input"); + input.trim().to_string() +} \ No newline at end of file From 3865f66fc6e2e05953c1897e43e64d9c17e11dbf Mon Sep 17 00:00:00 2001 From: Freerk Minnema <41089591+freerkminnema@users.noreply.github.com> Date: Wed, 18 Sep 2024 22:31:14 +0200 Subject: [PATCH 103/268] fix typo --- docs/docs/docs/chat/how-to-use-it.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/docs/docs/chat/how-to-use-it.md b/docs/docs/docs/chat/how-to-use-it.md index 37e8384ab..53cd85d17 100644 --- a/docs/docs/docs/chat/how-to-use-it.md +++ b/docs/docs/docs/chat/how-to-use-it.md @@ -10,7 +10,7 @@ sidebar_position: 1 ## How to use it -Chat makes it easy to ask for help from an LLM without needing to leave the IDE. You send it a task, including any relevant information, and it replies with the text / code most likely to complete the task. If it does not give you want you want, then you can send follow up messages to clarify and adjust its approach until the task is completed. +Chat makes it easy to ask for help from an LLM without needing to leave the IDE. You send it a task, including any relevant information, and it replies with the text / code most likely to complete the task. If it does not give you what you want, then you can send follow up messages to clarify and adjust its approach until the task is completed. Chat is best used to understand and iterate on code or as a replacement for search engine queries. @@ -36,4 +36,4 @@ Once you complete a task and want to start a new one, press `cmd/ctrl + L` (VS C ## Switch between different models -If you have configured multiple models, you can switch between models using the dropdown or by pressing `cmd/ctrl + ’` \ No newline at end of file +If you have configured multiple models, you can switch between models using the dropdown or by pressing `cmd/ctrl + ’` From bea5e2380a0209092d8df443b34b7c4b78672e3d Mon Sep 17 00:00:00 2001 From: Test Date: Wed, 18 Sep 2024 14:09:44 -0700 Subject: [PATCH 104/268] docs: update slash command titles --- docs/docs/customize/context-providers.md | 143 +++++++++++------------ docs/docs/docs/edit/model-setup.md | 2 +- 2 files changed, 69 insertions(+), 76 deletions(-) diff --git a/docs/docs/customize/context-providers.md b/docs/docs/customize/context-providers.md index 1347a9b0d..8a04b3868 100644 --- a/docs/docs/customize/context-providers.md +++ b/docs/docs/customize/context-providers.md @@ -14,9 +14,9 @@ As an example, say you are working on solving a new GitHub Issue. You type '@iss To use any of the built-in context providers, open `config.json` and add it to the `contextProviders` list. -### Files +### `@file` -Type '@file' to reference any file in your current workspace. +Reference any file in your current workspace. ```json title="config.json" { @@ -28,9 +28,9 @@ Type '@file' to reference any file in your current workspace. } ``` -### Code +### `@code` -Type '@code' to reference specific functions or classes from throughout your project. +Reference specific functions or classes from throughout your project. ```json title="config.json" { @@ -42,9 +42,9 @@ Type '@code' to reference specific functions or classes from throughout your pro } ``` -### Git Diff +### `@diff` -Type '@diff' to reference all of the changes you've made to your current branch. This is useful if you want to summarize what you've done or ask for a general review of your work before committing. +Reference all of the changes you've made to your current branch. This is useful if you want to summarize what you've done or ask for a general review of your work before committing. ```json title="config.json" { @@ -56,9 +56,9 @@ Type '@diff' to reference all of the changes you've made to your current branch. } ``` -### Terminal +### `@terminal` -Type '@terminal' to reference the contents of your IDE's terminal. +Reference the contents of your IDE's terminal. ```json title="config.json" { @@ -70,9 +70,9 @@ Type '@terminal' to reference the contents of your IDE's terminal. } ``` -### Documentation +### `@docs` -Type `@docs` to index and retrieve snippets from any documentation site. +Reference the contents from any documentation site. ```json title="config.json" { @@ -84,11 +84,13 @@ Type `@docs` to index and retrieve snippets from any documentation site. } ``` -To learn more, visit `[@docs](../customize/deep-dives/docs.md)`. +Note that this will only enable the `@docs` context provider. -### Open Files +To use it, you need to add a documentation site to your `config.json`. See the [docs](../customize/deep-dives/docs.md) page for more information. -Type '@open' to reference the contents of all of your open files. Set `onlyPinned` to `true` to only reference pinned files. +### `'@open` + +Reference the contents of all of your open files. Set `onlyPinned` to `true` to only reference pinned files. ```json title="config.json" { @@ -103,9 +105,9 @@ Type '@open' to reference the contents of all of your open files. Set `onlyPinne } ``` -### Codebase Retrieval +### `@codebase` -Type '@codebase' to automatically retrieve the most relevant snippets from your codebase. Read more about indexing and retrieval [here](../customize/deep-dives/codebase.md). +Reference the most relevant snippets from your codebase. ```json title="config.json" { @@ -117,9 +119,11 @@ Type '@codebase' to automatically retrieve the most relevant snippets from your } ``` -### Folders +Read more about indexing and retrieval [here](../customize/deep-dives/codebase.md). -Type '@folder' to use the same retrieval mechanism as '@codebase', but only on a single folder. +### `@folder` + +Uses the same retrieval mechanism as `@codebase`, but only on a single folder. ```json title="config.json" { @@ -131,9 +135,9 @@ Type '@folder' to use the same retrieval mechanism as '@codebase', but only on a } ``` -### Exact Search +### `@search` -Type '@search' to reference the results of codebase search, just like the results you would get from VS Code search. This context provider is powered by [ripgrep](https://github.com/BurntSushi/ripgrep). +Reference the results of codebase search, just like the results you would get from VS Code search. ```json title="config.json" { @@ -145,9 +149,11 @@ Type '@search' to reference the results of codebase search, just like the result } ``` -### URL +This context provider is powered by [ripgrep](https://github.com/BurntSushi/ripgrep). -Type '@url' and input a URL, then Continue will convert it to a markdown document to pass to the model. +### `@url` + +Reference the markdown converted contents of a given URL. ```json title="config.json" { @@ -159,9 +165,9 @@ Type '@url' and input a URL, then Continue will convert it to a markdown documen } ``` -### File Tree +### `@tree` -Type '@tree' to reference the structure of your current workspace. The LLM will be able to see the nested directory structure of your project. +Reference the structure of your current workspace. ```json title="config.json" { @@ -173,9 +179,9 @@ Type '@tree' to reference the structure of your current workspace. The LLM will } ``` -### Google +### `@google` -Type '@google' to reference the results of a Google search. For example, type "@google python tutorial" if you want to search and discuss ways of learning Python. +Reference the results of a Google search. ```json title="config.json" { @@ -190,11 +196,13 @@ Type '@google' to reference the results of a Google search. For example, type "@ } ``` +For example, type "@google python tutorial" if you want to search and discuss ways of learning Python. + Note: You can get an API key for free at [serper.dev](https://serper.dev). -### GitHub Issues +### `@issue` -Type '@issue' to reference the conversation in a GitHub issue. Make sure to include your own [GitHub personal access token](https://docs.github.com/en/authentication/keeping-your-account-and-data-secure/managing-your-personal-access-tokens#creating-a-fine-grained-personal-access-token) to avoid being rate-limited: +Reference the conversation in a GitHub issue. ```json title="config.json" { @@ -215,13 +223,11 @@ Type '@issue' to reference the conversation in a GitHub issue. Make sure to incl } ``` -### GitLab Merge Request +Make sure to include your own [GitHub personal access token](https://docs.github.com/en/authentication/keeping-your-account-and-data-secure/managing-your-personal-access-tokens#creating-a-fine-grained-personal-access-token) to avoid being rate-limited. -Type `@gitlab-mr` to reference an open MR for this branch on GitLab. +### `@gitlab-mr` -#### 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: +Reference an open MR for this branch on GitLab. ```json title="config.json" { @@ -236,6 +242,8 @@ You will need to create a [personal access token](https://docs.gitlab.com/ee/use } ``` +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. + #### 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`. @@ -258,9 +266,9 @@ You can specify the domain to communicate with by setting the `domain` parameter 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 +### `@jira` -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), or use your `email` and `token`, with token set to your password for basic authentication. If you use your own Atlassian API Token, don't configure your email. +Reference the conversation in a Jira issue. ```json title="config.json" { @@ -276,6 +284,8 @@ Type '@jira' to reference the conversation in a Jira issue. Make sure to include } ``` +Make sure to include your own [Atlassian API Token](https://id.atlassian.com/manage-profile/security/api-tokens), or use your `email` and `token`, with token set to your password for basic authentication. If you use your own Atlassian API Token, don't configure your email. + #### Jira Datacenter Support This context provider supports both Jira API version 2 and 3. It will use version 3 by default since @@ -293,8 +303,6 @@ to set the API Version to 2 using the `apiVersion` property. } ] } -... - } ``` #### Issue Query @@ -307,36 +315,9 @@ assignee = currentUser() AND resolution = Unresolved order by updated DESC You can override this query by setting the `issueQuery` parameter. - +### `@postgres` - - -### PostgreSQL - -Type `@postgres` to reference the schema of a table, and some sample rows. A dropdown will appear, allowing you to select a specific table, or all tables. - -The only required settings are those for creating the database connection: `host`, `port`, `user`, `password`, and `database`. - -By default, the `schema` filter is set to `public`, and the `sampleRows` is set to 3. You may unset the schema if you want to include tables from all schemas. - -[Here is a short demo.](https://github.com/continuedev/continue/pull/859) +Reference the schema of a table, and some sample rows ```json title="config.json" { @@ -357,9 +338,15 @@ By default, the `schema` filter is set to `public`, and the `sampleRows` is set } ``` -### Database Tables +The only required settings are those for creating the database connection: `host`, `port`, `user`, `password`, and `database`. -Type `@database` to reference table schemas you can use the drop-down or start typeing table names based off of your configuration. Configuration supports multiple databases, allowing you to specify various connection details for PostgreSQL, MySQL, SQLite. Each connection should include a unique name, the connection_type (e.g., postgres, sqlite), and the necessary connection parameters specific to each database type. +By default, the `schema` filter is set to `public`, and the `sampleRows` is set to 3. You may unset the schema if you want to include tables from all schemas. + +[Here is a short demo.](https://github.com/continuedev/continue/pull/859) + +### `@database` + +Reference table schemas from Sqlite, Postgres, and MySQL databases. ```json title="config.json" { @@ -393,9 +380,11 @@ Type `@database` to reference table schemas you can use the drop-down or start t } ``` -### Debugger: Local Variables +Each connection should include a unique name, the connection_type (e.g., postgres, sqlite), and the necessary connection parameters specific to each database type. -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. +### `@locals` + +Reference the contents of the local variables in the debugger. ```json title="config.json" { @@ -410,11 +399,11 @@ Type `@locals` to reference the contents of the local variables with top n level } ``` -### Repository map +Uses the top _n_ levels (defaulting to 3) of the call stack for that thread. -Provides an overview of all files and the call signatures of top-level classes, functions, and methods. This helps the model better understand how a particular piece of code relates to the rest of the codebase. +### `@repo-map` -This context provider is inpsired by [Aider's repository map](https://aider.chat/2023/10/22/repomap.html). +Reference the outline of your codebase. ```json title="config.json" { @@ -426,9 +415,13 @@ This context provider is inpsired by [Aider's repository map](https://aider.chat } ``` -### Operating System +Provides an overview of all files and the call signatures of top-level classes, functions, and methods. This helps the model better understand how a particular piece of code relates to the rest of the codebase. -Type `@os` to reference the architecture and platform of your current operating system. +This context provider is inpsired by [Aider's repository map](https://aider.chat/2023/10/22/repomap.html). + +### `@os` + +Reference the architecture and platform of your current operating system. ```json title="config.json" { @@ -442,4 +435,4 @@ Type `@os` to reference the architecture and platform of your current operating ### 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. +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 Context Provider. diff --git a/docs/docs/docs/edit/model-setup.md b/docs/docs/docs/edit/model-setup.md index 03b24e309..8be9c0c6f 100644 --- a/docs/docs/docs/edit/model-setup.md +++ b/docs/docs/docs/edit/model-setup.md @@ -5,6 +5,6 @@ description: How to set up an Edit model keywords: [edit, cmd l, model] --- -By default, Edit uses the [same model as Chat](../chat/model-setup.mdx) since we recommend a similar, 400B+ parameter model or one of the frontier model for code edits. +By default, Edit uses the [same model as Chat](../chat/model-setup.mdx) since we recommend a similar, 400B+ parameter model or one of the frontier models for code edits. You can configure a different model to be used for edits by updating your [`config.json`](../../customize/config.mdx). From 4258d5587fa16a52d4daad29556667043e1b3e19 Mon Sep 17 00:00:00 2001 From: Nate Date: Wed, 18 Sep 2024 15:38:10 -0700 Subject: [PATCH 105/268] add lazy blocks if there are none --- core/edit/lazy/deterministic.test.ts | 6 +++- core/edit/lazy/deterministic.ts | 12 +++++-- core/edit/lazy/test-examples/no-lazy.js.diff | 34 ++++++++++++++++++++ 3 files changed, 49 insertions(+), 3 deletions(-) create mode 100644 core/edit/lazy/test-examples/no-lazy.js.diff diff --git a/core/edit/lazy/deterministic.test.ts b/core/edit/lazy/deterministic.test.ts index e899a250a..cf75327a1 100644 --- a/core/edit/lazy/deterministic.test.ts +++ b/core/edit/lazy/deterministic.test.ts @@ -143,7 +143,11 @@ describe("deterministicApplyLazyEdit(", () => { await expectDiff("gui.js"); }); - test.only("rust calculator", async () => { + test("rust calculator", async () => { await expectDiff("rust-calc-exp.rs"); }); + + test("no lazy blocks", async () => { + await expectDiff("no-lazy.js"); + }); }); diff --git a/core/edit/lazy/deterministic.ts b/core/edit/lazy/deterministic.ts index 979b65bf0..e4d93c17c 100644 --- a/core/edit/lazy/deterministic.ts +++ b/core/edit/lazy/deterministic.ts @@ -1,6 +1,8 @@ import { distance } from "fastest-levenshtein"; +import path from "path"; import Parser from "web-tree-sitter"; import { DiffLine } from "../.."; +import { LANGUAGES } from "../../autocomplete/languages"; import { myersDiff } from "../../diff/myers"; import { getParserForFile } from "../../util/treeSitter"; import { findInAst } from "./findInAst"; @@ -57,7 +59,7 @@ function reconstructNewFile( let newLinesFound = 0; while ( startIndex > 0 && - newFileChars[startIndex - 1].trim() === "" && + newFileChars[startIndex - 1]?.trim() === "" && newLinesFound < 2 ) { startIndex--; @@ -97,11 +99,17 @@ export async function deterministicApplyLazyEdit( } const oldTree = parser.parse(oldFile); - const newTree = parser.parse(newLazyFile); + let newTree = parser.parse(newLazyFile); // If there is no lazy block anywhere, we add our own to the outsides // so that large chunks of the file don't get removed if (!findInAst(newTree.rootNode, isLazyBlock)) { + const ext = path.extname(filename).slice(1); + const language = LANGUAGES[ext]; + if (language) { + newLazyFile = `${language.singleLineComment} ... existing code ...\n\n${newLazyFile}\n\n${language.singleLineComment} ... existing code...`; + newTree = parser.parse(newLazyFile); + } } const acc: LazyBlockReplacements = []; diff --git a/core/edit/lazy/test-examples/no-lazy.js.diff b/core/edit/lazy/test-examples/no-lazy.js.diff new file mode 100644 index 000000000..c5195628f --- /dev/null +++ b/core/edit/lazy/test-examples/no-lazy.js.diff @@ -0,0 +1,34 @@ +class Hello { + hello() { + return "Hello World"; + } +} + +class Goodbye { + goodbye() { + return "Goodbye World"; + } +} + +--- + +class Goodbye { + goodbye() { + return "Au revoir le monde"; + } +} + +--- + +class Hello { + hello() { + return "Hello World"; + } +} + +class Goodbye { + goodbye() { +- return "Goodbye World"; ++ return "Au revoir le monde"; + } +} \ No newline at end of file From f306b15ace9a6fc5c57cb76eccacf670d0dc6de7 Mon Sep 17 00:00:00 2001 From: Nate Date: Wed, 18 Sep 2024 15:41:28 -0700 Subject: [PATCH 106/268] skip test for now --- core/edit/lazy/deterministic.test.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/edit/lazy/deterministic.test.ts b/core/edit/lazy/deterministic.test.ts index cf75327a1..fe6fcf52f 100644 --- a/core/edit/lazy/deterministic.test.ts +++ b/core/edit/lazy/deterministic.test.ts @@ -139,7 +139,7 @@ describe("deterministicApplyLazyEdit(", () => { await expectDiff("top-level-same.js"); }); - test("gui add toggle", async () => { + test.skip("gui add toggle", async () => { await expectDiff("gui.js"); }); From dc2cd6829b8604a887ab5b0dcfd2c9d78b5f0f66 Mon Sep 17 00:00:00 2001 From: Test Date: Wed, 18 Sep 2024 15:50:04 -0700 Subject: [PATCH 107/268] Update context provider names --- docs/docs/customize/context-providers.md | 48 +++++++++---------- docs/docs/customize/deep-dives/codebase.md | 8 ++-- docs/docs/customize/deep-dives/docs.md | 18 +++---- docs/docs/customize/model-types/embeddings.md | 2 +- docs/docs/customize/model-types/reranking.md | 2 +- .../customize/tutorials/custom-code-rag.md | 2 +- docs/docs/docs/chat/context-selection.md | 14 +++--- docs/docs/docs/chat/how-it-works.md | 2 +- docs/docs/docs/chat/how-to-customize.md | 7 +-- 9 files changed, 52 insertions(+), 51 deletions(-) diff --git a/docs/docs/customize/context-providers.md b/docs/docs/customize/context-providers.md index 8a04b3868..e2fb6c029 100644 --- a/docs/docs/customize/context-providers.md +++ b/docs/docs/customize/context-providers.md @@ -6,7 +6,7 @@ keywords: [context, "@", provider, LLM] Context Providers allow you to type '@' and see a dropdown of content that can all be fed to the LLM as context. Every context provider is a plugin, which means if you want to reference some source of information that you don't see here, you can request (or build!) a new context provider. -As an example, say you are working on solving a new GitHub Issue. You type '@issue' and select the one you are working on. Continue can now see the issue title and contents. You also know that the issue is related to the files 'readme.md' and 'helloNested.py', so you type '@readme' and '@hello' to find and select them. Now these 3 "Context Items" are displayed inline with the rest of your input. +As an example, say you are working on solving a new GitHub Issue. You type '@Isse' and select the one you are working on. Continue can now see the issue title and contents. You also know that the issue is related to the files 'readme.md' and 'helloNested.py', so you type '@readme' and '@hello' to find and select them. Now these 3 "Context Items" are displayed inline with the rest of your input. ![Context Items](/img/context-provider-example.png) @@ -14,7 +14,7 @@ As an example, say you are working on solving a new GitHub Issue. You type '@iss To use any of the built-in context providers, open `config.json` and add it to the `contextProviders` list. -### `@file` +### `@File` Reference any file in your current workspace. @@ -28,7 +28,7 @@ Reference any file in your current workspace. } ``` -### `@code` +### `@Code` Reference specific functions or classes from throughout your project. @@ -42,7 +42,7 @@ Reference specific functions or classes from throughout your project. } ``` -### `@diff` +### `@Git Diff` Reference all of the changes you've made to your current branch. This is useful if you want to summarize what you've done or ask for a general review of your work before committing. @@ -56,7 +56,7 @@ Reference all of the changes you've made to your current branch. This is useful } ``` -### `@terminal` +### `@Terminal` Reference the contents of your IDE's terminal. @@ -70,7 +70,7 @@ Reference the contents of your IDE's terminal. } ``` -### `@docs` +### `@Docs` Reference the contents from any documentation site. @@ -84,11 +84,11 @@ Reference the contents from any documentation site. } ``` -Note that this will only enable the `@docs` context provider. +Note that this will only enable the `@Docs` context provider. To use it, you need to add a documentation site to your `config.json`. See the [docs](../customize/deep-dives/docs.md) page for more information. -### `'@open` +### `@Open` Reference the contents of all of your open files. Set `onlyPinned` to `true` to only reference pinned files. @@ -105,7 +105,7 @@ Reference the contents of all of your open files. Set `onlyPinned` to `true` to } ``` -### `@codebase` +### `@Codebase` Reference the most relevant snippets from your codebase. @@ -121,9 +121,9 @@ Reference the most relevant snippets from your codebase. Read more about indexing and retrieval [here](../customize/deep-dives/codebase.md). -### `@folder` +### `@Folder` -Uses the same retrieval mechanism as `@codebase`, but only on a single folder. +Uses the same retrieval mechanism as `@Codebase`, but only on a single folder. ```json title="config.json" { @@ -135,7 +135,7 @@ Uses the same retrieval mechanism as `@codebase`, but only on a single folder. } ``` -### `@search` +### `@Search` Reference the results of codebase search, just like the results you would get from VS Code search. @@ -151,7 +151,7 @@ Reference the results of codebase search, just like the results you would get fr This context provider is powered by [ripgrep](https://github.com/BurntSushi/ripgrep). -### `@url` +### `@Url` Reference the markdown converted contents of a given URL. @@ -165,7 +165,7 @@ Reference the markdown converted contents of a given URL. } ``` -### `@tree` +### `@Tree` Reference the structure of your current workspace. @@ -179,7 +179,7 @@ Reference the structure of your current workspace. } ``` -### `@google` +### `@Google` Reference the results of a Google search. @@ -196,11 +196,11 @@ Reference the results of a Google search. } ``` -For example, type "@google python tutorial" if you want to search and discuss ways of learning Python. +For example, type "@Google python tutorial" if you want to search and discuss ways of learning Python. Note: You can get an API key for free at [serper.dev](https://serper.dev). -### `@issue` +### `@Isse` Reference the conversation in a GitHub issue. @@ -225,7 +225,7 @@ Reference the conversation in a GitHub issue. Make sure to include your own [GitHub personal access token](https://docs.github.com/en/authentication/keeping-your-account-and-data-secure/managing-your-personal-access-tokens#creating-a-fine-grained-personal-access-token) to avoid being rate-limited. -### `@gitlab-mr` +### `@Gitlab Merge Request` Reference an open MR for this branch on GitLab. @@ -266,7 +266,7 @@ You can specify the domain to communicate with by setting the `domain` parameter 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` +### `@Jira` Reference the conversation in a Jira issue. @@ -315,7 +315,7 @@ assignee = currentUser() AND resolution = Unresolved order by updated DESC You can override this query by setting the `issueQuery` parameter. -### `@postgres` +### `@Postgres` Reference the schema of a table, and some sample rows @@ -344,7 +344,7 @@ By default, the `schema` filter is set to `public`, and the `sampleRows` is set [Here is a short demo.](https://github.com/continuedev/continue/pull/859) -### `@database` +### `@Database` Reference table schemas from Sqlite, Postgres, and MySQL databases. @@ -382,7 +382,7 @@ Reference table schemas from Sqlite, Postgres, and MySQL databases. Each connection should include a unique name, the connection_type (e.g., postgres, sqlite), and the necessary connection parameters specific to each database type. -### `@locals` +### `@Locals` Reference the contents of the local variables in the debugger. @@ -401,7 +401,7 @@ Reference the contents of the local variables in the debugger. Uses the top _n_ levels (defaulting to 3) of the call stack for that thread. -### `@repo-map` +### `@Repository Map` Reference the outline of your codebase. @@ -419,7 +419,7 @@ Provides an overview of all files and the call signatures of top-level classes, This context provider is inpsired by [Aider's repository map](https://aider.chat/2023/10/22/repomap.html). -### `@os` +### `@Operating System` Reference the architecture and platform of your current operating system. diff --git a/docs/docs/customize/deep-dives/codebase.md b/docs/docs/customize/deep-dives/codebase.md index 8d5fef254..a74cd1a88 100644 --- a/docs/docs/customize/deep-dives/codebase.md +++ b/docs/docs/customize/deep-dives/codebase.md @@ -3,11 +3,11 @@ description: Talk to your codebase keywords: [talk, embeddings, reranker, codebase, experimental] --- -# @codebase +# @Codebase Continue indexes your codebase so that it can later automatically pull in the most relevant context from throughout your workspace. This is done via a combination of embeddings-based retrieval and keyword search. By default, all embeddings are calculated locally with `all-MiniLM-L6-v2` and stored locally in `~/.continue/index`. -Currently, the codebase retrieval feature is available as the "codebase" and "folder" context providers. You can use them by typing `@codebase` or `@folder` in the input box, and then asking a question. The contents of the input box will be compared with the embeddings from the rest of the codebase (or folder) to determine relevant files. +Currently, the codebase retrieval feature is available as the "codebase" and "folder" context providers. You can use them by typing `@Codebase` or `@Folder` in the input box, and then asking a question. The contents of the input box will be compared with the embeddings from the rest of the codebase (or folder) to determine relevant files. Here are some common use cases where it can be useful: @@ -19,10 +19,10 @@ Here are some common use cases where it can be useful: - "Generate a new React component with a date picker, using the same patterns as existing components" - "Write a draft of a CLI application for this project using Python's argparse" - "Implement the `foo` method in the `bar` class, following the patterns seen in other subclasses of `baz`. -- Use `@folder` to ask questions about a specific folder, increasing the likelihood of relevant results +- Use `@Folder` to ask questions about a specific folder, increasing the likelihood of relevant results - "What is the main purpose of this folder?" - "How do we use VS Code's CodeLens API?" - - Or any of the above examples, but with `@folder` instead of `@codebase` + - Or any of the above examples, but with `@Folder` instead of `@Codebase` Here are use cases where it is not useful: diff --git a/docs/docs/customize/deep-dives/docs.md b/docs/docs/customize/deep-dives/docs.md index e2291955c..41214f722 100644 --- a/docs/docs/customize/deep-dives/docs.md +++ b/docs/docs/customize/deep-dives/docs.md @@ -4,13 +4,13 @@ keywords: [documentation, indexing, context provider, embeddings, docs] toc_max_heading_level: 5 --- -# @docs +# @Docs -The [`@docs` context provider](http://localhost:3000/customization/context-providers#documentation) allows you to interact with your documentation directly within Continue. This feature enables you to index any static site or GitHub markdown pages, making it easier to access and utilize your documentation while coding. +The [`@Docs` context provider](http://localhost:3000/customization/context-providers#documentation) allows you to interact with your documentation directly within Continue. This feature enables you to index any static site or GitHub markdown pages, making it easier to access and utilize your documentation while coding. -## Enabling the `@docs` context provider +## Enabling the `@Docs` context provider -To enable the `@docs` context provider, you need to add it to the list of context providers in your `config.json` file. +To enable the `@Docs` context provider, you need to add it to the list of context providers in your `config.json` file. ```json { @@ -23,12 +23,12 @@ To enable the `@docs` context provider, you need to add it to the list of contex ## How It Works -The `@docs` context provider works by crawling specified documentation sites, generating embeddings, and storing them locally for you. This process allows for quick and efficient access to your documentation content. +The `@Docs` context provider works by crawling specified documentation sites, generating embeddings, and storing them locally for you. This process allows for quick and efficient access to your documentation content. 1. We crawl the specified documentation site 2. Generate embeddings for the content 3. Store the embeddings locally on your machine -4. Provide access to the indexed content through the `@docs` context provider +4. Provide access to the indexed content through the `@Docs` context provider ## Pre-indexed Documentation Sites @@ -36,11 +36,11 @@ We offer a selection of pre-indexed documentation sites for popular frameworks a ## Indexing Your Own Documentation -### Through the `@docs` Context Provider +### Through the `@Docs` Context Provider -To add a single documentation site, we recommend using the `@docs` context provider. +To add a single documentation site, we recommend using the `@Docs` context provider. -1. Type `@docs` in the chat panel, hit enter +1. Type `@Docs` in the chat panel, hit enter 2. Type "add" and select the "Add Docs" option 3. Enter the required information into the dialog diff --git a/docs/docs/customize/model-types/embeddings.md b/docs/docs/customize/model-types/embeddings.md index 2960dcbfd..c32468967 100644 --- a/docs/docs/customize/model-types/embeddings.md +++ b/docs/docs/customize/model-types/embeddings.md @@ -7,7 +7,7 @@ sidebar_position: 3 An "embeddings model" is trained to convert a piece of text into a vector, which can later be rapidly compared to other vectors to determine similarity between the pieces of text. Embeddings models are typically much smaller than LLMs, and will be extremely fast and cheap in comparison. -In Continue, embeddings are generated during indexing and then used by [@codebase](../deep-dives/codebase.md) to perform similarity search over your codebase. +In Continue, embeddings are generated during indexing and then used by [@Codebase](../deep-dives/codebase.md) to perform similarity search over your codebase. ## Recommended embedding models diff --git a/docs/docs/customize/model-types/reranking.md b/docs/docs/customize/model-types/reranking.md index af6c99932..5f3fd77a3 100644 --- a/docs/docs/customize/model-types/reranking.md +++ b/docs/docs/customize/model-types/reranking.md @@ -7,7 +7,7 @@ sidebar_position: 4 A "reranking model" is trained to take two pieces of text (often a user question and a document) and return a relevancy score between 0 and 1, estimating how useful the document will be in answering the question. Rerankers are typically much smaller than LLMs, and will be extremely fast and cheap in comparison. -In Continue, reranking is used by [@codebase](../deep-dives/codebase.md) in order to select the most relevant code snippets after vector search. +In Continue, reranking is used by [@Codebase](../deep-dives/codebase.md) in order to select the most relevant code snippets after vector search. ## Recommended reranking models diff --git a/docs/docs/customize/tutorials/custom-code-rag.md b/docs/docs/customize/tutorials/custom-code-rag.md index 5ae55ebd4..1ab4aecbb 100644 --- a/docs/docs/customize/tutorials/custom-code-rag.md +++ b/docs/docs/customize/tutorials/custom-code-rag.md @@ -1,6 +1,6 @@ # Custom code RAG -While Continue comes with [@codebase](../deep-dives/codebase.md) out of the box, you might wish to set up your own vector database and build a custom retrieval-augmented generation (RAG) system. This can allow you to access code that is not available locally, to index code a single time across all users, or to include custom logic. In this guide, we'll walk you through the steps it takes to build this. +While Continue comes with [@Codebase](../deep-dives/codebase.md) out of the box, you might wish to set up your own vector database and build a custom retrieval-augmented generation (RAG) system. This can allow you to access code that is not available locally, to index code a single time across all users, or to include custom logic. In this guide, we'll walk you through the steps it takes to build this. ## Step 1: Choose an embeddings model diff --git a/docs/docs/docs/chat/context-selection.md b/docs/docs/docs/chat/context-selection.md index fe997056c..f5e20a026 100644 --- a/docs/docs/docs/chat/context-selection.md +++ b/docs/docs/docs/chat/context-selection.md @@ -19,28 +19,28 @@ You can include the currently open file as context by pressing `cmd/ctrl + opt + ## Specific file -You can include a specific file in your current workspace as context by typing [`@files`](../../customize/context-providers.md#files) and selecting the file. +You can include a specific file in your current workspace as context by typing [`@Files`](../../customize/context-providers.md#files) and selecting the file. ## Specific folder -You can include a folder in your current workspace as context by typing [`@directory`](../../customize/context-providers.md#folders) and selecting the directory. It [works like `@codebase`](../../customize/deep-dives/codebase.md) but only includes the files in the selected directory. +You can include a folder in your current workspace as context by typing [`@directory`](../../customize/context-providers.md#folders) and selecting the directory. It [works like `@Codebase`](../../customize/deep-dives/codebase.md) but only includes the files in the selected directory. ## Entire codebase -You can include your entire codebase as context by typing [`@codebase`](../../customize/context-providers.md#codebase-retrieval). You can learn about how @codebase works [here](../../customize/deep-dives/codebase.md). +You can include your entire codebase as context by typing [`@Codebase`](../../customize/context-providers.md#codebase-retrieval). You can learn about how @Codebase works [here](../../customize/deep-dives/codebase.md). ## Documentation site -You can include a documentation site as context by typing [`@docs`](../../customize/context-providers.md#documentation) and selecting the documentation site. You can learn about how @docs works [here](../../customize/deep-dives/docs.md). +You can include a documentation site as context by typing [`@Docs`](../../customize/context-providers.md#documentation) and selecting the documentation site. You can learn about how @Docs works [here](../../customize/deep-dives/docs.md). ## Terminal contents -You can include the contents of the terminal in your IDE as context by typing [`@terminal`](../../customize/context-providers.md#terminal). +You can include the contents of the terminal in your IDE as context by typing [`@Terminal`](../../customize/context-providers.md#terminal). ## Git diff -You can include all of the changes you've made to your current branch by typing [`@diff`](../../customize/context-providers.md#git-diff). +You can include all of the changes you've made to your current branch by typing [`@Git Diff`](../../customize/context-providers.md#git-diff). ## Other context -You can see a full list of built-in context providers [here](../../customize/context-providers.md) and how to create your own custom context provider [here](../../customize/tutorials/build-your-own-context-provider.md). \ No newline at end of file +You can see a full list of built-in context providers [here](../../customize/context-providers.md) and how to create your own custom context provider [here](../../customize/tutorials/build-your-own-context-provider.md). diff --git a/docs/docs/docs/chat/how-it-works.md b/docs/docs/docs/chat/how-it-works.md index e54cc10e2..f9714880d 100644 --- a/docs/docs/docs/chat/how-it-works.md +++ b/docs/docs/docs/chat/how-it-works.md @@ -11,4 +11,4 @@ The model response is then streamed directly back to the sidebar. Each code sect If you would like to view the exact prompt that is sent to the model during Chat, you can [view this in the prompt logs](../troubleshooting.md#llm-prompt-logs). -You can learn more about how `@codebase` works [here](../../customize/deep-dives/codebase.md) and `@docs` [here](../../customize/deep-dives/docs.md). +You can learn more about how `@Codebase` works [here](../../customize/deep-dives/codebase.md) and `@Docs` [here](../../customize/deep-dives/docs.md). diff --git a/docs/docs/docs/chat/how-to-customize.md b/docs/docs/docs/chat/how-to-customize.md index 83d3c7a12..204e0c735 100644 --- a/docs/docs/docs/chat/how-to-customize.md +++ b/docs/docs/docs/chat/how-to-customize.md @@ -6,7 +6,8 @@ sidebar_position: 5 --- There are a number of different ways to customize Chat -- You can configure [`@codebase`](../../customize/deep-dives/codebase.md) + +- You can configure [`@Codebase`](../../customize/deep-dives/codebase.md) - You can create your own [custom code RAG](../../customize/tutorials/custom-code-rag.md) -- You can configure [`@docs`](../../customize/deep-dives/docs.md) -- You can [build your own context provider](../../customize/tutorials/build-your-own-context-provider.md) \ No newline at end of file +- You can configure [`@Docs`](../../customize/deep-dives/docs.md) +- You can [build your own context provider](../../customize/tutorials/build-your-own-context-provider.md) From 5d70c41fa6e0023fd0becbc2b2a287a56bab4c87 Mon Sep 17 00:00:00 2001 From: Test Date: Wed, 18 Sep 2024 15:56:31 -0700 Subject: [PATCH 108/268] update context provider names --- docs/docs/chat/how-to-customize.md | 4 ++-- docs/docs/customize/deep-dives/docs.md | 9 +++++---- 2 files changed, 7 insertions(+), 6 deletions(-) diff --git a/docs/docs/chat/how-to-customize.md b/docs/docs/chat/how-to-customize.md index a91720213..943d5e7ac 100644 --- a/docs/docs/chat/how-to-customize.md +++ b/docs/docs/chat/how-to-customize.md @@ -7,7 +7,7 @@ sidebar_position: 5 There are a number of different ways to customize Chat -- You can configure [`@codebase`](../customize/deep-dives/codebase.md) +- You can configure [`@Codebase`](../customize/deep-dives/codebase.md) - You can create your own [custom code RAG](../customize/tutorials/custom-code-rag.md) -- You can configure [`@docs`](../customize/deep-dives/docs.md) +- You can configure [`@Docs`](../customize/deep-dives/docs.md) - You can [build your own context provider](../customize/tutorials/build-your-own-context-provider.md) diff --git a/docs/docs/customize/deep-dives/docs.md b/docs/docs/customize/deep-dives/docs.md index 41214f722..f302ec44e 100644 --- a/docs/docs/customize/deep-dives/docs.md +++ b/docs/docs/customize/deep-dives/docs.md @@ -14,10 +14,11 @@ To enable the `@Docs` context provider, you need to add it to the list of contex ```json { - "contextProviders": [ - { "name": "docs" } - ... - ] + "contextProviders": [ + { + "name": "docs" + } + ] } ``` From d2413fc6f7f114bd43ab427a618914c51a5d708b Mon Sep 17 00:00:00 2001 From: Test Date: Wed, 18 Sep 2024 16:01:03 -0700 Subject: [PATCH 109/268] Update index.ts --- gui/src/redux/selectors/index.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gui/src/redux/selectors/index.ts b/gui/src/redux/selectors/index.ts index 88f5c99bc..7a941bb02 100644 --- a/gui/src/redux/selectors/index.ts +++ b/gui/src/redux/selectors/index.ts @@ -8,7 +8,7 @@ export const selectSlashCommands = createSelector( return ( slashCommands?.map((cmd) => { return { - title: `/${cmd.name}`, + title: `/${cmd.name.charAt(0).toUpperCase() + cmd.name.slice(1)}`, description: cmd.description, type: "slashCommand" as ComboBoxItemType, }; From 2a7dbfdaa126bba39f827747a1fab81eed37db11 Mon Sep 17 00:00:00 2001 From: Test Date: Wed, 18 Sep 2024 16:03:01 -0700 Subject: [PATCH 110/268] Update slash-commands.md --- docs/docs/customize/slash-commands.md | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/docs/docs/customize/slash-commands.md b/docs/docs/customize/slash-commands.md index 4cb216510..4ba0c544b 100644 --- a/docs/docs/customize/slash-commands.md +++ b/docs/docs/customize/slash-commands.md @@ -12,7 +12,7 @@ Slash commands are shortcuts that can be activated by typing '/' and selecting f To use any of the built-in slash commands, open `config.json` and add it to the `slashCommands` list. -### `/edit` +### `/Edit` Select code with `ctrl/cmd + L` (VS Code) or `ctrl/cmd + J` (JetBrains), and then type "/edit", followed by instructions for the edit. Continue will stream the changes into a side-by-side diff editor. @@ -27,7 +27,7 @@ Select code with `ctrl/cmd + L` (VS Code) or `ctrl/cmd + J` (JetBrains), and the } ``` -### `/comment` +### `/Comment` Comment works just like /edit, except it will automatically prompt the LLM to comment the code. @@ -42,7 +42,7 @@ Comment works just like /edit, except it will automatically prompt the LLM to co } ``` -### `/share` +### `/Share` Type "/share" to generate a shareable markdown transcript of your current chat history. @@ -60,7 +60,7 @@ Type "/share" to generate a shareable markdown transcript of your current chat h Use the `outputDir` parameter to specify where you want to the markdown file to be saved. -### `/cmd` +### `/Cmd` Generate a shell command from natural language and (only in VS Code) automatically paste it into the terminal. @@ -75,7 +75,7 @@ Generate a shell command from natural language and (only in VS Code) automatical } ``` -### `/commit` +### `/Commit` Shows the LLM your current git diff and asks it to generate a commit message. @@ -90,7 +90,7 @@ Shows the LLM your current git diff and asks it to generate a commit message. } ``` -### `/http` +### `/Http` Write a custom slash command at your own HTTP endpoint. Set 'url' in the params object for the endpoint you have setup. The endpoint should return a sequence of string updates, which will be streamed to the Continue sidebar. See our basic [FastAPI example](https://github.com/continuedev/continue/blob/74002369a5e435735b83278fb965e004ae38a97d/core/context/providers/context_provider_server.py#L34-L45) for reference. @@ -106,7 +106,7 @@ Write a custom slash command at your own HTTP endpoint. Set 'url' in the params } ``` -### `/issue` +### `/Issue` Describe the issue you'd like to generate, and Continue will turn into a well-formatted title and body, then give you a link to the draft so you can submit. Make sure to set the URL of the repository you want to generate issues for. @@ -122,7 +122,7 @@ Describe the issue you'd like to generate, and Continue will turn into a well-fo } ``` -### `/so` +### `/So` The StackOverflow slash command will automatically pull results from StackOverflow to answer your question, quoting links along with its answer. @@ -137,7 +137,7 @@ The StackOverflow slash command will automatically pull results from StackOverfl } ``` -### `/onboard` +### `/Onboard` The Onboard slash command helps to familiarize yourself with a new project by analyzing the project structure, READMEs, and dependency files. It identifies key folders, explains their purpose, and highlights popular packages used. Additionally, it offers insights into the project's architecture. From f87e95880c43638e1ef3371f9d438a4b9f8c5b4c Mon Sep 17 00:00:00 2001 From: Nate Date: Wed, 18 Sep 2024 16:03:44 -0700 Subject: [PATCH 111/268] update local proxy server url when debugging --- core/control-plane/client.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/control-plane/client.ts b/core/control-plane/client.ts index f54b550b2..25ae3e962 100644 --- a/core/control-plane/client.ts +++ b/core/control-plane/client.ts @@ -20,7 +20,7 @@ export interface ControlPlaneModelDescription extends ModelDescription {} export const DEFAULT_CONTROL_PLANE_PROXY_URL = process.env.CONTROL_PLANE_ENV === "local" - ? "http://localhost:3001/proxy" + ? "http://localhost:3001/" : "https://control-plane-proxy.continue.dev/"; export const CONTROL_PLANE_URL = From c0fbf2c74b35d1286f1e3f4f4b2664ea2dc04c90 Mon Sep 17 00:00:00 2001 From: Test Date: Wed, 18 Sep 2024 16:05:25 -0700 Subject: [PATCH 112/268] Update slash-commands.md --- docs/docs/customize/slash-commands.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/docs/docs/customize/slash-commands.md b/docs/docs/customize/slash-commands.md index 4ba0c544b..702d00c7c 100644 --- a/docs/docs/customize/slash-commands.md +++ b/docs/docs/customize/slash-commands.md @@ -14,7 +14,7 @@ To use any of the built-in slash commands, open `config.json` and add it to the ### `/Edit` -Select code with `ctrl/cmd + L` (VS Code) or `ctrl/cmd + J` (JetBrains), and then type "/edit", followed by instructions for the edit. Continue will stream the changes into a side-by-side diff editor. +Select code with `ctrl/cmd + L` (VS Code) or `ctrl/cmd + J` (JetBrains), and then type `/Edit`, followed by instructions for the edit. Continue will stream the changes into a side-by-side diff editor. ```json title="config.json" { @@ -29,7 +29,7 @@ Select code with `ctrl/cmd + L` (VS Code) or `ctrl/cmd + J` (JetBrains), and the ### `/Comment` -Comment works just like /edit, except it will automatically prompt the LLM to comment the code. +Comment works just like `/Edit`, except it will automatically prompt the LLM to comment the code. ```json title="config.json" { @@ -44,7 +44,7 @@ Comment works just like /edit, except it will automatically prompt the LLM to co ### `/Share` -Type "/share" to generate a shareable markdown transcript of your current chat history. +Generate a shareable markdown transcript of your current chat history. ```json title="config.json" { From d47d4279eb88047dd56b2410287db9d5508151dc Mon Sep 17 00:00:00 2001 From: Lester Hairston Date: Wed, 18 Sep 2024 20:32:05 -0500 Subject: [PATCH 113/268] contributed fix --- CONTRIBUTING.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index 9fad5eb06..a9ecb709e 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -211,9 +211,9 @@ Continue has support for more than a dozen different LLM "providers", making it - At least one of `_streamComplete` or `_streamChat` - This is the function that makes the request to the API and returns the streamed response. You only need to implement one because Continue can automatically convert between "chat" and "raw completion". 2. Add your provider to the `LLMs` array in [core/llm/llms/index.ts](./core/llm/llms/index.ts). -3. If your provider supports images, add it to the `PROVIDER_SUPPORTS_IMAGES` array in [core/llm/index.ts](./core/llm/index.ts). +3. If your provider supports images, add it to the `PROVIDER_SUPPORTS_IMAGES` array in [core/llm/autodetect.ts](./core/llm/autodetect.ts). 4. Add the necessary JSON Schema types to [`config_schema.json`](./extensions/vscode/config_schema.json). This makes sure that Intellisense shows users what options are available for your provider when they are editing `config.json`. -5. Add a documentation page for your provider in [`docs/docs/reference/Model Providers`](./docs/docs/reference/Model%20Providers). This should show an example of configuring your provider in `config.json` and explain what options are available. +5. Add a documentation page for your provider in [`docs/docs/customize/model-providers`](./docs/docs/customize/model-providers). This should show an example of configuring your provider in `config.json` and explain what options are available. ### Adding Models From 728e7767ca010726a533b1f768666b37f6ff6b9c Mon Sep 17 00:00:00 2001 From: Test Date: Wed, 18 Sep 2024 18:40:02 -0700 Subject: [PATCH 114/268] add accept/reject buttons --- core/edit/lazy/deterministic.test.ts | 4 + core/edit/lazy/deterministic2.ts | 97 ----------- core/edit/lazy/prompts.ts | 6 +- core/edit/lazy/replace.ts | 4 +- core/edit/lazy/streamLazyApply.ts | 12 -- .../no-lazy-single-class.js.diff | 30 ++++ core/protocol/ideWebview.ts | 2 + extensions/vscode/src/commands.ts | 27 ++- .../vscode/src/extension/VsCodeMessenger.ts | 8 + extensions/vscode/src/util/util.ts | 14 ++ .../components/markdown/CodeBlockToolbar.tsx | 160 +++++++++++------- .../components/markdown/PreWithToolbar.tsx | 6 +- .../markdown/StyledMarkdownPreview.tsx | 6 +- .../markdown/ToolbarButtonWithTooltip.tsx | 31 ++++ 14 files changed, 215 insertions(+), 192 deletions(-) delete mode 100644 core/edit/lazy/deterministic2.ts create mode 100644 core/edit/lazy/test-examples/no-lazy-single-class.js.diff create mode 100644 gui/src/components/markdown/ToolbarButtonWithTooltip.tsx diff --git a/core/edit/lazy/deterministic.test.ts b/core/edit/lazy/deterministic.test.ts index fe6fcf52f..e3db3f280 100644 --- a/core/edit/lazy/deterministic.test.ts +++ b/core/edit/lazy/deterministic.test.ts @@ -150,4 +150,8 @@ describe("deterministicApplyLazyEdit(", () => { test("no lazy blocks", async () => { await expectDiff("no-lazy.js"); }); + + test("no lazy blocks in single top level class", async () => { + await expectDiff("no-lazy-single-class.js"); + }); }); diff --git a/core/edit/lazy/deterministic2.ts b/core/edit/lazy/deterministic2.ts deleted file mode 100644 index 2ffffd43a..000000000 --- a/core/edit/lazy/deterministic2.ts +++ /dev/null @@ -1,97 +0,0 @@ -import { diffLines, type Change } from "diff"; -import { DiffLine } from "../.."; -import { convertMyersChangeToDiffLines } from "../../diff/myers"; -import { isLazyLine } from "./deterministic"; - -function bubbleUpLazyBlocks(originalChanges: Change[]): Change[] { - const changes = [...originalChanges]; - for (let i = 1; i < changes.length; i++) { - const change = changes[i]; - if ( - // Single line - change.count === 1 && - // lazy line - isLazyLine(change.value) && - // with a removal above - changes[i - 1].removed - ) { - // Bubble up and merge together the removals into a single remove change - while ( - i + 1 < changes.length && - (changes[i + 1].value.trim() === "" || changes[i + 1].removed) - ) { - // Merge the removed/new line with the removal above - const changeValue = changes[i + 1].value; - changes[i - 1].value += changeValue; - - // and then delete - changes.splice(i + 1, 1); - } - } - } - return changes; -} - -export async function deterministicApplyLazyEdit2( - oldFile: string, - newLazyFile: string, - filename: string, -): Promise { - // // Strip surrounding new lines away from lazy blocks - // const lazyFileLines = newLazyFile.split("\n"); - // const processedLazyFileLines = []; - // for (let i = 0; i < lazyFileLines.length - 1; ++i) { - // const line = lazyFileLines[i]; - // const nextLine = lazyFileLines[i + 1]; - // if (line.trim() === "" && isLazyLine(nextLine)) { - // continue; - // } else if (isLazyLine(line) && nextLine.trim() === "") { - // i++; - // processedLazyFileLines.push(line); - // continue; - // } - // processedLazyFileLines.push(line); - // } - // newLazyFile = processedLazyFileLines.join("\n"); - - let theirFormat = diffLines(oldFile, newLazyFile, { - newlineIsToken: false, - }); - const lines: DiffLine[] = []; - const removedLinesBuffer: DiffLine[] = []; - - theirFormat = bubbleUpLazyBlocks(theirFormat); - - for (const change of theirFormat) { - if (!change.added && !change.removed) { - lines.push(...removedLinesBuffer); - removedLinesBuffer.length = 0; - lines.push(...convertMyersChangeToDiffLines(change)); - } else if (change.added && isLazyLine(change.value.trim())) { - lines.push( - ...removedLinesBuffer.map((diffLine) => ({ - ...diffLine, - type: "same" as const, - })), - ); - removedLinesBuffer.length = 0; - if (!isLazyLine(change.value.split("\n")[0])) { - lines.push( - ...convertMyersChangeToDiffLines({ - ...change, - value: change.value.split("\n").slice(0, -1).join("\n"), - }), - ); - } - } else if (change.added) { - lines.push(...removedLinesBuffer); - removedLinesBuffer.length = 0; - lines.push(...convertMyersChangeToDiffLines(change)); - } else if (change.removed) { - removedLinesBuffer.push(...convertMyersChangeToDiffLines(change)); - } - } - - lines.push(...removedLinesBuffer); - return lines; -} diff --git a/core/edit/lazy/prompts.ts b/core/edit/lazy/prompts.ts index aa8328e76..9b8d6abb9 100644 --- a/core/edit/lazy/prompts.ts +++ b/core/edit/lazy/prompts.ts @@ -10,15 +10,15 @@ type LazyApplyPrompt = ( ) => ChatMessage[]; const RULES = [ - `Your response should be a code block containing a rewritten version of the file.`, + "Your response should be a code block containing a rewritten version of the file.", `Whenever any part of the code is the same as before, you may simply indicate this with a comment that says "${UNCHANGED_CODE}" instead of rewriting.`, - `You must keep at least one line above and below from the original code, so that we can identify what the previous code was.`, + "You must keep at least one line above and below from the original code, so that we can identify what the previous code was.", `Do not place miscellaneous "${UNCHANGED_CODE}" comments at the top or bottom of the file when there is nothing to replace them.`, // `You should write "${UNCHANGED_CODE}" at least for each function that is unchanged, rather than grouping them into a single comment.`, // `You should lean toward using a smaller number of these comments rather than rewriting it for every function if all of them are unchanged.`, // `You may do this for imports as well if needed.`, // `Do not explain your changes either before or after the code block.`, - `The code should always be syntactically valid, even with the comments.`, + "The code should always be syntactically valid, even with the comments.", ]; function claude35SonnetLazyApplyPrompt( diff --git a/core/edit/lazy/replace.ts b/core/edit/lazy/replace.ts index 556255ad7..ff6701251 100644 --- a/core/edit/lazy/replace.ts +++ b/core/edit/lazy/replace.ts @@ -34,7 +34,9 @@ export function getReplacementByMatching( // Find the end index in the old code const endIndex = oldLines.findIndex((line, index) => { - if (index <= startIndex + linesToMatchBelow) return false; + if (index <= startIndex + linesToMatchBelow) { + return false; + } const chunk = oldLines.slice(index, index + linesToMatchBelow).join("\n"); return chunk === afterContext; }); diff --git a/core/edit/lazy/streamLazyApply.ts b/core/edit/lazy/streamLazyApply.ts index a9378bfa3..24a369945 100644 --- a/core/edit/lazy/streamLazyApply.ts +++ b/core/edit/lazy/streamLazyApply.ts @@ -38,18 +38,6 @@ export async function* streamLazyApply( )) { yield line; } - - // let r = getReplacementByMatching(oldCode, linesBefore, linesAfter); - // if (r) { - // for (let line of r.split("\n")) { - // yield line; - // } - // } - // // r = await getReplacementWithLlm(oldCode, linesBefore, linesAfter, llm); - // // if (r) { - // // return r; - // // } - // return "// NO REPLACEMENT FOUND"; } let lazyCompletionLines = streamLines(lazyCompletion, true); diff --git a/core/edit/lazy/test-examples/no-lazy-single-class.js.diff b/core/edit/lazy/test-examples/no-lazy-single-class.js.diff new file mode 100644 index 000000000..bb561271d --- /dev/null +++ b/core/edit/lazy/test-examples/no-lazy-single-class.js.diff @@ -0,0 +1,30 @@ +class Calculator { + constructor() { + this.result = 0; + } + + reset() { + this.result = 0; + return this; + } +} +--- + + reset() { + this.result = 1; + return this; + } + +--- + +class Calculator { + constructor() { + this.result = 0; + } + + reset() { +- this.result = 0; ++ this.result = 1; + return this; + } +} \ No newline at end of file diff --git a/core/protocol/ideWebview.ts b/core/protocol/ideWebview.ts index 6a38731c9..a2762ce20 100644 --- a/core/protocol/ideWebview.ts +++ b/core/protocol/ideWebview.ts @@ -27,6 +27,8 @@ export type ToIdeFromWebviewProtocol = ToIdeFromWebviewOrCoreProtocol & { copyText: [{ text: string }, void]; "jetbrains/editorInsetHeight": [{ height: number }, void]; setGitHubAuthToken: [{ token: string }, void]; + acceptDiff: [{ filepath: string }, void]; + rejectDiff: [{ filepath: string }, void]; }; export type ToWebviewFromIdeProtocol = ToWebviewFromIdeOrCoreProtocol & { diff --git a/extensions/vscode/src/commands.ts b/extensions/vscode/src/commands.ts index e6b3e3a4f..abc33fe8b 100644 --- a/extensions/vscode/src/commands.ts +++ b/extensions/vscode/src/commands.ts @@ -29,6 +29,7 @@ import { QuickEdit, QuickEditShowParams } from "./quickEdit/QuickEditQuickPick"; import { Battery } from "./util/battery"; import { uriFromFilePath } from "./util/vscode"; import type { VsCodeWebviewProtocol } from "./webviewProtocol"; +import { getFullyQualifiedPath } from "./util/util"; let fullScreenPanel: vscode.WebviewPanel | undefined; @@ -229,20 +230,30 @@ const commandsMap: ( "continue.acceptDiff": async (newFilepath?: string | vscode.Uri) => { captureCommandTelemetry("acceptDiff"); - if (newFilepath instanceof vscode.Uri) { - newFilepath = newFilepath.fsPath; + let fullPath = newFilepath; + + if (fullPath instanceof vscode.Uri) { + fullPath = fullPath.fsPath; + } else { + fullPath = getFullyQualifiedPath(fullPath); } - verticalDiffManager.clearForFilepath(newFilepath, true); - await diffManager.acceptDiff(newFilepath); + + verticalDiffManager.clearForFilepath(fullPath, true); + await diffManager.acceptDiff(fullPath); }, "continue.rejectDiff": async (newFilepath?: string | vscode.Uri) => { captureCommandTelemetry("rejectDiff"); - if (newFilepath instanceof vscode.Uri) { - newFilepath = newFilepath.fsPath; + let fullPath = newFilepath; + + if (fullPath instanceof vscode.Uri) { + fullPath = fullPath.fsPath; + } else { + fullPath = getFullyQualifiedPath(fullPath); } - verticalDiffManager.clearForFilepath(newFilepath, false); - await diffManager.rejectDiff(newFilepath); + + verticalDiffManager.clearForFilepath(fullPath, false); + await diffManager.rejectDiff(fullPath); }, "continue.acceptVerticalDiffBlock": (filepath?: string, index?: number) => { captureCommandTelemetry("acceptVerticalDiffBlock"); diff --git a/extensions/vscode/src/extension/VsCodeMessenger.ts b/extensions/vscode/src/extension/VsCodeMessenger.ts index 2949480ad..20c465daf 100644 --- a/extensions/vscode/src/extension/VsCodeMessenger.ts +++ b/extensions/vscode/src/extension/VsCodeMessenger.ts @@ -126,6 +126,14 @@ export class VsCodeMessenger { ); }); + webviewProtocol.on("acceptDiff", async ({ data: { filepath } }) => { + await vscode.commands.executeCommand("continue.acceptDiff", filepath); + }); + + webviewProtocol.on("rejectDiff", async ({ data: { filepath } }) => { + await vscode.commands.executeCommand("continue.rejectDiff", filepath); + }); + this.onWebview("applyToCurrentFile", async (msg) => { // Get active text editor const editor = vscode.window.activeTextEditor; diff --git a/extensions/vscode/src/util/util.ts b/extensions/vscode/src/util/util.ts index fb0d88c14..2d0ae72a7 100644 --- a/extensions/vscode/src/util/util.ts +++ b/extensions/vscode/src/util/util.ts @@ -1,4 +1,5 @@ const os = require("node:os"); +import path from "node:path"; import * as vscode from "vscode"; function charIsEscapedAtIndex(index: number, str: string): boolean { @@ -121,3 +122,16 @@ export function getExtensionVersion(): string { const extension = vscode.extensions.getExtension("continue.continue"); return extension?.packageJSON.version || "0.1.0"; } + +export function getFullyQualifiedPath(filepath?: string) { + if (filepath && !path.isAbsolute(filepath)) { + const workspaceFolders = vscode.workspace.workspaceFolders; + if (workspaceFolders && workspaceFolders.length > 0) { + return path.join(workspaceFolders[0].uri.fsPath, filepath); + } else { + vscode.window.showErrorMessage( + "Unable to resolve filepath: no workspace folder found", + ); + } + } +} diff --git a/gui/src/components/markdown/CodeBlockToolbar.tsx b/gui/src/components/markdown/CodeBlockToolbar.tsx index d1dd52c9a..5fdb5880c 100644 --- a/gui/src/components/markdown/CodeBlockToolbar.tsx +++ b/gui/src/components/markdown/CodeBlockToolbar.tsx @@ -4,8 +4,9 @@ import { ClipboardIcon, PlayIcon, CommandLineIcon, + XMarkIcon, } from "@heroicons/react/24/outline"; -import { useCallback, useContext, useState } from "react"; +import { useContext, useState } from "react"; import { useDispatch } from "react-redux"; import styled from "styled-components"; import { @@ -17,10 +18,16 @@ import { import { IdeMessengerContext } from "../../context/IdeMessenger"; import { useWebviewListener } from "../../hooks/useWebviewListener"; import { incrementNextCodeBlockToApplyIndex } from "../../redux/slices/uiStateSlice"; -import { getAltKeyLabel, getFontSize, isJetBrains } from "../../util"; +import { + getAltKeyLabel, + getFontSize, + getMetaKeyLabel, + isJetBrains, +} from "../../util"; import FileIcon from "../FileIcon"; import ButtonWithTooltip from "../ButtonWithTooltip"; import { CopyButton as CopyButtonHeader } from "./CopyButton"; +import { ToolbarButtonWithTooltip } from "./ToolbarButtonWithTooltip"; const ToolbarDiv = styled.div` display: flex; @@ -35,7 +42,7 @@ const ToolbarDiv = styled.div` margin: 0; `; -const ToolbarButton = styled.button` +export const ToolbarButton = styled.button` display: flex; align-items: center; border: none; @@ -77,7 +84,7 @@ interface CodeBlockToolBarProps { bottom: boolean; language: string | undefined; isNextCodeBlock: boolean; - filename?: string; + filepath?: string; } const terminalLanguages = ["bash", "sh"]; @@ -116,49 +123,13 @@ function getTerminalCommand(text: string): string { return text.startsWith("$ ") ? text.slice(2) : text; } -function useApplyAction(text: string, isTerminal: boolean) { - const [applying, setApplying] = useState(false); - const ideMessenger = useContext(IdeMessengerContext); - - const handleApply = useCallback(() => { - if (applying) return; - - if (isTerminal) { - ideMessenger.ide.runCommand(getTerminalCommand(text)); - } else { - ideMessenger.post("applyToCurrentFile", { text }); - setApplying(true); - setTimeout(() => setApplying(false), 2000); - } - }, [applying, isTerminal, text, ideMessenger]); - - return { applying, handleApply }; -} - -function useCopyAction(text: string) { - const [copied, setCopied] = useState(false); - const ideMessenger = useContext(IdeMessengerContext); - - const handleCopy = useCallback(() => { - if (isJetBrains()) { - ideMessenger.request("copyText", { text }); - } else { - navigator.clipboard.writeText(text); - } - - setCopied(true); - setTimeout(() => setCopied(false), 2000); - }, [text, ideMessenger]); - - return { copied, handleCopy }; -} - function CodeBlockToolBar(props: CodeBlockToolBarProps) { const ideMessenger = useContext(IdeMessengerContext); const dispatch = useDispatch(); const isTerminal = isTerminalCodeBlock(props.language, props.text); - const { applying, handleApply } = useApplyAction(props.text, isTerminal); - const { copied, handleCopy } = useCopyAction(props.text); + const [showAcceptReject, setShowAcceptReject] = useState(false); + const [isCopied, setIsCopied] = useState(false); + const [isApplying, setIsApplying] = useState(false); // Handle apply keyboard shortcut useWebviewListener( @@ -173,23 +144,57 @@ function CodeBlockToolBar(props: CodeBlockToolBarProps) { !props.isNextCodeBlock, ); + function onClickCopy() { + if (isJetBrains()) { + ideMessenger.request("copyText", { text: props.text }); + } else { + navigator.clipboard.writeText(props.text); + } + + setIsCopied(true); + setTimeout(() => setIsCopied(false), 2000); + } + + function onClickApply() { + if (isApplying) return; + + if (isTerminal) { + ideMessenger.ide.runCommand(getTerminalCommand(props.text)); + } else { + ideMessenger.post("applyToCurrentFile", { text: props.text }); + setIsApplying(true); + setTimeout(() => setIsApplying(false), 2000); + setShowAcceptReject(true); + } + } + function onClickHeader() { // TODO: Need to turn into relative or fq path ideMessenger.post("showFile", { - filepath: props.filename, + filepath: props.filepath, }); } - if (!props.filename) { + function onClickAccept() { + ideMessenger.post("acceptDiff", { filepath: props.filepath }); + setShowAcceptReject(false); + } + + function onClickReject() { + ideMessenger.post("rejectDiff", { filepath: props.filepath }); + setShowAcceptReject(false); + } + + if (!props.filepath) { return ( {!isJetBrains() && isTerminal && ( @@ -215,17 +220,17 @@ function CodeBlockToolBar(props: CodeBlockToolBarProps) { className="flex items-center cursor-pointer py-0.5 px-0.5" onClick={onClickHeader} > - - {props.filename}{" "} + + {props.filepath}{" "}
-
- +
+
- {copied ? ( + {isCopied ? ( <> Copied @@ -240,19 +245,44 @@ function CodeBlockToolBar(props: CodeBlockToolBarProps) { {!isJetBrains() && ( - -
- {applying ? ( - - ) : ( - - )} - {applying ? "Applying..." : "Apply"} -
-
+
+ {!showAcceptReject ? ( + +
+ + Apply +
+
+ ) : ( + <> + + +
+ Reject +
+
+ + + +
+ Accept +
+
+ + )} +
)}
diff --git a/gui/src/components/markdown/PreWithToolbar.tsx b/gui/src/components/markdown/PreWithToolbar.tsx index 433d44d4f..903d7cb7d 100644 --- a/gui/src/components/markdown/PreWithToolbar.tsx +++ b/gui/src/components/markdown/PreWithToolbar.tsx @@ -34,7 +34,7 @@ function PreWithToolbar(props: { children: any; language: string | null; codeBlockIndex: number; - filename?: string | undefined; + filepath?: string | undefined; }) { const uiConfig = useUIConfig(); const toolbarBottom = uiConfig?.codeBlockToolbarPosition == "bottom"; @@ -64,13 +64,13 @@ function PreWithToolbar(props: { onMouseEnter={() => setHovering(true)} onMouseLeave={() => setHovering(false)} > - {!!props.filename ? ( + {!!props.filepath ? ( ) : ( hovering && ( diff --git a/gui/src/components/markdown/StyledMarkdownPreview.tsx b/gui/src/components/markdown/StyledMarkdownPreview.tsx index 02be7c0a6..a386e3e87 100644 --- a/gui/src/components/markdown/StyledMarkdownPreview.tsx +++ b/gui/src/components/markdown/StyledMarkdownPreview.tsx @@ -107,7 +107,7 @@ const StyledMarkdownPreview = memo(function StyledMarkdownPreview( if (node.meta) { node.data = node.data || {}; node.data.hProperties = node.data.hProperties || {}; - node.data.hProperties.filename = node.meta; + node.data.hProperties.filepath = node.meta; } }); }; @@ -146,13 +146,13 @@ const StyledMarkdownPreview = memo(function StyledMarkdownPreview( ); }, pre: ({ node, ...preProps }) => { - const { className, filename } = preProps?.children?.[0]?.props; + const { className, filepath } = preProps?.children?.[0]?.props; return props.showCodeBorder ? ( diff --git a/gui/src/components/markdown/ToolbarButtonWithTooltip.tsx b/gui/src/components/markdown/ToolbarButtonWithTooltip.tsx new file mode 100644 index 000000000..355ffb434 --- /dev/null +++ b/gui/src/components/markdown/ToolbarButtonWithTooltip.tsx @@ -0,0 +1,31 @@ +import { useMemo } from "react"; +import { ToolbarButton } from "./CodeBlockToolbar"; +import { Tooltip } from "react-tooltip"; +import { lightGray } from ".."; + +export function ToolbarButtonWithTooltip({ + onClick, + children, + tooltipContent, +}) { + const tooltipId = useMemo( + () => `tooltip-${Math.random().toString(36).substr(2, 9)}`, + [], + ); + + return ( + <> + + {children} + + + {tooltipContent} + + + ); +} From dd8a38d6bf37e8213981d30754ba6c23cdc2530e Mon Sep 17 00:00:00 2001 From: Nate Date: Wed, 18 Sep 2024 23:25:09 -0700 Subject: [PATCH 115/268] ipynb ast parsing --- core/util/treeSitter.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/core/util/treeSitter.ts b/core/util/treeSitter.ts index 204e2e3df..a6fd0f2db 100644 --- a/core/util/treeSitter.ts +++ b/core/util/treeSitter.ts @@ -45,6 +45,7 @@ export const supportedLanguages: { [key: string]: string } = { mjs: "javascript", cjs: "javascript", py: "python", + ipynb: "python", pyw: "python", pyi: "python", el: "elisp", From 3d6ce20805b36e09b8f518faff8493be2452e2e6 Mon Sep 17 00:00:00 2001 From: Nate Date: Wed, 18 Sep 2024 23:25:35 -0700 Subject: [PATCH 116/268] don't apply if problematic --- core/edit/lazy/applyCodeBlock.ts | 12 ++-- core/edit/lazy/deterministic.ts | 59 ++++++++++++++----- .../vscode/src/extension/VsCodeMessenger.ts | 7 ++- 3 files changed, 58 insertions(+), 20 deletions(-) diff --git a/core/edit/lazy/applyCodeBlock.ts b/core/edit/lazy/applyCodeBlock.ts index 8282682b0..3a0083d65 100644 --- a/core/edit/lazy/applyCodeBlock.ts +++ b/core/edit/lazy/applyCodeBlock.ts @@ -23,9 +23,13 @@ export async function applyCodeBlock( newFile, filename, ); - const diffGenerator = generateLines(diffLines!); - return [true, diffGenerator]; - } else { - return [false, streamLazyApply(oldFile, filename, newFile, llm, fastLlm)]; + + // Fall back to LLM method if we couldn't apply deterministically + if (diffLines !== undefined) { + const diffGenerator = generateLines(diffLines!); + return [true, diffGenerator]; + } } + + return [false, streamLazyApply(oldFile, filename, newFile, llm, fastLlm)]; } diff --git a/core/edit/lazy/deterministic.ts b/core/edit/lazy/deterministic.ts index e4d93c17c..aa03c086b 100644 --- a/core/edit/lazy/deterministic.ts +++ b/core/edit/lazy/deterministic.ts @@ -7,25 +7,28 @@ import { myersDiff } from "../../diff/myers"; import { getParserForFile } from "../../util/treeSitter"; import { findInAst } from "./findInAst"; -type LazyBlockReplacements = Array<{ - lazyBlockNode: Parser.SyntaxNode; +type AstReplacements = Array<{ + nodeToReplace: Parser.SyntaxNode; replacementNodes: Parser.SyntaxNode[]; }>; function reconstructNewFile( oldFile: string, newFile: string, - lazyBlockReplacements: LazyBlockReplacements, + lazyBlockReplacements: AstReplacements, ): string { // Sort acc by reverse line number lazyBlockReplacements - .sort((a, b) => a.lazyBlockNode.startIndex - b.lazyBlockNode.startIndex) + .sort((a, b) => a.nodeToReplace.startIndex - b.nodeToReplace.startIndex) .reverse(); // Reconstruct entire file by replacing lazy blocks with the replacement nodes const oldFileLines = oldFile.split("\n"); const newFileChars = newFile.split(""); - for (const { lazyBlockNode, replacementNodes } of lazyBlockReplacements) { + for (const { + nodeToReplace: lazyBlockNode, + replacementNodes, + } of lazyBlockReplacements) { // Get the full string from the replacement nodes let replacementText = ""; if (replacementNodes.length > 0) { @@ -87,6 +90,15 @@ function reconstructNewFile( return newFileChars.join(""); } +const REMOVAL_PERCENTAGE_THRESHOLD = 0.3; +function shouldRejectDiff(diff: DiffLine[]): boolean { + const numRemovals = diff.filter((line) => line.type === "old").length; + if (numRemovals / diff.length > REMOVAL_PERCENTAGE_THRESHOLD) { + return true; + } + return false; +} + // TODO: If we don't have high confidence, return undefined to fall back to slower methods export async function deterministicApplyLazyEdit( oldFile: string, @@ -104,19 +116,36 @@ export async function deterministicApplyLazyEdit( // If there is no lazy block anywhere, we add our own to the outsides // so that large chunks of the file don't get removed if (!findInAst(newTree.rootNode, isLazyBlock)) { - const ext = path.extname(filename).slice(1); - const language = LANGUAGES[ext]; - if (language) { - newLazyFile = `${language.singleLineComment} ... existing code ...\n\n${newLazyFile}\n\n${language.singleLineComment} ... existing code...`; - newTree = parser.parse(newLazyFile); + // First, we need to check whether there are matching (similar) nodes at the root level + const firstSimilarNode = findInAst(oldTree.rootNode, (node) => + nodesAreSimilar(node, newTree.rootNode.children[0]), + ); + if (firstSimilarNode?.parent?.equals(oldTree.rootNode)) { + // If so, we tack lazy blocks to start and end, and run the usual algorithm + const ext = path.extname(filename).slice(1); + const language = LANGUAGES[ext]; + if (language) { + newLazyFile = `${language.singleLineComment} ... existing code ...\n\n${newLazyFile}\n\n${language.singleLineComment} ... existing code...`; + newTree = parser.parse(newLazyFile); + } + } else { + // If not, we need to recursively search for the nodes that are being rewritten, + // and we apply a slightly different algorithm + return undefined; // TODO } } - const acc: LazyBlockReplacements = []; + const acc: AstReplacements = []; findLazyBlockReplacements(oldTree.rootNode, newTree.rootNode, acc); const newFullFile = reconstructNewFile(oldFile, newLazyFile, acc); const diff = myersDiff(oldFile, newFullFile); + + // If the diff is too messy and seems likely borked, we fall back to LLM strategy + if (shouldRejectDiff(diff)) { + return undefined; + } + return diff; } @@ -175,7 +204,7 @@ function nodesAreExact(a: Parser.SyntaxNode, b: Parser.SyntaxNode): boolean { function findLazyBlockReplacements( oldNode: Parser.SyntaxNode, newNode: Parser.SyntaxNode, - acc: LazyBlockReplacements, + acc: AstReplacements, ): void { // Base case if (nodesAreExact(oldNode, newNode)) { @@ -235,7 +264,7 @@ function findLazyBlockReplacements( if (isLazy) { // Record the replacement lines acc.push({ - lazyBlockNode: currentLazyBlockNode!, + nodeToReplace: currentLazyBlockNode!, replacementNodes: [...currentLazyBlockReplacementNodes], }); isLazy = false; @@ -247,7 +276,7 @@ function findLazyBlockReplacements( if (isLazy) { acc.push({ - lazyBlockNode: currentLazyBlockNode!, + nodeToReplace: currentLazyBlockNode!, replacementNodes: [...currentLazyBlockReplacementNodes, ...leftChildren], }); } @@ -256,7 +285,7 @@ function findLazyBlockReplacements( for (const R of rightChildren) { if (isLazyBlock(R)) { acc.push({ - lazyBlockNode: R, + nodeToReplace: R, replacementNodes: [], }); } diff --git a/extensions/vscode/src/extension/VsCodeMessenger.ts b/extensions/vscode/src/extension/VsCodeMessenger.ts index 20c465daf..792d504d3 100644 --- a/extensions/vscode/src/extension/VsCodeMessenger.ts +++ b/extensions/vscode/src/extension/VsCodeMessenger.ts @@ -175,7 +175,12 @@ export class VsCodeMessenger { fastLlm, ); const verticalDiffManager = await this.verticalDiffManagerPromise; - verticalDiffManager.streamDiffLines(diffLines, instant); + if (instant) { + verticalDiffManager.streamDiffLines(diffLines, instant); + } else { + const prompt = `The following code was suggested as an edit:\n\`\`\`\n${msg.data.text}\n\`\`\`\nPlease apply it to the previous code.`; + verticalDiffManager.streamEdit(prompt, modelTitle); + } }); this.onWebview("showTutorial", async (msg) => { From 73319c7eb706e9decf1ed9a8fa1d5bc3df6cd9ab Mon Sep 17 00:00:00 2001 From: Nate Date: Wed, 18 Sep 2024 23:57:45 -0700 Subject: [PATCH 117/268] combine system messages for all LLMs --- core/llm/constructMessages.ts | 84 ++++++++++++++++++++++++++++++++- core/llm/countTokens.ts | 22 +++++++-- core/llm/index.ts | 11 ----- core/llm/llms/Anthropic.ts | 75 ++--------------------------- gui/src/hooks/useChatHandler.ts | 2 +- 5 files changed, 107 insertions(+), 87 deletions(-) diff --git a/core/llm/constructMessages.ts b/core/llm/constructMessages.ts index aaf23563e..d339134e3 100644 --- a/core/llm/constructMessages.ts +++ b/core/llm/constructMessages.ts @@ -1,8 +1,90 @@ import { ChatHistory, ChatMessage, MessagePart } from "../index.js"; -export function constructMessages(history: ChatHistory): ChatMessage[] { +const SYSTEM_MESSAGE = `When generating new code: + +1. Always produce a single code block. +2. Never separate the code into multiple code blocks. +3. Only include the code that is being added. +4. Replace existing code with a "lazy" block like this: "// ... existing code ..." +5. You must always provide 1-2 lines of context above and below a "lazy" block +6. If the user submits a code block that contains a filename in the language specifier, always include the filename in any code block you generate based on that file. The filename should be on the same line as the language specifier in your code block. + +Example 1: +Input: +\`\`\`test.js +import addition from "addition" + +class Calculator { + constructor() { + this.result = 0; + } + + add(number) { + this.result += number; + return this; + } +} +\`\`\` +User request: Add a subtract method + +Output: +\`\`\`javascript test.js +// ... existing code ... +import subtraction from "subtraction" + +class Calculator { + // ... existing code ... + + subtract(number) { + this.result -= number; + return this; + } +} +\`\`\` + +Example 2: +Input: +\`\`\`javascript test.js (6-9) +function helloWorld() {} +\`\`\` + +Output: +\`\`\`javascript test.js +function helloWorld() { + // New code here +} +\`\`\` + +Always follow these guidelines when generating code responses.`; + +function hasCodeBlockWithFilename(content: ChatMessage["content"]): boolean { + const contentStr = typeof content === "string" ? content : content[0].text; + + if (!contentStr) { + return false; + } + + const codeBlockRegex = /```[\w\W]*?\.[\w\W]*/; + return codeBlockRegex.test(contentStr); +} + +export function constructMessages( + history: ChatHistory, + model: string, +): ChatMessage[] { const msgs = []; + // Only using this system message with Sonnet right now + if ( + // hasCodeBlockWithFilename(history[0].message.content) && + model.includes("sonnet") + ) { + msgs.push({ + role: "system" as const, + content: SYSTEM_MESSAGE, + }); + } + for (let i = 0; i < history.length; i++) { const historyItem = history[i]; diff --git a/core/llm/countTokens.ts b/core/llm/countTokens.ts index 06cd4a3bb..0fbadf68b 100644 --- a/core/llm/countTokens.ts +++ b/core/llm/countTokens.ts @@ -332,7 +332,9 @@ function compileChatMessages( systemMessage: string | undefined = undefined, ): ChatMessage[] { const msgsCopy = msgs - ? msgs.map((msg) => ({ ...msg })).filter((msg) => msg.content !== "") + ? msgs + .map((msg) => ({ ...msg })) + .filter((msg) => msg.content !== "" && msg.role !== "system") : []; if (prompt) { @@ -343,10 +345,24 @@ function compileChatMessages( msgsCopy.push(promptMsg); } - if (systemMessage && systemMessage.trim() !== "") { + if ( + (systemMessage && systemMessage.trim() !== "") || + msgs?.[0].role === "system" + ) { + let content = ""; + if (msgs?.[0].role === "system") { + content = stripImages(msgs?.[0].content); + } + if (systemMessage && systemMessage.trim() !== "") { + const shouldAddNewLines = content !== ""; + if (shouldAddNewLines) { + content += "\n\n"; + } + content += systemMessage; + } const systemChatMsg: ChatMessage = { role: "system", - content: systemMessage, + content, }; // Insert as second to last // Later moved to top, but want second-priority to last user message diff --git a/core/llm/index.ts b/core/llm/index.ts index 046d7af3d..1f76ed64c 100644 --- a/core/llm/index.ts +++ b/core/llm/index.ts @@ -561,17 +561,6 @@ ${prompt}`; return { role: "assistant" as ChatMessageRole, content: completion }; } - hasCodeBlockWithFilename(content: ChatMessage["content"]): boolean { - const contentStr = typeof content === "string" ? content : content[0].text; - - if (!contentStr) { - return false; - } - - const codeBlockRegex = /```[\w\W]*?\.[\w\W]*/; - return codeBlockRegex.test(contentStr); - } - async *streamChat( _messages: ChatMessage[], options: LLMFullCompletionOptions = {}, diff --git a/core/llm/llms/Anthropic.ts b/core/llm/llms/Anthropic.ts index 497629338..1f9bea56e 100644 --- a/core/llm/llms/Anthropic.ts +++ b/core/llm/llms/Anthropic.ts @@ -20,63 +20,6 @@ class Anthropic extends BaseLLM { apiBase: "https://api.anthropic.com/v1/", }; - static lazySystemMessage: string = `When generating new code: - -1. Always produce a single code block. -2. Never separate the code into multiple code blocks. -3. Only include the code that is being added. -4. Replace existing code with a "lazy" block like this: "// ... existing code ..." -5. You must always provide 1-2 lines of context above and below a "lazy" block -6. If the user submits a code block that contains a filename in the language specifier, always include the filename in any code block you generate based on that file. The filename should be on the same line as the language specifier in your code block. - -Example 1: -Input: -\`\`\`test.js -import addition from "addition" - -class Calculator { - constructor() { - this.result = 0; - } - - add(number) { - this.result += number; - return this; - } -} -\`\`\` -User request: Add a subtract method - -Output: -\`\`\`javascript test.js -// ... existing code ... -import subtraction from "subtraction" - -class Calculator { - // ... existing code ... - - subtract(number) { - this.result -= number; - return this; - } -} -\`\`\` - -Example 2: -Input: -\`\`\`javascript test.js (6-9) -function helloWorld() {} -\`\`\` - -Output: -\`\`\`javascript test.js -function helloWorld() { - // New code here -} -\`\`\` - -Always follow these guidelines when generating code responses.`; - private _convertArgs(options: CompletionOptions) { const finalOptions = { top_k: options.topK, @@ -135,17 +78,9 @@ Always follow these guidelines when generating code responses.`; const shouldCacheSystemMessage = !!this.systemMessage && !!this.cacheSystemMessage; - // This likely should be set in the base class where we wrap - // _streamChat in a try/catch - let curSystemMsg = this.systemMessage; - - // We only are doing lazy prompting with Sonnet right now - if ( - this.hasCodeBlockWithFilename(messages[0].content) && - options.model?.includes("sonnet") - ) { - this.systemMessage = `${this.systemMessage} ${Anthropic.lazySystemMessage}`; - } + const systemMessage: string = stripImages( + messages.filter((m) => m.role === "system")[0].content, + ); const response = await this.fetch(new URL("messages", this.apiBase), { method: "POST", @@ -169,7 +104,7 @@ Always follow these guidelines when generating code responses.`; cache_control: { type: "ephemeral" }, }, ] - : this.systemMessage, + : systemMessage, }), }); @@ -184,8 +119,6 @@ Always follow these guidelines when generating code responses.`; yield { role: "assistant", content: value.delta.text }; } } - - this.systemMessage = curSystemMsg; } } diff --git a/gui/src/hooks/useChatHandler.ts b/gui/src/hooks/useChatHandler.ts index aec90a4bf..0de66bd44 100644 --- a/gui/src/hooks/useChatHandler.ts +++ b/gui/src/hooks/useChatHandler.ts @@ -253,7 +253,7 @@ function useChatHandler(dispatch: Dispatch, ideMessenger: IIdeMessenger) { }); posthog.capture("userInput", {}); - const messages = constructMessages(newHistory); + const messages = constructMessages(newHistory, defaultModel.model); // Determine if the input is a slash command let commandAndInput = getSlashCommandForInput(content); From eee3f3f561a14f7e6ff0d2d7f276f7471e746957 Mon Sep 17 00:00:00 2001 From: Nate Date: Wed, 18 Sep 2024 23:59:24 -0700 Subject: [PATCH 118/268] fix bug --- core/llm/llms/Anthropic.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/llm/llms/Anthropic.ts b/core/llm/llms/Anthropic.ts index 1f9bea56e..654d50805 100644 --- a/core/llm/llms/Anthropic.ts +++ b/core/llm/llms/Anthropic.ts @@ -79,7 +79,7 @@ class Anthropic extends BaseLLM { !!this.systemMessage && !!this.cacheSystemMessage; const systemMessage: string = stripImages( - messages.filter((m) => m.role === "system")[0].content, + messages.filter((m) => m.role === "system")[0]?.content, ); const response = await this.fetch(new URL("messages", this.apiBase), { From 77dea29a650ba5aa92eea562e6c05d5e6a39ed44 Mon Sep 17 00:00:00 2001 From: Nate Date: Wed, 18 Sep 2024 23:59:48 -0700 Subject: [PATCH 119/268] bump version --- 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 5f3265799..1f206771a 100644 --- a/extensions/vscode/package.json +++ b/extensions/vscode/package.json @@ -2,7 +2,7 @@ "name": "continue", "icon": "media/icon.png", "author": "Continue Dev, Inc", - "version": "0.9.213", + "version": "0.9.211", "repository": { "type": "git", "url": "https://github.com/continuedev/continue" From 7ba4d6c13dbbad833d6656fa5f431871d929d1b4 Mon Sep 17 00:00:00 2001 From: Chris Lane Date: Thu, 19 Sep 2024 10:57:14 +0100 Subject: [PATCH 120/268] Fix broken link in autocomplete model docs --- docs/docs/customize/model-types/autocomplete.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/docs/customize/model-types/autocomplete.md b/docs/docs/customize/model-types/autocomplete.md index 8e98c9186..a21f6be87 100644 --- a/docs/docs/customize/model-types/autocomplete.md +++ b/docs/docs/customize/model-types/autocomplete.md @@ -11,6 +11,6 @@ In Continue, these models are used to display inline [Autocomplete](../../chat/h ## Recommended Autocomplete models -If you have the ability to use any model, we recommend [Codestral](../model-providers/top-level/mistral.md) from Mistral. +If you have the ability to use any model, we recommend `Codestral` with [Mistral](../model-providers/top-level/mistral.md#autocomplete-model). -If you want to run a model locally, we recommend [Starcoder2-3B] with [Ollama]../model-providers/top-level/ollama.md). +If you want to run a model locally, we recommend `Starcoder2-3B` with [Ollama](../model-providers/top-level/ollama.md#autocomplete-model). From 3f8402af19ae010b60adaf893f06548f3cef877c Mon Sep 17 00:00:00 2001 From: FallDownTheSystem <8807171+FallDownTheSystem@users.noreply.github.com> Date: Thu, 19 Sep 2024 15:45:47 +0300 Subject: [PATCH 121/268] Fix chat meta keyboard shortcuts for Windows --- gui/src/components/mainInput/TipTapEditor.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/gui/src/components/mainInput/TipTapEditor.tsx b/gui/src/components/mainInput/TipTapEditor.tsx index 7822eff1a..2fc543907 100644 --- a/gui/src/components/mainInput/TipTapEditor.tsx +++ b/gui/src/components/mainInput/TipTapEditor.tsx @@ -337,7 +337,7 @@ function TipTapEditor(props: TipTapEditorProps) { return true; }, - "Cmd-Enter": () => { + "Mod-Enter": () => { onEnterRef.current({ useCodebase: true, noContext: !useActiveFile, @@ -354,7 +354,7 @@ function TipTapEditor(props: TipTapEditorProps) { return true; }, - "Cmd-Backspace": () => { + "Mod-Backspace": () => { // If you press cmd+backspace wanting to cancel, // but are inside of a text box, it shouldn't // delete the text From 45cd2b1a3583076db1dc7152d9a0476c81693a08 Mon Sep 17 00:00:00 2001 From: Patrick Erichsen Date: Thu, 19 Sep 2024 10:18:15 -0700 Subject: [PATCH 122/268] Update bug_report.yml --- .github/ISSUE_TEMPLATE/bug_report.yml | 15 +++++++-------- 1 file changed, 7 insertions(+), 8 deletions(-) diff --git a/.github/ISSUE_TEMPLATE/bug_report.yml b/.github/ISSUE_TEMPLATE/bug_report.yml index 348fe493d..93c04fe38 100644 --- a/.github/ISSUE_TEMPLATE/bug_report.yml +++ b/.github/ISSUE_TEMPLATE/bug_report.yml @@ -23,16 +23,15 @@ body: description: | Feel free to omit any info that is not relevant to your issue. - - **OS**: e.g. macOS 14.2.1 - - **Continue**: e.g. v0.9.4 - - **IDE**: e.g. VSCode 1.85.1 - - Include also your LLM Model if it is relevant to your issue - - **Model**: e.g. Ollama v0.1.19 - - The contents of your config.json file (e.g. `~/.continue/config.json` on macOS) + - **OS**: macOS + - **Continue version**: v0.9.4 + - **IDE version**: VSCode 1.85.1 + - Model: Claude Sonnet 3.5 + - config.json: `{ "models": ... }` value: | - OS: - - Continue: - - IDE: + - Continue version: + - IDE version: - Model: - config.json: ```json From aa136dd7007b3b3fe0c049fb0a11a212f2a19cd0 Mon Sep 17 00:00:00 2001 From: Adam Shedivy Date: Thu, 19 Sep 2024 14:47:12 -0500 Subject: [PATCH 123/268] update add model UI to include required inputs --- extensions/vscode/package.json | 2 +- gui/package-lock.json | 183 ++++++++++++++++-- gui/package.json | 2 +- gui/src/forms/AddModelForm.tsx | 44 ++++- .../pages/AddNewModel/configs/providers.ts | 15 +- 5 files changed, 215 insertions(+), 31 deletions(-) diff --git a/extensions/vscode/package.json b/extensions/vscode/package.json index 1f206771a..5f3265799 100644 --- a/extensions/vscode/package.json +++ b/extensions/vscode/package.json @@ -2,7 +2,7 @@ "name": "continue", "icon": "media/icon.png", "author": "Continue Dev, Inc", - "version": "0.9.211", + "version": "0.9.213", "repository": { "type": "git", "url": "https://github.com/continuedev/continue" diff --git a/gui/package-lock.json b/gui/package-lock.json index 051455e7b..30f10d3fd 100644 --- a/gui/package-lock.json +++ b/gui/package-lock.json @@ -63,7 +63,7 @@ }, "devDependencies": { "@swc/cli": "^0.3.14", - "@swc/core": "^1.7.2", + "@swc/core": "^1.7.26", "@types/lodash": "^4.17.6", "@types/node": "^20.5.6", "@types/node-fetch": "^2.6.4", @@ -13959,7 +13959,9 @@ } }, "node_modules/@swc/core": { - "version": "1.7.2", + "version": "1.7.26", + "resolved": "https://registry.npmjs.org/@swc/core/-/core-1.7.26.tgz", + "integrity": "sha512-f5uYFf+TmMQyYIoxkn/evWhNGuUzC730dFwAKGwBVHHVoPyak1/GvJUm6i1SKl+2Hrj9oN0i3WSoWWZ4pgI8lw==", "dev": true, "hasInstallScript": true, "license": "Apache-2.0", @@ -13975,16 +13977,16 @@ "url": "https://opencollective.com/swc" }, "optionalDependencies": { - "@swc/core-darwin-arm64": "1.7.2", - "@swc/core-darwin-x64": "1.7.2", - "@swc/core-linux-arm-gnueabihf": "1.7.2", - "@swc/core-linux-arm64-gnu": "1.7.2", - "@swc/core-linux-arm64-musl": "1.7.2", - "@swc/core-linux-x64-gnu": "1.7.2", - "@swc/core-linux-x64-musl": "1.7.2", - "@swc/core-win32-arm64-msvc": "1.7.2", - "@swc/core-win32-ia32-msvc": "1.7.2", - "@swc/core-win32-x64-msvc": "1.7.2" + "@swc/core-darwin-arm64": "1.7.26", + "@swc/core-darwin-x64": "1.7.26", + "@swc/core-linux-arm-gnueabihf": "1.7.26", + "@swc/core-linux-arm64-gnu": "1.7.26", + "@swc/core-linux-arm64-musl": "1.7.26", + "@swc/core-linux-x64-gnu": "1.7.26", + "@swc/core-linux-x64-musl": "1.7.26", + "@swc/core-win32-arm64-msvc": "1.7.26", + "@swc/core-win32-ia32-msvc": "1.7.26", + "@swc/core-win32-x64-msvc": "1.7.26" }, "peerDependencies": { "@swc/helpers": "*" @@ -13995,8 +13997,27 @@ } } }, + "node_modules/@swc/core-darwin-arm64": { + "version": "1.7.26", + "resolved": "https://registry.npmjs.org/@swc/core-darwin-arm64/-/core-darwin-arm64-1.7.26.tgz", + "integrity": "sha512-FF3CRYTg6a7ZVW4yT9mesxoVVZTrcSWtmZhxKCYJX9brH4CS/7PRPjAKNk6kzWgWuRoglP7hkjQcd6EpMcZEAw==", + "cpu": [ + "arm64" + ], + "dev": true, + "license": "Apache-2.0 AND MIT", + "optional": true, + "os": [ + "darwin" + ], + "engines": { + "node": ">=10" + } + }, "node_modules/@swc/core-darwin-x64": { - "version": "1.7.2", + "version": "1.7.26", + "resolved": "https://registry.npmjs.org/@swc/core-darwin-x64/-/core-darwin-x64-1.7.26.tgz", + "integrity": "sha512-az3cibZdsay2HNKmc4bjf62QVukuiMRh5sfM5kHR/JMTrLyS6vSw7Ihs3UTkZjUxkLTT8ro54LI6sV6sUQUbLQ==", "cpu": [ "x64" ], @@ -14010,6 +14031,142 @@ "node": ">=10" } }, + "node_modules/@swc/core-linux-arm-gnueabihf": { + "version": "1.7.26", + "resolved": "https://registry.npmjs.org/@swc/core-linux-arm-gnueabihf/-/core-linux-arm-gnueabihf-1.7.26.tgz", + "integrity": "sha512-VYPFVJDO5zT5U3RpCdHE5v1gz4mmR8BfHecUZTmD2v1JeFY6fv9KArJUpjrHEEsjK/ucXkQFmJ0jaiWXmpOV9Q==", + "cpu": [ + "arm" + ], + "dev": true, + "license": "Apache-2.0", + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": ">=10" + } + }, + "node_modules/@swc/core-linux-arm64-gnu": { + "version": "1.7.26", + "resolved": "https://registry.npmjs.org/@swc/core-linux-arm64-gnu/-/core-linux-arm64-gnu-1.7.26.tgz", + "integrity": "sha512-YKevOV7abpjcAzXrhsl+W48Z9mZvgoVs2eP5nY+uoMAdP2b3GxC0Df1Co0I90o2lkzO4jYBpTMcZlmUXLdXn+Q==", + "cpu": [ + "arm64" + ], + "dev": true, + "license": "Apache-2.0 AND MIT", + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": ">=10" + } + }, + "node_modules/@swc/core-linux-arm64-musl": { + "version": "1.7.26", + "resolved": "https://registry.npmjs.org/@swc/core-linux-arm64-musl/-/core-linux-arm64-musl-1.7.26.tgz", + "integrity": "sha512-3w8iZICMkQQON0uIcvz7+Q1MPOW6hJ4O5ETjA0LSP/tuKqx30hIniCGOgPDnv3UTMruLUnQbtBwVCZTBKR3Rkg==", + "cpu": [ + "arm64" + ], + "dev": true, + "license": "Apache-2.0 AND MIT", + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": ">=10" + } + }, + "node_modules/@swc/core-linux-x64-gnu": { + "version": "1.7.26", + "resolved": "https://registry.npmjs.org/@swc/core-linux-x64-gnu/-/core-linux-x64-gnu-1.7.26.tgz", + "integrity": "sha512-c+pp9Zkk2lqb06bNGkR2Looxrs7FtGDMA4/aHjZcCqATgp348hOKH5WPvNLBl+yPrISuWjbKDVn3NgAvfvpH4w==", + "cpu": [ + "x64" + ], + "dev": true, + "license": "Apache-2.0 AND MIT", + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": ">=10" + } + }, + "node_modules/@swc/core-linux-x64-musl": { + "version": "1.7.26", + "resolved": "https://registry.npmjs.org/@swc/core-linux-x64-musl/-/core-linux-x64-musl-1.7.26.tgz", + "integrity": "sha512-PgtyfHBF6xG87dUSSdTJHwZ3/8vWZfNIXQV2GlwEpslrOkGqy+WaiiyE7Of7z9AvDILfBBBcJvJ/r8u980wAfQ==", + "cpu": [ + "x64" + ], + "dev": true, + "license": "Apache-2.0 AND MIT", + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": ">=10" + } + }, + "node_modules/@swc/core-win32-arm64-msvc": { + "version": "1.7.26", + "resolved": "https://registry.npmjs.org/@swc/core-win32-arm64-msvc/-/core-win32-arm64-msvc-1.7.26.tgz", + "integrity": "sha512-9TNXPIJqFynlAOrRD6tUQjMq7KApSklK3R/tXgIxc7Qx+lWu8hlDQ/kVPLpU7PWvMMwC/3hKBW+p5f+Tms1hmA==", + "cpu": [ + "arm64" + ], + "dev": true, + "license": "Apache-2.0 AND MIT", + "optional": true, + "os": [ + "win32" + ], + "engines": { + "node": ">=10" + } + }, + "node_modules/@swc/core-win32-ia32-msvc": { + "version": "1.7.26", + "resolved": "https://registry.npmjs.org/@swc/core-win32-ia32-msvc/-/core-win32-ia32-msvc-1.7.26.tgz", + "integrity": "sha512-9YngxNcG3177GYdsTum4V98Re+TlCeJEP4kEwEg9EagT5s3YejYdKwVAkAsJszzkXuyRDdnHUpYbTrPG6FiXrQ==", + "cpu": [ + "ia32" + ], + "dev": true, + "license": "Apache-2.0 AND MIT", + "optional": true, + "os": [ + "win32" + ], + "engines": { + "node": ">=10" + } + }, + "node_modules/@swc/core-win32-x64-msvc": { + "version": "1.7.26", + "resolved": "https://registry.npmjs.org/@swc/core-win32-x64-msvc/-/core-win32-x64-msvc-1.7.26.tgz", + "integrity": "sha512-VR+hzg9XqucgLjXxA13MtV5O3C0bK0ywtLIBw/+a+O+Oc6mxFWHtdUeXDbIi5AiPbn0fjgVJMqYnyjGyyX8u0w==", + "cpu": [ + "x64" + ], + "dev": true, + "license": "Apache-2.0 AND MIT", + "optional": true, + "os": [ + "win32" + ], + "engines": { + "node": ">=10" + } + }, "node_modules/@swc/counter": { "version": "0.1.3", "dev": true, diff --git a/gui/package.json b/gui/package.json index 2b6bff3d1..9eefbd9fd 100644 --- a/gui/package.json +++ b/gui/package.json @@ -66,7 +66,7 @@ }, "devDependencies": { "@swc/cli": "^0.3.14", - "@swc/core": "^1.7.2", + "@swc/core": "^1.7.26", "@types/lodash": "^4.17.6", "@types/node": "^20.5.6", "@types/node-fetch": "^2.6.4", diff --git a/gui/src/forms/AddModelForm.tsx b/gui/src/forms/AddModelForm.tsx index 93fb972e9..596115dfd 100644 --- a/gui/src/forms/AddModelForm.tsx +++ b/gui/src/forms/AddModelForm.tsx @@ -13,6 +13,7 @@ import { } from "../pages/AddNewModel/configs/providers"; import { setDefaultModel } from "../redux/slices/stateSlice"; import { FREE_TRIAL_LIMIT_REQUESTS, hasPassedFTL } from "../util/freeTrial"; +import { completionParamsInputs } from "../pages/AddNewModel/configs/completionParamsInputs"; interface QuickModelSetupProps { onDone: () => void; @@ -49,8 +50,15 @@ function AddModelForm({ return false; } - const apiKey = formMethods.watch("apiKey"); - return typeof apiKey === "undefined" || apiKey.length === 0; + const required = selectedProvider.collectInputFor + .filter((input) => input.required) + .map((input) => { + const value = formMethods.watch(input.key); + return value; + }); + console.log("Required fields values:", required); + + return !required.every((value) => value !== undefined && value.length > 0); } useEffect(() => { @@ -60,10 +68,15 @@ function AddModelForm({ function onSubmit() { const apiKey = formMethods.watch("apiKey"); const hasValidApiKey = apiKey !== undefined && apiKey !== ""; + const reqInputFields = {}; + for (let input of selectedProvider.collectInputFor) { + reqInputFields[input.key] = formMethods.watch(input.key); + } const model = { ...selectedProvider.params, ...selectedModel.params, + ...reqInputFields, provider: selectedProvider.provider, title: selectedModel.title, ...(hasValidApiKey ? { apiKey } : {}), @@ -199,6 +212,33 @@ function AddModelForm({
)} + + {selectedProvider.collectInputFor && + selectedProvider.collectInputFor + .filter( + (field) => + !Object.values(completionParamsInputs).some( + (input) => input.key === field.key, + ) && + field.required && + field.key !== "apiKey", + ) + .map((field) => ( +
+ <> + + + +
+ ))}
diff --git a/gui/src/pages/AddNewModel/configs/providers.ts b/gui/src/pages/AddNewModel/configs/providers.ts index 0d366dbf6..155905fbc 100644 --- a/gui/src/pages/AddNewModel/configs/providers.ts +++ b/gui/src/pages/AddNewModel/configs/providers.ts @@ -512,6 +512,7 @@ To get started, [register](https://dataplatform.cloud.ibm.com/registration/stepo label: "watsonx API version", placeholder: "Enter the API Version", defaultValue: "2023-05-29", + required: true }, { inputType: "text", @@ -521,20 +522,6 @@ To get started, [register](https://dataplatform.cloud.ibm.com/registration/stepo "http://us-south.dataplatform.cloud.ibm.com/m1/v1/text/generation_stream?version=2023-05-29", required: false, }, - // { - // inputType: "text", - // key: "title", - // label: "Model name", - // placeholder: "Granite 13B Chat v2", - // isWatsonxAttribute: true, - // }, - // { - // inputType: "text", - // key: "model", - // label: "Model Id", - // placeholder: "ibm/granite-13b-chat-v2", - // isWatsonxAttribute: true, - // }, { inputType: "text", key: "watsonxStopToken", From aab585ab0763547ae815bae56eb7eb44a8eb0a86 Mon Sep 17 00:00:00 2001 From: Adam Shedivy Date: Thu, 19 Sep 2024 16:05:10 -0500 Subject: [PATCH 124/268] remove console.log --- gui/src/forms/AddModelForm.tsx | 1 - 1 file changed, 1 deletion(-) diff --git a/gui/src/forms/AddModelForm.tsx b/gui/src/forms/AddModelForm.tsx index 596115dfd..e045ca13e 100644 --- a/gui/src/forms/AddModelForm.tsx +++ b/gui/src/forms/AddModelForm.tsx @@ -56,7 +56,6 @@ function AddModelForm({ const value = formMethods.watch(input.key); return value; }); - console.log("Required fields values:", required); return !required.every((value) => value !== undefined && value.length > 0); } From 158faa1e5e4765e9953d97729fd8efa93cdd7c32 Mon Sep 17 00:00:00 2001 From: Test Date: Thu, 19 Sep 2024 15:49:25 -0700 Subject: [PATCH 125/268] create `getModelByRole()` util fn --- core/config/util.ts | 25 ++++++++++++- core/context/retrieval/repoMapRequest.ts | 7 ++-- docs/static/schemas/config.json | 15 ++++---- .../src/main/resources/config_schema.json | 15 ++++---- extensions/vscode/continue_rc_schema.json | 15 ++++---- extensions/vscode/src/commands.ts | 12 ++++--- .../vscode/src/extension/VsCodeMessenger.ts | 35 ++++++++++--------- .../src/quickEdit/QuickEditQuickPick.ts | 24 +++++-------- 8 files changed, 77 insertions(+), 71 deletions(-) diff --git a/core/config/util.ts b/core/config/util.ts index 5abf0b9b5..69e088a18 100644 --- a/core/config/util.ts +++ b/core/config/util.ts @@ -1,4 +1,10 @@ -import { ContextProviderWithParams, ModelDescription } from "../"; +import { + ContextProviderWithParams, + ContinueConfig, + ILLM, + ModelDescription, + ModelRoles, +} from "../"; import { editConfigJson } from "../util/paths"; function stringify(obj: any, indentation?: number): string { @@ -61,3 +67,20 @@ export function deleteModel(title: string) { return config; }); } + +export function getModelByRole( + config: ContinueConfig, + role: T, +): ILLM | undefined { + const roleTitle = config.experimental?.modelRoles?.[role]; + + if (!roleTitle) { + return undefined; + } + + const matchingModel = config.models.find( + (model) => model.title === roleTitle, + ); + + return matchingModel; +} diff --git a/core/context/retrieval/repoMapRequest.ts b/core/context/retrieval/repoMapRequest.ts index 8d2eb9e4f..1f07d61d0 100644 --- a/core/context/retrieval/repoMapRequest.ts +++ b/core/context/retrieval/repoMapRequest.ts @@ -1,4 +1,5 @@ import { Chunk, ContinueConfig, IDE, ILLM } from "../.."; +import { getModelByRole } from "../../config/util"; import { stripImages } from "../../llm/images"; import generateRepoMap from "../../util/repoMap"; @@ -9,11 +10,7 @@ export async function requestFilesFromRepoMap( input: string, filterDirectory?: string, ): Promise { - const llm = - config.models.find( - (model) => - model.title === config.experimental?.modelRoles?.repoMapFileSelection, - ) ?? defaultLlm; + const llm = getModelByRole(config, "repoMapFileSelection") ?? defaultLlm; // Only supported for Claude models right now if (!llm.model.toLowerCase().includes("claude")) { diff --git a/docs/static/schemas/config.json b/docs/static/schemas/config.json index cbf47d4b4..911278ebb 100644 --- a/docs/static/schemas/config.json +++ b/docs/static/schemas/config.json @@ -2476,13 +2476,16 @@ "type": "object", "properties": { "inlineEdit": { - "$ref": "#/definitions/ModelTitle" + "description": "The 'title' property of the model you wish to use for inline edits", + "type": "string" }, "applyCodeBlock": { - "$ref": "#/definitions/ModelTitle" + "description": "The 'title' property of the model you wish to use for applying code blocks", + "type": "string" }, "repoMapFileSelection": { - "$ref": "#/definitions/ModelTitle" + "description": "The 'title' property of the model you wish to use for repo map file selections", + "type": "string" } } }, @@ -2545,12 +2548,6 @@ } } } - }, - "ModelTitle": { - "type": "string", - "enum": { - "$data": "/models/title" - } } } } diff --git a/extensions/intellij/src/main/resources/config_schema.json b/extensions/intellij/src/main/resources/config_schema.json index cbf47d4b4..911278ebb 100644 --- a/extensions/intellij/src/main/resources/config_schema.json +++ b/extensions/intellij/src/main/resources/config_schema.json @@ -2476,13 +2476,16 @@ "type": "object", "properties": { "inlineEdit": { - "$ref": "#/definitions/ModelTitle" + "description": "The 'title' property of the model you wish to use for inline edits", + "type": "string" }, "applyCodeBlock": { - "$ref": "#/definitions/ModelTitle" + "description": "The 'title' property of the model you wish to use for applying code blocks", + "type": "string" }, "repoMapFileSelection": { - "$ref": "#/definitions/ModelTitle" + "description": "The 'title' property of the model you wish to use for repo map file selections", + "type": "string" } } }, @@ -2545,12 +2548,6 @@ } } } - }, - "ModelTitle": { - "type": "string", - "enum": { - "$data": "/models/title" - } } } } diff --git a/extensions/vscode/continue_rc_schema.json b/extensions/vscode/continue_rc_schema.json index 58453fc5c..101296fe6 100644 --- a/extensions/vscode/continue_rc_schema.json +++ b/extensions/vscode/continue_rc_schema.json @@ -2782,13 +2782,16 @@ "type": "object", "properties": { "inlineEdit": { - "$ref": "#/definitions/ModelTitle" + "description": "The 'title' property of the model you wish to use for inline edits", + "type": "string" }, "applyCodeBlock": { - "$ref": "#/definitions/ModelTitle" + "description": "The 'title' property of the model you wish to use for applying code blocks", + "type": "string" }, "repoMapFileSelection": { - "$ref": "#/definitions/ModelTitle" + "description": "The 'title' property of the model you wish to use for repo map file selections", + "type": "string" } } }, @@ -2864,12 +2867,6 @@ "markdownDescription": "If set to 'merge', .continuerc.json will be applied on top of config.json (arrays and objects are merged). If set to 'overwrite', then every top-level property of .continuerc.json will overwrite that property from config.json." } } - }, - "ModelTitle": { - "type": "string", - "enum": { - "$data": "/models/title" - } } } } \ No newline at end of file diff --git a/extensions/vscode/src/commands.ts b/extensions/vscode/src/commands.ts index abc33fe8b..7ac639326 100644 --- a/extensions/vscode/src/commands.ts +++ b/extensions/vscode/src/commands.ts @@ -30,6 +30,7 @@ import { Battery } from "./util/battery"; import { uriFromFilePath } from "./util/vscode"; import type { VsCodeWebviewProtocol } from "./webviewProtocol"; import { getFullyQualifiedPath } from "./util/util"; +import { getModelByRole } from "core/config/util"; let fullScreenPanel: vscode.WebviewPanel | undefined; @@ -208,12 +209,13 @@ const commandsMap: ( ) { const config = await configHandler.loadConfig(); + const defaultModelTitle = await sidebar.webviewProtocol.request( + "getDefaultModelTitle", + undefined, + ); + const modelTitle = - config.experimental?.modelRoles?.inlineEdit ?? - (await sidebar.webviewProtocol.request( - "getDefaultModelTitle", - undefined, - )); + getModelByRole(config, "inlineEdit")?.title ?? defaultModelTitle; sidebar.webviewProtocol.request("incrementFtc", undefined); diff --git a/extensions/vscode/src/extension/VsCodeMessenger.ts b/extensions/vscode/src/extension/VsCodeMessenger.ts index 792d504d3..786f5377a 100644 --- a/extensions/vscode/src/extension/VsCodeMessenger.ts +++ b/extensions/vscode/src/extension/VsCodeMessenger.ts @@ -27,6 +27,7 @@ import { import { getExtensionUri } from "../util/vscode"; import { VsCodeIde } from "../VsCodeIde"; import { VsCodeWebviewProtocol } from "../webviewProtocol"; +import { getModelByRole } from "core/config/util"; /** * A shared messenger class between Core and Webview @@ -145,26 +146,26 @@ export class VsCodeMessenger { // Get LLM from config const configHandler = await configHandlerPromise; const config = await configHandler.loadConfig(); - const modelTitle = - config.experimental?.modelRoles?.applyCodeBlock ?? - (await this.webviewProtocol.request("getDefaultModelTitle", undefined)); - const llm = config.models.find((model) => model.title === modelTitle); + + let llm = getModelByRole(config, "applyCodeBlock"); + if (!llm) { - vscode.window.showErrorMessage( - `Model ${modelTitle} not found in config.`, + const defaultModelTitle = await this.webviewProtocol.request( + "getDefaultModelTitle", + undefined, ); - return; + + llm = config.models.find((model) => model.title === defaultModelTitle); + + if (!llm) { + vscode.window.showErrorMessage( + `Model ${defaultModelTitle} not found in config.`, + ); + return; + } } - let fastLlm: ILLM | undefined; - if (config.experimental?.modelRoles?.repoMapFileSelection) { - fastLlm = config.models.find( - (model) => - model.title === - config.experimental?.modelRoles?.repoMapFileSelection, - ); - } - fastLlm ??= llm; + const fastLlm = getModelByRole(config, "repoMapFileSelection") ?? llm; // Generate the diff and pass through diff manager const [instant, diffLines] = await applyCodeBlock( @@ -179,7 +180,7 @@ export class VsCodeMessenger { verticalDiffManager.streamDiffLines(diffLines, instant); } else { const prompt = `The following code was suggested as an edit:\n\`\`\`\n${msg.data.text}\n\`\`\`\nPlease apply it to the previous code.`; - verticalDiffManager.streamEdit(prompt, modelTitle); + verticalDiffManager.streamEdit(prompt, llm.title); } }); diff --git a/extensions/vscode/src/quickEdit/QuickEditQuickPick.ts b/extensions/vscode/src/quickEdit/QuickEditQuickPick.ts index 6fc3404c6..b501c0250 100644 --- a/extensions/vscode/src/quickEdit/QuickEditQuickPick.ts +++ b/extensions/vscode/src/quickEdit/QuickEditQuickPick.ts @@ -13,6 +13,7 @@ import { getModelQuickPickVal } from "./ModelSelectionQuickPick"; import { ConfigHandler } from "core/config/ConfigHandler"; // @ts-ignore import MiniSearch from "minisearch"; +import { getModelByRole } from "core/config/util"; /** * Used to track what action to take after a user interacts @@ -222,30 +223,21 @@ export class QuickEdit { * Gets the model title the user has chosen, or their default model */ private async getCurModelTitle() { - const config = await this.configHandler.loadConfig(); - if (this._curModelTitle) { return this._curModelTitle; } - const inlineEditModel = config.experimental?.modelRoles?.inlineEdit; + const config = await this.configHandler.loadConfig(); - if (inlineEditModel) { - return inlineEditModel; - } - - let defaultModelTitle: string | undefined = - await this.webviewProtocol.request( + return ( + getModelByRole(config, "inlineEdit")?.title ?? + (await this.webviewProtocol.request( "getDefaultModelTitle", undefined, false, - ); - - if (!defaultModelTitle) { - defaultModelTitle = config.models[0].title; - } - - return defaultModelTitle || inlineEditModel; + )) ?? + config.models[0]?.title + ); } /** From af89900c2c68f65609b7f41abb98ff3cc771ffd4 Mon Sep 17 00:00:00 2001 From: mq200 Date: Thu, 19 Sep 2024 15:54:27 -0700 Subject: [PATCH 126/268] watsonx - add any types typescript --- core/llm/llms/WatsonX.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/core/llm/llms/WatsonX.ts b/core/llm/llms/WatsonX.ts index 4e0b690b4..d9b61a3f1 100644 --- a/core/llm/llms/WatsonX.ts +++ b/core/llm/llms/WatsonX.ts @@ -192,7 +192,7 @@ class WatsonX extends BaseLLM { const url = this.getWatsonxEndpoint(); const headers = this._getHeaders(); - const parameters = { + const parameters: any = { decoding_method: "greedy", max_new_tokens: options.maxTokens ?? 1024, min_new_tokens: 1, @@ -207,7 +207,7 @@ class WatsonX extends BaseLLM { parameters.top_k = options.topK; } - const payload = { + const payload: any = { input: messages[messages.length - 1].content, parameters: parameters, }; From 1837de9d90be058ab8fcaa19ba41dadeebadb595 Mon Sep 17 00:00:00 2001 From: Test Date: Thu, 19 Sep 2024 16:35:28 -0700 Subject: [PATCH 127/268] Filter "Instructions" item from `ContextPeek` --- .../providers/CodebaseContextProvider.ts | 6 +- core/context/providers/DocsContextProvider.ts | 4 +- core/context/providers/index.ts | 8 +- core/context/retrieval/retrieval.ts | 22 +-- gui/package-lock.json | 169 ++---------------- .../components/mainInput/ContextItemsPeek.tsx | 12 +- 6 files changed, 44 insertions(+), 177 deletions(-) diff --git a/core/context/providers/CodebaseContextProvider.ts b/core/context/providers/CodebaseContextProvider.ts index 2de4352d9..5e77c537b 100644 --- a/core/context/providers/CodebaseContextProvider.ts +++ b/core/context/providers/CodebaseContextProvider.ts @@ -2,9 +2,9 @@ import { ContextItem, ContextProviderDescription, ContextProviderExtras, -} from "../../index.js"; -import { BaseContextProvider } from "../index.js"; -import { retrieveContextItemsFromEmbeddings } from "../retrieval/retrieval.js"; +} from "../../"; +import { BaseContextProvider } from "../"; +import { retrieveContextItemsFromEmbeddings } from "../retrieval/retrieval"; class CodebaseContextProvider extends BaseContextProvider { static description: ContextProviderDescription = { diff --git a/core/context/providers/DocsContextProvider.ts b/core/context/providers/DocsContextProvider.ts index 88df47318..b56373742 100644 --- a/core/context/providers/DocsContextProvider.ts +++ b/core/context/providers/DocsContextProvider.ts @@ -1,3 +1,4 @@ +import { INSTRUCTIONS_BASE_ITEM } from "."; import { BaseContextProvider } from "../"; import { Chunk, @@ -149,8 +150,7 @@ class DocsContextProvider extends BaseContextProvider { })) .reverse(), { - name: "Instructions", - description: "Instructions", + ...INSTRUCTIONS_BASE_ITEM, content: "Use the above documentation to answer the following question. You should not reference " + "anything outside of what is shown, unless it is a commonly known concept. Reference URLs " + diff --git a/core/context/providers/index.ts b/core/context/providers/index.ts index 92cabb222..d2804a8b6 100644 --- a/core/context/providers/index.ts +++ b/core/context/providers/index.ts @@ -1,4 +1,4 @@ -import { ContextProviderName } from "../../"; +import { ContextItem, ContextProviderName } from "../../"; import { BaseContextProvider } from "../"; import CodeContextProvider from "./CodeContextProvider"; import ContinueProxyContextProvider from "./ContinueProxyContextProvider"; @@ -60,3 +60,9 @@ export function contextProviderClassFromName( ): typeof BaseContextProvider | undefined { return Providers.find((cls) => cls.description.title === name); } + +export const INSTRUCTIONS_BASE_ITEM: ContextItem = { + name: "Instructions", + description: "Instructions", + content: "", +}; diff --git a/core/context/retrieval/retrieval.ts b/core/context/retrieval/retrieval.ts index 34c6bd87c..897ec65a8 100644 --- a/core/context/retrieval/retrieval.ts +++ b/core/context/retrieval/retrieval.ts @@ -1,14 +1,11 @@ -import { - BranchAndDir, - ContextItem, - ContextProviderExtras, -} from "../../index.js"; -import TransformersJsEmbeddingsProvider from "../../indexing/embeddings/TransformersJsEmbeddingsProvider.js"; -import { resolveRelativePathInWorkspace } from "../../util/ideUtils.js"; -import { getRelativePath } from "../../util/index.js"; -import { RetrievalPipelineOptions } from "./pipelines/BaseRetrievalPipeline.js"; -import NoRerankerRetrievalPipeline from "./pipelines/NoRerankerRetrievalPipeline.js"; -import RerankerRetrievalPipeline from "./pipelines/RerankerRetrievalPipeline.js"; +import { BranchAndDir, ContextItem, ContextProviderExtras } from "../../"; +import TransformersJsEmbeddingsProvider from "../../indexing/embeddings/TransformersJsEmbeddingsProvider"; +import { resolveRelativePathInWorkspace } from "../../util/ideUtils"; +import { getRelativePath } from "../../util/"; +import { INSTRUCTIONS_BASE_ITEM } from "../providers/"; +import { RetrievalPipelineOptions } from "./pipelines/BaseRetrievalPipeline"; +import NoRerankerRetrievalPipeline from "./pipelines/NoRerankerRetrievalPipeline"; +import RerankerRetrievalPipeline from "./pipelines/RerankerRetrievalPipeline"; export async function retrieveContextItemsFromEmbeddings( extras: ContextProviderExtras, @@ -109,8 +106,7 @@ export async function retrieveContextItemsFromEmbeddings( }; }), { - name: "Instructions", - description: "Instructions", + ...INSTRUCTIONS_BASE_ITEM, content: "Use the above code to answer the following question. You should not reference any files outside of what is shown, unless they are commonly known files, like a .gitignore or package.json. Reference the filenames whenever possible. If there isn't enough information to answer the question, suggest where the user might look to learn more.", }, diff --git a/gui/package-lock.json b/gui/package-lock.json index 30f10d3fd..59c98a50f 100644 --- a/gui/package-lock.json +++ b/gui/package-lock.json @@ -4474,6 +4474,11 @@ "license": "MIT", "peer": true }, + "../core/node_modules/@types/diff": { + "version": "5.2.2", + "dev": true, + "license": "MIT" + }, "../core/node_modules/@types/follow-redirects": { "version": "1.14.4", "dev": true, @@ -6447,6 +6452,13 @@ "version": "0.0.1312386", "license": "BSD-3-Clause" }, + "../core/node_modules/diff": { + "version": "7.0.0", + "license": "BSD-3-Clause", + "engines": { + "node": ">=0.3.1" + } + }, "../core/node_modules/diff-sequences": { "version": "29.6.3", "dev": true, @@ -13960,8 +13972,6 @@ }, "node_modules/@swc/core": { "version": "1.7.26", - "resolved": "https://registry.npmjs.org/@swc/core/-/core-1.7.26.tgz", - "integrity": "sha512-f5uYFf+TmMQyYIoxkn/evWhNGuUzC730dFwAKGwBVHHVoPyak1/GvJUm6i1SKl+2Hrj9oN0i3WSoWWZ4pgI8lw==", "dev": true, "hasInstallScript": true, "license": "Apache-2.0", @@ -13997,27 +14007,8 @@ } } }, - "node_modules/@swc/core-darwin-arm64": { - "version": "1.7.26", - "resolved": "https://registry.npmjs.org/@swc/core-darwin-arm64/-/core-darwin-arm64-1.7.26.tgz", - "integrity": "sha512-FF3CRYTg6a7ZVW4yT9mesxoVVZTrcSWtmZhxKCYJX9brH4CS/7PRPjAKNk6kzWgWuRoglP7hkjQcd6EpMcZEAw==", - "cpu": [ - "arm64" - ], - "dev": true, - "license": "Apache-2.0 AND MIT", - "optional": true, - "os": [ - "darwin" - ], - "engines": { - "node": ">=10" - } - }, "node_modules/@swc/core-darwin-x64": { "version": "1.7.26", - "resolved": "https://registry.npmjs.org/@swc/core-darwin-x64/-/core-darwin-x64-1.7.26.tgz", - "integrity": "sha512-az3cibZdsay2HNKmc4bjf62QVukuiMRh5sfM5kHR/JMTrLyS6vSw7Ihs3UTkZjUxkLTT8ro54LI6sV6sUQUbLQ==", "cpu": [ "x64" ], @@ -14031,142 +14022,6 @@ "node": ">=10" } }, - "node_modules/@swc/core-linux-arm-gnueabihf": { - "version": "1.7.26", - "resolved": "https://registry.npmjs.org/@swc/core-linux-arm-gnueabihf/-/core-linux-arm-gnueabihf-1.7.26.tgz", - "integrity": "sha512-VYPFVJDO5zT5U3RpCdHE5v1gz4mmR8BfHecUZTmD2v1JeFY6fv9KArJUpjrHEEsjK/ucXkQFmJ0jaiWXmpOV9Q==", - "cpu": [ - "arm" - ], - "dev": true, - "license": "Apache-2.0", - "optional": true, - "os": [ - "linux" - ], - "engines": { - "node": ">=10" - } - }, - "node_modules/@swc/core-linux-arm64-gnu": { - "version": "1.7.26", - "resolved": "https://registry.npmjs.org/@swc/core-linux-arm64-gnu/-/core-linux-arm64-gnu-1.7.26.tgz", - "integrity": "sha512-YKevOV7abpjcAzXrhsl+W48Z9mZvgoVs2eP5nY+uoMAdP2b3GxC0Df1Co0I90o2lkzO4jYBpTMcZlmUXLdXn+Q==", - "cpu": [ - "arm64" - ], - "dev": true, - "license": "Apache-2.0 AND MIT", - "optional": true, - "os": [ - "linux" - ], - "engines": { - "node": ">=10" - } - }, - "node_modules/@swc/core-linux-arm64-musl": { - "version": "1.7.26", - "resolved": "https://registry.npmjs.org/@swc/core-linux-arm64-musl/-/core-linux-arm64-musl-1.7.26.tgz", - "integrity": "sha512-3w8iZICMkQQON0uIcvz7+Q1MPOW6hJ4O5ETjA0LSP/tuKqx30hIniCGOgPDnv3UTMruLUnQbtBwVCZTBKR3Rkg==", - "cpu": [ - "arm64" - ], - "dev": true, - "license": "Apache-2.0 AND MIT", - "optional": true, - "os": [ - "linux" - ], - "engines": { - "node": ">=10" - } - }, - "node_modules/@swc/core-linux-x64-gnu": { - "version": "1.7.26", - "resolved": "https://registry.npmjs.org/@swc/core-linux-x64-gnu/-/core-linux-x64-gnu-1.7.26.tgz", - "integrity": "sha512-c+pp9Zkk2lqb06bNGkR2Looxrs7FtGDMA4/aHjZcCqATgp348hOKH5WPvNLBl+yPrISuWjbKDVn3NgAvfvpH4w==", - "cpu": [ - "x64" - ], - "dev": true, - "license": "Apache-2.0 AND MIT", - "optional": true, - "os": [ - "linux" - ], - "engines": { - "node": ">=10" - } - }, - "node_modules/@swc/core-linux-x64-musl": { - "version": "1.7.26", - "resolved": "https://registry.npmjs.org/@swc/core-linux-x64-musl/-/core-linux-x64-musl-1.7.26.tgz", - "integrity": "sha512-PgtyfHBF6xG87dUSSdTJHwZ3/8vWZfNIXQV2GlwEpslrOkGqy+WaiiyE7Of7z9AvDILfBBBcJvJ/r8u980wAfQ==", - "cpu": [ - "x64" - ], - "dev": true, - "license": "Apache-2.0 AND MIT", - "optional": true, - "os": [ - "linux" - ], - "engines": { - "node": ">=10" - } - }, - "node_modules/@swc/core-win32-arm64-msvc": { - "version": "1.7.26", - "resolved": "https://registry.npmjs.org/@swc/core-win32-arm64-msvc/-/core-win32-arm64-msvc-1.7.26.tgz", - "integrity": "sha512-9TNXPIJqFynlAOrRD6tUQjMq7KApSklK3R/tXgIxc7Qx+lWu8hlDQ/kVPLpU7PWvMMwC/3hKBW+p5f+Tms1hmA==", - "cpu": [ - "arm64" - ], - "dev": true, - "license": "Apache-2.0 AND MIT", - "optional": true, - "os": [ - "win32" - ], - "engines": { - "node": ">=10" - } - }, - "node_modules/@swc/core-win32-ia32-msvc": { - "version": "1.7.26", - "resolved": "https://registry.npmjs.org/@swc/core-win32-ia32-msvc/-/core-win32-ia32-msvc-1.7.26.tgz", - "integrity": "sha512-9YngxNcG3177GYdsTum4V98Re+TlCeJEP4kEwEg9EagT5s3YejYdKwVAkAsJszzkXuyRDdnHUpYbTrPG6FiXrQ==", - "cpu": [ - "ia32" - ], - "dev": true, - "license": "Apache-2.0 AND MIT", - "optional": true, - "os": [ - "win32" - ], - "engines": { - "node": ">=10" - } - }, - "node_modules/@swc/core-win32-x64-msvc": { - "version": "1.7.26", - "resolved": "https://registry.npmjs.org/@swc/core-win32-x64-msvc/-/core-win32-x64-msvc-1.7.26.tgz", - "integrity": "sha512-VR+hzg9XqucgLjXxA13MtV5O3C0bK0ywtLIBw/+a+O+Oc6mxFWHtdUeXDbIi5AiPbn0fjgVJMqYnyjGyyX8u0w==", - "cpu": [ - "x64" - ], - "dev": true, - "license": "Apache-2.0 AND MIT", - "optional": true, - "os": [ - "win32" - ], - "engines": { - "node": ">=10" - } - }, "node_modules/@swc/counter": { "version": "0.1.3", "dev": true, diff --git a/gui/src/components/mainInput/ContextItemsPeek.tsx b/gui/src/components/mainInput/ContextItemsPeek.tsx index 83b9c4b02..fce70afa2 100644 --- a/gui/src/components/mainInput/ContextItemsPeek.tsx +++ b/gui/src/components/mainInput/ContextItemsPeek.tsx @@ -13,6 +13,7 @@ import { IdeMessengerContext } from "../../context/IdeMessenger"; import { getFontSize } from "../../util"; import FileIcon from "../FileIcon"; import SafeImg from "../SafeImg"; +import { INSTRUCTIONS_BASE_ITEM } from "core/context/providers"; const ContextItemDiv = styled.div` cursor: pointer; @@ -47,12 +48,20 @@ interface ContextItemsPeekProps { contextItems?: ContextItemWithId[]; } +function filterInstructionContextItem( + contextItems: ContextItemsPeekProps["contextItems"], +) { + return contextItems?.filter( + (ctxItem) => !ctxItem.name.includes(INSTRUCTIONS_BASE_ITEM.name), + ); +} + const ContextItemsPeek = (props: ContextItemsPeekProps) => { const ideMessenger = useContext(IdeMessengerContext); const [open, setOpen] = React.useState(false); - const ctxItems = props.contextItems; + const ctxItems = filterInstructionContextItem(props.contextItems); if (!ctxItems || ctxItems.length === 0) { return null; @@ -118,6 +127,7 @@ const ContextItemsPeek = (props: ContextItemsPeekProps) => { )} {contextItemsText}
+ {open && (
Date: Thu, 19 Sep 2024 19:27:36 -0500 Subject: [PATCH 128/268] groq gemma 2 update --- core/config/types.ts | 2 ++ core/index.d.ts | 2 ++ core/llm/llms/Groq.ts | 1 + extensions/intellij/src/main/resources/config_schema.json | 1 + extensions/vscode/config_schema.json | 1 + extensions/vscode/continue_rc_schema.json | 1 + 6 files changed, 8 insertions(+) diff --git a/core/config/types.ts b/core/config/types.ts index e69c312ab..c571b44df 100644 --- a/core/config/types.ts +++ b/core/config/types.ts @@ -647,6 +647,8 @@ declare global { | "deepseek-7b" | "deepseek-33b" | "neural-chat-7b" + | "gemma-7b-it" + | "gemma2-9b-it" // Anthropic | "claude-3-5-sonnet-20240620" | "claude-3-opus-20240229" diff --git a/core/index.d.ts b/core/index.d.ts index 0c7c9b521..16c48a3ad 100644 --- a/core/index.d.ts +++ b/core/index.d.ts @@ -691,6 +691,8 @@ export type ModelName = | "deepseek-7b" | "deepseek-33b" | "neural-chat-7b" + | "gemma-7b-it" + | "gemma2-9b-it" // Anthropic | "claude-3-5-sonnet-20240620" | "claude-3-opus-20240229" diff --git a/core/llm/llms/Groq.ts b/core/llm/llms/Groq.ts index 7115bcc32..bc05263c9 100644 --- a/core/llm/llms/Groq.ts +++ b/core/llm/llms/Groq.ts @@ -12,6 +12,7 @@ class Groq extends OpenAI { "llama2-70b": "llama2-70b-4096", "mistral-8x7b": "mixtral-8x7b-32768", gemma: "gemma-7b-it", + gemma2: "gemma2-9b-it", "llama3-8b": "llama3-8b-8192", "llama3-70b": "llama3-70b-8192", "llama3.1-8b": "llama-3.1-8b-instant", diff --git a/extensions/intellij/src/main/resources/config_schema.json b/extensions/intellij/src/main/resources/config_schema.json index 911278ebb..5a20c6daf 100644 --- a/extensions/intellij/src/main/resources/config_schema.json +++ b/extensions/intellij/src/main/resources/config_schema.json @@ -1044,6 +1044,7 @@ "llama2-70b", "mistral-8x7b", "gemma", + "gemma2", "llama3-8b", "llama3-70b", "llama3.1-8b", diff --git a/extensions/vscode/config_schema.json b/extensions/vscode/config_schema.json index 911278ebb..5a20c6daf 100644 --- a/extensions/vscode/config_schema.json +++ b/extensions/vscode/config_schema.json @@ -1044,6 +1044,7 @@ "llama2-70b", "mistral-8x7b", "gemma", + "gemma2", "llama3-8b", "llama3-70b", "llama3.1-8b", diff --git a/extensions/vscode/continue_rc_schema.json b/extensions/vscode/continue_rc_schema.json index 101296fe6..7a7e54764 100644 --- a/extensions/vscode/continue_rc_schema.json +++ b/extensions/vscode/continue_rc_schema.json @@ -1149,6 +1149,7 @@ "llama2-70b", "mistral-8x7b", "gemma", + "gemma2", "llama3-8b", "llama3-70b", "llama3.1-8b", From 97b9ebb12669d81839dc95cfde6e660cdac41600 Mon Sep 17 00:00:00 2001 From: Test Date: Thu, 19 Sep 2024 18:28:18 -0700 Subject: [PATCH 129/268] add submenu for repo map context provider --- core/context/providers/DocsContextProvider.ts | 2 +- .../providers/RepoMapContextProvider.ts | 37 +++++++++++++++++-- core/context/providers/index.ts | 8 +--- core/context/providers/utils.ts | 7 ++++ core/context/retrieval/retrieval.ts | 2 +- core/util/repoMap.ts | 2 +- extensions/vscode/package-lock.json | 4 +- extensions/vscode/package.json | 2 +- .../components/mainInput/ContextItemsPeek.tsx | 2 +- gui/src/components/mainInput/MentionList.tsx | 5 +-- 10 files changed, 51 insertions(+), 20 deletions(-) create mode 100644 core/context/providers/utils.ts diff --git a/core/context/providers/DocsContextProvider.ts b/core/context/providers/DocsContextProvider.ts index b56373742..e9ae11bde 100644 --- a/core/context/providers/DocsContextProvider.ts +++ b/core/context/providers/DocsContextProvider.ts @@ -1,4 +1,4 @@ -import { INSTRUCTIONS_BASE_ITEM } from "."; +import { INSTRUCTIONS_BASE_ITEM } from "./utils"; import { BaseContextProvider } from "../"; import { Chunk, diff --git a/core/context/providers/RepoMapContextProvider.ts b/core/context/providers/RepoMapContextProvider.ts index 3d6c1d63f..900cd87dc 100644 --- a/core/context/providers/RepoMapContextProvider.ts +++ b/core/context/providers/RepoMapContextProvider.ts @@ -3,15 +3,28 @@ import { ContextItem, ContextProviderDescription, ContextProviderExtras, + ContextSubmenuItem, + LoadSubmenuItemsArgs, } from "../../"; +import { + groupByLastNPathParts, + getBasename, + getUniqueFilePath, +} from "../../util"; import generateRepoMap from "../../util/repoMap"; +const ENTIRE_PROJECT_ITEM: ContextSubmenuItem = { + id: "entire-workspace", + title: "Entire workspace", + description: "Search the entire workspace", +}; + class RepoMapContextProvider extends BaseContextProvider { static description: ContextProviderDescription = { title: "repo-map", displayTitle: "Repository Map", - description: "List of files and signatures", - type: "normal", + description: "Select a folder", + type: "submenu", dependsOnIndexing: true, }; @@ -23,10 +36,28 @@ class RepoMapContextProvider extends BaseContextProvider { { name: "Repository Map", description: "Overview of the repository structure", - content: await generateRepoMap(extras.llm, extras.ide), + content: await generateRepoMap(extras.llm, extras.ide, { + dirs: query === ENTIRE_PROJECT_ITEM.id ? undefined : [query], + }), }, ]; } + + async loadSubmenuItems( + args: LoadSubmenuItemsArgs, + ): Promise { + const folders = await args.ide.listFolders(); + const folderGroups = groupByLastNPathParts(folders, 2); + + return [ + ENTIRE_PROJECT_ITEM, + ...folders.map((folder) => ({ + id: folder, + title: getBasename(folder), + description: getUniqueFilePath(folder, folderGroups), + })), + ]; + } } export default RepoMapContextProvider; diff --git a/core/context/providers/index.ts b/core/context/providers/index.ts index d2804a8b6..9c2ab4303 100644 --- a/core/context/providers/index.ts +++ b/core/context/providers/index.ts @@ -30,7 +30,7 @@ import RepoMapContextProvider from "./RepoMapContextProvider"; * * See this issue for details: https://github.com/continuedev/continue/issues/1365 */ -const Providers: (typeof BaseContextProvider)[] = [ +export const Providers: (typeof BaseContextProvider)[] = [ DiffContextProvider, FileTreeContextProvider, GitHubIssuesContextProvider, @@ -60,9 +60,3 @@ export function contextProviderClassFromName( ): typeof BaseContextProvider | undefined { return Providers.find((cls) => cls.description.title === name); } - -export const INSTRUCTIONS_BASE_ITEM: ContextItem = { - name: "Instructions", - description: "Instructions", - content: "", -}; diff --git a/core/context/providers/utils.ts b/core/context/providers/utils.ts new file mode 100644 index 000000000..7bc20e491 --- /dev/null +++ b/core/context/providers/utils.ts @@ -0,0 +1,7 @@ +import { ContextItem } from "../.."; + +export const INSTRUCTIONS_BASE_ITEM: ContextItem = { + name: "Instructions", + description: "Instructions", + content: "", +}; diff --git a/core/context/retrieval/retrieval.ts b/core/context/retrieval/retrieval.ts index 897ec65a8..1b250e548 100644 --- a/core/context/retrieval/retrieval.ts +++ b/core/context/retrieval/retrieval.ts @@ -2,7 +2,7 @@ import { BranchAndDir, ContextItem, ContextProviderExtras } from "../../"; import TransformersJsEmbeddingsProvider from "../../indexing/embeddings/TransformersJsEmbeddingsProvider"; import { resolveRelativePathInWorkspace } from "../../util/ideUtils"; import { getRelativePath } from "../../util/"; -import { INSTRUCTIONS_BASE_ITEM } from "../providers/"; +import { INSTRUCTIONS_BASE_ITEM } from "../providers/utils"; import { RetrievalPipelineOptions } from "./pipelines/BaseRetrievalPipeline"; import NoRerankerRetrievalPipeline from "./pipelines/NoRerankerRetrievalPipeline"; import RerankerRetrievalPipeline from "./pipelines/RerankerRetrievalPipeline"; diff --git a/core/util/repoMap.ts b/core/util/repoMap.ts index 6c0a73e1f..8fb5a329f 100644 --- a/core/util/repoMap.ts +++ b/core/util/repoMap.ts @@ -115,7 +115,7 @@ async function generateRepoMap(llm: ILLM, ide: IDE, options?: RepoMapOptions) { } writeStream.end(); - console.debug(`Generated repo map at ${repoMapPath}`); + console.debug(`Generated repo map for ${dirs.join(", ")} at ${repoMapPath}`); if (curTokens >= maxRepoMapTokens) { console.debug( diff --git a/extensions/vscode/package-lock.json b/extensions/vscode/package-lock.json index 238a2c841..746043d15 100644 --- a/extensions/vscode/package-lock.json +++ b/extensions/vscode/package-lock.json @@ -1,12 +1,12 @@ { "name": "continue", - "version": "0.9.213", + "version": "0.9.214", "lockfileVersion": 3, "requires": true, "packages": { "": { "name": "continue", - "version": "0.9.213", + "version": "0.9.214", "license": "Apache-2.0", "dependencies": { "@electron/rebuild": "^3.2.10", diff --git a/extensions/vscode/package.json b/extensions/vscode/package.json index 5f3265799..2269b08dc 100644 --- a/extensions/vscode/package.json +++ b/extensions/vscode/package.json @@ -2,7 +2,7 @@ "name": "continue", "icon": "media/icon.png", "author": "Continue Dev, Inc", - "version": "0.9.213", + "version": "0.9.214", "repository": { "type": "git", "url": "https://github.com/continuedev/continue" diff --git a/gui/src/components/mainInput/ContextItemsPeek.tsx b/gui/src/components/mainInput/ContextItemsPeek.tsx index fce70afa2..50d3f32ac 100644 --- a/gui/src/components/mainInput/ContextItemsPeek.tsx +++ b/gui/src/components/mainInput/ContextItemsPeek.tsx @@ -13,7 +13,7 @@ import { IdeMessengerContext } from "../../context/IdeMessenger"; import { getFontSize } from "../../util"; import FileIcon from "../FileIcon"; import SafeImg from "../SafeImg"; -import { INSTRUCTIONS_BASE_ITEM } from "core/context/providers"; +import { INSTRUCTIONS_BASE_ITEM } from "core/context/providers/utils"; const ContextItemDiv = styled.div` cursor: pointer; diff --git a/gui/src/components/mainInput/MentionList.tsx b/gui/src/components/mainInput/MentionList.tsx index ebe6048d2..cd6622416 100644 --- a/gui/src/components/mainInput/MentionList.tsx +++ b/gui/src/components/mainInput/MentionList.tsx @@ -60,6 +60,7 @@ const ICONS_FOR_DROPDOWN: { [key: string]: any } = { docs: BookOpenIcon, issue: ExclamationCircleIcon, trash: TrashIcon, + "repo-map": FolderIcon, "/edit": PencilIcon, "/clear": TrashIcon, "/comment": HashtagIcon, @@ -113,9 +114,7 @@ function DropdownIcon(props: { className?: string; item: ComboBoxItem }) { const ItemsDiv = styled.div` border-radius: ${defaultBorderRadius}; - box-shadow: - 0 0 0 1px rgba(0, 0, 0, 0.05), - 0px 10px 20px rgba(0, 0, 0, 0.1); + box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.05), 0px 10px 20px rgba(0, 0, 0, 0.1); font-size: 0.9rem; overflow-x: hidden; overflow-y: auto; From 128356c35a77bf514cf519a4a9cb5883c9d8fa20 Mon Sep 17 00:00:00 2001 From: Test Date: Thu, 19 Sep 2024 18:38:18 -0700 Subject: [PATCH 130/268] Update repoMap.ts --- core/util/repoMap.ts | 125 ++++++++++++++++++++++++++++--------------- 1 file changed, 82 insertions(+), 43 deletions(-) diff --git a/core/util/repoMap.ts b/core/util/repoMap.ts index 8fb5a329f..07f9e28a5 100644 --- a/core/util/repoMap.ts +++ b/core/util/repoMap.ts @@ -12,7 +12,6 @@ const repoMapPreamble = "this map contains the name of the file, and the signature for any " + "classes, methods, or functions in the file.\n\n"; -// The max percent of the context window we will take const REPO_MAX_CONTEXT_LENGTH_RATIO = 0.5; function indentMultilineString(str: string) { @@ -27,25 +26,63 @@ export interface RepoMapOptions { dirs?: string[]; } -async function generateRepoMap(llm: ILLM, ide: IDE, options?: RepoMapOptions) { - const repoMapPath = getRepoMapFilePath(); - const dirs = options?.dirs ?? (await ide.getWorkspaceDirs()); - const maxRepoMapTokens = llm.contextLength * REPO_MAX_CONTEXT_LENGTH_RATIO; +async function getPaths(dirs: string[], ide: IDE): Promise> { + const paths = new Set(); - const pathsWithoutSnippets = new Set(); for (const dir of dirs) { for await (const filepath of walkDirAsync(dir, ide)) { - pathsWithoutSnippets.add(filepath.replace(dir, "").slice(1)); + paths.add(filepath.replace(dir, "").slice(1)); } } + return paths; +} + +async function initializeWriteStream( + repoMapPath: string, +): Promise { if (fs.existsSync(repoMapPath)) { console.debug(`Overwriting existing repo map at ${repoMapPath}`); } - const writeStream = fs.createWriteStream(repoMapPath); await new Promise((resolve) => writeStream.write(repoMapPreamble, resolve)); + return writeStream; +} +function generateContentForPath( + absolutePath: string, + signatures: string[], + dirs: string[], + options: RepoMapOptions, +): string { + const workspaceDir = dirs.find((dir) => absolutePath.startsWith(dir)) || ""; + const relativePath = path.relative(workspaceDir, absolutePath); + let content = ""; + + if (options.signatures !== false) { + content += `${relativePath}:\n`; + for (const signature of signatures.slice(0, -1)) { + content += `${indentMultilineString(signature)}\n\t...\n`; + } + if (signatures.length > 0) { + content += `${indentMultilineString( + signatures[signatures.length - 1], + )}\n\n`; + } + } else { + content += `${relativePath}\n`; + } + + return content; +} + +async function processPathsAndSignatures( + llm: ILLM, + dirs: string[], + options: RepoMapOptions, + writeStream: fs.WriteStream, + maxRepoMapTokens: number, +): Promise { let curTokens = llm.countTokens(repoMapPreamble); let offset = 0; const batchSize = 100; @@ -59,59 +96,63 @@ async function generateRepoMap(llm: ILLM, ide: IDE, options?: RepoMapOptions) { ); let content = ""; - for (const [absolutePath, signatures] of Object.entries(groupedByPath)) { - const workspaceDir = - dirs.find((dir) => absolutePath.startsWith(dir)) || ""; - - const relativePath = path.relative(workspaceDir, absolutePath); - - pathsWithoutSnippets.delete(relativePath); - - if (options?.signatures !== false) { - content += `${relativePath}:\n`; - for (const signature of signatures.slice(0, -1)) { - content += `${indentMultilineString(signature)}\n\t...\n`; - } - if (signatures.length > 0) { - // Don't add the trailing ellipsis for the last entry - content += `${indentMultilineString( - signatures[signatures.length - 1], - )}\n\n`; - } - } else { - // No signatures mode - content += `${relativePath}\n`; - } + content += generateContentForPath( + absolutePath, + signatures, + dirs, + options, + ); } const contentTokens = llm.countTokens(content); if (curTokens + contentTokens >= maxRepoMapTokens) { - // Fit what we can, then stop const prunedContent = pruneLinesFromTop( content, maxRepoMapTokens - curTokens, llm.model, ); await new Promise((resolve) => writeStream.write(prunedContent, resolve)); - break; + return curTokens + llm.countTokens(prunedContent); } else { await new Promise((resolve) => writeStream.write(content, resolve)); + curTokens += contentTokens; } - curTokens += contentTokens; - if (!hasMore) { break; } - offset += batchSize; } - const content = Array.from(pathsWithoutSnippets).join("\n"); - if (content.length > 0) { - await new Promise((resolve) => writeStream.write(content, resolve)); + return curTokens; +} + +async function generateRepoMap( + llm: ILLM, + ide: IDE, + options: RepoMapOptions = {}, +) { + const repoMapPath = getRepoMapFilePath(); + const dirs = options.dirs ?? (await ide.getWorkspaceDirs()); + const maxRepoMapTokens = llm.contextLength * REPO_MAX_CONTEXT_LENGTH_RATIO; + + const paths = await getPaths(dirs, ide); + const writeStream = await initializeWriteStream(repoMapPath); + + const curTokens = await processPathsAndSignatures( + llm, + dirs, + options, + writeStream, + maxRepoMapTokens, + ); + + const remainingPaths = Array.from(paths).join("\n"); + + if (remainingPaths.length > 0) { + await new Promise((resolve) => writeStream.write(remainingPaths, resolve)); } writeStream.end(); @@ -119,13 +160,11 @@ async function generateRepoMap(llm: ILLM, ide: IDE, options?: RepoMapOptions) { if (curTokens >= maxRepoMapTokens) { console.debug( - "Full repo map was unable to be genereated due to context window limitations", + "Full repo map was unable to be generated due to context window limitations", ); } - const repoMap = fs.readFileSync(repoMapPath, "utf8"); - - return repoMap; + return fs.readFileSync(repoMapPath, "utf8"); } export default generateRepoMap; From 86a568d3a0a3e31305f3b35074a5a1318248a765 Mon Sep 17 00:00:00 2001 From: Test Date: Thu, 19 Sep 2024 18:48:07 -0700 Subject: [PATCH 131/268] remove signatures if they are same as file content --- core/context/retrieval/repoMapRequest.ts | 2 +- core/util/repoMap.ts | 31 +++++++++++++++--------- 2 files changed, 21 insertions(+), 12 deletions(-) diff --git a/core/context/retrieval/repoMapRequest.ts b/core/context/retrieval/repoMapRequest.ts index 1f07d61d0..9dea96de0 100644 --- a/core/context/retrieval/repoMapRequest.ts +++ b/core/context/retrieval/repoMapRequest.ts @@ -19,7 +19,7 @@ export async function requestFilesFromRepoMap( try { const repoMap = await generateRepoMap(llm, ide, { - signatures: false, + includeSignatures: false, dirs: filterDirectory ? [filterDirectory] : undefined, }); diff --git a/core/util/repoMap.ts b/core/util/repoMap.ts index 07f9e28a5..dfb6a63ab 100644 --- a/core/util/repoMap.ts +++ b/core/util/repoMap.ts @@ -13,6 +13,10 @@ const repoMapPreamble = "classes, methods, or functions in the file.\n\n"; const REPO_MAX_CONTEXT_LENGTH_RATIO = 0.5; +export interface RepoMapOptions { + includeSignatures?: boolean; + dirs?: string[]; +} function indentMultilineString(str: string) { return str @@ -21,9 +25,8 @@ function indentMultilineString(str: string) { .join("\n"); } -export interface RepoMapOptions { - signatures?: boolean; - dirs?: string[]; +function isSnippetSameAsFile(snippet: string, fileContent: string): boolean { + return snippet.trim() === fileContent.trim(); } async function getPaths(dirs: string[], ide: IDE): Promise> { @@ -53,22 +56,23 @@ function generateContentForPath( absolutePath: string, signatures: string[], dirs: string[], - options: RepoMapOptions, + { includeSignatures }: RepoMapOptions, ): string { const workspaceDir = dirs.find((dir) => absolutePath.startsWith(dir)) || ""; const relativePath = path.relative(workspaceDir, absolutePath); + let content = ""; - if (options.signatures !== false) { + if (includeSignatures) { content += `${relativePath}:\n`; + for (const signature of signatures.slice(0, -1)) { content += `${indentMultilineString(signature)}\n\t...\n`; } - if (signatures.length > 0) { - content += `${indentMultilineString( - signatures[signatures.length - 1], - )}\n\n`; - } + + content += `${indentMultilineString( + signatures[signatures.length - 1], + )}\n\n`; } else { content += `${relativePath}\n`; } @@ -97,9 +101,14 @@ async function processPathsAndSignatures( let content = ""; for (const [absolutePath, signatures] of Object.entries(groupedByPath)) { + const fileContent = await fs.promises.readFile(absolutePath, "utf8"); + const filteredSignatures = signatures.filter( + (signature) => !isSnippetSameAsFile(signature, fileContent), + ); + content += generateContentForPath( absolutePath, - signatures, + filteredSignatures, dirs, options, ); From 4bb1a23a92c5663385434a7125fbad4bba7ba7e6 Mon Sep 17 00:00:00 2001 From: Test Date: Thu, 19 Sep 2024 19:50:19 -0700 Subject: [PATCH 132/268] remove duplicate entries in repo map --- core/indexing/CodeSnippetsIndex.ts | 16 ++- core/util/repoMap.ts | 184 ++++++++++++++++++++--------- 2 files changed, 134 insertions(+), 66 deletions(-) diff --git a/core/indexing/CodeSnippetsIndex.ts b/core/indexing/CodeSnippetsIndex.ts index f567a48d2..6a02babd4 100644 --- a/core/indexing/CodeSnippetsIndex.ts +++ b/core/indexing/CodeSnippetsIndex.ts @@ -383,20 +383,18 @@ export class CodeSnippetsCodebaseIndex implements CodebaseIndex { const placeholders = likePatterns.map(() => "?").join(" OR path LIKE "); const query = ` - SELECT path, signature - FROM code_snippets - WHERE path LIKE ${placeholders} - ORDER BY path - LIMIT ? OFFSET ? -`; + SELECT DISTINCT path, signature + FROM code_snippets + WHERE path LIKE ${placeholders} + ORDER BY path, signature + LIMIT ? OFFSET ? + `; const rows = await db.all(query, [...likePatterns, batchSize, offset]); - const validRows = rows.filter((row) => row.path && row.signature !== null); - const groupedByPath: { [path: string]: string[] } = {}; - for (const { path, signature } of validRows) { + for (const { path, signature } of rows) { if (!groupedByPath[path]) { groupedByPath[path] = []; } diff --git a/core/util/repoMap.ts b/core/util/repoMap.ts index dfb6a63ab..6f2166884 100644 --- a/core/util/repoMap.ts +++ b/core/util/repoMap.ts @@ -13,6 +13,9 @@ const repoMapPreamble = "classes, methods, or functions in the file.\n\n"; const REPO_MAX_CONTEXT_LENGTH_RATIO = 0.5; + +const BATCH_SIZE = 100; + export interface RepoMapOptions { includeSignatures?: boolean; dirs?: string[]; @@ -53,17 +56,13 @@ async function initializeWriteStream( } function generateContentForPath( - absolutePath: string, + relativePath: string, signatures: string[], - dirs: string[], { includeSignatures }: RepoMapOptions, ): string { - const workspaceDir = dirs.find((dir) => absolutePath.startsWith(dir)) || ""; - const relativePath = path.relative(workspaceDir, absolutePath); - let content = ""; - if (includeSignatures) { + if (includeSignatures !== false) { content += `${relativePath}:\n`; for (const signature of signatures.slice(0, -1)) { @@ -84,94 +83,165 @@ async function processPathsAndSignatures( llm: ILLM, dirs: string[], options: RepoMapOptions, - writeStream: fs.WriteStream, maxRepoMapTokens: number, -): Promise { + ide: IDE, +): Promise<{ content: string; remainingPaths: Set }> { + const paths = await getPaths(dirs, ide); + let pathsWithoutSignatures = new Set(paths); + + let content = ""; let curTokens = llm.countTokens(repoMapPreamble); let offset = 0; - const batchSize = 100; while (true) { const { groupedByPath, hasMore } = await CodeSnippetsCodebaseIndex.getPathsAndSignatures( dirs, offset, - batchSize, + BATCH_SIZE, ); - let content = ""; - for (const [absolutePath, signatures] of Object.entries(groupedByPath)) { - const fileContent = await fs.promises.readFile(absolutePath, "utf8"); - const filteredSignatures = signatures.filter( - (signature) => !isSnippetSameAsFile(signature, fileContent), - ); + const { batchContent, updatedPathsWithoutSignatures } = await processBatch( + groupedByPath, + dirs, + options, + pathsWithoutSignatures, + ); - content += generateContentForPath( - absolutePath, - filteredSignatures, - dirs, - options, - ); - } + pathsWithoutSignatures = updatedPathsWithoutSignatures; - const contentTokens = llm.countTokens(content); + const batchTokens = llm.countTokens(batchContent); - if (curTokens + contentTokens >= maxRepoMapTokens) { - const prunedContent = pruneLinesFromTop( - content, + if (curTokens + batchTokens >= maxRepoMapTokens) { + content += pruneLinesFromTop( + batchContent, maxRepoMapTokens - curTokens, llm.model, ); - await new Promise((resolve) => writeStream.write(prunedContent, resolve)); - return curTokens + llm.countTokens(prunedContent); - } else { - await new Promise((resolve) => writeStream.write(content, resolve)); - curTokens += contentTokens; + break; } + content += batchContent; + curTokens += batchTokens; + if (!hasMore) { break; } - offset += batchSize; + offset += BATCH_SIZE; } - return curTokens; + return { content, remainingPaths: pathsWithoutSignatures }; } -async function generateRepoMap( - llm: ILLM, - ide: IDE, - options: RepoMapOptions = {}, -) { - const repoMapPath = getRepoMapFilePath(); - const dirs = options.dirs ?? (await ide.getWorkspaceDirs()); - const maxRepoMapTokens = llm.contextLength * REPO_MAX_CONTEXT_LENGTH_RATIO; +async function processBatch( + groupedByPath: Record, + dirs: string[], + options: RepoMapOptions, + pathsWithoutSignatures: Set, +): Promise<{ + batchContent: string; + updatedPathsWithoutSignatures: Set; +}> { + let batchContent = ""; + const updatedPathsWithoutSignatures = new Set(pathsWithoutSignatures); - const paths = await getPaths(dirs, ide); - const writeStream = await initializeWriteStream(repoMapPath); + for (const [absolutePath, signatures] of Object.entries(groupedByPath)) { + const { content } = await processFile( + absolutePath, + signatures, + dirs, + options, + updatedPathsWithoutSignatures, + ); + batchContent += content; + } + return { batchContent, updatedPathsWithoutSignatures }; +} - const curTokens = await processPathsAndSignatures( - llm, - dirs, - options, - writeStream, - maxRepoMapTokens, +async function processFile( + absolutePath: string, + signatures: string[], + dirs: string[], + options: RepoMapOptions, + pathsWithoutSignatures: Set, +): Promise<{ relativePath: string; content: string }> { + const workspaceDir = dirs.find((dir) => absolutePath.startsWith(dir)) || ""; + const relativePath = path.relative(workspaceDir, absolutePath); + + const fileContent = await fs.promises.readFile(absolutePath, "utf8"); + const filteredSignatures = signatures.filter( + (signature) => !isSnippetSameAsFile(signature, fileContent), ); - const remainingPaths = Array.from(paths).join("\n"); - - if (remainingPaths.length > 0) { - await new Promise((resolve) => writeStream.write(remainingPaths, resolve)); + if (filteredSignatures.length > 0) { + pathsWithoutSignatures.delete(relativePath); } - writeStream.end(); - console.debug(`Generated repo map for ${dirs.join(", ")} at ${repoMapPath}`); + const content = generateContentForPath( + relativePath, + filteredSignatures, + options, + ); + return { relativePath, content }; +} - if (curTokens >= maxRepoMapTokens) { +async function writeContentToStream( + writeStream: fs.WriteStream, + content: string, +): Promise { + await new Promise((resolve) => writeStream.write(content, resolve)); +} + +async function writeRemainingPaths( + writeStream: fs.WriteStream, + remainingPaths: Set, +): Promise { + if (remainingPaths.size > 0) { + await new Promise((resolve) => + writeStream.write(Array.from(remainingPaths).join("\n"), resolve), + ); + } +} + +function logRepoMapGeneration( + dirs: string[], + repoMapPath: string, + contentTokens: number, + maxRepoMapTokens: number, +): void { + console.debug(`Generated repo map for ${dirs.join(", ")} at ${repoMapPath}`); + if (contentTokens >= maxRepoMapTokens) { console.debug( "Full repo map was unable to be generated due to context window limitations", ); } +} + +async function generateRepoMap(llm: ILLM, ide: IDE, options: RepoMapOptions) { + const repoMapPath = getRepoMapFilePath(); + const dirs = options.dirs ?? (await ide.getWorkspaceDirs()); + const maxRepoMapTokens = llm.contextLength * REPO_MAX_CONTEXT_LENGTH_RATIO; + const writeStream = await initializeWriteStream(repoMapPath); + + const { content, remainingPaths } = await processPathsAndSignatures( + llm, + dirs, + options, + maxRepoMapTokens, + ide, + ); + + await writeContentToStream(writeStream, content); + await writeRemainingPaths(writeStream, remainingPaths); + + writeStream.end(); + + logRepoMapGeneration( + dirs, + repoMapPath, + llm.countTokens(content), + maxRepoMapTokens, + ); return fs.readFileSync(repoMapPath, "utf8"); } From 8d09840e3a13501066e7928e59c67c9aae9005d6 Mon Sep 17 00:00:00 2001 From: Test Date: Thu, 19 Sep 2024 20:15:14 -0700 Subject: [PATCH 133/268] Update repoMap.ts --- core/util/repoMap.ts | 357 ++++++++++++++++++------------------------- 1 file changed, 150 insertions(+), 207 deletions(-) diff --git a/core/util/repoMap.ts b/core/util/repoMap.ts index 6f2166884..2d7f2a17f 100644 --- a/core/util/repoMap.ts +++ b/core/util/repoMap.ts @@ -6,244 +6,187 @@ import { walkDirAsync } from "../indexing/walkDir"; import { pruneLinesFromTop } from "../llm/countTokens"; import { getRepoMapFilePath } from "./paths"; -const repoMapPreamble = - "Below is a repository map. \n" + - "For each file in the codebase, " + - "this map contains the name of the file, and the signature for any " + - "classes, methods, or functions in the file.\n\n"; - -const REPO_MAX_CONTEXT_LENGTH_RATIO = 0.5; - -const BATCH_SIZE = 100; - export interface RepoMapOptions { includeSignatures?: boolean; dirs?: string[]; } -function indentMultilineString(str: string) { - return str - .split("\n") - .map((line: any) => "\t" + line) - .join("\n"); -} +class RepoMapGenerator { + private llm: ILLM; + private ide: IDE; + private options: RepoMapOptions; + private repoMapPath: string; + private maxRepoMapTokens: number; + private writeStream: fs.WriteStream; + private contentTokens: number = 0; + private dirs: string[] = []; + private allPathsInDirs: Set = new Set(); + private pathsInDirsWithSnippets: Set = new Set(); + private BATCH_SIZE = 100; + private REPO_MAX_CONTEXT_LENGTH_RATIO = 0.5; + private repoMapPreamble = + "Below is a repository map. \n" + + "For each file in the codebase, " + + "this map contains the name of the file, and the signature for any " + + "classes, methods, or functions in the file.\n\n"; -function isSnippetSameAsFile(snippet: string, fileContent: string): boolean { - return snippet.trim() === fileContent.trim(); -} + constructor(llm: ILLM, ide: IDE, options: RepoMapOptions) { + this.llm = llm; + this.ide = ide; + this.options = options; + this.repoMapPath = getRepoMapFilePath(); + this.maxRepoMapTokens = + llm.contextLength * this.REPO_MAX_CONTEXT_LENGTH_RATIO; + this.writeStream = fs.createWriteStream(this.repoMapPath); + } -async function getPaths(dirs: string[], ide: IDE): Promise> { - const paths = new Set(); + async generate(): Promise { + this.dirs = this.options.dirs ?? (await this.ide.getWorkspaceDirs()); + this.allPathsInDirs = await this.getAllPathsInDirs(); - for (const dir of dirs) { - for await (const filepath of walkDirAsync(dir, ide)) { - paths.add(filepath.replace(dir, "").slice(1)); + await this.initializeWriteStream(); + await this.processPathsAndSignatures(); + + this.writeStream.end(); + this.logRepoMapGeneration(); + + return fs.readFileSync(this.repoMapPath, "utf8"); + } + + private async initializeWriteStream(): Promise { + await this.writeToStream(this.repoMapPreamble); + this.contentTokens += this.llm.countTokens(this.repoMapPreamble); + } + + private async getAllPathsInDirs(): Promise> { + const paths = new Set(); + + for (const dir of this.dirs) { + for await (const filepath of walkDirAsync(dir, this.ide)) { + paths.add(filepath.replace(dir, "").slice(1)); + } + } + + return paths; + } + + private async processPathsAndSignatures(): Promise { + let offset = 0; + while (true) { + const { groupedByPath, hasMore } = + await CodeSnippetsCodebaseIndex.getPathsAndSignatures( + this.dirs, + offset, + this.BATCH_SIZE, + ); + await this.processBatch(groupedByPath); + if (!hasMore || this.contentTokens >= this.maxRepoMapTokens) { + break; + } + offset += this.BATCH_SIZE; + } + await this.writeRemainingPaths(); + } + + private async processBatch( + groupedByPath: Record, + ): Promise { + for (const [absolutePath, signatures] of Object.entries(groupedByPath)) { + const content = await this.processFile(absolutePath, signatures); + await this.writeToStream(content); } } - return paths; -} + private async processFile( + absolutePath: string, + signatures: string[], + ): Promise { + const workspaceDir = + this.dirs.find((dir) => absolutePath.startsWith(dir)) || ""; + const relativePath = path.relative(workspaceDir, absolutePath); + const fileContent = await fs.promises.readFile(absolutePath, "utf8"); + const filteredSignatures = signatures.filter( + (signature) => !this.isSnippetSameAsFile(signature, fileContent), + ); -async function initializeWriteStream( - repoMapPath: string, -): Promise { - if (fs.existsSync(repoMapPath)) { - console.debug(`Overwriting existing repo map at ${repoMapPath}`); + if (filteredSignatures.length > 0) { + this.pathsInDirsWithSnippets.add(relativePath); + } + + return this.generateContentForPath(relativePath, filteredSignatures); } - const writeStream = fs.createWriteStream(repoMapPath); - await new Promise((resolve) => writeStream.write(repoMapPreamble, resolve)); - return writeStream; -} -function generateContentForPath( - relativePath: string, - signatures: string[], - { includeSignatures }: RepoMapOptions, -): string { - let content = ""; - - if (includeSignatures !== false) { - content += `${relativePath}:\n`; + private generateContentForPath( + relativePath: string, + signatures: string[], + ): string { + if (this.options.includeSignatures === false) { + return `${relativePath}\n`; + } + let content = `${relativePath}:\n`; for (const signature of signatures.slice(0, -1)) { - content += `${indentMultilineString(signature)}\n\t...\n`; + content += `${this.indentMultilineString(signature)}\n\t...\n`; } - - content += `${indentMultilineString( + content += `${this.indentMultilineString( signatures[signatures.length - 1], )}\n\n`; - } else { - content += `${relativePath}\n`; + return content; } - return content; -} - -async function processPathsAndSignatures( - llm: ILLM, - dirs: string[], - options: RepoMapOptions, - maxRepoMapTokens: number, - ide: IDE, -): Promise<{ content: string; remainingPaths: Set }> { - const paths = await getPaths(dirs, ide); - let pathsWithoutSignatures = new Set(paths); - - let content = ""; - let curTokens = llm.countTokens(repoMapPreamble); - let offset = 0; - - while (true) { - const { groupedByPath, hasMore } = - await CodeSnippetsCodebaseIndex.getPathsAndSignatures( - dirs, - offset, - BATCH_SIZE, + private async writeToStream(content: string): Promise { + const tokens = this.llm.countTokens(content); + if (this.contentTokens + tokens > this.maxRepoMapTokens) { + content = pruneLinesFromTop( + content, + this.maxRepoMapTokens - this.contentTokens, + this.llm.model, ); - - const { batchContent, updatedPathsWithoutSignatures } = await processBatch( - groupedByPath, - dirs, - options, - pathsWithoutSignatures, - ); - - pathsWithoutSignatures = updatedPathsWithoutSignatures; - - const batchTokens = llm.countTokens(batchContent); - - if (curTokens + batchTokens >= maxRepoMapTokens) { - content += pruneLinesFromTop( - batchContent, - maxRepoMapTokens - curTokens, - llm.model, - ); - break; } + this.contentTokens += this.llm.countTokens(content); + await new Promise((resolve) => this.writeStream.write(content, resolve)); + } - content += batchContent; - curTokens += batchTokens; + private async writeRemainingPaths(): Promise { + const pathsWithoutSnippets = new Set( + [...this.allPathsInDirs].filter( + (x) => !this.pathsInDirsWithSnippets.has(x), + ), + ); - if (!hasMore) { - break; + if (pathsWithoutSnippets.size > 0) { + await this.writeToStream(Array.from(pathsWithoutSnippets).join("\n")); } - offset += BATCH_SIZE; } - return { content, remainingPaths: pathsWithoutSignatures }; -} - -async function processBatch( - groupedByPath: Record, - dirs: string[], - options: RepoMapOptions, - pathsWithoutSignatures: Set, -): Promise<{ - batchContent: string; - updatedPathsWithoutSignatures: Set; -}> { - let batchContent = ""; - const updatedPathsWithoutSignatures = new Set(pathsWithoutSignatures); - - for (const [absolutePath, signatures] of Object.entries(groupedByPath)) { - const { content } = await processFile( - absolutePath, - signatures, - dirs, - options, - updatedPathsWithoutSignatures, - ); - batchContent += content; - } - return { batchContent, updatedPathsWithoutSignatures }; -} - -async function processFile( - absolutePath: string, - signatures: string[], - dirs: string[], - options: RepoMapOptions, - pathsWithoutSignatures: Set, -): Promise<{ relativePath: string; content: string }> { - const workspaceDir = dirs.find((dir) => absolutePath.startsWith(dir)) || ""; - const relativePath = path.relative(workspaceDir, absolutePath); - - const fileContent = await fs.promises.readFile(absolutePath, "utf8"); - const filteredSignatures = signatures.filter( - (signature) => !isSnippetSameAsFile(signature, fileContent), - ); - - if (filteredSignatures.length > 0) { - pathsWithoutSignatures.delete(relativePath); - } - - const content = generateContentForPath( - relativePath, - filteredSignatures, - options, - ); - return { relativePath, content }; -} - -async function writeContentToStream( - writeStream: fs.WriteStream, - content: string, -): Promise { - await new Promise((resolve) => writeStream.write(content, resolve)); -} - -async function writeRemainingPaths( - writeStream: fs.WriteStream, - remainingPaths: Set, -): Promise { - if (remainingPaths.size > 0) { - await new Promise((resolve) => - writeStream.write(Array.from(remainingPaths).join("\n"), resolve), - ); - } -} - -function logRepoMapGeneration( - dirs: string[], - repoMapPath: string, - contentTokens: number, - maxRepoMapTokens: number, -): void { - console.debug(`Generated repo map for ${dirs.join(", ")} at ${repoMapPath}`); - if (contentTokens >= maxRepoMapTokens) { + private logRepoMapGeneration(): void { console.debug( - "Full repo map was unable to be generated due to context window limitations", + `Generated repo map for ${this.dirs.join(", ")} at ${this.repoMapPath}`, ); + if (this.contentTokens >= this.maxRepoMapTokens) { + console.debug( + "Full repo map was unable to be generated due to context window limitations", + ); + } + } + + private isSnippetSameAsFile(snippet: string, fileContent: string): boolean { + return snippet.trim() === fileContent.trim(); + } + + private indentMultilineString(str: string) { + return str + .split("\n") + .map((line: any) => "\t" + line) + .join("\n"); } } -async function generateRepoMap(llm: ILLM, ide: IDE, options: RepoMapOptions) { - const repoMapPath = getRepoMapFilePath(); - const dirs = options.dirs ?? (await ide.getWorkspaceDirs()); - const maxRepoMapTokens = llm.contextLength * REPO_MAX_CONTEXT_LENGTH_RATIO; - const writeStream = await initializeWriteStream(repoMapPath); - - const { content, remainingPaths } = await processPathsAndSignatures( - llm, - dirs, - options, - maxRepoMapTokens, - ide, - ); - - await writeContentToStream(writeStream, content); - await writeRemainingPaths(writeStream, remainingPaths); - - writeStream.end(); - - logRepoMapGeneration( - dirs, - repoMapPath, - llm.countTokens(content), - maxRepoMapTokens, - ); - - return fs.readFileSync(repoMapPath, "utf8"); +export default async function generateRepoMap( + llm: ILLM, + ide: IDE, + options: RepoMapOptions, +): Promise { + const generator = new RepoMapGenerator(llm, ide, options); + return generator.generate(); } - -export default generateRepoMap; From f223de175795c0a733b8129d9c49afb23f3539ce Mon Sep 17 00:00:00 2001 From: Test Date: Thu, 19 Sep 2024 20:43:46 -0700 Subject: [PATCH 134/268] Update ContextItemsPeek.tsx --- .../components/mainInput/ContextItemsPeek.tsx | 129 +++++++++--------- 1 file changed, 66 insertions(+), 63 deletions(-) diff --git a/gui/src/components/mainInput/ContextItemsPeek.tsx b/gui/src/components/mainInput/ContextItemsPeek.tsx index 50d3f32ac..7f9a97318 100644 --- a/gui/src/components/mainInput/ContextItemsPeek.tsx +++ b/gui/src/components/mainInput/ContextItemsPeek.tsx @@ -1,4 +1,8 @@ -import { ChevronDownIcon, ChevronUpIcon } from "@heroicons/react/24/outline"; +import { + ChevronDownIcon, + ChevronUpIcon, + CircleStackIcon, +} from "@heroicons/react/24/outline"; import { ContextItemWithId } from "core"; import { contextItemToRangeInFileWithContents } from "core/commands/util"; import React, { useContext } from "react"; @@ -14,6 +18,7 @@ import { getFontSize } from "../../util"; import FileIcon from "../FileIcon"; import SafeImg from "../SafeImg"; import { INSTRUCTIONS_BASE_ITEM } from "core/context/providers/utils"; +import { MapIcon } from "@heroicons/react/24/outline"; const ContextItemDiv = styled.div` cursor: pointer; @@ -48,6 +53,11 @@ interface ContextItemsPeekProps { contextItems?: ContextItemWithId[]; } +const CONTEXT_PROVIDERS_TO_ICONS: Record = { + "repo-map": MapIcon, + database: CircleStackIcon, +}; + function filterInstructionContextItem( contextItems: ContextItemsPeekProps["contextItems"], ) { @@ -93,6 +103,45 @@ const ContextItemsPeek = (props: ContextItemsPeekProps) => { } } + const getContextItemIcon = (contextItem: ContextItemWithId) => { + const dimmensions = "1.4em"; + + if (contextItem.icon) { + return ( + + ); + } + + const ProviderIcon = + CONTEXT_PROVIDERS_TO_ICONS[contextItem.id.providerTitle]; + + if (ProviderIcon) { + return ( + + ); + } + + return ( + + ); + }; + return (
{ }} > {ctxItems?.map((contextItem, idx) => { - if (contextItem.description.startsWith("http")) { - return ( - - { - openContextItem(contextItem); - }} - > - {!!contextItem.icon ? ( - - ) : ( - - )} - {contextItem.name} - - - ); - } - - return ( - { - openContextItem(contextItem); - }} - > - {!!contextItem.icon ? ( - - ) : ( - - )} + const contextItemContent = ( + openContextItem(contextItem)}> + {getContextItemIcon(contextItem)} {contextItem.name} ); + + return contextItem.description.startsWith("http") ? ( + + {contextItemContent} + + ) : ( + {contextItemContent} + ); })}
)} From 1c51b19deaa5e10bbd7d63442ec5bdd8e91629ee Mon Sep 17 00:00:00 2001 From: Nate Date: Thu, 19 Sep 2024 21:07:55 -0700 Subject: [PATCH 135/268] user-select: none --- gui/src/components/mainInput/InputToolbar.tsx | 2 ++ 1 file changed, 2 insertions(+) diff --git a/gui/src/components/mainInput/InputToolbar.tsx b/gui/src/components/mainInput/InputToolbar.tsx index 960baa999..a95a71502 100644 --- a/gui/src/components/mainInput/InputToolbar.tsx +++ b/gui/src/components/mainInput/InputToolbar.tsx @@ -38,6 +38,8 @@ const StyledDiv = styled.div<{ isHidden: boolean }>` opacity: ${(props) => (props.isHidden ? 0 : 1)}; pointer-events: ${(props) => (props.isHidden ? "none" : "auto")}; + user-select: none; + & > * { flex: 0 0 auto; } From 6f86ad26e9121fd7c5358e6286baece2ea05b155 Mon Sep 17 00:00:00 2001 From: Nate Date: Thu, 19 Sep 2024 21:10:17 -0700 Subject: [PATCH 136/268] workos bug fix --- extensions/vscode/src/stubs/SecretStorage.ts | 6 ++++-- extensions/vscode/src/stubs/WorkOsAuthProvider.ts | 7 ++++++- 2 files changed, 10 insertions(+), 3 deletions(-) diff --git a/extensions/vscode/src/stubs/SecretStorage.ts b/extensions/vscode/src/stubs/SecretStorage.ts index a12f313ae..4c85dfb01 100644 --- a/extensions/vscode/src/stubs/SecretStorage.ts +++ b/extensions/vscode/src/stubs/SecretStorage.ts @@ -92,13 +92,15 @@ export class SecretStorage { } async store(key: string, value: string): Promise { - const encryptedValue = await this.encrypt(value, this.keyToFilepath(key)); + const filePath = this.keyToFilepath(key); + await this.encrypt(value, filePath); } async get(key: string): Promise { const filePath = this.keyToFilepath(key); if (fs.existsSync(filePath)) { - return await this.decrypt(filePath); + const value = await this.decrypt(filePath); + return value; } return undefined; } diff --git a/extensions/vscode/src/stubs/WorkOsAuthProvider.ts b/extensions/vscode/src/stubs/WorkOsAuthProvider.ts index bf5472d3d..ce3af8ff7 100644 --- a/extensions/vscode/src/stubs/WorkOsAuthProvider.ts +++ b/extensions/vscode/src/stubs/WorkOsAuthProvider.ts @@ -137,19 +137,24 @@ export class WorkOsAuthProvider implements AuthenticationProvider, Disposable { if (!this._sessions.length) { return; } + + const finalSessions = []; for (const session of this._sessions) { try { const newSession = await this._refreshSession(session.refreshToken); session.accessToken = newSession.accessToken; session.refreshToken = newSession.refreshToken; session.expiresIn = newSession.expiresIn; + finalSessions.push(session); } catch (e: any) { if (e.message === "Network failure") { setTimeout(() => this._refreshSessions(), 60 * 1000); return; } + console.debug(`Error refreshing session token: ${e.message}`); } } + this._sessions = finalSessions; await this.storeSessions(this._sessions); this._sessionChangeEmitter.fire({ added: [], @@ -157,7 +162,7 @@ export class WorkOsAuthProvider implements AuthenticationProvider, Disposable { changed: this._sessions, }); - if (this._sessions[0].expiresIn) { + if (this._sessions[0]?.expiresIn) { setTimeout( () => this._refreshSessions(), (this._sessions[0].expiresIn * 2) / 3, From 7d752aeacc6e58fcae821b4c13eef68e51859c9b Mon Sep 17 00:00:00 2001 From: Nate Date: Thu, 19 Sep 2024 21:11:17 -0700 Subject: [PATCH 137/268] bump version --- .changes/unreleased/Fixed-20240919-211112.yaml | 4 ++++ extensions/vscode/package.json | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) create mode 100644 .changes/unreleased/Fixed-20240919-211112.yaml diff --git a/.changes/unreleased/Fixed-20240919-211112.yaml b/.changes/unreleased/Fixed-20240919-211112.yaml new file mode 100644 index 000000000..5109006f8 --- /dev/null +++ b/.changes/unreleased/Fixed-20240919-211112.yaml @@ -0,0 +1,4 @@ +project: extensions/vscode +kind: Fixed +body: Continue for teams auth bug fix +time: 2024-09-19T21:11:12.997946-07:00 diff --git a/extensions/vscode/package.json b/extensions/vscode/package.json index 5f3265799..2269b08dc 100644 --- a/extensions/vscode/package.json +++ b/extensions/vscode/package.json @@ -2,7 +2,7 @@ "name": "continue", "icon": "media/icon.png", "author": "Continue Dev, Inc", - "version": "0.9.213", + "version": "0.9.214", "repository": { "type": "git", "url": "https://github.com/continuedev/continue" From 25d701d0937360ddbde5c55e11293c03692bbd45 Mon Sep 17 00:00:00 2001 From: Nate Date: Thu, 19 Sep 2024 21:13:39 -0700 Subject: [PATCH 138/268] -3 bump --- 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 2269b08dc..1f206771a 100644 --- a/extensions/vscode/package.json +++ b/extensions/vscode/package.json @@ -2,7 +2,7 @@ "name": "continue", "icon": "media/icon.png", "author": "Continue Dev, Inc", - "version": "0.9.214", + "version": "0.9.211", "repository": { "type": "git", "url": "https://github.com/continuedev/continue" From 6419cb0dfadfbc20050a278777498b1e4083401f Mon Sep 17 00:00:00 2001 From: YouJiacheng <1503679330@qq.com> Date: Fri, 20 Sep 2024 15:39:14 +0800 Subject: [PATCH 139/268] chore: add maxBatchSize to config_schema.json --- extensions/vscode/config_schema.json | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/extensions/vscode/config_schema.json b/extensions/vscode/config_schema.json index 911278ebb..b15b81f48 100644 --- a/extensions/vscode/config_schema.json +++ b/extensions/vscode/config_schema.json @@ -2114,6 +2114,13 @@ "minimum": 128, "exclusiveMaximum": 2147483647 }, + "maxBatchSize": { + "title": "Maximum Batch Size", + "description": "The maximum number of chunks that can be sent to the embeddings provider in a single request", + "type": "integer", + "minimum": 1, + "exclusiveMaximum": 2147483647 + }, "region": { "title": "Region", "description": "The region where the model is hosted", From 5cfcf3d9f5ef3b6285b44ae861e9e81cfdb1b861 Mon Sep 17 00:00:00 2001 From: Test Date: Fri, 20 Sep 2024 10:00:57 -0700 Subject: [PATCH 140/268] cleanup --- .vscode/launch.json | 2 +- .../providers/RepoMapContextProvider.ts | 2 +- core/context/retrieval/repoMapRequest.ts | 9 +- core/util/repoMap.ts | 192 ------------------ 4 files changed, 7 insertions(+), 198 deletions(-) delete mode 100644 core/util/repoMap.ts diff --git a/.vscode/launch.json b/.vscode/launch.json index 896793040..f5c81180f 100644 --- a/.vscode/launch.json +++ b/.vscode/launch.json @@ -12,7 +12,7 @@ "cwd": "${workspaceFolder}/extensions/vscode", "args": [ // Pass a directory to manually test in - "${workspaceFolder}/manual-testing-sandbox", + "${workspaceFolder}/gui", "${workspaceFolder}/manual-testing-sandbox/test.js", "--extensionDevelopmentPath=${workspaceFolder}/extensions/vscode" ], diff --git a/core/context/providers/RepoMapContextProvider.ts b/core/context/providers/RepoMapContextProvider.ts index 900cd87dc..cb2771638 100644 --- a/core/context/providers/RepoMapContextProvider.ts +++ b/core/context/providers/RepoMapContextProvider.ts @@ -11,7 +11,7 @@ import { getBasename, getUniqueFilePath, } from "../../util"; -import generateRepoMap from "../../util/repoMap"; +import generateRepoMap from "../../util/generateRepoMap"; const ENTIRE_PROJECT_ITEM: ContextSubmenuItem = { id: "entire-workspace", diff --git a/core/context/retrieval/repoMapRequest.ts b/core/context/retrieval/repoMapRequest.ts index 9dea96de0..3786e57be 100644 --- a/core/context/retrieval/repoMapRequest.ts +++ b/core/context/retrieval/repoMapRequest.ts @@ -1,7 +1,7 @@ import { Chunk, ContinueConfig, IDE, ILLM } from "../.."; import { getModelByRole } from "../../config/util"; import { stripImages } from "../../llm/images"; -import generateRepoMap from "../../util/repoMap"; +import generateRepoMap from "../../util/generateRepoMap"; export async function requestFilesFromRepoMap( defaultLlm: ILLM, @@ -13,9 +13,10 @@ export async function requestFilesFromRepoMap( const llm = getModelByRole(config, "repoMapFileSelection") ?? defaultLlm; // Only supported for Claude models right now - if (!llm.model.toLowerCase().includes("claude")) { - return []; - } + // TODO: Uncomment + // if (!llm.model.toLowerCase().includes("claude")) { + // return []; + // } try { const repoMap = await generateRepoMap(llm, ide, { diff --git a/core/util/repoMap.ts b/core/util/repoMap.ts deleted file mode 100644 index 2d7f2a17f..000000000 --- a/core/util/repoMap.ts +++ /dev/null @@ -1,192 +0,0 @@ -import fs from "node:fs"; -import path from "node:path"; -import { IDE, ILLM } from ".."; -import { CodeSnippetsCodebaseIndex } from "../indexing/CodeSnippetsIndex"; -import { walkDirAsync } from "../indexing/walkDir"; -import { pruneLinesFromTop } from "../llm/countTokens"; -import { getRepoMapFilePath } from "./paths"; - -export interface RepoMapOptions { - includeSignatures?: boolean; - dirs?: string[]; -} - -class RepoMapGenerator { - private llm: ILLM; - private ide: IDE; - private options: RepoMapOptions; - private repoMapPath: string; - private maxRepoMapTokens: number; - private writeStream: fs.WriteStream; - private contentTokens: number = 0; - private dirs: string[] = []; - private allPathsInDirs: Set = new Set(); - private pathsInDirsWithSnippets: Set = new Set(); - private BATCH_SIZE = 100; - private REPO_MAX_CONTEXT_LENGTH_RATIO = 0.5; - private repoMapPreamble = - "Below is a repository map. \n" + - "For each file in the codebase, " + - "this map contains the name of the file, and the signature for any " + - "classes, methods, or functions in the file.\n\n"; - - constructor(llm: ILLM, ide: IDE, options: RepoMapOptions) { - this.llm = llm; - this.ide = ide; - this.options = options; - this.repoMapPath = getRepoMapFilePath(); - this.maxRepoMapTokens = - llm.contextLength * this.REPO_MAX_CONTEXT_LENGTH_RATIO; - this.writeStream = fs.createWriteStream(this.repoMapPath); - } - - async generate(): Promise { - this.dirs = this.options.dirs ?? (await this.ide.getWorkspaceDirs()); - this.allPathsInDirs = await this.getAllPathsInDirs(); - - await this.initializeWriteStream(); - await this.processPathsAndSignatures(); - - this.writeStream.end(); - this.logRepoMapGeneration(); - - return fs.readFileSync(this.repoMapPath, "utf8"); - } - - private async initializeWriteStream(): Promise { - await this.writeToStream(this.repoMapPreamble); - this.contentTokens += this.llm.countTokens(this.repoMapPreamble); - } - - private async getAllPathsInDirs(): Promise> { - const paths = new Set(); - - for (const dir of this.dirs) { - for await (const filepath of walkDirAsync(dir, this.ide)) { - paths.add(filepath.replace(dir, "").slice(1)); - } - } - - return paths; - } - - private async processPathsAndSignatures(): Promise { - let offset = 0; - while (true) { - const { groupedByPath, hasMore } = - await CodeSnippetsCodebaseIndex.getPathsAndSignatures( - this.dirs, - offset, - this.BATCH_SIZE, - ); - await this.processBatch(groupedByPath); - if (!hasMore || this.contentTokens >= this.maxRepoMapTokens) { - break; - } - offset += this.BATCH_SIZE; - } - await this.writeRemainingPaths(); - } - - private async processBatch( - groupedByPath: Record, - ): Promise { - for (const [absolutePath, signatures] of Object.entries(groupedByPath)) { - const content = await this.processFile(absolutePath, signatures); - await this.writeToStream(content); - } - } - - private async processFile( - absolutePath: string, - signatures: string[], - ): Promise { - const workspaceDir = - this.dirs.find((dir) => absolutePath.startsWith(dir)) || ""; - const relativePath = path.relative(workspaceDir, absolutePath); - const fileContent = await fs.promises.readFile(absolutePath, "utf8"); - const filteredSignatures = signatures.filter( - (signature) => !this.isSnippetSameAsFile(signature, fileContent), - ); - - if (filteredSignatures.length > 0) { - this.pathsInDirsWithSnippets.add(relativePath); - } - - return this.generateContentForPath(relativePath, filteredSignatures); - } - - private generateContentForPath( - relativePath: string, - signatures: string[], - ): string { - if (this.options.includeSignatures === false) { - return `${relativePath}\n`; - } - - let content = `${relativePath}:\n`; - for (const signature of signatures.slice(0, -1)) { - content += `${this.indentMultilineString(signature)}\n\t...\n`; - } - content += `${this.indentMultilineString( - signatures[signatures.length - 1], - )}\n\n`; - return content; - } - - private async writeToStream(content: string): Promise { - const tokens = this.llm.countTokens(content); - if (this.contentTokens + tokens > this.maxRepoMapTokens) { - content = pruneLinesFromTop( - content, - this.maxRepoMapTokens - this.contentTokens, - this.llm.model, - ); - } - this.contentTokens += this.llm.countTokens(content); - await new Promise((resolve) => this.writeStream.write(content, resolve)); - } - - private async writeRemainingPaths(): Promise { - const pathsWithoutSnippets = new Set( - [...this.allPathsInDirs].filter( - (x) => !this.pathsInDirsWithSnippets.has(x), - ), - ); - - if (pathsWithoutSnippets.size > 0) { - await this.writeToStream(Array.from(pathsWithoutSnippets).join("\n")); - } - } - - private logRepoMapGeneration(): void { - console.debug( - `Generated repo map for ${this.dirs.join(", ")} at ${this.repoMapPath}`, - ); - if (this.contentTokens >= this.maxRepoMapTokens) { - console.debug( - "Full repo map was unable to be generated due to context window limitations", - ); - } - } - - private isSnippetSameAsFile(snippet: string, fileContent: string): boolean { - return snippet.trim() === fileContent.trim(); - } - - private indentMultilineString(str: string) { - return str - .split("\n") - .map((line: any) => "\t" + line) - .join("\n"); - } -} - -export default async function generateRepoMap( - llm: ILLM, - ide: IDE, - options: RepoMapOptions, -): Promise { - const generator = new RepoMapGenerator(llm, ide, options); - return generator.generate(); -} From a9a34dd75421d44a9d8a25e0d527818a1e8a4b8d Mon Sep 17 00:00:00 2001 From: Test Date: Fri, 20 Sep 2024 10:01:06 -0700 Subject: [PATCH 141/268] Create generateRepoMap.ts --- core/util/generateRepoMap.ts | 196 +++++++++++++++++++++++++++++++++++ 1 file changed, 196 insertions(+) create mode 100644 core/util/generateRepoMap.ts diff --git a/core/util/generateRepoMap.ts b/core/util/generateRepoMap.ts new file mode 100644 index 000000000..1d130b82e --- /dev/null +++ b/core/util/generateRepoMap.ts @@ -0,0 +1,196 @@ +import fs from "node:fs"; +import path from "node:path"; +import { IDE, ILLM } from ".."; +import { CodeSnippetsCodebaseIndex } from "../indexing/CodeSnippetsIndex"; +import { walkDirAsync } from "../indexing/walkDir"; +import { pruneLinesFromTop } from "../llm/countTokens"; +import { getRepoMapFilePath } from "./paths"; + +export interface RepoMapOptions { + includeSignatures?: boolean; + dirs?: string[]; +} + +class RepoMapGenerator { + private llm: ILLM; + private ide: IDE; + private options: RepoMapOptions; + private maxRepoMapTokens: number; + + private repoMapPath: string = getRepoMapFilePath(); + private writeStream: fs.WriteStream = fs.createWriteStream(this.repoMapPath); + private contentTokens: number = 0; + private repoMapDirs: string[] = []; + private allPathsInDirs: Set = new Set(); + private pathsInDirsWithSnippets: Set = new Set(); + + private BATCH_SIZE = 100; + private REPO_MAX_CONTEXT_LENGTH_RATIO = 0.5; + private PREAMBLE = + "Below is a repository map. \n" + + "For each file in the codebase, " + + "this map contains the name of the file, and the signature for any " + + "classes, methods, or functions in the file.\n\n"; + + constructor(llm: ILLM, ide: IDE, options: RepoMapOptions) { + this.llm = llm; + this.ide = ide; + this.options = options; + this.maxRepoMapTokens = + llm.contextLength * this.REPO_MAX_CONTEXT_LENGTH_RATIO; + } + + async generate(): Promise { + this.repoMapDirs = this.options.dirs ?? (await this.ide.getWorkspaceDirs()); + this.allPathsInDirs = await this.getAllPathsInDirs(); + + await this.initializeWriteStream(); + await this.processPathsAndSignatures(); + + this.writeStream.end(); + this.logRepoMapGeneration(); + + return fs.readFileSync(this.repoMapPath, "utf8"); + } + + private async initializeWriteStream(): Promise { + await this.writeToStream(this.PREAMBLE); + this.contentTokens += this.llm.countTokens(this.PREAMBLE); + } + + private async getAllPathsInDirs(): Promise> { + const paths = new Set(); + + for (const dir of this.repoMapDirs) { + for await (const filepath of walkDirAsync(dir, this.ide)) { + paths.add(filepath.replace(dir, "").slice(1)); + } + } + + return paths; + } + + private async processPathsAndSignatures(): Promise { + let offset = 0; + while (true) { + const { groupedByPath, hasMore } = + await CodeSnippetsCodebaseIndex.getPathsAndSignatures( + this.repoMapDirs, + offset, + this.BATCH_SIZE, + ); + await this.processBatch(groupedByPath); + if (!hasMore || this.contentTokens >= this.maxRepoMapTokens) { + break; + } + offset += this.BATCH_SIZE; + } + await this.writeRemainingPaths(); + } + + private async processBatch( + groupedByPath: Record, + ): Promise { + for (const [absolutePath, signatures] of Object.entries(groupedByPath)) { + const content = await this.processFile(absolutePath, signatures); + await this.writeToStream(content); + } + } + + private async processFile( + absolutePath: string, + signatures: string[], + ): Promise { + const workspaceDir = + this.repoMapDirs.find((dir) => absolutePath.startsWith(dir)) || ""; + const relativePath = path.relative(workspaceDir, absolutePath); + const fileContent = await fs.promises.readFile(absolutePath, "utf8"); + const filteredSignatures = signatures.filter( + (signature) => signature.trim() !== fileContent.trim(), + ); + + if (filteredSignatures.length > 0) { + this.pathsInDirsWithSnippets.add(relativePath); + } + + return this.generateContentForPath(relativePath, filteredSignatures); + } + + private generateContentForPath( + relativePath: string, + signatures: string[], + ): string { + if (this.options.includeSignatures === false) { + return `${relativePath}\n`; + } + + let content = `${relativePath}:\n`; + + for (const signature of signatures.slice(0, -1)) { + content += `${this.indentMultilineString(signature)}\n\t...\n`; + } + + content += `${this.indentMultilineString( + signatures[signatures.length - 1], + )}\n\n`; + + return content; + } + + private async writeToStream(content: string): Promise { + const tokens = this.llm.countTokens(content); + + if (this.contentTokens + tokens > this.maxRepoMapTokens) { + content = pruneLinesFromTop( + content, + this.maxRepoMapTokens - this.contentTokens, + this.llm.model, + ); + } + + this.contentTokens += this.llm.countTokens(content); + + await new Promise((resolve) => this.writeStream.write(content, resolve)); + } + + private async writeRemainingPaths(): Promise { + const pathsWithoutSnippets = new Set( + [...this.allPathsInDirs].filter( + (x) => !this.pathsInDirsWithSnippets.has(x), + ), + ); + + if (pathsWithoutSnippets.size > 0) { + await this.writeToStream(Array.from(pathsWithoutSnippets).join("\n")); + } + } + + private logRepoMapGeneration(): void { + console.debug( + `Generated repo map for ${this.repoMapDirs.join(", ")} at ${ + this.repoMapPath + }`, + ); + if (this.contentTokens >= this.maxRepoMapTokens) { + console.debug( + "Full repo map was unable to be generated due to context window limitations", + ); + } + } + + private indentMultilineString(str: string) { + return str + .split("\n") + .map((line: any) => "\t" + line) + .join("\n"); + } +} + +export default async function generateRepoMap( + llm: ILLM, + ide: IDE, + options: RepoMapOptions, +): Promise { + const generator = new RepoMapGenerator(llm, ide, options); + return generator.generate(); +} From 213583b2a108c5410e6991d3a4d79b68de817b36 Mon Sep 17 00:00:00 2001 From: Nate Date: Thu, 19 Sep 2024 21:07:55 -0700 Subject: [PATCH 142/268] user-select: none --- gui/src/components/mainInput/InputToolbar.tsx | 2 ++ 1 file changed, 2 insertions(+) diff --git a/gui/src/components/mainInput/InputToolbar.tsx b/gui/src/components/mainInput/InputToolbar.tsx index 960baa999..a95a71502 100644 --- a/gui/src/components/mainInput/InputToolbar.tsx +++ b/gui/src/components/mainInput/InputToolbar.tsx @@ -38,6 +38,8 @@ const StyledDiv = styled.div<{ isHidden: boolean }>` opacity: ${(props) => (props.isHidden ? 0 : 1)}; pointer-events: ${(props) => (props.isHidden ? "none" : "auto")}; + user-select: none; + & > * { flex: 0 0 auto; } From 4cc3029d23542769a54af9ec022b18075fa9b839 Mon Sep 17 00:00:00 2001 From: Nate Date: Thu, 19 Sep 2024 21:10:17 -0700 Subject: [PATCH 143/268] workos bug fix --- extensions/vscode/src/stubs/SecretStorage.ts | 6 ++++-- extensions/vscode/src/stubs/WorkOsAuthProvider.ts | 7 ++++++- 2 files changed, 10 insertions(+), 3 deletions(-) diff --git a/extensions/vscode/src/stubs/SecretStorage.ts b/extensions/vscode/src/stubs/SecretStorage.ts index a12f313ae..4c85dfb01 100644 --- a/extensions/vscode/src/stubs/SecretStorage.ts +++ b/extensions/vscode/src/stubs/SecretStorage.ts @@ -92,13 +92,15 @@ export class SecretStorage { } async store(key: string, value: string): Promise { - const encryptedValue = await this.encrypt(value, this.keyToFilepath(key)); + const filePath = this.keyToFilepath(key); + await this.encrypt(value, filePath); } async get(key: string): Promise { const filePath = this.keyToFilepath(key); if (fs.existsSync(filePath)) { - return await this.decrypt(filePath); + const value = await this.decrypt(filePath); + return value; } return undefined; } diff --git a/extensions/vscode/src/stubs/WorkOsAuthProvider.ts b/extensions/vscode/src/stubs/WorkOsAuthProvider.ts index bf5472d3d..ce3af8ff7 100644 --- a/extensions/vscode/src/stubs/WorkOsAuthProvider.ts +++ b/extensions/vscode/src/stubs/WorkOsAuthProvider.ts @@ -137,19 +137,24 @@ export class WorkOsAuthProvider implements AuthenticationProvider, Disposable { if (!this._sessions.length) { return; } + + const finalSessions = []; for (const session of this._sessions) { try { const newSession = await this._refreshSession(session.refreshToken); session.accessToken = newSession.accessToken; session.refreshToken = newSession.refreshToken; session.expiresIn = newSession.expiresIn; + finalSessions.push(session); } catch (e: any) { if (e.message === "Network failure") { setTimeout(() => this._refreshSessions(), 60 * 1000); return; } + console.debug(`Error refreshing session token: ${e.message}`); } } + this._sessions = finalSessions; await this.storeSessions(this._sessions); this._sessionChangeEmitter.fire({ added: [], @@ -157,7 +162,7 @@ export class WorkOsAuthProvider implements AuthenticationProvider, Disposable { changed: this._sessions, }); - if (this._sessions[0].expiresIn) { + if (this._sessions[0]?.expiresIn) { setTimeout( () => this._refreshSessions(), (this._sessions[0].expiresIn * 2) / 3, From 63b8f1bea88fd7fb5634ca05da790679fde12b0d Mon Sep 17 00:00:00 2001 From: Nate Date: Thu, 19 Sep 2024 21:11:17 -0700 Subject: [PATCH 144/268] bump version --- .changes/unreleased/Fixed-20240919-211112.yaml | 4 ++++ 1 file changed, 4 insertions(+) create mode 100644 .changes/unreleased/Fixed-20240919-211112.yaml diff --git a/.changes/unreleased/Fixed-20240919-211112.yaml b/.changes/unreleased/Fixed-20240919-211112.yaml new file mode 100644 index 000000000..5109006f8 --- /dev/null +++ b/.changes/unreleased/Fixed-20240919-211112.yaml @@ -0,0 +1,4 @@ +project: extensions/vscode +kind: Fixed +body: Continue for teams auth bug fix +time: 2024-09-19T21:11:12.997946-07:00 From cb11cfb57c70992be9ccb2b557a6a370d991f49a Mon Sep 17 00:00:00 2001 From: Nate Date: Thu, 19 Sep 2024 21:13:39 -0700 Subject: [PATCH 145/268] -3 bump --- 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 2269b08dc..1f206771a 100644 --- a/extensions/vscode/package.json +++ b/extensions/vscode/package.json @@ -2,7 +2,7 @@ "name": "continue", "icon": "media/icon.png", "author": "Continue Dev, Inc", - "version": "0.9.214", + "version": "0.9.211", "repository": { "type": "git", "url": "https://github.com/continuedev/continue" From d055e2bc92b512530e6e6c868f0ee695326deca8 Mon Sep 17 00:00:00 2001 From: Test Date: Fri, 20 Sep 2024 10:35:20 -0700 Subject: [PATCH 146/268] file read error handling --- core/context/retrieval/repoMapRequest.ts | 7 +++---- core/indexing/docs/DocsCrawler.ts | 2 +- core/util/generateRepoMap.ts | 23 ++++++++++++++++++++--- extensions/vscode/package-lock.json | 4 ++-- 4 files changed, 26 insertions(+), 10 deletions(-) diff --git a/core/context/retrieval/repoMapRequest.ts b/core/context/retrieval/repoMapRequest.ts index 3786e57be..9a62041f6 100644 --- a/core/context/retrieval/repoMapRequest.ts +++ b/core/context/retrieval/repoMapRequest.ts @@ -13,10 +13,9 @@ export async function requestFilesFromRepoMap( const llm = getModelByRole(config, "repoMapFileSelection") ?? defaultLlm; // Only supported for Claude models right now - // TODO: Uncomment - // if (!llm.model.toLowerCase().includes("claude")) { - // return []; - // } + if (!llm.model.toLowerCase().includes("claude")) { + return []; + } try { const repoMap = await generateRepoMap(llm, ide, { diff --git a/core/indexing/docs/DocsCrawler.ts b/core/indexing/docs/DocsCrawler.ts index aea21e3cf..70d6ead29 100644 --- a/core/indexing/docs/DocsCrawler.ts +++ b/core/indexing/docs/DocsCrawler.ts @@ -411,7 +411,7 @@ class ChromiumCrawler { for (const link of linkGroup) { enqueuedLinkCount++; - console.log({ enqueuedLinkCount, url: this.startUrl }); + console.log({ enqueuedLinkCount, url: this.startUrl.toString() }); if (enqueuedLinkCount <= this.maxRequestsPerCrawl) { yield* this.crawlSitePages(page, new URL(link), visitedLinks); } diff --git a/core/util/generateRepoMap.ts b/core/util/generateRepoMap.ts index 1d130b82e..785a62c41 100644 --- a/core/util/generateRepoMap.ts +++ b/core/util/generateRepoMap.ts @@ -93,18 +93,35 @@ class RepoMapGenerator { ): Promise { for (const [absolutePath, signatures] of Object.entries(groupedByPath)) { const content = await this.processFile(absolutePath, signatures); - await this.writeToStream(content); + + if (content) { + await this.writeToStream(content); + } } } private async processFile( absolutePath: string, signatures: string[], - ): Promise { + ): Promise { const workspaceDir = this.repoMapDirs.find((dir) => absolutePath.startsWith(dir)) || ""; const relativePath = path.relative(workspaceDir, absolutePath); - const fileContent = await fs.promises.readFile(absolutePath, "utf8"); + + let fileContent: string; + + try { + fileContent = await fs.promises.readFile(absolutePath, "utf8"); + } catch (err) { + console.error( + "Failed to read file:\n" + + ` Path: ${absolutePath}\n` + + ` Error: ${err instanceof Error ? err.message : String(err)}`, + ); + + return; + } + const filteredSignatures = signatures.filter( (signature) => signature.trim() !== fileContent.trim(), ); diff --git a/extensions/vscode/package-lock.json b/extensions/vscode/package-lock.json index 746043d15..1efe40dfa 100644 --- a/extensions/vscode/package-lock.json +++ b/extensions/vscode/package-lock.json @@ -1,12 +1,12 @@ { "name": "continue", - "version": "0.9.214", + "version": "0.9.211", "lockfileVersion": 3, "requires": true, "packages": { "": { "name": "continue", - "version": "0.9.214", + "version": "0.9.211", "license": "Apache-2.0", "dependencies": { "@electron/rebuild": "^3.2.10", From 127a490e284e66d3c8d3b400a64fe99344a200b8 Mon Sep 17 00:00:00 2001 From: Test Date: Fri, 20 Sep 2024 10:59:06 -0700 Subject: [PATCH 147/268] update context peek --- core/context/providers/OSContextProvider.ts | 6 ++++-- .../components/mainInput/ContextItemsPeek.tsx | 19 ++++++------------- gui/src/components/mainInput/MentionList.tsx | 14 ++++++++++---- 3 files changed, 20 insertions(+), 19 deletions(-) diff --git a/core/context/providers/OSContextProvider.ts b/core/context/providers/OSContextProvider.ts index e0894a1cd..45852c934 100644 --- a/core/context/providers/OSContextProvider.ts +++ b/core/context/providers/OSContextProvider.ts @@ -23,8 +23,10 @@ class OSContextProvider extends BaseContextProvider { return [ { description: "Your operating system and CPU", - content: `I am running ${platform === "win32" ? "Windows" : platform} on ${cpu}.`, - name: "os", + content: `I am running ${ + platform === "win32" ? "Windows" : platform + } on ${cpu}.`, + name: "Operating System", }, ]; } diff --git a/gui/src/components/mainInput/ContextItemsPeek.tsx b/gui/src/components/mainInput/ContextItemsPeek.tsx index 7f9a97318..a8fb6b9f0 100644 --- a/gui/src/components/mainInput/ContextItemsPeek.tsx +++ b/gui/src/components/mainInput/ContextItemsPeek.tsx @@ -1,8 +1,4 @@ -import { - ChevronDownIcon, - ChevronUpIcon, - CircleStackIcon, -} from "@heroicons/react/24/outline"; +import { ChevronDownIcon, ChevronUpIcon } from "@heroicons/react/24/outline"; import { ContextItemWithId } from "core"; import { contextItemToRangeInFileWithContents } from "core/commands/util"; import React, { useContext } from "react"; @@ -18,7 +14,7 @@ import { getFontSize } from "../../util"; import FileIcon from "../FileIcon"; import SafeImg from "../SafeImg"; import { INSTRUCTIONS_BASE_ITEM } from "core/context/providers/utils"; -import { MapIcon } from "@heroicons/react/24/outline"; +import { getIconFromDropdownItem } from "./MentionList"; const ContextItemDiv = styled.div` cursor: pointer; @@ -53,11 +49,6 @@ interface ContextItemsPeekProps { contextItems?: ContextItemWithId[]; } -const CONTEXT_PROVIDERS_TO_ICONS: Record = { - "repo-map": MapIcon, - database: CircleStackIcon, -}; - function filterInstructionContextItem( contextItems: ContextItemsPeekProps["contextItems"], ) { @@ -118,8 +109,10 @@ const ContextItemsPeek = (props: ContextItemsPeekProps) => { ); } - const ProviderIcon = - CONTEXT_PROVIDERS_TO_ICONS[contextItem.id.providerTitle]; + const ProviderIcon = getIconFromDropdownItem( + contextItem.id.providerTitle, + "contextProvider", + ); if (ProviderIcon) { return ( diff --git a/gui/src/components/mainInput/MentionList.tsx b/gui/src/components/mainInput/MentionList.tsx index cd6622416..6df843ed7 100644 --- a/gui/src/components/mainInput/MentionList.tsx +++ b/gui/src/components/mainInput/MentionList.tsx @@ -44,7 +44,7 @@ import ButtonWithTooltip from "../ButtonWithTooltip"; import FileIcon from "../FileIcon"; import SafeImg from "../SafeImg"; import AddDocsDialog from "../dialogs/AddDocsDialog"; -import { ComboBoxItem } from "./types"; +import { ComboBoxItem, ComboBoxItemType } from "./types"; const ICONS_FOR_DROPDOWN: { [key: string]: any } = { file: FolderIcon, @@ -68,6 +68,14 @@ const ICONS_FOR_DROPDOWN: { [key: string]: any } = { "/cmd": CommandLineIcon, }; +export function getIconFromDropdownItem(id: string, type: ComboBoxItemType) { + debugger; + return ( + ICONS_FOR_DROPDOWN[id] ?? + (type === "contextProvider" ? AtSymbolIcon : BoltIcon) + ); +} + function DropdownIcon(props: { className?: string; item: ComboBoxItem }) { if (props.item.type === "action") { return ( @@ -85,9 +93,7 @@ function DropdownIcon(props: { className?: string; item: ComboBoxItem }) { } })(); - const IconComponent = - ICONS_FOR_DROPDOWN[provider] ?? - (props.item.type === "contextProvider" ? AtSymbolIcon : BoltIcon); + const IconComponent = getIconFromDropdownItem(provider, props.item.type); const fallbackIcon = ( Date: Fri, 20 Sep 2024 12:16:50 -0700 Subject: [PATCH 148/268] update context peek --- .../providers/RepoMapContextProvider.ts | 6 ++-- core/context/retrieval/repoMapRequest.ts | 28 ++++++++++++++++++- docs/docs/customize/context-providers.md | 4 ++- docs/docs/customize/deep-dives/codebase.md | 4 +++ .../components/mainInput/ContextItemsPeek.tsx | 25 +++++++++-------- gui/src/components/mainInput/MentionList.tsx | 14 +++------- 6 files changed, 55 insertions(+), 26 deletions(-) diff --git a/core/context/providers/RepoMapContextProvider.ts b/core/context/providers/RepoMapContextProvider.ts index cb2771638..6aefe0301 100644 --- a/core/context/providers/RepoMapContextProvider.ts +++ b/core/context/providers/RepoMapContextProvider.ts @@ -14,9 +14,9 @@ import { import generateRepoMap from "../../util/generateRepoMap"; const ENTIRE_PROJECT_ITEM: ContextSubmenuItem = { - id: "entire-workspace", - title: "Entire workspace", - description: "Search the entire workspace", + id: "entire-codebase", + title: "Entire codebase", + description: "Search the entire codebase", }; class RepoMapContextProvider extends BaseContextProvider { diff --git a/core/context/retrieval/repoMapRequest.ts b/core/context/retrieval/repoMapRequest.ts index 9a62041f6..618be4808 100644 --- a/core/context/retrieval/repoMapRequest.ts +++ b/core/context/retrieval/repoMapRequest.ts @@ -3,6 +3,32 @@ import { getModelByRole } from "../../config/util"; import { stripImages } from "../../llm/images"; import generateRepoMap from "../../util/generateRepoMap"; +const SUPPORTED_MODEL_TITLE_FAMILIES = [ + "claude-3", + "llama3.1", + "gemini-1.5", + "gpt-4", +]; + +function isSupportedModel( + config: ContinueConfig, + modelTitle?: string, +): boolean { + if (config.experimental?.modelRoles?.applyCodeBlock) { + return true; + } + + if (!modelTitle) { + return false; + } + + const lowercaseModelTitle = modelTitle.toLowerCase(); + + return SUPPORTED_MODEL_TITLE_FAMILIES.some((title) => + lowercaseModelTitle.includes(title), + ); +} + export async function requestFilesFromRepoMap( defaultLlm: ILLM, config: ContinueConfig, @@ -13,7 +39,7 @@ export async function requestFilesFromRepoMap( const llm = getModelByRole(config, "repoMapFileSelection") ?? defaultLlm; // Only supported for Claude models right now - if (!llm.model.toLowerCase().includes("claude")) { + if (!isSupportedModel(config, llm.title)) { return []; } diff --git a/docs/docs/customize/context-providers.md b/docs/docs/customize/context-providers.md index e2fb6c029..daed6d63b 100644 --- a/docs/docs/customize/context-providers.md +++ b/docs/docs/customize/context-providers.md @@ -415,7 +415,9 @@ Reference the outline of your codebase. } ``` -Provides an overview of all files and the call signatures of top-level classes, functions, and methods. This helps the model better understand how a particular piece of code relates to the rest of the codebase. +Provides a list of files and the call signatures of top-level classes, functions, and methods in those files. This helps the model better understand how a particular piece of code relates to the rest of the codebase. + +In the submenu that appears, you can select either `Entire codebase`, or specify a subfolder to generate the repostiory map from. This context provider is inpsired by [Aider's repository map](https://aider.chat/2023/10/22/repomap.html). diff --git a/docs/docs/customize/deep-dives/codebase.md b/docs/docs/customize/deep-dives/codebase.md index a74cd1a88..0d70f9b53 100644 --- a/docs/docs/customize/deep-dives/codebase.md +++ b/docs/docs/customize/deep-dives/codebase.md @@ -70,3 +70,7 @@ Continue respects `.gitignore` files in order to determine which files should no If you want to see exactly what files Continue has indexed, the metadata is stored in `~/.continue/index/index.sqlite`. You can use a tool like [DB Browser for SQLite](https://sqlitebrowser.org/) to view the `tag_catalog` table within this file. If you need to force a refresh of the index, reload the VS Code window with `cmd/ctrl + shift + p` + "Reload Window". + +## Repository map + +Models in the Claude 3, Llama 3.1, Gemini 1.5, and GPT-4o families will automatically use a [repository map](../context-providers.md#repository-map) during codebsae retrieval, which allows the model to understand the structure of your codebase and use it to answer questions. Currently, the repository map only contains the filepaths in the codebase. diff --git a/gui/src/components/mainInput/ContextItemsPeek.tsx b/gui/src/components/mainInput/ContextItemsPeek.tsx index a8fb6b9f0..3d3200433 100644 --- a/gui/src/components/mainInput/ContextItemsPeek.tsx +++ b/gui/src/components/mainInput/ContextItemsPeek.tsx @@ -109,26 +109,29 @@ const ContextItemsPeek = (props: ContextItemsPeekProps) => { ); } - const ProviderIcon = getIconFromDropdownItem( - contextItem.id.providerTitle, - "contextProvider", - ); + // Heuristic to check if it's a file + const shouldShowFileIcon = contextItem.content.includes("```"); - if (ProviderIcon) { + if (shouldShowFileIcon) { return ( - ); } + const ProviderIcon = getIconFromDropdownItem( + contextItem.id.providerTitle, + "contextProvider", + ); + return ( - diff --git a/gui/src/components/mainInput/MentionList.tsx b/gui/src/components/mainInput/MentionList.tsx index 6df843ed7..95ddc15ca 100644 --- a/gui/src/components/mainInput/MentionList.tsx +++ b/gui/src/components/mainInput/MentionList.tsx @@ -69,7 +69,6 @@ const ICONS_FOR_DROPDOWN: { [key: string]: any } = { }; export function getIconFromDropdownItem(id: string, type: ComboBoxItemType) { - debugger; return ( ICONS_FOR_DROPDOWN[id] ?? (type === "contextProvider" ? AtSymbolIcon : BoltIcon) @@ -83,15 +82,10 @@ function DropdownIcon(props: { className?: string; item: ComboBoxItem }) { ); } - const provider = (() => { - switch (props.item.type) { - case "contextProvider": - case "slashCommand": - return props.item.id; - default: - return props.item.type; - } - })(); + const provider = + props.item.type === "contextProvider" || props.item.type === "slashCommand" + ? props.item.id + : props.item.type; const IconComponent = getIconFromDropdownItem(provider, props.item.type); From ebbc2fd55df1fc43e1eacceba042fa4c0bc38e77 Mon Sep 17 00:00:00 2001 From: Test Date: Fri, 20 Sep 2024 13:46:26 -0700 Subject: [PATCH 149/268] fix: use exponential backoff when checking ollama --- .../OnboardingCard/hooks/useCheckOllamaModels.ts | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/gui/src/components/OnboardingCard/hooks/useCheckOllamaModels.ts b/gui/src/components/OnboardingCard/hooks/useCheckOllamaModels.ts index e763c0d9a..7a3205627 100644 --- a/gui/src/components/OnboardingCard/hooks/useCheckOllamaModels.ts +++ b/gui/src/components/OnboardingCard/hooks/useCheckOllamaModels.ts @@ -1,6 +1,7 @@ import { useContext, useEffect } from "react"; import { IdeMessengerContext } from "../../../context/IdeMessenger"; import { ONBOARDING_LOCAL_MODEL_TITLE } from "core/config/onboarding"; +import { withExponentialBackoff } from "core/util/withExponentialBackoff"; const CHECK_OLLAMA_CONNECTION_INTERVAL = 1000; @@ -11,9 +12,11 @@ export const useCheckOllamaModels = ( useEffect(() => { const fetchDownloadedModels = async () => { - const result = (await ideMessenger.request("llm/listModels", { - title: ONBOARDING_LOCAL_MODEL_TITLE, - })) as any; + const result = await withExponentialBackoff(() => + ideMessenger.request("llm/listModels", { + title: ONBOARDING_LOCAL_MODEL_TITLE, + }) + ); if (result.status === "success") { const models = result.content; From fad24a8a5cd9fc08d7164ad0fe8de9c2c7569539 Mon Sep 17 00:00:00 2001 From: Nate Date: Fri, 20 Sep 2024 21:30:05 -0700 Subject: [PATCH 150/268] update upload-artifact version --- .github/workflows/jetbrains-release.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/jetbrains-release.yaml b/.github/workflows/jetbrains-release.yaml index ee41ce727..4a7823401 100644 --- a/.github/workflows/jetbrains-release.yaml +++ b/.github/workflows/jetbrains-release.yaml @@ -334,7 +334,7 @@ jobs: - name: Upload logs if: ${{ always() }} - uses: actions/upload-artifact@v2 + uses: actions/upload-artifact@v4 with: name: core-logs-${{ matrix.platform }}-${{ matrix.arch }} path: binary/.continue/logs/core.log From 8b836ebd4c09178efb76611d11fd6a076487c2be Mon Sep 17 00:00:00 2001 From: Yuya Kanai <14835424+Cactice@users.noreply.github.com> Date: Sat, 21 Sep 2024 17:14:49 +0900 Subject: [PATCH 151/268] Update autocomplete.md --- docs/docs/customize/deep-dives/autocomplete.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/docs/customize/deep-dives/autocomplete.md b/docs/docs/customize/deep-dives/autocomplete.md index c84523f54..49c2de949 100644 --- a/docs/docs/customize/deep-dives/autocomplete.md +++ b/docs/docs/customize/deep-dives/autocomplete.md @@ -119,7 +119,7 @@ To ensure that you receive multi-line completions, you can set `"multilineComple Yes, in VS Code, if you don't want to be shown suggestions automatically you can: -1. Set `"editor.inlineSuggest.enabled": false` in VS Code settings to disabe automatic suggestions +1. Set `"editor.inlineSuggest.enabled": false` in VS Code settings to disable automatic suggestions 2. Open "Keyboard Shortcuts" (cmd/ctrl+k, cmd/ctrl+s) and search for `editor.action.inlineSuggest.trigger` 3. Click the "+" icon to add a new keybinding 4. Press the key combination you want to use to trigger suggestions (e.g. `ctrl+space`) From 387a76aa5bab873565de25a2d269f0b5b1a53f1e Mon Sep 17 00:00:00 2001 From: Kangmoon Seo <100016044+KangmoonSeo@users.noreply.github.com> Date: Sat, 21 Sep 2024 22:46:54 +0900 Subject: [PATCH 152/268] feat: add Qwen2.5-Coder support --- core/autocomplete/templates.ts | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) diff --git a/core/autocomplete/templates.ts b/core/autocomplete/templates.ts index 030e0a306..dbe15fd9b 100644 --- a/core/autocomplete/templates.ts +++ b/core/autocomplete/templates.ts @@ -41,6 +41,24 @@ const stableCodeFimTemplate: AutocompleteTemplate = { }, }; +// https://github.com/QwenLM/Qwen2.5-Coder?tab=readme-ov-file#3-file-level-code-completion-fill-in-the-middle +const qwenCoderFimTemplate: AutocompleteTemplate = { + template: + "<|fim_prefix|>{{{prefix}}}<|fim_suffix|>{{{suffix}}}<|fim_middle|>", + completionOptions: { + stop: [ + "<|fim_prefix|>", + "<|fim_middle|>", + "<|fim_suffix|>", + "<|fim_pad|>", + "<|repo_name|>", + "<|file_sep|>", + "<|im_start|>", + "<|im_end|", + ], + }, +}; + const codestralFimTemplate: AutocompleteTemplate = { template: "[SUFFIX]{{{suffix}}}[PREFIX]{{{prefix}}}", completionOptions: { @@ -318,6 +336,10 @@ export function getTemplateForModel(model: string): AutocompleteTemplate { // return starcoder2FimTemplate; // } + if (lowerCaseModel.includes("qwen") && lowerCaseModel.includes("coder")) { + return qwenCoderFimTemplate; + } + if ( lowerCaseModel.includes("starcoder") || lowerCaseModel.includes("star-coder") || From cd93dbf1564a86ddc336402341fda27ba7086ba0 Mon Sep 17 00:00:00 2001 From: Test Date: Sat, 21 Sep 2024 09:27:27 -0700 Subject: [PATCH 153/268] WIP: Exponential backoff for ollama --- .../customize/model-types/autocomplete.md | 2 +- .../components/OllamaStatus.tsx | 16 +++--- .../hooks/useCheckOllamaModels.ts | 52 ++++++++++++------- .../tabs/OnboardingLocalTab.tsx | 7 +-- gui/src/components/OnboardingCard/utils.ts | 2 +- gui/src/components/index.ts | 4 ++ 6 files changed, 47 insertions(+), 36 deletions(-) diff --git a/docs/docs/customize/model-types/autocomplete.md b/docs/docs/customize/model-types/autocomplete.md index a21f6be87..8ecac28e6 100644 --- a/docs/docs/customize/model-types/autocomplete.md +++ b/docs/docs/customize/model-types/autocomplete.md @@ -7,7 +7,7 @@ sidebar_position: 1 An "autocomplete model" is an LLM that is trained on a special format called fill-in-the-middle (FIM). This format is designed to be given the prefix and suffix of a code file and predict what goes between. This task is very specific, which on one hand means that the models can be smaller (even a 3B parameter model can perform well). On the other hand, this means that Chat models, though larger, will perform poorly. -In Continue, these models are used to display inline [Autocomplete](../../chat/how-to-use-it.md) suggestions as you type. +In Continue, these models are used to display inline [Autocomplete](../../autocomplete/how-to-use-it.md) suggestions as you type. ## Recommended Autocomplete models diff --git a/gui/src/components/OnboardingCard/components/OllamaStatus.tsx b/gui/src/components/OnboardingCard/components/OllamaStatus.tsx index 546ddff5d..9cc323ec6 100644 --- a/gui/src/components/OnboardingCard/components/OllamaStatus.tsx +++ b/gui/src/components/OnboardingCard/components/OllamaStatus.tsx @@ -5,31 +5,27 @@ import { import { useState, useContext } from "react"; import { IdeMessengerContext } from "../../../context/IdeMessenger"; import { providers } from "../../../pages/AddNewModel/configs/providers"; -import { useCheckOllamaModels } from "../hooks/useCheckOllamaModels"; import { StyledActionButton } from "../.."; import OllamaCompletedStep from "./OllamaCompletedStep"; import { OllamaConnectionStatuses } from "../utils"; interface OllamaStatusProps { - onConnectionVerified: () => void; + isOllamaConnected: boolean; } const { ollama: { downloadUrl }, } = providers; -export function OllamaStatus({ onConnectionVerified }: OllamaStatusProps) { +export function OllamaStatus({ isOllamaConnected }: OllamaStatusProps) { const ideMessenger = useContext(IdeMessengerContext); const [status, setStatus] = useState( - OllamaConnectionStatuses.WaitingToDownload, + isOllamaConnected + ? OllamaConnectionStatuses.Connected + : OllamaConnectionStatuses.WaitingToDownload, ); - useCheckOllamaModels((models) => { - setStatus(OllamaConnectionStatuses.Verified); - onConnectionVerified(); - }); - function onClickDownload() { ideMessenger.post("openUrl", downloadUrl); setStatus(OllamaConnectionStatuses.Downloading); @@ -52,7 +48,7 @@ export function OllamaStatus({ onConnectionVerified }: OllamaStatusProps) {
); - case OllamaConnectionStatuses.Verified: + case OllamaConnectionStatuses.Connected: return ( ); diff --git a/gui/src/components/OnboardingCard/hooks/useCheckOllamaModels.ts b/gui/src/components/OnboardingCard/hooks/useCheckOllamaModels.ts index 7a3205627..21bafe384 100644 --- a/gui/src/components/OnboardingCard/hooks/useCheckOllamaModels.ts +++ b/gui/src/components/OnboardingCard/hooks/useCheckOllamaModels.ts @@ -1,43 +1,57 @@ -import { useContext, useEffect } from "react"; +import { useContext, useEffect, useRef } from "react"; import { IdeMessengerContext } from "../../../context/IdeMessenger"; import { ONBOARDING_LOCAL_MODEL_TITLE } from "core/config/onboarding"; -import { withExponentialBackoff } from "core/util/withExponentialBackoff"; -const CHECK_OLLAMA_CONNECTION_INTERVAL = 1000; +const MAX_RETRIES = 10; +const INITIAL_DELAY = 1000; export const useCheckOllamaModels = ( onDownloadedModels: (models: string[]) => void, ) => { const ideMessenger = useContext(IdeMessengerContext); + const retryCountRef = useRef(0); + const timeoutRef = useRef(null); useEffect(() => { const fetchDownloadedModels = async () => { - const result = await withExponentialBackoff(() => - ideMessenger.request("llm/listModels", { + try { + const result = (await ideMessenger.request("llm/listModels", { title: ONBOARDING_LOCAL_MODEL_TITLE, - }) - ); + })) as any; - if (result.status === "success") { - const models = result.content; + if (result.status === "success") { + const models = result.content; - if (Array.isArray(models)) { - onDownloadedModels(models); - clearInterval(interval); + if (Array.isArray(models)) { + onDownloadedModels(models); + return; + } + } + + throw new Error("Failed to fetch models"); + } catch (error) { + if (retryCountRef.current < MAX_RETRIES) { + const delay = INITIAL_DELAY * Math.pow(2, retryCountRef.current); + console.debug( + `Failed to connect to Ollama - retrying in ${delay}ms...`, + ); + timeoutRef.current = setTimeout(() => { + retryCountRef.current += 1; + fetchDownloadedModels(); + }, delay); + } else { + console.debug( + `Max retries (${MAX_RETRIES}) reached. Unable to fetch Ollama models.`, + ); } } }; fetchDownloadedModels(); - const interval = setInterval( - fetchDownloadedModels, - CHECK_OLLAMA_CONNECTION_INTERVAL, - ); - return () => { - if (interval) { - clearInterval(interval); + if (timeoutRef.current) { + clearTimeout(timeoutRef.current); } }; }, [ideMessenger, onDownloadedModels]); diff --git a/gui/src/components/OnboardingCard/tabs/OnboardingLocalTab.tsx b/gui/src/components/OnboardingCard/tabs/OnboardingLocalTab.tsx index 03d940163..96753c59e 100644 --- a/gui/src/components/OnboardingCard/tabs/OnboardingLocalTab.tsx +++ b/gui/src/components/OnboardingCard/tabs/OnboardingLocalTab.tsx @@ -54,17 +54,14 @@ function OnboardingLocalTab() { useCheckOllamaModels((models) => { setDownloadedOllamaModels(models); - }); - - function onConnectionVerified() { setIsOllamaConnected(true); - } + }); return (

Install Ollama

- +
Date: Sat, 21 Sep 2024 10:23:42 -0700 Subject: [PATCH 154/268] test only mac arm binary --- .github/workflows/jetbrains-release.yaml | 24 ++++++++++++------------ 1 file changed, 12 insertions(+), 12 deletions(-) diff --git a/.github/workflows/jetbrains-release.yaml b/.github/workflows/jetbrains-release.yaml index 4a7823401..461b01baa 100644 --- a/.github/workflows/jetbrains-release.yaml +++ b/.github/workflows/jetbrains-release.yaml @@ -254,23 +254,23 @@ jobs: strategy: matrix: include: - - os: windows-latest - platform: win32 - arch: x64 - npm_config_arch: x64 - - os: ubuntu-latest - platform: linux - arch: x64 - npm_config_arch: x64 + # - os: windows-latest + # platform: win32 + # arch: x64 + # npm_config_arch: x64 + # - os: ubuntu-latest + # platform: linux + # arch: x64 + # npm_config_arch: x64 # arm64 not actually supported by GitHub # - os: ubuntu-latest # platform: linux # arch: arm64 # npm_config_arch: arm64 - - os: macos-12 - platform: darwin - arch: x64 - npm_config_arch: x64 + # - os: macos-12 + # platform: darwin + # arch: x64 + # npm_config_arch: x64 - os: macos-latest platform: darwin arch: arm64 From f74edc1fb310c06d7503fef89b0af4037f9917b7 Mon Sep 17 00:00:00 2001 From: Nate Date: Sat, 21 Sep 2024 10:55:40 -0700 Subject: [PATCH 155/268] try tests with quarantine removal --- binary/test/binary.test.ts | 72 +++++++++++++++++++++++++++++++------- 1 file changed, 60 insertions(+), 12 deletions(-) diff --git a/binary/test/binary.test.ts b/binary/test/binary.test.ts index 747b7d6f9..9ee8b0d8f 100644 --- a/binary/test/binary.test.ts +++ b/binary/test/binary.test.ts @@ -5,7 +5,11 @@ import FileSystemIde from "core/util/filesystem"; import { IMessenger } from "core/util/messenger"; import { ReverseMessageIde } from "core/util/reverseMessageIde"; import fs from "fs"; -import { ChildProcessWithoutNullStreams, spawn } from "node:child_process"; +import { + ChildProcessWithoutNullStreams, + execSync, + spawn, +} from "node:child_process"; import path from "path"; import { CoreBinaryMessenger, @@ -59,21 +63,65 @@ describe("Test Suite", () => { beforeAll(async () => { const [platform, arch] = autodetectPlatformAndArch(); - const binaryPath = path.join( - __dirname, - "..", - "bin", - `${platform}-${arch}`, - `continue-binary${platform === "win32" ? ".exe" : ""}`, - ); - expect(fs.existsSync(binaryPath)).toBe(true); + const binaryDir = path.join(__dirname, "..", "bin", `${platform}-${arch}`); + const exe = platform === "win32" ? ".exe" : ""; + const binaryPath = path.join(binaryDir, `continue-binary${exe}`); + const expectedItems = [ + `continue-binary${exe}`, + `esbuild${exe}`, + "index.node", + "package.json", + "build/Release/node_sqlite3.node", + ]; + expectedItems.forEach((item) => { + expect(fs.existsSync(path.join(binaryDir, item))).toBe(true); + }); + + // Set execute permissions and remove quarantine attribute if on macOS + if (platform !== "win32") { + try { + fs.chmodSync(binaryPath, 0o755); + console.log("Execute permissions set for the binary"); + + if (platform === "darwin") { + const indexNodePath = path.join(binaryDir, "index.node"); + const filesToUnquarantine = [binaryPath, indexNodePath]; + + for (const file of filesToUnquarantine) { + try { + execSync(`xattr -d com.apple.quarantine "${file}"`, { + stdio: "ignore", + }); + console.log( + `Quarantine attribute removed from ${path.basename(file)}`, + ); + } catch (error) { + console.warn( + `Failed to remove quarantine attribute from ${path.basename(file)}:`, + error, + ); + } + } + } + } catch (error) { + console.error( + "Error setting permissions or removing quarantine:", + error, + ); + } + } if (USE_TCP) { messenger = new CoreBinaryTcpMessenger(); } else { - subprocess = spawn(binaryPath, { - env: { ...process.env, CONTINUE_GLOBAL_DIR }, - }); + try { + subprocess = spawn(binaryPath, { + env: { ...process.env, CONTINUE_GLOBAL_DIR }, + }); + } catch (error) { + console.error("Error spawning subprocess:", error); + throw error; + } messenger = new CoreBinaryMessenger( subprocess, ); From 879f03a77e1f841d42f110233ead6ebff3e88051 Mon Sep 17 00:00:00 2001 From: Nate Date: Sat, 21 Sep 2024 11:02:52 -0700 Subject: [PATCH 156/268] fix bad test --- binary/test/binary.test.ts | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/binary/test/binary.test.ts b/binary/test/binary.test.ts index 9ee8b0d8f..7a19aeb31 100644 --- a/binary/test/binary.test.ts +++ b/binary/test/binary.test.ts @@ -171,13 +171,17 @@ describe("Test Suite", () => { "package.json", "logs/core.log", "index/autocompleteCache.sqlite", - "out/config.js", "types/core/index.d.ts", ]; - for (const file of expectedFiles) { + const missingFiles = expectedFiles.filter((file) => { const filePath = path.join(CONTINUE_GLOBAL_DIR, file); - expect(fs.existsSync(filePath)).toBe(true); + return !fs.existsSync(filePath); + }); + + expect(missingFiles).toEqual([]); + if (missingFiles.length > 0) { + console.log("Missing files:", missingFiles); } }); From 90e8e0d6c7d7a80c462f71c4a8dbef1c00a7b52e Mon Sep 17 00:00:00 2001 From: Nate Date: Sat, 21 Sep 2024 11:12:10 -0700 Subject: [PATCH 157/268] don't unquarantine? --- binary/test/binary.test.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/binary/test/binary.test.ts b/binary/test/binary.test.ts index 7a19aeb31..26307fa4b 100644 --- a/binary/test/binary.test.ts +++ b/binary/test/binary.test.ts @@ -83,7 +83,7 @@ describe("Test Suite", () => { fs.chmodSync(binaryPath, 0o755); console.log("Execute permissions set for the binary"); - if (platform === "darwin") { + if (false && platform === "darwin") { const indexNodePath = path.join(binaryDir, "index.node"); const filesToUnquarantine = [binaryPath, indexNodePath]; From d970c9ce59c2996fb42eac40745f13780e41a995 Mon Sep 17 00:00:00 2001 From: Nate Date: Sat, 21 Sep 2024 15:30:28 -0700 Subject: [PATCH 158/268] update log location --- .github/workflows/jetbrains-release.yaml | 2 +- binary/test/binary.test.ts | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/.github/workflows/jetbrains-release.yaml b/.github/workflows/jetbrains-release.yaml index 461b01baa..03becdd8a 100644 --- a/.github/workflows/jetbrains-release.yaml +++ b/.github/workflows/jetbrains-release.yaml @@ -337,7 +337,7 @@ jobs: uses: actions/upload-artifact@v4 with: name: core-logs-${{ matrix.platform }}-${{ matrix.arch }} - path: binary/.continue/logs/core.log + path: ~/.continue/logs/core.log # Run tests and upload a code coverage report test: diff --git a/binary/test/binary.test.ts b/binary/test/binary.test.ts index 26307fa4b..3554aed27 100644 --- a/binary/test/binary.test.ts +++ b/binary/test/binary.test.ts @@ -83,7 +83,7 @@ describe("Test Suite", () => { fs.chmodSync(binaryPath, 0o755); console.log("Execute permissions set for the binary"); - if (false && platform === "darwin") { + if (platform === "darwin") { const indexNodePath = path.join(binaryDir, "index.node"); const filesToUnquarantine = [binaryPath, indexNodePath]; @@ -118,6 +118,7 @@ describe("Test Suite", () => { subprocess = spawn(binaryPath, { env: { ...process.env, CONTINUE_GLOBAL_DIR }, }); + console.log("Successfully spawned subprocess"); } catch (error) { console.error("Error spawning subprocess:", error); throw error; From 5fbd27bd0f1da0b2e9bca2314dd7b715175f28c5 Mon Sep 17 00:00:00 2001 From: Nate Date: Sat, 21 Sep 2024 21:09:19 -0700 Subject: [PATCH 159/268] suspend functions --- .../ContinuePluginStartupActivity.kt | 5 +- .../continue/CoreMessenger.kt | 8 ++- .../continue/IdeProtocolClient.kt | 51 ++----------------- 3 files changed, 15 insertions(+), 49 deletions(-) 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 a9b72cfe9..ba5d063b3 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 @@ -30,7 +30,7 @@ import com.intellij.openapi.components.service import com.intellij.openapi.module.ModuleManager import com.intellij.openapi.roots.ModuleRootManager -fun showTutorial(project: Project) { +suspend fun showTutorial(project: Project) { ContinuePluginStartupActivity::class.java.getClassLoader().getResourceAsStream("continue_tutorial.py").use { `is` -> if (`is` == null) { throw IOException("Resource not found: continue_tutorial.py") @@ -40,6 +40,9 @@ fun showTutorial(project: Project) { content = content.replace("⌘", "⌃") } val filepath = Paths.get(getContinueGlobalPath(), "continue_tutorial.py").toString() + withContext(Dispatchers.IO) { + File(filepath).writeText(content) + } File(filepath).writeText(content) val virtualFile = LocalFileSystem.getInstance().findFileByPath(filepath) 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 590d1780b..dd8d8a331 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 @@ -7,6 +7,10 @@ import com.github.continuedev.continueintellijextension.toolWindow.MessageTypes import com.google.gson.Gson import com.intellij.openapi.components.service import com.intellij.openapi.project.Project +import kotlinx.coroutines.CoroutineScope +import kotlinx.coroutines.Dispatchers +import kotlinx.coroutines.launch +import kotlinx.coroutines.withContext import java.io.* import java.net.Socket import java.nio.charset.StandardCharsets @@ -196,7 +200,9 @@ class CoreMessenger(private val project: Project, esbuildPath: String, continueC } println("Core process exited with output: $err") - ideProtocolClient.showMessage("Core process exited with output: $err") + CoroutineScope(Dispatchers.Main).launch { + ideProtocolClient.showMessage("Core process exited with output: $err") + } // Log the cause of the failure val telemetryService = service() 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 2f9793251..ac62d045c 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 @@ -42,6 +42,7 @@ import com.intellij.util.concurrency.annotations.RequiresEdt import kotlinx.coroutines.CoroutineScope import kotlinx.coroutines.Dispatchers import kotlinx.coroutines.launch +import kotlinx.coroutines.withContext import java.awt.Toolkit import java.awt.datatransfer.StringSelection import java.io.* @@ -883,52 +884,6 @@ class IdeProtocolClient ( return arrayOf() } - private fun listDirectoryContents(directory: String?): List { - val dirs: Array; - if (directory != null) { - dirs = arrayOf(directory) - } else { - dirs = workspaceDirectories() - } - - val contents = ArrayList() - for (dir in dirs) { - if (DEFAULT_IGNORE_DIRS.any { dir.contains(it) }) { - continue - } - - val workspacePath = File(dir) - val workspaceDir = VirtualFileManager.getInstance().findFileByUrl("file://$workspacePath") - - if (workspaceDir != null) { - val filter = object : VirtualFileFilter { - override fun accept(file: VirtualFile): Boolean { - if (file.isDirectory) { - return !shouldIgnoreDirectory(file.name) - } else { - val filePath = file.path - return !shouldIgnoreDirectory(filePath) && !DEFAULT_IGNORE_FILETYPES.any { filePath.endsWith(it) } - } - } - } - VfsUtil.iterateChildrenRecursively(workspaceDir, filter) { virtualFile: VirtualFile -> - if (!virtualFile.isDirectory) { - contents.add(virtualFile.path) - - // Set a hard limit on the number of files to list - if (contents.size > 10000) { - // Completely exit the iteration - return@iterateChildrenRecursively false - } - } - true - } - } - } - - return contents - } - private fun saveFile(filepath: String) { ApplicationManager.getApplication().invokeLater { val file = LocalFileSystem.getInstance().findFileByPath(filepath) ?: return@invokeLater @@ -986,7 +941,8 @@ class IdeProtocolClient ( return virtualFile?.path } - fun showMessage(msg: String) { +suspend fun showMessage(msg: String) { + withContext(Dispatchers.Main) { val statusBar = WindowManager.getInstance().getStatusBar(project) JBPopupFactory.getInstance() @@ -999,6 +955,7 @@ class IdeProtocolClient ( Balloon.Position.atRight ) } +} fun highlightCode(rangeInFile: RangeInFile, color: String?) { val file = From 9bbad5a9bef6a8220960c8b46be78ebf3cfef60b Mon Sep 17 00:00:00 2001 From: Nate Date: Sat, 21 Sep 2024 21:12:33 -0700 Subject: [PATCH 160/268] remove use of GlobalScope.async --- .../ContinuePluginStartupActivity.kt | 40 +++++++++---------- 1 file changed, 19 insertions(+), 21 deletions(-) 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 ba5d063b3..d85bf00ed 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 @@ -175,32 +175,30 @@ class ContinuePluginStartupActivity : StartupActivity, Disposable, DumbAware { } }) - GlobalScope.async(Dispatchers.IO) { - val listener = - ContinuePluginSelectionListener( - ideProtocolClient, - coroutineScope - ) + val listener = + ContinuePluginSelectionListener( + ideProtocolClient, + coroutineScope + ) - // Reload the WebView - continuePluginService?.let { pluginService -> - val allModulePaths = ModuleManager.getInstance(project).modules - .flatMap { module -> ModuleRootManager.getInstance(module).contentRoots.map { it.path } } - .map { Paths.get(it).normalize() } + // Reload the WebView + continuePluginService?.let { pluginService -> + val allModulePaths = ModuleManager.getInstance(project).modules + .flatMap { module -> ModuleRootManager.getInstance(module).contentRoots.map { it.path } } + .map { Paths.get(it).normalize() } - val topLevelModulePaths = allModulePaths - .filter { modulePath -> allModulePaths.none { it != modulePath && modulePath.startsWith(it) } } - .map { it.toString() } + val topLevelModulePaths = allModulePaths + .filter { modulePath -> allModulePaths.none { it != modulePath && modulePath.startsWith(it) } } + .map { it.toString() } - pluginService.workspacePaths = topLevelModulePaths.toTypedArray() - } - - EditorFactory.getInstance().eventMulticaster.addSelectionListener( - listener, - this@ContinuePluginStartupActivity - ) + pluginService.workspacePaths = topLevelModulePaths.toTypedArray() } + EditorFactory.getInstance().eventMulticaster.addSelectionListener( + listener, + this@ContinuePluginStartupActivity + ) + val coreMessengerManager = CoreMessengerManager(project, ideProtocolClient) continuePluginService.coreMessengerManager = coreMessengerManager } From 6e5d07e86ac676850154e7a52a682856fd102767 Mon Sep 17 00:00:00 2001 From: Nate Date: Sat, 21 Sep 2024 21:47:44 -0700 Subject: [PATCH 161/268] purge GlobalScope.launch --- .../activities/ContinuePluginStartupActivity.kt | 2 +- .../auth/ContinueAuthService.kt | 7 +++++-- .../continue/CoreMessengerManager.kt | 8 +++----- .../toolWindow/ContinueBrowser.kt | 13 +++++++++---- .../toolWindow/ContinuePluginToolWindowFactory.kt | 1 + 5 files changed, 19 insertions(+), 12 deletions(-) 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 d85bf00ed..44c80f4eb 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 @@ -199,7 +199,7 @@ class ContinuePluginStartupActivity : StartupActivity, Disposable, DumbAware { this@ContinuePluginStartupActivity ) - val coreMessengerManager = CoreMessengerManager(project, ideProtocolClient) + val coreMessengerManager = CoreMessengerManager(project, ideProtocolClient, coroutineScope) continuePluginService.coreMessengerManager = coreMessengerManager } } diff --git a/extensions/intellij/src/main/kotlin/com/github/continuedev/continueintellijextension/auth/ContinueAuthService.kt b/extensions/intellij/src/main/kotlin/com/github/continuedev/continueintellijextension/auth/ContinueAuthService.kt index 01d517f36..2fe95db03 100644 --- a/extensions/intellij/src/main/kotlin/com/github/continuedev/continueintellijextension/auth/ContinueAuthService.kt +++ b/extensions/intellij/src/main/kotlin/com/github/continuedev/continueintellijextension/auth/ContinueAuthService.kt @@ -10,6 +10,7 @@ import com.intellij.openapi.components.Service import com.intellij.openapi.components.service import com.intellij.openapi.project.Project import com.intellij.remoteServer.util.CloudConfigurationUtil.createCredentialAttributes +import kotlinx.coroutines.CoroutineScope import java.awt.Desktop import kotlinx.coroutines.Dispatchers import kotlinx.coroutines.launch @@ -22,6 +23,8 @@ import java.net.URL @Service class ContinueAuthService { + private val coroutineScope = CoroutineScope(Dispatchers.IO) + companion object { fun getInstance(): ContinueAuthService = service() private const val CREDENTIALS_USER = "ContinueAuthUser" @@ -61,7 +64,7 @@ class ContinueAuthService { private fun updateRefreshToken(token: String) { // Launch a coroutine to call the suspend function - kotlinx.coroutines.GlobalScope.launch { + coroutineScope.launch { try { val response = refreshToken(token) val accessToken = response["accessToken"] as? String @@ -89,7 +92,7 @@ class ContinueAuthService { private fun setupRefreshTokenInterval() { // Launch a coroutine to refresh the token every 30 minutes - kotlinx.coroutines.GlobalScope.launch { + coroutineScope.launch { while (true) { val refreshToken = getRefreshToken() if (refreshToken != null) { diff --git a/extensions/intellij/src/main/kotlin/com/github/continuedev/continueintellijextension/continue/CoreMessengerManager.kt b/extensions/intellij/src/main/kotlin/com/github/continuedev/continueintellijextension/continue/CoreMessengerManager.kt index f7bd42844..332578191 100644 --- a/extensions/intellij/src/main/kotlin/com/github/continuedev/continueintellijextension/continue/CoreMessengerManager.kt +++ b/extensions/intellij/src/main/kotlin/com/github/continuedev/continueintellijextension/continue/CoreMessengerManager.kt @@ -7,18 +7,16 @@ import com.intellij.openapi.components.ServiceManager import com.intellij.openapi.components.service import com.intellij.openapi.extensions.PluginId import com.intellij.openapi.project.Project -import kotlinx.coroutines.Dispatchers -import kotlinx.coroutines.GlobalScope -import kotlinx.coroutines.async +import kotlinx.coroutines.* import java.nio.file.Paths -class CoreMessengerManager(private val project: Project, private val ideProtocolClient: IdeProtocolClient) { +class CoreMessengerManager(private val project: Project, private val ideProtocolClient: IdeProtocolClient, private val coroutineScope: CoroutineScope) { var coreMessenger: CoreMessenger? = null var lastBackoffInterval = 0.5 init { - GlobalScope.async(Dispatchers.IO) { + coroutineScope.launch { val continuePluginService = ServiceManager.getService( project, ContinuePluginService::class.java diff --git a/extensions/intellij/src/main/kotlin/com/github/continuedev/continueintellijextension/toolWindow/ContinueBrowser.kt b/extensions/intellij/src/main/kotlin/com/github/continuedev/continueintellijextension/toolWindow/ContinueBrowser.kt index 5d6c1cd11..0d2d607f8 100644 --- a/extensions/intellij/src/main/kotlin/com/github/continuedev/continueintellijextension/toolWindow/ContinueBrowser.kt +++ b/extensions/intellij/src/main/kotlin/com/github/continuedev/continueintellijextension/toolWindow/ContinueBrowser.kt @@ -8,17 +8,20 @@ import com.github.continuedev.continueintellijextension.services.ContinuePluginS import com.google.gson.Gson import com.google.gson.JsonObject import com.google.gson.JsonParser +import com.intellij.openapi.Disposable import com.intellij.openapi.components.ServiceManager import com.intellij.openapi.project.Project import com.intellij.openapi.util.Disposer import com.intellij.ui.jcef.* -import kotlinx.coroutines.GlobalScope -import kotlinx.coroutines.launch +import kotlinx.coroutines.* import org.cef.CefApp import org.cef.browser.CefBrowser import org.cef.handler.CefLoadHandlerAdapter class ContinueBrowser(val project: Project, url: String, useOsr: Boolean = false) { + private val coroutineScope = CoroutineScope( + SupervisorJob() + Dispatchers.Default + ) private val heightChangeListeners = mutableListOf<(Int) -> Unit>() fun onHeightChange(listener: (Int) -> Unit) { heightChangeListeners.add(listener) @@ -135,7 +138,7 @@ class ContinueBrowser(val project: Project, url: String, useOsr: Boolean = false heightChangeListeners.forEach { it(height) } } "onLoad" -> { - GlobalScope.launch { + coroutineScope.launch { // Set the colors to match Intellij theme val colors = GetTheme().getTheme(); sendToWebview("setColors", colors) @@ -166,7 +169,9 @@ class ContinueBrowser(val project: Project, url: String, useOsr: Boolean = false ),"#00ff0022") } "showTutorial" -> { - showTutorial(project) + coroutineScope.launch { + showTutorial(project) + } } "showVirtualFile" -> { val data = data.asJsonObject 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 5fdba7af9..e8c9e5206 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 @@ -1,6 +1,7 @@ package com.github.continuedev.continueintellijextension.toolWindow import com.github.continuedev.continueintellijextension.services.ContinuePluginService +import com.intellij.collaboration.async.disposingScope import com.intellij.openapi.actionSystem.ActionManager import com.intellij.openapi.actionSystem.AnAction import com.intellij.openapi.components.ServiceManager From eb6f2751b9386b0ca7d9ff5d45787cd1726e2e9e Mon Sep 17 00:00:00 2001 From: Nate Date: Sat, 21 Sep 2024 21:55:40 -0700 Subject: [PATCH 162/268] remove unecessary pooled thread execution --- .../activities/ContinuePluginStartupActivity.kt | 10 +++------- .../toolWindow/ContinueBrowser.kt | 4 +--- 2 files changed, 4 insertions(+), 10 deletions(-) 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 44c80f4eb..a924cbde1 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 @@ -30,7 +30,7 @@ import com.intellij.openapi.components.service import com.intellij.openapi.module.ModuleManager import com.intellij.openapi.roots.ModuleRootManager -suspend fun showTutorial(project: Project) { +fun showTutorial(project: Project) { ContinuePluginStartupActivity::class.java.getClassLoader().getResourceAsStream("continue_tutorial.py").use { `is` -> if (`is` == null) { throw IOException("Resource not found: continue_tutorial.py") @@ -40,9 +40,7 @@ suspend fun showTutorial(project: Project) { content = content.replace("⌘", "⌃") } val filepath = Paths.get(getContinueGlobalPath(), "continue_tutorial.py").toString() - withContext(Dispatchers.IO) { - File(filepath).writeText(content) - } + File(filepath).writeText(content) File(filepath).writeText(content) val virtualFile = LocalFileSystem.getInstance().findFileByPath(filepath) @@ -78,9 +76,7 @@ class ContinuePluginStartupActivity : StartupActivity, Disposable, DumbAware { // } // ) - ApplicationManager.getApplication().executeOnPooledThread { - initializePlugin(project) - } + initializePlugin(project) } private fun getPlatformSpecificKeyStroke(key: String): String { diff --git a/extensions/intellij/src/main/kotlin/com/github/continuedev/continueintellijextension/toolWindow/ContinueBrowser.kt b/extensions/intellij/src/main/kotlin/com/github/continuedev/continueintellijextension/toolWindow/ContinueBrowser.kt index 0d2d607f8..0d1f7f169 100644 --- a/extensions/intellij/src/main/kotlin/com/github/continuedev/continueintellijextension/toolWindow/ContinueBrowser.kt +++ b/extensions/intellij/src/main/kotlin/com/github/continuedev/continueintellijextension/toolWindow/ContinueBrowser.kt @@ -169,9 +169,7 @@ class ContinueBrowser(val project: Project, url: String, useOsr: Boolean = false ),"#00ff0022") } "showTutorial" -> { - coroutineScope.launch { - showTutorial(project) - } + showTutorial(project) } "showVirtualFile" -> { val data = data.asJsonObject From e20743c86f870d95ca51afae264106a134d27504 Mon Sep 17 00:00:00 2001 From: Nate Date: Sat, 21 Sep 2024 22:16:26 -0700 Subject: [PATCH 163/268] use coroutines instead of Thread --- .../AutocompleteEditorListener.kt | 1 + .../continue/CoreMessenger.kt | 19 +++++++++---------- .../continue/CoreMessengerManager.kt | 2 +- 3 files changed, 11 insertions(+), 11 deletions(-) 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 index a2ef465a3..399ddf913 100644 --- 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 @@ -42,6 +42,7 @@ class AutocompleteDocumentListener(private val editorManager: FileEditorManager, // Invoke later is important, otherwise the completion will be triggered before the document is updated // causing the old caret offset to be used + // TODO: concurrency invokeLater { service.triggerCompletion(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 dd8d8a331..f47f6f138 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 @@ -7,10 +7,7 @@ import com.github.continuedev.continueintellijextension.toolWindow.MessageTypes import com.google.gson.Gson import com.intellij.openapi.components.service import com.intellij.openapi.project.Project -import kotlinx.coroutines.CoroutineScope -import kotlinx.coroutines.Dispatchers -import kotlinx.coroutines.launch -import kotlinx.coroutines.withContext +import kotlinx.coroutines.* import java.io.* import java.net.Socket import java.nio.charset.StandardCharsets @@ -18,7 +15,7 @@ import java.nio.file.Files import java.nio.file.Paths import java.nio.file.attribute.PosixFilePermission -class CoreMessenger(private val project: Project, esbuildPath: String, continueCorePath: String, ideProtocolClient: IdeProtocolClient) { +class CoreMessenger(private val project: Project, esbuildPath: String, continueCorePath: String, ideProtocolClient: IdeProtocolClient, private val coroutineScope: CoroutineScope) { private var writer: Writer? = null private var reader: BufferedReader? = null private var process: Process? = null @@ -173,8 +170,10 @@ class CoreMessenger(private val project: Project, esbuildPath: String, continueC } } else { // Set proper permissions - setPermissions(continueCorePath) - setPermissions(esbuildPath) + coroutineScope.launch(Dispatchers.IO) { + setPermissions(continueCorePath) + setPermissions(esbuildPath) + } // Start the subprocess val processBuilder = ProcessBuilder(continueCorePath) @@ -216,7 +215,7 @@ class CoreMessenger(private val project: Project, esbuildPath: String, continueC process?.destroy() } - Thread { + coroutineScope.launch(Dispatchers.IO) { try { while (true) { val line = reader?.readLine() @@ -228,7 +227,7 @@ class CoreMessenger(private val project: Project, esbuildPath: String, continueC println(e) } } else { - Thread.sleep(100) + delay(100) } } } catch (e: IOException) { @@ -244,7 +243,7 @@ class CoreMessenger(private val project: Project, esbuildPath: String, continueC e.printStackTrace() } } - }.start() + } } } } diff --git a/extensions/intellij/src/main/kotlin/com/github/continuedev/continueintellijextension/continue/CoreMessengerManager.kt b/extensions/intellij/src/main/kotlin/com/github/continuedev/continueintellijextension/continue/CoreMessengerManager.kt index 332578191..353da9e48 100644 --- a/extensions/intellij/src/main/kotlin/com/github/continuedev/continueintellijextension/continue/CoreMessengerManager.kt +++ b/extensions/intellij/src/main/kotlin/com/github/continuedev/continueintellijextension/continue/CoreMessengerManager.kt @@ -55,7 +55,7 @@ class CoreMessengerManager(private val project: Project, private val ideProtocol } private fun setupCoreMessenger(esbuildPath: String, continueCorePath: String): Unit { - coreMessenger = CoreMessenger(project, esbuildPath, continueCorePath, ideProtocolClient) + coreMessenger = CoreMessenger(project, esbuildPath, continueCorePath, ideProtocolClient, coroutineScope) coreMessenger?.request("config/getSerializedProfileInfo", null, null) { resp -> val data = resp as? Map From c999d37730ff106f6cfe50a5924c55bf28ce5af4 Mon Sep 17 00:00:00 2001 From: Nate Date: Sat, 21 Sep 2024 22:18:54 -0700 Subject: [PATCH 164/268] small updates --- .../continue/Diffs.kt | 2 +- .../continue/Proxy.kt | 123 ------------------ .../services/ContinuePluginService.kt | 6 - 3 files changed, 1 insertion(+), 130 deletions(-) delete mode 100644 extensions/intellij/src/main/kotlin/com/github/continuedev/continueintellijextension/continue/Proxy.kt diff --git a/extensions/intellij/src/main/kotlin/com/github/continuedev/continueintellijextension/continue/Diffs.kt b/extensions/intellij/src/main/kotlin/com/github/continuedev/continueintellijextension/continue/Diffs.kt index 9f2597fde..00ff0df47 100644 --- a/extensions/intellij/src/main/kotlin/com/github/continuedev/continueintellijextension/continue/Diffs.kt +++ b/extensions/intellij/src/main/kotlin/com/github/continuedev/continueintellijextension/continue/Diffs.kt @@ -114,7 +114,7 @@ class DiffManager(private val project: Project): DumbAware { cleanUpFile(file) } - fun openDiffWindow( + private fun openDiffWindow( file1: String, file2: String, stepIndex: Int diff --git a/extensions/intellij/src/main/kotlin/com/github/continuedev/continueintellijextension/continue/Proxy.kt b/extensions/intellij/src/main/kotlin/com/github/continuedev/continueintellijextension/continue/Proxy.kt deleted file mode 100644 index b34dd1d7a..000000000 --- a/extensions/intellij/src/main/kotlin/com/github/continuedev/continueintellijextension/continue/Proxy.kt +++ /dev/null @@ -1,123 +0,0 @@ -package com.github.continuedev.continueintellijextension.`continue` - - -import io.ktor.server.application.* -import io.ktor.http.* -import io.ktor.server.request.* -import io.ktor.server.response.* -import io.ktor.server.engine.embeddedServer -import io.ktor.server.netty.Netty -import io.ktor.server.plugins.cors.routing.* -import io.ktor.util.* -import io.ktor.utils.io.jvm.javaio.* -import kotlinx.coroutines.withTimeout -import okhttp3.OkHttpClient -import okhttp3.Request -import org.apache.commons.io.IOUtils.byteArray -import java.io.ByteArrayOutputStream -import java.net.URL - -fun startProxyServer() { - embeddedServer(Netty, port = 65433, module = Application::proxyServer, configure = { - responseWriteTimeoutSeconds = 7200 - }).start(wait = true) -} - -fun Application.proxyServer() { - install(CORS) { - anyHost() - - allowCredentials = true - allowNonSimpleContentTypes = true - - allowMethod(HttpMethod.Options) - allowMethod(HttpMethod.Get) - allowMethod(HttpMethod.Post) - allowMethod(HttpMethod.Put) - allowMethod(HttpMethod.Delete) - allowMethod(HttpMethod.Patch) - - allowHeaders { - true - } - - allowOrigins { origin -> - true - } - } - - intercept(ApplicationCallPipeline.Call) { - val originalRequest = call.request - - // Don't intercept CORS pre-flight requests - if (originalRequest.httpMethod == HttpMethod.Options) { - return@intercept; - } - - val continueUrl = originalRequest.headers["x-continue-url"] ?: return@intercept call.respond(HttpStatusCode.OK) - val parsedUrl = URL(continueUrl) - val body = originalRequest.receiveChannel().toInputStream().use { inputStream -> - if (inputStream == null) { - return@use null; - } - val buffer = byteArray(4096) // size of the buffer can be adjusted as needed - val outputStream = ByteArrayOutputStream() - while (true) { - val bytesRead = inputStream.read(buffer) - if (bytesRead == -1) { - break - } - outputStream.write(buffer, 0, bytesRead) - } - outputStream.toByteArray() - } - - // Create OkHttpClient instance - val client = OkHttpClient.Builder() - .callTimeout(7200, java.util.concurrent.TimeUnit.SECONDS) - .connectTimeout(7200, java.util.concurrent.TimeUnit.SECONDS) - .readTimeout(7200, java.util.concurrent.TimeUnit.SECONDS) - .build() - - val requestBody = body?.let { okhttp3.RequestBody.create(null, it) } - val okhttpHeaders = okhttp3.Headers.Builder() - for (header in originalRequest.headers.entries()) { - if (header.key != HttpHeaders.Host && header.key != HttpHeaders.Origin) { - okhttpHeaders.add(header.key, header.value.joinToString(",")) - } - } - okhttpHeaders.add(HttpHeaders.Host, parsedUrl.host) - - val requestBuilder = Request.Builder() - .url(continueUrl) - .method(originalRequest.httpMethod.value, requestBody) - .headers(okhttpHeaders.build()) - - val response = client.newCall(requestBuilder.build()).execute() - - // Set the response headers - response.headers.forEach { h -> - if (h.first.lowercase() == HttpHeaders.TransferEncoding.lowercase() || h.first.lowercase() == HttpHeaders.AccessControlAllowOrigin.lowercase()) { - return@forEach - } - call.response.header(h.first, h.second) - } - - call.respondOutputStream(ContentType.parse(response.header("Content-Type") ?: "text/plain"), HttpStatusCode(response.code, response.message)) { - response.body?.byteStream()?.use { inputStream -> - if (inputStream == null) { - return@use; - } - val buffer = byteArray(4096) // size of the buffer can be adjusted as needed - while (true) { - val bytesRead = inputStream.read(buffer) - if (bytesRead == -1) { - break - } - write(buffer, 0, bytesRead) - flush() - } - } - } - } -} \ No newline at end of file diff --git a/extensions/intellij/src/main/kotlin/com/github/continuedev/continueintellijextension/services/ContinuePluginService.kt b/extensions/intellij/src/main/kotlin/com/github/continuedev/continueintellijextension/services/ContinuePluginService.kt index 740bad132..7318d2731 100644 --- a/extensions/intellij/src/main/kotlin/com/github/continuedev/continueintellijextension/services/ContinuePluginService.kt +++ b/extensions/intellij/src/main/kotlin/com/github/continuedev/continueintellijextension/services/ContinuePluginService.kt @@ -36,12 +36,6 @@ class ContinuePluginService(project: Project) : Disposable, DumbAware { coroutineScope.cancel() } - fun launchInScope(block: suspend CoroutineScope.() -> Unit) { - coroutineScope.launch { - block() - } - } - fun sendToWebview( messageType: String, data: Any?, From 0dac76edf5f35226cf6b3e99c83a7c02273cc05c Mon Sep 17 00:00:00 2001 From: Kangmoon Seo <100016044+KangmoonSeo@users.noreply.github.com> Date: Sun, 22 Sep 2024 22:42:28 +0900 Subject: [PATCH 165/268] fix: correct typo in stop sequence --- core/autocomplete/templates.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/autocomplete/templates.ts b/core/autocomplete/templates.ts index dbe15fd9b..dc729f52a 100644 --- a/core/autocomplete/templates.ts +++ b/core/autocomplete/templates.ts @@ -54,7 +54,7 @@ const qwenCoderFimTemplate: AutocompleteTemplate = { "<|repo_name|>", "<|file_sep|>", "<|im_start|>", - "<|im_end|", + "<|im_end|>", ], }, }; From cd0a4fd44fbb2503589dba14aa833bbc14b76fa7 Mon Sep 17 00:00:00 2001 From: Nate Date: Sun, 22 Sep 2024 11:38:53 -0700 Subject: [PATCH 166/268] small updates --- .../AutocompleteSpinnerWidgetFactory.kt | 6 +- .../continue/IdeProtocolClient.kt | 61 +++++++++++++++---- .../toolWindow/MessageTypes.kt | 1 + gui/src/hooks/useSubmenuContextProviders.tsx | 31 +++++----- 4 files changed, 69 insertions(+), 30 deletions(-) diff --git a/extensions/intellij/src/main/kotlin/com/github/continuedev/continueintellijextension/autocomplete/AutocompleteSpinnerWidgetFactory.kt b/extensions/intellij/src/main/kotlin/com/github/continuedev/continueintellijextension/autocomplete/AutocompleteSpinnerWidgetFactory.kt index 8408a4964..5f84ec152 100644 --- a/extensions/intellij/src/main/kotlin/com/github/continuedev/continueintellijextension/autocomplete/AutocompleteSpinnerWidgetFactory.kt +++ b/extensions/intellij/src/main/kotlin/com/github/continuedev/continueintellijextension/autocomplete/AutocompleteSpinnerWidgetFactory.kt @@ -30,10 +30,10 @@ class AutocompleteSpinnerWidget(project: Project): EditorBasedWidget(project), S IconLoader.getIcon("/icons/AnimationLoadingIcon/AnimationLoading5(RiderLight).svg", javaClass), IconLoader.getIcon("/icons/AnimationLoadingIcon/AnimationLoading6(RiderLight).svg", javaClass), IconLoader.getIcon("/icons/AnimationLoadingIcon/AnimationLoading7(RiderLight).svg", javaClass), - IconLoader.getIcon("/icons/AnimationLoadingIcon/AnimationLoading8(RiderLight).svg", javaClass), ) init { + Disposer.register(project, this) updateIcon() } @@ -49,7 +49,7 @@ class AutocompleteSpinnerWidget(project: Project): EditorBasedWidget(project), S override fun getTooltipText(): String? { val enabled = service().state.enableTabAutocomplete - return if (enabled) "Continue Autocomplete Enabled" else "Continue Autocomplete Disabled" + return if (enabled) "Continue autocomplete enabled" else "Continue autocomplete disabled" } override fun getClickConsumer(): Consumer? { @@ -70,7 +70,7 @@ class AutocompleteSpinnerWidget(project: Project): EditorBasedWidget(project), S // Update the widget val statusBar = WindowManager.getInstance().getStatusBar(project) - statusBar.updateWidget(ID()) + statusBar?.updateWidget(ID()) } override fun install(statusBar: StatusBar) { 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 ac62d045c..3b11fbe78 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 @@ -39,10 +39,7 @@ import com.intellij.psi.PsiDocumentManager import com.intellij.testFramework.LightVirtualFile import com.intellij.ui.awt.RelativePoint import com.intellij.util.concurrency.annotations.RequiresEdt -import kotlinx.coroutines.CoroutineScope -import kotlinx.coroutines.Dispatchers -import kotlinx.coroutines.launch -import kotlinx.coroutines.withContext +import kotlinx.coroutines.* import java.awt.Toolkit import java.awt.datatransfer.StringSelection import java.io.* @@ -347,6 +344,16 @@ class IdeProtocolClient ( respond(workspaceDirectories()) } + "getTags" -> { + val artifactId = data as? String + if (artifactId == null) { + respond(emptyList()) + return@launch + } + val tags = getTags(artifactId) + respond(tags) + } + "getWorkspaceConfigs" -> { val workspaceDirs = workspaceDirectories() @@ -474,15 +481,8 @@ class IdeProtocolClient ( "getBranch" -> { // Get the current branch name val dir = (data as Map)["dir"] as String - val builder = ProcessBuilder("git", "rev-parse", "--abbrev-ref", "HEAD") - builder.directory(File(dir)) - val process = builder.start() - - val reader = BufferedReader(InputStreamReader(process.inputStream)) - val output = reader.readLine() - process.waitFor() - - respond(output ?: "NONE") + val branch = getBranch(dir) + respond(branch) } "getRepoName" -> { // Get the current repository name @@ -742,6 +742,41 @@ class IdeProtocolClient ( return getMachineUniqueID() } + suspend fun getBranch(dir: String): String = withContext(Dispatchers.IO) { + try { + val builder = ProcessBuilder("git", "rev-parse", "--abbrev-ref", "HEAD") + builder.directory(File(dir)) + val process = builder.start() + + val reader = BufferedReader(InputStreamReader(process.inputStream)) + val output = reader.readLine() + + process.waitFor() + + output ?: "NONE" + } catch (e: Exception) { + "NONE" + } + } + + data class IndexTag(val directory: String, val branch: String, val artifactId: String) + + suspend fun getTags(artifactId: String): List { + val workspaceDirs = workspaceDirectories() + + // Collect branches concurrently using Kotlin coroutines + val branches = withContext(Dispatchers.IO) { + workspaceDirs.map { dir -> + async { getBranch(dir) } + }.map { it.await() } + } + + // Create the list of IndexTag objects + return workspaceDirs.mapIndexed { index, directory -> + IndexTag(directory, branches[index], artifactId) + } + } + fun readFile(filepath: String): String { try { val content = ApplicationManager.getApplication().runReadAction { diff --git a/extensions/intellij/src/main/kotlin/com/github/continuedev/continueintellijextension/toolWindow/MessageTypes.kt b/extensions/intellij/src/main/kotlin/com/github/continuedev/continueintellijextension/toolWindow/MessageTypes.kt index da623bda7..ccd76b570 100644 --- a/extensions/intellij/src/main/kotlin/com/github/continuedev/continueintellijextension/toolWindow/MessageTypes.kt +++ b/extensions/intellij/src/main/kotlin/com/github/continuedev/continueintellijextension/toolWindow/MessageTypes.kt @@ -35,6 +35,7 @@ class MessageTypes { "getProblems", "subprocess", "getBranch", + "getTags", "getIdeInfo", "getIdeSettings", "errorPopup", diff --git a/gui/src/hooks/useSubmenuContextProviders.tsx b/gui/src/hooks/useSubmenuContextProviders.tsx index d33abc660..79036bd81 100644 --- a/gui/src/hooks/useSubmenuContextProviders.tsx +++ b/gui/src/hooks/useSubmenuContextProviders.tsx @@ -1,4 +1,5 @@ import { ContextSubmenuItem } from "core"; +import { WebviewMessengerResult } from "core/protocol/util"; import { deduplicateArray, getBasename, @@ -10,9 +11,8 @@ import { useCallback, useContext, useEffect, useMemo, useState } from "react"; import { useSelector } from "react-redux"; import { IdeMessengerContext } from "../context/IdeMessenger"; import { selectContextProviderDescriptions } from "../redux/selectors"; -import { useWebviewListener } from "./useWebviewListener"; -import { WebviewMessengerResult } from "core/protocol/util"; import { getLocalStorage } from "../util/localStorage"; +import { useWebviewListener } from "./useWebviewListener"; const MINISEARCH_OPTIONS = { prefix: true, @@ -188,18 +188,6 @@ function useSubmenuContextProviders() { console.debug("Current fallbackResults:", fallbackResults); console.debug("Current minisearches:", Object.keys(minisearches)); - if (!initialLoadComplete) { - console.debug("Initial load not complete, returning loading state"); - return [ - { - id: "loading", - title: "Loading...", - description: "Please wait while items are being loaded", - providerTitle: providerTitle || "unknown", - }, - ]; - } - try { const results = getSubmenuSearchResults(providerTitle, query); if (results.length === 0) { @@ -211,6 +199,21 @@ function useSubmenuContextProviders() { providerTitle, }; }); + + if (fallbackItems.length === 0 && !initialLoadComplete) { + console.debug( + "Initial load not complete, returning loading state", + ); + return [ + { + id: "loading", + title: "Loading...", + description: "Please wait while items are being loaded", + providerTitle: providerTitle || "unknown", + }, + ]; + } + console.debug("Using fallback results:", fallbackItems.length); console.debug("Fallback items:", fallbackItems); return fallbackItems; From 77eafacfea38394842409cb767731b24b57fb11d Mon Sep 17 00:00:00 2001 From: Nate Date: Sun, 22 Sep 2024 11:46:17 -0700 Subject: [PATCH 167/268] release workflow back to normal --- .github/workflows/jetbrains-release.yaml | 91 ++++++++++++------------ 1 file changed, 44 insertions(+), 47 deletions(-) diff --git a/.github/workflows/jetbrains-release.yaml b/.github/workflows/jetbrains-release.yaml index 03becdd8a..cf3cc4ae1 100644 --- a/.github/workflows/jetbrains-release.yaml +++ b/.github/workflows/jetbrains-release.yaml @@ -5,9 +5,6 @@ name: JetBrains Release on: - push: - branches: - - nate/jetbrains-updates release: types: [prereleased] @@ -20,24 +17,24 @@ concurrency: cancel-in-progress: true jobs: - # check_release_name: - # runs-on: ubuntu-latest - # outputs: - # should_run: ${{ steps.check.outputs.should_run }} - # steps: - # - id: check - # working-directory: . - # run: | - # if [[ "${{ github.event.release.tag_name }}" == v0.0.*-jetbrains ]]; then - # echo "should_run=true" >> $GITHUB_OUTPUT - # else - # echo "should_run=false" >> $GITHUB_OUTPUT - # fi + check_release_name: + runs-on: ubuntu-latest + outputs: + should_run: ${{ steps.check.outputs.should_run }} + steps: + - id: check + working-directory: . + run: | + if [[ "${{ github.event.release.tag_name }}" == v0.0.*-jetbrains ]]; then + echo "should_run=true" >> $GITHUB_OUTPUT + else + echo "should_run=false" >> $GITHUB_OUTPUT + fi # Prepare and publish the plugin to JetBrains Marketplace repository build: - # needs: check_release_name - # if: needs.check_release_name.outputs.should_run == 'true' + needs: check_release_name + if: needs.check_release_name.outputs.should_run == 'true' name: Build Plugin runs-on: macos-latest permissions: @@ -177,24 +174,24 @@ jobs: - name: Build plugin run: ./gradlew buildPlugin - # # Publish the plugin to JetBrains Marketplace - # - name: Publish EAP Plugin - # env: - # PUBLISH_TOKEN: ${{ secrets.JETBRAINS_PUBLISH_TOKEN }} - # CERTIFICATE_CHAIN: ${{ secrets.JETBRAINS_CERTIFICATE_CHAIN }} - # PRIVATE_KEY: ${{ secrets.JETBRAINS_PRIVATE_KEY }} - # PRIVATE_KEY_PASSWORD: ${{ secrets.JETBRAINS_PRIVATE_KEY_PASSWORD }} - # RELEASE_CHANNEL: eap - # run: ./gradlew publishPlugin + # Publish the plugin to JetBrains Marketplace + - name: Publish EAP Plugin + env: + PUBLISH_TOKEN: ${{ secrets.JETBRAINS_PUBLISH_TOKEN }} + CERTIFICATE_CHAIN: ${{ secrets.JETBRAINS_CERTIFICATE_CHAIN }} + PRIVATE_KEY: ${{ secrets.JETBRAINS_PRIVATE_KEY }} + PRIVATE_KEY_PASSWORD: ${{ secrets.JETBRAINS_PRIVATE_KEY_PASSWORD }} + RELEASE_CHANNEL: eap + run: ./gradlew publishPlugin - # - name: Publish Stable Plugin - # env: - # PUBLISH_TOKEN: ${{ secrets.JETBRAINS_PUBLISH_TOKEN }} - # CERTIFICATE_CHAIN: ${{ secrets.JETBRAINS_CERTIFICATE_CHAIN }} - # PRIVATE_KEY: ${{ secrets.JETBRAINS_PRIVATE_KEY }} - # PRIVATE_KEY_PASSWORD: ${{ secrets.JETBRAINS_PRIVATE_KEY_PASSWORD }} - # RELEASE_CHANNEL: default - # run: ./gradlew publishPlugin + - name: Publish Stable Plugin + env: + PUBLISH_TOKEN: ${{ secrets.JETBRAINS_PUBLISH_TOKEN }} + CERTIFICATE_CHAIN: ${{ secrets.JETBRAINS_CERTIFICATE_CHAIN }} + PRIVATE_KEY: ${{ secrets.JETBRAINS_PRIVATE_KEY }} + PRIVATE_KEY_PASSWORD: ${{ secrets.JETBRAINS_PRIVATE_KEY_PASSWORD }} + RELEASE_CHANNEL: default + run: ./gradlew publishPlugin # Prepare plugin archive content for creating artifact - name: Prepare Plugin Artifact @@ -254,23 +251,23 @@ jobs: strategy: matrix: include: - # - os: windows-latest - # platform: win32 - # arch: x64 - # npm_config_arch: x64 - # - os: ubuntu-latest - # platform: linux - # arch: x64 - # npm_config_arch: x64 + - os: windows-latest + platform: win32 + arch: x64 + npm_config_arch: x64 + - os: ubuntu-latest + platform: linux + arch: x64 + npm_config_arch: x64 # arm64 not actually supported by GitHub # - os: ubuntu-latest # platform: linux # arch: arm64 # npm_config_arch: arm64 - # - os: macos-12 - # platform: darwin - # arch: x64 - # npm_config_arch: x64 + - os: macos-12 + platform: darwin + arch: x64 + npm_config_arch: x64 - os: macos-latest platform: darwin arch: arm64 From 89a02e26cd3e74366930fe00792e7ef59788e11e Mon Sep 17 00:00:00 2001 From: Nate Date: Sun, 22 Sep 2024 11:51:38 -0700 Subject: [PATCH 168/268] changelog --- .changes/extensions/intellij/0.0.69.md | 7 ++ .../unreleased/Added-20240915-163755.yaml | 4 - .../unreleased/Fixed-20240915-163641.yaml | 4 - extensions/intellij/CHANGELOG.md | 4 +- .../ContinuePluginStartupActivity.kt | 1 - .../AutocompleteSpinnerWidgetFactory.kt | 1 + extensions/vscode/CHANGELOG.md | 111 +++++++----------- 7 files changed, 55 insertions(+), 77 deletions(-) create mode 100644 .changes/extensions/intellij/0.0.69.md delete mode 100644 .changes/unreleased/Added-20240915-163755.yaml delete mode 100644 .changes/unreleased/Fixed-20240915-163641.yaml diff --git a/.changes/extensions/intellij/0.0.69.md b/.changes/extensions/intellij/0.0.69.md new file mode 100644 index 000000000..a4b67ca0c --- /dev/null +++ b/.changes/extensions/intellij/0.0.69.md @@ -0,0 +1,7 @@ +## 0.0.69 - 2024-09-22 +### Added +* Support for the "search" context provider +### Fixed +* Fixed bug where only first module would be recognized +* Improved concurrency handling to avoid freezes +* Made compatible with latest JetBrains versions diff --git a/.changes/unreleased/Added-20240915-163755.yaml b/.changes/unreleased/Added-20240915-163755.yaml deleted file mode 100644 index 7d1fbe876..000000000 --- a/.changes/unreleased/Added-20240915-163755.yaml +++ /dev/null @@ -1,4 +0,0 @@ -project: extensions/intellij -kind: Added -body: Support for the "search" context provider -time: 2024-09-15T16:37:55.460922-07:00 diff --git a/.changes/unreleased/Fixed-20240915-163641.yaml b/.changes/unreleased/Fixed-20240915-163641.yaml deleted file mode 100644 index 9b516c48c..000000000 --- a/.changes/unreleased/Fixed-20240915-163641.yaml +++ /dev/null @@ -1,4 +0,0 @@ -project: extensions/intellij -kind: Fixed -body: Fixed bug where only first module would be recognized -time: 2024-09-15T16:36:41.899428-07:00 diff --git a/extensions/intellij/CHANGELOG.md b/extensions/intellij/CHANGELOG.md index 80bde8774..7ed8107f4 100644 --- a/extensions/intellij/CHANGELOG.md +++ b/extensions/intellij/CHANGELOG.md @@ -5,11 +5,13 @@ adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html), and is generated by [Changie](https://github.com/miniscruff/changie). -Pre-release Changes +## 0.0.69 - 2024-09-22 ### Added * Support for the "search" context provider ### Fixed * Fixed bug where only first module would be recognized +* Improved concurrency handling to avoid freezes +* Made compatible with latest JetBrains versions ## 0.0.54 - 2024-07-13 ### Added 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 a924cbde1..71c7435b3 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 @@ -41,7 +41,6 @@ fun showTutorial(project: Project) { } val filepath = Paths.get(getContinueGlobalPath(), "continue_tutorial.py").toString() File(filepath).writeText(content) - File(filepath).writeText(content) val virtualFile = LocalFileSystem.getInstance().findFileByPath(filepath) diff --git a/extensions/intellij/src/main/kotlin/com/github/continuedev/continueintellijextension/autocomplete/AutocompleteSpinnerWidgetFactory.kt b/extensions/intellij/src/main/kotlin/com/github/continuedev/continueintellijextension/autocomplete/AutocompleteSpinnerWidgetFactory.kt index 5f84ec152..d33913396 100644 --- a/extensions/intellij/src/main/kotlin/com/github/continuedev/continueintellijextension/autocomplete/AutocompleteSpinnerWidgetFactory.kt +++ b/extensions/intellij/src/main/kotlin/com/github/continuedev/continueintellijextension/autocomplete/AutocompleteSpinnerWidgetFactory.kt @@ -30,6 +30,7 @@ class AutocompleteSpinnerWidget(project: Project): EditorBasedWidget(project), S IconLoader.getIcon("/icons/AnimationLoadingIcon/AnimationLoading5(RiderLight).svg", javaClass), IconLoader.getIcon("/icons/AnimationLoadingIcon/AnimationLoading6(RiderLight).svg", javaClass), IconLoader.getIcon("/icons/AnimationLoadingIcon/AnimationLoading7(RiderLight).svg", javaClass), + IconLoader.getIcon("/icons/AnimationLoadingIcon/AnimationLoading8(RiderLight).svg", javaClass), ) init { diff --git a/extensions/vscode/CHANGELOG.md b/extensions/vscode/CHANGELOG.md index 7a468f09b..95ea80d30 100644 --- a/extensions/vscode/CHANGELOG.md +++ b/extensions/vscode/CHANGELOG.md @@ -4,93 +4,84 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html), and is generated by [Changie](https://github.com/miniscruff/changie). -## 0.8.52 - 2024-09-16 + +Pre-release Changes +### Fixed +* Continue for teams auth bug fix + +## 0.9.210 - 2024-09-15 + +### Added + +- NVIDIA NIMs embeddings provider +- SambaNova LLM Provider +- Support for OpenAI's new o1-preview and o1-mini models ### Changed +- Use Chromium only as a fallback after asking user + +### Fixed + +- Increased default maxTokens, and autodetect for common models + +## 0.8.52 - 2024-09-16 +### Changed * Use Chromium only as a fallback after asking user * Redesigned onboarding flow ## 0.8.51 - 2024-09-05 - ### Fixed - * Fixed CRLF bug causing diff streams to treat every line as changed on Windows ## 0.8.50 - 2024-09-02 - ### Fixed - * Hotfix for ability to use more than one inline context provider ## 0.8.49 - 2024-09-01 - ### Fixed - * Hotfix: submenu context providers ## 0.8.48 - 2024-09-01 - ### Added - * Improved indexing progress UI * Improved @codebase using repomap * Repo map context provider - ### Fixed - * Many small UI improvements * Fixes db.search not a function ## 0.8.47 - 2024-08-27 - ### Added - * Use headless browser for crawling to get better results * TTS support in the chat window - ### Changed - * Improved support for WatsonX models - ### Fixed - * Fixed several small indexing bugs ## 0.8.46 - 2024-08-11 - ### Added - * new /onboard slash command - ### Fixed - * Fixed problem loading config.ts * Fixed bug causing duplicate indexing work ## 0.8.45 - 2024-08-05 - ### Added - * Support for Llama 3.1 and gpt-4o-mini * Support for WatsonX+Granite models - ### Changed - * Significant improvements to indexing performance * Improved @codebase quality by more accurately searching over file names and paths * Improved @codebase accuracy * Further improvements to indexing performance - ### Fixed - * Improved docs indexing and management * Fixed Gemini embeddings provider ## 0.8.43 - 2024-07-08 - ### Added - * Improved indexing reliability and testing * Quick Actions: use CodeLens to quickly take common actions like adding docstrings @@ -98,60 +89,46 @@ and is generated by [Changie](https://github.com/miniscruff/changie). ### Added -* Support for Gemini 1.5 Pro -* Link to code in the sidebar when using codebase retrieval -* Smoother onboarding experience -* .prompt files, a way of saving and sharing slash commands -* Support for Claude 3.5 Sonnet, Deepseek Coder v2, and other new models -* Support for comments in config.json -* Specify multiple autocomplete models and switch between them -* Improved bracket matching strategy reduces noisy completions +- Support for Gemini 1.5 Pro +- Link to code in the sidebar when using codebase retrieval +- Smoother onboarding experience +- .prompt files, a way of saving and sharing slash commands +- Support for Claude 3.5 Sonnet, Deepseek Coder v2, and other new models +- Support for comments in config.json +- Specify multiple autocomplete models and switch between them +- Improved bracket matching strategy reduces noisy completions ### Fixed -* Numerous reliability upgrades to codebase indexing +- Numerous reliability upgrades to codebase indexing ## 0.8.24 - 2024-04-12 - ### Added - * Support for improved retrieval models (Voyage embeddings/reranking) * New @code context provider * Personal usage analytics ## 0.8.15 - 2024-03-05 - ### Added - * Tab-autocomplete in beta ## 0.8.14 - 2024-03-03 - ### Added - * Image support * Full-text search index for retrieval * Docs context provider * CodeLlama-70b support - ### Changed - * config.ts only runs in NodeJS, not browser - ### Fixed - * Fixed proxy setting in config.json ## v0.8.2 - 2024-01-23 - ### Added - * Add codellama and gemini to free trial, using new server * Local codebase syncing and embeddings using LanceDB * Improved VS Code theme matching - ### Changed - * Updates to packaging to download native modules for current platform (lancedb, sqlite, onnxruntime, tree-sitter wasms) * Context providers now run from the extension side (in Node.js instead of browser javascript) @@ -159,55 +136,55 @@ and is generated by [Changie](https://github.com/miniscruff/changie). ### Added -* disableSessionTitles option in config.json +- disableSessionTitles option in config.json ### Changed -* Use Ollama /chat endpoint instead of raw completions by default, and /show endpoint to gather model parameters like context length and stop tokens +- Use Ollama /chat endpoint instead of raw completions by default, and /show endpoint to gather model parameters like context length and stop tokens ## v0.6.19 - 2024-01-05 ### Added -* support for .continuerc.json in root of workspace to override config.json -* Inline context providers -* cmd+shift+L with new diff streaming UI for edits +- support for .continuerc.json in root of workspace to override config.json +- Inline context providers +- cmd+shift+L with new diff streaming UI for edits ### Changed -* Allow certain LLM servers to handle templating +- Allow certain LLM servers to handle templating ## v0.6.16 - 2023-12-25 ### Changed -* Context items are now kept around as a part of past messages, instead of staying at the main input -* No more Python server - Continue runs entirely in Typescript +- Context items are now kept around as a part of past messages, instead of staying at the main input +- No more Python server - Continue runs entirely in Typescript ## v0.6.4 - 2023-11-19 ### Changed -* migrated to .json config file format +- migrated to .json config file format ## v0.6.0 - 2023-11-10 ### Added -* Full screen mode -* StackOverflow slash command to augment with web search -* VS Code context menus: right click to add code to context, debug the terminal, or share your Continue session +- Full screen mode +- StackOverflow slash command to augment with web search +- VS Code context menus: right click to add code to context, debug the terminal, or share your Continue session ### Fixed -* Reliability improvements to JetBrains by bringing up-to-date with the socket.io refactor +- Reliability improvements to JetBrains by bringing up-to-date with the socket.io refactor ## v0.5.0 - 2023-11-09 ### Added -* Codebase Retrieval: Use /codebase or cmd+enter and Continue will automatically gather the most important context +- Codebase Retrieval: Use /codebase or cmd+enter and Continue will automatically gather the most important context ### Changed -* Switch from Websockets to Socket.io +- Switch from Websockets to Socket.io From d89876852f6fc52f1cb846de79e8e88c4265ce8d Mon Sep 17 00:00:00 2001 From: Nate Date: Sun, 22 Sep 2024 14:26:56 -0700 Subject: [PATCH 169/268] update package-lock.json in gui --- gui/package-lock.json | 20217 ---------------------------------------- 1 file changed, 20217 deletions(-) delete mode 100644 gui/package-lock.json diff --git a/gui/package-lock.json b/gui/package-lock.json deleted file mode 100644 index 59c98a50f..000000000 --- a/gui/package-lock.json +++ /dev/null @@ -1,20217 +0,0 @@ -{ - "name": "gui", - "lockfileVersion": 3, - "requires": true, - "packages": { - "": { - "name": "gui", - "license": "Apache-2.0", - "dependencies": { - "@headlessui/react": "^1.7.17", - "@heroicons/react": "^2.0.18", - "@monaco-editor/react": "^4.6.0", - "@reduxjs/toolkit": "^1.9.3", - "@tiptap/core": "^2.3.2", - "@tiptap/extension-document": "^2.3.2", - "@tiptap/extension-dropcursor": "^2.1.16", - "@tiptap/extension-history": "^2.3.2", - "@tiptap/extension-image": "^2.1.16", - "@tiptap/extension-mention": "^2.1.13", - "@tiptap/extension-paragraph": "^2.3.2", - "@tiptap/extension-placeholder": "^2.1.13", - "@tiptap/extension-text": "^2.3.2", - "@tiptap/pm": "^2.1.13", - "@tiptap/react": "^2.1.13", - "@tiptap/starter-kit": "^2.1.13", - "@tiptap/suggestion": "^2.1.13", - "@types/vscode-webview": "^1.57.1", - "core": "file:../core", - "dompurify": "^3.0.6", - "downshift": "^7.6.0", - "lodash": "^4.17.21", - "minisearch": "^7.0.2", - "onigasm": "^2.2.5", - "posthog-js": "^1.130.1", - "prismjs": "^1.29.0", - "react": "^18.2.0", - "react-dom": "^18.2.0", - "react-error-boundary": "^4.0.11", - "react-hook-form": "^7.47.0", - "react-intersection-observer": "^9.10.3", - "react-markdown": "^9.0.1", - "react-redux": "^8.0.5", - "react-remark": "^2.1.0", - "react-router-dom": "^6.14.2", - "react-switch": "^7.0.0", - "react-syntax-highlighter": "^15.5.0", - "react-tooltip": "^5.18.0", - "redux-persist": "^6.0.0", - "redux-persist-transform-filter": "^0.0.22", - "rehype-highlight": "^7.0.0", - "rehype-katex": "^7.0.0", - "rehype-wrap-all": "^1.1.0", - "remark-math": "^6.0.0", - "reselect": "^5.1.1", - "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", - "vscode-webview": "^1.0.1-beta.1" - }, - "devDependencies": { - "@swc/cli": "^0.3.14", - "@swc/core": "^1.7.26", - "@types/lodash": "^4.17.6", - "@types/node": "^20.5.6", - "@types/node-fetch": "^2.6.4", - "@types/react": "^18.0.27", - "@types/react-dom": "^18.0.10", - "@types/react-router-dom": "^5.3.3", - "@types/react-syntax-highlighter": "^15.5.7", - "@types/styled-components": "^5.1.26", - "@vitejs/plugin-react-swc": "^3.7.0", - "autoprefixer": "^10.4.13", - "postcss": "^8.4.21", - "tailwindcss": "^3.2.7", - "typescript": "^4.9.3", - "vite": "^4.1.0" - }, - "engines": { - "node": ">=20.11.0" - } - }, - "../core": { - "name": "@continuedev/core", - "version": "1.0.13", - "license": "Apache-2.0", - "dependencies": { - "@aws-sdk/client-bedrock-runtime": "^3.620.1", - "@aws-sdk/client-sagemaker-runtime": "^3.621.0", - "@aws-sdk/credential-providers": "^3.620.1", - "@continuedev/config-types": "^1.0.10", - "@continuedev/llm-info": "^1.0.2", - "@mozilla/readability": "^0.5.0", - "@octokit/rest": "^20.0.2", - "@typescript-eslint/eslint-plugin": "^7.8.0", - "@typescript-eslint/parser": "^7.8.0", - "@xenova/transformers": "2.14.0", - "adf-to-md": "^1.1.0", - "async-mutex": "^0.5.0", - "axios": "^1.6.7", - "cheerio": "^1.0.0-rc.12", - "commander": "^12.0.0", - "comment-json": "^4.2.3", - "dbinfoz": "^0.11.0", - "diff": "^7.0.0", - "dotenv": "^16.4.5", - "fastest-levenshtein": "^1.0.16", - "follow-redirects": "^1.15.5", - "handlebars": "^4.7.8", - "http-proxy-agent": "^7.0.1", - "https-proxy-agent": "^7.0.3", - "ignore": "^5.3.1", - "jinja-js": "0.1.8", - "js-tiktoken": "^1.0.8", - "jsdom": "^24.0.0", - "launchdarkly-node-client-sdk": "^3.2.0", - "llm-code-highlighter": "^0.0.14", - "mac-ca": "^3.1.0", - "node-fetch": "^3.3.2", - "node-html-markdown": "^1.3.0", - "ollama": "^0.4.6", - "onnxruntime-node": "1.14.0", - "openai": "^4.20.1", - "p-limit": "^6.1.0", - "pg": "^8.11.3", - "posthog-node": "^3.6.3", - "puppeteer": "^22.4.0", - "puppeteer-chromium-resolver": "^23.0.0", - "quick-lru": "^7.0.0", - "replicate": "^0.26.0", - "request": "^2.88.2", - "socket.io-client": "^4.7.3", - "sqlite": "^5.1.1", - "sqlite3": "^5.1.7", - "system-ca": "^1.0.3", - "tree-sitter-wasms": "^0.1.11", - "uuid": "^9.0.1", - "vectordb": "^0.4.20", - "web-tree-sitter": "^0.21.0", - "win-ca": "^3.5.1", - "workerpool": "^9.1.3", - "yaml": "^2.4.2", - "zod": "^3.23.8" - }, - "devDependencies": { - "@babel/preset-env": "^7.24.7", - "@biomejs/biome": "1.6.4", - "@google/generative-ai": "^0.11.4", - "@types/diff": "^5.2.2", - "@types/follow-redirects": "^1.14.4", - "@types/jest": "^29.5.12", - "@types/jquery": "^3.5.29", - "@types/jsdom": "^21.1.6", - "@types/mozilla-readability": "^0.2.1", - "@types/mustache": "^4.2.5", - "@types/node-fetch": "^2.6.11", - "@types/pg": "^8.11.6", - "@types/request": "^2.48.12", - "@types/uuid": "^9.0.7", - "@types/win-ca": "^3.5.4", - "cross-env": "^7.0.3", - "esbuild": "0.17.19", - "eslint": "^8", - "eslint-plugin-import": "^2.29.1", - "jest": "^29.7.0", - "jest-environment-jsdom": "^29.7.0", - "myers-diff": "^2.1.0", - "onnxruntime-common": "1.14.0", - "onnxruntime-web": "1.14.0", - "ts-jest": "^29.1.1" - }, - "engines": { - "node": ">=20.11.0" - } - }, - "../core/node_modules/@75lb/deep-merge": { - "version": "1.1.1", - "license": "MIT", - "peer": true, - "dependencies": { - "lodash.assignwith": "^4.2.0", - "typical": "^7.1.1" - }, - "engines": { - "node": ">=12.17" - } - }, - "../core/node_modules/@75lb/deep-merge/node_modules/typical": { - "version": "7.1.1", - "license": "MIT", - "peer": true, - "engines": { - "node": ">=12.17" - } - }, - "../core/node_modules/@ampproject/remapping": { - "version": "2.3.0", - "dev": true, - "license": "Apache-2.0", - "dependencies": { - "@jridgewell/gen-mapping": "^0.3.5", - "@jridgewell/trace-mapping": "^0.3.24" - }, - "engines": { - "node": ">=6.0.0" - } - }, - "../core/node_modules/@apache-arrow/ts": { - "version": "14.0.2", - "license": "Apache-2.0", - "peer": true, - "dependencies": { - "@types/command-line-args": "5.2.0", - "@types/command-line-usage": "5.0.2", - "@types/node": "20.3.0", - "@types/pad-left": "2.1.1", - "command-line-args": "5.2.1", - "command-line-usage": "7.0.1", - "flatbuffers": "23.5.26", - "json-bignum": "^0.0.3", - "pad-left": "^2.1.0", - "tslib": "^2.5.3" - } - }, - "../core/node_modules/@aws-crypto/crc32": { - "version": "5.2.0", - "license": "Apache-2.0", - "dependencies": { - "@aws-crypto/util": "^5.2.0", - "@aws-sdk/types": "^3.222.0", - "tslib": "^2.6.2" - }, - "engines": { - "node": ">=16.0.0" - } - }, - "../core/node_modules/@aws-crypto/sha256-browser": { - "version": "5.2.0", - "license": "Apache-2.0", - "dependencies": { - "@aws-crypto/sha256-js": "^5.2.0", - "@aws-crypto/supports-web-crypto": "^5.2.0", - "@aws-crypto/util": "^5.2.0", - "@aws-sdk/types": "^3.222.0", - "@aws-sdk/util-locate-window": "^3.0.0", - "@smithy/util-utf8": "^2.0.0", - "tslib": "^2.6.2" - } - }, - "../core/node_modules/@aws-crypto/sha256-browser/node_modules/@smithy/is-array-buffer": { - "version": "2.2.0", - "license": "Apache-2.0", - "dependencies": { - "tslib": "^2.6.2" - }, - "engines": { - "node": ">=14.0.0" - } - }, - "../core/node_modules/@aws-crypto/sha256-browser/node_modules/@smithy/util-buffer-from": { - "version": "2.2.0", - "license": "Apache-2.0", - "dependencies": { - "@smithy/is-array-buffer": "^2.2.0", - "tslib": "^2.6.2" - }, - "engines": { - "node": ">=14.0.0" - } - }, - "../core/node_modules/@aws-crypto/sha256-browser/node_modules/@smithy/util-utf8": { - "version": "2.3.0", - "license": "Apache-2.0", - "dependencies": { - "@smithy/util-buffer-from": "^2.2.0", - "tslib": "^2.6.2" - }, - "engines": { - "node": ">=14.0.0" - } - }, - "../core/node_modules/@aws-crypto/sha256-js": { - "version": "5.2.0", - "license": "Apache-2.0", - "dependencies": { - "@aws-crypto/util": "^5.2.0", - "@aws-sdk/types": "^3.222.0", - "tslib": "^2.6.2" - }, - "engines": { - "node": ">=16.0.0" - } - }, - "../core/node_modules/@aws-crypto/supports-web-crypto": { - "version": "5.2.0", - "license": "Apache-2.0", - "dependencies": { - "tslib": "^2.6.2" - } - }, - "../core/node_modules/@aws-crypto/util": { - "version": "5.2.0", - "license": "Apache-2.0", - "dependencies": { - "@aws-sdk/types": "^3.222.0", - "@smithy/util-utf8": "^2.0.0", - "tslib": "^2.6.2" - } - }, - "../core/node_modules/@aws-crypto/util/node_modules/@smithy/is-array-buffer": { - "version": "2.2.0", - "license": "Apache-2.0", - "dependencies": { - "tslib": "^2.6.2" - }, - "engines": { - "node": ">=14.0.0" - } - }, - "../core/node_modules/@aws-crypto/util/node_modules/@smithy/util-buffer-from": { - "version": "2.2.0", - "license": "Apache-2.0", - "dependencies": { - "@smithy/is-array-buffer": "^2.2.0", - "tslib": "^2.6.2" - }, - "engines": { - "node": ">=14.0.0" - } - }, - "../core/node_modules/@aws-crypto/util/node_modules/@smithy/util-utf8": { - "version": "2.3.0", - "license": "Apache-2.0", - "dependencies": { - "@smithy/util-buffer-from": "^2.2.0", - "tslib": "^2.6.2" - }, - "engines": { - "node": ">=14.0.0" - } - }, - "../core/node_modules/@aws-sdk/client-bedrock-runtime": { - "version": "3.620.1", - "license": "Apache-2.0", - "dependencies": { - "@aws-crypto/sha256-browser": "5.2.0", - "@aws-crypto/sha256-js": "5.2.0", - "@aws-sdk/client-sso-oidc": "3.620.1", - "@aws-sdk/client-sts": "3.620.1", - "@aws-sdk/core": "3.620.1", - "@aws-sdk/credential-provider-node": "3.620.1", - "@aws-sdk/middleware-host-header": "3.620.0", - "@aws-sdk/middleware-logger": "3.609.0", - "@aws-sdk/middleware-recursion-detection": "3.620.0", - "@aws-sdk/middleware-user-agent": "3.620.0", - "@aws-sdk/region-config-resolver": "3.614.0", - "@aws-sdk/types": "3.609.0", - "@aws-sdk/util-endpoints": "3.614.0", - "@aws-sdk/util-user-agent-browser": "3.609.0", - "@aws-sdk/util-user-agent-node": "3.614.0", - "@smithy/config-resolver": "^3.0.5", - "@smithy/core": "^2.3.0", - "@smithy/eventstream-serde-browser": "^3.0.5", - "@smithy/eventstream-serde-config-resolver": "^3.0.3", - "@smithy/eventstream-serde-node": "^3.0.4", - "@smithy/fetch-http-handler": "^3.2.3", - "@smithy/hash-node": "^3.0.3", - "@smithy/invalid-dependency": "^3.0.3", - "@smithy/middleware-content-length": "^3.0.5", - "@smithy/middleware-endpoint": "^3.1.0", - "@smithy/middleware-retry": "^3.0.12", - "@smithy/middleware-serde": "^3.0.3", - "@smithy/middleware-stack": "^3.0.3", - "@smithy/node-config-provider": "^3.1.4", - "@smithy/node-http-handler": "^3.1.4", - "@smithy/protocol-http": "^4.1.0", - "@smithy/smithy-client": "^3.1.10", - "@smithy/types": "^3.3.0", - "@smithy/url-parser": "^3.0.3", - "@smithy/util-base64": "^3.0.0", - "@smithy/util-body-length-browser": "^3.0.0", - "@smithy/util-body-length-node": "^3.0.0", - "@smithy/util-defaults-mode-browser": "^3.0.12", - "@smithy/util-defaults-mode-node": "^3.0.12", - "@smithy/util-endpoints": "^2.0.5", - "@smithy/util-middleware": "^3.0.3", - "@smithy/util-retry": "^3.0.3", - "@smithy/util-stream": "^3.1.2", - "@smithy/util-utf8": "^3.0.0", - "tslib": "^2.6.2" - }, - "engines": { - "node": ">=16.0.0" - } - }, - "../core/node_modules/@aws-sdk/client-cognito-identity": { - "version": "3.620.1", - "license": "Apache-2.0", - "dependencies": { - "@aws-crypto/sha256-browser": "5.2.0", - "@aws-crypto/sha256-js": "5.2.0", - "@aws-sdk/client-sso-oidc": "3.620.1", - "@aws-sdk/client-sts": "3.620.1", - "@aws-sdk/core": "3.620.1", - "@aws-sdk/credential-provider-node": "3.620.1", - "@aws-sdk/middleware-host-header": "3.620.0", - "@aws-sdk/middleware-logger": "3.609.0", - "@aws-sdk/middleware-recursion-detection": "3.620.0", - "@aws-sdk/middleware-user-agent": "3.620.0", - "@aws-sdk/region-config-resolver": "3.614.0", - "@aws-sdk/types": "3.609.0", - "@aws-sdk/util-endpoints": "3.614.0", - "@aws-sdk/util-user-agent-browser": "3.609.0", - "@aws-sdk/util-user-agent-node": "3.614.0", - "@smithy/config-resolver": "^3.0.5", - "@smithy/core": "^2.3.0", - "@smithy/fetch-http-handler": "^3.2.3", - "@smithy/hash-node": "^3.0.3", - "@smithy/invalid-dependency": "^3.0.3", - "@smithy/middleware-content-length": "^3.0.5", - "@smithy/middleware-endpoint": "^3.1.0", - "@smithy/middleware-retry": "^3.0.12", - "@smithy/middleware-serde": "^3.0.3", - "@smithy/middleware-stack": "^3.0.3", - "@smithy/node-config-provider": "^3.1.4", - "@smithy/node-http-handler": "^3.1.4", - "@smithy/protocol-http": "^4.1.0", - "@smithy/smithy-client": "^3.1.10", - "@smithy/types": "^3.3.0", - "@smithy/url-parser": "^3.0.3", - "@smithy/util-base64": "^3.0.0", - "@smithy/util-body-length-browser": "^3.0.0", - "@smithy/util-body-length-node": "^3.0.0", - "@smithy/util-defaults-mode-browser": "^3.0.12", - "@smithy/util-defaults-mode-node": "^3.0.12", - "@smithy/util-endpoints": "^2.0.5", - "@smithy/util-middleware": "^3.0.3", - "@smithy/util-retry": "^3.0.3", - "@smithy/util-utf8": "^3.0.0", - "tslib": "^2.6.2" - }, - "engines": { - "node": ">=16.0.0" - } - }, - "../core/node_modules/@aws-sdk/client-sagemaker-runtime": { - "version": "3.624.0", - "license": "Apache-2.0", - "dependencies": { - "@aws-crypto/sha256-browser": "5.2.0", - "@aws-crypto/sha256-js": "5.2.0", - "@aws-sdk/client-sso-oidc": "3.624.0", - "@aws-sdk/client-sts": "3.624.0", - "@aws-sdk/core": "3.624.0", - "@aws-sdk/credential-provider-node": "3.624.0", - "@aws-sdk/middleware-host-header": "3.620.0", - "@aws-sdk/middleware-logger": "3.609.0", - "@aws-sdk/middleware-recursion-detection": "3.620.0", - "@aws-sdk/middleware-user-agent": "3.620.0", - "@aws-sdk/region-config-resolver": "3.614.0", - "@aws-sdk/types": "3.609.0", - "@aws-sdk/util-endpoints": "3.614.0", - "@aws-sdk/util-user-agent-browser": "3.609.0", - "@aws-sdk/util-user-agent-node": "3.614.0", - "@smithy/config-resolver": "^3.0.5", - "@smithy/core": "^2.3.2", - "@smithy/eventstream-serde-browser": "^3.0.5", - "@smithy/eventstream-serde-config-resolver": "^3.0.3", - "@smithy/eventstream-serde-node": "^3.0.4", - "@smithy/fetch-http-handler": "^3.2.4", - "@smithy/hash-node": "^3.0.3", - "@smithy/invalid-dependency": "^3.0.3", - "@smithy/middleware-content-length": "^3.0.5", - "@smithy/middleware-endpoint": "^3.1.0", - "@smithy/middleware-retry": "^3.0.14", - "@smithy/middleware-serde": "^3.0.3", - "@smithy/middleware-stack": "^3.0.3", - "@smithy/node-config-provider": "^3.1.4", - "@smithy/node-http-handler": "^3.1.4", - "@smithy/protocol-http": "^4.1.0", - "@smithy/smithy-client": "^3.1.12", - "@smithy/types": "^3.3.0", - "@smithy/url-parser": "^3.0.3", - "@smithy/util-base64": "^3.0.0", - "@smithy/util-body-length-browser": "^3.0.0", - "@smithy/util-body-length-node": "^3.0.0", - "@smithy/util-defaults-mode-browser": "^3.0.14", - "@smithy/util-defaults-mode-node": "^3.0.14", - "@smithy/util-endpoints": "^2.0.5", - "@smithy/util-middleware": "^3.0.3", - "@smithy/util-retry": "^3.0.3", - "@smithy/util-stream": "^3.1.3", - "@smithy/util-utf8": "^3.0.0", - "tslib": "^2.6.2" - }, - "engines": { - "node": ">=16.0.0" - } - }, - "../core/node_modules/@aws-sdk/client-sagemaker-runtime/node_modules/@aws-sdk/client-sso": { - "version": "3.624.0", - "license": "Apache-2.0", - "dependencies": { - "@aws-crypto/sha256-browser": "5.2.0", - "@aws-crypto/sha256-js": "5.2.0", - "@aws-sdk/core": "3.624.0", - "@aws-sdk/middleware-host-header": "3.620.0", - "@aws-sdk/middleware-logger": "3.609.0", - "@aws-sdk/middleware-recursion-detection": "3.620.0", - "@aws-sdk/middleware-user-agent": "3.620.0", - "@aws-sdk/region-config-resolver": "3.614.0", - "@aws-sdk/types": "3.609.0", - "@aws-sdk/util-endpoints": "3.614.0", - "@aws-sdk/util-user-agent-browser": "3.609.0", - "@aws-sdk/util-user-agent-node": "3.614.0", - "@smithy/config-resolver": "^3.0.5", - "@smithy/core": "^2.3.2", - "@smithy/fetch-http-handler": "^3.2.4", - "@smithy/hash-node": "^3.0.3", - "@smithy/invalid-dependency": "^3.0.3", - "@smithy/middleware-content-length": "^3.0.5", - "@smithy/middleware-endpoint": "^3.1.0", - "@smithy/middleware-retry": "^3.0.14", - "@smithy/middleware-serde": "^3.0.3", - "@smithy/middleware-stack": "^3.0.3", - "@smithy/node-config-provider": "^3.1.4", - "@smithy/node-http-handler": "^3.1.4", - "@smithy/protocol-http": "^4.1.0", - "@smithy/smithy-client": "^3.1.12", - "@smithy/types": "^3.3.0", - "@smithy/url-parser": "^3.0.3", - "@smithy/util-base64": "^3.0.0", - "@smithy/util-body-length-browser": "^3.0.0", - "@smithy/util-body-length-node": "^3.0.0", - "@smithy/util-defaults-mode-browser": "^3.0.14", - "@smithy/util-defaults-mode-node": "^3.0.14", - "@smithy/util-endpoints": "^2.0.5", - "@smithy/util-middleware": "^3.0.3", - "@smithy/util-retry": "^3.0.3", - "@smithy/util-utf8": "^3.0.0", - "tslib": "^2.6.2" - }, - "engines": { - "node": ">=16.0.0" - } - }, - "../core/node_modules/@aws-sdk/client-sagemaker-runtime/node_modules/@aws-sdk/client-sso-oidc": { - "version": "3.624.0", - "license": "Apache-2.0", - "dependencies": { - "@aws-crypto/sha256-browser": "5.2.0", - "@aws-crypto/sha256-js": "5.2.0", - "@aws-sdk/core": "3.624.0", - "@aws-sdk/credential-provider-node": "3.624.0", - "@aws-sdk/middleware-host-header": "3.620.0", - "@aws-sdk/middleware-logger": "3.609.0", - "@aws-sdk/middleware-recursion-detection": "3.620.0", - "@aws-sdk/middleware-user-agent": "3.620.0", - "@aws-sdk/region-config-resolver": "3.614.0", - "@aws-sdk/types": "3.609.0", - "@aws-sdk/util-endpoints": "3.614.0", - "@aws-sdk/util-user-agent-browser": "3.609.0", - "@aws-sdk/util-user-agent-node": "3.614.0", - "@smithy/config-resolver": "^3.0.5", - "@smithy/core": "^2.3.2", - "@smithy/fetch-http-handler": "^3.2.4", - "@smithy/hash-node": "^3.0.3", - "@smithy/invalid-dependency": "^3.0.3", - "@smithy/middleware-content-length": "^3.0.5", - "@smithy/middleware-endpoint": "^3.1.0", - "@smithy/middleware-retry": "^3.0.14", - "@smithy/middleware-serde": "^3.0.3", - "@smithy/middleware-stack": "^3.0.3", - "@smithy/node-config-provider": "^3.1.4", - "@smithy/node-http-handler": "^3.1.4", - "@smithy/protocol-http": "^4.1.0", - "@smithy/smithy-client": "^3.1.12", - "@smithy/types": "^3.3.0", - "@smithy/url-parser": "^3.0.3", - "@smithy/util-base64": "^3.0.0", - "@smithy/util-body-length-browser": "^3.0.0", - "@smithy/util-body-length-node": "^3.0.0", - "@smithy/util-defaults-mode-browser": "^3.0.14", - "@smithy/util-defaults-mode-node": "^3.0.14", - "@smithy/util-endpoints": "^2.0.5", - "@smithy/util-middleware": "^3.0.3", - "@smithy/util-retry": "^3.0.3", - "@smithy/util-utf8": "^3.0.0", - "tslib": "^2.6.2" - }, - "engines": { - "node": ">=16.0.0" - }, - "peerDependencies": { - "@aws-sdk/client-sts": "^3.624.0" - } - }, - "../core/node_modules/@aws-sdk/client-sagemaker-runtime/node_modules/@aws-sdk/client-sts": { - "version": "3.624.0", - "license": "Apache-2.0", - "dependencies": { - "@aws-crypto/sha256-browser": "5.2.0", - "@aws-crypto/sha256-js": "5.2.0", - "@aws-sdk/client-sso-oidc": "3.624.0", - "@aws-sdk/core": "3.624.0", - "@aws-sdk/credential-provider-node": "3.624.0", - "@aws-sdk/middleware-host-header": "3.620.0", - "@aws-sdk/middleware-logger": "3.609.0", - "@aws-sdk/middleware-recursion-detection": "3.620.0", - "@aws-sdk/middleware-user-agent": "3.620.0", - "@aws-sdk/region-config-resolver": "3.614.0", - "@aws-sdk/types": "3.609.0", - "@aws-sdk/util-endpoints": "3.614.0", - "@aws-sdk/util-user-agent-browser": "3.609.0", - "@aws-sdk/util-user-agent-node": "3.614.0", - "@smithy/config-resolver": "^3.0.5", - "@smithy/core": "^2.3.2", - "@smithy/fetch-http-handler": "^3.2.4", - "@smithy/hash-node": "^3.0.3", - "@smithy/invalid-dependency": "^3.0.3", - "@smithy/middleware-content-length": "^3.0.5", - "@smithy/middleware-endpoint": "^3.1.0", - "@smithy/middleware-retry": "^3.0.14", - "@smithy/middleware-serde": "^3.0.3", - "@smithy/middleware-stack": "^3.0.3", - "@smithy/node-config-provider": "^3.1.4", - "@smithy/node-http-handler": "^3.1.4", - "@smithy/protocol-http": "^4.1.0", - "@smithy/smithy-client": "^3.1.12", - "@smithy/types": "^3.3.0", - "@smithy/url-parser": "^3.0.3", - "@smithy/util-base64": "^3.0.0", - "@smithy/util-body-length-browser": "^3.0.0", - "@smithy/util-body-length-node": "^3.0.0", - "@smithy/util-defaults-mode-browser": "^3.0.14", - "@smithy/util-defaults-mode-node": "^3.0.14", - "@smithy/util-endpoints": "^2.0.5", - "@smithy/util-middleware": "^3.0.3", - "@smithy/util-retry": "^3.0.3", - "@smithy/util-utf8": "^3.0.0", - "tslib": "^2.6.2" - }, - "engines": { - "node": ">=16.0.0" - } - }, - "../core/node_modules/@aws-sdk/client-sagemaker-runtime/node_modules/@aws-sdk/core": { - "version": "3.624.0", - "license": "Apache-2.0", - "dependencies": { - "@smithy/core": "^2.3.2", - "@smithy/node-config-provider": "^3.1.4", - "@smithy/protocol-http": "^4.1.0", - "@smithy/signature-v4": "^4.1.0", - "@smithy/smithy-client": "^3.1.12", - "@smithy/types": "^3.3.0", - "@smithy/util-middleware": "^3.0.3", - "fast-xml-parser": "4.4.1", - "tslib": "^2.6.2" - }, - "engines": { - "node": ">=16.0.0" - } - }, - "../core/node_modules/@aws-sdk/client-sagemaker-runtime/node_modules/@aws-sdk/credential-provider-http": { - "version": "3.622.0", - "license": "Apache-2.0", - "dependencies": { - "@aws-sdk/types": "3.609.0", - "@smithy/fetch-http-handler": "^3.2.4", - "@smithy/node-http-handler": "^3.1.4", - "@smithy/property-provider": "^3.1.3", - "@smithy/protocol-http": "^4.1.0", - "@smithy/smithy-client": "^3.1.12", - "@smithy/types": "^3.3.0", - "@smithy/util-stream": "^3.1.3", - "tslib": "^2.6.2" - }, - "engines": { - "node": ">=16.0.0" - } - }, - "../core/node_modules/@aws-sdk/client-sagemaker-runtime/node_modules/@aws-sdk/credential-provider-ini": { - "version": "3.624.0", - "license": "Apache-2.0", - "dependencies": { - "@aws-sdk/credential-provider-env": "3.620.1", - "@aws-sdk/credential-provider-http": "3.622.0", - "@aws-sdk/credential-provider-process": "3.620.1", - "@aws-sdk/credential-provider-sso": "3.624.0", - "@aws-sdk/credential-provider-web-identity": "3.621.0", - "@aws-sdk/types": "3.609.0", - "@smithy/credential-provider-imds": "^3.2.0", - "@smithy/property-provider": "^3.1.3", - "@smithy/shared-ini-file-loader": "^3.1.4", - "@smithy/types": "^3.3.0", - "tslib": "^2.6.2" - }, - "engines": { - "node": ">=16.0.0" - }, - "peerDependencies": { - "@aws-sdk/client-sts": "^3.624.0" - } - }, - "../core/node_modules/@aws-sdk/client-sagemaker-runtime/node_modules/@aws-sdk/credential-provider-node": { - "version": "3.624.0", - "license": "Apache-2.0", - "dependencies": { - "@aws-sdk/credential-provider-env": "3.620.1", - "@aws-sdk/credential-provider-http": "3.622.0", - "@aws-sdk/credential-provider-ini": "3.624.0", - "@aws-sdk/credential-provider-process": "3.620.1", - "@aws-sdk/credential-provider-sso": "3.624.0", - "@aws-sdk/credential-provider-web-identity": "3.621.0", - "@aws-sdk/types": "3.609.0", - "@smithy/credential-provider-imds": "^3.2.0", - "@smithy/property-provider": "^3.1.3", - "@smithy/shared-ini-file-loader": "^3.1.4", - "@smithy/types": "^3.3.0", - "tslib": "^2.6.2" - }, - "engines": { - "node": ">=16.0.0" - } - }, - "../core/node_modules/@aws-sdk/client-sagemaker-runtime/node_modules/@aws-sdk/credential-provider-sso": { - "version": "3.624.0", - "license": "Apache-2.0", - "dependencies": { - "@aws-sdk/client-sso": "3.624.0", - "@aws-sdk/token-providers": "3.614.0", - "@aws-sdk/types": "3.609.0", - "@smithy/property-provider": "^3.1.3", - "@smithy/shared-ini-file-loader": "^3.1.4", - "@smithy/types": "^3.3.0", - "tslib": "^2.6.2" - }, - "engines": { - "node": ">=16.0.0" - } - }, - "../core/node_modules/@aws-sdk/client-sagemaker-runtime/node_modules/@aws-sdk/credential-provider-web-identity": { - "version": "3.621.0", - "license": "Apache-2.0", - "dependencies": { - "@aws-sdk/types": "3.609.0", - "@smithy/property-provider": "^3.1.3", - "@smithy/types": "^3.3.0", - "tslib": "^2.6.2" - }, - "engines": { - "node": ">=16.0.0" - }, - "peerDependencies": { - "@aws-sdk/client-sts": "^3.621.0" - } - }, - "../core/node_modules/@aws-sdk/client-sagemaker-runtime/node_modules/fast-xml-parser": { - "version": "4.4.1", - "funding": [ - { - "type": "github", - "url": "https://github.com/sponsors/NaturalIntelligence" - }, - { - "type": "paypal", - "url": "https://paypal.me/naturalintelligence" - } - ], - "license": "MIT", - "dependencies": { - "strnum": "^1.0.5" - }, - "bin": { - "fxparser": "src/cli/cli.js" - } - }, - "../core/node_modules/@aws-sdk/client-sso": { - "version": "3.620.1", - "license": "Apache-2.0", - "dependencies": { - "@aws-crypto/sha256-browser": "5.2.0", - "@aws-crypto/sha256-js": "5.2.0", - "@aws-sdk/core": "3.620.1", - "@aws-sdk/middleware-host-header": "3.620.0", - "@aws-sdk/middleware-logger": "3.609.0", - "@aws-sdk/middleware-recursion-detection": "3.620.0", - "@aws-sdk/middleware-user-agent": "3.620.0", - "@aws-sdk/region-config-resolver": "3.614.0", - "@aws-sdk/types": "3.609.0", - "@aws-sdk/util-endpoints": "3.614.0", - "@aws-sdk/util-user-agent-browser": "3.609.0", - "@aws-sdk/util-user-agent-node": "3.614.0", - "@smithy/config-resolver": "^3.0.5", - "@smithy/core": "^2.3.0", - "@smithy/fetch-http-handler": "^3.2.3", - "@smithy/hash-node": "^3.0.3", - "@smithy/invalid-dependency": "^3.0.3", - "@smithy/middleware-content-length": "^3.0.5", - "@smithy/middleware-endpoint": "^3.1.0", - "@smithy/middleware-retry": "^3.0.12", - "@smithy/middleware-serde": "^3.0.3", - "@smithy/middleware-stack": "^3.0.3", - "@smithy/node-config-provider": "^3.1.4", - "@smithy/node-http-handler": "^3.1.4", - "@smithy/protocol-http": "^4.1.0", - "@smithy/smithy-client": "^3.1.10", - "@smithy/types": "^3.3.0", - "@smithy/url-parser": "^3.0.3", - "@smithy/util-base64": "^3.0.0", - "@smithy/util-body-length-browser": "^3.0.0", - "@smithy/util-body-length-node": "^3.0.0", - "@smithy/util-defaults-mode-browser": "^3.0.12", - "@smithy/util-defaults-mode-node": "^3.0.12", - "@smithy/util-endpoints": "^2.0.5", - "@smithy/util-middleware": "^3.0.3", - "@smithy/util-retry": "^3.0.3", - "@smithy/util-utf8": "^3.0.0", - "tslib": "^2.6.2" - }, - "engines": { - "node": ">=16.0.0" - } - }, - "../core/node_modules/@aws-sdk/client-sso-oidc": { - "version": "3.620.1", - "license": "Apache-2.0", - "dependencies": { - "@aws-crypto/sha256-browser": "5.2.0", - "@aws-crypto/sha256-js": "5.2.0", - "@aws-sdk/core": "3.620.1", - "@aws-sdk/credential-provider-node": "3.620.1", - "@aws-sdk/middleware-host-header": "3.620.0", - "@aws-sdk/middleware-logger": "3.609.0", - "@aws-sdk/middleware-recursion-detection": "3.620.0", - "@aws-sdk/middleware-user-agent": "3.620.0", - "@aws-sdk/region-config-resolver": "3.614.0", - "@aws-sdk/types": "3.609.0", - "@aws-sdk/util-endpoints": "3.614.0", - "@aws-sdk/util-user-agent-browser": "3.609.0", - "@aws-sdk/util-user-agent-node": "3.614.0", - "@smithy/config-resolver": "^3.0.5", - "@smithy/core": "^2.3.0", - "@smithy/fetch-http-handler": "^3.2.3", - "@smithy/hash-node": "^3.0.3", - "@smithy/invalid-dependency": "^3.0.3", - "@smithy/middleware-content-length": "^3.0.5", - "@smithy/middleware-endpoint": "^3.1.0", - "@smithy/middleware-retry": "^3.0.12", - "@smithy/middleware-serde": "^3.0.3", - "@smithy/middleware-stack": "^3.0.3", - "@smithy/node-config-provider": "^3.1.4", - "@smithy/node-http-handler": "^3.1.4", - "@smithy/protocol-http": "^4.1.0", - "@smithy/smithy-client": "^3.1.10", - "@smithy/types": "^3.3.0", - "@smithy/url-parser": "^3.0.3", - "@smithy/util-base64": "^3.0.0", - "@smithy/util-body-length-browser": "^3.0.0", - "@smithy/util-body-length-node": "^3.0.0", - "@smithy/util-defaults-mode-browser": "^3.0.12", - "@smithy/util-defaults-mode-node": "^3.0.12", - "@smithy/util-endpoints": "^2.0.5", - "@smithy/util-middleware": "^3.0.3", - "@smithy/util-retry": "^3.0.3", - "@smithy/util-utf8": "^3.0.0", - "tslib": "^2.6.2" - }, - "engines": { - "node": ">=16.0.0" - }, - "peerDependencies": { - "@aws-sdk/client-sts": "^3.620.1" - } - }, - "../core/node_modules/@aws-sdk/client-sts": { - "version": "3.620.1", - "license": "Apache-2.0", - "dependencies": { - "@aws-crypto/sha256-browser": "5.2.0", - "@aws-crypto/sha256-js": "5.2.0", - "@aws-sdk/client-sso-oidc": "3.620.1", - "@aws-sdk/core": "3.620.1", - "@aws-sdk/credential-provider-node": "3.620.1", - "@aws-sdk/middleware-host-header": "3.620.0", - "@aws-sdk/middleware-logger": "3.609.0", - "@aws-sdk/middleware-recursion-detection": "3.620.0", - "@aws-sdk/middleware-user-agent": "3.620.0", - "@aws-sdk/region-config-resolver": "3.614.0", - "@aws-sdk/types": "3.609.0", - "@aws-sdk/util-endpoints": "3.614.0", - "@aws-sdk/util-user-agent-browser": "3.609.0", - "@aws-sdk/util-user-agent-node": "3.614.0", - "@smithy/config-resolver": "^3.0.5", - "@smithy/core": "^2.3.0", - "@smithy/fetch-http-handler": "^3.2.3", - "@smithy/hash-node": "^3.0.3", - "@smithy/invalid-dependency": "^3.0.3", - "@smithy/middleware-content-length": "^3.0.5", - "@smithy/middleware-endpoint": "^3.1.0", - "@smithy/middleware-retry": "^3.0.12", - "@smithy/middleware-serde": "^3.0.3", - "@smithy/middleware-stack": "^3.0.3", - "@smithy/node-config-provider": "^3.1.4", - "@smithy/node-http-handler": "^3.1.4", - "@smithy/protocol-http": "^4.1.0", - "@smithy/smithy-client": "^3.1.10", - "@smithy/types": "^3.3.0", - "@smithy/url-parser": "^3.0.3", - "@smithy/util-base64": "^3.0.0", - "@smithy/util-body-length-browser": "^3.0.0", - "@smithy/util-body-length-node": "^3.0.0", - "@smithy/util-defaults-mode-browser": "^3.0.12", - "@smithy/util-defaults-mode-node": "^3.0.12", - "@smithy/util-endpoints": "^2.0.5", - "@smithy/util-middleware": "^3.0.3", - "@smithy/util-retry": "^3.0.3", - "@smithy/util-utf8": "^3.0.0", - "tslib": "^2.6.2" - }, - "engines": { - "node": ">=16.0.0" - } - }, - "../core/node_modules/@aws-sdk/core": { - "version": "3.620.1", - "license": "Apache-2.0", - "dependencies": { - "@smithy/core": "^2.3.0", - "@smithy/node-config-provider": "^3.1.4", - "@smithy/protocol-http": "^4.1.0", - "@smithy/signature-v4": "^4.1.0", - "@smithy/smithy-client": "^3.1.10", - "@smithy/types": "^3.3.0", - "@smithy/util-middleware": "^3.0.3", - "fast-xml-parser": "4.2.5", - "tslib": "^2.6.2" - }, - "engines": { - "node": ">=16.0.0" - } - }, - "../core/node_modules/@aws-sdk/credential-provider-cognito-identity": { - "version": "3.620.1", - "license": "Apache-2.0", - "dependencies": { - "@aws-sdk/client-cognito-identity": "3.620.1", - "@aws-sdk/types": "3.609.0", - "@smithy/property-provider": "^3.1.3", - "@smithy/types": "^3.3.0", - "tslib": "^2.6.2" - }, - "engines": { - "node": ">=16.0.0" - } - }, - "../core/node_modules/@aws-sdk/credential-provider-env": { - "version": "3.620.1", - "license": "Apache-2.0", - "dependencies": { - "@aws-sdk/types": "3.609.0", - "@smithy/property-provider": "^3.1.3", - "@smithy/types": "^3.3.0", - "tslib": "^2.6.2" - }, - "engines": { - "node": ">=16.0.0" - } - }, - "../core/node_modules/@aws-sdk/credential-provider-http": { - "version": "3.620.0", - "license": "Apache-2.0", - "dependencies": { - "@aws-sdk/types": "3.609.0", - "@smithy/fetch-http-handler": "^3.2.3", - "@smithy/node-http-handler": "^3.1.4", - "@smithy/property-provider": "^3.1.3", - "@smithy/protocol-http": "^4.1.0", - "@smithy/smithy-client": "^3.1.10", - "@smithy/types": "^3.3.0", - "@smithy/util-stream": "^3.1.2", - "tslib": "^2.6.2" - }, - "engines": { - "node": ">=16.0.0" - } - }, - "../core/node_modules/@aws-sdk/credential-provider-ini": { - "version": "3.620.1", - "license": "Apache-2.0", - "dependencies": { - "@aws-sdk/credential-provider-env": "3.620.1", - "@aws-sdk/credential-provider-http": "3.620.0", - "@aws-sdk/credential-provider-process": "3.620.1", - "@aws-sdk/credential-provider-sso": "3.620.1", - "@aws-sdk/credential-provider-web-identity": "3.609.0", - "@aws-sdk/types": "3.609.0", - "@smithy/credential-provider-imds": "^3.2.0", - "@smithy/property-provider": "^3.1.3", - "@smithy/shared-ini-file-loader": "^3.1.4", - "@smithy/types": "^3.3.0", - "tslib": "^2.6.2" - }, - "engines": { - "node": ">=16.0.0" - }, - "peerDependencies": { - "@aws-sdk/client-sts": "^3.620.1" - } - }, - "../core/node_modules/@aws-sdk/credential-provider-node": { - "version": "3.620.1", - "license": "Apache-2.0", - "dependencies": { - "@aws-sdk/credential-provider-env": "3.620.1", - "@aws-sdk/credential-provider-http": "3.620.0", - "@aws-sdk/credential-provider-ini": "3.620.1", - "@aws-sdk/credential-provider-process": "3.620.1", - "@aws-sdk/credential-provider-sso": "3.620.1", - "@aws-sdk/credential-provider-web-identity": "3.609.0", - "@aws-sdk/types": "3.609.0", - "@smithy/credential-provider-imds": "^3.2.0", - "@smithy/property-provider": "^3.1.3", - "@smithy/shared-ini-file-loader": "^3.1.4", - "@smithy/types": "^3.3.0", - "tslib": "^2.6.2" - }, - "engines": { - "node": ">=16.0.0" - } - }, - "../core/node_modules/@aws-sdk/credential-provider-process": { - "version": "3.620.1", - "license": "Apache-2.0", - "dependencies": { - "@aws-sdk/types": "3.609.0", - "@smithy/property-provider": "^3.1.3", - "@smithy/shared-ini-file-loader": "^3.1.4", - "@smithy/types": "^3.3.0", - "tslib": "^2.6.2" - }, - "engines": { - "node": ">=16.0.0" - } - }, - "../core/node_modules/@aws-sdk/credential-provider-sso": { - "version": "3.620.1", - "license": "Apache-2.0", - "dependencies": { - "@aws-sdk/client-sso": "3.620.1", - "@aws-sdk/token-providers": "3.614.0", - "@aws-sdk/types": "3.609.0", - "@smithy/property-provider": "^3.1.3", - "@smithy/shared-ini-file-loader": "^3.1.4", - "@smithy/types": "^3.3.0", - "tslib": "^2.6.2" - }, - "engines": { - "node": ">=16.0.0" - } - }, - "../core/node_modules/@aws-sdk/credential-provider-web-identity": { - "version": "3.609.0", - "license": "Apache-2.0", - "dependencies": { - "@aws-sdk/types": "3.609.0", - "@smithy/property-provider": "^3.1.3", - "@smithy/types": "^3.3.0", - "tslib": "^2.6.2" - }, - "engines": { - "node": ">=16.0.0" - }, - "peerDependencies": { - "@aws-sdk/client-sts": "^3.609.0" - } - }, - "../core/node_modules/@aws-sdk/credential-providers": { - "version": "3.620.1", - "license": "Apache-2.0", - "dependencies": { - "@aws-sdk/client-cognito-identity": "3.620.1", - "@aws-sdk/client-sso": "3.620.1", - "@aws-sdk/client-sts": "3.620.1", - "@aws-sdk/credential-provider-cognito-identity": "3.620.1", - "@aws-sdk/credential-provider-env": "3.620.1", - "@aws-sdk/credential-provider-http": "3.620.0", - "@aws-sdk/credential-provider-ini": "3.620.1", - "@aws-sdk/credential-provider-node": "3.620.1", - "@aws-sdk/credential-provider-process": "3.620.1", - "@aws-sdk/credential-provider-sso": "3.620.1", - "@aws-sdk/credential-provider-web-identity": "3.609.0", - "@aws-sdk/types": "3.609.0", - "@smithy/credential-provider-imds": "^3.2.0", - "@smithy/property-provider": "^3.1.3", - "@smithy/types": "^3.3.0", - "tslib": "^2.6.2" - }, - "engines": { - "node": ">=16.0.0" - } - }, - "../core/node_modules/@aws-sdk/middleware-host-header": { - "version": "3.620.0", - "license": "Apache-2.0", - "dependencies": { - "@aws-sdk/types": "3.609.0", - "@smithy/protocol-http": "^4.1.0", - "@smithy/types": "^3.3.0", - "tslib": "^2.6.2" - }, - "engines": { - "node": ">=16.0.0" - } - }, - "../core/node_modules/@aws-sdk/middleware-logger": { - "version": "3.609.0", - "license": "Apache-2.0", - "dependencies": { - "@aws-sdk/types": "3.609.0", - "@smithy/types": "^3.3.0", - "tslib": "^2.6.2" - }, - "engines": { - "node": ">=16.0.0" - } - }, - "../core/node_modules/@aws-sdk/middleware-recursion-detection": { - "version": "3.620.0", - "license": "Apache-2.0", - "dependencies": { - "@aws-sdk/types": "3.609.0", - "@smithy/protocol-http": "^4.1.0", - "@smithy/types": "^3.3.0", - "tslib": "^2.6.2" - }, - "engines": { - "node": ">=16.0.0" - } - }, - "../core/node_modules/@aws-sdk/middleware-user-agent": { - "version": "3.620.0", - "license": "Apache-2.0", - "dependencies": { - "@aws-sdk/types": "3.609.0", - "@aws-sdk/util-endpoints": "3.614.0", - "@smithy/protocol-http": "^4.1.0", - "@smithy/types": "^3.3.0", - "tslib": "^2.6.2" - }, - "engines": { - "node": ">=16.0.0" - } - }, - "../core/node_modules/@aws-sdk/region-config-resolver": { - "version": "3.614.0", - "license": "Apache-2.0", - "dependencies": { - "@aws-sdk/types": "3.609.0", - "@smithy/node-config-provider": "^3.1.4", - "@smithy/types": "^3.3.0", - "@smithy/util-config-provider": "^3.0.0", - "@smithy/util-middleware": "^3.0.3", - "tslib": "^2.6.2" - }, - "engines": { - "node": ">=16.0.0" - } - }, - "../core/node_modules/@aws-sdk/token-providers": { - "version": "3.614.0", - "license": "Apache-2.0", - "dependencies": { - "@aws-sdk/types": "3.609.0", - "@smithy/property-provider": "^3.1.3", - "@smithy/shared-ini-file-loader": "^3.1.4", - "@smithy/types": "^3.3.0", - "tslib": "^2.6.2" - }, - "engines": { - "node": ">=16.0.0" - }, - "peerDependencies": { - "@aws-sdk/client-sso-oidc": "^3.614.0" - } - }, - "../core/node_modules/@aws-sdk/types": { - "version": "3.609.0", - "license": "Apache-2.0", - "dependencies": { - "@smithy/types": "^3.3.0", - "tslib": "^2.6.2" - }, - "engines": { - "node": ">=16.0.0" - } - }, - "../core/node_modules/@aws-sdk/util-endpoints": { - "version": "3.614.0", - "license": "Apache-2.0", - "dependencies": { - "@aws-sdk/types": "3.609.0", - "@smithy/types": "^3.3.0", - "@smithy/util-endpoints": "^2.0.5", - "tslib": "^2.6.2" - }, - "engines": { - "node": ">=16.0.0" - } - }, - "../core/node_modules/@aws-sdk/util-locate-window": { - "version": "3.568.0", - "license": "Apache-2.0", - "dependencies": { - "tslib": "^2.6.2" - }, - "engines": { - "node": ">=16.0.0" - } - }, - "../core/node_modules/@aws-sdk/util-user-agent-browser": { - "version": "3.609.0", - "license": "Apache-2.0", - "dependencies": { - "@aws-sdk/types": "3.609.0", - "@smithy/types": "^3.3.0", - "bowser": "^2.11.0", - "tslib": "^2.6.2" - } - }, - "../core/node_modules/@aws-sdk/util-user-agent-node": { - "version": "3.614.0", - "license": "Apache-2.0", - "dependencies": { - "@aws-sdk/types": "3.609.0", - "@smithy/node-config-provider": "^3.1.4", - "@smithy/types": "^3.3.0", - "tslib": "^2.6.2" - }, - "engines": { - "node": ">=16.0.0" - }, - "peerDependencies": { - "aws-crt": ">=1.0.0" - }, - "peerDependenciesMeta": { - "aws-crt": { - "optional": true - } - } - }, - "../core/node_modules/@babel/code-frame": { - "version": "7.24.7", - "license": "MIT", - "dependencies": { - "@babel/highlight": "^7.24.7", - "picocolors": "^1.0.0" - }, - "engines": { - "node": ">=6.9.0" - } - }, - "../core/node_modules/@babel/compat-data": { - "version": "7.24.7", - "dev": true, - "license": "MIT", - "engines": { - "node": ">=6.9.0" - } - }, - "../core/node_modules/@babel/core": { - "version": "7.24.5", - "dev": true, - "license": "MIT", - "dependencies": { - "@ampproject/remapping": "^2.2.0", - "@babel/code-frame": "^7.24.2", - "@babel/generator": "^7.24.5", - "@babel/helper-compilation-targets": "^7.23.6", - "@babel/helper-module-transforms": "^7.24.5", - "@babel/helpers": "^7.24.5", - "@babel/parser": "^7.24.5", - "@babel/template": "^7.24.0", - "@babel/traverse": "^7.24.5", - "@babel/types": "^7.24.5", - "convert-source-map": "^2.0.0", - "debug": "^4.1.0", - "gensync": "^1.0.0-beta.2", - "json5": "^2.2.3", - "semver": "^6.3.1" - }, - "engines": { - "node": ">=6.9.0" - }, - "funding": { - "type": "opencollective", - "url": "https://opencollective.com/babel" - } - }, - "../core/node_modules/@babel/core/node_modules/semver": { - "version": "6.3.1", - "dev": true, - "license": "ISC", - "bin": { - "semver": "bin/semver.js" - } - }, - "../core/node_modules/@babel/generator": { - "version": "7.24.7", - "dev": true, - "license": "MIT", - "dependencies": { - "@babel/types": "^7.24.7", - "@jridgewell/gen-mapping": "^0.3.5", - "@jridgewell/trace-mapping": "^0.3.25", - "jsesc": "^2.5.1" - }, - "engines": { - "node": ">=6.9.0" - } - }, - "../core/node_modules/@babel/helper-annotate-as-pure": { - "version": "7.24.7", - "dev": true, - "license": "MIT", - "dependencies": { - "@babel/types": "^7.24.7" - }, - "engines": { - "node": ">=6.9.0" - } - }, - "../core/node_modules/@babel/helper-builder-binary-assignment-operator-visitor": { - "version": "7.24.7", - "dev": true, - "license": "MIT", - "dependencies": { - "@babel/traverse": "^7.24.7", - "@babel/types": "^7.24.7" - }, - "engines": { - "node": ">=6.9.0" - } - }, - "../core/node_modules/@babel/helper-compilation-targets": { - "version": "7.24.7", - "dev": true, - "license": "MIT", - "dependencies": { - "@babel/compat-data": "^7.24.7", - "@babel/helper-validator-option": "^7.24.7", - "browserslist": "^4.22.2", - "lru-cache": "^5.1.1", - "semver": "^6.3.1" - }, - "engines": { - "node": ">=6.9.0" - } - }, - "../core/node_modules/@babel/helper-compilation-targets/node_modules/semver": { - "version": "6.3.1", - "dev": true, - "license": "ISC", - "bin": { - "semver": "bin/semver.js" - } - }, - "../core/node_modules/@babel/helper-create-class-features-plugin": { - "version": "7.24.7", - "dev": true, - "license": "MIT", - "dependencies": { - "@babel/helper-annotate-as-pure": "^7.24.7", - "@babel/helper-environment-visitor": "^7.24.7", - "@babel/helper-function-name": "^7.24.7", - "@babel/helper-member-expression-to-functions": "^7.24.7", - "@babel/helper-optimise-call-expression": "^7.24.7", - "@babel/helper-replace-supers": "^7.24.7", - "@babel/helper-skip-transparent-expression-wrappers": "^7.24.7", - "@babel/helper-split-export-declaration": "^7.24.7", - "semver": "^6.3.1" - }, - "engines": { - "node": ">=6.9.0" - }, - "peerDependencies": { - "@babel/core": "^7.0.0" - } - }, - "../core/node_modules/@babel/helper-create-class-features-plugin/node_modules/semver": { - "version": "6.3.1", - "dev": true, - "license": "ISC", - "bin": { - "semver": "bin/semver.js" - } - }, - "../core/node_modules/@babel/helper-create-regexp-features-plugin": { - "version": "7.24.7", - "dev": true, - "license": "MIT", - "dependencies": { - "@babel/helper-annotate-as-pure": "^7.24.7", - "regexpu-core": "^5.3.1", - "semver": "^6.3.1" - }, - "engines": { - "node": ">=6.9.0" - }, - "peerDependencies": { - "@babel/core": "^7.0.0" - } - }, - "../core/node_modules/@babel/helper-create-regexp-features-plugin/node_modules/semver": { - "version": "6.3.1", - "dev": true, - "license": "ISC", - "bin": { - "semver": "bin/semver.js" - } - }, - "../core/node_modules/@babel/helper-define-polyfill-provider": { - "version": "0.6.2", - "dev": true, - "license": "MIT", - "dependencies": { - "@babel/helper-compilation-targets": "^7.22.6", - "@babel/helper-plugin-utils": "^7.22.5", - "debug": "^4.1.1", - "lodash.debounce": "^4.0.8", - "resolve": "^1.14.2" - }, - "peerDependencies": { - "@babel/core": "^7.4.0 || ^8.0.0-0 <8.0.0" - } - }, - "../core/node_modules/@babel/helper-environment-visitor": { - "version": "7.24.7", - "dev": true, - "license": "MIT", - "dependencies": { - "@babel/types": "^7.24.7" - }, - "engines": { - "node": ">=6.9.0" - } - }, - "../core/node_modules/@babel/helper-function-name": { - "version": "7.24.7", - "dev": true, - "license": "MIT", - "dependencies": { - "@babel/template": "^7.24.7", - "@babel/types": "^7.24.7" - }, - "engines": { - "node": ">=6.9.0" - } - }, - "../core/node_modules/@babel/helper-hoist-variables": { - "version": "7.24.7", - "dev": true, - "license": "MIT", - "dependencies": { - "@babel/types": "^7.24.7" - }, - "engines": { - "node": ">=6.9.0" - } - }, - "../core/node_modules/@babel/helper-member-expression-to-functions": { - "version": "7.24.7", - "dev": true, - "license": "MIT", - "dependencies": { - "@babel/traverse": "^7.24.7", - "@babel/types": "^7.24.7" - }, - "engines": { - "node": ">=6.9.0" - } - }, - "../core/node_modules/@babel/helper-module-imports": { - "version": "7.24.7", - "dev": true, - "license": "MIT", - "dependencies": { - "@babel/traverse": "^7.24.7", - "@babel/types": "^7.24.7" - }, - "engines": { - "node": ">=6.9.0" - } - }, - "../core/node_modules/@babel/helper-module-transforms": { - "version": "7.24.7", - "dev": true, - "license": "MIT", - "dependencies": { - "@babel/helper-environment-visitor": "^7.24.7", - "@babel/helper-module-imports": "^7.24.7", - "@babel/helper-simple-access": "^7.24.7", - "@babel/helper-split-export-declaration": "^7.24.7", - "@babel/helper-validator-identifier": "^7.24.7" - }, - "engines": { - "node": ">=6.9.0" - }, - "peerDependencies": { - "@babel/core": "^7.0.0" - } - }, - "../core/node_modules/@babel/helper-optimise-call-expression": { - "version": "7.24.7", - "dev": true, - "license": "MIT", - "dependencies": { - "@babel/types": "^7.24.7" - }, - "engines": { - "node": ">=6.9.0" - } - }, - "../core/node_modules/@babel/helper-plugin-utils": { - "version": "7.24.7", - "dev": true, - "license": "MIT", - "engines": { - "node": ">=6.9.0" - } - }, - "../core/node_modules/@babel/helper-remap-async-to-generator": { - "version": "7.24.7", - "dev": true, - "license": "MIT", - "dependencies": { - "@babel/helper-annotate-as-pure": "^7.24.7", - "@babel/helper-environment-visitor": "^7.24.7", - "@babel/helper-wrap-function": "^7.24.7" - }, - "engines": { - "node": ">=6.9.0" - }, - "peerDependencies": { - "@babel/core": "^7.0.0" - } - }, - "../core/node_modules/@babel/helper-replace-supers": { - "version": "7.24.7", - "dev": true, - "license": "MIT", - "dependencies": { - "@babel/helper-environment-visitor": "^7.24.7", - "@babel/helper-member-expression-to-functions": "^7.24.7", - "@babel/helper-optimise-call-expression": "^7.24.7" - }, - "engines": { - "node": ">=6.9.0" - }, - "peerDependencies": { - "@babel/core": "^7.0.0" - } - }, - "../core/node_modules/@babel/helper-simple-access": { - "version": "7.24.7", - "dev": true, - "license": "MIT", - "dependencies": { - "@babel/traverse": "^7.24.7", - "@babel/types": "^7.24.7" - }, - "engines": { - "node": ">=6.9.0" - } - }, - "../core/node_modules/@babel/helper-skip-transparent-expression-wrappers": { - "version": "7.24.7", - "dev": true, - "license": "MIT", - "dependencies": { - "@babel/traverse": "^7.24.7", - "@babel/types": "^7.24.7" - }, - "engines": { - "node": ">=6.9.0" - } - }, - "../core/node_modules/@babel/helper-split-export-declaration": { - "version": "7.24.7", - "dev": true, - "license": "MIT", - "dependencies": { - "@babel/types": "^7.24.7" - }, - "engines": { - "node": ">=6.9.0" - } - }, - "../core/node_modules/@babel/helper-string-parser": { - "version": "7.24.7", - "dev": true, - "license": "MIT", - "engines": { - "node": ">=6.9.0" - } - }, - "../core/node_modules/@babel/helper-validator-identifier": { - "version": "7.24.7", - "license": "MIT", - "engines": { - "node": ">=6.9.0" - } - }, - "../core/node_modules/@babel/helper-validator-option": { - "version": "7.24.7", - "dev": true, - "license": "MIT", - "engines": { - "node": ">=6.9.0" - } - }, - "../core/node_modules/@babel/helper-wrap-function": { - "version": "7.24.7", - "dev": true, - "license": "MIT", - "dependencies": { - "@babel/helper-function-name": "^7.24.7", - "@babel/template": "^7.24.7", - "@babel/traverse": "^7.24.7", - "@babel/types": "^7.24.7" - }, - "engines": { - "node": ">=6.9.0" - } - }, - "../core/node_modules/@babel/helpers": { - "version": "7.24.5", - "dev": true, - "license": "MIT", - "dependencies": { - "@babel/template": "^7.24.0", - "@babel/traverse": "^7.24.5", - "@babel/types": "^7.24.5" - }, - "engines": { - "node": ">=6.9.0" - } - }, - "../core/node_modules/@babel/highlight": { - "version": "7.24.7", - "license": "MIT", - "dependencies": { - "@babel/helper-validator-identifier": "^7.24.7", - "chalk": "^2.4.2", - "js-tokens": "^4.0.0", - "picocolors": "^1.0.0" - }, - "engines": { - "node": ">=6.9.0" - } - }, - "../core/node_modules/@babel/highlight/node_modules/ansi-styles": { - "version": "3.2.1", - "license": "MIT", - "dependencies": { - "color-convert": "^1.9.0" - }, - "engines": { - "node": ">=4" - } - }, - "../core/node_modules/@babel/highlight/node_modules/chalk": { - "version": "2.4.2", - "license": "MIT", - "dependencies": { - "ansi-styles": "^3.2.1", - "escape-string-regexp": "^1.0.5", - "supports-color": "^5.3.0" - }, - "engines": { - "node": ">=4" - } - }, - "../core/node_modules/@babel/highlight/node_modules/color-convert": { - "version": "1.9.3", - "license": "MIT", - "dependencies": { - "color-name": "1.1.3" - } - }, - "../core/node_modules/@babel/highlight/node_modules/color-name": { - "version": "1.1.3", - "license": "MIT" - }, - "../core/node_modules/@babel/highlight/node_modules/escape-string-regexp": { - "version": "1.0.5", - "license": "MIT", - "engines": { - "node": ">=0.8.0" - } - }, - "../core/node_modules/@babel/highlight/node_modules/has-flag": { - "version": "3.0.0", - "license": "MIT", - "engines": { - "node": ">=4" - } - }, - "../core/node_modules/@babel/highlight/node_modules/supports-color": { - "version": "5.5.0", - "license": "MIT", - "dependencies": { - "has-flag": "^3.0.0" - }, - "engines": { - "node": ">=4" - } - }, - "../core/node_modules/@babel/parser": { - "version": "7.24.7", - "dev": true, - "license": "MIT", - "bin": { - "parser": "bin/babel-parser.js" - }, - "engines": { - "node": ">=6.0.0" - } - }, - "../core/node_modules/@babel/plugin-bugfix-firefox-class-in-computed-class-key": { - "version": "7.24.7", - "dev": true, - "license": "MIT", - "dependencies": { - "@babel/helper-environment-visitor": "^7.24.7", - "@babel/helper-plugin-utils": "^7.24.7" - }, - "engines": { - "node": ">=6.9.0" - }, - "peerDependencies": { - "@babel/core": "^7.0.0" - } - }, - "../core/node_modules/@babel/plugin-bugfix-safari-id-destructuring-collision-in-function-expression": { - "version": "7.24.7", - "dev": true, - "license": "MIT", - "dependencies": { - "@babel/helper-plugin-utils": "^7.24.7" - }, - "engines": { - "node": ">=6.9.0" - }, - "peerDependencies": { - "@babel/core": "^7.0.0" - } - }, - "../core/node_modules/@babel/plugin-bugfix-v8-spread-parameters-in-optional-chaining": { - "version": "7.24.7", - "dev": true, - "license": "MIT", - "dependencies": { - "@babel/helper-plugin-utils": "^7.24.7", - "@babel/helper-skip-transparent-expression-wrappers": "^7.24.7", - "@babel/plugin-transform-optional-chaining": "^7.24.7" - }, - "engines": { - "node": ">=6.9.0" - }, - "peerDependencies": { - "@babel/core": "^7.13.0" - } - }, - "../core/node_modules/@babel/plugin-bugfix-v8-static-class-fields-redefine-readonly": { - "version": "7.24.7", - "dev": true, - "license": "MIT", - "dependencies": { - "@babel/helper-environment-visitor": "^7.24.7", - "@babel/helper-plugin-utils": "^7.24.7" - }, - "engines": { - "node": ">=6.9.0" - }, - "peerDependencies": { - "@babel/core": "^7.0.0" - } - }, - "../core/node_modules/@babel/plugin-proposal-private-property-in-object": { - "version": "7.21.0-placeholder-for-preset-env.2", - "dev": true, - "license": "MIT", - "engines": { - "node": ">=6.9.0" - }, - "peerDependencies": { - "@babel/core": "^7.0.0-0" - } - }, - "../core/node_modules/@babel/plugin-syntax-async-generators": { - "version": "7.8.4", - "dev": true, - "license": "MIT", - "dependencies": { - "@babel/helper-plugin-utils": "^7.8.0" - }, - "peerDependencies": { - "@babel/core": "^7.0.0-0" - } - }, - "../core/node_modules/@babel/plugin-syntax-bigint": { - "version": "7.8.3", - "dev": true, - "license": "MIT", - "dependencies": { - "@babel/helper-plugin-utils": "^7.8.0" - }, - "peerDependencies": { - "@babel/core": "^7.0.0-0" - } - }, - "../core/node_modules/@babel/plugin-syntax-class-properties": { - "version": "7.12.13", - "dev": true, - "license": "MIT", - "dependencies": { - "@babel/helper-plugin-utils": "^7.12.13" - }, - "peerDependencies": { - "@babel/core": "^7.0.0-0" - } - }, - "../core/node_modules/@babel/plugin-syntax-class-static-block": { - "version": "7.14.5", - "dev": true, - "license": "MIT", - "dependencies": { - "@babel/helper-plugin-utils": "^7.14.5" - }, - "engines": { - "node": ">=6.9.0" - }, - "peerDependencies": { - "@babel/core": "^7.0.0-0" - } - }, - "../core/node_modules/@babel/plugin-syntax-dynamic-import": { - "version": "7.8.3", - "dev": true, - "license": "MIT", - "dependencies": { - "@babel/helper-plugin-utils": "^7.8.0" - }, - "peerDependencies": { - "@babel/core": "^7.0.0-0" - } - }, - "../core/node_modules/@babel/plugin-syntax-export-namespace-from": { - "version": "7.8.3", - "dev": true, - "license": "MIT", - "dependencies": { - "@babel/helper-plugin-utils": "^7.8.3" - }, - "peerDependencies": { - "@babel/core": "^7.0.0-0" - } - }, - "../core/node_modules/@babel/plugin-syntax-import-assertions": { - "version": "7.24.7", - "dev": true, - "license": "MIT", - "dependencies": { - "@babel/helper-plugin-utils": "^7.24.7" - }, - "engines": { - "node": ">=6.9.0" - }, - "peerDependencies": { - "@babel/core": "^7.0.0-0" - } - }, - "../core/node_modules/@babel/plugin-syntax-import-attributes": { - "version": "7.24.7", - "dev": true, - "license": "MIT", - "dependencies": { - "@babel/helper-plugin-utils": "^7.24.7" - }, - "engines": { - "node": ">=6.9.0" - }, - "peerDependencies": { - "@babel/core": "^7.0.0-0" - } - }, - "../core/node_modules/@babel/plugin-syntax-import-meta": { - "version": "7.10.4", - "dev": true, - "license": "MIT", - "dependencies": { - "@babel/helper-plugin-utils": "^7.10.4" - }, - "peerDependencies": { - "@babel/core": "^7.0.0-0" - } - }, - "../core/node_modules/@babel/plugin-syntax-json-strings": { - "version": "7.8.3", - "dev": true, - "license": "MIT", - "dependencies": { - "@babel/helper-plugin-utils": "^7.8.0" - }, - "peerDependencies": { - "@babel/core": "^7.0.0-0" - } - }, - "../core/node_modules/@babel/plugin-syntax-jsx": { - "version": "7.24.1", - "dev": true, - "license": "MIT", - "dependencies": { - "@babel/helper-plugin-utils": "^7.24.0" - }, - "engines": { - "node": ">=6.9.0" - }, - "peerDependencies": { - "@babel/core": "^7.0.0-0" - } - }, - "../core/node_modules/@babel/plugin-syntax-logical-assignment-operators": { - "version": "7.10.4", - "dev": true, - "license": "MIT", - "dependencies": { - "@babel/helper-plugin-utils": "^7.10.4" - }, - "peerDependencies": { - "@babel/core": "^7.0.0-0" - } - }, - "../core/node_modules/@babel/plugin-syntax-nullish-coalescing-operator": { - "version": "7.8.3", - "dev": true, - "license": "MIT", - "dependencies": { - "@babel/helper-plugin-utils": "^7.8.0" - }, - "peerDependencies": { - "@babel/core": "^7.0.0-0" - } - }, - "../core/node_modules/@babel/plugin-syntax-numeric-separator": { - "version": "7.10.4", - "dev": true, - "license": "MIT", - "dependencies": { - "@babel/helper-plugin-utils": "^7.10.4" - }, - "peerDependencies": { - "@babel/core": "^7.0.0-0" - } - }, - "../core/node_modules/@babel/plugin-syntax-object-rest-spread": { - "version": "7.8.3", - "dev": true, - "license": "MIT", - "dependencies": { - "@babel/helper-plugin-utils": "^7.8.0" - }, - "peerDependencies": { - "@babel/core": "^7.0.0-0" - } - }, - "../core/node_modules/@babel/plugin-syntax-optional-catch-binding": { - "version": "7.8.3", - "dev": true, - "license": "MIT", - "dependencies": { - "@babel/helper-plugin-utils": "^7.8.0" - }, - "peerDependencies": { - "@babel/core": "^7.0.0-0" - } - }, - "../core/node_modules/@babel/plugin-syntax-optional-chaining": { - "version": "7.8.3", - "dev": true, - "license": "MIT", - "dependencies": { - "@babel/helper-plugin-utils": "^7.8.0" - }, - "peerDependencies": { - "@babel/core": "^7.0.0-0" - } - }, - "../core/node_modules/@babel/plugin-syntax-private-property-in-object": { - "version": "7.14.5", - "dev": true, - "license": "MIT", - "dependencies": { - "@babel/helper-plugin-utils": "^7.14.5" - }, - "engines": { - "node": ">=6.9.0" - }, - "peerDependencies": { - "@babel/core": "^7.0.0-0" - } - }, - "../core/node_modules/@babel/plugin-syntax-top-level-await": { - "version": "7.14.5", - "dev": true, - "license": "MIT", - "dependencies": { - "@babel/helper-plugin-utils": "^7.14.5" - }, - "engines": { - "node": ">=6.9.0" - }, - "peerDependencies": { - "@babel/core": "^7.0.0-0" - } - }, - "../core/node_modules/@babel/plugin-syntax-typescript": { - "version": "7.24.1", - "dev": true, - "license": "MIT", - "dependencies": { - "@babel/helper-plugin-utils": "^7.24.0" - }, - "engines": { - "node": ">=6.9.0" - }, - "peerDependencies": { - "@babel/core": "^7.0.0-0" - } - }, - "../core/node_modules/@babel/plugin-syntax-unicode-sets-regex": { - "version": "7.18.6", - "dev": true, - "license": "MIT", - "dependencies": { - "@babel/helper-create-regexp-features-plugin": "^7.18.6", - "@babel/helper-plugin-utils": "^7.18.6" - }, - "engines": { - "node": ">=6.9.0" - }, - "peerDependencies": { - "@babel/core": "^7.0.0" - } - }, - "../core/node_modules/@babel/plugin-transform-arrow-functions": { - "version": "7.24.7", - "dev": true, - "license": "MIT", - "dependencies": { - "@babel/helper-plugin-utils": "^7.24.7" - }, - "engines": { - "node": ">=6.9.0" - }, - "peerDependencies": { - "@babel/core": "^7.0.0-0" - } - }, - "../core/node_modules/@babel/plugin-transform-async-generator-functions": { - "version": "7.24.7", - "dev": true, - "license": "MIT", - "dependencies": { - "@babel/helper-environment-visitor": "^7.24.7", - "@babel/helper-plugin-utils": "^7.24.7", - "@babel/helper-remap-async-to-generator": "^7.24.7", - "@babel/plugin-syntax-async-generators": "^7.8.4" - }, - "engines": { - "node": ">=6.9.0" - }, - "peerDependencies": { - "@babel/core": "^7.0.0-0" - } - }, - "../core/node_modules/@babel/plugin-transform-async-to-generator": { - "version": "7.24.7", - "dev": true, - "license": "MIT", - "dependencies": { - "@babel/helper-module-imports": "^7.24.7", - "@babel/helper-plugin-utils": "^7.24.7", - "@babel/helper-remap-async-to-generator": "^7.24.7" - }, - "engines": { - "node": ">=6.9.0" - }, - "peerDependencies": { - "@babel/core": "^7.0.0-0" - } - }, - "../core/node_modules/@babel/plugin-transform-block-scoped-functions": { - "version": "7.24.7", - "dev": true, - "license": "MIT", - "dependencies": { - "@babel/helper-plugin-utils": "^7.24.7" - }, - "engines": { - "node": ">=6.9.0" - }, - "peerDependencies": { - "@babel/core": "^7.0.0-0" - } - }, - "../core/node_modules/@babel/plugin-transform-block-scoping": { - "version": "7.24.7", - "dev": true, - "license": "MIT", - "dependencies": { - "@babel/helper-plugin-utils": "^7.24.7" - }, - "engines": { - "node": ">=6.9.0" - }, - "peerDependencies": { - "@babel/core": "^7.0.0-0" - } - }, - "../core/node_modules/@babel/plugin-transform-class-properties": { - "version": "7.24.7", - "dev": true, - "license": "MIT", - "dependencies": { - "@babel/helper-create-class-features-plugin": "^7.24.7", - "@babel/helper-plugin-utils": "^7.24.7" - }, - "engines": { - "node": ">=6.9.0" - }, - "peerDependencies": { - "@babel/core": "^7.0.0-0" - } - }, - "../core/node_modules/@babel/plugin-transform-class-static-block": { - "version": "7.24.7", - "dev": true, - "license": "MIT", - "dependencies": { - "@babel/helper-create-class-features-plugin": "^7.24.7", - "@babel/helper-plugin-utils": "^7.24.7", - "@babel/plugin-syntax-class-static-block": "^7.14.5" - }, - "engines": { - "node": ">=6.9.0" - }, - "peerDependencies": { - "@babel/core": "^7.12.0" - } - }, - "../core/node_modules/@babel/plugin-transform-classes": { - "version": "7.24.7", - "dev": true, - "license": "MIT", - "dependencies": { - "@babel/helper-annotate-as-pure": "^7.24.7", - "@babel/helper-compilation-targets": "^7.24.7", - "@babel/helper-environment-visitor": "^7.24.7", - "@babel/helper-function-name": "^7.24.7", - "@babel/helper-plugin-utils": "^7.24.7", - "@babel/helper-replace-supers": "^7.24.7", - "@babel/helper-split-export-declaration": "^7.24.7", - "globals": "^11.1.0" - }, - "engines": { - "node": ">=6.9.0" - }, - "peerDependencies": { - "@babel/core": "^7.0.0-0" - } - }, - "../core/node_modules/@babel/plugin-transform-classes/node_modules/globals": { - "version": "11.12.0", - "dev": true, - "license": "MIT", - "engines": { - "node": ">=4" - } - }, - "../core/node_modules/@babel/plugin-transform-computed-properties": { - "version": "7.24.7", - "dev": true, - "license": "MIT", - "dependencies": { - "@babel/helper-plugin-utils": "^7.24.7", - "@babel/template": "^7.24.7" - }, - "engines": { - "node": ">=6.9.0" - }, - "peerDependencies": { - "@babel/core": "^7.0.0-0" - } - }, - "../core/node_modules/@babel/plugin-transform-destructuring": { - "version": "7.24.7", - "dev": true, - "license": "MIT", - "dependencies": { - "@babel/helper-plugin-utils": "^7.24.7" - }, - "engines": { - "node": ">=6.9.0" - }, - "peerDependencies": { - "@babel/core": "^7.0.0-0" - } - }, - "../core/node_modules/@babel/plugin-transform-dotall-regex": { - "version": "7.24.7", - "dev": true, - "license": "MIT", - "dependencies": { - "@babel/helper-create-regexp-features-plugin": "^7.24.7", - "@babel/helper-plugin-utils": "^7.24.7" - }, - "engines": { - "node": ">=6.9.0" - }, - "peerDependencies": { - "@babel/core": "^7.0.0-0" - } - }, - "../core/node_modules/@babel/plugin-transform-duplicate-keys": { - "version": "7.24.7", - "dev": true, - "license": "MIT", - "dependencies": { - "@babel/helper-plugin-utils": "^7.24.7" - }, - "engines": { - "node": ">=6.9.0" - }, - "peerDependencies": { - "@babel/core": "^7.0.0-0" - } - }, - "../core/node_modules/@babel/plugin-transform-dynamic-import": { - "version": "7.24.7", - "dev": true, - "license": "MIT", - "dependencies": { - "@babel/helper-plugin-utils": "^7.24.7", - "@babel/plugin-syntax-dynamic-import": "^7.8.3" - }, - "engines": { - "node": ">=6.9.0" - }, - "peerDependencies": { - "@babel/core": "^7.0.0-0" - } - }, - "../core/node_modules/@babel/plugin-transform-exponentiation-operator": { - "version": "7.24.7", - "dev": true, - "license": "MIT", - "dependencies": { - "@babel/helper-builder-binary-assignment-operator-visitor": "^7.24.7", - "@babel/helper-plugin-utils": "^7.24.7" - }, - "engines": { - "node": ">=6.9.0" - }, - "peerDependencies": { - "@babel/core": "^7.0.0-0" - } - }, - "../core/node_modules/@babel/plugin-transform-export-namespace-from": { - "version": "7.24.7", - "dev": true, - "license": "MIT", - "dependencies": { - "@babel/helper-plugin-utils": "^7.24.7", - "@babel/plugin-syntax-export-namespace-from": "^7.8.3" - }, - "engines": { - "node": ">=6.9.0" - }, - "peerDependencies": { - "@babel/core": "^7.0.0-0" - } - }, - "../core/node_modules/@babel/plugin-transform-for-of": { - "version": "7.24.7", - "dev": true, - "license": "MIT", - "dependencies": { - "@babel/helper-plugin-utils": "^7.24.7", - "@babel/helper-skip-transparent-expression-wrappers": "^7.24.7" - }, - "engines": { - "node": ">=6.9.0" - }, - "peerDependencies": { - "@babel/core": "^7.0.0-0" - } - }, - "../core/node_modules/@babel/plugin-transform-function-name": { - "version": "7.24.7", - "dev": true, - "license": "MIT", - "dependencies": { - "@babel/helper-compilation-targets": "^7.24.7", - "@babel/helper-function-name": "^7.24.7", - "@babel/helper-plugin-utils": "^7.24.7" - }, - "engines": { - "node": ">=6.9.0" - }, - "peerDependencies": { - "@babel/core": "^7.0.0-0" - } - }, - "../core/node_modules/@babel/plugin-transform-json-strings": { - "version": "7.24.7", - "dev": true, - "license": "MIT", - "dependencies": { - "@babel/helper-plugin-utils": "^7.24.7", - "@babel/plugin-syntax-json-strings": "^7.8.3" - }, - "engines": { - "node": ">=6.9.0" - }, - "peerDependencies": { - "@babel/core": "^7.0.0-0" - } - }, - "../core/node_modules/@babel/plugin-transform-literals": { - "version": "7.24.7", - "dev": true, - "license": "MIT", - "dependencies": { - "@babel/helper-plugin-utils": "^7.24.7" - }, - "engines": { - "node": ">=6.9.0" - }, - "peerDependencies": { - "@babel/core": "^7.0.0-0" - } - }, - "../core/node_modules/@babel/plugin-transform-logical-assignment-operators": { - "version": "7.24.7", - "dev": true, - "license": "MIT", - "dependencies": { - "@babel/helper-plugin-utils": "^7.24.7", - "@babel/plugin-syntax-logical-assignment-operators": "^7.10.4" - }, - "engines": { - "node": ">=6.9.0" - }, - "peerDependencies": { - "@babel/core": "^7.0.0-0" - } - }, - "../core/node_modules/@babel/plugin-transform-member-expression-literals": { - "version": "7.24.7", - "dev": true, - "license": "MIT", - "dependencies": { - "@babel/helper-plugin-utils": "^7.24.7" - }, - "engines": { - "node": ">=6.9.0" - }, - "peerDependencies": { - "@babel/core": "^7.0.0-0" - } - }, - "../core/node_modules/@babel/plugin-transform-modules-amd": { - "version": "7.24.7", - "dev": true, - "license": "MIT", - "dependencies": { - "@babel/helper-module-transforms": "^7.24.7", - "@babel/helper-plugin-utils": "^7.24.7" - }, - "engines": { - "node": ">=6.9.0" - }, - "peerDependencies": { - "@babel/core": "^7.0.0-0" - } - }, - "../core/node_modules/@babel/plugin-transform-modules-commonjs": { - "version": "7.24.7", - "dev": true, - "license": "MIT", - "dependencies": { - "@babel/helper-module-transforms": "^7.24.7", - "@babel/helper-plugin-utils": "^7.24.7", - "@babel/helper-simple-access": "^7.24.7" - }, - "engines": { - "node": ">=6.9.0" - }, - "peerDependencies": { - "@babel/core": "^7.0.0-0" - } - }, - "../core/node_modules/@babel/plugin-transform-modules-systemjs": { - "version": "7.24.7", - "dev": true, - "license": "MIT", - "dependencies": { - "@babel/helper-hoist-variables": "^7.24.7", - "@babel/helper-module-transforms": "^7.24.7", - "@babel/helper-plugin-utils": "^7.24.7", - "@babel/helper-validator-identifier": "^7.24.7" - }, - "engines": { - "node": ">=6.9.0" - }, - "peerDependencies": { - "@babel/core": "^7.0.0-0" - } - }, - "../core/node_modules/@babel/plugin-transform-modules-umd": { - "version": "7.24.7", - "dev": true, - "license": "MIT", - "dependencies": { - "@babel/helper-module-transforms": "^7.24.7", - "@babel/helper-plugin-utils": "^7.24.7" - }, - "engines": { - "node": ">=6.9.0" - }, - "peerDependencies": { - "@babel/core": "^7.0.0-0" - } - }, - "../core/node_modules/@babel/plugin-transform-named-capturing-groups-regex": { - "version": "7.24.7", - "dev": true, - "license": "MIT", - "dependencies": { - "@babel/helper-create-regexp-features-plugin": "^7.24.7", - "@babel/helper-plugin-utils": "^7.24.7" - }, - "engines": { - "node": ">=6.9.0" - }, - "peerDependencies": { - "@babel/core": "^7.0.0" - } - }, - "../core/node_modules/@babel/plugin-transform-new-target": { - "version": "7.24.7", - "dev": true, - "license": "MIT", - "dependencies": { - "@babel/helper-plugin-utils": "^7.24.7" - }, - "engines": { - "node": ">=6.9.0" - }, - "peerDependencies": { - "@babel/core": "^7.0.0-0" - } - }, - "../core/node_modules/@babel/plugin-transform-nullish-coalescing-operator": { - "version": "7.24.7", - "dev": true, - "license": "MIT", - "dependencies": { - "@babel/helper-plugin-utils": "^7.24.7", - "@babel/plugin-syntax-nullish-coalescing-operator": "^7.8.3" - }, - "engines": { - "node": ">=6.9.0" - }, - "peerDependencies": { - "@babel/core": "^7.0.0-0" - } - }, - "../core/node_modules/@babel/plugin-transform-numeric-separator": { - "version": "7.24.7", - "dev": true, - "license": "MIT", - "dependencies": { - "@babel/helper-plugin-utils": "^7.24.7", - "@babel/plugin-syntax-numeric-separator": "^7.10.4" - }, - "engines": { - "node": ">=6.9.0" - }, - "peerDependencies": { - "@babel/core": "^7.0.0-0" - } - }, - "../core/node_modules/@babel/plugin-transform-object-rest-spread": { - "version": "7.24.7", - "dev": true, - "license": "MIT", - "dependencies": { - "@babel/helper-compilation-targets": "^7.24.7", - "@babel/helper-plugin-utils": "^7.24.7", - "@babel/plugin-syntax-object-rest-spread": "^7.8.3", - "@babel/plugin-transform-parameters": "^7.24.7" - }, - "engines": { - "node": ">=6.9.0" - }, - "peerDependencies": { - "@babel/core": "^7.0.0-0" - } - }, - "../core/node_modules/@babel/plugin-transform-object-super": { - "version": "7.24.7", - "dev": true, - "license": "MIT", - "dependencies": { - "@babel/helper-plugin-utils": "^7.24.7", - "@babel/helper-replace-supers": "^7.24.7" - }, - "engines": { - "node": ">=6.9.0" - }, - "peerDependencies": { - "@babel/core": "^7.0.0-0" - } - }, - "../core/node_modules/@babel/plugin-transform-optional-catch-binding": { - "version": "7.24.7", - "dev": true, - "license": "MIT", - "dependencies": { - "@babel/helper-plugin-utils": "^7.24.7", - "@babel/plugin-syntax-optional-catch-binding": "^7.8.3" - }, - "engines": { - "node": ">=6.9.0" - }, - "peerDependencies": { - "@babel/core": "^7.0.0-0" - } - }, - "../core/node_modules/@babel/plugin-transform-optional-chaining": { - "version": "7.24.7", - "dev": true, - "license": "MIT", - "dependencies": { - "@babel/helper-plugin-utils": "^7.24.7", - "@babel/helper-skip-transparent-expression-wrappers": "^7.24.7", - "@babel/plugin-syntax-optional-chaining": "^7.8.3" - }, - "engines": { - "node": ">=6.9.0" - }, - "peerDependencies": { - "@babel/core": "^7.0.0-0" - } - }, - "../core/node_modules/@babel/plugin-transform-parameters": { - "version": "7.24.7", - "dev": true, - "license": "MIT", - "dependencies": { - "@babel/helper-plugin-utils": "^7.24.7" - }, - "engines": { - "node": ">=6.9.0" - }, - "peerDependencies": { - "@babel/core": "^7.0.0-0" - } - }, - "../core/node_modules/@babel/plugin-transform-private-methods": { - "version": "7.24.7", - "dev": true, - "license": "MIT", - "dependencies": { - "@babel/helper-create-class-features-plugin": "^7.24.7", - "@babel/helper-plugin-utils": "^7.24.7" - }, - "engines": { - "node": ">=6.9.0" - }, - "peerDependencies": { - "@babel/core": "^7.0.0-0" - } - }, - "../core/node_modules/@babel/plugin-transform-private-property-in-object": { - "version": "7.24.7", - "dev": true, - "license": "MIT", - "dependencies": { - "@babel/helper-annotate-as-pure": "^7.24.7", - "@babel/helper-create-class-features-plugin": "^7.24.7", - "@babel/helper-plugin-utils": "^7.24.7", - "@babel/plugin-syntax-private-property-in-object": "^7.14.5" - }, - "engines": { - "node": ">=6.9.0" - }, - "peerDependencies": { - "@babel/core": "^7.0.0-0" - } - }, - "../core/node_modules/@babel/plugin-transform-property-literals": { - "version": "7.24.7", - "dev": true, - "license": "MIT", - "dependencies": { - "@babel/helper-plugin-utils": "^7.24.7" - }, - "engines": { - "node": ">=6.9.0" - }, - "peerDependencies": { - "@babel/core": "^7.0.0-0" - } - }, - "../core/node_modules/@babel/plugin-transform-regenerator": { - "version": "7.24.7", - "dev": true, - "license": "MIT", - "dependencies": { - "@babel/helper-plugin-utils": "^7.24.7", - "regenerator-transform": "^0.15.2" - }, - "engines": { - "node": ">=6.9.0" - }, - "peerDependencies": { - "@babel/core": "^7.0.0-0" - } - }, - "../core/node_modules/@babel/plugin-transform-reserved-words": { - "version": "7.24.7", - "dev": true, - "license": "MIT", - "dependencies": { - "@babel/helper-plugin-utils": "^7.24.7" - }, - "engines": { - "node": ">=6.9.0" - }, - "peerDependencies": { - "@babel/core": "^7.0.0-0" - } - }, - "../core/node_modules/@babel/plugin-transform-shorthand-properties": { - "version": "7.24.7", - "dev": true, - "license": "MIT", - "dependencies": { - "@babel/helper-plugin-utils": "^7.24.7" - }, - "engines": { - "node": ">=6.9.0" - }, - "peerDependencies": { - "@babel/core": "^7.0.0-0" - } - }, - "../core/node_modules/@babel/plugin-transform-spread": { - "version": "7.24.7", - "dev": true, - "license": "MIT", - "dependencies": { - "@babel/helper-plugin-utils": "^7.24.7", - "@babel/helper-skip-transparent-expression-wrappers": "^7.24.7" - }, - "engines": { - "node": ">=6.9.0" - }, - "peerDependencies": { - "@babel/core": "^7.0.0-0" - } - }, - "../core/node_modules/@babel/plugin-transform-sticky-regex": { - "version": "7.24.7", - "dev": true, - "license": "MIT", - "dependencies": { - "@babel/helper-plugin-utils": "^7.24.7" - }, - "engines": { - "node": ">=6.9.0" - }, - "peerDependencies": { - "@babel/core": "^7.0.0-0" - } - }, - "../core/node_modules/@babel/plugin-transform-template-literals": { - "version": "7.24.7", - "dev": true, - "license": "MIT", - "dependencies": { - "@babel/helper-plugin-utils": "^7.24.7" - }, - "engines": { - "node": ">=6.9.0" - }, - "peerDependencies": { - "@babel/core": "^7.0.0-0" - } - }, - "../core/node_modules/@babel/plugin-transform-typeof-symbol": { - "version": "7.24.7", - "dev": true, - "license": "MIT", - "dependencies": { - "@babel/helper-plugin-utils": "^7.24.7" - }, - "engines": { - "node": ">=6.9.0" - }, - "peerDependencies": { - "@babel/core": "^7.0.0-0" - } - }, - "../core/node_modules/@babel/plugin-transform-unicode-escapes": { - "version": "7.24.7", - "dev": true, - "license": "MIT", - "dependencies": { - "@babel/helper-plugin-utils": "^7.24.7" - }, - "engines": { - "node": ">=6.9.0" - }, - "peerDependencies": { - "@babel/core": "^7.0.0-0" - } - }, - "../core/node_modules/@babel/plugin-transform-unicode-property-regex": { - "version": "7.24.7", - "dev": true, - "license": "MIT", - "dependencies": { - "@babel/helper-create-regexp-features-plugin": "^7.24.7", - "@babel/helper-plugin-utils": "^7.24.7" - }, - "engines": { - "node": ">=6.9.0" - }, - "peerDependencies": { - "@babel/core": "^7.0.0-0" - } - }, - "../core/node_modules/@babel/plugin-transform-unicode-regex": { - "version": "7.24.7", - "dev": true, - "license": "MIT", - "dependencies": { - "@babel/helper-create-regexp-features-plugin": "^7.24.7", - "@babel/helper-plugin-utils": "^7.24.7" - }, - "engines": { - "node": ">=6.9.0" - }, - "peerDependencies": { - "@babel/core": "^7.0.0-0" - } - }, - "../core/node_modules/@babel/plugin-transform-unicode-sets-regex": { - "version": "7.24.7", - "dev": true, - "license": "MIT", - "dependencies": { - "@babel/helper-create-regexp-features-plugin": "^7.24.7", - "@babel/helper-plugin-utils": "^7.24.7" - }, - "engines": { - "node": ">=6.9.0" - }, - "peerDependencies": { - "@babel/core": "^7.0.0" - } - }, - "../core/node_modules/@babel/preset-env": { - "version": "7.24.7", - "dev": true, - "license": "MIT", - "dependencies": { - "@babel/compat-data": "^7.24.7", - "@babel/helper-compilation-targets": "^7.24.7", - "@babel/helper-plugin-utils": "^7.24.7", - "@babel/helper-validator-option": "^7.24.7", - "@babel/plugin-bugfix-firefox-class-in-computed-class-key": "^7.24.7", - "@babel/plugin-bugfix-safari-id-destructuring-collision-in-function-expression": "^7.24.7", - "@babel/plugin-bugfix-v8-spread-parameters-in-optional-chaining": "^7.24.7", - "@babel/plugin-bugfix-v8-static-class-fields-redefine-readonly": "^7.24.7", - "@babel/plugin-proposal-private-property-in-object": "7.21.0-placeholder-for-preset-env.2", - "@babel/plugin-syntax-async-generators": "^7.8.4", - "@babel/plugin-syntax-class-properties": "^7.12.13", - "@babel/plugin-syntax-class-static-block": "^7.14.5", - "@babel/plugin-syntax-dynamic-import": "^7.8.3", - "@babel/plugin-syntax-export-namespace-from": "^7.8.3", - "@babel/plugin-syntax-import-assertions": "^7.24.7", - "@babel/plugin-syntax-import-attributes": "^7.24.7", - "@babel/plugin-syntax-import-meta": "^7.10.4", - "@babel/plugin-syntax-json-strings": "^7.8.3", - "@babel/plugin-syntax-logical-assignment-operators": "^7.10.4", - "@babel/plugin-syntax-nullish-coalescing-operator": "^7.8.3", - "@babel/plugin-syntax-numeric-separator": "^7.10.4", - "@babel/plugin-syntax-object-rest-spread": "^7.8.3", - "@babel/plugin-syntax-optional-catch-binding": "^7.8.3", - "@babel/plugin-syntax-optional-chaining": "^7.8.3", - "@babel/plugin-syntax-private-property-in-object": "^7.14.5", - "@babel/plugin-syntax-top-level-await": "^7.14.5", - "@babel/plugin-syntax-unicode-sets-regex": "^7.18.6", - "@babel/plugin-transform-arrow-functions": "^7.24.7", - "@babel/plugin-transform-async-generator-functions": "^7.24.7", - "@babel/plugin-transform-async-to-generator": "^7.24.7", - "@babel/plugin-transform-block-scoped-functions": "^7.24.7", - "@babel/plugin-transform-block-scoping": "^7.24.7", - "@babel/plugin-transform-class-properties": "^7.24.7", - "@babel/plugin-transform-class-static-block": "^7.24.7", - "@babel/plugin-transform-classes": "^7.24.7", - "@babel/plugin-transform-computed-properties": "^7.24.7", - "@babel/plugin-transform-destructuring": "^7.24.7", - "@babel/plugin-transform-dotall-regex": "^7.24.7", - "@babel/plugin-transform-duplicate-keys": "^7.24.7", - "@babel/plugin-transform-dynamic-import": "^7.24.7", - "@babel/plugin-transform-exponentiation-operator": "^7.24.7", - "@babel/plugin-transform-export-namespace-from": "^7.24.7", - "@babel/plugin-transform-for-of": "^7.24.7", - "@babel/plugin-transform-function-name": "^7.24.7", - "@babel/plugin-transform-json-strings": "^7.24.7", - "@babel/plugin-transform-literals": "^7.24.7", - "@babel/plugin-transform-logical-assignment-operators": "^7.24.7", - "@babel/plugin-transform-member-expression-literals": "^7.24.7", - "@babel/plugin-transform-modules-amd": "^7.24.7", - "@babel/plugin-transform-modules-commonjs": "^7.24.7", - "@babel/plugin-transform-modules-systemjs": "^7.24.7", - "@babel/plugin-transform-modules-umd": "^7.24.7", - "@babel/plugin-transform-named-capturing-groups-regex": "^7.24.7", - "@babel/plugin-transform-new-target": "^7.24.7", - "@babel/plugin-transform-nullish-coalescing-operator": "^7.24.7", - "@babel/plugin-transform-numeric-separator": "^7.24.7", - "@babel/plugin-transform-object-rest-spread": "^7.24.7", - "@babel/plugin-transform-object-super": "^7.24.7", - "@babel/plugin-transform-optional-catch-binding": "^7.24.7", - "@babel/plugin-transform-optional-chaining": "^7.24.7", - "@babel/plugin-transform-parameters": "^7.24.7", - "@babel/plugin-transform-private-methods": "^7.24.7", - "@babel/plugin-transform-private-property-in-object": "^7.24.7", - "@babel/plugin-transform-property-literals": "^7.24.7", - "@babel/plugin-transform-regenerator": "^7.24.7", - "@babel/plugin-transform-reserved-words": "^7.24.7", - "@babel/plugin-transform-shorthand-properties": "^7.24.7", - "@babel/plugin-transform-spread": "^7.24.7", - "@babel/plugin-transform-sticky-regex": "^7.24.7", - "@babel/plugin-transform-template-literals": "^7.24.7", - "@babel/plugin-transform-typeof-symbol": "^7.24.7", - "@babel/plugin-transform-unicode-escapes": "^7.24.7", - "@babel/plugin-transform-unicode-property-regex": "^7.24.7", - "@babel/plugin-transform-unicode-regex": "^7.24.7", - "@babel/plugin-transform-unicode-sets-regex": "^7.24.7", - "@babel/preset-modules": "0.1.6-no-external-plugins", - "babel-plugin-polyfill-corejs2": "^0.4.10", - "babel-plugin-polyfill-corejs3": "^0.10.4", - "babel-plugin-polyfill-regenerator": "^0.6.1", - "core-js-compat": "^3.31.0", - "semver": "^6.3.1" - }, - "engines": { - "node": ">=6.9.0" - }, - "peerDependencies": { - "@babel/core": "^7.0.0-0" - } - }, - "../core/node_modules/@babel/preset-env/node_modules/semver": { - "version": "6.3.1", - "dev": true, - "license": "ISC", - "bin": { - "semver": "bin/semver.js" - } - }, - "../core/node_modules/@babel/preset-modules": { - "version": "0.1.6-no-external-plugins", - "dev": true, - "license": "MIT", - "dependencies": { - "@babel/helper-plugin-utils": "^7.0.0", - "@babel/types": "^7.4.4", - "esutils": "^2.0.2" - }, - "peerDependencies": { - "@babel/core": "^7.0.0-0 || ^8.0.0-0 <8.0.0" - } - }, - "../core/node_modules/@babel/regjsgen": { - "version": "0.8.0", - "dev": true, - "license": "MIT" - }, - "../core/node_modules/@babel/runtime": { - "version": "7.24.7", - "dev": true, - "license": "MIT", - "dependencies": { - "regenerator-runtime": "^0.14.0" - }, - "engines": { - "node": ">=6.9.0" - } - }, - "../core/node_modules/@babel/template": { - "version": "7.24.7", - "dev": true, - "license": "MIT", - "dependencies": { - "@babel/code-frame": "^7.24.7", - "@babel/parser": "^7.24.7", - "@babel/types": "^7.24.7" - }, - "engines": { - "node": ">=6.9.0" - } - }, - "../core/node_modules/@babel/traverse": { - "version": "7.24.7", - "dev": true, - "license": "MIT", - "dependencies": { - "@babel/code-frame": "^7.24.7", - "@babel/generator": "^7.24.7", - "@babel/helper-environment-visitor": "^7.24.7", - "@babel/helper-function-name": "^7.24.7", - "@babel/helper-hoist-variables": "^7.24.7", - "@babel/helper-split-export-declaration": "^7.24.7", - "@babel/parser": "^7.24.7", - "@babel/types": "^7.24.7", - "debug": "^4.3.1", - "globals": "^11.1.0" - }, - "engines": { - "node": ">=6.9.0" - } - }, - "../core/node_modules/@babel/traverse/node_modules/globals": { - "version": "11.12.0", - "dev": true, - "license": "MIT", - "engines": { - "node": ">=4" - } - }, - "../core/node_modules/@babel/types": { - "version": "7.24.7", - "dev": true, - "license": "MIT", - "dependencies": { - "@babel/helper-string-parser": "^7.24.7", - "@babel/helper-validator-identifier": "^7.24.7", - "to-fast-properties": "^2.0.0" - }, - "engines": { - "node": ">=6.9.0" - } - }, - "../core/node_modules/@bcoe/v8-coverage": { - "version": "0.2.3", - "dev": true, - "license": "MIT" - }, - "../core/node_modules/@biomejs/biome": { - "version": "1.6.4", - "dev": true, - "hasInstallScript": true, - "license": "MIT OR Apache-2.0", - "bin": { - "biome": "bin/biome" - }, - "engines": { - "node": ">=14.21.3" - }, - "funding": { - "type": "opencollective", - "url": "https://opencollective.com/biome" - }, - "optionalDependencies": { - "@biomejs/cli-darwin-arm64": "1.6.4", - "@biomejs/cli-darwin-x64": "1.6.4", - "@biomejs/cli-linux-arm64": "1.6.4", - "@biomejs/cli-linux-arm64-musl": "1.6.4", - "@biomejs/cli-linux-x64": "1.6.4", - "@biomejs/cli-linux-x64-musl": "1.6.4", - "@biomejs/cli-win32-arm64": "1.6.4", - "@biomejs/cli-win32-x64": "1.6.4" - } - }, - "../core/node_modules/@biomejs/cli-darwin-x64": { - "version": "1.6.4", - "cpu": [ - "x64" - ], - "dev": true, - "license": "MIT OR Apache-2.0", - "optional": true, - "os": [ - "darwin" - ], - "engines": { - "node": ">=14.21.3" - } - }, - "../core/node_modules/@continuedev/config-types": { - "version": "1.0.10", - "license": "Apache-2.0", - "dependencies": { - "zod": "^3.23.8" - } - }, - "../core/node_modules/@continuedev/llm-info": { - "version": "1.0.2", - "license": "Apache-2.0" - }, - "../core/node_modules/@esbuild/darwin-x64": { - "version": "0.17.19", - "cpu": [ - "x64" - ], - "dev": true, - "license": "MIT", - "optional": true, - "os": [ - "darwin" - ], - "engines": { - "node": ">=12" - } - }, - "../core/node_modules/@eslint-community/eslint-utils": { - "version": "4.4.0", - "license": "MIT", - "dependencies": { - "eslint-visitor-keys": "^3.3.0" - }, - "engines": { - "node": "^12.22.0 || ^14.17.0 || >=16.0.0" - }, - "peerDependencies": { - "eslint": "^6.0.0 || ^7.0.0 || >=8.0.0" - } - }, - "../core/node_modules/@eslint-community/regexpp": { - "version": "4.10.0", - "license": "MIT", - "engines": { - "node": "^12.0.0 || ^14.0.0 || >=16.0.0" - } - }, - "../core/node_modules/@eslint/eslintrc": { - "version": "2.1.4", - "license": "MIT", - "dependencies": { - "ajv": "^6.12.4", - "debug": "^4.3.2", - "espree": "^9.6.0", - "globals": "^13.19.0", - "ignore": "^5.2.0", - "import-fresh": "^3.2.1", - "js-yaml": "^4.1.0", - "minimatch": "^3.1.2", - "strip-json-comments": "^3.1.1" - }, - "engines": { - "node": "^12.22.0 || ^14.17.0 || >=16.0.0" - }, - "funding": { - "url": "https://opencollective.com/eslint" - } - }, - "../core/node_modules/@eslint/eslintrc/node_modules/brace-expansion": { - "version": "1.1.11", - "license": "MIT", - "dependencies": { - "balanced-match": "^1.0.0", - "concat-map": "0.0.1" - } - }, - "../core/node_modules/@eslint/eslintrc/node_modules/minimatch": { - "version": "3.1.2", - "license": "ISC", - "dependencies": { - "brace-expansion": "^1.1.7" - }, - "engines": { - "node": "*" - } - }, - "../core/node_modules/@eslint/js": { - "version": "8.57.0", - "license": "MIT", - "engines": { - "node": "^12.22.0 || ^14.17.0 || >=16.0.0" - } - }, - "../core/node_modules/@gar/promisify": { - "version": "1.1.3", - "license": "MIT", - "optional": true - }, - "../core/node_modules/@google/generative-ai": { - "version": "0.11.4", - "dev": true, - "license": "Apache-2.0", - "engines": { - "node": ">=18.0.0" - } - }, - "../core/node_modules/@huggingface/jinja": { - "version": "0.1.3", - "license": "MIT", - "engines": { - "node": ">=18" - } - }, - "../core/node_modules/@humanwhocodes/config-array": { - "version": "0.11.14", - "license": "Apache-2.0", - "dependencies": { - "@humanwhocodes/object-schema": "^2.0.2", - "debug": "^4.3.1", - "minimatch": "^3.0.5" - }, - "engines": { - "node": ">=10.10.0" - } - }, - "../core/node_modules/@humanwhocodes/config-array/node_modules/brace-expansion": { - "version": "1.1.11", - "license": "MIT", - "dependencies": { - "balanced-match": "^1.0.0", - "concat-map": "0.0.1" - } - }, - "../core/node_modules/@humanwhocodes/config-array/node_modules/minimatch": { - "version": "3.1.2", - "license": "ISC", - "dependencies": { - "brace-expansion": "^1.1.7" - }, - "engines": { - "node": "*" - } - }, - "../core/node_modules/@humanwhocodes/module-importer": { - "version": "1.0.1", - "license": "Apache-2.0", - "engines": { - "node": ">=12.22" - }, - "funding": { - "type": "github", - "url": "https://github.com/sponsors/nzakas" - } - }, - "../core/node_modules/@humanwhocodes/object-schema": { - "version": "2.0.3", - "license": "BSD-3-Clause" - }, - "../core/node_modules/@istanbuljs/load-nyc-config": { - "version": "1.1.0", - "dev": true, - "license": "ISC", - "dependencies": { - "camelcase": "^5.3.1", - "find-up": "^4.1.0", - "get-package-type": "^0.1.0", - "js-yaml": "^3.13.1", - "resolve-from": "^5.0.0" - }, - "engines": { - "node": ">=8" - } - }, - "../core/node_modules/@istanbuljs/load-nyc-config/node_modules/argparse": { - "version": "1.0.10", - "dev": true, - "license": "MIT", - "dependencies": { - "sprintf-js": "~1.0.2" - } - }, - "../core/node_modules/@istanbuljs/load-nyc-config/node_modules/find-up": { - "version": "4.1.0", - "dev": true, - "license": "MIT", - "dependencies": { - "locate-path": "^5.0.0", - "path-exists": "^4.0.0" - }, - "engines": { - "node": ">=8" - } - }, - "../core/node_modules/@istanbuljs/load-nyc-config/node_modules/js-yaml": { - "version": "3.14.1", - "dev": true, - "license": "MIT", - "dependencies": { - "argparse": "^1.0.7", - "esprima": "^4.0.0" - }, - "bin": { - "js-yaml": "bin/js-yaml.js" - } - }, - "../core/node_modules/@istanbuljs/load-nyc-config/node_modules/locate-path": { - "version": "5.0.0", - "dev": true, - "license": "MIT", - "dependencies": { - "p-locate": "^4.1.0" - }, - "engines": { - "node": ">=8" - } - }, - "../core/node_modules/@istanbuljs/load-nyc-config/node_modules/p-limit": { - "version": "2.3.0", - "dev": true, - "license": "MIT", - "dependencies": { - "p-try": "^2.0.0" - }, - "engines": { - "node": ">=6" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - }, - "../core/node_modules/@istanbuljs/load-nyc-config/node_modules/p-locate": { - "version": "4.1.0", - "dev": true, - "license": "MIT", - "dependencies": { - "p-limit": "^2.2.0" - }, - "engines": { - "node": ">=8" - } - }, - "../core/node_modules/@istanbuljs/load-nyc-config/node_modules/resolve-from": { - "version": "5.0.0", - "dev": true, - "license": "MIT", - "engines": { - "node": ">=8" - } - }, - "../core/node_modules/@istanbuljs/load-nyc-config/node_modules/sprintf-js": { - "version": "1.0.3", - "dev": true, - "license": "BSD-3-Clause" - }, - "../core/node_modules/@istanbuljs/schema": { - "version": "0.1.3", - "dev": true, - "license": "MIT", - "engines": { - "node": ">=8" - } - }, - "../core/node_modules/@jest/console": { - "version": "29.7.0", - "dev": true, - "license": "MIT", - "dependencies": { - "@jest/types": "^29.6.3", - "@types/node": "*", - "chalk": "^4.0.0", - "jest-message-util": "^29.7.0", - "jest-util": "^29.7.0", - "slash": "^3.0.0" - }, - "engines": { - "node": "^14.15.0 || ^16.10.0 || >=18.0.0" - } - }, - "../core/node_modules/@jest/core": { - "version": "29.7.0", - "dev": true, - "license": "MIT", - "dependencies": { - "@jest/console": "^29.7.0", - "@jest/reporters": "^29.7.0", - "@jest/test-result": "^29.7.0", - "@jest/transform": "^29.7.0", - "@jest/types": "^29.6.3", - "@types/node": "*", - "ansi-escapes": "^4.2.1", - "chalk": "^4.0.0", - "ci-info": "^3.2.0", - "exit": "^0.1.2", - "graceful-fs": "^4.2.9", - "jest-changed-files": "^29.7.0", - "jest-config": "^29.7.0", - "jest-haste-map": "^29.7.0", - "jest-message-util": "^29.7.0", - "jest-regex-util": "^29.6.3", - "jest-resolve": "^29.7.0", - "jest-resolve-dependencies": "^29.7.0", - "jest-runner": "^29.7.0", - "jest-runtime": "^29.7.0", - "jest-snapshot": "^29.7.0", - "jest-util": "^29.7.0", - "jest-validate": "^29.7.0", - "jest-watcher": "^29.7.0", - "micromatch": "^4.0.4", - "pretty-format": "^29.7.0", - "slash": "^3.0.0", - "strip-ansi": "^6.0.0" - }, - "engines": { - "node": "^14.15.0 || ^16.10.0 || >=18.0.0" - }, - "peerDependencies": { - "node-notifier": "^8.0.1 || ^9.0.0 || ^10.0.0" - }, - "peerDependenciesMeta": { - "node-notifier": { - "optional": true - } - } - }, - "../core/node_modules/@jest/environment": { - "version": "29.7.0", - "dev": true, - "license": "MIT", - "dependencies": { - "@jest/fake-timers": "^29.7.0", - "@jest/types": "^29.6.3", - "@types/node": "*", - "jest-mock": "^29.7.0" - }, - "engines": { - "node": "^14.15.0 || ^16.10.0 || >=18.0.0" - } - }, - "../core/node_modules/@jest/expect": { - "version": "29.7.0", - "dev": true, - "license": "MIT", - "dependencies": { - "expect": "^29.7.0", - "jest-snapshot": "^29.7.0" - }, - "engines": { - "node": "^14.15.0 || ^16.10.0 || >=18.0.0" - } - }, - "../core/node_modules/@jest/expect-utils": { - "version": "29.7.0", - "dev": true, - "license": "MIT", - "dependencies": { - "jest-get-type": "^29.6.3" - }, - "engines": { - "node": "^14.15.0 || ^16.10.0 || >=18.0.0" - } - }, - "../core/node_modules/@jest/fake-timers": { - "version": "29.7.0", - "dev": true, - "license": "MIT", - "dependencies": { - "@jest/types": "^29.6.3", - "@sinonjs/fake-timers": "^10.0.2", - "@types/node": "*", - "jest-message-util": "^29.7.0", - "jest-mock": "^29.7.0", - "jest-util": "^29.7.0" - }, - "engines": { - "node": "^14.15.0 || ^16.10.0 || >=18.0.0" - } - }, - "../core/node_modules/@jest/globals": { - "version": "29.7.0", - "dev": true, - "license": "MIT", - "dependencies": { - "@jest/environment": "^29.7.0", - "@jest/expect": "^29.7.0", - "@jest/types": "^29.6.3", - "jest-mock": "^29.7.0" - }, - "engines": { - "node": "^14.15.0 || ^16.10.0 || >=18.0.0" - } - }, - "../core/node_modules/@jest/reporters": { - "version": "29.7.0", - "dev": true, - "license": "MIT", - "dependencies": { - "@bcoe/v8-coverage": "^0.2.3", - "@jest/console": "^29.7.0", - "@jest/test-result": "^29.7.0", - "@jest/transform": "^29.7.0", - "@jest/types": "^29.6.3", - "@jridgewell/trace-mapping": "^0.3.18", - "@types/node": "*", - "chalk": "^4.0.0", - "collect-v8-coverage": "^1.0.0", - "exit": "^0.1.2", - "glob": "^7.1.3", - "graceful-fs": "^4.2.9", - "istanbul-lib-coverage": "^3.0.0", - "istanbul-lib-instrument": "^6.0.0", - "istanbul-lib-report": "^3.0.0", - "istanbul-lib-source-maps": "^4.0.0", - "istanbul-reports": "^3.1.3", - "jest-message-util": "^29.7.0", - "jest-util": "^29.7.0", - "jest-worker": "^29.7.0", - "slash": "^3.0.0", - "string-length": "^4.0.1", - "strip-ansi": "^6.0.0", - "v8-to-istanbul": "^9.0.1" - }, - "engines": { - "node": "^14.15.0 || ^16.10.0 || >=18.0.0" - }, - "peerDependencies": { - "node-notifier": "^8.0.1 || ^9.0.0 || ^10.0.0" - }, - "peerDependenciesMeta": { - "node-notifier": { - "optional": true - } - } - }, - "../core/node_modules/@jest/schemas": { - "version": "29.6.3", - "dev": true, - "license": "MIT", - "dependencies": { - "@sinclair/typebox": "^0.27.8" - }, - "engines": { - "node": "^14.15.0 || ^16.10.0 || >=18.0.0" - } - }, - "../core/node_modules/@jest/source-map": { - "version": "29.6.3", - "dev": true, - "license": "MIT", - "dependencies": { - "@jridgewell/trace-mapping": "^0.3.18", - "callsites": "^3.0.0", - "graceful-fs": "^4.2.9" - }, - "engines": { - "node": "^14.15.0 || ^16.10.0 || >=18.0.0" - } - }, - "../core/node_modules/@jest/test-result": { - "version": "29.7.0", - "dev": true, - "license": "MIT", - "dependencies": { - "@jest/console": "^29.7.0", - "@jest/types": "^29.6.3", - "@types/istanbul-lib-coverage": "^2.0.0", - "collect-v8-coverage": "^1.0.0" - }, - "engines": { - "node": "^14.15.0 || ^16.10.0 || >=18.0.0" - } - }, - "../core/node_modules/@jest/test-sequencer": { - "version": "29.7.0", - "dev": true, - "license": "MIT", - "dependencies": { - "@jest/test-result": "^29.7.0", - "graceful-fs": "^4.2.9", - "jest-haste-map": "^29.7.0", - "slash": "^3.0.0" - }, - "engines": { - "node": "^14.15.0 || ^16.10.0 || >=18.0.0" - } - }, - "../core/node_modules/@jest/transform": { - "version": "29.7.0", - "dev": true, - "license": "MIT", - "dependencies": { - "@babel/core": "^7.11.6", - "@jest/types": "^29.6.3", - "@jridgewell/trace-mapping": "^0.3.18", - "babel-plugin-istanbul": "^6.1.1", - "chalk": "^4.0.0", - "convert-source-map": "^2.0.0", - "fast-json-stable-stringify": "^2.1.0", - "graceful-fs": "^4.2.9", - "jest-haste-map": "^29.7.0", - "jest-regex-util": "^29.6.3", - "jest-util": "^29.7.0", - "micromatch": "^4.0.4", - "pirates": "^4.0.4", - "slash": "^3.0.0", - "write-file-atomic": "^4.0.2" - }, - "engines": { - "node": "^14.15.0 || ^16.10.0 || >=18.0.0" - } - }, - "../core/node_modules/@jest/types": { - "version": "29.6.3", - "dev": true, - "license": "MIT", - "dependencies": { - "@jest/schemas": "^29.6.3", - "@types/istanbul-lib-coverage": "^2.0.0", - "@types/istanbul-reports": "^3.0.0", - "@types/node": "*", - "@types/yargs": "^17.0.8", - "chalk": "^4.0.0" - }, - "engines": { - "node": "^14.15.0 || ^16.10.0 || >=18.0.0" - } - }, - "../core/node_modules/@jridgewell/gen-mapping": { - "version": "0.3.5", - "dev": true, - "license": "MIT", - "dependencies": { - "@jridgewell/set-array": "^1.2.1", - "@jridgewell/sourcemap-codec": "^1.4.10", - "@jridgewell/trace-mapping": "^0.3.24" - }, - "engines": { - "node": ">=6.0.0" - } - }, - "../core/node_modules/@jridgewell/resolve-uri": { - "version": "3.1.2", - "dev": true, - "license": "MIT", - "engines": { - "node": ">=6.0.0" - } - }, - "../core/node_modules/@jridgewell/set-array": { - "version": "1.2.1", - "dev": true, - "license": "MIT", - "engines": { - "node": ">=6.0.0" - } - }, - "../core/node_modules/@jridgewell/sourcemap-codec": { - "version": "1.4.15", - "dev": true, - "license": "MIT" - }, - "../core/node_modules/@jridgewell/trace-mapping": { - "version": "0.3.25", - "dev": true, - "license": "MIT", - "dependencies": { - "@jridgewell/resolve-uri": "^3.1.0", - "@jridgewell/sourcemap-codec": "^1.4.14" - } - }, - "../core/node_modules/@lancedb/vectordb-darwin-x64": { - "version": "0.4.20", - "cpu": [ - "x64" - ], - "license": "Apache-2.0", - "optional": true, - "os": [ - "darwin" - ] - }, - "../core/node_modules/@mozilla/readability": { - "version": "0.5.0", - "license": "Apache-2.0", - "engines": { - "node": ">=14.0.0" - } - }, - "../core/node_modules/@neon-rs/load": { - "version": "0.0.74", - "license": "MIT" - }, - "../core/node_modules/@nodelib/fs.scandir": { - "version": "2.1.5", - "license": "MIT", - "dependencies": { - "@nodelib/fs.stat": "2.0.5", - "run-parallel": "^1.1.9" - }, - "engines": { - "node": ">= 8" - } - }, - "../core/node_modules/@nodelib/fs.stat": { - "version": "2.0.5", - "license": "MIT", - "engines": { - "node": ">= 8" - } - }, - "../core/node_modules/@nodelib/fs.walk": { - "version": "1.2.8", - "license": "MIT", - "dependencies": { - "@nodelib/fs.scandir": "2.1.5", - "fastq": "^1.6.0" - }, - "engines": { - "node": ">= 8" - } - }, - "../core/node_modules/@npmcli/fs": { - "version": "1.1.1", - "license": "ISC", - "optional": true, - "dependencies": { - "@gar/promisify": "^1.0.1", - "semver": "^7.3.5" - } - }, - "../core/node_modules/@npmcli/move-file": { - "version": "1.1.2", - "license": "MIT", - "optional": true, - "dependencies": { - "mkdirp": "^1.0.4", - "rimraf": "^3.0.2" - }, - "engines": { - "node": ">=10" - } - }, - "../core/node_modules/@octokit/auth-token": { - "version": "4.0.0", - "license": "MIT", - "engines": { - "node": ">= 18" - } - }, - "../core/node_modules/@octokit/core": { - "version": "5.2.0", - "license": "MIT", - "dependencies": { - "@octokit/auth-token": "^4.0.0", - "@octokit/graphql": "^7.1.0", - "@octokit/request": "^8.3.1", - "@octokit/request-error": "^5.1.0", - "@octokit/types": "^13.0.0", - "before-after-hook": "^2.2.0", - "universal-user-agent": "^6.0.0" - }, - "engines": { - "node": ">= 18" - } - }, - "../core/node_modules/@octokit/endpoint": { - "version": "9.0.5", - "license": "MIT", - "dependencies": { - "@octokit/types": "^13.1.0", - "universal-user-agent": "^6.0.0" - }, - "engines": { - "node": ">= 18" - } - }, - "../core/node_modules/@octokit/graphql": { - "version": "7.1.0", - "license": "MIT", - "dependencies": { - "@octokit/request": "^8.3.0", - "@octokit/types": "^13.0.0", - "universal-user-agent": "^6.0.0" - }, - "engines": { - "node": ">= 18" - } - }, - "../core/node_modules/@octokit/openapi-types": { - "version": "22.2.0", - "license": "MIT" - }, - "../core/node_modules/@octokit/plugin-paginate-rest": { - "version": "11.3.1", - "license": "MIT", - "dependencies": { - "@octokit/types": "^13.5.0" - }, - "engines": { - "node": ">= 18" - }, - "peerDependencies": { - "@octokit/core": "5" - } - }, - "../core/node_modules/@octokit/plugin-request-log": { - "version": "4.0.1", - "license": "MIT", - "engines": { - "node": ">= 18" - }, - "peerDependencies": { - "@octokit/core": "5" - } - }, - "../core/node_modules/@octokit/plugin-rest-endpoint-methods": { - "version": "13.2.2", - "license": "MIT", - "dependencies": { - "@octokit/types": "^13.5.0" - }, - "engines": { - "node": ">= 18" - }, - "peerDependencies": { - "@octokit/core": "^5" - } - }, - "../core/node_modules/@octokit/request": { - "version": "8.4.0", - "license": "MIT", - "dependencies": { - "@octokit/endpoint": "^9.0.1", - "@octokit/request-error": "^5.1.0", - "@octokit/types": "^13.1.0", - "universal-user-agent": "^6.0.0" - }, - "engines": { - "node": ">= 18" - } - }, - "../core/node_modules/@octokit/request-error": { - "version": "5.1.0", - "license": "MIT", - "dependencies": { - "@octokit/types": "^13.1.0", - "deprecation": "^2.0.0", - "once": "^1.4.0" - }, - "engines": { - "node": ">= 18" - } - }, - "../core/node_modules/@octokit/rest": { - "version": "20.1.1", - "license": "MIT", - "dependencies": { - "@octokit/core": "^5.0.2", - "@octokit/plugin-paginate-rest": "11.3.1", - "@octokit/plugin-request-log": "^4.0.0", - "@octokit/plugin-rest-endpoint-methods": "13.2.2" - }, - "engines": { - "node": ">= 18" - } - }, - "../core/node_modules/@octokit/types": { - "version": "13.5.0", - "license": "MIT", - "dependencies": { - "@octokit/openapi-types": "^22.2.0" - } - }, - "../core/node_modules/@protobufjs/aspromise": { - "version": "1.1.2", - "license": "BSD-3-Clause" - }, - "../core/node_modules/@protobufjs/base64": { - "version": "1.1.2", - "license": "BSD-3-Clause" - }, - "../core/node_modules/@protobufjs/codegen": { - "version": "2.0.4", - "license": "BSD-3-Clause" - }, - "../core/node_modules/@protobufjs/eventemitter": { - "version": "1.1.0", - "license": "BSD-3-Clause" - }, - "../core/node_modules/@protobufjs/fetch": { - "version": "1.1.0", - "license": "BSD-3-Clause", - "dependencies": { - "@protobufjs/aspromise": "^1.1.1", - "@protobufjs/inquire": "^1.1.0" - } - }, - "../core/node_modules/@protobufjs/float": { - "version": "1.0.2", - "license": "BSD-3-Clause" - }, - "../core/node_modules/@protobufjs/inquire": { - "version": "1.1.0", - "license": "BSD-3-Clause" - }, - "../core/node_modules/@protobufjs/path": { - "version": "1.1.2", - "license": "BSD-3-Clause" - }, - "../core/node_modules/@protobufjs/pool": { - "version": "1.1.0", - "license": "BSD-3-Clause" - }, - "../core/node_modules/@protobufjs/utf8": { - "version": "1.1.0", - "license": "BSD-3-Clause" - }, - "../core/node_modules/@puppeteer/browsers": { - "version": "2.3.0", - "license": "Apache-2.0", - "dependencies": { - "debug": "^4.3.5", - "extract-zip": "^2.0.1", - "progress": "^2.0.3", - "proxy-agent": "^6.4.0", - "semver": "^7.6.3", - "tar-fs": "^3.0.6", - "unbzip2-stream": "^1.4.3", - "yargs": "^17.7.2" - }, - "bin": { - "browsers": "lib/cjs/main-cli.js" - }, - "engines": { - "node": ">=18" - } - }, - "../core/node_modules/@sinclair/typebox": { - "version": "0.27.8", - "dev": true, - "license": "MIT" - }, - "../core/node_modules/@sinonjs/commons": { - "version": "3.0.1", - "dev": true, - "license": "BSD-3-Clause", - "dependencies": { - "type-detect": "4.0.8" - } - }, - "../core/node_modules/@sinonjs/fake-timers": { - "version": "10.3.0", - "dev": true, - "license": "BSD-3-Clause", - "dependencies": { - "@sinonjs/commons": "^3.0.0" - } - }, - "../core/node_modules/@smithy/abort-controller": { - "version": "3.1.1", - "license": "Apache-2.0", - "dependencies": { - "@smithy/types": "^3.3.0", - "tslib": "^2.6.2" - }, - "engines": { - "node": ">=16.0.0" - } - }, - "../core/node_modules/@smithy/config-resolver": { - "version": "3.0.5", - "license": "Apache-2.0", - "dependencies": { - "@smithy/node-config-provider": "^3.1.4", - "@smithy/types": "^3.3.0", - "@smithy/util-config-provider": "^3.0.0", - "@smithy/util-middleware": "^3.0.3", - "tslib": "^2.6.2" - }, - "engines": { - "node": ">=16.0.0" - } - }, - "../core/node_modules/@smithy/core": { - "version": "2.3.2", - "license": "Apache-2.0", - "dependencies": { - "@smithy/middleware-endpoint": "^3.1.0", - "@smithy/middleware-retry": "^3.0.14", - "@smithy/middleware-serde": "^3.0.3", - "@smithy/protocol-http": "^4.1.0", - "@smithy/smithy-client": "^3.1.12", - "@smithy/types": "^3.3.0", - "@smithy/util-middleware": "^3.0.3", - "tslib": "^2.6.2" - }, - "engines": { - "node": ">=16.0.0" - } - }, - "../core/node_modules/@smithy/credential-provider-imds": { - "version": "3.2.0", - "license": "Apache-2.0", - "dependencies": { - "@smithy/node-config-provider": "^3.1.4", - "@smithy/property-provider": "^3.1.3", - "@smithy/types": "^3.3.0", - "@smithy/url-parser": "^3.0.3", - "tslib": "^2.6.2" - }, - "engines": { - "node": ">=16.0.0" - } - }, - "../core/node_modules/@smithy/eventstream-codec": { - "version": "3.1.2", - "license": "Apache-2.0", - "dependencies": { - "@aws-crypto/crc32": "5.2.0", - "@smithy/types": "^3.3.0", - "@smithy/util-hex-encoding": "^3.0.0", - "tslib": "^2.6.2" - } - }, - "../core/node_modules/@smithy/eventstream-serde-browser": { - "version": "3.0.5", - "license": "Apache-2.0", - "dependencies": { - "@smithy/eventstream-serde-universal": "^3.0.4", - "@smithy/types": "^3.3.0", - "tslib": "^2.6.2" - }, - "engines": { - "node": ">=16.0.0" - } - }, - "../core/node_modules/@smithy/eventstream-serde-config-resolver": { - "version": "3.0.3", - "license": "Apache-2.0", - "dependencies": { - "@smithy/types": "^3.3.0", - "tslib": "^2.6.2" - }, - "engines": { - "node": ">=16.0.0" - } - }, - "../core/node_modules/@smithy/eventstream-serde-node": { - "version": "3.0.4", - "license": "Apache-2.0", - "dependencies": { - "@smithy/eventstream-serde-universal": "^3.0.4", - "@smithy/types": "^3.3.0", - "tslib": "^2.6.2" - }, - "engines": { - "node": ">=16.0.0" - } - }, - "../core/node_modules/@smithy/eventstream-serde-universal": { - "version": "3.0.4", - "license": "Apache-2.0", - "dependencies": { - "@smithy/eventstream-codec": "^3.1.2", - "@smithy/types": "^3.3.0", - "tslib": "^2.6.2" - }, - "engines": { - "node": ">=16.0.0" - } - }, - "../core/node_modules/@smithy/fetch-http-handler": { - "version": "3.2.4", - "license": "Apache-2.0", - "dependencies": { - "@smithy/protocol-http": "^4.1.0", - "@smithy/querystring-builder": "^3.0.3", - "@smithy/types": "^3.3.0", - "@smithy/util-base64": "^3.0.0", - "tslib": "^2.6.2" - } - }, - "../core/node_modules/@smithy/hash-node": { - "version": "3.0.3", - "license": "Apache-2.0", - "dependencies": { - "@smithy/types": "^3.3.0", - "@smithy/util-buffer-from": "^3.0.0", - "@smithy/util-utf8": "^3.0.0", - "tslib": "^2.6.2" - }, - "engines": { - "node": ">=16.0.0" - } - }, - "../core/node_modules/@smithy/invalid-dependency": { - "version": "3.0.3", - "license": "Apache-2.0", - "dependencies": { - "@smithy/types": "^3.3.0", - "tslib": "^2.6.2" - } - }, - "../core/node_modules/@smithy/is-array-buffer": { - "version": "3.0.0", - "license": "Apache-2.0", - "dependencies": { - "tslib": "^2.6.2" - }, - "engines": { - "node": ">=16.0.0" - } - }, - "../core/node_modules/@smithy/middleware-content-length": { - "version": "3.0.5", - "license": "Apache-2.0", - "dependencies": { - "@smithy/protocol-http": "^4.1.0", - "@smithy/types": "^3.3.0", - "tslib": "^2.6.2" - }, - "engines": { - "node": ">=16.0.0" - } - }, - "../core/node_modules/@smithy/middleware-endpoint": { - "version": "3.1.0", - "license": "Apache-2.0", - "dependencies": { - "@smithy/middleware-serde": "^3.0.3", - "@smithy/node-config-provider": "^3.1.4", - "@smithy/shared-ini-file-loader": "^3.1.4", - "@smithy/types": "^3.3.0", - "@smithy/url-parser": "^3.0.3", - "@smithy/util-middleware": "^3.0.3", - "tslib": "^2.6.2" - }, - "engines": { - "node": ">=16.0.0" - } - }, - "../core/node_modules/@smithy/middleware-retry": { - "version": "3.0.14", - "license": "Apache-2.0", - "dependencies": { - "@smithy/node-config-provider": "^3.1.4", - "@smithy/protocol-http": "^4.1.0", - "@smithy/service-error-classification": "^3.0.3", - "@smithy/smithy-client": "^3.1.12", - "@smithy/types": "^3.3.0", - "@smithy/util-middleware": "^3.0.3", - "@smithy/util-retry": "^3.0.3", - "tslib": "^2.6.2", - "uuid": "^9.0.1" - }, - "engines": { - "node": ">=16.0.0" - } - }, - "../core/node_modules/@smithy/middleware-serde": { - "version": "3.0.3", - "license": "Apache-2.0", - "dependencies": { - "@smithy/types": "^3.3.0", - "tslib": "^2.6.2" - }, - "engines": { - "node": ">=16.0.0" - } - }, - "../core/node_modules/@smithy/middleware-stack": { - "version": "3.0.3", - "license": "Apache-2.0", - "dependencies": { - "@smithy/types": "^3.3.0", - "tslib": "^2.6.2" - }, - "engines": { - "node": ">=16.0.0" - } - }, - "../core/node_modules/@smithy/node-config-provider": { - "version": "3.1.4", - "license": "Apache-2.0", - "dependencies": { - "@smithy/property-provider": "^3.1.3", - "@smithy/shared-ini-file-loader": "^3.1.4", - "@smithy/types": "^3.3.0", - "tslib": "^2.6.2" - }, - "engines": { - "node": ">=16.0.0" - } - }, - "../core/node_modules/@smithy/node-http-handler": { - "version": "3.1.4", - "license": "Apache-2.0", - "dependencies": { - "@smithy/abort-controller": "^3.1.1", - "@smithy/protocol-http": "^4.1.0", - "@smithy/querystring-builder": "^3.0.3", - "@smithy/types": "^3.3.0", - "tslib": "^2.6.2" - }, - "engines": { - "node": ">=16.0.0" - } - }, - "../core/node_modules/@smithy/property-provider": { - "version": "3.1.3", - "license": "Apache-2.0", - "dependencies": { - "@smithy/types": "^3.3.0", - "tslib": "^2.6.2" - }, - "engines": { - "node": ">=16.0.0" - } - }, - "../core/node_modules/@smithy/protocol-http": { - "version": "4.1.0", - "license": "Apache-2.0", - "dependencies": { - "@smithy/types": "^3.3.0", - "tslib": "^2.6.2" - }, - "engines": { - "node": ">=16.0.0" - } - }, - "../core/node_modules/@smithy/querystring-builder": { - "version": "3.0.3", - "license": "Apache-2.0", - "dependencies": { - "@smithy/types": "^3.3.0", - "@smithy/util-uri-escape": "^3.0.0", - "tslib": "^2.6.2" - }, - "engines": { - "node": ">=16.0.0" - } - }, - "../core/node_modules/@smithy/querystring-parser": { - "version": "3.0.3", - "license": "Apache-2.0", - "dependencies": { - "@smithy/types": "^3.3.0", - "tslib": "^2.6.2" - }, - "engines": { - "node": ">=16.0.0" - } - }, - "../core/node_modules/@smithy/service-error-classification": { - "version": "3.0.3", - "license": "Apache-2.0", - "dependencies": { - "@smithy/types": "^3.3.0" - }, - "engines": { - "node": ">=16.0.0" - } - }, - "../core/node_modules/@smithy/shared-ini-file-loader": { - "version": "3.1.4", - "license": "Apache-2.0", - "dependencies": { - "@smithy/types": "^3.3.0", - "tslib": "^2.6.2" - }, - "engines": { - "node": ">=16.0.0" - } - }, - "../core/node_modules/@smithy/signature-v4": { - "version": "4.1.0", - "license": "Apache-2.0", - "dependencies": { - "@smithy/is-array-buffer": "^3.0.0", - "@smithy/protocol-http": "^4.1.0", - "@smithy/types": "^3.3.0", - "@smithy/util-hex-encoding": "^3.0.0", - "@smithy/util-middleware": "^3.0.3", - "@smithy/util-uri-escape": "^3.0.0", - "@smithy/util-utf8": "^3.0.0", - "tslib": "^2.6.2" - }, - "engines": { - "node": ">=16.0.0" - } - }, - "../core/node_modules/@smithy/smithy-client": { - "version": "3.1.12", - "license": "Apache-2.0", - "dependencies": { - "@smithy/middleware-endpoint": "^3.1.0", - "@smithy/middleware-stack": "^3.0.3", - "@smithy/protocol-http": "^4.1.0", - "@smithy/types": "^3.3.0", - "@smithy/util-stream": "^3.1.3", - "tslib": "^2.6.2" - }, - "engines": { - "node": ">=16.0.0" - } - }, - "../core/node_modules/@smithy/types": { - "version": "3.3.0", - "license": "Apache-2.0", - "dependencies": { - "tslib": "^2.6.2" - }, - "engines": { - "node": ">=16.0.0" - } - }, - "../core/node_modules/@smithy/url-parser": { - "version": "3.0.3", - "license": "Apache-2.0", - "dependencies": { - "@smithy/querystring-parser": "^3.0.3", - "@smithy/types": "^3.3.0", - "tslib": "^2.6.2" - } - }, - "../core/node_modules/@smithy/util-base64": { - "version": "3.0.0", - "license": "Apache-2.0", - "dependencies": { - "@smithy/util-buffer-from": "^3.0.0", - "@smithy/util-utf8": "^3.0.0", - "tslib": "^2.6.2" - }, - "engines": { - "node": ">=16.0.0" - } - }, - "../core/node_modules/@smithy/util-body-length-browser": { - "version": "3.0.0", - "license": "Apache-2.0", - "dependencies": { - "tslib": "^2.6.2" - } - }, - "../core/node_modules/@smithy/util-body-length-node": { - "version": "3.0.0", - "license": "Apache-2.0", - "dependencies": { - "tslib": "^2.6.2" - }, - "engines": { - "node": ">=16.0.0" - } - }, - "../core/node_modules/@smithy/util-buffer-from": { - "version": "3.0.0", - "license": "Apache-2.0", - "dependencies": { - "@smithy/is-array-buffer": "^3.0.0", - "tslib": "^2.6.2" - }, - "engines": { - "node": ">=16.0.0" - } - }, - "../core/node_modules/@smithy/util-config-provider": { - "version": "3.0.0", - "license": "Apache-2.0", - "dependencies": { - "tslib": "^2.6.2" - }, - "engines": { - "node": ">=16.0.0" - } - }, - "../core/node_modules/@smithy/util-defaults-mode-browser": { - "version": "3.0.14", - "license": "Apache-2.0", - "dependencies": { - "@smithy/property-provider": "^3.1.3", - "@smithy/smithy-client": "^3.1.12", - "@smithy/types": "^3.3.0", - "bowser": "^2.11.0", - "tslib": "^2.6.2" - }, - "engines": { - "node": ">= 10.0.0" - } - }, - "../core/node_modules/@smithy/util-defaults-mode-node": { - "version": "3.0.14", - "license": "Apache-2.0", - "dependencies": { - "@smithy/config-resolver": "^3.0.5", - "@smithy/credential-provider-imds": "^3.2.0", - "@smithy/node-config-provider": "^3.1.4", - "@smithy/property-provider": "^3.1.3", - "@smithy/smithy-client": "^3.1.12", - "@smithy/types": "^3.3.0", - "tslib": "^2.6.2" - }, - "engines": { - "node": ">= 10.0.0" - } - }, - "../core/node_modules/@smithy/util-endpoints": { - "version": "2.0.5", - "license": "Apache-2.0", - "dependencies": { - "@smithy/node-config-provider": "^3.1.4", - "@smithy/types": "^3.3.0", - "tslib": "^2.6.2" - }, - "engines": { - "node": ">=16.0.0" - } - }, - "../core/node_modules/@smithy/util-hex-encoding": { - "version": "3.0.0", - "license": "Apache-2.0", - "dependencies": { - "tslib": "^2.6.2" - }, - "engines": { - "node": ">=16.0.0" - } - }, - "../core/node_modules/@smithy/util-middleware": { - "version": "3.0.3", - "license": "Apache-2.0", - "dependencies": { - "@smithy/types": "^3.3.0", - "tslib": "^2.6.2" - }, - "engines": { - "node": ">=16.0.0" - } - }, - "../core/node_modules/@smithy/util-retry": { - "version": "3.0.3", - "license": "Apache-2.0", - "dependencies": { - "@smithy/service-error-classification": "^3.0.3", - "@smithy/types": "^3.3.0", - "tslib": "^2.6.2" - }, - "engines": { - "node": ">=16.0.0" - } - }, - "../core/node_modules/@smithy/util-stream": { - "version": "3.1.3", - "license": "Apache-2.0", - "dependencies": { - "@smithy/fetch-http-handler": "^3.2.4", - "@smithy/node-http-handler": "^3.1.4", - "@smithy/types": "^3.3.0", - "@smithy/util-base64": "^3.0.0", - "@smithy/util-buffer-from": "^3.0.0", - "@smithy/util-hex-encoding": "^3.0.0", - "@smithy/util-utf8": "^3.0.0", - "tslib": "^2.6.2" - }, - "engines": { - "node": ">=16.0.0" - } - }, - "../core/node_modules/@smithy/util-uri-escape": { - "version": "3.0.0", - "license": "Apache-2.0", - "dependencies": { - "tslib": "^2.6.2" - }, - "engines": { - "node": ">=16.0.0" - } - }, - "../core/node_modules/@smithy/util-utf8": { - "version": "3.0.0", - "license": "Apache-2.0", - "dependencies": { - "@smithy/util-buffer-from": "^3.0.0", - "tslib": "^2.6.2" - }, - "engines": { - "node": ">=16.0.0" - } - }, - "../core/node_modules/@socket.io/component-emitter": { - "version": "3.1.2", - "license": "MIT" - }, - "../core/node_modules/@tootallnate/once": { - "version": "1.1.2", - "license": "MIT", - "optional": true, - "engines": { - "node": ">= 6" - } - }, - "../core/node_modules/@tootallnate/quickjs-emscripten": { - "version": "0.23.0", - "license": "MIT" - }, - "../core/node_modules/@types/babel__core": { - "version": "7.20.5", - "dev": true, - "license": "MIT", - "dependencies": { - "@babel/parser": "^7.20.7", - "@babel/types": "^7.20.7", - "@types/babel__generator": "*", - "@types/babel__template": "*", - "@types/babel__traverse": "*" - } - }, - "../core/node_modules/@types/babel__generator": { - "version": "7.6.8", - "dev": true, - "license": "MIT", - "dependencies": { - "@babel/types": "^7.0.0" - } - }, - "../core/node_modules/@types/babel__template": { - "version": "7.4.4", - "dev": true, - "license": "MIT", - "dependencies": { - "@babel/parser": "^7.1.0", - "@babel/types": "^7.0.0" - } - }, - "../core/node_modules/@types/babel__traverse": { - "version": "7.20.5", - "dev": true, - "license": "MIT", - "dependencies": { - "@babel/types": "^7.20.7" - } - }, - "../core/node_modules/@types/caseless": { - "version": "0.12.5", - "dev": true, - "license": "MIT" - }, - "../core/node_modules/@types/command-line-args": { - "version": "5.2.0", - "license": "MIT", - "peer": true - }, - "../core/node_modules/@types/command-line-usage": { - "version": "5.0.2", - "license": "MIT", - "peer": true - }, - "../core/node_modules/@types/diff": { - "version": "5.2.2", - "dev": true, - "license": "MIT" - }, - "../core/node_modules/@types/follow-redirects": { - "version": "1.14.4", - "dev": true, - "license": "MIT", - "dependencies": { - "@types/node": "*" - } - }, - "../core/node_modules/@types/graceful-fs": { - "version": "4.1.9", - "dev": true, - "license": "MIT", - "dependencies": { - "@types/node": "*" - } - }, - "../core/node_modules/@types/istanbul-lib-coverage": { - "version": "2.0.6", - "dev": true, - "license": "MIT" - }, - "../core/node_modules/@types/istanbul-lib-report": { - "version": "3.0.3", - "dev": true, - "license": "MIT", - "dependencies": { - "@types/istanbul-lib-coverage": "*" - } - }, - "../core/node_modules/@types/istanbul-reports": { - "version": "3.0.4", - "dev": true, - "license": "MIT", - "dependencies": { - "@types/istanbul-lib-report": "*" - } - }, - "../core/node_modules/@types/jest": { - "version": "29.5.12", - "dev": true, - "license": "MIT", - "dependencies": { - "expect": "^29.0.0", - "pretty-format": "^29.0.0" - } - }, - "../core/node_modules/@types/jquery": { - "version": "3.5.30", - "dev": true, - "license": "MIT", - "dependencies": { - "@types/sizzle": "*" - } - }, - "../core/node_modules/@types/jsdom": { - "version": "21.1.6", - "dev": true, - "license": "MIT", - "dependencies": { - "@types/node": "*", - "@types/tough-cookie": "*", - "parse5": "^7.0.0" - } - }, - "../core/node_modules/@types/json5": { - "version": "0.0.29", - "license": "MIT" - }, - "../core/node_modules/@types/long": { - "version": "4.0.2", - "license": "MIT" - }, - "../core/node_modules/@types/mozilla-readability": { - "version": "0.2.1", - "dev": true, - "license": "MIT" - }, - "../core/node_modules/@types/mustache": { - "version": "4.2.5", - "dev": true, - "license": "MIT" - }, - "../core/node_modules/@types/node": { - "version": "20.3.0", - "license": "MIT" - }, - "../core/node_modules/@types/node-fetch": { - "version": "2.6.11", - "license": "MIT", - "dependencies": { - "@types/node": "*", - "form-data": "^4.0.0" - } - }, - "../core/node_modules/@types/node-forge": { - "version": "1.3.11", - "dev": true, - "license": "MIT", - "dependencies": { - "@types/node": "*" - } - }, - "../core/node_modules/@types/pad-left": { - "version": "2.1.1", - "license": "MIT", - "peer": true - }, - "../core/node_modules/@types/pg": { - "version": "8.11.6", - "dev": true, - "license": "MIT", - "dependencies": { - "@types/node": "*", - "pg-protocol": "*", - "pg-types": "^4.0.1" - } - }, - "../core/node_modules/@types/pg/node_modules/pg-types": { - "version": "4.0.2", - "dev": true, - "license": "MIT", - "dependencies": { - "pg-int8": "1.0.1", - "pg-numeric": "1.0.2", - "postgres-array": "~3.0.1", - "postgres-bytea": "~3.0.0", - "postgres-date": "~2.1.0", - "postgres-interval": "^3.0.0", - "postgres-range": "^1.1.1" - }, - "engines": { - "node": ">=10" - } - }, - "../core/node_modules/@types/pg/node_modules/postgres-array": { - "version": "3.0.2", - "dev": true, - "license": "MIT", - "engines": { - "node": ">=12" - } - }, - "../core/node_modules/@types/pg/node_modules/postgres-bytea": { - "version": "3.0.0", - "dev": true, - "license": "MIT", - "dependencies": { - "obuf": "~1.1.2" - }, - "engines": { - "node": ">= 6" - } - }, - "../core/node_modules/@types/pg/node_modules/postgres-date": { - "version": "2.1.0", - "dev": true, - "license": "MIT", - "engines": { - "node": ">=12" - } - }, - "../core/node_modules/@types/pg/node_modules/postgres-interval": { - "version": "3.0.0", - "dev": true, - "license": "MIT", - "engines": { - "node": ">=12" - } - }, - "../core/node_modules/@types/request": { - "version": "2.48.12", - "dev": true, - "license": "MIT", - "dependencies": { - "@types/caseless": "*", - "@types/node": "*", - "@types/tough-cookie": "*", - "form-data": "^2.5.0" - } - }, - "../core/node_modules/@types/request/node_modules/form-data": { - "version": "2.5.1", - "dev": true, - "license": "MIT", - "dependencies": { - "asynckit": "^0.4.0", - "combined-stream": "^1.0.6", - "mime-types": "^2.1.12" - }, - "engines": { - "node": ">= 0.12" - } - }, - "../core/node_modules/@types/sizzle": { - "version": "2.3.8", - "dev": true, - "license": "MIT" - }, - "../core/node_modules/@types/stack-utils": { - "version": "2.0.3", - "dev": true, - "license": "MIT" - }, - "../core/node_modules/@types/tough-cookie": { - "version": "4.0.5", - "dev": true, - "license": "MIT" - }, - "../core/node_modules/@types/uuid": { - "version": "9.0.8", - "dev": true, - "license": "MIT" - }, - "../core/node_modules/@types/win-ca": { - "version": "3.5.4", - "dev": true, - "license": "MIT", - "dependencies": { - "@types/node": "*", - "@types/node-forge": "*" - } - }, - "../core/node_modules/@types/yargs": { - "version": "17.0.32", - "dev": true, - "license": "MIT", - "dependencies": { - "@types/yargs-parser": "*" - } - }, - "../core/node_modules/@types/yargs-parser": { - "version": "21.0.3", - "dev": true, - "license": "MIT" - }, - "../core/node_modules/@types/yauzl": { - "version": "2.10.3", - "license": "MIT", - "optional": true, - "dependencies": { - "@types/node": "*" - } - }, - "../core/node_modules/@typescript-eslint/eslint-plugin": { - "version": "7.10.0", - "license": "MIT", - "dependencies": { - "@eslint-community/regexpp": "^4.10.0", - "@typescript-eslint/scope-manager": "7.10.0", - "@typescript-eslint/type-utils": "7.10.0", - "@typescript-eslint/utils": "7.10.0", - "@typescript-eslint/visitor-keys": "7.10.0", - "graphemer": "^1.4.0", - "ignore": "^5.3.1", - "natural-compare": "^1.4.0", - "ts-api-utils": "^1.3.0" - }, - "engines": { - "node": "^18.18.0 || >=20.0.0" - }, - "funding": { - "type": "opencollective", - "url": "https://opencollective.com/typescript-eslint" - }, - "peerDependencies": { - "@typescript-eslint/parser": "^7.0.0", - "eslint": "^8.56.0" - }, - "peerDependenciesMeta": { - "typescript": { - "optional": true - } - } - }, - "../core/node_modules/@typescript-eslint/parser": { - "version": "7.10.0", - "license": "BSD-2-Clause", - "dependencies": { - "@typescript-eslint/scope-manager": "7.10.0", - "@typescript-eslint/types": "7.10.0", - "@typescript-eslint/typescript-estree": "7.10.0", - "@typescript-eslint/visitor-keys": "7.10.0", - "debug": "^4.3.4" - }, - "engines": { - "node": "^18.18.0 || >=20.0.0" - }, - "funding": { - "type": "opencollective", - "url": "https://opencollective.com/typescript-eslint" - }, - "peerDependencies": { - "eslint": "^8.56.0" - }, - "peerDependenciesMeta": { - "typescript": { - "optional": true - } - } - }, - "../core/node_modules/@typescript-eslint/scope-manager": { - "version": "7.10.0", - "license": "MIT", - "dependencies": { - "@typescript-eslint/types": "7.10.0", - "@typescript-eslint/visitor-keys": "7.10.0" - }, - "engines": { - "node": "^18.18.0 || >=20.0.0" - }, - "funding": { - "type": "opencollective", - "url": "https://opencollective.com/typescript-eslint" - } - }, - "../core/node_modules/@typescript-eslint/type-utils": { - "version": "7.10.0", - "license": "MIT", - "dependencies": { - "@typescript-eslint/typescript-estree": "7.10.0", - "@typescript-eslint/utils": "7.10.0", - "debug": "^4.3.4", - "ts-api-utils": "^1.3.0" - }, - "engines": { - "node": "^18.18.0 || >=20.0.0" - }, - "funding": { - "type": "opencollective", - "url": "https://opencollective.com/typescript-eslint" - }, - "peerDependencies": { - "eslint": "^8.56.0" - }, - "peerDependenciesMeta": { - "typescript": { - "optional": true - } - } - }, - "../core/node_modules/@typescript-eslint/types": { - "version": "7.10.0", - "license": "MIT", - "engines": { - "node": "^18.18.0 || >=20.0.0" - }, - "funding": { - "type": "opencollective", - "url": "https://opencollective.com/typescript-eslint" - } - }, - "../core/node_modules/@typescript-eslint/typescript-estree": { - "version": "7.10.0", - "license": "BSD-2-Clause", - "dependencies": { - "@typescript-eslint/types": "7.10.0", - "@typescript-eslint/visitor-keys": "7.10.0", - "debug": "^4.3.4", - "globby": "^11.1.0", - "is-glob": "^4.0.3", - "minimatch": "^9.0.4", - "semver": "^7.6.0", - "ts-api-utils": "^1.3.0" - }, - "engines": { - "node": "^18.18.0 || >=20.0.0" - }, - "funding": { - "type": "opencollective", - "url": "https://opencollective.com/typescript-eslint" - }, - "peerDependenciesMeta": { - "typescript": { - "optional": true - } - } - }, - "../core/node_modules/@typescript-eslint/utils": { - "version": "7.10.0", - "license": "MIT", - "dependencies": { - "@eslint-community/eslint-utils": "^4.4.0", - "@typescript-eslint/scope-manager": "7.10.0", - "@typescript-eslint/types": "7.10.0", - "@typescript-eslint/typescript-estree": "7.10.0" - }, - "engines": { - "node": "^18.18.0 || >=20.0.0" - }, - "funding": { - "type": "opencollective", - "url": "https://opencollective.com/typescript-eslint" - }, - "peerDependencies": { - "eslint": "^8.56.0" - } - }, - "../core/node_modules/@typescript-eslint/visitor-keys": { - "version": "7.10.0", - "license": "MIT", - "dependencies": { - "@typescript-eslint/types": "7.10.0", - "eslint-visitor-keys": "^3.4.3" - }, - "engines": { - "node": "^18.18.0 || >=20.0.0" - }, - "funding": { - "type": "opencollective", - "url": "https://opencollective.com/typescript-eslint" - } - }, - "../core/node_modules/@ungap/structured-clone": { - "version": "1.2.0", - "license": "ISC" - }, - "../core/node_modules/@xenova/transformers": { - "version": "2.14.0", - "license": "Apache-2.0", - "dependencies": { - "@huggingface/jinja": "^0.1.0", - "onnxruntime-web": "1.14.0", - "sharp": "^0.32.0" - }, - "optionalDependencies": { - "onnxruntime-node": "1.14.0" - } - }, - "../core/node_modules/@yomguithereal/helpers": { - "version": "1.1.1", - "license": "MIT" - }, - "../core/node_modules/abab": { - "version": "2.0.6", - "dev": true, - "license": "BSD-3-Clause" - }, - "../core/node_modules/abbrev": { - "version": "1.1.1", - "license": "ISC", - "optional": true - }, - "../core/node_modules/abort-controller": { - "version": "3.0.0", - "license": "MIT", - "dependencies": { - "event-target-shim": "^5.0.0" - }, - "engines": { - "node": ">=6.5" - } - }, - "../core/node_modules/acorn": { - "version": "8.11.3", - "license": "MIT", - "bin": { - "acorn": "bin/acorn" - }, - "engines": { - "node": ">=0.4.0" - } - }, - "../core/node_modules/acorn-globals": { - "version": "7.0.1", - "dev": true, - "license": "MIT", - "dependencies": { - "acorn": "^8.1.0", - "acorn-walk": "^8.0.2" - } - }, - "../core/node_modules/acorn-jsx": { - "version": "5.3.2", - "license": "MIT", - "peerDependencies": { - "acorn": "^6.0.0 || ^7.0.0 || ^8.0.0" - } - }, - "../core/node_modules/acorn-walk": { - "version": "8.3.3", - "dev": true, - "license": "MIT", - "dependencies": { - "acorn": "^8.11.0" - }, - "engines": { - "node": ">=0.4.0" - } - }, - "../core/node_modules/adf-to-md": { - "version": "1.1.0", - "license": "MIT", - "dependencies": { - "eslint-config-nodebb": "0.1.1" - } - }, - "../core/node_modules/agent-base": { - "version": "7.1.1", - "license": "MIT", - "dependencies": { - "debug": "^4.3.4" - }, - "engines": { - "node": ">= 14" - } - }, - "../core/node_modules/agentkeepalive": { - "version": "4.5.0", - "license": "MIT", - "dependencies": { - "humanize-ms": "^1.2.1" - }, - "engines": { - "node": ">= 8.0.0" - } - }, - "../core/node_modules/aggregate-error": { - "version": "3.1.0", - "license": "MIT", - "optional": true, - "dependencies": { - "clean-stack": "^2.0.0", - "indent-string": "^4.0.0" - }, - "engines": { - "node": ">=8" - } - }, - "../core/node_modules/ajv": { - "version": "6.12.6", - "license": "MIT", - "dependencies": { - "fast-deep-equal": "^3.1.1", - "fast-json-stable-stringify": "^2.0.0", - "json-schema-traverse": "^0.4.1", - "uri-js": "^4.2.2" - }, - "funding": { - "type": "github", - "url": "https://github.com/sponsors/epoberezkin" - } - }, - "../core/node_modules/ansi-escapes": { - "version": "4.3.2", - "dev": true, - "license": "MIT", - "dependencies": { - "type-fest": "^0.21.3" - }, - "engines": { - "node": ">=8" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - }, - "../core/node_modules/ansi-escapes/node_modules/type-fest": { - "version": "0.21.3", - "dev": true, - "license": "(MIT OR CC0-1.0)", - "engines": { - "node": ">=10" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - }, - "../core/node_modules/ansi-regex": { - "version": "5.0.1", - "license": "MIT", - "engines": { - "node": ">=8" - } - }, - "../core/node_modules/ansi-styles": { - "version": "4.3.0", - "license": "MIT", - "dependencies": { - "color-convert": "^2.0.1" - }, - "engines": { - "node": ">=8" - }, - "funding": { - "url": "https://github.com/chalk/ansi-styles?sponsor=1" - } - }, - "../core/node_modules/anymatch": { - "version": "3.1.3", - "dev": true, - "license": "ISC", - "dependencies": { - "normalize-path": "^3.0.0", - "picomatch": "^2.0.4" - }, - "engines": { - "node": ">= 8" - } - }, - "../core/node_modules/apache-arrow": { - "version": "14.0.2", - "license": "Apache-2.0", - "peer": true, - "dependencies": { - "@types/command-line-args": "5.2.0", - "@types/command-line-usage": "5.0.2", - "@types/node": "20.3.0", - "@types/pad-left": "2.1.1", - "command-line-args": "5.2.1", - "command-line-usage": "7.0.1", - "flatbuffers": "23.5.26", - "json-bignum": "^0.0.3", - "pad-left": "^2.1.0", - "tslib": "^2.5.3" - }, - "bin": { - "arrow2csv": "bin/arrow2csv.js" - } - }, - "../core/node_modules/aproba": { - "version": "2.0.0", - "license": "ISC" - }, - "../core/node_modules/are-we-there-yet": { - "version": "3.0.1", - "license": "ISC", - "optional": true, - "dependencies": { - "delegates": "^1.0.0", - "readable-stream": "^3.6.0" - }, - "engines": { - "node": "^12.13.0 || ^14.15.0 || >=16.0.0" - } - }, - "../core/node_modules/are-we-there-yet/node_modules/readable-stream": { - "version": "3.6.2", - "license": "MIT", - "optional": true, - "dependencies": { - "inherits": "^2.0.3", - "string_decoder": "^1.1.1", - "util-deprecate": "^1.0.1" - }, - "engines": { - "node": ">= 6" - } - }, - "../core/node_modules/argparse": { - "version": "2.0.1", - "license": "Python-2.0" - }, - "../core/node_modules/array-back": { - "version": "3.1.0", - "license": "MIT", - "peer": true, - "engines": { - "node": ">=6" - } - }, - "../core/node_modules/array-buffer-byte-length": { - "version": "1.0.1", - "license": "MIT", - "dependencies": { - "call-bind": "^1.0.5", - "is-array-buffer": "^3.0.4" - }, - "engines": { - "node": ">= 0.4" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, - "../core/node_modules/array-includes": { - "version": "3.1.8", - "license": "MIT", - "dependencies": { - "call-bind": "^1.0.7", - "define-properties": "^1.2.1", - "es-abstract": "^1.23.2", - "es-object-atoms": "^1.0.0", - "get-intrinsic": "^1.2.4", - "is-string": "^1.0.7" - }, - "engines": { - "node": ">= 0.4" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, - "../core/node_modules/array-timsort": { - "version": "1.0.3", - "license": "MIT" - }, - "../core/node_modules/array-union": { - "version": "2.1.0", - "license": "MIT", - "engines": { - "node": ">=8" - } - }, - "../core/node_modules/array.prototype.findlastindex": { - "version": "1.2.5", - "license": "MIT", - "dependencies": { - "call-bind": "^1.0.7", - "define-properties": "^1.2.1", - "es-abstract": "^1.23.2", - "es-errors": "^1.3.0", - "es-object-atoms": "^1.0.0", - "es-shim-unscopables": "^1.0.2" - }, - "engines": { - "node": ">= 0.4" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, - "../core/node_modules/array.prototype.flat": { - "version": "1.3.2", - "license": "MIT", - "dependencies": { - "call-bind": "^1.0.2", - "define-properties": "^1.2.0", - "es-abstract": "^1.22.1", - "es-shim-unscopables": "^1.0.0" - }, - "engines": { - "node": ">= 0.4" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, - "../core/node_modules/array.prototype.flatmap": { - "version": "1.3.2", - "license": "MIT", - "dependencies": { - "call-bind": "^1.0.2", - "define-properties": "^1.2.0", - "es-abstract": "^1.22.1", - "es-shim-unscopables": "^1.0.0" - }, - "engines": { - "node": ">= 0.4" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, - "../core/node_modules/arraybuffer.prototype.slice": { - "version": "1.0.3", - "license": "MIT", - "dependencies": { - "array-buffer-byte-length": "^1.0.1", - "call-bind": "^1.0.5", - "define-properties": "^1.2.1", - "es-abstract": "^1.22.3", - "es-errors": "^1.2.1", - "get-intrinsic": "^1.2.3", - "is-array-buffer": "^3.0.4", - "is-shared-array-buffer": "^1.0.2" - }, - "engines": { - "node": ">= 0.4" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, - "../core/node_modules/asn1": { - "version": "0.2.6", - "license": "MIT", - "dependencies": { - "safer-buffer": "~2.1.0" - } - }, - "../core/node_modules/assert-plus": { - "version": "1.0.0", - "license": "MIT", - "engines": { - "node": ">=0.8" - } - }, - "../core/node_modules/ast-types": { - "version": "0.13.4", - "license": "MIT", - "dependencies": { - "tslib": "^2.0.1" - }, - "engines": { - "node": ">=4" - } - }, - "../core/node_modules/async-mutex": { - "version": "0.5.0", - "license": "MIT", - "dependencies": { - "tslib": "^2.4.0" - } - }, - "../core/node_modules/asynckit": { - "version": "0.4.0", - "license": "MIT" - }, - "../core/node_modules/available-typed-arrays": { - "version": "1.0.7", - "license": "MIT", - "dependencies": { - "possible-typed-array-names": "^1.0.0" - }, - "engines": { - "node": ">= 0.4" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, - "../core/node_modules/aws-sign2": { - "version": "0.7.0", - "license": "Apache-2.0", - "engines": { - "node": "*" - } - }, - "../core/node_modules/aws4": { - "version": "1.13.0", - "license": "MIT" - }, - "../core/node_modules/axios": { - "version": "1.7.1", - "license": "MIT", - "dependencies": { - "follow-redirects": "^1.15.6", - "form-data": "^4.0.0", - "proxy-from-env": "^1.1.0" - } - }, - "../core/node_modules/b4a": { - "version": "1.6.6", - "license": "Apache-2.0" - }, - "../core/node_modules/babel-jest": { - "version": "29.7.0", - "dev": true, - "license": "MIT", - "dependencies": { - "@jest/transform": "^29.7.0", - "@types/babel__core": "^7.1.14", - "babel-plugin-istanbul": "^6.1.1", - "babel-preset-jest": "^29.6.3", - "chalk": "^4.0.0", - "graceful-fs": "^4.2.9", - "slash": "^3.0.0" - }, - "engines": { - "node": "^14.15.0 || ^16.10.0 || >=18.0.0" - }, - "peerDependencies": { - "@babel/core": "^7.8.0" - } - }, - "../core/node_modules/babel-plugin-istanbul": { - "version": "6.1.1", - "dev": true, - "license": "BSD-3-Clause", - "dependencies": { - "@babel/helper-plugin-utils": "^7.0.0", - "@istanbuljs/load-nyc-config": "^1.0.0", - "@istanbuljs/schema": "^0.1.2", - "istanbul-lib-instrument": "^5.0.4", - "test-exclude": "^6.0.0" - }, - "engines": { - "node": ">=8" - } - }, - "../core/node_modules/babel-plugin-istanbul/node_modules/istanbul-lib-instrument": { - "version": "5.2.1", - "dev": true, - "license": "BSD-3-Clause", - "dependencies": { - "@babel/core": "^7.12.3", - "@babel/parser": "^7.14.7", - "@istanbuljs/schema": "^0.1.2", - "istanbul-lib-coverage": "^3.2.0", - "semver": "^6.3.0" - }, - "engines": { - "node": ">=8" - } - }, - "../core/node_modules/babel-plugin-istanbul/node_modules/semver": { - "version": "6.3.1", - "dev": true, - "license": "ISC", - "bin": { - "semver": "bin/semver.js" - } - }, - "../core/node_modules/babel-plugin-jest-hoist": { - "version": "29.6.3", - "dev": true, - "license": "MIT", - "dependencies": { - "@babel/template": "^7.3.3", - "@babel/types": "^7.3.3", - "@types/babel__core": "^7.1.14", - "@types/babel__traverse": "^7.0.6" - }, - "engines": { - "node": "^14.15.0 || ^16.10.0 || >=18.0.0" - } - }, - "../core/node_modules/babel-plugin-polyfill-corejs2": { - "version": "0.4.11", - "dev": true, - "license": "MIT", - "dependencies": { - "@babel/compat-data": "^7.22.6", - "@babel/helper-define-polyfill-provider": "^0.6.2", - "semver": "^6.3.1" - }, - "peerDependencies": { - "@babel/core": "^7.4.0 || ^8.0.0-0 <8.0.0" - } - }, - "../core/node_modules/babel-plugin-polyfill-corejs2/node_modules/semver": { - "version": "6.3.1", - "dev": true, - "license": "ISC", - "bin": { - "semver": "bin/semver.js" - } - }, - "../core/node_modules/babel-plugin-polyfill-corejs3": { - "version": "0.10.4", - "dev": true, - "license": "MIT", - "dependencies": { - "@babel/helper-define-polyfill-provider": "^0.6.1", - "core-js-compat": "^3.36.1" - }, - "peerDependencies": { - "@babel/core": "^7.4.0 || ^8.0.0-0 <8.0.0" - } - }, - "../core/node_modules/babel-plugin-polyfill-regenerator": { - "version": "0.6.2", - "dev": true, - "license": "MIT", - "dependencies": { - "@babel/helper-define-polyfill-provider": "^0.6.2" - }, - "peerDependencies": { - "@babel/core": "^7.4.0 || ^8.0.0-0 <8.0.0" - } - }, - "../core/node_modules/babel-preset-current-node-syntax": { - "version": "1.0.1", - "dev": true, - "license": "MIT", - "dependencies": { - "@babel/plugin-syntax-async-generators": "^7.8.4", - "@babel/plugin-syntax-bigint": "^7.8.3", - "@babel/plugin-syntax-class-properties": "^7.8.3", - "@babel/plugin-syntax-import-meta": "^7.8.3", - "@babel/plugin-syntax-json-strings": "^7.8.3", - "@babel/plugin-syntax-logical-assignment-operators": "^7.8.3", - "@babel/plugin-syntax-nullish-coalescing-operator": "^7.8.3", - "@babel/plugin-syntax-numeric-separator": "^7.8.3", - "@babel/plugin-syntax-object-rest-spread": "^7.8.3", - "@babel/plugin-syntax-optional-catch-binding": "^7.8.3", - "@babel/plugin-syntax-optional-chaining": "^7.8.3", - "@babel/plugin-syntax-top-level-await": "^7.8.3" - }, - "peerDependencies": { - "@babel/core": "^7.0.0" - } - }, - "../core/node_modules/babel-preset-jest": { - "version": "29.6.3", - "dev": true, - "license": "MIT", - "dependencies": { - "babel-plugin-jest-hoist": "^29.6.3", - "babel-preset-current-node-syntax": "^1.0.0" - }, - "engines": { - "node": "^14.15.0 || ^16.10.0 || >=18.0.0" - }, - "peerDependencies": { - "@babel/core": "^7.0.0" - } - }, - "../core/node_modules/balanced-match": { - "version": "1.0.2", - "license": "MIT" - }, - "../core/node_modules/bare-events": { - "version": "2.2.2", - "license": "Apache-2.0", - "optional": true - }, - "../core/node_modules/bare-fs": { - "version": "2.3.0", - "license": "Apache-2.0", - "optional": true, - "dependencies": { - "bare-events": "^2.0.0", - "bare-path": "^2.0.0", - "bare-stream": "^1.0.0" - } - }, - "../core/node_modules/bare-os": { - "version": "2.3.0", - "license": "Apache-2.0", - "optional": true - }, - "../core/node_modules/bare-path": { - "version": "2.1.2", - "license": "Apache-2.0", - "optional": true, - "dependencies": { - "bare-os": "^2.1.0" - } - }, - "../core/node_modules/bare-stream": { - "version": "1.0.0", - "license": "Apache-2.0", - "optional": true, - "dependencies": { - "streamx": "^2.16.1" - } - }, - "../core/node_modules/base64-js": { - "version": "1.5.1", - "funding": [ - { - "type": "github", - "url": "https://github.com/sponsors/feross" - }, - { - "type": "patreon", - "url": "https://www.patreon.com/feross" - }, - { - "type": "consulting", - "url": "https://feross.org/support" - } - ], - "license": "MIT" - }, - "../core/node_modules/basic-ftp": { - "version": "5.0.5", - "license": "MIT", - "engines": { - "node": ">=10.0.0" - } - }, - "../core/node_modules/bcrypt-pbkdf": { - "version": "1.0.2", - "license": "BSD-3-Clause", - "dependencies": { - "tweetnacl": "^0.14.3" - } - }, - "../core/node_modules/before-after-hook": { - "version": "2.2.3", - "license": "Apache-2.0" - }, - "../core/node_modules/bindings": { - "version": "1.5.0", - "license": "MIT", - "dependencies": { - "file-uri-to-path": "1.0.0" - } - }, - "../core/node_modules/bl": { - "version": "4.1.0", - "license": "MIT", - "dependencies": { - "buffer": "^5.5.0", - "inherits": "^2.0.4", - "readable-stream": "^3.4.0" - } - }, - "../core/node_modules/bl/node_modules/buffer": { - "version": "5.7.1", - "funding": [ - { - "type": "github", - "url": "https://github.com/sponsors/feross" - }, - { - "type": "patreon", - "url": "https://www.patreon.com/feross" - }, - { - "type": "consulting", - "url": "https://feross.org/support" - } - ], - "license": "MIT", - "dependencies": { - "base64-js": "^1.3.1", - "ieee754": "^1.1.13" - } - }, - "../core/node_modules/bl/node_modules/readable-stream": { - "version": "3.6.2", - "license": "MIT", - "dependencies": { - "inherits": "^2.0.3", - "string_decoder": "^1.1.1", - "util-deprecate": "^1.0.1" - }, - "engines": { - "node": ">= 6" - } - }, - "../core/node_modules/boolbase": { - "version": "1.0.0", - "license": "ISC" - }, - "../core/node_modules/bowser": { - "version": "2.11.0", - "license": "MIT" - }, - "../core/node_modules/brace-expansion": { - "version": "2.0.1", - "license": "MIT", - "dependencies": { - "balanced-match": "^1.0.0" - } - }, - "../core/node_modules/braces": { - "version": "3.0.3", - "license": "MIT", - "dependencies": { - "fill-range": "^7.1.1" - }, - "engines": { - "node": ">=8" - } - }, - "../core/node_modules/browserslist": { - "version": "4.23.0", - "dev": true, - "funding": [ - { - "type": "opencollective", - "url": "https://opencollective.com/browserslist" - }, - { - "type": "tidelift", - "url": "https://tidelift.com/funding/github/npm/browserslist" - }, - { - "type": "github", - "url": "https://github.com/sponsors/ai" - } - ], - "license": "MIT", - "dependencies": { - "caniuse-lite": "^1.0.30001587", - "electron-to-chromium": "^1.4.668", - "node-releases": "^2.0.14", - "update-browserslist-db": "^1.0.13" - }, - "bin": { - "browserslist": "cli.js" - }, - "engines": { - "node": "^6 || ^7 || ^8 || ^9 || ^10 || ^11 || ^12 || >=13.7" - } - }, - "../core/node_modules/bs-logger": { - "version": "0.2.6", - "dev": true, - "license": "MIT", - "dependencies": { - "fast-json-stable-stringify": "2.x" - }, - "engines": { - "node": ">= 6" - } - }, - "../core/node_modules/bser": { - "version": "2.1.1", - "dev": true, - "license": "Apache-2.0", - "dependencies": { - "node-int64": "^0.4.0" - } - }, - "../core/node_modules/buffer": { - "version": "6.0.3", - "funding": [ - { - "type": "github", - "url": "https://github.com/sponsors/feross" - }, - { - "type": "patreon", - "url": "https://www.patreon.com/feross" - }, - { - "type": "consulting", - "url": "https://feross.org/support" - } - ], - "license": "MIT", - "optional": true, - "dependencies": { - "base64-js": "^1.3.1", - "ieee754": "^1.2.1" - } - }, - "../core/node_modules/buffer-crc32": { - "version": "0.2.13", - "license": "MIT", - "engines": { - "node": "*" - } - }, - "../core/node_modules/buffer-from": { - "version": "1.1.2", - "dev": true, - "license": "MIT" - }, - "../core/node_modules/cacache": { - "version": "15.3.0", - "license": "ISC", - "optional": true, - "dependencies": { - "@npmcli/fs": "^1.0.0", - "@npmcli/move-file": "^1.0.1", - "chownr": "^2.0.0", - "fs-minipass": "^2.0.0", - "glob": "^7.1.4", - "infer-owner": "^1.0.4", - "lru-cache": "^6.0.0", - "minipass": "^3.1.1", - "minipass-collect": "^1.0.2", - "minipass-flush": "^1.0.5", - "minipass-pipeline": "^1.2.2", - "mkdirp": "^1.0.3", - "p-map": "^4.0.0", - "promise-inflight": "^1.0.1", - "rimraf": "^3.0.2", - "ssri": "^8.0.1", - "tar": "^6.0.2", - "unique-filename": "^1.1.1" - }, - "engines": { - "node": ">= 10" - } - }, - "../core/node_modules/cacache/node_modules/lru-cache": { - "version": "6.0.0", - "license": "ISC", - "optional": true, - "dependencies": { - "yallist": "^4.0.0" - }, - "engines": { - "node": ">=10" - } - }, - "../core/node_modules/cacache/node_modules/yallist": { - "version": "4.0.0", - "license": "ISC", - "optional": true - }, - "../core/node_modules/call-bind": { - "version": "1.0.7", - "license": "MIT", - "dependencies": { - "es-define-property": "^1.0.0", - "es-errors": "^1.3.0", - "function-bind": "^1.1.2", - "get-intrinsic": "^1.2.4", - "set-function-length": "^1.2.1" - }, - "engines": { - "node": ">= 0.4" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, - "../core/node_modules/callsites": { - "version": "3.1.0", - "license": "MIT", - "engines": { - "node": ">=6" - } - }, - "../core/node_modules/camelcase": { - "version": "5.3.1", - "dev": true, - "license": "MIT", - "engines": { - "node": ">=6" - } - }, - "../core/node_modules/caniuse-lite": { - "version": "1.0.30001620", - "dev": true, - "funding": [ - { - "type": "opencollective", - "url": "https://opencollective.com/browserslist" - }, - { - "type": "tidelift", - "url": "https://tidelift.com/funding/github/npm/caniuse-lite" - }, - { - "type": "github", - "url": "https://github.com/sponsors/ai" - } - ], - "license": "CC-BY-4.0" - }, - "../core/node_modules/caseless": { - "version": "0.12.0", - "license": "Apache-2.0" - }, - "../core/node_modules/chalk": { - "version": "4.1.2", - "license": "MIT", - "dependencies": { - "ansi-styles": "^4.1.0", - "supports-color": "^7.1.0" - }, - "engines": { - "node": ">=10" - }, - "funding": { - "url": "https://github.com/chalk/chalk?sponsor=1" - } - }, - "../core/node_modules/chalk-template": { - "version": "0.4.0", - "license": "MIT", - "peer": true, - "dependencies": { - "chalk": "^4.1.2" - }, - "engines": { - "node": ">=12" - }, - "funding": { - "url": "https://github.com/chalk/chalk-template?sponsor=1" - } - }, - "../core/node_modules/char-regex": { - "version": "1.0.2", - "dev": true, - "license": "MIT", - "engines": { - "node": ">=10" - } - }, - "../core/node_modules/cheerio": { - "version": "1.0.0", - "license": "MIT", - "dependencies": { - "cheerio-select": "^2.1.0", - "dom-serializer": "^2.0.0", - "domhandler": "^5.0.3", - "domutils": "^3.1.0", - "encoding-sniffer": "^0.2.0", - "htmlparser2": "^9.1.0", - "parse5": "^7.1.2", - "parse5-htmlparser2-tree-adapter": "^7.0.0", - "parse5-parser-stream": "^7.1.2", - "undici": "^6.19.5", - "whatwg-mimetype": "^4.0.0" - }, - "engines": { - "node": ">=18.17" - }, - "funding": { - "url": "https://github.com/cheeriojs/cheerio?sponsor=1" - } - }, - "../core/node_modules/cheerio-select": { - "version": "2.1.0", - "license": "BSD-2-Clause", - "dependencies": { - "boolbase": "^1.0.0", - "css-select": "^5.1.0", - "css-what": "^6.1.0", - "domelementtype": "^2.3.0", - "domhandler": "^5.0.3", - "domutils": "^3.0.1" - }, - "funding": { - "url": "https://github.com/sponsors/fb55" - } - }, - "../core/node_modules/chownr": { - "version": "2.0.0", - "license": "ISC", - "engines": { - "node": ">=10" - } - }, - "../core/node_modules/chromium-bidi": { - "version": "0.6.3", - "license": "Apache-2.0", - "dependencies": { - "mitt": "3.0.1", - "urlpattern-polyfill": "10.0.0", - "zod": "3.23.8" - }, - "peerDependencies": { - "devtools-protocol": "*" - } - }, - "../core/node_modules/ci-info": { - "version": "3.9.0", - "dev": true, - "funding": [ - { - "type": "github", - "url": "https://github.com/sponsors/sibiraj-s" - } - ], - "license": "MIT", - "engines": { - "node": ">=8" - } - }, - "../core/node_modules/cjs-module-lexer": { - "version": "1.3.1", - "dev": true, - "license": "MIT" - }, - "../core/node_modules/clean-stack": { - "version": "2.2.0", - "license": "MIT", - "optional": true, - "engines": { - "node": ">=6" - } - }, - "../core/node_modules/cliui": { - "version": "8.0.1", - "license": "ISC", - "dependencies": { - "string-width": "^4.2.0", - "strip-ansi": "^6.0.1", - "wrap-ansi": "^7.0.0" - }, - "engines": { - "node": ">=12" - } - }, - "../core/node_modules/co": { - "version": "4.6.0", - "dev": true, - "license": "MIT", - "engines": { - "iojs": ">= 1.0.0", - "node": ">= 0.12.0" - } - }, - "../core/node_modules/collect-v8-coverage": { - "version": "1.0.2", - "dev": true, - "license": "MIT" - }, - "../core/node_modules/color": { - "version": "4.2.3", - "license": "MIT", - "dependencies": { - "color-convert": "^2.0.1", - "color-string": "^1.9.0" - }, - "engines": { - "node": ">=12.5.0" - } - }, - "../core/node_modules/color-convert": { - "version": "2.0.1", - "license": "MIT", - "dependencies": { - "color-name": "~1.1.4" - }, - "engines": { - "node": ">=7.0.0" - } - }, - "../core/node_modules/color-name": { - "version": "1.1.4", - "license": "MIT" - }, - "../core/node_modules/color-string": { - "version": "1.9.1", - "license": "MIT", - "dependencies": { - "color-name": "^1.0.0", - "simple-swizzle": "^0.2.2" - } - }, - "../core/node_modules/color-support": { - "version": "1.1.3", - "license": "ISC", - "bin": { - "color-support": "bin.js" - } - }, - "../core/node_modules/combined-stream": { - "version": "1.0.8", - "license": "MIT", - "dependencies": { - "delayed-stream": "~1.0.0" - }, - "engines": { - "node": ">= 0.8" - } - }, - "../core/node_modules/command-line-args": { - "version": "5.2.1", - "license": "MIT", - "peer": true, - "dependencies": { - "array-back": "^3.1.0", - "find-replace": "^3.0.0", - "lodash.camelcase": "^4.3.0", - "typical": "^4.0.0" - }, - "engines": { - "node": ">=4.0.0" - } - }, - "../core/node_modules/command-line-usage": { - "version": "7.0.1", - "license": "MIT", - "peer": true, - "dependencies": { - "array-back": "^6.2.2", - "chalk-template": "^0.4.0", - "table-layout": "^3.0.0", - "typical": "^7.1.1" - }, - "engines": { - "node": ">=12.20.0" - } - }, - "../core/node_modules/command-line-usage/node_modules/array-back": { - "version": "6.2.2", - "license": "MIT", - "peer": true, - "engines": { - "node": ">=12.17" - } - }, - "../core/node_modules/command-line-usage/node_modules/typical": { - "version": "7.1.1", - "license": "MIT", - "peer": true, - "engines": { - "node": ">=12.17" - } - }, - "../core/node_modules/commander": { - "version": "12.1.0", - "license": "MIT", - "engines": { - "node": ">=18" - } - }, - "../core/node_modules/comment-json": { - "version": "4.2.3", - "license": "MIT", - "dependencies": { - "array-timsort": "^1.0.3", - "core-util-is": "^1.0.3", - "esprima": "^4.0.1", - "has-own-prop": "^2.0.0", - "repeat-string": "^1.6.1" - }, - "engines": { - "node": ">= 6" - } - }, - "../core/node_modules/comment-json/node_modules/core-util-is": { - "version": "1.0.3", - "license": "MIT" - }, - "../core/node_modules/concat-map": { - "version": "0.0.1", - "license": "MIT" - }, - "../core/node_modules/confusing-browser-globals": { - "version": "1.0.11", - "license": "MIT" - }, - "../core/node_modules/console-control-strings": { - "version": "1.1.0", - "license": "ISC" - }, - "../core/node_modules/convert-source-map": { - "version": "2.0.0", - "dev": true, - "license": "MIT" - }, - "../core/node_modules/core-js-compat": { - "version": "3.37.1", - "dev": true, - "license": "MIT", - "dependencies": { - "browserslist": "^4.23.0" - }, - "funding": { - "type": "opencollective", - "url": "https://opencollective.com/core-js" - } - }, - "../core/node_modules/core-util-is": { - "version": "1.0.2", - "license": "MIT" - }, - "../core/node_modules/cosmiconfig": { - "version": "9.0.0", - "license": "MIT", - "dependencies": { - "env-paths": "^2.2.1", - "import-fresh": "^3.3.0", - "js-yaml": "^4.1.0", - "parse-json": "^5.2.0" - }, - "engines": { - "node": ">=14" - }, - "funding": { - "url": "https://github.com/sponsors/d-fischer" - }, - "peerDependencies": { - "typescript": ">=4.9.5" - }, - "peerDependenciesMeta": { - "typescript": { - "optional": true - } - } - }, - "../core/node_modules/create-jest": { - "version": "29.7.0", - "dev": true, - "license": "MIT", - "dependencies": { - "@jest/types": "^29.6.3", - "chalk": "^4.0.0", - "exit": "^0.1.2", - "graceful-fs": "^4.2.9", - "jest-config": "^29.7.0", - "jest-util": "^29.7.0", - "prompts": "^2.0.1" - }, - "bin": { - "create-jest": "bin/create-jest.js" - }, - "engines": { - "node": "^14.15.0 || ^16.10.0 || >=18.0.0" - } - }, - "../core/node_modules/cross-env": { - "version": "7.0.3", - "dev": true, - "license": "MIT", - "dependencies": { - "cross-spawn": "^7.0.1" - }, - "bin": { - "cross-env": "src/bin/cross-env.js", - "cross-env-shell": "src/bin/cross-env-shell.js" - }, - "engines": { - "node": ">=10.14", - "npm": ">=6", - "yarn": ">=1" - } - }, - "../core/node_modules/cross-spawn": { - "version": "7.0.3", - "license": "MIT", - "dependencies": { - "path-key": "^3.1.0", - "shebang-command": "^2.0.0", - "which": "^2.0.1" - }, - "engines": { - "node": ">= 8" - } - }, - "../core/node_modules/css-select": { - "version": "5.1.0", - "license": "BSD-2-Clause", - "dependencies": { - "boolbase": "^1.0.0", - "css-what": "^6.1.0", - "domhandler": "^5.0.2", - "domutils": "^3.0.1", - "nth-check": "^2.0.1" - }, - "funding": { - "url": "https://github.com/sponsors/fb55" - } - }, - "../core/node_modules/css-what": { - "version": "6.1.0", - "license": "BSD-2-Clause", - "engines": { - "node": ">= 6" - }, - "funding": { - "url": "https://github.com/sponsors/fb55" - } - }, - "../core/node_modules/cssom": { - "version": "0.5.0", - "dev": true, - "license": "MIT" - }, - "../core/node_modules/cssstyle": { - "version": "4.0.1", - "license": "MIT", - "dependencies": { - "rrweb-cssom": "^0.6.0" - }, - "engines": { - "node": ">=18" - } - }, - "../core/node_modules/dashdash": { - "version": "1.14.1", - "license": "MIT", - "dependencies": { - "assert-plus": "^1.0.0" - }, - "engines": { - "node": ">=0.10" - } - }, - "../core/node_modules/data-uri-to-buffer": { - "version": "4.0.1", - "license": "MIT", - "engines": { - "node": ">= 12" - } - }, - "../core/node_modules/data-urls": { - "version": "5.0.0", - "license": "MIT", - "dependencies": { - "whatwg-mimetype": "^4.0.0", - "whatwg-url": "^14.0.0" - }, - "engines": { - "node": ">=18" - } - }, - "../core/node_modules/data-view-buffer": { - "version": "1.0.1", - "license": "MIT", - "dependencies": { - "call-bind": "^1.0.6", - "es-errors": "^1.3.0", - "is-data-view": "^1.0.1" - }, - "engines": { - "node": ">= 0.4" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, - "../core/node_modules/data-view-byte-length": { - "version": "1.0.1", - "license": "MIT", - "dependencies": { - "call-bind": "^1.0.7", - "es-errors": "^1.3.0", - "is-data-view": "^1.0.1" - }, - "engines": { - "node": ">= 0.4" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, - "../core/node_modules/data-view-byte-offset": { - "version": "1.0.0", - "license": "MIT", - "dependencies": { - "call-bind": "^1.0.6", - "es-errors": "^1.3.0", - "is-data-view": "^1.0.1" - }, - "engines": { - "node": ">= 0.4" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, - "../core/node_modules/dbinfoz": { - "version": "0.11.0", - "license": "MIT", - "dependencies": { - "mysql2": "^3.9.1", - "pg": "^8.11.3", - "sqlite3": "^5.1.7" - } - }, - "../core/node_modules/debug": { - "version": "4.3.6", - "license": "MIT", - "dependencies": { - "ms": "2.1.2" - }, - "engines": { - "node": ">=6.0" - }, - "peerDependenciesMeta": { - "supports-color": { - "optional": true - } - } - }, - "../core/node_modules/decimal.js": { - "version": "10.4.3", - "license": "MIT" - }, - "../core/node_modules/decompress-response": { - "version": "6.0.0", - "license": "MIT", - "dependencies": { - "mimic-response": "^3.1.0" - }, - "engines": { - "node": ">=10" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - }, - "../core/node_modules/dedent": { - "version": "1.5.3", - "dev": true, - "license": "MIT", - "peerDependencies": { - "babel-plugin-macros": "^3.1.0" - }, - "peerDependenciesMeta": { - "babel-plugin-macros": { - "optional": true - } - } - }, - "../core/node_modules/deep-extend": { - "version": "0.6.0", - "license": "MIT", - "engines": { - "node": ">=4.0.0" - } - }, - "../core/node_modules/deep-is": { - "version": "0.1.4", - "license": "MIT" - }, - "../core/node_modules/deepmerge": { - "version": "4.3.1", - "dev": true, - "license": "MIT", - "engines": { - "node": ">=0.10.0" - } - }, - "../core/node_modules/define-data-property": { - "version": "1.1.4", - "license": "MIT", - "dependencies": { - "es-define-property": "^1.0.0", - "es-errors": "^1.3.0", - "gopd": "^1.0.1" - }, - "engines": { - "node": ">= 0.4" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, - "../core/node_modules/define-properties": { - "version": "1.2.1", - "license": "MIT", - "dependencies": { - "define-data-property": "^1.0.1", - "has-property-descriptors": "^1.0.0", - "object-keys": "^1.1.1" - }, - "engines": { - "node": ">= 0.4" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, - "../core/node_modules/degenerator": { - "version": "5.0.1", - "license": "MIT", - "dependencies": { - "ast-types": "^0.13.4", - "escodegen": "^2.1.0", - "esprima": "^4.0.1" - }, - "engines": { - "node": ">= 14" - } - }, - "../core/node_modules/delayed-stream": { - "version": "1.0.0", - "license": "MIT", - "engines": { - "node": ">=0.4.0" - } - }, - "../core/node_modules/delegates": { - "version": "1.0.0", - "license": "MIT", - "optional": true - }, - "../core/node_modules/denque": { - "version": "2.1.0", - "license": "Apache-2.0", - "engines": { - "node": ">=0.10" - } - }, - "../core/node_modules/deprecation": { - "version": "2.3.1", - "license": "ISC" - }, - "../core/node_modules/detect-libc": { - "version": "2.0.3", - "license": "Apache-2.0", - "engines": { - "node": ">=8" - } - }, - "../core/node_modules/detect-newline": { - "version": "3.1.0", - "dev": true, - "license": "MIT", - "engines": { - "node": ">=8" - } - }, - "../core/node_modules/devtools-protocol": { - "version": "0.0.1312386", - "license": "BSD-3-Clause" - }, - "../core/node_modules/diff": { - "version": "7.0.0", - "license": "BSD-3-Clause", - "engines": { - "node": ">=0.3.1" - } - }, - "../core/node_modules/diff-sequences": { - "version": "29.6.3", - "dev": true, - "license": "MIT", - "engines": { - "node": "^14.15.0 || ^16.10.0 || >=18.0.0" - } - }, - "../core/node_modules/dir-glob": { - "version": "3.0.1", - "license": "MIT", - "dependencies": { - "path-type": "^4.0.0" - }, - "engines": { - "node": ">=8" - } - }, - "../core/node_modules/doctrine": { - "version": "3.0.0", - "license": "Apache-2.0", - "dependencies": { - "esutils": "^2.0.2" - }, - "engines": { - "node": ">=6.0.0" - } - }, - "../core/node_modules/dom-serializer": { - "version": "2.0.0", - "license": "MIT", - "dependencies": { - "domelementtype": "^2.3.0", - "domhandler": "^5.0.2", - "entities": "^4.2.0" - }, - "funding": { - "url": "https://github.com/cheeriojs/dom-serializer?sponsor=1" - } - }, - "../core/node_modules/domelementtype": { - "version": "2.3.0", - "funding": [ - { - "type": "github", - "url": "https://github.com/sponsors/fb55" - } - ], - "license": "BSD-2-Clause" - }, - "../core/node_modules/domexception": { - "version": "4.0.0", - "dev": true, - "license": "MIT", - "dependencies": { - "webidl-conversions": "^7.0.0" - }, - "engines": { - "node": ">=12" - } - }, - "../core/node_modules/domhandler": { - "version": "5.0.3", - "license": "BSD-2-Clause", - "dependencies": { - "domelementtype": "^2.3.0" - }, - "engines": { - "node": ">= 4" - }, - "funding": { - "url": "https://github.com/fb55/domhandler?sponsor=1" - } - }, - "../core/node_modules/domutils": { - "version": "3.1.0", - "license": "BSD-2-Clause", - "dependencies": { - "dom-serializer": "^2.0.0", - "domelementtype": "^2.3.0", - "domhandler": "^5.0.3" - }, - "funding": { - "url": "https://github.com/fb55/domutils?sponsor=1" - } - }, - "../core/node_modules/dotenv": { - "version": "16.4.5", - "license": "BSD-2-Clause", - "engines": { - "node": ">=12" - }, - "funding": { - "url": "https://dotenvx.com" - } - }, - "../core/node_modules/ecc-jsbn": { - "version": "0.1.2", - "license": "MIT", - "dependencies": { - "jsbn": "~0.1.0", - "safer-buffer": "^2.1.0" - } - }, - "../core/node_modules/ecc-jsbn/node_modules/jsbn": { - "version": "0.1.1", - "license": "MIT" - }, - "../core/node_modules/eight-colors": { - "version": "1.3.0", - "license": "MIT" - }, - "../core/node_modules/electron-to-chromium": { - "version": "1.4.776", - "dev": true, - "license": "ISC" - }, - "../core/node_modules/emittery": { - "version": "0.13.1", - "dev": true, - "license": "MIT", - "engines": { - "node": ">=12" - }, - "funding": { - "url": "https://github.com/sindresorhus/emittery?sponsor=1" - } - }, - "../core/node_modules/emoji-regex": { - "version": "8.0.0", - "license": "MIT" - }, - "../core/node_modules/encoding": { - "version": "0.1.13", - "license": "MIT", - "optional": true, - "dependencies": { - "iconv-lite": "^0.6.2" - } - }, - "../core/node_modules/encoding-sniffer": { - "version": "0.2.0", - "license": "MIT", - "dependencies": { - "iconv-lite": "^0.6.3", - "whatwg-encoding": "^3.1.1" - }, - "funding": { - "url": "https://github.com/fb55/encoding-sniffer?sponsor=1" - } - }, - "../core/node_modules/end-of-stream": { - "version": "1.4.4", - "license": "MIT", - "dependencies": { - "once": "^1.4.0" - } - }, - "../core/node_modules/engine.io-client": { - "version": "6.5.3", - "license": "MIT", - "dependencies": { - "@socket.io/component-emitter": "~3.1.0", - "debug": "~4.3.1", - "engine.io-parser": "~5.2.1", - "ws": "~8.11.0", - "xmlhttprequest-ssl": "~2.0.0" - } - }, - "../core/node_modules/engine.io-client/node_modules/ws": { - "version": "8.11.0", - "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 - } - } - }, - "../core/node_modules/engine.io-parser": { - "version": "5.2.2", - "license": "MIT", - "engines": { - "node": ">=10.0.0" - } - }, - "../core/node_modules/entities": { - "version": "4.5.0", - "license": "BSD-2-Clause", - "engines": { - "node": ">=0.12" - }, - "funding": { - "url": "https://github.com/fb55/entities?sponsor=1" - } - }, - "../core/node_modules/env-paths": { - "version": "2.2.1", - "license": "MIT", - "engines": { - "node": ">=6" - } - }, - "../core/node_modules/err-code": { - "version": "2.0.3", - "license": "MIT", - "optional": true - }, - "../core/node_modules/error-ex": { - "version": "1.3.2", - "license": "MIT", - "dependencies": { - "is-arrayish": "^0.2.1" - } - }, - "../core/node_modules/es-abstract": { - "version": "1.23.3", - "license": "MIT", - "dependencies": { - "array-buffer-byte-length": "^1.0.1", - "arraybuffer.prototype.slice": "^1.0.3", - "available-typed-arrays": "^1.0.7", - "call-bind": "^1.0.7", - "data-view-buffer": "^1.0.1", - "data-view-byte-length": "^1.0.1", - "data-view-byte-offset": "^1.0.0", - "es-define-property": "^1.0.0", - "es-errors": "^1.3.0", - "es-object-atoms": "^1.0.0", - "es-set-tostringtag": "^2.0.3", - "es-to-primitive": "^1.2.1", - "function.prototype.name": "^1.1.6", - "get-intrinsic": "^1.2.4", - "get-symbol-description": "^1.0.2", - "globalthis": "^1.0.3", - "gopd": "^1.0.1", - "has-property-descriptors": "^1.0.2", - "has-proto": "^1.0.3", - "has-symbols": "^1.0.3", - "hasown": "^2.0.2", - "internal-slot": "^1.0.7", - "is-array-buffer": "^3.0.4", - "is-callable": "^1.2.7", - "is-data-view": "^1.0.1", - "is-negative-zero": "^2.0.3", - "is-regex": "^1.1.4", - "is-shared-array-buffer": "^1.0.3", - "is-string": "^1.0.7", - "is-typed-array": "^1.1.13", - "is-weakref": "^1.0.2", - "object-inspect": "^1.13.1", - "object-keys": "^1.1.1", - "object.assign": "^4.1.5", - "regexp.prototype.flags": "^1.5.2", - "safe-array-concat": "^1.1.2", - "safe-regex-test": "^1.0.3", - "string.prototype.trim": "^1.2.9", - "string.prototype.trimend": "^1.0.8", - "string.prototype.trimstart": "^1.0.8", - "typed-array-buffer": "^1.0.2", - "typed-array-byte-length": "^1.0.1", - "typed-array-byte-offset": "^1.0.2", - "typed-array-length": "^1.0.6", - "unbox-primitive": "^1.0.2", - "which-typed-array": "^1.1.15" - }, - "engines": { - "node": ">= 0.4" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, - "../core/node_modules/es-define-property": { - "version": "1.0.0", - "license": "MIT", - "dependencies": { - "get-intrinsic": "^1.2.4" - }, - "engines": { - "node": ">= 0.4" - } - }, - "../core/node_modules/es-errors": { - "version": "1.3.0", - "license": "MIT", - "engines": { - "node": ">= 0.4" - } - }, - "../core/node_modules/es-object-atoms": { - "version": "1.0.0", - "license": "MIT", - "dependencies": { - "es-errors": "^1.3.0" - }, - "engines": { - "node": ">= 0.4" - } - }, - "../core/node_modules/es-set-tostringtag": { - "version": "2.0.3", - "license": "MIT", - "dependencies": { - "get-intrinsic": "^1.2.4", - "has-tostringtag": "^1.0.2", - "hasown": "^2.0.1" - }, - "engines": { - "node": ">= 0.4" - } - }, - "../core/node_modules/es-shim-unscopables": { - "version": "1.0.2", - "license": "MIT", - "dependencies": { - "hasown": "^2.0.0" - } - }, - "../core/node_modules/es-to-primitive": { - "version": "1.2.1", - "license": "MIT", - "dependencies": { - "is-callable": "^1.1.4", - "is-date-object": "^1.0.1", - "is-symbol": "^1.0.2" - }, - "engines": { - "node": ">= 0.4" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, - "../core/node_modules/esbuild": { - "version": "0.17.19", - "dev": true, - "hasInstallScript": true, - "license": "MIT", - "bin": { - "esbuild": "bin/esbuild" - }, - "engines": { - "node": ">=12" - }, - "optionalDependencies": { - "@esbuild/android-arm": "0.17.19", - "@esbuild/android-arm64": "0.17.19", - "@esbuild/android-x64": "0.17.19", - "@esbuild/darwin-arm64": "0.17.19", - "@esbuild/darwin-x64": "0.17.19", - "@esbuild/freebsd-arm64": "0.17.19", - "@esbuild/freebsd-x64": "0.17.19", - "@esbuild/linux-arm": "0.17.19", - "@esbuild/linux-arm64": "0.17.19", - "@esbuild/linux-ia32": "0.17.19", - "@esbuild/linux-loong64": "0.17.19", - "@esbuild/linux-mips64el": "0.17.19", - "@esbuild/linux-ppc64": "0.17.19", - "@esbuild/linux-riscv64": "0.17.19", - "@esbuild/linux-s390x": "0.17.19", - "@esbuild/linux-x64": "0.17.19", - "@esbuild/netbsd-x64": "0.17.19", - "@esbuild/openbsd-x64": "0.17.19", - "@esbuild/sunos-x64": "0.17.19", - "@esbuild/win32-arm64": "0.17.19", - "@esbuild/win32-ia32": "0.17.19", - "@esbuild/win32-x64": "0.17.19" - } - }, - "../core/node_modules/escalade": { - "version": "3.1.2", - "license": "MIT", - "engines": { - "node": ">=6" - } - }, - "../core/node_modules/escape-string-regexp": { - "version": "4.0.0", - "license": "MIT", - "engines": { - "node": ">=10" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - }, - "../core/node_modules/escodegen": { - "version": "2.1.0", - "license": "BSD-2-Clause", - "dependencies": { - "esprima": "^4.0.1", - "estraverse": "^5.2.0", - "esutils": "^2.0.2" - }, - "bin": { - "escodegen": "bin/escodegen.js", - "esgenerate": "bin/esgenerate.js" - }, - "engines": { - "node": ">=6.0" - }, - "optionalDependencies": { - "source-map": "~0.6.1" - } - }, - "../core/node_modules/eslint": { - "version": "8.57.0", - "license": "MIT", - "dependencies": { - "@eslint-community/eslint-utils": "^4.2.0", - "@eslint-community/regexpp": "^4.6.1", - "@eslint/eslintrc": "^2.1.4", - "@eslint/js": "8.57.0", - "@humanwhocodes/config-array": "^0.11.14", - "@humanwhocodes/module-importer": "^1.0.1", - "@nodelib/fs.walk": "^1.2.8", - "@ungap/structured-clone": "^1.2.0", - "ajv": "^6.12.4", - "chalk": "^4.0.0", - "cross-spawn": "^7.0.2", - "debug": "^4.3.2", - "doctrine": "^3.0.0", - "escape-string-regexp": "^4.0.0", - "eslint-scope": "^7.2.2", - "eslint-visitor-keys": "^3.4.3", - "espree": "^9.6.1", - "esquery": "^1.4.2", - "esutils": "^2.0.2", - "fast-deep-equal": "^3.1.3", - "file-entry-cache": "^6.0.1", - "find-up": "^5.0.0", - "glob-parent": "^6.0.2", - "globals": "^13.19.0", - "graphemer": "^1.4.0", - "ignore": "^5.2.0", - "imurmurhash": "^0.1.4", - "is-glob": "^4.0.0", - "is-path-inside": "^3.0.3", - "js-yaml": "^4.1.0", - "json-stable-stringify-without-jsonify": "^1.0.1", - "levn": "^0.4.1", - "lodash.merge": "^4.6.2", - "minimatch": "^3.1.2", - "natural-compare": "^1.4.0", - "optionator": "^0.9.3", - "strip-ansi": "^6.0.1", - "text-table": "^0.2.0" - }, - "bin": { - "eslint": "bin/eslint.js" - }, - "engines": { - "node": "^12.22.0 || ^14.17.0 || >=16.0.0" - }, - "funding": { - "url": "https://opencollective.com/eslint" - } - }, - "../core/node_modules/eslint-config-airbnb-base": { - "version": "15.0.0", - "license": "MIT", - "dependencies": { - "confusing-browser-globals": "^1.0.10", - "object.assign": "^4.1.2", - "object.entries": "^1.1.5", - "semver": "^6.3.0" - }, - "engines": { - "node": "^10.12.0 || >=12.0.0" - }, - "peerDependencies": { - "eslint": "^7.32.0 || ^8.2.0", - "eslint-plugin-import": "^2.25.2" - } - }, - "../core/node_modules/eslint-config-airbnb-base/node_modules/semver": { - "version": "6.3.1", - "license": "ISC", - "bin": { - "semver": "bin/semver.js" - } - }, - "../core/node_modules/eslint-config-nodebb": { - "version": "0.1.1", - "license": "ISC", - "dependencies": { - "eslint-config-airbnb-base": "15.0.0" - }, - "peerDependencies": { - "eslint": "7.x || 8.x", - "eslint-plugin-import": "2.x" - } - }, - "../core/node_modules/eslint-import-resolver-node": { - "version": "0.3.9", - "license": "MIT", - "dependencies": { - "debug": "^3.2.7", - "is-core-module": "^2.13.0", - "resolve": "^1.22.4" - } - }, - "../core/node_modules/eslint-import-resolver-node/node_modules/debug": { - "version": "3.2.7", - "license": "MIT", - "dependencies": { - "ms": "^2.1.1" - } - }, - "../core/node_modules/eslint-module-utils": { - "version": "2.8.1", - "license": "MIT", - "dependencies": { - "debug": "^3.2.7" - }, - "engines": { - "node": ">=4" - }, - "peerDependenciesMeta": { - "eslint": { - "optional": true - } - } - }, - "../core/node_modules/eslint-module-utils/node_modules/debug": { - "version": "3.2.7", - "license": "MIT", - "dependencies": { - "ms": "^2.1.1" - } - }, - "../core/node_modules/eslint-plugin-import": { - "version": "2.29.1", - "license": "MIT", - "dependencies": { - "array-includes": "^3.1.7", - "array.prototype.findlastindex": "^1.2.3", - "array.prototype.flat": "^1.3.2", - "array.prototype.flatmap": "^1.3.2", - "debug": "^3.2.7", - "doctrine": "^2.1.0", - "eslint-import-resolver-node": "^0.3.9", - "eslint-module-utils": "^2.8.0", - "hasown": "^2.0.0", - "is-core-module": "^2.13.1", - "is-glob": "^4.0.3", - "minimatch": "^3.1.2", - "object.fromentries": "^2.0.7", - "object.groupby": "^1.0.1", - "object.values": "^1.1.7", - "semver": "^6.3.1", - "tsconfig-paths": "^3.15.0" - }, - "engines": { - "node": ">=4" - }, - "peerDependencies": { - "eslint": "^2 || ^3 || ^4 || ^5 || ^6 || ^7.2.0 || ^8" - } - }, - "../core/node_modules/eslint-plugin-import/node_modules/brace-expansion": { - "version": "1.1.11", - "license": "MIT", - "dependencies": { - "balanced-match": "^1.0.0", - "concat-map": "0.0.1" - } - }, - "../core/node_modules/eslint-plugin-import/node_modules/debug": { - "version": "3.2.7", - "license": "MIT", - "dependencies": { - "ms": "^2.1.1" - } - }, - "../core/node_modules/eslint-plugin-import/node_modules/doctrine": { - "version": "2.1.0", - "license": "Apache-2.0", - "dependencies": { - "esutils": "^2.0.2" - }, - "engines": { - "node": ">=0.10.0" - } - }, - "../core/node_modules/eslint-plugin-import/node_modules/minimatch": { - "version": "3.1.2", - "license": "ISC", - "dependencies": { - "brace-expansion": "^1.1.7" - }, - "engines": { - "node": "*" - } - }, - "../core/node_modules/eslint-plugin-import/node_modules/semver": { - "version": "6.3.1", - "license": "ISC", - "bin": { - "semver": "bin/semver.js" - } - }, - "../core/node_modules/eslint-scope": { - "version": "7.2.2", - "license": "BSD-2-Clause", - "dependencies": { - "esrecurse": "^4.3.0", - "estraverse": "^5.2.0" - }, - "engines": { - "node": "^12.22.0 || ^14.17.0 || >=16.0.0" - }, - "funding": { - "url": "https://opencollective.com/eslint" - } - }, - "../core/node_modules/eslint-visitor-keys": { - "version": "3.4.3", - "license": "Apache-2.0", - "engines": { - "node": "^12.22.0 || ^14.17.0 || >=16.0.0" - }, - "funding": { - "url": "https://opencollective.com/eslint" - } - }, - "../core/node_modules/eslint/node_modules/brace-expansion": { - "version": "1.1.11", - "license": "MIT", - "dependencies": { - "balanced-match": "^1.0.0", - "concat-map": "0.0.1" - } - }, - "../core/node_modules/eslint/node_modules/minimatch": { - "version": "3.1.2", - "license": "ISC", - "dependencies": { - "brace-expansion": "^1.1.7" - }, - "engines": { - "node": "*" - } - }, - "../core/node_modules/espree": { - "version": "9.6.1", - "license": "BSD-2-Clause", - "dependencies": { - "acorn": "^8.9.0", - "acorn-jsx": "^5.3.2", - "eslint-visitor-keys": "^3.4.1" - }, - "engines": { - "node": "^12.22.0 || ^14.17.0 || >=16.0.0" - }, - "funding": { - "url": "https://opencollective.com/eslint" - } - }, - "../core/node_modules/esprima": { - "version": "4.0.1", - "license": "BSD-2-Clause", - "bin": { - "esparse": "bin/esparse.js", - "esvalidate": "bin/esvalidate.js" - }, - "engines": { - "node": ">=4" - } - }, - "../core/node_modules/esquery": { - "version": "1.5.0", - "license": "BSD-3-Clause", - "dependencies": { - "estraverse": "^5.1.0" - }, - "engines": { - "node": ">=0.10" - } - }, - "../core/node_modules/esrecurse": { - "version": "4.3.0", - "license": "BSD-2-Clause", - "dependencies": { - "estraverse": "^5.2.0" - }, - "engines": { - "node": ">=4.0" - } - }, - "../core/node_modules/estraverse": { - "version": "5.3.0", - "license": "BSD-2-Clause", - "engines": { - "node": ">=4.0" - } - }, - "../core/node_modules/esutils": { - "version": "2.0.3", - "license": "BSD-2-Clause", - "engines": { - "node": ">=0.10.0" - } - }, - "../core/node_modules/event-target-shim": { - "version": "5.0.1", - "license": "MIT", - "engines": { - "node": ">=6" - } - }, - "../core/node_modules/events": { - "version": "3.3.0", - "license": "MIT", - "engines": { - "node": ">=0.8.x" - } - }, - "../core/node_modules/execa": { - "version": "5.1.1", - "dev": true, - "license": "MIT", - "dependencies": { - "cross-spawn": "^7.0.3", - "get-stream": "^6.0.0", - "human-signals": "^2.1.0", - "is-stream": "^2.0.0", - "merge-stream": "^2.0.0", - "npm-run-path": "^4.0.1", - "onetime": "^5.1.2", - "signal-exit": "^3.0.3", - "strip-final-newline": "^2.0.0" - }, - "engines": { - "node": ">=10" - }, - "funding": { - "url": "https://github.com/sindresorhus/execa?sponsor=1" - } - }, - "../core/node_modules/exit": { - "version": "0.1.2", - "dev": true, - "engines": { - "node": ">= 0.8.0" - } - }, - "../core/node_modules/expand-template": { - "version": "2.0.3", - "license": "(MIT OR WTFPL)", - "engines": { - "node": ">=6" - } - }, - "../core/node_modules/expect": { - "version": "29.7.0", - "dev": true, - "license": "MIT", - "dependencies": { - "@jest/expect-utils": "^29.7.0", - "jest-get-type": "^29.6.3", - "jest-matcher-utils": "^29.7.0", - "jest-message-util": "^29.7.0", - "jest-util": "^29.7.0" - }, - "engines": { - "node": "^14.15.0 || ^16.10.0 || >=18.0.0" - } - }, - "../core/node_modules/extend": { - "version": "3.0.2", - "license": "MIT" - }, - "../core/node_modules/extract-zip": { - "version": "2.0.1", - "license": "BSD-2-Clause", - "dependencies": { - "debug": "^4.1.1", - "get-stream": "^5.1.0", - "yauzl": "^2.10.0" - }, - "bin": { - "extract-zip": "cli.js" - }, - "engines": { - "node": ">= 10.17.0" - }, - "optionalDependencies": { - "@types/yauzl": "^2.9.1" - } - }, - "../core/node_modules/extract-zip/node_modules/get-stream": { - "version": "5.2.0", - "license": "MIT", - "dependencies": { - "pump": "^3.0.0" - }, - "engines": { - "node": ">=8" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - }, - "../core/node_modules/extsprintf": { - "version": "1.3.0", - "engines": [ - "node >=0.6.0" - ], - "license": "MIT" - }, - "../core/node_modules/fast-deep-equal": { - "version": "3.1.3", - "license": "MIT" - }, - "../core/node_modules/fast-fifo": { - "version": "1.3.2", - "license": "MIT" - }, - "../core/node_modules/fast-glob": { - "version": "3.3.2", - "license": "MIT", - "dependencies": { - "@nodelib/fs.stat": "^2.0.2", - "@nodelib/fs.walk": "^1.2.3", - "glob-parent": "^5.1.2", - "merge2": "^1.3.0", - "micromatch": "^4.0.4" - }, - "engines": { - "node": ">=8.6.0" - } - }, - "../core/node_modules/fast-glob/node_modules/glob-parent": { - "version": "5.1.2", - "license": "ISC", - "dependencies": { - "is-glob": "^4.0.1" - }, - "engines": { - "node": ">= 6" - } - }, - "../core/node_modules/fast-json-stable-stringify": { - "version": "2.1.0", - "license": "MIT" - }, - "../core/node_modules/fast-levenshtein": { - "version": "2.0.6", - "license": "MIT" - }, - "../core/node_modules/fast-xml-parser": { - "version": "4.2.5", - "funding": [ - { - "type": "paypal", - "url": "https://paypal.me/naturalintelligence" - }, - { - "type": "github", - "url": "https://github.com/sponsors/NaturalIntelligence" - } - ], - "license": "MIT", - "dependencies": { - "strnum": "^1.0.5" - }, - "bin": { - "fxparser": "src/cli/cli.js" - } - }, - "../core/node_modules/fastest-levenshtein": { - "version": "1.0.16", - "license": "MIT", - "engines": { - "node": ">= 4.9.1" - } - }, - "../core/node_modules/fastq": { - "version": "1.17.1", - "license": "ISC", - "dependencies": { - "reusify": "^1.0.4" - } - }, - "../core/node_modules/fb-watchman": { - "version": "2.0.2", - "dev": true, - "license": "Apache-2.0", - "dependencies": { - "bser": "2.1.1" - } - }, - "../core/node_modules/fd-slicer": { - "version": "1.1.0", - "license": "MIT", - "dependencies": { - "pend": "~1.2.0" - } - }, - "../core/node_modules/fetch-blob": { - "version": "3.2.0", - "funding": [ - { - "type": "github", - "url": "https://github.com/sponsors/jimmywarting" - }, - { - "type": "paypal", - "url": "https://paypal.me/jimmywarting" - } - ], - "license": "MIT", - "dependencies": { - "node-domexception": "^1.0.0", - "web-streams-polyfill": "^3.0.3" - }, - "engines": { - "node": "^12.20 || >= 14.13" - } - }, - "../core/node_modules/file-entry-cache": { - "version": "6.0.1", - "license": "MIT", - "dependencies": { - "flat-cache": "^3.0.4" - }, - "engines": { - "node": "^10.12.0 || >=12.0.0" - } - }, - "../core/node_modules/file-uri-to-path": { - "version": "1.0.0", - "license": "MIT" - }, - "../core/node_modules/fill-range": { - "version": "7.1.1", - "license": "MIT", - "dependencies": { - "to-regex-range": "^5.0.1" - }, - "engines": { - "node": ">=8" - } - }, - "../core/node_modules/find-replace": { - "version": "3.0.0", - "license": "MIT", - "peer": true, - "dependencies": { - "array-back": "^3.0.1" - }, - "engines": { - "node": ">=4.0.0" - } - }, - "../core/node_modules/find-up": { - "version": "5.0.0", - "license": "MIT", - "dependencies": { - "locate-path": "^6.0.0", - "path-exists": "^4.0.0" - }, - "engines": { - "node": ">=10" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - }, - "../core/node_modules/flat-cache": { - "version": "3.2.0", - "license": "MIT", - "dependencies": { - "flatted": "^3.2.9", - "keyv": "^4.5.3", - "rimraf": "^3.0.2" - }, - "engines": { - "node": "^10.12.0 || >=12.0.0" - } - }, - "../core/node_modules/flatbuffers": { - "version": "23.5.26", - "license": "SEE LICENSE IN LICENSE", - "peer": true - }, - "../core/node_modules/flatted": { - "version": "3.3.1", - "license": "ISC" - }, - "../core/node_modules/follow-redirects": { - "version": "1.15.6", - "funding": [ - { - "type": "individual", - "url": "https://github.com/sponsors/RubenVerborgh" - } - ], - "license": "MIT", - "engines": { - "node": ">=4.0" - }, - "peerDependenciesMeta": { - "debug": { - "optional": true - } - } - }, - "../core/node_modules/for-each": { - "version": "0.3.3", - "license": "MIT", - "dependencies": { - "is-callable": "^1.1.3" - } - }, - "../core/node_modules/forever-agent": { - "version": "0.6.1", - "license": "Apache-2.0", - "engines": { - "node": "*" - } - }, - "../core/node_modules/form-data": { - "version": "4.0.0", - "license": "MIT", - "dependencies": { - "asynckit": "^0.4.0", - "combined-stream": "^1.0.8", - "mime-types": "^2.1.12" - }, - "engines": { - "node": ">= 6" - } - }, - "../core/node_modules/form-data-encoder": { - "version": "1.7.2", - "license": "MIT" - }, - "../core/node_modules/formdata-node": { - "version": "4.4.1", - "license": "MIT", - "dependencies": { - "node-domexception": "1.0.0", - "web-streams-polyfill": "4.0.0-beta.3" - }, - "engines": { - "node": ">= 12.20" - } - }, - "../core/node_modules/formdata-node/node_modules/web-streams-polyfill": { - "version": "4.0.0-beta.3", - "license": "MIT", - "engines": { - "node": ">= 14" - } - }, - "../core/node_modules/formdata-polyfill": { - "version": "4.0.10", - "license": "MIT", - "dependencies": { - "fetch-blob": "^3.1.2" - }, - "engines": { - "node": ">=12.20.0" - } - }, - "../core/node_modules/fs-constants": { - "version": "1.0.0", - "license": "MIT" - }, - "../core/node_modules/fs-extra": { - "version": "11.2.0", - "license": "MIT", - "dependencies": { - "graceful-fs": "^4.2.0", - "jsonfile": "^6.0.1", - "universalify": "^2.0.0" - }, - "engines": { - "node": ">=14.14" - } - }, - "../core/node_modules/fs-extra/node_modules/universalify": { - "version": "2.0.1", - "license": "MIT", - "engines": { - "node": ">= 10.0.0" - } - }, - "../core/node_modules/fs-minipass": { - "version": "2.1.0", - "license": "ISC", - "dependencies": { - "minipass": "^3.0.0" - }, - "engines": { - "node": ">= 8" - } - }, - "../core/node_modules/fs.realpath": { - "version": "1.0.0", - "license": "ISC" - }, - "../core/node_modules/fsevents": { - "version": "2.3.3", - "dev": true, - "license": "MIT", - "optional": true, - "os": [ - "darwin" - ], - "engines": { - "node": "^8.16.0 || ^10.6.0 || >=11.0.0" - } - }, - "../core/node_modules/function-bind": { - "version": "1.1.2", - "license": "MIT", - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, - "../core/node_modules/function.prototype.name": { - "version": "1.1.6", - "license": "MIT", - "dependencies": { - "call-bind": "^1.0.2", - "define-properties": "^1.2.0", - "es-abstract": "^1.22.1", - "functions-have-names": "^1.2.3" - }, - "engines": { - "node": ">= 0.4" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, - "../core/node_modules/functions-have-names": { - "version": "1.2.3", - "license": "MIT", - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, - "../core/node_modules/gauge": { - "version": "4.0.4", - "license": "ISC", - "optional": true, - "dependencies": { - "aproba": "^1.0.3 || ^2.0.0", - "color-support": "^1.1.3", - "console-control-strings": "^1.1.0", - "has-unicode": "^2.0.1", - "signal-exit": "^3.0.7", - "string-width": "^4.2.3", - "strip-ansi": "^6.0.1", - "wide-align": "^1.1.5" - }, - "engines": { - "node": "^12.13.0 || ^14.15.0 || >=16.0.0" - } - }, - "../core/node_modules/generate-function": { - "version": "2.3.1", - "license": "MIT", - "dependencies": { - "is-property": "^1.0.2" - } - }, - "../core/node_modules/gensync": { - "version": "1.0.0-beta.2", - "dev": true, - "license": "MIT", - "engines": { - "node": ">=6.9.0" - } - }, - "../core/node_modules/get-caller-file": { - "version": "2.0.5", - "license": "ISC", - "engines": { - "node": "6.* || 8.* || >= 10.*" - } - }, - "../core/node_modules/get-intrinsic": { - "version": "1.2.4", - "license": "MIT", - "dependencies": { - "es-errors": "^1.3.0", - "function-bind": "^1.1.2", - "has-proto": "^1.0.1", - "has-symbols": "^1.0.3", - "hasown": "^2.0.0" - }, - "engines": { - "node": ">= 0.4" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, - "../core/node_modules/get-package-type": { - "version": "0.1.0", - "dev": true, - "license": "MIT", - "engines": { - "node": ">=8.0.0" - } - }, - "../core/node_modules/get-stream": { - "version": "6.0.1", - "dev": true, - "license": "MIT", - "engines": { - "node": ">=10" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - }, - "../core/node_modules/get-symbol-description": { - "version": "1.0.2", - "license": "MIT", - "dependencies": { - "call-bind": "^1.0.5", - "es-errors": "^1.3.0", - "get-intrinsic": "^1.2.4" - }, - "engines": { - "node": ">= 0.4" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, - "../core/node_modules/get-uri": { - "version": "6.0.3", - "license": "MIT", - "dependencies": { - "basic-ftp": "^5.0.2", - "data-uri-to-buffer": "^6.0.2", - "debug": "^4.3.4", - "fs-extra": "^11.2.0" - }, - "engines": { - "node": ">= 14" - } - }, - "../core/node_modules/get-uri/node_modules/data-uri-to-buffer": { - "version": "6.0.2", - "license": "MIT", - "engines": { - "node": ">= 14" - } - }, - "../core/node_modules/getpass": { - "version": "0.1.7", - "license": "MIT", - "dependencies": { - "assert-plus": "^1.0.0" - } - }, - "../core/node_modules/github-from-package": { - "version": "0.0.0", - "license": "MIT" - }, - "../core/node_modules/glob": { - "version": "7.2.3", - "license": "ISC", - "dependencies": { - "fs.realpath": "^1.0.0", - "inflight": "^1.0.4", - "inherits": "2", - "minimatch": "^3.1.1", - "once": "^1.3.0", - "path-is-absolute": "^1.0.0" - }, - "engines": { - "node": "*" - }, - "funding": { - "url": "https://github.com/sponsors/isaacs" - } - }, - "../core/node_modules/glob-parent": { - "version": "6.0.2", - "license": "ISC", - "dependencies": { - "is-glob": "^4.0.3" - }, - "engines": { - "node": ">=10.13.0" - } - }, - "../core/node_modules/glob/node_modules/brace-expansion": { - "version": "1.1.11", - "license": "MIT", - "dependencies": { - "balanced-match": "^1.0.0", - "concat-map": "0.0.1" - } - }, - "../core/node_modules/glob/node_modules/minimatch": { - "version": "3.1.2", - "license": "ISC", - "dependencies": { - "brace-expansion": "^1.1.7" - }, - "engines": { - "node": "*" - } - }, - "../core/node_modules/globals": { - "version": "13.24.0", - "license": "MIT", - "dependencies": { - "type-fest": "^0.20.2" - }, - "engines": { - "node": ">=8" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - }, - "../core/node_modules/globalthis": { - "version": "1.0.4", - "license": "MIT", - "dependencies": { - "define-properties": "^1.2.1", - "gopd": "^1.0.1" - }, - "engines": { - "node": ">= 0.4" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, - "../core/node_modules/globby": { - "version": "11.1.0", - "license": "MIT", - "dependencies": { - "array-union": "^2.1.0", - "dir-glob": "^3.0.1", - "fast-glob": "^3.2.9", - "ignore": "^5.2.0", - "merge2": "^1.4.1", - "slash": "^3.0.0" - }, - "engines": { - "node": ">=10" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - }, - "../core/node_modules/gopd": { - "version": "1.0.1", - "license": "MIT", - "dependencies": { - "get-intrinsic": "^1.1.3" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, - "../core/node_modules/graceful-fs": { - "version": "4.2.11", - "license": "ISC" - }, - "../core/node_modules/graphemer": { - "version": "1.4.0", - "license": "MIT" - }, - "../core/node_modules/graphology": { - "version": "0.25.4", - "license": "MIT", - "dependencies": { - "events": "^3.3.0", - "obliterator": "^2.0.2" - }, - "peerDependencies": { - "graphology-types": ">=0.24.0" - } - }, - "../core/node_modules/graphology-indices": { - "version": "0.17.0", - "license": "MIT", - "dependencies": { - "graphology-utils": "^2.4.2", - "mnemonist": "^0.39.0" - }, - "peerDependencies": { - "graphology-types": ">=0.20.0" - } - }, - "../core/node_modules/graphology-metrics": { - "version": "2.2.0", - "license": "MIT", - "dependencies": { - "graphology-shortest-path": "^2.0.0", - "graphology-utils": "^2.4.4", - "mnemonist": "^0.39.0" - }, - "peerDependencies": { - "graphology-types": ">=0.20.0" - } - }, - "../core/node_modules/graphology-shortest-path": { - "version": "2.1.0", - "license": "MIT", - "dependencies": { - "@yomguithereal/helpers": "^1.1.1", - "graphology-indices": "^0.17.0", - "graphology-utils": "^2.4.3", - "mnemonist": "^0.39.0" - }, - "peerDependencies": { - "graphology-types": ">=0.20.0" - } - }, - "../core/node_modules/graphology-types": { - "version": "0.24.7", - "license": "MIT", - "peer": true - }, - "../core/node_modules/graphology-utils": { - "version": "2.5.2", - "license": "MIT", - "peerDependencies": { - "graphology-types": ">=0.23.0" - } - }, - "../core/node_modules/guid-typescript": { - "version": "1.0.9", - "license": "ISC" - }, - "../core/node_modules/handlebars": { - "version": "4.7.8", - "license": "MIT", - "dependencies": { - "minimist": "^1.2.5", - "neo-async": "^2.6.2", - "source-map": "^0.6.1", - "wordwrap": "^1.0.0" - }, - "bin": { - "handlebars": "bin/handlebars" - }, - "engines": { - "node": ">=0.4.7" - }, - "optionalDependencies": { - "uglify-js": "^3.1.4" - } - }, - "../core/node_modules/har-schema": { - "version": "2.0.0", - "license": "ISC", - "engines": { - "node": ">=4" - } - }, - "../core/node_modules/har-validator": { - "version": "5.1.5", - "license": "MIT", - "dependencies": { - "ajv": "^6.12.3", - "har-schema": "^2.0.0" - }, - "engines": { - "node": ">=6" - } - }, - "../core/node_modules/has-bigints": { - "version": "1.0.2", - "license": "MIT", - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, - "../core/node_modules/has-flag": { - "version": "4.0.0", - "license": "MIT", - "engines": { - "node": ">=8" - } - }, - "../core/node_modules/has-own-prop": { - "version": "2.0.0", - "license": "MIT", - "engines": { - "node": ">=8" - } - }, - "../core/node_modules/has-property-descriptors": { - "version": "1.0.2", - "license": "MIT", - "dependencies": { - "es-define-property": "^1.0.0" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, - "../core/node_modules/has-proto": { - "version": "1.0.3", - "license": "MIT", - "engines": { - "node": ">= 0.4" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, - "../core/node_modules/has-symbols": { - "version": "1.0.3", - "license": "MIT", - "engines": { - "node": ">= 0.4" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, - "../core/node_modules/has-tostringtag": { - "version": "1.0.2", - "license": "MIT", - "dependencies": { - "has-symbols": "^1.0.3" - }, - "engines": { - "node": ">= 0.4" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, - "../core/node_modules/has-unicode": { - "version": "2.0.1", - "license": "ISC" - }, - "../core/node_modules/hasown": { - "version": "2.0.2", - "license": "MIT", - "dependencies": { - "function-bind": "^1.1.2" - }, - "engines": { - "node": ">= 0.4" - } - }, - "../core/node_modules/he": { - "version": "1.2.0", - "license": "MIT", - "bin": { - "he": "bin/he" - } - }, - "../core/node_modules/html-encoding-sniffer": { - "version": "4.0.0", - "license": "MIT", - "dependencies": { - "whatwg-encoding": "^3.1.1" - }, - "engines": { - "node": ">=18" - } - }, - "../core/node_modules/html-escaper": { - "version": "2.0.2", - "dev": true, - "license": "MIT" - }, - "../core/node_modules/htmlparser2": { - "version": "9.1.0", - "funding": [ - "https://github.com/fb55/htmlparser2?sponsor=1", - { - "type": "github", - "url": "https://github.com/sponsors/fb55" - } - ], - "license": "MIT", - "dependencies": { - "domelementtype": "^2.3.0", - "domhandler": "^5.0.3", - "domutils": "^3.1.0", - "entities": "^4.5.0" - } - }, - "../core/node_modules/http-cache-semantics": { - "version": "4.1.1", - "license": "BSD-2-Clause", - "optional": true - }, - "../core/node_modules/http-proxy-agent": { - "version": "7.0.2", - "license": "MIT", - "dependencies": { - "agent-base": "^7.1.0", - "debug": "^4.3.4" - }, - "engines": { - "node": ">= 14" - } - }, - "../core/node_modules/http-signature": { - "version": "1.2.0", - "license": "MIT", - "dependencies": { - "assert-plus": "^1.0.0", - "jsprim": "^1.2.2", - "sshpk": "^1.7.0" - }, - "engines": { - "node": ">=0.8", - "npm": ">=1.3.7" - } - }, - "../core/node_modules/https-proxy-agent": { - "version": "7.0.5", - "license": "MIT", - "dependencies": { - "agent-base": "^7.0.2", - "debug": "4" - }, - "engines": { - "node": ">= 14" - } - }, - "../core/node_modules/human-signals": { - "version": "2.1.0", - "dev": true, - "license": "Apache-2.0", - "engines": { - "node": ">=10.17.0" - } - }, - "../core/node_modules/humanize-ms": { - "version": "1.2.1", - "license": "MIT", - "dependencies": { - "ms": "^2.0.0" - } - }, - "../core/node_modules/iconv-lite": { - "version": "0.6.3", - "license": "MIT", - "dependencies": { - "safer-buffer": ">= 2.1.2 < 3.0.0" - }, - "engines": { - "node": ">=0.10.0" - } - }, - "../core/node_modules/ieee754": { - "version": "1.2.1", - "funding": [ - { - "type": "github", - "url": "https://github.com/sponsors/feross" - }, - { - "type": "patreon", - "url": "https://www.patreon.com/feross" - }, - { - "type": "consulting", - "url": "https://feross.org/support" - } - ], - "license": "BSD-3-Clause" - }, - "../core/node_modules/ignore": { - "version": "5.3.1", - "license": "MIT", - "engines": { - "node": ">= 4" - } - }, - "../core/node_modules/import-fresh": { - "version": "3.3.0", - "license": "MIT", - "dependencies": { - "parent-module": "^1.0.0", - "resolve-from": "^4.0.0" - }, - "engines": { - "node": ">=6" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - }, - "../core/node_modules/import-local": { - "version": "3.1.0", - "dev": true, - "license": "MIT", - "dependencies": { - "pkg-dir": "^4.2.0", - "resolve-cwd": "^3.0.0" - }, - "bin": { - "import-local-fixture": "fixtures/cli.js" - }, - "engines": { - "node": ">=8" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - }, - "../core/node_modules/imurmurhash": { - "version": "0.1.4", - "license": "MIT", - "engines": { - "node": ">=0.8.19" - } - }, - "../core/node_modules/indent-string": { - "version": "4.0.0", - "license": "MIT", - "optional": true, - "engines": { - "node": ">=8" - } - }, - "../core/node_modules/infer-owner": { - "version": "1.0.4", - "license": "ISC", - "optional": true - }, - "../core/node_modules/inflight": { - "version": "1.0.6", - "license": "ISC", - "dependencies": { - "once": "^1.3.0", - "wrappy": "1" - } - }, - "../core/node_modules/inherits": { - "version": "2.0.4", - "license": "ISC" - }, - "../core/node_modules/ini": { - "version": "1.3.8", - "license": "ISC" - }, - "../core/node_modules/internal-slot": { - "version": "1.0.7", - "license": "MIT", - "dependencies": { - "es-errors": "^1.3.0", - "hasown": "^2.0.0", - "side-channel": "^1.0.4" - }, - "engines": { - "node": ">= 0.4" - } - }, - "../core/node_modules/ip-address": { - "version": "9.0.5", - "license": "MIT", - "dependencies": { - "jsbn": "1.1.0", - "sprintf-js": "^1.1.3" - }, - "engines": { - "node": ">= 12" - } - }, - "../core/node_modules/is-array-buffer": { - "version": "3.0.4", - "license": "MIT", - "dependencies": { - "call-bind": "^1.0.2", - "get-intrinsic": "^1.2.1" - }, - "engines": { - "node": ">= 0.4" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, - "../core/node_modules/is-arrayish": { - "version": "0.2.1", - "license": "MIT" - }, - "../core/node_modules/is-bigint": { - "version": "1.0.4", - "license": "MIT", - "dependencies": { - "has-bigints": "^1.0.1" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, - "../core/node_modules/is-boolean-object": { - "version": "1.1.2", - "license": "MIT", - "dependencies": { - "call-bind": "^1.0.2", - "has-tostringtag": "^1.0.0" - }, - "engines": { - "node": ">= 0.4" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, - "../core/node_modules/is-callable": { - "version": "1.2.7", - "license": "MIT", - "engines": { - "node": ">= 0.4" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, - "../core/node_modules/is-core-module": { - "version": "2.13.1", - "license": "MIT", - "dependencies": { - "hasown": "^2.0.0" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, - "../core/node_modules/is-data-view": { - "version": "1.0.1", - "license": "MIT", - "dependencies": { - "is-typed-array": "^1.1.13" - }, - "engines": { - "node": ">= 0.4" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, - "../core/node_modules/is-date-object": { - "version": "1.0.5", - "license": "MIT", - "dependencies": { - "has-tostringtag": "^1.0.0" - }, - "engines": { - "node": ">= 0.4" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, - "../core/node_modules/is-electron": { - "version": "2.2.2", - "license": "MIT" - }, - "../core/node_modules/is-extglob": { - "version": "2.1.1", - "license": "MIT", - "engines": { - "node": ">=0.10.0" - } - }, - "../core/node_modules/is-fullwidth-code-point": { - "version": "3.0.0", - "license": "MIT", - "engines": { - "node": ">=8" - } - }, - "../core/node_modules/is-generator-fn": { - "version": "2.1.0", - "dev": true, - "license": "MIT", - "engines": { - "node": ">=6" - } - }, - "../core/node_modules/is-glob": { - "version": "4.0.3", - "license": "MIT", - "dependencies": { - "is-extglob": "^2.1.1" - }, - "engines": { - "node": ">=0.10.0" - } - }, - "../core/node_modules/is-lambda": { - "version": "1.0.1", - "license": "MIT", - "optional": true - }, - "../core/node_modules/is-negative-zero": { - "version": "2.0.3", - "license": "MIT", - "engines": { - "node": ">= 0.4" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, - "../core/node_modules/is-number": { - "version": "7.0.0", - "license": "MIT", - "engines": { - "node": ">=0.12.0" - } - }, - "../core/node_modules/is-number-object": { - "version": "1.0.7", - "license": "MIT", - "dependencies": { - "has-tostringtag": "^1.0.0" - }, - "engines": { - "node": ">= 0.4" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, - "../core/node_modules/is-path-inside": { - "version": "3.0.3", - "license": "MIT", - "engines": { - "node": ">=8" - } - }, - "../core/node_modules/is-potential-custom-element-name": { - "version": "1.0.1", - "license": "MIT" - }, - "../core/node_modules/is-property": { - "version": "1.0.2", - "license": "MIT" - }, - "../core/node_modules/is-regex": { - "version": "1.1.4", - "license": "MIT", - "dependencies": { - "call-bind": "^1.0.2", - "has-tostringtag": "^1.0.0" - }, - "engines": { - "node": ">= 0.4" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, - "../core/node_modules/is-shared-array-buffer": { - "version": "1.0.3", - "license": "MIT", - "dependencies": { - "call-bind": "^1.0.7" - }, - "engines": { - "node": ">= 0.4" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, - "../core/node_modules/is-stream": { - "version": "2.0.1", - "dev": true, - "license": "MIT", - "engines": { - "node": ">=8" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - }, - "../core/node_modules/is-string": { - "version": "1.0.7", - "license": "MIT", - "dependencies": { - "has-tostringtag": "^1.0.0" - }, - "engines": { - "node": ">= 0.4" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, - "../core/node_modules/is-symbol": { - "version": "1.0.4", - "license": "MIT", - "dependencies": { - "has-symbols": "^1.0.2" - }, - "engines": { - "node": ">= 0.4" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, - "../core/node_modules/is-typed-array": { - "version": "1.1.13", - "license": "MIT", - "dependencies": { - "which-typed-array": "^1.1.14" - }, - "engines": { - "node": ">= 0.4" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, - "../core/node_modules/is-typedarray": { - "version": "1.0.0", - "license": "MIT" - }, - "../core/node_modules/is-weakref": { - "version": "1.0.2", - "license": "MIT", - "dependencies": { - "call-bind": "^1.0.2" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, - "../core/node_modules/isarray": { - "version": "2.0.5", - "license": "MIT" - }, - "../core/node_modules/isexe": { - "version": "2.0.0", - "license": "ISC" - }, - "../core/node_modules/isstream": { - "version": "0.1.2", - "license": "MIT" - }, - "../core/node_modules/istanbul-lib-coverage": { - "version": "3.2.2", - "dev": true, - "license": "BSD-3-Clause", - "engines": { - "node": ">=8" - } - }, - "../core/node_modules/istanbul-lib-instrument": { - "version": "6.0.2", - "dev": true, - "license": "BSD-3-Clause", - "dependencies": { - "@babel/core": "^7.23.9", - "@babel/parser": "^7.23.9", - "@istanbuljs/schema": "^0.1.3", - "istanbul-lib-coverage": "^3.2.0", - "semver": "^7.5.4" - }, - "engines": { - "node": ">=10" - } - }, - "../core/node_modules/istanbul-lib-report": { - "version": "3.0.1", - "dev": true, - "license": "BSD-3-Clause", - "dependencies": { - "istanbul-lib-coverage": "^3.0.0", - "make-dir": "^4.0.0", - "supports-color": "^7.1.0" - }, - "engines": { - "node": ">=10" - } - }, - "../core/node_modules/istanbul-lib-source-maps": { - "version": "4.0.1", - "dev": true, - "license": "BSD-3-Clause", - "dependencies": { - "debug": "^4.1.1", - "istanbul-lib-coverage": "^3.0.0", - "source-map": "^0.6.1" - }, - "engines": { - "node": ">=10" - } - }, - "../core/node_modules/istanbul-reports": { - "version": "3.1.7", - "dev": true, - "license": "BSD-3-Clause", - "dependencies": { - "html-escaper": "^2.0.0", - "istanbul-lib-report": "^3.0.0" - }, - "engines": { - "node": ">=8" - } - }, - "../core/node_modules/jest": { - "version": "29.7.0", - "dev": true, - "license": "MIT", - "dependencies": { - "@jest/core": "^29.7.0", - "@jest/types": "^29.6.3", - "import-local": "^3.0.2", - "jest-cli": "^29.7.0" - }, - "bin": { - "jest": "bin/jest.js" - }, - "engines": { - "node": "^14.15.0 || ^16.10.0 || >=18.0.0" - }, - "peerDependencies": { - "node-notifier": "^8.0.1 || ^9.0.0 || ^10.0.0" - }, - "peerDependenciesMeta": { - "node-notifier": { - "optional": true - } - } - }, - "../core/node_modules/jest-changed-files": { - "version": "29.7.0", - "dev": true, - "license": "MIT", - "dependencies": { - "execa": "^5.0.0", - "jest-util": "^29.7.0", - "p-limit": "^3.1.0" - }, - "engines": { - "node": "^14.15.0 || ^16.10.0 || >=18.0.0" - } - }, - "../core/node_modules/jest-changed-files/node_modules/p-limit": { - "version": "3.1.0", - "dev": true, - "license": "MIT", - "dependencies": { - "yocto-queue": "^0.1.0" - }, - "engines": { - "node": ">=10" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - }, - "../core/node_modules/jest-changed-files/node_modules/yocto-queue": { - "version": "0.1.0", - "dev": true, - "license": "MIT", - "engines": { - "node": ">=10" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - }, - "../core/node_modules/jest-circus": { - "version": "29.7.0", - "dev": true, - "license": "MIT", - "dependencies": { - "@jest/environment": "^29.7.0", - "@jest/expect": "^29.7.0", - "@jest/test-result": "^29.7.0", - "@jest/types": "^29.6.3", - "@types/node": "*", - "chalk": "^4.0.0", - "co": "^4.6.0", - "dedent": "^1.0.0", - "is-generator-fn": "^2.0.0", - "jest-each": "^29.7.0", - "jest-matcher-utils": "^29.7.0", - "jest-message-util": "^29.7.0", - "jest-runtime": "^29.7.0", - "jest-snapshot": "^29.7.0", - "jest-util": "^29.7.0", - "p-limit": "^3.1.0", - "pretty-format": "^29.7.0", - "pure-rand": "^6.0.0", - "slash": "^3.0.0", - "stack-utils": "^2.0.3" - }, - "engines": { - "node": "^14.15.0 || ^16.10.0 || >=18.0.0" - } - }, - "../core/node_modules/jest-circus/node_modules/p-limit": { - "version": "3.1.0", - "dev": true, - "license": "MIT", - "dependencies": { - "yocto-queue": "^0.1.0" - }, - "engines": { - "node": ">=10" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - }, - "../core/node_modules/jest-circus/node_modules/yocto-queue": { - "version": "0.1.0", - "dev": true, - "license": "MIT", - "engines": { - "node": ">=10" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - }, - "../core/node_modules/jest-cli": { - "version": "29.7.0", - "dev": true, - "license": "MIT", - "dependencies": { - "@jest/core": "^29.7.0", - "@jest/test-result": "^29.7.0", - "@jest/types": "^29.6.3", - "chalk": "^4.0.0", - "create-jest": "^29.7.0", - "exit": "^0.1.2", - "import-local": "^3.0.2", - "jest-config": "^29.7.0", - "jest-util": "^29.7.0", - "jest-validate": "^29.7.0", - "yargs": "^17.3.1" - }, - "bin": { - "jest": "bin/jest.js" - }, - "engines": { - "node": "^14.15.0 || ^16.10.0 || >=18.0.0" - }, - "peerDependencies": { - "node-notifier": "^8.0.1 || ^9.0.0 || ^10.0.0" - }, - "peerDependenciesMeta": { - "node-notifier": { - "optional": true - } - } - }, - "../core/node_modules/jest-config": { - "version": "29.7.0", - "dev": true, - "license": "MIT", - "dependencies": { - "@babel/core": "^7.11.6", - "@jest/test-sequencer": "^29.7.0", - "@jest/types": "^29.6.3", - "babel-jest": "^29.7.0", - "chalk": "^4.0.0", - "ci-info": "^3.2.0", - "deepmerge": "^4.2.2", - "glob": "^7.1.3", - "graceful-fs": "^4.2.9", - "jest-circus": "^29.7.0", - "jest-environment-node": "^29.7.0", - "jest-get-type": "^29.6.3", - "jest-regex-util": "^29.6.3", - "jest-resolve": "^29.7.0", - "jest-runner": "^29.7.0", - "jest-util": "^29.7.0", - "jest-validate": "^29.7.0", - "micromatch": "^4.0.4", - "parse-json": "^5.2.0", - "pretty-format": "^29.7.0", - "slash": "^3.0.0", - "strip-json-comments": "^3.1.1" - }, - "engines": { - "node": "^14.15.0 || ^16.10.0 || >=18.0.0" - }, - "peerDependencies": { - "@types/node": "*", - "ts-node": ">=9.0.0" - }, - "peerDependenciesMeta": { - "@types/node": { - "optional": true - }, - "ts-node": { - "optional": true - } - } - }, - "../core/node_modules/jest-diff": { - "version": "29.7.0", - "dev": true, - "license": "MIT", - "dependencies": { - "chalk": "^4.0.0", - "diff-sequences": "^29.6.3", - "jest-get-type": "^29.6.3", - "pretty-format": "^29.7.0" - }, - "engines": { - "node": "^14.15.0 || ^16.10.0 || >=18.0.0" - } - }, - "../core/node_modules/jest-docblock": { - "version": "29.7.0", - "dev": true, - "license": "MIT", - "dependencies": { - "detect-newline": "^3.0.0" - }, - "engines": { - "node": "^14.15.0 || ^16.10.0 || >=18.0.0" - } - }, - "../core/node_modules/jest-each": { - "version": "29.7.0", - "dev": true, - "license": "MIT", - "dependencies": { - "@jest/types": "^29.6.3", - "chalk": "^4.0.0", - "jest-get-type": "^29.6.3", - "jest-util": "^29.7.0", - "pretty-format": "^29.7.0" - }, - "engines": { - "node": "^14.15.0 || ^16.10.0 || >=18.0.0" - } - }, - "../core/node_modules/jest-environment-jsdom": { - "version": "29.7.0", - "dev": true, - "license": "MIT", - "dependencies": { - "@jest/environment": "^29.7.0", - "@jest/fake-timers": "^29.7.0", - "@jest/types": "^29.6.3", - "@types/jsdom": "^20.0.0", - "@types/node": "*", - "jest-mock": "^29.7.0", - "jest-util": "^29.7.0", - "jsdom": "^20.0.0" - }, - "engines": { - "node": "^14.15.0 || ^16.10.0 || >=18.0.0" - }, - "peerDependencies": { - "canvas": "^2.5.0" - }, - "peerDependenciesMeta": { - "canvas": { - "optional": true - } - } - }, - "../core/node_modules/jest-environment-jsdom/node_modules/@tootallnate/once": { - "version": "2.0.0", - "dev": true, - "license": "MIT", - "engines": { - "node": ">= 10" - } - }, - "../core/node_modules/jest-environment-jsdom/node_modules/@types/jsdom": { - "version": "20.0.1", - "dev": true, - "license": "MIT", - "dependencies": { - "@types/node": "*", - "@types/tough-cookie": "*", - "parse5": "^7.0.0" - } - }, - "../core/node_modules/jest-environment-jsdom/node_modules/agent-base": { - "version": "6.0.2", - "dev": true, - "license": "MIT", - "dependencies": { - "debug": "4" - }, - "engines": { - "node": ">= 6.0.0" - } - }, - "../core/node_modules/jest-environment-jsdom/node_modules/cssstyle": { - "version": "2.3.0", - "dev": true, - "license": "MIT", - "dependencies": { - "cssom": "~0.3.6" - }, - "engines": { - "node": ">=8" - } - }, - "../core/node_modules/jest-environment-jsdom/node_modules/cssstyle/node_modules/cssom": { - "version": "0.3.8", - "dev": true, - "license": "MIT" - }, - "../core/node_modules/jest-environment-jsdom/node_modules/data-urls": { - "version": "3.0.2", - "dev": true, - "license": "MIT", - "dependencies": { - "abab": "^2.0.6", - "whatwg-mimetype": "^3.0.0", - "whatwg-url": "^11.0.0" - }, - "engines": { - "node": ">=12" - } - }, - "../core/node_modules/jest-environment-jsdom/node_modules/html-encoding-sniffer": { - "version": "3.0.0", - "dev": true, - "license": "MIT", - "dependencies": { - "whatwg-encoding": "^2.0.0" - }, - "engines": { - "node": ">=12" - } - }, - "../core/node_modules/jest-environment-jsdom/node_modules/http-proxy-agent": { - "version": "5.0.0", - "dev": true, - "license": "MIT", - "dependencies": { - "@tootallnate/once": "2", - "agent-base": "6", - "debug": "4" - }, - "engines": { - "node": ">= 6" - } - }, - "../core/node_modules/jest-environment-jsdom/node_modules/https-proxy-agent": { - "version": "5.0.1", - "dev": true, - "license": "MIT", - "dependencies": { - "agent-base": "6", - "debug": "4" - }, - "engines": { - "node": ">= 6" - } - }, - "../core/node_modules/jest-environment-jsdom/node_modules/jsdom": { - "version": "20.0.3", - "dev": true, - "license": "MIT", - "dependencies": { - "abab": "^2.0.6", - "acorn": "^8.8.1", - "acorn-globals": "^7.0.0", - "cssom": "^0.5.0", - "cssstyle": "^2.3.0", - "data-urls": "^3.0.2", - "decimal.js": "^10.4.2", - "domexception": "^4.0.0", - "escodegen": "^2.0.0", - "form-data": "^4.0.0", - "html-encoding-sniffer": "^3.0.0", - "http-proxy-agent": "^5.0.0", - "https-proxy-agent": "^5.0.1", - "is-potential-custom-element-name": "^1.0.1", - "nwsapi": "^2.2.2", - "parse5": "^7.1.1", - "saxes": "^6.0.0", - "symbol-tree": "^3.2.4", - "tough-cookie": "^4.1.2", - "w3c-xmlserializer": "^4.0.0", - "webidl-conversions": "^7.0.0", - "whatwg-encoding": "^2.0.0", - "whatwg-mimetype": "^3.0.0", - "whatwg-url": "^11.0.0", - "ws": "^8.11.0", - "xml-name-validator": "^4.0.0" - }, - "engines": { - "node": ">=14" - }, - "peerDependencies": { - "canvas": "^2.5.0" - }, - "peerDependenciesMeta": { - "canvas": { - "optional": true - } - } - }, - "../core/node_modules/jest-environment-jsdom/node_modules/tr46": { - "version": "3.0.0", - "dev": true, - "license": "MIT", - "dependencies": { - "punycode": "^2.1.1" - }, - "engines": { - "node": ">=12" - } - }, - "../core/node_modules/jest-environment-jsdom/node_modules/w3c-xmlserializer": { - "version": "4.0.0", - "dev": true, - "license": "MIT", - "dependencies": { - "xml-name-validator": "^4.0.0" - }, - "engines": { - "node": ">=14" - } - }, - "../core/node_modules/jest-environment-jsdom/node_modules/whatwg-encoding": { - "version": "2.0.0", - "dev": true, - "license": "MIT", - "dependencies": { - "iconv-lite": "0.6.3" - }, - "engines": { - "node": ">=12" - } - }, - "../core/node_modules/jest-environment-jsdom/node_modules/whatwg-mimetype": { - "version": "3.0.0", - "dev": true, - "license": "MIT", - "engines": { - "node": ">=12" - } - }, - "../core/node_modules/jest-environment-jsdom/node_modules/whatwg-url": { - "version": "11.0.0", - "dev": true, - "license": "MIT", - "dependencies": { - "tr46": "^3.0.0", - "webidl-conversions": "^7.0.0" - }, - "engines": { - "node": ">=12" - } - }, - "../core/node_modules/jest-environment-jsdom/node_modules/xml-name-validator": { - "version": "4.0.0", - "dev": true, - "license": "Apache-2.0", - "engines": { - "node": ">=12" - } - }, - "../core/node_modules/jest-environment-node": { - "version": "29.7.0", - "dev": true, - "license": "MIT", - "dependencies": { - "@jest/environment": "^29.7.0", - "@jest/fake-timers": "^29.7.0", - "@jest/types": "^29.6.3", - "@types/node": "*", - "jest-mock": "^29.7.0", - "jest-util": "^29.7.0" - }, - "engines": { - "node": "^14.15.0 || ^16.10.0 || >=18.0.0" - } - }, - "../core/node_modules/jest-get-type": { - "version": "29.6.3", - "dev": true, - "license": "MIT", - "engines": { - "node": "^14.15.0 || ^16.10.0 || >=18.0.0" - } - }, - "../core/node_modules/jest-haste-map": { - "version": "29.7.0", - "dev": true, - "license": "MIT", - "dependencies": { - "@jest/types": "^29.6.3", - "@types/graceful-fs": "^4.1.3", - "@types/node": "*", - "anymatch": "^3.0.3", - "fb-watchman": "^2.0.0", - "graceful-fs": "^4.2.9", - "jest-regex-util": "^29.6.3", - "jest-util": "^29.7.0", - "jest-worker": "^29.7.0", - "micromatch": "^4.0.4", - "walker": "^1.0.8" - }, - "engines": { - "node": "^14.15.0 || ^16.10.0 || >=18.0.0" - }, - "optionalDependencies": { - "fsevents": "^2.3.2" - } - }, - "../core/node_modules/jest-leak-detector": { - "version": "29.7.0", - "dev": true, - "license": "MIT", - "dependencies": { - "jest-get-type": "^29.6.3", - "pretty-format": "^29.7.0" - }, - "engines": { - "node": "^14.15.0 || ^16.10.0 || >=18.0.0" - } - }, - "../core/node_modules/jest-matcher-utils": { - "version": "29.7.0", - "dev": true, - "license": "MIT", - "dependencies": { - "chalk": "^4.0.0", - "jest-diff": "^29.7.0", - "jest-get-type": "^29.6.3", - "pretty-format": "^29.7.0" - }, - "engines": { - "node": "^14.15.0 || ^16.10.0 || >=18.0.0" - } - }, - "../core/node_modules/jest-message-util": { - "version": "29.7.0", - "dev": true, - "license": "MIT", - "dependencies": { - "@babel/code-frame": "^7.12.13", - "@jest/types": "^29.6.3", - "@types/stack-utils": "^2.0.0", - "chalk": "^4.0.0", - "graceful-fs": "^4.2.9", - "micromatch": "^4.0.4", - "pretty-format": "^29.7.0", - "slash": "^3.0.0", - "stack-utils": "^2.0.3" - }, - "engines": { - "node": "^14.15.0 || ^16.10.0 || >=18.0.0" - } - }, - "../core/node_modules/jest-mock": { - "version": "29.7.0", - "dev": true, - "license": "MIT", - "dependencies": { - "@jest/types": "^29.6.3", - "@types/node": "*", - "jest-util": "^29.7.0" - }, - "engines": { - "node": "^14.15.0 || ^16.10.0 || >=18.0.0" - } - }, - "../core/node_modules/jest-pnp-resolver": { - "version": "1.2.3", - "dev": true, - "license": "MIT", - "engines": { - "node": ">=6" - }, - "peerDependencies": { - "jest-resolve": "*" - }, - "peerDependenciesMeta": { - "jest-resolve": { - "optional": true - } - } - }, - "../core/node_modules/jest-regex-util": { - "version": "29.6.3", - "dev": true, - "license": "MIT", - "engines": { - "node": "^14.15.0 || ^16.10.0 || >=18.0.0" - } - }, - "../core/node_modules/jest-resolve": { - "version": "29.7.0", - "dev": true, - "license": "MIT", - "dependencies": { - "chalk": "^4.0.0", - "graceful-fs": "^4.2.9", - "jest-haste-map": "^29.7.0", - "jest-pnp-resolver": "^1.2.2", - "jest-util": "^29.7.0", - "jest-validate": "^29.7.0", - "resolve": "^1.20.0", - "resolve.exports": "^2.0.0", - "slash": "^3.0.0" - }, - "engines": { - "node": "^14.15.0 || ^16.10.0 || >=18.0.0" - } - }, - "../core/node_modules/jest-resolve-dependencies": { - "version": "29.7.0", - "dev": true, - "license": "MIT", - "dependencies": { - "jest-regex-util": "^29.6.3", - "jest-snapshot": "^29.7.0" - }, - "engines": { - "node": "^14.15.0 || ^16.10.0 || >=18.0.0" - } - }, - "../core/node_modules/jest-runner": { - "version": "29.7.0", - "dev": true, - "license": "MIT", - "dependencies": { - "@jest/console": "^29.7.0", - "@jest/environment": "^29.7.0", - "@jest/test-result": "^29.7.0", - "@jest/transform": "^29.7.0", - "@jest/types": "^29.6.3", - "@types/node": "*", - "chalk": "^4.0.0", - "emittery": "^0.13.1", - "graceful-fs": "^4.2.9", - "jest-docblock": "^29.7.0", - "jest-environment-node": "^29.7.0", - "jest-haste-map": "^29.7.0", - "jest-leak-detector": "^29.7.0", - "jest-message-util": "^29.7.0", - "jest-resolve": "^29.7.0", - "jest-runtime": "^29.7.0", - "jest-util": "^29.7.0", - "jest-watcher": "^29.7.0", - "jest-worker": "^29.7.0", - "p-limit": "^3.1.0", - "source-map-support": "0.5.13" - }, - "engines": { - "node": "^14.15.0 || ^16.10.0 || >=18.0.0" - } - }, - "../core/node_modules/jest-runner/node_modules/p-limit": { - "version": "3.1.0", - "dev": true, - "license": "MIT", - "dependencies": { - "yocto-queue": "^0.1.0" - }, - "engines": { - "node": ">=10" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - }, - "../core/node_modules/jest-runner/node_modules/yocto-queue": { - "version": "0.1.0", - "dev": true, - "license": "MIT", - "engines": { - "node": ">=10" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - }, - "../core/node_modules/jest-runtime": { - "version": "29.7.0", - "dev": true, - "license": "MIT", - "dependencies": { - "@jest/environment": "^29.7.0", - "@jest/fake-timers": "^29.7.0", - "@jest/globals": "^29.7.0", - "@jest/source-map": "^29.6.3", - "@jest/test-result": "^29.7.0", - "@jest/transform": "^29.7.0", - "@jest/types": "^29.6.3", - "@types/node": "*", - "chalk": "^4.0.0", - "cjs-module-lexer": "^1.0.0", - "collect-v8-coverage": "^1.0.0", - "glob": "^7.1.3", - "graceful-fs": "^4.2.9", - "jest-haste-map": "^29.7.0", - "jest-message-util": "^29.7.0", - "jest-mock": "^29.7.0", - "jest-regex-util": "^29.6.3", - "jest-resolve": "^29.7.0", - "jest-snapshot": "^29.7.0", - "jest-util": "^29.7.0", - "slash": "^3.0.0", - "strip-bom": "^4.0.0" - }, - "engines": { - "node": "^14.15.0 || ^16.10.0 || >=18.0.0" - } - }, - "../core/node_modules/jest-snapshot": { - "version": "29.7.0", - "dev": true, - "license": "MIT", - "dependencies": { - "@babel/core": "^7.11.6", - "@babel/generator": "^7.7.2", - "@babel/plugin-syntax-jsx": "^7.7.2", - "@babel/plugin-syntax-typescript": "^7.7.2", - "@babel/types": "^7.3.3", - "@jest/expect-utils": "^29.7.0", - "@jest/transform": "^29.7.0", - "@jest/types": "^29.6.3", - "babel-preset-current-node-syntax": "^1.0.0", - "chalk": "^4.0.0", - "expect": "^29.7.0", - "graceful-fs": "^4.2.9", - "jest-diff": "^29.7.0", - "jest-get-type": "^29.6.3", - "jest-matcher-utils": "^29.7.0", - "jest-message-util": "^29.7.0", - "jest-util": "^29.7.0", - "natural-compare": "^1.4.0", - "pretty-format": "^29.7.0", - "semver": "^7.5.3" - }, - "engines": { - "node": "^14.15.0 || ^16.10.0 || >=18.0.0" - } - }, - "../core/node_modules/jest-util": { - "version": "29.7.0", - "dev": true, - "license": "MIT", - "dependencies": { - "@jest/types": "^29.6.3", - "@types/node": "*", - "chalk": "^4.0.0", - "ci-info": "^3.2.0", - "graceful-fs": "^4.2.9", - "picomatch": "^2.2.3" - }, - "engines": { - "node": "^14.15.0 || ^16.10.0 || >=18.0.0" - } - }, - "../core/node_modules/jest-validate": { - "version": "29.7.0", - "dev": true, - "license": "MIT", - "dependencies": { - "@jest/types": "^29.6.3", - "camelcase": "^6.2.0", - "chalk": "^4.0.0", - "jest-get-type": "^29.6.3", - "leven": "^3.1.0", - "pretty-format": "^29.7.0" - }, - "engines": { - "node": "^14.15.0 || ^16.10.0 || >=18.0.0" - } - }, - "../core/node_modules/jest-validate/node_modules/camelcase": { - "version": "6.3.0", - "dev": true, - "license": "MIT", - "engines": { - "node": ">=10" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - }, - "../core/node_modules/jest-watcher": { - "version": "29.7.0", - "dev": true, - "license": "MIT", - "dependencies": { - "@jest/test-result": "^29.7.0", - "@jest/types": "^29.6.3", - "@types/node": "*", - "ansi-escapes": "^4.2.1", - "chalk": "^4.0.0", - "emittery": "^0.13.1", - "jest-util": "^29.7.0", - "string-length": "^4.0.1" - }, - "engines": { - "node": "^14.15.0 || ^16.10.0 || >=18.0.0" - } - }, - "../core/node_modules/jest-worker": { - "version": "29.7.0", - "dev": true, - "license": "MIT", - "dependencies": { - "@types/node": "*", - "jest-util": "^29.7.0", - "merge-stream": "^2.0.0", - "supports-color": "^8.0.0" - }, - "engines": { - "node": "^14.15.0 || ^16.10.0 || >=18.0.0" - } - }, - "../core/node_modules/jest-worker/node_modules/supports-color": { - "version": "8.1.1", - "dev": true, - "license": "MIT", - "dependencies": { - "has-flag": "^4.0.0" - }, - "engines": { - "node": ">=10" - }, - "funding": { - "url": "https://github.com/chalk/supports-color?sponsor=1" - } - }, - "../core/node_modules/jinja-js": { - "version": "0.1.8", - "license": "BSD", - "bin": { - "jinjajs": "cli.js" - } - }, - "../core/node_modules/js-tiktoken": { - "version": "1.0.12", - "license": "MIT", - "dependencies": { - "base64-js": "^1.5.1" - } - }, - "../core/node_modules/js-tokens": { - "version": "4.0.0", - "license": "MIT" - }, - "../core/node_modules/js-yaml": { - "version": "4.1.0", - "license": "MIT", - "dependencies": { - "argparse": "^2.0.1" - }, - "bin": { - "js-yaml": "bin/js-yaml.js" - } - }, - "../core/node_modules/jsbn": { - "version": "1.1.0", - "license": "MIT" - }, - "../core/node_modules/jsdom": { - "version": "24.1.1", - "license": "MIT", - "dependencies": { - "cssstyle": "^4.0.1", - "data-urls": "^5.0.0", - "decimal.js": "^10.4.3", - "form-data": "^4.0.0", - "html-encoding-sniffer": "^4.0.0", - "http-proxy-agent": "^7.0.2", - "https-proxy-agent": "^7.0.5", - "is-potential-custom-element-name": "^1.0.1", - "nwsapi": "^2.2.12", - "parse5": "^7.1.2", - "rrweb-cssom": "^0.7.1", - "saxes": "^6.0.0", - "symbol-tree": "^3.2.4", - "tough-cookie": "^4.1.4", - "w3c-xmlserializer": "^5.0.0", - "webidl-conversions": "^7.0.0", - "whatwg-encoding": "^3.1.1", - "whatwg-mimetype": "^4.0.0", - "whatwg-url": "^14.0.0", - "ws": "^8.18.0", - "xml-name-validator": "^5.0.0" - }, - "engines": { - "node": ">=18" - }, - "peerDependencies": { - "canvas": "^2.11.2" - }, - "peerDependenciesMeta": { - "canvas": { - "optional": true - } - } - }, - "../core/node_modules/jsdom/node_modules/rrweb-cssom": { - "version": "0.7.1", - "license": "MIT" - }, - "../core/node_modules/jsesc": { - "version": "2.5.2", - "dev": true, - "license": "MIT", - "bin": { - "jsesc": "bin/jsesc" - }, - "engines": { - "node": ">=4" - } - }, - "../core/node_modules/json-bignum": { - "version": "0.0.3", - "peer": true, - "engines": { - "node": ">=0.8" - } - }, - "../core/node_modules/json-buffer": { - "version": "3.0.1", - "license": "MIT" - }, - "../core/node_modules/json-parse-even-better-errors": { - "version": "2.3.1", - "license": "MIT" - }, - "../core/node_modules/json-schema": { - "version": "0.4.0", - "license": "(AFL-2.1 OR BSD-3-Clause)" - }, - "../core/node_modules/json-schema-traverse": { - "version": "0.4.1", - "license": "MIT" - }, - "../core/node_modules/json-stable-stringify-without-jsonify": { - "version": "1.0.1", - "license": "MIT" - }, - "../core/node_modules/json-stringify-safe": { - "version": "5.0.1", - "license": "ISC" - }, - "../core/node_modules/json5": { - "version": "2.2.3", - "dev": true, - "license": "MIT", - "bin": { - "json5": "lib/cli.js" - }, - "engines": { - "node": ">=6" - } - }, - "../core/node_modules/jsonfile": { - "version": "6.1.0", - "license": "MIT", - "dependencies": { - "universalify": "^2.0.0" - }, - "optionalDependencies": { - "graceful-fs": "^4.1.6" - } - }, - "../core/node_modules/jsonfile/node_modules/universalify": { - "version": "2.0.1", - "license": "MIT", - "engines": { - "node": ">= 10.0.0" - } - }, - "../core/node_modules/jsprim": { - "version": "1.4.2", - "license": "MIT", - "dependencies": { - "assert-plus": "1.0.0", - "extsprintf": "1.3.0", - "json-schema": "0.4.0", - "verror": "1.10.0" - }, - "engines": { - "node": ">=0.6.0" - } - }, - "../core/node_modules/keyv": { - "version": "4.5.4", - "license": "MIT", - "dependencies": { - "json-buffer": "3.0.1" - } - }, - "../core/node_modules/kleur": { - "version": "3.0.3", - "dev": true, - "license": "MIT", - "engines": { - "node": ">=6" - } - }, - "../core/node_modules/launchdarkly-eventsource": { - "version": "2.0.2", - "license": "MIT", - "engines": { - "node": ">=0.12.0" - } - }, - "../core/node_modules/launchdarkly-js-sdk-common": { - "version": "5.2.0", - "license": "Apache-2.0", - "dependencies": { - "base64-js": "^1.3.0", - "fast-deep-equal": "^2.0.1", - "uuid": "^8.0.0" - } - }, - "../core/node_modules/launchdarkly-js-sdk-common/node_modules/fast-deep-equal": { - "version": "2.0.1", - "license": "MIT" - }, - "../core/node_modules/launchdarkly-js-sdk-common/node_modules/uuid": { - "version": "8.3.2", - "license": "MIT", - "bin": { - "uuid": "dist/bin/uuid" - } - }, - "../core/node_modules/launchdarkly-node-client-sdk": { - "version": "3.2.0", - "license": "Apache-2.0", - "dependencies": { - "launchdarkly-eventsource": "2.0.2", - "launchdarkly-js-sdk-common": "5.2.0", - "node-localstorage": "^1.3.1" - }, - "engines": { - "node": ">= 12.0.0" - } - }, - "../core/node_modules/leven": { - "version": "3.1.0", - "dev": true, - "license": "MIT", - "engines": { - "node": ">=6" - } - }, - "../core/node_modules/levn": { - "version": "0.4.1", - "license": "MIT", - "dependencies": { - "prelude-ls": "^1.2.1", - "type-check": "~0.4.0" - }, - "engines": { - "node": ">= 0.8.0" - } - }, - "../core/node_modules/lines-and-columns": { - "version": "1.2.4", - "license": "MIT" - }, - "../core/node_modules/llm-code-highlighter": { - "version": "0.0.14", - "license": "Apache-2.0", - "dependencies": { - "graphology": "^0.25.4", - "graphology-metrics": "^2.2.0", - "lodash": "^4.17.21", - "tree-sitter-wasms": "^0.1.6", - "web-tree-sitter": "^0.21.0" - } - }, - "../core/node_modules/locate-path": { - "version": "6.0.0", - "license": "MIT", - "dependencies": { - "p-locate": "^5.0.0" - }, - "engines": { - "node": ">=10" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - }, - "../core/node_modules/lodash": { - "version": "4.17.21", - "license": "MIT" - }, - "../core/node_modules/lodash.assignwith": { - "version": "4.2.0", - "license": "MIT", - "peer": true - }, - "../core/node_modules/lodash.camelcase": { - "version": "4.3.0", - "license": "MIT", - "peer": true - }, - "../core/node_modules/lodash.debounce": { - "version": "4.0.8", - "dev": true, - "license": "MIT" - }, - "../core/node_modules/lodash.memoize": { - "version": "4.1.2", - "dev": true, - "license": "MIT" - }, - "../core/node_modules/lodash.merge": { - "version": "4.6.2", - "license": "MIT" - }, - "../core/node_modules/long": { - "version": "5.2.3", - "license": "Apache-2.0" - }, - "../core/node_modules/lru-cache": { - "version": "5.1.1", - "dev": true, - "license": "ISC", - "dependencies": { - "yallist": "^3.0.2" - } - }, - "../core/node_modules/mac-ca": { - "version": "3.1.0", - "license": "BSD-3-Clause", - "dependencies": { - "node-forge": "^1.3.1", - "undici": "^6.16.1" - } - }, - "../core/node_modules/macos-export-certificate-and-key": { - "version": "1.1.2", - "hasInstallScript": true, - "license": "Apache-2.0", - "optional": true, - "os": [ - "darwin" - ], - "dependencies": { - "bindings": "^1.5.0", - "node-addon-api": "^4.3.0" - } - }, - "../core/node_modules/macos-export-certificate-and-key/node_modules/node-addon-api": { - "version": "4.3.0", - "license": "MIT", - "optional": true - }, - "../core/node_modules/make-dir": { - "version": "4.0.0", - "dev": true, - "license": "MIT", - "dependencies": { - "semver": "^7.5.3" - }, - "engines": { - "node": ">=10" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - }, - "../core/node_modules/make-error": { - "version": "1.3.6", - "dev": true, - "license": "ISC" - }, - "../core/node_modules/make-fetch-happen": { - "version": "9.1.0", - "license": "ISC", - "optional": true, - "dependencies": { - "agentkeepalive": "^4.1.3", - "cacache": "^15.2.0", - "http-cache-semantics": "^4.1.0", - "http-proxy-agent": "^4.0.1", - "https-proxy-agent": "^5.0.0", - "is-lambda": "^1.0.1", - "lru-cache": "^6.0.0", - "minipass": "^3.1.3", - "minipass-collect": "^1.0.2", - "minipass-fetch": "^1.3.2", - "minipass-flush": "^1.0.5", - "minipass-pipeline": "^1.2.4", - "negotiator": "^0.6.2", - "promise-retry": "^2.0.1", - "socks-proxy-agent": "^6.0.0", - "ssri": "^8.0.0" - }, - "engines": { - "node": ">= 10" - } - }, - "../core/node_modules/make-fetch-happen/node_modules/agent-base": { - "version": "6.0.2", - "license": "MIT", - "optional": true, - "dependencies": { - "debug": "4" - }, - "engines": { - "node": ">= 6.0.0" - } - }, - "../core/node_modules/make-fetch-happen/node_modules/http-proxy-agent": { - "version": "4.0.1", - "license": "MIT", - "optional": true, - "dependencies": { - "@tootallnate/once": "1", - "agent-base": "6", - "debug": "4" - }, - "engines": { - "node": ">= 6" - } - }, - "../core/node_modules/make-fetch-happen/node_modules/https-proxy-agent": { - "version": "5.0.1", - "license": "MIT", - "optional": true, - "dependencies": { - "agent-base": "6", - "debug": "4" - }, - "engines": { - "node": ">= 6" - } - }, - "../core/node_modules/make-fetch-happen/node_modules/lru-cache": { - "version": "6.0.0", - "license": "ISC", - "optional": true, - "dependencies": { - "yallist": "^4.0.0" - }, - "engines": { - "node": ">=10" - } - }, - "../core/node_modules/make-fetch-happen/node_modules/yallist": { - "version": "4.0.0", - "license": "ISC", - "optional": true - }, - "../core/node_modules/makeerror": { - "version": "1.0.12", - "dev": true, - "license": "BSD-3-Clause", - "dependencies": { - "tmpl": "1.0.5" - } - }, - "../core/node_modules/merge-stream": { - "version": "2.0.0", - "dev": true, - "license": "MIT" - }, - "../core/node_modules/merge2": { - "version": "1.4.1", - "license": "MIT", - "engines": { - "node": ">= 8" - } - }, - "../core/node_modules/micromatch": { - "version": "4.0.6", - "license": "MIT", - "dependencies": { - "braces": "^3.0.3", - "picomatch": "^4.0.2" - }, - "engines": { - "node": ">=8.6" - } - }, - "../core/node_modules/micromatch/node_modules/picomatch": { - "version": "4.0.2", - "license": "MIT", - "engines": { - "node": ">=12" - }, - "funding": { - "url": "https://github.com/sponsors/jonschlinkert" - } - }, - "../core/node_modules/mime-db": { - "version": "1.52.0", - "license": "MIT", - "engines": { - "node": ">= 0.6" - } - }, - "../core/node_modules/mime-types": { - "version": "2.1.35", - "license": "MIT", - "dependencies": { - "mime-db": "1.52.0" - }, - "engines": { - "node": ">= 0.6" - } - }, - "../core/node_modules/mimic-fn": { - "version": "2.1.0", - "dev": true, - "license": "MIT", - "engines": { - "node": ">=6" - } - }, - "../core/node_modules/mimic-response": { - "version": "3.1.0", - "license": "MIT", - "engines": { - "node": ">=10" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - }, - "../core/node_modules/minimatch": { - "version": "9.0.4", - "license": "ISC", - "dependencies": { - "brace-expansion": "^2.0.1" - }, - "engines": { - "node": ">=16 || 14 >=14.17" - }, - "funding": { - "url": "https://github.com/sponsors/isaacs" - } - }, - "../core/node_modules/minimist": { - "version": "1.2.8", - "license": "MIT", - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, - "../core/node_modules/minipass": { - "version": "3.3.6", - "license": "ISC", - "dependencies": { - "yallist": "^4.0.0" - }, - "engines": { - "node": ">=8" - } - }, - "../core/node_modules/minipass-collect": { - "version": "1.0.2", - "license": "ISC", - "optional": true, - "dependencies": { - "minipass": "^3.0.0" - }, - "engines": { - "node": ">= 8" - } - }, - "../core/node_modules/minipass-fetch": { - "version": "1.4.1", - "license": "MIT", - "optional": true, - "dependencies": { - "minipass": "^3.1.0", - "minipass-sized": "^1.0.3", - "minizlib": "^2.0.0" - }, - "engines": { - "node": ">=8" - }, - "optionalDependencies": { - "encoding": "^0.1.12" - } - }, - "../core/node_modules/minipass-flush": { - "version": "1.0.5", - "license": "ISC", - "optional": true, - "dependencies": { - "minipass": "^3.0.0" - }, - "engines": { - "node": ">= 8" - } - }, - "../core/node_modules/minipass-pipeline": { - "version": "1.2.4", - "license": "ISC", - "optional": true, - "dependencies": { - "minipass": "^3.0.0" - }, - "engines": { - "node": ">=8" - } - }, - "../core/node_modules/minipass-sized": { - "version": "1.0.3", - "license": "ISC", - "optional": true, - "dependencies": { - "minipass": "^3.0.0" - }, - "engines": { - "node": ">=8" - } - }, - "../core/node_modules/minipass/node_modules/yallist": { - "version": "4.0.0", - "license": "ISC" - }, - "../core/node_modules/minizlib": { - "version": "2.1.2", - "license": "MIT", - "dependencies": { - "minipass": "^3.0.0", - "yallist": "^4.0.0" - }, - "engines": { - "node": ">= 8" - } - }, - "../core/node_modules/minizlib/node_modules/yallist": { - "version": "4.0.0", - "license": "ISC" - }, - "../core/node_modules/mitt": { - "version": "3.0.1", - "license": "MIT" - }, - "../core/node_modules/mkdirp": { - "version": "1.0.4", - "license": "MIT", - "bin": { - "mkdirp": "bin/cmd.js" - }, - "engines": { - "node": ">=10" - } - }, - "../core/node_modules/mkdirp-classic": { - "version": "0.5.3", - "license": "MIT" - }, - "../core/node_modules/mnemonist": { - "version": "0.39.8", - "license": "MIT", - "dependencies": { - "obliterator": "^2.0.1" - } - }, - "../core/node_modules/ms": { - "version": "2.1.2", - "license": "MIT" - }, - "../core/node_modules/myers-diff": { - "version": "2.1.0", - "dev": true, - "license": "Apache-2.0", - "engines": { - "node": ">=10" - } - }, - "../core/node_modules/mysql2": { - "version": "3.9.7", - "license": "MIT", - "dependencies": { - "denque": "^2.1.0", - "generate-function": "^2.3.1", - "iconv-lite": "^0.6.3", - "long": "^5.2.1", - "lru-cache": "^8.0.0", - "named-placeholders": "^1.1.3", - "seq-queue": "^0.0.5", - "sqlstring": "^2.3.2" - }, - "engines": { - "node": ">= 8.0" - } - }, - "../core/node_modules/mysql2/node_modules/lru-cache": { - "version": "8.0.5", - "license": "ISC", - "engines": { - "node": ">=16.14" - } - }, - "../core/node_modules/named-placeholders": { - "version": "1.1.3", - "license": "MIT", - "dependencies": { - "lru-cache": "^7.14.1" - }, - "engines": { - "node": ">=12.0.0" - } - }, - "../core/node_modules/named-placeholders/node_modules/lru-cache": { - "version": "7.18.3", - "license": "ISC", - "engines": { - "node": ">=12" - } - }, - "../core/node_modules/napi-build-utils": { - "version": "1.0.2", - "license": "MIT" - }, - "../core/node_modules/natural-compare": { - "version": "1.4.0", - "license": "MIT" - }, - "../core/node_modules/negotiator": { - "version": "0.6.3", - "license": "MIT", - "optional": true, - "engines": { - "node": ">= 0.6" - } - }, - "../core/node_modules/neo-async": { - "version": "2.6.2", - "license": "MIT" - }, - "../core/node_modules/netmask": { - "version": "2.0.2", - "license": "MIT", - "engines": { - "node": ">= 0.4.0" - } - }, - "../core/node_modules/node-abi": { - "version": "3.62.0", - "license": "MIT", - "dependencies": { - "semver": "^7.3.5" - }, - "engines": { - "node": ">=10" - } - }, - "../core/node_modules/node-addon-api": { - "version": "6.1.0", - "license": "MIT" - }, - "../core/node_modules/node-domexception": { - "version": "1.0.0", - "funding": [ - { - "type": "github", - "url": "https://github.com/sponsors/jimmywarting" - }, - { - "type": "github", - "url": "https://paypal.me/jimmywarting" - } - ], - "license": "MIT", - "engines": { - "node": ">=10.5.0" - } - }, - "../core/node_modules/node-fetch": { - "version": "3.3.2", - "license": "MIT", - "dependencies": { - "data-uri-to-buffer": "^4.0.0", - "fetch-blob": "^3.1.4", - "formdata-polyfill": "^4.0.10" - }, - "engines": { - "node": "^12.20.0 || ^14.13.1 || >=16.0.0" - }, - "funding": { - "type": "opencollective", - "url": "https://opencollective.com/node-fetch" - } - }, - "../core/node_modules/node-forge": { - "version": "1.3.1", - "license": "(BSD-3-Clause OR GPL-2.0)", - "engines": { - "node": ">= 6.13.0" - } - }, - "../core/node_modules/node-gyp": { - "version": "8.4.1", - "license": "MIT", - "optional": true, - "dependencies": { - "env-paths": "^2.2.0", - "glob": "^7.1.4", - "graceful-fs": "^4.2.6", - "make-fetch-happen": "^9.1.0", - "nopt": "^5.0.0", - "npmlog": "^6.0.0", - "rimraf": "^3.0.2", - "semver": "^7.3.5", - "tar": "^6.1.2", - "which": "^2.0.2" - }, - "bin": { - "node-gyp": "bin/node-gyp.js" - }, - "engines": { - "node": ">= 10.12.0" - } - }, - "../core/node_modules/node-html-markdown": { - "version": "1.3.0", - "license": "MIT", - "dependencies": { - "node-html-parser": "^6.1.1" - }, - "engines": { - "node": ">=10.0.0" - } - }, - "../core/node_modules/node-html-parser": { - "version": "6.1.13", - "license": "MIT", - "dependencies": { - "css-select": "^5.1.0", - "he": "1.2.0" - } - }, - "../core/node_modules/node-int64": { - "version": "0.4.0", - "dev": true, - "license": "MIT" - }, - "../core/node_modules/node-localstorage": { - "version": "1.3.1", - "dependencies": { - "write-file-atomic": "^1.1.4" - }, - "engines": { - "node": ">=0.12" - } - }, - "../core/node_modules/node-localstorage/node_modules/write-file-atomic": { - "version": "1.3.4", - "license": "ISC", - "dependencies": { - "graceful-fs": "^4.1.11", - "imurmurhash": "^0.1.4", - "slide": "^1.1.5" - } - }, - "../core/node_modules/node-releases": { - "version": "2.0.14", - "dev": true, - "license": "MIT" - }, - "../core/node_modules/nopt": { - "version": "5.0.0", - "license": "ISC", - "optional": true, - "dependencies": { - "abbrev": "1" - }, - "bin": { - "nopt": "bin/nopt.js" - }, - "engines": { - "node": ">=6" - } - }, - "../core/node_modules/normalize-path": { - "version": "3.0.0", - "dev": true, - "license": "MIT", - "engines": { - "node": ">=0.10.0" - } - }, - "../core/node_modules/npm-run-path": { - "version": "4.0.1", - "dev": true, - "license": "MIT", - "dependencies": { - "path-key": "^3.0.0" - }, - "engines": { - "node": ">=8" - } - }, - "../core/node_modules/npmlog": { - "version": "6.0.2", - "license": "ISC", - "optional": true, - "dependencies": { - "are-we-there-yet": "^3.0.0", - "console-control-strings": "^1.1.0", - "gauge": "^4.0.3", - "set-blocking": "^2.0.0" - }, - "engines": { - "node": "^12.13.0 || ^14.15.0 || >=16.0.0" - } - }, - "../core/node_modules/nth-check": { - "version": "2.1.1", - "license": "BSD-2-Clause", - "dependencies": { - "boolbase": "^1.0.0" - }, - "funding": { - "url": "https://github.com/fb55/nth-check?sponsor=1" - } - }, - "../core/node_modules/nwsapi": { - "version": "2.2.12", - "license": "MIT" - }, - "../core/node_modules/oauth-sign": { - "version": "0.9.0", - "license": "Apache-2.0", - "engines": { - "node": "*" - } - }, - "../core/node_modules/object-inspect": { - "version": "1.13.1", - "license": "MIT", - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, - "../core/node_modules/object-keys": { - "version": "1.1.1", - "license": "MIT", - "engines": { - "node": ">= 0.4" - } - }, - "../core/node_modules/object.assign": { - "version": "4.1.5", - "license": "MIT", - "dependencies": { - "call-bind": "^1.0.5", - "define-properties": "^1.2.1", - "has-symbols": "^1.0.3", - "object-keys": "^1.1.1" - }, - "engines": { - "node": ">= 0.4" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, - "../core/node_modules/object.entries": { - "version": "1.1.8", - "license": "MIT", - "dependencies": { - "call-bind": "^1.0.7", - "define-properties": "^1.2.1", - "es-object-atoms": "^1.0.0" - }, - "engines": { - "node": ">= 0.4" - } - }, - "../core/node_modules/object.fromentries": { - "version": "2.0.8", - "license": "MIT", - "dependencies": { - "call-bind": "^1.0.7", - "define-properties": "^1.2.1", - "es-abstract": "^1.23.2", - "es-object-atoms": "^1.0.0" - }, - "engines": { - "node": ">= 0.4" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, - "../core/node_modules/object.groupby": { - "version": "1.0.3", - "license": "MIT", - "dependencies": { - "call-bind": "^1.0.7", - "define-properties": "^1.2.1", - "es-abstract": "^1.23.2" - }, - "engines": { - "node": ">= 0.4" - } - }, - "../core/node_modules/object.values": { - "version": "1.2.0", - "license": "MIT", - "dependencies": { - "call-bind": "^1.0.7", - "define-properties": "^1.2.1", - "es-object-atoms": "^1.0.0" - }, - "engines": { - "node": ">= 0.4" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, - "../core/node_modules/obliterator": { - "version": "2.0.4", - "license": "MIT" - }, - "../core/node_modules/obuf": { - "version": "1.1.2", - "dev": true, - "license": "MIT" - }, - "../core/node_modules/ollama": { - "version": "0.4.9", - "license": "MIT", - "dependencies": { - "whatwg-fetch": "^3.6.20" - } - }, - "../core/node_modules/once": { - "version": "1.4.0", - "license": "ISC", - "dependencies": { - "wrappy": "1" - } - }, - "../core/node_modules/onetime": { - "version": "5.1.2", - "dev": true, - "license": "MIT", - "dependencies": { - "mimic-fn": "^2.1.0" - }, - "engines": { - "node": ">=6" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - }, - "../core/node_modules/onnx-proto": { - "version": "4.0.4", - "license": "MIT", - "dependencies": { - "protobufjs": "^6.8.8" - } - }, - "../core/node_modules/onnxruntime-common": { - "version": "1.14.0", - "license": "MIT" - }, - "../core/node_modules/onnxruntime-node": { - "version": "1.14.0", - "license": "MIT", - "os": [ - "win32", - "darwin", - "linux" - ], - "dependencies": { - "onnxruntime-common": "~1.14.0" - } - }, - "../core/node_modules/onnxruntime-web": { - "version": "1.14.0", - "license": "MIT", - "dependencies": { - "flatbuffers": "^1.12.0", - "guid-typescript": "^1.0.9", - "long": "^4.0.0", - "onnx-proto": "^4.0.4", - "onnxruntime-common": "~1.14.0", - "platform": "^1.3.6" - } - }, - "../core/node_modules/onnxruntime-web/node_modules/flatbuffers": { - "version": "1.12.0", - "license": "SEE LICENSE IN LICENSE.txt" - }, - "../core/node_modules/onnxruntime-web/node_modules/long": { - "version": "4.0.0", - "license": "Apache-2.0" - }, - "../core/node_modules/openai": { - "version": "4.47.1", - "license": "Apache-2.0", - "dependencies": { - "@types/node": "^18.11.18", - "@types/node-fetch": "^2.6.4", - "abort-controller": "^3.0.0", - "agentkeepalive": "^4.2.1", - "form-data-encoder": "1.7.2", - "formdata-node": "^4.3.2", - "node-fetch": "^2.6.7", - "web-streams-polyfill": "^3.2.1" - }, - "bin": { - "openai": "bin/cli" - } - }, - "../core/node_modules/openai/node_modules/@types/node": { - "version": "18.19.33", - "license": "MIT", - "dependencies": { - "undici-types": "~5.26.4" - } - }, - "../core/node_modules/openai/node_modules/node-fetch": { - "version": "2.7.0", - "license": "MIT", - "dependencies": { - "whatwg-url": "^5.0.0" - }, - "engines": { - "node": "4.x || >=6.0.0" - }, - "peerDependencies": { - "encoding": "^0.1.0" - }, - "peerDependenciesMeta": { - "encoding": { - "optional": true - } - } - }, - "../core/node_modules/openai/node_modules/tr46": { - "version": "0.0.3", - "license": "MIT" - }, - "../core/node_modules/openai/node_modules/webidl-conversions": { - "version": "3.0.1", - "license": "BSD-2-Clause" - }, - "../core/node_modules/openai/node_modules/whatwg-url": { - "version": "5.0.0", - "license": "MIT", - "dependencies": { - "tr46": "~0.0.3", - "webidl-conversions": "^3.0.0" - } - }, - "../core/node_modules/optionator": { - "version": "0.9.4", - "license": "MIT", - "dependencies": { - "deep-is": "^0.1.3", - "fast-levenshtein": "^2.0.6", - "levn": "^0.4.1", - "prelude-ls": "^1.2.1", - "type-check": "^0.4.0", - "word-wrap": "^1.2.5" - }, - "engines": { - "node": ">= 0.8.0" - } - }, - "../core/node_modules/p-limit": { - "version": "6.1.0", - "license": "MIT", - "dependencies": { - "yocto-queue": "^1.1.1" - }, - "engines": { - "node": ">=18" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - }, - "../core/node_modules/p-locate": { - "version": "5.0.0", - "license": "MIT", - "dependencies": { - "p-limit": "^3.0.2" - }, - "engines": { - "node": ">=10" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - }, - "../core/node_modules/p-locate/node_modules/p-limit": { - "version": "3.1.0", - "license": "MIT", - "dependencies": { - "yocto-queue": "^0.1.0" - }, - "engines": { - "node": ">=10" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - }, - "../core/node_modules/p-locate/node_modules/yocto-queue": { - "version": "0.1.0", - "license": "MIT", - "engines": { - "node": ">=10" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - }, - "../core/node_modules/p-map": { - "version": "4.0.0", - "license": "MIT", - "optional": true, - "dependencies": { - "aggregate-error": "^3.0.0" - }, - "engines": { - "node": ">=10" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - }, - "../core/node_modules/p-try": { - "version": "2.2.0", - "dev": true, - "license": "MIT", - "engines": { - "node": ">=6" - } - }, - "../core/node_modules/pac-proxy-agent": { - "version": "7.0.2", - "license": "MIT", - "dependencies": { - "@tootallnate/quickjs-emscripten": "^0.23.0", - "agent-base": "^7.0.2", - "debug": "^4.3.4", - "get-uri": "^6.0.1", - "http-proxy-agent": "^7.0.0", - "https-proxy-agent": "^7.0.5", - "pac-resolver": "^7.0.1", - "socks-proxy-agent": "^8.0.4" - }, - "engines": { - "node": ">= 14" - } - }, - "../core/node_modules/pac-proxy-agent/node_modules/socks-proxy-agent": { - "version": "8.0.4", - "license": "MIT", - "dependencies": { - "agent-base": "^7.1.1", - "debug": "^4.3.4", - "socks": "^2.8.3" - }, - "engines": { - "node": ">= 14" - } - }, - "../core/node_modules/pac-resolver": { - "version": "7.0.1", - "license": "MIT", - "dependencies": { - "degenerator": "^5.0.0", - "netmask": "^2.0.2" - }, - "engines": { - "node": ">= 14" - } - }, - "../core/node_modules/pad-left": { - "version": "2.1.0", - "license": "MIT", - "peer": true, - "dependencies": { - "repeat-string": "^1.5.4" - }, - "engines": { - "node": ">=0.10.0" - } - }, - "../core/node_modules/parent-module": { - "version": "1.0.1", - "license": "MIT", - "dependencies": { - "callsites": "^3.0.0" - }, - "engines": { - "node": ">=6" - } - }, - "../core/node_modules/parse-json": { - "version": "5.2.0", - "license": "MIT", - "dependencies": { - "@babel/code-frame": "^7.0.0", - "error-ex": "^1.3.1", - "json-parse-even-better-errors": "^2.3.0", - "lines-and-columns": "^1.1.6" - }, - "engines": { - "node": ">=8" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - }, - "../core/node_modules/parse5": { - "version": "7.1.2", - "license": "MIT", - "dependencies": { - "entities": "^4.4.0" - }, - "funding": { - "url": "https://github.com/inikulin/parse5?sponsor=1" - } - }, - "../core/node_modules/parse5-htmlparser2-tree-adapter": { - "version": "7.0.0", - "license": "MIT", - "dependencies": { - "domhandler": "^5.0.2", - "parse5": "^7.0.0" - }, - "funding": { - "url": "https://github.com/inikulin/parse5?sponsor=1" - } - }, - "../core/node_modules/parse5-parser-stream": { - "version": "7.1.2", - "license": "MIT", - "dependencies": { - "parse5": "^7.0.0" - }, - "funding": { - "url": "https://github.com/inikulin/parse5?sponsor=1" - } - }, - "../core/node_modules/path-exists": { - "version": "4.0.0", - "license": "MIT", - "engines": { - "node": ">=8" - } - }, - "../core/node_modules/path-is-absolute": { - "version": "1.0.1", - "license": "MIT", - "engines": { - "node": ">=0.10.0" - } - }, - "../core/node_modules/path-key": { - "version": "3.1.1", - "license": "MIT", - "engines": { - "node": ">=8" - } - }, - "../core/node_modules/path-parse": { - "version": "1.0.7", - "license": "MIT" - }, - "../core/node_modules/path-type": { - "version": "4.0.0", - "license": "MIT", - "engines": { - "node": ">=8" - } - }, - "../core/node_modules/pend": { - "version": "1.2.0", - "license": "MIT" - }, - "../core/node_modules/performance-now": { - "version": "2.1.0", - "license": "MIT" - }, - "../core/node_modules/pg": { - "version": "8.11.5", - "license": "MIT", - "dependencies": { - "pg-connection-string": "^2.6.4", - "pg-pool": "^3.6.2", - "pg-protocol": "^1.6.1", - "pg-types": "^2.1.0", - "pgpass": "1.x" - }, - "engines": { - "node": ">= 8.0.0" - }, - "optionalDependencies": { - "pg-cloudflare": "^1.1.1" - }, - "peerDependencies": { - "pg-native": ">=3.0.1" - }, - "peerDependenciesMeta": { - "pg-native": { - "optional": true - } - } - }, - "../core/node_modules/pg-cloudflare": { - "version": "1.1.1", - "license": "MIT", - "optional": true - }, - "../core/node_modules/pg-connection-string": { - "version": "2.6.4", - "license": "MIT" - }, - "../core/node_modules/pg-int8": { - "version": "1.0.1", - "license": "ISC", - "engines": { - "node": ">=4.0.0" - } - }, - "../core/node_modules/pg-numeric": { - "version": "1.0.2", - "dev": true, - "license": "ISC", - "engines": { - "node": ">=4" - } - }, - "../core/node_modules/pg-pool": { - "version": "3.6.2", - "license": "MIT", - "peerDependencies": { - "pg": ">=8.0" - } - }, - "../core/node_modules/pg-protocol": { - "version": "1.6.1", - "license": "MIT" - }, - "../core/node_modules/pg-types": { - "version": "2.2.0", - "license": "MIT", - "dependencies": { - "pg-int8": "1.0.1", - "postgres-array": "~2.0.0", - "postgres-bytea": "~1.0.0", - "postgres-date": "~1.0.4", - "postgres-interval": "^1.1.0" - }, - "engines": { - "node": ">=4" - } - }, - "../core/node_modules/pgpass": { - "version": "1.0.5", - "license": "MIT", - "dependencies": { - "split2": "^4.1.0" - } - }, - "../core/node_modules/picocolors": { - "version": "1.0.1", - "license": "ISC" - }, - "../core/node_modules/picomatch": { - "version": "2.3.1", - "dev": true, - "license": "MIT", - "engines": { - "node": ">=8.6" - }, - "funding": { - "url": "https://github.com/sponsors/jonschlinkert" - } - }, - "../core/node_modules/pify": { - "version": "3.0.0", - "license": "MIT", - "engines": { - "node": ">=4" - } - }, - "../core/node_modules/pirates": { - "version": "4.0.6", - "dev": true, - "license": "MIT", - "engines": { - "node": ">= 6" - } - }, - "../core/node_modules/pkg-dir": { - "version": "4.2.0", - "dev": true, - "license": "MIT", - "dependencies": { - "find-up": "^4.0.0" - }, - "engines": { - "node": ">=8" - } - }, - "../core/node_modules/pkg-dir/node_modules/find-up": { - "version": "4.1.0", - "dev": true, - "license": "MIT", - "dependencies": { - "locate-path": "^5.0.0", - "path-exists": "^4.0.0" - }, - "engines": { - "node": ">=8" - } - }, - "../core/node_modules/pkg-dir/node_modules/locate-path": { - "version": "5.0.0", - "dev": true, - "license": "MIT", - "dependencies": { - "p-locate": "^4.1.0" - }, - "engines": { - "node": ">=8" - } - }, - "../core/node_modules/pkg-dir/node_modules/p-limit": { - "version": "2.3.0", - "dev": true, - "license": "MIT", - "dependencies": { - "p-try": "^2.0.0" - }, - "engines": { - "node": ">=6" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - }, - "../core/node_modules/pkg-dir/node_modules/p-locate": { - "version": "4.1.0", - "dev": true, - "license": "MIT", - "dependencies": { - "p-limit": "^2.2.0" - }, - "engines": { - "node": ">=8" - } - }, - "../core/node_modules/platform": { - "version": "1.3.6", - "license": "MIT" - }, - "../core/node_modules/possible-typed-array-names": { - "version": "1.0.0", - "license": "MIT", - "engines": { - "node": ">= 0.4" - } - }, - "../core/node_modules/postgres-array": { - "version": "2.0.0", - "license": "MIT", - "engines": { - "node": ">=4" - } - }, - "../core/node_modules/postgres-bytea": { - "version": "1.0.0", - "license": "MIT", - "engines": { - "node": ">=0.10.0" - } - }, - "../core/node_modules/postgres-date": { - "version": "1.0.7", - "license": "MIT", - "engines": { - "node": ">=0.10.0" - } - }, - "../core/node_modules/postgres-interval": { - "version": "1.2.0", - "license": "MIT", - "dependencies": { - "xtend": "^4.0.0" - }, - "engines": { - "node": ">=0.10.0" - } - }, - "../core/node_modules/postgres-range": { - "version": "1.1.4", - "dev": true, - "license": "MIT" - }, - "../core/node_modules/posthog-node": { - "version": "3.6.3", - "license": "MIT", - "dependencies": { - "axios": "^1.6.2", - "rusha": "^0.8.14" - }, - "engines": { - "node": ">=15.0.0" - } - }, - "../core/node_modules/prebuild-install": { - "version": "7.1.2", - "license": "MIT", - "dependencies": { - "detect-libc": "^2.0.0", - "expand-template": "^2.0.3", - "github-from-package": "0.0.0", - "minimist": "^1.2.3", - "mkdirp-classic": "^0.5.3", - "napi-build-utils": "^1.0.1", - "node-abi": "^3.3.0", - "pump": "^3.0.0", - "rc": "^1.2.7", - "simple-get": "^4.0.0", - "tar-fs": "^2.0.0", - "tunnel-agent": "^0.6.0" - }, - "bin": { - "prebuild-install": "bin.js" - }, - "engines": { - "node": ">=10" - } - }, - "../core/node_modules/prebuild-install/node_modules/chownr": { - "version": "1.1.4", - "license": "ISC" - }, - "../core/node_modules/prebuild-install/node_modules/readable-stream": { - "version": "3.6.2", - "license": "MIT", - "dependencies": { - "inherits": "^2.0.3", - "string_decoder": "^1.1.1", - "util-deprecate": "^1.0.1" - }, - "engines": { - "node": ">= 6" - } - }, - "../core/node_modules/prebuild-install/node_modules/tar-fs": { - "version": "2.1.1", - "license": "MIT", - "dependencies": { - "chownr": "^1.1.1", - "mkdirp-classic": "^0.5.2", - "pump": "^3.0.0", - "tar-stream": "^2.1.4" - } - }, - "../core/node_modules/prebuild-install/node_modules/tar-stream": { - "version": "2.2.0", - "license": "MIT", - "dependencies": { - "bl": "^4.0.3", - "end-of-stream": "^1.4.1", - "fs-constants": "^1.0.0", - "inherits": "^2.0.3", - "readable-stream": "^3.1.1" - }, - "engines": { - "node": ">=6" - } - }, - "../core/node_modules/prelude-ls": { - "version": "1.2.1", - "license": "MIT", - "engines": { - "node": ">= 0.8.0" - } - }, - "../core/node_modules/pretty-format": { - "version": "29.7.0", - "dev": true, - "license": "MIT", - "dependencies": { - "@jest/schemas": "^29.6.3", - "ansi-styles": "^5.0.0", - "react-is": "^18.0.0" - }, - "engines": { - "node": "^14.15.0 || ^16.10.0 || >=18.0.0" - } - }, - "../core/node_modules/pretty-format/node_modules/ansi-styles": { - "version": "5.2.0", - "dev": true, - "license": "MIT", - "engines": { - "node": ">=10" - }, - "funding": { - "url": "https://github.com/chalk/ansi-styles?sponsor=1" - } - }, - "../core/node_modules/process": { - "version": "0.11.10", - "license": "MIT", - "optional": true, - "engines": { - "node": ">= 0.6.0" - } - }, - "../core/node_modules/progress": { - "version": "2.0.3", - "license": "MIT", - "engines": { - "node": ">=0.4.0" - } - }, - "../core/node_modules/promise-inflight": { - "version": "1.0.1", - "license": "ISC", - "optional": true - }, - "../core/node_modules/promise-retry": { - "version": "2.0.1", - "license": "MIT", - "optional": true, - "dependencies": { - "err-code": "^2.0.2", - "retry": "^0.12.0" - }, - "engines": { - "node": ">=10" - } - }, - "../core/node_modules/prompts": { - "version": "2.4.2", - "dev": true, - "license": "MIT", - "dependencies": { - "kleur": "^3.0.3", - "sisteransi": "^1.0.5" - }, - "engines": { - "node": ">= 6" - } - }, - "../core/node_modules/protobufjs": { - "version": "6.11.4", - "hasInstallScript": true, - "license": "BSD-3-Clause", - "dependencies": { - "@protobufjs/aspromise": "^1.1.2", - "@protobufjs/base64": "^1.1.2", - "@protobufjs/codegen": "^2.0.4", - "@protobufjs/eventemitter": "^1.1.0", - "@protobufjs/fetch": "^1.1.0", - "@protobufjs/float": "^1.0.2", - "@protobufjs/inquire": "^1.1.0", - "@protobufjs/path": "^1.1.2", - "@protobufjs/pool": "^1.1.0", - "@protobufjs/utf8": "^1.1.0", - "@types/long": "^4.0.1", - "@types/node": ">=13.7.0", - "long": "^4.0.0" - }, - "bin": { - "pbjs": "bin/pbjs", - "pbts": "bin/pbts" - } - }, - "../core/node_modules/protobufjs/node_modules/long": { - "version": "4.0.0", - "license": "Apache-2.0" - }, - "../core/node_modules/proxy-agent": { - "version": "6.4.0", - "license": "MIT", - "dependencies": { - "agent-base": "^7.0.2", - "debug": "^4.3.4", - "http-proxy-agent": "^7.0.1", - "https-proxy-agent": "^7.0.3", - "lru-cache": "^7.14.1", - "pac-proxy-agent": "^7.0.1", - "proxy-from-env": "^1.1.0", - "socks-proxy-agent": "^8.0.2" - }, - "engines": { - "node": ">= 14" - } - }, - "../core/node_modules/proxy-agent/node_modules/lru-cache": { - "version": "7.18.3", - "license": "ISC", - "engines": { - "node": ">=12" - } - }, - "../core/node_modules/proxy-agent/node_modules/socks-proxy-agent": { - "version": "8.0.4", - "license": "MIT", - "dependencies": { - "agent-base": "^7.1.1", - "debug": "^4.3.4", - "socks": "^2.8.3" - }, - "engines": { - "node": ">= 14" - } - }, - "../core/node_modules/proxy-from-env": { - "version": "1.1.0", - "license": "MIT" - }, - "../core/node_modules/psl": { - "version": "1.9.0", - "license": "MIT" - }, - "../core/node_modules/pump": { - "version": "3.0.0", - "license": "MIT", - "dependencies": { - "end-of-stream": "^1.1.0", - "once": "^1.3.1" - } - }, - "../core/node_modules/punycode": { - "version": "2.3.1", - "license": "MIT", - "engines": { - "node": ">=6" - } - }, - "../core/node_modules/puppeteer": { - "version": "22.15.0", - "hasInstallScript": true, - "license": "Apache-2.0", - "dependencies": { - "@puppeteer/browsers": "2.3.0", - "cosmiconfig": "^9.0.0", - "devtools-protocol": "0.0.1312386", - "puppeteer-core": "22.15.0" - }, - "bin": { - "puppeteer": "lib/esm/puppeteer/node/cli.js" - }, - "engines": { - "node": ">=18" - } - }, - "../core/node_modules/puppeteer-chromium-resolver": { - "version": "23.0.0", - "hasInstallScript": true, - "license": "MIT", - "dependencies": { - "@puppeteer/browsers": "^2.3.1", - "eight-colors": "^1.3.0", - "gauge": "^5.0.2", - "puppeteer-core": "^23.1.0" - } - }, - "../core/node_modules/puppeteer-chromium-resolver/node_modules/@puppeteer/browsers": { - "version": "2.3.1", - "license": "Apache-2.0", - "dependencies": { - "debug": "^4.3.6", - "extract-zip": "^2.0.1", - "progress": "^2.0.3", - "proxy-agent": "^6.4.0", - "semver": "^7.6.3", - "tar-fs": "^3.0.6", - "unbzip2-stream": "^1.4.3", - "yargs": "^17.7.2" - }, - "bin": { - "browsers": "lib/cjs/main-cli.js" - }, - "engines": { - "node": ">=18" - } - }, - "../core/node_modules/puppeteer-chromium-resolver/node_modules/chromium-bidi": { - "version": "0.6.4", - "license": "Apache-2.0", - "dependencies": { - "mitt": "3.0.1", - "urlpattern-polyfill": "10.0.0", - "zod": "3.23.8" - }, - "peerDependencies": { - "devtools-protocol": "*" - } - }, - "../core/node_modules/puppeteer-chromium-resolver/node_modules/gauge": { - "version": "5.0.2", - "license": "ISC", - "dependencies": { - "aproba": "^1.0.3 || ^2.0.0", - "color-support": "^1.1.3", - "console-control-strings": "^1.1.0", - "has-unicode": "^2.0.1", - "signal-exit": "^4.0.1", - "string-width": "^4.2.3", - "strip-ansi": "^6.0.1", - "wide-align": "^1.1.5" - }, - "engines": { - "node": "^14.17.0 || ^16.13.0 || >=18.0.0" - } - }, - "../core/node_modules/puppeteer-chromium-resolver/node_modules/puppeteer-core": { - "version": "23.1.1", - "license": "Apache-2.0", - "dependencies": { - "@puppeteer/browsers": "2.3.1", - "chromium-bidi": "0.6.4", - "debug": "^4.3.6", - "devtools-protocol": "0.0.1312386", - "typed-query-selector": "^2.12.0", - "ws": "^8.18.0" - }, - "engines": { - "node": ">=18" - } - }, - "../core/node_modules/puppeteer-chromium-resolver/node_modules/signal-exit": { - "version": "4.1.0", - "license": "ISC", - "engines": { - "node": ">=14" - }, - "funding": { - "url": "https://github.com/sponsors/isaacs" - } - }, - "../core/node_modules/puppeteer-core": { - "version": "22.15.0", - "license": "Apache-2.0", - "dependencies": { - "@puppeteer/browsers": "2.3.0", - "chromium-bidi": "0.6.3", - "debug": "^4.3.6", - "devtools-protocol": "0.0.1312386", - "ws": "^8.18.0" - }, - "engines": { - "node": ">=18" - } - }, - "../core/node_modules/pure-rand": { - "version": "6.1.0", - "dev": true, - "funding": [ - { - "type": "individual", - "url": "https://github.com/sponsors/dubzzz" - }, - { - "type": "opencollective", - "url": "https://opencollective.com/fast-check" - } - ], - "license": "MIT" - }, - "../core/node_modules/qs": { - "version": "6.5.3", - "license": "BSD-3-Clause", - "engines": { - "node": ">=0.6" - } - }, - "../core/node_modules/querystringify": { - "version": "2.2.0", - "license": "MIT" - }, - "../core/node_modules/queue-microtask": { - "version": "1.2.3", - "funding": [ - { - "type": "github", - "url": "https://github.com/sponsors/feross" - }, - { - "type": "patreon", - "url": "https://www.patreon.com/feross" - }, - { - "type": "consulting", - "url": "https://feross.org/support" - } - ], - "license": "MIT" - }, - "../core/node_modules/queue-tick": { - "version": "1.0.1", - "license": "MIT" - }, - "../core/node_modules/quick-lru": { - "version": "7.0.0", - "license": "MIT", - "engines": { - "node": ">=18" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - }, - "../core/node_modules/rc": { - "version": "1.2.8", - "license": "(BSD-2-Clause OR MIT OR Apache-2.0)", - "dependencies": { - "deep-extend": "^0.6.0", - "ini": "~1.3.0", - "minimist": "^1.2.0", - "strip-json-comments": "~2.0.1" - }, - "bin": { - "rc": "cli.js" - } - }, - "../core/node_modules/rc/node_modules/strip-json-comments": { - "version": "2.0.1", - "license": "MIT", - "engines": { - "node": ">=0.10.0" - } - }, - "../core/node_modules/react-is": { - "version": "18.3.1", - "dev": true, - "license": "MIT" - }, - "../core/node_modules/readable-stream": { - "version": "4.5.2", - "license": "MIT", - "optional": true, - "dependencies": { - "abort-controller": "^3.0.0", - "buffer": "^6.0.3", - "events": "^3.3.0", - "process": "^0.11.10", - "string_decoder": "^1.3.0" - }, - "engines": { - "node": "^12.22.0 || ^14.17.0 || >=16.0.0" - } - }, - "../core/node_modules/regenerate": { - "version": "1.4.2", - "dev": true, - "license": "MIT" - }, - "../core/node_modules/regenerate-unicode-properties": { - "version": "10.1.1", - "dev": true, - "license": "MIT", - "dependencies": { - "regenerate": "^1.4.2" - }, - "engines": { - "node": ">=4" - } - }, - "../core/node_modules/regenerator-runtime": { - "version": "0.14.1", - "dev": true, - "license": "MIT" - }, - "../core/node_modules/regenerator-transform": { - "version": "0.15.2", - "dev": true, - "license": "MIT", - "dependencies": { - "@babel/runtime": "^7.8.4" - } - }, - "../core/node_modules/regexp.prototype.flags": { - "version": "1.5.2", - "license": "MIT", - "dependencies": { - "call-bind": "^1.0.6", - "define-properties": "^1.2.1", - "es-errors": "^1.3.0", - "set-function-name": "^2.0.1" - }, - "engines": { - "node": ">= 0.4" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, - "../core/node_modules/regexpu-core": { - "version": "5.3.2", - "dev": true, - "license": "MIT", - "dependencies": { - "@babel/regjsgen": "^0.8.0", - "regenerate": "^1.4.2", - "regenerate-unicode-properties": "^10.1.0", - "regjsparser": "^0.9.1", - "unicode-match-property-ecmascript": "^2.0.0", - "unicode-match-property-value-ecmascript": "^2.1.0" - }, - "engines": { - "node": ">=4" - } - }, - "../core/node_modules/regjsparser": { - "version": "0.9.1", - "dev": true, - "license": "BSD-2-Clause", - "dependencies": { - "jsesc": "~0.5.0" - }, - "bin": { - "regjsparser": "bin/parser" - } - }, - "../core/node_modules/regjsparser/node_modules/jsesc": { - "version": "0.5.0", - "dev": true, - "bin": { - "jsesc": "bin/jsesc" - } - }, - "../core/node_modules/repeat-string": { - "version": "1.6.1", - "license": "MIT", - "engines": { - "node": ">=0.10" - } - }, - "../core/node_modules/replicate": { - "version": "0.26.0", - "license": "Apache-2.0", - "engines": { - "git": ">=2.11.0", - "node": ">=18.0.0", - "npm": ">=7.19.0", - "yarn": ">=1.7.0" - }, - "optionalDependencies": { - "readable-stream": ">=4.0.0" - } - }, - "../core/node_modules/request": { - "version": "2.88.2", - "license": "Apache-2.0", - "dependencies": { - "aws-sign2": "~0.7.0", - "aws4": "^1.8.0", - "caseless": "~0.12.0", - "combined-stream": "~1.0.6", - "extend": "~3.0.2", - "forever-agent": "~0.6.1", - "form-data": "~2.3.2", - "har-validator": "~5.1.3", - "http-signature": "~1.2.0", - "is-typedarray": "~1.0.0", - "isstream": "~0.1.2", - "json-stringify-safe": "~5.0.1", - "mime-types": "~2.1.19", - "oauth-sign": "~0.9.0", - "performance-now": "^2.1.0", - "qs": "~6.5.2", - "safe-buffer": "^5.1.2", - "tough-cookie": "~2.5.0", - "tunnel-agent": "^0.6.0", - "uuid": "^3.3.2" - }, - "engines": { - "node": ">= 6" - } - }, - "../core/node_modules/request/node_modules/form-data": { - "version": "2.3.3", - "license": "MIT", - "dependencies": { - "asynckit": "^0.4.0", - "combined-stream": "^1.0.6", - "mime-types": "^2.1.12" - }, - "engines": { - "node": ">= 0.12" - } - }, - "../core/node_modules/request/node_modules/tough-cookie": { - "version": "2.5.0", - "license": "BSD-3-Clause", - "dependencies": { - "psl": "^1.1.28", - "punycode": "^2.1.1" - }, - "engines": { - "node": ">=0.8" - } - }, - "../core/node_modules/request/node_modules/uuid": { - "version": "3.4.0", - "license": "MIT", - "bin": { - "uuid": "bin/uuid" - } - }, - "../core/node_modules/require-directory": { - "version": "2.1.1", - "license": "MIT", - "engines": { - "node": ">=0.10.0" - } - }, - "../core/node_modules/requires-port": { - "version": "1.0.0", - "license": "MIT" - }, - "../core/node_modules/resolve": { - "version": "1.22.8", - "license": "MIT", - "dependencies": { - "is-core-module": "^2.13.0", - "path-parse": "^1.0.7", - "supports-preserve-symlinks-flag": "^1.0.0" - }, - "bin": { - "resolve": "bin/resolve" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, - "../core/node_modules/resolve-cwd": { - "version": "3.0.0", - "dev": true, - "license": "MIT", - "dependencies": { - "resolve-from": "^5.0.0" - }, - "engines": { - "node": ">=8" - } - }, - "../core/node_modules/resolve-cwd/node_modules/resolve-from": { - "version": "5.0.0", - "dev": true, - "license": "MIT", - "engines": { - "node": ">=8" - } - }, - "../core/node_modules/resolve-from": { - "version": "4.0.0", - "license": "MIT", - "engines": { - "node": ">=4" - } - }, - "../core/node_modules/resolve.exports": { - "version": "2.0.2", - "dev": true, - "license": "MIT", - "engines": { - "node": ">=10" - } - }, - "../core/node_modules/retry": { - "version": "0.12.0", - "license": "MIT", - "optional": true, - "engines": { - "node": ">= 4" - } - }, - "../core/node_modules/reusify": { - "version": "1.0.4", - "license": "MIT", - "engines": { - "iojs": ">=1.0.0", - "node": ">=0.10.0" - } - }, - "../core/node_modules/rimraf": { - "version": "3.0.2", - "license": "ISC", - "dependencies": { - "glob": "^7.1.3" - }, - "bin": { - "rimraf": "bin.js" - }, - "funding": { - "url": "https://github.com/sponsors/isaacs" - } - }, - "../core/node_modules/rrweb-cssom": { - "version": "0.6.0", - "license": "MIT" - }, - "../core/node_modules/run-parallel": { - "version": "1.2.0", - "funding": [ - { - "type": "github", - "url": "https://github.com/sponsors/feross" - }, - { - "type": "patreon", - "url": "https://www.patreon.com/feross" - }, - { - "type": "consulting", - "url": "https://feross.org/support" - } - ], - "license": "MIT", - "dependencies": { - "queue-microtask": "^1.2.2" - } - }, - "../core/node_modules/rusha": { - "version": "0.8.14", - "license": "MIT" - }, - "../core/node_modules/safe-array-concat": { - "version": "1.1.2", - "license": "MIT", - "dependencies": { - "call-bind": "^1.0.7", - "get-intrinsic": "^1.2.4", - "has-symbols": "^1.0.3", - "isarray": "^2.0.5" - }, - "engines": { - "node": ">=0.4" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, - "../core/node_modules/safe-buffer": { - "version": "5.2.1", - "funding": [ - { - "type": "github", - "url": "https://github.com/sponsors/feross" - }, - { - "type": "patreon", - "url": "https://www.patreon.com/feross" - }, - { - "type": "consulting", - "url": "https://feross.org/support" - } - ], - "license": "MIT" - }, - "../core/node_modules/safe-regex-test": { - "version": "1.0.3", - "license": "MIT", - "dependencies": { - "call-bind": "^1.0.6", - "es-errors": "^1.3.0", - "is-regex": "^1.1.4" - }, - "engines": { - "node": ">= 0.4" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, - "../core/node_modules/safer-buffer": { - "version": "2.1.2", - "license": "MIT" - }, - "../core/node_modules/saxes": { - "version": "6.0.0", - "license": "ISC", - "dependencies": { - "xmlchars": "^2.2.0" - }, - "engines": { - "node": ">=v12.22.7" - } - }, - "../core/node_modules/semver": { - "version": "7.6.3", - "license": "ISC", - "bin": { - "semver": "bin/semver.js" - }, - "engines": { - "node": ">=10" - } - }, - "../core/node_modules/seq-queue": { - "version": "0.0.5" - }, - "../core/node_modules/set-blocking": { - "version": "2.0.0", - "license": "ISC", - "optional": true - }, - "../core/node_modules/set-function-length": { - "version": "1.2.2", - "license": "MIT", - "dependencies": { - "define-data-property": "^1.1.4", - "es-errors": "^1.3.0", - "function-bind": "^1.1.2", - "get-intrinsic": "^1.2.4", - "gopd": "^1.0.1", - "has-property-descriptors": "^1.0.2" - }, - "engines": { - "node": ">= 0.4" - } - }, - "../core/node_modules/set-function-name": { - "version": "2.0.2", - "license": "MIT", - "dependencies": { - "define-data-property": "^1.1.4", - "es-errors": "^1.3.0", - "functions-have-names": "^1.2.3", - "has-property-descriptors": "^1.0.2" - }, - "engines": { - "node": ">= 0.4" - } - }, - "../core/node_modules/sharp": { - "version": "0.32.6", - "hasInstallScript": true, - "license": "Apache-2.0", - "dependencies": { - "color": "^4.2.3", - "detect-libc": "^2.0.2", - "node-addon-api": "^6.1.0", - "prebuild-install": "^7.1.1", - "semver": "^7.5.4", - "simple-get": "^4.0.1", - "tar-fs": "^3.0.4", - "tunnel-agent": "^0.6.0" - }, - "engines": { - "node": ">=14.15.0" - }, - "funding": { - "url": "https://opencollective.com/libvips" - } - }, - "../core/node_modules/shebang-command": { - "version": "2.0.0", - "license": "MIT", - "dependencies": { - "shebang-regex": "^3.0.0" - }, - "engines": { - "node": ">=8" - } - }, - "../core/node_modules/shebang-regex": { - "version": "3.0.0", - "license": "MIT", - "engines": { - "node": ">=8" - } - }, - "../core/node_modules/side-channel": { - "version": "1.0.6", - "license": "MIT", - "dependencies": { - "call-bind": "^1.0.7", - "es-errors": "^1.3.0", - "get-intrinsic": "^1.2.4", - "object-inspect": "^1.13.1" - }, - "engines": { - "node": ">= 0.4" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, - "../core/node_modules/signal-exit": { - "version": "3.0.7", - "devOptional": true, - "license": "ISC" - }, - "../core/node_modules/simple-concat": { - "version": "1.0.1", - "funding": [ - { - "type": "github", - "url": "https://github.com/sponsors/feross" - }, - { - "type": "patreon", - "url": "https://www.patreon.com/feross" - }, - { - "type": "consulting", - "url": "https://feross.org/support" - } - ], - "license": "MIT" - }, - "../core/node_modules/simple-get": { - "version": "4.0.1", - "funding": [ - { - "type": "github", - "url": "https://github.com/sponsors/feross" - }, - { - "type": "patreon", - "url": "https://www.patreon.com/feross" - }, - { - "type": "consulting", - "url": "https://feross.org/support" - } - ], - "license": "MIT", - "dependencies": { - "decompress-response": "^6.0.0", - "once": "^1.3.1", - "simple-concat": "^1.0.0" - } - }, - "../core/node_modules/simple-swizzle": { - "version": "0.2.2", - "license": "MIT", - "dependencies": { - "is-arrayish": "^0.3.1" - } - }, - "../core/node_modules/simple-swizzle/node_modules/is-arrayish": { - "version": "0.3.2", - "license": "MIT" - }, - "../core/node_modules/sisteransi": { - "version": "1.0.5", - "dev": true, - "license": "MIT" - }, - "../core/node_modules/slash": { - "version": "3.0.0", - "license": "MIT", - "engines": { - "node": ">=8" - } - }, - "../core/node_modules/slide": { - "version": "1.1.6", - "license": "ISC", - "engines": { - "node": "*" - } - }, - "../core/node_modules/smart-buffer": { - "version": "4.2.0", - "license": "MIT", - "engines": { - "node": ">= 6.0.0", - "npm": ">= 3.0.0" - } - }, - "../core/node_modules/socket.io-client": { - "version": "4.7.5", - "license": "MIT", - "dependencies": { - "@socket.io/component-emitter": "~3.1.0", - "debug": "~4.3.2", - "engine.io-client": "~6.5.2", - "socket.io-parser": "~4.2.4" - }, - "engines": { - "node": ">=10.0.0" - } - }, - "../core/node_modules/socket.io-parser": { - "version": "4.2.4", - "license": "MIT", - "dependencies": { - "@socket.io/component-emitter": "~3.1.0", - "debug": "~4.3.1" - }, - "engines": { - "node": ">=10.0.0" - } - }, - "../core/node_modules/socks": { - "version": "2.8.3", - "license": "MIT", - "dependencies": { - "ip-address": "^9.0.5", - "smart-buffer": "^4.2.0" - }, - "engines": { - "node": ">= 10.0.0", - "npm": ">= 3.0.0" - } - }, - "../core/node_modules/socks-proxy-agent": { - "version": "6.2.1", - "license": "MIT", - "optional": true, - "dependencies": { - "agent-base": "^6.0.2", - "debug": "^4.3.3", - "socks": "^2.6.2" - }, - "engines": { - "node": ">= 10" - } - }, - "../core/node_modules/socks-proxy-agent/node_modules/agent-base": { - "version": "6.0.2", - "license": "MIT", - "optional": true, - "dependencies": { - "debug": "4" - }, - "engines": { - "node": ">= 6.0.0" - } - }, - "../core/node_modules/source-map": { - "version": "0.6.1", - "license": "BSD-3-Clause", - "engines": { - "node": ">=0.10.0" - } - }, - "../core/node_modules/source-map-support": { - "version": "0.5.13", - "dev": true, - "license": "MIT", - "dependencies": { - "buffer-from": "^1.0.0", - "source-map": "^0.6.0" - } - }, - "../core/node_modules/split": { - "version": "1.0.1", - "license": "MIT", - "dependencies": { - "through": "2" - }, - "engines": { - "node": "*" - } - }, - "../core/node_modules/split2": { - "version": "4.2.0", - "license": "ISC", - "engines": { - "node": ">= 10.x" - } - }, - "../core/node_modules/sprintf-js": { - "version": "1.1.3", - "license": "BSD-3-Clause" - }, - "../core/node_modules/sqlite": { - "version": "5.1.1", - "license": "MIT" - }, - "../core/node_modules/sqlite3": { - "version": "5.1.7", - "hasInstallScript": true, - "license": "BSD-3-Clause", - "dependencies": { - "bindings": "^1.5.0", - "node-addon-api": "^7.0.0", - "prebuild-install": "^7.1.1", - "tar": "^6.1.11" - }, - "optionalDependencies": { - "node-gyp": "8.x" - }, - "peerDependencies": { - "node-gyp": "8.x" - }, - "peerDependenciesMeta": { - "node-gyp": { - "optional": true - } - } - }, - "../core/node_modules/sqlite3/node_modules/node-addon-api": { - "version": "7.1.0", - "license": "MIT", - "engines": { - "node": "^16 || ^18 || >= 20" - } - }, - "../core/node_modules/sqlstring": { - "version": "2.3.3", - "license": "MIT", - "engines": { - "node": ">= 0.6" - } - }, - "../core/node_modules/sshpk": { - "version": "1.18.0", - "license": "MIT", - "dependencies": { - "asn1": "~0.2.3", - "assert-plus": "^1.0.0", - "bcrypt-pbkdf": "^1.0.0", - "dashdash": "^1.12.0", - "ecc-jsbn": "~0.1.1", - "getpass": "^0.1.1", - "jsbn": "~0.1.0", - "safer-buffer": "^2.0.2", - "tweetnacl": "~0.14.0" - }, - "bin": { - "sshpk-conv": "bin/sshpk-conv", - "sshpk-sign": "bin/sshpk-sign", - "sshpk-verify": "bin/sshpk-verify" - }, - "engines": { - "node": ">=0.10.0" - } - }, - "../core/node_modules/sshpk/node_modules/jsbn": { - "version": "0.1.1", - "license": "MIT" - }, - "../core/node_modules/ssri": { - "version": "8.0.1", - "license": "ISC", - "optional": true, - "dependencies": { - "minipass": "^3.1.1" - }, - "engines": { - "node": ">= 8" - } - }, - "../core/node_modules/stack-utils": { - "version": "2.0.6", - "dev": true, - "license": "MIT", - "dependencies": { - "escape-string-regexp": "^2.0.0" - }, - "engines": { - "node": ">=10" - } - }, - "../core/node_modules/stack-utils/node_modules/escape-string-regexp": { - "version": "2.0.0", - "dev": true, - "license": "MIT", - "engines": { - "node": ">=8" - } - }, - "../core/node_modules/stream-read-all": { - "version": "3.0.1", - "license": "MIT", - "peer": true, - "engines": { - "node": ">=10" - } - }, - "../core/node_modules/streamx": { - "version": "2.16.1", - "license": "MIT", - "dependencies": { - "fast-fifo": "^1.1.0", - "queue-tick": "^1.0.1" - }, - "optionalDependencies": { - "bare-events": "^2.2.0" - } - }, - "../core/node_modules/string_decoder": { - "version": "1.3.0", - "license": "MIT", - "dependencies": { - "safe-buffer": "~5.2.0" - } - }, - "../core/node_modules/string-length": { - "version": "4.0.2", - "dev": true, - "license": "MIT", - "dependencies": { - "char-regex": "^1.0.2", - "strip-ansi": "^6.0.0" - }, - "engines": { - "node": ">=10" - } - }, - "../core/node_modules/string-width": { - "version": "4.2.3", - "license": "MIT", - "dependencies": { - "emoji-regex": "^8.0.0", - "is-fullwidth-code-point": "^3.0.0", - "strip-ansi": "^6.0.1" - }, - "engines": { - "node": ">=8" - } - }, - "../core/node_modules/string.prototype.trim": { - "version": "1.2.9", - "license": "MIT", - "dependencies": { - "call-bind": "^1.0.7", - "define-properties": "^1.2.1", - "es-abstract": "^1.23.0", - "es-object-atoms": "^1.0.0" - }, - "engines": { - "node": ">= 0.4" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, - "../core/node_modules/string.prototype.trimend": { - "version": "1.0.8", - "license": "MIT", - "dependencies": { - "call-bind": "^1.0.7", - "define-properties": "^1.2.1", - "es-object-atoms": "^1.0.0" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, - "../core/node_modules/string.prototype.trimstart": { - "version": "1.0.8", - "license": "MIT", - "dependencies": { - "call-bind": "^1.0.7", - "define-properties": "^1.2.1", - "es-object-atoms": "^1.0.0" - }, - "engines": { - "node": ">= 0.4" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, - "../core/node_modules/strip-ansi": { - "version": "6.0.1", - "license": "MIT", - "dependencies": { - "ansi-regex": "^5.0.1" - }, - "engines": { - "node": ">=8" - } - }, - "../core/node_modules/strip-bom": { - "version": "4.0.0", - "dev": true, - "license": "MIT", - "engines": { - "node": ">=8" - } - }, - "../core/node_modules/strip-final-newline": { - "version": "2.0.0", - "dev": true, - "license": "MIT", - "engines": { - "node": ">=6" - } - }, - "../core/node_modules/strip-json-comments": { - "version": "3.1.1", - "license": "MIT", - "engines": { - "node": ">=8" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - }, - "../core/node_modules/strnum": { - "version": "1.0.5", - "license": "MIT" - }, - "../core/node_modules/supports-color": { - "version": "7.2.0", - "license": "MIT", - "dependencies": { - "has-flag": "^4.0.0" - }, - "engines": { - "node": ">=8" - } - }, - "../core/node_modules/supports-preserve-symlinks-flag": { - "version": "1.0.0", - "license": "MIT", - "engines": { - "node": ">= 0.4" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, - "../core/node_modules/symbol-tree": { - "version": "3.2.4", - "license": "MIT" - }, - "../core/node_modules/system-ca": { - "version": "1.0.3", - "license": "Apache-2.0", - "optionalDependencies": { - "macos-export-certificate-and-key": "^1.1.1", - "win-export-certificate-and-key": "^1.1.1" - } - }, - "../core/node_modules/table-layout": { - "version": "3.0.2", - "license": "MIT", - "peer": true, - "dependencies": { - "@75lb/deep-merge": "^1.1.1", - "array-back": "^6.2.2", - "command-line-args": "^5.2.1", - "command-line-usage": "^7.0.0", - "stream-read-all": "^3.0.1", - "typical": "^7.1.1", - "wordwrapjs": "^5.1.0" - }, - "bin": { - "table-layout": "bin/cli.js" - }, - "engines": { - "node": ">=12.17" - } - }, - "../core/node_modules/table-layout/node_modules/array-back": { - "version": "6.2.2", - "license": "MIT", - "peer": true, - "engines": { - "node": ">=12.17" - } - }, - "../core/node_modules/table-layout/node_modules/typical": { - "version": "7.1.1", - "license": "MIT", - "peer": true, - "engines": { - "node": ">=12.17" - } - }, - "../core/node_modules/tar": { - "version": "6.2.1", - "license": "ISC", - "dependencies": { - "chownr": "^2.0.0", - "fs-minipass": "^2.0.0", - "minipass": "^5.0.0", - "minizlib": "^2.1.1", - "mkdirp": "^1.0.3", - "yallist": "^4.0.0" - }, - "engines": { - "node": ">=10" - } - }, - "../core/node_modules/tar-fs": { - "version": "3.0.6", - "license": "MIT", - "dependencies": { - "pump": "^3.0.0", - "tar-stream": "^3.1.5" - }, - "optionalDependencies": { - "bare-fs": "^2.1.1", - "bare-path": "^2.1.0" - } - }, - "../core/node_modules/tar-stream": { - "version": "3.1.7", - "license": "MIT", - "dependencies": { - "b4a": "^1.6.4", - "fast-fifo": "^1.2.0", - "streamx": "^2.15.0" - } - }, - "../core/node_modules/tar/node_modules/minipass": { - "version": "5.0.0", - "license": "ISC", - "engines": { - "node": ">=8" - } - }, - "../core/node_modules/tar/node_modules/yallist": { - "version": "4.0.0", - "license": "ISC" - }, - "../core/node_modules/test-exclude": { - "version": "6.0.0", - "dev": true, - "license": "ISC", - "dependencies": { - "@istanbuljs/schema": "^0.1.2", - "glob": "^7.1.4", - "minimatch": "^3.0.4" - }, - "engines": { - "node": ">=8" - } - }, - "../core/node_modules/test-exclude/node_modules/brace-expansion": { - "version": "1.1.11", - "dev": true, - "license": "MIT", - "dependencies": { - "balanced-match": "^1.0.0", - "concat-map": "0.0.1" - } - }, - "../core/node_modules/test-exclude/node_modules/minimatch": { - "version": "3.1.2", - "dev": true, - "license": "ISC", - "dependencies": { - "brace-expansion": "^1.1.7" - }, - "engines": { - "node": "*" - } - }, - "../core/node_modules/text-table": { - "version": "0.2.0", - "license": "MIT" - }, - "../core/node_modules/through": { - "version": "2.3.8", - "license": "MIT" - }, - "../core/node_modules/tmpl": { - "version": "1.0.5", - "dev": true, - "license": "BSD-3-Clause" - }, - "../core/node_modules/to-fast-properties": { - "version": "2.0.0", - "dev": true, - "license": "MIT", - "engines": { - "node": ">=4" - } - }, - "../core/node_modules/to-regex-range": { - "version": "5.0.1", - "license": "MIT", - "dependencies": { - "is-number": "^7.0.0" - }, - "engines": { - "node": ">=8.0" - } - }, - "../core/node_modules/tough-cookie": { - "version": "4.1.4", - "license": "BSD-3-Clause", - "dependencies": { - "psl": "^1.1.33", - "punycode": "^2.1.1", - "universalify": "^0.2.0", - "url-parse": "^1.5.3" - }, - "engines": { - "node": ">=6" - } - }, - "../core/node_modules/tr46": { - "version": "5.0.0", - "license": "MIT", - "dependencies": { - "punycode": "^2.3.1" - }, - "engines": { - "node": ">=18" - } - }, - "../core/node_modules/tree-sitter-wasms": { - "version": "0.1.11", - "license": "Unlicense" - }, - "../core/node_modules/ts-api-utils": { - "version": "1.3.0", - "license": "MIT", - "engines": { - "node": ">=16" - }, - "peerDependencies": { - "typescript": ">=4.2.0" - } - }, - "../core/node_modules/ts-jest": { - "version": "29.1.3", - "dev": true, - "license": "MIT", - "dependencies": { - "bs-logger": "0.x", - "fast-json-stable-stringify": "2.x", - "jest-util": "^29.0.0", - "json5": "^2.2.3", - "lodash.memoize": "4.x", - "make-error": "1.x", - "semver": "^7.5.3", - "yargs-parser": "^21.0.1" - }, - "bin": { - "ts-jest": "cli.js" - }, - "engines": { - "node": "^14.15.0 || ^16.10.0 || ^18.0.0 || >=20.0.0" - }, - "peerDependencies": { - "@babel/core": ">=7.0.0-beta.0 <8", - "@jest/transform": "^29.0.0", - "@jest/types": "^29.0.0", - "babel-jest": "^29.0.0", - "jest": "^29.0.0", - "typescript": ">=4.3 <6" - }, - "peerDependenciesMeta": { - "@babel/core": { - "optional": true - }, - "@jest/transform": { - "optional": true - }, - "@jest/types": { - "optional": true - }, - "babel-jest": { - "optional": true - }, - "esbuild": { - "optional": true - } - } - }, - "../core/node_modules/tsconfig-paths": { - "version": "3.15.0", - "license": "MIT", - "dependencies": { - "@types/json5": "^0.0.29", - "json5": "^1.0.2", - "minimist": "^1.2.6", - "strip-bom": "^3.0.0" - } - }, - "../core/node_modules/tsconfig-paths/node_modules/json5": { - "version": "1.0.2", - "license": "MIT", - "dependencies": { - "minimist": "^1.2.0" - }, - "bin": { - "json5": "lib/cli.js" - } - }, - "../core/node_modules/tsconfig-paths/node_modules/strip-bom": { - "version": "3.0.0", - "license": "MIT", - "engines": { - "node": ">=4" - } - }, - "../core/node_modules/tslib": { - "version": "2.6.2", - "license": "0BSD" - }, - "../core/node_modules/tunnel-agent": { - "version": "0.6.0", - "license": "Apache-2.0", - "dependencies": { - "safe-buffer": "^5.0.1" - }, - "engines": { - "node": "*" - } - }, - "../core/node_modules/tweetnacl": { - "version": "0.14.5", - "license": "Unlicense" - }, - "../core/node_modules/type-check": { - "version": "0.4.0", - "license": "MIT", - "dependencies": { - "prelude-ls": "^1.2.1" - }, - "engines": { - "node": ">= 0.8.0" - } - }, - "../core/node_modules/type-detect": { - "version": "4.0.8", - "dev": true, - "license": "MIT", - "engines": { - "node": ">=4" - } - }, - "../core/node_modules/type-fest": { - "version": "0.20.2", - "license": "(MIT OR CC0-1.0)", - "engines": { - "node": ">=10" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - }, - "../core/node_modules/typed-array-buffer": { - "version": "1.0.2", - "license": "MIT", - "dependencies": { - "call-bind": "^1.0.7", - "es-errors": "^1.3.0", - "is-typed-array": "^1.1.13" - }, - "engines": { - "node": ">= 0.4" - } - }, - "../core/node_modules/typed-array-byte-length": { - "version": "1.0.1", - "license": "MIT", - "dependencies": { - "call-bind": "^1.0.7", - "for-each": "^0.3.3", - "gopd": "^1.0.1", - "has-proto": "^1.0.3", - "is-typed-array": "^1.1.13" - }, - "engines": { - "node": ">= 0.4" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, - "../core/node_modules/typed-array-byte-offset": { - "version": "1.0.2", - "license": "MIT", - "dependencies": { - "available-typed-arrays": "^1.0.7", - "call-bind": "^1.0.7", - "for-each": "^0.3.3", - "gopd": "^1.0.1", - "has-proto": "^1.0.3", - "is-typed-array": "^1.1.13" - }, - "engines": { - "node": ">= 0.4" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, - "../core/node_modules/typed-array-length": { - "version": "1.0.6", - "license": "MIT", - "dependencies": { - "call-bind": "^1.0.7", - "for-each": "^0.3.3", - "gopd": "^1.0.1", - "has-proto": "^1.0.3", - "is-typed-array": "^1.1.13", - "possible-typed-array-names": "^1.0.0" - }, - "engines": { - "node": ">= 0.4" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, - "../core/node_modules/typed-query-selector": { - "version": "2.12.0", - "license": "MIT" - }, - "../core/node_modules/typescript": { - "version": "5.4.5", - "license": "Apache-2.0", - "peer": true, - "bin": { - "tsc": "bin/tsc", - "tsserver": "bin/tsserver" - }, - "engines": { - "node": ">=14.17" - } - }, - "../core/node_modules/typical": { - "version": "4.0.0", - "license": "MIT", - "peer": true, - "engines": { - "node": ">=8" - } - }, - "../core/node_modules/uglify-js": { - "version": "3.17.4", - "license": "BSD-2-Clause", - "optional": true, - "bin": { - "uglifyjs": "bin/uglifyjs" - }, - "engines": { - "node": ">=0.8.0" - } - }, - "../core/node_modules/unbox-primitive": { - "version": "1.0.2", - "license": "MIT", - "dependencies": { - "call-bind": "^1.0.2", - "has-bigints": "^1.0.2", - "has-symbols": "^1.0.3", - "which-boxed-primitive": "^1.0.2" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, - "../core/node_modules/unbzip2-stream": { - "version": "1.4.3", - "license": "MIT", - "dependencies": { - "buffer": "^5.2.1", - "through": "^2.3.8" - } - }, - "../core/node_modules/unbzip2-stream/node_modules/buffer": { - "version": "5.7.1", - "funding": [ - { - "type": "github", - "url": "https://github.com/sponsors/feross" - }, - { - "type": "patreon", - "url": "https://www.patreon.com/feross" - }, - { - "type": "consulting", - "url": "https://feross.org/support" - } - ], - "license": "MIT", - "dependencies": { - "base64-js": "^1.3.1", - "ieee754": "^1.1.13" - } - }, - "../core/node_modules/undici": { - "version": "6.19.8", - "license": "MIT", - "engines": { - "node": ">=18.17" - } - }, - "../core/node_modules/undici-types": { - "version": "5.26.5", - "license": "MIT" - }, - "../core/node_modules/unicode-canonical-property-names-ecmascript": { - "version": "2.0.0", - "dev": true, - "license": "MIT", - "engines": { - "node": ">=4" - } - }, - "../core/node_modules/unicode-match-property-ecmascript": { - "version": "2.0.0", - "dev": true, - "license": "MIT", - "dependencies": { - "unicode-canonical-property-names-ecmascript": "^2.0.0", - "unicode-property-aliases-ecmascript": "^2.0.0" - }, - "engines": { - "node": ">=4" - } - }, - "../core/node_modules/unicode-match-property-value-ecmascript": { - "version": "2.1.0", - "dev": true, - "license": "MIT", - "engines": { - "node": ">=4" - } - }, - "../core/node_modules/unicode-property-aliases-ecmascript": { - "version": "2.1.0", - "dev": true, - "license": "MIT", - "engines": { - "node": ">=4" - } - }, - "../core/node_modules/unique-filename": { - "version": "1.1.1", - "license": "ISC", - "optional": true, - "dependencies": { - "unique-slug": "^2.0.0" - } - }, - "../core/node_modules/unique-slug": { - "version": "2.0.2", - "license": "ISC", - "optional": true, - "dependencies": { - "imurmurhash": "^0.1.4" - } - }, - "../core/node_modules/universal-user-agent": { - "version": "6.0.1", - "license": "ISC" - }, - "../core/node_modules/universalify": { - "version": "0.2.0", - "license": "MIT", - "engines": { - "node": ">= 4.0.0" - } - }, - "../core/node_modules/update-browserslist-db": { - "version": "1.0.16", - "dev": true, - "funding": [ - { - "type": "opencollective", - "url": "https://opencollective.com/browserslist" - }, - { - "type": "tidelift", - "url": "https://tidelift.com/funding/github/npm/browserslist" - }, - { - "type": "github", - "url": "https://github.com/sponsors/ai" - } - ], - "license": "MIT", - "dependencies": { - "escalade": "^3.1.2", - "picocolors": "^1.0.1" - }, - "bin": { - "update-browserslist-db": "cli.js" - }, - "peerDependencies": { - "browserslist": ">= 4.21.0" - } - }, - "../core/node_modules/uri-js": { - "version": "4.4.1", - "license": "BSD-2-Clause", - "dependencies": { - "punycode": "^2.1.0" - } - }, - "../core/node_modules/url-parse": { - "version": "1.5.10", - "license": "MIT", - "dependencies": { - "querystringify": "^2.1.1", - "requires-port": "^1.0.0" - } - }, - "../core/node_modules/urlpattern-polyfill": { - "version": "10.0.0", - "license": "MIT" - }, - "../core/node_modules/util-deprecate": { - "version": "1.0.2", - "license": "MIT" - }, - "../core/node_modules/uuid": { - "version": "9.0.1", - "funding": [ - "https://github.com/sponsors/broofa", - "https://github.com/sponsors/ctavan" - ], - "license": "MIT", - "bin": { - "uuid": "dist/bin/uuid" - } - }, - "../core/node_modules/v8-to-istanbul": { - "version": "9.2.0", - "dev": true, - "license": "ISC", - "dependencies": { - "@jridgewell/trace-mapping": "^0.3.12", - "@types/istanbul-lib-coverage": "^2.0.1", - "convert-source-map": "^2.0.0" - }, - "engines": { - "node": ">=10.12.0" - } - }, - "../core/node_modules/vectordb": { - "version": "0.4.20", - "cpu": [ - "x64", - "arm64" - ], - "license": "Apache-2.0", - "os": [ - "darwin", - "linux", - "win32" - ], - "dependencies": { - "@neon-rs/load": "^0.0.74", - "axios": "^1.4.0" - }, - "optionalDependencies": { - "@lancedb/vectordb-darwin-arm64": "0.4.20", - "@lancedb/vectordb-darwin-x64": "0.4.20", - "@lancedb/vectordb-linux-arm64-gnu": "0.4.20", - "@lancedb/vectordb-linux-x64-gnu": "0.4.20", - "@lancedb/vectordb-win32-x64-msvc": "0.4.20" - }, - "peerDependencies": { - "@apache-arrow/ts": "^14.0.2", - "apache-arrow": "^14.0.2" - } - }, - "../core/node_modules/verror": { - "version": "1.10.0", - "engines": [ - "node >=0.6.0" - ], - "license": "MIT", - "dependencies": { - "assert-plus": "^1.0.0", - "core-util-is": "1.0.2", - "extsprintf": "^1.2.0" - } - }, - "../core/node_modules/w3c-xmlserializer": { - "version": "5.0.0", - "license": "MIT", - "dependencies": { - "xml-name-validator": "^5.0.0" - }, - "engines": { - "node": ">=18" - } - }, - "../core/node_modules/walker": { - "version": "1.0.8", - "dev": true, - "license": "Apache-2.0", - "dependencies": { - "makeerror": "1.0.12" - } - }, - "../core/node_modules/web-streams-polyfill": { - "version": "3.3.3", - "license": "MIT", - "engines": { - "node": ">= 8" - } - }, - "../core/node_modules/web-tree-sitter": { - "version": "0.21.0", - "license": "MIT" - }, - "../core/node_modules/webidl-conversions": { - "version": "7.0.0", - "license": "BSD-2-Clause", - "engines": { - "node": ">=12" - } - }, - "../core/node_modules/whatwg-encoding": { - "version": "3.1.1", - "license": "MIT", - "dependencies": { - "iconv-lite": "0.6.3" - }, - "engines": { - "node": ">=18" - } - }, - "../core/node_modules/whatwg-fetch": { - "version": "3.6.20", - "license": "MIT" - }, - "../core/node_modules/whatwg-mimetype": { - "version": "4.0.0", - "license": "MIT", - "engines": { - "node": ">=18" - } - }, - "../core/node_modules/whatwg-url": { - "version": "14.0.0", - "license": "MIT", - "dependencies": { - "tr46": "^5.0.0", - "webidl-conversions": "^7.0.0" - }, - "engines": { - "node": ">=18" - } - }, - "../core/node_modules/which": { - "version": "2.0.2", - "license": "ISC", - "dependencies": { - "isexe": "^2.0.0" - }, - "bin": { - "node-which": "bin/node-which" - }, - "engines": { - "node": ">= 8" - } - }, - "../core/node_modules/which-boxed-primitive": { - "version": "1.0.2", - "license": "MIT", - "dependencies": { - "is-bigint": "^1.0.1", - "is-boolean-object": "^1.1.0", - "is-number-object": "^1.0.4", - "is-string": "^1.0.5", - "is-symbol": "^1.0.3" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, - "../core/node_modules/which-typed-array": { - "version": "1.1.15", - "license": "MIT", - "dependencies": { - "available-typed-arrays": "^1.0.7", - "call-bind": "^1.0.7", - "for-each": "^0.3.3", - "gopd": "^1.0.1", - "has-tostringtag": "^1.0.2" - }, - "engines": { - "node": ">= 0.4" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, - "../core/node_modules/wide-align": { - "version": "1.1.5", - "license": "ISC", - "dependencies": { - "string-width": "^1.0.2 || 2 || 3 || 4" - } - }, - "../core/node_modules/win-ca": { - "version": "3.5.1", - "hasInstallScript": true, - "license": "MIT", - "dependencies": { - "is-electron": "^2.2.0", - "make-dir": "^1.3.0", - "node-forge": "^1.2.1", - "split": "^1.0.1" - } - }, - "../core/node_modules/win-ca/node_modules/make-dir": { - "version": "1.3.0", - "license": "MIT", - "dependencies": { - "pify": "^3.0.0" - }, - "engines": { - "node": ">=4" - } - }, - "../core/node_modules/word-wrap": { - "version": "1.2.5", - "license": "MIT", - "engines": { - "node": ">=0.10.0" - } - }, - "../core/node_modules/wordwrap": { - "version": "1.0.0", - "license": "MIT" - }, - "../core/node_modules/wordwrapjs": { - "version": "5.1.0", - "license": "MIT", - "peer": true, - "engines": { - "node": ">=12.17" - } - }, - "../core/node_modules/workerpool": { - "version": "9.1.3", - "license": "Apache-2.0" - }, - "../core/node_modules/wrap-ansi": { - "version": "7.0.0", - "license": "MIT", - "dependencies": { - "ansi-styles": "^4.0.0", - "string-width": "^4.1.0", - "strip-ansi": "^6.0.0" - }, - "engines": { - "node": ">=10" - }, - "funding": { - "url": "https://github.com/chalk/wrap-ansi?sponsor=1" - } - }, - "../core/node_modules/wrappy": { - "version": "1.0.2", - "license": "ISC" - }, - "../core/node_modules/write-file-atomic": { - "version": "4.0.2", - "dev": true, - "license": "ISC", - "dependencies": { - "imurmurhash": "^0.1.4", - "signal-exit": "^3.0.7" - }, - "engines": { - "node": "^12.13.0 || ^14.15.0 || >=16.0.0" - } - }, - "../core/node_modules/ws": { - "version": "8.18.0", - "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 - } - } - }, - "../core/node_modules/xml-name-validator": { - "version": "5.0.0", - "license": "Apache-2.0", - "engines": { - "node": ">=18" - } - }, - "../core/node_modules/xmlchars": { - "version": "2.2.0", - "license": "MIT" - }, - "../core/node_modules/xmlhttprequest-ssl": { - "version": "2.0.0", - "engines": { - "node": ">=0.4.0" - } - }, - "../core/node_modules/xtend": { - "version": "4.0.2", - "license": "MIT", - "engines": { - "node": ">=0.4" - } - }, - "../core/node_modules/y18n": { - "version": "5.0.8", - "license": "ISC", - "engines": { - "node": ">=10" - } - }, - "../core/node_modules/yallist": { - "version": "3.1.1", - "dev": true, - "license": "ISC" - }, - "../core/node_modules/yaml": { - "version": "2.4.2", - "license": "ISC", - "bin": { - "yaml": "bin.mjs" - }, - "engines": { - "node": ">= 14" - } - }, - "../core/node_modules/yargs": { - "version": "17.7.2", - "license": "MIT", - "dependencies": { - "cliui": "^8.0.1", - "escalade": "^3.1.1", - "get-caller-file": "^2.0.5", - "require-directory": "^2.1.1", - "string-width": "^4.2.3", - "y18n": "^5.0.5", - "yargs-parser": "^21.1.1" - }, - "engines": { - "node": ">=12" - } - }, - "../core/node_modules/yargs-parser": { - "version": "21.1.1", - "license": "ISC", - "engines": { - "node": ">=12" - } - }, - "../core/node_modules/yauzl": { - "version": "2.10.0", - "license": "MIT", - "dependencies": { - "buffer-crc32": "~0.2.3", - "fd-slicer": "~1.1.0" - } - }, - "../core/node_modules/yocto-queue": { - "version": "1.1.1", - "license": "MIT", - "engines": { - "node": ">=12.20" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - }, - "../core/node_modules/zod": { - "version": "3.23.8", - "license": "MIT", - "funding": { - "url": "https://github.com/sponsors/colinhacks" - } - }, - "node_modules/@alloc/quick-lru": { - "version": "5.2.0", - "dev": true, - "license": "MIT", - "engines": { - "node": ">=10" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - }, - "node_modules/@ampproject/remapping": { - "version": "2.3.0", - "license": "Apache-2.0", - "peer": true, - "dependencies": { - "@jridgewell/gen-mapping": "^0.3.5", - "@jridgewell/trace-mapping": "^0.3.24" - }, - "engines": { - "node": ">=6.0.0" - } - }, - "node_modules/@babel/code-frame": { - "version": "7.24.7", - "license": "MIT", - "dependencies": { - "@babel/highlight": "^7.24.7", - "picocolors": "^1.0.0" - }, - "engines": { - "node": ">=6.9.0" - } - }, - "node_modules/@babel/compat-data": { - "version": "7.24.7", - "license": "MIT", - "peer": true, - "engines": { - "node": ">=6.9.0" - } - }, - "node_modules/@babel/core": { - "version": "7.24.7", - "license": "MIT", - "peer": true, - "dependencies": { - "@ampproject/remapping": "^2.2.0", - "@babel/code-frame": "^7.24.7", - "@babel/generator": "^7.24.7", - "@babel/helper-compilation-targets": "^7.24.7", - "@babel/helper-module-transforms": "^7.24.7", - "@babel/helpers": "^7.24.7", - "@babel/parser": "^7.24.7", - "@babel/template": "^7.24.7", - "@babel/traverse": "^7.24.7", - "@babel/types": "^7.24.7", - "convert-source-map": "^2.0.0", - "debug": "^4.1.0", - "gensync": "^1.0.0-beta.2", - "json5": "^2.2.3", - "semver": "^6.3.1" - }, - "engines": { - "node": ">=6.9.0" - }, - "funding": { - "type": "opencollective", - "url": "https://opencollective.com/babel" - } - }, - "node_modules/@babel/generator": { - "version": "7.24.7", - "license": "MIT", - "dependencies": { - "@babel/types": "^7.24.7", - "@jridgewell/gen-mapping": "^0.3.5", - "@jridgewell/trace-mapping": "^0.3.25", - "jsesc": "^2.5.1" - }, - "engines": { - "node": ">=6.9.0" - } - }, - "node_modules/@babel/helper-annotate-as-pure": { - "version": "7.24.7", - "license": "MIT", - "dependencies": { - "@babel/types": "^7.24.7" - }, - "engines": { - "node": ">=6.9.0" - } - }, - "node_modules/@babel/helper-compilation-targets": { - "version": "7.24.7", - "license": "MIT", - "peer": true, - "dependencies": { - "@babel/compat-data": "^7.24.7", - "@babel/helper-validator-option": "^7.24.7", - "browserslist": "^4.22.2", - "lru-cache": "^5.1.1", - "semver": "^6.3.1" - }, - "engines": { - "node": ">=6.9.0" - } - }, - "node_modules/@babel/helper-environment-visitor": { - "version": "7.24.7", - "license": "MIT", - "dependencies": { - "@babel/types": "^7.24.7" - }, - "engines": { - "node": ">=6.9.0" - } - }, - "node_modules/@babel/helper-function-name": { - "version": "7.24.7", - "license": "MIT", - "dependencies": { - "@babel/template": "^7.24.7", - "@babel/types": "^7.24.7" - }, - "engines": { - "node": ">=6.9.0" - } - }, - "node_modules/@babel/helper-hoist-variables": { - "version": "7.24.7", - "license": "MIT", - "dependencies": { - "@babel/types": "^7.24.7" - }, - "engines": { - "node": ">=6.9.0" - } - }, - "node_modules/@babel/helper-module-imports": { - "version": "7.24.7", - "license": "MIT", - "dependencies": { - "@babel/traverse": "^7.24.7", - "@babel/types": "^7.24.7" - }, - "engines": { - "node": ">=6.9.0" - } - }, - "node_modules/@babel/helper-module-transforms": { - "version": "7.24.7", - "license": "MIT", - "peer": true, - "dependencies": { - "@babel/helper-environment-visitor": "^7.24.7", - "@babel/helper-module-imports": "^7.24.7", - "@babel/helper-simple-access": "^7.24.7", - "@babel/helper-split-export-declaration": "^7.24.7", - "@babel/helper-validator-identifier": "^7.24.7" - }, - "engines": { - "node": ">=6.9.0" - }, - "peerDependencies": { - "@babel/core": "^7.0.0" - } - }, - "node_modules/@babel/helper-plugin-utils": { - "version": "7.24.7", - "license": "MIT", - "engines": { - "node": ">=6.9.0" - } - }, - "node_modules/@babel/helper-simple-access": { - "version": "7.24.7", - "license": "MIT", - "peer": true, - "dependencies": { - "@babel/traverse": "^7.24.7", - "@babel/types": "^7.24.7" - }, - "engines": { - "node": ">=6.9.0" - } - }, - "node_modules/@babel/helper-split-export-declaration": { - "version": "7.24.7", - "license": "MIT", - "dependencies": { - "@babel/types": "^7.24.7" - }, - "engines": { - "node": ">=6.9.0" - } - }, - "node_modules/@babel/helper-string-parser": { - "version": "7.24.7", - "license": "MIT", - "engines": { - "node": ">=6.9.0" - } - }, - "node_modules/@babel/helper-validator-identifier": { - "version": "7.24.7", - "license": "MIT", - "engines": { - "node": ">=6.9.0" - } - }, - "node_modules/@babel/helper-validator-option": { - "version": "7.24.7", - "license": "MIT", - "peer": true, - "engines": { - "node": ">=6.9.0" - } - }, - "node_modules/@babel/helpers": { - "version": "7.24.7", - "license": "MIT", - "peer": true, - "dependencies": { - "@babel/template": "^7.24.7", - "@babel/types": "^7.24.7" - }, - "engines": { - "node": ">=6.9.0" - } - }, - "node_modules/@babel/highlight": { - "version": "7.24.7", - "license": "MIT", - "dependencies": { - "@babel/helper-validator-identifier": "^7.24.7", - "chalk": "^2.4.2", - "js-tokens": "^4.0.0", - "picocolors": "^1.0.0" - }, - "engines": { - "node": ">=6.9.0" - } - }, - "node_modules/@babel/parser": { - "version": "7.24.7", - "license": "MIT", - "bin": { - "parser": "bin/babel-parser.js" - }, - "engines": { - "node": ">=6.0.0" - } - }, - "node_modules/@babel/plugin-syntax-jsx": { - "version": "7.24.7", - "license": "MIT", - "dependencies": { - "@babel/helper-plugin-utils": "^7.24.7" - }, - "engines": { - "node": ">=6.9.0" - }, - "peerDependencies": { - "@babel/core": "^7.0.0-0" - } - }, - "node_modules/@babel/runtime": { - "version": "7.24.7", - "license": "MIT", - "dependencies": { - "regenerator-runtime": "^0.14.0" - }, - "engines": { - "node": ">=6.9.0" - } - }, - "node_modules/@babel/template": { - "version": "7.24.7", - "license": "MIT", - "dependencies": { - "@babel/code-frame": "^7.24.7", - "@babel/parser": "^7.24.7", - "@babel/types": "^7.24.7" - }, - "engines": { - "node": ">=6.9.0" - } - }, - "node_modules/@babel/traverse": { - "version": "7.24.7", - "license": "MIT", - "dependencies": { - "@babel/code-frame": "^7.24.7", - "@babel/generator": "^7.24.7", - "@babel/helper-environment-visitor": "^7.24.7", - "@babel/helper-function-name": "^7.24.7", - "@babel/helper-hoist-variables": "^7.24.7", - "@babel/helper-split-export-declaration": "^7.24.7", - "@babel/parser": "^7.24.7", - "@babel/types": "^7.24.7", - "debug": "^4.3.1", - "globals": "^11.1.0" - }, - "engines": { - "node": ">=6.9.0" - } - }, - "node_modules/@babel/types": { - "version": "7.24.7", - "license": "MIT", - "dependencies": { - "@babel/helper-string-parser": "^7.24.7", - "@babel/helper-validator-identifier": "^7.24.7", - "to-fast-properties": "^2.0.0" - }, - "engines": { - "node": ">=6.9.0" - } - }, - "node_modules/@emotion/is-prop-valid": { - "version": "1.2.2", - "license": "MIT", - "dependencies": { - "@emotion/memoize": "^0.8.1" - } - }, - "node_modules/@emotion/memoize": { - "version": "0.8.1", - "license": "MIT" - }, - "node_modules/@emotion/stylis": { - "version": "0.8.5", - "license": "MIT" - }, - "node_modules/@emotion/unitless": { - "version": "0.7.5", - "license": "MIT" - }, - "node_modules/@esbuild/darwin-x64": { - "version": "0.18.20", - "cpu": [ - "x64" - ], - "dev": true, - "license": "MIT", - "optional": true, - "os": [ - "darwin" - ], - "engines": { - "node": ">=12" - } - }, - "node_modules/@floating-ui/core": { - "version": "1.6.2", - "license": "MIT", - "dependencies": { - "@floating-ui/utils": "^0.2.0" - } - }, - "node_modules/@floating-ui/dom": { - "version": "1.6.5", - "license": "MIT", - "dependencies": { - "@floating-ui/core": "^1.0.0", - "@floating-ui/utils": "^0.2.0" - } - }, - "node_modules/@floating-ui/utils": { - "version": "0.2.2", - "license": "MIT" - }, - "node_modules/@headlessui/react": { - "version": "1.7.19", - "license": "MIT", - "dependencies": { - "@tanstack/react-virtual": "^3.0.0-beta.60", - "client-only": "^0.0.1" - }, - "engines": { - "node": ">=10" - }, - "peerDependencies": { - "react": "^16 || ^17 || ^18", - "react-dom": "^16 || ^17 || ^18" - } - }, - "node_modules/@heroicons/react": { - "version": "2.1.5", - "license": "MIT", - "peerDependencies": { - "react": ">= 16" - } - }, - "node_modules/@isaacs/cliui": { - "version": "8.0.2", - "dev": true, - "license": "ISC", - "dependencies": { - "string-width": "^5.1.2", - "string-width-cjs": "npm:string-width@^4.2.0", - "strip-ansi": "^7.0.1", - "strip-ansi-cjs": "npm:strip-ansi@^6.0.1", - "wrap-ansi": "^8.1.0", - "wrap-ansi-cjs": "npm:wrap-ansi@^7.0.0" - }, - "engines": { - "node": ">=12" - } - }, - "node_modules/@isaacs/cliui/node_modules/ansi-regex": { - "version": "6.0.1", - "dev": true, - "license": "MIT", - "engines": { - "node": ">=12" - }, - "funding": { - "url": "https://github.com/chalk/ansi-regex?sponsor=1" - } - }, - "node_modules/@isaacs/cliui/node_modules/emoji-regex": { - "version": "9.2.2", - "dev": true, - "license": "MIT" - }, - "node_modules/@isaacs/cliui/node_modules/string-width": { - "version": "5.1.2", - "dev": true, - "license": "MIT", - "dependencies": { - "eastasianwidth": "^0.2.0", - "emoji-regex": "^9.2.2", - "strip-ansi": "^7.0.1" - }, - "engines": { - "node": ">=12" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - }, - "node_modules/@isaacs/cliui/node_modules/strip-ansi": { - "version": "7.1.0", - "dev": true, - "license": "MIT", - "dependencies": { - "ansi-regex": "^6.0.1" - }, - "engines": { - "node": ">=12" - }, - "funding": { - "url": "https://github.com/chalk/strip-ansi?sponsor=1" - } - }, - "node_modules/@jridgewell/gen-mapping": { - "version": "0.3.5", - "license": "MIT", - "dependencies": { - "@jridgewell/set-array": "^1.2.1", - "@jridgewell/sourcemap-codec": "^1.4.10", - "@jridgewell/trace-mapping": "^0.3.24" - }, - "engines": { - "node": ">=6.0.0" - } - }, - "node_modules/@jridgewell/resolve-uri": { - "version": "3.1.2", - "license": "MIT", - "engines": { - "node": ">=6.0.0" - } - }, - "node_modules/@jridgewell/set-array": { - "version": "1.2.1", - "license": "MIT", - "engines": { - "node": ">=6.0.0" - } - }, - "node_modules/@jridgewell/sourcemap-codec": { - "version": "1.4.15", - "license": "MIT" - }, - "node_modules/@jridgewell/trace-mapping": { - "version": "0.3.25", - "license": "MIT", - "dependencies": { - "@jridgewell/resolve-uri": "^3.1.0", - "@jridgewell/sourcemap-codec": "^1.4.14" - } - }, - "node_modules/@mapbox/hast-util-table-cell-style": { - "version": "0.2.1", - "license": "BSD-2-Clause", - "dependencies": { - "unist-util-visit": "^1.4.1" - }, - "engines": { - "node": ">=12" - } - }, - "node_modules/@mapbox/hast-util-table-cell-style/node_modules/unist-util-is": { - "version": "3.0.0", - "license": "MIT" - }, - "node_modules/@mapbox/hast-util-table-cell-style/node_modules/unist-util-visit": { - "version": "1.4.1", - "license": "MIT", - "dependencies": { - "unist-util-visit-parents": "^2.0.0" - } - }, - "node_modules/@mapbox/hast-util-table-cell-style/node_modules/unist-util-visit-parents": { - "version": "2.1.2", - "license": "MIT", - "dependencies": { - "unist-util-is": "^3.0.0" - } - }, - "node_modules/@mole-inc/bin-wrapper": { - "version": "8.0.1", - "dev": true, - "license": "MIT", - "dependencies": { - "bin-check": "^4.1.0", - "bin-version-check": "^5.0.0", - "content-disposition": "^0.5.4", - "ext-name": "^5.0.0", - "file-type": "^17.1.6", - "filenamify": "^5.0.2", - "got": "^11.8.5", - "os-filter-obj": "^2.0.0" - }, - "engines": { - "node": "^12.20.0 || ^14.13.1 || >=16.0.0" - } - }, - "node_modules/@monaco-editor/loader": { - "version": "1.4.0", - "license": "MIT", - "dependencies": { - "state-local": "^1.0.6" - }, - "peerDependencies": { - "monaco-editor": ">= 0.21.0 < 1" - } - }, - "node_modules/@monaco-editor/react": { - "version": "4.6.0", - "license": "MIT", - "dependencies": { - "@monaco-editor/loader": "^1.4.0" - }, - "peerDependencies": { - "monaco-editor": ">= 0.25.0 < 1", - "react": "^16.8.0 || ^17.0.0 || ^18.0.0", - "react-dom": "^16.8.0 || ^17.0.0 || ^18.0.0" - } - }, - "node_modules/@nodelib/fs.scandir": { - "version": "2.1.5", - "dev": true, - "license": "MIT", - "dependencies": { - "@nodelib/fs.stat": "2.0.5", - "run-parallel": "^1.1.9" - }, - "engines": { - "node": ">= 8" - } - }, - "node_modules/@nodelib/fs.stat": { - "version": "2.0.5", - "dev": true, - "license": "MIT", - "engines": { - "node": ">= 8" - } - }, - "node_modules/@nodelib/fs.walk": { - "version": "1.2.8", - "dev": true, - "license": "MIT", - "dependencies": { - "@nodelib/fs.scandir": "2.1.5", - "fastq": "^1.6.0" - }, - "engines": { - "node": ">= 8" - } - }, - "node_modules/@pkgjs/parseargs": { - "version": "0.11.0", - "dev": true, - "license": "MIT", - "optional": true, - "engines": { - "node": ">=14" - } - }, - "node_modules/@popperjs/core": { - "version": "2.11.8", - "license": "MIT", - "funding": { - "type": "opencollective", - "url": "https://opencollective.com/popperjs" - } - }, - "node_modules/@reduxjs/toolkit": { - "version": "1.9.7", - "license": "MIT", - "dependencies": { - "immer": "^9.0.21", - "redux": "^4.2.1", - "redux-thunk": "^2.4.2", - "reselect": "^4.1.8" - }, - "peerDependencies": { - "react": "^16.9.0 || ^17.0.0 || ^18", - "react-redux": "^7.2.1 || ^8.0.2" - }, - "peerDependenciesMeta": { - "react": { - "optional": true - }, - "react-redux": { - "optional": true - } - } - }, - "node_modules/@reduxjs/toolkit/node_modules/reselect": { - "version": "4.1.8", - "license": "MIT" - }, - "node_modules/@remirror/core-constants": { - "version": "2.0.2", - "license": "MIT" - }, - "node_modules/@remix-run/router": { - "version": "1.16.1", - "license": "MIT", - "engines": { - "node": ">=14.0.0" - } - }, - "node_modules/@sindresorhus/is": { - "version": "4.6.0", - "dev": true, - "license": "MIT", - "engines": { - "node": ">=10" - }, - "funding": { - "url": "https://github.com/sindresorhus/is?sponsor=1" - } - }, - "node_modules/@socket.io/component-emitter": { - "version": "3.1.2", - "license": "MIT" - }, - "node_modules/@swc/cli": { - "version": "0.3.14", - "dev": true, - "license": "MIT", - "dependencies": { - "@mole-inc/bin-wrapper": "^8.0.1", - "@swc/counter": "^0.1.3", - "commander": "^8.3.0", - "fast-glob": "^3.2.5", - "minimatch": "^9.0.3", - "piscina": "^4.3.0", - "semver": "^7.3.8", - "slash": "3.0.0", - "source-map": "^0.7.3" - }, - "bin": { - "spack": "bin/spack.js", - "swc": "bin/swc.js", - "swcx": "bin/swcx.js" - }, - "engines": { - "node": ">= 16.14.0" - }, - "peerDependencies": { - "@swc/core": "^1.2.66", - "chokidar": "^3.5.1" - }, - "peerDependenciesMeta": { - "chokidar": { - "optional": true - } - } - }, - "node_modules/@swc/cli/node_modules/semver": { - "version": "7.6.2", - "dev": true, - "license": "ISC", - "bin": { - "semver": "bin/semver.js" - }, - "engines": { - "node": ">=10" - } - }, - "node_modules/@swc/core": { - "version": "1.7.26", - "dev": true, - "hasInstallScript": true, - "license": "Apache-2.0", - "dependencies": { - "@swc/counter": "^0.1.3", - "@swc/types": "^0.1.12" - }, - "engines": { - "node": ">=10" - }, - "funding": { - "type": "opencollective", - "url": "https://opencollective.com/swc" - }, - "optionalDependencies": { - "@swc/core-darwin-arm64": "1.7.26", - "@swc/core-darwin-x64": "1.7.26", - "@swc/core-linux-arm-gnueabihf": "1.7.26", - "@swc/core-linux-arm64-gnu": "1.7.26", - "@swc/core-linux-arm64-musl": "1.7.26", - "@swc/core-linux-x64-gnu": "1.7.26", - "@swc/core-linux-x64-musl": "1.7.26", - "@swc/core-win32-arm64-msvc": "1.7.26", - "@swc/core-win32-ia32-msvc": "1.7.26", - "@swc/core-win32-x64-msvc": "1.7.26" - }, - "peerDependencies": { - "@swc/helpers": "*" - }, - "peerDependenciesMeta": { - "@swc/helpers": { - "optional": true - } - } - }, - "node_modules/@swc/core-darwin-x64": { - "version": "1.7.26", - "cpu": [ - "x64" - ], - "dev": true, - "license": "Apache-2.0 AND MIT", - "optional": true, - "os": [ - "darwin" - ], - "engines": { - "node": ">=10" - } - }, - "node_modules/@swc/counter": { - "version": "0.1.3", - "dev": true, - "license": "Apache-2.0" - }, - "node_modules/@swc/types": { - "version": "0.1.12", - "dev": true, - "license": "Apache-2.0", - "dependencies": { - "@swc/counter": "^0.1.3" - } - }, - "node_modules/@szmarczak/http-timer": { - "version": "4.0.6", - "dev": true, - "license": "MIT", - "dependencies": { - "defer-to-connect": "^2.0.0" - }, - "engines": { - "node": ">=10" - } - }, - "node_modules/@tanstack/react-virtual": { - "version": "3.5.1", - "license": "MIT", - "dependencies": { - "@tanstack/virtual-core": "3.5.1" - }, - "funding": { - "type": "github", - "url": "https://github.com/sponsors/tannerlinsley" - }, - "peerDependencies": { - "react": "^16.8.0 || ^17.0.0 || ^18.0.0", - "react-dom": "^16.8.0 || ^17.0.0 || ^18.0.0" - } - }, - "node_modules/@tanstack/virtual-core": { - "version": "3.5.1", - "license": "MIT", - "funding": { - "type": "github", - "url": "https://github.com/sponsors/tannerlinsley" - } - }, - "node_modules/@tiptap/core": { - "version": "2.4.0", - "license": "MIT", - "funding": { - "type": "github", - "url": "https://github.com/sponsors/ueberdosis" - }, - "peerDependencies": { - "@tiptap/pm": "^2.0.0" - } - }, - "node_modules/@tiptap/extension-blockquote": { - "version": "2.4.0", - "license": "MIT", - "funding": { - "type": "github", - "url": "https://github.com/sponsors/ueberdosis" - }, - "peerDependencies": { - "@tiptap/core": "^2.0.0" - } - }, - "node_modules/@tiptap/extension-bold": { - "version": "2.4.0", - "license": "MIT", - "funding": { - "type": "github", - "url": "https://github.com/sponsors/ueberdosis" - }, - "peerDependencies": { - "@tiptap/core": "^2.0.0" - } - }, - "node_modules/@tiptap/extension-bubble-menu": { - "version": "2.4.0", - "license": "MIT", - "dependencies": { - "tippy.js": "^6.3.7" - }, - "funding": { - "type": "github", - "url": "https://github.com/sponsors/ueberdosis" - }, - "peerDependencies": { - "@tiptap/core": "^2.0.0", - "@tiptap/pm": "^2.0.0" - } - }, - "node_modules/@tiptap/extension-bullet-list": { - "version": "2.4.0", - "license": "MIT", - "funding": { - "type": "github", - "url": "https://github.com/sponsors/ueberdosis" - }, - "peerDependencies": { - "@tiptap/core": "^2.0.0" - } - }, - "node_modules/@tiptap/extension-code": { - "version": "2.4.0", - "license": "MIT", - "funding": { - "type": "github", - "url": "https://github.com/sponsors/ueberdosis" - }, - "peerDependencies": { - "@tiptap/core": "^2.0.0" - } - }, - "node_modules/@tiptap/extension-code-block": { - "version": "2.4.0", - "license": "MIT", - "funding": { - "type": "github", - "url": "https://github.com/sponsors/ueberdosis" - }, - "peerDependencies": { - "@tiptap/core": "^2.0.0", - "@tiptap/pm": "^2.0.0" - } - }, - "node_modules/@tiptap/extension-document": { - "version": "2.4.0", - "license": "MIT", - "funding": { - "type": "github", - "url": "https://github.com/sponsors/ueberdosis" - }, - "peerDependencies": { - "@tiptap/core": "^2.0.0" - } - }, - "node_modules/@tiptap/extension-dropcursor": { - "version": "2.4.0", - "license": "MIT", - "funding": { - "type": "github", - "url": "https://github.com/sponsors/ueberdosis" - }, - "peerDependencies": { - "@tiptap/core": "^2.0.0", - "@tiptap/pm": "^2.0.0" - } - }, - "node_modules/@tiptap/extension-floating-menu": { - "version": "2.4.0", - "license": "MIT", - "dependencies": { - "tippy.js": "^6.3.7" - }, - "funding": { - "type": "github", - "url": "https://github.com/sponsors/ueberdosis" - }, - "peerDependencies": { - "@tiptap/core": "^2.0.0", - "@tiptap/pm": "^2.0.0" - } - }, - "node_modules/@tiptap/extension-gapcursor": { - "version": "2.4.0", - "license": "MIT", - "funding": { - "type": "github", - "url": "https://github.com/sponsors/ueberdosis" - }, - "peerDependencies": { - "@tiptap/core": "^2.0.0", - "@tiptap/pm": "^2.0.0" - } - }, - "node_modules/@tiptap/extension-hard-break": { - "version": "2.4.0", - "license": "MIT", - "funding": { - "type": "github", - "url": "https://github.com/sponsors/ueberdosis" - }, - "peerDependencies": { - "@tiptap/core": "^2.0.0" - } - }, - "node_modules/@tiptap/extension-heading": { - "version": "2.4.0", - "license": "MIT", - "funding": { - "type": "github", - "url": "https://github.com/sponsors/ueberdosis" - }, - "peerDependencies": { - "@tiptap/core": "^2.0.0" - } - }, - "node_modules/@tiptap/extension-history": { - "version": "2.4.0", - "license": "MIT", - "funding": { - "type": "github", - "url": "https://github.com/sponsors/ueberdosis" - }, - "peerDependencies": { - "@tiptap/core": "^2.0.0", - "@tiptap/pm": "^2.0.0" - } - }, - "node_modules/@tiptap/extension-horizontal-rule": { - "version": "2.4.0", - "license": "MIT", - "funding": { - "type": "github", - "url": "https://github.com/sponsors/ueberdosis" - }, - "peerDependencies": { - "@tiptap/core": "^2.0.0", - "@tiptap/pm": "^2.0.0" - } - }, - "node_modules/@tiptap/extension-image": { - "version": "2.4.0", - "license": "MIT", - "funding": { - "type": "github", - "url": "https://github.com/sponsors/ueberdosis" - }, - "peerDependencies": { - "@tiptap/core": "^2.0.0" - } - }, - "node_modules/@tiptap/extension-italic": { - "version": "2.4.0", - "license": "MIT", - "funding": { - "type": "github", - "url": "https://github.com/sponsors/ueberdosis" - }, - "peerDependencies": { - "@tiptap/core": "^2.0.0" - } - }, - "node_modules/@tiptap/extension-list-item": { - "version": "2.4.0", - "license": "MIT", - "funding": { - "type": "github", - "url": "https://github.com/sponsors/ueberdosis" - }, - "peerDependencies": { - "@tiptap/core": "^2.0.0" - } - }, - "node_modules/@tiptap/extension-mention": { - "version": "2.4.0", - "license": "MIT", - "funding": { - "type": "github", - "url": "https://github.com/sponsors/ueberdosis" - }, - "peerDependencies": { - "@tiptap/core": "^2.0.0", - "@tiptap/pm": "^2.0.0", - "@tiptap/suggestion": "^2.0.0" - } - }, - "node_modules/@tiptap/extension-ordered-list": { - "version": "2.4.0", - "license": "MIT", - "funding": { - "type": "github", - "url": "https://github.com/sponsors/ueberdosis" - }, - "peerDependencies": { - "@tiptap/core": "^2.0.0" - } - }, - "node_modules/@tiptap/extension-paragraph": { - "version": "2.4.0", - "license": "MIT", - "funding": { - "type": "github", - "url": "https://github.com/sponsors/ueberdosis" - }, - "peerDependencies": { - "@tiptap/core": "^2.0.0" - } - }, - "node_modules/@tiptap/extension-placeholder": { - "version": "2.4.0", - "license": "MIT", - "funding": { - "type": "github", - "url": "https://github.com/sponsors/ueberdosis" - }, - "peerDependencies": { - "@tiptap/core": "^2.0.0", - "@tiptap/pm": "^2.0.0" - } - }, - "node_modules/@tiptap/extension-strike": { - "version": "2.4.0", - "license": "MIT", - "funding": { - "type": "github", - "url": "https://github.com/sponsors/ueberdosis" - }, - "peerDependencies": { - "@tiptap/core": "^2.0.0" - } - }, - "node_modules/@tiptap/extension-text": { - "version": "2.4.0", - "license": "MIT", - "funding": { - "type": "github", - "url": "https://github.com/sponsors/ueberdosis" - }, - "peerDependencies": { - "@tiptap/core": "^2.0.0" - } - }, - "node_modules/@tiptap/pm": { - "version": "2.4.0", - "license": "MIT", - "dependencies": { - "prosemirror-changeset": "^2.2.1", - "prosemirror-collab": "^1.3.1", - "prosemirror-commands": "^1.5.2", - "prosemirror-dropcursor": "^1.8.1", - "prosemirror-gapcursor": "^1.3.2", - "prosemirror-history": "^1.3.2", - "prosemirror-inputrules": "^1.3.0", - "prosemirror-keymap": "^1.2.2", - "prosemirror-markdown": "^1.12.0", - "prosemirror-menu": "^1.2.4", - "prosemirror-model": "^1.19.4", - "prosemirror-schema-basic": "^1.2.2", - "prosemirror-schema-list": "^1.3.0", - "prosemirror-state": "^1.4.3", - "prosemirror-tables": "^1.3.5", - "prosemirror-trailing-node": "^2.0.7", - "prosemirror-transform": "^1.8.0", - "prosemirror-view": "^1.32.7" - }, - "funding": { - "type": "github", - "url": "https://github.com/sponsors/ueberdosis" - } - }, - "node_modules/@tiptap/react": { - "version": "2.4.0", - "license": "MIT", - "dependencies": { - "@tiptap/extension-bubble-menu": "^2.4.0", - "@tiptap/extension-floating-menu": "^2.4.0" - }, - "funding": { - "type": "github", - "url": "https://github.com/sponsors/ueberdosis" - }, - "peerDependencies": { - "@tiptap/core": "^2.0.0", - "@tiptap/pm": "^2.0.0", - "react": "^17.0.0 || ^18.0.0", - "react-dom": "^17.0.0 || ^18.0.0" - } - }, - "node_modules/@tiptap/starter-kit": { - "version": "2.4.0", - "license": "MIT", - "dependencies": { - "@tiptap/core": "^2.4.0", - "@tiptap/extension-blockquote": "^2.4.0", - "@tiptap/extension-bold": "^2.4.0", - "@tiptap/extension-bullet-list": "^2.4.0", - "@tiptap/extension-code": "^2.4.0", - "@tiptap/extension-code-block": "^2.4.0", - "@tiptap/extension-document": "^2.4.0", - "@tiptap/extension-dropcursor": "^2.4.0", - "@tiptap/extension-gapcursor": "^2.4.0", - "@tiptap/extension-hard-break": "^2.4.0", - "@tiptap/extension-heading": "^2.4.0", - "@tiptap/extension-history": "^2.4.0", - "@tiptap/extension-horizontal-rule": "^2.4.0", - "@tiptap/extension-italic": "^2.4.0", - "@tiptap/extension-list-item": "^2.4.0", - "@tiptap/extension-ordered-list": "^2.4.0", - "@tiptap/extension-paragraph": "^2.4.0", - "@tiptap/extension-strike": "^2.4.0", - "@tiptap/extension-text": "^2.4.0" - }, - "funding": { - "type": "github", - "url": "https://github.com/sponsors/ueberdosis" - } - }, - "node_modules/@tiptap/suggestion": { - "version": "2.4.0", - "license": "MIT", - "funding": { - "type": "github", - "url": "https://github.com/sponsors/ueberdosis" - }, - "peerDependencies": { - "@tiptap/core": "^2.0.0", - "@tiptap/pm": "^2.0.0" - } - }, - "node_modules/@tokenizer/token": { - "version": "0.3.0", - "dev": true, - "license": "MIT" - }, - "node_modules/@types/cacheable-request": { - "version": "6.0.3", - "dev": true, - "license": "MIT", - "dependencies": { - "@types/http-cache-semantics": "*", - "@types/keyv": "^3.1.4", - "@types/node": "*", - "@types/responselike": "^1.0.0" - } - }, - "node_modules/@types/debug": { - "version": "4.1.12", - "license": "MIT", - "dependencies": { - "@types/ms": "*" - } - }, - "node_modules/@types/estree": { - "version": "1.0.5", - "license": "MIT" - }, - "node_modules/@types/estree-jsx": { - "version": "1.0.5", - "license": "MIT", - "dependencies": { - "@types/estree": "*" - } - }, - "node_modules/@types/hast": { - "version": "3.0.4", - "license": "MIT", - "dependencies": { - "@types/unist": "*" - } - }, - "node_modules/@types/history": { - "version": "4.7.11", - "dev": true, - "license": "MIT" - }, - "node_modules/@types/hoist-non-react-statics": { - "version": "3.3.5", - "license": "MIT", - "dependencies": { - "@types/react": "*", - "hoist-non-react-statics": "^3.3.0" - } - }, - "node_modules/@types/http-cache-semantics": { - "version": "4.0.4", - "dev": true, - "license": "MIT" - }, - "node_modules/@types/katex": { - "version": "0.16.7", - "license": "MIT" - }, - "node_modules/@types/keyv": { - "version": "3.1.4", - "dev": true, - "license": "MIT", - "dependencies": { - "@types/node": "*" - } - }, - "node_modules/@types/lodash": { - "version": "4.17.6", - "dev": true, - "license": "MIT" - }, - "node_modules/@types/mdast": { - "version": "4.0.4", - "license": "MIT", - "dependencies": { - "@types/unist": "*" - } - }, - "node_modules/@types/ms": { - "version": "0.7.34", - "license": "MIT" - }, - "node_modules/@types/node": { - "version": "20.14.2", - "dev": true, - "license": "MIT", - "dependencies": { - "undici-types": "~5.26.4" - } - }, - "node_modules/@types/node-fetch": { - "version": "2.6.11", - "dev": true, - "license": "MIT", - "dependencies": { - "@types/node": "*", - "form-data": "^4.0.0" - } - }, - "node_modules/@types/prop-types": { - "version": "15.7.12", - "license": "MIT" - }, - "node_modules/@types/react": { - "version": "18.3.3", - "license": "MIT", - "dependencies": { - "@types/prop-types": "*", - "csstype": "^3.0.2" - } - }, - "node_modules/@types/react-dom": { - "version": "18.3.0", - "devOptional": true, - "license": "MIT", - "dependencies": { - "@types/react": "*" - } - }, - "node_modules/@types/react-router": { - "version": "5.1.20", - "dev": true, - "license": "MIT", - "dependencies": { - "@types/history": "^4.7.11", - "@types/react": "*" - } - }, - "node_modules/@types/react-router-dom": { - "version": "5.3.3", - "dev": true, - "license": "MIT", - "dependencies": { - "@types/history": "^4.7.11", - "@types/react": "*", - "@types/react-router": "*" - } - }, - "node_modules/@types/react-syntax-highlighter": { - "version": "15.5.13", - "dev": true, - "license": "MIT", - "dependencies": { - "@types/react": "*" - } - }, - "node_modules/@types/responselike": { - "version": "1.0.3", - "dev": true, - "license": "MIT", - "dependencies": { - "@types/node": "*" - } - }, - "node_modules/@types/styled-components": { - "version": "5.1.34", - "dev": true, - "license": "MIT", - "dependencies": { - "@types/hoist-non-react-statics": "*", - "@types/react": "*", - "csstype": "^3.0.2" - } - }, - "node_modules/@types/unist": { - "version": "3.0.2", - "license": "MIT" - }, - "node_modules/@types/use-sync-external-store": { - "version": "0.0.3", - "license": "MIT" - }, - "node_modules/@types/vscode-webview": { - "version": "1.57.5", - "license": "MIT" - }, - "node_modules/@ungap/structured-clone": { - "version": "1.2.0", - "license": "ISC" - }, - "node_modules/@vitejs/plugin-react-swc": { - "version": "3.7.0", - "dev": true, - "license": "MIT", - "dependencies": { - "@swc/core": "^1.5.7" - }, - "peerDependencies": { - "vite": "^4 || ^5" - } - }, - "node_modules/ajv": { - "version": "8.16.0", - "license": "MIT", - "dependencies": { - "fast-deep-equal": "^3.1.3", - "json-schema-traverse": "^1.0.0", - "require-from-string": "^2.0.2", - "uri-js": "^4.4.1" - }, - "funding": { - "type": "github", - "url": "https://github.com/sponsors/epoberezkin" - } - }, - "node_modules/ansi-regex": { - "version": "5.0.1", - "license": "MIT", - "engines": { - "node": ">=8" - } - }, - "node_modules/ansi-styles": { - "version": "3.2.1", - "license": "MIT", - "dependencies": { - "color-convert": "^1.9.0" - }, - "engines": { - "node": ">=4" - } - }, - "node_modules/any-promise": { - "version": "1.3.0", - "dev": true, - "license": "MIT" - }, - "node_modules/anymatch": { - "version": "3.1.3", - "dev": true, - "license": "ISC", - "dependencies": { - "normalize-path": "^3.0.0", - "picomatch": "^2.0.4" - }, - "engines": { - "node": ">= 8" - } - }, - "node_modules/arch": { - "version": "2.2.0", - "dev": true, - "funding": [ - { - "type": "github", - "url": "https://github.com/sponsors/feross" - }, - { - "type": "patreon", - "url": "https://www.patreon.com/feross" - }, - { - "type": "consulting", - "url": "https://feross.org/support" - } - ], - "license": "MIT" - }, - "node_modules/arg": { - "version": "5.0.2", - "dev": true, - "license": "MIT" - }, - "node_modules/argparse": { - "version": "2.0.1", - "license": "Python-2.0" - }, - "node_modules/astral-regex": { - "version": "2.0.0", - "license": "MIT", - "engines": { - "node": ">=8" - } - }, - "node_modules/asynckit": { - "version": "0.4.0", - "dev": true, - "license": "MIT" - }, - "node_modules/autoprefixer": { - "version": "10.4.19", - "dev": true, - "funding": [ - { - "type": "opencollective", - "url": "https://opencollective.com/postcss/" - }, - { - "type": "tidelift", - "url": "https://tidelift.com/funding/github/npm/autoprefixer" - }, - { - "type": "github", - "url": "https://github.com/sponsors/ai" - } - ], - "license": "MIT", - "dependencies": { - "browserslist": "^4.23.0", - "caniuse-lite": "^1.0.30001599", - "fraction.js": "^4.3.7", - "normalize-range": "^0.1.2", - "picocolors": "^1.0.0", - "postcss-value-parser": "^4.2.0" - }, - "bin": { - "autoprefixer": "bin/autoprefixer" - }, - "engines": { - "node": "^10 || ^12 || >=14" - }, - "peerDependencies": { - "postcss": "^8.1.0" - } - }, - "node_modules/babel-plugin-styled-components": { - "version": "2.1.4", - "license": "MIT", - "dependencies": { - "@babel/helper-annotate-as-pure": "^7.22.5", - "@babel/helper-module-imports": "^7.22.5", - "@babel/plugin-syntax-jsx": "^7.22.5", - "lodash": "^4.17.21", - "picomatch": "^2.3.1" - }, - "peerDependencies": { - "styled-components": ">= 2" - } - }, - "node_modules/bail": { - "version": "2.0.2", - "license": "MIT", - "funding": { - "type": "github", - "url": "https://github.com/sponsors/wooorm" - } - }, - "node_modules/balanced-match": { - "version": "1.0.2", - "dev": true, - "license": "MIT" - }, - "node_modules/bcp-47-match": { - "version": "1.0.3", - "license": "MIT", - "funding": { - "type": "github", - "url": "https://github.com/sponsors/wooorm" - } - }, - "node_modules/bin-check": { - "version": "4.1.0", - "dev": true, - "license": "MIT", - "dependencies": { - "execa": "^0.7.0", - "executable": "^4.1.0" - }, - "engines": { - "node": ">=4" - } - }, - "node_modules/bin-version": { - "version": "6.0.0", - "dev": true, - "license": "MIT", - "dependencies": { - "execa": "^5.0.0", - "find-versions": "^5.0.0" - }, - "engines": { - "node": ">=12" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - }, - "node_modules/bin-version-check": { - "version": "5.1.0", - "dev": true, - "license": "MIT", - "dependencies": { - "bin-version": "^6.0.0", - "semver": "^7.5.3", - "semver-truncate": "^3.0.0" - }, - "engines": { - "node": ">=12" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - }, - "node_modules/bin-version-check/node_modules/semver": { - "version": "7.6.2", - "dev": true, - "license": "ISC", - "bin": { - "semver": "bin/semver.js" - }, - "engines": { - "node": ">=10" - } - }, - "node_modules/bin-version/node_modules/execa": { - "version": "5.1.1", - "dev": true, - "license": "MIT", - "dependencies": { - "cross-spawn": "^7.0.3", - "get-stream": "^6.0.0", - "human-signals": "^2.1.0", - "is-stream": "^2.0.0", - "merge-stream": "^2.0.0", - "npm-run-path": "^4.0.1", - "onetime": "^5.1.2", - "signal-exit": "^3.0.3", - "strip-final-newline": "^2.0.0" - }, - "engines": { - "node": ">=10" - }, - "funding": { - "url": "https://github.com/sindresorhus/execa?sponsor=1" - } - }, - "node_modules/bin-version/node_modules/get-stream": { - "version": "6.0.1", - "dev": true, - "license": "MIT", - "engines": { - "node": ">=10" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - }, - "node_modules/bin-version/node_modules/is-stream": { - "version": "2.0.1", - "dev": true, - "license": "MIT", - "engines": { - "node": ">=8" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - }, - "node_modules/bin-version/node_modules/npm-run-path": { - "version": "4.0.1", - "dev": true, - "license": "MIT", - "dependencies": { - "path-key": "^3.0.0" - }, - "engines": { - "node": ">=8" - } - }, - "node_modules/bin-version/node_modules/signal-exit": { - "version": "3.0.7", - "dev": true, - "license": "ISC" - }, - "node_modules/binary-extensions": { - "version": "2.3.0", - "dev": true, - "license": "MIT", - "engines": { - "node": ">=8" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - }, - "node_modules/boolbase": { - "version": "1.0.0", - "license": "ISC" - }, - "node_modules/brace-expansion": { - "version": "2.0.1", - "dev": true, - "license": "MIT", - "dependencies": { - "balanced-match": "^1.0.0" - } - }, - "node_modules/braces": { - "version": "3.0.3", - "dev": true, - "license": "MIT", - "dependencies": { - "fill-range": "^7.1.1" - }, - "engines": { - "node": ">=8" - } - }, - "node_modules/browserslist": { - "version": "4.23.0", - "funding": [ - { - "type": "opencollective", - "url": "https://opencollective.com/browserslist" - }, - { - "type": "tidelift", - "url": "https://tidelift.com/funding/github/npm/browserslist" - }, - { - "type": "github", - "url": "https://github.com/sponsors/ai" - } - ], - "license": "MIT", - "dependencies": { - "caniuse-lite": "^1.0.30001587", - "electron-to-chromium": "^1.4.668", - "node-releases": "^2.0.14", - "update-browserslist-db": "^1.0.13" - }, - "bin": { - "browserslist": "cli.js" - }, - "engines": { - "node": "^6 || ^7 || ^8 || ^9 || ^10 || ^11 || ^12 || >=13.7" - } - }, - "node_modules/cacheable-lookup": { - "version": "5.0.4", - "dev": true, - "license": "MIT", - "engines": { - "node": ">=10.6.0" - } - }, - "node_modules/cacheable-request": { - "version": "7.0.4", - "dev": true, - "license": "MIT", - "dependencies": { - "clone-response": "^1.0.2", - "get-stream": "^5.1.0", - "http-cache-semantics": "^4.0.0", - "keyv": "^4.0.0", - "lowercase-keys": "^2.0.0", - "normalize-url": "^6.0.1", - "responselike": "^2.0.0" - }, - "engines": { - "node": ">=8" - } - }, - "node_modules/cacheable-request/node_modules/get-stream": { - "version": "5.2.0", - "dev": true, - "license": "MIT", - "dependencies": { - "pump": "^3.0.0" - }, - "engines": { - "node": ">=8" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - }, - "node_modules/camelcase-css": { - "version": "2.0.1", - "dev": true, - "license": "MIT", - "engines": { - "node": ">= 6" - } - }, - "node_modules/camelize": { - "version": "1.0.1", - "license": "MIT", - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, - "node_modules/caniuse-lite": { - "version": "1.0.30001628", - "funding": [ - { - "type": "opencollective", - "url": "https://opencollective.com/browserslist" - }, - { - "type": "tidelift", - "url": "https://tidelift.com/funding/github/npm/caniuse-lite" - }, - { - "type": "github", - "url": "https://github.com/sponsors/ai" - } - ], - "license": "CC-BY-4.0" - }, - "node_modules/ccount": { - "version": "2.0.1", - "license": "MIT", - "funding": { - "type": "github", - "url": "https://github.com/sponsors/wooorm" - } - }, - "node_modules/chalk": { - "version": "2.4.2", - "license": "MIT", - "dependencies": { - "ansi-styles": "^3.2.1", - "escape-string-regexp": "^1.0.5", - "supports-color": "^5.3.0" - }, - "engines": { - "node": ">=4" - } - }, - "node_modules/chalk/node_modules/escape-string-regexp": { - "version": "1.0.5", - "license": "MIT", - "engines": { - "node": ">=0.8.0" - } - }, - "node_modules/character-entities": { - "version": "2.0.2", - "license": "MIT", - "funding": { - "type": "github", - "url": "https://github.com/sponsors/wooorm" - } - }, - "node_modules/character-entities-html4": { - "version": "2.1.0", - "license": "MIT", - "funding": { - "type": "github", - "url": "https://github.com/sponsors/wooorm" - } - }, - "node_modules/character-entities-legacy": { - "version": "3.0.0", - "license": "MIT", - "funding": { - "type": "github", - "url": "https://github.com/sponsors/wooorm" - } - }, - "node_modules/character-reference-invalid": { - "version": "2.0.1", - "license": "MIT", - "funding": { - "type": "github", - "url": "https://github.com/sponsors/wooorm" - } - }, - "node_modules/chokidar": { - "version": "3.6.0", - "dev": true, - "license": "MIT", - "dependencies": { - "anymatch": "~3.1.2", - "braces": "~3.0.2", - "glob-parent": "~5.1.2", - "is-binary-path": "~2.1.0", - "is-glob": "~4.0.1", - "normalize-path": "~3.0.0", - "readdirp": "~3.6.0" - }, - "engines": { - "node": ">= 8.10.0" - }, - "funding": { - "url": "https://paulmillr.com/funding/" - }, - "optionalDependencies": { - "fsevents": "~2.3.2" - } - }, - "node_modules/chokidar/node_modules/glob-parent": { - "version": "5.1.2", - "dev": true, - "license": "ISC", - "dependencies": { - "is-glob": "^4.0.1" - }, - "engines": { - "node": ">= 6" - } - }, - "node_modules/classnames": { - "version": "2.5.1", - "license": "MIT" - }, - "node_modules/client-only": { - "version": "0.0.1", - "license": "MIT" - }, - "node_modules/clone-response": { - "version": "1.0.3", - "dev": true, - "license": "MIT", - "dependencies": { - "mimic-response": "^1.0.0" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - }, - "node_modules/color-convert": { - "version": "1.9.3", - "license": "MIT", - "dependencies": { - "color-name": "1.1.3" - } - }, - "node_modules/color-name": { - "version": "1.1.3", - "license": "MIT" - }, - "node_modules/combined-stream": { - "version": "1.0.8", - "dev": true, - "license": "MIT", - "dependencies": { - "delayed-stream": "~1.0.0" - }, - "engines": { - "node": ">= 0.8" - } - }, - "node_modules/comma-separated-tokens": { - "version": "2.0.3", - "license": "MIT", - "funding": { - "type": "github", - "url": "https://github.com/sponsors/wooorm" - } - }, - "node_modules/commander": { - "version": "8.3.0", - "license": "MIT", - "engines": { - "node": ">= 12" - } - }, - "node_modules/compute-scroll-into-view": { - "version": "2.0.4", - "license": "MIT" - }, - "node_modules/content-disposition": { - "version": "0.5.4", - "dev": true, - "license": "MIT", - "dependencies": { - "safe-buffer": "5.2.1" - }, - "engines": { - "node": ">= 0.6" - } - }, - "node_modules/convert-source-map": { - "version": "2.0.0", - "license": "MIT", - "peer": true - }, - "node_modules/core": { - "resolved": "../core", - "link": true - }, - "node_modules/crelt": { - "version": "1.0.6", - "license": "MIT" - }, - "node_modules/cross-spawn": { - "version": "7.0.3", - "dev": true, - "license": "MIT", - "dependencies": { - "path-key": "^3.1.0", - "shebang-command": "^2.0.0", - "which": "^2.0.1" - }, - "engines": { - "node": ">= 8" - } - }, - "node_modules/css-color-keywords": { - "version": "1.0.0", - "license": "ISC", - "engines": { - "node": ">=4" - } - }, - "node_modules/css-selector-parser": { - "version": "1.4.1", - "license": "MIT" - }, - "node_modules/css-to-react-native": { - "version": "3.2.0", - "license": "MIT", - "dependencies": { - "camelize": "^1.0.0", - "css-color-keywords": "^1.0.0", - "postcss-value-parser": "^4.0.2" - } - }, - "node_modules/cssesc": { - "version": "3.0.0", - "dev": true, - "license": "MIT", - "bin": { - "cssesc": "bin/cssesc" - }, - "engines": { - "node": ">=4" - } - }, - "node_modules/csstype": { - "version": "3.1.3", - "license": "MIT" - }, - "node_modules/debug": { - "version": "4.3.5", - "license": "MIT", - "dependencies": { - "ms": "2.1.2" - }, - "engines": { - "node": ">=6.0" - }, - "peerDependenciesMeta": { - "supports-color": { - "optional": true - } - } - }, - "node_modules/decode-named-character-reference": { - "version": "1.0.2", - "license": "MIT", - "dependencies": { - "character-entities": "^2.0.0" - }, - "funding": { - "type": "github", - "url": "https://github.com/sponsors/wooorm" - } - }, - "node_modules/decompress-response": { - "version": "6.0.0", - "dev": true, - "license": "MIT", - "dependencies": { - "mimic-response": "^3.1.0" - }, - "engines": { - "node": ">=10" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - }, - "node_modules/decompress-response/node_modules/mimic-response": { - "version": "3.1.0", - "dev": true, - "license": "MIT", - "engines": { - "node": ">=10" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - }, - "node_modules/defer-to-connect": { - "version": "2.0.1", - "dev": true, - "license": "MIT", - "engines": { - "node": ">=10" - } - }, - "node_modules/delayed-stream": { - "version": "1.0.0", - "dev": true, - "license": "MIT", - "engines": { - "node": ">=0.4.0" - } - }, - "node_modules/dequal": { - "version": "2.0.3", - "license": "MIT", - "engines": { - "node": ">=6" - } - }, - "node_modules/devlop": { - "version": "1.1.0", - "license": "MIT", - "dependencies": { - "dequal": "^2.0.0" - }, - "funding": { - "type": "github", - "url": "https://github.com/sponsors/wooorm" - } - }, - "node_modules/didyoumean": { - "version": "1.2.2", - "dev": true, - "license": "Apache-2.0" - }, - "node_modules/direction": { - "version": "1.0.4", - "license": "MIT", - "bin": { - "direction": "cli.js" - }, - "funding": { - "type": "github", - "url": "https://github.com/sponsors/wooorm" - } - }, - "node_modules/dlv": { - "version": "1.1.3", - "dev": true, - "license": "MIT" - }, - "node_modules/dompurify": { - "version": "3.1.5", - "license": "(MPL-2.0 OR Apache-2.0)" - }, - "node_modules/downshift": { - "version": "7.6.2", - "license": "MIT", - "dependencies": { - "@babel/runtime": "^7.14.8", - "compute-scroll-into-view": "^2.0.4", - "prop-types": "^15.7.2", - "react-is": "^17.0.2", - "tslib": "^2.3.0" - }, - "peerDependencies": { - "react": ">=16.12.0" - } - }, - "node_modules/downshift/node_modules/react-is": { - "version": "17.0.2", - "license": "MIT" - }, - "node_modules/eastasianwidth": { - "version": "0.2.0", - "dev": true, - "license": "MIT" - }, - "node_modules/electron-to-chromium": { - "version": "1.4.790", - "license": "ISC" - }, - "node_modules/emoji-regex": { - "version": "8.0.0", - "license": "MIT" - }, - "node_modules/end-of-stream": { - "version": "1.4.4", - "dev": true, - "license": "MIT", - "dependencies": { - "once": "^1.4.0" - } - }, - "node_modules/engine.io-client": { - "version": "6.5.3", - "license": "MIT", - "dependencies": { - "@socket.io/component-emitter": "~3.1.0", - "debug": "~4.3.1", - "engine.io-parser": "~5.2.1", - "ws": "~8.11.0", - "xmlhttprequest-ssl": "~2.0.0" - } - }, - "node_modules/engine.io-parser": { - "version": "5.2.2", - "license": "MIT", - "engines": { - "node": ">=10.0.0" - } - }, - "node_modules/entities": { - "version": "4.5.0", - "license": "BSD-2-Clause", - "engines": { - "node": ">=0.12" - }, - "funding": { - "url": "https://github.com/fb55/entities?sponsor=1" - } - }, - "node_modules/esbuild": { - "version": "0.18.20", - "dev": true, - "hasInstallScript": true, - "license": "MIT", - "bin": { - "esbuild": "bin/esbuild" - }, - "engines": { - "node": ">=12" - }, - "optionalDependencies": { - "@esbuild/android-arm": "0.18.20", - "@esbuild/android-arm64": "0.18.20", - "@esbuild/android-x64": "0.18.20", - "@esbuild/darwin-arm64": "0.18.20", - "@esbuild/darwin-x64": "0.18.20", - "@esbuild/freebsd-arm64": "0.18.20", - "@esbuild/freebsd-x64": "0.18.20", - "@esbuild/linux-arm": "0.18.20", - "@esbuild/linux-arm64": "0.18.20", - "@esbuild/linux-ia32": "0.18.20", - "@esbuild/linux-loong64": "0.18.20", - "@esbuild/linux-mips64el": "0.18.20", - "@esbuild/linux-ppc64": "0.18.20", - "@esbuild/linux-riscv64": "0.18.20", - "@esbuild/linux-s390x": "0.18.20", - "@esbuild/linux-x64": "0.18.20", - "@esbuild/netbsd-x64": "0.18.20", - "@esbuild/openbsd-x64": "0.18.20", - "@esbuild/sunos-x64": "0.18.20", - "@esbuild/win32-arm64": "0.18.20", - "@esbuild/win32-ia32": "0.18.20", - "@esbuild/win32-x64": "0.18.20" - } - }, - "node_modules/escalade": { - "version": "3.1.2", - "license": "MIT", - "engines": { - "node": ">=6" - } - }, - "node_modules/escape-string-regexp": { - "version": "4.0.0", - "license": "MIT", - "engines": { - "node": ">=10" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - }, - "node_modules/estree-util-is-identifier-name": { - "version": "3.0.0", - "license": "MIT", - "funding": { - "type": "opencollective", - "url": "https://opencollective.com/unified" - } - }, - "node_modules/execa": { - "version": "0.7.0", - "dev": true, - "license": "MIT", - "dependencies": { - "cross-spawn": "^5.0.1", - "get-stream": "^3.0.0", - "is-stream": "^1.1.0", - "npm-run-path": "^2.0.0", - "p-finally": "^1.0.0", - "signal-exit": "^3.0.0", - "strip-eof": "^1.0.0" - }, - "engines": { - "node": ">=4" - } - }, - "node_modules/execa/node_modules/cross-spawn": { - "version": "5.1.0", - "dev": true, - "license": "MIT", - "dependencies": { - "lru-cache": "^4.0.1", - "shebang-command": "^1.2.0", - "which": "^1.2.9" - } - }, - "node_modules/execa/node_modules/lru-cache": { - "version": "4.1.5", - "dev": true, - "license": "ISC", - "dependencies": { - "pseudomap": "^1.0.2", - "yallist": "^2.1.2" - } - }, - "node_modules/execa/node_modules/shebang-command": { - "version": "1.2.0", - "dev": true, - "license": "MIT", - "dependencies": { - "shebang-regex": "^1.0.0" - }, - "engines": { - "node": ">=0.10.0" - } - }, - "node_modules/execa/node_modules/shebang-regex": { - "version": "1.0.0", - "dev": true, - "license": "MIT", - "engines": { - "node": ">=0.10.0" - } - }, - "node_modules/execa/node_modules/signal-exit": { - "version": "3.0.7", - "dev": true, - "license": "ISC" - }, - "node_modules/execa/node_modules/which": { - "version": "1.3.1", - "dev": true, - "license": "ISC", - "dependencies": { - "isexe": "^2.0.0" - }, - "bin": { - "which": "bin/which" - } - }, - "node_modules/execa/node_modules/yallist": { - "version": "2.1.2", - "dev": true, - "license": "ISC" - }, - "node_modules/executable": { - "version": "4.1.1", - "dev": true, - "license": "MIT", - "dependencies": { - "pify": "^2.2.0" - }, - "engines": { - "node": ">=4" - } - }, - "node_modules/ext-list": { - "version": "2.2.2", - "dev": true, - "license": "MIT", - "dependencies": { - "mime-db": "^1.28.0" - }, - "engines": { - "node": ">=0.10.0" - } - }, - "node_modules/ext-name": { - "version": "5.0.0", - "dev": true, - "license": "MIT", - "dependencies": { - "ext-list": "^2.0.0", - "sort-keys-length": "^1.0.0" - }, - "engines": { - "node": ">=4" - } - }, - "node_modules/extend": { - "version": "3.0.2", - "license": "MIT" - }, - "node_modules/fast-deep-equal": { - "version": "3.1.3", - "license": "MIT" - }, - "node_modules/fast-glob": { - "version": "3.3.2", - "dev": true, - "license": "MIT", - "dependencies": { - "@nodelib/fs.stat": "^2.0.2", - "@nodelib/fs.walk": "^1.2.3", - "glob-parent": "^5.1.2", - "merge2": "^1.3.0", - "micromatch": "^4.0.4" - }, - "engines": { - "node": ">=8.6.0" - } - }, - "node_modules/fast-glob/node_modules/glob-parent": { - "version": "5.1.2", - "dev": true, - "license": "ISC", - "dependencies": { - "is-glob": "^4.0.1" - }, - "engines": { - "node": ">= 6" - } - }, - "node_modules/fastq": { - "version": "1.17.1", - "dev": true, - "license": "ISC", - "dependencies": { - "reusify": "^1.0.4" - } - }, - "node_modules/fault": { - "version": "1.0.4", - "license": "MIT", - "dependencies": { - "format": "^0.2.0" - }, - "funding": { - "type": "github", - "url": "https://github.com/sponsors/wooorm" - } - }, - "node_modules/fflate": { - "version": "0.4.8", - "license": "MIT" - }, - "node_modules/file-type": { - "version": "17.1.6", - "dev": true, - "license": "MIT", - "dependencies": { - "readable-web-to-node-stream": "^3.0.2", - "strtok3": "^7.0.0-alpha.9", - "token-types": "^5.0.0-alpha.2" - }, - "engines": { - "node": "^12.20.0 || ^14.13.1 || >=16.0.0" - }, - "funding": { - "url": "https://github.com/sindresorhus/file-type?sponsor=1" - } - }, - "node_modules/filename-reserved-regex": { - "version": "3.0.0", - "dev": true, - "license": "MIT", - "engines": { - "node": "^12.20.0 || ^14.13.1 || >=16.0.0" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - }, - "node_modules/filenamify": { - "version": "5.1.1", - "dev": true, - "license": "MIT", - "dependencies": { - "filename-reserved-regex": "^3.0.0", - "strip-outer": "^2.0.0", - "trim-repeated": "^2.0.0" - }, - "engines": { - "node": ">=12.20" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - }, - "node_modules/fill-range": { - "version": "7.1.1", - "dev": true, - "license": "MIT", - "dependencies": { - "to-regex-range": "^5.0.1" - }, - "engines": { - "node": ">=8" - } - }, - "node_modules/find-versions": { - "version": "5.1.0", - "dev": true, - "license": "MIT", - "dependencies": { - "semver-regex": "^4.0.5" - }, - "engines": { - "node": ">=12" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - }, - "node_modules/foreground-child": { - "version": "3.1.1", - "dev": true, - "license": "ISC", - "dependencies": { - "cross-spawn": "^7.0.0", - "signal-exit": "^4.0.1" - }, - "engines": { - "node": ">=14" - }, - "funding": { - "url": "https://github.com/sponsors/isaacs" - } - }, - "node_modules/form-data": { - "version": "4.0.0", - "dev": true, - "license": "MIT", - "dependencies": { - "asynckit": "^0.4.0", - "combined-stream": "^1.0.8", - "mime-types": "^2.1.12" - }, - "engines": { - "node": ">= 6" - } - }, - "node_modules/format": { - "version": "0.2.2", - "engines": { - "node": ">=0.4.x" - } - }, - "node_modules/fraction.js": { - "version": "4.3.7", - "dev": true, - "license": "MIT", - "engines": { - "node": "*" - }, - "funding": { - "type": "patreon", - "url": "https://github.com/sponsors/rawify" - } - }, - "node_modules/fs-extra": { - "version": "10.1.0", - "license": "MIT", - "dependencies": { - "graceful-fs": "^4.2.0", - "jsonfile": "^6.0.1", - "universalify": "^2.0.0" - }, - "engines": { - "node": ">=12" - } - }, - "node_modules/fsevents": { - "version": "2.3.3", - "dev": true, - "license": "MIT", - "optional": true, - "os": [ - "darwin" - ], - "engines": { - "node": "^8.16.0 || ^10.6.0 || >=11.0.0" - } - }, - "node_modules/function-bind": { - "version": "1.1.2", - "dev": true, - "license": "MIT", - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, - "node_modules/gensync": { - "version": "1.0.0-beta.2", - "license": "MIT", - "peer": true, - "engines": { - "node": ">=6.9.0" - } - }, - "node_modules/get-stream": { - "version": "3.0.0", - "dev": true, - "license": "MIT", - "engines": { - "node": ">=4" - } - }, - "node_modules/glob": { - "version": "10.4.1", - "dev": true, - "license": "ISC", - "dependencies": { - "foreground-child": "^3.1.0", - "jackspeak": "^3.1.2", - "minimatch": "^9.0.4", - "minipass": "^7.1.2", - "path-scurry": "^1.11.1" - }, - "bin": { - "glob": "dist/esm/bin.mjs" - }, - "engines": { - "node": ">=16 || 14 >=14.18" - }, - "funding": { - "url": "https://github.com/sponsors/isaacs" - } - }, - "node_modules/glob-parent": { - "version": "6.0.2", - "dev": true, - "license": "ISC", - "dependencies": { - "is-glob": "^4.0.3" - }, - "engines": { - "node": ">=10.13.0" - } - }, - "node_modules/globals": { - "version": "11.12.0", - "license": "MIT", - "engines": { - "node": ">=4" - } - }, - "node_modules/got": { - "version": "11.8.6", - "dev": true, - "license": "MIT", - "dependencies": { - "@sindresorhus/is": "^4.0.0", - "@szmarczak/http-timer": "^4.0.5", - "@types/cacheable-request": "^6.0.1", - "@types/responselike": "^1.0.0", - "cacheable-lookup": "^5.0.3", - "cacheable-request": "^7.0.2", - "decompress-response": "^6.0.0", - "http2-wrapper": "^1.0.0-beta.5.2", - "lowercase-keys": "^2.0.0", - "p-cancelable": "^2.0.0", - "responselike": "^2.0.0" - }, - "engines": { - "node": ">=10.19.0" - }, - "funding": { - "url": "https://github.com/sindresorhus/got?sponsor=1" - } - }, - "node_modules/graceful-fs": { - "version": "4.2.11", - "license": "ISC" - }, - "node_modules/has-flag": { - "version": "3.0.0", - "license": "MIT", - "engines": { - "node": ">=4" - } - }, - "node_modules/hasown": { - "version": "2.0.2", - "dev": true, - "license": "MIT", - "dependencies": { - "function-bind": "^1.1.2" - }, - "engines": { - "node": ">= 0.4" - } - }, - "node_modules/hast-to-hyperscript": { - "version": "9.0.1", - "license": "MIT", - "dependencies": { - "@types/unist": "^2.0.3", - "comma-separated-tokens": "^1.0.0", - "property-information": "^5.3.0", - "space-separated-tokens": "^1.0.0", - "style-to-object": "^0.3.0", - "unist-util-is": "^4.0.0", - "web-namespaces": "^1.0.0" - }, - "funding": { - "type": "opencollective", - "url": "https://opencollective.com/unified" - } - }, - "node_modules/hast-to-hyperscript/node_modules/@types/unist": { - "version": "2.0.10", - "license": "MIT" - }, - "node_modules/hast-to-hyperscript/node_modules/comma-separated-tokens": { - "version": "1.0.8", - "license": "MIT", - "funding": { - "type": "github", - "url": "https://github.com/sponsors/wooorm" - } - }, - "node_modules/hast-to-hyperscript/node_modules/inline-style-parser": { - "version": "0.1.1", - "license": "MIT" - }, - "node_modules/hast-to-hyperscript/node_modules/property-information": { - "version": "5.6.0", - "license": "MIT", - "dependencies": { - "xtend": "^4.0.0" - }, - "funding": { - "type": "github", - "url": "https://github.com/sponsors/wooorm" - } - }, - "node_modules/hast-to-hyperscript/node_modules/space-separated-tokens": { - "version": "1.1.5", - "license": "MIT", - "funding": { - "type": "github", - "url": "https://github.com/sponsors/wooorm" - } - }, - "node_modules/hast-to-hyperscript/node_modules/style-to-object": { - "version": "0.3.0", - "license": "MIT", - "dependencies": { - "inline-style-parser": "0.1.1" - } - }, - "node_modules/hast-to-hyperscript/node_modules/unist-util-is": { - "version": "4.1.0", - "license": "MIT", - "funding": { - "type": "opencollective", - "url": "https://opencollective.com/unified" - } - }, - "node_modules/hast-to-hyperscript/node_modules/web-namespaces": { - "version": "1.1.4", - "license": "MIT", - "funding": { - "type": "github", - "url": "https://github.com/sponsors/wooorm" - } - }, - "node_modules/hast-util-from-dom": { - "version": "5.0.0", - "license": "ISC", - "dependencies": { - "@types/hast": "^3.0.0", - "hastscript": "^8.0.0", - "web-namespaces": "^2.0.0" - }, - "funding": { - "type": "opencollective", - "url": "https://opencollective.com/unified" - } - }, - "node_modules/hast-util-from-dom/node_modules/hast-util-parse-selector": { - "version": "4.0.0", - "license": "MIT", - "dependencies": { - "@types/hast": "^3.0.0" - }, - "funding": { - "type": "opencollective", - "url": "https://opencollective.com/unified" - } - }, - "node_modules/hast-util-from-dom/node_modules/hastscript": { - "version": "8.0.0", - "license": "MIT", - "dependencies": { - "@types/hast": "^3.0.0", - "comma-separated-tokens": "^2.0.0", - "hast-util-parse-selector": "^4.0.0", - "property-information": "^6.0.0", - "space-separated-tokens": "^2.0.0" - }, - "funding": { - "type": "opencollective", - "url": "https://opencollective.com/unified" - } - }, - "node_modules/hast-util-from-html": { - "version": "2.0.1", - "license": "MIT", - "dependencies": { - "@types/hast": "^3.0.0", - "devlop": "^1.1.0", - "hast-util-from-parse5": "^8.0.0", - "parse5": "^7.0.0", - "vfile": "^6.0.0", - "vfile-message": "^4.0.0" - }, - "funding": { - "type": "opencollective", - "url": "https://opencollective.com/unified" - } - }, - "node_modules/hast-util-from-html-isomorphic": { - "version": "2.0.0", - "license": "MIT", - "dependencies": { - "@types/hast": "^3.0.0", - "hast-util-from-dom": "^5.0.0", - "hast-util-from-html": "^2.0.0", - "unist-util-remove-position": "^5.0.0" - }, - "funding": { - "type": "opencollective", - "url": "https://opencollective.com/unified" - } - }, - "node_modules/hast-util-from-parse5": { - "version": "8.0.1", - "license": "MIT", - "dependencies": { - "@types/hast": "^3.0.0", - "@types/unist": "^3.0.0", - "devlop": "^1.0.0", - "hastscript": "^8.0.0", - "property-information": "^6.0.0", - "vfile": "^6.0.0", - "vfile-location": "^5.0.0", - "web-namespaces": "^2.0.0" - }, - "funding": { - "type": "opencollective", - "url": "https://opencollective.com/unified" - } - }, - "node_modules/hast-util-from-parse5/node_modules/hast-util-parse-selector": { - "version": "4.0.0", - "license": "MIT", - "dependencies": { - "@types/hast": "^3.0.0" - }, - "funding": { - "type": "opencollective", - "url": "https://opencollective.com/unified" - } - }, - "node_modules/hast-util-from-parse5/node_modules/hastscript": { - "version": "8.0.0", - "license": "MIT", - "dependencies": { - "@types/hast": "^3.0.0", - "comma-separated-tokens": "^2.0.0", - "hast-util-parse-selector": "^4.0.0", - "property-information": "^6.0.0", - "space-separated-tokens": "^2.0.0" - }, - "funding": { - "type": "opencollective", - "url": "https://opencollective.com/unified" - } - }, - "node_modules/hast-util-has-property": { - "version": "1.0.4", - "license": "MIT", - "funding": { - "type": "opencollective", - "url": "https://opencollective.com/unified" - } - }, - "node_modules/hast-util-is-element": { - "version": "3.0.0", - "license": "MIT", - "dependencies": { - "@types/hast": "^3.0.0" - }, - "funding": { - "type": "opencollective", - "url": "https://opencollective.com/unified" - } - }, - "node_modules/hast-util-parse-selector": { - "version": "2.2.5", - "license": "MIT", - "funding": { - "type": "opencollective", - "url": "https://opencollective.com/unified" - } - }, - "node_modules/hast-util-select": { - "version": "4.0.2", - "license": "MIT", - "dependencies": { - "bcp-47-match": "^1.0.0", - "comma-separated-tokens": "^1.0.0", - "css-selector-parser": "^1.0.0", - "direction": "^1.0.0", - "hast-util-has-property": "^1.0.0", - "hast-util-is-element": "^1.0.0", - "hast-util-to-string": "^1.0.0", - "hast-util-whitespace": "^1.0.0", - "not": "^0.1.0", - "nth-check": "^2.0.0", - "property-information": "^5.0.0", - "space-separated-tokens": "^1.0.0", - "unist-util-visit": "^2.0.0", - "zwitch": "^1.0.0" - }, - "funding": { - "type": "opencollective", - "url": "https://opencollective.com/unified" - } - }, - "node_modules/hast-util-select/node_modules/@types/unist": { - "version": "2.0.10", - "license": "MIT" - }, - "node_modules/hast-util-select/node_modules/comma-separated-tokens": { - "version": "1.0.8", - "license": "MIT", - "funding": { - "type": "github", - "url": "https://github.com/sponsors/wooorm" - } - }, - "node_modules/hast-util-select/node_modules/hast-util-is-element": { - "version": "1.1.0", - "license": "MIT", - "funding": { - "type": "opencollective", - "url": "https://opencollective.com/unified" - } - }, - "node_modules/hast-util-select/node_modules/hast-util-whitespace": { - "version": "1.0.4", - "license": "MIT", - "funding": { - "type": "opencollective", - "url": "https://opencollective.com/unified" - } - }, - "node_modules/hast-util-select/node_modules/property-information": { - "version": "5.6.0", - "license": "MIT", - "dependencies": { - "xtend": "^4.0.0" - }, - "funding": { - "type": "github", - "url": "https://github.com/sponsors/wooorm" - } - }, - "node_modules/hast-util-select/node_modules/space-separated-tokens": { - "version": "1.1.5", - "license": "MIT", - "funding": { - "type": "github", - "url": "https://github.com/sponsors/wooorm" - } - }, - "node_modules/hast-util-select/node_modules/unist-util-is": { - "version": "4.1.0", - "license": "MIT", - "funding": { - "type": "opencollective", - "url": "https://opencollective.com/unified" - } - }, - "node_modules/hast-util-select/node_modules/unist-util-visit": { - "version": "2.0.3", - "license": "MIT", - "dependencies": { - "@types/unist": "^2.0.0", - "unist-util-is": "^4.0.0", - "unist-util-visit-parents": "^3.0.0" - }, - "funding": { - "type": "opencollective", - "url": "https://opencollective.com/unified" - } - }, - "node_modules/hast-util-select/node_modules/unist-util-visit-parents": { - "version": "3.1.1", - "license": "MIT", - "dependencies": { - "@types/unist": "^2.0.0", - "unist-util-is": "^4.0.0" - }, - "funding": { - "type": "opencollective", - "url": "https://opencollective.com/unified" - } - }, - "node_modules/hast-util-select/node_modules/zwitch": { - "version": "1.0.5", - "license": "MIT", - "funding": { - "type": "github", - "url": "https://github.com/sponsors/wooorm" - } - }, - "node_modules/hast-util-to-jsx-runtime": { - "version": "2.3.0", - "license": "MIT", - "dependencies": { - "@types/estree": "^1.0.0", - "@types/hast": "^3.0.0", - "@types/unist": "^3.0.0", - "comma-separated-tokens": "^2.0.0", - "devlop": "^1.0.0", - "estree-util-is-identifier-name": "^3.0.0", - "hast-util-whitespace": "^3.0.0", - "mdast-util-mdx-expression": "^2.0.0", - "mdast-util-mdx-jsx": "^3.0.0", - "mdast-util-mdxjs-esm": "^2.0.0", - "property-information": "^6.0.0", - "space-separated-tokens": "^2.0.0", - "style-to-object": "^1.0.0", - "unist-util-position": "^5.0.0", - "vfile-message": "^4.0.0" - }, - "funding": { - "type": "opencollective", - "url": "https://opencollective.com/unified" - } - }, - "node_modules/hast-util-to-string": { - "version": "1.0.4", - "license": "MIT", - "funding": { - "type": "opencollective", - "url": "https://opencollective.com/unified" - } - }, - "node_modules/hast-util-to-text": { - "version": "4.0.2", - "license": "MIT", - "dependencies": { - "@types/hast": "^3.0.0", - "@types/unist": "^3.0.0", - "hast-util-is-element": "^3.0.0", - "unist-util-find-after": "^5.0.0" - }, - "funding": { - "type": "opencollective", - "url": "https://opencollective.com/unified" - } - }, - "node_modules/hast-util-whitespace": { - "version": "3.0.0", - "license": "MIT", - "dependencies": { - "@types/hast": "^3.0.0" - }, - "funding": { - "type": "opencollective", - "url": "https://opencollective.com/unified" - } - }, - "node_modules/hastscript": { - "version": "6.0.0", - "license": "MIT", - "dependencies": { - "@types/hast": "^2.0.0", - "comma-separated-tokens": "^1.0.0", - "hast-util-parse-selector": "^2.0.0", - "property-information": "^5.0.0", - "space-separated-tokens": "^1.0.0" - }, - "funding": { - "type": "opencollective", - "url": "https://opencollective.com/unified" - } - }, - "node_modules/hastscript/node_modules/@types/hast": { - "version": "2.3.10", - "license": "MIT", - "dependencies": { - "@types/unist": "^2" - } - }, - "node_modules/hastscript/node_modules/@types/unist": { - "version": "2.0.10", - "license": "MIT" - }, - "node_modules/hastscript/node_modules/comma-separated-tokens": { - "version": "1.0.8", - "license": "MIT", - "funding": { - "type": "github", - "url": "https://github.com/sponsors/wooorm" - } - }, - "node_modules/hastscript/node_modules/property-information": { - "version": "5.6.0", - "license": "MIT", - "dependencies": { - "xtend": "^4.0.0" - }, - "funding": { - "type": "github", - "url": "https://github.com/sponsors/wooorm" - } - }, - "node_modules/hastscript/node_modules/space-separated-tokens": { - "version": "1.1.5", - "license": "MIT", - "funding": { - "type": "github", - "url": "https://github.com/sponsors/wooorm" - } - }, - "node_modules/highlight.js": { - "version": "10.7.3", - "license": "BSD-3-Clause", - "engines": { - "node": "*" - } - }, - "node_modules/hoist-non-react-statics": { - "version": "3.3.2", - "license": "BSD-3-Clause", - "dependencies": { - "react-is": "^16.7.0" - } - }, - "node_modules/hoist-non-react-statics/node_modules/react-is": { - "version": "16.13.1", - "license": "MIT" - }, - "node_modules/html-url-attributes": { - "version": "3.0.0", - "license": "MIT", - "funding": { - "type": "opencollective", - "url": "https://opencollective.com/unified" - } - }, - "node_modules/http-cache-semantics": { - "version": "4.1.1", - "dev": true, - "license": "BSD-2-Clause" - }, - "node_modules/http2-wrapper": { - "version": "1.0.3", - "dev": true, - "license": "MIT", - "dependencies": { - "quick-lru": "^5.1.1", - "resolve-alpn": "^1.0.0" - }, - "engines": { - "node": ">=10.19.0" - } - }, - "node_modules/human-signals": { - "version": "2.1.0", - "dev": true, - "license": "Apache-2.0", - "engines": { - "node": ">=10.17.0" - } - }, - "node_modules/ieee754": { - "version": "1.2.1", - "dev": true, - "funding": [ - { - "type": "github", - "url": "https://github.com/sponsors/feross" - }, - { - "type": "patreon", - "url": "https://www.patreon.com/feross" - }, - { - "type": "consulting", - "url": "https://feross.org/support" - } - ], - "license": "BSD-3-Clause" - }, - "node_modules/immer": { - "version": "9.0.21", - "license": "MIT", - "funding": { - "type": "opencollective", - "url": "https://opencollective.com/immer" - } - }, - "node_modules/inherits": { - "version": "2.0.4", - "dev": true, - "license": "ISC" - }, - "node_modules/inline-style-parser": { - "version": "0.2.3", - "license": "MIT" - }, - "node_modules/is-alphabetical": { - "version": "2.0.1", - "license": "MIT", - "funding": { - "type": "github", - "url": "https://github.com/sponsors/wooorm" - } - }, - "node_modules/is-alphanumerical": { - "version": "2.0.1", - "license": "MIT", - "dependencies": { - "is-alphabetical": "^2.0.0", - "is-decimal": "^2.0.0" - }, - "funding": { - "type": "github", - "url": "https://github.com/sponsors/wooorm" - } - }, - "node_modules/is-binary-path": { - "version": "2.1.0", - "dev": true, - "license": "MIT", - "dependencies": { - "binary-extensions": "^2.0.0" - }, - "engines": { - "node": ">=8" - } - }, - "node_modules/is-buffer": { - "version": "2.0.5", - "funding": [ - { - "type": "github", - "url": "https://github.com/sponsors/feross" - }, - { - "type": "patreon", - "url": "https://www.patreon.com/feross" - }, - { - "type": "consulting", - "url": "https://feross.org/support" - } - ], - "license": "MIT", - "engines": { - "node": ">=4" - } - }, - "node_modules/is-core-module": { - "version": "2.13.1", - "dev": true, - "license": "MIT", - "dependencies": { - "hasown": "^2.0.0" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, - "node_modules/is-decimal": { - "version": "2.0.1", - "license": "MIT", - "funding": { - "type": "github", - "url": "https://github.com/sponsors/wooorm" - } - }, - "node_modules/is-extglob": { - "version": "2.1.1", - "dev": true, - "license": "MIT", - "engines": { - "node": ">=0.10.0" - } - }, - "node_modules/is-fullwidth-code-point": { - "version": "3.0.0", - "license": "MIT", - "engines": { - "node": ">=8" - } - }, - "node_modules/is-glob": { - "version": "4.0.3", - "dev": true, - "license": "MIT", - "dependencies": { - "is-extglob": "^2.1.1" - }, - "engines": { - "node": ">=0.10.0" - } - }, - "node_modules/is-hexadecimal": { - "version": "2.0.1", - "license": "MIT", - "funding": { - "type": "github", - "url": "https://github.com/sponsors/wooorm" - } - }, - "node_modules/is-number": { - "version": "7.0.0", - "dev": true, - "license": "MIT", - "engines": { - "node": ">=0.12.0" - } - }, - "node_modules/is-plain-obj": { - "version": "4.1.0", - "license": "MIT", - "engines": { - "node": ">=12" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - }, - "node_modules/is-stream": { - "version": "1.1.0", - "dev": true, - "license": "MIT", - "engines": { - "node": ">=0.10.0" - } - }, - "node_modules/isexe": { - "version": "2.0.0", - "dev": true, - "license": "ISC" - }, - "node_modules/jackspeak": { - "version": "3.3.0", - "dev": true, - "license": "BlueOak-1.0.0", - "dependencies": { - "@isaacs/cliui": "^8.0.2" - }, - "engines": { - "node": ">=14" - }, - "funding": { - "url": "https://github.com/sponsors/isaacs" - }, - "optionalDependencies": { - "@pkgjs/parseargs": "^0.11.0" - } - }, - "node_modules/jiti": { - "version": "1.21.3", - "dev": true, - "license": "MIT", - "bin": { - "jiti": "bin/jiti.js" - } - }, - "node_modules/js-tokens": { - "version": "4.0.0", - "license": "MIT" - }, - "node_modules/jsesc": { - "version": "2.5.2", - "license": "MIT", - "bin": { - "jsesc": "bin/jsesc" - }, - "engines": { - "node": ">=4" - } - }, - "node_modules/json-buffer": { - "version": "3.0.1", - "dev": true, - "license": "MIT" - }, - "node_modules/json-schema-traverse": { - "version": "1.0.0", - "license": "MIT" - }, - "node_modules/json5": { - "version": "2.2.3", - "license": "MIT", - "peer": true, - "bin": { - "json5": "lib/cli.js" - }, - "engines": { - "node": ">=6" - } - }, - "node_modules/jsonfile": { - "version": "6.1.0", - "license": "MIT", - "dependencies": { - "universalify": "^2.0.0" - }, - "optionalDependencies": { - "graceful-fs": "^4.1.6" - } - }, - "node_modules/katex": { - "version": "0.16.10", - "funding": [ - "https://opencollective.com/katex", - "https://github.com/sponsors/katex" - ], - "license": "MIT", - "dependencies": { - "commander": "^8.3.0" - }, - "bin": { - "katex": "cli.js" - } - }, - "node_modules/keyv": { - "version": "4.5.4", - "dev": true, - "license": "MIT", - "dependencies": { - "json-buffer": "3.0.1" - } - }, - "node_modules/lilconfig": { - "version": "2.1.0", - "dev": true, - "license": "MIT", - "engines": { - "node": ">=10" - } - }, - "node_modules/lines-and-columns": { - "version": "1.2.4", - "dev": true, - "license": "MIT" - }, - "node_modules/linkify-it": { - "version": "5.0.0", - "license": "MIT", - "dependencies": { - "uc.micro": "^2.0.0" - } - }, - "node_modules/lodash": { - "version": "4.17.21", - "license": "MIT" - }, - "node_modules/lodash.truncate": { - "version": "4.4.2", - "license": "MIT" - }, - "node_modules/longest-streak": { - "version": "3.1.0", - "license": "MIT", - "funding": { - "type": "github", - "url": "https://github.com/sponsors/wooorm" - } - }, - "node_modules/loose-envify": { - "version": "1.4.0", - "license": "MIT", - "dependencies": { - "js-tokens": "^3.0.0 || ^4.0.0" - }, - "bin": { - "loose-envify": "cli.js" - } - }, - "node_modules/lowercase-keys": { - "version": "2.0.0", - "dev": true, - "license": "MIT", - "engines": { - "node": ">=8" - } - }, - "node_modules/lowlight": { - "version": "1.20.0", - "license": "MIT", - "dependencies": { - "fault": "^1.0.0", - "highlight.js": "~10.7.0" - }, - "funding": { - "type": "github", - "url": "https://github.com/sponsors/wooorm" - } - }, - "node_modules/lru-cache": { - "version": "5.1.1", - "license": "ISC", - "dependencies": { - "yallist": "^3.0.2" - } - }, - "node_modules/markdown-it": { - "version": "14.1.0", - "license": "MIT", - "dependencies": { - "argparse": "^2.0.1", - "entities": "^4.4.0", - "linkify-it": "^5.0.0", - "mdurl": "^2.0.0", - "punycode.js": "^2.3.1", - "uc.micro": "^2.1.0" - }, - "bin": { - "markdown-it": "bin/markdown-it.mjs" - } - }, - "node_modules/mdast-util-definitions": { - "version": "4.0.0", - "license": "MIT", - "dependencies": { - "unist-util-visit": "^2.0.0" - }, - "funding": { - "type": "opencollective", - "url": "https://opencollective.com/unified" - } - }, - "node_modules/mdast-util-definitions/node_modules/@types/unist": { - "version": "2.0.10", - "license": "MIT" - }, - "node_modules/mdast-util-definitions/node_modules/unist-util-is": { - "version": "4.1.0", - "license": "MIT", - "funding": { - "type": "opencollective", - "url": "https://opencollective.com/unified" - } - }, - "node_modules/mdast-util-definitions/node_modules/unist-util-visit": { - "version": "2.0.3", - "license": "MIT", - "dependencies": { - "@types/unist": "^2.0.0", - "unist-util-is": "^4.0.0", - "unist-util-visit-parents": "^3.0.0" - }, - "funding": { - "type": "opencollective", - "url": "https://opencollective.com/unified" - } - }, - "node_modules/mdast-util-definitions/node_modules/unist-util-visit-parents": { - "version": "3.1.1", - "license": "MIT", - "dependencies": { - "@types/unist": "^2.0.0", - "unist-util-is": "^4.0.0" - }, - "funding": { - "type": "opencollective", - "url": "https://opencollective.com/unified" - } - }, - "node_modules/mdast-util-from-markdown": { - "version": "2.0.1", - "license": "MIT", - "dependencies": { - "@types/mdast": "^4.0.0", - "@types/unist": "^3.0.0", - "decode-named-character-reference": "^1.0.0", - "devlop": "^1.0.0", - "mdast-util-to-string": "^4.0.0", - "micromark": "^4.0.0", - "micromark-util-decode-numeric-character-reference": "^2.0.0", - "micromark-util-decode-string": "^2.0.0", - "micromark-util-normalize-identifier": "^2.0.0", - "micromark-util-symbol": "^2.0.0", - "micromark-util-types": "^2.0.0", - "unist-util-stringify-position": "^4.0.0" - }, - "funding": { - "type": "opencollective", - "url": "https://opencollective.com/unified" - } - }, - "node_modules/mdast-util-math": { - "version": "3.0.0", - "license": "MIT", - "dependencies": { - "@types/hast": "^3.0.0", - "@types/mdast": "^4.0.0", - "devlop": "^1.0.0", - "longest-streak": "^3.0.0", - "mdast-util-from-markdown": "^2.0.0", - "mdast-util-to-markdown": "^2.1.0", - "unist-util-remove-position": "^5.0.0" - }, - "funding": { - "type": "opencollective", - "url": "https://opencollective.com/unified" - } - }, - "node_modules/mdast-util-mdx-expression": { - "version": "2.0.0", - "license": "MIT", - "dependencies": { - "@types/estree-jsx": "^1.0.0", - "@types/hast": "^3.0.0", - "@types/mdast": "^4.0.0", - "devlop": "^1.0.0", - "mdast-util-from-markdown": "^2.0.0", - "mdast-util-to-markdown": "^2.0.0" - }, - "funding": { - "type": "opencollective", - "url": "https://opencollective.com/unified" - } - }, - "node_modules/mdast-util-mdx-jsx": { - "version": "3.1.2", - "license": "MIT", - "dependencies": { - "@types/estree-jsx": "^1.0.0", - "@types/hast": "^3.0.0", - "@types/mdast": "^4.0.0", - "@types/unist": "^3.0.0", - "ccount": "^2.0.0", - "devlop": "^1.1.0", - "mdast-util-from-markdown": "^2.0.0", - "mdast-util-to-markdown": "^2.0.0", - "parse-entities": "^4.0.0", - "stringify-entities": "^4.0.0", - "unist-util-remove-position": "^5.0.0", - "unist-util-stringify-position": "^4.0.0", - "vfile-message": "^4.0.0" - }, - "funding": { - "type": "opencollective", - "url": "https://opencollective.com/unified" - } - }, - "node_modules/mdast-util-mdxjs-esm": { - "version": "2.0.1", - "license": "MIT", - "dependencies": { - "@types/estree-jsx": "^1.0.0", - "@types/hast": "^3.0.0", - "@types/mdast": "^4.0.0", - "devlop": "^1.0.0", - "mdast-util-from-markdown": "^2.0.0", - "mdast-util-to-markdown": "^2.0.0" - }, - "funding": { - "type": "opencollective", - "url": "https://opencollective.com/unified" - } - }, - "node_modules/mdast-util-phrasing": { - "version": "4.1.0", - "license": "MIT", - "dependencies": { - "@types/mdast": "^4.0.0", - "unist-util-is": "^6.0.0" - }, - "funding": { - "type": "opencollective", - "url": "https://opencollective.com/unified" - } - }, - "node_modules/mdast-util-to-hast": { - "version": "13.1.0", - "license": "MIT", - "dependencies": { - "@types/hast": "^3.0.0", - "@types/mdast": "^4.0.0", - "@ungap/structured-clone": "^1.0.0", - "devlop": "^1.0.0", - "micromark-util-sanitize-uri": "^2.0.0", - "trim-lines": "^3.0.0", - "unist-util-position": "^5.0.0", - "unist-util-visit": "^5.0.0", - "vfile": "^6.0.0" - }, - "funding": { - "type": "opencollective", - "url": "https://opencollective.com/unified" - } - }, - "node_modules/mdast-util-to-markdown": { - "version": "2.1.0", - "license": "MIT", - "dependencies": { - "@types/mdast": "^4.0.0", - "@types/unist": "^3.0.0", - "longest-streak": "^3.0.0", - "mdast-util-phrasing": "^4.0.0", - "mdast-util-to-string": "^4.0.0", - "micromark-util-decode-string": "^2.0.0", - "unist-util-visit": "^5.0.0", - "zwitch": "^2.0.0" - }, - "funding": { - "type": "opencollective", - "url": "https://opencollective.com/unified" - } - }, - "node_modules/mdast-util-to-string": { - "version": "4.0.0", - "license": "MIT", - "dependencies": { - "@types/mdast": "^4.0.0" - }, - "funding": { - "type": "opencollective", - "url": "https://opencollective.com/unified" - } - }, - "node_modules/mdurl": { - "version": "2.0.0", - "license": "MIT" - }, - "node_modules/merge-stream": { - "version": "2.0.0", - "dev": true, - "license": "MIT" - }, - "node_modules/merge2": { - "version": "1.4.1", - "dev": true, - "license": "MIT", - "engines": { - "node": ">= 8" - } - }, - "node_modules/micromark": { - "version": "4.0.0", - "funding": [ - { - "type": "GitHub Sponsors", - "url": "https://github.com/sponsors/unifiedjs" - }, - { - "type": "OpenCollective", - "url": "https://opencollective.com/unified" - } - ], - "license": "MIT", - "dependencies": { - "@types/debug": "^4.0.0", - "debug": "^4.0.0", - "decode-named-character-reference": "^1.0.0", - "devlop": "^1.0.0", - "micromark-core-commonmark": "^2.0.0", - "micromark-factory-space": "^2.0.0", - "micromark-util-character": "^2.0.0", - "micromark-util-chunked": "^2.0.0", - "micromark-util-combine-extensions": "^2.0.0", - "micromark-util-decode-numeric-character-reference": "^2.0.0", - "micromark-util-encode": "^2.0.0", - "micromark-util-normalize-identifier": "^2.0.0", - "micromark-util-resolve-all": "^2.0.0", - "micromark-util-sanitize-uri": "^2.0.0", - "micromark-util-subtokenize": "^2.0.0", - "micromark-util-symbol": "^2.0.0", - "micromark-util-types": "^2.0.0" - } - }, - "node_modules/micromark-core-commonmark": { - "version": "2.0.1", - "funding": [ - { - "type": "GitHub Sponsors", - "url": "https://github.com/sponsors/unifiedjs" - }, - { - "type": "OpenCollective", - "url": "https://opencollective.com/unified" - } - ], - "license": "MIT", - "dependencies": { - "decode-named-character-reference": "^1.0.0", - "devlop": "^1.0.0", - "micromark-factory-destination": "^2.0.0", - "micromark-factory-label": "^2.0.0", - "micromark-factory-space": "^2.0.0", - "micromark-factory-title": "^2.0.0", - "micromark-factory-whitespace": "^2.0.0", - "micromark-util-character": "^2.0.0", - "micromark-util-chunked": "^2.0.0", - "micromark-util-classify-character": "^2.0.0", - "micromark-util-html-tag-name": "^2.0.0", - "micromark-util-normalize-identifier": "^2.0.0", - "micromark-util-resolve-all": "^2.0.0", - "micromark-util-subtokenize": "^2.0.0", - "micromark-util-symbol": "^2.0.0", - "micromark-util-types": "^2.0.0" - } - }, - "node_modules/micromark-extension-math": { - "version": "3.0.0", - "license": "MIT", - "dependencies": { - "@types/katex": "^0.16.0", - "devlop": "^1.0.0", - "katex": "^0.16.0", - "micromark-factory-space": "^2.0.0", - "micromark-util-character": "^2.0.0", - "micromark-util-symbol": "^2.0.0", - "micromark-util-types": "^2.0.0" - }, - "funding": { - "type": "opencollective", - "url": "https://opencollective.com/unified" - } - }, - "node_modules/micromark-factory-destination": { - "version": "2.0.0", - "funding": [ - { - "type": "GitHub Sponsors", - "url": "https://github.com/sponsors/unifiedjs" - }, - { - "type": "OpenCollective", - "url": "https://opencollective.com/unified" - } - ], - "license": "MIT", - "dependencies": { - "micromark-util-character": "^2.0.0", - "micromark-util-symbol": "^2.0.0", - "micromark-util-types": "^2.0.0" - } - }, - "node_modules/micromark-factory-label": { - "version": "2.0.0", - "funding": [ - { - "type": "GitHub Sponsors", - "url": "https://github.com/sponsors/unifiedjs" - }, - { - "type": "OpenCollective", - "url": "https://opencollective.com/unified" - } - ], - "license": "MIT", - "dependencies": { - "devlop": "^1.0.0", - "micromark-util-character": "^2.0.0", - "micromark-util-symbol": "^2.0.0", - "micromark-util-types": "^2.0.0" - } - }, - "node_modules/micromark-factory-space": { - "version": "2.0.0", - "funding": [ - { - "type": "GitHub Sponsors", - "url": "https://github.com/sponsors/unifiedjs" - }, - { - "type": "OpenCollective", - "url": "https://opencollective.com/unified" - } - ], - "license": "MIT", - "dependencies": { - "micromark-util-character": "^2.0.0", - "micromark-util-types": "^2.0.0" - } - }, - "node_modules/micromark-factory-title": { - "version": "2.0.0", - "funding": [ - { - "type": "GitHub Sponsors", - "url": "https://github.com/sponsors/unifiedjs" - }, - { - "type": "OpenCollective", - "url": "https://opencollective.com/unified" - } - ], - "license": "MIT", - "dependencies": { - "micromark-factory-space": "^2.0.0", - "micromark-util-character": "^2.0.0", - "micromark-util-symbol": "^2.0.0", - "micromark-util-types": "^2.0.0" - } - }, - "node_modules/micromark-factory-whitespace": { - "version": "2.0.0", - "funding": [ - { - "type": "GitHub Sponsors", - "url": "https://github.com/sponsors/unifiedjs" - }, - { - "type": "OpenCollective", - "url": "https://opencollective.com/unified" - } - ], - "license": "MIT", - "dependencies": { - "micromark-factory-space": "^2.0.0", - "micromark-util-character": "^2.0.0", - "micromark-util-symbol": "^2.0.0", - "micromark-util-types": "^2.0.0" - } - }, - "node_modules/micromark-util-character": { - "version": "2.1.0", - "funding": [ - { - "type": "GitHub Sponsors", - "url": "https://github.com/sponsors/unifiedjs" - }, - { - "type": "OpenCollective", - "url": "https://opencollective.com/unified" - } - ], - "license": "MIT", - "dependencies": { - "micromark-util-symbol": "^2.0.0", - "micromark-util-types": "^2.0.0" - } - }, - "node_modules/micromark-util-chunked": { - "version": "2.0.0", - "funding": [ - { - "type": "GitHub Sponsors", - "url": "https://github.com/sponsors/unifiedjs" - }, - { - "type": "OpenCollective", - "url": "https://opencollective.com/unified" - } - ], - "license": "MIT", - "dependencies": { - "micromark-util-symbol": "^2.0.0" - } - }, - "node_modules/micromark-util-classify-character": { - "version": "2.0.0", - "funding": [ - { - "type": "GitHub Sponsors", - "url": "https://github.com/sponsors/unifiedjs" - }, - { - "type": "OpenCollective", - "url": "https://opencollective.com/unified" - } - ], - "license": "MIT", - "dependencies": { - "micromark-util-character": "^2.0.0", - "micromark-util-symbol": "^2.0.0", - "micromark-util-types": "^2.0.0" - } - }, - "node_modules/micromark-util-combine-extensions": { - "version": "2.0.0", - "funding": [ - { - "type": "GitHub Sponsors", - "url": "https://github.com/sponsors/unifiedjs" - }, - { - "type": "OpenCollective", - "url": "https://opencollective.com/unified" - } - ], - "license": "MIT", - "dependencies": { - "micromark-util-chunked": "^2.0.0", - "micromark-util-types": "^2.0.0" - } - }, - "node_modules/micromark-util-decode-numeric-character-reference": { - "version": "2.0.1", - "funding": [ - { - "type": "GitHub Sponsors", - "url": "https://github.com/sponsors/unifiedjs" - }, - { - "type": "OpenCollective", - "url": "https://opencollective.com/unified" - } - ], - "license": "MIT", - "dependencies": { - "micromark-util-symbol": "^2.0.0" - } - }, - "node_modules/micromark-util-decode-string": { - "version": "2.0.0", - "funding": [ - { - "type": "GitHub Sponsors", - "url": "https://github.com/sponsors/unifiedjs" - }, - { - "type": "OpenCollective", - "url": "https://opencollective.com/unified" - } - ], - "license": "MIT", - "dependencies": { - "decode-named-character-reference": "^1.0.0", - "micromark-util-character": "^2.0.0", - "micromark-util-decode-numeric-character-reference": "^2.0.0", - "micromark-util-symbol": "^2.0.0" - } - }, - "node_modules/micromark-util-encode": { - "version": "2.0.0", - "funding": [ - { - "type": "GitHub Sponsors", - "url": "https://github.com/sponsors/unifiedjs" - }, - { - "type": "OpenCollective", - "url": "https://opencollective.com/unified" - } - ], - "license": "MIT" - }, - "node_modules/micromark-util-html-tag-name": { - "version": "2.0.0", - "funding": [ - { - "type": "GitHub Sponsors", - "url": "https://github.com/sponsors/unifiedjs" - }, - { - "type": "OpenCollective", - "url": "https://opencollective.com/unified" - } - ], - "license": "MIT" - }, - "node_modules/micromark-util-normalize-identifier": { - "version": "2.0.0", - "funding": [ - { - "type": "GitHub Sponsors", - "url": "https://github.com/sponsors/unifiedjs" - }, - { - "type": "OpenCollective", - "url": "https://opencollective.com/unified" - } - ], - "license": "MIT", - "dependencies": { - "micromark-util-symbol": "^2.0.0" - } - }, - "node_modules/micromark-util-resolve-all": { - "version": "2.0.0", - "funding": [ - { - "type": "GitHub Sponsors", - "url": "https://github.com/sponsors/unifiedjs" - }, - { - "type": "OpenCollective", - "url": "https://opencollective.com/unified" - } - ], - "license": "MIT", - "dependencies": { - "micromark-util-types": "^2.0.0" - } - }, - "node_modules/micromark-util-sanitize-uri": { - "version": "2.0.0", - "funding": [ - { - "type": "GitHub Sponsors", - "url": "https://github.com/sponsors/unifiedjs" - }, - { - "type": "OpenCollective", - "url": "https://opencollective.com/unified" - } - ], - "license": "MIT", - "dependencies": { - "micromark-util-character": "^2.0.0", - "micromark-util-encode": "^2.0.0", - "micromark-util-symbol": "^2.0.0" - } - }, - "node_modules/micromark-util-subtokenize": { - "version": "2.0.1", - "funding": [ - { - "type": "GitHub Sponsors", - "url": "https://github.com/sponsors/unifiedjs" - }, - { - "type": "OpenCollective", - "url": "https://opencollective.com/unified" - } - ], - "license": "MIT", - "dependencies": { - "devlop": "^1.0.0", - "micromark-util-chunked": "^2.0.0", - "micromark-util-symbol": "^2.0.0", - "micromark-util-types": "^2.0.0" - } - }, - "node_modules/micromark-util-symbol": { - "version": "2.0.0", - "funding": [ - { - "type": "GitHub Sponsors", - "url": "https://github.com/sponsors/unifiedjs" - }, - { - "type": "OpenCollective", - "url": "https://opencollective.com/unified" - } - ], - "license": "MIT" - }, - "node_modules/micromark-util-types": { - "version": "2.0.0", - "funding": [ - { - "type": "GitHub Sponsors", - "url": "https://github.com/sponsors/unifiedjs" - }, - { - "type": "OpenCollective", - "url": "https://opencollective.com/unified" - } - ], - "license": "MIT" - }, - "node_modules/micromatch": { - "version": "4.0.7", - "dev": true, - "license": "MIT", - "dependencies": { - "braces": "^3.0.3", - "picomatch": "^2.3.1" - }, - "engines": { - "node": ">=8.6" - } - }, - "node_modules/mime-db": { - "version": "1.52.0", - "dev": true, - "license": "MIT", - "engines": { - "node": ">= 0.6" - } - }, - "node_modules/mime-types": { - "version": "2.1.35", - "dev": true, - "license": "MIT", - "dependencies": { - "mime-db": "1.52.0" - }, - "engines": { - "node": ">= 0.6" - } - }, - "node_modules/mimic-fn": { - "version": "2.1.0", - "dev": true, - "license": "MIT", - "engines": { - "node": ">=6" - } - }, - "node_modules/mimic-response": { - "version": "1.0.1", - "dev": true, - "license": "MIT", - "engines": { - "node": ">=4" - } - }, - "node_modules/minimatch": { - "version": "9.0.4", - "dev": true, - "license": "ISC", - "dependencies": { - "brace-expansion": "^2.0.1" - }, - "engines": { - "node": ">=16 || 14 >=14.17" - }, - "funding": { - "url": "https://github.com/sponsors/isaacs" - } - }, - "node_modules/minipass": { - "version": "7.1.2", - "dev": true, - "license": "ISC", - "engines": { - "node": ">=16 || 14 >=14.17" - } - }, - "node_modules/minisearch": { - "version": "7.0.2", - "license": "MIT" - }, - "node_modules/monaco-editor": { - "version": "0.49.0", - "license": "MIT", - "peer": true - }, - "node_modules/ms": { - "version": "2.1.2", - "license": "MIT" - }, - "node_modules/mz": { - "version": "2.7.0", - "dev": true, - "license": "MIT", - "dependencies": { - "any-promise": "^1.0.0", - "object-assign": "^4.0.1", - "thenify-all": "^1.0.0" - } - }, - "node_modules/nanoid": { - "version": "3.3.7", - "dev": true, - "funding": [ - { - "type": "github", - "url": "https://github.com/sponsors/ai" - } - ], - "license": "MIT", - "bin": { - "nanoid": "bin/nanoid.cjs" - }, - "engines": { - "node": "^10 || ^12 || ^13.7 || ^14 || >=15.0.1" - } - }, - "node_modules/nice-napi": { - "version": "1.0.2", - "dev": true, - "hasInstallScript": true, - "license": "MIT", - "optional": true, - "os": [ - "!win32" - ], - "dependencies": { - "node-addon-api": "^3.0.0", - "node-gyp-build": "^4.2.2" - } - }, - "node_modules/node-addon-api": { - "version": "3.2.1", - "dev": true, - "license": "MIT", - "optional": true - }, - "node_modules/node-gyp-build": { - "version": "4.8.1", - "dev": true, - "license": "MIT", - "optional": true, - "bin": { - "node-gyp-build": "bin.js", - "node-gyp-build-optional": "optional.js", - "node-gyp-build-test": "build-test.js" - } - }, - "node_modules/node-releases": { - "version": "2.0.14", - "license": "MIT" - }, - "node_modules/normalize-path": { - "version": "3.0.0", - "dev": true, - "license": "MIT", - "engines": { - "node": ">=0.10.0" - } - }, - "node_modules/normalize-range": { - "version": "0.1.2", - "dev": true, - "license": "MIT", - "engines": { - "node": ">=0.10.0" - } - }, - "node_modules/normalize-url": { - "version": "6.1.0", - "dev": true, - "license": "MIT", - "engines": { - "node": ">=10" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - }, - "node_modules/not": { - "version": "0.1.0" - }, - "node_modules/npm-run-path": { - "version": "2.0.2", - "dev": true, - "license": "MIT", - "dependencies": { - "path-key": "^2.0.0" - }, - "engines": { - "node": ">=4" - } - }, - "node_modules/npm-run-path/node_modules/path-key": { - "version": "2.0.1", - "dev": true, - "license": "MIT", - "engines": { - "node": ">=4" - } - }, - "node_modules/nth-check": { - "version": "2.1.1", - "license": "BSD-2-Clause", - "dependencies": { - "boolbase": "^1.0.0" - }, - "funding": { - "url": "https://github.com/fb55/nth-check?sponsor=1" - } - }, - "node_modules/object-assign": { - "version": "4.1.1", - "license": "MIT", - "engines": { - "node": ">=0.10.0" - } - }, - "node_modules/object-hash": { - "version": "3.0.0", - "dev": true, - "license": "MIT", - "engines": { - "node": ">= 6" - } - }, - "node_modules/once": { - "version": "1.4.0", - "dev": true, - "license": "ISC", - "dependencies": { - "wrappy": "1" - } - }, - "node_modules/onetime": { - "version": "5.1.2", - "dev": true, - "license": "MIT", - "dependencies": { - "mimic-fn": "^2.1.0" - }, - "engines": { - "node": ">=6" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - }, - "node_modules/onigasm": { - "version": "2.2.5", - "license": "MIT", - "dependencies": { - "lru-cache": "^5.1.1" - } - }, - "node_modules/orderedmap": { - "version": "2.1.1", - "license": "MIT" - }, - "node_modules/os-filter-obj": { - "version": "2.0.0", - "dev": true, - "license": "MIT", - "dependencies": { - "arch": "^2.1.0" - }, - "engines": { - "node": ">=4" - } - }, - "node_modules/p-cancelable": { - "version": "2.1.1", - "dev": true, - "license": "MIT", - "engines": { - "node": ">=8" - } - }, - "node_modules/p-finally": { - "version": "1.0.0", - "dev": true, - "license": "MIT", - "engines": { - "node": ">=4" - } - }, - "node_modules/parse-entities": { - "version": "4.0.1", - "license": "MIT", - "dependencies": { - "@types/unist": "^2.0.0", - "character-entities": "^2.0.0", - "character-entities-legacy": "^3.0.0", - "character-reference-invalid": "^2.0.0", - "decode-named-character-reference": "^1.0.0", - "is-alphanumerical": "^2.0.0", - "is-decimal": "^2.0.0", - "is-hexadecimal": "^2.0.0" - }, - "funding": { - "type": "github", - "url": "https://github.com/sponsors/wooorm" - } - }, - "node_modules/parse-entities/node_modules/@types/unist": { - "version": "2.0.10", - "license": "MIT" - }, - "node_modules/parse5": { - "version": "7.1.2", - "license": "MIT", - "dependencies": { - "entities": "^4.4.0" - }, - "funding": { - "url": "https://github.com/inikulin/parse5?sponsor=1" - } - }, - "node_modules/path-key": { - "version": "3.1.1", - "dev": true, - "license": "MIT", - "engines": { - "node": ">=8" - } - }, - "node_modules/path-parse": { - "version": "1.0.7", - "dev": true, - "license": "MIT" - }, - "node_modules/path-scurry": { - "version": "1.11.1", - "dev": true, - "license": "BlueOak-1.0.0", - "dependencies": { - "lru-cache": "^10.2.0", - "minipass": "^5.0.0 || ^6.0.2 || ^7.0.0" - }, - "engines": { - "node": ">=16 || 14 >=14.18" - }, - "funding": { - "url": "https://github.com/sponsors/isaacs" - } - }, - "node_modules/path-scurry/node_modules/lru-cache": { - "version": "10.2.2", - "dev": true, - "license": "ISC", - "engines": { - "node": "14 || >=16.14" - } - }, - "node_modules/peek-readable": { - "version": "5.0.0", - "dev": true, - "license": "MIT", - "engines": { - "node": ">=14.16" - }, - "funding": { - "type": "github", - "url": "https://github.com/sponsors/Borewit" - } - }, - "node_modules/picocolors": { - "version": "1.0.1", - "license": "ISC" - }, - "node_modules/picomatch": { - "version": "2.3.1", - "license": "MIT", - "engines": { - "node": ">=8.6" - }, - "funding": { - "url": "https://github.com/sponsors/jonschlinkert" - } - }, - "node_modules/pify": { - "version": "2.3.0", - "dev": true, - "license": "MIT", - "engines": { - "node": ">=0.10.0" - } - }, - "node_modules/pirates": { - "version": "4.0.6", - "dev": true, - "license": "MIT", - "engines": { - "node": ">= 6" - } - }, - "node_modules/piscina": { - "version": "4.5.1", - "dev": true, - "license": "MIT", - "optionalDependencies": { - "nice-napi": "^1.0.2" - } - }, - "node_modules/postcss": { - "version": "8.4.38", - "dev": true, - "funding": [ - { - "type": "opencollective", - "url": "https://opencollective.com/postcss/" - }, - { - "type": "tidelift", - "url": "https://tidelift.com/funding/github/npm/postcss" - }, - { - "type": "github", - "url": "https://github.com/sponsors/ai" - } - ], - "license": "MIT", - "dependencies": { - "nanoid": "^3.3.7", - "picocolors": "^1.0.0", - "source-map-js": "^1.2.0" - }, - "engines": { - "node": "^10 || ^12 || >=14" - } - }, - "node_modules/postcss-import": { - "version": "15.1.0", - "dev": true, - "license": "MIT", - "dependencies": { - "postcss-value-parser": "^4.0.0", - "read-cache": "^1.0.0", - "resolve": "^1.1.7" - }, - "engines": { - "node": ">=14.0.0" - }, - "peerDependencies": { - "postcss": "^8.0.0" - } - }, - "node_modules/postcss-js": { - "version": "4.0.1", - "dev": true, - "license": "MIT", - "dependencies": { - "camelcase-css": "^2.0.1" - }, - "engines": { - "node": "^12 || ^14 || >= 16" - }, - "funding": { - "type": "opencollective", - "url": "https://opencollective.com/postcss/" - }, - "peerDependencies": { - "postcss": "^8.4.21" - } - }, - "node_modules/postcss-load-config": { - "version": "4.0.2", - "dev": true, - "funding": [ - { - "type": "opencollective", - "url": "https://opencollective.com/postcss/" - }, - { - "type": "github", - "url": "https://github.com/sponsors/ai" - } - ], - "license": "MIT", - "dependencies": { - "lilconfig": "^3.0.0", - "yaml": "^2.3.4" - }, - "engines": { - "node": ">= 14" - }, - "peerDependencies": { - "postcss": ">=8.0.9", - "ts-node": ">=9.0.0" - }, - "peerDependenciesMeta": { - "postcss": { - "optional": true - }, - "ts-node": { - "optional": true - } - } - }, - "node_modules/postcss-load-config/node_modules/lilconfig": { - "version": "3.1.1", - "dev": true, - "license": "MIT", - "engines": { - "node": ">=14" - }, - "funding": { - "url": "https://github.com/sponsors/antonk52" - } - }, - "node_modules/postcss-nested": { - "version": "6.0.1", - "dev": true, - "license": "MIT", - "dependencies": { - "postcss-selector-parser": "^6.0.11" - }, - "engines": { - "node": ">=12.0" - }, - "funding": { - "type": "opencollective", - "url": "https://opencollective.com/postcss/" - }, - "peerDependencies": { - "postcss": "^8.2.14" - } - }, - "node_modules/postcss-selector-parser": { - "version": "6.1.0", - "dev": true, - "license": "MIT", - "dependencies": { - "cssesc": "^3.0.0", - "util-deprecate": "^1.0.2" - }, - "engines": { - "node": ">=4" - } - }, - "node_modules/postcss-value-parser": { - "version": "4.2.0", - "license": "MIT" - }, - "node_modules/posthog-js": { - "version": "1.136.8", - "license": "MIT", - "dependencies": { - "fflate": "^0.4.8", - "preact": "^10.19.3" - } - }, - "node_modules/preact": { - "version": "10.22.0", - "license": "MIT", - "funding": { - "type": "opencollective", - "url": "https://opencollective.com/preact" - } - }, - "node_modules/prismjs": { - "version": "1.29.0", - "license": "MIT", - "engines": { - "node": ">=6" - } - }, - "node_modules/prop-types": { - "version": "15.8.1", - "license": "MIT", - "dependencies": { - "loose-envify": "^1.4.0", - "object-assign": "^4.1.1", - "react-is": "^16.13.1" - } - }, - "node_modules/prop-types/node_modules/react-is": { - "version": "16.13.1", - "license": "MIT" - }, - "node_modules/property-information": { - "version": "6.5.0", - "license": "MIT", - "funding": { - "type": "github", - "url": "https://github.com/sponsors/wooorm" - } - }, - "node_modules/prosemirror-changeset": { - "version": "2.2.1", - "license": "MIT", - "dependencies": { - "prosemirror-transform": "^1.0.0" - } - }, - "node_modules/prosemirror-collab": { - "version": "1.3.1", - "license": "MIT", - "dependencies": { - "prosemirror-state": "^1.0.0" - } - }, - "node_modules/prosemirror-commands": { - "version": "1.5.2", - "license": "MIT", - "dependencies": { - "prosemirror-model": "^1.0.0", - "prosemirror-state": "^1.0.0", - "prosemirror-transform": "^1.0.0" - } - }, - "node_modules/prosemirror-dropcursor": { - "version": "1.8.1", - "license": "MIT", - "dependencies": { - "prosemirror-state": "^1.0.0", - "prosemirror-transform": "^1.1.0", - "prosemirror-view": "^1.1.0" - } - }, - "node_modules/prosemirror-gapcursor": { - "version": "1.3.2", - "license": "MIT", - "dependencies": { - "prosemirror-keymap": "^1.0.0", - "prosemirror-model": "^1.0.0", - "prosemirror-state": "^1.0.0", - "prosemirror-view": "^1.0.0" - } - }, - "node_modules/prosemirror-history": { - "version": "1.4.0", - "license": "MIT", - "dependencies": { - "prosemirror-state": "^1.2.2", - "prosemirror-transform": "^1.0.0", - "prosemirror-view": "^1.31.0", - "rope-sequence": "^1.3.0" - } - }, - "node_modules/prosemirror-inputrules": { - "version": "1.4.0", - "license": "MIT", - "dependencies": { - "prosemirror-state": "^1.0.0", - "prosemirror-transform": "^1.0.0" - } - }, - "node_modules/prosemirror-keymap": { - "version": "1.2.2", - "license": "MIT", - "dependencies": { - "prosemirror-state": "^1.0.0", - "w3c-keyname": "^2.2.0" - } - }, - "node_modules/prosemirror-markdown": { - "version": "1.13.0", - "license": "MIT", - "dependencies": { - "markdown-it": "^14.0.0", - "prosemirror-model": "^1.20.0" - } - }, - "node_modules/prosemirror-menu": { - "version": "1.2.4", - "license": "MIT", - "dependencies": { - "crelt": "^1.0.0", - "prosemirror-commands": "^1.0.0", - "prosemirror-history": "^1.0.0", - "prosemirror-state": "^1.0.0" - } - }, - "node_modules/prosemirror-model": { - "version": "1.21.1", - "license": "MIT", - "dependencies": { - "orderedmap": "^2.0.0" - } - }, - "node_modules/prosemirror-schema-basic": { - "version": "1.2.2", - "license": "MIT", - "dependencies": { - "prosemirror-model": "^1.19.0" - } - }, - "node_modules/prosemirror-schema-list": { - "version": "1.3.0", - "license": "MIT", - "dependencies": { - "prosemirror-model": "^1.0.0", - "prosemirror-state": "^1.0.0", - "prosemirror-transform": "^1.7.3" - } - }, - "node_modules/prosemirror-state": { - "version": "1.4.3", - "license": "MIT", - "dependencies": { - "prosemirror-model": "^1.0.0", - "prosemirror-transform": "^1.0.0", - "prosemirror-view": "^1.27.0" - } - }, - "node_modules/prosemirror-tables": { - "version": "1.3.7", - "license": "MIT", - "dependencies": { - "prosemirror-keymap": "^1.1.2", - "prosemirror-model": "^1.8.1", - "prosemirror-state": "^1.3.1", - "prosemirror-transform": "^1.2.1", - "prosemirror-view": "^1.13.3" - } - }, - "node_modules/prosemirror-trailing-node": { - "version": "2.0.8", - "license": "MIT", - "dependencies": { - "@remirror/core-constants": "^2.0.2", - "escape-string-regexp": "^4.0.0" - }, - "peerDependencies": { - "prosemirror-model": "^1.19.0", - "prosemirror-state": "^1.4.2", - "prosemirror-view": "^1.31.2" - } - }, - "node_modules/prosemirror-transform": { - "version": "1.9.0", - "license": "MIT", - "dependencies": { - "prosemirror-model": "^1.21.0" - } - }, - "node_modules/prosemirror-view": { - "version": "1.33.7", - "license": "MIT", - "dependencies": { - "prosemirror-model": "^1.20.0", - "prosemirror-state": "^1.0.0", - "prosemirror-transform": "^1.1.0" - } - }, - "node_modules/pseudomap": { - "version": "1.0.2", - "dev": true, - "license": "ISC" - }, - "node_modules/pump": { - "version": "3.0.0", - "dev": true, - "license": "MIT", - "dependencies": { - "end-of-stream": "^1.1.0", - "once": "^1.3.1" - } - }, - "node_modules/punycode": { - "version": "2.3.1", - "license": "MIT", - "engines": { - "node": ">=6" - } - }, - "node_modules/punycode.js": { - "version": "2.3.1", - "license": "MIT", - "engines": { - "node": ">=6" - } - }, - "node_modules/queue-microtask": { - "version": "1.2.3", - "dev": true, - "funding": [ - { - "type": "github", - "url": "https://github.com/sponsors/feross" - }, - { - "type": "patreon", - "url": "https://www.patreon.com/feross" - }, - { - "type": "consulting", - "url": "https://feross.org/support" - } - ], - "license": "MIT" - }, - "node_modules/quick-lru": { - "version": "5.1.1", - "dev": true, - "license": "MIT", - "engines": { - "node": ">=10" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - }, - "node_modules/react": { - "version": "18.3.1", - "license": "MIT", - "dependencies": { - "loose-envify": "^1.1.0" - }, - "engines": { - "node": ">=0.10.0" - } - }, - "node_modules/react-dom": { - "version": "18.3.1", - "license": "MIT", - "dependencies": { - "loose-envify": "^1.1.0", - "scheduler": "^0.23.2" - }, - "peerDependencies": { - "react": "^18.3.1" - } - }, - "node_modules/react-error-boundary": { - "version": "4.0.13", - "license": "MIT", - "dependencies": { - "@babel/runtime": "^7.12.5" - }, - "peerDependencies": { - "react": ">=16.13.1" - } - }, - "node_modules/react-hook-form": { - "version": "7.51.5", - "license": "MIT", - "engines": { - "node": ">=12.22.0" - }, - "funding": { - "type": "opencollective", - "url": "https://opencollective.com/react-hook-form" - }, - "peerDependencies": { - "react": "^16.8.0 || ^17 || ^18" - } - }, - "node_modules/react-intersection-observer": { - "version": "9.10.3", - "license": "MIT", - "peerDependencies": { - "react": "^15.0.0 || ^16.0.0 || ^17.0.0 || ^18.0.0 || ^19.0.0", - "react-dom": "^15.0.0 || ^16.0.0 || ^17.0.0 || ^18.0.0 || ^19.0.0" - }, - "peerDependenciesMeta": { - "react-dom": { - "optional": true - } - } - }, - "node_modules/react-is": { - "version": "18.3.1", - "license": "MIT" - }, - "node_modules/react-markdown": { - "version": "9.0.1", - "license": "MIT", - "dependencies": { - "@types/hast": "^3.0.0", - "devlop": "^1.0.0", - "hast-util-to-jsx-runtime": "^2.0.0", - "html-url-attributes": "^3.0.0", - "mdast-util-to-hast": "^13.0.0", - "remark-parse": "^11.0.0", - "remark-rehype": "^11.0.0", - "unified": "^11.0.0", - "unist-util-visit": "^5.0.0", - "vfile": "^6.0.0" - }, - "funding": { - "type": "opencollective", - "url": "https://opencollective.com/unified" - }, - "peerDependencies": { - "@types/react": ">=18", - "react": ">=18" - } - }, - "node_modules/react-redux": { - "version": "8.1.3", - "license": "MIT", - "dependencies": { - "@babel/runtime": "^7.12.1", - "@types/hoist-non-react-statics": "^3.3.1", - "@types/use-sync-external-store": "^0.0.3", - "hoist-non-react-statics": "^3.3.2", - "react-is": "^18.0.0", - "use-sync-external-store": "^1.0.0" - }, - "peerDependencies": { - "@types/react": "^16.8 || ^17.0 || ^18.0", - "@types/react-dom": "^16.8 || ^17.0 || ^18.0", - "react": "^16.8 || ^17.0 || ^18.0", - "react-dom": "^16.8 || ^17.0 || ^18.0", - "react-native": ">=0.59", - "redux": "^4 || ^5.0.0-beta.0" - }, - "peerDependenciesMeta": { - "@types/react": { - "optional": true - }, - "@types/react-dom": { - "optional": true - }, - "react-dom": { - "optional": true - }, - "react-native": { - "optional": true - }, - "redux": { - "optional": true - } - } - }, - "node_modules/react-remark": { - "version": "2.1.0", - "license": "MIT", - "dependencies": { - "rehype-react": "^6.0.0", - "remark-parse": "^9.0.0", - "remark-rehype": "^8.0.0", - "unified": "^9.0.0" - }, - "engines": { - "node": ">=10" - }, - "funding": { - "type": "opencollective", - "url": "https://opencollective.com/unified" - }, - "peerDependencies": { - "react": ">=16.8" - } - }, - "node_modules/react-remark/node_modules/@types/mdast": { - "version": "3.0.15", - "license": "MIT", - "dependencies": { - "@types/unist": "^2" - } - }, - "node_modules/react-remark/node_modules/@types/unist": { - "version": "2.0.10", - "license": "MIT" - }, - "node_modules/react-remark/node_modules/bail": { - "version": "1.0.5", - "license": "MIT", - "funding": { - "type": "github", - "url": "https://github.com/sponsors/wooorm" - } - }, - "node_modules/react-remark/node_modules/character-entities": { - "version": "1.2.4", - "license": "MIT", - "funding": { - "type": "github", - "url": "https://github.com/sponsors/wooorm" - } - }, - "node_modules/react-remark/node_modules/character-entities-legacy": { - "version": "1.1.4", - "license": "MIT", - "funding": { - "type": "github", - "url": "https://github.com/sponsors/wooorm" - } - }, - "node_modules/react-remark/node_modules/character-reference-invalid": { - "version": "1.1.4", - "license": "MIT", - "funding": { - "type": "github", - "url": "https://github.com/sponsors/wooorm" - } - }, - "node_modules/react-remark/node_modules/is-alphabetical": { - "version": "1.0.4", - "license": "MIT", - "funding": { - "type": "github", - "url": "https://github.com/sponsors/wooorm" - } - }, - "node_modules/react-remark/node_modules/is-alphanumerical": { - "version": "1.0.4", - "license": "MIT", - "dependencies": { - "is-alphabetical": "^1.0.0", - "is-decimal": "^1.0.0" - }, - "funding": { - "type": "github", - "url": "https://github.com/sponsors/wooorm" - } - }, - "node_modules/react-remark/node_modules/is-decimal": { - "version": "1.0.4", - "license": "MIT", - "funding": { - "type": "github", - "url": "https://github.com/sponsors/wooorm" - } - }, - "node_modules/react-remark/node_modules/is-hexadecimal": { - "version": "1.0.4", - "license": "MIT", - "funding": { - "type": "github", - "url": "https://github.com/sponsors/wooorm" - } - }, - "node_modules/react-remark/node_modules/is-plain-obj": { - "version": "2.1.0", - "license": "MIT", - "engines": { - "node": ">=8" - } - }, - "node_modules/react-remark/node_modules/mdast-util-from-markdown": { - "version": "0.8.5", - "license": "MIT", - "dependencies": { - "@types/mdast": "^3.0.0", - "mdast-util-to-string": "^2.0.0", - "micromark": "~2.11.0", - "parse-entities": "^2.0.0", - "unist-util-stringify-position": "^2.0.0" - }, - "funding": { - "type": "opencollective", - "url": "https://opencollective.com/unified" - } - }, - "node_modules/react-remark/node_modules/mdast-util-to-hast": { - "version": "10.2.0", - "license": "MIT", - "dependencies": { - "@types/mdast": "^3.0.0", - "@types/unist": "^2.0.0", - "mdast-util-definitions": "^4.0.0", - "mdurl": "^1.0.0", - "unist-builder": "^2.0.0", - "unist-util-generated": "^1.0.0", - "unist-util-position": "^3.0.0", - "unist-util-visit": "^2.0.0" - }, - "funding": { - "type": "opencollective", - "url": "https://opencollective.com/unified" - } - }, - "node_modules/react-remark/node_modules/mdast-util-to-string": { - "version": "2.0.0", - "license": "MIT", - "funding": { - "type": "opencollective", - "url": "https://opencollective.com/unified" - } - }, - "node_modules/react-remark/node_modules/mdurl": { - "version": "1.0.1", - "license": "MIT" - }, - "node_modules/react-remark/node_modules/micromark": { - "version": "2.11.4", - "funding": [ - { - "type": "GitHub Sponsors", - "url": "https://github.com/sponsors/unifiedjs" - }, - { - "type": "OpenCollective", - "url": "https://opencollective.com/unified" - } - ], - "license": "MIT", - "dependencies": { - "debug": "^4.0.0", - "parse-entities": "^2.0.0" - } - }, - "node_modules/react-remark/node_modules/parse-entities": { - "version": "2.0.0", - "license": "MIT", - "dependencies": { - "character-entities": "^1.0.0", - "character-entities-legacy": "^1.0.0", - "character-reference-invalid": "^1.0.0", - "is-alphanumerical": "^1.0.0", - "is-decimal": "^1.0.0", - "is-hexadecimal": "^1.0.0" - }, - "funding": { - "type": "github", - "url": "https://github.com/sponsors/wooorm" - } - }, - "node_modules/react-remark/node_modules/remark-parse": { - "version": "9.0.0", - "license": "MIT", - "dependencies": { - "mdast-util-from-markdown": "^0.8.0" - }, - "funding": { - "type": "opencollective", - "url": "https://opencollective.com/unified" - } - }, - "node_modules/react-remark/node_modules/remark-rehype": { - "version": "8.1.0", - "license": "MIT", - "dependencies": { - "mdast-util-to-hast": "^10.2.0" - }, - "funding": { - "type": "opencollective", - "url": "https://opencollective.com/unified" - } - }, - "node_modules/react-remark/node_modules/trough": { - "version": "1.0.5", - "license": "MIT", - "funding": { - "type": "github", - "url": "https://github.com/sponsors/wooorm" - } - }, - "node_modules/react-remark/node_modules/unified": { - "version": "9.2.2", - "license": "MIT", - "dependencies": { - "bail": "^1.0.0", - "extend": "^3.0.0", - "is-buffer": "^2.0.0", - "is-plain-obj": "^2.0.0", - "trough": "^1.0.0", - "vfile": "^4.0.0" - }, - "funding": { - "type": "opencollective", - "url": "https://opencollective.com/unified" - } - }, - "node_modules/react-remark/node_modules/unist-util-is": { - "version": "4.1.0", - "license": "MIT", - "funding": { - "type": "opencollective", - "url": "https://opencollective.com/unified" - } - }, - "node_modules/react-remark/node_modules/unist-util-position": { - "version": "3.1.0", - "license": "MIT", - "funding": { - "type": "opencollective", - "url": "https://opencollective.com/unified" - } - }, - "node_modules/react-remark/node_modules/unist-util-stringify-position": { - "version": "2.0.3", - "license": "MIT", - "dependencies": { - "@types/unist": "^2.0.2" - }, - "funding": { - "type": "opencollective", - "url": "https://opencollective.com/unified" - } - }, - "node_modules/react-remark/node_modules/unist-util-visit": { - "version": "2.0.3", - "license": "MIT", - "dependencies": { - "@types/unist": "^2.0.0", - "unist-util-is": "^4.0.0", - "unist-util-visit-parents": "^3.0.0" - }, - "funding": { - "type": "opencollective", - "url": "https://opencollective.com/unified" - } - }, - "node_modules/react-remark/node_modules/unist-util-visit-parents": { - "version": "3.1.1", - "license": "MIT", - "dependencies": { - "@types/unist": "^2.0.0", - "unist-util-is": "^4.0.0" - }, - "funding": { - "type": "opencollective", - "url": "https://opencollective.com/unified" - } - }, - "node_modules/react-remark/node_modules/vfile": { - "version": "4.2.1", - "license": "MIT", - "dependencies": { - "@types/unist": "^2.0.0", - "is-buffer": "^2.0.0", - "unist-util-stringify-position": "^2.0.0", - "vfile-message": "^2.0.0" - }, - "funding": { - "type": "opencollective", - "url": "https://opencollective.com/unified" - } - }, - "node_modules/react-remark/node_modules/vfile-message": { - "version": "2.0.4", - "license": "MIT", - "dependencies": { - "@types/unist": "^2.0.0", - "unist-util-stringify-position": "^2.0.0" - }, - "funding": { - "type": "opencollective", - "url": "https://opencollective.com/unified" - } - }, - "node_modules/react-router": { - "version": "6.23.1", - "license": "MIT", - "dependencies": { - "@remix-run/router": "1.16.1" - }, - "engines": { - "node": ">=14.0.0" - }, - "peerDependencies": { - "react": ">=16.8" - } - }, - "node_modules/react-router-dom": { - "version": "6.23.1", - "license": "MIT", - "dependencies": { - "@remix-run/router": "1.16.1", - "react-router": "6.23.1" - }, - "engines": { - "node": ">=14.0.0" - }, - "peerDependencies": { - "react": ">=16.8", - "react-dom": ">=16.8" - } - }, - "node_modules/react-switch": { - "version": "7.0.0", - "license": "MIT", - "dependencies": { - "prop-types": "^15.7.2" - }, - "peerDependencies": { - "react": "^15.3.0 || ^16.0.0 || ^17.0.0 || ^18.0.0", - "react-dom": "^15.3.0 || ^16.0.0 || ^17.0.0 || ^18.0.0" - } - }, - "node_modules/react-syntax-highlighter": { - "version": "15.5.0", - "license": "MIT", - "dependencies": { - "@babel/runtime": "^7.3.1", - "highlight.js": "^10.4.1", - "lowlight": "^1.17.0", - "prismjs": "^1.27.0", - "refractor": "^3.6.0" - }, - "peerDependencies": { - "react": ">= 0.14.0" - } - }, - "node_modules/react-tooltip": { - "version": "5.26.4", - "license": "MIT", - "dependencies": { - "@floating-ui/dom": "^1.6.1", - "classnames": "^2.3.0" - }, - "peerDependencies": { - "react": ">=16.14.0", - "react-dom": ">=16.14.0" - } - }, - "node_modules/read-cache": { - "version": "1.0.0", - "dev": true, - "license": "MIT", - "dependencies": { - "pify": "^2.3.0" - } - }, - "node_modules/readable-stream": { - "version": "3.6.2", - "dev": true, - "license": "MIT", - "dependencies": { - "inherits": "^2.0.3", - "string_decoder": "^1.1.1", - "util-deprecate": "^1.0.1" - }, - "engines": { - "node": ">= 6" - } - }, - "node_modules/readable-web-to-node-stream": { - "version": "3.0.2", - "dev": true, - "license": "MIT", - "dependencies": { - "readable-stream": "^3.6.0" - }, - "engines": { - "node": ">=8" - }, - "funding": { - "type": "github", - "url": "https://github.com/sponsors/Borewit" - } - }, - "node_modules/readdirp": { - "version": "3.6.0", - "dev": true, - "license": "MIT", - "dependencies": { - "picomatch": "^2.2.1" - }, - "engines": { - "node": ">=8.10.0" - } - }, - "node_modules/redux": { - "version": "4.2.1", - "license": "MIT", - "dependencies": { - "@babel/runtime": "^7.9.2" - } - }, - "node_modules/redux-persist": { - "version": "6.0.0", - "license": "MIT", - "peerDependencies": { - "redux": ">4.0.0" - } - }, - "node_modules/redux-persist-transform-filter": { - "version": "0.0.22", - "license": "MIT", - "dependencies": { - "lodash": "^4.17.21" - }, - "peerDependencies": { - "redux": ">3.0.0", - "redux-persist": "^3.4.0 || ^4 || ^5 || ^6" - } - }, - "node_modules/redux-thunk": { - "version": "2.4.2", - "license": "MIT", - "peerDependencies": { - "redux": "^4" - } - }, - "node_modules/refractor": { - "version": "3.6.0", - "license": "MIT", - "dependencies": { - "hastscript": "^6.0.0", - "parse-entities": "^2.0.0", - "prismjs": "~1.27.0" - }, - "funding": { - "type": "github", - "url": "https://github.com/sponsors/wooorm" - } - }, - "node_modules/refractor/node_modules/character-entities": { - "version": "1.2.4", - "license": "MIT", - "funding": { - "type": "github", - "url": "https://github.com/sponsors/wooorm" - } - }, - "node_modules/refractor/node_modules/character-entities-legacy": { - "version": "1.1.4", - "license": "MIT", - "funding": { - "type": "github", - "url": "https://github.com/sponsors/wooorm" - } - }, - "node_modules/refractor/node_modules/character-reference-invalid": { - "version": "1.1.4", - "license": "MIT", - "funding": { - "type": "github", - "url": "https://github.com/sponsors/wooorm" - } - }, - "node_modules/refractor/node_modules/is-alphabetical": { - "version": "1.0.4", - "license": "MIT", - "funding": { - "type": "github", - "url": "https://github.com/sponsors/wooorm" - } - }, - "node_modules/refractor/node_modules/is-alphanumerical": { - "version": "1.0.4", - "license": "MIT", - "dependencies": { - "is-alphabetical": "^1.0.0", - "is-decimal": "^1.0.0" - }, - "funding": { - "type": "github", - "url": "https://github.com/sponsors/wooorm" - } - }, - "node_modules/refractor/node_modules/is-decimal": { - "version": "1.0.4", - "license": "MIT", - "funding": { - "type": "github", - "url": "https://github.com/sponsors/wooorm" - } - }, - "node_modules/refractor/node_modules/is-hexadecimal": { - "version": "1.0.4", - "license": "MIT", - "funding": { - "type": "github", - "url": "https://github.com/sponsors/wooorm" - } - }, - "node_modules/refractor/node_modules/parse-entities": { - "version": "2.0.0", - "license": "MIT", - "dependencies": { - "character-entities": "^1.0.0", - "character-entities-legacy": "^1.0.0", - "character-reference-invalid": "^1.0.0", - "is-alphanumerical": "^1.0.0", - "is-decimal": "^1.0.0", - "is-hexadecimal": "^1.0.0" - }, - "funding": { - "type": "github", - "url": "https://github.com/sponsors/wooorm" - } - }, - "node_modules/refractor/node_modules/prismjs": { - "version": "1.27.0", - "license": "MIT", - "engines": { - "node": ">=6" - } - }, - "node_modules/regenerator-runtime": { - "version": "0.14.1", - "license": "MIT" - }, - "node_modules/rehype-highlight": { - "version": "7.0.0", - "license": "MIT", - "dependencies": { - "@types/hast": "^3.0.0", - "hast-util-to-text": "^4.0.0", - "lowlight": "^3.0.0", - "unist-util-visit": "^5.0.0", - "vfile": "^6.0.0" - }, - "funding": { - "type": "opencollective", - "url": "https://opencollective.com/unified" - } - }, - "node_modules/rehype-highlight/node_modules/highlight.js": { - "version": "11.9.0", - "license": "BSD-3-Clause", - "engines": { - "node": ">=12.0.0" - } - }, - "node_modules/rehype-highlight/node_modules/lowlight": { - "version": "3.1.0", - "license": "MIT", - "dependencies": { - "@types/hast": "^3.0.0", - "devlop": "^1.0.0", - "highlight.js": "~11.9.0" - }, - "funding": { - "type": "github", - "url": "https://github.com/sponsors/wooorm" - } - }, - "node_modules/rehype-katex": { - "version": "7.0.0", - "license": "MIT", - "dependencies": { - "@types/hast": "^3.0.0", - "@types/katex": "^0.16.0", - "hast-util-from-html-isomorphic": "^2.0.0", - "hast-util-to-text": "^4.0.0", - "katex": "^0.16.0", - "unist-util-visit-parents": "^6.0.0", - "vfile": "^6.0.0" - }, - "funding": { - "type": "opencollective", - "url": "https://opencollective.com/unified" - } - }, - "node_modules/rehype-react": { - "version": "6.2.1", - "license": "MIT", - "dependencies": { - "@mapbox/hast-util-table-cell-style": "^0.2.0", - "hast-to-hyperscript": "^9.0.0" - }, - "funding": { - "type": "opencollective", - "url": "https://opencollective.com/unified" - } - }, - "node_modules/rehype-wrap-all": { - "version": "1.1.0", - "license": "MIT", - "dependencies": { - "hast-util-parse-selector": "^2.2.4", - "hast-util-select": "^4.0.0", - "unist-util-visit": "^2.0.3" - }, - "engines": { - "node": ">=8.0" - } - }, - "node_modules/rehype-wrap-all/node_modules/@types/unist": { - "version": "2.0.10", - "license": "MIT" - }, - "node_modules/rehype-wrap-all/node_modules/unist-util-is": { - "version": "4.1.0", - "license": "MIT", - "funding": { - "type": "opencollective", - "url": "https://opencollective.com/unified" - } - }, - "node_modules/rehype-wrap-all/node_modules/unist-util-visit": { - "version": "2.0.3", - "license": "MIT", - "dependencies": { - "@types/unist": "^2.0.0", - "unist-util-is": "^4.0.0", - "unist-util-visit-parents": "^3.0.0" - }, - "funding": { - "type": "opencollective", - "url": "https://opencollective.com/unified" - } - }, - "node_modules/rehype-wrap-all/node_modules/unist-util-visit-parents": { - "version": "3.1.1", - "license": "MIT", - "dependencies": { - "@types/unist": "^2.0.0", - "unist-util-is": "^4.0.0" - }, - "funding": { - "type": "opencollective", - "url": "https://opencollective.com/unified" - } - }, - "node_modules/remark-math": { - "version": "6.0.0", - "license": "MIT", - "dependencies": { - "@types/mdast": "^4.0.0", - "mdast-util-math": "^3.0.0", - "micromark-extension-math": "^3.0.0", - "unified": "^11.0.0" - }, - "funding": { - "type": "opencollective", - "url": "https://opencollective.com/unified" - } - }, - "node_modules/remark-parse": { - "version": "11.0.0", - "license": "MIT", - "dependencies": { - "@types/mdast": "^4.0.0", - "mdast-util-from-markdown": "^2.0.0", - "micromark-util-types": "^2.0.0", - "unified": "^11.0.0" - }, - "funding": { - "type": "opencollective", - "url": "https://opencollective.com/unified" - } - }, - "node_modules/remark-rehype": { - "version": "11.1.0", - "license": "MIT", - "dependencies": { - "@types/hast": "^3.0.0", - "@types/mdast": "^4.0.0", - "mdast-util-to-hast": "^13.0.0", - "unified": "^11.0.0", - "vfile": "^6.0.0" - }, - "funding": { - "type": "opencollective", - "url": "https://opencollective.com/unified" - } - }, - "node_modules/require-from-string": { - "version": "2.0.2", - "license": "MIT", - "engines": { - "node": ">=0.10.0" - } - }, - "node_modules/reselect": { - "version": "5.1.1", - "license": "MIT" - }, - "node_modules/resolve": { - "version": "1.22.8", - "dev": true, - "license": "MIT", - "dependencies": { - "is-core-module": "^2.13.0", - "path-parse": "^1.0.7", - "supports-preserve-symlinks-flag": "^1.0.0" - }, - "bin": { - "resolve": "bin/resolve" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, - "node_modules/resolve-alpn": { - "version": "1.2.1", - "dev": true, - "license": "MIT" - }, - "node_modules/responselike": { - "version": "2.0.1", - "dev": true, - "license": "MIT", - "dependencies": { - "lowercase-keys": "^2.0.0" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - }, - "node_modules/reusify": { - "version": "1.0.4", - "dev": true, - "license": "MIT", - "engines": { - "iojs": ">=1.0.0", - "node": ">=0.10.0" - } - }, - "node_modules/rollup": { - "version": "3.29.4", - "dev": true, - "license": "MIT", - "bin": { - "rollup": "dist/bin/rollup" - }, - "engines": { - "node": ">=14.18.0", - "npm": ">=8.0.0" - }, - "optionalDependencies": { - "fsevents": "~2.3.2" - } - }, - "node_modules/rope-sequence": { - "version": "1.3.4", - "license": "MIT" - }, - "node_modules/run-parallel": { - "version": "1.2.0", - "dev": true, - "funding": [ - { - "type": "github", - "url": "https://github.com/sponsors/feross" - }, - { - "type": "patreon", - "url": "https://www.patreon.com/feross" - }, - { - "type": "consulting", - "url": "https://feross.org/support" - } - ], - "license": "MIT", - "dependencies": { - "queue-microtask": "^1.2.2" - } - }, - "node_modules/safe-buffer": { - "version": "5.2.1", - "dev": true, - "funding": [ - { - "type": "github", - "url": "https://github.com/sponsors/feross" - }, - { - "type": "patreon", - "url": "https://www.patreon.com/feross" - }, - { - "type": "consulting", - "url": "https://feross.org/support" - } - ], - "license": "MIT" - }, - "node_modules/scheduler": { - "version": "0.23.2", - "license": "MIT", - "dependencies": { - "loose-envify": "^1.1.0" - } - }, - "node_modules/semver": { - "version": "6.3.1", - "license": "ISC", - "peer": true, - "bin": { - "semver": "bin/semver.js" - } - }, - "node_modules/semver-regex": { - "version": "4.0.5", - "dev": true, - "license": "MIT", - "engines": { - "node": ">=12" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - }, - "node_modules/semver-truncate": { - "version": "3.0.0", - "dev": true, - "license": "MIT", - "dependencies": { - "semver": "^7.3.5" - }, - "engines": { - "node": ">=12" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - }, - "node_modules/semver-truncate/node_modules/semver": { - "version": "7.6.2", - "dev": true, - "license": "ISC", - "bin": { - "semver": "bin/semver.js" - }, - "engines": { - "node": ">=10" - } - }, - "node_modules/seti-file-icons": { - "version": "0.0.8", - "license": "MIT" - }, - "node_modules/shallowequal": { - "version": "1.1.0", - "license": "MIT" - }, - "node_modules/shebang-command": { - "version": "2.0.0", - "dev": true, - "license": "MIT", - "dependencies": { - "shebang-regex": "^3.0.0" - }, - "engines": { - "node": ">=8" - } - }, - "node_modules/shebang-regex": { - "version": "3.0.0", - "dev": true, - "license": "MIT", - "engines": { - "node": ">=8" - } - }, - "node_modules/signal-exit": { - "version": "4.1.0", - "dev": true, - "license": "ISC", - "engines": { - "node": ">=14" - }, - "funding": { - "url": "https://github.com/sponsors/isaacs" - } - }, - "node_modules/slash": { - "version": "3.0.0", - "dev": true, - "license": "MIT", - "engines": { - "node": ">=8" - } - }, - "node_modules/slice-ansi": { - "version": "4.0.0", - "license": "MIT", - "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", - "license": "MIT", - "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", - "license": "MIT", - "dependencies": { - "color-name": "~1.1.4" - }, - "engines": { - "node": ">=7.0.0" - } - }, - "node_modules/slice-ansi/node_modules/color-name": { - "version": "1.1.4", - "license": "MIT" - }, - "node_modules/socket.io-client": { - "version": "4.7.5", - "license": "MIT", - "dependencies": { - "@socket.io/component-emitter": "~3.1.0", - "debug": "~4.3.2", - "engine.io-client": "~6.5.2", - "socket.io-parser": "~4.2.4" - }, - "engines": { - "node": ">=10.0.0" - } - }, - "node_modules/socket.io-parser": { - "version": "4.2.4", - "license": "MIT", - "dependencies": { - "@socket.io/component-emitter": "~3.1.0", - "debug": "~4.3.1" - }, - "engines": { - "node": ">=10.0.0" - } - }, - "node_modules/sort-keys": { - "version": "1.1.2", - "dev": true, - "license": "MIT", - "dependencies": { - "is-plain-obj": "^1.0.0" - }, - "engines": { - "node": ">=0.10.0" - } - }, - "node_modules/sort-keys-length": { - "version": "1.0.1", - "dev": true, - "license": "MIT", - "dependencies": { - "sort-keys": "^1.0.0" - }, - "engines": { - "node": ">=0.10.0" - } - }, - "node_modules/sort-keys/node_modules/is-plain-obj": { - "version": "1.1.0", - "dev": true, - "license": "MIT", - "engines": { - "node": ">=0.10.0" - } - }, - "node_modules/source-map": { - "version": "0.7.4", - "dev": true, - "license": "BSD-3-Clause", - "engines": { - "node": ">= 8" - } - }, - "node_modules/source-map-js": { - "version": "1.2.0", - "dev": true, - "license": "BSD-3-Clause", - "engines": { - "node": ">=0.10.0" - } - }, - "node_modules/space-separated-tokens": { - "version": "2.0.2", - "license": "MIT", - "funding": { - "type": "github", - "url": "https://github.com/sponsors/wooorm" - } - }, - "node_modules/state-local": { - "version": "1.0.7", - "license": "MIT" - }, - "node_modules/string_decoder": { - "version": "1.3.0", - "dev": true, - "license": "MIT", - "dependencies": { - "safe-buffer": "~5.2.0" - } - }, - "node_modules/string-width": { - "version": "4.2.3", - "license": "MIT", - "dependencies": { - "emoji-regex": "^8.0.0", - "is-fullwidth-code-point": "^3.0.0", - "strip-ansi": "^6.0.1" - }, - "engines": { - "node": ">=8" - } - }, - "node_modules/string-width-cjs": { - "name": "string-width", - "version": "4.2.3", - "dev": true, - "license": "MIT", - "dependencies": { - "emoji-regex": "^8.0.0", - "is-fullwidth-code-point": "^3.0.0", - "strip-ansi": "^6.0.1" - }, - "engines": { - "node": ">=8" - } - }, - "node_modules/stringify-entities": { - "version": "4.0.4", - "license": "MIT", - "dependencies": { - "character-entities-html4": "^2.0.0", - "character-entities-legacy": "^3.0.0" - }, - "funding": { - "type": "github", - "url": "https://github.com/sponsors/wooorm" - } - }, - "node_modules/strip-ansi": { - "version": "6.0.1", - "license": "MIT", - "dependencies": { - "ansi-regex": "^5.0.1" - }, - "engines": { - "node": ">=8" - } - }, - "node_modules/strip-ansi-cjs": { - "name": "strip-ansi", - "version": "6.0.1", - "dev": true, - "license": "MIT", - "dependencies": { - "ansi-regex": "^5.0.1" - }, - "engines": { - "node": ">=8" - } - }, - "node_modules/strip-eof": { - "version": "1.0.0", - "dev": true, - "license": "MIT", - "engines": { - "node": ">=0.10.0" - } - }, - "node_modules/strip-final-newline": { - "version": "2.0.0", - "dev": true, - "license": "MIT", - "engines": { - "node": ">=6" - } - }, - "node_modules/strip-outer": { - "version": "2.0.0", - "dev": true, - "license": "MIT", - "engines": { - "node": "^12.20.0 || ^14.13.1 || >=16.0.0" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - }, - "node_modules/strtok3": { - "version": "7.0.0", - "dev": true, - "license": "MIT", - "dependencies": { - "@tokenizer/token": "^0.3.0", - "peek-readable": "^5.0.0" - }, - "engines": { - "node": ">=14.16" - }, - "funding": { - "type": "github", - "url": "https://github.com/sponsors/Borewit" - } - }, - "node_modules/style-to-object": { - "version": "1.0.6", - "license": "MIT", - "dependencies": { - "inline-style-parser": "0.2.3" - } - }, - "node_modules/styled-components": { - "version": "5.3.11", - "license": "MIT", - "dependencies": { - "@babel/helper-module-imports": "^7.0.0", - "@babel/traverse": "^7.4.5", - "@emotion/is-prop-valid": "^1.1.0", - "@emotion/stylis": "^0.8.4", - "@emotion/unitless": "^0.7.4", - "babel-plugin-styled-components": ">= 1.12.0", - "css-to-react-native": "^3.0.0", - "hoist-non-react-statics": "^3.0.0", - "shallowequal": "^1.1.0", - "supports-color": "^5.5.0" - }, - "engines": { - "node": ">=10" - }, - "funding": { - "type": "opencollective", - "url": "https://opencollective.com/styled-components" - }, - "peerDependencies": { - "react": ">= 16.8.0", - "react-dom": ">= 16.8.0", - "react-is": ">= 16.8.0" - } - }, - "node_modules/sucrase": { - "version": "3.35.0", - "dev": true, - "license": "MIT", - "dependencies": { - "@jridgewell/gen-mapping": "^0.3.2", - "commander": "^4.0.0", - "glob": "^10.3.10", - "lines-and-columns": "^1.1.6", - "mz": "^2.7.0", - "pirates": "^4.0.1", - "ts-interface-checker": "^0.1.9" - }, - "bin": { - "sucrase": "bin/sucrase", - "sucrase-node": "bin/sucrase-node" - }, - "engines": { - "node": ">=16 || 14 >=14.17" - } - }, - "node_modules/sucrase/node_modules/commander": { - "version": "4.1.1", - "dev": true, - "license": "MIT", - "engines": { - "node": ">= 6" - } - }, - "node_modules/supports-color": { - "version": "5.5.0", - "license": "MIT", - "dependencies": { - "has-flag": "^3.0.0" - }, - "engines": { - "node": ">=4" - } - }, - "node_modules/supports-preserve-symlinks-flag": { - "version": "1.0.0", - "dev": true, - "license": "MIT", - "engines": { - "node": ">= 0.4" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, - "node_modules/table": { - "version": "6.8.2", - "license": "BSD-3-Clause", - "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/tailwindcss": { - "version": "3.4.3", - "dev": true, - "license": "MIT", - "dependencies": { - "@alloc/quick-lru": "^5.2.0", - "arg": "^5.0.2", - "chokidar": "^3.5.3", - "didyoumean": "^1.2.2", - "dlv": "^1.1.3", - "fast-glob": "^3.3.0", - "glob-parent": "^6.0.2", - "is-glob": "^4.0.3", - "jiti": "^1.21.0", - "lilconfig": "^2.1.0", - "micromatch": "^4.0.5", - "normalize-path": "^3.0.0", - "object-hash": "^3.0.0", - "picocolors": "^1.0.0", - "postcss": "^8.4.23", - "postcss-import": "^15.1.0", - "postcss-js": "^4.0.1", - "postcss-load-config": "^4.0.1", - "postcss-nested": "^6.0.1", - "postcss-selector-parser": "^6.0.11", - "resolve": "^1.22.2", - "sucrase": "^3.32.0" - }, - "bin": { - "tailwind": "lib/cli.js", - "tailwindcss": "lib/cli.js" - }, - "engines": { - "node": ">=14.0.0" - } - }, - "node_modules/thenify": { - "version": "3.3.1", - "dev": true, - "license": "MIT", - "dependencies": { - "any-promise": "^1.0.0" - } - }, - "node_modules/thenify-all": { - "version": "1.6.0", - "dev": true, - "license": "MIT", - "dependencies": { - "thenify": ">= 3.1.0 < 4" - }, - "engines": { - "node": ">=0.8" - } - }, - "node_modules/tippy.js": { - "version": "6.3.7", - "license": "MIT", - "dependencies": { - "@popperjs/core": "^2.9.0" - } - }, - "node_modules/to-fast-properties": { - "version": "2.0.0", - "license": "MIT", - "engines": { - "node": ">=4" - } - }, - "node_modules/to-regex-range": { - "version": "5.0.1", - "dev": true, - "license": "MIT", - "dependencies": { - "is-number": "^7.0.0" - }, - "engines": { - "node": ">=8.0" - } - }, - "node_modules/token-types": { - "version": "5.0.1", - "dev": true, - "license": "MIT", - "dependencies": { - "@tokenizer/token": "^0.3.0", - "ieee754": "^1.2.1" - }, - "engines": { - "node": ">=14.16" - }, - "funding": { - "type": "github", - "url": "https://github.com/sponsors/Borewit" - } - }, - "node_modules/trim-lines": { - "version": "3.0.1", - "license": "MIT", - "funding": { - "type": "github", - "url": "https://github.com/sponsors/wooorm" - } - }, - "node_modules/trim-repeated": { - "version": "2.0.0", - "dev": true, - "license": "MIT", - "dependencies": { - "escape-string-regexp": "^5.0.0" - }, - "engines": { - "node": ">=12" - } - }, - "node_modules/trim-repeated/node_modules/escape-string-regexp": { - "version": "5.0.0", - "dev": true, - "license": "MIT", - "engines": { - "node": ">=12" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - }, - "node_modules/trough": { - "version": "2.2.0", - "license": "MIT", - "funding": { - "type": "github", - "url": "https://github.com/sponsors/wooorm" - } - }, - "node_modules/ts-interface-checker": { - "version": "0.1.13", - "dev": true, - "license": "Apache-2.0" - }, - "node_modules/tslib": { - "version": "2.6.3", - "license": "0BSD" - }, - "node_modules/typescript": { - "version": "4.9.5", - "dev": true, - "license": "Apache-2.0", - "bin": { - "tsc": "bin/tsc", - "tsserver": "bin/tsserver" - }, - "engines": { - "node": ">=4.2.0" - } - }, - "node_modules/uc.micro": { - "version": "2.1.0", - "license": "MIT" - }, - "node_modules/undici-types": { - "version": "5.26.5", - "dev": true, - "license": "MIT" - }, - "node_modules/unified": { - "version": "11.0.4", - "license": "MIT", - "dependencies": { - "@types/unist": "^3.0.0", - "bail": "^2.0.0", - "devlop": "^1.0.0", - "extend": "^3.0.0", - "is-plain-obj": "^4.0.0", - "trough": "^2.0.0", - "vfile": "^6.0.0" - }, - "funding": { - "type": "opencollective", - "url": "https://opencollective.com/unified" - } - }, - "node_modules/unist-builder": { - "version": "2.0.3", - "license": "MIT", - "funding": { - "type": "opencollective", - "url": "https://opencollective.com/unified" - } - }, - "node_modules/unist-util-find-after": { - "version": "5.0.0", - "license": "MIT", - "dependencies": { - "@types/unist": "^3.0.0", - "unist-util-is": "^6.0.0" - }, - "funding": { - "type": "opencollective", - "url": "https://opencollective.com/unified" - } - }, - "node_modules/unist-util-generated": { - "version": "1.1.6", - "license": "MIT", - "funding": { - "type": "opencollective", - "url": "https://opencollective.com/unified" - } - }, - "node_modules/unist-util-is": { - "version": "6.0.0", - "license": "MIT", - "dependencies": { - "@types/unist": "^3.0.0" - }, - "funding": { - "type": "opencollective", - "url": "https://opencollective.com/unified" - } - }, - "node_modules/unist-util-position": { - "version": "5.0.0", - "license": "MIT", - "dependencies": { - "@types/unist": "^3.0.0" - }, - "funding": { - "type": "opencollective", - "url": "https://opencollective.com/unified" - } - }, - "node_modules/unist-util-remove-position": { - "version": "5.0.0", - "license": "MIT", - "dependencies": { - "@types/unist": "^3.0.0", - "unist-util-visit": "^5.0.0" - }, - "funding": { - "type": "opencollective", - "url": "https://opencollective.com/unified" - } - }, - "node_modules/unist-util-stringify-position": { - "version": "4.0.0", - "license": "MIT", - "dependencies": { - "@types/unist": "^3.0.0" - }, - "funding": { - "type": "opencollective", - "url": "https://opencollective.com/unified" - } - }, - "node_modules/unist-util-visit": { - "version": "5.0.0", - "license": "MIT", - "dependencies": { - "@types/unist": "^3.0.0", - "unist-util-is": "^6.0.0", - "unist-util-visit-parents": "^6.0.0" - }, - "funding": { - "type": "opencollective", - "url": "https://opencollective.com/unified" - } - }, - "node_modules/unist-util-visit-parents": { - "version": "6.0.1", - "license": "MIT", - "dependencies": { - "@types/unist": "^3.0.0", - "unist-util-is": "^6.0.0" - }, - "funding": { - "type": "opencollective", - "url": "https://opencollective.com/unified" - } - }, - "node_modules/universalify": { - "version": "2.0.1", - "license": "MIT", - "engines": { - "node": ">= 10.0.0" - } - }, - "node_modules/update-browserslist-db": { - "version": "1.0.16", - "funding": [ - { - "type": "opencollective", - "url": "https://opencollective.com/browserslist" - }, - { - "type": "tidelift", - "url": "https://tidelift.com/funding/github/npm/browserslist" - }, - { - "type": "github", - "url": "https://github.com/sponsors/ai" - } - ], - "license": "MIT", - "dependencies": { - "escalade": "^3.1.2", - "picocolors": "^1.0.1" - }, - "bin": { - "update-browserslist-db": "cli.js" - }, - "peerDependencies": { - "browserslist": ">= 4.21.0" - } - }, - "node_modules/uri-js": { - "version": "4.4.1", - "license": "BSD-2-Clause", - "dependencies": { - "punycode": "^2.1.0" - } - }, - "node_modules/use-sync-external-store": { - "version": "1.2.2", - "license": "MIT", - "peerDependencies": { - "react": "^16.8.0 || ^17.0.0 || ^18.0.0" - } - }, - "node_modules/util-deprecate": { - "version": "1.0.2", - "dev": true, - "license": "MIT" - }, - "node_modules/uuid": { - "version": "9.0.1", - "funding": [ - "https://github.com/sponsors/broofa", - "https://github.com/sponsors/ctavan" - ], - "license": "MIT", - "bin": { - "uuid": "dist/bin/uuid" - } - }, - "node_modules/vfile": { - "version": "6.0.1", - "license": "MIT", - "dependencies": { - "@types/unist": "^3.0.0", - "unist-util-stringify-position": "^4.0.0", - "vfile-message": "^4.0.0" - }, - "funding": { - "type": "opencollective", - "url": "https://opencollective.com/unified" - } - }, - "node_modules/vfile-location": { - "version": "5.0.2", - "license": "MIT", - "dependencies": { - "@types/unist": "^3.0.0", - "vfile": "^6.0.0" - }, - "funding": { - "type": "opencollective", - "url": "https://opencollective.com/unified" - } - }, - "node_modules/vfile-message": { - "version": "4.0.2", - "license": "MIT", - "dependencies": { - "@types/unist": "^3.0.0", - "unist-util-stringify-position": "^4.0.0" - }, - "funding": { - "type": "opencollective", - "url": "https://opencollective.com/unified" - } - }, - "node_modules/vite": { - "version": "4.5.3", - "dev": true, - "license": "MIT", - "dependencies": { - "esbuild": "^0.18.10", - "postcss": "^8.4.27", - "rollup": "^3.27.1" - }, - "bin": { - "vite": "bin/vite.js" - }, - "engines": { - "node": "^14.18.0 || >=16.0.0" - }, - "funding": { - "url": "https://github.com/vitejs/vite?sponsor=1" - }, - "optionalDependencies": { - "fsevents": "~2.3.2" - }, - "peerDependencies": { - "@types/node": ">= 14", - "less": "*", - "lightningcss": "^1.21.0", - "sass": "*", - "stylus": "*", - "sugarss": "*", - "terser": "^5.4.0" - }, - "peerDependenciesMeta": { - "@types/node": { - "optional": true - }, - "less": { - "optional": true - }, - "lightningcss": { - "optional": true - }, - "sass": { - "optional": true - }, - "stylus": { - "optional": true - }, - "sugarss": { - "optional": true - }, - "terser": { - "optional": true - } - } - }, - "node_modules/vscode-webview": { - "version": "1.0.1-beta.1", - "license": "ISC", - "dependencies": { - "fs-extra": "^10.0.0" - } - }, - "node_modules/w3c-keyname": { - "version": "2.2.8", - "license": "MIT" - }, - "node_modules/web-namespaces": { - "version": "2.0.1", - "license": "MIT", - "funding": { - "type": "github", - "url": "https://github.com/sponsors/wooorm" - } - }, - "node_modules/which": { - "version": "2.0.2", - "dev": true, - "license": "ISC", - "dependencies": { - "isexe": "^2.0.0" - }, - "bin": { - "node-which": "bin/node-which" - }, - "engines": { - "node": ">= 8" - } - }, - "node_modules/wrap-ansi": { - "version": "8.1.0", - "dev": true, - "license": "MIT", - "dependencies": { - "ansi-styles": "^6.1.0", - "string-width": "^5.0.1", - "strip-ansi": "^7.0.1" - }, - "engines": { - "node": ">=12" - }, - "funding": { - "url": "https://github.com/chalk/wrap-ansi?sponsor=1" - } - }, - "node_modules/wrap-ansi-cjs": { - "name": "wrap-ansi", - "version": "7.0.0", - "dev": true, - "license": "MIT", - "dependencies": { - "ansi-styles": "^4.0.0", - "string-width": "^4.1.0", - "strip-ansi": "^6.0.0" - }, - "engines": { - "node": ">=10" - }, - "funding": { - "url": "https://github.com/chalk/wrap-ansi?sponsor=1" - } - }, - "node_modules/wrap-ansi-cjs/node_modules/ansi-styles": { - "version": "4.3.0", - "dev": true, - "license": "MIT", - "dependencies": { - "color-convert": "^2.0.1" - }, - "engines": { - "node": ">=8" - }, - "funding": { - "url": "https://github.com/chalk/ansi-styles?sponsor=1" - } - }, - "node_modules/wrap-ansi-cjs/node_modules/color-convert": { - "version": "2.0.1", - "dev": true, - "license": "MIT", - "dependencies": { - "color-name": "~1.1.4" - }, - "engines": { - "node": ">=7.0.0" - } - }, - "node_modules/wrap-ansi-cjs/node_modules/color-name": { - "version": "1.1.4", - "dev": true, - "license": "MIT" - }, - "node_modules/wrap-ansi/node_modules/ansi-regex": { - "version": "6.0.1", - "dev": true, - "license": "MIT", - "engines": { - "node": ">=12" - }, - "funding": { - "url": "https://github.com/chalk/ansi-regex?sponsor=1" - } - }, - "node_modules/wrap-ansi/node_modules/ansi-styles": { - "version": "6.2.1", - "dev": true, - "license": "MIT", - "engines": { - "node": ">=12" - }, - "funding": { - "url": "https://github.com/chalk/ansi-styles?sponsor=1" - } - }, - "node_modules/wrap-ansi/node_modules/emoji-regex": { - "version": "9.2.2", - "dev": true, - "license": "MIT" - }, - "node_modules/wrap-ansi/node_modules/string-width": { - "version": "5.1.2", - "dev": true, - "license": "MIT", - "dependencies": { - "eastasianwidth": "^0.2.0", - "emoji-regex": "^9.2.2", - "strip-ansi": "^7.0.1" - }, - "engines": { - "node": ">=12" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - }, - "node_modules/wrap-ansi/node_modules/strip-ansi": { - "version": "7.1.0", - "dev": true, - "license": "MIT", - "dependencies": { - "ansi-regex": "^6.0.1" - }, - "engines": { - "node": ">=12" - }, - "funding": { - "url": "https://github.com/chalk/strip-ansi?sponsor=1" - } - }, - "node_modules/wrappy": { - "version": "1.0.2", - "dev": true, - "license": "ISC" - }, - "node_modules/ws": { - "version": "8.11.0", - "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/xmlhttprequest-ssl": { - "version": "2.0.0", - "engines": { - "node": ">=0.4.0" - } - }, - "node_modules/xtend": { - "version": "4.0.2", - "license": "MIT", - "engines": { - "node": ">=0.4" - } - }, - "node_modules/yallist": { - "version": "3.1.1", - "license": "ISC" - }, - "node_modules/yaml": { - "version": "2.4.3", - "dev": true, - "license": "ISC", - "bin": { - "yaml": "bin.mjs" - }, - "engines": { - "node": ">= 14" - } - }, - "node_modules/zwitch": { - "version": "2.0.4", - "license": "MIT", - "funding": { - "type": "github", - "url": "https://github.com/sponsors/wooorm" - } - } - } -} From 9046cb4726c0dc85b98450ac9ff9993740760905 Mon Sep 17 00:00:00 2001 From: Nate Date: Sun, 22 Sep 2024 14:36:42 -0700 Subject: [PATCH 170/268] update package-lock.json in gui --- gui/package-lock.json | 8531 +++++++++++++++++++++++++++++++++++++++++ 1 file changed, 8531 insertions(+) create mode 100644 gui/package-lock.json diff --git a/gui/package-lock.json b/gui/package-lock.json new file mode 100644 index 000000000..490db589c --- /dev/null +++ b/gui/package-lock.json @@ -0,0 +1,8531 @@ +{ + "name": "gui", + "lockfileVersion": 3, + "requires": true, + "packages": { + "": { + "name": "gui", + "license": "Apache-2.0", + "dependencies": { + "@headlessui/react": "^1.7.17", + "@heroicons/react": "^2.0.18", + "@monaco-editor/react": "^4.6.0", + "@reduxjs/toolkit": "^1.9.3", + "@tiptap/core": "^2.3.2", + "@tiptap/extension-document": "^2.3.2", + "@tiptap/extension-dropcursor": "^2.1.16", + "@tiptap/extension-history": "^2.3.2", + "@tiptap/extension-image": "^2.1.16", + "@tiptap/extension-mention": "^2.1.13", + "@tiptap/extension-paragraph": "^2.3.2", + "@tiptap/extension-placeholder": "^2.1.13", + "@tiptap/extension-text": "^2.3.2", + "@tiptap/pm": "^2.1.13", + "@tiptap/react": "^2.1.13", + "@tiptap/starter-kit": "^2.1.13", + "@tiptap/suggestion": "^2.1.13", + "@types/vscode-webview": "^1.57.1", + "core": "file:../core", + "dompurify": "^3.0.6", + "downshift": "^7.6.0", + "lodash": "^4.17.21", + "minisearch": "^7.0.2", + "onigasm": "^2.2.5", + "posthog-js": "^1.130.1", + "prismjs": "^1.29.0", + "react": "^18.2.0", + "react-dom": "^18.2.0", + "react-error-boundary": "^4.0.11", + "react-hook-form": "^7.47.0", + "react-intersection-observer": "^9.10.3", + "react-markdown": "^9.0.1", + "react-redux": "^8.0.5", + "react-remark": "^2.1.0", + "react-router-dom": "^6.14.2", + "react-switch": "^7.0.0", + "react-syntax-highlighter": "^15.5.0", + "react-tooltip": "^5.18.0", + "redux-persist": "^6.0.0", + "redux-persist-transform-filter": "^0.0.22", + "rehype-highlight": "^7.0.0", + "rehype-katex": "^7.0.0", + "rehype-wrap-all": "^1.1.0", + "remark-math": "^6.0.0", + "reselect": "^5.1.1", + "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", + "vscode-webview": "^1.0.1-beta.1" + }, + "devDependencies": { + "@swc/cli": "^0.3.14", + "@swc/core": "^1.7.26", + "@types/lodash": "^4.17.6", + "@types/node": "^20.5.6", + "@types/node-fetch": "^2.6.4", + "@types/react": "^18.0.27", + "@types/react-dom": "^18.0.10", + "@types/react-router-dom": "^5.3.3", + "@types/react-syntax-highlighter": "^15.5.7", + "@types/styled-components": "^5.1.26", + "@vitejs/plugin-react-swc": "^3.7.0", + "autoprefixer": "^10.4.13", + "postcss": "^8.4.21", + "tailwindcss": "^3.2.7", + "typescript": "^4.9.3", + "vite": "^4.1.0" + }, + "engines": { + "node": ">=20.11.0" + } + }, + "../core": { + "name": "@continuedev/core", + "version": "1.0.13", + "license": "Apache-2.0", + "dependencies": { + "@aws-sdk/client-bedrock-runtime": "^3.620.1", + "@aws-sdk/client-sagemaker-runtime": "^3.621.0", + "@aws-sdk/credential-providers": "^3.620.1", + "@continuedev/config-types": "^1.0.10", + "@continuedev/llm-info": "^1.0.2", + "@mozilla/readability": "^0.5.0", + "@octokit/rest": "^20.0.2", + "@typescript-eslint/eslint-plugin": "^7.8.0", + "@typescript-eslint/parser": "^7.8.0", + "@xenova/transformers": "2.14.0", + "adf-to-md": "^1.1.0", + "async-mutex": "^0.5.0", + "axios": "^1.6.7", + "cheerio": "^1.0.0-rc.12", + "commander": "^12.0.0", + "comment-json": "^4.2.3", + "dbinfoz": "^0.11.0", + "diff": "^7.0.0", + "dotenv": "^16.4.5", + "fastest-levenshtein": "^1.0.16", + "follow-redirects": "^1.15.5", + "handlebars": "^4.7.8", + "http-proxy-agent": "^7.0.1", + "https-proxy-agent": "^7.0.3", + "ignore": "^5.3.1", + "jinja-js": "0.1.8", + "js-tiktoken": "^1.0.8", + "jsdom": "^24.0.0", + "launchdarkly-node-client-sdk": "^3.2.0", + "llm-code-highlighter": "^0.0.14", + "mac-ca": "^3.1.0", + "node-fetch": "^3.3.2", + "node-html-markdown": "^1.3.0", + "ollama": "^0.4.6", + "onnxruntime-node": "1.14.0", + "openai": "^4.20.1", + "p-limit": "^6.1.0", + "pg": "^8.11.3", + "posthog-node": "^3.6.3", + "puppeteer": "^22.4.0", + "puppeteer-chromium-resolver": "^23.0.0", + "quick-lru": "^7.0.0", + "replicate": "^0.26.0", + "request": "^2.88.2", + "socket.io-client": "^4.7.3", + "sqlite": "^5.1.1", + "sqlite3": "^5.1.7", + "system-ca": "^1.0.3", + "tree-sitter-wasms": "^0.1.11", + "uuid": "^9.0.1", + "vectordb": "^0.4.20", + "web-tree-sitter": "^0.21.0", + "win-ca": "^3.5.1", + "workerpool": "^9.1.3", + "yaml": "^2.4.2", + "zod": "^3.23.8" + }, + "devDependencies": { + "@babel/preset-env": "^7.24.7", + "@biomejs/biome": "1.6.4", + "@google/generative-ai": "^0.11.4", + "@types/diff": "^5.2.2", + "@types/follow-redirects": "^1.14.4", + "@types/jest": "^29.5.12", + "@types/jquery": "^3.5.29", + "@types/jsdom": "^21.1.6", + "@types/mozilla-readability": "^0.2.1", + "@types/mustache": "^4.2.5", + "@types/node-fetch": "^2.6.11", + "@types/pg": "^8.11.6", + "@types/request": "^2.48.12", + "@types/uuid": "^9.0.7", + "@types/win-ca": "^3.5.4", + "cross-env": "^7.0.3", + "esbuild": "0.17.19", + "eslint": "^8", + "eslint-plugin-import": "^2.29.1", + "jest": "^29.7.0", + "jest-environment-jsdom": "^29.7.0", + "myers-diff": "^2.1.0", + "onnxruntime-common": "1.14.0", + "onnxruntime-web": "1.14.0", + "ts-jest": "^29.1.1" + }, + "engines": { + "node": ">=20.11.0" + } + }, + "node_modules/@alloc/quick-lru": { + "version": "5.2.0", + "resolved": "https://registry.npmjs.org/@alloc/quick-lru/-/quick-lru-5.2.0.tgz", + "integrity": "sha512-UrcABB+4bUrFABwbluTIBErXwvbsU/V7TZWfmbgJfbkwiBuziS9gxdODUyuiecfdGQ85jglMW6juS3+z5TsKLw==", + "dev": true, + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/@ampproject/remapping": { + "version": "2.3.0", + "resolved": "https://registry.npmjs.org/@ampproject/remapping/-/remapping-2.3.0.tgz", + "integrity": "sha512-30iZtAPgz+LTIYoeivqYo853f02jBYSd5uGnGpkFV0M3xOt9aN73erkgYAmZU43x4VfqcnLxW9Kpg3R5LC4YYw==", + "peer": true, + "dependencies": { + "@jridgewell/gen-mapping": "^0.3.5", + "@jridgewell/trace-mapping": "^0.3.24" + }, + "engines": { + "node": ">=6.0.0" + } + }, + "node_modules/@babel/code-frame": { + "version": "7.24.7", + "resolved": "https://registry.npmjs.org/@babel/code-frame/-/code-frame-7.24.7.tgz", + "integrity": "sha512-BcYH1CVJBO9tvyIZ2jVeXgSIMvGZ2FDRvDdOIVQyuklNKSsx+eppDEBq/g47Ayw+RqNFE+URvOShmf+f/qwAlA==", + "dependencies": { + "@babel/highlight": "^7.24.7", + "picocolors": "^1.0.0" + }, + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/@babel/compat-data": { + "version": "7.25.4", + "resolved": "https://registry.npmjs.org/@babel/compat-data/-/compat-data-7.25.4.tgz", + "integrity": "sha512-+LGRog6RAsCJrrrg/IO6LGmpphNe5DiK30dGjCoxxeGv49B10/3XYGxPsAwrDlMFcFEvdAUavDT8r9k/hSyQqQ==", + "peer": true, + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/@babel/core": { + "version": "7.25.2", + "resolved": "https://registry.npmjs.org/@babel/core/-/core-7.25.2.tgz", + "integrity": "sha512-BBt3opiCOxUr9euZ5/ro/Xv8/V7yJ5bjYMqG/C1YAo8MIKAnumZalCN+msbci3Pigy4lIQfPUpfMM27HMGaYEA==", + "peer": true, + "dependencies": { + "@ampproject/remapping": "^2.2.0", + "@babel/code-frame": "^7.24.7", + "@babel/generator": "^7.25.0", + "@babel/helper-compilation-targets": "^7.25.2", + "@babel/helper-module-transforms": "^7.25.2", + "@babel/helpers": "^7.25.0", + "@babel/parser": "^7.25.0", + "@babel/template": "^7.25.0", + "@babel/traverse": "^7.25.2", + "@babel/types": "^7.25.2", + "convert-source-map": "^2.0.0", + "debug": "^4.1.0", + "gensync": "^1.0.0-beta.2", + "json5": "^2.2.3", + "semver": "^6.3.1" + }, + "engines": { + "node": ">=6.9.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/babel" + } + }, + "node_modules/@babel/core/node_modules/semver": { + "version": "6.3.1", + "resolved": "https://registry.npmjs.org/semver/-/semver-6.3.1.tgz", + "integrity": "sha512-BR7VvDCVHO+q2xBEWskxS6DJE1qRnb7DxzUrogb71CWoSficBxYsiAGd+Kl0mmq/MprG9yArRkyrQxTO6XjMzA==", + "peer": true, + "bin": { + "semver": "bin/semver.js" + } + }, + "node_modules/@babel/generator": { + "version": "7.25.6", + "resolved": "https://registry.npmjs.org/@babel/generator/-/generator-7.25.6.tgz", + "integrity": "sha512-VPC82gr1seXOpkjAAKoLhP50vx4vGNlF4msF64dSFq1P8RfB+QAuJWGHPXXPc8QyfVWwwB/TNNU4+ayZmHNbZw==", + "dependencies": { + "@babel/types": "^7.25.6", + "@jridgewell/gen-mapping": "^0.3.5", + "@jridgewell/trace-mapping": "^0.3.25", + "jsesc": "^2.5.1" + }, + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/@babel/helper-annotate-as-pure": { + "version": "7.24.7", + "resolved": "https://registry.npmjs.org/@babel/helper-annotate-as-pure/-/helper-annotate-as-pure-7.24.7.tgz", + "integrity": "sha512-BaDeOonYvhdKw+JoMVkAixAAJzG2jVPIwWoKBPdYuY9b452e2rPuI9QPYh3KpofZ3pW2akOmwZLOiOsHMiqRAg==", + "dependencies": { + "@babel/types": "^7.24.7" + }, + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/@babel/helper-compilation-targets": { + "version": "7.25.2", + "resolved": "https://registry.npmjs.org/@babel/helper-compilation-targets/-/helper-compilation-targets-7.25.2.tgz", + "integrity": "sha512-U2U5LsSaZ7TAt3cfaymQ8WHh0pxvdHoEk6HVpaexxixjyEquMh0L0YNJNM6CTGKMXV1iksi0iZkGw4AcFkPaaw==", + "peer": true, + "dependencies": { + "@babel/compat-data": "^7.25.2", + "@babel/helper-validator-option": "^7.24.8", + "browserslist": "^4.23.1", + "lru-cache": "^5.1.1", + "semver": "^6.3.1" + }, + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/@babel/helper-compilation-targets/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==", + "peer": true, + "dependencies": { + "yallist": "^3.0.2" + } + }, + "node_modules/@babel/helper-compilation-targets/node_modules/semver": { + "version": "6.3.1", + "resolved": "https://registry.npmjs.org/semver/-/semver-6.3.1.tgz", + "integrity": "sha512-BR7VvDCVHO+q2xBEWskxS6DJE1qRnb7DxzUrogb71CWoSficBxYsiAGd+Kl0mmq/MprG9yArRkyrQxTO6XjMzA==", + "peer": true, + "bin": { + "semver": "bin/semver.js" + } + }, + "node_modules/@babel/helper-compilation-targets/node_modules/yallist": { + "version": "3.1.1", + "resolved": "https://registry.npmjs.org/yallist/-/yallist-3.1.1.tgz", + "integrity": "sha512-a4UGQaWPH59mOXUYnAG2ewncQS4i4F43Tv3JoAM+s2VDAmS9NsK8GpDMLrCHPksFT7h3K6TOoUNn2pb7RoXx4g==", + "peer": true + }, + "node_modules/@babel/helper-module-imports": { + "version": "7.24.7", + "resolved": "https://registry.npmjs.org/@babel/helper-module-imports/-/helper-module-imports-7.24.7.tgz", + "integrity": "sha512-8AyH3C+74cgCVVXow/myrynrAGv+nTVg5vKu2nZph9x7RcRwzmh0VFallJuFTZ9mx6u4eSdXZfcOzSqTUm0HCA==", + "dependencies": { + "@babel/traverse": "^7.24.7", + "@babel/types": "^7.24.7" + }, + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/@babel/helper-module-transforms": { + "version": "7.25.2", + "resolved": "https://registry.npmjs.org/@babel/helper-module-transforms/-/helper-module-transforms-7.25.2.tgz", + "integrity": "sha512-BjyRAbix6j/wv83ftcVJmBt72QtHI56C7JXZoG2xATiLpmoC7dpd8WnkikExHDVPpi/3qCmO6WY1EaXOluiecQ==", + "peer": true, + "dependencies": { + "@babel/helper-module-imports": "^7.24.7", + "@babel/helper-simple-access": "^7.24.7", + "@babel/helper-validator-identifier": "^7.24.7", + "@babel/traverse": "^7.25.2" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0" + } + }, + "node_modules/@babel/helper-plugin-utils": { + "version": "7.24.8", + "resolved": "https://registry.npmjs.org/@babel/helper-plugin-utils/-/helper-plugin-utils-7.24.8.tgz", + "integrity": "sha512-FFWx5142D8h2Mgr/iPVGH5G7w6jDn4jUSpZTyDnQO0Yn7Ks2Kuz6Pci8H6MPCoUJegd/UZQ3tAvfLCxQSnWWwg==", + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/@babel/helper-simple-access": { + "version": "7.24.7", + "resolved": "https://registry.npmjs.org/@babel/helper-simple-access/-/helper-simple-access-7.24.7.tgz", + "integrity": "sha512-zBAIvbCMh5Ts+b86r/CjU+4XGYIs+R1j951gxI3KmmxBMhCg4oQMsv6ZXQ64XOm/cvzfU1FmoCyt6+owc5QMYg==", + "peer": true, + "dependencies": { + "@babel/traverse": "^7.24.7", + "@babel/types": "^7.24.7" + }, + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/@babel/helper-string-parser": { + "version": "7.24.8", + "resolved": "https://registry.npmjs.org/@babel/helper-string-parser/-/helper-string-parser-7.24.8.tgz", + "integrity": "sha512-pO9KhhRcuUyGnJWwyEgnRJTSIZHiT+vMD0kPeD+so0l7mxkMT19g3pjY9GTnHySck/hDzq+dtW/4VgnMkippsQ==", + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/@babel/helper-validator-identifier": { + "version": "7.24.7", + "resolved": "https://registry.npmjs.org/@babel/helper-validator-identifier/-/helper-validator-identifier-7.24.7.tgz", + "integrity": "sha512-rR+PBcQ1SMQDDyF6X0wxtG8QyLCgUB0eRAGguqRLfkCA87l7yAP7ehq8SNj96OOGTO8OBV70KhuFYcIkHXOg0w==", + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/@babel/helper-validator-option": { + "version": "7.24.8", + "resolved": "https://registry.npmjs.org/@babel/helper-validator-option/-/helper-validator-option-7.24.8.tgz", + "integrity": "sha512-xb8t9tD1MHLungh/AIoWYN+gVHaB9kwlu8gffXGSt3FFEIT7RjS+xWbc2vUD1UTZdIpKj/ab3rdqJ7ufngyi2Q==", + "peer": true, + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/@babel/helpers": { + "version": "7.25.6", + "resolved": "https://registry.npmjs.org/@babel/helpers/-/helpers-7.25.6.tgz", + "integrity": "sha512-Xg0tn4HcfTijTwfDwYlvVCl43V6h4KyVVX2aEm4qdO/PC6L2YvzLHFdmxhoeSA3eslcE6+ZVXHgWwopXYLNq4Q==", + "peer": true, + "dependencies": { + "@babel/template": "^7.25.0", + "@babel/types": "^7.25.6" + }, + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/@babel/highlight": { + "version": "7.24.7", + "resolved": "https://registry.npmjs.org/@babel/highlight/-/highlight-7.24.7.tgz", + "integrity": "sha512-EStJpq4OuY8xYfhGVXngigBJRWxftKX9ksiGDnmlY3o7B/V7KIAc9X4oiK87uPJSc/vs5L869bem5fhZa8caZw==", + "dependencies": { + "@babel/helper-validator-identifier": "^7.24.7", + "chalk": "^2.4.2", + "js-tokens": "^4.0.0", + "picocolors": "^1.0.0" + }, + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/@babel/parser": { + "version": "7.25.6", + "resolved": "https://registry.npmjs.org/@babel/parser/-/parser-7.25.6.tgz", + "integrity": "sha512-trGdfBdbD0l1ZPmcJ83eNxB9rbEax4ALFTF7fN386TMYbeCQbyme5cOEXQhbGXKebwGaB/J52w1mrklMcbgy6Q==", + "dependencies": { + "@babel/types": "^7.25.6" + }, + "bin": { + "parser": "bin/babel-parser.js" + }, + "engines": { + "node": ">=6.0.0" + } + }, + "node_modules/@babel/plugin-syntax-jsx": { + "version": "7.24.7", + "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-jsx/-/plugin-syntax-jsx-7.24.7.tgz", + "integrity": "sha512-6ddciUPe/mpMnOKv/U+RSd2vvVy+Yw/JfBB0ZHYjEZt9NLHmCUylNYlsbqCCS1Bffjlb0fCwC9Vqz+sBz6PsiQ==", + "dependencies": { + "@babel/helper-plugin-utils": "^7.24.7" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/runtime": { + "version": "7.25.6", + "resolved": "https://registry.npmjs.org/@babel/runtime/-/runtime-7.25.6.tgz", + "integrity": "sha512-VBj9MYyDb9tuLq7yzqjgzt6Q+IBQLrGZfdjOekyEirZPHxXWoTSGUTMrpsfi58Up73d13NfYLv8HT9vmznjzhQ==", + "dependencies": { + "regenerator-runtime": "^0.14.0" + }, + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/@babel/template": { + "version": "7.25.0", + "resolved": "https://registry.npmjs.org/@babel/template/-/template-7.25.0.tgz", + "integrity": "sha512-aOOgh1/5XzKvg1jvVz7AVrx2piJ2XBi227DHmbY6y+bM9H2FlN+IfecYu4Xl0cNiiVejlsCri89LUsbj8vJD9Q==", + "dependencies": { + "@babel/code-frame": "^7.24.7", + "@babel/parser": "^7.25.0", + "@babel/types": "^7.25.0" + }, + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/@babel/traverse": { + "version": "7.25.6", + "resolved": "https://registry.npmjs.org/@babel/traverse/-/traverse-7.25.6.tgz", + "integrity": "sha512-9Vrcx5ZW6UwK5tvqsj0nGpp/XzqthkT0dqIc9g1AdtygFToNtTF67XzYS//dm+SAK9cp3B9R4ZO/46p63SCjlQ==", + "dependencies": { + "@babel/code-frame": "^7.24.7", + "@babel/generator": "^7.25.6", + "@babel/parser": "^7.25.6", + "@babel/template": "^7.25.0", + "@babel/types": "^7.25.6", + "debug": "^4.3.1", + "globals": "^11.1.0" + }, + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/@babel/types": { + "version": "7.25.6", + "resolved": "https://registry.npmjs.org/@babel/types/-/types-7.25.6.tgz", + "integrity": "sha512-/l42B1qxpG6RdfYf343Uw1vmDjeNhneUXtzhojE7pDgfpEypmRhI6j1kr17XCVv4Cgl9HdAiQY2x0GwKm7rWCw==", + "dependencies": { + "@babel/helper-string-parser": "^7.24.8", + "@babel/helper-validator-identifier": "^7.24.7", + "to-fast-properties": "^2.0.0" + }, + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/@emotion/is-prop-valid": { + "version": "1.3.1", + "resolved": "https://registry.npmjs.org/@emotion/is-prop-valid/-/is-prop-valid-1.3.1.tgz", + "integrity": "sha512-/ACwoqx7XQi9knQs/G0qKvv5teDMhD7bXYns9N/wM8ah8iNb8jZ2uNO0YOgiq2o2poIvVtJS2YALasQuMSQ7Kw==", + "dependencies": { + "@emotion/memoize": "^0.9.0" + } + }, + "node_modules/@emotion/memoize": { + "version": "0.9.0", + "resolved": "https://registry.npmjs.org/@emotion/memoize/-/memoize-0.9.0.tgz", + "integrity": "sha512-30FAj7/EoJ5mwVPOWhAyCX+FPfMDrVecJAM+Iw9NRoSl4BBAQeqj4cApHHUXOVvIPgLVDsCFoz/hGD+5QQD1GQ==" + }, + "node_modules/@emotion/stylis": { + "version": "0.8.5", + "resolved": "https://registry.npmjs.org/@emotion/stylis/-/stylis-0.8.5.tgz", + "integrity": "sha512-h6KtPihKFn3T9fuIrwvXXUOwlx3rfUvfZIcP5a6rh8Y7zjE3O06hT5Ss4S/YI1AYhuZ1kjaE/5EaOOI2NqSylQ==" + }, + "node_modules/@emotion/unitless": { + "version": "0.7.5", + "resolved": "https://registry.npmjs.org/@emotion/unitless/-/unitless-0.7.5.tgz", + "integrity": "sha512-OWORNpfjMsSSUBVrRBVGECkhWcULOAJz9ZW8uK9qgxD+87M7jHRcvh/A96XXNhXTLmKcoYSQtBEX7lHMO7YRwg==" + }, + "node_modules/@esbuild/android-arm": { + "version": "0.18.20", + "resolved": "https://registry.npmjs.org/@esbuild/android-arm/-/android-arm-0.18.20.tgz", + "integrity": "sha512-fyi7TDI/ijKKNZTUJAQqiG5T7YjJXgnzkURqmGj13C6dCqckZBLdl4h7bkhHt/t0WP+zO9/zwroDvANaOqO5Sw==", + "cpu": [ + "arm" + ], + "dev": true, + "optional": true, + "os": [ + "android" + ], + "engines": { + "node": ">=12" + } + }, + "node_modules/@esbuild/android-arm64": { + "version": "0.18.20", + "resolved": "https://registry.npmjs.org/@esbuild/android-arm64/-/android-arm64-0.18.20.tgz", + "integrity": "sha512-Nz4rJcchGDtENV0eMKUNa6L12zz2zBDXuhj/Vjh18zGqB44Bi7MBMSXjgunJgjRhCmKOjnPuZp4Mb6OKqtMHLQ==", + "cpu": [ + "arm64" + ], + "dev": true, + "optional": true, + "os": [ + "android" + ], + "engines": { + "node": ">=12" + } + }, + "node_modules/@esbuild/android-x64": { + "version": "0.18.20", + "resolved": "https://registry.npmjs.org/@esbuild/android-x64/-/android-x64-0.18.20.tgz", + "integrity": "sha512-8GDdlePJA8D6zlZYJV/jnrRAi6rOiNaCC/JclcXpB+KIuvfBN4owLtgzY2bsxnx666XjJx2kDPUmnTtR8qKQUg==", + "cpu": [ + "x64" + ], + "dev": true, + "optional": true, + "os": [ + "android" + ], + "engines": { + "node": ">=12" + } + }, + "node_modules/@esbuild/darwin-arm64": { + "version": "0.18.20", + "resolved": "https://registry.npmjs.org/@esbuild/darwin-arm64/-/darwin-arm64-0.18.20.tgz", + "integrity": "sha512-bxRHW5kHU38zS2lPTPOyuyTm+S+eobPUnTNkdJEfAddYgEcll4xkT8DB9d2008DtTbl7uJag2HuE5NZAZgnNEA==", + "cpu": [ + "arm64" + ], + "dev": true, + "optional": true, + "os": [ + "darwin" + ], + "engines": { + "node": ">=12" + } + }, + "node_modules/@esbuild/darwin-x64": { + "version": "0.18.20", + "resolved": "https://registry.npmjs.org/@esbuild/darwin-x64/-/darwin-x64-0.18.20.tgz", + "integrity": "sha512-pc5gxlMDxzm513qPGbCbDukOdsGtKhfxD1zJKXjCCcU7ju50O7MeAZ8c4krSJcOIJGFR+qx21yMMVYwiQvyTyQ==", + "cpu": [ + "x64" + ], + "dev": true, + "optional": true, + "os": [ + "darwin" + ], + "engines": { + "node": ">=12" + } + }, + "node_modules/@esbuild/freebsd-arm64": { + "version": "0.18.20", + "resolved": "https://registry.npmjs.org/@esbuild/freebsd-arm64/-/freebsd-arm64-0.18.20.tgz", + "integrity": "sha512-yqDQHy4QHevpMAaxhhIwYPMv1NECwOvIpGCZkECn8w2WFHXjEwrBn3CeNIYsibZ/iZEUemj++M26W3cNR5h+Tw==", + "cpu": [ + "arm64" + ], + "dev": true, + "optional": true, + "os": [ + "freebsd" + ], + "engines": { + "node": ">=12" + } + }, + "node_modules/@esbuild/freebsd-x64": { + "version": "0.18.20", + "resolved": "https://registry.npmjs.org/@esbuild/freebsd-x64/-/freebsd-x64-0.18.20.tgz", + "integrity": "sha512-tgWRPPuQsd3RmBZwarGVHZQvtzfEBOreNuxEMKFcd5DaDn2PbBxfwLcj4+aenoh7ctXcbXmOQIn8HI6mCSw5MQ==", + "cpu": [ + "x64" + ], + "dev": true, + "optional": true, + "os": [ + "freebsd" + ], + "engines": { + "node": ">=12" + } + }, + "node_modules/@esbuild/linux-arm": { + "version": "0.18.20", + "resolved": "https://registry.npmjs.org/@esbuild/linux-arm/-/linux-arm-0.18.20.tgz", + "integrity": "sha512-/5bHkMWnq1EgKr1V+Ybz3s1hWXok7mDFUMQ4cG10AfW3wL02PSZi5kFpYKrptDsgb2WAJIvRcDm+qIvXf/apvg==", + "cpu": [ + "arm" + ], + "dev": true, + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": ">=12" + } + }, + "node_modules/@esbuild/linux-arm64": { + "version": "0.18.20", + "resolved": "https://registry.npmjs.org/@esbuild/linux-arm64/-/linux-arm64-0.18.20.tgz", + "integrity": "sha512-2YbscF+UL7SQAVIpnWvYwM+3LskyDmPhe31pE7/aoTMFKKzIc9lLbyGUpmmb8a8AixOL61sQ/mFh3jEjHYFvdA==", + "cpu": [ + "arm64" + ], + "dev": true, + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": ">=12" + } + }, + "node_modules/@esbuild/linux-ia32": { + "version": "0.18.20", + "resolved": "https://registry.npmjs.org/@esbuild/linux-ia32/-/linux-ia32-0.18.20.tgz", + "integrity": "sha512-P4etWwq6IsReT0E1KHU40bOnzMHoH73aXp96Fs8TIT6z9Hu8G6+0SHSw9i2isWrD2nbx2qo5yUqACgdfVGx7TA==", + "cpu": [ + "ia32" + ], + "dev": true, + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": ">=12" + } + }, + "node_modules/@esbuild/linux-loong64": { + "version": "0.18.20", + "resolved": "https://registry.npmjs.org/@esbuild/linux-loong64/-/linux-loong64-0.18.20.tgz", + "integrity": "sha512-nXW8nqBTrOpDLPgPY9uV+/1DjxoQ7DoB2N8eocyq8I9XuqJ7BiAMDMf9n1xZM9TgW0J8zrquIb/A7s3BJv7rjg==", + "cpu": [ + "loong64" + ], + "dev": true, + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": ">=12" + } + }, + "node_modules/@esbuild/linux-mips64el": { + "version": "0.18.20", + "resolved": "https://registry.npmjs.org/@esbuild/linux-mips64el/-/linux-mips64el-0.18.20.tgz", + "integrity": "sha512-d5NeaXZcHp8PzYy5VnXV3VSd2D328Zb+9dEq5HE6bw6+N86JVPExrA6O68OPwobntbNJ0pzCpUFZTo3w0GyetQ==", + "cpu": [ + "mips64el" + ], + "dev": true, + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": ">=12" + } + }, + "node_modules/@esbuild/linux-ppc64": { + "version": "0.18.20", + "resolved": "https://registry.npmjs.org/@esbuild/linux-ppc64/-/linux-ppc64-0.18.20.tgz", + "integrity": "sha512-WHPyeScRNcmANnLQkq6AfyXRFr5D6N2sKgkFo2FqguP44Nw2eyDlbTdZwd9GYk98DZG9QItIiTlFLHJHjxP3FA==", + "cpu": [ + "ppc64" + ], + "dev": true, + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": ">=12" + } + }, + "node_modules/@esbuild/linux-riscv64": { + "version": "0.18.20", + "resolved": "https://registry.npmjs.org/@esbuild/linux-riscv64/-/linux-riscv64-0.18.20.tgz", + "integrity": "sha512-WSxo6h5ecI5XH34KC7w5veNnKkju3zBRLEQNY7mv5mtBmrP/MjNBCAlsM2u5hDBlS3NGcTQpoBvRzqBcRtpq1A==", + "cpu": [ + "riscv64" + ], + "dev": true, + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": ">=12" + } + }, + "node_modules/@esbuild/linux-s390x": { + "version": "0.18.20", + "resolved": "https://registry.npmjs.org/@esbuild/linux-s390x/-/linux-s390x-0.18.20.tgz", + "integrity": "sha512-+8231GMs3mAEth6Ja1iK0a1sQ3ohfcpzpRLH8uuc5/KVDFneH6jtAJLFGafpzpMRO6DzJ6AvXKze9LfFMrIHVQ==", + "cpu": [ + "s390x" + ], + "dev": true, + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": ">=12" + } + }, + "node_modules/@esbuild/linux-x64": { + "version": "0.18.20", + "resolved": "https://registry.npmjs.org/@esbuild/linux-x64/-/linux-x64-0.18.20.tgz", + "integrity": "sha512-UYqiqemphJcNsFEskc73jQ7B9jgwjWrSayxawS6UVFZGWrAAtkzjxSqnoclCXxWtfwLdzU+vTpcNYhpn43uP1w==", + "cpu": [ + "x64" + ], + "dev": true, + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": ">=12" + } + }, + "node_modules/@esbuild/netbsd-x64": { + "version": "0.18.20", + "resolved": "https://registry.npmjs.org/@esbuild/netbsd-x64/-/netbsd-x64-0.18.20.tgz", + "integrity": "sha512-iO1c++VP6xUBUmltHZoMtCUdPlnPGdBom6IrO4gyKPFFVBKioIImVooR5I83nTew5UOYrk3gIJhbZh8X44y06A==", + "cpu": [ + "x64" + ], + "dev": true, + "optional": true, + "os": [ + "netbsd" + ], + "engines": { + "node": ">=12" + } + }, + "node_modules/@esbuild/openbsd-x64": { + "version": "0.18.20", + "resolved": "https://registry.npmjs.org/@esbuild/openbsd-x64/-/openbsd-x64-0.18.20.tgz", + "integrity": "sha512-e5e4YSsuQfX4cxcygw/UCPIEP6wbIL+se3sxPdCiMbFLBWu0eiZOJ7WoD+ptCLrmjZBK1Wk7I6D/I3NglUGOxg==", + "cpu": [ + "x64" + ], + "dev": true, + "optional": true, + "os": [ + "openbsd" + ], + "engines": { + "node": ">=12" + } + }, + "node_modules/@esbuild/sunos-x64": { + "version": "0.18.20", + "resolved": "https://registry.npmjs.org/@esbuild/sunos-x64/-/sunos-x64-0.18.20.tgz", + "integrity": "sha512-kDbFRFp0YpTQVVrqUd5FTYmWo45zGaXe0X8E1G/LKFC0v8x0vWrhOWSLITcCn63lmZIxfOMXtCfti/RxN/0wnQ==", + "cpu": [ + "x64" + ], + "dev": true, + "optional": true, + "os": [ + "sunos" + ], + "engines": { + "node": ">=12" + } + }, + "node_modules/@esbuild/win32-arm64": { + "version": "0.18.20", + "resolved": "https://registry.npmjs.org/@esbuild/win32-arm64/-/win32-arm64-0.18.20.tgz", + "integrity": "sha512-ddYFR6ItYgoaq4v4JmQQaAI5s7npztfV4Ag6NrhiaW0RrnOXqBkgwZLofVTlq1daVTQNhtI5oieTvkRPfZrePg==", + "cpu": [ + "arm64" + ], + "dev": true, + "optional": true, + "os": [ + "win32" + ], + "engines": { + "node": ">=12" + } + }, + "node_modules/@esbuild/win32-ia32": { + "version": "0.18.20", + "resolved": "https://registry.npmjs.org/@esbuild/win32-ia32/-/win32-ia32-0.18.20.tgz", + "integrity": "sha512-Wv7QBi3ID/rROT08SABTS7eV4hX26sVduqDOTe1MvGMjNd3EjOz4b7zeexIR62GTIEKrfJXKL9LFxTYgkyeu7g==", + "cpu": [ + "ia32" + ], + "dev": true, + "optional": true, + "os": [ + "win32" + ], + "engines": { + "node": ">=12" + } + }, + "node_modules/@esbuild/win32-x64": { + "version": "0.18.20", + "resolved": "https://registry.npmjs.org/@esbuild/win32-x64/-/win32-x64-0.18.20.tgz", + "integrity": "sha512-kTdfRcSiDfQca/y9QIkng02avJ+NCaQvrMejlsB3RRv5sE9rRoeBPISaZpKxHELzRxZyLvNts1P27W3wV+8geQ==", + "cpu": [ + "x64" + ], + "dev": true, + "optional": true, + "os": [ + "win32" + ], + "engines": { + "node": ">=12" + } + }, + "node_modules/@floating-ui/core": { + "version": "1.6.8", + "resolved": "https://registry.npmjs.org/@floating-ui/core/-/core-1.6.8.tgz", + "integrity": "sha512-7XJ9cPU+yI2QeLS+FCSlqNFZJq8arvswefkZrYI1yQBbftw6FyrZOxYSh+9S7z7TpeWlRt9zJ5IhM1WIL334jA==", + "dependencies": { + "@floating-ui/utils": "^0.2.8" + } + }, + "node_modules/@floating-ui/dom": { + "version": "1.6.11", + "resolved": "https://registry.npmjs.org/@floating-ui/dom/-/dom-1.6.11.tgz", + "integrity": "sha512-qkMCxSR24v2vGkhYDo/UzxfJN3D4syqSjyuTFz6C7XcpU1pASPRieNI0Kj5VP3/503mOfYiGY891ugBX1GlABQ==", + "dependencies": { + "@floating-ui/core": "^1.6.0", + "@floating-ui/utils": "^0.2.8" + } + }, + "node_modules/@floating-ui/utils": { + "version": "0.2.8", + "resolved": "https://registry.npmjs.org/@floating-ui/utils/-/utils-0.2.8.tgz", + "integrity": "sha512-kym7SodPp8/wloecOpcmSnWJsK7M0E5Wg8UcFA+uO4B9s5d0ywXOEro/8HM9x0rW+TljRzul/14UYz3TleT3ig==" + }, + "node_modules/@headlessui/react": { + "version": "1.7.19", + "resolved": "https://registry.npmjs.org/@headlessui/react/-/react-1.7.19.tgz", + "integrity": "sha512-Ll+8q3OlMJfJbAKM/+/Y2q6PPYbryqNTXDbryx7SXLIDamkF6iQFbriYHga0dY44PvDhvvBWCx1Xj4U5+G4hOw==", + "dependencies": { + "@tanstack/react-virtual": "^3.0.0-beta.60", + "client-only": "^0.0.1" + }, + "engines": { + "node": ">=10" + }, + "peerDependencies": { + "react": "^16 || ^17 || ^18", + "react-dom": "^16 || ^17 || ^18" + } + }, + "node_modules/@heroicons/react": { + "version": "2.1.5", + "resolved": "https://registry.npmjs.org/@heroicons/react/-/react-2.1.5.tgz", + "integrity": "sha512-FuzFN+BsHa+7OxbvAERtgBTNeZpUjgM/MIizfVkSCL2/edriN0Hx/DWRCR//aPYwO5QX/YlgLGXk+E3PcfZwjA==", + "peerDependencies": { + "react": ">= 16" + } + }, + "node_modules/@isaacs/cliui": { + "version": "8.0.2", + "resolved": "https://registry.npmjs.org/@isaacs/cliui/-/cliui-8.0.2.tgz", + "integrity": "sha512-O8jcjabXaleOG9DQ0+ARXWZBTfnP4WNAqzuiJK7ll44AmxGKv/J2M4TPjxjY3znBCfvBXFzucm1twdyFybFqEA==", + "dev": true, + "dependencies": { + "string-width": "^5.1.2", + "string-width-cjs": "npm:string-width@^4.2.0", + "strip-ansi": "^7.0.1", + "strip-ansi-cjs": "npm:strip-ansi@^6.0.1", + "wrap-ansi": "^8.1.0", + "wrap-ansi-cjs": "npm:wrap-ansi@^7.0.0" + }, + "engines": { + "node": ">=12" + } + }, + "node_modules/@isaacs/cliui/node_modules/ansi-regex": { + "version": "6.1.0", + "resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-6.1.0.tgz", + "integrity": "sha512-7HSX4QQb4CspciLpVFwyRe79O3xsIZDDLER21kERQ71oaPodF8jL725AgJMFAYbooIqolJoRLuM81SpeUkpkvA==", + "dev": true, + "engines": { + "node": ">=12" + }, + "funding": { + "url": "https://github.com/chalk/ansi-regex?sponsor=1" + } + }, + "node_modules/@isaacs/cliui/node_modules/emoji-regex": { + "version": "9.2.2", + "resolved": "https://registry.npmjs.org/emoji-regex/-/emoji-regex-9.2.2.tgz", + "integrity": "sha512-L18DaJsXSUk2+42pv8mLs5jJT2hqFkFE4j21wOmgbUqsZ2hL72NsUU785g9RXgo3s0ZNgVl42TiHp3ZtOv/Vyg==", + "dev": true + }, + "node_modules/@isaacs/cliui/node_modules/string-width": { + "version": "5.1.2", + "resolved": "https://registry.npmjs.org/string-width/-/string-width-5.1.2.tgz", + "integrity": "sha512-HnLOCR3vjcY8beoNLtcjZ5/nxn2afmME6lhrDrebokqMap+XbeW8n9TXpPDOqdGK5qcI3oT0GKTW6wC7EMiVqA==", + "dev": true, + "dependencies": { + "eastasianwidth": "^0.2.0", + "emoji-regex": "^9.2.2", + "strip-ansi": "^7.0.1" + }, + "engines": { + "node": ">=12" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/@isaacs/cliui/node_modules/strip-ansi": { + "version": "7.1.0", + "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-7.1.0.tgz", + "integrity": "sha512-iq6eVVI64nQQTRYq2KtEg2d2uU7LElhTJwsH4YzIHZshxlgZms/wIc4VoDQTlG/IvVIrBKG06CrZnp0qv7hkcQ==", + "dev": true, + "dependencies": { + "ansi-regex": "^6.0.1" + }, + "engines": { + "node": ">=12" + }, + "funding": { + "url": "https://github.com/chalk/strip-ansi?sponsor=1" + } + }, + "node_modules/@jridgewell/gen-mapping": { + "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.2.1", + "@jridgewell/sourcemap-codec": "^1.4.10", + "@jridgewell/trace-mapping": "^0.3.24" + }, + "engines": { + "node": ">=6.0.0" + } + }, + "node_modules/@jridgewell/resolve-uri": { + "version": "3.1.2", + "resolved": "https://registry.npmjs.org/@jridgewell/resolve-uri/-/resolve-uri-3.1.2.tgz", + "integrity": "sha512-bRISgCIjP20/tbWSPWMEi54QVPRZExkuD9lJL+UIxUKtwVJA8wW1Trb1jMs1RFXo1CBTNZ/5hpC9QvmKWdopKw==", + "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==", + "engines": { + "node": ">=6.0.0" + } + }, + "node_modules/@jridgewell/sourcemap-codec": { + "version": "1.5.0", + "resolved": "https://registry.npmjs.org/@jridgewell/sourcemap-codec/-/sourcemap-codec-1.5.0.tgz", + "integrity": "sha512-gv3ZRaISU3fjPAgNsriBRqGWQL6quFx04YMPW/zD8XMLsU32mhCCbfbO6KZFLjvYpCZ8zyDEgqsgf+PwPaM7GQ==" + }, + "node_modules/@jridgewell/trace-mapping": { + "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" + } + }, + "node_modules/@mapbox/hast-util-table-cell-style": { + "version": "0.2.1", + "resolved": "https://registry.npmjs.org/@mapbox/hast-util-table-cell-style/-/hast-util-table-cell-style-0.2.1.tgz", + "integrity": "sha512-LyQz4XJIdCdY/+temIhD/Ed0x/p4GAOUycpFSEK2Ads1CPKZy6b7V/2ROEtQiLLQ8soIs0xe/QAoR6kwpyW/yw==", + "dependencies": { + "unist-util-visit": "^1.4.1" + }, + "engines": { + "node": ">=12" + } + }, + "node_modules/@mapbox/hast-util-table-cell-style/node_modules/unist-util-is": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/unist-util-is/-/unist-util-is-3.0.0.tgz", + "integrity": "sha512-sVZZX3+kspVNmLWBPAB6r+7D9ZgAFPNWm66f7YNb420RlQSbn+n8rG8dGZSkrER7ZIXGQYNm5pqC3v3HopH24A==" + }, + "node_modules/@mapbox/hast-util-table-cell-style/node_modules/unist-util-visit": { + "version": "1.4.1", + "resolved": "https://registry.npmjs.org/unist-util-visit/-/unist-util-visit-1.4.1.tgz", + "integrity": "sha512-AvGNk7Bb//EmJZyhtRUnNMEpId/AZ5Ph/KUpTI09WHQuDZHKovQ1oEv3mfmKpWKtoMzyMC4GLBm1Zy5k12fjIw==", + "dependencies": { + "unist-util-visit-parents": "^2.0.0" + } + }, + "node_modules/@mapbox/hast-util-table-cell-style/node_modules/unist-util-visit-parents": { + "version": "2.1.2", + "resolved": "https://registry.npmjs.org/unist-util-visit-parents/-/unist-util-visit-parents-2.1.2.tgz", + "integrity": "sha512-DyN5vD4NE3aSeB+PXYNKxzGsfocxp6asDc2XXE3b0ekO2BaRUpBicbbUygfSvYfUz1IkmjFR1YF7dPklraMZ2g==", + "dependencies": { + "unist-util-is": "^3.0.0" + } + }, + "node_modules/@mole-inc/bin-wrapper": { + "version": "8.0.1", + "resolved": "https://registry.npmjs.org/@mole-inc/bin-wrapper/-/bin-wrapper-8.0.1.tgz", + "integrity": "sha512-sTGoeZnjI8N4KS+sW2AN95gDBErhAguvkw/tWdCjeM8bvxpz5lqrnd0vOJABA1A+Ic3zED7PYoLP/RANLgVotA==", + "dev": true, + "dependencies": { + "bin-check": "^4.1.0", + "bin-version-check": "^5.0.0", + "content-disposition": "^0.5.4", + "ext-name": "^5.0.0", + "file-type": "^17.1.6", + "filenamify": "^5.0.2", + "got": "^11.8.5", + "os-filter-obj": "^2.0.0" + }, + "engines": { + "node": "^12.20.0 || ^14.13.1 || >=16.0.0" + } + }, + "node_modules/@monaco-editor/loader": { + "version": "1.4.0", + "resolved": "https://registry.npmjs.org/@monaco-editor/loader/-/loader-1.4.0.tgz", + "integrity": "sha512-00ioBig0x642hytVspPl7DbQyaSWRaolYie/UFNjoTdvoKPzo6xrXLhTk9ixgIKcLH5b5vDOjVNiGyY+uDCUlg==", + "dependencies": { + "state-local": "^1.0.6" + }, + "peerDependencies": { + "monaco-editor": ">= 0.21.0 < 1" + } + }, + "node_modules/@monaco-editor/react": { + "version": "4.6.0", + "resolved": "https://registry.npmjs.org/@monaco-editor/react/-/react-4.6.0.tgz", + "integrity": "sha512-RFkU9/i7cN2bsq/iTkurMWOEErmYcY6JiQI3Jn+WeR/FGISH8JbHERjpS9oRuSOPvDMJI0Z8nJeKkbOs9sBYQw==", + "dependencies": { + "@monaco-editor/loader": "^1.4.0" + }, + "peerDependencies": { + "monaco-editor": ">= 0.25.0 < 1", + "react": "^16.8.0 || ^17.0.0 || ^18.0.0", + "react-dom": "^16.8.0 || ^17.0.0 || ^18.0.0" + } + }, + "node_modules/@napi-rs/nice": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/@napi-rs/nice/-/nice-1.0.1.tgz", + "integrity": "sha512-zM0mVWSXE0a0h9aKACLwKmD6nHcRiKrPpCfvaKqG1CqDEyjEawId0ocXxVzPMCAm6kkWr2P025msfxXEnt8UGQ==", + "dev": true, + "optional": true, + "engines": { + "node": ">= 10" + }, + "funding": { + "type": "github", + "url": "https://github.com/sponsors/Brooooooklyn" + }, + "optionalDependencies": { + "@napi-rs/nice-android-arm-eabi": "1.0.1", + "@napi-rs/nice-android-arm64": "1.0.1", + "@napi-rs/nice-darwin-arm64": "1.0.1", + "@napi-rs/nice-darwin-x64": "1.0.1", + "@napi-rs/nice-freebsd-x64": "1.0.1", + "@napi-rs/nice-linux-arm-gnueabihf": "1.0.1", + "@napi-rs/nice-linux-arm64-gnu": "1.0.1", + "@napi-rs/nice-linux-arm64-musl": "1.0.1", + "@napi-rs/nice-linux-ppc64-gnu": "1.0.1", + "@napi-rs/nice-linux-riscv64-gnu": "1.0.1", + "@napi-rs/nice-linux-s390x-gnu": "1.0.1", + "@napi-rs/nice-linux-x64-gnu": "1.0.1", + "@napi-rs/nice-linux-x64-musl": "1.0.1", + "@napi-rs/nice-win32-arm64-msvc": "1.0.1", + "@napi-rs/nice-win32-ia32-msvc": "1.0.1", + "@napi-rs/nice-win32-x64-msvc": "1.0.1" + } + }, + "node_modules/@napi-rs/nice-android-arm-eabi": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/@napi-rs/nice-android-arm-eabi/-/nice-android-arm-eabi-1.0.1.tgz", + "integrity": "sha512-5qpvOu5IGwDo7MEKVqqyAxF90I6aLj4n07OzpARdgDRfz8UbBztTByBp0RC59r3J1Ij8uzYi6jI7r5Lws7nn6w==", + "cpu": [ + "arm" + ], + "dev": true, + "optional": true, + "os": [ + "android" + ], + "engines": { + "node": ">= 10" + } + }, + "node_modules/@napi-rs/nice-android-arm64": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/@napi-rs/nice-android-arm64/-/nice-android-arm64-1.0.1.tgz", + "integrity": "sha512-GqvXL0P8fZ+mQqG1g0o4AO9hJjQaeYG84FRfZaYjyJtZZZcMjXW5TwkL8Y8UApheJgyE13TQ4YNUssQaTgTyvA==", + "cpu": [ + "arm64" + ], + "dev": true, + "optional": true, + "os": [ + "android" + ], + "engines": { + "node": ">= 10" + } + }, + "node_modules/@napi-rs/nice-darwin-arm64": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/@napi-rs/nice-darwin-arm64/-/nice-darwin-arm64-1.0.1.tgz", + "integrity": "sha512-91k3HEqUl2fsrz/sKkuEkscj6EAj3/eZNCLqzD2AA0TtVbkQi8nqxZCZDMkfklULmxLkMxuUdKe7RvG/T6s2AA==", + "cpu": [ + "arm64" + ], + "dev": true, + "optional": true, + "os": [ + "darwin" + ], + "engines": { + "node": ">= 10" + } + }, + "node_modules/@napi-rs/nice-darwin-x64": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/@napi-rs/nice-darwin-x64/-/nice-darwin-x64-1.0.1.tgz", + "integrity": "sha512-jXnMleYSIR/+TAN/p5u+NkCA7yidgswx5ftqzXdD5wgy/hNR92oerTXHc0jrlBisbd7DpzoaGY4cFD7Sm5GlgQ==", + "cpu": [ + "x64" + ], + "dev": true, + "optional": true, + "os": [ + "darwin" + ], + "engines": { + "node": ">= 10" + } + }, + "node_modules/@napi-rs/nice-freebsd-x64": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/@napi-rs/nice-freebsd-x64/-/nice-freebsd-x64-1.0.1.tgz", + "integrity": "sha512-j+iJ/ezONXRQsVIB/FJfwjeQXX7A2tf3gEXs4WUGFrJjpe/z2KB7sOv6zpkm08PofF36C9S7wTNuzHZ/Iiccfw==", + "cpu": [ + "x64" + ], + "dev": true, + "optional": true, + "os": [ + "freebsd" + ], + "engines": { + "node": ">= 10" + } + }, + "node_modules/@napi-rs/nice-linux-arm-gnueabihf": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/@napi-rs/nice-linux-arm-gnueabihf/-/nice-linux-arm-gnueabihf-1.0.1.tgz", + "integrity": "sha512-G8RgJ8FYXYkkSGQwywAUh84m946UTn6l03/vmEXBYNJxQJcD+I3B3k5jmjFG/OPiU8DfvxutOP8bi+F89MCV7Q==", + "cpu": [ + "arm" + ], + "dev": true, + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": ">= 10" + } + }, + "node_modules/@napi-rs/nice-linux-arm64-gnu": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/@napi-rs/nice-linux-arm64-gnu/-/nice-linux-arm64-gnu-1.0.1.tgz", + "integrity": "sha512-IMDak59/W5JSab1oZvmNbrms3mHqcreaCeClUjwlwDr0m3BoR09ZiN8cKFBzuSlXgRdZ4PNqCYNeGQv7YMTjuA==", + "cpu": [ + "arm64" + ], + "dev": true, + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": ">= 10" + } + }, + "node_modules/@napi-rs/nice-linux-arm64-musl": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/@napi-rs/nice-linux-arm64-musl/-/nice-linux-arm64-musl-1.0.1.tgz", + "integrity": "sha512-wG8fa2VKuWM4CfjOjjRX9YLIbysSVV1S3Kgm2Fnc67ap/soHBeYZa6AGMeR5BJAylYRjnoVOzV19Cmkco3QEPw==", + "cpu": [ + "arm64" + ], + "dev": true, + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": ">= 10" + } + }, + "node_modules/@napi-rs/nice-linux-ppc64-gnu": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/@napi-rs/nice-linux-ppc64-gnu/-/nice-linux-ppc64-gnu-1.0.1.tgz", + "integrity": "sha512-lxQ9WrBf0IlNTCA9oS2jg/iAjQyTI6JHzABV664LLrLA/SIdD+I1i3Mjf7TsnoUbgopBcCuDztVLfJ0q9ubf6Q==", + "cpu": [ + "ppc64" + ], + "dev": true, + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": ">= 10" + } + }, + "node_modules/@napi-rs/nice-linux-riscv64-gnu": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/@napi-rs/nice-linux-riscv64-gnu/-/nice-linux-riscv64-gnu-1.0.1.tgz", + "integrity": "sha512-3xs69dO8WSWBb13KBVex+yvxmUeEsdWexxibqskzoKaWx9AIqkMbWmE2npkazJoopPKX2ULKd8Fm9veEn0g4Ig==", + "cpu": [ + "riscv64" + ], + "dev": true, + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": ">= 10" + } + }, + "node_modules/@napi-rs/nice-linux-s390x-gnu": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/@napi-rs/nice-linux-s390x-gnu/-/nice-linux-s390x-gnu-1.0.1.tgz", + "integrity": "sha512-lMFI3i9rlW7hgToyAzTaEybQYGbQHDrpRkg+1gJWEpH0PLAQoZ8jiY0IzakLfNWnVda1eTYYlxxFYzW8Rqczkg==", + "cpu": [ + "s390x" + ], + "dev": true, + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": ">= 10" + } + }, + "node_modules/@napi-rs/nice-linux-x64-gnu": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/@napi-rs/nice-linux-x64-gnu/-/nice-linux-x64-gnu-1.0.1.tgz", + "integrity": "sha512-XQAJs7DRN2GpLN6Fb+ZdGFeYZDdGl2Fn3TmFlqEL5JorgWKrQGRUrpGKbgZ25UeZPILuTKJ+OowG2avN8mThBA==", + "cpu": [ + "x64" + ], + "dev": true, + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": ">= 10" + } + }, + "node_modules/@napi-rs/nice-linux-x64-musl": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/@napi-rs/nice-linux-x64-musl/-/nice-linux-x64-musl-1.0.1.tgz", + "integrity": "sha512-/rodHpRSgiI9o1faq9SZOp/o2QkKQg7T+DK0R5AkbnI/YxvAIEHf2cngjYzLMQSQgUhxym+LFr+UGZx4vK4QdQ==", + "cpu": [ + "x64" + ], + "dev": true, + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": ">= 10" + } + }, + "node_modules/@napi-rs/nice-win32-arm64-msvc": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/@napi-rs/nice-win32-arm64-msvc/-/nice-win32-arm64-msvc-1.0.1.tgz", + "integrity": "sha512-rEcz9vZymaCB3OqEXoHnp9YViLct8ugF+6uO5McifTedjq4QMQs3DHz35xBEGhH3gJWEsXMUbzazkz5KNM5YUg==", + "cpu": [ + "arm64" + ], + "dev": true, + "optional": true, + "os": [ + "win32" + ], + "engines": { + "node": ">= 10" + } + }, + "node_modules/@napi-rs/nice-win32-ia32-msvc": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/@napi-rs/nice-win32-ia32-msvc/-/nice-win32-ia32-msvc-1.0.1.tgz", + "integrity": "sha512-t7eBAyPUrWL8su3gDxw9xxxqNwZzAqKo0Szv3IjVQd1GpXXVkb6vBBQUuxfIYaXMzZLwlxRQ7uzM2vdUE9ULGw==", + "cpu": [ + "ia32" + ], + "dev": true, + "optional": true, + "os": [ + "win32" + ], + "engines": { + "node": ">= 10" + } + }, + "node_modules/@napi-rs/nice-win32-x64-msvc": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/@napi-rs/nice-win32-x64-msvc/-/nice-win32-x64-msvc-1.0.1.tgz", + "integrity": "sha512-JlF+uDcatt3St2ntBG8H02F1mM45i5SF9W+bIKiReVE6wiy3o16oBP/yxt+RZ+N6LbCImJXJ6bXNO2kn9AXicg==", + "cpu": [ + "x64" + ], + "dev": true, + "optional": true, + "os": [ + "win32" + ], + "engines": { + "node": ">= 10" + } + }, + "node_modules/@nodelib/fs.scandir": { + "version": "2.1.5", + "resolved": "https://registry.npmjs.org/@nodelib/fs.scandir/-/fs.scandir-2.1.5.tgz", + "integrity": "sha512-vq24Bq3ym5HEQm2NKCr3yXDwjc7vTsEThRDnkp2DK9p1uqLR+DHurm/NOTo0KG7HYHU7eppKZj3MyqYuMBf62g==", + "dev": true, + "dependencies": { + "@nodelib/fs.stat": "2.0.5", + "run-parallel": "^1.1.9" + }, + "engines": { + "node": ">= 8" + } + }, + "node_modules/@nodelib/fs.stat": { + "version": "2.0.5", + "resolved": "https://registry.npmjs.org/@nodelib/fs.stat/-/fs.stat-2.0.5.tgz", + "integrity": "sha512-RkhPPp2zrqDAQA/2jNhnztcPAlv64XdhIp7a7454A5ovI7Bukxgt7MX7udwAu3zg1DcpPU0rz3VV1SeaqvY4+A==", + "dev": true, + "engines": { + "node": ">= 8" + } + }, + "node_modules/@nodelib/fs.walk": { + "version": "1.2.8", + "resolved": "https://registry.npmjs.org/@nodelib/fs.walk/-/fs.walk-1.2.8.tgz", + "integrity": "sha512-oGB+UxlgWcgQkgwo8GcEGwemoTFt3FIO9ababBmaGwXIoBKZ+GTy0pP185beGg7Llih/NSHSV2XAs1lnznocSg==", + "dev": true, + "dependencies": { + "@nodelib/fs.scandir": "2.1.5", + "fastq": "^1.6.0" + }, + "engines": { + "node": ">= 8" + } + }, + "node_modules/@pkgjs/parseargs": { + "version": "0.11.0", + "resolved": "https://registry.npmjs.org/@pkgjs/parseargs/-/parseargs-0.11.0.tgz", + "integrity": "sha512-+1VkjdD0QBLPodGrJUeqarH8VAIvQODIbwh9XpP5Syisf7YoQgsJKPNFoqqLQlu+VQ/tVSshMR6loPMn8U+dPg==", + "dev": true, + "optional": true, + "engines": { + "node": ">=14" + } + }, + "node_modules/@popperjs/core": { + "version": "2.11.8", + "resolved": "https://registry.npmjs.org/@popperjs/core/-/core-2.11.8.tgz", + "integrity": "sha512-P1st0aksCrn9sGZhp8GMYwBnQsbvAWsZAX44oXNNvLHGqAOcoVxmjZiohstwQ7SqKnbR47akdNi+uleWD8+g6A==", + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/popperjs" + } + }, + "node_modules/@reduxjs/toolkit": { + "version": "1.9.7", + "resolved": "https://registry.npmjs.org/@reduxjs/toolkit/-/toolkit-1.9.7.tgz", + "integrity": "sha512-t7v8ZPxhhKgOKtU+uyJT13lu4vL7az5aFi4IdoDs/eS548edn2M8Ik9h8fxgvMjGoAUVFSt6ZC1P5cWmQ014QQ==", + "dependencies": { + "immer": "^9.0.21", + "redux": "^4.2.1", + "redux-thunk": "^2.4.2", + "reselect": "^4.1.8" + }, + "peerDependencies": { + "react": "^16.9.0 || ^17.0.0 || ^18", + "react-redux": "^7.2.1 || ^8.0.2" + }, + "peerDependenciesMeta": { + "react": { + "optional": true + }, + "react-redux": { + "optional": true + } + } + }, + "node_modules/@reduxjs/toolkit/node_modules/reselect": { + "version": "4.1.8", + "resolved": "https://registry.npmjs.org/reselect/-/reselect-4.1.8.tgz", + "integrity": "sha512-ab9EmR80F/zQTMNeneUr4cv+jSwPJgIlvEmVwLerwrWVbpLlBuls9XHzIeTFy4cegU2NHBp3va0LKOzU5qFEYQ==" + }, + "node_modules/@remirror/core-constants": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/@remirror/core-constants/-/core-constants-3.0.0.tgz", + "integrity": "sha512-42aWfPrimMfDKDi4YegyS7x+/0tlzaqwPQCULLanv3DMIlu96KTJR0fM5isWX2UViOqlGnX6YFgqWepcX+XMNg==" + }, + "node_modules/@remix-run/router": { + "version": "1.19.2", + "resolved": "https://registry.npmjs.org/@remix-run/router/-/router-1.19.2.tgz", + "integrity": "sha512-baiMx18+IMuD1yyvOGaHM9QrVUPGGG0jC+z+IPHnRJWUAUvaKuWKyE8gjDj2rzv3sz9zOGoRSPgeBVHRhZnBlA==", + "engines": { + "node": ">=14.0.0" + } + }, + "node_modules/@sindresorhus/is": { + "version": "4.6.0", + "resolved": "https://registry.npmjs.org/@sindresorhus/is/-/is-4.6.0.tgz", + "integrity": "sha512-t09vSN3MdfsyCHoFcTRCH/iUtG7OJ0CsjzB8cjAmKc/va/kIgeDI/TxsigdncE/4be734m0cvIYwNaV4i2XqAw==", + "dev": true, + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/sindresorhus/is?sponsor=1" + } + }, + "node_modules/@socket.io/component-emitter": { + "version": "3.1.2", + "resolved": "https://registry.npmjs.org/@socket.io/component-emitter/-/component-emitter-3.1.2.tgz", + "integrity": "sha512-9BCxFwvbGg/RsZK9tjXd8s4UcwR0MWeFQ1XEKIQVVvAGJyINdrqKMcTRyLoK8Rse1GjzLV9cwjWV1olXRWEXVA==" + }, + "node_modules/@swc/cli": { + "version": "0.3.14", + "resolved": "https://registry.npmjs.org/@swc/cli/-/cli-0.3.14.tgz", + "integrity": "sha512-0vGqD6FSW67PaZUZABkA+ADKsX7OUY/PwNEz1SbQdCvVk/e4Z36Gwh7mFVBQH9RIsMonTyhV1RHkwkGnEfR3zQ==", + "dev": true, + "dependencies": { + "@mole-inc/bin-wrapper": "^8.0.1", + "@swc/counter": "^0.1.3", + "commander": "^8.3.0", + "fast-glob": "^3.2.5", + "minimatch": "^9.0.3", + "piscina": "^4.3.0", + "semver": "^7.3.8", + "slash": "3.0.0", + "source-map": "^0.7.3" + }, + "bin": { + "spack": "bin/spack.js", + "swc": "bin/swc.js", + "swcx": "bin/swcx.js" + }, + "engines": { + "node": ">= 16.14.0" + }, + "peerDependencies": { + "@swc/core": "^1.2.66", + "chokidar": "^3.5.1" + }, + "peerDependenciesMeta": { + "chokidar": { + "optional": true + } + } + }, + "node_modules/@swc/core": { + "version": "1.7.26", + "resolved": "https://registry.npmjs.org/@swc/core/-/core-1.7.26.tgz", + "integrity": "sha512-f5uYFf+TmMQyYIoxkn/evWhNGuUzC730dFwAKGwBVHHVoPyak1/GvJUm6i1SKl+2Hrj9oN0i3WSoWWZ4pgI8lw==", + "dev": true, + "hasInstallScript": true, + "dependencies": { + "@swc/counter": "^0.1.3", + "@swc/types": "^0.1.12" + }, + "engines": { + "node": ">=10" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/swc" + }, + "optionalDependencies": { + "@swc/core-darwin-arm64": "1.7.26", + "@swc/core-darwin-x64": "1.7.26", + "@swc/core-linux-arm-gnueabihf": "1.7.26", + "@swc/core-linux-arm64-gnu": "1.7.26", + "@swc/core-linux-arm64-musl": "1.7.26", + "@swc/core-linux-x64-gnu": "1.7.26", + "@swc/core-linux-x64-musl": "1.7.26", + "@swc/core-win32-arm64-msvc": "1.7.26", + "@swc/core-win32-ia32-msvc": "1.7.26", + "@swc/core-win32-x64-msvc": "1.7.26" + }, + "peerDependencies": { + "@swc/helpers": "*" + }, + "peerDependenciesMeta": { + "@swc/helpers": { + "optional": true + } + } + }, + "node_modules/@swc/core-darwin-arm64": { + "version": "1.7.26", + "resolved": "https://registry.npmjs.org/@swc/core-darwin-arm64/-/core-darwin-arm64-1.7.26.tgz", + "integrity": "sha512-FF3CRYTg6a7ZVW4yT9mesxoVVZTrcSWtmZhxKCYJX9brH4CS/7PRPjAKNk6kzWgWuRoglP7hkjQcd6EpMcZEAw==", + "cpu": [ + "arm64" + ], + "dev": true, + "optional": true, + "os": [ + "darwin" + ], + "engines": { + "node": ">=10" + } + }, + "node_modules/@swc/core-darwin-x64": { + "version": "1.7.26", + "resolved": "https://registry.npmjs.org/@swc/core-darwin-x64/-/core-darwin-x64-1.7.26.tgz", + "integrity": "sha512-az3cibZdsay2HNKmc4bjf62QVukuiMRh5sfM5kHR/JMTrLyS6vSw7Ihs3UTkZjUxkLTT8ro54LI6sV6sUQUbLQ==", + "cpu": [ + "x64" + ], + "dev": true, + "optional": true, + "os": [ + "darwin" + ], + "engines": { + "node": ">=10" + } + }, + "node_modules/@swc/core-linux-arm-gnueabihf": { + "version": "1.7.26", + "resolved": "https://registry.npmjs.org/@swc/core-linux-arm-gnueabihf/-/core-linux-arm-gnueabihf-1.7.26.tgz", + "integrity": "sha512-VYPFVJDO5zT5U3RpCdHE5v1gz4mmR8BfHecUZTmD2v1JeFY6fv9KArJUpjrHEEsjK/ucXkQFmJ0jaiWXmpOV9Q==", + "cpu": [ + "arm" + ], + "dev": true, + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": ">=10" + } + }, + "node_modules/@swc/core-linux-arm64-gnu": { + "version": "1.7.26", + "resolved": "https://registry.npmjs.org/@swc/core-linux-arm64-gnu/-/core-linux-arm64-gnu-1.7.26.tgz", + "integrity": "sha512-YKevOV7abpjcAzXrhsl+W48Z9mZvgoVs2eP5nY+uoMAdP2b3GxC0Df1Co0I90o2lkzO4jYBpTMcZlmUXLdXn+Q==", + "cpu": [ + "arm64" + ], + "dev": true, + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": ">=10" + } + }, + "node_modules/@swc/core-linux-arm64-musl": { + "version": "1.7.26", + "resolved": "https://registry.npmjs.org/@swc/core-linux-arm64-musl/-/core-linux-arm64-musl-1.7.26.tgz", + "integrity": "sha512-3w8iZICMkQQON0uIcvz7+Q1MPOW6hJ4O5ETjA0LSP/tuKqx30hIniCGOgPDnv3UTMruLUnQbtBwVCZTBKR3Rkg==", + "cpu": [ + "arm64" + ], + "dev": true, + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": ">=10" + } + }, + "node_modules/@swc/core-linux-x64-gnu": { + "version": "1.7.26", + "resolved": "https://registry.npmjs.org/@swc/core-linux-x64-gnu/-/core-linux-x64-gnu-1.7.26.tgz", + "integrity": "sha512-c+pp9Zkk2lqb06bNGkR2Looxrs7FtGDMA4/aHjZcCqATgp348hOKH5WPvNLBl+yPrISuWjbKDVn3NgAvfvpH4w==", + "cpu": [ + "x64" + ], + "dev": true, + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": ">=10" + } + }, + "node_modules/@swc/core-linux-x64-musl": { + "version": "1.7.26", + "resolved": "https://registry.npmjs.org/@swc/core-linux-x64-musl/-/core-linux-x64-musl-1.7.26.tgz", + "integrity": "sha512-PgtyfHBF6xG87dUSSdTJHwZ3/8vWZfNIXQV2GlwEpslrOkGqy+WaiiyE7Of7z9AvDILfBBBcJvJ/r8u980wAfQ==", + "cpu": [ + "x64" + ], + "dev": true, + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": ">=10" + } + }, + "node_modules/@swc/core-win32-arm64-msvc": { + "version": "1.7.26", + "resolved": "https://registry.npmjs.org/@swc/core-win32-arm64-msvc/-/core-win32-arm64-msvc-1.7.26.tgz", + "integrity": "sha512-9TNXPIJqFynlAOrRD6tUQjMq7KApSklK3R/tXgIxc7Qx+lWu8hlDQ/kVPLpU7PWvMMwC/3hKBW+p5f+Tms1hmA==", + "cpu": [ + "arm64" + ], + "dev": true, + "optional": true, + "os": [ + "win32" + ], + "engines": { + "node": ">=10" + } + }, + "node_modules/@swc/core-win32-ia32-msvc": { + "version": "1.7.26", + "resolved": "https://registry.npmjs.org/@swc/core-win32-ia32-msvc/-/core-win32-ia32-msvc-1.7.26.tgz", + "integrity": "sha512-9YngxNcG3177GYdsTum4V98Re+TlCeJEP4kEwEg9EagT5s3YejYdKwVAkAsJszzkXuyRDdnHUpYbTrPG6FiXrQ==", + "cpu": [ + "ia32" + ], + "dev": true, + "optional": true, + "os": [ + "win32" + ], + "engines": { + "node": ">=10" + } + }, + "node_modules/@swc/core-win32-x64-msvc": { + "version": "1.7.26", + "resolved": "https://registry.npmjs.org/@swc/core-win32-x64-msvc/-/core-win32-x64-msvc-1.7.26.tgz", + "integrity": "sha512-VR+hzg9XqucgLjXxA13MtV5O3C0bK0ywtLIBw/+a+O+Oc6mxFWHtdUeXDbIi5AiPbn0fjgVJMqYnyjGyyX8u0w==", + "cpu": [ + "x64" + ], + "dev": true, + "optional": true, + "os": [ + "win32" + ], + "engines": { + "node": ">=10" + } + }, + "node_modules/@swc/counter": { + "version": "0.1.3", + "resolved": "https://registry.npmjs.org/@swc/counter/-/counter-0.1.3.tgz", + "integrity": "sha512-e2BR4lsJkkRlKZ/qCHPw9ZaSxc0MVUd7gtbtaB7aMvHeJVYe8sOB8DBZkP2DtISHGSku9sCK6T6cnY0CtXrOCQ==", + "dev": true + }, + "node_modules/@swc/types": { + "version": "0.1.12", + "resolved": "https://registry.npmjs.org/@swc/types/-/types-0.1.12.tgz", + "integrity": "sha512-wBJA+SdtkbFhHjTMYH+dEH1y4VpfGdAc2Kw/LK09i9bXd/K6j6PkDcFCEzb6iVfZMkPRrl/q0e3toqTAJdkIVA==", + "dev": true, + "dependencies": { + "@swc/counter": "^0.1.3" + } + }, + "node_modules/@szmarczak/http-timer": { + "version": "4.0.6", + "resolved": "https://registry.npmjs.org/@szmarczak/http-timer/-/http-timer-4.0.6.tgz", + "integrity": "sha512-4BAffykYOgO+5nzBWYwE3W90sBgLJoUPRWWcL8wlyiM8IB8ipJz3UMJ9KXQd1RKQXpKp8Tutn80HZtWsu2u76w==", + "dev": true, + "dependencies": { + "defer-to-connect": "^2.0.0" + }, + "engines": { + "node": ">=10" + } + }, + "node_modules/@tanstack/react-virtual": { + "version": "3.10.8", + "resolved": "https://registry.npmjs.org/@tanstack/react-virtual/-/react-virtual-3.10.8.tgz", + "integrity": "sha512-VbzbVGSsZlQktyLrP5nxE+vE1ZR+U0NFAWPbJLoG2+DKPwd2D7dVICTVIIaYlJqX1ZCEnYDbaOpmMwbsyhBoIA==", + "dependencies": { + "@tanstack/virtual-core": "3.10.8" + }, + "funding": { + "type": "github", + "url": "https://github.com/sponsors/tannerlinsley" + }, + "peerDependencies": { + "react": "^16.8.0 || ^17.0.0 || ^18.0.0", + "react-dom": "^16.8.0 || ^17.0.0 || ^18.0.0" + } + }, + "node_modules/@tanstack/virtual-core": { + "version": "3.10.8", + "resolved": "https://registry.npmjs.org/@tanstack/virtual-core/-/virtual-core-3.10.8.tgz", + "integrity": "sha512-PBu00mtt95jbKFi6Llk9aik8bnR3tR/oQP1o3TSi+iG//+Q2RTIzCEgKkHG8BB86kxMNW6O8wku+Lmi+QFR6jA==", + "funding": { + "type": "github", + "url": "https://github.com/sponsors/tannerlinsley" + } + }, + "node_modules/@tiptap/core": { + "version": "2.7.2", + "resolved": "https://registry.npmjs.org/@tiptap/core/-/core-2.7.2.tgz", + "integrity": "sha512-rGAH90LPMR5OIG7vuTDRw8WxDYxPXSxuGtu++mxPF+Bv7V2ijPOy3P1oyV1G3KGoS0pPiNugLh+tVLsElcx/9Q==", + "funding": { + "type": "github", + "url": "https://github.com/sponsors/ueberdosis" + }, + "peerDependencies": { + "@tiptap/pm": "^2.7.0" + } + }, + "node_modules/@tiptap/extension-blockquote": { + "version": "2.7.2", + "resolved": "https://registry.npmjs.org/@tiptap/extension-blockquote/-/extension-blockquote-2.7.2.tgz", + "integrity": "sha512-EUBYiEE9lL49YUZC9rv5UjiS04byB0HhsWoCerc1nBO6wjqv+TK/3rCFHzqRQ0LpVuLDwzBMaoD08+kHe43y+A==", + "funding": { + "type": "github", + "url": "https://github.com/sponsors/ueberdosis" + }, + "peerDependencies": { + "@tiptap/core": "^2.7.0" + } + }, + "node_modules/@tiptap/extension-bold": { + "version": "2.7.2", + "resolved": "https://registry.npmjs.org/@tiptap/extension-bold/-/extension-bold-2.7.2.tgz", + "integrity": "sha512-idRZz5/c5CJTDQ8xCU+45gyhbAM+9P8l9wpkeSAEGV4N1i8HBO7FXbWk+ZMQLhZhGJ0Ng36gzBVTsv5bNGpAAg==", + "funding": { + "type": "github", + "url": "https://github.com/sponsors/ueberdosis" + }, + "peerDependencies": { + "@tiptap/core": "^2.7.0" + } + }, + "node_modules/@tiptap/extension-bubble-menu": { + "version": "2.7.2", + "resolved": "https://registry.npmjs.org/@tiptap/extension-bubble-menu/-/extension-bubble-menu-2.7.2.tgz", + "integrity": "sha512-U4LjkVDrJZEfWeZai8AYT7GaI6d7gzLm7Z7bSzZ0sH5fOry2qkwLycRDI9YZlM95yaVIVB5GE93lrgDS5mOP3A==", + "dependencies": { + "tippy.js": "^6.3.7" + }, + "funding": { + "type": "github", + "url": "https://github.com/sponsors/ueberdosis" + }, + "peerDependencies": { + "@tiptap/core": "^2.7.0", + "@tiptap/pm": "^2.7.0" + } + }, + "node_modules/@tiptap/extension-bullet-list": { + "version": "2.7.2", + "resolved": "https://registry.npmjs.org/@tiptap/extension-bullet-list/-/extension-bullet-list-2.7.2.tgz", + "integrity": "sha512-/RBy/qZpJe4Il1LzI1unQAKWMDjLXQoAU9gNIu6eAlHunHzwRUQ9zvH+7PNF5JkFkEbMtJLoz7NTS5qdndHldw==", + "funding": { + "type": "github", + "url": "https://github.com/sponsors/ueberdosis" + }, + "peerDependencies": { + "@tiptap/core": "^2.7.0" + } + }, + "node_modules/@tiptap/extension-code": { + "version": "2.7.2", + "resolved": "https://registry.npmjs.org/@tiptap/extension-code/-/extension-code-2.7.2.tgz", + "integrity": "sha512-C2umR5tNR0PJ7v+mvkm869nsjQm2rbM0ZgOQb/75htEScVAttNxMg2TYAEbIE8WM7mcIVUFhxPz8QuuUDMPCaA==", + "funding": { + "type": "github", + "url": "https://github.com/sponsors/ueberdosis" + }, + "peerDependencies": { + "@tiptap/core": "^2.7.0" + } + }, + "node_modules/@tiptap/extension-code-block": { + "version": "2.7.2", + "resolved": "https://registry.npmjs.org/@tiptap/extension-code-block/-/extension-code-block-2.7.2.tgz", + "integrity": "sha512-ATvrH59IG/dsfpH6+Yb+RvRFbNx6BUVBZoIMbG/jA76vbXxIcT3UcGoDIorCUJqA2KwpniZOfQOmZ2o6eg9hZQ==", + "funding": { + "type": "github", + "url": "https://github.com/sponsors/ueberdosis" + }, + "peerDependencies": { + "@tiptap/core": "^2.7.0", + "@tiptap/pm": "^2.7.0" + } + }, + "node_modules/@tiptap/extension-document": { + "version": "2.7.2", + "resolved": "https://registry.npmjs.org/@tiptap/extension-document/-/extension-document-2.7.2.tgz", + "integrity": "sha512-WyMGytHhb3MbNhJ8kUXTx/jHZ9XPaaPRJu1TYdVZNQ4pg7K47qLJ2KMOyLEFy7e5HcJUkYfhRHpyQGHkiu3brg==", + "funding": { + "type": "github", + "url": "https://github.com/sponsors/ueberdosis" + }, + "peerDependencies": { + "@tiptap/core": "^2.7.0" + } + }, + "node_modules/@tiptap/extension-dropcursor": { + "version": "2.7.2", + "resolved": "https://registry.npmjs.org/@tiptap/extension-dropcursor/-/extension-dropcursor-2.7.2.tgz", + "integrity": "sha512-hZCIl5C/8m+4yIXa39+qFmUyH1/pPlnxu3OAgSxwxpA2NIM7DUMJnFZFt+4pEkmGD/5XEGKlLuBqvYzHC3OUBg==", + "funding": { + "type": "github", + "url": "https://github.com/sponsors/ueberdosis" + }, + "peerDependencies": { + "@tiptap/core": "^2.7.0", + "@tiptap/pm": "^2.7.0" + } + }, + "node_modules/@tiptap/extension-floating-menu": { + "version": "2.7.2", + "resolved": "https://registry.npmjs.org/@tiptap/extension-floating-menu/-/extension-floating-menu-2.7.2.tgz", + "integrity": "sha512-1z/kluQUQP3JmWb7vrC/ERi79lNuQegU6WRptRgSSQhFxeDPQX9CBK3I7HYy9bvSxnIa1/3GrKzL6gfaKU8WDA==", + "dependencies": { + "tippy.js": "^6.3.7" + }, + "funding": { + "type": "github", + "url": "https://github.com/sponsors/ueberdosis" + }, + "peerDependencies": { + "@tiptap/core": "^2.7.0", + "@tiptap/pm": "^2.7.0" + } + }, + "node_modules/@tiptap/extension-gapcursor": { + "version": "2.7.2", + "resolved": "https://registry.npmjs.org/@tiptap/extension-gapcursor/-/extension-gapcursor-2.7.2.tgz", + "integrity": "sha512-4gFwVp9J+d1M/6OqqsJmtg3/SLgiRiTM+h40vlCveu/yqliON9qSOhpuFE1PJkH4OpCH2l7YtyZRGEjo3ffuJQ==", + "funding": { + "type": "github", + "url": "https://github.com/sponsors/ueberdosis" + }, + "peerDependencies": { + "@tiptap/core": "^2.7.0", + "@tiptap/pm": "^2.7.0" + } + }, + "node_modules/@tiptap/extension-hard-break": { + "version": "2.7.2", + "resolved": "https://registry.npmjs.org/@tiptap/extension-hard-break/-/extension-hard-break-2.7.2.tgz", + "integrity": "sha512-44dZMi0N1fNhQ8i7bFnj4JYfhn4B6+vHuEueJPZS1iOsJc715m3e8ZSfDBk7VXCGKrksCxPMJ7guO0Y1PVryow==", + "funding": { + "type": "github", + "url": "https://github.com/sponsors/ueberdosis" + }, + "peerDependencies": { + "@tiptap/core": "^2.7.0" + } + }, + "node_modules/@tiptap/extension-heading": { + "version": "2.7.2", + "resolved": "https://registry.npmjs.org/@tiptap/extension-heading/-/extension-heading-2.7.2.tgz", + "integrity": "sha512-i26Skx/womkqkG3aQW9PPh8UUS5znAWxNb5SzxBowJoISq1thOUsdmb16PdL9tljsO8vKy4sAPOx3hT5oVN7uw==", + "funding": { + "type": "github", + "url": "https://github.com/sponsors/ueberdosis" + }, + "peerDependencies": { + "@tiptap/core": "^2.7.0" + } + }, + "node_modules/@tiptap/extension-history": { + "version": "2.7.2", + "resolved": "https://registry.npmjs.org/@tiptap/extension-history/-/extension-history-2.7.2.tgz", + "integrity": "sha512-l5jyPawcJ5qdZmSzryMLV+egEJeh2p9AmZRzv6QHug0PhhFNvujEHWEc1WXn+tY/OP2fAesfyed3bjdTVh2sFw==", + "funding": { + "type": "github", + "url": "https://github.com/sponsors/ueberdosis" + }, + "peerDependencies": { + "@tiptap/core": "^2.7.0", + "@tiptap/pm": "^2.7.0" + } + }, + "node_modules/@tiptap/extension-horizontal-rule": { + "version": "2.7.2", + "resolved": "https://registry.npmjs.org/@tiptap/extension-horizontal-rule/-/extension-horizontal-rule-2.7.2.tgz", + "integrity": "sha512-WneHFFgAqCwksb5bJ6dfK3mLwZVSJ51FtaooXp4d1C/KZjqNTWoQBTrXHsPTFqz6swcRSFLG9xQgsh48grcmZw==", + "funding": { + "type": "github", + "url": "https://github.com/sponsors/ueberdosis" + }, + "peerDependencies": { + "@tiptap/core": "^2.7.0", + "@tiptap/pm": "^2.7.0" + } + }, + "node_modules/@tiptap/extension-image": { + "version": "2.7.2", + "resolved": "https://registry.npmjs.org/@tiptap/extension-image/-/extension-image-2.7.2.tgz", + "integrity": "sha512-gGjUXhsoART3FZ/12+JdqAEdHGNi3chga6l6LKraXva2+S4JIcadODQP9oRSNineCSyISoxpZMZtWt5cdoG7vw==", + "funding": { + "type": "github", + "url": "https://github.com/sponsors/ueberdosis" + }, + "peerDependencies": { + "@tiptap/core": "^2.7.0" + } + }, + "node_modules/@tiptap/extension-italic": { + "version": "2.7.2", + "resolved": "https://registry.npmjs.org/@tiptap/extension-italic/-/extension-italic-2.7.2.tgz", + "integrity": "sha512-evrvsuMNhx9X4SG6iIcIRS0BdIwMlKTEKLc5jWWu5A3NnS9wOb8JT+wLTS1glwFAdrqKHUjUpWS6JMWF4O/mgQ==", + "funding": { + "type": "github", + "url": "https://github.com/sponsors/ueberdosis" + }, + "peerDependencies": { + "@tiptap/core": "^2.7.0" + } + }, + "node_modules/@tiptap/extension-list-item": { + "version": "2.7.2", + "resolved": "https://registry.npmjs.org/@tiptap/extension-list-item/-/extension-list-item-2.7.2.tgz", + "integrity": "sha512-aP9E9XcwUMnsAdL4QD5e0HLZeW1I6Br67SH/e2yN1ZaJjJeN3XMq8N11QbBfMtkequqNk9cGrEj52TPi22MqXg==", + "funding": { + "type": "github", + "url": "https://github.com/sponsors/ueberdosis" + }, + "peerDependencies": { + "@tiptap/core": "^2.7.0" + } + }, + "node_modules/@tiptap/extension-mention": { + "version": "2.7.2", + "resolved": "https://registry.npmjs.org/@tiptap/extension-mention/-/extension-mention-2.7.2.tgz", + "integrity": "sha512-9014x2KIqBk+zVJgGc8n20pdvaovsK2+JRnRvgPBi3BqU42C/IJLDZjkOO8Pl07ba6CC0JpqEpVEhtaEyuQOpA==", + "funding": { + "type": "github", + "url": "https://github.com/sponsors/ueberdosis" + }, + "peerDependencies": { + "@tiptap/core": "^2.7.0", + "@tiptap/pm": "^2.7.0", + "@tiptap/suggestion": "^2.7.0" + } + }, + "node_modules/@tiptap/extension-ordered-list": { + "version": "2.7.2", + "resolved": "https://registry.npmjs.org/@tiptap/extension-ordered-list/-/extension-ordered-list-2.7.2.tgz", + "integrity": "sha512-uanvByYOYdFRgn/71UmIc0B7pIt9srL0XG5d8k8SeQS3cbdGgOMy7CjzwY7n3MuW3KJx6AqIZPfOsA2dKhVSEQ==", + "funding": { + "type": "github", + "url": "https://github.com/sponsors/ueberdosis" + }, + "peerDependencies": { + "@tiptap/core": "^2.7.0" + } + }, + "node_modules/@tiptap/extension-paragraph": { + "version": "2.7.2", + "resolved": "https://registry.npmjs.org/@tiptap/extension-paragraph/-/extension-paragraph-2.7.2.tgz", + "integrity": "sha512-yMzUGNojNv0lLEE+38GOpgRI327EyEZK/uEHlyzbjAWRvqE6aZ+oEB4JUuoJXX2Ad9gwN16dGHnxL//ieTxrkQ==", + "funding": { + "type": "github", + "url": "https://github.com/sponsors/ueberdosis" + }, + "peerDependencies": { + "@tiptap/core": "^2.7.0" + } + }, + "node_modules/@tiptap/extension-placeholder": { + "version": "2.7.2", + "resolved": "https://registry.npmjs.org/@tiptap/extension-placeholder/-/extension-placeholder-2.7.2.tgz", + "integrity": "sha512-2o1qJI1juloltlZkuiABgivY8deyrdaUH/3e6EZbi/ucXlByBaDWcJPsvXB0VHpW65EeHf3NLMbjsNl7SKRoFQ==", + "funding": { + "type": "github", + "url": "https://github.com/sponsors/ueberdosis" + }, + "peerDependencies": { + "@tiptap/core": "^2.7.0", + "@tiptap/pm": "^2.7.0" + } + }, + "node_modules/@tiptap/extension-strike": { + "version": "2.7.2", + "resolved": "https://registry.npmjs.org/@tiptap/extension-strike/-/extension-strike-2.7.2.tgz", + "integrity": "sha512-ryDAdG/yXVCSdoDnEHeLBYxnjFXbIVHX4MmiagGSQRlgznlgylXjf+gnO9mxW+ulLvH4Wfz8FzZl2ra7nqLLwQ==", + "funding": { + "type": "github", + "url": "https://github.com/sponsors/ueberdosis" + }, + "peerDependencies": { + "@tiptap/core": "^2.7.0" + } + }, + "node_modules/@tiptap/extension-text": { + "version": "2.7.2", + "resolved": "https://registry.npmjs.org/@tiptap/extension-text/-/extension-text-2.7.2.tgz", + "integrity": "sha512-VjzG7W53Lx2q8XV0rUHetVTQWDK28XTCTW3IzxYxHp2joB/k9q3xgE/5Vs+7DOLSHIKq2BmwQNyaE+XjUF5iYQ==", + "funding": { + "type": "github", + "url": "https://github.com/sponsors/ueberdosis" + }, + "peerDependencies": { + "@tiptap/core": "^2.7.0" + } + }, + "node_modules/@tiptap/pm": { + "version": "2.7.2", + "resolved": "https://registry.npmjs.org/@tiptap/pm/-/pm-2.7.2.tgz", + "integrity": "sha512-RiRPlwpuE6IHDJytE0tglbFlWELOaqeyGRGv25wBTjzV1plnqC5B3U65XY/8kKuuLjdd3NpRfR68DXBafusSBg==", + "dependencies": { + "prosemirror-changeset": "^2.2.1", + "prosemirror-collab": "^1.3.1", + "prosemirror-commands": "^1.6.0", + "prosemirror-dropcursor": "^1.8.1", + "prosemirror-gapcursor": "^1.3.2", + "prosemirror-history": "^1.4.1", + "prosemirror-inputrules": "^1.4.0", + "prosemirror-keymap": "^1.2.2", + "prosemirror-markdown": "^1.13.0", + "prosemirror-menu": "^1.2.4", + "prosemirror-model": "^1.22.3", + "prosemirror-schema-basic": "^1.2.3", + "prosemirror-schema-list": "^1.4.1", + "prosemirror-state": "^1.4.3", + "prosemirror-tables": "^1.4.0", + "prosemirror-trailing-node": "^3.0.0", + "prosemirror-transform": "^1.10.0", + "prosemirror-view": "^1.33.10" + }, + "funding": { + "type": "github", + "url": "https://github.com/sponsors/ueberdosis" + } + }, + "node_modules/@tiptap/react": { + "version": "2.7.2", + "resolved": "https://registry.npmjs.org/@tiptap/react/-/react-2.7.2.tgz", + "integrity": "sha512-4d1TQMRHtqagCarty1iQIJMLYZ2YzBHBgAt4HlPeoDUI4MHZutOIdkl1UXmxZwh/d5p6a+tZGTVOV4aKXMW2Iw==", + "dependencies": { + "@tiptap/extension-bubble-menu": "^2.7.2", + "@tiptap/extension-floating-menu": "^2.7.2", + "@types/use-sync-external-store": "^0.0.6", + "fast-deep-equal": "^3", + "use-sync-external-store": "^1.2.2" + }, + "funding": { + "type": "github", + "url": "https://github.com/sponsors/ueberdosis" + }, + "peerDependencies": { + "@tiptap/core": "^2.7.0", + "@tiptap/pm": "^2.7.0", + "react": "^17.0.0 || ^18.0.0", + "react-dom": "^17.0.0 || ^18.0.0" + } + }, + "node_modules/@tiptap/starter-kit": { + "version": "2.7.2", + "resolved": "https://registry.npmjs.org/@tiptap/starter-kit/-/starter-kit-2.7.2.tgz", + "integrity": "sha512-cKbhGXsi3IFtQcEZ2jGiRhuDy3AmT7oajrCgQ6KI6yis40yilTsVafUcLhDRchBaOvNJeS6kPy8QVKS7cJKqFw==", + "dependencies": { + "@tiptap/core": "^2.7.2", + "@tiptap/extension-blockquote": "^2.7.2", + "@tiptap/extension-bold": "^2.7.2", + "@tiptap/extension-bullet-list": "^2.7.2", + "@tiptap/extension-code": "^2.7.2", + "@tiptap/extension-code-block": "^2.7.2", + "@tiptap/extension-document": "^2.7.2", + "@tiptap/extension-dropcursor": "^2.7.2", + "@tiptap/extension-gapcursor": "^2.7.2", + "@tiptap/extension-hard-break": "^2.7.2", + "@tiptap/extension-heading": "^2.7.2", + "@tiptap/extension-history": "^2.7.2", + "@tiptap/extension-horizontal-rule": "^2.7.2", + "@tiptap/extension-italic": "^2.7.2", + "@tiptap/extension-list-item": "^2.7.2", + "@tiptap/extension-ordered-list": "^2.7.2", + "@tiptap/extension-paragraph": "^2.7.2", + "@tiptap/extension-strike": "^2.7.2", + "@tiptap/extension-text": "^2.7.2", + "@tiptap/pm": "^2.7.2" + }, + "funding": { + "type": "github", + "url": "https://github.com/sponsors/ueberdosis" + } + }, + "node_modules/@tiptap/suggestion": { + "version": "2.7.2", + "resolved": "https://registry.npmjs.org/@tiptap/suggestion/-/suggestion-2.7.2.tgz", + "integrity": "sha512-ZJMNuorzQQiKyzoisyeHgPH3kywv0cvQnyz5guZWiAtFWCUbFyB9MSLNuoijubwHWfnZMe4XiW5EqVt1dBmxBw==", + "funding": { + "type": "github", + "url": "https://github.com/sponsors/ueberdosis" + }, + "peerDependencies": { + "@tiptap/core": "^2.7.0", + "@tiptap/pm": "^2.7.0" + } + }, + "node_modules/@tokenizer/token": { + "version": "0.3.0", + "resolved": "https://registry.npmjs.org/@tokenizer/token/-/token-0.3.0.tgz", + "integrity": "sha512-OvjF+z51L3ov0OyAU0duzsYuvO01PH7x4t6DJx+guahgTnBHkhJdG7soQeTSFLWN3efnHyibZ4Z8l2EuWwJN3A==", + "dev": true + }, + "node_modules/@types/cacheable-request": { + "version": "6.0.3", + "resolved": "https://registry.npmjs.org/@types/cacheable-request/-/cacheable-request-6.0.3.tgz", + "integrity": "sha512-IQ3EbTzGxIigb1I3qPZc1rWJnH0BmSKv5QYTalEwweFvyBDLSAe24zP0le/hyi7ecGfZVlIVAg4BZqb8WBwKqw==", + "dev": true, + "dependencies": { + "@types/http-cache-semantics": "*", + "@types/keyv": "^3.1.4", + "@types/node": "*", + "@types/responselike": "^1.0.0" + } + }, + "node_modules/@types/debug": { + "version": "4.1.12", + "resolved": "https://registry.npmjs.org/@types/debug/-/debug-4.1.12.tgz", + "integrity": "sha512-vIChWdVG3LG1SMxEvI/AK+FWJthlrqlTu7fbrlywTkkaONwk/UAGaULXRlf8vkzFBLVm0zkMdCquhL5aOjhXPQ==", + "dependencies": { + "@types/ms": "*" + } + }, + "node_modules/@types/estree": { + "version": "1.0.6", + "resolved": "https://registry.npmjs.org/@types/estree/-/estree-1.0.6.tgz", + "integrity": "sha512-AYnb1nQyY49te+VRAVgmzfcgjYS91mY5P0TKUDCLEM+gNnA+3T6rWITXRLYCpahpqSQbN5cE+gHpnPyXjHWxcw==" + }, + "node_modules/@types/estree-jsx": { + "version": "1.0.5", + "resolved": "https://registry.npmjs.org/@types/estree-jsx/-/estree-jsx-1.0.5.tgz", + "integrity": "sha512-52CcUVNFyfb1A2ALocQw/Dd1BQFNmSdkuC3BkZ6iqhdMfQz7JWOFRuJFloOzjk+6WijU56m9oKXFAXc7o3Towg==", + "dependencies": { + "@types/estree": "*" + } + }, + "node_modules/@types/hast": { + "version": "3.0.4", + "resolved": "https://registry.npmjs.org/@types/hast/-/hast-3.0.4.tgz", + "integrity": "sha512-WPs+bbQw5aCj+x6laNGWLH3wviHtoCv/P3+otBhbOhJgG8qtpdAMlTCxLtsTWA7LH1Oh/bFCHsBn0TPS5m30EQ==", + "dependencies": { + "@types/unist": "*" + } + }, + "node_modules/@types/history": { + "version": "4.7.11", + "resolved": "https://registry.npmjs.org/@types/history/-/history-4.7.11.tgz", + "integrity": "sha512-qjDJRrmvBMiTx+jyLxvLfJU7UznFuokDv4f3WRuriHKERccVpFU+8XMQUAbDzoiJCsmexxRExQeMwwCdamSKDA==", + "dev": true + }, + "node_modules/@types/hoist-non-react-statics": { + "version": "3.3.5", + "resolved": "https://registry.npmjs.org/@types/hoist-non-react-statics/-/hoist-non-react-statics-3.3.5.tgz", + "integrity": "sha512-SbcrWzkKBw2cdwRTwQAswfpB9g9LJWfjtUeW/jvNwbhC8cpmmNYVePa+ncbUe0rGTQ7G3Ff6mYUN2VMfLVr+Sg==", + "dependencies": { + "@types/react": "*", + "hoist-non-react-statics": "^3.3.0" + } + }, + "node_modules/@types/http-cache-semantics": { + "version": "4.0.4", + "resolved": "https://registry.npmjs.org/@types/http-cache-semantics/-/http-cache-semantics-4.0.4.tgz", + "integrity": "sha512-1m0bIFVc7eJWyve9S0RnuRgcQqF/Xd5QsUZAZeQFr1Q3/p9JWoQQEqmVy+DPTNpGXwhgIetAoYF8JSc33q29QA==", + "dev": true + }, + "node_modules/@types/katex": { + "version": "0.16.7", + "resolved": "https://registry.npmjs.org/@types/katex/-/katex-0.16.7.tgz", + "integrity": "sha512-HMwFiRujE5PjrgwHQ25+bsLJgowjGjm5Z8FVSf0N6PwgJrwxH0QxzHYDcKsTfV3wva0vzrpqMTJS2jXPr5BMEQ==" + }, + "node_modules/@types/keyv": { + "version": "3.1.4", + "resolved": "https://registry.npmjs.org/@types/keyv/-/keyv-3.1.4.tgz", + "integrity": "sha512-BQ5aZNSCpj7D6K2ksrRCTmKRLEpnPvWDiLPfoGyhZ++8YtiK9d/3DBKPJgry359X/P1PfruyYwvnvwFjuEiEIg==", + "dev": true, + "dependencies": { + "@types/node": "*" + } + }, + "node_modules/@types/lodash": { + "version": "4.17.7", + "resolved": "https://registry.npmjs.org/@types/lodash/-/lodash-4.17.7.tgz", + "integrity": "sha512-8wTvZawATi/lsmNu10/j2hk1KEP0IvjubqPE3cu1Xz7xfXXt5oCq3SNUz4fMIP4XGF9Ky+Ue2tBA3hcS7LSBlA==", + "dev": true + }, + "node_modules/@types/mdast": { + "version": "4.0.4", + "resolved": "https://registry.npmjs.org/@types/mdast/-/mdast-4.0.4.tgz", + "integrity": "sha512-kGaNbPh1k7AFzgpud/gMdvIm5xuECykRR+JnWKQno9TAXVa6WIVCGTPvYGekIDL4uwCZQSYbUxNBSb1aUo79oA==", + "dependencies": { + "@types/unist": "*" + } + }, + "node_modules/@types/ms": { + "version": "0.7.34", + "resolved": "https://registry.npmjs.org/@types/ms/-/ms-0.7.34.tgz", + "integrity": "sha512-nG96G3Wp6acyAgJqGasjODb+acrI7KltPiRxzHPXnP3NgI28bpQDRv53olbqGXbfcgF5aiiHmO3xpwEpS5Ld9g==" + }, + "node_modules/@types/node": { + "version": "20.16.5", + "resolved": "https://registry.npmjs.org/@types/node/-/node-20.16.5.tgz", + "integrity": "sha512-VwYCweNo3ERajwy0IUlqqcyZ8/A7Zwa9ZP3MnENWcB11AejO+tLy3pu850goUW2FC/IJMdZUfKpX/yxL1gymCA==", + "dev": true, + "dependencies": { + "undici-types": "~6.19.2" + } + }, + "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==", + "dev": true, + "dependencies": { + "@types/node": "*", + "form-data": "^4.0.0" + } + }, + "node_modules/@types/prop-types": { + "version": "15.7.13", + "resolved": "https://registry.npmjs.org/@types/prop-types/-/prop-types-15.7.13.tgz", + "integrity": "sha512-hCZTSvwbzWGvhqxp/RqVqwU999pBf2vp7hzIjiYOsl8wqOmUxkQ6ddw1cV3l8811+kdUFus/q4d1Y3E3SyEifA==" + }, + "node_modules/@types/react": { + "version": "18.3.8", + "resolved": "https://registry.npmjs.org/@types/react/-/react-18.3.8.tgz", + "integrity": "sha512-syBUrW3/XpnW4WJ41Pft+I+aPoDVbrBVQGEnbD7NijDGlVC+8gV/XKRY+7vMDlfPpbwYt0l1vd/Sj8bJGMbs9Q==", + "dependencies": { + "@types/prop-types": "*", + "csstype": "^3.0.2" + } + }, + "node_modules/@types/react-dom": { + "version": "18.3.0", + "resolved": "https://registry.npmjs.org/@types/react-dom/-/react-dom-18.3.0.tgz", + "integrity": "sha512-EhwApuTmMBmXuFOikhQLIBUn6uFg81SwLMOAUgodJF14SOBOCMdU04gDoYi0WOJJHD144TL32z4yDqCW3dnkQg==", + "devOptional": true, + "dependencies": { + "@types/react": "*" + } + }, + "node_modules/@types/react-router": { + "version": "5.1.20", + "resolved": "https://registry.npmjs.org/@types/react-router/-/react-router-5.1.20.tgz", + "integrity": "sha512-jGjmu/ZqS7FjSH6owMcD5qpq19+1RS9DeVRqfl1FeBMxTDQAGwlMWOcs52NDoXaNKyG3d1cYQFMs9rCrb88o9Q==", + "dev": true, + "dependencies": { + "@types/history": "^4.7.11", + "@types/react": "*" + } + }, + "node_modules/@types/react-router-dom": { + "version": "5.3.3", + "resolved": "https://registry.npmjs.org/@types/react-router-dom/-/react-router-dom-5.3.3.tgz", + "integrity": "sha512-kpqnYK4wcdm5UaWI3fLcELopqLrHgLqNsdpHauzlQktfkHL3npOSwtj1Uz9oKBAzs7lFtVkV8j83voAz2D8fhw==", + "dev": true, + "dependencies": { + "@types/history": "^4.7.11", + "@types/react": "*", + "@types/react-router": "*" + } + }, + "node_modules/@types/react-syntax-highlighter": { + "version": "15.5.13", + "resolved": "https://registry.npmjs.org/@types/react-syntax-highlighter/-/react-syntax-highlighter-15.5.13.tgz", + "integrity": "sha512-uLGJ87j6Sz8UaBAooU0T6lWJ0dBmjZgN1PZTrj05TNql2/XpC6+4HhMT5syIdFUUt+FASfCeLLv4kBygNU+8qA==", + "dev": true, + "dependencies": { + "@types/react": "*" + } + }, + "node_modules/@types/responselike": { + "version": "1.0.3", + "resolved": "https://registry.npmjs.org/@types/responselike/-/responselike-1.0.3.tgz", + "integrity": "sha512-H/+L+UkTV33uf49PH5pCAUBVPNj2nDBXTN+qS1dOwyyg24l3CcicicCA7ca+HMvJBZcFgl5r8e+RR6elsb4Lyw==", + "dev": true, + "dependencies": { + "@types/node": "*" + } + }, + "node_modules/@types/styled-components": { + "version": "5.1.34", + "resolved": "https://registry.npmjs.org/@types/styled-components/-/styled-components-5.1.34.tgz", + "integrity": "sha512-mmiVvwpYklFIv9E8qfxuPyIt/OuyIrn6gMOAMOFUO3WJfSrSE+sGUoa4PiZj77Ut7bKZpaa6o1fBKS/4TOEvnA==", + "dev": true, + "dependencies": { + "@types/hoist-non-react-statics": "*", + "@types/react": "*", + "csstype": "^3.0.2" + } + }, + "node_modules/@types/unist": { + "version": "3.0.3", + "resolved": "https://registry.npmjs.org/@types/unist/-/unist-3.0.3.tgz", + "integrity": "sha512-ko/gIFJRv177XgZsZcBwnqJN5x/Gien8qNOn0D5bQU/zAzVf9Zt3BlcUiLqhV9y4ARk0GbT3tnUiPNgnTXzc/Q==" + }, + "node_modules/@types/use-sync-external-store": { + "version": "0.0.6", + "resolved": "https://registry.npmjs.org/@types/use-sync-external-store/-/use-sync-external-store-0.0.6.tgz", + "integrity": "sha512-zFDAD+tlpf2r4asuHEj0XH6pY6i0g5NeAHPn+15wk3BV6JA69eERFXC1gyGThDkVa1zCyKr5jox1+2LbV/AMLg==" + }, + "node_modules/@types/vscode-webview": { + "version": "1.57.5", + "resolved": "https://registry.npmjs.org/@types/vscode-webview/-/vscode-webview-1.57.5.tgz", + "integrity": "sha512-iBAUYNYkz+uk1kdsq05fEcoh8gJmwT3lqqFPN7MGyjQ3HVloViMdo7ZJ8DFIP8WOK74PjOEilosqAyxV2iUFUw==" + }, + "node_modules/@ungap/structured-clone": { + "version": "1.2.0", + "resolved": "https://registry.npmjs.org/@ungap/structured-clone/-/structured-clone-1.2.0.tgz", + "integrity": "sha512-zuVdFrMJiuCDQUMCzQaD6KL28MjnqqN8XnAqiEq9PNm/hCPTSGfrXCOfwj1ow4LFb/tNymJPwsNbVePc1xFqrQ==" + }, + "node_modules/@vitejs/plugin-react-swc": { + "version": "3.7.0", + "resolved": "https://registry.npmjs.org/@vitejs/plugin-react-swc/-/plugin-react-swc-3.7.0.tgz", + "integrity": "sha512-yrknSb3Dci6svCd/qhHqhFPDSw0QtjumcqdKMoNNzmOl5lMXTTiqzjWtG4Qask2HdvvzaNgSunbQGet8/GrKdA==", + "dev": true, + "dependencies": { + "@swc/core": "^1.5.7" + }, + "peerDependencies": { + "vite": "^4 || ^5" + } + }, + "node_modules/ajv": { + "version": "8.17.1", + "resolved": "https://registry.npmjs.org/ajv/-/ajv-8.17.1.tgz", + "integrity": "sha512-B/gBuNg5SiMTrPkC+A2+cW0RszwxYmn6VYxB/inlBStS5nx6xHIt/ehKRhIMhqusl7a8LjQoZnjCs5vhwxOQ1g==", + "dependencies": { + "fast-deep-equal": "^3.1.3", + "fast-uri": "^3.0.1", + "json-schema-traverse": "^1.0.0", + "require-from-string": "^2.0.2" + }, + "funding": { + "type": "github", + "url": "https://github.com/sponsors/epoberezkin" + } + }, + "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/ansi-styles": { + "version": "3.2.1", + "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-3.2.1.tgz", + "integrity": "sha512-VT0ZI6kZRdTh8YyJw3SMbYm/u+NqfsAxEpWO0Pf9sq8/e94WxxOpPKx9FR1FlyCtOVDNOQ+8ntlqFxiRc+r5qA==", + "dependencies": { + "color-convert": "^1.9.0" + }, + "engines": { + "node": ">=4" + } + }, + "node_modules/any-promise": { + "version": "1.3.0", + "resolved": "https://registry.npmjs.org/any-promise/-/any-promise-1.3.0.tgz", + "integrity": "sha512-7UvmKalWRt1wgjL1RrGxoSJW/0QZFIegpeGvZG9kjp8vrRu55XTHbwnqq2GpXm9uLbcuhxm3IqX9OB4MZR1b2A==", + "dev": true + }, + "node_modules/anymatch": { + "version": "3.1.3", + "resolved": "https://registry.npmjs.org/anymatch/-/anymatch-3.1.3.tgz", + "integrity": "sha512-KMReFUr0B4t+D+OBkjR3KYqvocp2XaSzO55UcB6mgQMd3KbcE+mWTyvVV7D/zsdEbNnV6acZUutkiHQXvTr1Rw==", + "dev": true, + "dependencies": { + "normalize-path": "^3.0.0", + "picomatch": "^2.0.4" + }, + "engines": { + "node": ">= 8" + } + }, + "node_modules/arch": { + "version": "2.2.0", + "resolved": "https://registry.npmjs.org/arch/-/arch-2.2.0.tgz", + "integrity": "sha512-Of/R0wqp83cgHozfIYLbBMnej79U/SVGOOyuB3VVFv1NRM/PSFMK12x9KVtiYzJqmnU5WR2qp0Z5rHb7sWGnFQ==", + "dev": true, + "funding": [ + { + "type": "github", + "url": "https://github.com/sponsors/feross" + }, + { + "type": "patreon", + "url": "https://www.patreon.com/feross" + }, + { + "type": "consulting", + "url": "https://feross.org/support" + } + ] + }, + "node_modules/arg": { + "version": "5.0.2", + "resolved": "https://registry.npmjs.org/arg/-/arg-5.0.2.tgz", + "integrity": "sha512-PYjyFOLKQ9y57JvQ6QLo8dAgNqswh8M1RMJYdQduT6xbWSgK36P/Z/v+p888pM69jMMfS8Xd8F6I1kQ/I9HUGg==", + "dev": true + }, + "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==" + }, + "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", + "integrity": "sha512-Oei9OH4tRh0YqU3GxhX79dM/mwVgvbZJaSNaRk+bshkj0S5cfHcgYakreBjrHwatXKbz+IoIdYLxrKim2MjW0Q==", + "dev": true + }, + "node_modules/autoprefixer": { + "version": "10.4.20", + "resolved": "https://registry.npmjs.org/autoprefixer/-/autoprefixer-10.4.20.tgz", + "integrity": "sha512-XY25y5xSv/wEoqzDyXXME4AFfkZI0P23z6Fs3YgymDnKJkCGOnkL0iTxCa85UTqaSgfcqyf3UA6+c7wUvx/16g==", + "dev": true, + "funding": [ + { + "type": "opencollective", + "url": "https://opencollective.com/postcss/" + }, + { + "type": "tidelift", + "url": "https://tidelift.com/funding/github/npm/autoprefixer" + }, + { + "type": "github", + "url": "https://github.com/sponsors/ai" + } + ], + "dependencies": { + "browserslist": "^4.23.3", + "caniuse-lite": "^1.0.30001646", + "fraction.js": "^4.3.7", + "normalize-range": "^0.1.2", + "picocolors": "^1.0.1", + "postcss-value-parser": "^4.2.0" + }, + "bin": { + "autoprefixer": "bin/autoprefixer" + }, + "engines": { + "node": "^10 || ^12 || >=14" + }, + "peerDependencies": { + "postcss": "^8.1.0" + } + }, + "node_modules/babel-plugin-styled-components": { + "version": "2.1.4", + "resolved": "https://registry.npmjs.org/babel-plugin-styled-components/-/babel-plugin-styled-components-2.1.4.tgz", + "integrity": "sha512-Xgp9g+A/cG47sUyRwwYxGM4bR/jDRg5N6it/8+HxCnbT5XNKSKDT9xm4oag/osgqjC2It/vH0yXsomOG6k558g==", + "dependencies": { + "@babel/helper-annotate-as-pure": "^7.22.5", + "@babel/helper-module-imports": "^7.22.5", + "@babel/plugin-syntax-jsx": "^7.22.5", + "lodash": "^4.17.21", + "picomatch": "^2.3.1" + }, + "peerDependencies": { + "styled-components": ">= 2" + } + }, + "node_modules/bail": { + "version": "2.0.2", + "resolved": "https://registry.npmjs.org/bail/-/bail-2.0.2.tgz", + "integrity": "sha512-0xO6mYd7JB2YesxDKplafRpsiOzPt9V02ddPCLbY1xYGPOX24NTyN50qnUxgCPcSoYMhKpAuBTjQoRZCAkUDRw==", + "funding": { + "type": "github", + "url": "https://github.com/sponsors/wooorm" + } + }, + "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==", + "dev": true + }, + "node_modules/bcp-47-match": { + "version": "1.0.3", + "resolved": "https://registry.npmjs.org/bcp-47-match/-/bcp-47-match-1.0.3.tgz", + "integrity": "sha512-LggQ4YTdjWQSKELZF5JwchnBa1u0pIQSZf5lSdOHEdbVP55h0qICA/FUp3+W99q0xqxYa1ZQizTUH87gecII5w==", + "funding": { + "type": "github", + "url": "https://github.com/sponsors/wooorm" + } + }, + "node_modules/bin-check": { + "version": "4.1.0", + "resolved": "https://registry.npmjs.org/bin-check/-/bin-check-4.1.0.tgz", + "integrity": "sha512-b6weQyEUKsDGFlACWSIOfveEnImkJyK/FGW6FAG42loyoquvjdtOIqO6yBFzHyqyVVhNgNkQxxx09SFLK28YnA==", + "dev": true, + "dependencies": { + "execa": "^0.7.0", + "executable": "^4.1.0" + }, + "engines": { + "node": ">=4" + } + }, + "node_modules/bin-version": { + "version": "6.0.0", + "resolved": "https://registry.npmjs.org/bin-version/-/bin-version-6.0.0.tgz", + "integrity": "sha512-nk5wEsP4RiKjG+vF+uG8lFsEn4d7Y6FVDamzzftSunXOoOcOOkzcWdKVlGgFFwlUQCj63SgnUkLLGF8v7lufhw==", + "dev": true, + "dependencies": { + "execa": "^5.0.0", + "find-versions": "^5.0.0" + }, + "engines": { + "node": ">=12" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/bin-version-check": { + "version": "5.1.0", + "resolved": "https://registry.npmjs.org/bin-version-check/-/bin-version-check-5.1.0.tgz", + "integrity": "sha512-bYsvMqJ8yNGILLz1KP9zKLzQ6YpljV3ln1gqhuLkUtyfGi3qXKGuK2p+U4NAvjVFzDFiBBtOpCOSFNuYYEGZ5g==", + "dev": true, + "dependencies": { + "bin-version": "^6.0.0", + "semver": "^7.5.3", + "semver-truncate": "^3.0.0" + }, + "engines": { + "node": ">=12" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/bin-version/node_modules/cross-spawn": { + "version": "7.0.3", + "resolved": "https://registry.npmjs.org/cross-spawn/-/cross-spawn-7.0.3.tgz", + "integrity": "sha512-iRDPJKUPVEND7dHPO8rkbOnPpyDygcDFtWjpeWNCgy8WP2rXcxXL8TskReQl6OrB2G7+UJrags1q15Fudc7G6w==", + "dev": true, + "dependencies": { + "path-key": "^3.1.0", + "shebang-command": "^2.0.0", + "which": "^2.0.1" + }, + "engines": { + "node": ">= 8" + } + }, + "node_modules/bin-version/node_modules/execa": { + "version": "5.1.1", + "resolved": "https://registry.npmjs.org/execa/-/execa-5.1.1.tgz", + "integrity": "sha512-8uSpZZocAZRBAPIEINJj3Lo9HyGitllczc27Eh5YYojjMFMn8yHMDMaUHE2Jqfq05D/wucwI4JGURyXt1vchyg==", + "dev": true, + "dependencies": { + "cross-spawn": "^7.0.3", + "get-stream": "^6.0.0", + "human-signals": "^2.1.0", + "is-stream": "^2.0.0", + "merge-stream": "^2.0.0", + "npm-run-path": "^4.0.1", + "onetime": "^5.1.2", + "signal-exit": "^3.0.3", + "strip-final-newline": "^2.0.0" + }, + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/sindresorhus/execa?sponsor=1" + } + }, + "node_modules/bin-version/node_modules/get-stream": { + "version": "6.0.1", + "resolved": "https://registry.npmjs.org/get-stream/-/get-stream-6.0.1.tgz", + "integrity": "sha512-ts6Wi+2j3jQjqi70w5AlN8DFnkSwC+MqmxEzdEALB2qXZYV3X/b1CTfgPLGJNMeAWxdPfU8FO1ms3NUfaHCPYg==", + "dev": true, + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/bin-version/node_modules/is-stream": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/is-stream/-/is-stream-2.0.1.tgz", + "integrity": "sha512-hFoiJiTl63nn+kstHGBtewWSKnQLpyb155KHheA1l39uvtO9nWIop1p3udqPcUd/xbF1VLMO4n7OI6p7RbngDg==", + "dev": true, + "engines": { + "node": ">=8" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/bin-version/node_modules/npm-run-path": { + "version": "4.0.1", + "resolved": "https://registry.npmjs.org/npm-run-path/-/npm-run-path-4.0.1.tgz", + "integrity": "sha512-S48WzZW777zhNIrn7gxOlISNAqi9ZC/uQFnRdbeIHhZhCA6UqpkOT8T1G7BvfdgP4Er8gF4sUbaS0i7QvIfCWw==", + "dev": true, + "dependencies": { + "path-key": "^3.0.0" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/bin-version/node_modules/path-key": { + "version": "3.1.1", + "resolved": "https://registry.npmjs.org/path-key/-/path-key-3.1.1.tgz", + "integrity": "sha512-ojmeN0qd+y0jszEtoY48r0Peq5dwMEkIlCOu6Q5f41lfkswXuKtYrhgoTpLnyIcHm24Uhqx+5Tqm2InSwLhE6Q==", + "dev": true, + "engines": { + "node": ">=8" + } + }, + "node_modules/bin-version/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==", + "dev": true, + "dependencies": { + "shebang-regex": "^3.0.0" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/bin-version/node_modules/shebang-regex": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/shebang-regex/-/shebang-regex-3.0.0.tgz", + "integrity": "sha512-7++dFhtcx3353uBaq8DDR4NuxBetBzC7ZQOhmTQInHEd6bSrXdiEyzCvG07Z44UYdLShWUyXt5M/yhz8ekcb1A==", + "dev": true, + "engines": { + "node": ">=8" + } + }, + "node_modules/bin-version/node_modules/which": { + "version": "2.0.2", + "resolved": "https://registry.npmjs.org/which/-/which-2.0.2.tgz", + "integrity": "sha512-BLI3Tl1TW3Pvl70l3yq3Y64i+awpwXqsGBYWkkqMtnbXgrMD+yj7rhW0kuEDxzJaYXGjEW5ogapKNMEKNMjibA==", + "dev": true, + "dependencies": { + "isexe": "^2.0.0" + }, + "bin": { + "node-which": "bin/node-which" + }, + "engines": { + "node": ">= 8" + } + }, + "node_modules/binary-extensions": { + "version": "2.3.0", + "resolved": "https://registry.npmjs.org/binary-extensions/-/binary-extensions-2.3.0.tgz", + "integrity": "sha512-Ceh+7ox5qe7LJuLHoY0feh3pHuUDHAcRUeyL2VYghZwfpkNIy/+8Ocg0a3UuSoYzavmylwuLWQOf3hl0jjMMIw==", + "dev": true, + "engines": { + "node": ">=8" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "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==" + }, + "node_modules/brace-expansion": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-2.0.1.tgz", + "integrity": "sha512-XnAIvQ8eM+kC6aULx6wuQiwVsnzsi9d3WxzV3FpWTGA19F621kwdbsAcFKXgKUHZWsy+mY6iL1sHTxWEFCytDA==", + "dev": true, + "dependencies": { + "balanced-match": "^1.0.0" + } + }, + "node_modules/braces": { + "version": "3.0.3", + "resolved": "https://registry.npmjs.org/braces/-/braces-3.0.3.tgz", + "integrity": "sha512-yQbXgO/OSZVD2IsiLlro+7Hf6Q18EJrKSEsdoMzKePKXct3gvD8oLcOQdIzGupr5Fj+EDe8gO/lxc1BzfMpxvA==", + "dev": true, + "dependencies": { + "fill-range": "^7.1.1" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/browserslist": { + "version": "4.23.3", + "resolved": "https://registry.npmjs.org/browserslist/-/browserslist-4.23.3.tgz", + "integrity": "sha512-btwCFJVjI4YWDNfau8RhZ+B1Q/VLoUITrm3RlP6y1tYGWIOa+InuYiRGXUBXo8nA1qKmHMyLB/iVQg5TT4eFoA==", + "funding": [ + { + "type": "opencollective", + "url": "https://opencollective.com/browserslist" + }, + { + "type": "tidelift", + "url": "https://tidelift.com/funding/github/npm/browserslist" + }, + { + "type": "github", + "url": "https://github.com/sponsors/ai" + } + ], + "dependencies": { + "caniuse-lite": "^1.0.30001646", + "electron-to-chromium": "^1.5.4", + "node-releases": "^2.0.18", + "update-browserslist-db": "^1.1.0" + }, + "bin": { + "browserslist": "cli.js" + }, + "engines": { + "node": "^6 || ^7 || ^8 || ^9 || ^10 || ^11 || ^12 || >=13.7" + } + }, + "node_modules/cacheable-lookup": { + "version": "5.0.4", + "resolved": "https://registry.npmjs.org/cacheable-lookup/-/cacheable-lookup-5.0.4.tgz", + "integrity": "sha512-2/kNscPhpcxrOigMZzbiWF7dz8ilhb/nIHU3EyZiXWXpeq/au8qJ8VhdftMkty3n7Gj6HIGalQG8oiBNB3AJgA==", + "dev": true, + "engines": { + "node": ">=10.6.0" + } + }, + "node_modules/cacheable-request": { + "version": "7.0.4", + "resolved": "https://registry.npmjs.org/cacheable-request/-/cacheable-request-7.0.4.tgz", + "integrity": "sha512-v+p6ongsrp0yTGbJXjgxPow2+DL93DASP4kXCDKb8/bwRtt9OEF3whggkkDkGNzgcWy2XaF4a8nZglC7uElscg==", + "dev": true, + "dependencies": { + "clone-response": "^1.0.2", + "get-stream": "^5.1.0", + "http-cache-semantics": "^4.0.0", + "keyv": "^4.0.0", + "lowercase-keys": "^2.0.0", + "normalize-url": "^6.0.1", + "responselike": "^2.0.0" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/cacheable-request/node_modules/get-stream": { + "version": "5.2.0", + "resolved": "https://registry.npmjs.org/get-stream/-/get-stream-5.2.0.tgz", + "integrity": "sha512-nBF+F1rAZVCu/p7rjzgA+Yb4lfYXrpl7a6VmJrU8wF9I1CKvP/QwPNZHnOlwbTkY6dvtFIzFMSyQXbLoTQPRpA==", + "dev": true, + "dependencies": { + "pump": "^3.0.0" + }, + "engines": { + "node": ">=8" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/camelcase-css": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/camelcase-css/-/camelcase-css-2.0.1.tgz", + "integrity": "sha512-QOSvevhslijgYwRx6Rv7zKdMF8lbRmx+uQGx2+vDc+KI/eBnsy9kit5aj23AgGu3pa4t9AgwbnXWqS+iOY+2aA==", + "dev": true, + "engines": { + "node": ">= 6" + } + }, + "node_modules/camelize": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/camelize/-/camelize-1.0.1.tgz", + "integrity": "sha512-dU+Tx2fsypxTgtLoE36npi3UqcjSSMNYfkqgmoEhtZrraP5VWq0K7FkWVTYa8eMPtnU/G2txVsfdCJTn9uzpuQ==", + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/caniuse-lite": { + "version": "1.0.30001662", + "resolved": "https://registry.npmjs.org/caniuse-lite/-/caniuse-lite-1.0.30001662.tgz", + "integrity": "sha512-sgMUVwLmGseH8ZIrm1d51UbrhqMCH3jvS7gF/M6byuHOnKyLOBL7W8yz5V02OHwgLGA36o/AFhWzzh4uc5aqTA==", + "funding": [ + { + "type": "opencollective", + "url": "https://opencollective.com/browserslist" + }, + { + "type": "tidelift", + "url": "https://tidelift.com/funding/github/npm/caniuse-lite" + }, + { + "type": "github", + "url": "https://github.com/sponsors/ai" + } + ] + }, + "node_modules/ccount": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/ccount/-/ccount-2.0.1.tgz", + "integrity": "sha512-eyrF0jiFpY+3drT6383f1qhkbGsLSifNAjA61IUjZjmLCWjItY6LB9ft9YhoDgwfmclB2zhu51Lc7+95b8NRAg==", + "funding": { + "type": "github", + "url": "https://github.com/sponsors/wooorm" + } + }, + "node_modules/chalk": { + "version": "2.4.2", + "resolved": "https://registry.npmjs.org/chalk/-/chalk-2.4.2.tgz", + "integrity": "sha512-Mti+f9lpJNcwF4tWV8/OrTTtF1gZi+f8FqlyAdouralcFWFQWF2+NgCHShjkCb+IFBLq9buZwE1xckQU4peSuQ==", + "dependencies": { + "ansi-styles": "^3.2.1", + "escape-string-regexp": "^1.0.5", + "supports-color": "^5.3.0" + }, + "engines": { + "node": ">=4" + } + }, + "node_modules/chalk/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==", + "engines": { + "node": ">=0.8.0" + } + }, + "node_modules/character-entities": { + "version": "2.0.2", + "resolved": "https://registry.npmjs.org/character-entities/-/character-entities-2.0.2.tgz", + "integrity": "sha512-shx7oQ0Awen/BRIdkjkvz54PnEEI/EjwXDSIZp86/KKdbafHh1Df/RYGBhn4hbe2+uKC9FnT5UCEdyPz3ai9hQ==", + "funding": { + "type": "github", + "url": "https://github.com/sponsors/wooorm" + } + }, + "node_modules/character-entities-html4": { + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/character-entities-html4/-/character-entities-html4-2.1.0.tgz", + "integrity": "sha512-1v7fgQRj6hnSwFpq1Eu0ynr/CDEw0rXo2B61qXrLNdHZmPKgb7fqS1a2JwF0rISo9q77jDI8VMEHoApn8qDoZA==", + "funding": { + "type": "github", + "url": "https://github.com/sponsors/wooorm" + } + }, + "node_modules/character-entities-legacy": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/character-entities-legacy/-/character-entities-legacy-3.0.0.tgz", + "integrity": "sha512-RpPp0asT/6ufRm//AJVwpViZbGM/MkjQFxJccQRHmISF/22NBtsHqAWmL+/pmkPWoIUJdWyeVleTl1wydHATVQ==", + "funding": { + "type": "github", + "url": "https://github.com/sponsors/wooorm" + } + }, + "node_modules/character-reference-invalid": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/character-reference-invalid/-/character-reference-invalid-2.0.1.tgz", + "integrity": "sha512-iBZ4F4wRbyORVsu0jPV7gXkOsGYjGHPmAyv+HiHG8gi5PtC9KI2j1+v8/tlibRvjoWX027ypmG/n0HtO5t7unw==", + "funding": { + "type": "github", + "url": "https://github.com/sponsors/wooorm" + } + }, + "node_modules/chokidar": { + "version": "3.6.0", + "resolved": "https://registry.npmjs.org/chokidar/-/chokidar-3.6.0.tgz", + "integrity": "sha512-7VT13fmjotKpGipCW9JEQAusEPE+Ei8nl6/g4FBAmIm0GOOLMua9NDDo/DWp0ZAxCr3cPq5ZpBqmPAQgDda2Pw==", + "dev": true, + "dependencies": { + "anymatch": "~3.1.2", + "braces": "~3.0.2", + "glob-parent": "~5.1.2", + "is-binary-path": "~2.1.0", + "is-glob": "~4.0.1", + "normalize-path": "~3.0.0", + "readdirp": "~3.6.0" + }, + "engines": { + "node": ">= 8.10.0" + }, + "funding": { + "url": "https://paulmillr.com/funding/" + }, + "optionalDependencies": { + "fsevents": "~2.3.2" + } + }, + "node_modules/classnames": { + "version": "2.5.1", + "resolved": "https://registry.npmjs.org/classnames/-/classnames-2.5.1.tgz", + "integrity": "sha512-saHYOzhIQs6wy2sVxTM6bUDsQO4F50V9RQ22qBpEdCW+I+/Wmke2HOl6lS6dTpdxVhb88/I6+Hs+438c3lfUow==" + }, + "node_modules/client-only": { + "version": "0.0.1", + "resolved": "https://registry.npmjs.org/client-only/-/client-only-0.0.1.tgz", + "integrity": "sha512-IV3Ou0jSMzZrd3pZ48nLkT9DA7Ag1pnPzaiQhpW7c3RbcqqzvzzVu+L8gfqMp/8IM2MQtSiqaCxrrcfu8I8rMA==" + }, + "node_modules/clone-response": { + "version": "1.0.3", + "resolved": "https://registry.npmjs.org/clone-response/-/clone-response-1.0.3.tgz", + "integrity": "sha512-ROoL94jJH2dUVML2Y/5PEDNaSHgeOdSDicUyS7izcF63G6sTc/FTjLub4b8Il9S8S0beOfYt0TaA5qvFK+w0wA==", + "dev": true, + "dependencies": { + "mimic-response": "^1.0.0" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/color-convert": { + "version": "1.9.3", + "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-1.9.3.tgz", + "integrity": "sha512-QfAUtd+vFdAtFQcC8CCyYt1fYWxSqAiK2cSD6zDB8N3cpsEBAvRxp9zOGg6G/SHHJYAT88/az/IuDGALsNVbGg==", + "dependencies": { + "color-name": "1.1.3" + } + }, + "node_modules/color-name": { + "version": "1.1.3", + "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.3.tgz", + "integrity": "sha512-72fSenhMw2HZMTVHeCA9KCmpEIbzWiQsjN+BHcBbS9vr1mtt+vJjPdksIBNUmKAW8TFUDPJK5SUU3QhE9NEXDw==" + }, + "node_modules/combined-stream": { + "version": "1.0.8", + "resolved": "https://registry.npmjs.org/combined-stream/-/combined-stream-1.0.8.tgz", + "integrity": "sha512-FQN4MRfuJeHf7cBbBMJFXhKSDq+2kAArBlmRBvcvFE5BB1HZKXtSFASDhdlz9zOYwxh8lDdnvmMOe/+5cdoEdg==", + "dev": true, + "dependencies": { + "delayed-stream": "~1.0.0" + }, + "engines": { + "node": ">= 0.8" + } + }, + "node_modules/comma-separated-tokens": { + "version": "2.0.3", + "resolved": "https://registry.npmjs.org/comma-separated-tokens/-/comma-separated-tokens-2.0.3.tgz", + "integrity": "sha512-Fu4hJdvzeylCfQPp9SGWidpzrMs7tTrlu6Vb8XGaRGck8QSNZJJp538Wrb60Lax4fPwR64ViY468OIUTbRlGZg==", + "funding": { + "type": "github", + "url": "https://github.com/sponsors/wooorm" + } + }, + "node_modules/commander": { + "version": "8.3.0", + "resolved": "https://registry.npmjs.org/commander/-/commander-8.3.0.tgz", + "integrity": "sha512-OkTL9umf+He2DZkUq8f8J9of7yL6RJKI24dVITBmNfZBmri9zYZQrKkuXiKhyfPSu8tUhnVBB1iKXevvnlR4Ww==", + "engines": { + "node": ">= 12" + } + }, + "node_modules/compute-scroll-into-view": { + "version": "2.0.4", + "resolved": "https://registry.npmjs.org/compute-scroll-into-view/-/compute-scroll-into-view-2.0.4.tgz", + "integrity": "sha512-y/ZA3BGnxoM/QHHQ2Uy49CLtnWPbt4tTPpEEZiEmmiWBFKjej7nEyH8Ryz54jH0MLXflUYA3Er2zUxPSJu5R+g==" + }, + "node_modules/content-disposition": { + "version": "0.5.4", + "resolved": "https://registry.npmjs.org/content-disposition/-/content-disposition-0.5.4.tgz", + "integrity": "sha512-FveZTNuGw04cxlAiWbzi6zTAL/lhehaWbTtgluJh4/E95DqMwTmha3KZN1aAWA8cFIhHzMZUvLevkw5Rqk+tSQ==", + "dev": true, + "dependencies": { + "safe-buffer": "5.2.1" + }, + "engines": { + "node": ">= 0.6" + } + }, + "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==", + "peer": true + }, + "node_modules/core": { + "resolved": "../core", + "link": true + }, + "node_modules/crelt": { + "version": "1.0.6", + "resolved": "https://registry.npmjs.org/crelt/-/crelt-1.0.6.tgz", + "integrity": "sha512-VQ2MBenTq1fWZUH9DJNGti7kKv6EeAuYr3cLwxUWhIu1baTaXh4Ib5W2CqHVqib4/MqbYGJqiL3Zb8GJZr3l4g==" + }, + "node_modules/cross-spawn": { + "version": "5.1.0", + "resolved": "https://registry.npmjs.org/cross-spawn/-/cross-spawn-5.1.0.tgz", + "integrity": "sha512-pTgQJ5KC0d2hcY8eyL1IzlBPYjTkyH72XRZPnLyKus2mBfNjQs3klqbJU2VILqZryAZUt9JOb3h/mWMy23/f5A==", + "dev": true, + "dependencies": { + "lru-cache": "^4.0.1", + "shebang-command": "^1.2.0", + "which": "^1.2.9" + } + }, + "node_modules/css-color-keywords": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/css-color-keywords/-/css-color-keywords-1.0.0.tgz", + "integrity": "sha512-FyyrDHZKEjXDpNJYvVsV960FiqQyXc/LlYmsxl2BcdMb2WPx0OGRVgTg55rPSyLSNMqP52R9r8geSp7apN3Ofg==", + "engines": { + "node": ">=4" + } + }, + "node_modules/css-selector-parser": { + "version": "1.4.1", + "resolved": "https://registry.npmjs.org/css-selector-parser/-/css-selector-parser-1.4.1.tgz", + "integrity": "sha512-HYPSb7y/Z7BNDCOrakL4raGO2zltZkbeXyAd6Tg9obzix6QhzxCotdBl6VT0Dv4vZfJGVz3WL/xaEI9Ly3ul0g==" + }, + "node_modules/css-to-react-native": { + "version": "3.2.0", + "resolved": "https://registry.npmjs.org/css-to-react-native/-/css-to-react-native-3.2.0.tgz", + "integrity": "sha512-e8RKaLXMOFii+02mOlqwjbD00KSEKqblnpO9e++1aXS1fPQOpS1YoqdVHBqPjHNoxeF2mimzVqawm2KCbEdtHQ==", + "dependencies": { + "camelize": "^1.0.0", + "css-color-keywords": "^1.0.0", + "postcss-value-parser": "^4.0.2" + } + }, + "node_modules/cssesc": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/cssesc/-/cssesc-3.0.0.tgz", + "integrity": "sha512-/Tb/JcjK111nNScGob5MNtsntNM1aCNUDipB/TkwZFhyDrrE47SOx/18wF2bbjgc3ZzCSKW1T5nt5EbFoAz/Vg==", + "dev": true, + "bin": { + "cssesc": "bin/cssesc" + }, + "engines": { + "node": ">=4" + } + }, + "node_modules/csstype": { + "version": "3.1.3", + "resolved": "https://registry.npmjs.org/csstype/-/csstype-3.1.3.tgz", + "integrity": "sha512-M1uQkMl8rQK/szD0LNhtqxIPLpimGm8sOBwU7lLnCpSbTyY3yeU1Vc7l4KT5zT4s/yOxHH5O7tIuuLOCnLADRw==" + }, + "node_modules/debug": { + "version": "4.3.7", + "resolved": "https://registry.npmjs.org/debug/-/debug-4.3.7.tgz", + "integrity": "sha512-Er2nc/H7RrMXZBFCEim6TCmMk02Z8vLC2Rbi1KEBggpo0fS6l0S1nnapwmIi3yW/+GOJap1Krg4w0Hg80oCqgQ==", + "dependencies": { + "ms": "^2.1.3" + }, + "engines": { + "node": ">=6.0" + }, + "peerDependenciesMeta": { + "supports-color": { + "optional": true + } + } + }, + "node_modules/decode-named-character-reference": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/decode-named-character-reference/-/decode-named-character-reference-1.0.2.tgz", + "integrity": "sha512-O8x12RzrUF8xyVcY0KJowWsmaJxQbmy0/EtnNtHRpsOcT7dFk5W598coHqBVpmWo1oQQfsCqfCmkZN5DJrZVdg==", + "dependencies": { + "character-entities": "^2.0.0" + }, + "funding": { + "type": "github", + "url": "https://github.com/sponsors/wooorm" + } + }, + "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==", + "dev": true, + "dependencies": { + "mimic-response": "^3.1.0" + }, + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/decompress-response/node_modules/mimic-response": { + "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==", + "dev": true, + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/defer-to-connect": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/defer-to-connect/-/defer-to-connect-2.0.1.tgz", + "integrity": "sha512-4tvttepXG1VaYGrRibk5EwJd1t4udunSOVMdLSAL6mId1ix438oPwPZMALY41FCijukO1L0twNcGsdzS7dHgDg==", + "dev": true, + "engines": { + "node": ">=10" + } + }, + "node_modules/delayed-stream": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/delayed-stream/-/delayed-stream-1.0.0.tgz", + "integrity": "sha512-ZySD7Nf91aLB0RxL4KGrKHBXl7Eds1DAmEdcoVawXnLD7SDhpNgtuII2aAkg7a7QS41jxPSZ17p4VdGnMHk3MQ==", + "dev": true, + "engines": { + "node": ">=0.4.0" + } + }, + "node_modules/dequal": { + "version": "2.0.3", + "resolved": "https://registry.npmjs.org/dequal/-/dequal-2.0.3.tgz", + "integrity": "sha512-0je+qPKHEMohvfRTCEo3CrPG6cAzAYgmzKyxRiYSSDkS6eGJdyVJm7WaYA5ECaAD9wLB2T4EEeymA5aFVcYXCA==", + "engines": { + "node": ">=6" + } + }, + "node_modules/devlop": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/devlop/-/devlop-1.1.0.tgz", + "integrity": "sha512-RWmIqhcFf1lRYBvNmr7qTNuyCt/7/ns2jbpp1+PalgE/rDQcBT0fioSMUpJ93irlUhC5hrg4cYqe6U+0ImW0rA==", + "dependencies": { + "dequal": "^2.0.0" + }, + "funding": { + "type": "github", + "url": "https://github.com/sponsors/wooorm" + } + }, + "node_modules/didyoumean": { + "version": "1.2.2", + "resolved": "https://registry.npmjs.org/didyoumean/-/didyoumean-1.2.2.tgz", + "integrity": "sha512-gxtyfqMg7GKyhQmb056K7M3xszy/myH8w+B4RT+QXBQsvAOdc3XymqDDPHx1BgPgsdAA5SIifona89YtRATDzw==", + "dev": true + }, + "node_modules/direction": { + "version": "1.0.4", + "resolved": "https://registry.npmjs.org/direction/-/direction-1.0.4.tgz", + "integrity": "sha512-GYqKi1aH7PJXxdhTeZBFrg8vUBeKXi+cNprXsC1kpJcbcVnV9wBsrOu1cQEdG0WeQwlfHiy3XvnKfIrJ2R0NzQ==", + "bin": { + "direction": "cli.js" + }, + "funding": { + "type": "github", + "url": "https://github.com/sponsors/wooorm" + } + }, + "node_modules/dlv": { + "version": "1.1.3", + "resolved": "https://registry.npmjs.org/dlv/-/dlv-1.1.3.tgz", + "integrity": "sha512-+HlytyjlPKnIG8XuRG8WvmBP8xs8P71y+SKKS6ZXWoEgLuePxtDoUEiH7WkdePWrQ5JBpE6aoVqfZfJUQkjXwA==", + "dev": true + }, + "node_modules/dompurify": { + "version": "3.1.6", + "resolved": "https://registry.npmjs.org/dompurify/-/dompurify-3.1.6.tgz", + "integrity": "sha512-cTOAhc36AalkjtBpfG6O8JimdTMWNXjiePT2xQH/ppBGi/4uIpmj8eKyIkMJErXWARyINV/sB38yf8JCLF5pbQ==" + }, + "node_modules/downshift": { + "version": "7.6.2", + "resolved": "https://registry.npmjs.org/downshift/-/downshift-7.6.2.tgz", + "integrity": "sha512-iOv+E1Hyt3JDdL9yYcOgW7nZ7GQ2Uz6YbggwXvKUSleetYhU2nXD482Rz6CzvM4lvI1At34BYruKAL4swRGxaA==", + "dependencies": { + "@babel/runtime": "^7.14.8", + "compute-scroll-into-view": "^2.0.4", + "prop-types": "^15.7.2", + "react-is": "^17.0.2", + "tslib": "^2.3.0" + }, + "peerDependencies": { + "react": ">=16.12.0" + } + }, + "node_modules/downshift/node_modules/react-is": { + "version": "17.0.2", + "resolved": "https://registry.npmjs.org/react-is/-/react-is-17.0.2.tgz", + "integrity": "sha512-w2GsyukL62IJnlaff/nRegPQR94C/XXamvMWmSHRJ4y7Ts/4ocGRmTHvOs8PSE6pB3dWOrD/nueuU5sduBsQ4w==" + }, + "node_modules/eastasianwidth": { + "version": "0.2.0", + "resolved": "https://registry.npmjs.org/eastasianwidth/-/eastasianwidth-0.2.0.tgz", + "integrity": "sha512-I88TYZWc9XiYHRQ4/3c5rjjfgkjhLyW2luGIheGERbNQ6OY7yTybanSpDXZa8y7VUP9YmDcYa+eyq4ca7iLqWA==", + "dev": true + }, + "node_modules/electron-to-chromium": { + "version": "1.5.27", + "resolved": "https://registry.npmjs.org/electron-to-chromium/-/electron-to-chromium-1.5.27.tgz", + "integrity": "sha512-o37j1vZqCoEgBuWWXLHQgTN/KDKe7zwpiY5CPeq2RvUqOyJw9xnrULzZAEVQ5p4h+zjMk7hgtOoPdnLxr7m/jw==" + }, + "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/end-of-stream": { + "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==", + "dev": true, + "dependencies": { + "once": "^1.4.0" + } + }, + "node_modules/engine.io-client": { + "version": "6.6.1", + "resolved": "https://registry.npmjs.org/engine.io-client/-/engine.io-client-6.6.1.tgz", + "integrity": "sha512-aYuoak7I+R83M/BBPIOs2to51BmFIpC1wZe6zZzMrT2llVsHy5cvcmdsJgP2Qz6smHu+sD9oexiSUAVd8OfBPw==", + "dependencies": { + "@socket.io/component-emitter": "~3.1.0", + "debug": "~4.3.1", + "engine.io-parser": "~5.2.1", + "ws": "~8.17.1", + "xmlhttprequest-ssl": "~2.1.1" + } + }, + "node_modules/engine.io-parser": { + "version": "5.2.3", + "resolved": "https://registry.npmjs.org/engine.io-parser/-/engine.io-parser-5.2.3.tgz", + "integrity": "sha512-HqD3yTBfnBxIrbnM1DoD6Pcq8NECnh8d4As1Qgh0z5Gg3jRRIqijury0CL3ghu/edArpUYiYqQiDUQBIs4np3Q==", + "engines": { + "node": ">=10.0.0" + } + }, + "node_modules/entities": { + "version": "4.5.0", + "resolved": "https://registry.npmjs.org/entities/-/entities-4.5.0.tgz", + "integrity": "sha512-V0hjH4dGPh9Ao5p0MoRY6BVqtwCjhz6vI5LT8AJ55H+4g9/4vbHx1I54fS0XuclLhDHArPQCiMjDxjaL8fPxhw==", + "engines": { + "node": ">=0.12" + }, + "funding": { + "url": "https://github.com/fb55/entities?sponsor=1" + } + }, + "node_modules/esbuild": { + "version": "0.18.20", + "resolved": "https://registry.npmjs.org/esbuild/-/esbuild-0.18.20.tgz", + "integrity": "sha512-ceqxoedUrcayh7Y7ZX6NdbbDzGROiyVBgC4PriJThBKSVPWnnFHZAkfI1lJT8QFkOwH4qOS2SJkS4wvpGl8BpA==", + "dev": true, + "hasInstallScript": true, + "bin": { + "esbuild": "bin/esbuild" + }, + "engines": { + "node": ">=12" + }, + "optionalDependencies": { + "@esbuild/android-arm": "0.18.20", + "@esbuild/android-arm64": "0.18.20", + "@esbuild/android-x64": "0.18.20", + "@esbuild/darwin-arm64": "0.18.20", + "@esbuild/darwin-x64": "0.18.20", + "@esbuild/freebsd-arm64": "0.18.20", + "@esbuild/freebsd-x64": "0.18.20", + "@esbuild/linux-arm": "0.18.20", + "@esbuild/linux-arm64": "0.18.20", + "@esbuild/linux-ia32": "0.18.20", + "@esbuild/linux-loong64": "0.18.20", + "@esbuild/linux-mips64el": "0.18.20", + "@esbuild/linux-ppc64": "0.18.20", + "@esbuild/linux-riscv64": "0.18.20", + "@esbuild/linux-s390x": "0.18.20", + "@esbuild/linux-x64": "0.18.20", + "@esbuild/netbsd-x64": "0.18.20", + "@esbuild/openbsd-x64": "0.18.20", + "@esbuild/sunos-x64": "0.18.20", + "@esbuild/win32-arm64": "0.18.20", + "@esbuild/win32-ia32": "0.18.20", + "@esbuild/win32-x64": "0.18.20" + } + }, + "node_modules/escalade": { + "version": "3.2.0", + "resolved": "https://registry.npmjs.org/escalade/-/escalade-3.2.0.tgz", + "integrity": "sha512-WUj2qlxaQtO4g6Pq5c29GTcWGDyd8itL8zTlipgECz3JesAiiOKotd8JU6otB3PACgG6xkJUyVhboMS+bje/jA==", + "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==", + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/estree-util-is-identifier-name": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/estree-util-is-identifier-name/-/estree-util-is-identifier-name-3.0.0.tgz", + "integrity": "sha512-hFtqIDZTIUZ9BXLb8y4pYGyk6+wekIivNVTcmvk8NoOh+VeRn5y6cEHzbURrWbfp1fIqdVipilzj+lfaadNZmg==", + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/unified" + } + }, + "node_modules/execa": { + "version": "0.7.0", + "resolved": "https://registry.npmjs.org/execa/-/execa-0.7.0.tgz", + "integrity": "sha512-RztN09XglpYI7aBBrJCPW95jEH7YF1UEPOoX9yDhUTPdp7mK+CQvnLTuD10BNXZ3byLTu2uehZ8EcKT/4CGiFw==", + "dev": true, + "dependencies": { + "cross-spawn": "^5.0.1", + "get-stream": "^3.0.0", + "is-stream": "^1.1.0", + "npm-run-path": "^2.0.0", + "p-finally": "^1.0.0", + "signal-exit": "^3.0.0", + "strip-eof": "^1.0.0" + }, + "engines": { + "node": ">=4" + } + }, + "node_modules/executable": { + "version": "4.1.1", + "resolved": "https://registry.npmjs.org/executable/-/executable-4.1.1.tgz", + "integrity": "sha512-8iA79xD3uAch729dUG8xaaBBFGaEa0wdD2VkYLFHwlqosEj/jT66AzcreRDSgV7ehnNLBW2WR5jIXwGKjVdTLg==", + "dev": true, + "dependencies": { + "pify": "^2.2.0" + }, + "engines": { + "node": ">=4" + } + }, + "node_modules/ext-list": { + "version": "2.2.2", + "resolved": "https://registry.npmjs.org/ext-list/-/ext-list-2.2.2.tgz", + "integrity": "sha512-u+SQgsubraE6zItfVA0tBuCBhfU9ogSRnsvygI7wht9TS510oLkBRXBsqopeUG/GBOIQyKZO9wjTqIu/sf5zFA==", + "dev": true, + "dependencies": { + "mime-db": "^1.28.0" + }, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/ext-name": { + "version": "5.0.0", + "resolved": "https://registry.npmjs.org/ext-name/-/ext-name-5.0.0.tgz", + "integrity": "sha512-yblEwXAbGv1VQDmow7s38W77hzAgJAO50ztBLMcUyUBfxv1HC+LGwtiEN+Co6LtlqT/5uwVOxsD4TNIilWhwdQ==", + "dev": true, + "dependencies": { + "ext-list": "^2.0.0", + "sort-keys-length": "^1.0.0" + }, + "engines": { + "node": ">=4" + } + }, + "node_modules/extend": { + "version": "3.0.2", + "resolved": "https://registry.npmjs.org/extend/-/extend-3.0.2.tgz", + "integrity": "sha512-fjquC59cD7CyW6urNXK0FBufkZcoiGG80wTuPujX590cB5Ttln20E2UB4S/WARVqhXffZl2LNgS+gQdPIIim/g==" + }, + "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==" + }, + "node_modules/fast-glob": { + "version": "3.3.2", + "resolved": "https://registry.npmjs.org/fast-glob/-/fast-glob-3.3.2.tgz", + "integrity": "sha512-oX2ruAFQwf/Orj8m737Y5adxDQO0LAB7/S5MnxCdTNDd4p6BsyIVsv9JQsATbTSq8KHRpLwIHbVlUNatxd+1Ow==", + "dev": true, + "dependencies": { + "@nodelib/fs.stat": "^2.0.2", + "@nodelib/fs.walk": "^1.2.3", + "glob-parent": "^5.1.2", + "merge2": "^1.3.0", + "micromatch": "^4.0.4" + }, + "engines": { + "node": ">=8.6.0" + } + }, + "node_modules/fast-uri": { + "version": "3.0.1", + "resolved": "https://registry.npmjs.org/fast-uri/-/fast-uri-3.0.1.tgz", + "integrity": "sha512-MWipKbbYiYI0UC7cl8m/i/IWTqfC8YXsqjzybjddLsFjStroQzsHXkc73JutMvBiXmOvapk+axIl79ig5t55Bw==" + }, + "node_modules/fastq": { + "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" + } + }, + "node_modules/fault": { + "version": "1.0.4", + "resolved": "https://registry.npmjs.org/fault/-/fault-1.0.4.tgz", + "integrity": "sha512-CJ0HCB5tL5fYTEA7ToAq5+kTwd++Borf1/bifxd9iT70QcXr4MRrO3Llf8Ifs70q+SJcGHFtnIE/Nw6giCtECA==", + "dependencies": { + "format": "^0.2.0" + }, + "funding": { + "type": "github", + "url": "https://github.com/sponsors/wooorm" + } + }, + "node_modules/fflate": { + "version": "0.4.8", + "resolved": "https://registry.npmjs.org/fflate/-/fflate-0.4.8.tgz", + "integrity": "sha512-FJqqoDBR00Mdj9ppamLa/Y7vxm+PRmNWA67N846RvsoYVMKB4q3y/de5PA7gUmRMYK/8CMz2GDZQmCRN1wBcWA==" + }, + "node_modules/file-type": { + "version": "17.1.6", + "resolved": "https://registry.npmjs.org/file-type/-/file-type-17.1.6.tgz", + "integrity": "sha512-hlDw5Ev+9e883s0pwUsuuYNu4tD7GgpUnOvykjv1Gya0ZIjuKumthDRua90VUn6/nlRKAjcxLUnHNTIUWwWIiw==", + "dev": true, + "dependencies": { + "readable-web-to-node-stream": "^3.0.2", + "strtok3": "^7.0.0-alpha.9", + "token-types": "^5.0.0-alpha.2" + }, + "engines": { + "node": "^12.20.0 || ^14.13.1 || >=16.0.0" + }, + "funding": { + "url": "https://github.com/sindresorhus/file-type?sponsor=1" + } + }, + "node_modules/filename-reserved-regex": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/filename-reserved-regex/-/filename-reserved-regex-3.0.0.tgz", + "integrity": "sha512-hn4cQfU6GOT/7cFHXBqeBg2TbrMBgdD0kcjLhvSQYYwm3s4B6cjvBfb7nBALJLAXqmU5xajSa7X2NnUud/VCdw==", + "dev": true, + "engines": { + "node": "^12.20.0 || ^14.13.1 || >=16.0.0" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/filenamify": { + "version": "5.1.1", + "resolved": "https://registry.npmjs.org/filenamify/-/filenamify-5.1.1.tgz", + "integrity": "sha512-M45CbrJLGACfrPOkrTp3j2EcO9OBkKUYME0eiqOCa7i2poaklU0jhlIaMlr8ijLorT0uLAzrn3qXOp5684CkfA==", + "dev": true, + "dependencies": { + "filename-reserved-regex": "^3.0.0", + "strip-outer": "^2.0.0", + "trim-repeated": "^2.0.0" + }, + "engines": { + "node": ">=12.20" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/fill-range": { + "version": "7.1.1", + "resolved": "https://registry.npmjs.org/fill-range/-/fill-range-7.1.1.tgz", + "integrity": "sha512-YsGpe3WHLK8ZYi4tWDg2Jy3ebRz2rXowDxnld4bkQB00cc/1Zw9AWnC0i9ztDJitivtQvaI9KaLyKrc+hBW0yg==", + "dev": true, + "dependencies": { + "to-regex-range": "^5.0.1" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/find-versions": { + "version": "5.1.0", + "resolved": "https://registry.npmjs.org/find-versions/-/find-versions-5.1.0.tgz", + "integrity": "sha512-+iwzCJ7C5v5KgcBuueqVoNiHVoQpwiUK5XFLjf0affFTep+Wcw93tPvmb8tqujDNmzhBDPddnWV/qgWSXgq+Hg==", + "dev": true, + "dependencies": { + "semver-regex": "^4.0.5" + }, + "engines": { + "node": ">=12" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/foreground-child": { + "version": "3.3.0", + "resolved": "https://registry.npmjs.org/foreground-child/-/foreground-child-3.3.0.tgz", + "integrity": "sha512-Ld2g8rrAyMYFXBhEqMz8ZAHBi4J4uS1i/CxGMDnjyFWddMXLVcDp051DZfu+t7+ab7Wv6SMqpWmyFIj5UbfFvg==", + "dev": true, + "dependencies": { + "cross-spawn": "^7.0.0", + "signal-exit": "^4.0.1" + }, + "engines": { + "node": ">=14" + }, + "funding": { + "url": "https://github.com/sponsors/isaacs" + } + }, + "node_modules/foreground-child/node_modules/cross-spawn": { + "version": "7.0.3", + "resolved": "https://registry.npmjs.org/cross-spawn/-/cross-spawn-7.0.3.tgz", + "integrity": "sha512-iRDPJKUPVEND7dHPO8rkbOnPpyDygcDFtWjpeWNCgy8WP2rXcxXL8TskReQl6OrB2G7+UJrags1q15Fudc7G6w==", + "dev": true, + "dependencies": { + "path-key": "^3.1.0", + "shebang-command": "^2.0.0", + "which": "^2.0.1" + }, + "engines": { + "node": ">= 8" + } + }, + "node_modules/foreground-child/node_modules/path-key": { + "version": "3.1.1", + "resolved": "https://registry.npmjs.org/path-key/-/path-key-3.1.1.tgz", + "integrity": "sha512-ojmeN0qd+y0jszEtoY48r0Peq5dwMEkIlCOu6Q5f41lfkswXuKtYrhgoTpLnyIcHm24Uhqx+5Tqm2InSwLhE6Q==", + "dev": true, + "engines": { + "node": ">=8" + } + }, + "node_modules/foreground-child/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==", + "dev": true, + "dependencies": { + "shebang-regex": "^3.0.0" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/foreground-child/node_modules/shebang-regex": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/shebang-regex/-/shebang-regex-3.0.0.tgz", + "integrity": "sha512-7++dFhtcx3353uBaq8DDR4NuxBetBzC7ZQOhmTQInHEd6bSrXdiEyzCvG07Z44UYdLShWUyXt5M/yhz8ekcb1A==", + "dev": true, + "engines": { + "node": ">=8" + } + }, + "node_modules/foreground-child/node_modules/signal-exit": { + "version": "4.1.0", + "resolved": "https://registry.npmjs.org/signal-exit/-/signal-exit-4.1.0.tgz", + "integrity": "sha512-bzyZ1e88w9O1iNJbKnOlvYTrWPDl46O1bG0D3XInv+9tkPrxrN8jUUTiFlDkkmKWgn1M6CfIA13SuGqOa9Korw==", + "dev": true, + "engines": { + "node": ">=14" + }, + "funding": { + "url": "https://github.com/sponsors/isaacs" + } + }, + "node_modules/foreground-child/node_modules/which": { + "version": "2.0.2", + "resolved": "https://registry.npmjs.org/which/-/which-2.0.2.tgz", + "integrity": "sha512-BLI3Tl1TW3Pvl70l3yq3Y64i+awpwXqsGBYWkkqMtnbXgrMD+yj7rhW0kuEDxzJaYXGjEW5ogapKNMEKNMjibA==", + "dev": true, + "dependencies": { + "isexe": "^2.0.0" + }, + "bin": { + "node-which": "bin/node-which" + }, + "engines": { + "node": ">= 8" + } + }, + "node_modules/form-data": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/form-data/-/form-data-4.0.0.tgz", + "integrity": "sha512-ETEklSGi5t0QMZuiXoA/Q6vcnxcLQP5vdugSpuAyi6SVGi2clPPp+xgEhuMaHC+zGgn31Kd235W35f7Hykkaww==", + "dev": true, + "dependencies": { + "asynckit": "^0.4.0", + "combined-stream": "^1.0.8", + "mime-types": "^2.1.12" + }, + "engines": { + "node": ">= 6" + } + }, + "node_modules/format": { + "version": "0.2.2", + "resolved": "https://registry.npmjs.org/format/-/format-0.2.2.tgz", + "integrity": "sha512-wzsgA6WOq+09wrU1tsJ09udeR/YZRaeArL9e1wPbFg3GG2yDnC2ldKpxs4xunpFF9DgqCqOIra3bc1HWrJ37Ww==", + "engines": { + "node": ">=0.4.x" + } + }, + "node_modules/fraction.js": { + "version": "4.3.7", + "resolved": "https://registry.npmjs.org/fraction.js/-/fraction.js-4.3.7.tgz", + "integrity": "sha512-ZsDfxO51wGAXREY55a7la9LScWpwv9RxIrYABrlvOFBlH/ShPnrtsXeuUIfXKKOVicNxQ+o8JTbJvjS4M89yew==", + "dev": true, + "engines": { + "node": "*" + }, + "funding": { + "type": "patreon", + "url": "https://github.com/sponsors/rawify" + } + }, + "node_modules/fs-extra": { + "version": "10.1.0", + "resolved": "https://registry.npmjs.org/fs-extra/-/fs-extra-10.1.0.tgz", + "integrity": "sha512-oRXApq54ETRj4eMiFzGnHWGy+zo5raudjuxN0b8H7s/RU2oW0Wvsx9O0ACRN/kRq9E8Vu/ReskGB5o3ji+FzHQ==", + "dependencies": { + "graceful-fs": "^4.2.0", + "jsonfile": "^6.0.1", + "universalify": "^2.0.0" + }, + "engines": { + "node": ">=12" + } + }, + "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, + "hasInstallScript": true, + "optional": true, + "os": [ + "darwin" + ], + "engines": { + "node": "^8.16.0 || ^10.6.0 || >=11.0.0" + } + }, + "node_modules/function-bind": { + "version": "1.1.2", + "resolved": "https://registry.npmjs.org/function-bind/-/function-bind-1.1.2.tgz", + "integrity": "sha512-7XHNxH7qX9xG5mIwxkhumTox/MIRNcOgDrxWsMt2pAr23WHp6MrRlN7FBSFpCpr+oVO0F744iUgR82nJMfG2SA==", + "dev": true, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/gensync": { + "version": "1.0.0-beta.2", + "resolved": "https://registry.npmjs.org/gensync/-/gensync-1.0.0-beta.2.tgz", + "integrity": "sha512-3hN7NaskYvMDLQY55gnW3NQ+mesEAepTqlg+VEbj7zzqEMBVNhzcGYYeqFo/TlYz6eQiFcp1HcsCZO+nGgS8zg==", + "peer": true, + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/get-stream": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/get-stream/-/get-stream-3.0.0.tgz", + "integrity": "sha512-GlhdIUuVakc8SJ6kK0zAFbiGzRFzNnY4jUuEbV9UROo4Y+0Ny4fjvcZFVTeDA4odpFyOQzaw6hXukJSq/f28sQ==", + "dev": true, + "engines": { + "node": ">=4" + } + }, + "node_modules/glob": { + "version": "10.4.5", + "resolved": "https://registry.npmjs.org/glob/-/glob-10.4.5.tgz", + "integrity": "sha512-7Bv8RF0k6xjo7d4A/PxYLbUCfb6c+Vpd2/mB2yRDlew7Jb5hEXiCD9ibfO7wpk8i4sevK6DFny9h7EYbM3/sHg==", + "dev": true, + "dependencies": { + "foreground-child": "^3.1.0", + "jackspeak": "^3.1.2", + "minimatch": "^9.0.4", + "minipass": "^7.1.2", + "package-json-from-dist": "^1.0.0", + "path-scurry": "^1.11.1" + }, + "bin": { + "glob": "dist/esm/bin.mjs" + }, + "funding": { + "url": "https://github.com/sponsors/isaacs" + } + }, + "node_modules/glob-parent": { + "version": "5.1.2", + "resolved": "https://registry.npmjs.org/glob-parent/-/glob-parent-5.1.2.tgz", + "integrity": "sha512-AOIgSQCepiJYwP3ARnGx+5VnTu2HBYdzbGP45eLw1vr3zB3vZLeyed1sC9hnbcOc9/SrMyM5RPQrkGz4aS9Zow==", + "dev": true, + "dependencies": { + "is-glob": "^4.0.1" + }, + "engines": { + "node": ">= 6" + } + }, + "node_modules/globals": { + "version": "11.12.0", + "resolved": "https://registry.npmjs.org/globals/-/globals-11.12.0.tgz", + "integrity": "sha512-WOBp/EEGUiIsJSp7wcv/y6MO+lV9UoncWqxuFfm8eBwzWNgyfBd6Gz+IeKQ9jCmyhoH99g15M3T+QaVHFjizVA==", + "engines": { + "node": ">=4" + } + }, + "node_modules/got": { + "version": "11.8.6", + "resolved": "https://registry.npmjs.org/got/-/got-11.8.6.tgz", + "integrity": "sha512-6tfZ91bOr7bOXnK7PRDCGBLa1H4U080YHNaAQ2KsMGlLEzRbk44nsZF2E1IeRc3vtJHPVbKCYgdFbaGO2ljd8g==", + "dev": true, + "dependencies": { + "@sindresorhus/is": "^4.0.0", + "@szmarczak/http-timer": "^4.0.5", + "@types/cacheable-request": "^6.0.1", + "@types/responselike": "^1.0.0", + "cacheable-lookup": "^5.0.3", + "cacheable-request": "^7.0.2", + "decompress-response": "^6.0.0", + "http2-wrapper": "^1.0.0-beta.5.2", + "lowercase-keys": "^2.0.0", + "p-cancelable": "^2.0.0", + "responselike": "^2.0.0" + }, + "engines": { + "node": ">=10.19.0" + }, + "funding": { + "url": "https://github.com/sindresorhus/got?sponsor=1" + } + }, + "node_modules/graceful-fs": { + "version": "4.2.11", + "resolved": "https://registry.npmjs.org/graceful-fs/-/graceful-fs-4.2.11.tgz", + "integrity": "sha512-RbJ5/jmFcNNCcDV5o9eTnBLJ/HszWV0P73bc+Ff4nS/rJj+YaS6IGyiOL0VoBYX+l1Wrl3k63h/KrH+nhJ0XvQ==" + }, + "node_modules/has-flag": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-3.0.0.tgz", + "integrity": "sha512-sKJf1+ceQBr4SMkvQnBDNDtf4TXpVhVGateu0t918bl30FnbE2m4vNLX+VWe/dpjlb+HugGYzW7uQXH98HPEYw==", + "engines": { + "node": ">=4" + } + }, + "node_modules/hasown": { + "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" + }, + "engines": { + "node": ">= 0.4" + } + }, + "node_modules/hast-to-hyperscript": { + "version": "9.0.1", + "resolved": "https://registry.npmjs.org/hast-to-hyperscript/-/hast-to-hyperscript-9.0.1.tgz", + "integrity": "sha512-zQgLKqF+O2F72S1aa4y2ivxzSlko3MAvxkwG8ehGmNiqd98BIN3JM1rAJPmplEyLmGLO2QZYJtIneOSZ2YbJuA==", + "dependencies": { + "@types/unist": "^2.0.3", + "comma-separated-tokens": "^1.0.0", + "property-information": "^5.3.0", + "space-separated-tokens": "^1.0.0", + "style-to-object": "^0.3.0", + "unist-util-is": "^4.0.0", + "web-namespaces": "^1.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/unified" + } + }, + "node_modules/hast-to-hyperscript/node_modules/@types/unist": { + "version": "2.0.11", + "resolved": "https://registry.npmjs.org/@types/unist/-/unist-2.0.11.tgz", + "integrity": "sha512-CmBKiL6NNo/OqgmMn95Fk9Whlp2mtvIv+KNpQKN2F4SjvrEesubTRWGYSg+BnWZOnlCaSTU1sMpsBOzgbYhnsA==" + }, + "node_modules/hast-to-hyperscript/node_modules/comma-separated-tokens": { + "version": "1.0.8", + "resolved": "https://registry.npmjs.org/comma-separated-tokens/-/comma-separated-tokens-1.0.8.tgz", + "integrity": "sha512-GHuDRO12Sypu2cV70d1dkA2EUmXHgntrzbpvOB+Qy+49ypNfGgFQIC2fhhXbnyrJRynDCAARsT7Ou0M6hirpfw==", + "funding": { + "type": "github", + "url": "https://github.com/sponsors/wooorm" + } + }, + "node_modules/hast-to-hyperscript/node_modules/inline-style-parser": { + "version": "0.1.1", + "resolved": "https://registry.npmjs.org/inline-style-parser/-/inline-style-parser-0.1.1.tgz", + "integrity": "sha512-7NXolsK4CAS5+xvdj5OMMbI962hU/wvwoxk+LWR9Ek9bVtyuuYScDN6eS0rUm6TxApFpw7CX1o4uJzcd4AyD3Q==" + }, + "node_modules/hast-to-hyperscript/node_modules/property-information": { + "version": "5.6.0", + "resolved": "https://registry.npmjs.org/property-information/-/property-information-5.6.0.tgz", + "integrity": "sha512-YUHSPk+A30YPv+0Qf8i9Mbfe/C0hdPXk1s1jPVToV8pk8BQtpw10ct89Eo7OWkutrwqvT0eicAxlOg3dOAu8JA==", + "dependencies": { + "xtend": "^4.0.0" + }, + "funding": { + "type": "github", + "url": "https://github.com/sponsors/wooorm" + } + }, + "node_modules/hast-to-hyperscript/node_modules/space-separated-tokens": { + "version": "1.1.5", + "resolved": "https://registry.npmjs.org/space-separated-tokens/-/space-separated-tokens-1.1.5.tgz", + "integrity": "sha512-q/JSVd1Lptzhf5bkYm4ob4iWPjx0KiRe3sRFBNrVqbJkFaBm5vbbowy1mymoPNLRa52+oadOhJ+K49wsSeSjTA==", + "funding": { + "type": "github", + "url": "https://github.com/sponsors/wooorm" + } + }, + "node_modules/hast-to-hyperscript/node_modules/style-to-object": { + "version": "0.3.0", + "resolved": "https://registry.npmjs.org/style-to-object/-/style-to-object-0.3.0.tgz", + "integrity": "sha512-CzFnRRXhzWIdItT3OmF8SQfWyahHhjq3HwcMNCNLn+N7klOOqPjMeG/4JSu77D7ypZdGvSzvkrbyeTMizz2VrA==", + "dependencies": { + "inline-style-parser": "0.1.1" + } + }, + "node_modules/hast-to-hyperscript/node_modules/unist-util-is": { + "version": "4.1.0", + "resolved": "https://registry.npmjs.org/unist-util-is/-/unist-util-is-4.1.0.tgz", + "integrity": "sha512-ZOQSsnce92GrxSqlnEEseX0gi7GH9zTJZ0p9dtu87WRb/37mMPO2Ilx1s/t9vBHrFhbgweUwb+t7cIn5dxPhZg==", + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/unified" + } + }, + "node_modules/hast-to-hyperscript/node_modules/web-namespaces": { + "version": "1.1.4", + "resolved": "https://registry.npmjs.org/web-namespaces/-/web-namespaces-1.1.4.tgz", + "integrity": "sha512-wYxSGajtmoP4WxfejAPIr4l0fVh+jeMXZb08wNc0tMg6xsfZXj3cECqIK0G7ZAqUq0PP8WlMDtaOGVBTAWztNw==", + "funding": { + "type": "github", + "url": "https://github.com/sponsors/wooorm" + } + }, + "node_modules/hast-util-from-dom": { + "version": "5.0.0", + "resolved": "https://registry.npmjs.org/hast-util-from-dom/-/hast-util-from-dom-5.0.0.tgz", + "integrity": "sha512-d6235voAp/XR3Hh5uy7aGLbM3S4KamdW0WEgOaU1YoewnuYw4HXb5eRtv9g65m/RFGEfUY1Mw4UqCc5Y8L4Stg==", + "dependencies": { + "@types/hast": "^3.0.0", + "hastscript": "^8.0.0", + "web-namespaces": "^2.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/unified" + } + }, + "node_modules/hast-util-from-dom/node_modules/hast-util-parse-selector": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/hast-util-parse-selector/-/hast-util-parse-selector-4.0.0.tgz", + "integrity": "sha512-wkQCkSYoOGCRKERFWcxMVMOcYE2K1AaNLU8DXS9arxnLOUEWbOXKXiJUNzEpqZ3JOKpnha3jkFrumEjVliDe7A==", + "dependencies": { + "@types/hast": "^3.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/unified" + } + }, + "node_modules/hast-util-from-dom/node_modules/hastscript": { + "version": "8.0.0", + "resolved": "https://registry.npmjs.org/hastscript/-/hastscript-8.0.0.tgz", + "integrity": "sha512-dMOtzCEd3ABUeSIISmrETiKuyydk1w0pa+gE/uormcTpSYuaNJPbX1NU3JLyscSLjwAQM8bWMhhIlnCqnRvDTw==", + "dependencies": { + "@types/hast": "^3.0.0", + "comma-separated-tokens": "^2.0.0", + "hast-util-parse-selector": "^4.0.0", + "property-information": "^6.0.0", + "space-separated-tokens": "^2.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/unified" + } + }, + "node_modules/hast-util-from-html": { + "version": "2.0.3", + "resolved": "https://registry.npmjs.org/hast-util-from-html/-/hast-util-from-html-2.0.3.tgz", + "integrity": "sha512-CUSRHXyKjzHov8yKsQjGOElXy/3EKpyX56ELnkHH34vDVw1N1XSQ1ZcAvTyAPtGqLTuKP/uxM+aLkSPqF/EtMw==", + "dependencies": { + "@types/hast": "^3.0.0", + "devlop": "^1.1.0", + "hast-util-from-parse5": "^8.0.0", + "parse5": "^7.0.0", + "vfile": "^6.0.0", + "vfile-message": "^4.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/unified" + } + }, + "node_modules/hast-util-from-html-isomorphic": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/hast-util-from-html-isomorphic/-/hast-util-from-html-isomorphic-2.0.0.tgz", + "integrity": "sha512-zJfpXq44yff2hmE0XmwEOzdWin5xwH+QIhMLOScpX91e/NSGPsAzNCvLQDIEPyO2TXi+lBmU6hjLIhV8MwP2kw==", + "dependencies": { + "@types/hast": "^3.0.0", + "hast-util-from-dom": "^5.0.0", + "hast-util-from-html": "^2.0.0", + "unist-util-remove-position": "^5.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/unified" + } + }, + "node_modules/hast-util-from-parse5": { + "version": "8.0.1", + "resolved": "https://registry.npmjs.org/hast-util-from-parse5/-/hast-util-from-parse5-8.0.1.tgz", + "integrity": "sha512-Er/Iixbc7IEa7r/XLtuG52zoqn/b3Xng/w6aZQ0xGVxzhw5xUFxcRqdPzP6yFi/4HBYRaifaI5fQ1RH8n0ZeOQ==", + "dependencies": { + "@types/hast": "^3.0.0", + "@types/unist": "^3.0.0", + "devlop": "^1.0.0", + "hastscript": "^8.0.0", + "property-information": "^6.0.0", + "vfile": "^6.0.0", + "vfile-location": "^5.0.0", + "web-namespaces": "^2.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/unified" + } + }, + "node_modules/hast-util-from-parse5/node_modules/hast-util-parse-selector": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/hast-util-parse-selector/-/hast-util-parse-selector-4.0.0.tgz", + "integrity": "sha512-wkQCkSYoOGCRKERFWcxMVMOcYE2K1AaNLU8DXS9arxnLOUEWbOXKXiJUNzEpqZ3JOKpnha3jkFrumEjVliDe7A==", + "dependencies": { + "@types/hast": "^3.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/unified" + } + }, + "node_modules/hast-util-from-parse5/node_modules/hastscript": { + "version": "8.0.0", + "resolved": "https://registry.npmjs.org/hastscript/-/hastscript-8.0.0.tgz", + "integrity": "sha512-dMOtzCEd3ABUeSIISmrETiKuyydk1w0pa+gE/uormcTpSYuaNJPbX1NU3JLyscSLjwAQM8bWMhhIlnCqnRvDTw==", + "dependencies": { + "@types/hast": "^3.0.0", + "comma-separated-tokens": "^2.0.0", + "hast-util-parse-selector": "^4.0.0", + "property-information": "^6.0.0", + "space-separated-tokens": "^2.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/unified" + } + }, + "node_modules/hast-util-has-property": { + "version": "1.0.4", + "resolved": "https://registry.npmjs.org/hast-util-has-property/-/hast-util-has-property-1.0.4.tgz", + "integrity": "sha512-ghHup2voGfgFoHMGnaLHOjbYFACKrRh9KFttdCzMCbFoBMJXiNi2+XTrPP8+q6cDJM/RSqlCfVWrjp1H201rZg==", + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/unified" + } + }, + "node_modules/hast-util-is-element": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/hast-util-is-element/-/hast-util-is-element-3.0.0.tgz", + "integrity": "sha512-Val9mnv2IWpLbNPqc/pUem+a7Ipj2aHacCwgNfTiK0vJKl0LF+4Ba4+v1oPHFpf3bLYmreq0/l3Gud9S5OH42g==", + "dependencies": { + "@types/hast": "^3.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/unified" + } + }, + "node_modules/hast-util-parse-selector": { + "version": "2.2.5", + "resolved": "https://registry.npmjs.org/hast-util-parse-selector/-/hast-util-parse-selector-2.2.5.tgz", + "integrity": "sha512-7j6mrk/qqkSehsM92wQjdIgWM2/BW61u/53G6xmC8i1OmEdKLHbk419QKQUjz6LglWsfqoiHmyMRkP1BGjecNQ==", + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/unified" + } + }, + "node_modules/hast-util-select": { + "version": "4.0.2", + "resolved": "https://registry.npmjs.org/hast-util-select/-/hast-util-select-4.0.2.tgz", + "integrity": "sha512-8EEG2//bN5rrzboPWD2HdS3ugLijNioS1pqOTIolXNf67xxShYw4SQEmVXd3imiBG+U2bC2nVTySr/iRAA7Cjg==", + "dependencies": { + "bcp-47-match": "^1.0.0", + "comma-separated-tokens": "^1.0.0", + "css-selector-parser": "^1.0.0", + "direction": "^1.0.0", + "hast-util-has-property": "^1.0.0", + "hast-util-is-element": "^1.0.0", + "hast-util-to-string": "^1.0.0", + "hast-util-whitespace": "^1.0.0", + "not": "^0.1.0", + "nth-check": "^2.0.0", + "property-information": "^5.0.0", + "space-separated-tokens": "^1.0.0", + "unist-util-visit": "^2.0.0", + "zwitch": "^1.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/unified" + } + }, + "node_modules/hast-util-select/node_modules/@types/unist": { + "version": "2.0.11", + "resolved": "https://registry.npmjs.org/@types/unist/-/unist-2.0.11.tgz", + "integrity": "sha512-CmBKiL6NNo/OqgmMn95Fk9Whlp2mtvIv+KNpQKN2F4SjvrEesubTRWGYSg+BnWZOnlCaSTU1sMpsBOzgbYhnsA==" + }, + "node_modules/hast-util-select/node_modules/comma-separated-tokens": { + "version": "1.0.8", + "resolved": "https://registry.npmjs.org/comma-separated-tokens/-/comma-separated-tokens-1.0.8.tgz", + "integrity": "sha512-GHuDRO12Sypu2cV70d1dkA2EUmXHgntrzbpvOB+Qy+49ypNfGgFQIC2fhhXbnyrJRynDCAARsT7Ou0M6hirpfw==", + "funding": { + "type": "github", + "url": "https://github.com/sponsors/wooorm" + } + }, + "node_modules/hast-util-select/node_modules/hast-util-is-element": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/hast-util-is-element/-/hast-util-is-element-1.1.0.tgz", + "integrity": "sha512-oUmNua0bFbdrD/ELDSSEadRVtWZOf3iF6Lbv81naqsIV99RnSCieTbWuWCY8BAeEfKJTKl0gRdokv+dELutHGQ==", + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/unified" + } + }, + "node_modules/hast-util-select/node_modules/hast-util-whitespace": { + "version": "1.0.4", + "resolved": "https://registry.npmjs.org/hast-util-whitespace/-/hast-util-whitespace-1.0.4.tgz", + "integrity": "sha512-I5GTdSfhYfAPNztx2xJRQpG8cuDSNt599/7YUn7Gx/WxNMsG+a835k97TDkFgk123cwjfwINaZknkKkphx/f2A==", + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/unified" + } + }, + "node_modules/hast-util-select/node_modules/property-information": { + "version": "5.6.0", + "resolved": "https://registry.npmjs.org/property-information/-/property-information-5.6.0.tgz", + "integrity": "sha512-YUHSPk+A30YPv+0Qf8i9Mbfe/C0hdPXk1s1jPVToV8pk8BQtpw10ct89Eo7OWkutrwqvT0eicAxlOg3dOAu8JA==", + "dependencies": { + "xtend": "^4.0.0" + }, + "funding": { + "type": "github", + "url": "https://github.com/sponsors/wooorm" + } + }, + "node_modules/hast-util-select/node_modules/space-separated-tokens": { + "version": "1.1.5", + "resolved": "https://registry.npmjs.org/space-separated-tokens/-/space-separated-tokens-1.1.5.tgz", + "integrity": "sha512-q/JSVd1Lptzhf5bkYm4ob4iWPjx0KiRe3sRFBNrVqbJkFaBm5vbbowy1mymoPNLRa52+oadOhJ+K49wsSeSjTA==", + "funding": { + "type": "github", + "url": "https://github.com/sponsors/wooorm" + } + }, + "node_modules/hast-util-select/node_modules/unist-util-is": { + "version": "4.1.0", + "resolved": "https://registry.npmjs.org/unist-util-is/-/unist-util-is-4.1.0.tgz", + "integrity": "sha512-ZOQSsnce92GrxSqlnEEseX0gi7GH9zTJZ0p9dtu87WRb/37mMPO2Ilx1s/t9vBHrFhbgweUwb+t7cIn5dxPhZg==", + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/unified" + } + }, + "node_modules/hast-util-select/node_modules/unist-util-visit": { + "version": "2.0.3", + "resolved": "https://registry.npmjs.org/unist-util-visit/-/unist-util-visit-2.0.3.tgz", + "integrity": "sha512-iJ4/RczbJMkD0712mGktuGpm/U4By4FfDonL7N/9tATGIF4imikjOuagyMY53tnZq3NP6BcmlrHhEKAfGWjh7Q==", + "dependencies": { + "@types/unist": "^2.0.0", + "unist-util-is": "^4.0.0", + "unist-util-visit-parents": "^3.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/unified" + } + }, + "node_modules/hast-util-select/node_modules/unist-util-visit-parents": { + "version": "3.1.1", + "resolved": "https://registry.npmjs.org/unist-util-visit-parents/-/unist-util-visit-parents-3.1.1.tgz", + "integrity": "sha512-1KROIZWo6bcMrZEwiH2UrXDyalAa0uqzWCxCJj6lPOvTve2WkfgCytoDTPaMnodXh1WrXOq0haVYHj99ynJlsg==", + "dependencies": { + "@types/unist": "^2.0.0", + "unist-util-is": "^4.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/unified" + } + }, + "node_modules/hast-util-select/node_modules/zwitch": { + "version": "1.0.5", + "resolved": "https://registry.npmjs.org/zwitch/-/zwitch-1.0.5.tgz", + "integrity": "sha512-V50KMwwzqJV0NpZIZFwfOD5/lyny3WlSzRiXgA0G7VUnRlqttta1L6UQIHzd6EuBY/cHGfwTIck7w1yH6Q5zUw==", + "funding": { + "type": "github", + "url": "https://github.com/sponsors/wooorm" + } + }, + "node_modules/hast-util-to-jsx-runtime": { + "version": "2.3.0", + "resolved": "https://registry.npmjs.org/hast-util-to-jsx-runtime/-/hast-util-to-jsx-runtime-2.3.0.tgz", + "integrity": "sha512-H/y0+IWPdsLLS738P8tDnrQ8Z+dj12zQQ6WC11TIM21C8WFVoIxcqWXf2H3hiTVZjF1AWqoimGwrTWecWrnmRQ==", + "dependencies": { + "@types/estree": "^1.0.0", + "@types/hast": "^3.0.0", + "@types/unist": "^3.0.0", + "comma-separated-tokens": "^2.0.0", + "devlop": "^1.0.0", + "estree-util-is-identifier-name": "^3.0.0", + "hast-util-whitespace": "^3.0.0", + "mdast-util-mdx-expression": "^2.0.0", + "mdast-util-mdx-jsx": "^3.0.0", + "mdast-util-mdxjs-esm": "^2.0.0", + "property-information": "^6.0.0", + "space-separated-tokens": "^2.0.0", + "style-to-object": "^1.0.0", + "unist-util-position": "^5.0.0", + "vfile-message": "^4.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/unified" + } + }, + "node_modules/hast-util-to-string": { + "version": "1.0.4", + "resolved": "https://registry.npmjs.org/hast-util-to-string/-/hast-util-to-string-1.0.4.tgz", + "integrity": "sha512-eK0MxRX47AV2eZ+Lyr18DCpQgodvaS3fAQO2+b9Two9F5HEoRPhiUMNzoXArMJfZi2yieFzUBMRl3HNJ3Jus3w==", + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/unified" + } + }, + "node_modules/hast-util-to-text": { + "version": "4.0.2", + "resolved": "https://registry.npmjs.org/hast-util-to-text/-/hast-util-to-text-4.0.2.tgz", + "integrity": "sha512-KK6y/BN8lbaq654j7JgBydev7wuNMcID54lkRav1P0CaE1e47P72AWWPiGKXTJU271ooYzcvTAn/Zt0REnvc7A==", + "dependencies": { + "@types/hast": "^3.0.0", + "@types/unist": "^3.0.0", + "hast-util-is-element": "^3.0.0", + "unist-util-find-after": "^5.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/unified" + } + }, + "node_modules/hast-util-whitespace": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/hast-util-whitespace/-/hast-util-whitespace-3.0.0.tgz", + "integrity": "sha512-88JUN06ipLwsnv+dVn+OIYOvAuvBMy/Qoi6O7mQHxdPXpjy+Cd6xRkWwux7DKO+4sYILtLBRIKgsdpS2gQc7qw==", + "dependencies": { + "@types/hast": "^3.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/unified" + } + }, + "node_modules/hastscript": { + "version": "6.0.0", + "resolved": "https://registry.npmjs.org/hastscript/-/hastscript-6.0.0.tgz", + "integrity": "sha512-nDM6bvd7lIqDUiYEiu5Sl/+6ReP0BMk/2f4U/Rooccxkj0P5nm+acM5PrGJ/t5I8qPGiqZSE6hVAwZEdZIvP4w==", + "dependencies": { + "@types/hast": "^2.0.0", + "comma-separated-tokens": "^1.0.0", + "hast-util-parse-selector": "^2.0.0", + "property-information": "^5.0.0", + "space-separated-tokens": "^1.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/unified" + } + }, + "node_modules/hastscript/node_modules/@types/hast": { + "version": "2.3.10", + "resolved": "https://registry.npmjs.org/@types/hast/-/hast-2.3.10.tgz", + "integrity": "sha512-McWspRw8xx8J9HurkVBfYj0xKoE25tOFlHGdx4MJ5xORQrMGZNqJhVQWaIbm6Oyla5kYOXtDiopzKRJzEOkwJw==", + "dependencies": { + "@types/unist": "^2" + } + }, + "node_modules/hastscript/node_modules/@types/unist": { + "version": "2.0.11", + "resolved": "https://registry.npmjs.org/@types/unist/-/unist-2.0.11.tgz", + "integrity": "sha512-CmBKiL6NNo/OqgmMn95Fk9Whlp2mtvIv+KNpQKN2F4SjvrEesubTRWGYSg+BnWZOnlCaSTU1sMpsBOzgbYhnsA==" + }, + "node_modules/hastscript/node_modules/comma-separated-tokens": { + "version": "1.0.8", + "resolved": "https://registry.npmjs.org/comma-separated-tokens/-/comma-separated-tokens-1.0.8.tgz", + "integrity": "sha512-GHuDRO12Sypu2cV70d1dkA2EUmXHgntrzbpvOB+Qy+49ypNfGgFQIC2fhhXbnyrJRynDCAARsT7Ou0M6hirpfw==", + "funding": { + "type": "github", + "url": "https://github.com/sponsors/wooorm" + } + }, + "node_modules/hastscript/node_modules/property-information": { + "version": "5.6.0", + "resolved": "https://registry.npmjs.org/property-information/-/property-information-5.6.0.tgz", + "integrity": "sha512-YUHSPk+A30YPv+0Qf8i9Mbfe/C0hdPXk1s1jPVToV8pk8BQtpw10ct89Eo7OWkutrwqvT0eicAxlOg3dOAu8JA==", + "dependencies": { + "xtend": "^4.0.0" + }, + "funding": { + "type": "github", + "url": "https://github.com/sponsors/wooorm" + } + }, + "node_modules/hastscript/node_modules/space-separated-tokens": { + "version": "1.1.5", + "resolved": "https://registry.npmjs.org/space-separated-tokens/-/space-separated-tokens-1.1.5.tgz", + "integrity": "sha512-q/JSVd1Lptzhf5bkYm4ob4iWPjx0KiRe3sRFBNrVqbJkFaBm5vbbowy1mymoPNLRa52+oadOhJ+K49wsSeSjTA==", + "funding": { + "type": "github", + "url": "https://github.com/sponsors/wooorm" + } + }, + "node_modules/highlight.js": { + "version": "10.7.3", + "resolved": "https://registry.npmjs.org/highlight.js/-/highlight.js-10.7.3.tgz", + "integrity": "sha512-tzcUFauisWKNHaRkN4Wjl/ZA07gENAjFl3J/c480dprkGTg5EQstgaNFqBfUqCq54kZRIEcreTsAgF/m2quD7A==", + "engines": { + "node": "*" + } + }, + "node_modules/hoist-non-react-statics": { + "version": "3.3.2", + "resolved": "https://registry.npmjs.org/hoist-non-react-statics/-/hoist-non-react-statics-3.3.2.tgz", + "integrity": "sha512-/gGivxi8JPKWNm/W0jSmzcMPpfpPLc3dY/6GxhX2hQ9iGj3aDfklV4ET7NjKpSinLpJ5vafa9iiGIEZg10SfBw==", + "dependencies": { + "react-is": "^16.7.0" + } + }, + "node_modules/hoist-non-react-statics/node_modules/react-is": { + "version": "16.13.1", + "resolved": "https://registry.npmjs.org/react-is/-/react-is-16.13.1.tgz", + "integrity": "sha512-24e6ynE2H+OKt4kqsOvNd8kBpV65zoxbA4BVsEOB3ARVWQki/DHzaUoC5KuON/BiccDaCCTZBuOcfZs70kR8bQ==" + }, + "node_modules/html-url-attributes": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/html-url-attributes/-/html-url-attributes-3.0.0.tgz", + "integrity": "sha512-/sXbVCWayk6GDVg3ctOX6nxaVj7So40FcFAnWlWGNAB1LpYKcV5Cd10APjPjW80O7zYW2MsjBV4zZ7IZO5fVow==", + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/unified" + } + }, + "node_modules/http-cache-semantics": { + "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==", + "dev": true + }, + "node_modules/http2-wrapper": { + "version": "1.0.3", + "resolved": "https://registry.npmjs.org/http2-wrapper/-/http2-wrapper-1.0.3.tgz", + "integrity": "sha512-V+23sDMr12Wnz7iTcDeJr3O6AIxlnvT/bmaAAAP/Xda35C90p9599p0F1eHR/N1KILWSoWVAiOMFjBBXaXSMxg==", + "dev": true, + "dependencies": { + "quick-lru": "^5.1.1", + "resolve-alpn": "^1.0.0" + }, + "engines": { + "node": ">=10.19.0" + } + }, + "node_modules/human-signals": { + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/human-signals/-/human-signals-2.1.0.tgz", + "integrity": "sha512-B4FFZ6q/T2jhhksgkbEW3HBvWIfDW85snkQgawt07S7J5QXTk6BkNV+0yAeZrM5QpMAdYlocGoljn0sJ/WQkFw==", + "dev": true, + "engines": { + "node": ">=10.17.0" + } + }, + "node_modules/ieee754": { + "version": "1.2.1", + "resolved": "https://registry.npmjs.org/ieee754/-/ieee754-1.2.1.tgz", + "integrity": "sha512-dcyqhDvX1C46lXZcVqCpK+FtMRQVdIMN6/Df5js2zouUsqG7I6sFxitIC+7KYK29KdXOLHdu9zL4sFnoVQnqaA==", + "dev": true, + "funding": [ + { + "type": "github", + "url": "https://github.com/sponsors/feross" + }, + { + "type": "patreon", + "url": "https://www.patreon.com/feross" + }, + { + "type": "consulting", + "url": "https://feross.org/support" + } + ] + }, + "node_modules/immer": { + "version": "9.0.21", + "resolved": "https://registry.npmjs.org/immer/-/immer-9.0.21.tgz", + "integrity": "sha512-bc4NBHqOqSfRW7POMkHd51LvClaeMXpm8dx0e8oE2GORbq5aRK7Bxl4FyzVLdGtLmvLKL7BTDBG5ACQm4HWjTA==", + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/immer" + } + }, + "node_modules/inherits": { + "version": "2.0.4", + "resolved": "https://registry.npmjs.org/inherits/-/inherits-2.0.4.tgz", + "integrity": "sha512-k/vGaX4/Yla3WzyMCvTQOXYeIHvqOKtnqBduzTHpzpQZzAskKMhZ2K+EnBiSM9zGSoIFeMpXKxa4dYeZIQqewQ==", + "dev": true + }, + "node_modules/inline-style-parser": { + "version": "0.2.4", + "resolved": "https://registry.npmjs.org/inline-style-parser/-/inline-style-parser-0.2.4.tgz", + "integrity": "sha512-0aO8FkhNZlj/ZIbNi7Lxxr12obT7cL1moPfE4tg1LkX7LlLfC6DeX4l2ZEud1ukP9jNQyNnfzQVqwbwmAATY4Q==" + }, + "node_modules/is-alphabetical": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/is-alphabetical/-/is-alphabetical-2.0.1.tgz", + "integrity": "sha512-FWyyY60MeTNyeSRpkM2Iry0G9hpr7/9kD40mD/cGQEuilcZYS4okz8SN2Q6rLCJ8gbCt6fN+rC+6tMGS99LaxQ==", + "funding": { + "type": "github", + "url": "https://github.com/sponsors/wooorm" + } + }, + "node_modules/is-alphanumerical": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/is-alphanumerical/-/is-alphanumerical-2.0.1.tgz", + "integrity": "sha512-hmbYhX/9MUMF5uh7tOXyK/n0ZvWpad5caBA17GsC6vyuCqaWliRG5K1qS9inmUhEMaOBIW7/whAnSwveW/LtZw==", + "dependencies": { + "is-alphabetical": "^2.0.0", + "is-decimal": "^2.0.0" + }, + "funding": { + "type": "github", + "url": "https://github.com/sponsors/wooorm" + } + }, + "node_modules/is-binary-path": { + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/is-binary-path/-/is-binary-path-2.1.0.tgz", + "integrity": "sha512-ZMERYes6pDydyuGidse7OsHxtbI7WVeUEozgR/g7rd0xUimYNlvZRE/K2MgZTjWy725IfelLeVcEM97mmtRGXw==", + "dev": true, + "dependencies": { + "binary-extensions": "^2.0.0" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/is-buffer": { + "version": "2.0.5", + "resolved": "https://registry.npmjs.org/is-buffer/-/is-buffer-2.0.5.tgz", + "integrity": "sha512-i2R6zNFDwgEHJyQUtJEk0XFi1i0dPFn/oqjK3/vPCcDeJvW5NQ83V8QbicfF1SupOaB0h8ntgBC2YiE7dfyctQ==", + "funding": [ + { + "type": "github", + "url": "https://github.com/sponsors/feross" + }, + { + "type": "patreon", + "url": "https://www.patreon.com/feross" + }, + { + "type": "consulting", + "url": "https://feross.org/support" + } + ], + "engines": { + "node": ">=4" + } + }, + "node_modules/is-core-module": { + "version": "2.15.1", + "resolved": "https://registry.npmjs.org/is-core-module/-/is-core-module-2.15.1.tgz", + "integrity": "sha512-z0vtXSwucUJtANQWldhbtbt7BnL0vxiFjIdDLAatwhDYty2bad6s+rijD6Ri4YuYJubLzIJLUidCh09e1djEVQ==", + "dev": true, + "dependencies": { + "hasown": "^2.0.2" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/is-decimal": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/is-decimal/-/is-decimal-2.0.1.tgz", + "integrity": "sha512-AAB9hiomQs5DXWcRB1rqsxGUstbRroFOPPVAomNk/3XHR5JyEZChOyTWe2oayKnsSsr/kcGqF+z6yuH6HHpN0A==", + "funding": { + "type": "github", + "url": "https://github.com/sponsors/wooorm" + } + }, + "node_modules/is-extglob": { + "version": "2.1.1", + "resolved": "https://registry.npmjs.org/is-extglob/-/is-extglob-2.1.1.tgz", + "integrity": "sha512-SbKbANkN603Vi4jEZv49LeVJMn4yGwsbzZworEoyEiutsN3nJYdbO36zfhGJ6QEDpOZIFkDtnq5JRxmvl3jsoQ==", + "dev": true, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/is-fullwidth-code-point": { + "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==", + "engines": { + "node": ">=8" + } + }, + "node_modules/is-glob": { + "version": "4.0.3", + "resolved": "https://registry.npmjs.org/is-glob/-/is-glob-4.0.3.tgz", + "integrity": "sha512-xelSayHH36ZgE7ZWhli7pW34hNbNl8Ojv5KVmkJD4hBdD3th8Tfk9vYasLM+mXWOZhFkgZfxhLSnrwRr4elSSg==", + "dev": true, + "dependencies": { + "is-extglob": "^2.1.1" + }, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/is-hexadecimal": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/is-hexadecimal/-/is-hexadecimal-2.0.1.tgz", + "integrity": "sha512-DgZQp241c8oO6cA1SbTEWiXeoxV42vlcJxgH+B3hi1AiqqKruZR3ZGF8In3fj4+/y/7rHvlOZLZtgJ/4ttYGZg==", + "funding": { + "type": "github", + "url": "https://github.com/sponsors/wooorm" + } + }, + "node_modules/is-number": { + "version": "7.0.0", + "resolved": "https://registry.npmjs.org/is-number/-/is-number-7.0.0.tgz", + "integrity": "sha512-41Cifkg6e8TylSpdtTpeLVMqvSBEVzTttHvERD741+pnZ8ANv0004MRL43QKPDlK9cGvNp6NZWZUBlbGXYxxng==", + "dev": true, + "engines": { + "node": ">=0.12.0" + } + }, + "node_modules/is-plain-obj": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/is-plain-obj/-/is-plain-obj-1.1.0.tgz", + "integrity": "sha512-yvkRyxmFKEOQ4pNXCmJG5AEQNlXJS5LaONXo5/cLdTZdWvsZ1ioJEonLGAosKlMWE8lwUy/bJzMjcw8az73+Fg==", + "dev": true, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/is-stream": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/is-stream/-/is-stream-1.1.0.tgz", + "integrity": "sha512-uQPm8kcs47jx38atAcWTVxyltQYoPT68y9aWYdV6yWXSyW8mzSat0TL6CiWdZeCdF3KrAvpVtnHbTv4RN+rqdQ==", + "dev": true, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/isexe": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/isexe/-/isexe-2.0.0.tgz", + "integrity": "sha512-RHxMLp9lnKHGHRng9QFhRCMbYAcVpn69smSGcq3f36xjgVVWThj4qqLbTLlq7Ssj8B+fIQ1EuCEGI2lKsyQeIw==", + "dev": true + }, + "node_modules/jackspeak": { + "version": "3.4.3", + "resolved": "https://registry.npmjs.org/jackspeak/-/jackspeak-3.4.3.tgz", + "integrity": "sha512-OGlZQpz2yfahA/Rd1Y8Cd9SIEsqvXkLVoSw/cgwhnhFMDbsQFeZYoJJ7bIZBS9BcamUW96asq/npPWugM+RQBw==", + "dev": true, + "dependencies": { + "@isaacs/cliui": "^8.0.2" + }, + "funding": { + "url": "https://github.com/sponsors/isaacs" + }, + "optionalDependencies": { + "@pkgjs/parseargs": "^0.11.0" + } + }, + "node_modules/jiti": { + "version": "1.21.6", + "resolved": "https://registry.npmjs.org/jiti/-/jiti-1.21.6.tgz", + "integrity": "sha512-2yTgeWTWzMWkHu6Jp9NKgePDaYHbntiwvYuuJLbbN9vl7DC9DvXKOB2BC3ZZ92D3cvV/aflH0osDfwpHepQ53w==", + "dev": true, + "bin": { + "jiti": "bin/jiti.js" + } + }, + "node_modules/js-tokens": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/js-tokens/-/js-tokens-4.0.0.tgz", + "integrity": "sha512-RdJUflcE3cUzKiMqQgsCu06FPu9UdIJO0beYbPhHN4k6apgJtifcoCtT9bcxOpYBtpD2kCM6Sbzg4CausW/PKQ==" + }, + "node_modules/jsesc": { + "version": "2.5.2", + "resolved": "https://registry.npmjs.org/jsesc/-/jsesc-2.5.2.tgz", + "integrity": "sha512-OYu7XEzjkCQ3C5Ps3QIZsQfNpqoJyZZA99wd9aWd05NCtC5pWOkShK2mkL6HXQR6/Cy2lbNdPlZBpuQHXE63gA==", + "bin": { + "jsesc": "bin/jsesc" + }, + "engines": { + "node": ">=4" + } + }, + "node_modules/json-buffer": { + "version": "3.0.1", + "resolved": "https://registry.npmjs.org/json-buffer/-/json-buffer-3.0.1.tgz", + "integrity": "sha512-4bV5BfR2mqfQTJm+V5tPPdf+ZpuhiIvTuAB5g8kcrXOZpTT/QwwVRWBywX1ozr6lEuPdbHxwaJlm9G6mI2sfSQ==", + "dev": true + }, + "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", + "integrity": "sha512-XmOWe7eyHYH14cLdVPoyg+GOH3rYX++KpzrylJwSW98t3Nk+U8XOl8FWKOgwtzdb8lXGf6zYwDUzeHMWfxasyg==", + "peer": true, + "bin": { + "json5": "lib/cli.js" + }, + "engines": { + "node": ">=6" + } + }, + "node_modules/jsonfile": { + "version": "6.1.0", + "resolved": "https://registry.npmjs.org/jsonfile/-/jsonfile-6.1.0.tgz", + "integrity": "sha512-5dgndWOriYSm5cnYaJNhalLNDKOqFwyDB/rr1E9ZsGciGvKPs8R2xYGCacuf3z6K1YKDz182fd+fY3cn3pMqXQ==", + "dependencies": { + "universalify": "^2.0.0" + }, + "optionalDependencies": { + "graceful-fs": "^4.1.6" + } + }, + "node_modules/katex": { + "version": "0.16.11", + "resolved": "https://registry.npmjs.org/katex/-/katex-0.16.11.tgz", + "integrity": "sha512-RQrI8rlHY92OLf3rho/Ts8i/XvjgguEjOkO1BEXcU3N8BqPpSzBNwV/G0Ukr+P/l3ivvJUE/Fa/CwbS6HesGNQ==", + "funding": [ + "https://opencollective.com/katex", + "https://github.com/sponsors/katex" + ], + "dependencies": { + "commander": "^8.3.0" + }, + "bin": { + "katex": "cli.js" + } + }, + "node_modules/keyv": { + "version": "4.5.4", + "resolved": "https://registry.npmjs.org/keyv/-/keyv-4.5.4.tgz", + "integrity": "sha512-oxVHkHR/EJf2CNXnWxRLW6mg7JyCCUcG0DtEGmL2ctUo1PNTin1PUil+r/+4r5MpVgC/fn1kjsx7mjSujKqIpw==", + "dev": true, + "dependencies": { + "json-buffer": "3.0.1" + } + }, + "node_modules/lilconfig": { + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/lilconfig/-/lilconfig-2.1.0.tgz", + "integrity": "sha512-utWOt/GHzuUxnLKxB6dk81RoOeoNeHgbrXiuGk4yyF5qlRz+iIVWu56E2fqGHFrXz0QNUhLB/8nKqvRH66JKGQ==", + "dev": true, + "engines": { + "node": ">=10" + } + }, + "node_modules/lines-and-columns": { + "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 + }, + "node_modules/linkify-it": { + "version": "5.0.0", + "resolved": "https://registry.npmjs.org/linkify-it/-/linkify-it-5.0.0.tgz", + "integrity": "sha512-5aHCbzQRADcdP+ATqnDuhhJ/MRIqDkZX5pyjFHRRysS8vZ5AbqGEoFIb6pYHPZ+L/OC2Lc+xT8uHVVR5CAK/wQ==", + "dependencies": { + "uc.micro": "^2.0.0" + } + }, + "node_modules/lodash": { + "version": "4.17.21", + "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", + "integrity": "sha512-9Ri+o0JYgehTaVBBDoMqIl8GXtbWg711O3srftcHhZ0dqnETqLaoIK0x17fUw9rFSlK/0NlsKe0Ahhyl5pXE2g==", + "funding": { + "type": "github", + "url": "https://github.com/sponsors/wooorm" + } + }, + "node_modules/loose-envify": { + "version": "1.4.0", + "resolved": "https://registry.npmjs.org/loose-envify/-/loose-envify-1.4.0.tgz", + "integrity": "sha512-lyuxPGr/Wfhrlem2CL/UcnUc1zcqKAImBDzukY7Y5F/yQiNdko6+fRLevlw1HgMySw7f611UIY408EtxRSoK3Q==", + "dependencies": { + "js-tokens": "^3.0.0 || ^4.0.0" + }, + "bin": { + "loose-envify": "cli.js" + } + }, + "node_modules/lowercase-keys": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/lowercase-keys/-/lowercase-keys-2.0.0.tgz", + "integrity": "sha512-tqNXrS78oMOE73NMxK4EMLQsQowWf8jKooH9g7xPavRT706R6bkQJ6DY2Te7QukaZsulxa30wQ7bk0pm4XiHmA==", + "dev": true, + "engines": { + "node": ">=8" + } + }, + "node_modules/lowlight": { + "version": "1.20.0", + "resolved": "https://registry.npmjs.org/lowlight/-/lowlight-1.20.0.tgz", + "integrity": "sha512-8Ktj+prEb1RoCPkEOrPMYUN/nCggB7qAWe3a7OpMjWQkh3l2RD5wKRQ+o8Q8YuI9RG/xs95waaI/E6ym/7NsTw==", + "dependencies": { + "fault": "^1.0.0", + "highlight.js": "~10.7.0" + }, + "funding": { + "type": "github", + "url": "https://github.com/sponsors/wooorm" + } + }, + "node_modules/lru-cache": { + "version": "4.1.5", + "resolved": "https://registry.npmjs.org/lru-cache/-/lru-cache-4.1.5.tgz", + "integrity": "sha512-sWZlbEP2OsHNkXrMl5GYk/jKk70MBng6UU4YI/qGDYbgf6YbP4EvmqISbXCoJiRKs+1bSpFHVgQxvJ17F2li5g==", + "dev": true, + "dependencies": { + "pseudomap": "^1.0.2", + "yallist": "^2.1.2" + } + }, + "node_modules/markdown-it": { + "version": "14.1.0", + "resolved": "https://registry.npmjs.org/markdown-it/-/markdown-it-14.1.0.tgz", + "integrity": "sha512-a54IwgWPaeBCAAsv13YgmALOF1elABB08FxO9i+r4VFk5Vl4pKokRPeX8u5TCgSsPi6ec1otfLjdOpVcgbpshg==", + "dependencies": { + "argparse": "^2.0.1", + "entities": "^4.4.0", + "linkify-it": "^5.0.0", + "mdurl": "^2.0.0", + "punycode.js": "^2.3.1", + "uc.micro": "^2.1.0" + }, + "bin": { + "markdown-it": "bin/markdown-it.mjs" + } + }, + "node_modules/mdast-util-definitions": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/mdast-util-definitions/-/mdast-util-definitions-4.0.0.tgz", + "integrity": "sha512-k8AJ6aNnUkB7IE+5azR9h81O5EQ/cTDXtWdMq9Kk5KcEW/8ritU5CeLg/9HhOC++nALHBlaogJ5jz0Ybk3kPMQ==", + "dependencies": { + "unist-util-visit": "^2.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/unified" + } + }, + "node_modules/mdast-util-definitions/node_modules/@types/unist": { + "version": "2.0.11", + "resolved": "https://registry.npmjs.org/@types/unist/-/unist-2.0.11.tgz", + "integrity": "sha512-CmBKiL6NNo/OqgmMn95Fk9Whlp2mtvIv+KNpQKN2F4SjvrEesubTRWGYSg+BnWZOnlCaSTU1sMpsBOzgbYhnsA==" + }, + "node_modules/mdast-util-definitions/node_modules/unist-util-is": { + "version": "4.1.0", + "resolved": "https://registry.npmjs.org/unist-util-is/-/unist-util-is-4.1.0.tgz", + "integrity": "sha512-ZOQSsnce92GrxSqlnEEseX0gi7GH9zTJZ0p9dtu87WRb/37mMPO2Ilx1s/t9vBHrFhbgweUwb+t7cIn5dxPhZg==", + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/unified" + } + }, + "node_modules/mdast-util-definitions/node_modules/unist-util-visit": { + "version": "2.0.3", + "resolved": "https://registry.npmjs.org/unist-util-visit/-/unist-util-visit-2.0.3.tgz", + "integrity": "sha512-iJ4/RczbJMkD0712mGktuGpm/U4By4FfDonL7N/9tATGIF4imikjOuagyMY53tnZq3NP6BcmlrHhEKAfGWjh7Q==", + "dependencies": { + "@types/unist": "^2.0.0", + "unist-util-is": "^4.0.0", + "unist-util-visit-parents": "^3.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/unified" + } + }, + "node_modules/mdast-util-definitions/node_modules/unist-util-visit-parents": { + "version": "3.1.1", + "resolved": "https://registry.npmjs.org/unist-util-visit-parents/-/unist-util-visit-parents-3.1.1.tgz", + "integrity": "sha512-1KROIZWo6bcMrZEwiH2UrXDyalAa0uqzWCxCJj6lPOvTve2WkfgCytoDTPaMnodXh1WrXOq0haVYHj99ynJlsg==", + "dependencies": { + "@types/unist": "^2.0.0", + "unist-util-is": "^4.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/unified" + } + }, + "node_modules/mdast-util-from-markdown": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/mdast-util-from-markdown/-/mdast-util-from-markdown-2.0.1.tgz", + "integrity": "sha512-aJEUyzZ6TzlsX2s5B4Of7lN7EQtAxvtradMMglCQDyaTFgse6CmtmdJ15ElnVRlCg1vpNyVtbem0PWzlNieZsA==", + "dependencies": { + "@types/mdast": "^4.0.0", + "@types/unist": "^3.0.0", + "decode-named-character-reference": "^1.0.0", + "devlop": "^1.0.0", + "mdast-util-to-string": "^4.0.0", + "micromark": "^4.0.0", + "micromark-util-decode-numeric-character-reference": "^2.0.0", + "micromark-util-decode-string": "^2.0.0", + "micromark-util-normalize-identifier": "^2.0.0", + "micromark-util-symbol": "^2.0.0", + "micromark-util-types": "^2.0.0", + "unist-util-stringify-position": "^4.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/unified" + } + }, + "node_modules/mdast-util-math": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/mdast-util-math/-/mdast-util-math-3.0.0.tgz", + "integrity": "sha512-Tl9GBNeG/AhJnQM221bJR2HPvLOSnLE/T9cJI9tlc6zwQk2nPk/4f0cHkOdEixQPC/j8UtKDdITswvLAy1OZ1w==", + "dependencies": { + "@types/hast": "^3.0.0", + "@types/mdast": "^4.0.0", + "devlop": "^1.0.0", + "longest-streak": "^3.0.0", + "mdast-util-from-markdown": "^2.0.0", + "mdast-util-to-markdown": "^2.1.0", + "unist-util-remove-position": "^5.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/unified" + } + }, + "node_modules/mdast-util-mdx-expression": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/mdast-util-mdx-expression/-/mdast-util-mdx-expression-2.0.1.tgz", + "integrity": "sha512-J6f+9hUp+ldTZqKRSg7Vw5V6MqjATc+3E4gf3CFNcuZNWD8XdyI6zQ8GqH7f8169MM6P7hMBRDVGnn7oHB9kXQ==", + "dependencies": { + "@types/estree-jsx": "^1.0.0", + "@types/hast": "^3.0.0", + "@types/mdast": "^4.0.0", + "devlop": "^1.0.0", + "mdast-util-from-markdown": "^2.0.0", + "mdast-util-to-markdown": "^2.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/unified" + } + }, + "node_modules/mdast-util-mdx-jsx": { + "version": "3.1.3", + "resolved": "https://registry.npmjs.org/mdast-util-mdx-jsx/-/mdast-util-mdx-jsx-3.1.3.tgz", + "integrity": "sha512-bfOjvNt+1AcbPLTFMFWY149nJz0OjmewJs3LQQ5pIyVGxP4CdOqNVJL6kTaM5c68p8q82Xv3nCyFfUnuEcH3UQ==", + "dependencies": { + "@types/estree-jsx": "^1.0.0", + "@types/hast": "^3.0.0", + "@types/mdast": "^4.0.0", + "@types/unist": "^3.0.0", + "ccount": "^2.0.0", + "devlop": "^1.1.0", + "mdast-util-from-markdown": "^2.0.0", + "mdast-util-to-markdown": "^2.0.0", + "parse-entities": "^4.0.0", + "stringify-entities": "^4.0.0", + "unist-util-stringify-position": "^4.0.0", + "vfile-message": "^4.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/unified" + } + }, + "node_modules/mdast-util-mdxjs-esm": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/mdast-util-mdxjs-esm/-/mdast-util-mdxjs-esm-2.0.1.tgz", + "integrity": "sha512-EcmOpxsZ96CvlP03NghtH1EsLtr0n9Tm4lPUJUBccV9RwUOneqSycg19n5HGzCf+10LozMRSObtVr3ee1WoHtg==", + "dependencies": { + "@types/estree-jsx": "^1.0.0", + "@types/hast": "^3.0.0", + "@types/mdast": "^4.0.0", + "devlop": "^1.0.0", + "mdast-util-from-markdown": "^2.0.0", + "mdast-util-to-markdown": "^2.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/unified" + } + }, + "node_modules/mdast-util-phrasing": { + "version": "4.1.0", + "resolved": "https://registry.npmjs.org/mdast-util-phrasing/-/mdast-util-phrasing-4.1.0.tgz", + "integrity": "sha512-TqICwyvJJpBwvGAMZjj4J2n0X8QWp21b9l0o7eXyVJ25YNWYbJDVIyD1bZXE6WtV6RmKJVYmQAKWa0zWOABz2w==", + "dependencies": { + "@types/mdast": "^4.0.0", + "unist-util-is": "^6.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/unified" + } + }, + "node_modules/mdast-util-to-hast": { + "version": "13.2.0", + "resolved": "https://registry.npmjs.org/mdast-util-to-hast/-/mdast-util-to-hast-13.2.0.tgz", + "integrity": "sha512-QGYKEuUsYT9ykKBCMOEDLsU5JRObWQusAolFMeko/tYPufNkRffBAQjIE+99jbA87xv6FgmjLtwjh9wBWajwAA==", + "dependencies": { + "@types/hast": "^3.0.0", + "@types/mdast": "^4.0.0", + "@ungap/structured-clone": "^1.0.0", + "devlop": "^1.0.0", + "micromark-util-sanitize-uri": "^2.0.0", + "trim-lines": "^3.0.0", + "unist-util-position": "^5.0.0", + "unist-util-visit": "^5.0.0", + "vfile": "^6.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/unified" + } + }, + "node_modules/mdast-util-to-markdown": { + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/mdast-util-to-markdown/-/mdast-util-to-markdown-2.1.0.tgz", + "integrity": "sha512-SR2VnIEdVNCJbP6y7kVTJgPLifdr8WEU440fQec7qHoHOUz/oJ2jmNRqdDQ3rbiStOXb2mCDGTuwsK5OPUgYlQ==", + "dependencies": { + "@types/mdast": "^4.0.0", + "@types/unist": "^3.0.0", + "longest-streak": "^3.0.0", + "mdast-util-phrasing": "^4.0.0", + "mdast-util-to-string": "^4.0.0", + "micromark-util-decode-string": "^2.0.0", + "unist-util-visit": "^5.0.0", + "zwitch": "^2.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/unified" + } + }, + "node_modules/mdast-util-to-string": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/mdast-util-to-string/-/mdast-util-to-string-4.0.0.tgz", + "integrity": "sha512-0H44vDimn51F0YwvxSJSm0eCDOJTRlmN0R1yBh4HLj9wiV1Dn0QoXGbvFAWj2hSItVTlCmBF1hqKlIyUBVFLPg==", + "dependencies": { + "@types/mdast": "^4.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/unified" + } + }, + "node_modules/mdurl": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/mdurl/-/mdurl-2.0.0.tgz", + "integrity": "sha512-Lf+9+2r+Tdp5wXDXC4PcIBjTDtq4UKjCPMQhKIuzpJNW0b96kVqSwW0bT7FhRSfmAiFYgP+SCRvdrDozfh0U5w==" + }, + "node_modules/merge-stream": { + "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 + }, + "node_modules/merge2": { + "version": "1.4.1", + "resolved": "https://registry.npmjs.org/merge2/-/merge2-1.4.1.tgz", + "integrity": "sha512-8q7VEgMJW4J8tcfVPy8g09NcQwZdbwFEqhe/WZkoIzjn/3TGDwtOCYtXGxA3O8tPzpczCCDgv+P2P5y00ZJOOg==", + "dev": true, + "engines": { + "node": ">= 8" + } + }, + "node_modules/micromark": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/micromark/-/micromark-4.0.0.tgz", + "integrity": "sha512-o/sd0nMof8kYff+TqcDx3VSrgBTcZpSvYcAHIfHhv5VAuNmisCxjhx6YmxS8PFEpb9z5WKWKPdzf0jM23ro3RQ==", + "funding": [ + { + "type": "GitHub Sponsors", + "url": "https://github.com/sponsors/unifiedjs" + }, + { + "type": "OpenCollective", + "url": "https://opencollective.com/unified" + } + ], + "dependencies": { + "@types/debug": "^4.0.0", + "debug": "^4.0.0", + "decode-named-character-reference": "^1.0.0", + "devlop": "^1.0.0", + "micromark-core-commonmark": "^2.0.0", + "micromark-factory-space": "^2.0.0", + "micromark-util-character": "^2.0.0", + "micromark-util-chunked": "^2.0.0", + "micromark-util-combine-extensions": "^2.0.0", + "micromark-util-decode-numeric-character-reference": "^2.0.0", + "micromark-util-encode": "^2.0.0", + "micromark-util-normalize-identifier": "^2.0.0", + "micromark-util-resolve-all": "^2.0.0", + "micromark-util-sanitize-uri": "^2.0.0", + "micromark-util-subtokenize": "^2.0.0", + "micromark-util-symbol": "^2.0.0", + "micromark-util-types": "^2.0.0" + } + }, + "node_modules/micromark-core-commonmark": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/micromark-core-commonmark/-/micromark-core-commonmark-2.0.1.tgz", + "integrity": "sha512-CUQyKr1e///ZODyD1U3xit6zXwy1a8q2a1S1HKtIlmgvurrEpaw/Y9y6KSIbF8P59cn/NjzHyO+Q2fAyYLQrAA==", + "funding": [ + { + "type": "GitHub Sponsors", + "url": "https://github.com/sponsors/unifiedjs" + }, + { + "type": "OpenCollective", + "url": "https://opencollective.com/unified" + } + ], + "dependencies": { + "decode-named-character-reference": "^1.0.0", + "devlop": "^1.0.0", + "micromark-factory-destination": "^2.0.0", + "micromark-factory-label": "^2.0.0", + "micromark-factory-space": "^2.0.0", + "micromark-factory-title": "^2.0.0", + "micromark-factory-whitespace": "^2.0.0", + "micromark-util-character": "^2.0.0", + "micromark-util-chunked": "^2.0.0", + "micromark-util-classify-character": "^2.0.0", + "micromark-util-html-tag-name": "^2.0.0", + "micromark-util-normalize-identifier": "^2.0.0", + "micromark-util-resolve-all": "^2.0.0", + "micromark-util-subtokenize": "^2.0.0", + "micromark-util-symbol": "^2.0.0", + "micromark-util-types": "^2.0.0" + } + }, + "node_modules/micromark-extension-math": { + "version": "3.1.0", + "resolved": "https://registry.npmjs.org/micromark-extension-math/-/micromark-extension-math-3.1.0.tgz", + "integrity": "sha512-lvEqd+fHjATVs+2v/8kg9i5Q0AP2k85H0WUOwpIVvUML8BapsMvh1XAogmQjOCsLpoKRCVQqEkQBB3NhVBcsOg==", + "dependencies": { + "@types/katex": "^0.16.0", + "devlop": "^1.0.0", + "katex": "^0.16.0", + "micromark-factory-space": "^2.0.0", + "micromark-util-character": "^2.0.0", + "micromark-util-symbol": "^2.0.0", + "micromark-util-types": "^2.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/unified" + } + }, + "node_modules/micromark-factory-destination": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/micromark-factory-destination/-/micromark-factory-destination-2.0.0.tgz", + "integrity": "sha512-j9DGrQLm/Uhl2tCzcbLhy5kXsgkHUrjJHg4fFAeoMRwJmJerT9aw4FEhIbZStWN8A3qMwOp1uzHr4UL8AInxtA==", + "funding": [ + { + "type": "GitHub Sponsors", + "url": "https://github.com/sponsors/unifiedjs" + }, + { + "type": "OpenCollective", + "url": "https://opencollective.com/unified" + } + ], + "dependencies": { + "micromark-util-character": "^2.0.0", + "micromark-util-symbol": "^2.0.0", + "micromark-util-types": "^2.0.0" + } + }, + "node_modules/micromark-factory-label": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/micromark-factory-label/-/micromark-factory-label-2.0.0.tgz", + "integrity": "sha512-RR3i96ohZGde//4WSe/dJsxOX6vxIg9TimLAS3i4EhBAFx8Sm5SmqVfR8E87DPSR31nEAjZfbt91OMZWcNgdZw==", + "funding": [ + { + "type": "GitHub Sponsors", + "url": "https://github.com/sponsors/unifiedjs" + }, + { + "type": "OpenCollective", + "url": "https://opencollective.com/unified" + } + ], + "dependencies": { + "devlop": "^1.0.0", + "micromark-util-character": "^2.0.0", + "micromark-util-symbol": "^2.0.0", + "micromark-util-types": "^2.0.0" + } + }, + "node_modules/micromark-factory-space": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/micromark-factory-space/-/micromark-factory-space-2.0.0.tgz", + "integrity": "sha512-TKr+LIDX2pkBJXFLzpyPyljzYK3MtmllMUMODTQJIUfDGncESaqB90db9IAUcz4AZAJFdd8U9zOp9ty1458rxg==", + "funding": [ + { + "type": "GitHub Sponsors", + "url": "https://github.com/sponsors/unifiedjs" + }, + { + "type": "OpenCollective", + "url": "https://opencollective.com/unified" + } + ], + "dependencies": { + "micromark-util-character": "^2.0.0", + "micromark-util-types": "^2.0.0" + } + }, + "node_modules/micromark-factory-title": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/micromark-factory-title/-/micromark-factory-title-2.0.0.tgz", + "integrity": "sha512-jY8CSxmpWLOxS+t8W+FG3Xigc0RDQA9bKMY/EwILvsesiRniiVMejYTE4wumNc2f4UbAa4WsHqe3J1QS1sli+A==", + "funding": [ + { + "type": "GitHub Sponsors", + "url": "https://github.com/sponsors/unifiedjs" + }, + { + "type": "OpenCollective", + "url": "https://opencollective.com/unified" + } + ], + "dependencies": { + "micromark-factory-space": "^2.0.0", + "micromark-util-character": "^2.0.0", + "micromark-util-symbol": "^2.0.0", + "micromark-util-types": "^2.0.0" + } + }, + "node_modules/micromark-factory-whitespace": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/micromark-factory-whitespace/-/micromark-factory-whitespace-2.0.0.tgz", + "integrity": "sha512-28kbwaBjc5yAI1XadbdPYHX/eDnqaUFVikLwrO7FDnKG7lpgxnvk/XGRhX/PN0mOZ+dBSZ+LgunHS+6tYQAzhA==", + "funding": [ + { + "type": "GitHub Sponsors", + "url": "https://github.com/sponsors/unifiedjs" + }, + { + "type": "OpenCollective", + "url": "https://opencollective.com/unified" + } + ], + "dependencies": { + "micromark-factory-space": "^2.0.0", + "micromark-util-character": "^2.0.0", + "micromark-util-symbol": "^2.0.0", + "micromark-util-types": "^2.0.0" + } + }, + "node_modules/micromark-util-character": { + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/micromark-util-character/-/micromark-util-character-2.1.0.tgz", + "integrity": "sha512-KvOVV+X1yLBfs9dCBSopq/+G1PcgT3lAK07mC4BzXi5E7ahzMAF8oIupDDJ6mievI6F+lAATkbQQlQixJfT3aQ==", + "funding": [ + { + "type": "GitHub Sponsors", + "url": "https://github.com/sponsors/unifiedjs" + }, + { + "type": "OpenCollective", + "url": "https://opencollective.com/unified" + } + ], + "dependencies": { + "micromark-util-symbol": "^2.0.0", + "micromark-util-types": "^2.0.0" + } + }, + "node_modules/micromark-util-chunked": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/micromark-util-chunked/-/micromark-util-chunked-2.0.0.tgz", + "integrity": "sha512-anK8SWmNphkXdaKgz5hJvGa7l00qmcaUQoMYsBwDlSKFKjc6gjGXPDw3FNL3Nbwq5L8gE+RCbGqTw49FK5Qyvg==", + "funding": [ + { + "type": "GitHub Sponsors", + "url": "https://github.com/sponsors/unifiedjs" + }, + { + "type": "OpenCollective", + "url": "https://opencollective.com/unified" + } + ], + "dependencies": { + "micromark-util-symbol": "^2.0.0" + } + }, + "node_modules/micromark-util-classify-character": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/micromark-util-classify-character/-/micromark-util-classify-character-2.0.0.tgz", + "integrity": "sha512-S0ze2R9GH+fu41FA7pbSqNWObo/kzwf8rN/+IGlW/4tC6oACOs8B++bh+i9bVyNnwCcuksbFwsBme5OCKXCwIw==", + "funding": [ + { + "type": "GitHub Sponsors", + "url": "https://github.com/sponsors/unifiedjs" + }, + { + "type": "OpenCollective", + "url": "https://opencollective.com/unified" + } + ], + "dependencies": { + "micromark-util-character": "^2.0.0", + "micromark-util-symbol": "^2.0.0", + "micromark-util-types": "^2.0.0" + } + }, + "node_modules/micromark-util-combine-extensions": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/micromark-util-combine-extensions/-/micromark-util-combine-extensions-2.0.0.tgz", + "integrity": "sha512-vZZio48k7ON0fVS3CUgFatWHoKbbLTK/rT7pzpJ4Bjp5JjkZeasRfrS9wsBdDJK2cJLHMckXZdzPSSr1B8a4oQ==", + "funding": [ + { + "type": "GitHub Sponsors", + "url": "https://github.com/sponsors/unifiedjs" + }, + { + "type": "OpenCollective", + "url": "https://opencollective.com/unified" + } + ], + "dependencies": { + "micromark-util-chunked": "^2.0.0", + "micromark-util-types": "^2.0.0" + } + }, + "node_modules/micromark-util-decode-numeric-character-reference": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/micromark-util-decode-numeric-character-reference/-/micromark-util-decode-numeric-character-reference-2.0.1.tgz", + "integrity": "sha512-bmkNc7z8Wn6kgjZmVHOX3SowGmVdhYS7yBpMnuMnPzDq/6xwVA604DuOXMZTO1lvq01g+Adfa0pE2UKGlxL1XQ==", + "funding": [ + { + "type": "GitHub Sponsors", + "url": "https://github.com/sponsors/unifiedjs" + }, + { + "type": "OpenCollective", + "url": "https://opencollective.com/unified" + } + ], + "dependencies": { + "micromark-util-symbol": "^2.0.0" + } + }, + "node_modules/micromark-util-decode-string": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/micromark-util-decode-string/-/micromark-util-decode-string-2.0.0.tgz", + "integrity": "sha512-r4Sc6leeUTn3P6gk20aFMj2ntPwn6qpDZqWvYmAG6NgvFTIlj4WtrAudLi65qYoaGdXYViXYw2pkmn7QnIFasA==", + "funding": [ + { + "type": "GitHub Sponsors", + "url": "https://github.com/sponsors/unifiedjs" + }, + { + "type": "OpenCollective", + "url": "https://opencollective.com/unified" + } + ], + "dependencies": { + "decode-named-character-reference": "^1.0.0", + "micromark-util-character": "^2.0.0", + "micromark-util-decode-numeric-character-reference": "^2.0.0", + "micromark-util-symbol": "^2.0.0" + } + }, + "node_modules/micromark-util-encode": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/micromark-util-encode/-/micromark-util-encode-2.0.0.tgz", + "integrity": "sha512-pS+ROfCXAGLWCOc8egcBvT0kf27GoWMqtdarNfDcjb6YLuV5cM3ioG45Ys2qOVqeqSbjaKg72vU+Wby3eddPsA==", + "funding": [ + { + "type": "GitHub Sponsors", + "url": "https://github.com/sponsors/unifiedjs" + }, + { + "type": "OpenCollective", + "url": "https://opencollective.com/unified" + } + ] + }, + "node_modules/micromark-util-html-tag-name": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/micromark-util-html-tag-name/-/micromark-util-html-tag-name-2.0.0.tgz", + "integrity": "sha512-xNn4Pqkj2puRhKdKTm8t1YHC/BAjx6CEwRFXntTaRf/x16aqka6ouVoutm+QdkISTlT7e2zU7U4ZdlDLJd2Mcw==", + "funding": [ + { + "type": "GitHub Sponsors", + "url": "https://github.com/sponsors/unifiedjs" + }, + { + "type": "OpenCollective", + "url": "https://opencollective.com/unified" + } + ] + }, + "node_modules/micromark-util-normalize-identifier": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/micromark-util-normalize-identifier/-/micromark-util-normalize-identifier-2.0.0.tgz", + "integrity": "sha512-2xhYT0sfo85FMrUPtHcPo2rrp1lwbDEEzpx7jiH2xXJLqBuy4H0GgXk5ToU8IEwoROtXuL8ND0ttVa4rNqYK3w==", + "funding": [ + { + "type": "GitHub Sponsors", + "url": "https://github.com/sponsors/unifiedjs" + }, + { + "type": "OpenCollective", + "url": "https://opencollective.com/unified" + } + ], + "dependencies": { + "micromark-util-symbol": "^2.0.0" + } + }, + "node_modules/micromark-util-resolve-all": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/micromark-util-resolve-all/-/micromark-util-resolve-all-2.0.0.tgz", + "integrity": "sha512-6KU6qO7DZ7GJkaCgwBNtplXCvGkJToU86ybBAUdavvgsCiG8lSSvYxr9MhwmQ+udpzywHsl4RpGJsYWG1pDOcA==", + "funding": [ + { + "type": "GitHub Sponsors", + "url": "https://github.com/sponsors/unifiedjs" + }, + { + "type": "OpenCollective", + "url": "https://opencollective.com/unified" + } + ], + "dependencies": { + "micromark-util-types": "^2.0.0" + } + }, + "node_modules/micromark-util-sanitize-uri": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/micromark-util-sanitize-uri/-/micromark-util-sanitize-uri-2.0.0.tgz", + "integrity": "sha512-WhYv5UEcZrbAtlsnPuChHUAsu/iBPOVaEVsntLBIdpibO0ddy8OzavZz3iL2xVvBZOpolujSliP65Kq0/7KIYw==", + "funding": [ + { + "type": "GitHub Sponsors", + "url": "https://github.com/sponsors/unifiedjs" + }, + { + "type": "OpenCollective", + "url": "https://opencollective.com/unified" + } + ], + "dependencies": { + "micromark-util-character": "^2.0.0", + "micromark-util-encode": "^2.0.0", + "micromark-util-symbol": "^2.0.0" + } + }, + "node_modules/micromark-util-subtokenize": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/micromark-util-subtokenize/-/micromark-util-subtokenize-2.0.1.tgz", + "integrity": "sha512-jZNtiFl/1aY73yS3UGQkutD0UbhTt68qnRpw2Pifmz5wV9h8gOVsN70v+Lq/f1rKaU/W8pxRe8y8Q9FX1AOe1Q==", + "funding": [ + { + "type": "GitHub Sponsors", + "url": "https://github.com/sponsors/unifiedjs" + }, + { + "type": "OpenCollective", + "url": "https://opencollective.com/unified" + } + ], + "dependencies": { + "devlop": "^1.0.0", + "micromark-util-chunked": "^2.0.0", + "micromark-util-symbol": "^2.0.0", + "micromark-util-types": "^2.0.0" + } + }, + "node_modules/micromark-util-symbol": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/micromark-util-symbol/-/micromark-util-symbol-2.0.0.tgz", + "integrity": "sha512-8JZt9ElZ5kyTnO94muPxIGS8oyElRJaiJO8EzV6ZSyGQ1Is8xwl4Q45qU5UOg+bGH4AikWziz0iN4sFLWs8PGw==", + "funding": [ + { + "type": "GitHub Sponsors", + "url": "https://github.com/sponsors/unifiedjs" + }, + { + "type": "OpenCollective", + "url": "https://opencollective.com/unified" + } + ] + }, + "node_modules/micromark-util-types": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/micromark-util-types/-/micromark-util-types-2.0.0.tgz", + "integrity": "sha512-oNh6S2WMHWRZrmutsRmDDfkzKtxF+bc2VxLC9dvtrDIRFln627VsFP6fLMgTryGDljgLPjkrzQSDcPrjPyDJ5w==", + "funding": [ + { + "type": "GitHub Sponsors", + "url": "https://github.com/sponsors/unifiedjs" + }, + { + "type": "OpenCollective", + "url": "https://opencollective.com/unified" + } + ] + }, + "node_modules/micromatch": { + "version": "4.0.8", + "resolved": "https://registry.npmjs.org/micromatch/-/micromatch-4.0.8.tgz", + "integrity": "sha512-PXwfBhYu0hBCPw8Dn0E+WDYb7af3dSLVWKi3HGv84IdF4TyFoC0ysxFd0Goxw7nSv4T/PzEJQxsYsEiFCKo2BA==", + "dev": true, + "dependencies": { + "braces": "^3.0.3", + "picomatch": "^2.3.1" + }, + "engines": { + "node": ">=8.6" + } + }, + "node_modules/mime-db": { + "version": "1.53.0", + "resolved": "https://registry.npmjs.org/mime-db/-/mime-db-1.53.0.tgz", + "integrity": "sha512-oHlN/w+3MQ3rba9rqFr6V/ypF10LSkdwUysQL7GkXoTgIWeV+tcXGA852TBxH+gsh8UWoyhR1hKcoMJTuWflpg==", + "dev": true, + "engines": { + "node": ">= 0.6" + } + }, + "node_modules/mime-types": { + "version": "2.1.35", + "resolved": "https://registry.npmjs.org/mime-types/-/mime-types-2.1.35.tgz", + "integrity": "sha512-ZDY+bPm5zTTF+YpCrAU9nK0UgICYPT0QtT1NZWFv4s++TNkcgVaT0g6+4R2uI4MjQjzysHB1zxuWL50hzaeXiw==", + "dev": true, + "dependencies": { + "mime-db": "1.52.0" + }, + "engines": { + "node": ">= 0.6" + } + }, + "node_modules/mime-types/node_modules/mime-db": { + "version": "1.52.0", + "resolved": "https://registry.npmjs.org/mime-db/-/mime-db-1.52.0.tgz", + "integrity": "sha512-sPU4uV7dYlvtWJxwwxHD0PuihVNiE7TyAbQ5SWxDCB9mUYvOgroQOwYQQOKPJ8CIbE+1ETVlOoK1UC2nU3gYvg==", + "dev": true, + "engines": { + "node": ">= 0.6" + } + }, + "node_modules/mimic-fn": { + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/mimic-fn/-/mimic-fn-2.1.0.tgz", + "integrity": "sha512-OqbOk5oEQeAZ8WXWydlu9HJjz9WVdEIvamMCcXmuqUYjTknH/sqsWvhQ3vgwKFRR1HpjvNBKQ37nbJgYzGqGcg==", + "dev": true, + "engines": { + "node": ">=6" + } + }, + "node_modules/mimic-response": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/mimic-response/-/mimic-response-1.0.1.tgz", + "integrity": "sha512-j5EctnkH7amfV/q5Hgmoal1g2QHFJRraOtmx0JpIqkxhBhI/lJSl1nMpQ45hVarwNETOoWEimndZ4QK0RHxuxQ==", + "dev": true, + "engines": { + "node": ">=4" + } + }, + "node_modules/minimatch": { + "version": "9.0.5", + "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-9.0.5.tgz", + "integrity": "sha512-G6T0ZX48xgozx7587koeX9Ys2NYy6Gmv//P89sEte9V9whIapMNF4idKxnW2QtCcLiTWlb/wfCabAtAFWhhBow==", + "dev": true, + "dependencies": { + "brace-expansion": "^2.0.1" + }, + "engines": { + "node": ">=16 || 14 >=14.17" + }, + "funding": { + "url": "https://github.com/sponsors/isaacs" + } + }, + "node_modules/minipass": { + "version": "7.1.2", + "resolved": "https://registry.npmjs.org/minipass/-/minipass-7.1.2.tgz", + "integrity": "sha512-qOOzS1cBTWYF4BH8fVePDBOO9iptMnGUEZwNc/cMWnTV2nVLZ7VoNWEPHkYczZA0pdoA7dl6e7FL659nX9S2aw==", + "dev": true, + "engines": { + "node": ">=16 || 14 >=14.17" + } + }, + "node_modules/minisearch": { + "version": "7.1.0", + "resolved": "https://registry.npmjs.org/minisearch/-/minisearch-7.1.0.tgz", + "integrity": "sha512-tv7c/uefWdEhcu6hvrfTihflgeEi2tN6VV7HJnCjK6VxM75QQJh4t9FwJCsA2EsRS8LCnu3W87CuGPWMocOLCA==" + }, + "node_modules/monaco-editor": { + "version": "0.52.0", + "resolved": "https://registry.npmjs.org/monaco-editor/-/monaco-editor-0.52.0.tgz", + "integrity": "sha512-OeWhNpABLCeTqubfqLMXGsqf6OmPU6pHM85kF3dhy6kq5hnhuVS1p3VrEW/XhWHc71P2tHyS5JFySD8mgs1crw==", + "peer": true + }, + "node_modules/ms": { + "version": "2.1.3", + "resolved": "https://registry.npmjs.org/ms/-/ms-2.1.3.tgz", + "integrity": "sha512-6FlzubTLZG3J2a/NVCAleEhjzq5oxgHyaCU9yYXvcLsvoVaHJq/s5xXI6/XXP6tz7R9xAOtHnSO/tXtF3WRTlA==" + }, + "node_modules/mz": { + "version": "2.7.0", + "resolved": "https://registry.npmjs.org/mz/-/mz-2.7.0.tgz", + "integrity": "sha512-z81GNO7nnYMEhrGh9LeymoE4+Yr0Wn5McHIZMK5cfQCl+NDX08sCZgUc9/6MHni9IWuFLm1Z3HTCXu2z9fN62Q==", + "dev": true, + "dependencies": { + "any-promise": "^1.0.0", + "object-assign": "^4.0.1", + "thenify-all": "^1.0.0" + } + }, + "node_modules/nanoid": { + "version": "3.3.7", + "resolved": "https://registry.npmjs.org/nanoid/-/nanoid-3.3.7.tgz", + "integrity": "sha512-eSRppjcPIatRIMC1U6UngP8XFcz8MQWGQdt1MTBQ7NaAmvXDfvNxbvWV3x2y6CdEUciCSsDHDQZbhYaB8QEo2g==", + "dev": true, + "funding": [ + { + "type": "github", + "url": "https://github.com/sponsors/ai" + } + ], + "bin": { + "nanoid": "bin/nanoid.cjs" + }, + "engines": { + "node": "^10 || ^12 || ^13.7 || ^14 || >=15.0.1" + } + }, + "node_modules/node-releases": { + "version": "2.0.18", + "resolved": "https://registry.npmjs.org/node-releases/-/node-releases-2.0.18.tgz", + "integrity": "sha512-d9VeXT4SJ7ZeOqGX6R5EM022wpL+eWPooLI+5UpWn2jCT1aosUQEhQP214x33Wkwx3JQMvIm+tIoVOdodFS40g==" + }, + "node_modules/normalize-path": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/normalize-path/-/normalize-path-3.0.0.tgz", + "integrity": "sha512-6eZs5Ls3WtCisHWp9S2GUy8dqkpGi4BVSz3GaqiE6ezub0512ESztXUwUB6C6IKbQkY2Pnb/mD4WYojCRwcwLA==", + "dev": true, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/normalize-range": { + "version": "0.1.2", + "resolved": "https://registry.npmjs.org/normalize-range/-/normalize-range-0.1.2.tgz", + "integrity": "sha512-bdok/XvKII3nUpklnV6P2hxtMNrCboOjAcyBuQnWEhO665FwrSNRxU+AqpsyvO6LgGYPspN+lu5CLtw4jPRKNA==", + "dev": true, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/normalize-url": { + "version": "6.1.0", + "resolved": "https://registry.npmjs.org/normalize-url/-/normalize-url-6.1.0.tgz", + "integrity": "sha512-DlL+XwOy3NxAQ8xuC0okPgK46iuVNAK01YN7RueYBqqFeGsBjV9XmCAzAdgt+667bCl5kPh9EqKKDwnaPG1I7A==", + "dev": true, + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/not": { + "version": "0.1.0", + "resolved": "https://registry.npmjs.org/not/-/not-0.1.0.tgz", + "integrity": "sha512-5PDmaAsVfnWUgTUbJ3ERwn7u79Z0dYxN9ErxCpVJJqe2RK0PJ3z+iFUxuqjwtlDDegXvtWoxD/3Fzxox7tFGWA==" + }, + "node_modules/npm-run-path": { + "version": "2.0.2", + "resolved": "https://registry.npmjs.org/npm-run-path/-/npm-run-path-2.0.2.tgz", + "integrity": "sha512-lJxZYlT4DW/bRUtFh1MQIWqmLwQfAxnqWG4HhEdjMlkrJYnJn0Jrr2u3mgxqaWsdiBc76TYkTG/mhrnYTuzfHw==", + "dev": true, + "dependencies": { + "path-key": "^2.0.0" + }, + "engines": { + "node": ">=4" + } + }, + "node_modules/nth-check": { + "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==", + "dependencies": { + "boolbase": "^1.0.0" + }, + "funding": { + "url": "https://github.com/fb55/nth-check?sponsor=1" + } + }, + "node_modules/object-assign": { + "version": "4.1.1", + "resolved": "https://registry.npmjs.org/object-assign/-/object-assign-4.1.1.tgz", + "integrity": "sha512-rJgTQnkUnH1sFw8yT6VSU3zD3sWmu6sZhIseY8VX+GRu3P6F7Fu+JNDoXfklElbLJSnc3FUQHVe4cU5hj+BcUg==", + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/object-hash": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/object-hash/-/object-hash-3.0.0.tgz", + "integrity": "sha512-RSn9F68PjH9HqtltsSnqYC1XXoWe9Bju5+213R98cNGttag9q9yAOTzdbsqvIa7aNm5WffBZFpWYr2aWrklWAw==", + "dev": true, + "engines": { + "node": ">= 6" + } + }, + "node_modules/once": { + "version": "1.4.0", + "resolved": "https://registry.npmjs.org/once/-/once-1.4.0.tgz", + "integrity": "sha512-lNaJgI+2Q5URQBkccEKHTQOPaXdUxnZZElQTZY0MFUAuaEqe1E+Nyvgdz/aIyNi6Z9MzO5dv1H8n58/GELp3+w==", + "dev": true, + "dependencies": { + "wrappy": "1" + } + }, + "node_modules/onetime": { + "version": "5.1.2", + "resolved": "https://registry.npmjs.org/onetime/-/onetime-5.1.2.tgz", + "integrity": "sha512-kbpaSSGJTWdAY5KPVeMOKXSrPtr8C8C7wodJbcsd51jRnmD+GZu8Y0VoU6Dm5Z4vWr0Ig/1NKuWRKf7j5aaYSg==", + "dev": true, + "dependencies": { + "mimic-fn": "^2.1.0" + }, + "engines": { + "node": ">=6" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/onigasm": { + "version": "2.2.5", + "resolved": "https://registry.npmjs.org/onigasm/-/onigasm-2.2.5.tgz", + "integrity": "sha512-F+th54mPc0l1lp1ZcFMyL/jTs2Tlq4SqIHKIXGZOR/VkHkF9A7Fr5rRr5+ZG/lWeRsyrClLYRq7s/yFQ/XhWCA==", + "dependencies": { + "lru-cache": "^5.1.1" + } + }, + "node_modules/onigasm/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==", + "dependencies": { + "yallist": "^3.0.2" + } + }, + "node_modules/onigasm/node_modules/yallist": { + "version": "3.1.1", + "resolved": "https://registry.npmjs.org/yallist/-/yallist-3.1.1.tgz", + "integrity": "sha512-a4UGQaWPH59mOXUYnAG2ewncQS4i4F43Tv3JoAM+s2VDAmS9NsK8GpDMLrCHPksFT7h3K6TOoUNn2pb7RoXx4g==" + }, + "node_modules/orderedmap": { + "version": "2.1.1", + "resolved": "https://registry.npmjs.org/orderedmap/-/orderedmap-2.1.1.tgz", + "integrity": "sha512-TvAWxi0nDe1j/rtMcWcIj94+Ffe6n7zhow33h40SKxmsmozs6dz/e+EajymfoFcHd7sxNn8yHM8839uixMOV6g==" + }, + "node_modules/os-filter-obj": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/os-filter-obj/-/os-filter-obj-2.0.0.tgz", + "integrity": "sha512-uksVLsqG3pVdzzPvmAHpBK0wKxYItuzZr7SziusRPoz67tGV8rL1szZ6IdeUrbqLjGDwApBtN29eEE3IqGHOjg==", + "dev": true, + "dependencies": { + "arch": "^2.1.0" + }, + "engines": { + "node": ">=4" + } + }, + "node_modules/p-cancelable": { + "version": "2.1.1", + "resolved": "https://registry.npmjs.org/p-cancelable/-/p-cancelable-2.1.1.tgz", + "integrity": "sha512-BZOr3nRQHOntUjTrH8+Lh54smKHoHyur8We1V8DSMVrl5A2malOOwuJRnKRDjSnkoeBh4at6BwEnb5I7Jl31wg==", + "dev": true, + "engines": { + "node": ">=8" + } + }, + "node_modules/p-finally": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/p-finally/-/p-finally-1.0.0.tgz", + "integrity": "sha512-LICb2p9CB7FS+0eR1oqWnHhp0FljGLZCWBE9aix0Uye9W8LTQPwMTYVGWQWIw9RdQiDg4+epXQODwIYJtSJaow==", + "dev": true, + "engines": { + "node": ">=4" + } + }, + "node_modules/package-json-from-dist": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/package-json-from-dist/-/package-json-from-dist-1.0.0.tgz", + "integrity": "sha512-dATvCeZN/8wQsGywez1mzHtTlP22H8OEfPrVMLNr4/eGa+ijtLn/6M5f0dY8UKNrC2O9UCU6SSoG3qRKnt7STw==", + "dev": true + }, + "node_modules/parse-entities": { + "version": "4.0.1", + "resolved": "https://registry.npmjs.org/parse-entities/-/parse-entities-4.0.1.tgz", + "integrity": "sha512-SWzvYcSJh4d/SGLIOQfZ/CoNv6BTlI6YEQ7Nj82oDVnRpwe/Z/F1EMx42x3JAOwGBlCjeCH0BRJQbQ/opHL17w==", + "dependencies": { + "@types/unist": "^2.0.0", + "character-entities": "^2.0.0", + "character-entities-legacy": "^3.0.0", + "character-reference-invalid": "^2.0.0", + "decode-named-character-reference": "^1.0.0", + "is-alphanumerical": "^2.0.0", + "is-decimal": "^2.0.0", + "is-hexadecimal": "^2.0.0" + }, + "funding": { + "type": "github", + "url": "https://github.com/sponsors/wooorm" + } + }, + "node_modules/parse-entities/node_modules/@types/unist": { + "version": "2.0.11", + "resolved": "https://registry.npmjs.org/@types/unist/-/unist-2.0.11.tgz", + "integrity": "sha512-CmBKiL6NNo/OqgmMn95Fk9Whlp2mtvIv+KNpQKN2F4SjvrEesubTRWGYSg+BnWZOnlCaSTU1sMpsBOzgbYhnsA==" + }, + "node_modules/parse5": { + "version": "7.1.2", + "resolved": "https://registry.npmjs.org/parse5/-/parse5-7.1.2.tgz", + "integrity": "sha512-Czj1WaSVpaoj0wbhMzLmWD69anp2WH7FXMB9n1Sy8/ZFF9jolSQVMu1Ij5WIyGmcBmhk7EOndpO4mIpihVqAXw==", + "dependencies": { + "entities": "^4.4.0" + }, + "funding": { + "url": "https://github.com/inikulin/parse5?sponsor=1" + } + }, + "node_modules/path-key": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/path-key/-/path-key-2.0.1.tgz", + "integrity": "sha512-fEHGKCSmUSDPv4uoj8AlD+joPlq3peND+HRYyxFz4KPw4z926S/b8rIuFs2FYJg3BwsxJf6A9/3eIdLaYC+9Dw==", + "dev": true, + "engines": { + "node": ">=4" + } + }, + "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==", + "dev": true + }, + "node_modules/path-scurry": { + "version": "1.11.1", + "resolved": "https://registry.npmjs.org/path-scurry/-/path-scurry-1.11.1.tgz", + "integrity": "sha512-Xa4Nw17FS9ApQFJ9umLiJS4orGjm7ZzwUrwamcGQuHSzDyth9boKDaycYdDcZDuqYATXw4HFXgaqWTctW/v1HA==", + "dev": true, + "dependencies": { + "lru-cache": "^10.2.0", + "minipass": "^5.0.0 || ^6.0.2 || ^7.0.0" + }, + "engines": { + "node": ">=16 || 14 >=14.18" + }, + "funding": { + "url": "https://github.com/sponsors/isaacs" + } + }, + "node_modules/path-scurry/node_modules/lru-cache": { + "version": "10.4.3", + "resolved": "https://registry.npmjs.org/lru-cache/-/lru-cache-10.4.3.tgz", + "integrity": "sha512-JNAzZcXrCt42VGLuYz0zfAzDfAvJWW6AfYlDBQyDV5DClI2m5sAmK+OIO7s59XfsRsWHp02jAJrRadPRGTt6SQ==", + "dev": true + }, + "node_modules/peek-readable": { + "version": "5.2.0", + "resolved": "https://registry.npmjs.org/peek-readable/-/peek-readable-5.2.0.tgz", + "integrity": "sha512-U94a+eXHzct7vAd19GH3UQ2dH4Satbng0MyYTMaQatL0pvYYL5CTPR25HBhKtecl+4bfu1/i3vC6k0hydO5Vcw==", + "dev": true, + "engines": { + "node": ">=14.16" + }, + "funding": { + "type": "github", + "url": "https://github.com/sponsors/Borewit" + } + }, + "node_modules/picocolors": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/picocolors/-/picocolors-1.1.0.tgz", + "integrity": "sha512-TQ92mBOW0l3LeMeyLV6mzy/kWr8lkd/hp3mTg7wYK7zJhuBStmGMBG0BdeDZS/dZx1IukaX6Bk11zcln25o1Aw==" + }, + "node_modules/picomatch": { + "version": "2.3.1", + "resolved": "https://registry.npmjs.org/picomatch/-/picomatch-2.3.1.tgz", + "integrity": "sha512-JU3teHTNjmE2VCGFzuY8EXzCDVwEqB2a8fsIvwaStHhAWJEeVd1o1QD80CU6+ZdEXXSLbSsuLwJjkCBWqRQUVA==", + "engines": { + "node": ">=8.6" + }, + "funding": { + "url": "https://github.com/sponsors/jonschlinkert" + } + }, + "node_modules/pify": { + "version": "2.3.0", + "resolved": "https://registry.npmjs.org/pify/-/pify-2.3.0.tgz", + "integrity": "sha512-udgsAY+fTnvv7kI7aaxbqwWNb0AHiB0qBO89PZKPkoTmGOgdbrHDKD+0B2X4uTfJ/FT1R09r9gTsjUjNJotuog==", + "dev": true, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/pirates": { + "version": "4.0.6", + "resolved": "https://registry.npmjs.org/pirates/-/pirates-4.0.6.tgz", + "integrity": "sha512-saLsH7WeYYPiD25LDuLRRY/i+6HaPYr6G1OUlN39otzkSTxKnubR9RTxS3/Kk50s1g2JTgFwWQDQyplC5/SHZg==", + "dev": true, + "engines": { + "node": ">= 6" + } + }, + "node_modules/piscina": { + "version": "4.7.0", + "resolved": "https://registry.npmjs.org/piscina/-/piscina-4.7.0.tgz", + "integrity": "sha512-b8hvkpp9zS0zsfa939b/jXbe64Z2gZv0Ha7FYPNUiDIB1y2AtxcOZdfP8xN8HFjUaqQiT9gRlfjAsoL8vdJ1Iw==", + "dev": true, + "optionalDependencies": { + "@napi-rs/nice": "^1.0.1" + } + }, + "node_modules/postcss": { + "version": "8.4.47", + "resolved": "https://registry.npmjs.org/postcss/-/postcss-8.4.47.tgz", + "integrity": "sha512-56rxCq7G/XfB4EkXq9Egn5GCqugWvDFjafDOThIdMBsI15iqPqR5r15TfSr1YPYeEI19YeaXMCbY6u88Y76GLQ==", + "dev": true, + "funding": [ + { + "type": "opencollective", + "url": "https://opencollective.com/postcss/" + }, + { + "type": "tidelift", + "url": "https://tidelift.com/funding/github/npm/postcss" + }, + { + "type": "github", + "url": "https://github.com/sponsors/ai" + } + ], + "dependencies": { + "nanoid": "^3.3.7", + "picocolors": "^1.1.0", + "source-map-js": "^1.2.1" + }, + "engines": { + "node": "^10 || ^12 || >=14" + } + }, + "node_modules/postcss-import": { + "version": "15.1.0", + "resolved": "https://registry.npmjs.org/postcss-import/-/postcss-import-15.1.0.tgz", + "integrity": "sha512-hpr+J05B2FVYUAXHeK1YyI267J/dDDhMU6B6civm8hSY1jYJnBXxzKDKDswzJmtLHryrjhnDjqqp/49t8FALew==", + "dev": true, + "dependencies": { + "postcss-value-parser": "^4.0.0", + "read-cache": "^1.0.0", + "resolve": "^1.1.7" + }, + "engines": { + "node": ">=14.0.0" + }, + "peerDependencies": { + "postcss": "^8.0.0" + } + }, + "node_modules/postcss-js": { + "version": "4.0.1", + "resolved": "https://registry.npmjs.org/postcss-js/-/postcss-js-4.0.1.tgz", + "integrity": "sha512-dDLF8pEO191hJMtlHFPRa8xsizHaM82MLfNkUHdUtVEV3tgTp5oj+8qbEqYM57SLfc74KSbw//4SeJma2LRVIw==", + "dev": true, + "dependencies": { + "camelcase-css": "^2.0.1" + }, + "engines": { + "node": "^12 || ^14 || >= 16" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/postcss/" + }, + "peerDependencies": { + "postcss": "^8.4.21" + } + }, + "node_modules/postcss-load-config": { + "version": "4.0.2", + "resolved": "https://registry.npmjs.org/postcss-load-config/-/postcss-load-config-4.0.2.tgz", + "integrity": "sha512-bSVhyJGL00wMVoPUzAVAnbEoWyqRxkjv64tUl427SKnPrENtq6hJwUojroMz2VB+Q1edmi4IfrAPpami5VVgMQ==", + "dev": true, + "funding": [ + { + "type": "opencollective", + "url": "https://opencollective.com/postcss/" + }, + { + "type": "github", + "url": "https://github.com/sponsors/ai" + } + ], + "dependencies": { + "lilconfig": "^3.0.0", + "yaml": "^2.3.4" + }, + "engines": { + "node": ">= 14" + }, + "peerDependencies": { + "postcss": ">=8.0.9", + "ts-node": ">=9.0.0" + }, + "peerDependenciesMeta": { + "postcss": { + "optional": true + }, + "ts-node": { + "optional": true + } + } + }, + "node_modules/postcss-load-config/node_modules/lilconfig": { + "version": "3.1.2", + "resolved": "https://registry.npmjs.org/lilconfig/-/lilconfig-3.1.2.tgz", + "integrity": "sha512-eop+wDAvpItUys0FWkHIKeC9ybYrTGbU41U5K7+bttZZeohvnY7M9dZ5kB21GNWiFT2q1OoPTvncPCgSOVO5ow==", + "dev": true, + "engines": { + "node": ">=14" + }, + "funding": { + "url": "https://github.com/sponsors/antonk52" + } + }, + "node_modules/postcss-nested": { + "version": "6.2.0", + "resolved": "https://registry.npmjs.org/postcss-nested/-/postcss-nested-6.2.0.tgz", + "integrity": "sha512-HQbt28KulC5AJzG+cZtj9kvKB93CFCdLvog1WFLf1D+xmMvPGlBstkpTEZfK5+AN9hfJocyBFCNiqyS48bpgzQ==", + "dev": true, + "funding": [ + { + "type": "opencollective", + "url": "https://opencollective.com/postcss/" + }, + { + "type": "github", + "url": "https://github.com/sponsors/ai" + } + ], + "dependencies": { + "postcss-selector-parser": "^6.1.1" + }, + "engines": { + "node": ">=12.0" + }, + "peerDependencies": { + "postcss": "^8.2.14" + } + }, + "node_modules/postcss-selector-parser": { + "version": "6.1.2", + "resolved": "https://registry.npmjs.org/postcss-selector-parser/-/postcss-selector-parser-6.1.2.tgz", + "integrity": "sha512-Q8qQfPiZ+THO/3ZrOrO0cJJKfpYCagtMUkXbnEfmgUjwXg6z/WBeOyS9APBBPCTSiDV+s4SwQGu8yFsiMRIudg==", + "dev": true, + "dependencies": { + "cssesc": "^3.0.0", + "util-deprecate": "^1.0.2" + }, + "engines": { + "node": ">=4" + } + }, + "node_modules/postcss-value-parser": { + "version": "4.2.0", + "resolved": "https://registry.npmjs.org/postcss-value-parser/-/postcss-value-parser-4.2.0.tgz", + "integrity": "sha512-1NNCs6uurfkVbeXG4S8JFT9t19m45ICnif8zWLd5oPSZ50QnwMfK+H3jv408d4jw/7Bttv5axS5IiHoLaVNHeQ==" + }, + "node_modules/posthog-js": { + "version": "1.163.0", + "resolved": "https://registry.npmjs.org/posthog-js/-/posthog-js-1.163.0.tgz", + "integrity": "sha512-gpLbxZkOm06oOWg0uvCxBIVIHrhX3A5hxf9eAi/Z+aFP9DvWxwHQdGUkIWjnYUyxXilIbLxBPvWmiM98dYsAHA==", + "dependencies": { + "fflate": "^0.4.8", + "preact": "^10.19.3", + "web-vitals": "^4.0.1" + } + }, + "node_modules/preact": { + "version": "10.24.0", + "resolved": "https://registry.npmjs.org/preact/-/preact-10.24.0.tgz", + "integrity": "sha512-aK8Cf+jkfyuZ0ZZRG9FbYqwmEiGQ4y/PUO4SuTWoyWL244nZZh7bd5h2APd4rSNDYTBNghg1L+5iJN3Skxtbsw==", + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/preact" + } + }, + "node_modules/prismjs": { + "version": "1.29.0", + "resolved": "https://registry.npmjs.org/prismjs/-/prismjs-1.29.0.tgz", + "integrity": "sha512-Kx/1w86q/epKcmte75LNrEoT+lX8pBpavuAbvJWRXar7Hz8jrtF+e3vY751p0R8H9HdArwaCTNDDzHg/ScJK1Q==", + "engines": { + "node": ">=6" + } + }, + "node_modules/prop-types": { + "version": "15.8.1", + "resolved": "https://registry.npmjs.org/prop-types/-/prop-types-15.8.1.tgz", + "integrity": "sha512-oj87CgZICdulUohogVAR7AjlC0327U4el4L6eAvOqCeudMDVU0NThNaV+b9Df4dXgSP1gXMTnPdhfe/2qDH5cg==", + "dependencies": { + "loose-envify": "^1.4.0", + "object-assign": "^4.1.1", + "react-is": "^16.13.1" + } + }, + "node_modules/prop-types/node_modules/react-is": { + "version": "16.13.1", + "resolved": "https://registry.npmjs.org/react-is/-/react-is-16.13.1.tgz", + "integrity": "sha512-24e6ynE2H+OKt4kqsOvNd8kBpV65zoxbA4BVsEOB3ARVWQki/DHzaUoC5KuON/BiccDaCCTZBuOcfZs70kR8bQ==" + }, + "node_modules/property-information": { + "version": "6.5.0", + "resolved": "https://registry.npmjs.org/property-information/-/property-information-6.5.0.tgz", + "integrity": "sha512-PgTgs/BlvHxOu8QuEN7wi5A0OmXaBcHpmCSTehcs6Uuu9IkDIEo13Hy7n898RHfrQ49vKCoGeWZSaAK01nwVig==", + "funding": { + "type": "github", + "url": "https://github.com/sponsors/wooorm" + } + }, + "node_modules/prosemirror-changeset": { + "version": "2.2.1", + "resolved": "https://registry.npmjs.org/prosemirror-changeset/-/prosemirror-changeset-2.2.1.tgz", + "integrity": "sha512-J7msc6wbxB4ekDFj+n9gTW/jav/p53kdlivvuppHsrZXCaQdVgRghoZbSS3kwrRyAstRVQ4/+u5k7YfLgkkQvQ==", + "dependencies": { + "prosemirror-transform": "^1.0.0" + } + }, + "node_modules/prosemirror-collab": { + "version": "1.3.1", + "resolved": "https://registry.npmjs.org/prosemirror-collab/-/prosemirror-collab-1.3.1.tgz", + "integrity": "sha512-4SnynYR9TTYaQVXd/ieUvsVV4PDMBzrq2xPUWutHivDuOshZXqQ5rGbZM84HEaXKbLdItse7weMGOUdDVcLKEQ==", + "dependencies": { + "prosemirror-state": "^1.0.0" + } + }, + "node_modules/prosemirror-commands": { + "version": "1.6.0", + "resolved": "https://registry.npmjs.org/prosemirror-commands/-/prosemirror-commands-1.6.0.tgz", + "integrity": "sha512-xn1U/g36OqXn2tn5nGmvnnimAj/g1pUx2ypJJIe8WkVX83WyJVC5LTARaxZa2AtQRwntu9Jc5zXs9gL9svp/mg==", + "dependencies": { + "prosemirror-model": "^1.0.0", + "prosemirror-state": "^1.0.0", + "prosemirror-transform": "^1.0.0" + } + }, + "node_modules/prosemirror-dropcursor": { + "version": "1.8.1", + "resolved": "https://registry.npmjs.org/prosemirror-dropcursor/-/prosemirror-dropcursor-1.8.1.tgz", + "integrity": "sha512-M30WJdJZLyXHi3N8vxN6Zh5O8ZBbQCz0gURTfPmTIBNQ5pxrdU7A58QkNqfa98YEjSAL1HUyyU34f6Pm5xBSGw==", + "dependencies": { + "prosemirror-state": "^1.0.0", + "prosemirror-transform": "^1.1.0", + "prosemirror-view": "^1.1.0" + } + }, + "node_modules/prosemirror-gapcursor": { + "version": "1.3.2", + "resolved": "https://registry.npmjs.org/prosemirror-gapcursor/-/prosemirror-gapcursor-1.3.2.tgz", + "integrity": "sha512-wtjswVBd2vaQRrnYZaBCbyDqr232Ed4p2QPtRIUK5FuqHYKGWkEwl08oQM4Tw7DOR0FsasARV5uJFvMZWxdNxQ==", + "dependencies": { + "prosemirror-keymap": "^1.0.0", + "prosemirror-model": "^1.0.0", + "prosemirror-state": "^1.0.0", + "prosemirror-view": "^1.0.0" + } + }, + "node_modules/prosemirror-history": { + "version": "1.4.1", + "resolved": "https://registry.npmjs.org/prosemirror-history/-/prosemirror-history-1.4.1.tgz", + "integrity": "sha512-2JZD8z2JviJrboD9cPuX/Sv/1ChFng+xh2tChQ2X4bB2HeK+rra/bmJ3xGntCcjhOqIzSDG6Id7e8RJ9QPXLEQ==", + "dependencies": { + "prosemirror-state": "^1.2.2", + "prosemirror-transform": "^1.0.0", + "prosemirror-view": "^1.31.0", + "rope-sequence": "^1.3.0" + } + }, + "node_modules/prosemirror-inputrules": { + "version": "1.4.0", + "resolved": "https://registry.npmjs.org/prosemirror-inputrules/-/prosemirror-inputrules-1.4.0.tgz", + "integrity": "sha512-6ygpPRuTJ2lcOXs9JkefieMst63wVJBgHZGl5QOytN7oSZs3Co/BYbc3Yx9zm9H37Bxw8kVzCnDsihsVsL4yEg==", + "dependencies": { + "prosemirror-state": "^1.0.0", + "prosemirror-transform": "^1.0.0" + } + }, + "node_modules/prosemirror-keymap": { + "version": "1.2.2", + "resolved": "https://registry.npmjs.org/prosemirror-keymap/-/prosemirror-keymap-1.2.2.tgz", + "integrity": "sha512-EAlXoksqC6Vbocqc0GtzCruZEzYgrn+iiGnNjsJsH4mrnIGex4qbLdWWNza3AW5W36ZRrlBID0eM6bdKH4OStQ==", + "dependencies": { + "prosemirror-state": "^1.0.0", + "w3c-keyname": "^2.2.0" + } + }, + "node_modules/prosemirror-markdown": { + "version": "1.13.0", + "resolved": "https://registry.npmjs.org/prosemirror-markdown/-/prosemirror-markdown-1.13.0.tgz", + "integrity": "sha512-UziddX3ZYSYibgx8042hfGKmukq5Aljp2qoBiJRejD/8MH70siQNz5RB1TrdTPheqLMy4aCe4GYNF10/3lQS5g==", + "dependencies": { + "markdown-it": "^14.0.0", + "prosemirror-model": "^1.20.0" + } + }, + "node_modules/prosemirror-menu": { + "version": "1.2.4", + "resolved": "https://registry.npmjs.org/prosemirror-menu/-/prosemirror-menu-1.2.4.tgz", + "integrity": "sha512-S/bXlc0ODQup6aiBbWVsX/eM+xJgCTAfMq/nLqaO5ID/am4wS0tTCIkzwytmao7ypEtjj39i7YbJjAgO20mIqA==", + "dependencies": { + "crelt": "^1.0.0", + "prosemirror-commands": "^1.0.0", + "prosemirror-history": "^1.0.0", + "prosemirror-state": "^1.0.0" + } + }, + "node_modules/prosemirror-model": { + "version": "1.22.3", + "resolved": "https://registry.npmjs.org/prosemirror-model/-/prosemirror-model-1.22.3.tgz", + "integrity": "sha512-V4XCysitErI+i0rKFILGt/xClnFJaohe/wrrlT2NSZ+zk8ggQfDH4x2wNK7Gm0Hp4CIoWizvXFP7L9KMaCuI0Q==", + "dependencies": { + "orderedmap": "^2.0.0" + } + }, + "node_modules/prosemirror-schema-basic": { + "version": "1.2.3", + "resolved": "https://registry.npmjs.org/prosemirror-schema-basic/-/prosemirror-schema-basic-1.2.3.tgz", + "integrity": "sha512-h+H0OQwZVqMon1PNn0AG9cTfx513zgIG2DY00eJ00Yvgb3UD+GQ/VlWW5rcaxacpCGT1Yx8nuhwXk4+QbXUfJA==", + "dependencies": { + "prosemirror-model": "^1.19.0" + } + }, + "node_modules/prosemirror-schema-list": { + "version": "1.4.1", + "resolved": "https://registry.npmjs.org/prosemirror-schema-list/-/prosemirror-schema-list-1.4.1.tgz", + "integrity": "sha512-jbDyaP/6AFfDfu70VzySsD75Om2t3sXTOdl5+31Wlxlg62td1haUpty/ybajSfJ1pkGadlOfwQq9kgW5IMo1Rg==", + "dependencies": { + "prosemirror-model": "^1.0.0", + "prosemirror-state": "^1.0.0", + "prosemirror-transform": "^1.7.3" + } + }, + "node_modules/prosemirror-state": { + "version": "1.4.3", + "resolved": "https://registry.npmjs.org/prosemirror-state/-/prosemirror-state-1.4.3.tgz", + "integrity": "sha512-goFKORVbvPuAQaXhpbemJFRKJ2aixr+AZMGiquiqKxaucC6hlpHNZHWgz5R7dS4roHiwq9vDctE//CZ++o0W1Q==", + "dependencies": { + "prosemirror-model": "^1.0.0", + "prosemirror-transform": "^1.0.0", + "prosemirror-view": "^1.27.0" + } + }, + "node_modules/prosemirror-tables": { + "version": "1.5.0", + "resolved": "https://registry.npmjs.org/prosemirror-tables/-/prosemirror-tables-1.5.0.tgz", + "integrity": "sha512-VMx4zlYWm7aBlZ5xtfJHpqa3Xgu3b7srV54fXYnXgsAcIGRqKSrhiK3f89omzzgaAgAtDOV4ImXnLKhVfheVNQ==", + "dependencies": { + "prosemirror-keymap": "^1.1.2", + "prosemirror-model": "^1.8.1", + "prosemirror-state": "^1.3.1", + "prosemirror-transform": "^1.2.1", + "prosemirror-view": "^1.13.3" + } + }, + "node_modules/prosemirror-trailing-node": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/prosemirror-trailing-node/-/prosemirror-trailing-node-3.0.0.tgz", + "integrity": "sha512-xiun5/3q0w5eRnGYfNlW1uU9W6x5MoFKWwq/0TIRgt09lv7Hcser2QYV8t4muXbEr+Fwo0geYn79Xs4GKywrRQ==", + "dependencies": { + "@remirror/core-constants": "3.0.0", + "escape-string-regexp": "^4.0.0" + }, + "peerDependencies": { + "prosemirror-model": "^1.22.1", + "prosemirror-state": "^1.4.2", + "prosemirror-view": "^1.33.8" + } + }, + "node_modules/prosemirror-transform": { + "version": "1.10.0", + "resolved": "https://registry.npmjs.org/prosemirror-transform/-/prosemirror-transform-1.10.0.tgz", + "integrity": "sha512-9UOgFSgN6Gj2ekQH5CTDJ8Rp/fnKR2IkYfGdzzp5zQMFsS4zDllLVx/+jGcX86YlACpG7UR5fwAXiWzxqWtBTg==", + "dependencies": { + "prosemirror-model": "^1.21.0" + } + }, + "node_modules/prosemirror-view": { + "version": "1.34.3", + "resolved": "https://registry.npmjs.org/prosemirror-view/-/prosemirror-view-1.34.3.tgz", + "integrity": "sha512-mKZ54PrX19sSaQye+sef+YjBbNu2voNwLS1ivb6aD2IRmxRGW64HU9B644+7OfJStGLyxvOreKqEgfvXa91WIA==", + "dependencies": { + "prosemirror-model": "^1.20.0", + "prosemirror-state": "^1.0.0", + "prosemirror-transform": "^1.1.0" + } + }, + "node_modules/pseudomap": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/pseudomap/-/pseudomap-1.0.2.tgz", + "integrity": "sha512-b/YwNhb8lk1Zz2+bXXpS/LK9OisiZZ1SNsSLxN1x2OXVEhW2Ckr/7mWE5vrC1ZTiJlD9g19jWszTmJsB+oEpFQ==", + "dev": true + }, + "node_modules/pump": { + "version": "3.0.2", + "resolved": "https://registry.npmjs.org/pump/-/pump-3.0.2.tgz", + "integrity": "sha512-tUPXtzlGM8FE3P0ZL6DVs/3P58k9nk8/jZeQCurTJylQA8qFYzHFfhBJkuqyE0FifOsQ0uKWekiZ5g8wtr28cw==", + "dev": true, + "dependencies": { + "end-of-stream": "^1.1.0", + "once": "^1.3.1" + } + }, + "node_modules/punycode.js": { + "version": "2.3.1", + "resolved": "https://registry.npmjs.org/punycode.js/-/punycode.js-2.3.1.tgz", + "integrity": "sha512-uxFIHU0YlHYhDQtV4R9J6a52SLx28BCjT+4ieh7IGbgwVJWO+km431c4yRlREUAsAmt/uMjQUyQHNEPf0M39CA==", + "engines": { + "node": ">=6" + } + }, + "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==", + "dev": true, + "funding": [ + { + "type": "github", + "url": "https://github.com/sponsors/feross" + }, + { + "type": "patreon", + "url": "https://www.patreon.com/feross" + }, + { + "type": "consulting", + "url": "https://feross.org/support" + } + ] + }, + "node_modules/quick-lru": { + "version": "5.1.1", + "resolved": "https://registry.npmjs.org/quick-lru/-/quick-lru-5.1.1.tgz", + "integrity": "sha512-WuyALRjWPDGtt/wzJiadO5AXY+8hZ80hVpe6MyivgraREW751X3SbhRvG3eLKOYN+8VEvqLcf3wdnt44Z4S4SA==", + "dev": true, + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/react": { + "version": "18.3.1", + "resolved": "https://registry.npmjs.org/react/-/react-18.3.1.tgz", + "integrity": "sha512-wS+hAgJShR0KhEvPJArfuPVN1+Hz1t0Y6n5jLrGQbkb4urgPE/0Rve+1kMB1v/oWgHgm4WIcV+i7F2pTVj+2iQ==", + "dependencies": { + "loose-envify": "^1.1.0" + }, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/react-dom": { + "version": "18.3.1", + "resolved": "https://registry.npmjs.org/react-dom/-/react-dom-18.3.1.tgz", + "integrity": "sha512-5m4nQKp+rZRb09LNH59GM4BxTh9251/ylbKIbpe7TpGxfJ+9kv6BLkLBXIjjspbgbnIBNqlI23tRnTWT0snUIw==", + "dependencies": { + "loose-envify": "^1.1.0", + "scheduler": "^0.23.2" + }, + "peerDependencies": { + "react": "^18.3.1" + } + }, + "node_modules/react-error-boundary": { + "version": "4.0.13", + "resolved": "https://registry.npmjs.org/react-error-boundary/-/react-error-boundary-4.0.13.tgz", + "integrity": "sha512-b6PwbdSv8XeOSYvjt8LpgpKrZ0yGdtZokYwkwV2wlcZbxgopHX/hgPl5VgpnoVOWd868n1hktM8Qm4b+02MiLQ==", + "dependencies": { + "@babel/runtime": "^7.12.5" + }, + "peerDependencies": { + "react": ">=16.13.1" + } + }, + "node_modules/react-hook-form": { + "version": "7.53.0", + "resolved": "https://registry.npmjs.org/react-hook-form/-/react-hook-form-7.53.0.tgz", + "integrity": "sha512-M1n3HhqCww6S2hxLxciEXy2oISPnAzxY7gvwVPrtlczTM/1dDadXgUxDpHMrMTblDOcm/AXtXxHwZ3jpg1mqKQ==", + "engines": { + "node": ">=18.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/react-hook-form" + }, + "peerDependencies": { + "react": "^16.8.0 || ^17 || ^18 || ^19" + } + }, + "node_modules/react-intersection-observer": { + "version": "9.13.1", + "resolved": "https://registry.npmjs.org/react-intersection-observer/-/react-intersection-observer-9.13.1.tgz", + "integrity": "sha512-tSzDaTy0qwNPLJHg8XZhlyHTgGW6drFKTtvjdL+p6um12rcnp8Z5XstE+QNBJ7c64n5o0Lj4ilUleA41bmDoMw==", + "peerDependencies": { + "react": "^15.0.0 || ^16.0.0 || ^17.0.0 || ^18.0.0 || ^19.0.0", + "react-dom": "^15.0.0 || ^16.0.0 || ^17.0.0 || ^18.0.0 || ^19.0.0" + }, + "peerDependenciesMeta": { + "react-dom": { + "optional": true + } + } + }, + "node_modules/react-is": { + "version": "18.3.1", + "resolved": "https://registry.npmjs.org/react-is/-/react-is-18.3.1.tgz", + "integrity": "sha512-/LLMVyas0ljjAtoYiPqYiL8VWXzUUdThrmU5+n20DZv+a+ClRoevUzw5JxU+Ieh5/c87ytoTBV9G1FiKfNJdmg==" + }, + "node_modules/react-markdown": { + "version": "9.0.1", + "resolved": "https://registry.npmjs.org/react-markdown/-/react-markdown-9.0.1.tgz", + "integrity": "sha512-186Gw/vF1uRkydbsOIkcGXw7aHq0sZOCRFFjGrr7b9+nVZg4UfA4enXCaxm4fUzecU38sWfrNDitGhshuU7rdg==", + "dependencies": { + "@types/hast": "^3.0.0", + "devlop": "^1.0.0", + "hast-util-to-jsx-runtime": "^2.0.0", + "html-url-attributes": "^3.0.0", + "mdast-util-to-hast": "^13.0.0", + "remark-parse": "^11.0.0", + "remark-rehype": "^11.0.0", + "unified": "^11.0.0", + "unist-util-visit": "^5.0.0", + "vfile": "^6.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/unified" + }, + "peerDependencies": { + "@types/react": ">=18", + "react": ">=18" + } + }, + "node_modules/react-redux": { + "version": "8.1.3", + "resolved": "https://registry.npmjs.org/react-redux/-/react-redux-8.1.3.tgz", + "integrity": "sha512-n0ZrutD7DaX/j9VscF+uTALI3oUPa/pO4Z3soOBIjuRn/FzVu6aehhysxZCLi6y7duMf52WNZGMl7CtuK5EnRw==", + "dependencies": { + "@babel/runtime": "^7.12.1", + "@types/hoist-non-react-statics": "^3.3.1", + "@types/use-sync-external-store": "^0.0.3", + "hoist-non-react-statics": "^3.3.2", + "react-is": "^18.0.0", + "use-sync-external-store": "^1.0.0" + }, + "peerDependencies": { + "@types/react": "^16.8 || ^17.0 || ^18.0", + "@types/react-dom": "^16.8 || ^17.0 || ^18.0", + "react": "^16.8 || ^17.0 || ^18.0", + "react-dom": "^16.8 || ^17.0 || ^18.0", + "react-native": ">=0.59", + "redux": "^4 || ^5.0.0-beta.0" + }, + "peerDependenciesMeta": { + "@types/react": { + "optional": true + }, + "@types/react-dom": { + "optional": true + }, + "react-dom": { + "optional": true + }, + "react-native": { + "optional": true + }, + "redux": { + "optional": true + } + } + }, + "node_modules/react-redux/node_modules/@types/use-sync-external-store": { + "version": "0.0.3", + "resolved": "https://registry.npmjs.org/@types/use-sync-external-store/-/use-sync-external-store-0.0.3.tgz", + "integrity": "sha512-EwmlvuaxPNej9+T4v5AuBPJa2x2UOJVdjCtDHgcDqitUeOtjnJKJ+apYjVcAoBEMjKW1VVFGZLUb5+qqa09XFA==" + }, + "node_modules/react-remark": { + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/react-remark/-/react-remark-2.1.0.tgz", + "integrity": "sha512-7dEPxRGQ23sOdvteuRGaQAs9cEOH/BOeCN4CqsJdk3laUDIDYRCWnM6a3z92PzXHUuxIRLXQNZx7SiO0ijUcbw==", + "dependencies": { + "rehype-react": "^6.0.0", + "remark-parse": "^9.0.0", + "remark-rehype": "^8.0.0", + "unified": "^9.0.0" + }, + "engines": { + "node": ">=10" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/unified" + }, + "peerDependencies": { + "react": ">=16.8" + } + }, + "node_modules/react-remark/node_modules/@types/mdast": { + "version": "3.0.15", + "resolved": "https://registry.npmjs.org/@types/mdast/-/mdast-3.0.15.tgz", + "integrity": "sha512-LnwD+mUEfxWMa1QpDraczIn6k0Ee3SMicuYSSzS6ZYl2gKS09EClnJYGd8Du6rfc5r/GZEk5o1mRb8TaTj03sQ==", + "dependencies": { + "@types/unist": "^2" + } + }, + "node_modules/react-remark/node_modules/@types/unist": { + "version": "2.0.11", + "resolved": "https://registry.npmjs.org/@types/unist/-/unist-2.0.11.tgz", + "integrity": "sha512-CmBKiL6NNo/OqgmMn95Fk9Whlp2mtvIv+KNpQKN2F4SjvrEesubTRWGYSg+BnWZOnlCaSTU1sMpsBOzgbYhnsA==" + }, + "node_modules/react-remark/node_modules/bail": { + "version": "1.0.5", + "resolved": "https://registry.npmjs.org/bail/-/bail-1.0.5.tgz", + "integrity": "sha512-xFbRxM1tahm08yHBP16MMjVUAvDaBMD38zsM9EMAUN61omwLmKlOpB/Zku5QkjZ8TZ4vn53pj+t518cH0S03RQ==", + "funding": { + "type": "github", + "url": "https://github.com/sponsors/wooorm" + } + }, + "node_modules/react-remark/node_modules/character-entities": { + "version": "1.2.4", + "resolved": "https://registry.npmjs.org/character-entities/-/character-entities-1.2.4.tgz", + "integrity": "sha512-iBMyeEHxfVnIakwOuDXpVkc54HijNgCyQB2w0VfGQThle6NXn50zU6V/u+LDhxHcDUPojn6Kpga3PTAD8W1bQw==", + "funding": { + "type": "github", + "url": "https://github.com/sponsors/wooorm" + } + }, + "node_modules/react-remark/node_modules/character-entities-legacy": { + "version": "1.1.4", + "resolved": "https://registry.npmjs.org/character-entities-legacy/-/character-entities-legacy-1.1.4.tgz", + "integrity": "sha512-3Xnr+7ZFS1uxeiUDvV02wQ+QDbc55o97tIV5zHScSPJpcLm/r0DFPcoY3tYRp+VZukxuMeKgXYmsXQHO05zQeA==", + "funding": { + "type": "github", + "url": "https://github.com/sponsors/wooorm" + } + }, + "node_modules/react-remark/node_modules/character-reference-invalid": { + "version": "1.1.4", + "resolved": "https://registry.npmjs.org/character-reference-invalid/-/character-reference-invalid-1.1.4.tgz", + "integrity": "sha512-mKKUkUbhPpQlCOfIuZkvSEgktjPFIsZKRRbC6KWVEMvlzblj3i3asQv5ODsrwt0N3pHAEvjP8KTQPHkp0+6jOg==", + "funding": { + "type": "github", + "url": "https://github.com/sponsors/wooorm" + } + }, + "node_modules/react-remark/node_modules/is-alphabetical": { + "version": "1.0.4", + "resolved": "https://registry.npmjs.org/is-alphabetical/-/is-alphabetical-1.0.4.tgz", + "integrity": "sha512-DwzsA04LQ10FHTZuL0/grVDk4rFoVH1pjAToYwBrHSxcrBIGQuXrQMtD5U1b0U2XVgKZCTLLP8u2Qxqhy3l2Vg==", + "funding": { + "type": "github", + "url": "https://github.com/sponsors/wooorm" + } + }, + "node_modules/react-remark/node_modules/is-alphanumerical": { + "version": "1.0.4", + "resolved": "https://registry.npmjs.org/is-alphanumerical/-/is-alphanumerical-1.0.4.tgz", + "integrity": "sha512-UzoZUr+XfVz3t3v4KyGEniVL9BDRoQtY7tOyrRybkVNjDFWyo1yhXNGrrBTQxp3ib9BLAWs7k2YKBQsFRkZG9A==", + "dependencies": { + "is-alphabetical": "^1.0.0", + "is-decimal": "^1.0.0" + }, + "funding": { + "type": "github", + "url": "https://github.com/sponsors/wooorm" + } + }, + "node_modules/react-remark/node_modules/is-decimal": { + "version": "1.0.4", + "resolved": "https://registry.npmjs.org/is-decimal/-/is-decimal-1.0.4.tgz", + "integrity": "sha512-RGdriMmQQvZ2aqaQq3awNA6dCGtKpiDFcOzrTWrDAT2MiWrKQVPmxLGHl7Y2nNu6led0kEyoX0enY0qXYsv9zw==", + "funding": { + "type": "github", + "url": "https://github.com/sponsors/wooorm" + } + }, + "node_modules/react-remark/node_modules/is-hexadecimal": { + "version": "1.0.4", + "resolved": "https://registry.npmjs.org/is-hexadecimal/-/is-hexadecimal-1.0.4.tgz", + "integrity": "sha512-gyPJuv83bHMpocVYoqof5VDiZveEoGoFL8m3BXNb2VW8Xs+rz9kqO8LOQ5DH6EsuvilT1ApazU0pyl+ytbPtlw==", + "funding": { + "type": "github", + "url": "https://github.com/sponsors/wooorm" + } + }, + "node_modules/react-remark/node_modules/is-plain-obj": { + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/is-plain-obj/-/is-plain-obj-2.1.0.tgz", + "integrity": "sha512-YWnfyRwxL/+SsrWYfOpUtz5b3YD+nyfkHvjbcanzk8zgyO4ASD67uVMRt8k5bM4lLMDnXfriRhOpemw+NfT1eA==", + "engines": { + "node": ">=8" + } + }, + "node_modules/react-remark/node_modules/mdast-util-from-markdown": { + "version": "0.8.5", + "resolved": "https://registry.npmjs.org/mdast-util-from-markdown/-/mdast-util-from-markdown-0.8.5.tgz", + "integrity": "sha512-2hkTXtYYnr+NubD/g6KGBS/0mFmBcifAsI0yIWRiRo0PjVs6SSOSOdtzbp6kSGnShDN6G5aWZpKQ2lWRy27mWQ==", + "dependencies": { + "@types/mdast": "^3.0.0", + "mdast-util-to-string": "^2.0.0", + "micromark": "~2.11.0", + "parse-entities": "^2.0.0", + "unist-util-stringify-position": "^2.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/unified" + } + }, + "node_modules/react-remark/node_modules/mdast-util-to-hast": { + "version": "10.2.0", + "resolved": "https://registry.npmjs.org/mdast-util-to-hast/-/mdast-util-to-hast-10.2.0.tgz", + "integrity": "sha512-JoPBfJ3gBnHZ18icCwHR50orC9kNH81tiR1gs01D8Q5YpV6adHNO9nKNuFBCJQ941/32PT1a63UF/DitmS3amQ==", + "dependencies": { + "@types/mdast": "^3.0.0", + "@types/unist": "^2.0.0", + "mdast-util-definitions": "^4.0.0", + "mdurl": "^1.0.0", + "unist-builder": "^2.0.0", + "unist-util-generated": "^1.0.0", + "unist-util-position": "^3.0.0", + "unist-util-visit": "^2.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/unified" + } + }, + "node_modules/react-remark/node_modules/mdast-util-to-string": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/mdast-util-to-string/-/mdast-util-to-string-2.0.0.tgz", + "integrity": "sha512-AW4DRS3QbBayY/jJmD8437V1Gombjf8RSOUCMFBuo5iHi58AGEgVCKQ+ezHkZZDpAQS75hcBMpLqjpJTjtUL7w==", + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/unified" + } + }, + "node_modules/react-remark/node_modules/mdurl": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/mdurl/-/mdurl-1.0.1.tgz", + "integrity": "sha512-/sKlQJCBYVY9Ers9hqzKou4H6V5UWc/M59TH2dvkt+84itfnq7uFOMLpOiOS4ujvHP4etln18fmIxA5R5fll0g==" + }, + "node_modules/react-remark/node_modules/micromark": { + "version": "2.11.4", + "resolved": "https://registry.npmjs.org/micromark/-/micromark-2.11.4.tgz", + "integrity": "sha512-+WoovN/ppKolQOFIAajxi7Lu9kInbPxFuTBVEavFcL8eAfVstoc5MocPmqBeAdBOJV00uaVjegzH4+MA0DN/uA==", + "funding": [ + { + "type": "GitHub Sponsors", + "url": "https://github.com/sponsors/unifiedjs" + }, + { + "type": "OpenCollective", + "url": "https://opencollective.com/unified" + } + ], + "dependencies": { + "debug": "^4.0.0", + "parse-entities": "^2.0.0" + } + }, + "node_modules/react-remark/node_modules/parse-entities": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/parse-entities/-/parse-entities-2.0.0.tgz", + "integrity": "sha512-kkywGpCcRYhqQIchaWqZ875wzpS/bMKhz5HnN3p7wveJTkTtyAB/AlnS0f8DFSqYW1T82t6yEAkEcB+A1I3MbQ==", + "dependencies": { + "character-entities": "^1.0.0", + "character-entities-legacy": "^1.0.0", + "character-reference-invalid": "^1.0.0", + "is-alphanumerical": "^1.0.0", + "is-decimal": "^1.0.0", + "is-hexadecimal": "^1.0.0" + }, + "funding": { + "type": "github", + "url": "https://github.com/sponsors/wooorm" + } + }, + "node_modules/react-remark/node_modules/remark-parse": { + "version": "9.0.0", + "resolved": "https://registry.npmjs.org/remark-parse/-/remark-parse-9.0.0.tgz", + "integrity": "sha512-geKatMwSzEXKHuzBNU1z676sGcDcFoChMK38TgdHJNAYfFtsfHDQG7MoJAjs6sgYMqyLduCYWDIWZIxiPeafEw==", + "dependencies": { + "mdast-util-from-markdown": "^0.8.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/unified" + } + }, + "node_modules/react-remark/node_modules/remark-rehype": { + "version": "8.1.0", + "resolved": "https://registry.npmjs.org/remark-rehype/-/remark-rehype-8.1.0.tgz", + "integrity": "sha512-EbCu9kHgAxKmW1yEYjx3QafMyGY3q8noUbNUI5xyKbaFP89wbhDrKxyIQNukNYthzjNHZu6J7hwFg7hRm1svYA==", + "dependencies": { + "mdast-util-to-hast": "^10.2.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/unified" + } + }, + "node_modules/react-remark/node_modules/trough": { + "version": "1.0.5", + "resolved": "https://registry.npmjs.org/trough/-/trough-1.0.5.tgz", + "integrity": "sha512-rvuRbTarPXmMb79SmzEp8aqXNKcK+y0XaB298IXueQ8I2PsrATcPBCSPyK/dDNa2iWOhKlfNnOjdAOTBU/nkFA==", + "funding": { + "type": "github", + "url": "https://github.com/sponsors/wooorm" + } + }, + "node_modules/react-remark/node_modules/unified": { + "version": "9.2.2", + "resolved": "https://registry.npmjs.org/unified/-/unified-9.2.2.tgz", + "integrity": "sha512-Sg7j110mtefBD+qunSLO1lqOEKdrwBFBrR6Qd8f4uwkhWNlbkaqwHse6e7QvD3AP/MNoJdEDLaf8OxYyoWgorQ==", + "dependencies": { + "bail": "^1.0.0", + "extend": "^3.0.0", + "is-buffer": "^2.0.0", + "is-plain-obj": "^2.0.0", + "trough": "^1.0.0", + "vfile": "^4.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/unified" + } + }, + "node_modules/react-remark/node_modules/unist-util-is": { + "version": "4.1.0", + "resolved": "https://registry.npmjs.org/unist-util-is/-/unist-util-is-4.1.0.tgz", + "integrity": "sha512-ZOQSsnce92GrxSqlnEEseX0gi7GH9zTJZ0p9dtu87WRb/37mMPO2Ilx1s/t9vBHrFhbgweUwb+t7cIn5dxPhZg==", + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/unified" + } + }, + "node_modules/react-remark/node_modules/unist-util-position": { + "version": "3.1.0", + "resolved": "https://registry.npmjs.org/unist-util-position/-/unist-util-position-3.1.0.tgz", + "integrity": "sha512-w+PkwCbYSFw8vpgWD0v7zRCl1FpY3fjDSQ3/N/wNd9Ffa4gPi8+4keqt99N3XW6F99t/mUzp2xAhNmfKWp95QA==", + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/unified" + } + }, + "node_modules/react-remark/node_modules/unist-util-stringify-position": { + "version": "2.0.3", + "resolved": "https://registry.npmjs.org/unist-util-stringify-position/-/unist-util-stringify-position-2.0.3.tgz", + "integrity": "sha512-3faScn5I+hy9VleOq/qNbAd6pAx7iH5jYBMS9I1HgQVijz/4mv5Bvw5iw1sC/90CODiKo81G/ps8AJrISn687g==", + "dependencies": { + "@types/unist": "^2.0.2" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/unified" + } + }, + "node_modules/react-remark/node_modules/unist-util-visit": { + "version": "2.0.3", + "resolved": "https://registry.npmjs.org/unist-util-visit/-/unist-util-visit-2.0.3.tgz", + "integrity": "sha512-iJ4/RczbJMkD0712mGktuGpm/U4By4FfDonL7N/9tATGIF4imikjOuagyMY53tnZq3NP6BcmlrHhEKAfGWjh7Q==", + "dependencies": { + "@types/unist": "^2.0.0", + "unist-util-is": "^4.0.0", + "unist-util-visit-parents": "^3.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/unified" + } + }, + "node_modules/react-remark/node_modules/unist-util-visit-parents": { + "version": "3.1.1", + "resolved": "https://registry.npmjs.org/unist-util-visit-parents/-/unist-util-visit-parents-3.1.1.tgz", + "integrity": "sha512-1KROIZWo6bcMrZEwiH2UrXDyalAa0uqzWCxCJj6lPOvTve2WkfgCytoDTPaMnodXh1WrXOq0haVYHj99ynJlsg==", + "dependencies": { + "@types/unist": "^2.0.0", + "unist-util-is": "^4.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/unified" + } + }, + "node_modules/react-remark/node_modules/vfile": { + "version": "4.2.1", + "resolved": "https://registry.npmjs.org/vfile/-/vfile-4.2.1.tgz", + "integrity": "sha512-O6AE4OskCG5S1emQ/4gl8zK586RqA3srz3nfK/Viy0UPToBc5Trp9BVFb1u0CjsKrAWwnpr4ifM/KBXPWwJbCA==", + "dependencies": { + "@types/unist": "^2.0.0", + "is-buffer": "^2.0.0", + "unist-util-stringify-position": "^2.0.0", + "vfile-message": "^2.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/unified" + } + }, + "node_modules/react-remark/node_modules/vfile-message": { + "version": "2.0.4", + "resolved": "https://registry.npmjs.org/vfile-message/-/vfile-message-2.0.4.tgz", + "integrity": "sha512-DjssxRGkMvifUOJre00juHoP9DPWuzjxKuMDrhNbk2TdaYYBNMStsNhEOt3idrtI12VQYM/1+iM0KOzXi4pxwQ==", + "dependencies": { + "@types/unist": "^2.0.0", + "unist-util-stringify-position": "^2.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/unified" + } + }, + "node_modules/react-router": { + "version": "6.26.2", + "resolved": "https://registry.npmjs.org/react-router/-/react-router-6.26.2.tgz", + "integrity": "sha512-tvN1iuT03kHgOFnLPfLJ8V95eijteveqdOSk+srqfePtQvqCExB8eHOYnlilbOcyJyKnYkr1vJvf7YqotAJu1A==", + "dependencies": { + "@remix-run/router": "1.19.2" + }, + "engines": { + "node": ">=14.0.0" + }, + "peerDependencies": { + "react": ">=16.8" + } + }, + "node_modules/react-router-dom": { + "version": "6.26.2", + "resolved": "https://registry.npmjs.org/react-router-dom/-/react-router-dom-6.26.2.tgz", + "integrity": "sha512-z7YkaEW0Dy35T3/QKPYB1LjMK2R1fxnHO8kWpUMTBdfVzZrWOiY9a7CtN8HqdWtDUWd5FY6Dl8HFsqVwH4uOtQ==", + "dependencies": { + "@remix-run/router": "1.19.2", + "react-router": "6.26.2" + }, + "engines": { + "node": ">=14.0.0" + }, + "peerDependencies": { + "react": ">=16.8", + "react-dom": ">=16.8" + } + }, + "node_modules/react-switch": { + "version": "7.0.0", + "resolved": "https://registry.npmjs.org/react-switch/-/react-switch-7.0.0.tgz", + "integrity": "sha512-KkDeW+cozZXI6knDPyUt3KBN1rmhoVYgAdCJqAh7st7tk8YE6N0iR89zjCWO8T8dUTeJGTR0KU+5CHCRMRffiA==", + "dependencies": { + "prop-types": "^15.7.2" + }, + "peerDependencies": { + "react": "^15.3.0 || ^16.0.0 || ^17.0.0 || ^18.0.0", + "react-dom": "^15.3.0 || ^16.0.0 || ^17.0.0 || ^18.0.0" + } + }, + "node_modules/react-syntax-highlighter": { + "version": "15.5.0", + "resolved": "https://registry.npmjs.org/react-syntax-highlighter/-/react-syntax-highlighter-15.5.0.tgz", + "integrity": "sha512-+zq2myprEnQmH5yw6Gqc8lD55QHnpKaU8TOcFeC/Lg/MQSs8UknEA0JC4nTZGFAXC2J2Hyj/ijJ7NlabyPi2gg==", + "dependencies": { + "@babel/runtime": "^7.3.1", + "highlight.js": "^10.4.1", + "lowlight": "^1.17.0", + "prismjs": "^1.27.0", + "refractor": "^3.6.0" + }, + "peerDependencies": { + "react": ">= 0.14.0" + } + }, + "node_modules/react-tooltip": { + "version": "5.28.0", + "resolved": "https://registry.npmjs.org/react-tooltip/-/react-tooltip-5.28.0.tgz", + "integrity": "sha512-R5cO3JPPXk6FRbBHMO0rI9nkUG/JKfalBSQfZedZYzmqaZQgq7GLzF8vcCWx6IhUCKg0yPqJhXIzmIO5ff15xg==", + "dependencies": { + "@floating-ui/dom": "^1.6.1", + "classnames": "^2.3.0" + }, + "peerDependencies": { + "react": ">=16.14.0", + "react-dom": ">=16.14.0" + } + }, + "node_modules/read-cache": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/read-cache/-/read-cache-1.0.0.tgz", + "integrity": "sha512-Owdv/Ft7IjOgm/i0xvNDZ1LrRANRfew4b2prF3OWMQLxLfu3bS8FVhCsrSCMK4lR56Y9ya+AThoTpDCTxCmpRA==", + "dev": true, + "dependencies": { + "pify": "^2.3.0" + } + }, + "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==", + "dev": true, + "dependencies": { + "inherits": "^2.0.3", + "string_decoder": "^1.1.1", + "util-deprecate": "^1.0.1" + }, + "engines": { + "node": ">= 6" + } + }, + "node_modules/readable-web-to-node-stream": { + "version": "3.0.2", + "resolved": "https://registry.npmjs.org/readable-web-to-node-stream/-/readable-web-to-node-stream-3.0.2.tgz", + "integrity": "sha512-ePeK6cc1EcKLEhJFt/AebMCLL+GgSKhuygrZ/GLaKZYEecIgIECf4UaUuaByiGtzckwR4ain9VzUh95T1exYGw==", + "dev": true, + "dependencies": { + "readable-stream": "^3.6.0" + }, + "engines": { + "node": ">=8" + }, + "funding": { + "type": "github", + "url": "https://github.com/sponsors/Borewit" + } + }, + "node_modules/readdirp": { + "version": "3.6.0", + "resolved": "https://registry.npmjs.org/readdirp/-/readdirp-3.6.0.tgz", + "integrity": "sha512-hOS089on8RduqdbhvQ5Z37A0ESjsqz6qnRcffsMU3495FuTdqSm+7bhJ29JvIOsBDEEnan5DPu9t3To9VRlMzA==", + "dev": true, + "dependencies": { + "picomatch": "^2.2.1" + }, + "engines": { + "node": ">=8.10.0" + } + }, + "node_modules/redux": { + "version": "4.2.1", + "resolved": "https://registry.npmjs.org/redux/-/redux-4.2.1.tgz", + "integrity": "sha512-LAUYz4lc+Do8/g7aeRa8JkyDErK6ekstQaqWQrNRW//MY1TvCEpMtpTWvlQ+FPbWCx+Xixu/6SHt5N0HR+SB4w==", + "dependencies": { + "@babel/runtime": "^7.9.2" + } + }, + "node_modules/redux-persist": { + "version": "6.0.0", + "resolved": "https://registry.npmjs.org/redux-persist/-/redux-persist-6.0.0.tgz", + "integrity": "sha512-71LLMbUq2r02ng2We9S215LtPu3fY0KgaGE0k8WRgl6RkqxtGfl7HUozz1Dftwsb0D/5mZ8dwAaPbtnzfvbEwQ==", + "peerDependencies": { + "redux": ">4.0.0" + } + }, + "node_modules/redux-persist-transform-filter": { + "version": "0.0.22", + "resolved": "https://registry.npmjs.org/redux-persist-transform-filter/-/redux-persist-transform-filter-0.0.22.tgz", + "integrity": "sha512-XtGN7UQ8w7b3qaxQfdYY1UmuYULqIIemD47IWxIyM8AOF48I6C74m9XxA7gQoC2nIi+rz4URi9Mye4fIbHhZPQ==", + "dependencies": { + "lodash": "^4.17.21" + }, + "peerDependencies": { + "redux": ">3.0.0", + "redux-persist": "^3.4.0 || ^4 || ^5 || ^6" + } + }, + "node_modules/redux-thunk": { + "version": "2.4.2", + "resolved": "https://registry.npmjs.org/redux-thunk/-/redux-thunk-2.4.2.tgz", + "integrity": "sha512-+P3TjtnP0k/FEjcBL5FZpoovtvrTNT/UXd4/sluaSyrURlSlhLSzEdfsTBW7WsKB6yPvgd7q/iZPICFjW4o57Q==", + "peerDependencies": { + "redux": "^4" + } + }, + "node_modules/refractor": { + "version": "3.6.0", + "resolved": "https://registry.npmjs.org/refractor/-/refractor-3.6.0.tgz", + "integrity": "sha512-MY9W41IOWxxk31o+YvFCNyNzdkc9M20NoZK5vq6jkv4I/uh2zkWcfudj0Q1fovjUQJrNewS9NMzeTtqPf+n5EA==", + "dependencies": { + "hastscript": "^6.0.0", + "parse-entities": "^2.0.0", + "prismjs": "~1.27.0" + }, + "funding": { + "type": "github", + "url": "https://github.com/sponsors/wooorm" + } + }, + "node_modules/refractor/node_modules/character-entities": { + "version": "1.2.4", + "resolved": "https://registry.npmjs.org/character-entities/-/character-entities-1.2.4.tgz", + "integrity": "sha512-iBMyeEHxfVnIakwOuDXpVkc54HijNgCyQB2w0VfGQThle6NXn50zU6V/u+LDhxHcDUPojn6Kpga3PTAD8W1bQw==", + "funding": { + "type": "github", + "url": "https://github.com/sponsors/wooorm" + } + }, + "node_modules/refractor/node_modules/character-entities-legacy": { + "version": "1.1.4", + "resolved": "https://registry.npmjs.org/character-entities-legacy/-/character-entities-legacy-1.1.4.tgz", + "integrity": "sha512-3Xnr+7ZFS1uxeiUDvV02wQ+QDbc55o97tIV5zHScSPJpcLm/r0DFPcoY3tYRp+VZukxuMeKgXYmsXQHO05zQeA==", + "funding": { + "type": "github", + "url": "https://github.com/sponsors/wooorm" + } + }, + "node_modules/refractor/node_modules/character-reference-invalid": { + "version": "1.1.4", + "resolved": "https://registry.npmjs.org/character-reference-invalid/-/character-reference-invalid-1.1.4.tgz", + "integrity": "sha512-mKKUkUbhPpQlCOfIuZkvSEgktjPFIsZKRRbC6KWVEMvlzblj3i3asQv5ODsrwt0N3pHAEvjP8KTQPHkp0+6jOg==", + "funding": { + "type": "github", + "url": "https://github.com/sponsors/wooorm" + } + }, + "node_modules/refractor/node_modules/is-alphabetical": { + "version": "1.0.4", + "resolved": "https://registry.npmjs.org/is-alphabetical/-/is-alphabetical-1.0.4.tgz", + "integrity": "sha512-DwzsA04LQ10FHTZuL0/grVDk4rFoVH1pjAToYwBrHSxcrBIGQuXrQMtD5U1b0U2XVgKZCTLLP8u2Qxqhy3l2Vg==", + "funding": { + "type": "github", + "url": "https://github.com/sponsors/wooorm" + } + }, + "node_modules/refractor/node_modules/is-alphanumerical": { + "version": "1.0.4", + "resolved": "https://registry.npmjs.org/is-alphanumerical/-/is-alphanumerical-1.0.4.tgz", + "integrity": "sha512-UzoZUr+XfVz3t3v4KyGEniVL9BDRoQtY7tOyrRybkVNjDFWyo1yhXNGrrBTQxp3ib9BLAWs7k2YKBQsFRkZG9A==", + "dependencies": { + "is-alphabetical": "^1.0.0", + "is-decimal": "^1.0.0" + }, + "funding": { + "type": "github", + "url": "https://github.com/sponsors/wooorm" + } + }, + "node_modules/refractor/node_modules/is-decimal": { + "version": "1.0.4", + "resolved": "https://registry.npmjs.org/is-decimal/-/is-decimal-1.0.4.tgz", + "integrity": "sha512-RGdriMmQQvZ2aqaQq3awNA6dCGtKpiDFcOzrTWrDAT2MiWrKQVPmxLGHl7Y2nNu6led0kEyoX0enY0qXYsv9zw==", + "funding": { + "type": "github", + "url": "https://github.com/sponsors/wooorm" + } + }, + "node_modules/refractor/node_modules/is-hexadecimal": { + "version": "1.0.4", + "resolved": "https://registry.npmjs.org/is-hexadecimal/-/is-hexadecimal-1.0.4.tgz", + "integrity": "sha512-gyPJuv83bHMpocVYoqof5VDiZveEoGoFL8m3BXNb2VW8Xs+rz9kqO8LOQ5DH6EsuvilT1ApazU0pyl+ytbPtlw==", + "funding": { + "type": "github", + "url": "https://github.com/sponsors/wooorm" + } + }, + "node_modules/refractor/node_modules/parse-entities": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/parse-entities/-/parse-entities-2.0.0.tgz", + "integrity": "sha512-kkywGpCcRYhqQIchaWqZ875wzpS/bMKhz5HnN3p7wveJTkTtyAB/AlnS0f8DFSqYW1T82t6yEAkEcB+A1I3MbQ==", + "dependencies": { + "character-entities": "^1.0.0", + "character-entities-legacy": "^1.0.0", + "character-reference-invalid": "^1.0.0", + "is-alphanumerical": "^1.0.0", + "is-decimal": "^1.0.0", + "is-hexadecimal": "^1.0.0" + }, + "funding": { + "type": "github", + "url": "https://github.com/sponsors/wooorm" + } + }, + "node_modules/refractor/node_modules/prismjs": { + "version": "1.27.0", + "resolved": "https://registry.npmjs.org/prismjs/-/prismjs-1.27.0.tgz", + "integrity": "sha512-t13BGPUlFDR7wRB5kQDG4jjl7XeuH6jbJGt11JHPL96qwsEHNX2+68tFXqc1/k+/jALsbSWJKUOT/hcYAZ5LkA==", + "engines": { + "node": ">=6" + } + }, + "node_modules/regenerator-runtime": { + "version": "0.14.1", + "resolved": "https://registry.npmjs.org/regenerator-runtime/-/regenerator-runtime-0.14.1.tgz", + "integrity": "sha512-dYnhHh0nJoMfnkZs6GmmhFknAGRrLznOu5nc9ML+EJxGvrx6H7teuevqVqCuPcPK//3eDrrjQhehXVx9cnkGdw==" + }, + "node_modules/rehype-highlight": { + "version": "7.0.0", + "resolved": "https://registry.npmjs.org/rehype-highlight/-/rehype-highlight-7.0.0.tgz", + "integrity": "sha512-QtobgRgYoQaK6p1eSr2SD1i61f7bjF2kZHAQHxeCHAuJf7ZUDMvQ7owDq9YTkmar5m5TSUol+2D3bp3KfJf/oA==", + "dependencies": { + "@types/hast": "^3.0.0", + "hast-util-to-text": "^4.0.0", + "lowlight": "^3.0.0", + "unist-util-visit": "^5.0.0", + "vfile": "^6.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/unified" + } + }, + "node_modules/rehype-highlight/node_modules/highlight.js": { + "version": "11.9.0", + "resolved": "https://registry.npmjs.org/highlight.js/-/highlight.js-11.9.0.tgz", + "integrity": "sha512-fJ7cW7fQGCYAkgv4CPfwFHrfd/cLS4Hau96JuJ+ZTOWhjnhoeN1ub1tFmALm/+lW5z4WCAuAV9bm05AP0mS6Gw==", + "engines": { + "node": ">=12.0.0" + } + }, + "node_modules/rehype-highlight/node_modules/lowlight": { + "version": "3.1.0", + "resolved": "https://registry.npmjs.org/lowlight/-/lowlight-3.1.0.tgz", + "integrity": "sha512-CEbNVoSikAxwDMDPjXlqlFYiZLkDJHwyGu/MfOsJnF3d7f3tds5J3z8s/l9TMXhzfsJCCJEAsD78842mwmg0PQ==", + "dependencies": { + "@types/hast": "^3.0.0", + "devlop": "^1.0.0", + "highlight.js": "~11.9.0" + }, + "funding": { + "type": "github", + "url": "https://github.com/sponsors/wooorm" + } + }, + "node_modules/rehype-katex": { + "version": "7.0.1", + "resolved": "https://registry.npmjs.org/rehype-katex/-/rehype-katex-7.0.1.tgz", + "integrity": "sha512-OiM2wrZ/wuhKkigASodFoo8wimG3H12LWQaH8qSPVJn9apWKFSH3YOCtbKpBorTVw/eI7cuT21XBbvwEswbIOA==", + "dependencies": { + "@types/hast": "^3.0.0", + "@types/katex": "^0.16.0", + "hast-util-from-html-isomorphic": "^2.0.0", + "hast-util-to-text": "^4.0.0", + "katex": "^0.16.0", + "unist-util-visit-parents": "^6.0.0", + "vfile": "^6.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/unified" + } + }, + "node_modules/rehype-react": { + "version": "6.2.1", + "resolved": "https://registry.npmjs.org/rehype-react/-/rehype-react-6.2.1.tgz", + "integrity": "sha512-f9KIrjktvLvmbGc7si25HepocOg4z0MuNOtweigKzBcDjiGSTGhyz6VSgaV5K421Cq1O+z4/oxRJ5G9owo0KVg==", + "dependencies": { + "@mapbox/hast-util-table-cell-style": "^0.2.0", + "hast-to-hyperscript": "^9.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/unified" + } + }, + "node_modules/rehype-wrap-all": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/rehype-wrap-all/-/rehype-wrap-all-1.1.0.tgz", + "integrity": "sha512-AFiCZqyJXnD2NF4ZjuVpW9aZuD+bz5YdkIF+bL66jmExdh6efgb9LAtUx+Rw1puMwRPGPqBXXYl9bEzi59Cq8g==", + "dependencies": { + "hast-util-parse-selector": "^2.2.4", + "hast-util-select": "^4.0.0", + "unist-util-visit": "^2.0.3" + }, + "engines": { + "node": ">=8.0" + } + }, + "node_modules/rehype-wrap-all/node_modules/@types/unist": { + "version": "2.0.11", + "resolved": "https://registry.npmjs.org/@types/unist/-/unist-2.0.11.tgz", + "integrity": "sha512-CmBKiL6NNo/OqgmMn95Fk9Whlp2mtvIv+KNpQKN2F4SjvrEesubTRWGYSg+BnWZOnlCaSTU1sMpsBOzgbYhnsA==" + }, + "node_modules/rehype-wrap-all/node_modules/unist-util-is": { + "version": "4.1.0", + "resolved": "https://registry.npmjs.org/unist-util-is/-/unist-util-is-4.1.0.tgz", + "integrity": "sha512-ZOQSsnce92GrxSqlnEEseX0gi7GH9zTJZ0p9dtu87WRb/37mMPO2Ilx1s/t9vBHrFhbgweUwb+t7cIn5dxPhZg==", + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/unified" + } + }, + "node_modules/rehype-wrap-all/node_modules/unist-util-visit": { + "version": "2.0.3", + "resolved": "https://registry.npmjs.org/unist-util-visit/-/unist-util-visit-2.0.3.tgz", + "integrity": "sha512-iJ4/RczbJMkD0712mGktuGpm/U4By4FfDonL7N/9tATGIF4imikjOuagyMY53tnZq3NP6BcmlrHhEKAfGWjh7Q==", + "dependencies": { + "@types/unist": "^2.0.0", + "unist-util-is": "^4.0.0", + "unist-util-visit-parents": "^3.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/unified" + } + }, + "node_modules/rehype-wrap-all/node_modules/unist-util-visit-parents": { + "version": "3.1.1", + "resolved": "https://registry.npmjs.org/unist-util-visit-parents/-/unist-util-visit-parents-3.1.1.tgz", + "integrity": "sha512-1KROIZWo6bcMrZEwiH2UrXDyalAa0uqzWCxCJj6lPOvTve2WkfgCytoDTPaMnodXh1WrXOq0haVYHj99ynJlsg==", + "dependencies": { + "@types/unist": "^2.0.0", + "unist-util-is": "^4.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/unified" + } + }, + "node_modules/remark-math": { + "version": "6.0.0", + "resolved": "https://registry.npmjs.org/remark-math/-/remark-math-6.0.0.tgz", + "integrity": "sha512-MMqgnP74Igy+S3WwnhQ7kqGlEerTETXMvJhrUzDikVZ2/uogJCb+WHUg97hK9/jcfc0dkD73s3LN8zU49cTEtA==", + "dependencies": { + "@types/mdast": "^4.0.0", + "mdast-util-math": "^3.0.0", + "micromark-extension-math": "^3.0.0", + "unified": "^11.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/unified" + } + }, + "node_modules/remark-parse": { + "version": "11.0.0", + "resolved": "https://registry.npmjs.org/remark-parse/-/remark-parse-11.0.0.tgz", + "integrity": "sha512-FCxlKLNGknS5ba/1lmpYijMUzX2esxW5xQqjWxw2eHFfS2MSdaHVINFmhjo+qN1WhZhNimq0dZATN9pH0IDrpA==", + "dependencies": { + "@types/mdast": "^4.0.0", + "mdast-util-from-markdown": "^2.0.0", + "micromark-util-types": "^2.0.0", + "unified": "^11.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/unified" + } + }, + "node_modules/remark-rehype": { + "version": "11.1.1", + "resolved": "https://registry.npmjs.org/remark-rehype/-/remark-rehype-11.1.1.tgz", + "integrity": "sha512-g/osARvjkBXb6Wo0XvAeXQohVta8i84ACbenPpoSsxTOQH/Ae0/RGP4WZgnMH5pMLpsj4FG7OHmcIcXxpza8eQ==", + "dependencies": { + "@types/hast": "^3.0.0", + "@types/mdast": "^4.0.0", + "mdast-util-to-hast": "^13.0.0", + "unified": "^11.0.0", + "vfile": "^6.0.0" + }, + "funding": { + "type": "opencollective", + "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": "5.1.1", + "resolved": "https://registry.npmjs.org/reselect/-/reselect-5.1.1.tgz", + "integrity": "sha512-K/BG6eIky/SBpzfHZv/dd+9JBFiS4SWV7FIujVyJRux6e45+73RaUHXLmIR1f7WOMaQ0U1km6qwklRQxpJJY0w==" + }, + "node_modules/resolve": { + "version": "1.22.8", + "resolved": "https://registry.npmjs.org/resolve/-/resolve-1.22.8.tgz", + "integrity": "sha512-oKWePCxqpd6FlLvGV1VU0x7bkPmmCNolxzjMf4NczoDnQcIWrAF+cPtZn5i6n+RfD2d9i0tzpKnG6Yk168yIyw==", + "dev": true, + "dependencies": { + "is-core-module": "^2.13.0", + "path-parse": "^1.0.7", + "supports-preserve-symlinks-flag": "^1.0.0" + }, + "bin": { + "resolve": "bin/resolve" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/resolve-alpn": { + "version": "1.2.1", + "resolved": "https://registry.npmjs.org/resolve-alpn/-/resolve-alpn-1.2.1.tgz", + "integrity": "sha512-0a1F4l73/ZFZOakJnQ3FvkJ2+gSTQWz/r2KE5OdDY0TxPm5h4GkqkWWfM47T7HsbnOtcJVEF4epCVy6u7Q3K+g==", + "dev": true + }, + "node_modules/responselike": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/responselike/-/responselike-2.0.1.tgz", + "integrity": "sha512-4gl03wn3hj1HP3yzgdI7d3lCkF95F21Pz4BPGvKHinyQzALR5CapwC8yIi0Rh58DEMQ/SguC03wFj2k0M/mHhw==", + "dev": true, + "dependencies": { + "lowercase-keys": "^2.0.0" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/reusify": { + "version": "1.0.4", + "resolved": "https://registry.npmjs.org/reusify/-/reusify-1.0.4.tgz", + "integrity": "sha512-U9nH88a3fc/ekCF1l0/UP1IosiuIjyTh7hBvXVMHYgVcfGvt897Xguj2UOLDeI5BG2m7/uwyaLVT6fbtCwTyzw==", + "dev": true, + "engines": { + "iojs": ">=1.0.0", + "node": ">=0.10.0" + } + }, + "node_modules/rollup": { + "version": "3.29.5", + "resolved": "https://registry.npmjs.org/rollup/-/rollup-3.29.5.tgz", + "integrity": "sha512-GVsDdsbJzzy4S/v3dqWPJ7EfvZJfCHiDqe80IyrF59LYuP+e6U1LJoUqeuqRbwAWoMNoXivMNeNAOf5E22VA1w==", + "dev": true, + "bin": { + "rollup": "dist/bin/rollup" + }, + "engines": { + "node": ">=14.18.0", + "npm": ">=8.0.0" + }, + "optionalDependencies": { + "fsevents": "~2.3.2" + } + }, + "node_modules/rope-sequence": { + "version": "1.3.4", + "resolved": "https://registry.npmjs.org/rope-sequence/-/rope-sequence-1.3.4.tgz", + "integrity": "sha512-UT5EDe2cu2E/6O4igUr5PSFs23nvvukicWHx6GnOPlHAiiYbzNuCRQCuiUdHJQcqKalLKlrYJnjY0ySGsXNQXQ==" + }, + "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==", + "dev": true, + "funding": [ + { + "type": "github", + "url": "https://github.com/sponsors/feross" + }, + { + "type": "patreon", + "url": "https://www.patreon.com/feross" + }, + { + "type": "consulting", + "url": "https://feross.org/support" + } + ], + "dependencies": { + "queue-microtask": "^1.2.2" + } + }, + "node_modules/safe-buffer": { + "version": "5.2.1", + "resolved": "https://registry.npmjs.org/safe-buffer/-/safe-buffer-5.2.1.tgz", + "integrity": "sha512-rp3So07KcdmmKbGvgaNxQSJr7bGVSVk5S9Eq1F+ppbRo70+YeaDxkw5Dd8NPN+GD6bjnYm2VuPuCXmpuYvmCXQ==", + "dev": true, + "funding": [ + { + "type": "github", + "url": "https://github.com/sponsors/feross" + }, + { + "type": "patreon", + "url": "https://www.patreon.com/feross" + }, + { + "type": "consulting", + "url": "https://feross.org/support" + } + ] + }, + "node_modules/scheduler": { + "version": "0.23.2", + "resolved": "https://registry.npmjs.org/scheduler/-/scheduler-0.23.2.tgz", + "integrity": "sha512-UOShsPwz7NrMUqhR6t0hWjFduvOzbtv7toDH1/hIrfRNIDBnnBWd0CwJTGvTpngVlmwGCdP9/Zl/tVrDqcuYzQ==", + "dependencies": { + "loose-envify": "^1.1.0" + } + }, + "node_modules/semver": { + "version": "7.6.3", + "resolved": "https://registry.npmjs.org/semver/-/semver-7.6.3.tgz", + "integrity": "sha512-oVekP1cKtI+CTDvHWYFUcMtsK/00wmAEfyqKfNdARm8u1wNVhSgaX7A8d4UuIlUI5e84iEwOhs7ZPYRmzU9U6A==", + "dev": true, + "bin": { + "semver": "bin/semver.js" + }, + "engines": { + "node": ">=10" + } + }, + "node_modules/semver-regex": { + "version": "4.0.5", + "resolved": "https://registry.npmjs.org/semver-regex/-/semver-regex-4.0.5.tgz", + "integrity": "sha512-hunMQrEy1T6Jr2uEVjrAIqjwWcQTgOAcIM52C8MY1EZSD3DDNft04XzvYKPqjED65bNVVko0YI38nYeEHCX3yw==", + "dev": true, + "engines": { + "node": ">=12" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/semver-truncate": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/semver-truncate/-/semver-truncate-3.0.0.tgz", + "integrity": "sha512-LJWA9kSvMolR51oDE6PN3kALBNaUdkxzAGcexw8gjMA8xr5zUqK0JiR3CgARSqanYF3Z1YHvsErb1KDgh+v7Rg==", + "dev": true, + "dependencies": { + "semver": "^7.3.5" + }, + "engines": { + "node": ">=12" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/seti-file-icons": { + "version": "0.0.8", + "resolved": "https://registry.npmjs.org/seti-file-icons/-/seti-file-icons-0.0.8.tgz", + "integrity": "sha512-HIK9HMkfhmwCZYeyQFuCAGYdwaK5/tmZBVnQmbGXx9orT2bD0xbKqvJR7q6NmsTbgtLNwBwa+PYnTzUvdExuDQ==" + }, + "node_modules/shallowequal": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/shallowequal/-/shallowequal-1.1.0.tgz", + "integrity": "sha512-y0m1JoUZSlPAjXVtPPW70aZWfIL/dSP7AFkRnniLCrK/8MDKog3TySTBmckD+RObVxH0v4Tox67+F14PdED2oQ==" + }, + "node_modules/shebang-command": { + "version": "1.2.0", + "resolved": "https://registry.npmjs.org/shebang-command/-/shebang-command-1.2.0.tgz", + "integrity": "sha512-EV3L1+UQWGor21OmnvojK36mhg+TyIKDh3iFBKBohr5xeXIhNBcx8oWdgkTEEQ+BEFFYdLRuqMfd5L84N1V5Vg==", + "dev": true, + "dependencies": { + "shebang-regex": "^1.0.0" + }, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/shebang-regex": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/shebang-regex/-/shebang-regex-1.0.0.tgz", + "integrity": "sha512-wpoSFAxys6b2a2wHZ1XpDSgD7N9iVjg29Ph9uV/uaP9Ex/KXlkTZTeddxDPSYQpgvzKLGJke2UU0AzoGCjNIvQ==", + "dev": true, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/signal-exit": { + "version": "3.0.7", + "resolved": "https://registry.npmjs.org/signal-exit/-/signal-exit-3.0.7.tgz", + "integrity": "sha512-wnD2ZE+l+SPC/uoS0vXeE9L1+0wuaMqKlfz9AMUo38JsyLSBWSFcHR1Rri62LZc12vLr1gb3jl7iwQhgwpAbGQ==", + "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, + "engines": { + "node": ">=8" + } + }, + "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.8.0", + "resolved": "https://registry.npmjs.org/socket.io-client/-/socket.io-client-4.8.0.tgz", + "integrity": "sha512-C0jdhD5yQahMws9alf/yvtsMGTaIDBnZ8Rb5HU56svyq0l5LIrGzIDZZD5pHQlmzxLuU91Gz+VpQMKgCTNYtkw==", + "dependencies": { + "@socket.io/component-emitter": "~3.1.0", + "debug": "~4.3.2", + "engine.io-client": "~6.6.1", + "socket.io-parser": "~4.2.4" + }, + "engines": { + "node": ">=10.0.0" + } + }, + "node_modules/socket.io-parser": { + "version": "4.2.4", + "resolved": "https://registry.npmjs.org/socket.io-parser/-/socket.io-parser-4.2.4.tgz", + "integrity": "sha512-/GbIKmo8ioc+NIWIhwdecY0ge+qVBSMdgxGygevmdHj24bsfgtCmcUUcQ5ZzcylGFHsN3k4HB4Cgkl96KVnuew==", + "dependencies": { + "@socket.io/component-emitter": "~3.1.0", + "debug": "~4.3.1" + }, + "engines": { + "node": ">=10.0.0" + } + }, + "node_modules/sort-keys": { + "version": "1.1.2", + "resolved": "https://registry.npmjs.org/sort-keys/-/sort-keys-1.1.2.tgz", + "integrity": "sha512-vzn8aSqKgytVik0iwdBEi+zevbTYZogewTUM6dtpmGwEcdzbub/TX4bCzRhebDCRC3QzXgJsLRKB2V/Oof7HXg==", + "dev": true, + "dependencies": { + "is-plain-obj": "^1.0.0" + }, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/sort-keys-length": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/sort-keys-length/-/sort-keys-length-1.0.1.tgz", + "integrity": "sha512-GRbEOUqCxemTAk/b32F2xa8wDTs+Z1QHOkbhJDQTvv/6G3ZkbJ+frYWsTcc7cBB3Fu4wy4XlLCuNtJuMn7Gsvw==", + "dev": true, + "dependencies": { + "sort-keys": "^1.0.0" + }, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/source-map": { + "version": "0.7.4", + "resolved": "https://registry.npmjs.org/source-map/-/source-map-0.7.4.tgz", + "integrity": "sha512-l3BikUxvPOcn5E74dZiq5BGsTb5yEwhaTSzccU6t4sDOH8NWJCstKO5QT2CvtFoK6F0saL7p9xHAqHOlCPJygA==", + "dev": true, + "engines": { + "node": ">= 8" + } + }, + "node_modules/source-map-js": { + "version": "1.2.1", + "resolved": "https://registry.npmjs.org/source-map-js/-/source-map-js-1.2.1.tgz", + "integrity": "sha512-UXWMKhLOwVKb728IUtQPXxfYU+usdybtUrK/8uGE8CQMvrhOpwvzDBwj0QhSL7MQc7vIsISBG8VQ8+IDQxpfQA==", + "dev": true, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/space-separated-tokens": { + "version": "2.0.2", + "resolved": "https://registry.npmjs.org/space-separated-tokens/-/space-separated-tokens-2.0.2.tgz", + "integrity": "sha512-PEGlAwrG8yXGXRjW32fGbg66JAlOAwbObuqVoJpv/mRgoWDQfgH1wDPvtzWyUSNAXBGSk8h755YDbbcEy3SH2Q==", + "funding": { + "type": "github", + "url": "https://github.com/sponsors/wooorm" + } + }, + "node_modules/state-local": { + "version": "1.0.7", + "resolved": "https://registry.npmjs.org/state-local/-/state-local-1.0.7.tgz", + "integrity": "sha512-HTEHMNieakEnoe33shBYcZ7NX83ACUjCu8c40iOGEZsngj9zRnkqS9j1pqQPXwobB0ZcVTk27REb7COQ0UR59w==" + }, + "node_modules/string_decoder": { + "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==", + "dev": true, + "dependencies": { + "safe-buffer": "~5.2.0" + } + }, + "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/string-width-cjs": { + "name": "string-width", + "version": "4.2.3", + "resolved": "https://registry.npmjs.org/string-width/-/string-width-4.2.3.tgz", + "integrity": "sha512-wKyQRQpjJ0sIp62ErSZdGsjMJWsap5oRNihHhu6G7JVO/9jIB6UyevL+tXuOqrng8j/cxKTWyWUwvSTriiZz/g==", + "dev": true, + "dependencies": { + "emoji-regex": "^8.0.0", + "is-fullwidth-code-point": "^3.0.0", + "strip-ansi": "^6.0.1" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/stringify-entities": { + "version": "4.0.4", + "resolved": "https://registry.npmjs.org/stringify-entities/-/stringify-entities-4.0.4.tgz", + "integrity": "sha512-IwfBptatlO+QCJUo19AqvrPNqlVMpW9YEL2LIVY+Rpv2qsjCGxaDLNRgeGsQWJhfItebuJhsGSLjaBbNSQ+ieg==", + "dependencies": { + "character-entities-html4": "^2.0.0", + "character-entities-legacy": "^3.0.0" + }, + "funding": { + "type": "github", + "url": "https://github.com/sponsors/wooorm" + } + }, + "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/strip-ansi-cjs": { + "name": "strip-ansi", + "version": "6.0.1", + "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-6.0.1.tgz", + "integrity": "sha512-Y38VPSHcqkFrCpFnQ9vuSXmquuv5oXOKpGeT6aGrr3o3Gc9AlVa6JBfUSOCnbxGGZF+/0ooI7KrPuUSztUdU5A==", + "dev": true, + "dependencies": { + "ansi-regex": "^5.0.1" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/strip-eof": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/strip-eof/-/strip-eof-1.0.0.tgz", + "integrity": "sha512-7FCwGGmx8mD5xQd3RPUvnSpUXHM3BWuzjtpD4TXsfcZ9EL4azvVVUscFYwD9nx8Kh+uCBC00XBtAykoMHwTh8Q==", + "dev": true, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/strip-final-newline": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/strip-final-newline/-/strip-final-newline-2.0.0.tgz", + "integrity": "sha512-BrpvfNAE3dcvq7ll3xVumzjKjZQ5tI1sEUIKr3Uoks0XUl45St3FlatVqef9prk4jRDzhW6WZg+3bk93y6pLjA==", + "dev": true, + "engines": { + "node": ">=6" + } + }, + "node_modules/strip-outer": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/strip-outer/-/strip-outer-2.0.0.tgz", + "integrity": "sha512-A21Xsm1XzUkK0qK1ZrytDUvqsQWict2Cykhvi0fBQntGG5JSprESasEyV1EZ/4CiR5WB5KjzLTrP/bO37B0wPg==", + "dev": true, + "engines": { + "node": "^12.20.0 || ^14.13.1 || >=16.0.0" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/strtok3": { + "version": "7.1.1", + "resolved": "https://registry.npmjs.org/strtok3/-/strtok3-7.1.1.tgz", + "integrity": "sha512-mKX8HA/cdBqMKUr0MMZAFssCkIGoZeSCMXgnt79yKxNFguMLVFgRe6wB+fsL0NmoHDbeyZXczy7vEPSoo3rkzg==", + "dev": true, + "dependencies": { + "@tokenizer/token": "^0.3.0", + "peek-readable": "^5.1.3" + }, + "engines": { + "node": ">=16" + }, + "funding": { + "type": "github", + "url": "https://github.com/sponsors/Borewit" + } + }, + "node_modules/style-to-object": { + "version": "1.0.8", + "resolved": "https://registry.npmjs.org/style-to-object/-/style-to-object-1.0.8.tgz", + "integrity": "sha512-xT47I/Eo0rwJmaXC4oilDGDWLohVhR6o/xAQcPQN8q6QBuZVL8qMYL85kLmST5cPjAorwvqIA4qXTRQoYHaL6g==", + "dependencies": { + "inline-style-parser": "0.2.4" + } + }, + "node_modules/styled-components": { + "version": "5.3.11", + "resolved": "https://registry.npmjs.org/styled-components/-/styled-components-5.3.11.tgz", + "integrity": "sha512-uuzIIfnVkagcVHv9nE0VPlHPSCmXIUGKfJ42LNjxCCTDTL5sgnJ8Z7GZBq0EnLYGln77tPpEpExt2+qa+cZqSw==", + "dependencies": { + "@babel/helper-module-imports": "^7.0.0", + "@babel/traverse": "^7.4.5", + "@emotion/is-prop-valid": "^1.1.0", + "@emotion/stylis": "^0.8.4", + "@emotion/unitless": "^0.7.4", + "babel-plugin-styled-components": ">= 1.12.0", + "css-to-react-native": "^3.0.0", + "hoist-non-react-statics": "^3.0.0", + "shallowequal": "^1.1.0", + "supports-color": "^5.5.0" + }, + "engines": { + "node": ">=10" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/styled-components" + }, + "peerDependencies": { + "react": ">= 16.8.0", + "react-dom": ">= 16.8.0", + "react-is": ">= 16.8.0" + } + }, + "node_modules/sucrase": { + "version": "3.35.0", + "resolved": "https://registry.npmjs.org/sucrase/-/sucrase-3.35.0.tgz", + "integrity": "sha512-8EbVDiu9iN/nESwxeSxDKe0dunta1GOlHufmSSXxMD2z2/tMZpDMpvXQGsc+ajGo8y2uYUmixaSRUc/QPoQ0GA==", + "dev": true, + "dependencies": { + "@jridgewell/gen-mapping": "^0.3.2", + "commander": "^4.0.0", + "glob": "^10.3.10", + "lines-and-columns": "^1.1.6", + "mz": "^2.7.0", + "pirates": "^4.0.1", + "ts-interface-checker": "^0.1.9" + }, + "bin": { + "sucrase": "bin/sucrase", + "sucrase-node": "bin/sucrase-node" + }, + "engines": { + "node": ">=16 || 14 >=14.17" + } + }, + "node_modules/sucrase/node_modules/commander": { + "version": "4.1.1", + "resolved": "https://registry.npmjs.org/commander/-/commander-4.1.1.tgz", + "integrity": "sha512-NOKm8xhkzAjzFx8B2v5OAHT+u5pRQc2UCa2Vq9jYL/31o2wi9mxBA7LIFs3sV5VSC49z6pEhfbMULvShKj26WA==", + "dev": true, + "engines": { + "node": ">= 6" + } + }, + "node_modules/supports-color": { + "version": "5.5.0", + "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-5.5.0.tgz", + "integrity": "sha512-QjVjwdXIt408MIiAqCX4oUKsgU2EqAGzs2Ppkm4aQYbjm+ZEWEcW4SfFNTr4uMNZma0ey4f5lgLrkB0aX0QMow==", + "dependencies": { + "has-flag": "^3.0.0" + }, + "engines": { + "node": ">=4" + } + }, + "node_modules/supports-preserve-symlinks-flag": { + "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==", + "dev": true, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/table": { + "version": "6.8.2", + "resolved": "https://registry.npmjs.org/table/-/table-6.8.2.tgz", + "integrity": "sha512-w2sfv80nrAh2VCbqR5AK27wswXhqcck2AhfnNW76beQXskGZ1V12GwS//yYVa3d3fcvAip2OUnbDAjW2k3v9fA==", + "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/tailwindcss": { + "version": "3.4.12", + "resolved": "https://registry.npmjs.org/tailwindcss/-/tailwindcss-3.4.12.tgz", + "integrity": "sha512-Htf/gHj2+soPb9UayUNci/Ja3d8pTmu9ONTfh4QY8r3MATTZOzmv6UYWF7ZwikEIC8okpfqmGqrmDehua8mF8w==", + "dev": true, + "dependencies": { + "@alloc/quick-lru": "^5.2.0", + "arg": "^5.0.2", + "chokidar": "^3.5.3", + "didyoumean": "^1.2.2", + "dlv": "^1.1.3", + "fast-glob": "^3.3.0", + "glob-parent": "^6.0.2", + "is-glob": "^4.0.3", + "jiti": "^1.21.0", + "lilconfig": "^2.1.0", + "micromatch": "^4.0.5", + "normalize-path": "^3.0.0", + "object-hash": "^3.0.0", + "picocolors": "^1.0.0", + "postcss": "^8.4.23", + "postcss-import": "^15.1.0", + "postcss-js": "^4.0.1", + "postcss-load-config": "^4.0.1", + "postcss-nested": "^6.0.1", + "postcss-selector-parser": "^6.0.11", + "resolve": "^1.22.2", + "sucrase": "^3.32.0" + }, + "bin": { + "tailwind": "lib/cli.js", + "tailwindcss": "lib/cli.js" + }, + "engines": { + "node": ">=14.0.0" + } + }, + "node_modules/tailwindcss/node_modules/glob-parent": { + "version": "6.0.2", + "resolved": "https://registry.npmjs.org/glob-parent/-/glob-parent-6.0.2.tgz", + "integrity": "sha512-XxwI8EOhVQgWp6iDL+3b0r86f4d6AX6zSU55HfB4ydCEuXLXc5FcYeOu+nnGftS4TEju/11rt4KJPTMgbfmv4A==", + "dev": true, + "dependencies": { + "is-glob": "^4.0.3" + }, + "engines": { + "node": ">=10.13.0" + } + }, + "node_modules/thenify": { + "version": "3.3.1", + "resolved": "https://registry.npmjs.org/thenify/-/thenify-3.3.1.tgz", + "integrity": "sha512-RVZSIV5IG10Hk3enotrhvz0T9em6cyHBLkH/YAZuKqd8hRkKhSfCGIcP2KUY0EPxndzANBmNllzWPwak+bheSw==", + "dev": true, + "dependencies": { + "any-promise": "^1.0.0" + } + }, + "node_modules/thenify-all": { + "version": "1.6.0", + "resolved": "https://registry.npmjs.org/thenify-all/-/thenify-all-1.6.0.tgz", + "integrity": "sha512-RNxQH/qI8/t3thXJDwcstUO4zeqo64+Uy/+sNVRBx4Xn2OX+OZ9oP+iJnNFqplFra2ZUVeKCSa2oVWi3T4uVmA==", + "dev": true, + "dependencies": { + "thenify": ">= 3.1.0 < 4" + }, + "engines": { + "node": ">=0.8" + } + }, + "node_modules/tippy.js": { + "version": "6.3.7", + "resolved": "https://registry.npmjs.org/tippy.js/-/tippy.js-6.3.7.tgz", + "integrity": "sha512-E1d3oP2emgJ9dRQZdf3Kkn0qJgI6ZLpyS5z6ZkY1DF3kaQaBsGZsndEpHwx+eC+tYM41HaSNvNtLx8tU57FzTQ==", + "dependencies": { + "@popperjs/core": "^2.9.0" + } + }, + "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==", + "engines": { + "node": ">=4" + } + }, + "node_modules/to-regex-range": { + "version": "5.0.1", + "resolved": "https://registry.npmjs.org/to-regex-range/-/to-regex-range-5.0.1.tgz", + "integrity": "sha512-65P7iz6X5yEr1cwcgvQxbbIw7Uk3gOy5dIdtZ4rDveLqhrdJP+Li/Hx6tyK0NEb+2GCyneCMJiGqrADCSNk8sQ==", + "dev": true, + "dependencies": { + "is-number": "^7.0.0" + }, + "engines": { + "node": ">=8.0" + } + }, + "node_modules/token-types": { + "version": "5.0.1", + "resolved": "https://registry.npmjs.org/token-types/-/token-types-5.0.1.tgz", + "integrity": "sha512-Y2fmSnZjQdDb9W4w4r1tswlMHylzWIeOKpx0aZH9BgGtACHhrk3OkT52AzwcuqTRBZtvvnTjDBh8eynMulu8Vg==", + "dev": true, + "dependencies": { + "@tokenizer/token": "^0.3.0", + "ieee754": "^1.2.1" + }, + "engines": { + "node": ">=14.16" + }, + "funding": { + "type": "github", + "url": "https://github.com/sponsors/Borewit" + } + }, + "node_modules/trim-lines": { + "version": "3.0.1", + "resolved": "https://registry.npmjs.org/trim-lines/-/trim-lines-3.0.1.tgz", + "integrity": "sha512-kRj8B+YHZCc9kQYdWfJB2/oUl9rA99qbowYYBtr4ui4mZyAQ2JpvVBd/6U2YloATfqBhBTSMhTpgBHtU0Mf3Rg==", + "funding": { + "type": "github", + "url": "https://github.com/sponsors/wooorm" + } + }, + "node_modules/trim-repeated": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/trim-repeated/-/trim-repeated-2.0.0.tgz", + "integrity": "sha512-QUHBFTJGdOwmp0tbOG505xAgOp/YliZP/6UgafFXYZ26WT1bvQmSMJUvkeVSASuJJHbqsFbynTvkd5W8RBTipg==", + "dev": true, + "dependencies": { + "escape-string-regexp": "^5.0.0" + }, + "engines": { + "node": ">=12" + } + }, + "node_modules/trim-repeated/node_modules/escape-string-regexp": { + "version": "5.0.0", + "resolved": "https://registry.npmjs.org/escape-string-regexp/-/escape-string-regexp-5.0.0.tgz", + "integrity": "sha512-/veY75JbMK4j1yjvuUxuVsiS/hr/4iHs9FTT6cgTexxdE0Ly/glccBAkloH/DofkjRbZU3bnoj38mOmhkZ0lHw==", + "dev": true, + "engines": { + "node": ">=12" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/trough": { + "version": "2.2.0", + "resolved": "https://registry.npmjs.org/trough/-/trough-2.2.0.tgz", + "integrity": "sha512-tmMpK00BjZiUyVyvrBK7knerNgmgvcV/KLVyuma/SC+TQN167GrMRciANTz09+k3zW8L8t60jWO1GpfkZdjTaw==", + "funding": { + "type": "github", + "url": "https://github.com/sponsors/wooorm" + } + }, + "node_modules/ts-interface-checker": { + "version": "0.1.13", + "resolved": "https://registry.npmjs.org/ts-interface-checker/-/ts-interface-checker-0.1.13.tgz", + "integrity": "sha512-Y/arvbn+rrz3JCKl9C4kVNfTfSm2/mEp5FSz5EsZSANGPSlQrpRI5M4PKF+mJnE52jOO90PnPSc3Ur3bTQw0gA==", + "dev": true + }, + "node_modules/tslib": { + "version": "2.7.0", + "resolved": "https://registry.npmjs.org/tslib/-/tslib-2.7.0.tgz", + "integrity": "sha512-gLXCKdN1/j47AiHiOkJN69hJmcbGTHI0ImLmbYLHykhgeN0jVGola9yVjFgzCUklsZQMW55o+dW7IXv3RCXDzA==" + }, + "node_modules/typescript": { + "version": "4.9.5", + "resolved": "https://registry.npmjs.org/typescript/-/typescript-4.9.5.tgz", + "integrity": "sha512-1FXk9E2Hm+QzZQ7z+McJiHL4NW1F2EzMu9Nq9i3zAaGqibafqYwCVU6WyWAuyQRRzOlxou8xZSyXLEN8oKj24g==", + "dev": true, + "bin": { + "tsc": "bin/tsc", + "tsserver": "bin/tsserver" + }, + "engines": { + "node": ">=4.2.0" + } + }, + "node_modules/uc.micro": { + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/uc.micro/-/uc.micro-2.1.0.tgz", + "integrity": "sha512-ARDJmphmdvUk6Glw7y9DQ2bFkKBHwQHLi2lsaH6PPmz/Ka9sFOBsBluozhDltWmnv9u/cF6Rt87znRTPV+yp/A==" + }, + "node_modules/undici-types": { + "version": "6.19.8", + "resolved": "https://registry.npmjs.org/undici-types/-/undici-types-6.19.8.tgz", + "integrity": "sha512-ve2KP6f/JnbPBFyobGHuerC9g1FYGn/F8n1LWTwNxCEzd6IfqTwUQcNXgEtmmQ6DlRrC1hrSrBnCZPokRrDHjw==", + "dev": true + }, + "node_modules/unified": { + "version": "11.0.5", + "resolved": "https://registry.npmjs.org/unified/-/unified-11.0.5.tgz", + "integrity": "sha512-xKvGhPWw3k84Qjh8bI3ZeJjqnyadK+GEFtazSfZv/rKeTkTjOJho6mFqh2SM96iIcZokxiOpg78GazTSg8+KHA==", + "dependencies": { + "@types/unist": "^3.0.0", + "bail": "^2.0.0", + "devlop": "^1.0.0", + "extend": "^3.0.0", + "is-plain-obj": "^4.0.0", + "trough": "^2.0.0", + "vfile": "^6.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/unified" + } + }, + "node_modules/unified/node_modules/is-plain-obj": { + "version": "4.1.0", + "resolved": "https://registry.npmjs.org/is-plain-obj/-/is-plain-obj-4.1.0.tgz", + "integrity": "sha512-+Pgi+vMuUNkJyExiMBt5IlFoMyKnr5zhJ4Uspz58WOhBF5QoIZkFyNHIbBAtHwzVAgk5RtndVNsDRN61/mmDqg==", + "engines": { + "node": ">=12" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/unist-builder": { + "version": "2.0.3", + "resolved": "https://registry.npmjs.org/unist-builder/-/unist-builder-2.0.3.tgz", + "integrity": "sha512-f98yt5pnlMWlzP539tPc4grGMsFaQQlP/vM396b00jngsiINumNmsY8rkXjfoi1c6QaM8nQ3vaGDuoKWbe/1Uw==", + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/unified" + } + }, + "node_modules/unist-util-find-after": { + "version": "5.0.0", + "resolved": "https://registry.npmjs.org/unist-util-find-after/-/unist-util-find-after-5.0.0.tgz", + "integrity": "sha512-amQa0Ep2m6hE2g72AugUItjbuM8X8cGQnFoHk0pGfrFeT9GZhzN5SW8nRsiGKK7Aif4CrACPENkA6P/Lw6fHGQ==", + "dependencies": { + "@types/unist": "^3.0.0", + "unist-util-is": "^6.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/unified" + } + }, + "node_modules/unist-util-generated": { + "version": "1.1.6", + "resolved": "https://registry.npmjs.org/unist-util-generated/-/unist-util-generated-1.1.6.tgz", + "integrity": "sha512-cln2Mm1/CZzN5ttGK7vkoGw+RZ8VcUH6BtGbq98DDtRGquAAOXig1mrBQYelOwMXYS8rK+vZDyyojSjp7JX+Lg==", + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/unified" + } + }, + "node_modules/unist-util-is": { + "version": "6.0.0", + "resolved": "https://registry.npmjs.org/unist-util-is/-/unist-util-is-6.0.0.tgz", + "integrity": "sha512-2qCTHimwdxLfz+YzdGfkqNlH0tLi9xjTnHddPmJwtIG9MGsdbutfTc4P+haPD7l7Cjxf/WZj+we5qfVPvvxfYw==", + "dependencies": { + "@types/unist": "^3.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/unified" + } + }, + "node_modules/unist-util-position": { + "version": "5.0.0", + "resolved": "https://registry.npmjs.org/unist-util-position/-/unist-util-position-5.0.0.tgz", + "integrity": "sha512-fucsC7HjXvkB5R3kTCO7kUjRdrS0BJt3M/FPxmHMBOm8JQi2BsHAHFsy27E0EolP8rp0NzXsJ+jNPyDWvOJZPA==", + "dependencies": { + "@types/unist": "^3.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/unified" + } + }, + "node_modules/unist-util-remove-position": { + "version": "5.0.0", + "resolved": "https://registry.npmjs.org/unist-util-remove-position/-/unist-util-remove-position-5.0.0.tgz", + "integrity": "sha512-Hp5Kh3wLxv0PHj9m2yZhhLt58KzPtEYKQQ4yxfYFEO7EvHwzyDYnduhHnY1mDxoqr7VUwVuHXk9RXKIiYS1N8Q==", + "dependencies": { + "@types/unist": "^3.0.0", + "unist-util-visit": "^5.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/unified" + } + }, + "node_modules/unist-util-stringify-position": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/unist-util-stringify-position/-/unist-util-stringify-position-4.0.0.tgz", + "integrity": "sha512-0ASV06AAoKCDkS2+xw5RXJywruurpbC4JZSm7nr7MOt1ojAzvyyaO+UxZf18j8FCF6kmzCZKcAgN/yu2gm2XgQ==", + "dependencies": { + "@types/unist": "^3.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/unified" + } + }, + "node_modules/unist-util-visit": { + "version": "5.0.0", + "resolved": "https://registry.npmjs.org/unist-util-visit/-/unist-util-visit-5.0.0.tgz", + "integrity": "sha512-MR04uvD+07cwl/yhVuVWAtw+3GOR/knlL55Nd/wAdblk27GCVt3lqpTivy/tkJcZoNPzTwS1Y+KMojlLDhoTzg==", + "dependencies": { + "@types/unist": "^3.0.0", + "unist-util-is": "^6.0.0", + "unist-util-visit-parents": "^6.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/unified" + } + }, + "node_modules/unist-util-visit-parents": { + "version": "6.0.1", + "resolved": "https://registry.npmjs.org/unist-util-visit-parents/-/unist-util-visit-parents-6.0.1.tgz", + "integrity": "sha512-L/PqWzfTP9lzzEa6CKs0k2nARxTdZduw3zyh8d2NVBnsyvHjSX4TWse388YrrQKbvI8w20fGjGlhgT96WwKykw==", + "dependencies": { + "@types/unist": "^3.0.0", + "unist-util-is": "^6.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/unified" + } + }, + "node_modules/universalify": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/universalify/-/universalify-2.0.1.tgz", + "integrity": "sha512-gptHNQghINnc/vTGIk0SOFGFNXw7JVrlRUtConJRlvaw6DuX0wO5Jeko9sWrMBhh+PsYAZ7oXAiOnf/UKogyiw==", + "engines": { + "node": ">= 10.0.0" + } + }, + "node_modules/update-browserslist-db": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/update-browserslist-db/-/update-browserslist-db-1.1.0.tgz", + "integrity": "sha512-EdRAaAyk2cUE1wOf2DkEhzxqOQvFOoRJFNS6NeyJ01Gp2beMRpBAINjM2iDXE3KCuKhwnvHIQCJm6ThL2Z+HzQ==", + "funding": [ + { + "type": "opencollective", + "url": "https://opencollective.com/browserslist" + }, + { + "type": "tidelift", + "url": "https://tidelift.com/funding/github/npm/browserslist" + }, + { + "type": "github", + "url": "https://github.com/sponsors/ai" + } + ], + "dependencies": { + "escalade": "^3.1.2", + "picocolors": "^1.0.1" + }, + "bin": { + "update-browserslist-db": "cli.js" + }, + "peerDependencies": { + "browserslist": ">= 4.21.0" + } + }, + "node_modules/use-sync-external-store": { + "version": "1.2.2", + "resolved": "https://registry.npmjs.org/use-sync-external-store/-/use-sync-external-store-1.2.2.tgz", + "integrity": "sha512-PElTlVMwpblvbNqQ82d2n6RjStvdSoNe9FG28kNfz3WiXilJm4DdNkEzRhCZuIDwY8U08WVihhGR5iRqAwfDiw==", + "peerDependencies": { + "react": "^16.8.0 || ^17.0.0 || ^18.0.0" + } + }, + "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==", + "dev": true + }, + "node_modules/uuid": { + "version": "9.0.1", + "resolved": "https://registry.npmjs.org/uuid/-/uuid-9.0.1.tgz", + "integrity": "sha512-b+1eJOlsR9K8HJpow9Ok3fiWOWSIcIzXodvv0rQjVoOVNpWMpxf1wZNpt4y9h10odCNrqnYp1OBzRktckBe3sA==", + "funding": [ + "https://github.com/sponsors/broofa", + "https://github.com/sponsors/ctavan" + ], + "bin": { + "uuid": "dist/bin/uuid" + } + }, + "node_modules/vfile": { + "version": "6.0.3", + "resolved": "https://registry.npmjs.org/vfile/-/vfile-6.0.3.tgz", + "integrity": "sha512-KzIbH/9tXat2u30jf+smMwFCsno4wHVdNmzFyL+T/L3UGqqk6JKfVqOFOZEpZSHADH1k40ab6NUIXZq422ov3Q==", + "dependencies": { + "@types/unist": "^3.0.0", + "vfile-message": "^4.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/unified" + } + }, + "node_modules/vfile-location": { + "version": "5.0.3", + "resolved": "https://registry.npmjs.org/vfile-location/-/vfile-location-5.0.3.tgz", + "integrity": "sha512-5yXvWDEgqeiYiBe1lbxYF7UMAIm/IcopxMHrMQDq3nvKcjPKIhZklUKL+AE7J7uApI4kwe2snsK+eI6UTj9EHg==", + "dependencies": { + "@types/unist": "^3.0.0", + "vfile": "^6.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/unified" + } + }, + "node_modules/vfile-message": { + "version": "4.0.2", + "resolved": "https://registry.npmjs.org/vfile-message/-/vfile-message-4.0.2.tgz", + "integrity": "sha512-jRDZ1IMLttGj41KcZvlrYAaI3CfqpLpfpf+Mfig13viT6NKvRzWZ+lXz0Y5D60w6uJIBAOGq9mSHf0gktF0duw==", + "dependencies": { + "@types/unist": "^3.0.0", + "unist-util-stringify-position": "^4.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/unified" + } + }, + "node_modules/vite": { + "version": "4.5.5", + "resolved": "https://registry.npmjs.org/vite/-/vite-4.5.5.tgz", + "integrity": "sha512-ifW3Lb2sMdX+WU91s3R0FyQlAyLxOzCSCP37ujw0+r5POeHPwe6udWVIElKQq8gk3t7b8rkmvqC6IHBpCff4GQ==", + "dev": true, + "dependencies": { + "esbuild": "^0.18.10", + "postcss": "^8.4.27", + "rollup": "^3.27.1" + }, + "bin": { + "vite": "bin/vite.js" + }, + "engines": { + "node": "^14.18.0 || >=16.0.0" + }, + "funding": { + "url": "https://github.com/vitejs/vite?sponsor=1" + }, + "optionalDependencies": { + "fsevents": "~2.3.2" + }, + "peerDependencies": { + "@types/node": ">= 14", + "less": "*", + "lightningcss": "^1.21.0", + "sass": "*", + "stylus": "*", + "sugarss": "*", + "terser": "^5.4.0" + }, + "peerDependenciesMeta": { + "@types/node": { + "optional": true + }, + "less": { + "optional": true + }, + "lightningcss": { + "optional": true + }, + "sass": { + "optional": true + }, + "stylus": { + "optional": true + }, + "sugarss": { + "optional": true + }, + "terser": { + "optional": true + } + } + }, + "node_modules/vscode-webview": { + "version": "1.0.1-beta.1", + "resolved": "https://registry.npmjs.org/vscode-webview/-/vscode-webview-1.0.1-beta.1.tgz", + "integrity": "sha512-8H2icqlb93qIvZs7Me/0sALMqJrX2e2W7JVE0mfK8exUPETP9Bmg+feivaByd1Xbg78lcKaNF9ZRrIFSenUVxQ==", + "dependencies": { + "fs-extra": "^10.0.0" + } + }, + "node_modules/w3c-keyname": { + "version": "2.2.8", + "resolved": "https://registry.npmjs.org/w3c-keyname/-/w3c-keyname-2.2.8.tgz", + "integrity": "sha512-dpojBhNsCNN7T82Tm7k26A6G9ML3NkhDsnw9n/eoxSRlVBB4CEtIQ/KTCLI2Fwf3ataSXRhYFkQi3SlnFwPvPQ==" + }, + "node_modules/web-namespaces": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/web-namespaces/-/web-namespaces-2.0.1.tgz", + "integrity": "sha512-bKr1DkiNa2krS7qxNtdrtHAmzuYGFQLiQ13TsorsdT6ULTkPLKuu5+GsFpDlg6JFjUTwX2DyhMPG2be8uPrqsQ==", + "funding": { + "type": "github", + "url": "https://github.com/sponsors/wooorm" + } + }, + "node_modules/web-vitals": { + "version": "4.2.3", + "resolved": "https://registry.npmjs.org/web-vitals/-/web-vitals-4.2.3.tgz", + "integrity": "sha512-/CFAm1mNxSmOj6i0Co+iGFJ58OS4NRGVP+AWS/l509uIK5a1bSoIVaHz/ZumpHTfHSZBpgrJ+wjfpAOrTHok5Q==" + }, + "node_modules/which": { + "version": "1.3.1", + "resolved": "https://registry.npmjs.org/which/-/which-1.3.1.tgz", + "integrity": "sha512-HxJdYWq1MTIQbJ3nw0cqssHoTNU267KlrDuGZ1WYlxDStUtKUhOaJmh112/TZmHxxUfuJqPXSOm7tDyas0OSIQ==", + "dev": true, + "dependencies": { + "isexe": "^2.0.0" + }, + "bin": { + "which": "bin/which" + } + }, + "node_modules/wrap-ansi": { + "version": "8.1.0", + "resolved": "https://registry.npmjs.org/wrap-ansi/-/wrap-ansi-8.1.0.tgz", + "integrity": "sha512-si7QWI6zUMq56bESFvagtmzMdGOtoxfR+Sez11Mobfc7tm+VkUckk9bW2UeffTGVUbOksxmSw0AA2gs8g71NCQ==", + "dev": true, + "dependencies": { + "ansi-styles": "^6.1.0", + "string-width": "^5.0.1", + "strip-ansi": "^7.0.1" + }, + "engines": { + "node": ">=12" + }, + "funding": { + "url": "https://github.com/chalk/wrap-ansi?sponsor=1" + } + }, + "node_modules/wrap-ansi-cjs": { + "name": "wrap-ansi", + "version": "7.0.0", + "resolved": "https://registry.npmjs.org/wrap-ansi/-/wrap-ansi-7.0.0.tgz", + "integrity": "sha512-YVGIj2kamLSTxw6NsZjoBxfSwsn0ycdesmc4p+Q21c5zPuZ1pl+NfxVdxPtdHvmNVOQ6XSYG4AUtyt/Fi7D16Q==", + "dev": true, + "dependencies": { + "ansi-styles": "^4.0.0", + "string-width": "^4.1.0", + "strip-ansi": "^6.0.0" + }, + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/chalk/wrap-ansi?sponsor=1" + } + }, + "node_modules/wrap-ansi-cjs/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==", + "dev": true, + "dependencies": { + "color-convert": "^2.0.1" + }, + "engines": { + "node": ">=8" + }, + "funding": { + "url": "https://github.com/chalk/ansi-styles?sponsor=1" + } + }, + "node_modules/wrap-ansi-cjs/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==", + "dev": true, + "dependencies": { + "color-name": "~1.1.4" + }, + "engines": { + "node": ">=7.0.0" + } + }, + "node_modules/wrap-ansi-cjs/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==", + "dev": true + }, + "node_modules/wrap-ansi/node_modules/ansi-regex": { + "version": "6.1.0", + "resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-6.1.0.tgz", + "integrity": "sha512-7HSX4QQb4CspciLpVFwyRe79O3xsIZDDLER21kERQ71oaPodF8jL725AgJMFAYbooIqolJoRLuM81SpeUkpkvA==", + "dev": true, + "engines": { + "node": ">=12" + }, + "funding": { + "url": "https://github.com/chalk/ansi-regex?sponsor=1" + } + }, + "node_modules/wrap-ansi/node_modules/ansi-styles": { + "version": "6.2.1", + "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-6.2.1.tgz", + "integrity": "sha512-bN798gFfQX+viw3R7yrGWRqnrN2oRkEkUjjl4JNn4E8GxxbjtG3FbrEIIY3l8/hrwUwIeCZvi4QuOTP4MErVug==", + "dev": true, + "engines": { + "node": ">=12" + }, + "funding": { + "url": "https://github.com/chalk/ansi-styles?sponsor=1" + } + }, + "node_modules/wrap-ansi/node_modules/emoji-regex": { + "version": "9.2.2", + "resolved": "https://registry.npmjs.org/emoji-regex/-/emoji-regex-9.2.2.tgz", + "integrity": "sha512-L18DaJsXSUk2+42pv8mLs5jJT2hqFkFE4j21wOmgbUqsZ2hL72NsUU785g9RXgo3s0ZNgVl42TiHp3ZtOv/Vyg==", + "dev": true + }, + "node_modules/wrap-ansi/node_modules/string-width": { + "version": "5.1.2", + "resolved": "https://registry.npmjs.org/string-width/-/string-width-5.1.2.tgz", + "integrity": "sha512-HnLOCR3vjcY8beoNLtcjZ5/nxn2afmME6lhrDrebokqMap+XbeW8n9TXpPDOqdGK5qcI3oT0GKTW6wC7EMiVqA==", + "dev": true, + "dependencies": { + "eastasianwidth": "^0.2.0", + "emoji-regex": "^9.2.2", + "strip-ansi": "^7.0.1" + }, + "engines": { + "node": ">=12" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/wrap-ansi/node_modules/strip-ansi": { + "version": "7.1.0", + "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-7.1.0.tgz", + "integrity": "sha512-iq6eVVI64nQQTRYq2KtEg2d2uU7LElhTJwsH4YzIHZshxlgZms/wIc4VoDQTlG/IvVIrBKG06CrZnp0qv7hkcQ==", + "dev": true, + "dependencies": { + "ansi-regex": "^6.0.1" + }, + "engines": { + "node": ">=12" + }, + "funding": { + "url": "https://github.com/chalk/strip-ansi?sponsor=1" + } + }, + "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==", + "dev": true + }, + "node_modules/ws": { + "version": "8.17.1", + "resolved": "https://registry.npmjs.org/ws/-/ws-8.17.1.tgz", + "integrity": "sha512-6XQFvXTkbfUOZOKKILFG1PDK2NDQs4azKQl26T0YS5CxqWLgXajbPZ+h4gZekJyRqFU8pvnbAbbs/3TgRPy+GQ==", + "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/xmlhttprequest-ssl": { + "version": "2.1.1", + "resolved": "https://registry.npmjs.org/xmlhttprequest-ssl/-/xmlhttprequest-ssl-2.1.1.tgz", + "integrity": "sha512-ptjR8YSJIXoA3Mbv5po7RtSYHO6mZr8s7i5VGmEk7QY2pQWyT1o0N+W1gKbOyJPUCGXGnuw0wqe8f0L6Y0ny7g==", + "engines": { + "node": ">=0.4.0" + } + }, + "node_modules/xtend": { + "version": "4.0.2", + "resolved": "https://registry.npmjs.org/xtend/-/xtend-4.0.2.tgz", + "integrity": "sha512-LKYU1iAXJXUgAXn9URjiu+MWhyUXHsvfp7mcuYm9dSUKK0/CjtrUwFAxD82/mCWbtLsGjFIad0wIsod4zrTAEQ==", + "engines": { + "node": ">=0.4" + } + }, + "node_modules/yallist": { + "version": "2.1.2", + "resolved": "https://registry.npmjs.org/yallist/-/yallist-2.1.2.tgz", + "integrity": "sha512-ncTzHV7NvsQZkYe1DW7cbDLm0YpzHmZF5r/iyP3ZnQtMiJ+pjzisCiMNI+Sj+xQF5pXhSHxSB3uDbsBTzY/c2A==", + "dev": true + }, + "node_modules/yaml": { + "version": "2.5.1", + "resolved": "https://registry.npmjs.org/yaml/-/yaml-2.5.1.tgz", + "integrity": "sha512-bLQOjaX/ADgQ20isPJRvF0iRUHIxVhYvr53Of7wGcWlO2jvtUlH5m87DsmulFVxRpNLOnI4tB6p/oh8D7kpn9Q==", + "dev": true, + "bin": { + "yaml": "bin.mjs" + }, + "engines": { + "node": ">= 14" + } + }, + "node_modules/zwitch": { + "version": "2.0.4", + "resolved": "https://registry.npmjs.org/zwitch/-/zwitch-2.0.4.tgz", + "integrity": "sha512-bXE4cR/kVZhKZX/RjPEflHaKVhUVl85noU3v6b8apfQEc1x4A+zBxjZ4lN8LqGd6WZ3dl98pY4o717VFmoPp+A==", + "funding": { + "type": "github", + "url": "https://github.com/sponsors/wooorm" + } + } + } +} From 912b43ab988e9cd581bece8a09666a77d0427c2d Mon Sep 17 00:00:00 2001 From: Nate Date: Sun, 22 Sep 2024 15:03:42 -0700 Subject: [PATCH 171/268] fix cmd+I with openrouter --- core/llm/index.ts | 3 +++ 1 file changed, 3 insertions(+) diff --git a/core/llm/index.ts b/core/llm/index.ts index 1f76ed64c..ff950929e 100644 --- a/core/llm/index.ts +++ b/core/llm/index.ts @@ -703,6 +703,9 @@ ${prompt}`; this.providerName, autodetectTemplateType(this.model), ); + if (!templateMessages) { + return rendered; + } return templateMessages(rendered); } return rendered; From b8f688ad50f782444b723996ea69ab44b0446ed0 Mon Sep 17 00:00:00 2001 From: Nate Date: Sun, 22 Sep 2024 15:16:48 -0700 Subject: [PATCH 172/268] roll back change to slash commands to fix prompt files --- gui/src/redux/selectors/index.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gui/src/redux/selectors/index.ts b/gui/src/redux/selectors/index.ts index 7a941bb02..88f5c99bc 100644 --- a/gui/src/redux/selectors/index.ts +++ b/gui/src/redux/selectors/index.ts @@ -8,7 +8,7 @@ export const selectSlashCommands = createSelector( return ( slashCommands?.map((cmd) => { return { - title: `/${cmd.name.charAt(0).toUpperCase() + cmd.name.slice(1)}`, + title: `/${cmd.name}`, description: cmd.description, type: "slashCommand" as ComboBoxItemType, }; From 7eed894d714b62ee543bbc673fc265235bec1187 Mon Sep 17 00:00:00 2001 From: Test Date: Sun, 22 Sep 2024 20:03:51 -0700 Subject: [PATCH 173/268] check ollama status every 3s --- .../components/OnboardingCard/hooks/index.ts | 2 +- .../hooks/useCheckOllamaModels.ts | 58 ------------------- .../tabs/OnboardingLocalTab.tsx | 36 ++++++++++-- 3 files changed, 32 insertions(+), 64 deletions(-) delete mode 100644 gui/src/components/OnboardingCard/hooks/useCheckOllamaModels.ts diff --git a/gui/src/components/OnboardingCard/hooks/index.ts b/gui/src/components/OnboardingCard/hooks/index.ts index 88f66d231..f2340f5f6 100644 --- a/gui/src/components/OnboardingCard/hooks/index.ts +++ b/gui/src/components/OnboardingCard/hooks/index.ts @@ -1,2 +1,2 @@ -export * from "./useCheckOllamaModels"; export * from "./useSubmitOnboarding"; +export * from "./useOnboardingCard"; diff --git a/gui/src/components/OnboardingCard/hooks/useCheckOllamaModels.ts b/gui/src/components/OnboardingCard/hooks/useCheckOllamaModels.ts deleted file mode 100644 index 21bafe384..000000000 --- a/gui/src/components/OnboardingCard/hooks/useCheckOllamaModels.ts +++ /dev/null @@ -1,58 +0,0 @@ -import { useContext, useEffect, useRef } from "react"; -import { IdeMessengerContext } from "../../../context/IdeMessenger"; -import { ONBOARDING_LOCAL_MODEL_TITLE } from "core/config/onboarding"; - -const MAX_RETRIES = 10; -const INITIAL_DELAY = 1000; - -export const useCheckOllamaModels = ( - onDownloadedModels: (models: string[]) => void, -) => { - const ideMessenger = useContext(IdeMessengerContext); - const retryCountRef = useRef(0); - const timeoutRef = useRef(null); - - useEffect(() => { - const fetchDownloadedModels = async () => { - try { - const result = (await ideMessenger.request("llm/listModels", { - title: ONBOARDING_LOCAL_MODEL_TITLE, - })) as any; - - if (result.status === "success") { - const models = result.content; - - if (Array.isArray(models)) { - onDownloadedModels(models); - return; - } - } - - throw new Error("Failed to fetch models"); - } catch (error) { - if (retryCountRef.current < MAX_RETRIES) { - const delay = INITIAL_DELAY * Math.pow(2, retryCountRef.current); - console.debug( - `Failed to connect to Ollama - retrying in ${delay}ms...`, - ); - timeoutRef.current = setTimeout(() => { - retryCountRef.current += 1; - fetchDownloadedModels(); - }, delay); - } else { - console.debug( - `Max retries (${MAX_RETRIES}) reached. Unable to fetch Ollama models.`, - ); - } - } - }; - - fetchDownloadedModels(); - - return () => { - if (timeoutRef.current) { - clearTimeout(timeoutRef.current); - } - }; - }, [ideMessenger, onDownloadedModels]); -}; diff --git a/gui/src/components/OnboardingCard/tabs/OnboardingLocalTab.tsx b/gui/src/components/OnboardingCard/tabs/OnboardingLocalTab.tsx index 96753c59e..5dab35f7b 100644 --- a/gui/src/components/OnboardingCard/tabs/OnboardingLocalTab.tsx +++ b/gui/src/components/OnboardingCard/tabs/OnboardingLocalTab.tsx @@ -13,7 +13,9 @@ import { hasPassedFTL } from "../../../util/freeTrial"; import AddModelButtonSubtext from "../../AddModelButtonSubtext"; import OllamaModelDownload from "../components/OllamaModelDownload"; import { OllamaStatus } from "../components/OllamaStatus"; -import { useCheckOllamaModels, useSubmitOnboarding } from "../hooks"; +import { useSubmitOnboarding } from "../hooks"; + +const OLLAMA_CHECK_INTERVAL_MS = 3000; function OnboardingLocalTab() { const dispatch = useDispatch(); @@ -52,10 +54,34 @@ function OnboardingLocalTab() { } }, [downloadedOllamaModels, isOllamaConnected]); - useCheckOllamaModels((models) => { - setDownloadedOllamaModels(models); - setIsOllamaConnected(true); - }); + useEffect(() => { + const fetchDownloadedModels = async () => { + try { + const result = (await ideMessenger.request("llm/listModels", { + title: ONBOARDING_LOCAL_MODEL_TITLE, + })) as any; + + if (result.status === "success" && Array.isArray(result.content)) { + setDownloadedOllamaModels(result.content); + setIsOllamaConnected(true); + } else { + throw new Error("Failed to fetch models"); + } + } catch (error) { + console.error("Error fetching models:", error); + setIsOllamaConnected(false); + } + }; + + const intervalId = setInterval( + fetchDownloadedModels, + OLLAMA_CHECK_INTERVAL_MS, + ); + + fetchDownloadedModels(); + + return () => clearInterval(intervalId); + }, []); return (
From fa3afd52e766c298a9bfa62c57e8a9b6e695b1d6 Mon Sep 17 00:00:00 2001 From: lolikung Date: Mon, 23 Sep 2024 14:56:07 +0800 Subject: [PATCH 174/268] fix: config-types "useSuffix" to "useFileSuffix" --- packages/config-types/src/index.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/config-types/src/index.ts b/packages/config-types/src/index.ts index 822312969..14ff2b4bd 100644 --- a/packages/config-types/src/index.ts +++ b/packages/config-types/src/index.ts @@ -128,7 +128,7 @@ export type UiOptions = z.infer; export const tabAutocompleteOptionsSchema = z.object({ disable: z.boolean(), useCopyBuffer: z.boolean(), - useSuffix: z.boolean(), + useFileSuffix: z.boolean(), maxPromptTokens: z.number(), debounceDelay: z.number(), maxSuffixPercentage: z.number(), From 7f214adcbdca33ebb7270f721fd57eeeb0bac1e8 Mon Sep 17 00:00:00 2001 From: Shigma Date: Mon, 23 Sep 2024 18:02:31 +0800 Subject: [PATCH 175/268] fix: fix 100% indexing progress --- core/core.ts | 2 +- core/indexing/CodebaseIndexer.ts | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/core/core.ts b/core/core.ts index f33ab17d4..3e5129a62 100644 --- a/core/core.ts +++ b/core/core.ts @@ -140,7 +140,7 @@ export class Core { // Respect pauseCodebaseIndexOnStart user settings if (ideSettings.pauseCodebaseIndexOnStart) { await this.messenger.request("indexProgress", { - progress: 100, + progress: 1, desc: "Initial Indexing Skipped", status: "paused", }); diff --git a/core/indexing/CodebaseIndexer.ts b/core/indexing/CodebaseIndexer.ts index bc53539f4..bf16b2a5d 100644 --- a/core/indexing/CodebaseIndexer.ts +++ b/core/indexing/CodebaseIndexer.ts @@ -249,10 +249,11 @@ export class CodebaseIndexer { } } yield { - progress: 100, + progress: 1, desc: "Indexing Complete", status: "done", }; + this.logProgress(beginTime, 0, 1); } private handleErrorAndGetProgressUpdate( From f3f46e4275c709663ac4b1b814c25e0201961f6e Mon Sep 17 00:00:00 2001 From: Steve Rhoades Date: Mon, 23 Sep 2024 09:54:55 -0700 Subject: [PATCH 176/268] Refactor HttpContextProvider to support an array of ContextItems from the response --- core/context/providers/HttpContextProvider.ts | 17 +++++++++-------- 1 file changed, 9 insertions(+), 8 deletions(-) diff --git a/core/context/providers/HttpContextProvider.ts b/core/context/providers/HttpContextProvider.ts index a33bcb775..9e6aaa8c7 100644 --- a/core/context/providers/HttpContextProvider.ts +++ b/core/context/providers/HttpContextProvider.ts @@ -39,14 +39,15 @@ class HttpContextProvider extends BaseContextProvider { }), }); - const json: any = await response.json(); - return [ - { - description: json.description || "HTTP Context Item", - content: json.content || "", - name: json.name || this.options.title || "HTTP", - }, - ]; + const json = await response.json(); + + const createContextItem = (item: any) => ({ + description: item.description ?? "HTTP Context Item", + content: item.content ?? "", + name: item.name ?? this.options.title ?? "HTTP", + }); + + return Array.isArray(json) ? json.map(createContextItem) : [createContextItem(json)]; } } From c4281b275ab01a0925a0957ffdf32408ce52318a Mon Sep 17 00:00:00 2001 From: Steve Rhoades Date: Mon, 23 Sep 2024 10:11:25 -0700 Subject: [PATCH 177/268] add docs for http context provider --- docs/docs/customize/context-providers.md | 43 ++++++++++++++++++++++++ 1 file changed, 43 insertions(+) diff --git a/docs/docs/customize/context-providers.md b/docs/docs/customize/context-providers.md index daed6d63b..4891f85ec 100644 --- a/docs/docs/customize/context-providers.md +++ b/docs/docs/customize/context-providers.md @@ -435,6 +435,49 @@ Reference the architecture and platform of your current operating system. } ``` +### `@HTTP` + +The HttpContextProvider makes a POST request to the url passed in the configuration. The server must return 200 OK with a ContextItem object or an array of ContextItems. + +```json title="config.json" +{ + "contextProviders": [ + { + "name": "http", + "params": { + "url": "https://api.example.com/v1/users", + } + } + ] +} +``` + +The receiving URL should expect to receive the following parameters: +```json title="POST parameters" +{ + query: string, + fullInput: string +} +``` + +The response 200 OK should be a JSON object with the following structure: +```json title="Response" +[ + { + "name": "", + "description": "", + "content": "" + } +] + +// OR +{ + "name": "", + "description": "", + "content": "" +} +``` + ### 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 Context Provider. From 2376dafce325c87d87090e7cf995beffcb98d3b4 Mon Sep 17 00:00:00 2001 From: Test Date: Mon, 23 Sep 2024 11:33:35 -0700 Subject: [PATCH 178/268] feat: improve prompt log formatting + detail --- core/llm/index.ts | 32 +++++++++++++++++++++----------- 1 file changed, 21 insertions(+), 11 deletions(-) diff --git a/core/llm/index.ts b/core/llm/index.ts index ff950929e..fd36222c9 100644 --- a/core/llm/index.ts +++ b/core/llm/index.ts @@ -262,16 +262,29 @@ export abstract class BaseLLM implements ILLM { prompt: string, completionOptions: CompletionOptions, ): string { - const dict = { contextLength: this.contextLength, ...completionOptions }; - const settings = Object.entries(dict) - .map(([key, value]) => `${key}: ${value}`) - .join("\n"); - return `Settings: -${settings} + const completionOptionsLog = JSON.stringify( + { + contextLength: this.contextLength, + ...completionOptions, + }, + null, + 2, + ); -############################################ + let requestOptionsLog = ""; + if (this.requestOptions) { + requestOptionsLog = JSON.stringify(this.requestOptions, null, 2); + } -${prompt}`; + return ( + "##### Completion options #####\n" + + completionOptionsLog + + (requestOptionsLog + ? "\n\n##### Request options #####\n" + requestOptionsLog + : "") + + "\n\n##### Prompt #####\n" + + prompt + ); } private _logTokensGenerated( @@ -703,9 +716,6 @@ ${prompt}`; this.providerName, autodetectTemplateType(this.model), ); - if (!templateMessages) { - return rendered; - } return templateMessages(rendered); } return rendered; From 9f426035bcca9d8f628533a0183d2455644d48c2 Mon Sep 17 00:00:00 2001 From: Test Date: Mon, 23 Sep 2024 11:54:42 -0700 Subject: [PATCH 179/268] Update context-providers.md --- docs/docs/customize/context-providers.md | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/docs/docs/customize/context-providers.md b/docs/docs/customize/context-providers.md index daed6d63b..c186171f9 100644 --- a/docs/docs/customize/context-providers.md +++ b/docs/docs/customize/context-providers.md @@ -380,7 +380,13 @@ Reference table schemas from Sqlite, Postgres, and MySQL databases. } ``` -Each connection should include a unique name, the connection_type (e.g., postgres, sqlite), and the necessary connection parameters specific to each database type. +Each connection should include a unique name, the `connection_type`, and the necessary connection parameters specific to each database type. + +Available connection types: + +- `postgres` +- `mysql` +- `sqlite` ### `@Locals` From 666f4648f97fc066cb28ab50b83e4d7f2bdea905 Mon Sep 17 00:00:00 2001 From: Test Date: Mon, 23 Sep 2024 11:59:43 -0700 Subject: [PATCH 180/268] Update autodetect.ts --- core/llm/autodetect.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/core/llm/autodetect.ts b/core/llm/autodetect.ts index e87e7417e..31eccfc8f 100644 --- a/core/llm/autodetect.ts +++ b/core/llm/autodetect.ts @@ -74,6 +74,7 @@ const MODEL_SUPPORTS_IMAGES: string[] = [ "sonnet", "opus", "haiku", + "pixtral", ]; function modelSupportsImages( From 1c6dbc8b617b26cd8994f1b56adccee0f944e5c1 Mon Sep 17 00:00:00 2001 From: Nate Date: Mon, 23 Sep 2024 16:02:34 -0700 Subject: [PATCH 181/268] update tutorial file --- .prettierignore | 3 +- .../src/main/resources/continue_tutorial.py | 62 ++------ extensions/vscode/continue_tutorial.py | 76 ++------- .../providers/QuickActionsCodeLensProvider.ts | 6 +- .../providers/TutorialCodeLensProvider.ts | 144 ------------------ .../lang-server/codeLens/providers/index.ts | 2 +- .../codeLens/registerAllCodeLensProviders.ts | 8 +- 7 files changed, 37 insertions(+), 264 deletions(-) diff --git a/.prettierignore b/.prettierignore index fcb08552d..fbfae5c57 100644 --- a/.prettierignore +++ b/.prettierignore @@ -1,3 +1,4 @@ extensions/vscode/continue_rc_schema.json **/.continueignore -CHANGELOG.md \ No newline at end of file +CHANGELOG.md +**/continue_tutorial.py \ No newline at end of file diff --git a/extensions/intellij/src/main/resources/continue_tutorial.py b/extensions/intellij/src/main/resources/continue_tutorial.py index 87b5a7f45..e2a4d59e7 100644 --- a/extensions/intellij/src/main/resources/continue_tutorial.py +++ b/extensions/intellij/src/main/resources/continue_tutorial.py @@ -1,69 +1,33 @@ -""" -Welcome to Continue! +""" _________ _____ _____ + __ ____/______ _______ __ /____(_)_______ ____ _______ + _ / _ __ \__ __ \_ __/__ / __ __ \_ / / /_ _ \ + / /___ / /_/ /_ / / // /_ _ / _ / / // /_/ / / __/ + \____/ \____/ /_/ /_/ \__/ /_/ /_/ /_/ \__,_/ \___/ -_________ _____ _____ -__ ____/______ _______ __ /____(_)_______ ____ _______ -_ / _ __ \__ __ \_ __/__ / __ __ \_ / / /_ _ \ -/ /___ / /_/ /_ / / // /_ _ / _ / / // /_/ / / __/ -\____/ \____/ /_/ /_/ \__/ /_/ /_/ /_/ \__,_/ \___/ - -This is a 2 minute tutorial. - -It will walk you through two basic features: -1. Ask a question -2. Edit code + Chat, Edit, and Autocomplete tutorial """ -# region —————————————————————————— Part 1: Ask a question about code [⌘ J] —————————————————————————— +# ———————————————————— Chat [Cmd/Ctrl + J]: Ask "what sorting algorithm is this?" ———————————————————— - -"""Step 1: Highlight the function below""" - - -def mysterious_function(x): +def sorting_algorithm(x): for i in range(len(x)): for j in range(len(x) - 1): if x[j] > x[j + 1]: x[j], x[j + 1] = x[j + 1], x[j] - return x +# —————————————————— Edit [Cmd/Ctrl + I]: Tell Continue to "make this more readable" ————————————————— -"""Step 2: Use the keyboard shortcut [⌘ J] to -select the code and toggle the Continue input box""" - -"""Step 3: Ask a question and press enter""" -# e.g.) what does this function do? -# e.g.) what should I call this function? - -# endregion - - -# region ————————————————————————————————— Part 2: Edit code [⌘ I] ————————————————————————————————— - - -"""Step 1: Highlight this code""" - - -def bubble_sort(x): +def sorting_algorithm(x): for i in range(len(x)): for j in range(len(x) - 1): if x[j] > x[j + 1]: x[j], x[j + 1] = x[j + 1], x[j] - return x +# ——————————————— Autocomplete [Tab]: Place cursor after `:` below and press [Enter] ————————————————— -"""Step 2: Use the keyboard shortcut [⌘ I] to -select the code""" +# Basic assertion for sorting_algorithm: -"""Step 3: Type instructions to edit the code and press Enter""" -# e.g.) "optimize this function" -# e.g.) "edit write comments" -"""Step 4: Use keyboard shortcuts to -accept [⌥ ⇧ Y] or reject [⌥ ⇧ N] the edit""" - -# endregion - -# Ready to learn more? Check out the Continue documentation: https://docs.continue.dev \ No newline at end of file +"—————————————————— Learn more at https://docs.continue.dev/getting-started/overview ————————————————" \ No newline at end of file diff --git a/extensions/vscode/continue_tutorial.py b/extensions/vscode/continue_tutorial.py index fe52925cb..c10e5c209 100644 --- a/extensions/vscode/continue_tutorial.py +++ b/extensions/vscode/continue_tutorial.py @@ -1,79 +1,33 @@ -""" -_________ _____ _____ -__ ____/______ _______ __ /____(_)_______ ____ _______ -_ / _ __ \__ __ \_ __/__ / __ __ \_ / / /_ _ \ -/ /___ / /_/ /_ / / // /_ _ / _ / / // /_/ / / __/ -\____/ \____/ /_/ /_/ \__/ /_/ /_/ /_/ \__,_/ \___/ +""" _________ _____ _____ + __ ____/______ _______ __ /____(_)_______ ____ _______ + _ / _ __ \__ __ \_ __/__ / __ __ \_ / / /_ _ \ + / /___ / /_/ /_ / / // /_ _ / _ / / // /_/ / / __/ + \____/ \____/ /_/ /_/ \__/ /_/ /_/ /_/ \__,_/ \___/ -Welcome to Continue! This is a 2 minute tutorial. - -You can click the gray buttons, starting with "Highlight the function" to follow along. + Chat, Edit, and Autocomplete tutorial """ -# region —————————————————————————— Part 1: Ask a question about code [Cmd+L] —————————————————————————— +# ———————————————————— Chat [Cmd/Ctrl + L]: Ask "what sorting algorithm is this?" ———————————————————— - -"""Step 1: Highlight the function below""" - - -def mysterious_function(x): +def sorting_algorithm(x): for i in range(len(x)): for j in range(len(x) - 1): if x[j] > x[j + 1]: x[j], x[j + 1] = x[j + 1], x[j] - return x +# —————————————————— Edit [Cmd/Ctrl + I]: Tell Continue to "make this more readable" ————————————————— -"""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 [Cmd+I] ————————————————————————————————— - - -"""Step 1: Highlight this code""" - - -def mysterious_function(x): - n = len(x) - for i in range(n): - swapped = False - for j in range(0, n - i - 1): +def sorting_algorithm(x): + for i in range(len(x)): + for j in range(len(x) - 1): if x[j] > x[j + 1]: x[j], x[j + 1] = x[j + 1], x[j] - swapped = True - if swapped == False: - break return x +# ——————————————— Autocomplete [Tab]: Place cursor after `:` below and press [Enter] ————————————————— -"""Step 2: Use the keyboard shortcut [Cmd+I] to edit""" - -"""Step 3: Type "" and press Enter""" - -"""Step 4: Use keyboard shortcuts to -accept [Cmd+Shift+Enter] or reject [Cmd+Shift+Backspace] the edit""" - -# endregion - -# region ———————————————————————————— Part 3: Debug automatically [Cmd+Shift+R] ———————————————————————————— +# Basic assertion for sorting_algorithm: -"""Step 1: Run this Python file (it should error!)""" - - -def print_sum(list_to_print): - print(sum(list_to_print)) - - -"""Step 2: Use the keyboard shortcut [Cmd+Shift+R] -to automatically debug the error""" -print_sum(["a", "b", "c"]) - -# endregion - -# Ready to learn more? Check out the Continue documentation: https://docs.continue.dev +"—————————————————— Learn more at https://docs.continue.dev/getting-started/overview ————————————————" \ No newline at end of file diff --git a/extensions/vscode/src/lang-server/codeLens/providers/QuickActionsCodeLensProvider.ts b/extensions/vscode/src/lang-server/codeLens/providers/QuickActionsCodeLensProvider.ts index 8f0c8adfe..5f6748b61 100644 --- a/extensions/vscode/src/lang-server/codeLens/providers/QuickActionsCodeLensProvider.ts +++ b/extensions/vscode/src/lang-server/codeLens/providers/QuickActionsCodeLensProvider.ts @@ -6,7 +6,11 @@ import { CONTINUE_WORKSPACE_KEY, getContinueWorkspaceConfig, } from "../../../util/workspaceConfig"; -import { isTutorialFile } from "./TutorialCodeLensProvider"; + +const TUTORIAL_FILE_NAME = "continue_tutorial.py"; +function isTutorialFile(uri: vscode.Uri) { + return uri.fsPath.endsWith(TUTORIAL_FILE_NAME); +} export const ENABLE_QUICK_ACTIONS_KEY = "enableQuickActions"; diff --git a/extensions/vscode/src/lang-server/codeLens/providers/TutorialCodeLensProvider.ts b/extensions/vscode/src/lang-server/codeLens/providers/TutorialCodeLensProvider.ts index 28948417f..139597f9c 100644 --- a/extensions/vscode/src/lang-server/codeLens/providers/TutorialCodeLensProvider.ts +++ b/extensions/vscode/src/lang-server/codeLens/providers/TutorialCodeLensProvider.ts @@ -1,146 +1,2 @@ -import * as os from "node:os"; -import path from "path"; -import * as vscode from "vscode"; -import { getPlatform } from "../../../util/util"; -import { getExtensionUri } from "../../../util/vscode"; -import { QuickEditShowParams } from "../../../quickEdit/QuickEditQuickPick"; -interface TutorialCodeLensItems { - lineIncludes: string; - commands: vscode.Command[]; -} -const TUTORIAL_FILE_NAME = "continue_tutorial.py"; - -const cmdCtrl = getPlatform() === "mac" ? "Cmd" : "Ctrl"; - -const actions: TutorialCodeLensItems[] = [ - { - lineIncludes: `Step 2: Use the keyboard shortcut [${cmdCtrl}+L]`, - commands: [ - { - title: `${cmdCtrl}+L`, - command: "continue.focusContinueInput", - }, - ], - }, - { - lineIncludes: "Step 3: Ask a question", - commands: [ - { - title: `"what does this code do?"`, - command: "continue.sendMainUserInput", - arguments: ["what does this code do?"], - }, - { - title: `"what is an alternative to this?"`, - command: "continue.sendMainUserInput", - arguments: ["what is an alternative to this?"], - }, - ], - }, - { - lineIncludes: `Step 2: Use the keyboard shortcut [${cmdCtrl}+I] to edit`, - commands: [ - { - title: `${cmdCtrl}+I`, - command: "continue.quickEdit", - arguments: [{ initialPrompt: "Add comments" } as QuickEditShowParams], - }, - ], - }, - { - lineIncludes: "Step 1: Run this Python file", - commands: [ - { - title: "Run the file", - command: "continue.sendToTerminal", - arguments: [ - `python "${path.join( - getExtensionUri().fsPath, - "continue_tutorial.py", - )}"\n`, - ], - }, - ], - }, - { - lineIncludes: "Step 2: Use the keyboard shortcut cmd/ctrl + shift + R", - commands: [ - { - title: "Debug the error", - command: "continue.debugTerminal", - }, - ], - }, - { - lineIncludes: `Step 2: Use the keyboard shortcut [${cmdCtrl}+Shift+R]`, - commands: [ - { - title: `${cmdCtrl}+Shift+R`, - command: "continue.debugTerminal", - }, - ], - }, -]; - -export function isTutorialFile(uri: vscode.Uri) { - return uri.fsPath.endsWith(TUTORIAL_FILE_NAME); -} - -export class TutorialCodeLensProvider implements vscode.CodeLensProvider { - public provideCodeLenses( - document: vscode.TextDocument, - _: vscode.CancellationToken, - ): vscode.CodeLens[] | Thenable { - const codeLenses: vscode.CodeLens[] = []; - - if (!isTutorialFile(document.uri)) { - return codeLenses; - } - - const lines = document.getText().split(os.EOL); - - for (const action of actions) { - const lineOfAction = lines.findIndex((line) => - line.includes(action.lineIncludes), - ); - - if (lineOfAction >= 0) { - const range = new vscode.Range(lineOfAction, 0, lineOfAction + 1, 0); - for (const command of action.commands) { - codeLenses.push(new vscode.CodeLens(range, command)); - } - } - } - - const lineOf11 = lines.findIndex((line) => - line.includes("Step 1: Highlight the function below"), - ); - if (lineOf11 >= 0) { - const range = new vscode.Range(lineOf11, 0, lineOf11 + 1, 0); - codeLenses.push( - new vscode.CodeLens(range, { - title: "Highlight the function", - command: "continue.selectRange", - arguments: [lineOf11 + 3, lineOf11 + 11], - }), - ); - } - const lineOf21 = lines.findIndex((line) => - line.includes("Step 1: Highlight this code"), - ); - if (lineOf21 >= 0) { - const range = new vscode.Range(lineOf21, 0, lineOf21 + 1, 0); - codeLenses.push( - new vscode.CodeLens(range, { - title: "Highlight the function", - command: "continue.selectRange", - arguments: [lineOf21 + 3, lineOf21 + 14], - }), - ); - } - - return codeLenses; - } -} diff --git a/extensions/vscode/src/lang-server/codeLens/providers/index.ts b/extensions/vscode/src/lang-server/codeLens/providers/index.ts index f5bdfc4d7..599d63145 100644 --- a/extensions/vscode/src/lang-server/codeLens/providers/index.ts +++ b/extensions/vscode/src/lang-server/codeLens/providers/index.ts @@ -2,5 +2,5 @@ export { ConfigPyCodeLensProvider } from "./ConfigPyCodeLensProvider"; export { DiffViewerCodeLensProvider } from "./DiffViewerCodeLensProvider"; export { QuickActionsCodeLensProvider } from "./QuickActionsCodeLensProvider"; export { SuggestionsCodeLensProvider } from "./SuggestionsCodeLensProvider"; -export { TutorialCodeLensProvider } from "./TutorialCodeLensProvider"; export { VerticalPerLineCodeLensProvider } from "./VerticalPerLineCodeLensProvider"; + diff --git a/extensions/vscode/src/lang-server/codeLens/registerAllCodeLensProviders.ts b/extensions/vscode/src/lang-server/codeLens/registerAllCodeLensProviders.ts index 89066fbc8..cfaabde06 100644 --- a/extensions/vscode/src/lang-server/codeLens/registerAllCodeLensProviders.ts +++ b/extensions/vscode/src/lang-server/codeLens/registerAllCodeLensProviders.ts @@ -1,7 +1,7 @@ import { ContinueConfig } from "core"; import * as vscode from "vscode"; -import { VerticalDiffCodeLens } from "../../diff/verticalPerLine/manager"; import { DiffManager } from "../../diff/horizontal"; +import { VerticalDiffCodeLens } from "../../diff/verticalPerLine/manager"; import * as providers from "./providers"; import { getQuickActionsConfig, @@ -121,11 +121,6 @@ export function registerAllCodeLensProviders( new providers.ConfigPyCodeLensProvider(), ); - tutorialCodeLensDisposable = registerCodeLensProvider( - "*", - new providers.TutorialCodeLensProvider(), - ); - registerQuickActionsProvider(config, context); subscribeToVSCodeQuickActionsSettings(() => @@ -136,7 +131,6 @@ export function registerAllCodeLensProviders( context.subscriptions.push(suggestionsCodeLensDisposable); context.subscriptions.push(diffsCodeLensDisposable); context.subscriptions.push(configPyCodeLensDisposable); - context.subscriptions.push(tutorialCodeLensDisposable); return { verticalDiffCodeLens }; } From 870e18f34afb34bea305ade16722d16242c2b5d0 Mon Sep 17 00:00:00 2001 From: Nate Date: Mon, 23 Sep 2024 16:03:16 -0700 Subject: [PATCH 182/268] update changelog for tutorial file --- .changes/unreleased/Changed-20240923-160251.yaml | 4 ++++ .changes/unreleased/Changed-20240923-160302.yaml | 4 ++++ extensions/intellij/CHANGELOG.md | 4 ++++ extensions/vscode/CHANGELOG.md | 2 ++ 4 files changed, 14 insertions(+) create mode 100644 .changes/unreleased/Changed-20240923-160251.yaml create mode 100644 .changes/unreleased/Changed-20240923-160302.yaml diff --git a/.changes/unreleased/Changed-20240923-160251.yaml b/.changes/unreleased/Changed-20240923-160251.yaml new file mode 100644 index 000000000..5cef25bab --- /dev/null +++ b/.changes/unreleased/Changed-20240923-160251.yaml @@ -0,0 +1,4 @@ +project: extensions/intellij +kind: Changed +body: Updated tutorial file +time: 2024-09-23T16:02:51.918152-07:00 diff --git a/.changes/unreleased/Changed-20240923-160302.yaml b/.changes/unreleased/Changed-20240923-160302.yaml new file mode 100644 index 000000000..55cb8a77a --- /dev/null +++ b/.changes/unreleased/Changed-20240923-160302.yaml @@ -0,0 +1,4 @@ +project: extensions/vscode +kind: Changed +body: Updated tutorial file +time: 2024-09-23T16:03:02.944462-07:00 diff --git a/extensions/intellij/CHANGELOG.md b/extensions/intellij/CHANGELOG.md index 7ed8107f4..3483adeb9 100644 --- a/extensions/intellij/CHANGELOG.md +++ b/extensions/intellij/CHANGELOG.md @@ -5,6 +5,10 @@ adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html), and is generated by [Changie](https://github.com/miniscruff/changie). +Pre-release Changes +### Changed +* Updated tutorial file + ## 0.0.69 - 2024-09-22 ### Added * Support for the "search" context provider diff --git a/extensions/vscode/CHANGELOG.md b/extensions/vscode/CHANGELOG.md index 95ea80d30..ffa85e2d1 100644 --- a/extensions/vscode/CHANGELOG.md +++ b/extensions/vscode/CHANGELOG.md @@ -6,6 +6,8 @@ and is generated by [Changie](https://github.com/miniscruff/changie). Pre-release Changes +### Changed +* Updated tutorial file ### Fixed * Continue for teams auth bug fix From f2328b5fe09be6936c3738ff9cba5f0e693f81c9 Mon Sep 17 00:00:00 2001 From: Test Date: Mon, 23 Sep 2024 16:29:11 -0700 Subject: [PATCH 183/268] Update troubleshooting.md --- docs/docs/troubleshooting.md | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/docs/docs/troubleshooting.md b/docs/docs/troubleshooting.md index 8852cf3f4..d3933f6f9 100644 --- a/docs/docs/troubleshooting.md +++ b/docs/docs/troubleshooting.md @@ -122,6 +122,10 @@ If you are having persistent errors with indexing, our recommendation is to rebu This can be accomplished using the following command: `Continue: Rebuild codebase index`. +### Android Studio - "Nothing to show" in Chat + +This can be fixed by selecting `Actions > Choose Boot runtime for the IDE` then selecting the latest version, and then restarting Android Studio. [See this thread](https://github.com/continuedev/continue/issues/2280#issuecomment-2365231567) for details. + ## Still having trouble? You can also join our Discord community [here](https://discord.gg/vapESyrFmJ) for additional support and discussions. Alternatively, you can create a GitHub issue [here](https://github.com/continuedev/continue/issues/new?assignees=&labels=bug&projects=&template=bug-report-%F0%9F%90%9B.md&title=), providing details of your problem, and we'll be able to help you out more quickly. From b32c36fb9b8d7f53cba302526e51524951643418 Mon Sep 17 00:00:00 2001 From: Test Date: Mon, 23 Sep 2024 16:56:09 -0700 Subject: [PATCH 184/268] updated configs --- docs/static/schemas/config.json | 8 ++++++++ extensions/intellij/src/main/resources/config_schema.json | 7 +++++++ extensions/vscode/continue_rc_schema.json | 7 +++++++ 3 files changed, 22 insertions(+) diff --git a/docs/static/schemas/config.json b/docs/static/schemas/config.json index 911278ebb..176bbd295 100644 --- a/docs/static/schemas/config.json +++ b/docs/static/schemas/config.json @@ -1044,6 +1044,7 @@ "llama2-70b", "mistral-8x7b", "gemma", + "gemma2", "llama3-8b", "llama3-70b", "llama3.1-8b", @@ -2114,6 +2115,13 @@ "minimum": 128, "exclusiveMaximum": 2147483647 }, + "maxBatchSize": { + "title": "Maximum Batch Size", + "description": "The maximum number of chunks that can be sent to the embeddings provider in a single request", + "type": "integer", + "minimum": 1, + "exclusiveMaximum": 2147483647 + }, "region": { "title": "Region", "description": "The region where the model is hosted", diff --git a/extensions/intellij/src/main/resources/config_schema.json b/extensions/intellij/src/main/resources/config_schema.json index 5a20c6daf..176bbd295 100644 --- a/extensions/intellij/src/main/resources/config_schema.json +++ b/extensions/intellij/src/main/resources/config_schema.json @@ -2115,6 +2115,13 @@ "minimum": 128, "exclusiveMaximum": 2147483647 }, + "maxBatchSize": { + "title": "Maximum Batch Size", + "description": "The maximum number of chunks that can be sent to the embeddings provider in a single request", + "type": "integer", + "minimum": 1, + "exclusiveMaximum": 2147483647 + }, "region": { "title": "Region", "description": "The region where the model is hosted", diff --git a/extensions/vscode/continue_rc_schema.json b/extensions/vscode/continue_rc_schema.json index 7a7e54764..8a1c0bca0 100644 --- a/extensions/vscode/continue_rc_schema.json +++ b/extensions/vscode/continue_rc_schema.json @@ -2356,6 +2356,13 @@ "minimum": 128, "exclusiveMaximum": 2147483647 }, + "maxBatchSize": { + "title": "Maximum Batch Size", + "description": "The maximum number of chunks that can be sent to the embeddings provider in a single request", + "type": "integer", + "minimum": 1, + "exclusiveMaximum": 2147483647 + }, "region": { "title": "Region", "description": "The region where the model is hosted", From 5105645dedec92abd3fc613777f60fd2a638a0ab Mon Sep 17 00:00:00 2001 From: Test Date: Mon, 23 Sep 2024 18:25:56 -0700 Subject: [PATCH 185/268] fix: add new UI breakpoints --- .../OnboardingCard/OnboardingCard.tsx | 5 +- .../components/BestExperienceConfigForm.tsx | 10 +- .../components/OllamaCompletedStep.tsx | 2 +- .../components/OllamaModelDownload.tsx | 2 +- .../components/OllamaStatus.tsx | 4 +- .../components/OnboardingCardTabs.tsx | 85 +++++++++---- .../components/ProviderAlert.tsx | 2 +- .../OnboardingCard/tabs/OnboardingBestTab.tsx | 4 +- .../tabs/OnboardingQuickstartTab.tsx | 10 +- gui/src/components/gui/StepContainer.tsx | 6 +- gui/src/components/mainInput/InputToolbar.tsx | 24 ++-- .../components/modelSelection/ModelSelect.tsx | 118 +++++++++--------- gui/tailwind.config.cjs | 9 +- 13 files changed, 166 insertions(+), 115 deletions(-) diff --git a/gui/src/components/OnboardingCard/OnboardingCard.tsx b/gui/src/components/OnboardingCard/OnboardingCard.tsx index 251ff7b1c..aba23e14a 100644 --- a/gui/src/components/OnboardingCard/OnboardingCard.tsx +++ b/gui/src/components/OnboardingCard/OnboardingCard.tsx @@ -9,7 +9,6 @@ import { useOnboardingCard } from "./hooks/useOnboardingCard"; const StyledCard = styled.div` margin: auto; border-radius: ${defaultBorderRadius}; - padding: 1rem 1.5rem; background-color: ${vscInputBackground}; box-shadow: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1); @@ -43,13 +42,13 @@ export function OnboardingCard(props: OnboardingCardProps) { } return ( - + - +
{renderTabContent()}
diff --git a/gui/src/components/OnboardingCard/components/BestExperienceConfigForm.tsx b/gui/src/components/OnboardingCard/components/BestExperienceConfigForm.tsx index ee061e1f9..f38fbaccd 100644 --- a/gui/src/components/OnboardingCard/components/BestExperienceConfigForm.tsx +++ b/gui/src/components/OnboardingCard/components/BestExperienceConfigForm.tsx @@ -65,13 +65,13 @@ function BestExperienceConfigForm({
{chatModel.title}{" "} - by Anthropic + by Anthropic
@@ -99,13 +99,13 @@ function BestExperienceConfigForm({
{autocompleteModel.title}{" "} - by Mistral + by Mistral
@@ -129,7 +129,7 @@ function BestExperienceConfigForm({
-
+
diff --git a/gui/src/components/OnboardingCard/components/OllamaCompletedStep.tsx b/gui/src/components/OnboardingCard/components/OllamaCompletedStep.tsx index ee3eb942c..44c5c5caa 100644 --- a/gui/src/components/OnboardingCard/components/OllamaCompletedStep.tsx +++ b/gui/src/components/OnboardingCard/components/OllamaCompletedStep.tsx @@ -7,7 +7,7 @@ interface OllamaCompletedStepProps { function OllamaCompletedStep({ text }: OllamaCompletedStepProps) { return (
-

{text}

+

{text}

); diff --git a/gui/src/components/OnboardingCard/components/OllamaModelDownload.tsx b/gui/src/components/OnboardingCard/components/OllamaModelDownload.tsx index 37831a70f..721807c6a 100644 --- a/gui/src/components/OnboardingCard/components/OllamaModelDownload.tsx +++ b/gui/src/components/OnboardingCard/components/OllamaModelDownload.tsx @@ -35,7 +35,7 @@ function OllamaModelDownload({ ) : ( <> -

{command}

+

{command}

{tooltipPortalDiv && diff --git a/gui/src/components/OnboardingCard/components/OllamaStatus.tsx b/gui/src/components/OnboardingCard/components/OllamaStatus.tsx index 9cc323ec6..39bd7978c 100644 --- a/gui/src/components/OnboardingCard/components/OllamaStatus.tsx +++ b/gui/src/components/OnboardingCard/components/OllamaStatus.tsx @@ -35,14 +35,14 @@ export function OllamaStatus({ isOllamaConnected }: OllamaStatusProps) { case OllamaConnectionStatuses.WaitingToDownload: return ( -

{downloadUrl}

+

{downloadUrl}

); case OllamaConnectionStatuses.Downloading: return (
-

+

Checking for connection to Ollama at http://localhost:11434

diff --git a/gui/src/components/OnboardingCard/components/OnboardingCardTabs.tsx b/gui/src/components/OnboardingCard/components/OnboardingCardTabs.tsx index 7e7fcdcee..d44524cb5 100644 --- a/gui/src/components/OnboardingCard/components/OnboardingCardTabs.tsx +++ b/gui/src/components/OnboardingCard/components/OnboardingCardTabs.tsx @@ -9,23 +9,39 @@ interface OnboardingCardTabsProps { export type TabTitle = "Quickstart" | "Best" | "Local"; -export const TabTitles: { [k in TabTitle]: { xs: string; default: string } } = { +export const TabTitles: { [k in TabTitle]: { md: string; default: string } } = { Quickstart: { - xs: "Quickstart", + md: "Quickstart", default: "Quickstart", }, Best: { - xs: "Best", + md: "Best", default: "Best experience", }, Local: { - xs: "Local", + md: "Local", default: "Local with Ollama", }, }; +const StyledSelect = styled.select` + width: 100%; + padding: 0.5rem; + background-color: transparent; + color: ${vscForeground}; + border: none; + border-bottom: 1px solid ${vscForeground}; + border-radius: 0; + font-size: 1rem; + cursor: pointer; + display: block; + + &:focus { + outline: none; + } +`; + const TabButton = styled.button<{ isActive: boolean }>` - padding: 1rem 1rem 0.5rem 1rem; margin-bottom: -1px; focus: outline-none; background: transparent; @@ -54,23 +70,48 @@ export function OnboardingCardTabs({ onTabClick, }: OnboardingCardTabsProps) { return ( - - {Object.entries(TabTitles).map(([tabType, titles]) => { - if (hasPassedFTL() && tabType === "Quickstart") { - return undefined; - } +
+
+ + {Object.entries(TabTitles).map(([tabType, titles]) => { + if (hasPassedFTL() && tabType === "Quickstart") { + return undefined; + } - return ( - onTabClick(tabType as TabTitle)} - > -

{titles.default}

-

{titles.xs}

-
- ); - })} -
+ return ( + onTabClick(tabType as TabTitle)} + > +

+ {titles.default} +

+

{titles.md}

+
+ ); + })} + +
+
+ onTabClick(e.target.value as TabTitle)} + > + {Object.entries(TabTitles).map(([tabType, titles]) => { + if (hasPassedFTL() && tabType === "Quickstart") { + return null; + } + + return ( + + ); + })} + +
+
); } diff --git a/gui/src/components/OnboardingCard/components/ProviderAlert.tsx b/gui/src/components/OnboardingCard/components/ProviderAlert.tsx index dd1e9f339..8c2c1ca6f 100644 --- a/gui/src/components/OnboardingCard/components/ProviderAlert.tsx +++ b/gui/src/components/OnboardingCard/components/ProviderAlert.tsx @@ -17,7 +17,7 @@ function ProviderAlert() { } return ( -
+

Prefer to use an different provider like OpenAI? diff --git a/gui/src/components/OnboardingCard/tabs/OnboardingBestTab.tsx b/gui/src/components/OnboardingCard/tabs/OnboardingBestTab.tsx index 0f5e5f441..d5b372245 100644 --- a/gui/src/components/OnboardingCard/tabs/OnboardingBestTab.tsx +++ b/gui/src/components/OnboardingCard/tabs/OnboardingBestTab.tsx @@ -7,7 +7,9 @@ function OnboardingBestTab() { return (

- +
+ +
); diff --git a/gui/src/components/OnboardingCard/tabs/OnboardingQuickstartTab.tsx b/gui/src/components/OnboardingCard/tabs/OnboardingQuickstartTab.tsx index f0eadf43b..ff77e18e8 100644 --- a/gui/src/components/OnboardingCard/tabs/OnboardingQuickstartTab.tsx +++ b/gui/src/components/OnboardingCard/tabs/OnboardingQuickstartTab.tsx @@ -3,18 +3,18 @@ import QuickStartSubmitButton from "../components/QuickStartSubmitButton"; function OnboardingQuickstartTab() { return ( -
-
-
+
+
+
-

+

Quickly get up and running using our API keys. After this trial, we'll help you set up your own models.

-

+

To prevent abuse, we'll ask you to sign in to GitHub.

diff --git a/gui/src/components/gui/StepContainer.tsx b/gui/src/components/gui/StepContainer.tsx index 48f8cbc2a..9354a73b5 100644 --- a/gui/src/components/gui/StepContainer.tsx +++ b/gui/src/components/gui/StepContainer.tsx @@ -124,14 +124,14 @@ function StepContainer(props: StepContainerProps) { {(props.isLast || isHovered || typeof feedback !== "undefined") && !active && (
{props.modelTitle && ( - <> +
{props.modelTitle}
- +
)} {truncatedEarly && ( diff --git a/gui/src/components/mainInput/InputToolbar.tsx b/gui/src/components/mainInput/InputToolbar.tsx index a95a71502..907ff7fed 100644 --- a/gui/src/components/mainInput/InputToolbar.tsx +++ b/gui/src/components/mainInput/InputToolbar.tsx @@ -207,17 +207,19 @@ function InputToolbar(props: InputToolbarProps) { {getMetaKeyLabel()} ⏎ Use @codebase )} - { - props.onEnter({ - useCodebase: isMetaEquivalentKeyPressed(e), - noContext: useActiveFile ? e.altKey : !e.altKey, - }); - }} - > - ⏎ Enter - +
+ { + props.onEnter({ + useCodebase: isMetaEquivalentKeyPressed(e), + noContext: useActiveFile ? e.altKey : !e.altKey, + }); + }} + > + ⏎ Enter + +
diff --git a/gui/src/components/modelSelection/ModelSelect.tsx b/gui/src/components/modelSelection/ModelSelect.tsx index 548d83537..cfa3a2fe1 100644 --- a/gui/src/components/modelSelection/ModelSelect.tsx +++ b/gui/src/components/modelSelection/ModelSelect.tsx @@ -304,65 +304,67 @@ function ModelSelect() { } return ( - { - if (val === defaultModel?.title) return; - dispatch(setDefaultModel({ title: val })); - await ideMessenger.request("update/modelChange", val); - }} - > -
- - - {modelSelectTitle(defaultModel) || "Select model"}{" "} - - - -
- {sortedOptions.map((option, idx) => ( - 1} - showMissingApiKeyMsg={option.apiKey === ""} - /> - ))} -
- -
- {selectedProfileId === "local" && ( - <> - {options.length > 0 && } - - -
- - Add Chat model -
-
- - )} - - - - - {getMetaKeyLabel()} + ' to toggle +
+ { + if (val === defaultModel?.title) return; + dispatch(setDefaultModel({ title: val })); + await ideMessenger.request("update/modelChange", val); + }} + > +
+ + + {modelSelectTitle(defaultModel) || "Select model"}{" "} + -
- -
- + + +
+ {sortedOptions.map((option, idx) => ( + 1} + showMissingApiKeyMsg={option.apiKey === ""} + /> + ))} +
+ +
+ {selectedProfileId === "local" && ( + <> + {options.length > 0 && } + + +
+ + Add Chat model +
+
+ + )} + + + + + {getMetaKeyLabel()} + ' to toggle + +
+
+
+ +
); } diff --git a/gui/tailwind.config.cjs b/gui/tailwind.config.cjs index 26c9495f5..ffea05a7d 100644 --- a/gui/tailwind.config.cjs +++ b/gui/tailwind.config.cjs @@ -9,8 +9,13 @@ module.exports = { ], theme: { screens: { - xs: "425px", - ...defaultTheme.screens, + xxs: "170px", // Smallest width for Primary Sidebar in VS Code + xs: "250px", // Default sidebar width in VS Code + sm: "320px", + md: "480px", + lg: "640px", // Tailwind's default 'sm' + xl: "768px", // Tailwind's default 'md' + "2xl": "1024px", // Tailwind's default 'lg' }, extend: { animation: { From 49261a611788784fe7f2b91630764dcfb4f6cf72 Mon Sep 17 00:00:00 2001 From: Test Date: Mon, 23 Sep 2024 18:36:20 -0700 Subject: [PATCH 186/268] remove input toolbar on smallest breakpoint --- gui/src/components/mainInput/InputToolbar.tsx | 2 +- gui/src/components/mainInput/TipTapEditor.tsx | 1 + .../components/modelSelection/ModelSelect.tsx | 118 +++++++++--------- 3 files changed, 60 insertions(+), 61 deletions(-) diff --git a/gui/src/components/mainInput/InputToolbar.tsx b/gui/src/components/mainInput/InputToolbar.tsx index 907ff7fed..367741b27 100644 --- a/gui/src/components/mainInput/InputToolbar.tsx +++ b/gui/src/components/mainInput/InputToolbar.tsx @@ -28,7 +28,6 @@ import ModelSelect from "../modelSelection/ModelSelect"; const StyledDiv = styled.div<{ isHidden: boolean }>` padding: 4px 0; - display: flex; justify-content: space-between; gap: 1px; background-color: ${vscInputBackground}; @@ -110,6 +109,7 @@ function InputToolbar(props: InputToolbarProps) { isHidden={props.hidden} onClick={props.onClick} id="input-toolbar" + className="hidden xs:flex" > diff --git a/gui/src/components/mainInput/TipTapEditor.tsx b/gui/src/components/mainInput/TipTapEditor.tsx index 2fc543907..a57d19bda 100644 --- a/gui/src/components/mainInput/TipTapEditor.tsx +++ b/gui/src/components/mainInput/TipTapEditor.tsx @@ -894,6 +894,7 @@ function TipTapEditor(props: TipTapEditorProps) { }); }} /> + {showDragOverMsg && modelSupportsImages( defaultModel.provider, diff --git a/gui/src/components/modelSelection/ModelSelect.tsx b/gui/src/components/modelSelection/ModelSelect.tsx index cfa3a2fe1..548d83537 100644 --- a/gui/src/components/modelSelection/ModelSelect.tsx +++ b/gui/src/components/modelSelection/ModelSelect.tsx @@ -304,67 +304,65 @@ function ModelSelect() { } return ( -
- { - if (val === defaultModel?.title) return; - dispatch(setDefaultModel({ title: val })); - await ideMessenger.request("update/modelChange", val); - }} - > -
- - - {modelSelectTitle(defaultModel) || "Select model"}{" "} -
+ +
+
); } From 423926e507a5c373b01246c99a844ae1da927499 Mon Sep 17 00:00:00 2001 From: Test Date: Mon, 23 Sep 2024 19:01:05 -0700 Subject: [PATCH 187/268] Update CodeBlockToolbar.tsx --- gui/src/components/markdown/CodeBlockToolbar.tsx | 15 ++++++++++----- 1 file changed, 10 insertions(+), 5 deletions(-) diff --git a/gui/src/components/markdown/CodeBlockToolbar.tsx b/gui/src/components/markdown/CodeBlockToolbar.tsx index 5fdb5880c..417d33dbb 100644 --- a/gui/src/components/markdown/CodeBlockToolbar.tsx +++ b/gui/src/components/markdown/CodeBlockToolbar.tsx @@ -28,6 +28,7 @@ import FileIcon from "../FileIcon"; import ButtonWithTooltip from "../ButtonWithTooltip"; import { CopyButton as CopyButtonHeader } from "./CopyButton"; import { ToolbarButtonWithTooltip } from "./ToolbarButtonWithTooltip"; +import { getBasename } from "core/util"; const ToolbarDiv = styled.div` display: flex; @@ -217,11 +218,15 @@ function CodeBlockToolBar(props: CodeBlockToolBarProps) { return (
- {props.filepath}{" "} +
+ + {getBasename(props.filepath)} + +
@@ -233,12 +238,12 @@ function CodeBlockToolBar(props: CodeBlockToolBarProps) { {isCopied ? ( <> - Copied + Copied ) : ( <> - Copy + Copy )}
@@ -256,7 +261,7 @@ function CodeBlockToolBar(props: CodeBlockToolBarProps) { style={{ color: lightGray }} > - Apply + Apply
) : ( From 1dc139a2062eec57582f1141c144f9958a11a28d Mon Sep 17 00:00:00 2001 From: Nate Date: Tue, 24 Sep 2024 00:35:54 -0700 Subject: [PATCH 188/268] improved redirect URL --- .../vscode/src/stubs/WorkOsAuthProvider.ts | 16 +++++++++++++++- 1 file changed, 15 insertions(+), 1 deletion(-) diff --git a/extensions/vscode/src/stubs/WorkOsAuthProvider.ts b/extensions/vscode/src/stubs/WorkOsAuthProvider.ts index ce3af8ff7..df799c7d3 100644 --- a/extensions/vscode/src/stubs/WorkOsAuthProvider.ts +++ b/extensions/vscode/src/stubs/WorkOsAuthProvider.ts @@ -22,6 +22,10 @@ const CLIENT_ID = process.env.CONTROL_PLANE_ENV === "local" ? "client_01J0FW6XCPMJMQ3CG51RB4HBZQ" : "client_01J0FW6XN8N2XJAECF7NE0Y65J"; +const APP_URL = + process.env.CONTROL_PLANE_ENV === "local" + ? "http://localhost:3000" + : "https://app.continue.dev"; const SESSIONS_SECRET_KEY = `${AUTH_TYPE}.sessions`; class UriEventHandler extends EventEmitter implements UriHandler { @@ -122,12 +126,22 @@ export class WorkOsAuthProvider implements AuthenticationProvider, Disposable { return this._sessionChangeEmitter.event; } - get redirectUri() { + get ideRedirectUri() { const publisher = this.context.extension.packageJSON.publisher; const name = this.context.extension.packageJSON.name; return `${env.uriScheme}://${publisher}.${name}`; } + get redirectUri() { + if (env.uriScheme === "vscode-insiders" || env.uriScheme === "vscode") { + // We redirect to a page that says "you can close this page", and that page finishes the redirect + const url = new URL(APP_URL); + url.pathname = `/auth/${env.uriScheme}-redirect`; + return url.toString(); + } + return this.ideRedirectUri; + } + async initialize() { this._sessions = await this.getSessions(); await this._refreshSessions(); From 8d1aeaca59d36a2365543704c6254c33d0c99e8f Mon Sep 17 00:00:00 2001 From: Tijs Zwinkels Date: Tue, 24 Sep 2024 12:21:08 +0200 Subject: [PATCH 189/268] Anthropic prompt caching --- core/llm/llms/Anthropic.ts | 53 +++++++++++++++++++++++++++++++++----- 1 file changed, 46 insertions(+), 7 deletions(-) diff --git a/core/llm/llms/Anthropic.ts b/core/llm/llms/Anthropic.ts index 654d50805..4d4bfbca1 100644 --- a/core/llm/llms/Anthropic.ts +++ b/core/llm/llms/Anthropic.ts @@ -35,17 +35,36 @@ class Anthropic extends BaseLLM { } private _convertMessages(msgs: ChatMessage[]): any[] { - const messages = msgs - .filter((m) => m.role !== "system") - .map((message) => { + const filteredmessages = msgs.filter((m) => m.role !== "system") + const lastTwoUserMsgIndices = filteredmessages + .map((msg, index) => (msg.role === "user" ? index : -1)) + .filter((index) => index !== -1).slice(-2); + + const messages = filteredmessages.map((message, idx) => { + const addCachingHeader = lastTwoUserMsgIndices.includes(idx); + if (typeof message.content === "string") { - return message; + var chatMessage = {...message, + content: [{ + type: "text", + text: message.content, + ...(addCachingHeader? { cache_control: { type: "ephemeral" } } : {}) + }] + }; + return chatMessage; } + return { ...message, - content: message.content.map((part) => { + content: message.content.map((part, contentIdx) => { if (part.type === "text") { - return part; + const newpart = { + ...part, + // Add caching header to the last content part of the last two user messages + ...((addCachingHeader && contentIdx == message.content.length - 1) ? { cache_control: { type: "ephemeral" } } : {}) + }; + console.log(newpart); + return newpart; } return { type: "image", @@ -76,7 +95,23 @@ class Anthropic extends BaseLLM { options: CompletionOptions, ): AsyncGenerator { const shouldCacheSystemMessage = - !!this.systemMessage && !!this.cacheSystemMessage; + !!this.cacheSystemMessage; + + const body = JSON.stringify({ + ...this._convertArgs(options), + messages: this._convertMessages(messages), + system: shouldCacheSystemMessage + ? [ + { + type: "text", + text: this.systemMessage, + cache_control: { type: "ephemeral" }, + }, + ] + : this.systemMessage, + }); + + console.log("request body:", JSON.stringify(body, null, 2)); const systemMessage: string = stripImages( messages.filter((m) => m.role === "system")[0]?.content, @@ -108,6 +143,9 @@ class Anthropic extends BaseLLM { }), }); + console.log("headers:", Object.fromEntries(response.headers.entries())); + // console.log("response body:", JSON.stringify(await response.json(), null, 2)); + if (options.stream === false) { const data = await response.json(); yield { role: "assistant", content: data.content[0].text }; @@ -115,6 +153,7 @@ class Anthropic extends BaseLLM { } for await (const value of streamSse(response)) { + if (value.type == "message_start") console.log(value); if (value.delta?.text) { yield { role: "assistant", content: value.delta.text }; } From 9bd5619438ffea5b1316f760721ffc62deb29713 Mon Sep 17 00:00:00 2001 From: Tijs Zwinkels Date: Tue, 24 Sep 2024 12:28:39 +0200 Subject: [PATCH 190/268] Cleanup + add clarifying comments --- core/llm/llms/Anthropic.ts | 35 +++++++++++++++++------------------ 1 file changed, 17 insertions(+), 18 deletions(-) diff --git a/core/llm/llms/Anthropic.ts b/core/llm/llms/Anthropic.ts index 4d4bfbca1..7439f1419 100644 --- a/core/llm/llms/Anthropic.ts +++ b/core/llm/llms/Anthropic.ts @@ -40,17 +40,22 @@ class Anthropic extends BaseLLM { .map((msg, index) => (msg.role === "user" ? index : -1)) .filter((index) => index !== -1).slice(-2); - const messages = filteredmessages.map((message, idx) => { - const addCachingHeader = lastTwoUserMsgIndices.includes(idx); + const messages = filteredmessages.map((message, filteredMsgIdx) => { + // Add cache_control parameter to the last two user messages + // The second-to-last because it retrieves potentially already cached contents, + // The last one because we want it cached for later retrieval. + // See: https://docs.anthropic.com/en/docs/build-with-claude/prompt-caching + const addCaching = lastTwoUserMsgIndices.includes(filteredMsgIdx); if (typeof message.content === "string") { - var chatMessage = {...message, - content: [{ - type: "text", - text: message.content, - ...(addCachingHeader? { cache_control: { type: "ephemeral" } } : {}) - }] - }; + var chatMessage = { + ...message, + content: [{ + type: "text", + text: message.content, + ...(addCaching? { cache_control: { type: "ephemeral" } } : {}) + }] + }; return chatMessage; } @@ -60,10 +65,9 @@ class Anthropic extends BaseLLM { if (part.type === "text") { const newpart = { ...part, - // Add caching header to the last content part of the last two user messages - ...((addCachingHeader && contentIdx == message.content.length - 1) ? { cache_control: { type: "ephemeral" } } : {}) + // If multiple text parts, only add cache_control to the last one + ...((addCaching && contentIdx == message.content.length - 1) ? { cache_control: { type: "ephemeral" } } : {}) }; - console.log(newpart); return newpart; } return { @@ -111,8 +115,6 @@ class Anthropic extends BaseLLM { : this.systemMessage, }); - console.log("request body:", JSON.stringify(body, null, 2)); - const systemMessage: string = stripImages( messages.filter((m) => m.role === "system")[0]?.content, ); @@ -143,9 +145,6 @@ class Anthropic extends BaseLLM { }), }); - console.log("headers:", Object.fromEntries(response.headers.entries())); - // console.log("response body:", JSON.stringify(await response.json(), null, 2)); - if (options.stream === false) { const data = await response.json(); yield { role: "assistant", content: data.content[0].text }; @@ -153,7 +152,7 @@ class Anthropic extends BaseLLM { } for await (const value of streamSse(response)) { - if (value.type == "message_start") console.log(value); + // if (value.type == "message_start") console.log(value); if (value.delta?.text) { yield { role: "assistant", content: value.delta.text }; } From 4838cfceb99c9496194991dc20c70c1324f00099 Mon Sep 17 00:00:00 2001 From: Tijs Zwinkels Date: Tue, 24 Sep 2024 12:44:32 +0200 Subject: [PATCH 191/268] Make configurable and update documentation --- core/config/types.ts | 1 + core/index.d.ts | 1 + core/llm/index.ts | 2 ++ core/llm/llms/Anthropic.ts | 4 ++-- .../customize/model-providers/top-level/anthropic.md | 4 +++- docs/static/schemas/config.json | 9 +++++++++ .../intellij/src/main/resources/config_schema.json | 9 +++++++++ extensions/vscode/config_schema.json | 9 +++++++++ extensions/vscode/continue_rc_schema.json | 9 +++++++++ 9 files changed, 45 insertions(+), 3 deletions(-) diff --git a/core/config/types.ts b/core/config/types.ts index c571b44df..98cc7ccb5 100644 --- a/core/config/types.ts +++ b/core/config/types.ts @@ -343,6 +343,7 @@ declare global { watsonxApiVersion?: string; cacheSystemMessage?: boolean; + cacheConversation?: boolean; } type RequireAtLeastOne = Pick< T, diff --git a/core/index.d.ts b/core/index.d.ts index 16c48a3ad..44fea298c 100644 --- a/core/index.d.ts +++ b/core/index.d.ts @@ -371,6 +371,7 @@ export interface LLMOptions { watsonxFullUrl?: string; cacheSystemMessage?: boolean; + cacheConversation?: boolean; } type RequireAtLeastOne = Pick< T, diff --git a/core/llm/index.ts b/core/llm/index.ts index fd36222c9..ab1b7e652 100644 --- a/core/llm/index.ts +++ b/core/llm/index.ts @@ -121,6 +121,7 @@ export abstract class BaseLLM implements ILLM { watsonxFullUrl?: string; cacheSystemMessage?: boolean; + cacheConversation?: boolean; private _llmOptions: LLMOptions; @@ -194,6 +195,7 @@ export abstract class BaseLLM implements ILLM { this.watsonxFullUrl = options.watsonxFullUrl; this.cacheSystemMessage = options.cacheSystemMessage; + this.cacheConversation = options.cacheConversation; if (this.apiBase && !this.apiBase.endsWith("/")) { this.apiBase = `${this.apiBase}/`; diff --git a/core/llm/llms/Anthropic.ts b/core/llm/llms/Anthropic.ts index 7439f1419..f4fc0bd3a 100644 --- a/core/llm/llms/Anthropic.ts +++ b/core/llm/llms/Anthropic.ts @@ -45,7 +45,7 @@ class Anthropic extends BaseLLM { // The second-to-last because it retrieves potentially already cached contents, // The last one because we want it cached for later retrieval. // See: https://docs.anthropic.com/en/docs/build-with-claude/prompt-caching - const addCaching = lastTwoUserMsgIndices.includes(filteredMsgIdx); + const addCaching = !!this.cacheConversation && lastTwoUserMsgIndices.includes(filteredMsgIdx); if (typeof message.content === "string") { var chatMessage = { @@ -126,7 +126,7 @@ class Anthropic extends BaseLLM { Accept: "application/json", "anthropic-version": "2023-06-01", "x-api-key": this.apiKey as string, - ...(shouldCacheSystemMessage + ...(shouldCacheSystemMessage || !!this.cacheConversation ? { "anthropic-beta": "prompt-caching-2024-07-31" } : {}), }, diff --git a/docs/docs/customize/model-providers/top-level/anthropic.md b/docs/docs/customize/model-providers/top-level/anthropic.md index ebc156413..1aa0d9dbc 100644 --- a/docs/docs/customize/model-providers/top-level/anthropic.md +++ b/docs/docs/customize/model-providers/top-level/anthropic.md @@ -48,7 +48,8 @@ Anthropic currently does not offer any reranking models. Anthropic supports [prompt caching with Claude](https://docs.anthropic.com/en/docs/build-with-claude/prompt-caching). -Currently, we only allow caching of the system message. To enable this feature, update your your model configuration with `"cacheSystemMessage": true`: +To enable caching of the system message, update your your model configuration with `"cacheSystemMessage": true`: +To enable caching of the conversation, update your your model configuration with `"cacheConversation": true`: ```json { @@ -56,6 +57,7 @@ Currently, we only allow caching of the system message. To enable this feature, { // Enable prompt caching "cacheSystemMessage": true, + "cacheConversation": true, "title": "Anthropic", "provider": "anthropic", "model": "claude-3-5-sonnet-20240620", diff --git a/docs/static/schemas/config.json b/docs/static/schemas/config.json index 911278ebb..254a5eabb 100644 --- a/docs/static/schemas/config.json +++ b/docs/static/schemas/config.json @@ -704,6 +704,9 @@ "cacheSystemMessage": { "type": "boolean" }, + "cacheConversation": { + "type": "boolean" + }, "model": { "anyOf": [ { @@ -801,6 +804,9 @@ "cacheSystemMessage": { "type": "boolean" }, + "cacheConversation": { + "type": "boolean" + }, "model": { "enum": [ "chat-bison-001", @@ -1022,6 +1028,9 @@ "cacheSystemMessage": { "type": "boolean" }, + "cacheConversation": { + "type": "boolean" + }, "model": { "enum": ["deepseek-chat", "deepseek-coder"] } diff --git a/extensions/intellij/src/main/resources/config_schema.json b/extensions/intellij/src/main/resources/config_schema.json index 5a20c6daf..c891e05a9 100644 --- a/extensions/intellij/src/main/resources/config_schema.json +++ b/extensions/intellij/src/main/resources/config_schema.json @@ -704,6 +704,9 @@ "cacheSystemMessage": { "type": "boolean" }, + "cacheConversation": { + "type": "boolean" + }, "model": { "anyOf": [ { @@ -801,6 +804,9 @@ "cacheSystemMessage": { "type": "boolean" }, + "cacheConversation": { + "type": "boolean" + }, "model": { "enum": [ "chat-bison-001", @@ -1022,6 +1028,9 @@ "cacheSystemMessage": { "type": "boolean" }, + "cacheConversation": { + "type": "boolean" + }, "model": { "enum": ["deepseek-chat", "deepseek-coder"] } diff --git a/extensions/vscode/config_schema.json b/extensions/vscode/config_schema.json index 176bbd295..6253b1d55 100644 --- a/extensions/vscode/config_schema.json +++ b/extensions/vscode/config_schema.json @@ -704,6 +704,9 @@ "cacheSystemMessage": { "type": "boolean" }, + "cacheConversation": { + "type": "boolean" + }, "model": { "anyOf": [ { @@ -801,6 +804,9 @@ "cacheSystemMessage": { "type": "boolean" }, + "cacheConversation": { + "type": "boolean" + }, "model": { "enum": [ "chat-bison-001", @@ -1022,6 +1028,9 @@ "cacheSystemMessage": { "type": "boolean" }, + "cacheConversation": { + "type": "boolean" + }, "model": { "enum": ["deepseek-chat", "deepseek-coder"] } diff --git a/extensions/vscode/continue_rc_schema.json b/extensions/vscode/continue_rc_schema.json index 7a7e54764..8375f099a 100644 --- a/extensions/vscode/continue_rc_schema.json +++ b/extensions/vscode/continue_rc_schema.json @@ -761,6 +761,9 @@ "cacheSystemMessage": { "type": "boolean" }, + "cacheConversation": { + "type": "boolean" + }, "model": { "anyOf": [ { @@ -877,6 +880,9 @@ "cacheSystemMessage": { "type": "boolean" }, + "cacheConversation": { + "type": "boolean" + }, "model": { "enum": [ "chat-bison-001", @@ -1120,6 +1126,9 @@ "cacheSystemMessage": { "type": "boolean" }, + "cacheConversation": { + "type": "boolean" + }, "model": { "enum": [ "deepseek-chat", From 2e9a7e216f844c9564c86de3446beba553faefed Mon Sep 17 00:00:00 2001 From: Tijs Zwinkels Date: Tue, 24 Sep 2024 13:18:11 +0200 Subject: [PATCH 192/268] fix merging mistake --- core/llm/llms/Anthropic.ts | 18 +----------------- 1 file changed, 1 insertion(+), 17 deletions(-) diff --git a/core/llm/llms/Anthropic.ts b/core/llm/llms/Anthropic.ts index f4fc0bd3a..fa4620e2a 100644 --- a/core/llm/llms/Anthropic.ts +++ b/core/llm/llms/Anthropic.ts @@ -98,23 +98,7 @@ class Anthropic extends BaseLLM { messages: ChatMessage[], options: CompletionOptions, ): AsyncGenerator { - const shouldCacheSystemMessage = - !!this.cacheSystemMessage; - - const body = JSON.stringify({ - ...this._convertArgs(options), - messages: this._convertMessages(messages), - system: shouldCacheSystemMessage - ? [ - { - type: "text", - text: this.systemMessage, - cache_control: { type: "ephemeral" }, - }, - ] - : this.systemMessage, - }); - + const shouldCacheSystemMessage = !!this.systemMessage && !!this.cacheSystemMessage; const systemMessage: string = stripImages( messages.filter((m) => m.role === "system")[0]?.content, ); From 10072575d593e46bd8a7b7bda125978c306a1a9c Mon Sep 17 00:00:00 2001 From: DongjaJ Date: Tue, 24 Sep 2024 21:37:51 +0900 Subject: [PATCH 193/268] fix: modify docs Next Page link --- docs/docs/actions/how-to-use-it.md | 1 + docs/docs/autocomplete/how-to-use-it.md | 1 + docs/docs/chat/how-to-use-it.md | 1 + docs/docs/edit/how-to-use-it.md | 1 + docs/docs/getting-started/install.md | 1 + 5 files changed, 5 insertions(+) diff --git a/docs/docs/actions/how-to-use-it.md b/docs/docs/actions/how-to-use-it.md index cffc0d65d..026f45d74 100644 --- a/docs/docs/actions/how-to-use-it.md +++ b/docs/docs/actions/how-to-use-it.md @@ -4,6 +4,7 @@ description: How to use Actions sidebar_label: How to use it keywords: [how, slash, commands, prompt, right click, quick fix, debug, action] sidebar_position: 1 +pagination_next: actions/model-setup --- ![actions](/img/actions.gif) diff --git a/docs/docs/autocomplete/how-to-use-it.md b/docs/docs/autocomplete/how-to-use-it.md index 92a3db76e..2cfd470e6 100644 --- a/docs/docs/autocomplete/how-to-use-it.md +++ b/docs/docs/autocomplete/how-to-use-it.md @@ -4,6 +4,7 @@ description: Autocomplete \- how to use it sidebar_label: How to use it keywords: [how] sidebar_position: 1 +pagination_next: autocomplete/model-setup --- ![autocomplete](/img/autocomplete.gif) diff --git a/docs/docs/chat/how-to-use-it.md b/docs/docs/chat/how-to-use-it.md index 53cd85d17..754ef12c8 100644 --- a/docs/docs/chat/how-to-use-it.md +++ b/docs/docs/chat/how-to-use-it.md @@ -4,6 +4,7 @@ description: How to use Chat sidebar_label: How to use it keywords: [how, use, chat] sidebar_position: 1 +pagination_next: chat/model-setup --- ![chat](/img/chat.gif) diff --git a/docs/docs/edit/how-to-use-it.md b/docs/docs/edit/how-to-use-it.md index ac6f2ed4b..f49e4134a 100644 --- a/docs/docs/edit/how-to-use-it.md +++ b/docs/docs/edit/how-to-use-it.md @@ -4,6 +4,7 @@ sidebar_position: 1 sidebar_label: How to use it description: How to use Edit keywords: [edit, cmd l, use] +pagination_next: edit/model-setup --- ![edit](/img/edit.gif) diff --git a/docs/docs/getting-started/install.md b/docs/docs/getting-started/install.md index da04e8468..d37e73e39 100644 --- a/docs/docs/getting-started/install.md +++ b/docs/docs/getting-started/install.md @@ -2,6 +2,7 @@ title: Install description: The open-source AI code assistant for developers keywords: [install, installation, getting started, vs code, jetbrains] +pagination_next: getting-started/overview --- ## VS Code From 6a7eea27ca5d1ade790ce08dc1cf4eb7bbdeb585 Mon Sep 17 00:00:00 2001 From: Kangmoon Seo <100016044+KangmoonSeo@users.noreply.github.com> Date: Tue, 24 Sep 2024 23:05:24 +0900 Subject: [PATCH 194/268] fix: add missing eos_token for qwen2.5-coder --- core/autocomplete/templates.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/core/autocomplete/templates.ts b/core/autocomplete/templates.ts index dc729f52a..cda8b8a2d 100644 --- a/core/autocomplete/templates.ts +++ b/core/autocomplete/templates.ts @@ -47,6 +47,7 @@ const qwenCoderFimTemplate: AutocompleteTemplate = { "<|fim_prefix|>{{{prefix}}}<|fim_suffix|>{{{suffix}}}<|fim_middle|>", completionOptions: { stop: [ + "<|endoftext|>", "<|fim_prefix|>", "<|fim_middle|>", "<|fim_suffix|>", From 1f8e9a5995349ce2f4988ab780587d7355e4fc39 Mon Sep 17 00:00:00 2001 From: Justin Milner Date: Tue, 24 Sep 2024 11:20:09 -0400 Subject: [PATCH 195/268] config schema, token init --- .../providers/GreptileContextProvider.ts | 28 ++++++++--------- extensions/vscode/config_schema.json | 30 +++++++++++++++++++ 2 files changed, 44 insertions(+), 14 deletions(-) diff --git a/core/context/providers/GreptileContextProvider.ts b/core/context/providers/GreptileContextProvider.ts index 5c8d5f3ea..c6b7620c4 100644 --- a/core/context/providers/GreptileContextProvider.ts +++ b/core/context/providers/GreptileContextProvider.ts @@ -21,16 +21,20 @@ import { extras: ContextProviderExtras, ): Promise { const greptileToken = this.getGreptileToken(); - const githubToken = process.env.GITHUB_TOKEN; - - if (!greptileToken || !githubToken) { - throw new Error("Greptile token or GitHub token not found."); + if (!greptileToken) { + throw new Error("Greptile token not found."); + } + + const githubToken = this.getGithubToken(); + if (!githubToken) { + throw new Error("GitHub token not found."); } let absPath = await this.getWorkspaceDir(extras); if (!absPath) { throw new Error("Failed to determine the workspace directory."); } + var remoteUrl = getRemoteUrl(absPath) remoteUrl = getRemoteUrl(absPath); const repoName = extractRepoName(remoteUrl); @@ -60,18 +64,10 @@ import { genius: true, }), }; - - // Log request details for debugging - console.log("Request URL: https://api.greptile.com/v2/query"); - console.log("Request Headers:", options.headers); - console.log("Request Body:", options.body); - + try { const response = await extras.fetch('https://api.greptile.com/v2/query', options); - - // Log the raw response text for debugging const rawText = await response.text(); - console.log("Raw response from Greptile:", rawText); // Check for HTTP errors if (!response.ok) { @@ -93,7 +89,11 @@ import { } private getGreptileToken(): string | undefined { - return this.options.token || process.env.GREPTILE_AUTH_TOKEN; + return this.options.GreptileToken || process.env.GREPTILE_AUTH_TOKEN; + } + + private getGithubToken(): string | undefined { + return this.options.GithubToken || process.env.GITHUB_TOKEN; } private async getWorkspaceDir(extras: ContextProviderExtras): Promise { diff --git a/extensions/vscode/config_schema.json b/extensions/vscode/config_schema.json index ab2186d62..819102bd0 100644 --- a/extensions/vscode/config_schema.json +++ b/extensions/vscode/config_schema.json @@ -1933,6 +1933,36 @@ }, "required": ["host", "port", "user", "password", "database"] } + }, + { + "if": { + "properties": { + "name": { + "enum": ["greptile"] + } + } + }, + "then": { + "properties": { + "params": { + "properties": { + "GithubToken": { + "title": "GithubToken", + "description": "Your github access token", + "default": "", + "type": "string" + }, + "GreptileToken": { + "title": "GreptileToken", + "description": "Your greptile access token", + "default": "", + "type": "string" + } + } + } + }, + "required": ["GreptileToken", "GithubToken"] + } } ], "required": ["name"] From a98820197a5c11ed1a1085f90db214124e1666a6 Mon Sep 17 00:00:00 2001 From: Nate Date: Tue, 24 Sep 2024 14:04:43 -0700 Subject: [PATCH 196/268] update config schema files --- docs/static/schemas/config.json | 8 ++++++++ extensions/intellij/src/main/resources/config_schema.json | 7 +++++++ extensions/vscode/continue_rc_schema.json | 7 +++++++ 3 files changed, 22 insertions(+) diff --git a/docs/static/schemas/config.json b/docs/static/schemas/config.json index 911278ebb..176bbd295 100644 --- a/docs/static/schemas/config.json +++ b/docs/static/schemas/config.json @@ -1044,6 +1044,7 @@ "llama2-70b", "mistral-8x7b", "gemma", + "gemma2", "llama3-8b", "llama3-70b", "llama3.1-8b", @@ -2114,6 +2115,13 @@ "minimum": 128, "exclusiveMaximum": 2147483647 }, + "maxBatchSize": { + "title": "Maximum Batch Size", + "description": "The maximum number of chunks that can be sent to the embeddings provider in a single request", + "type": "integer", + "minimum": 1, + "exclusiveMaximum": 2147483647 + }, "region": { "title": "Region", "description": "The region where the model is hosted", diff --git a/extensions/intellij/src/main/resources/config_schema.json b/extensions/intellij/src/main/resources/config_schema.json index 5a20c6daf..176bbd295 100644 --- a/extensions/intellij/src/main/resources/config_schema.json +++ b/extensions/intellij/src/main/resources/config_schema.json @@ -2115,6 +2115,13 @@ "minimum": 128, "exclusiveMaximum": 2147483647 }, + "maxBatchSize": { + "title": "Maximum Batch Size", + "description": "The maximum number of chunks that can be sent to the embeddings provider in a single request", + "type": "integer", + "minimum": 1, + "exclusiveMaximum": 2147483647 + }, "region": { "title": "Region", "description": "The region where the model is hosted", diff --git a/extensions/vscode/continue_rc_schema.json b/extensions/vscode/continue_rc_schema.json index 7a7e54764..8a1c0bca0 100644 --- a/extensions/vscode/continue_rc_schema.json +++ b/extensions/vscode/continue_rc_schema.json @@ -2356,6 +2356,13 @@ "minimum": 128, "exclusiveMaximum": 2147483647 }, + "maxBatchSize": { + "title": "Maximum Batch Size", + "description": "The maximum number of chunks that can be sent to the embeddings provider in a single request", + "type": "integer", + "minimum": 1, + "exclusiveMaximum": 2147483647 + }, "region": { "title": "Region", "description": "The region where the model is hosted", From 72e52166335cb1af56e8737173651e4cd5b81d16 Mon Sep 17 00:00:00 2001 From: Nate Date: Tue, 24 Sep 2024 14:49:49 -0700 Subject: [PATCH 197/268] extract EXTENSION_NAME --- core/indexing/CodebaseIndexer.ts | 6 ++-- core/indexing/docs/DocsService.ts | 2 +- .../src/ContinueGUIWebviewViewProvider.ts | 28 +++++++++---------- extensions/vscode/src/VsCodeIde.ts | 5 ++-- .../vscode/src/activation/inlineTips.ts | 3 +- .../vscode/src/autocomplete/statusBar.ts | 5 ++-- extensions/vscode/src/commands.ts | 23 +++++++-------- .../vscode/src/extension/VsCodeExtension.ts | 7 +++-- extensions/vscode/src/stubs/activation.ts | 5 ++-- extensions/vscode/src/stubs/auth.ts | 3 +- extensions/vscode/src/stubs/remoteConfig.ts | 18 +++++++----- extensions/vscode/src/util/constants.ts | 5 ++++ extensions/vscode/src/util/ideUtils.ts | 5 ++-- 13 files changed, 66 insertions(+), 49 deletions(-) create mode 100644 extensions/vscode/src/util/constants.ts diff --git a/core/indexing/CodebaseIndexer.ts b/core/indexing/CodebaseIndexer.ts index bf16b2a5d..6eca76268 100644 --- a/core/indexing/CodebaseIndexer.ts +++ b/core/indexing/CodebaseIndexer.ts @@ -304,9 +304,9 @@ export class CodebaseIndexer { const seconds = Math.round(timeTaken / 1000); const progressPercentage = (progress * 100).toFixed(1); const filesPerSec = (completedFileCount / seconds).toFixed(2); - console.debug( - `Indexing: ${progressPercentage}% complete, elapsed time: ${seconds}s, ${filesPerSec} file/sec`, - ); + // console.debug( + // `Indexing: ${progressPercentage}% complete, elapsed time: ${seconds}s, ${filesPerSec} file/sec`, + // ); } private async *yieldUpdateAndPause(): AsyncGenerator { diff --git a/core/indexing/docs/DocsService.ts b/core/indexing/docs/DocsService.ts index de773e662..75e633733 100644 --- a/core/indexing/docs/DocsService.ts +++ b/core/indexing/docs/DocsService.ts @@ -467,7 +467,7 @@ export default class DocsService { } for (const doc of deletedDocs) { - console.log(`Deleting doc: ${doc.startUrl}`); + // console.debug(`Deleting doc: ${doc.startUrl}`); await this.delete(doc.startUrl); } diff --git a/extensions/vscode/src/ContinueGUIWebviewViewProvider.ts b/extensions/vscode/src/ContinueGUIWebviewViewProvider.ts index 08fedd54e..ee11a1a64 100644 --- a/extensions/vscode/src/ContinueGUIWebviewViewProvider.ts +++ b/extensions/vscode/src/ContinueGUIWebviewViewProvider.ts @@ -1,6 +1,7 @@ import type { FileEdit } from "core"; import { ConfigHandler } from "core/config/ConfigHandler"; import * as vscode from "vscode"; +import { EXTENSION_NAME } from "./util/constants"; import { getTheme } from "./util/getTheme"; import { getExtensionVersion } from "./util/util"; import { getExtensionUri, getNonce, getUniqueId } from "./util/vscode"; @@ -13,7 +14,7 @@ export class ContinueGUIWebviewViewProvider public webviewProtocol: VsCodeWebviewProtocol; private updateDebugLogsStatus() { - const settings = vscode.workspace.getConfiguration("continue"); + const settings = vscode.workspace.getConfiguration(EXTENSION_NAME); this.enableDebugLogs = settings.get("enableDebugLogs", false); if (this.enableDebugLogs) { this.outputChannel.show(true); @@ -25,8 +26,8 @@ export class ContinueGUIWebviewViewProvider // Show or hide the output channel on enableDebugLogs private setupDebugLogsListener() { vscode.workspace.onDidChangeConfiguration((event) => { - if (event.affectsConfiguration('continue.enableDebugLogs')) { - const settings = vscode.workspace.getConfiguration("continue"); + if (event.affectsConfiguration("continue.enableDebugLogs")) { + const settings = vscode.workspace.getConfiguration(EXTENSION_NAME); const enableDebugLogs = settings.get("enableDebugLogs", false); if (enableDebugLogs) { this.outputChannel.show(true); @@ -38,19 +39,19 @@ export class ContinueGUIWebviewViewProvider } private async handleWebviewMessage(message: any) { - if (message.messageType === "log") { - const settings = vscode.workspace.getConfiguration("continue"); - const enableDebugLogs = settings.get("enableDebugLogs", false); + if (message.messageType === "log") { + const settings = vscode.workspace.getConfiguration(EXTENSION_NAME); + const enableDebugLogs = settings.get("enableDebugLogs", false); - if (message.level === "debug" && !enableDebugLogs) { - return; // Skip debug logs if enableDebugLogs is false + if (message.level === "debug" && !enableDebugLogs) { + return; // Skip debug logs if enableDebugLogs is false + } + + const timestamp = new Date().toISOString().split(".")[0]; + const logMessage = `[${timestamp}] [${message.level.toUpperCase()}] ${message.text}`; + this.outputChannel.appendLine(logMessage); } - - const timestamp = new Date().toISOString().split(".")[0]; - const logMessage = `[${timestamp}] [${message.level.toUpperCase()}] ${message.text}`; - this.outputChannel.appendLine(logMessage); } -} resolveWebviewView( webviewView: vscode.WebviewView, @@ -95,7 +96,6 @@ export class ContinueGUIWebviewViewProvider }); } - constructor( private readonly configHandlerPromise: Promise, private readonly windowId: string, diff --git a/extensions/vscode/src/VsCodeIde.ts b/extensions/vscode/src/VsCodeIde.ts index 0df445b01..ed7139636 100644 --- a/extensions/vscode/src/VsCodeIde.ts +++ b/extensions/vscode/src/VsCodeIde.ts @@ -26,6 +26,7 @@ import * as vscode from "vscode"; import { executeGotoProvider } from "./autocomplete/lsp"; import { DiffManager } from "./diff/horizontal"; import { Repository } from "./otherExtensions/git"; +import { EXTENSION_NAME } from "./util/constants"; import { VsCodeIdeUtils } from "./util/ideUtils"; import { getExtensionUri, @@ -294,7 +295,7 @@ class VsCodeIde implements IDE { const globalEnabled = vscode.env.isTelemetryEnabled; const continueEnabled: boolean = (await vscode.workspace - .getConfiguration("continue") + .getConfiguration(EXTENSION_NAME) .get("telemetryEnabled")) ?? true; return globalEnabled && continueEnabled; } @@ -535,7 +536,7 @@ class VsCodeIde implements IDE { } getIdeSettingsSync(): IdeSettings { - const settings = vscode.workspace.getConfiguration("continue"); + const settings = vscode.workspace.getConfiguration(EXTENSION_NAME); const remoteConfigServerUrl = settings.get( "remoteConfigServerUrl", undefined, diff --git a/extensions/vscode/src/activation/inlineTips.ts b/extensions/vscode/src/activation/inlineTips.ts index 0f751c1c3..00a921db2 100644 --- a/extensions/vscode/src/activation/inlineTips.ts +++ b/extensions/vscode/src/activation/inlineTips.ts @@ -1,4 +1,5 @@ import * as vscode from "vscode"; +import { EXTENSION_NAME } from "../util/constants"; import { getMetaKeyName } from "../util/util"; const inlineTipDecoration = vscode.window.createTextEditorDecorationType({ @@ -12,7 +13,7 @@ const inlineTipDecoration = vscode.window.createTextEditorDecorationType({ function showInlineTip() { return vscode.workspace - .getConfiguration("continue") + .getConfiguration(EXTENSION_NAME) .get("showInlineTip"); } diff --git a/extensions/vscode/src/autocomplete/statusBar.ts b/extensions/vscode/src/autocomplete/statusBar.ts index 8a5a468e0..333661d55 100644 --- a/extensions/vscode/src/autocomplete/statusBar.ts +++ b/extensions/vscode/src/autocomplete/statusBar.ts @@ -1,10 +1,11 @@ +import { ILLM } from "core"; import * as vscode from "vscode"; import { Battery } from "../util/battery"; +import { EXTENSION_NAME } from "../util/constants"; import { CONTINUE_WORKSPACE_KEY, getContinueWorkspaceConfig, } from "../util/workspaceConfig"; -import { ILLM } from "core"; export enum StatusBarStatus { Disabled, @@ -121,7 +122,7 @@ export function getStatusBarStatus(): StatusBarStatus | undefined { export function monitorBatteryChanges(battery: Battery): vscode.Disposable { return battery.onChangeAC((acConnected: boolean) => { - const config = vscode.workspace.getConfiguration("continue"); + const config = vscode.workspace.getConfiguration(EXTENSION_NAME); const enabled = config.get("enableTabAutocomplete"); if (!!enabled) { const pauseOnBattery = config.get( diff --git a/extensions/vscode/src/commands.ts b/extensions/vscode/src/commands.ts index 7ac639326..274065b51 100644 --- a/extensions/vscode/src/commands.ts +++ b/extensions/vscode/src/commands.ts @@ -1,18 +1,19 @@ /* eslint-disable @typescript-eslint/naming-convention */ -import * as fs from "node:fs"; -import * as os from "node:os"; -import * as path from "node:path"; -import * as vscode from "vscode"; import { ContextMenuConfig, IDE } from "core"; import { CompletionProvider } from "core/autocomplete/completionProvider"; import { ConfigHandler } from "core/config/ConfigHandler"; +import { getModelByRole } from "core/config/util"; import { ContinueServerClient } from "core/continueServer/stubs/client"; import { Core } from "core/core"; import { walkDirAsync } from "core/indexing/walkDir"; import { GlobalContext } from "core/util/GlobalContext"; import { getConfigJsonPath, getDevDataFilePath } from "core/util/paths"; import { Telemetry } from "core/util/posthog"; +import * as fs from "node:fs"; +import * as os from "node:os"; +import * as path from "node:path"; import readLastLines from "read-last-lines"; +import * as vscode from "vscode"; import { StatusBarStatus, getAutocompleteStatusBarDescription, @@ -27,10 +28,10 @@ import { DiffManager } from "./diff/horizontal"; import { VerticalPerLineDiffManager } from "./diff/verticalPerLine/manager"; import { QuickEdit, QuickEditShowParams } from "./quickEdit/QuickEditQuickPick"; import { Battery } from "./util/battery"; +import { EXTENSION_NAME } from "./util/constants"; +import { getFullyQualifiedPath } from "./util/util"; import { uriFromFilePath } from "./util/vscode"; import type { VsCodeWebviewProtocol } from "./webviewProtocol"; -import { getFullyQualifiedPath } from "./util/util"; -import { getModelByRole } from "core/config/util"; let fullScreenPanel: vscode.WebviewPanel | undefined; @@ -422,7 +423,7 @@ const commandsMap: ( }, "continue.hideInlineTip": () => { vscode.workspace - .getConfiguration("continue") + .getConfiguration(EXTENSION_NAME) .update("showInlineTip", false, vscode.ConfigurationTarget.Global); }, @@ -567,7 +568,7 @@ const commandsMap: ( "continue.toggleTabAutocompleteEnabled": () => { captureCommandTelemetry("toggleTabAutocompleteEnabled"); - const config = vscode.workspace.getConfiguration("continue"); + const config = vscode.workspace.getConfiguration(EXTENSION_NAME); const enabled = config.get("enableTabAutocomplete"); const pauseOnBattery = config.get( "pauseTabAutocompleteOnBattery", @@ -603,7 +604,7 @@ const commandsMap: ( "continue.openTabAutocompleteConfigMenu": async () => { captureCommandTelemetry("openTabAutocompleteConfigMenu"); - const config = vscode.workspace.getConfiguration("continue"); + const config = vscode.workspace.getConfiguration(EXTENSION_NAME); const quickPick = vscode.window.createQuickPick(); const autocompleteModels = (await configHandler.loadConfig())?.tabAutocompleteModels ?? []; @@ -629,8 +630,8 @@ const commandsMap: ( currentStatus === StatusBarStatus.Paused ? StatusBarStatus.Enabled : currentStatus === StatusBarStatus.Disabled - ? StatusBarStatus.Paused - : StatusBarStatus.Disabled; + ? StatusBarStatus.Paused + : StatusBarStatus.Disabled; } else { // Toggle between Disabled and Enabled targetStatus = diff --git a/extensions/vscode/src/extension/VsCodeExtension.ts b/extensions/vscode/src/extension/VsCodeExtension.ts index 4f49e3a2b..193c4723d 100644 --- a/extensions/vscode/src/extension/VsCodeExtension.ts +++ b/extensions/vscode/src/extension/VsCodeExtension.ts @@ -25,6 +25,7 @@ import { WorkOsAuthProvider, } from "../stubs/WorkOsAuthProvider"; import { Battery } from "../util/battery"; +import { AUTH_TYPE, EXTENSION_NAME } from "../util/constants"; import { TabAutocompleteModel } from "../util/loadAutocompleteModel"; import { VsCodeIde } from "../VsCodeIde"; import type { VsCodeWebviewProtocol } from "../webviewProtocol"; @@ -162,7 +163,7 @@ export class VsCodeExtension { }); // Tab autocomplete - const config = vscode.workspace.getConfiguration("continue"); + const config = vscode.workspace.getConfiguration(EXTENSION_NAME); const enabled = config.get("enableTabAutocomplete"); // Register inline completion provider @@ -267,7 +268,7 @@ export class VsCodeExtension { vscode.authentication.onDidChangeSessions(async (e) => { if (e.provider.id === "github") { this.configHandler.reloadConfig(); - } else if (e.provider.id === "continue") { + } else if (e.provider.id === AUTH_TYPE) { const sessionInfo = await getControlPlaneSessionInfo(true); this.webviewProtocolPromise.then(async (webviewProtocol) => { webviewProtocol.request("didChangeControlPlaneSessionInfo", { @@ -330,7 +331,7 @@ export class VsCodeExtension { }); } - static continueVirtualDocumentScheme = "continue"; + static continueVirtualDocumentScheme = EXTENSION_NAME; // eslint-disable-next-line @typescript-eslint/naming-convention private PREVIOUS_BRANCH_FOR_WORKSPACE_DIR: { [dir: string]: string } = {}; diff --git a/extensions/vscode/src/stubs/activation.ts b/extensions/vscode/src/stubs/activation.ts index 7a4507db1..0f8866b55 100644 --- a/extensions/vscode/src/stubs/activation.ts +++ b/extensions/vscode/src/stubs/activation.ts @@ -1,9 +1,10 @@ import * as vscode from "vscode"; +import { EXTENSION_NAME } from "../util/constants"; import { getUserToken } from "./auth"; import { RemoteConfigSync } from "./remoteConfig"; export async function setupRemoteConfigSync(reloadConfig: () => void) { - const settings = vscode.workspace.getConfiguration("continue"); + const settings = vscode.workspace.getConfiguration(EXTENSION_NAME); const remoteConfigServerUrl = settings.get( "remoteConfigServerUrl", null, @@ -17,7 +18,7 @@ export async function setupRemoteConfigSync(reloadConfig: () => void) { } getUserToken().then(async (token) => { await vscode.workspace - .getConfiguration("continue") + .getConfiguration(EXTENSION_NAME) .update("userToken", token, vscode.ConfigurationTarget.Global); try { const configSync = new RemoteConfigSync(reloadConfig, token); diff --git a/extensions/vscode/src/stubs/auth.ts b/extensions/vscode/src/stubs/auth.ts index 618f47efa..7a5244501 100644 --- a/extensions/vscode/src/stubs/auth.ts +++ b/extensions/vscode/src/stubs/auth.ts @@ -1,8 +1,9 @@ import * as vscode from "vscode"; +import { EXTENSION_NAME } from "../util/constants"; export async function getUserToken(): Promise { // Prefer manual user token first - const settings = vscode.workspace.getConfiguration("continue"); + const settings = vscode.workspace.getConfiguration(EXTENSION_NAME); const userToken = settings.get("userToken", null); if (userToken) { return userToken; diff --git a/extensions/vscode/src/stubs/remoteConfig.ts b/extensions/vscode/src/stubs/remoteConfig.ts index fa5293a39..4a4c4f002 100644 --- a/extensions/vscode/src/stubs/remoteConfig.ts +++ b/extensions/vscode/src/stubs/remoteConfig.ts @@ -5,6 +5,7 @@ import { } from "core/util/paths"; import * as fs from "fs"; import * as vscode from "vscode"; +import { EXTENSION_NAME } from "../util/constants"; import { CONTINUE_WORKSPACE_KEY } from "../util/workspaceConfig"; export class RemoteConfigSync { @@ -48,7 +49,7 @@ export class RemoteConfigSync { } private loadVsCodeSettings() { - const settings = vscode.workspace.getConfiguration("continue"); + const settings = vscode.workspace.getConfiguration(EXTENSION_NAME); const userToken = settings.get("userToken", null); const remoteConfigServerUrl = settings.get( "remoteConfigServerUrl", @@ -93,12 +94,15 @@ export class RemoteConfigSync { if (this.syncInterval !== undefined) { clearInterval(this.syncInterval); } - this.syncInterval = setInterval(() => { - if (!this.userToken || !this.remoteConfigServerUrl) { - return; - } - this.sync(this.userToken, this.remoteConfigServerUrl); - }, this.remoteConfigSyncPeriod * 1000 * 60); + this.syncInterval = setInterval( + () => { + if (!this.userToken || !this.remoteConfigServerUrl) { + return; + } + this.sync(this.userToken, this.remoteConfigServerUrl); + }, + this.remoteConfigSyncPeriod * 1000 * 60, + ); } async sync(userToken: string, remoteConfigServerUrl: string) { diff --git a/extensions/vscode/src/util/constants.ts b/extensions/vscode/src/util/constants.ts new file mode 100644 index 000000000..2db7798f8 --- /dev/null +++ b/extensions/vscode/src/util/constants.ts @@ -0,0 +1,5 @@ +export const EXTENSION_NAME = "continue"; +export const AUTH_TYPE = + process.env.CONTROL_PLANE_ENV === "local" + ? `${EXTENSION_NAME}-staging` + : EXTENSION_NAME; diff --git a/extensions/vscode/src/util/ideUtils.ts b/extensions/vscode/src/util/ideUtils.ts index 33ab80632..a2f2e3f9f 100644 --- a/extensions/vscode/src/util/ideUtils.ts +++ b/extensions/vscode/src/util/ideUtils.ts @@ -18,6 +18,7 @@ import { } from "./vscode"; import _ from "lodash"; +import { EXTENSION_NAME } from "./constants"; const util = require("node:util"); const asyncExec = util.promisify(require("node:child_process").exec); @@ -175,7 +176,7 @@ export class VsCodeIdeUtils { async getUserSecret(key: string) { // Check if secret already exists in VS Code settings (global) - let secret = vscode.workspace.getConfiguration("continue").get(key); + let secret = vscode.workspace.getConfiguration(EXTENSION_NAME).get(key); if (typeof secret !== "undefined" && secret !== null) { return secret; } @@ -188,7 +189,7 @@ export class VsCodeIdeUtils { // Add secret to VS Code settings vscode.workspace - .getConfiguration("continue") + .getConfiguration(EXTENSION_NAME) .update(key, secret, vscode.ConfigurationTarget.Global); return secret; From 6ecbd23a012f7140626473d2b3215ee67b5e14e0 Mon Sep 17 00:00:00 2001 From: Test Date: Tue, 24 Sep 2024 15:59:03 -0700 Subject: [PATCH 198/268] gui: improve input breakpoints and context peek --- core/commands/util.ts | 4 +- .../providers/CurrentFileContextProvider.ts | 10 +- core/context/providers/FileContextProvider.ts | 4 + .../providers/OpenFilesContextProvider.ts | 9 +- core/context/providers/URLContextProvider.ts | 10 +- core/context/retrieval/retrieval.ts | 34 ++- core/index.d.ts | 16 +- core/indexing/CodeSnippetsIndex.ts | 4 + core/indexing/docs/DocsService.ts | 50 ++-- core/util/fetchFavicon.ts | 65 +++++ .../components/mainInput/ContextItemsPeek.tsx | 228 ++++++++---------- gui/src/components/mainInput/InputToolbar.tsx | 176 ++++++-------- gui/src/components/mainInput/TipTapEditor.tsx | 19 +- .../components/modelSelection/ModelSelect.tsx | 13 +- gui/src/pages/gui.tsx | 9 +- gui/tailwind.config.cjs | 12 +- 16 files changed, 354 insertions(+), 309 deletions(-) create mode 100644 core/util/fetchFavicon.ts diff --git a/core/commands/util.ts b/core/commands/util.ts index 207b6c5ec..931564839 100644 --- a/core/commands/util.ts +++ b/core/commands/util.ts @@ -1,4 +1,4 @@ -import { ContextItemWithId } from "../index.js"; +import { ContextItemWithId } from "../"; export interface RangeInFileWithContents { filepath: string; @@ -15,7 +15,7 @@ export function contextItemToRangeInFileWithContents( const lines = item.name.split("(")[1].split(")")[0].split("-"); const rif: RangeInFileWithContents = { - filepath: item.id.itemId, + filepath: item.uri?.value || "", range: { start: { line: Number.parseInt(lines[0]), diff --git a/core/context/providers/CurrentFileContextProvider.ts b/core/context/providers/CurrentFileContextProvider.ts index e149c8079..575350b49 100644 --- a/core/context/providers/CurrentFileContextProvider.ts +++ b/core/context/providers/CurrentFileContextProvider.ts @@ -2,9 +2,9 @@ import { ContextItem, ContextProviderDescription, ContextProviderExtras, -} from "../../index.js"; -import { getBasename } from "../../util/index.js"; -import { BaseContextProvider } from "../index.js"; +} from "../../"; +import { getBasename } from "../../util/"; +import { BaseContextProvider } from "../"; class CurrentFileContextProvider extends BaseContextProvider { static description: ContextProviderDescription = { @@ -32,6 +32,10 @@ class CurrentFileContextProvider extends BaseContextProvider { currentFile, )}\n${contents}\n\`\`\``, name: getBasename(currentFile), + uri: { + type: "file", + value: currentFile, + }, }, ]; } diff --git a/core/context/providers/FileContextProvider.ts b/core/context/providers/FileContextProvider.ts index ef0bfeb54..be558c651 100644 --- a/core/context/providers/FileContextProvider.ts +++ b/core/context/providers/FileContextProvider.ts @@ -36,6 +36,10 @@ class FileContextProvider extends BaseContextProvider { name: query.split(/[\\/]/).pop() ?? query, description: query, content: `\`\`\`${query}\n${content}\n\`\`\``, + uri: { + type: "file", + value: query, + }, }, ]; } diff --git a/core/context/providers/OpenFilesContextProvider.ts b/core/context/providers/OpenFilesContextProvider.ts index b0c85bc2e..c00121a96 100644 --- a/core/context/providers/OpenFilesContextProvider.ts +++ b/core/context/providers/OpenFilesContextProvider.ts @@ -28,10 +28,15 @@ class OpenFilesContextProvider extends BaseContextProvider { openFiles.map(async (filepath: string) => { return { description: filepath, - content: `\`\`\`${await getRelativePath(filepath, workspaceDirs)}\n${await ide.readFile( + content: `\`\`\`${await getRelativePath( filepath, - )}\n\`\`\``, + workspaceDirs, + )}\n${await ide.readFile(filepath)}\n\`\`\``, name: (filepath.split("/").pop() ?? "").split("\\").pop() ?? "", + uri: { + type: "file", + value: filepath, + }, }; }), ); diff --git a/core/context/providers/URLContextProvider.ts b/core/context/providers/URLContextProvider.ts index 2e864fbb9..8a471ef45 100644 --- a/core/context/providers/URLContextProvider.ts +++ b/core/context/providers/URLContextProvider.ts @@ -1,12 +1,13 @@ import { Readability } from "@mozilla/readability"; import { JSDOM } from "jsdom"; import { NodeHtmlMarkdown } from "node-html-markdown"; -import { BaseContextProvider } from "../index.js"; +import { BaseContextProvider } from "../"; import { ContextItem, ContextProviderDescription, ContextProviderExtras, } from "../../index.js"; +import { fetchFavicon } from "../../util/fetchFavicon"; class URLContextProvider extends BaseContextProvider { static description: ContextProviderDescription = { @@ -22,6 +23,7 @@ class URLContextProvider extends BaseContextProvider { ): Promise { try { const url = new URL(query); + const icon = await fetchFavicon(url); const resp = await extras.fetch(url); const html = await resp.text(); @@ -37,11 +39,17 @@ class URLContextProvider extends BaseContextProvider { ); const title = article?.title || url.pathname; + return [ { + icon, description: title, content: markdown, name: title, + uri: { + type: "url", + value: url.toString(), + }, }, ]; } catch (e) { diff --git a/core/context/retrieval/retrieval.ts b/core/context/retrieval/retrieval.ts index 1b250e548..9d19a33f7 100644 --- a/core/context/retrieval/retrieval.ts +++ b/core/context/retrieval/retrieval.ts @@ -6,6 +6,7 @@ import { INSTRUCTIONS_BASE_ITEM } from "../providers/utils"; import { RetrievalPipelineOptions } from "./pipelines/BaseRetrievalPipeline"; import NoRerankerRetrievalPipeline from "./pipelines/NoRerankerRetrievalPipeline"; import RerankerRetrievalPipeline from "./pipelines/RerankerRetrievalPipeline"; +import path from "path"; export async function retrieveContextItemsFromEmbeddings( extras: ContextProviderExtras, @@ -94,21 +95,32 @@ export async function retrieveContextItemsFromEmbeddings( } return [ - ...results.map((r) => { - const name = `${getRelativePath(r.filepath, workspaceDirs)} (${ - r.startLine - }-${r.endLine})`; - const description = `${r.filepath} (${r.startLine}-${r.endLine})`; - return { - name, - description, - content: `\`\`\`${name}\n${r.content}\n\`\`\``, - }; - }), { ...INSTRUCTIONS_BASE_ITEM, content: "Use the above code to answer the following question. You should not reference any files outside of what is shown, unless they are commonly known files, like a .gitignore or package.json. Reference the filenames whenever possible. If there isn't enough information to answer the question, suggest where the user might look to learn more.", }, + ...results + .sort((a, b) => a.filepath.localeCompare(b.filepath)) + .map((r) => { + const name = `${path.basename(r.filepath)} (${r.startLine}-${ + r.endLine + })`; + const description = `${r.filepath}`; + + if (r.filepath.includes("package.json")) { + console.log(); + } + + return { + name, + description, + content: `\`\`\`${name}\n${r.content}\n\`\`\``, + uri: { + type: "file" as const, + value: r.filepath, + }, + }; + }), ]; } diff --git a/core/index.d.ts b/core/index.d.ts index 16c48a3ad..659f9f80c 100644 --- a/core/index.d.ts +++ b/core/index.d.ts @@ -271,6 +271,13 @@ export interface ContextItemId { itemId: string; } +export type ContextItemUriTypes = "file" | "url"; + +export interface ContextItemUri { + type: ContextItemUriTypes; + value: string; +} + export interface ContextItem { content: string; name: string; @@ -278,16 +285,11 @@ export interface ContextItem { editing?: boolean; editable?: boolean; icon?: string; + uri?: ContextItemUri; } -export interface ContextItemWithId { - content: string; - name: string; - description: string; +export interface ContextItemWithId extends ContextItem { id: ContextItemId; - editing?: boolean; - editable?: boolean; - icon?: string; } export interface InputModifiers { diff --git a/core/indexing/CodeSnippetsIndex.ts b/core/indexing/CodeSnippetsIndex.ts index 6a02babd4..a8b41cafe 100644 --- a/core/indexing/CodeSnippetsIndex.ts +++ b/core/indexing/CodeSnippetsIndex.ts @@ -341,6 +341,10 @@ export class CodeSnippetsCodebaseIndex implements CodebaseIndex { name: row.title, description: getLastNPathParts(row.path, 2), content: `\`\`\`${getBasename(row.path)}\n${row.content}\n\`\`\``, + uri: { + type: "file", + value: row.path, + }, }; } diff --git a/core/indexing/docs/DocsService.ts b/core/indexing/docs/DocsService.ts index de773e662..d54f49f10 100644 --- a/core/indexing/docs/DocsService.ts +++ b/core/indexing/docs/DocsService.ts @@ -32,6 +32,7 @@ import { SiteIndexingResults, } from "./preIndexed"; import preIndexedDocs from "./preIndexedDocs"; +import { fetchFavicon, getFaviconBase64 } from "../../util/fetchFavicon"; // Purposefully lowercase because lancedb converts export interface LanceDbDocsRow { @@ -154,7 +155,10 @@ export default class DocsService { params: {}, }); - this.ide.showToast("info", "Successfuly added docs context provider"); + await this.ide.showToast( + "info", + "Successfuly added docs context provider", + ); } return res === actionMsg; @@ -177,7 +181,7 @@ export default class DocsService { while (!(await generator.next()).done) {} } - this.ide.showToast("info", "Docs indexing completed"); + await this.ide.showToast("info", "Docs indexing completed"); } async list() { @@ -250,7 +254,7 @@ export default class DocsService { } } - Telemetry.capture("docs_pages_crawled", { + void Telemetry.capture("docs_pages_crawled", { count: processedPages, }); @@ -321,7 +325,7 @@ export default class DocsService { await this.delete(startUrl); } - const favicon = await this.fetchFavicon(siteIndexingConfig); + const favicon = await fetchFavicon(new URL(siteIndexingConfig.startUrl)); await this.add({ siteIndexingConfig, @@ -460,7 +464,7 @@ export default class DocsService { for (const doc of newDocs) { console.log(`Indexing new doc: ${doc.startUrl}`); - Telemetry.capture("add_docs_config", { url: doc.startUrl }); + void Telemetry.capture("add_docs_config", { url: doc.startUrl }); const generator = this.indexAndAdd(doc); while (!(await generator.next()).done) {} @@ -537,8 +541,9 @@ export default class DocsService { private async getLanceTableNameFromEmbeddingsProvider( isPreIndexedDoc: boolean, ) { - const embeddingsProvider = - await this.getEmbeddingsProvider(isPreIndexedDoc); + const embeddingsProvider = await this.getEmbeddingsProvider( + isPreIndexedDoc, + ); const embeddingsProviderId = this.removeInvalidLanceTableNameChars( embeddingsProvider.id, ); @@ -694,7 +699,12 @@ export default class DocsService { const siteEmbeddings = JSON.parse(data) as SiteIndexingResults; const startUrl = new URL(siteEmbeddings.url).toString(); - const favicon = await this.fetchFavicon(preIndexedDocs[startUrl]); + + const faviconUrl = preIndexedDocs[startUrl].faviconUrl; + const favicon = + typeof faviconUrl === "string" + ? await getFaviconBase64(faviconUrl) + : undefined; await this.add({ favicon, @@ -707,30 +717,6 @@ export default class DocsService { }); } - private async fetchFavicon(siteIndexingConfig: SiteIndexingConfig) { - const faviconUrl = - siteIndexingConfig.faviconUrl ?? - new URL("/favicon.ico", siteIndexingConfig.startUrl); - - try { - const response = await fetch(faviconUrl); - const arrayBuffer = await response.arrayBuffer(); - const base64 = btoa( - new Uint8Array(arrayBuffer).reduce( - (data, byte) => data + String.fromCharCode(byte), - "", - ), - ); - const mimeType = response.headers.get("content-type") || "image/x-icon"; - - return `data:${mimeType};base64,${base64}`; - } catch { - console.error(`Failed to fetch favicon: ${faviconUrl}`); - } - - return undefined; - } - private async shouldReindexDocsOnNewEmbeddingsProvider( curEmbeddingsProviderId: EmbeddingsProvider["id"], ): Promise { diff --git a/core/util/fetchFavicon.ts b/core/util/fetchFavicon.ts new file mode 100644 index 000000000..8b1c8616a --- /dev/null +++ b/core/util/fetchFavicon.ts @@ -0,0 +1,65 @@ +import { JSDOM } from "jsdom"; + +export async function findFaviconPath(url: URL): Promise { + const baseUrl = `${url.protocol}//${url.hostname}`; + + try { + const response = await fetch(baseUrl); + if (!response.ok) { + throw new Error(`HTTP error! status: ${response.status}`); + } + + const html = await response.text(); + const dom = new JSDOM(html); + const document = dom.window.document; + + // Look for favicon in tags + const linkTags = document.querySelectorAll('link[rel*="icon"]'); + + for (const link of linkTags) { + const href = link.getAttribute("href"); + if (href) { + return new URL(href, baseUrl).toString(); + } + } + } catch (error) { + console.debug(`Failed to fetch favicon for ${baseUrl}: ${error}`); + } + + console.debug(`Failed to find favicon for ${baseUrl}`); + return undefined; +} + +export async function getFaviconBase64( + faviconUrl: string, +): Promise { + try { + const response = await fetch(faviconUrl); + + if (!response.ok) { + throw new Error(`HTTP error! status: ${response.status}`); + } + + const arrayBuffer = await response.arrayBuffer(); + const base64 = btoa( + new Uint8Array(arrayBuffer).reduce( + (data, byte) => data + String.fromCharCode(byte), + "", + ), + ); + const mimeType = response.headers.get("content-type") || "image/x-icon"; + + return `data:${mimeType};base64,${base64}`; + } catch (error) { + console.debug(`Failed to fetch favicon from ${faviconUrl}: ${error}`); + return undefined; + } +} + +export async function fetchFavicon(url: URL): Promise { + const faviconPath = await findFaviconPath(url); + if (faviconPath) { + return getFaviconBase64(faviconPath); + } + return undefined; +} diff --git a/gui/src/components/mainInput/ContextItemsPeek.tsx b/gui/src/components/mainInput/ContextItemsPeek.tsx index 3d3200433..f7d0b2f3e 100644 --- a/gui/src/components/mainInput/ContextItemsPeek.tsx +++ b/gui/src/components/mainInput/ContextItemsPeek.tsx @@ -1,14 +1,9 @@ -import { ChevronDownIcon, ChevronUpIcon } from "@heroicons/react/24/outline"; +import { ChevronDownIcon, ChevronRightIcon } from "@heroicons/react/24/outline"; import { ContextItemWithId } from "core"; import { contextItemToRangeInFileWithContents } from "core/commands/util"; import React, { useContext } from "react"; import styled from "styled-components"; -import { - defaultBorderRadius, - lightGray, - vscBackground, - vscForeground, -} from ".."; +import { lightGray, vscBackground } from ".."; import { IdeMessengerContext } from "../../context/IdeMessenger"; import { getFontSize } from "../../util"; import FileIcon from "../FileIcon"; @@ -16,70 +11,26 @@ import SafeImg from "../SafeImg"; import { INSTRUCTIONS_BASE_ITEM } from "core/context/providers/utils"; import { getIconFromDropdownItem } from "./MentionList"; -const ContextItemDiv = styled.div` - cursor: pointer; - padding: 6px 10px 6px 6px; - margin-left: 4px; - margin-right: 12px; - display: flex; - align-items: center; - border-radius: ${defaultBorderRadius}; - font-size: ${getFontSize()}; - max-width: 100%; - overflow: hidden; - white-space: nowrap; - text-overflow: ellipsis; - - &:hover { - background-color: #fff1; - } -`; - -export const ContextItems = styled.span` - margin-left: 5px; - font-size: ${getFontSize() - 1}px; - color: ${lightGray}; - - &:hover { - text-decoration: underline; - } -`; - interface ContextItemsPeekProps { contextItems?: ContextItemWithId[]; } -function filterInstructionContextItem( - contextItems: ContextItemsPeekProps["contextItems"], -) { - return contextItems?.filter( - (ctxItem) => !ctxItem.name.includes(INSTRUCTIONS_BASE_ITEM.name), - ); +interface ContextItemsPeekItemProps { + contextItem: ContextItemWithId; } -const ContextItemsPeek = (props: ContextItemsPeekProps) => { +function ContextItemsPeekItem({ contextItem }: ContextItemsPeekItemProps) { const ideMessenger = useContext(IdeMessengerContext); - const [open, setOpen] = React.useState(false); + function openContextItem() { + const { uri, name, description, content } = contextItem; - const ctxItems = filterInstructionContextItem(props.contextItems); + if (uri?.type === "url") { + window.open(description, "_blank"); + } else if (uri) { + const isRangeInFile = name.includes(" (") && name.endsWith(")"); - if (!ctxItems || ctxItems.length === 0) { - return null; - } - - const contextItemsText = `${ctxItems.length} context ${ - ctxItems.length > 1 ? "items" : "item" - }`; - - function openContextItem(contextItem: ContextItemWithId) { - if (contextItem.description.startsWith("http")) { - window.open(contextItem.description, "_blank"); - } else if ( - contextItem.description.startsWith("/") || - contextItem.description.startsWith("\\") - ) { - if (contextItem.name.includes(" (") && contextItem.name.endsWith(")")) { + if (isRangeInFile) { const rif = contextItemToRangeInFileWithContents(contextItem); ideMessenger.ide.showLines( rif.filepath, @@ -87,23 +38,23 @@ const ContextItemsPeek = (props: ContextItemsPeekProps) => { rif.range.end.line, ); } else { - ideMessenger.ide.openFile(contextItem.description); + ideMessenger.ide.openFile(description); } } else { - ideMessenger.ide.showVirtualFile(contextItem.name, contextItem.content); + ideMessenger.ide.showVirtualFile(name, content); } } - const getContextItemIcon = (contextItem: ContextItemWithId) => { - const dimmensions = "1.4em"; + function getContextItemIcon() { + const dimensions = "18px"; if (contextItem.icon) { return ( ); @@ -114,13 +65,16 @@ const ContextItemsPeek = (props: ContextItemsPeekProps) => { if (shouldShowFileIcon) { return ( - +
+ +
); } @@ -131,79 +85,99 @@ const ContextItemsPeek = (props: ContextItemsPeekProps) => { return ( ); - }; + } return (
+
+ {getContextItemIcon()} +
+
+ {contextItem.name} +
+
+ {contextItem.description} +
+
+
+
+ ); +} + +function ContextItemsPeek({ contextItems }: ContextItemsPeekProps) { + const [open, setOpen] = React.useState(false); + + const ctxItems = contextItems?.filter( + (ctxItem) => !ctxItem.name.includes(INSTRUCTIONS_BASE_ITEM.name), + ); + + if (!ctxItems || ctxItems.length === 0) { + return null; + } + + const contextItemsText = `${ctxItems.length} context ${ + ctxItems.length > 1 ? "items" : "item" + }`; + + return ( +
setOpen((prev) => !prev)} > - {open ? ( - + - ) : ( + /> - )} - {contextItemsText} + /> +
+ + {contextItemsText} +
- {open && ( -
- {ctxItems?.map((contextItem, idx) => { - const contextItemContent = ( - openContextItem(contextItem)}> - {getContextItemIcon(contextItem)} - {contextItem.name} - - ); - - return contextItem.description.startsWith("http") ? ( - - {contextItemContent} - - ) : ( - {contextItemContent} - ); - })} -
- )} +
+ {ctxItems.map((contextItem, idx) => ( + + ))} +
); -}; +} export default ContextItemsPeek; diff --git a/gui/src/components/mainInput/InputToolbar.tsx b/gui/src/components/mainInput/InputToolbar.tsx index 367741b27..e8bbd080a 100644 --- a/gui/src/components/mainInput/InputToolbar.tsx +++ b/gui/src/components/mainInput/InputToolbar.tsx @@ -1,6 +1,6 @@ import { + AtSymbolIcon, PhotoIcon as OutlinePhotoIcon, - PlusIcon, } from "@heroicons/react/24/outline"; import { PhotoIcon as SolidPhotoIcon } from "@heroicons/react/24/solid"; import { InputModifiers } from "core"; @@ -36,64 +36,47 @@ const StyledDiv = styled.div<{ isHidden: boolean }>` cursor: ${(props) => (props.isHidden ? "default" : "text")}; opacity: ${(props) => (props.isHidden ? 0 : 1)}; pointer-events: ${(props) => (props.isHidden ? "none" : "auto")}; - user-select: none; & > * { flex: 0 0 auto; } +`; - /* Hide the "Use codebase" span first */ - @media (max-width: 450px) { - & > span:last-child > span:nth-last-child(2) { - display: none; - } +const HoverItem = styled.span<{ isActive?: boolean }>` + padding: 0 4px; + padding-top: 2px; + padding-bottom: 2px; + cursor: pointer; + transition: color 200ms; + + &:hover { + color: #d1d5db; } `; -const SecondToDisappearContainer = styled.span` - display: flex; - align-items: center; - - @media (max-width: 350px) { - display: none; - } -`; - -const StyledSpan = styled.span` - font-size: ${() => `${getFontSize() - 2}px`}; - color: ${lightGray}; -`; - -const EnterButton = styled.div<{ offFocus: boolean }>` +const EnterButton = styled.div` padding: 2px 4px; display: flex; align-items: center; - - background-color: ${(props) => - props.offFocus ? undefined : lightGray + "33"}; + background-color: ${lightGray}33; border-radius: ${defaultBorderRadius}; color: ${vscForeground}; + cursor: pointer; &:hover { background-color: ${vscBadgeBackground}; color: ${vscBadgeForeground}; } - - cursor: pointer; `; interface InputToolbarProps { onEnter?: (modifiers: InputModifiers) => void; - usingCodebase?: boolean; onAddContextItem?: () => void; - onClick?: () => void; - onImageFileSelected?: (file: File) => void; - hidden?: boolean; - showNoContext: boolean; + activeKey: string | null; } function InputToolbar(props: InputToolbarProps) { @@ -103,6 +86,8 @@ function InputToolbar(props: InputToolbarProps) { const defaultModel = useSelector(defaultModelSelector); const useActiveFile = useSelector(selectUseActiveFile); + console.log(props.activeKey); + return ( <> - - - - - { - props.onAddContextItem(); - }} - className="hover:underline cursor-pointer" +
+
+ +
+
+ - Add Context{" "} - + {defaultModel && modelSupportsImages( defaultModel.provider, @@ -149,18 +133,14 @@ function InputToolbar(props: InputToolbarProps) { /> {fileSelectHovered ? ( { fileInputRef.current?.click(); }} /> ) : ( { fileInputRef.current?.click(); }} @@ -168,59 +148,51 @@ function InputToolbar(props: InputToolbarProps) { )} )} - - - - - {props.showNoContext ? ( - - {getAltKeyLabel()} ⏎{" "} - {useActiveFile ? "No context" : "Use active file"} - - ) : ( - { - props.onEnter({ - useCodebase: true, - noContext: !useActiveFile, - }); - }} - className={"hover:underline cursor-pointer float-right"} - > - {getMetaKeyLabel()} ⏎ Use @codebase - - )} -
- { - props.onEnter({ - useCodebase: isMetaEquivalentKeyPressed(e), - noContext: useActiveFile ? e.altKey : !e.altKey, - }); - }} - > - ⏎ Enter -
-
+
+ +
+
+ {props.activeKey === "Alt" ? ( + + {`${getAltKeyLabel()}⏎ + ${useActiveFile ? "No active file" : "Active file"}`} + + ) : ( + + props.onEnter({ + useCodebase: true, + noContext: !useActiveFile, + }) + } + > + + {" "} + {getMetaKeyLabel()}⏎ @codebase + + @codebase + + )} +
+ + { + props.onEnter({ + useCodebase: isMetaEquivalentKeyPressed(e), + noContext: useActiveFile ? e.altKey : !e.altKey, + }); + }} + > + ⏎ Enter + ⏎ + +
); diff --git a/gui/src/components/mainInput/TipTapEditor.tsx b/gui/src/components/mainInput/TipTapEditor.tsx index a57d19bda..21f0b3923 100644 --- a/gui/src/components/mainInput/TipTapEditor.tsx +++ b/gui/src/components/mainInput/TipTapEditor.tsx @@ -57,6 +57,7 @@ import { getSlashCommandDropdownOptions, } from "./getSuggestion"; import { ComboBoxItem } from "./types"; +import { v4 } from "uuid"; const InputBoxDiv = styled.div` resize: none; @@ -729,7 +730,11 @@ function TipTapEditor(props: TipTapEditorProps) { description: `${relativePath} ${rangeStr}`, id: { providerTitle: "code", - itemId: rif.filepath, + itemId: v4(), + }, + uri: { + type: "file", + value: rif.filepath, }, }; @@ -810,19 +815,15 @@ function TipTapEditor(props: TipTapEditorProps) { }; }, []); - const [optionKeyHeld, setOptionKeyHeld] = useState(false); + const [activeKey, setActiveKey] = useState(null); return ( { - if (e.key === "Alt") { - setOptionKeyHeld(true); - } + setActiveKey(e.key); }} onKeyUp={(e) => { - if (e.key === "Alt") { - setOptionKeyHeld(false); - } + setActiveKey(null); }} className="cursor-text" onClick={() => { @@ -874,7 +875,7 @@ function TipTapEditor(props: TipTapEditorProps) { }} />
)} - { + {showTutorialCard !== false && !onboardingCard.open && (
- } + )} )}
From 9f9a9b5a24b0683ba6884b2113849733ecb015f1 Mon Sep 17 00:00:00 2001 From: Test Date: Wed, 25 Sep 2024 10:36:19 -0700 Subject: [PATCH 214/268] Update prepackage-cross-platform.js --- extensions/vscode/scripts/prepackage-cross-platform.js | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/extensions/vscode/scripts/prepackage-cross-platform.js b/extensions/vscode/scripts/prepackage-cross-platform.js index 018ea70c2..65cf8836c 100644 --- a/extensions/vscode/scripts/prepackage-cross-platform.js +++ b/extensions/vscode/scripts/prepackage-cross-platform.js @@ -157,8 +157,8 @@ async function package(target, os, arch, exe) { os === "darwin" ? "libonnxruntime.1.14.0.dylib" : os === "linux" - ? "libonnxruntime.so.1.14.0" - : "onnxruntime.dll" + ? "libonnxruntime.so.1.14.0" + : "onnxruntime.dll" }`, "builtin-themes/dark_modern.json", @@ -167,7 +167,7 @@ async function package(target, os, arch, exe) { "gui/assets/index.css", // Tutorial - "media/welcome.md", + "media/move-chat-panel-right.md", "continue_tutorial.py", "config_schema.json", @@ -197,8 +197,8 @@ async function package(target, os, arch, exe) { target === "win32-arm64" ? "esbuild.exe" : target === "win32-x64" - ? "win32-x64/esbuild.exe" - : `${target}/bin/esbuild` + ? "win32-x64/esbuild.exe" + : `${target}/bin/esbuild` }`, `out/node_modules/@lancedb/vectordb-${ os === "win32" From 08e13093efcd315d8f7b6550864868da3ab9607c Mon Sep 17 00:00:00 2001 From: Nate Date: Wed, 25 Sep 2024 12:25:38 -0700 Subject: [PATCH 215/268] update free trial config schemas --- docs/static/schemas/config.json | 2 -- extensions/intellij/src/main/resources/config_schema.json | 2 -- extensions/vscode/config_schema.json | 2 -- extensions/vscode/continue_rc_schema.json | 2 -- 4 files changed, 8 deletions(-) diff --git a/docs/static/schemas/config.json b/docs/static/schemas/config.json index 176bbd295..6692f2de7 100644 --- a/docs/static/schemas/config.json +++ b/docs/static/schemas/config.json @@ -609,9 +609,7 @@ "llama3.1-70b", "llama3.1-405b", "gpt-3.5-turbo", - "phind-codellama-34b", "gemini-pro", - "mistral-8x7b", "claude-3-5-sonnet-20240620", "claude-3-haiku-20240307", "AUTODETECT" diff --git a/extensions/intellij/src/main/resources/config_schema.json b/extensions/intellij/src/main/resources/config_schema.json index 176bbd295..6692f2de7 100644 --- a/extensions/intellij/src/main/resources/config_schema.json +++ b/extensions/intellij/src/main/resources/config_schema.json @@ -609,9 +609,7 @@ "llama3.1-70b", "llama3.1-405b", "gpt-3.5-turbo", - "phind-codellama-34b", "gemini-pro", - "mistral-8x7b", "claude-3-5-sonnet-20240620", "claude-3-haiku-20240307", "AUTODETECT" diff --git a/extensions/vscode/config_schema.json b/extensions/vscode/config_schema.json index 176bbd295..6692f2de7 100644 --- a/extensions/vscode/config_schema.json +++ b/extensions/vscode/config_schema.json @@ -609,9 +609,7 @@ "llama3.1-70b", "llama3.1-405b", "gpt-3.5-turbo", - "phind-codellama-34b", "gemini-pro", - "mistral-8x7b", "claude-3-5-sonnet-20240620", "claude-3-haiku-20240307", "AUTODETECT" diff --git a/extensions/vscode/continue_rc_schema.json b/extensions/vscode/continue_rc_schema.json index 8a1c0bca0..4095e0fa0 100644 --- a/extensions/vscode/continue_rc_schema.json +++ b/extensions/vscode/continue_rc_schema.json @@ -658,9 +658,7 @@ "llama3.1-70b", "llama3.1-405b", "gpt-3.5-turbo", - "phind-codellama-34b", "gemini-pro", - "mistral-8x7b", "claude-3-5-sonnet-20240620", "claude-3-haiku-20240307", "AUTODETECT" From b39a95450283e4bdaf386df648dd1a709810116d Mon Sep 17 00:00:00 2001 From: Nate Date: Wed, 25 Sep 2024 12:25:51 -0700 Subject: [PATCH 216/268] update max tokens for o1 --- core/llm/llms/index.ts | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/core/llm/llms/index.ts b/core/llm/llms/index.ts index 2b894f418..dedae7795 100644 --- a/core/llm/llms/index.ts +++ b/core/llm/llms/index.ts @@ -6,7 +6,6 @@ import { ModelDescription, } from "../.."; import { renderTemplatedString } from "../../promptFiles/renderTemplatedString"; -import { DEFAULT_MAX_TOKENS } from "../constants"; import { BaseLLM } from "../index"; import Anthropic from "./Anthropic"; import Azure from "./Azure"; @@ -112,8 +111,7 @@ export async function llmFromDescription( model: (desc.model || cls.defaultOptions?.model) ?? "codellama-7b", maxTokens: finalCompletionOptions.maxTokens ?? - cls.defaultOptions?.completionOptions?.maxTokens ?? - DEFAULT_MAX_TOKENS, + cls.defaultOptions?.completionOptions?.maxTokens, }, systemMessage, writeLog, From c542e5d6153078f42e8eaf4361a4e5bdf24d9bc2 Mon Sep 17 00:00:00 2001 From: Test Date: Wed, 25 Sep 2024 14:42:31 -0700 Subject: [PATCH 217/268] fix: autocomplete logging + input layout --- core/autocomplete/completionProvider.ts | 4 ++-- core/core.ts | 4 +++- .../autocomplete/AutocompleteService.kt | 3 +++ gui/src/components/Layout.tsx | 1 + gui/src/components/gui/StepContainer.tsx | 21 +++++-------------- gui/src/components/mainInput/InputToolbar.tsx | 14 ++++++------- .../components/modelSelection/ModelSelect.tsx | 2 +- gui/src/pages/gui.tsx | 10 +++++---- 8 files changed, 28 insertions(+), 31 deletions(-) diff --git a/core/autocomplete/completionProvider.ts b/core/autocomplete/completionProvider.ts index bbc2d2577..e3c887c82 100644 --- a/core/autocomplete/completionProvider.ts +++ b/core/autocomplete/completionProvider.ts @@ -204,7 +204,7 @@ export class CompletionProvider { const outcome = this._outcomes.get(completionId)!; outcome.accepted = true; logDevData("autocomplete", outcome); - Telemetry.capture( + void Telemetry.capture( "autocomplete", { accepted: outcome.accepted, @@ -378,7 +378,7 @@ export class CompletionProvider { outcome.accepted = false; logDevData("autocomplete", outcome); const { prompt, completion, ...restOfOutcome } = outcome; - Telemetry.capture( + void Telemetry.capture( "autocomplete", { ...restOfOutcome, diff --git a/core/core.ts b/core/core.ts index 3e5129a62..e9b29b493 100644 --- a/core/core.ts +++ b/core/core.ts @@ -571,7 +571,9 @@ export class Core { ); return outcome ? [outcome.completion] : []; }); - on("autocomplete/accept", async (msg) => {}); + on("autocomplete/accept", async (msg) => { + this.completionProvider.accept(msg.data.completionId); + }); on("autocomplete/cancel", async (msg) => { this.completionProvider.cancel(); }); 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 c46cb7222..877308fa4 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 @@ -148,8 +148,10 @@ class AutocompleteService(private val project: Project) { val editor = completion.editor val offset = completion.offset editor.document.insertString(offset, text) + editor.caretModel.moveToOffset(offset + text.length) + project.service().coreMessenger?.request("autocomplete/accept", completion.completionId, null, ({})) invokeLater { clearCompletions(editor) @@ -177,6 +179,7 @@ class AutocompleteService(private val project: Project) { if (currentDelimiter.isNotEmpty()) { result.add(currentDelimiter) + } return result diff --git a/gui/src/components/Layout.tsx b/gui/src/components/Layout.tsx index 9a66c9e05..d012194a3 100644 --- a/gui/src/components/Layout.tsx +++ b/gui/src/components/Layout.tsx @@ -35,6 +35,7 @@ const LayoutTopDiv = styled(CustomScrollbarDiv)` height: 100%; border-radius: ${defaultBorderRadius}; position: relative; + overflow-x: hidden; &::after { position: absolute; diff --git a/gui/src/components/gui/StepContainer.tsx b/gui/src/components/gui/StepContainer.tsx index 9354a73b5..cb2013437 100644 --- a/gui/src/components/gui/StepContainer.tsx +++ b/gui/src/components/gui/StepContainer.tsx @@ -123,24 +123,13 @@ function StepContainer(props: StepContainerProps) { {(props.isLast || isHovered || typeof feedback !== "undefined") && !active && ( -
+
{props.modelTitle && (
-
{props.modelTitle}
-
+
+ {props.modelTitle} +
+
)} diff --git a/gui/src/components/mainInput/InputToolbar.tsx b/gui/src/components/mainInput/InputToolbar.tsx index 4fc1144ad..14608ed17 100644 --- a/gui/src/components/mainInput/InputToolbar.tsx +++ b/gui/src/components/mainInput/InputToolbar.tsx @@ -114,7 +114,7 @@ function InputToolbar(props: InputToolbarProps) { defaultModel.capabilities, ) && ( setFileSelectHovered(false)} onMouseEnter={() => setFileSelectHovered(true)} > @@ -170,11 +170,11 @@ function InputToolbar(props: InputToolbarProps) { }) } > - - {" "} - {getMetaKeyLabel()}⏎ @codebase + + {getMetaKeyLabel()}⏎ Use @codebase - @codebase + + @codebase )}
@@ -187,8 +187,8 @@ function InputToolbar(props: InputToolbarProps) { }); }} > - ⏎ Enter - ⏎ + ⏎ Enter + ⏎
diff --git a/gui/src/components/modelSelection/ModelSelect.tsx b/gui/src/components/modelSelection/ModelSelect.tsx index 1048ad562..e6d1858ff 100644 --- a/gui/src/components/modelSelection/ModelSelect.tsx +++ b/gui/src/components/modelSelection/ModelSelect.tsx @@ -318,7 +318,7 @@ function ModelSelect() { style={{ padding: 0 }} onClick={calculatePosition} > -
+
{modelSelectTitle(defaultModel) || "Select model"}{" "} diff --git a/gui/src/pages/gui.tsx b/gui/src/pages/gui.tsx index f4954dc1d..51c0981ae 100644 --- a/gui/src/pages/gui.tsx +++ b/gui/src/pages/gui.tsx @@ -469,20 +469,22 @@ function GUI() {
) : state.history.length > 0 ? ( -
+
{ saveSession(); }} className="mr-auto" > - New Session ({getMetaKeyLabel()} {isJetBrains() ? "J" : "L"}) + + New Session ({getMetaKeyLabel()} {isJetBrains() ? "J" : "L"}) + {" "}
) : ( <> {getLastSessionId() ? ( -
+
{ loadLastSession().catch((e) => @@ -491,7 +493,7 @@ function GUI() { }} className="mr-auto flex items-center gap-2" > - + Last Session
From 183ae03ee37ba6629201211e9a63fbcb04ebc527 Mon Sep 17 00:00:00 2001 From: Test Date: Wed, 25 Sep 2024 15:32:06 -0700 Subject: [PATCH 218/268] fix: unnecessary scroll delay --- gui/src/components/ChatScrollAnchor.tsx | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/gui/src/components/ChatScrollAnchor.tsx b/gui/src/components/ChatScrollAnchor.tsx index 59e59ab9b..40c0f9d19 100644 --- a/gui/src/components/ChatScrollAnchor.tsx +++ b/gui/src/components/ChatScrollAnchor.tsx @@ -12,10 +12,7 @@ export function ChatScrollAnchor({ isAtBottom, scrollAreaRef, }: ChatScrollAnchorProps) { - const { ref, inView, entry } = useInView({ - trackVisibility, - delay: 100, - }); + const { ref, inView, entry } = useInView(); useEffect(() => { if (isAtBottom && trackVisibility && !inView) { From 6e5c475754381a180a7acb193ccfca6c092ce0ce Mon Sep 17 00:00:00 2001 From: Nate Date: Wed, 25 Sep 2024 16:24:53 -0700 Subject: [PATCH 219/268] Use native Ollama FIM --- core/llm/index.ts | 2 +- core/llm/llms/Ollama.ts | 48 ++++++++++++++++++++++++++++++++++++++++- core/llm/llms/OpenAI.ts | 2 +- 3 files changed, 49 insertions(+), 3 deletions(-) diff --git a/core/llm/index.ts b/core/llm/index.ts index fd36222c9..336ded890 100644 --- a/core/llm/index.ts +++ b/core/llm/index.ts @@ -430,7 +430,7 @@ export abstract class BaseLLM implements ILLM { return formatted; } - async *_streamFim( + protected async *_streamFim( prefix: string, suffix: string, options: CompletionOptions, diff --git a/core/llm/llms/Ollama.ts b/core/llm/llms/Ollama.ts index f830b7f0f..3b16d0456 100644 --- a/core/llm/llms/Ollama.ts +++ b/core/llm/llms/Ollama.ts @@ -61,7 +61,7 @@ class Ollama extends BaseLLM { this.completionOptions.stop.push(JSON.parse(value)); } catch (e) { console.warn( - "Error parsing stop parameter value \"{value}: ${e}", + 'Error parsing stop parameter value "{value}: ${e}', ); } break; @@ -132,11 +132,13 @@ class Ollama extends BaseLLM { private _convertArgs( options: CompletionOptions, prompt: string | ChatMessage[], + suffix?: string, ) { const finalOptions: any = { model: this._getModel(), raw: true, keep_alive: options.keepAlive ?? 60 * 30, // 30 minutes + suffix, options: { temperature: options.temperature, top_p: options.topP, @@ -248,6 +250,50 @@ class Ollama extends BaseLLM { } } + supportsFim(): boolean { + return true; + } + + protected async *_streamFim( + prefix: string, + suffix: string, + options: CompletionOptions, + ): AsyncGenerator { + const response = await this.fetch(this.getEndpoint("api/generate"), { + method: "POST", + headers: { + "Content-Type": "application/json", + Authorization: `Bearer ${this.apiKey}`, + }, + body: JSON.stringify(this._convertArgs(options, prefix, suffix)), + }); + + let buffer = ""; + for await (const value of streamResponse(response)) { + // Append the received chunk to the buffer + 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]; + if (chunk.trim() !== "") { + try { + const j = JSON.parse(chunk); + if ("response" in j) { + yield j.response; + } else if ("error" in j) { + throw new Error(j.error); + } + } catch (e) { + throw new Error(`Error parsing Ollama response: ${e} ${chunk}`); + } + } + } + } + } + async listModels(): Promise { const response = await this.fetch( // localhost was causing fetch failed in pkg binary only for this Ollama endpoint diff --git a/core/llm/llms/OpenAI.ts b/core/llm/llms/OpenAI.ts index e37b43799..9366a7954 100644 --- a/core/llm/llms/OpenAI.ts +++ b/core/llm/llms/OpenAI.ts @@ -264,7 +264,7 @@ class OpenAI extends BaseLLM { } } - async *_streamFim( + protected async *_streamFim( prefix: string, suffix: string, options: CompletionOptions, From f63fd5d83cefbbe01721515a8f28f435353bd804 Mon Sep 17 00:00:00 2001 From: Test Date: Wed, 25 Sep 2024 18:05:15 -0700 Subject: [PATCH 220/268] fix: add uuid to chat msgs for deletions --- gui/src/components/gui/StepContainer.tsx | 85 +++--- gui/src/components/mainInput/InputToolbar.tsx | 129 +++++---- gui/src/components/mainInput/TipTapEditor.tsx | 8 +- gui/src/components/markdown/CopyButton.tsx | 2 +- .../components/modelSelection/ModelSelect.tsx | 2 +- gui/src/hooks/useSubmenuContextProviders.tsx | 72 +---- gui/src/pages/gui.tsx | 248 ++++++++---------- gui/src/redux/slices/stateSlice.ts | 107 ++------ 8 files changed, 238 insertions(+), 415 deletions(-) diff --git a/gui/src/components/gui/StepContainer.tsx b/gui/src/components/gui/StepContainer.tsx index cb2013437..10a21fa0a 100644 --- a/gui/src/components/gui/StepContainer.tsx +++ b/gui/src/components/gui/StepContainer.tsx @@ -10,12 +10,7 @@ import { stripImages } from "core/llm/images"; import { useContext, useEffect, useState } from "react"; import { useSelector } from "react-redux"; import styled from "styled-components"; -import { - defaultBorderRadius, - lightGray, - vscBackground, - vscInputBackground, -} from ".."; +import { defaultBorderRadius, vscBackground, vscInputBackground } from ".."; import { IdeMessengerContext } from "../../context/IdeMessenger"; import useUIConfig from "../../hooks/useUIConfig"; import { RootState } from "../../redux/store"; @@ -49,30 +44,15 @@ const ContentDiv = styled.div<{ isUserInput: boolean; fontSize?: number }>` function StepContainer(props: StepContainerProps) { const [isHovered, setIsHovered] = useState(false); - const isUserInput = props.item.message.role === "user"; const active = useSelector((store: RootState) => store.state.active); + const history = useSelector((state: RootState) => state.state.history); + const [truncatedEarly, setTruncatedEarly] = useState(false); const ideMessenger = useContext(IdeMessengerContext); - const [feedback, setFeedback] = useState(undefined); - const sessionId = useSelector((store: RootState) => store.state.sessionId); - const sendFeedback = (feedback: boolean) => { - setFeedback(feedback); - if (props.item.promptLogs?.length) { - for (const promptLog of props.item.promptLogs) { - ideMessenger.post("devdata/log", { - tableName: "chat", - data: { ...promptLog, feedback, sessionId }, - }); - } - } - }; - - const [truncatedEarly, setTruncatedEarly] = useState(false); - + const isUserInput = props.item.message.role === "user"; const uiConfig = useUIConfig(); - useEffect(() => { if (!active) { const content = stripImages(props.item.message.content).trim(); @@ -92,6 +72,18 @@ function StepContainer(props: StepContainerProps) { } }, [props.item.message.content, active]); + const sendFeedback = (feedback: boolean) => { + setFeedback(feedback); + if (props.item.promptLogs?.length) { + for (const promptLog of props.item.promptLogs) { + ideMessenger.post("devdata/log", { + tableName: "chat", + data: { ...promptLog, feedback, sessionId }, + }); + } + } + }; + return (
{ @@ -121,6 +113,7 @@ function StepContainer(props: StepContainerProps) { /> )} + {(props.isLast || isHovered || typeof feedback !== "undefined") && !active && (
@@ -129,7 +122,7 @@ function StepContainer(props: StepContainerProps) {
{props.modelTitle}
-
+
)} @@ -137,38 +130,28 @@ function StepContainer(props: StepContainerProps) { { - props.onContinueGeneration(); - }} + onClick={props.onContinueGeneration} > - + )} + { - props.onRetry(); - }} + onClick={props.onRetry} > - + {feedback === false || ( { sendFeedback(true); }} @@ -178,25 +161,19 @@ function StepContainer(props: StepContainerProps) { {feedback === true || ( { sendFeedback(false); }} /> )} - - { - props.onDelete(); - }} - /> - + + {props.index !== 1 && ( + + + + )}
)}
diff --git a/gui/src/components/mainInput/InputToolbar.tsx b/gui/src/components/mainInput/InputToolbar.tsx index 14608ed17..b3f1a32d1 100644 --- a/gui/src/components/mainInput/InputToolbar.tsx +++ b/gui/src/components/mainInput/InputToolbar.tsx @@ -1,11 +1,11 @@ import { AtSymbolIcon, - PhotoIcon as OutlinePhotoIcon, + PhotoIcon, + SlashIcon, } from "@heroicons/react/24/outline"; -import { PhotoIcon as SolidPhotoIcon } from "@heroicons/react/24/solid"; import { InputModifiers } from "core"; import { modelSupportsImages } from "core/llm/autodetect"; -import { useRef, useState } from "react"; +import { useRef } from "react"; import { useSelector } from "react-redux"; import styled from "styled-components"; import { @@ -48,11 +48,7 @@ const HoverItem = styled.span<{ isActive?: boolean }>` padding-top: 2px; padding-bottom: 2px; cursor: pointer; - transition: color 200ms; - - &:hover { - color: #d1d5db; - } + transition: color 200ms, background-color 200ms, box-shadow 200ms; `; const EnterButton = styled.div` @@ -73,6 +69,7 @@ const EnterButton = styled.div` interface InputToolbarProps { onEnter?: (modifiers: InputModifiers) => void; onAddContextItem?: () => void; + onAddSlashCommand?: () => void; onClick?: () => void; onImageFileSelected?: (file: File) => void; hidden?: boolean; @@ -81,78 +78,74 @@ interface InputToolbarProps { function InputToolbar(props: InputToolbarProps) { const fileInputRef = useRef(null); - const [fileSelectHovered, setFileSelectHovered] = useState(false); - const defaultModel = useSelector(defaultModelSelector); const useActiveFile = useSelector(selectUseActiveFile); + const supportsImages = + defaultModel && + modelSupportsImages( + defaultModel.provider, + defaultModel.model, + defaultModel.title, + defaultModel.capabilities, + ); + return ( <>
-
- -
-
- - - - {defaultModel && - modelSupportsImages( - defaultModel.provider, - defaultModel.model, - defaultModel.title, - defaultModel.capabilities, - ) && ( - setFileSelectHovered(false)} - onMouseEnter={() => setFileSelectHovered(true)} - > - { - for (const file of e.target.files) { - props.onImageFileSelected(file); - } + +
+ {supportsImages && ( + <> + { + for (const file of e.target.files) { + props.onImageFileSelected(file); + } + }} + /> + + { + fileInputRef.current?.click(); }} /> - {fileSelectHovered ? ( - { - fileInputRef.current?.click(); - }} - /> - ) : ( - { - fileInputRef.current?.click(); - }} - /> - )} - - )} + + + )} + + + + + + + +
-
-
+
+
{props.activeKey === "Alt" ? ( - + {`${getAltKeyLabel()}⏎ ${useActiveFile ? "No active file" : "Active file"}`} @@ -161,7 +154,7 @@ function InputToolbar(props: InputToolbarProps) { className={ props.activeKey === "Meta" ? "text-gray-300" - : "text-gray-400 hover:text-gray-300 transition-colors duration-200" + : "hover:text-gray-300" } onClick={(e) => props.onEnter({ @@ -170,11 +163,11 @@ function InputToolbar(props: InputToolbarProps) { }) } > - + {getMetaKeyLabel()}⏎ Use @codebase - @codebase + @codebase )}
@@ -187,8 +180,8 @@ function InputToolbar(props: InputToolbarProps) { }); }} > - ⏎ Enter - ⏎ + ⏎ Enter + ⏎
diff --git a/gui/src/components/mainInput/TipTapEditor.tsx b/gui/src/components/mainInput/TipTapEditor.tsx index 21f0b3923..627865b04 100644 --- a/gui/src/components/mainInput/TipTapEditor.tsx +++ b/gui/src/components/mainInput/TipTapEditor.tsx @@ -878,11 +878,15 @@ function TipTapEditor(props: TipTapEditorProps) { activeKey={activeKey} hidden={shouldHideToolbar && !props.isMainInput} onAddContextItem={() => { - if (editor.getText().endsWith("@")) { - } else { + if (!editor.getText().endsWith("@")) { editor.commands.insertContent("@"); } }} + onAddSlashCommand={() => { + if (!editor.getText().endsWith("/")) { + editor.commands.insertContent("/"); + } + }} onEnter={onEnterRef.current} onImageFileSelected={(file) => { handleImageFile(file).then(([img, dataUrl]) => { diff --git a/gui/src/components/markdown/CopyButton.tsx b/gui/src/components/markdown/CopyButton.tsx index cd47df6db..144b427f5 100644 --- a/gui/src/components/markdown/CopyButton.tsx +++ b/gui/src/components/markdown/CopyButton.tsx @@ -36,7 +36,7 @@ export function CopyButton(props: CopyButtonProps) { {copied ? ( ) : ( - + )} diff --git a/gui/src/components/modelSelection/ModelSelect.tsx b/gui/src/components/modelSelection/ModelSelect.tsx index e6d1858ff..518d60798 100644 --- a/gui/src/components/modelSelection/ModelSelect.tsx +++ b/gui/src/components/modelSelection/ModelSelect.tsx @@ -318,7 +318,7 @@ function ModelSelect() { style={{ padding: 0 }} onClick={calculatePosition} > -
+
{modelSelectTitle(defaultModel) || "Select model"}{" "} diff --git a/gui/src/hooks/useSubmenuContextProviders.tsx b/gui/src/hooks/useSubmenuContextProviders.tsx index 79036bd81..fc0b0c71a 100644 --- a/gui/src/hooks/useSubmenuContextProviders.tsx +++ b/gui/src/hooks/useSubmenuContextProviders.tsx @@ -55,7 +55,6 @@ function useSubmenuContextProviders() { }, [ideMessenger]); useWebviewListener("refreshSubmenuItems", async (data) => { - console.debug("refreshSubmenuItems called with data:", data); if (!isLoading) { setLoaded(false); setInitialLoadComplete(false); @@ -64,7 +63,6 @@ function useSubmenuContextProviders() { }); useWebviewListener("updateSubmenuItems", async (data) => { - console.debug("updateSubmenuItems called with data:", data); const minisearch = new MiniSearch({ fields: ["title", "description"], storeFields: ["id", "title", "description"], @@ -128,13 +126,6 @@ function useSubmenuContextProviders() { const getSubmenuSearchResults = useMemo( () => (providerTitle: string | undefined, query: string): SearchResult[] => { - console.debug( - "Executing getSubmenuSearchResults. Provider:", - providerTitle, - "Query:", - query, - ); - console.debug("Current minisearches:", Object.keys(minisearches)); if (providerTitle === undefined) { // Return search combined from all providers const results = Object.keys(minisearches).map((providerTitle) => { @@ -142,10 +133,6 @@ function useSubmenuContextProviders() { query, MINISEARCH_OPTIONS, ); - console.debug( - `Search results for ${providerTitle}:`, - results.length, - ); return results.map((result) => { return { ...result, providerTitle }; }); @@ -154,7 +141,6 @@ function useSubmenuContextProviders() { return results.flat().sort((a, b) => b.score - a.score); } if (!minisearches[providerTitle]) { - console.debug(`No minisearch found for provider: ${providerTitle}`); return []; } @@ -163,7 +149,6 @@ function useSubmenuContextProviders() { .map((result) => { return { ...result, providerTitle }; }); - console.debug(`Search results for ${providerTitle}:`, results.length); return results; }, @@ -177,17 +162,6 @@ function useSubmenuContextProviders() { query: string, limit: number = MAX_LENGTH, ): (ContextSubmenuItem & { providerTitle: string })[] => { - console.debug( - "Executing getSubmenuContextItems. Provider:", - providerTitle, - "Query:", - query, - "Limit:", - limit, - ); - console.debug("Current fallbackResults:", fallbackResults); - console.debug("Current minisearches:", Object.keys(minisearches)); - try { const results = getSubmenuSearchResults(providerTitle, query); if (results.length === 0) { @@ -201,9 +175,6 @@ function useSubmenuContextProviders() { }); if (fallbackItems.length === 0 && !initialLoadComplete) { - console.debug( - "Initial load not complete, returning loading state", - ); return [ { id: "loading", @@ -214,8 +185,6 @@ function useSubmenuContextProviders() { ]; } - console.debug("Using fallback results:", fallbackItems.length); - console.debug("Fallback items:", fallbackItems); return fallbackItems; } const limitedResults = results.slice(0, limit).map((result) => { @@ -243,12 +212,6 @@ function useSubmenuContextProviders() { setIsLoading(true); const loadSubmenuItems = async () => { - console.debug("Starting loadSubmenuItems"); - console.debug( - "contextProviderDescriptions:", - contextProviderDescriptions, - ); - try { const disableIndexing = getLocalStorage("disableIndexing") ?? false; @@ -264,14 +227,12 @@ function useSubmenuContextProviders() { return; } - console.debug(`Processing provider: ${description.title}`); - try { const minisearch = new MiniSearch({ fields: ["title", "description"], storeFields: ["id", "title", "description"], }); - console.debug(`Requesting items for ${description.title}`); + const result = (await ideMessenger.request( "context/loadSubmenuItems", { @@ -279,11 +240,6 @@ function useSubmenuContextProviders() { }, )) as WebviewMessengerResult<"context/loadSubmenuItems">; - console.debug( - `Received result for ${description.title}:`, - result, - ); - if (result.status === "error") { console.error( `Error loading items for ${description.title}:`, @@ -293,21 +249,15 @@ function useSubmenuContextProviders() { } const items = result.content; - console.debug( - `Adding ${items.length} items to minisearch for ${description.title}`, - ); minisearch.addAll(items); - console.debug(`Updating minisearches for ${description.title}`); setMinisearches((prev) => ({ ...prev, [description.title]: minisearch, })); if (description.title === "file") { - console.debug("Processing file provider"); const openFiles = await memoizedGetOpenFileItems(); - console.debug(`Got ${openFiles.length} open files`); setFallbackResults((prev) => ({ ...prev, file: [ @@ -316,9 +266,6 @@ function useSubmenuContextProviders() { ], })); } else { - console.debug( - `Updating fallbackResults for ${description.title}`, - ); setFallbackResults((prev) => ({ ...prev, [description.title]: items.slice(0, MAX_LENGTH), @@ -336,23 +283,16 @@ function useSubmenuContextProviders() { } catch (error) { console.error("Error in loadSubmenuItems:", error); } finally { - console.debug("Finished loadSubmenuItems"); - console.debug("Final minisearches:", Object.keys(minisearches)); - console.debug("Final fallbackResults:", Object.keys(fallbackResults)); setInitialLoadComplete(true); setIsLoading(false); } }; - loadSubmenuItems() - .then(() => { - console.debug("loadSubmenuItems completed successfully"); - }) - .catch((error) => { - console.error("Error in loadSubmenuItems:", error); - setInitialLoadComplete(true); - setIsLoading(false); - }); + loadSubmenuItems().catch((error) => { + console.error("Error in loadSubmenuItems:", error); + setInitialLoadComplete(true); + setIsLoading(false); + }); }, [contextProviderDescriptions, loaded, autoLoadTriggered]); useWebviewListener("configUpdate", async () => { diff --git a/gui/src/pages/gui.tsx b/gui/src/pages/gui.tsx index 51c0981ae..d1535f1ad 100644 --- a/gui/src/pages/gui.tsx +++ b/gui/src/pages/gui.tsx @@ -149,37 +149,20 @@ function GUI() { const posthog = usePostHog(); const dispatch = useDispatch(); const ideMessenger = useContext(IdeMessengerContext); - + const { streamResponse } = useChatHandler(dispatch, ideMessenger); const onboardingCard = useOnboardingCard(); const { showTutorialCard, closeTutorialCard } = useTutorialCard(); - const sessionState = useSelector((state: RootState) => state.state); - const defaultModel = useSelector(defaultModelSelector); - const ttsActive = useSelector((state: RootState) => state.state.ttsActive); const active = useSelector((state: RootState) => state.state.active); - const [stepsOpen, setStepsOpen] = useState<(boolean | undefined)[]>([]); - const mainTextInputRef = useRef(null); const topGuiDivRef = useRef(null); - const [isAtBottom, setIsAtBottom] = useState(false); - const state = useSelector((state: RootState) => state.state); - - const handleScroll = () => { - // Temporary fix to account for additional height when code blocks are added - const OFFSET_HERUISTIC = 300; - if (!topGuiDivRef.current) return; - - const { scrollTop, scrollHeight, clientHeight } = topGuiDivRef.current; - const atBottom = - scrollHeight - clientHeight <= scrollTop + OFFSET_HERUISTIC; - - setIsAtBottom(atBottom); - }; + const { saveSession, getLastSessionId, loadLastSession } = + useHistory(dispatch); useEffect(() => { if (!active || !topGuiDivRef.current) return; @@ -210,9 +193,17 @@ function GUI() { }; }, [active]); - // #endregion + const handleScroll = () => { + // Temporary fix to account for additional height when code blocks are added + const OFFSET_HERUISTIC = 300; + if (!topGuiDivRef.current) return; - const { streamResponse } = useChatHandler(dispatch, ideMessenger); + const { scrollTop, scrollHeight, clientHeight } = topGuiDivRef.current; + const atBottom = + scrollHeight - clientHeight <= scrollTop + OFFSET_HERUISTIC; + + setIsAtBottom(atBottom); + }; const sendInput = useCallback( (editorState: JSONContent, modifiers: InputModifiers) => { @@ -316,9 +307,6 @@ function GUI() { ], ); - const { saveSession, getLastSessionId, loadLastSession } = - useHistory(dispatch); - useWebviewListener( "newSession", async () => { @@ -330,14 +318,9 @@ function GUI() { const isLastUserInput = useCallback( (index: number): boolean => { - let foundLaterUserInput = false; - for (let i = index + 1; i < state.history.length; i++) { - if (state.history[i].message.role === "user") { - foundLaterUserInput = true; - break; - } - } - return !foundLaterUserInput; + return !state.history + .slice(index + 1) + .some((entry) => entry.message.role === "user"); }, [state.history], ); @@ -351,117 +334,113 @@ function GUI() { >
- {state.history.map((item, index: number) => { - return ( - - { - dispatch(newSession()); - }} - > - {item.message.role === "user" ? ( - { - streamResponse( - editorState, - modifiers, - ideMessenger, - index, - ); - }} - isLastUserInput={isLastUserInput(index)} - isMainInput={false} - editorState={item.editorState} - contextItems={item.contextItems} - > - ) : ( -
- - ) : false ? ( - - ) : ( - - ) - } + {state.history.map((item, index: number) => ( + + { + dispatch(newSession()); + }} + > + {item.message.role === "user" ? ( + { + streamResponse( + editorState, + modifiers, + ideMessenger, + index, + ); + }} + isLastUserInput={isLastUserInput(index)} + isMainInput={false} + editorState={item.editorState} + contextItems={item.contextItems} + /> + ) : ( +
+ + ) : false ? ( + + ) : ( + + ) + } + open={ + typeof stepsOpen[index] === "undefined" + ? false + ? false + : true + : stepsOpen[index]! + } + onToggle={() => {}} + > + {}} - > - {}} - item={item} - onReverse={() => {}} - onRetry={() => { - streamResponse( - state.history[index - 1].editorState, - state.history[index - 1].modifiers ?? - defaultInputModifiers, - ideMessenger, - index - 1, - ); - }} - onContinueGeneration={() => { - window.postMessage( - { - messageType: "userInput", - data: { - input: - "Continue your response exactly where you left off:", - }, + key={index} + onUserInput={(input: string) => {}} + item={item} + onReverse={() => {}} + onRetry={() => { + streamResponse( + state.history[index - 1].editorState, + state.history[index - 1].modifiers ?? + defaultInputModifiers, + ideMessenger, + index - 1, + ); + }} + onContinueGeneration={() => { + window.postMessage( + { + messageType: "userInput", + data: { + input: + "Continue your response exactly where you left off:", }, - "*", - ); - }} - onDelete={() => { - dispatch(deleteMessage(index)); - }} - modelTitle={item.promptLogs?.[0]?.modelTitle ?? ""} - /> - -
- )} -
-
- ); - })} + }, + "*", + ); + }} + onDelete={() => { + dispatch(deleteMessage(index)); + }} + modelTitle={item.promptLogs?.[0]?.modelTitle ?? ""} + /> +
+
+ )} +
+
+ ))}
+ + /> {active ? ( <> @@ -520,6 +499,7 @@ function GUI() { trackVisibility={active} /> + {ttsActive && ( state.state.history], @@ -25,78 +26,14 @@ export const memoizedContextItemsSelector = createSelector( }, ); -const TEST_CONTEXT_ITEMS: ContextItemWithId[] = [ - { - content: "def add(a, b):\n return a + b", - description: "test.py", - name: "test.py", - - id: { - itemId: "test.py", - providerTitle: "file", - }, - }, - { - content: "function add(a, b) {\n return a + b\n}", - - description: "test.js", - name: "test.js", - id: { - itemId: "test.js", - providerTitle: "file", - }, - }, -]; - -const TEST_TIMELINE: ChatHistory = [ - { - message: { - role: "user", - content: "Hi, please write bubble sort in python", - }, - contextItems: [], - }, - { - message: { - role: "assistant", - content: `\`\`\`python -def bubble_sort(arr): - n = len(arr) - for i in range(n): - for j in range(0, n - i - 1): - if arr[j] > arr[j + 1]: - arr[j], arr[j + 1] = arr[j + 1], arr[j] - return arr -\`\`\``, - }, - contextItems: [], - }, - { - message: { role: "user", content: "Now write it in Rust" }, - contextItems: [], - }, - { - message: { - role: "assistant", - content: `Sure, here's bubble sort written in rust: \n\`\`\`rust -fn bubble_sort(values: &mut[T]) { - let len = values.len(); - for i in 0..len { - for j in 0..(len - i - 1) { - if values[j] > values[j + 1] { - values.swap(j, j + 1); - } - } - } -} -\`\`\`\nIs there anything else I can answer?`, - }, - contextItems: [], - }, -]; +// We need this to handle reorderings (e.g. a mid-array deletion) of the messages array. +// The proper fix is adding a UUID to all chat messages, but this is the temp workaround. +type ChatHistoryItemWithMessageId = ChatHistoryItem & { + message: ChatMessage & { id: string }; +}; type State = { - history: ChatHistory; + history: ChatHistoryItemWithMessageId[]; contextItems: ContextItemWithId[]; ttsActive: boolean; active: boolean; @@ -239,6 +176,7 @@ export const stateSlice = createSlice({ // Cut off history after the resubmitted message state.history = state.history.slice(0, payload.index + 1).concat({ message: { + id: uuidv4(), role: "assistant", content: "", }, @@ -250,22 +188,9 @@ export const stateSlice = createSlice({ state.active = true; }, deleteMessage: (state, action: PayloadAction) => { - const index = action.payload + 1; - - if (index >= 0 && index < state.history.length) { - // Delete the current message - state.history.splice(index, 1); - - // If the next message is an assistant message, delete it too - if ( - index < state.history.length && - state.history[index].message.role === "assistant" - ) { - state.history.splice(index, 1); - } - } + // Deletes the current assistant message and the previous user message + state.history.splice(action.payload - 1, 2); }, - initNewActiveMessage: ( state, { @@ -275,12 +200,13 @@ export const stateSlice = createSlice({ }>, ) => { state.history.push({ - message: { role: "user", content: "" }, + message: { role: "user", content: "", id: uuidv4() }, contextItems: state.contextItems, editorState: payload.editorState, }); state.history.push({ message: { + id: uuidv4(), role: "assistant", content: "", }, @@ -302,7 +228,7 @@ export const stateSlice = createSlice({ ) => { if (payload.index >= state.history.length) { state.history.push({ - message: payload.message, + message: { ...payload.message, id: uuidv4() }, editorState: { type: "doc", content: stripImages(payload.message.content) @@ -316,7 +242,10 @@ export const stateSlice = createSlice({ }); return; } - state.history[payload.index].message = payload.message; + state.history[payload.index].message = { + ...payload.message, + id: uuidv4(), + }; state.history[payload.index].contextItems = payload.contextItems || []; }, addContextItemsAtIndex: ( @@ -348,7 +277,7 @@ export const stateSlice = createSlice({ { payload }: PayloadAction, ) => { if (payload) { - state.history = payload.history; + state.history = payload.history as any; state.title = payload.title; state.sessionId = payload.sessionId; } else { From 3289c21f1b59a36fa87a75ece456fe85837592ae Mon Sep 17 00:00:00 2001 From: Test Date: Wed, 25 Sep 2024 18:31:25 -0700 Subject: [PATCH 221/268] gui: set max view width on model select --- gui/src/components/mainInput/InputToolbar.tsx | 4 ++-- gui/src/components/modelSelection/ModelSelect.tsx | 5 ++++- 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/gui/src/components/mainInput/InputToolbar.tsx b/gui/src/components/mainInput/InputToolbar.tsx index b3f1a32d1..57fff591f 100644 --- a/gui/src/components/mainInput/InputToolbar.tsx +++ b/gui/src/components/mainInput/InputToolbar.tsx @@ -96,11 +96,11 @@ function InputToolbar(props: InputToolbarProps) { isHidden={props.hidden} onClick={props.onClick} id="input-toolbar" - className="hidden xs:flex text-gray-400 transition-colors duration-200" + className="hidden xs:flex " >
-
+
{supportsImages && ( <>
- +
{sortedOptions.map((option, idx) => ( Date: Wed, 25 Sep 2024 20:38:34 -0700 Subject: [PATCH 222/268] rename verticalPerLineDiff to verticalDiff --- extensions/vscode/src/commands.ts | 6 +- .../decorations.ts | 0 .../{verticalPerLine => vertical}/handler.ts | 8 +- .../{verticalPerLine => vertical}/manager.ts | 22 ++--- .../vscode/src/diff/verticalPerCharacter.ts | 90 ------------------- .../vscode/src/extension/VsCodeExtension.ts | 10 +-- .../vscode/src/extension/VsCodeMessenger.ts | 7 +- .../VerticalPerLineCodeLensProvider.ts | 2 +- .../codeLens/registerAllCodeLensProviders.ts | 2 +- .../src/quickEdit/QuickEditQuickPick.ts | 6 +- 10 files changed, 28 insertions(+), 125 deletions(-) rename extensions/vscode/src/diff/{verticalPerLine => vertical}/decorations.ts (100%) rename extensions/vscode/src/diff/{verticalPerLine => vertical}/handler.ts (98%) rename extensions/vscode/src/diff/{verticalPerLine => vertical}/manager.ts (95%) delete mode 100644 extensions/vscode/src/diff/verticalPerCharacter.ts diff --git a/extensions/vscode/src/commands.ts b/extensions/vscode/src/commands.ts index 274065b51..6bec8b754 100644 --- a/extensions/vscode/src/commands.ts +++ b/extensions/vscode/src/commands.ts @@ -25,7 +25,7 @@ import { } from "./autocomplete/statusBar"; import { ContinueGUIWebviewViewProvider } from "./ContinueGUIWebviewViewProvider"; import { DiffManager } from "./diff/horizontal"; -import { VerticalPerLineDiffManager } from "./diff/verticalPerLine/manager"; +import { VerticalDiffManager } from "./diff/vertical/manager"; import { QuickEdit, QuickEditShowParams } from "./quickEdit/QuickEditQuickPick"; import { Battery } from "./util/battery"; import { EXTENSION_NAME } from "./util/constants"; @@ -172,7 +172,7 @@ const commandsMap: ( sidebar: ContinueGUIWebviewViewProvider, configHandler: ConfigHandler, diffManager: DiffManager, - verticalDiffManager: VerticalPerLineDiffManager, + verticalDiffManager: VerticalDiffManager, continueServerClientPromise: Promise, battery: Battery, quickEdit: QuickEdit, @@ -713,7 +713,7 @@ export function registerAllCommands( sidebar: ContinueGUIWebviewViewProvider, configHandler: ConfigHandler, diffManager: DiffManager, - verticalDiffManager: VerticalPerLineDiffManager, + verticalDiffManager: VerticalDiffManager, continueServerClientPromise: Promise, battery: Battery, quickEdit: QuickEdit, diff --git a/extensions/vscode/src/diff/verticalPerLine/decorations.ts b/extensions/vscode/src/diff/vertical/decorations.ts similarity index 100% rename from extensions/vscode/src/diff/verticalPerLine/decorations.ts rename to extensions/vscode/src/diff/vertical/decorations.ts diff --git a/extensions/vscode/src/diff/verticalPerLine/handler.ts b/extensions/vscode/src/diff/vertical/handler.ts similarity index 98% rename from extensions/vscode/src/diff/verticalPerLine/handler.ts rename to extensions/vscode/src/diff/vertical/handler.ts index 89554eba4..9259cb38e 100644 --- a/extensions/vscode/src/diff/verticalPerLine/handler.ts +++ b/extensions/vscode/src/diff/vertical/handler.ts @@ -9,12 +9,12 @@ import { } from "./decorations"; import type { VerticalDiffCodeLens } from "./manager"; -export interface VerticalPerLineDiffHandlerOptions { +export interface VerticalDiffHandlerOptions { input?: string; instant?: boolean; } -export class VerticalPerLineDiffHandler implements vscode.Disposable { +export class VerticalDiffHandler implements vscode.Disposable { private editor: vscode.TextEditor; private startLine: number; private endLine: number; @@ -29,7 +29,7 @@ export class VerticalPerLineDiffHandler implements vscode.Disposable { private newLinesAdded = 0; - public options: VerticalPerLineDiffHandlerOptions; + public options: VerticalDiffHandlerOptions; constructor( startLine: number, @@ -44,7 +44,7 @@ export class VerticalPerLineDiffHandler implements vscode.Disposable { accept: boolean, ) => void, private readonly refreshCodeLens: () => void, - options: VerticalPerLineDiffHandlerOptions, + options: VerticalDiffHandlerOptions, ) { this.currentLineIndex = startLine; this.startLine = startLine; diff --git a/extensions/vscode/src/diff/verticalPerLine/manager.ts b/extensions/vscode/src/diff/vertical/manager.ts similarity index 95% rename from extensions/vscode/src/diff/verticalPerLine/manager.ts rename to extensions/vscode/src/diff/vertical/manager.ts index 50db74506..c84fa4397 100644 --- a/extensions/vscode/src/diff/verticalPerLine/manager.ts +++ b/extensions/vscode/src/diff/vertical/manager.ts @@ -5,10 +5,7 @@ import { getMarkdownLanguageTagForFile } from "core/util"; import { DiffLine } from "core"; import { streamDiffLines } from "core/edit/streamDiffLines"; import * as vscode from "vscode"; -import { - VerticalPerLineDiffHandler, - VerticalPerLineDiffHandlerOptions, -} from "./handler"; +import { VerticalDiffHandler, VerticalDiffHandlerOptions } from "./handler"; export interface VerticalDiffCodeLens { start: number; @@ -16,11 +13,10 @@ export interface VerticalDiffCodeLens { numGreen: number; } -export class VerticalPerLineDiffManager { +export class VerticalDiffManager { public refreshCodeLens: () => void = () => {}; - private filepathToHandler: Map = - new Map(); + private filepathToHandler: Map = new Map(); filepathToCodeLens: Map = new Map(); @@ -30,11 +26,11 @@ export class VerticalPerLineDiffManager { this.userChangeListener = undefined; } - createVerticalPerLineDiffHandler( + createVerticalDiffHandler( filepath: string, startLine: number, endLine: number, - options: VerticalPerLineDiffHandlerOptions, + options: VerticalDiffHandlerOptions, ) { if (this.filepathToHandler.has(filepath)) { this.filepathToHandler.get(filepath)?.clear(false); @@ -42,7 +38,7 @@ export class VerticalPerLineDiffManager { } const editor = vscode.window.activeTextEditor; // TODO if (editor && editor.document.uri.fsPath === filepath) { - const handler = new VerticalPerLineDiffHandler( + const handler = new VerticalDiffHandler( startLine, endLine, editor, @@ -92,7 +88,7 @@ export class VerticalPerLineDiffManager { private handleDocumentChange( event: vscode.TextDocumentChangeEvent, - handler: VerticalPerLineDiffHandler, + handler: VerticalDiffHandler, ) { // Loop through each change in the event event.contentChanges.forEach((change) => { @@ -203,7 +199,7 @@ export class VerticalPerLineDiffManager { }); // Create new handler with determined start/end - const diffHandler = this.createVerticalPerLineDiffHandler( + const diffHandler = this.createVerticalDiffHandler( filepath, startLine, endLine, @@ -339,7 +335,7 @@ export class VerticalPerLineDiffManager { }); // Create new handler with determined start/end - const diffHandler = this.createVerticalPerLineDiffHandler( + const diffHandler = this.createVerticalDiffHandler( filepath, startLine, endLine, diff --git a/extensions/vscode/src/diff/verticalPerCharacter.ts b/extensions/vscode/src/diff/verticalPerCharacter.ts deleted file mode 100644 index da63fa041..000000000 --- a/extensions/vscode/src/diff/verticalPerCharacter.ts +++ /dev/null @@ -1,90 +0,0 @@ -import { matchLine } from "core/diff/util"; - -interface DiffBlock { - startLine: number; - endLine: number; - replacement: string[]; -} - -interface LineUpdate { - content: string; - line: number; - replace: boolean; -} - -type DiffEvent = LineUpdate | DiffBlock; - -/** - * Returns a stream of characters, but with "undefined" inserted into the stream whenever there is a new line - */ -async function* streamWithLineBreaks( - completionStream: AsyncGenerator, -): AsyncGenerator { - for await (const chunk of completionStream) { - if (chunk.includes("\n")) { - const lines = chunk.split("\n"); - for (let i = 0; i < lines.length; i++) { - yield lines[i]; - if (i < lines.length - 1) { - yield undefined; - } - } - } else { - yield chunk; - } - } -} - -async function* streamDiffEvents( - completionStream: AsyncGenerator, - oldCode: string, -): AsyncGenerator { - const remainingLines = oldCode.split("\n"); - let i = 0; - let oldLine = remainingLines.shift(); - let newLine = ""; - let alreadyReplacedCurrentLine = false; - - for await (const chunk of streamWithLineBreaks(completionStream)) { - if (chunk === undefined) { - // Decide whether there is a match - const matchIndex = matchLine(newLine, remainingLines); - // Delete all of the lines in the middle - // TODO - - // Start a new line - oldLine = remainingLines.shift(); - newLine = ""; - alreadyReplacedCurrentLine = false; - i++; - } else { - // Continue current line - newLine += chunk; - - if (oldLine?.startsWith(newLine)) { - // Match, do nothing - } else { - // Difference, send the update - // This also handles when we are past all of the oldLines - if (alreadyReplacedCurrentLine) { - yield { - content: chunk, - line: i, - replace: false, - }; - } else { - yield { - content: newLine, - line: i, - replace: true, - }; - alreadyReplacedCurrentLine = true; - } - } - } - } -} - -// But you also want to stream between the diff blocks. -// So...not only do you want to stream DiffBlocks -// Next is stream lines: {line: string, type: "match" | ""} diff --git a/extensions/vscode/src/extension/VsCodeExtension.ts b/extensions/vscode/src/extension/VsCodeExtension.ts index 004f89d89..68714b106 100644 --- a/extensions/vscode/src/extension/VsCodeExtension.ts +++ b/extensions/vscode/src/extension/VsCodeExtension.ts @@ -16,7 +16,7 @@ import { import { registerAllCommands } from "../commands"; import { ContinueGUIWebviewViewProvider } from "../ContinueGUIWebviewViewProvider"; import { DiffManager } from "../diff/horizontal"; -import { VerticalPerLineDiffManager } from "../diff/verticalPerLine/manager"; +import { VerticalDiffManager } from "../diff/vertical/manager"; import { registerAllCodeLensProviders } from "../lang-server/codeLens"; import { QuickEdit } from "../quickEdit/QuickEditQuickPick"; import { setupRemoteConfigSync } from "../stubs/activation"; @@ -41,7 +41,7 @@ export class VsCodeExtension { private sidebar: ContinueGUIWebviewViewProvider; private windowId: string; private diffManager: DiffManager; - private verticalDiffManager: VerticalPerLineDiffManager; + private verticalDiffManager: VerticalDiffManager; webviewProtocolPromise: Promise; private core: Core; private battery: Battery; @@ -66,7 +66,7 @@ export class VsCodeExtension { // Dependencies of core let resolveVerticalDiffManager: any = undefined; - const verticalDiffManagerPromise = new Promise( + const verticalDiffManagerPromise = new Promise( (resolve) => { resolveVerticalDiffManager = resolve; }, @@ -124,9 +124,7 @@ export class VsCodeExtension { resolveConfigHandler?.(this.configHandler); this.configHandler.reloadConfig(); - this.verticalDiffManager = new VerticalPerLineDiffManager( - this.configHandler, - ); + this.verticalDiffManager = new VerticalDiffManager(this.configHandler); resolveVerticalDiffManager?.(this.verticalDiffManager); this.tabAutocompleteModel = new TabAutocompleteModel(this.configHandler); diff --git a/extensions/vscode/src/extension/VsCodeMessenger.ts b/extensions/vscode/src/extension/VsCodeMessenger.ts index 7e521224e..0e5b91b88 100644 --- a/extensions/vscode/src/extension/VsCodeMessenger.ts +++ b/extensions/vscode/src/extension/VsCodeMessenger.ts @@ -1,5 +1,5 @@ -import { ILLM } from "core"; import { ConfigHandler } from "core/config/ConfigHandler"; +import { getModelByRole } from "core/config/util"; import { applyCodeBlock } from "core/edit/lazy/applyCodeBlock"; import { FromCoreProtocol, @@ -19,7 +19,7 @@ import { getConfigJsonPath } from "core/util/paths"; import * as fs from "node:fs"; import * as path from "node:path"; import * as vscode from "vscode"; -import { VerticalPerLineDiffManager } from "../diff/verticalPerLine/manager"; +import { VerticalDiffManager } from "../diff/vertical/manager"; import { getControlPlaneSessionInfo, WorkOsAuthProvider, @@ -27,7 +27,6 @@ import { import { getExtensionUri } from "../util/vscode"; import { VsCodeIde } from "../VsCodeIde"; import { VsCodeWebviewProtocol } from "../webviewProtocol"; -import { getModelByRole } from "core/config/util"; /** * A shared messenger class between Core and Webview @@ -76,7 +75,7 @@ export class VsCodeMessenger { >, private readonly webviewProtocol: VsCodeWebviewProtocol, private readonly ide: VsCodeIde, - private readonly verticalDiffManagerPromise: Promise, + private readonly verticalDiffManagerPromise: Promise, private readonly configHandlerPromise: Promise, private readonly workOsAuthProvider: WorkOsAuthProvider, ) { diff --git a/extensions/vscode/src/lang-server/codeLens/providers/VerticalPerLineCodeLensProvider.ts b/extensions/vscode/src/lang-server/codeLens/providers/VerticalPerLineCodeLensProvider.ts index b0effc563..fdcb30bed 100644 --- a/extensions/vscode/src/lang-server/codeLens/providers/VerticalPerLineCodeLensProvider.ts +++ b/extensions/vscode/src/lang-server/codeLens/providers/VerticalPerLineCodeLensProvider.ts @@ -1,5 +1,5 @@ import * as vscode from "vscode"; -import { VerticalDiffCodeLens } from "../../../diff/verticalPerLine/manager"; +import { VerticalDiffCodeLens } from "../../../diff/vertical/manager"; import { getAltOrOption, getMetaKeyLabel } from "../../../util/util"; export class VerticalPerLineCodeLensProvider diff --git a/extensions/vscode/src/lang-server/codeLens/registerAllCodeLensProviders.ts b/extensions/vscode/src/lang-server/codeLens/registerAllCodeLensProviders.ts index cfaabde06..b70ade262 100644 --- a/extensions/vscode/src/lang-server/codeLens/registerAllCodeLensProviders.ts +++ b/extensions/vscode/src/lang-server/codeLens/registerAllCodeLensProviders.ts @@ -1,7 +1,7 @@ import { ContinueConfig } from "core"; import * as vscode from "vscode"; import { DiffManager } from "../../diff/horizontal"; -import { VerticalDiffCodeLens } from "../../diff/verticalPerLine/manager"; +import { VerticalDiffCodeLens } from "../../diff/vertical/manager"; import * as providers from "./providers"; import { getQuickActionsConfig, diff --git a/extensions/vscode/src/quickEdit/QuickEditQuickPick.ts b/extensions/vscode/src/quickEdit/QuickEditQuickPick.ts index b501c0250..59b7ad41f 100644 --- a/extensions/vscode/src/quickEdit/QuickEditQuickPick.ts +++ b/extensions/vscode/src/quickEdit/QuickEditQuickPick.ts @@ -3,7 +3,7 @@ import { IDE } from "core"; import { walkDir } from "core/indexing/walkDir"; import { Telemetry } from "core/util/posthog"; import * as vscode from "vscode"; -import { VerticalPerLineDiffManager } from "../diff/verticalPerLine/manager"; +import { VerticalDiffManager } from "../diff/vertical/manager"; import { VsCodeWebviewProtocol } from "../webviewProtocol"; import { getContextProviderQuickPickVal } from "./ContextProvidersQuickPick"; import { appendToHistory, getHistoryQuickPickVal } from "./HistoryQuickPick"; @@ -12,8 +12,8 @@ import { getModelQuickPickVal } from "./ModelSelectionQuickPick"; // @ts-ignore - error finding typings import { ConfigHandler } from "core/config/ConfigHandler"; // @ts-ignore -import MiniSearch from "minisearch"; import { getModelByRole } from "core/config/util"; +import MiniSearch from "minisearch"; /** * Used to track what action to take after a user interacts @@ -86,7 +86,7 @@ export class QuickEdit { private _curModelTitle?: string; constructor( - private readonly verticalDiffManager: VerticalPerLineDiffManager, + private readonly verticalDiffManager: VerticalDiffManager, private readonly configHandler: ConfigHandler, private readonly webviewProtocol: VsCodeWebviewProtocol, private readonly ide: IDE, From a9e3c58c4b3fa53d02295281bf24a7c0f37c4404 Mon Sep 17 00:00:00 2001 From: Nate Date: Wed, 25 Sep 2024 20:39:11 -0700 Subject: [PATCH 223/268] finish rename of verticaldiff --- .../codeLens/providers/VerticalPerLineCodeLensProvider.ts | 4 +--- extensions/vscode/src/lang-server/codeLens/providers/index.ts | 3 +-- 2 files changed, 2 insertions(+), 5 deletions(-) diff --git a/extensions/vscode/src/lang-server/codeLens/providers/VerticalPerLineCodeLensProvider.ts b/extensions/vscode/src/lang-server/codeLens/providers/VerticalPerLineCodeLensProvider.ts index fdcb30bed..94a68bac7 100644 --- a/extensions/vscode/src/lang-server/codeLens/providers/VerticalPerLineCodeLensProvider.ts +++ b/extensions/vscode/src/lang-server/codeLens/providers/VerticalPerLineCodeLensProvider.ts @@ -2,9 +2,7 @@ import * as vscode from "vscode"; import { VerticalDiffCodeLens } from "../../../diff/vertical/manager"; import { getAltOrOption, getMetaKeyLabel } from "../../../util/util"; -export class VerticalPerLineCodeLensProvider - implements vscode.CodeLensProvider -{ +export class VerticalDiffCodeLensProvider implements vscode.CodeLensProvider { private _eventEmitter: vscode.EventEmitter = new vscode.EventEmitter(); diff --git a/extensions/vscode/src/lang-server/codeLens/providers/index.ts b/extensions/vscode/src/lang-server/codeLens/providers/index.ts index 599d63145..49c71ed57 100644 --- a/extensions/vscode/src/lang-server/codeLens/providers/index.ts +++ b/extensions/vscode/src/lang-server/codeLens/providers/index.ts @@ -2,5 +2,4 @@ export { ConfigPyCodeLensProvider } from "./ConfigPyCodeLensProvider"; export { DiffViewerCodeLensProvider } from "./DiffViewerCodeLensProvider"; export { QuickActionsCodeLensProvider } from "./QuickActionsCodeLensProvider"; export { SuggestionsCodeLensProvider } from "./SuggestionsCodeLensProvider"; -export { VerticalPerLineCodeLensProvider } from "./VerticalPerLineCodeLensProvider"; - +export { VerticalDiffCodeLensProvider as VerticalPerLineCodeLensProvider } from "./VerticalPerLineCodeLensProvider"; From da2c3d51898bf915cb1585d44d6073e014257d7d Mon Sep 17 00:00:00 2001 From: Nate Date: Thu, 26 Sep 2024 10:02:20 -0700 Subject: [PATCH 224/268] remove redundant fields in azure provider --- core/llm/llms/Azure.ts | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/core/llm/llms/Azure.ts b/core/llm/llms/Azure.ts index ce20b4ecc..be7d1c18c 100644 --- a/core/llm/llms/Azure.ts +++ b/core/llm/llms/Azure.ts @@ -1,8 +1,18 @@ -import { ModelProvider } from "../../index.js"; +import { LLMOptions, ModelProvider } from "../../index.js"; import OpenAI from "./OpenAI.js"; class Azure extends OpenAI { static providerName: ModelProvider = "azure"; + + static defaultOptions: Partial = { + apiVersion: "2024-02-15-preview", + apiType: "azure", + }; + + constructor(options: LLMOptions) { + super(options); + this.engine = options.model; + } } export default Azure; From f0c76ed0e7505b4e5971e96da0198a366453a065 Mon Sep 17 00:00:00 2001 From: Tijs Zwinkels Date: Thu, 26 Sep 2024 21:40:49 +0200 Subject: [PATCH 225/268] Refactor: Move caching options to cacheBehavior object As suggested here: https://github.com/continuedev/continue/pull/2372 --- core/config/types.ts | 11 ++-- core/index.d.ts | 11 ++-- core/llm/index.ts | 9 ++-- core/llm/llms/Anthropic.ts | 8 +-- docs/static/schemas/config.json | 53 +++++++++++++------ .../src/main/resources/config_schema.json | 52 ++++++++++++------ extensions/vscode/config_schema.json | 45 ++++++++++------ extensions/vscode/continue_rc_schema.json | 45 ++++++++++------ 8 files changed, 158 insertions(+), 76 deletions(-) diff --git a/core/config/types.ts b/core/config/types.ts index 98cc7ccb5..fb3631c4c 100644 --- a/core/config/types.ts +++ b/core/config/types.ts @@ -47,6 +47,7 @@ declare global { llmRequestHook?: (model: string, prompt: string) => any; apiKey?: string; apiBase?: string; + cacheBehavior?: CacheBehavior; engine?: string; apiVersion?: string; @@ -313,6 +314,7 @@ declare global { apiKey?: string; aiGatewaySlug?: string; apiBase?: string; + cacheBehavior?: CacheBehavior; useLegacyCompletionsEndpoint?: boolean; @@ -341,9 +343,6 @@ declare global { watsonxProjectId?: string; watsonxStopToken?: string; watsonxApiVersion?: string; - - cacheSystemMessage?: boolean; - cacheConversation?: boolean; } type RequireAtLeastOne = Pick< T, @@ -688,6 +687,11 @@ declare global { clientCertificate?: ClientCertificateOptions; } + export interface CacheBehavior { + cacheSystemMessage?: boolean; + cacheConversation?: boolean; + } + export interface ClientCertificateOptions { cert: string; key: string; @@ -750,6 +754,7 @@ declare global { requestOptions?: RequestOptions; promptTemplates?: { [key: string]: string }; capabilities?: ModelCapability; + cacheBehavior?: CacheBehavior; } export type EmbeddingsProviderName = diff --git a/core/index.d.ts b/core/index.d.ts index 44fea298c..76181e564 100644 --- a/core/index.d.ts +++ b/core/index.d.ts @@ -70,6 +70,7 @@ export interface ILLM extends LLMOptions { llmRequestHook?: (model: string, prompt: string) => any; apiKey?: string; apiBase?: string; + cacheBehavior?: CacheBehavior; engine?: string; apiVersion?: string; @@ -340,6 +341,7 @@ export interface LLMOptions { apiKey?: string; aiGatewaySlug?: string; apiBase?: string; + cacheBehavior?: CacheBehavior; useLegacyCompletionsEndpoint?: boolean; @@ -369,9 +371,6 @@ export interface LLMOptions { watsonxStopToken?: string; watsonxApiVersion?: string; watsonxFullUrl?: string; - - cacheSystemMessage?: boolean; - cacheConversation?: boolean; } type RequireAtLeastOne = Pick< T, @@ -728,6 +727,11 @@ export interface RequestOptions { clientCertificate?: ClientCertificateOptions; } +export interface CacheBehavior { + cacheSystemMessage?: boolean; + cacheConversation?: boolean; +} + export interface ClientCertificateOptions { cert: string; key: string; @@ -790,6 +794,7 @@ export interface ModelDescription { requestOptions?: RequestOptions; promptTemplates?: { [key: string]: string }; capabilities?: ModelCapability; + cacheBehavior?: CacheBehavior; } export type EmbeddingsProviderName = diff --git a/core/llm/index.ts b/core/llm/index.ts index ab1b7e652..6c648ceb3 100644 --- a/core/llm/index.ts +++ b/core/llm/index.ts @@ -14,6 +14,7 @@ import { PromptTemplate, RequestOptions, TemplateType, + CacheBehavior } from "../index.js"; import { logDevData } from "../util/devdata.js"; import { DevDataSqliteDb } from "../util/devdataSqlite.js"; @@ -102,6 +103,7 @@ export abstract class BaseLLM implements ILLM { llmRequestHook?: (model: string, prompt: string) => any; apiKey?: string; apiBase?: string; + cacheBehavior?: CacheBehavior; capabilities?: ModelCapability; engine?: string; @@ -120,9 +122,6 @@ export abstract class BaseLLM implements ILLM { watsonxApiVersion?: string; watsonxFullUrl?: string; - cacheSystemMessage?: boolean; - cacheConversation?: boolean; - private _llmOptions: LLMOptions; constructor(_options: LLMOptions) { @@ -185,6 +184,7 @@ export abstract class BaseLLM implements ILLM { this.apiKey = options.apiKey; this.aiGatewaySlug = options.aiGatewaySlug; this.apiBase = options.apiBase; + this.cacheBehavior = options.cacheBehavior; // for watsonx only this.watsonxUrl = options.watsonxUrl; @@ -194,9 +194,6 @@ export abstract class BaseLLM implements ILLM { this.watsonxApiVersion = options.watsonxApiVersion; this.watsonxFullUrl = options.watsonxFullUrl; - this.cacheSystemMessage = options.cacheSystemMessage; - this.cacheConversation = options.cacheConversation; - if (this.apiBase && !this.apiBase.endsWith("/")) { this.apiBase = `${this.apiBase}/`; } diff --git a/core/llm/llms/Anthropic.ts b/core/llm/llms/Anthropic.ts index fa4620e2a..f2182d851 100644 --- a/core/llm/llms/Anthropic.ts +++ b/core/llm/llms/Anthropic.ts @@ -45,7 +45,7 @@ class Anthropic extends BaseLLM { // The second-to-last because it retrieves potentially already cached contents, // The last one because we want it cached for later retrieval. // See: https://docs.anthropic.com/en/docs/build-with-claude/prompt-caching - const addCaching = !!this.cacheConversation && lastTwoUserMsgIndices.includes(filteredMsgIdx); + const addCaching = this.cacheBehavior?.cacheConversation && lastTwoUserMsgIndices.includes(filteredMsgIdx); if (typeof message.content === "string") { var chatMessage = { @@ -98,7 +98,7 @@ class Anthropic extends BaseLLM { messages: ChatMessage[], options: CompletionOptions, ): AsyncGenerator { - const shouldCacheSystemMessage = !!this.systemMessage && !!this.cacheSystemMessage; + const shouldCacheSystemMessage = !!this.systemMessage && this.cacheBehavior?.cacheSystemMessage; const systemMessage: string = stripImages( messages.filter((m) => m.role === "system")[0]?.content, ); @@ -110,7 +110,7 @@ class Anthropic extends BaseLLM { Accept: "application/json", "anthropic-version": "2023-06-01", "x-api-key": this.apiKey as string, - ...(shouldCacheSystemMessage || !!this.cacheConversation + ...(shouldCacheSystemMessage || this.cacheBehavior?.cacheConversation ? { "anthropic-beta": "prompt-caching-2024-07-31" } : {}), }, @@ -136,7 +136,7 @@ class Anthropic extends BaseLLM { } for await (const value of streamSse(response)) { - // if (value.type == "message_start") console.log(value); + if (value.type == "message_start") console.log(value); if (value.delta?.text) { yield { role: "assistant", content: value.delta.text }; } diff --git a/docs/static/schemas/config.json b/docs/static/schemas/config.json index 254a5eabb..4b0161394 100644 --- a/docs/static/schemas/config.json +++ b/docs/static/schemas/config.json @@ -701,11 +701,17 @@ }, "then": { "properties": { - "cacheSystemMessage": { - "type": "boolean" - }, - "cacheConversation": { - "type": "boolean" + "cacheBehavior": { + "title": "Caching Behavior", + "description": "Options for the prompt caching", + "properties": { + "cacheSystemMessage": { + "type": "boolean" + }, + "cacheConversation": { + "type": "boolean" + } + } }, "model": { "anyOf": [ @@ -801,11 +807,14 @@ }, "then": { "properties": { - "cacheSystemMessage": { - "type": "boolean" - }, - "cacheConversation": { - "type": "boolean" + "cacheBehavior": { + "title": "Caching Behavior", + "description": "Options for the prompt caching", + "properties": { + "cacheSystemMessage": { + "type": "boolean" + } + } }, "model": { "enum": [ @@ -1025,11 +1034,17 @@ }, "then": { "properties": { - "cacheSystemMessage": { - "type": "boolean" - }, - "cacheConversation": { - "type": "boolean" + "cacheBehavior": { + "title": "Caching Behavior", + "description": "Options for the prompt caching", + "properties": { + "cacheSystemMessage": { + "type": "boolean" + }, + "cacheConversation": { + "type": "boolean" + } + } }, "model": { "enum": ["deepseek-chat", "deepseek-coder"] @@ -1053,6 +1068,7 @@ "llama2-70b", "mistral-8x7b", "gemma", + "gemma2", "llama3-8b", "llama3-70b", "llama3.1-8b", @@ -2123,6 +2139,13 @@ "minimum": 128, "exclusiveMaximum": 2147483647 }, + "maxBatchSize": { + "title": "Maximum Batch Size", + "description": "The maximum number of chunks that can be sent to the embeddings provider in a single request", + "type": "integer", + "minimum": 1, + "exclusiveMaximum": 2147483647 + }, "region": { "title": "Region", "description": "The region where the model is hosted", diff --git a/extensions/intellij/src/main/resources/config_schema.json b/extensions/intellij/src/main/resources/config_schema.json index c891e05a9..4b0161394 100644 --- a/extensions/intellij/src/main/resources/config_schema.json +++ b/extensions/intellij/src/main/resources/config_schema.json @@ -701,11 +701,17 @@ }, "then": { "properties": { - "cacheSystemMessage": { - "type": "boolean" - }, - "cacheConversation": { - "type": "boolean" + "cacheBehavior": { + "title": "Caching Behavior", + "description": "Options for the prompt caching", + "properties": { + "cacheSystemMessage": { + "type": "boolean" + }, + "cacheConversation": { + "type": "boolean" + } + } }, "model": { "anyOf": [ @@ -801,11 +807,14 @@ }, "then": { "properties": { - "cacheSystemMessage": { - "type": "boolean" - }, - "cacheConversation": { - "type": "boolean" + "cacheBehavior": { + "title": "Caching Behavior", + "description": "Options for the prompt caching", + "properties": { + "cacheSystemMessage": { + "type": "boolean" + } + } }, "model": { "enum": [ @@ -1025,11 +1034,17 @@ }, "then": { "properties": { - "cacheSystemMessage": { - "type": "boolean" - }, - "cacheConversation": { - "type": "boolean" + "cacheBehavior": { + "title": "Caching Behavior", + "description": "Options for the prompt caching", + "properties": { + "cacheSystemMessage": { + "type": "boolean" + }, + "cacheConversation": { + "type": "boolean" + } + } }, "model": { "enum": ["deepseek-chat", "deepseek-coder"] @@ -2124,6 +2139,13 @@ "minimum": 128, "exclusiveMaximum": 2147483647 }, + "maxBatchSize": { + "title": "Maximum Batch Size", + "description": "The maximum number of chunks that can be sent to the embeddings provider in a single request", + "type": "integer", + "minimum": 1, + "exclusiveMaximum": 2147483647 + }, "region": { "title": "Region", "description": "The region where the model is hosted", diff --git a/extensions/vscode/config_schema.json b/extensions/vscode/config_schema.json index 6253b1d55..4b0161394 100644 --- a/extensions/vscode/config_schema.json +++ b/extensions/vscode/config_schema.json @@ -701,11 +701,17 @@ }, "then": { "properties": { - "cacheSystemMessage": { - "type": "boolean" - }, - "cacheConversation": { - "type": "boolean" + "cacheBehavior": { + "title": "Caching Behavior", + "description": "Options for the prompt caching", + "properties": { + "cacheSystemMessage": { + "type": "boolean" + }, + "cacheConversation": { + "type": "boolean" + } + } }, "model": { "anyOf": [ @@ -801,11 +807,14 @@ }, "then": { "properties": { - "cacheSystemMessage": { - "type": "boolean" - }, - "cacheConversation": { - "type": "boolean" + "cacheBehavior": { + "title": "Caching Behavior", + "description": "Options for the prompt caching", + "properties": { + "cacheSystemMessage": { + "type": "boolean" + } + } }, "model": { "enum": [ @@ -1025,11 +1034,17 @@ }, "then": { "properties": { - "cacheSystemMessage": { - "type": "boolean" - }, - "cacheConversation": { - "type": "boolean" + "cacheBehavior": { + "title": "Caching Behavior", + "description": "Options for the prompt caching", + "properties": { + "cacheSystemMessage": { + "type": "boolean" + }, + "cacheConversation": { + "type": "boolean" + } + } }, "model": { "enum": ["deepseek-chat", "deepseek-coder"] diff --git a/extensions/vscode/continue_rc_schema.json b/extensions/vscode/continue_rc_schema.json index 8375f099a..56658bf2e 100644 --- a/extensions/vscode/continue_rc_schema.json +++ b/extensions/vscode/continue_rc_schema.json @@ -758,11 +758,17 @@ }, "then": { "properties": { - "cacheSystemMessage": { - "type": "boolean" - }, - "cacheConversation": { - "type": "boolean" + "cacheBehavior": { + "title": "Caching Behavior", + "description": "Options for the prompt caching", + "properties": { + "cacheSystemMessage": { + "type": "boolean" + }, + "cacheConversation": { + "type": "boolean" + } + } }, "model": { "anyOf": [ @@ -877,11 +883,14 @@ }, "then": { "properties": { - "cacheSystemMessage": { - "type": "boolean" - }, - "cacheConversation": { - "type": "boolean" + "cacheBehavior": { + "title": "Caching Behavior", + "description": "Options for the prompt caching", + "properties": { + "cacheSystemMessage": { + "type": "boolean" + } + } }, "model": { "enum": [ @@ -1123,11 +1132,17 @@ }, "then": { "properties": { - "cacheSystemMessage": { - "type": "boolean" - }, - "cacheConversation": { - "type": "boolean" + "cacheBehavior": { + "title": "Caching Behavior", + "description": "Options for the prompt caching", + "properties": { + "cacheSystemMessage": { + "type": "boolean" + }, + "cacheConversation": { + "type": "boolean" + } + } }, "model": { "enum": [ From 419cdd7e65e5f117ac08f3ff2fbb5fe98d062022 Mon Sep 17 00:00:00 2001 From: Tijs Zwinkels Date: Thu, 26 Sep 2024 21:50:31 +0200 Subject: [PATCH 226/268] Update documentation showing cacheBehavior object --- .../customize/model-providers/top-level/anthropic.md | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/docs/docs/customize/model-providers/top-level/anthropic.md b/docs/docs/customize/model-providers/top-level/anthropic.md index 1aa0d9dbc..c4bb24a4c 100644 --- a/docs/docs/customize/model-providers/top-level/anthropic.md +++ b/docs/docs/customize/model-providers/top-level/anthropic.md @@ -48,16 +48,17 @@ Anthropic currently does not offer any reranking models. Anthropic supports [prompt caching with Claude](https://docs.anthropic.com/en/docs/build-with-claude/prompt-caching). -To enable caching of the system message, update your your model configuration with `"cacheSystemMessage": true`: -To enable caching of the conversation, update your your model configuration with `"cacheConversation": true`: +To enable caching of the system message and the turn-by-turn conversation, update your your model configuration as following: ```json { "models": [ { // Enable prompt caching - "cacheSystemMessage": true, - "cacheConversation": true, + "cacheBehavior": { + "cacheSystemMessage": true, + "cacheConversation": true + }, "title": "Anthropic", "provider": "anthropic", "model": "claude-3-5-sonnet-20240620", From 6002175c5e3ad591b6a4b89edc500b6715b37e73 Mon Sep 17 00:00:00 2001 From: Nate Date: Thu, 26 Sep 2024 14:28:41 -0700 Subject: [PATCH 227/268] add haiku as repomap model --- core/config/util.ts | 14 +++++++++++++- core/core.ts | 2 +- core/protocol/core.ts | 10 +++++++--- .../components/BestExperienceConfigForm.tsx | 17 ++++++++++++++++- 4 files changed, 37 insertions(+), 6 deletions(-) diff --git a/core/config/util.ts b/core/config/util.ts index 69e088a18..0247aa25d 100644 --- a/core/config/util.ts +++ b/core/config/util.ts @@ -29,7 +29,7 @@ export function addContextProvider(provider: ContextProviderWithParams) { }); } -export function addModel(model: ModelDescription) { +export function addModel(model: ModelDescription, role?: keyof ModelRoles) { editConfigJson((config) => { if (config.models?.some((m: any) => stringify(m) === stringify(model))) { return config; @@ -39,6 +39,18 @@ export function addModel(model: ModelDescription) { } config.models.push(model); + + // Set the role for the model + if (role) { + if (!config.experimental) { + config.experimental = {}; + } + if (!config.experimental.modelRoles) { + config.experimental.modelRoles = {}; + } + config.experimental.modelRoles[role] = model.title; + } + return config; }); } diff --git a/core/core.ts b/core/core.ts index e9b29b493..ebd08f3bf 100644 --- a/core/core.ts +++ b/core/core.ts @@ -226,7 +226,7 @@ export class Core { // Edit config on("config/addModel", (msg) => { const model = msg.data.model; - addModel(model); + addModel(model, msg.data.role); void this.configHandler.reloadConfig(); }); diff --git a/core/protocol/core.ts b/core/protocol/core.ts index 73f55946c..d5920ca81 100644 --- a/core/protocol/core.ts +++ b/core/protocol/core.ts @@ -1,5 +1,3 @@ -import type { AutocompleteInput } from "../autocomplete/completionProvider"; -import { ProfileDescription } from "../config/ConfigHandler"; import type { BrowserSerializedContinueConfig, ChatMessage, @@ -10,12 +8,15 @@ import type { LLMFullCompletionOptions, MessageContent, ModelDescription, + ModelRoles, PersistedSessionInfo, RangeInFile, SerializedContinueConfig, SessionInfo, SiteIndexingConfig, } from "../"; +import type { AutocompleteInput } from "../autocomplete/completionProvider"; +import { ProfileDescription } from "../config/ConfigHandler"; export type ProtocolGeneratorType = AsyncGenerator<{ done?: boolean; @@ -50,7 +51,10 @@ export type ToCoreFromIdeOrWebviewProtocol = { "devdata/log": [{ tableName: string; data: any }, void]; "config/addOpenAiKey": [string, void]; "config/addModel": [ - { model: SerializedContinueConfig["models"][number] }, + { + model: SerializedContinueConfig["models"][number]; + role?: keyof ModelRoles; + }, void, ]; "config/newPromptFile": [undefined, void]; diff --git a/gui/src/components/OnboardingCard/components/BestExperienceConfigForm.tsx b/gui/src/components/OnboardingCard/components/BestExperienceConfigForm.tsx index f38fbaccd..fa5514e84 100644 --- a/gui/src/components/OnboardingCard/components/BestExperienceConfigForm.tsx +++ b/gui/src/components/OnboardingCard/components/BestExperienceConfigForm.tsx @@ -10,7 +10,11 @@ import { setDefaultModel } from "../../../redux/slices/stateSlice"; import AddModelButtonSubtext from "../../AddModelButtonSubtext"; const { anthropic: chatProvider, mistral: autocompleteProvider } = providers; -const { claude35Sonnet: chatModel, codestral: autocompleteModel } = models; +const { + claude35Sonnet: chatModel, + claude3Haiku: repoMapModel, + codestral: autocompleteModel, +} = models; interface BestExperienceConfigFormProps { onComplete: () => void; @@ -36,6 +40,13 @@ function BestExperienceConfigForm({ title: chatModel.params.title, }; + const repoMapConfig = { + model: repoMapModel.params.model, + provider: chatProvider.provider, + apiKey: chatApiKey, + title: repoMapModel.params.title, + }; + const autocompleteModelConfig = { title: autocompleteModel.params.title, provider: autocompleteProvider.provider, @@ -47,6 +58,10 @@ function BestExperienceConfigForm({ title: DEFAULT_CHAT_MODEL_CONFIG.title, }); ideMessenger.post("config/addModel", { model: chatModelConfig }); + ideMessenger.post("config/addModel", { + model: repoMapConfig, + role: "repoMapFileSelection", + }); dispatch(setDefaultModel({ title: chatModelConfig.title, force: true })); if (!!autocompleteApiKey) { From dd865eadea014ccc8588a49e6d9c338d89734c9d Mon Sep 17 00:00:00 2001 From: Test Date: Thu, 26 Sep 2024 17:02:39 -0700 Subject: [PATCH 228/268] feat: add "Gathering context..." indicator --- .../src/quickEdit/QuickEditQuickPick.ts | 1 + gui/src/components/ButtonWithTooltip.tsx | 11 +- gui/src/components/gui/StepContainer.tsx | 159 ++++++++---------- .../components/mainInput/ContextItemsPeek.tsx | 79 +++++---- .../components/mainInput/ContinueInputBox.tsx | 68 +++++--- gui/src/components/mainInput/InputToolbar.tsx | 32 +--- gui/src/components/mainInput/resolveInput.ts | 26 +++ .../components/markdown/CodeBlockToolbar.tsx | 7 +- gui/src/components/markdown/CopyButton.tsx | 23 ++- .../markdown/StyledMarkdownPreview.tsx | 11 +- .../markdown/SyntaxHighlightedPre.tsx | 1 + .../components/modelSelection/ModelSelect.tsx | 2 +- .../modelSelection/ModelSelectionListbox.tsx | 6 +- gui/src/hooks/useChatHandler.ts | 25 ++- gui/src/pages/gui.tsx | 1 - gui/src/redux/slices/stateSlice.ts | 8 + 16 files changed, 245 insertions(+), 215 deletions(-) diff --git a/extensions/vscode/src/quickEdit/QuickEditQuickPick.ts b/extensions/vscode/src/quickEdit/QuickEditQuickPick.ts index 59b7ad41f..877d94ad3 100644 --- a/extensions/vscode/src/quickEdit/QuickEditQuickPick.ts +++ b/extensions/vscode/src/quickEdit/QuickEditQuickPick.ts @@ -13,6 +13,7 @@ import { getModelQuickPickVal } from "./ModelSelectionQuickPick"; import { ConfigHandler } from "core/config/ConfigHandler"; // @ts-ignore import { getModelByRole } from "core/config/util"; +// @ts-ignore import MiniSearch from "minisearch"; /** diff --git a/gui/src/components/ButtonWithTooltip.tsx b/gui/src/components/ButtonWithTooltip.tsx index 005b82001..f692133a1 100644 --- a/gui/src/components/ButtonWithTooltip.tsx +++ b/gui/src/components/ButtonWithTooltip.tsx @@ -1,4 +1,4 @@ -import React, { useState } from "react"; +import React from "react"; import ReactDOM from "react-dom"; import { type PlacesType } from "react-tooltip"; import { HeaderButton } from "."; @@ -25,7 +25,6 @@ const ButtonWithTooltip = React.forwardRef< HTMLButtonElement, HeaderButtonWithTextProps >((props: HeaderButtonWithTextProps, ref) => { - const [hover, setHover] = useState(false); const id = uuidv4(); const tooltipPortalDiv = document.getElementById("tooltip-portal-div"); @@ -39,14 +38,6 @@ const ButtonWithTooltip = React.forwardRef< data-tooltip-id={tooltipId} inverted={props.inverted} disabled={props.disabled} - onMouseEnter={() => { - if (!props.disabled) { - setHover(true); - } - }} - onMouseLeave={() => { - setHover(false); - }} onClick={props.onClick} onKeyDown={props.onKeyDown} className={props.className} diff --git a/gui/src/components/gui/StepContainer.tsx b/gui/src/components/gui/StepContainer.tsx index 10a21fa0a..c4d0b2597 100644 --- a/gui/src/components/gui/StepContainer.tsx +++ b/gui/src/components/gui/StepContainer.tsx @@ -10,7 +10,7 @@ import { stripImages } from "core/llm/images"; import { useContext, useEffect, useState } from "react"; import { useSelector } from "react-redux"; import styled from "styled-components"; -import { defaultBorderRadius, vscBackground, vscInputBackground } from ".."; +import { vscBackground, vscInputBackground } from ".."; import { IdeMessengerContext } from "../../context/IdeMessenger"; import useUIConfig from "../../hooks/useUIConfig"; import { RootState } from "../../redux/store"; @@ -34,18 +34,15 @@ interface StepContainerProps { } const ContentDiv = styled.div<{ isUserInput: boolean; fontSize?: number }>` - padding: 4px 0px 8px 0px; + padding-top: 4px; background-color: ${(props) => props.isUserInput ? vscInputBackground : vscBackground}; font-size: ${(props) => props.fontSize || getFontSize()}px; - // border-radius: ${defaultBorderRadius}; overflow: hidden; `; function StepContainer(props: StepContainerProps) { - const [isHovered, setIsHovered] = useState(false); const active = useSelector((store: RootState) => store.state.active); - const history = useSelector((state: RootState) => state.state.history); const [truncatedEarly, setTruncatedEarly] = useState(false); const ideMessenger = useContext(IdeMessengerContext); const [feedback, setFeedback] = useState(undefined); @@ -53,6 +50,8 @@ function StepContainer(props: StepContainerProps) { const isUserInput = props.item.message.role === "user"; const uiConfig = useUIConfig(); + const shouldRenderActions = !props.isLast || (props.isLast && !active); + useEffect(() => { if (!active) { const content = stripImages(props.item.message.content).trim(); @@ -85,98 +84,72 @@ function StepContainer(props: StepContainerProps) { }; return ( -
{ - setIsHovered(true); - }} - onMouseLeave={() => { - setIsHovered(false); - }} - > -
- - {(props.isLast || isHovered || typeof feedback !== "undefined") && - !active && ( -
- {props.modelTitle && ( -
-
- {props.modelTitle} -
-
-
- )} - - {truncatedEarly && ( - - - - )} - - - - - - - {feedback === false || ( - - { - sendFeedback(true); - }} - /> - - )} - {feedback === true || ( - - { - sendFeedback(false); - }} - /> - - )} - - {props.index !== 1 && ( - - - - )} -
+ {props.index !== 1 && ( + + + )} -
+ + + + sendFeedback(true)} + > + + + + sendFeedback(false)} + > + + +
+ )}
); } diff --git a/gui/src/components/mainInput/ContextItemsPeek.tsx b/gui/src/components/mainInput/ContextItemsPeek.tsx index 5327719d2..38ec51b08 100644 --- a/gui/src/components/mainInput/ContextItemsPeek.tsx +++ b/gui/src/components/mainInput/ContextItemsPeek.tsx @@ -1,7 +1,7 @@ import { ChevronDownIcon, ChevronRightIcon } from "@heroicons/react/24/outline"; import { ContextItemWithId } from "core"; import { contextItemToRangeInFileWithContents } from "core/commands/util"; -import React, { useContext } from "react"; +import { useContext, useState } from "react"; import { lightGray, vscBackground } from ".."; import { IdeMessengerContext } from "../../context/IdeMessenger"; import { getFontSize } from "../../util"; @@ -9,15 +9,39 @@ import FileIcon from "../FileIcon"; import SafeImg from "../SafeImg"; import { INSTRUCTIONS_BASE_ITEM } from "core/context/providers/utils"; import { getIconFromDropdownItem } from "./MentionList"; +import styled from "styled-components"; interface ContextItemsPeekProps { contextItems?: ContextItemWithId[]; + isGatheringContext: boolean; } interface ContextItemsPeekItemProps { contextItem: ContextItemWithId; } +const AnimatedEllipsis = styled.span` + &::after { + content: "."; + animation: ellipsis 2.5s infinite; + display: inline-block; + width: 12px; + text-align: left; + } + + @keyframes ellipsis { + 0% { + content: "."; + } + 33% { + content: ".."; + } + 66% { + content: "..."; + } + } +`; + function ContextItemsPeekItem({ contextItem }: ContextItemsPeekItemProps) { const ideMessenger = useContext(IdeMessengerContext); @@ -116,53 +140,49 @@ function ContextItemsPeekItem({ contextItem }: ContextItemsPeekItemProps) { ); } -function ContextItemsPeek({ contextItems }: ContextItemsPeekProps) { - const [open, setOpen] = React.useState(false); +function ContextItemsPeek({ + contextItems, + isGatheringContext, +}: ContextItemsPeekProps) { + const [open, setOpen] = useState(false); const ctxItems = contextItems?.filter( (ctxItem) => !ctxItem.name.includes(INSTRUCTIONS_BASE_ITEM.name), ); - if (!ctxItems || ctxItems.length === 0) { + if ((!ctxItems || ctxItems.length === 0) && !isGatheringContext) { return null; } - const contextItemsText = `${ctxItems.length} context ${ - ctxItems.length > 1 ? "items" : "item" - }`; - return ( -
+
setOpen((prev) => !prev)} >
- - {contextItemsText} + + {isGatheringContext ? ( + <> + Gathering context + + + ) : ( + `${ctxItems.length} context ${ + ctxItems.length > 1 ? "items" : "item" + }` + )}
@@ -171,9 +191,10 @@ function ContextItemsPeek({ contextItems }: ContextItemsPeekProps) { open ? "max-h-[50vh] opacity-100" : "max-h-0 opacity-0" }`} > - {ctxItems.map((contextItem, idx) => ( - - ))} + {ctxItems && + ctxItems.map((contextItem, idx) => ( + + ))}
); diff --git a/gui/src/components/mainInput/ContinueInputBox.tsx b/gui/src/components/mainInput/ContinueInputBox.tsx index 574a945d0..9778a6de9 100644 --- a/gui/src/components/mainInput/ContinueInputBox.tsx +++ b/gui/src/components/mainInput/ContinueInputBox.tsx @@ -9,6 +9,16 @@ import { newSession, setMessageAtIndex } from "../../redux/slices/stateSlice"; import { RootState } from "../../redux/store"; import ContextItemsPeek from "./ContextItemsPeek"; import TipTapEditor from "./TipTapEditor"; +import { useState, useRef, useEffect } from "react"; + +interface ContinueInputBoxProps { + isLastUserInput: boolean; + isMainInput?: boolean; + onEnter: (editorState: JSONContent, modifiers: InputModifiers) => void; + editorState?: JSONContent; + contextItems?: ContextItemWithId[]; + hidden?: boolean; +} const gradient = keyframes` 0% { @@ -22,8 +32,6 @@ const gradient = keyframes` const GradientBorder = styled.div<{ borderRadius?: string; borderColor?: string; - isFirst: boolean; - isLast: boolean; loading: 0 | 1; }>` border-radius: ${(props) => props.borderRadius || "0"}; @@ -47,18 +55,8 @@ const GradientBorder = styled.div<{ display: flex; flex-direction: row; align-items: center; - margin-top: 8px; `; -interface ContinueInputBoxProps { - isLastUserInput: boolean; - isMainInput?: boolean; - onEnter: (editorState: JSONContent, modifiers: InputModifiers) => void; - editorState?: JSONContent; - contextItems?: ContextItemWithId[]; - hidden?: boolean; -} - function ContinueInputBox(props: ContinueInputBoxProps) { const dispatch = useDispatch(); @@ -67,6 +65,12 @@ function ContinueInputBox(props: ContinueInputBoxProps) { const availableContextProviders = useSelector( (store: RootState) => store.state.config.contextProviders, ); + const isGatheringContextStore = useSelector( + (store: RootState) => store.state.isGatheringContext, + ); + + const [isGatheringContext, setIsGatheringContext] = useState(false); + const timeoutRef = useRef(null); useWebviewListener( "newSessionWithPrompt", @@ -84,24 +88,31 @@ function ContinueInputBox(props: ContinueInputBoxProps) { [props.isMainInput], ); + console.log({ isGatheringContext, isGatheringContextStore }); + + useEffect(() => { + if (isGatheringContextStore && !isGatheringContext) { + // 500ms delay when going from false -> true to prevent flashing loading indicator + timeoutRef.current = setTimeout(() => setIsGatheringContext(true), 500); + } else { + // Update immediately otherwise (i.e. true -> false) + setIsGatheringContext(isGatheringContextStore); + } + + return () => { + if (timeoutRef.current) { + clearTimeout(timeoutRef.current); + } + }; + }, [isGatheringContextStore]); + return (
-
+
+ />
- +
); } diff --git a/gui/src/components/mainInput/InputToolbar.tsx b/gui/src/components/mainInput/InputToolbar.tsx index 57fff591f..99b08d481 100644 --- a/gui/src/components/mainInput/InputToolbar.tsx +++ b/gui/src/components/mainInput/InputToolbar.tsx @@ -59,11 +59,6 @@ const EnterButton = styled.div` border-radius: ${defaultBorderRadius}; color: ${vscForeground}; cursor: pointer; - - &:hover { - background-color: ${vscBadgeBackground}; - color: ${vscBadgeForeground}; - } `; interface InputToolbarProps { @@ -100,7 +95,7 @@ function InputToolbar(props: InputToolbarProps) { >
-
+
{supportsImages && ( <> - + { @@ -125,37 +120,22 @@ function InputToolbar(props: InputToolbarProps) { )} - + - - - -
-
+
{props.activeKey === "Alt" ? ( - + {`${getAltKeyLabel()}⏎ ${useActiveFile ? "No active file" : "Active file"}`} ) : ( props.onEnter({ useCodebase: true, diff --git a/gui/src/components/mainInput/resolveInput.ts b/gui/src/components/mainInput/resolveInput.ts index 7ede4a42d..f57c03f4a 100644 --- a/gui/src/components/mainInput/resolveInput.ts +++ b/gui/src/components/mainInput/resolveInput.ts @@ -207,4 +207,30 @@ function resolveParagraph(p: JSONContent): [string, MentionAttrs[], string] { return [text, contextItems, slashCommand]; } +export function hasSlashCommandOrContextProvider( + editorState: JSONContent, +): boolean { + if (!editorState.content) { + return false; + } + + for (const p of editorState.content) { + if (p.type === "paragraph" && p.content) { + for (const child of p.content) { + if (child.type === "slashcommand") { + return true; + } + if ( + child.type === "mention" && + child.attrs?.itemType === "contextProvider" + ) { + return true; + } + } + } + } + + return false; +} + export default resolveEditorContent; diff --git a/gui/src/components/markdown/CodeBlockToolbar.tsx b/gui/src/components/markdown/CodeBlockToolbar.tsx index 417d33dbb..510e70b2b 100644 --- a/gui/src/components/markdown/CodeBlockToolbar.tsx +++ b/gui/src/components/markdown/CodeBlockToolbar.tsx @@ -18,12 +18,7 @@ import { import { IdeMessengerContext } from "../../context/IdeMessenger"; import { useWebviewListener } from "../../hooks/useWebviewListener"; import { incrementNextCodeBlockToApplyIndex } from "../../redux/slices/uiStateSlice"; -import { - getAltKeyLabel, - getFontSize, - getMetaKeyLabel, - isJetBrains, -} from "../../util"; +import { getFontSize, getMetaKeyLabel, isJetBrains } from "../../util"; import FileIcon from "../FileIcon"; import ButtonWithTooltip from "../ButtonWithTooltip"; import { CopyButton as CopyButtonHeader } from "./CopyButton"; diff --git a/gui/src/components/markdown/CopyButton.tsx b/gui/src/components/markdown/CopyButton.tsx index 144b427f5..1b0a4fbbe 100644 --- a/gui/src/components/markdown/CopyButton.tsx +++ b/gui/src/components/markdown/CopyButton.tsx @@ -6,11 +6,17 @@ import ButtonWithTooltip from "../ButtonWithTooltip"; interface CopyButtonProps { text: string | (() => string); - color?: string; tabIndex?: number; + checkIconClassName?: string; + clipboardIconClassName?: string; } -export function CopyButton(props: CopyButtonProps) { +export function CopyButton({ + text, + tabIndex, + checkIconClassName = "h-4 w-4 text-green-400", + clipboardIconClassName = "h-4 w-4 text-gray-400", +}: CopyButtonProps) { const [copied, setCopied] = useState(false); const ideMessenger = useContext(IdeMessengerContext); @@ -18,15 +24,14 @@ export function CopyButton(props: CopyButtonProps) { return ( <> { - const text = - typeof props.text === "string" ? props.text : props.text(); + const textVal = typeof text === "string" ? text : text(); if (isJetBrains()) { - ideMessenger.request("copyText", { text }); + ideMessenger.request("copyText", { text: textVal }); } else { - navigator.clipboard.writeText(text); + navigator.clipboard.writeText(textVal); } setCopied(true); @@ -34,9 +39,9 @@ export function CopyButton(props: CopyButtonProps) { }} > {copied ? ( - + ) : ( - + )} diff --git a/gui/src/components/markdown/StyledMarkdownPreview.tsx b/gui/src/components/markdown/StyledMarkdownPreview.tsx index 53bed5d93..1e4be98db 100644 --- a/gui/src/components/markdown/StyledMarkdownPreview.tsx +++ b/gui/src/components/markdown/StyledMarkdownPreview.tsx @@ -29,8 +29,7 @@ const StyledMarkdown = styled.div<{ overflow-x: scroll; overflow-y: hidden; - padding: 6px; - margin: 0px; + padding: 6px 8px; } code { @@ -64,6 +63,14 @@ const StyledMarkdown = styled.div<{ ul { line-height: 1.5; } + + > *:first-child { + margin-top: 8px; + } + + > *:last-child { + margin-bottom: 0; + } `; interface StyledMarkdownPreviewProps { diff --git a/gui/src/components/markdown/SyntaxHighlightedPre.tsx b/gui/src/components/markdown/SyntaxHighlightedPre.tsx index 899a462ce..cee6f3f08 100644 --- a/gui/src/components/markdown/SyntaxHighlightedPre.tsx +++ b/gui/src/components/markdown/SyntaxHighlightedPre.tsx @@ -9,6 +9,7 @@ const StyledPre = styled.pre<{ theme: any }>` } margin-top: 0; + margin-bottom: 0; border-radius: 0 0 ${defaultBorderRadius} ${defaultBorderRadius} !important; ${(props) => diff --git a/gui/src/components/modelSelection/ModelSelect.tsx b/gui/src/components/modelSelection/ModelSelect.tsx index d5afd7382..553e440b3 100644 --- a/gui/src/components/modelSelection/ModelSelect.tsx +++ b/gui/src/components/modelSelection/ModelSelect.tsx @@ -318,7 +318,7 @@ function ModelSelect() { style={{ padding: 0 }} onClick={calculatePosition} > -
+
{modelSelectTitle(defaultModel) || "Select model"}{" "} diff --git a/gui/src/components/modelSelection/ModelSelectionListbox.tsx b/gui/src/components/modelSelection/ModelSelectionListbox.tsx index fcac2ce8b..451be0e16 100644 --- a/gui/src/components/modelSelection/ModelSelectionListbox.tsx +++ b/gui/src/components/modelSelection/ModelSelectionListbox.tsx @@ -141,11 +141,7 @@ function ModelSelectionListbox({ - `relative cursor-default select-none py-2 pl-10 pr-4 ${ - active ? "bg-amber-100 text-amber-900" : "text-gray-900" - }` - } + className="relative cursor-default select-none py-2 pl-10 pr-4 text-gray-900" value={option} > {({ selected }) => ( diff --git a/gui/src/hooks/useChatHandler.ts b/gui/src/hooks/useChatHandler.ts index 0de66bd44..9aff5dc79 100644 --- a/gui/src/hooks/useChatHandler.ts +++ b/gui/src/hooks/useChatHandler.ts @@ -17,7 +17,9 @@ import { getBasename, getRelativePath } from "core/util"; import { usePostHog } from "posthog-js/react"; import { useEffect, useRef } from "react"; import { useSelector } from "react-redux"; -import resolveEditorContent from "../components/mainInput/resolveInput"; +import resolveEditorContent, { + hasSlashCommandOrContextProvider, +} from "../components/mainInput/resolveInput"; import { IIdeMessenger } from "../context/IdeMessenger"; import { defaultModelSelector } from "../redux/selectors/modelSelectors"; import { @@ -27,6 +29,7 @@ import { initNewActiveMessage, resubmitAtIndex, setInactive, + setIsGatheringContext, setMessageAtIndex, streamUpdate, } from "../redux/slices/stateSlice"; @@ -52,6 +55,7 @@ function useChatHandler(dispatch: Dispatch, ideMessenger: IIdeMessenger) { const history = useSelector((store: RootState) => store.state.history); const active = useSelector((store: RootState) => store.state.active); const activeRef = useRef(active); + useEffect(() => { activeRef.current = active; }, [active]); @@ -182,6 +186,13 @@ function useChatHandler(dispatch: Dispatch, ideMessenger: IIdeMessenger) { // Reset current code block index dispatch(resetNextCodeBlockToApplyIndex()); + const shouldGatherContext = + modifiers.useCodebase || hasSlashCommandOrContextProvider(editorState); + + if (shouldGatherContext) { + dispatch(setIsGatheringContext(true)); + } + // Resolve context providers and construct new history const [selectedContextItems, selectedCode, content] = await resolveEditorContent( @@ -191,14 +202,17 @@ function useChatHandler(dispatch: Dispatch, ideMessenger: IIdeMessenger) { defaultContextProviders, ); + dispatch(setIsGatheringContext(false)); + // Automatically use currently open file if (!modifiers.noContext) { const usingFreeTrial = defaultModel?.provider === "free-trial"; const currentFilePath = await ideMessenger.ide.getCurrentFile(); if (typeof currentFilePath === "string") { - let currentFileContents = - await ideMessenger.ide.readFile(currentFilePath); + let currentFileContents = await ideMessenger.ide.readFile( + currentFilePath, + ); if (usingFreeTrial) { currentFileContents = currentFileContents .split("\n") @@ -219,18 +233,17 @@ function useChatHandler(dispatch: Dispatch, ideMessenger: IIdeMessenger) { }); } } + dispatch(addContextItems(contextItems)); const message: ChatMessage = { role: "user", content, }; + const historyItem: ChatHistoryItem = { message, contextItems: selectedContextItems, - // : typeof index === "number" - // ? history[index].contextItems - // : contextItems, editorState, }; diff --git a/gui/src/pages/gui.tsx b/gui/src/pages/gui.tsx index d1535f1ad..156c0b3b2 100644 --- a/gui/src/pages/gui.tsx +++ b/gui/src/pages/gui.tsx @@ -102,7 +102,6 @@ const StepsDiv = styled.div` .thread-message { margin: 8px 4px 0 4px; - padding-bottom: 8px; } `; diff --git a/gui/src/redux/slices/stateSlice.ts b/gui/src/redux/slices/stateSlice.ts index 82cad0542..f6c61970a 100644 --- a/gui/src/redux/slices/stateSlice.ts +++ b/gui/src/redux/slices/stateSlice.ts @@ -37,6 +37,7 @@ type State = { contextItems: ContextItemWithId[]; ttsActive: boolean; active: boolean; + isGatheringContext: boolean; config: BrowserSerializedContinueConfig; title: string; sessionId: string; @@ -50,6 +51,7 @@ const initialState: State = { contextItems: [], ttsActive: false, active: false, + isGatheringContext: false, config: { slashCommands: [ { @@ -113,6 +115,9 @@ export const stateSlice = createSlice({ setActive: (state) => { state.active = true; }, + setIsGatheringContext: (state, { payload }: PayloadAction) => { + state.isGatheringContext = payload; + }, clearLastResponse: (state) => { if (state.history.length < 2) { return; @@ -264,6 +269,7 @@ export const stateSlice = createSlice({ historyItem.contextItems.push(...payload.contextItems); }, setInactive: (state) => { + state.isGatheringContext = false; state.active = false; }, streamUpdate: (state, action: PayloadAction) => { @@ -453,5 +459,7 @@ export const { consumeMainEditorContent, setSelectedProfileId, deleteMessage, + setIsGatheringContext, } = stateSlice.actions; + export default stateSlice.reducer; From ec31735f557ba00edb455740947b4f4e0640f191 Mon Sep 17 00:00:00 2001 From: Nate Date: Thu, 26 Sep 2024 18:18:28 -0700 Subject: [PATCH 229/268] remove top codelens --- .../providers/VerticalPerLineCodeLensProvider.ts | 15 --------------- 1 file changed, 15 deletions(-) diff --git a/extensions/vscode/src/lang-server/codeLens/providers/VerticalPerLineCodeLensProvider.ts b/extensions/vscode/src/lang-server/codeLens/providers/VerticalPerLineCodeLensProvider.ts index 94a68bac7..aec789bbe 100644 --- a/extensions/vscode/src/lang-server/codeLens/providers/VerticalPerLineCodeLensProvider.ts +++ b/extensions/vscode/src/lang-server/codeLens/providers/VerticalPerLineCodeLensProvider.ts @@ -43,21 +43,6 @@ export class VerticalDiffCodeLensProvider implements vscode.CodeLensProvider { start.translate(block.numGreen + block.numRed), ); - if (isFirstBlockInMultiBlockDocument) { - codeLenses.push( - new vscode.CodeLens(range, { - title: `Accept All (${getMetaKeyLabel()}⇧↩)`, - command: "continue.acceptDiff", - arguments: [filepath, i], - }), - new vscode.CodeLens(range, { - title: `Reject All (${getMetaKeyLabel()}⇧⌫)`, - command: "continue.rejectDiff", - arguments: [filepath, i], - }), - ); - } - codeLenses.push( new vscode.CodeLens(range, { title: `Accept${ From 2562dcb850efe001a334ede0ec8d0b15423a5efc Mon Sep 17 00:00:00 2001 From: Nate Date: Thu, 26 Sep 2024 18:26:23 -0700 Subject: [PATCH 230/268] fix debouncing to get correct value for codeblock toolbar --- .../components/markdown/PreWithToolbar.tsx | 20 +++++++++++-------- 1 file changed, 12 insertions(+), 8 deletions(-) diff --git a/gui/src/components/markdown/PreWithToolbar.tsx b/gui/src/components/markdown/PreWithToolbar.tsx index 903d7cb7d..3f650740d 100644 --- a/gui/src/components/markdown/PreWithToolbar.tsx +++ b/gui/src/components/markdown/PreWithToolbar.tsx @@ -2,7 +2,7 @@ import { debounce } from "lodash"; import { useEffect, useState } from "react"; import { useSelector } from "react-redux"; import styled from "styled-components"; -import { defaultBorderRadius, lightGray } from ".."; +import { defaultBorderRadius } from ".."; import useUIConfig from "../../hooks/useUIConfig"; import { RootState } from "../../redux/store"; import CodeBlockToolBar from "./CodeBlockToolbar"; @@ -47,16 +47,20 @@ function PreWithToolbar(props: { ); useEffect(() => { - const debouncedEffect = debounce(() => { + if (copyValue === "") { setCopyValue(childrenToText(props.children.props.children)); - }, 100); + } else { + const debouncedEffect = debounce(() => { + setCopyValue(childrenToText(props.children.props.children)); + }, 100); - debouncedEffect(); + debouncedEffect(); - return () => { - debouncedEffect.cancel(); - }; - }, [props.children]); + return () => { + debouncedEffect.cancel(); + }; + } + }, [props.children, copyValue]); return ( Date: Thu, 26 Sep 2024 18:35:01 -0700 Subject: [PATCH 231/268] resolve abs path to allow relative paths to link from the gui --- extensions/vscode/src/util/ideUtils.ts | 24 ++++++++++++++++++++++-- 1 file changed, 22 insertions(+), 2 deletions(-) diff --git a/extensions/vscode/src/util/ideUtils.ts b/extensions/vscode/src/util/ideUtils.ts index a2f2e3f9f..b71f8e095 100644 --- a/extensions/vscode/src/util/ideUtils.ts +++ b/extensions/vscode/src/util/ideUtils.ts @@ -136,10 +136,30 @@ export class VsCodeIdeUtils { ); } - openFile(filepath: string, range?: vscode.Range) { + private async resolveAbsFilepathInWorkspace( + filepath: string, + ): Promise { + // If the filepath is already absolute, return it as is + if (this.path.isAbsolute(filepath)) { + return filepath; + } + + // Try to resolve for each workspace directory + const workspaceDirectories = this.getWorkspaceDirectories(); + for (const dir of workspaceDirectories) { + const resolvedPath = this.path.resolve(dir, filepath); + if (await this.fileExists(resolvedPath)) { + return resolvedPath; + } + } + + return filepath; + } + + async openFile(filepath: string, range?: vscode.Range) { // vscode has a builtin open/get open files return openEditorAndRevealRange( - filepath, + await this.resolveAbsFilepathInWorkspace(filepath), range, vscode.ViewColumn.One, false, From fee6a1e5ceb89c44a018b6a771065dea276268a9 Mon Sep 17 00:00:00 2001 From: Nate Date: Thu, 26 Sep 2024 18:47:18 -0700 Subject: [PATCH 232/268] remove bottom message div --- gui/src/components/Layout.tsx | 58 ++------------------- gui/src/redux/selectors/uiStateSelectors.ts | 5 -- gui/src/redux/slices/uiStateSlice.ts | 31 +---------- 3 files changed, 6 insertions(+), 88 deletions(-) delete mode 100644 gui/src/redux/selectors/uiStateSelectors.ts diff --git a/gui/src/components/Layout.tsx b/gui/src/components/Layout.tsx index d012194a3..a75fe834e 100644 --- a/gui/src/components/Layout.tsx +++ b/gui/src/components/Layout.tsx @@ -3,31 +3,22 @@ import { useContext, useEffect } from "react"; import { useDispatch, useSelector } from "react-redux"; import { Outlet, useLocation, useNavigate } from "react-router-dom"; import styled from "styled-components"; -import { - CustomScrollbarDiv, - defaultBorderRadius, - vscForeground, - vscInputBackground, -} from "."; +import { CustomScrollbarDiv, defaultBorderRadius, vscInputBackground } from "."; import { IdeMessengerContext } from "../context/IdeMessenger"; import { useWebviewListener } from "../hooks/useWebviewListener"; import { defaultModelSelector } from "../redux/selectors/modelSelectors"; +import { setShowDialog } from "../redux/slices/uiStateSlice"; import { RootState } from "../redux/store"; import { getFontSize, isMetaEquivalentKeyPressed } from "../util"; import { FREE_TRIAL_LIMIT_REQUESTS } from "../util/freeTrial"; import { getLocalStorage, setLocalStorage } from "../util/localStorage"; +import ButtonWithTooltip from "./ButtonWithTooltip"; import TextDialog from "./dialogs"; import ProgressBar from "./loaders/ProgressBar"; +import { useOnboardingCard } from "./OnboardingCard"; +import { isNewUserOnboarding } from "./OnboardingCard/utils"; import PostHogPageView from "./PosthogPageView"; import ProfileSwitcher from "./ProfileSwitcher"; -import { isNewUserOnboarding } from "./OnboardingCard/utils"; -import { useOnboardingCard } from "./OnboardingCard"; -import { - setBottomMessage, - setBottomMessageCloseTimeout, - setShowDialog, -} from "../redux/slices/uiStateSlice"; -import ButtonWithTooltip from "./ButtonWithTooltip"; const FOOTER_HEIGHT = "1.8em"; @@ -48,23 +39,6 @@ const LayoutTopDiv = styled(CustomScrollbarDiv)` } `; -const BottomMessageDiv = styled.div<{ displayOnBottom: boolean }>` - position: fixed; - bottom: ${(props) => (props.displayOnBottom ? "50px" : undefined)}; - top: ${(props) => (props.displayOnBottom ? undefined : "50px")}; - left: 0; - right: 0; - margin: 8px; - margin-top: 0; - background-color: ${vscInputBackground}; - color: ${vscForeground}; - border-radius: ${defaultBorderRadius}; - padding: 12px; - z-index: 100; - box-shadow: 0px 0px 2px 0px ${vscForeground}; - max-height: 35vh; -`; - const Footer = styled.footer` display: flex; flex-direction: row; @@ -120,13 +94,6 @@ const Layout = () => { const defaultModel = useSelector(defaultModelSelector); - const bottomMessage = useSelector( - (state: RootState) => state.uiState.bottomMessage, - ); - const displayBottomMessageOnBottom = useSelector( - (state: RootState) => state.uiState.displayBottomMessageOnBottom, - ); - const timeline = useSelector((state: RootState) => state.state.history); useEffect(() => { @@ -264,21 +231,6 @@ const Layout = () => { - - { - dispatch(setBottomMessageCloseTimeout(undefined)); - }} - onMouseLeave={(e) => { - if (!e.buttons) { - dispatch(setBottomMessage(undefined)); - } - }} - hidden={!bottomMessage} - > - {bottomMessage} -
state.uiState.bottomMessage; - -export { selectBottomMessage }; diff --git a/gui/src/redux/slices/uiStateSlice.ts b/gui/src/redux/slices/uiStateSlice.ts index d4c4f7390..94a5f2934 100644 --- a/gui/src/redux/slices/uiStateSlice.ts +++ b/gui/src/redux/slices/uiStateSlice.ts @@ -5,9 +5,6 @@ import { } from "../../components/OnboardingCard"; type UiState = { - bottomMessage: JSX.Element | undefined; - bottomMessageCloseTimeout: NodeJS.Timeout | undefined; - displayBottomMessageOnBottom: boolean; showDialog: boolean; dialogMessage: string | JSX.Element | undefined; dialogEntryOn: boolean; @@ -18,12 +15,9 @@ type UiState = { export const uiStateSlice = createSlice({ name: "uiState", initialState: { - bottomMessage: undefined, - bottomMessageCloseTimeout: undefined, showDialog: false, dialogMessage: "", dialogEntryOn: false, - displayBottomMessageOnBottom: true, nextCodeBlockToApplyIndex: 0, onboardingCard: defaultOnboardingCardState, } as UiState, @@ -34,21 +28,6 @@ export const uiStateSlice = createSlice({ ) => { state.onboardingCard = { ...state.onboardingCard, ...action.payload }; }, - setBottomMessage: ( - state, - action: PayloadAction, - ) => { - state.bottomMessage = action.payload; - }, - setBottomMessageCloseTimeout: ( - state, - action: PayloadAction, - ) => { - if (state.bottomMessageCloseTimeout) { - clearTimeout(state.bottomMessageCloseTimeout); - } - state.bottomMessageCloseTimeout = action.payload; - }, setDialogMessage: ( state, action: PayloadAction, @@ -64,12 +43,7 @@ export const uiStateSlice = createSlice({ setShowDialog: (state, action: PayloadAction) => { state.showDialog = action.payload; }, - setDisplayBottomMessageOnBottom: ( - state, - action: PayloadAction, - ) => { - state.displayBottomMessageOnBottom = action.payload; - }, + resetNextCodeBlockToApplyIndex: (state) => { state.nextCodeBlockToApplyIndex = 0; }, @@ -86,9 +60,6 @@ export const { setShowDialog, resetNextCodeBlockToApplyIndex, incrementNextCodeBlockToApplyIndex, - setBottomMessage, - setBottomMessageCloseTimeout, - setDisplayBottomMessageOnBottom, } = uiStateSlice.actions; export default uiStateSlice.reducer; From 55270279f6f7516769b2ec8c586f9a83d271ea2d Mon Sep 17 00:00:00 2001 From: Nate Date: Thu, 26 Sep 2024 20:07:25 -0700 Subject: [PATCH 233/268] apply status and corresponding ui --- core/protocol/ideWebview.ts | 8 +- extensions/vscode/src/commands.ts | 1 + .../vscode/src/diff/vertical/handler.ts | 6 ++ .../vscode/src/diff/vertical/manager.ts | 23 ++++- .../vscode/src/extension/VsCodeExtension.ts | 5 +- .../vscode/src/extension/VsCodeMessenger.ts | 8 +- .../VerticalPerLineCodeLensProvider.ts | 19 +--- .../src/quickEdit/QuickEditQuickPick.ts | 1 + gui/src/components/Layout.tsx | 10 ++- .../components/markdown/CodeBlockToolbar.tsx | 86 +++++++++++++++---- gui/src/redux/slices/uiStateSlice.ts | 17 ++++ 11 files changed, 147 insertions(+), 37 deletions(-) diff --git a/core/protocol/ideWebview.ts b/core/protocol/ideWebview.ts index 8ccc6d007..774da7ee5 100644 --- a/core/protocol/ideWebview.ts +++ b/core/protocol/ideWebview.ts @@ -15,7 +15,7 @@ export type ToIdeFromWebviewProtocol = ToIdeFromWebviewOrCoreProtocol & { }, ]; openUrl: [string, void]; - applyToCurrentFile: [{ text: string }, void]; + applyToCurrentFile: [{ text: string; streamId: string }, void]; showTutorial: [undefined, void]; showFile: [{ filepath: string }, void]; openConfigJson: [undefined, void]; @@ -32,6 +32,11 @@ export type ToIdeFromWebviewProtocol = ToIdeFromWebviewOrCoreProtocol & { rejectDiff: [{ filepath: string }, void]; }; +export interface ApplyState { + streamId: string; + status: "streaming" | "done" | "closed"; +} + export type ToWebviewFromIdeProtocol = ToWebviewFromIdeOrCoreProtocol & { setInactive: [undefined, void]; setTTSActive: [boolean, void]; @@ -65,4 +70,5 @@ export type ToWebviewFromIdeProtocol = ToWebviewFromIdeOrCoreProtocol & { incrementFtc: [undefined, void]; openOnboardingCard: [undefined, void]; applyCodeFromChat: [undefined, void]; + updateApplyState: [ApplyState, void]; }; diff --git a/extensions/vscode/src/commands.ts b/extensions/vscode/src/commands.ts index 6bec8b754..17140eaf8 100644 --- a/extensions/vscode/src/commands.ts +++ b/extensions/vscode/src/commands.ts @@ -223,6 +223,7 @@ const commandsMap: ( await verticalDiffManager.streamEdit( config.experimental?.contextMenuPrompts?.[promptName] ?? fallbackPrompt, modelTitle, + undefined, onlyOneInsertion, undefined, range, diff --git a/extensions/vscode/src/diff/vertical/handler.ts b/extensions/vscode/src/diff/vertical/handler.ts index 9259cb38e..5aa5b070b 100644 --- a/extensions/vscode/src/diff/vertical/handler.ts +++ b/extensions/vscode/src/diff/vertical/handler.ts @@ -1,4 +1,5 @@ import type { DiffLine } from "core"; +import { ApplyState } from "core/protocol/ideWebview"; import * as vscode from "vscode"; import { DecorationTypeRangeManager, @@ -12,6 +13,7 @@ import type { VerticalDiffCodeLens } from "./manager"; export interface VerticalDiffHandlerOptions { input?: string; instant?: boolean; + onStatusUpdate: (status: ApplyState["status"]) => void; } export class VerticalDiffHandler implements vscode.Disposable { @@ -268,6 +270,8 @@ export class VerticalDiffHandler implements vscode.Disposable { }, ); + this.options.onStatusUpdate("closed"); + this.cancelled = true; this.refreshCodeLens(); this.dispose(); @@ -352,6 +356,8 @@ export class VerticalDiffHandler implements vscode.Disposable { this.refreshCodeLens(); + this.options.onStatusUpdate("done"); + // Reject on user typing // const listener = vscode.workspace.onDidChangeTextDocument((e) => { // if (e.document.uri.fsPath === this.filepath) { diff --git a/extensions/vscode/src/diff/vertical/manager.ts b/extensions/vscode/src/diff/vertical/manager.ts index c84fa4397..2ecf6d596 100644 --- a/extensions/vscode/src/diff/vertical/manager.ts +++ b/extensions/vscode/src/diff/vertical/manager.ts @@ -5,6 +5,7 @@ import { getMarkdownLanguageTagForFile } from "core/util"; import { DiffLine } from "core"; import { streamDiffLines } from "core/edit/streamDiffLines"; import * as vscode from "vscode"; +import { VsCodeWebviewProtocol } from "../../webviewProtocol"; import { VerticalDiffHandler, VerticalDiffHandlerOptions } from "./handler"; export interface VerticalDiffCodeLens { @@ -22,7 +23,10 @@ export class VerticalDiffManager { private userChangeListener: vscode.Disposable | undefined; - constructor(private readonly configHandler: ConfigHandler) { + constructor( + private readonly configHandler: ConfigHandler, + private readonly webviewProtocol: VsCodeWebviewProtocol, + ) { this.userChangeListener = undefined; } @@ -176,6 +180,7 @@ export class VerticalDiffManager { async streamDiffLines( diffStream: AsyncGenerator, instant: boolean, + streamId: string, ) { vscode.commands.executeCommand("setContext", "continue.diffVisible", true); @@ -205,6 +210,11 @@ export class VerticalDiffManager { endLine, { instant, + onStatusUpdate: (status) => + this.webviewProtocol.request("updateApplyState", { + streamId, + status, + }), }, ); @@ -271,6 +281,7 @@ export class VerticalDiffManager { async streamEdit( input: string, modelTitle: string | undefined, + streamId?: string, onlyOneInsertion?: boolean, quickEdit?: string, range?: vscode.Range, @@ -339,7 +350,15 @@ export class VerticalDiffManager { filepath, startLine, endLine, - { input }, + { + input, + onStatusUpdate: (status) => + streamId && + this.webviewProtocol.request("updateApplyState", { + streamId, + status, + }), + }, ); if (!diffHandler) { diff --git a/extensions/vscode/src/extension/VsCodeExtension.ts b/extensions/vscode/src/extension/VsCodeExtension.ts index 68714b106..ce12a0a6b 100644 --- a/extensions/vscode/src/extension/VsCodeExtension.ts +++ b/extensions/vscode/src/extension/VsCodeExtension.ts @@ -124,7 +124,10 @@ export class VsCodeExtension { resolveConfigHandler?.(this.configHandler); this.configHandler.reloadConfig(); - this.verticalDiffManager = new VerticalDiffManager(this.configHandler); + this.verticalDiffManager = new VerticalDiffManager( + this.configHandler, + this.sidebar.webviewProtocol, + ); resolveVerticalDiffManager?.(this.verticalDiffManager); this.tabAutocompleteModel = new TabAutocompleteModel(this.configHandler); diff --git a/extensions/vscode/src/extension/VsCodeMessenger.ts b/extensions/vscode/src/extension/VsCodeMessenger.ts index 0e5b91b88..a50e389b5 100644 --- a/extensions/vscode/src/extension/VsCodeMessenger.ts +++ b/extensions/vscode/src/extension/VsCodeMessenger.ts @@ -191,10 +191,14 @@ export class VsCodeMessenger { ); const verticalDiffManager = await this.verticalDiffManagerPromise; if (instant) { - verticalDiffManager.streamDiffLines(diffLines, instant); + verticalDiffManager.streamDiffLines( + diffLines, + instant, + msg.data.streamId, + ); } else { const prompt = `The following code was suggested as an edit:\n\`\`\`\n${msg.data.text}\n\`\`\`\nPlease apply it to the previous code.`; - verticalDiffManager.streamEdit(prompt, llm.title); + verticalDiffManager.streamEdit(prompt, llm.title, msg.data.streamId); } }); diff --git a/extensions/vscode/src/lang-server/codeLens/providers/VerticalPerLineCodeLensProvider.ts b/extensions/vscode/src/lang-server/codeLens/providers/VerticalPerLineCodeLensProvider.ts index aec789bbe..a96cf5660 100644 --- a/extensions/vscode/src/lang-server/codeLens/providers/VerticalPerLineCodeLensProvider.ts +++ b/extensions/vscode/src/lang-server/codeLens/providers/VerticalPerLineCodeLensProvider.ts @@ -1,6 +1,6 @@ import * as vscode from "vscode"; import { VerticalDiffCodeLens } from "../../../diff/vertical/manager"; -import { getAltOrOption, getMetaKeyLabel } from "../../../util/util"; +import { getMetaKeyLabel } from "../../../util/util"; export class VerticalDiffCodeLensProvider implements vscode.CodeLensProvider { private _eventEmitter: vscode.EventEmitter = @@ -33,9 +33,6 @@ export class VerticalDiffCodeLensProvider implements vscode.CodeLensProvider { const codeLenses: vscode.CodeLens[] = []; for (let i = 0; i < blocks.length; i++) { - const isFirstBlockInMultiBlockDocument = - codeLenses.length === 0 && blocks.length > 1; - const block = blocks[i]; const start = new vscode.Position(block.start, 0); const range = new vscode.Range( @@ -45,26 +42,18 @@ export class VerticalDiffCodeLensProvider implements vscode.CodeLensProvider { codeLenses.push( new vscode.CodeLens(range, { - title: `Accept${ - codeLenses.length === 2 - ? ` (${getAltOrOption()}${getMetaKeyLabel()}Y)` - : "" - }`, + title: `Accept`, command: "continue.acceptVerticalDiffBlock", arguments: [filepath, i], }), new vscode.CodeLens(range, { - title: `Reject${ - codeLenses.length === 2 - ? ` (${getAltOrOption()}${getMetaKeyLabel()}N)` - : "" - }`, + title: `Reject`, command: "continue.rejectVerticalDiffBlock", arguments: [filepath, i], }), ); - if (codeLenses.length === 4) { + if (codeLenses.length === 2) { codeLenses.push( new vscode.CodeLens(range, { title: `${getMetaKeyLabel()}I to add instructions`, diff --git a/extensions/vscode/src/quickEdit/QuickEditQuickPick.ts b/extensions/vscode/src/quickEdit/QuickEditQuickPick.ts index 877d94ad3..0c0b276a8 100644 --- a/extensions/vscode/src/quickEdit/QuickEditQuickPick.ts +++ b/extensions/vscode/src/quickEdit/QuickEditQuickPick.ts @@ -296,6 +296,7 @@ export class QuickEdit { prompt, modelTitle, undefined, + undefined, this.previousInput, this.range, ); diff --git a/gui/src/components/Layout.tsx b/gui/src/components/Layout.tsx index a75fe834e..13cc1fc93 100644 --- a/gui/src/components/Layout.tsx +++ b/gui/src/components/Layout.tsx @@ -7,7 +7,7 @@ import { CustomScrollbarDiv, defaultBorderRadius, vscInputBackground } from "."; import { IdeMessengerContext } from "../context/IdeMessenger"; import { useWebviewListener } from "../hooks/useWebviewListener"; import { defaultModelSelector } from "../redux/selectors/modelSelectors"; -import { setShowDialog } from "../redux/slices/uiStateSlice"; +import { setShowDialog, updateApplyState } from "../redux/slices/uiStateSlice"; import { RootState } from "../redux/store"; import { getFontSize, isMetaEquivalentKeyPressed } from "../util"; import { FREE_TRIAL_LIMIT_REQUESTS } from "../util/freeTrial"; @@ -154,6 +154,14 @@ const Layout = () => { [], ); + useWebviewListener( + "updateApplyState", + async (state) => { + dispatch(updateApplyState(state)); + }, + [], + ); + useWebviewListener( "openOnboardingCard", async () => { diff --git a/gui/src/components/markdown/CodeBlockToolbar.tsx b/gui/src/components/markdown/CodeBlockToolbar.tsx index 510e70b2b..3175f5361 100644 --- a/gui/src/components/markdown/CodeBlockToolbar.tsx +++ b/gui/src/components/markdown/CodeBlockToolbar.tsx @@ -2,13 +2,15 @@ import { ArrowLeftEndOnRectangleIcon, CheckIcon, ClipboardIcon, - PlayIcon, CommandLineIcon, + PlayIcon, XMarkIcon, } from "@heroicons/react/24/outline"; -import { useContext, useState } from "react"; -import { useDispatch } from "react-redux"; +import { getBasename } from "core/util"; +import { useContext, useRef, useState } from "react"; +import { useDispatch, useSelector } from "react-redux"; import styled from "styled-components"; +import { v4 as uuidv4 } from "uuid"; import { defaultBorderRadius, lightGray, @@ -17,13 +19,16 @@ import { } from ".."; import { IdeMessengerContext } from "../../context/IdeMessenger"; import { useWebviewListener } from "../../hooks/useWebviewListener"; -import { incrementNextCodeBlockToApplyIndex } from "../../redux/slices/uiStateSlice"; +import { + incrementNextCodeBlockToApplyIndex, + updateApplyState, +} from "../../redux/slices/uiStateSlice"; +import { RootState } from "../../redux/store"; import { getFontSize, getMetaKeyLabel, isJetBrains } from "../../util"; -import FileIcon from "../FileIcon"; import ButtonWithTooltip from "../ButtonWithTooltip"; +import FileIcon from "../FileIcon"; import { CopyButton as CopyButtonHeader } from "./CopyButton"; import { ToolbarButtonWithTooltip } from "./ToolbarButtonWithTooltip"; -import { getBasename } from "core/util"; const ToolbarDiv = styled.div` display: flex; @@ -123,16 +128,28 @@ function CodeBlockToolBar(props: CodeBlockToolBarProps) { const ideMessenger = useContext(IdeMessengerContext); const dispatch = useDispatch(); const isTerminal = isTerminalCodeBlock(props.language, props.text); - const [showAcceptReject, setShowAcceptReject] = useState(false); const [isCopied, setIsCopied] = useState(false); const [isApplying, setIsApplying] = useState(false); + const streamIdRef = useRef(null); + if (streamIdRef.current === null) { + streamIdRef.current = uuidv4(); + } + + const applyState = useSelector( + (store: RootState) => + store.uiState.applyStates.find( + (state) => state.streamId === streamIdRef.current, + )?.status ?? "closed", + ); + // Handle apply keyboard shortcut useWebviewListener( "applyCodeFromChat", async () => { await ideMessenger.request("applyToCurrentFile", { text: props.text, + streamId: streamIdRef.current, }); dispatch(incrementNextCodeBlockToApplyIndex({})); }, @@ -157,10 +174,16 @@ function CodeBlockToolBar(props: CodeBlockToolBarProps) { if (isTerminal) { ideMessenger.ide.runCommand(getTerminalCommand(props.text)); } else { - ideMessenger.post("applyToCurrentFile", { text: props.text }); - setIsApplying(true); - setTimeout(() => setIsApplying(false), 2000); - setShowAcceptReject(true); + ideMessenger.post("applyToCurrentFile", { + text: props.text, + streamId: streamIdRef.current, + }); + dispatch( + updateApplyState({ + streamId: streamIdRef.current, + status: "streaming", + }), + ); } } @@ -173,12 +196,22 @@ function CodeBlockToolBar(props: CodeBlockToolBarProps) { function onClickAccept() { ideMessenger.post("acceptDiff", { filepath: props.filepath }); - setShowAcceptReject(false); + dispatch( + updateApplyState({ + streamId: streamIdRef.current, + status: "closed", + }), + ); } function onClickReject() { ideMessenger.post("rejectDiff", { filepath: props.filepath }); - setShowAcceptReject(false); + dispatch( + updateApplyState({ + streamId: streamIdRef.current, + status: "closed", + }), + ); } if (!props.filepath) { @@ -246,7 +279,7 @@ function CodeBlockToolBar(props: CodeBlockToolBarProps) { {!isJetBrains() && (
- {!showAcceptReject ? ( + {applyState === "closed" ? ( Apply
- ) : ( + ) : applyState === "done" ? ( <> + ) : ( +
+ + + + +
)}
)} diff --git a/gui/src/redux/slices/uiStateSlice.ts b/gui/src/redux/slices/uiStateSlice.ts index 94a5f2934..1625110eb 100644 --- a/gui/src/redux/slices/uiStateSlice.ts +++ b/gui/src/redux/slices/uiStateSlice.ts @@ -1,4 +1,5 @@ import { createSlice, PayloadAction } from "@reduxjs/toolkit"; +import { ApplyState } from "core/protocol/ideWebview"; import { defaultOnboardingCardState, OnboardingCardState, @@ -10,6 +11,7 @@ type UiState = { dialogEntryOn: boolean; nextCodeBlockToApplyIndex: number; onboardingCard: OnboardingCardState; + applyStates: ApplyState[]; }; export const uiStateSlice = createSlice({ @@ -20,6 +22,7 @@ export const uiStateSlice = createSlice({ dialogEntryOn: false, nextCodeBlockToApplyIndex: 0, onboardingCard: defaultOnboardingCardState, + applyStates: [], } as UiState, reducers: { setOnboardingCard: ( @@ -50,6 +53,19 @@ export const uiStateSlice = createSlice({ incrementNextCodeBlockToApplyIndex: (state, action) => { state.nextCodeBlockToApplyIndex++; }, + updateApplyState: (state, action: PayloadAction) => { + const { streamId, status } = action.payload; + const index = state.applyStates.findIndex( + (applyState) => applyState.streamId === streamId, + ); + if (status === "closed" && index !== -1) { + state.applyStates.splice(index, 1); + } else if (index === -1) { + state.applyStates.push(action.payload); + } else { + state.applyStates[index].status = status; + } + }, }, }); @@ -60,6 +76,7 @@ export const { setShowDialog, resetNextCodeBlockToApplyIndex, incrementNextCodeBlockToApplyIndex, + updateApplyState, } = uiStateSlice.actions; export default uiStateSlice.reducer; From 4d299ba2cd03a05046a56cf77c9d957ea7fcd41b Mon Sep 17 00:00:00 2001 From: Nate Date: Thu, 26 Sep 2024 20:18:05 -0700 Subject: [PATCH 234/268] apply to correct range --- .../vscode/src/extension/VsCodeMessenger.ts | 18 +++++++++++++++++- 1 file changed, 17 insertions(+), 1 deletion(-) diff --git a/extensions/vscode/src/extension/VsCodeMessenger.ts b/extensions/vscode/src/extension/VsCodeMessenger.ts index a50e389b5..c0b62fdbc 100644 --- a/extensions/vscode/src/extension/VsCodeMessenger.ts +++ b/extensions/vscode/src/extension/VsCodeMessenger.ts @@ -198,7 +198,23 @@ export class VsCodeMessenger { ); } else { const prompt = `The following code was suggested as an edit:\n\`\`\`\n${msg.data.text}\n\`\`\`\nPlease apply it to the previous code.`; - verticalDiffManager.streamEdit(prompt, llm.title, msg.data.streamId); + const fullEditorRange = new vscode.Range( + 0, + 0, + editor.document.lineCount - 1, + editor.document.lineAt(editor.document.lineCount - 1).text.length, + ); + const rangeToApplyTo = editor.selection.isEmpty + ? fullEditorRange + : editor.selection; + verticalDiffManager.streamEdit( + prompt, + llm.title, + msg.data.streamId, + undefined, + undefined, + rangeToApplyTo, + ); } }); From 7fa299326765e9ed07dd305531509181873ed644 Mon Sep 17 00:00:00 2001 From: Test Date: Thu, 26 Sep 2024 20:40:57 -0700 Subject: [PATCH 235/268] gui: update styling for filename lins --- core/commands/slash/edit.ts | 4 +- core/commands/util.ts | 17 +- core/context/providers/FileContextProvider.ts | 8 +- gui/src/components/gui/StepContainer.tsx | 2 +- gui/src/components/index.ts | 2 - .../components/mainInput/ContextItemsPeek.tsx | 16 +- .../components/mainInput/ContinueInputBox.tsx | 10 +- gui/src/components/markdown/FilenameLink.tsx | 36 ++++ gui/src/components/markdown/LinkableCode.tsx | 170 ------------------ .../markdown/StyledMarkdownPreview.tsx | 45 +++-- gui/src/hooks/useChatHandler.ts | 4 + 11 files changed, 105 insertions(+), 209 deletions(-) create mode 100644 gui/src/components/markdown/FilenameLink.tsx delete mode 100644 gui/src/components/markdown/LinkableCode.tsx diff --git a/core/commands/slash/edit.ts b/core/commands/slash/edit.ts index a3c3ed91c..fd87ad32b 100644 --- a/core/commands/slash/edit.ts +++ b/core/commands/slash/edit.ts @@ -14,7 +14,7 @@ import { getMarkdownLanguageTagForFile, } from "../../util/"; import { - contextItemToRangeInFileWithContents, + ctxItemToRifWithContents, type RangeInFileWithContents, } from "../util"; @@ -250,7 +250,7 @@ const EditSlashCommand: SlashCommand = { } const rif: RangeInFileWithContents = - contextItemToRangeInFileWithContents(contextItemToEdit); + ctxItemToRifWithContents(contextItemToEdit); await ide.saveFile(rif.filepath); const fullFileContents = await ide.readFile(rif.filepath); diff --git a/core/commands/util.ts b/core/commands/util.ts index 931564839..a6be440e9 100644 --- a/core/commands/util.ts +++ b/core/commands/util.ts @@ -9,20 +9,29 @@ export interface RangeInFileWithContents { contents: string; } -export function contextItemToRangeInFileWithContents( +export function ctxItemToRifWithContents( item: ContextItemWithId, ): RangeInFileWithContents { - const lines = item.name.split("(")[1].split(")")[0].split("-"); + let startLine = 0; + let endLine = 0; + + const nameSplit = item.name.split("("); + + if (nameSplit.length > 1) { + const lines = nameSplit[1].split(")")[0].split("-"); + startLine = Number.parseInt(lines[0], 10); + endLine = Number.parseInt(lines[1], 10); + } const rif: RangeInFileWithContents = { filepath: item.uri?.value || "", range: { start: { - line: Number.parseInt(lines[0]), + line: startLine, character: 0, }, end: { - line: Number.parseInt(lines[1]), + line: endLine, character: 0, }, }, diff --git a/core/context/providers/FileContextProvider.ts b/core/context/providers/FileContextProvider.ts index be558c651..d1ac2d6e2 100644 --- a/core/context/providers/FileContextProvider.ts +++ b/core/context/providers/FileContextProvider.ts @@ -4,14 +4,14 @@ import { ContextProviderExtras, ContextSubmenuItem, LoadSubmenuItemsArgs, -} from "../../index.js"; -import { walkDir } from "../../indexing/walkDir.js"; +} from "../../"; +import { walkDir } from "../../indexing/walkDir"; import { getBasename, getUniqueFilePath, groupByLastNPathParts, -} from "../../util/index.js"; -import { BaseContextProvider } from "../index.js"; +} from "../../util/"; +import { BaseContextProvider } from "../"; const MAX_SUBMENU_ITEMS = 10_000; diff --git a/gui/src/components/gui/StepContainer.tsx b/gui/src/components/gui/StepContainer.tsx index c4d0b2597..94652bc7d 100644 --- a/gui/src/components/gui/StepContainer.tsx +++ b/gui/src/components/gui/StepContainer.tsx @@ -106,7 +106,7 @@ function StepContainer(props: StepContainerProps) { {shouldRenderActions && ( -
+
{truncatedEarly && (
{getContextItemIcon()} @@ -128,11 +128,11 @@ function ContextItemsPeekItem({ contextItem }: ContextItemsPeekItemProps) { {contextItem.name}
- {contextItem.description} + {contextItem.uri?.type === "file" + ? getBasename(contextItem.description) + : contextItem.description}
diff --git a/gui/src/components/mainInput/ContinueInputBox.tsx b/gui/src/components/mainInput/ContinueInputBox.tsx index 9778a6de9..40127037f 100644 --- a/gui/src/components/mainInput/ContinueInputBox.tsx +++ b/gui/src/components/mainInput/ContinueInputBox.tsx @@ -88,8 +88,6 @@ function ContinueInputBox(props: ContinueInputBoxProps) { [props.isMainInput], ); - console.log({ isGatheringContext, isGatheringContextStore }); - useEffect(() => { if (isGatheringContextStore && !isGatheringContext) { // 500ms delay when going from false -> true to prevent flashing loading indicator @@ -107,10 +105,8 @@ function ContinueInputBox(props: ContinueInputBoxProps) { }, [isGatheringContextStore]); return ( -
-
+
+
+ />
); } diff --git a/gui/src/components/markdown/FilenameLink.tsx b/gui/src/components/markdown/FilenameLink.tsx new file mode 100644 index 000000000..1ef434a7e --- /dev/null +++ b/gui/src/components/markdown/FilenameLink.tsx @@ -0,0 +1,36 @@ +import { RangeInFile } from "core"; +import { IdeMessengerContext } from "../../context/IdeMessenger"; +import { useContext } from "react"; +import { getBasename } from "core/util"; +import FileIcon from "../FileIcon"; + +interface FilenameLinkProps { + rif: RangeInFile; +} + +function FilenameLink({ rif }: FilenameLinkProps) { + const ideMessenger = useContext(IdeMessengerContext); + + function onClick() { + debugger; + ideMessenger.post("showLines", { + filepath: rif.filepath, + startLine: rif.range.start.line, + endLine: rif.range.end.line, + }); + } + + return ( +
+ + + {getBasename(rif.filepath)} + +
+ ); +} + +export default FilenameLink; diff --git a/gui/src/components/markdown/LinkableCode.tsx b/gui/src/components/markdown/LinkableCode.tsx deleted file mode 100644 index 9c4791265..000000000 --- a/gui/src/components/markdown/LinkableCode.tsx +++ /dev/null @@ -1,170 +0,0 @@ -import { RangeInFile } from "core"; -import { useContext, useEffect, useState } from "react"; -import { useSelector } from "react-redux"; -import styled from "styled-components"; -import { defaultBorderRadius, vscInputBackground } from ".."; -import { IdeMessengerContext } from "../../context/IdeMessenger"; -import { memoizedContextItemsSelector } from "../../redux/slices/stateSlice"; - -const StyledCode = styled.code<{ link: boolean }>` - color: ${(props) => (props.link ? "#ff4343" : "#f78383")}; - word-wrap: break-word; - border-radius: ${defaultBorderRadius}; - background-color: ${vscInputBackground}; - - ${(props) => props.link && "cursor: pointer;"} - &:hover { - ${(props) => props.link && "text-decoration: underline;"} - } -`; - -function LinkableCode(props: any) { - const ideMessenger = useContext(IdeMessengerContext); - - const contextItems = useSelector(memoizedContextItemsSelector); - - const [linkingDone, setLinkingDone] = useState(false); - const [isLink, setIsLink] = useState(false); - const [rif, setRif] = useState(undefined); - - useEffect(() => { - if (linkingDone) return; - setLinkingDone(true); - - // Get content of the code tag - let content: string | undefined = undefined; - if (typeof props.children === "string") { - content = props.children; - } else if ( - Array.isArray(props.children) && - props.children.length > 0 && - typeof props.children[0] === "string" - ) { - content = props.children[0]; - } - if (!content) return; - - // Match filepath with context items - const contextItemFileMatch = contextItems.find( - (item) => - ["file", "codebase", "folder"].includes(item.id.providerTitle) && - item.description.split(" (")[0].endsWith(content), - ); - if (contextItemFileMatch) { - setIsLink(true); - if (contextItemFileMatch.description.includes(" (")) { - // Get line number from filename - const [startLine, _] = contextItemFileMatch.description - .split(" (")[1] - .split(")")[0] - .split("-"); - const filepath = contextItemFileMatch.description.split(" (")[0]; - setRif({ - filepath, - range: { - start: { - line: 0, - character: 0, - }, - end: { - line: 0, - character: 0, - }, - }, - }); - return; - } else { - // If no line number, just open the file - setRif({ - filepath: contextItemFileMatch.description.split(" (")[0], - range: { - start: { - line: 0, - character: 0, - }, - end: { - line: 0, - character: 0, - }, - }, - }); - return; - } - } - - // Try to match the content with a line in a file - if (content.length > 8) { - const contextItemContentMatch = contextItems.find( - (item) => - ["file", "codebase", "folder"].includes(item.id.providerTitle) && - item.content.includes(content), - ); - if (contextItemContentMatch) { - const line = contextItemContentMatch.content - .split("\n") - .slice(1) // code block fence - .findIndex((line) => line.includes(content)); - - const [filepath, rest] = - contextItemContentMatch.description.split(" ("); - - setIsLink(true); - - if (rest) { - const [startLine, endLine] = rest.split(")")[0]?.split("-") || [ - "0", - "0", - ]; - const start = parseInt(startLine); - const end = parseInt(endLine); - setRif({ - filepath, - range: { - start: { - line: start + line, - character: 0, - }, - end: { - line: start + line + 1, - character: 0, - }, - }, - }); - } else { - setRif({ - filepath, - range: { - start: { - line: 0, - character: 0, - }, - end: { - line: 0, - character: 0, - }, - }, - }); - } - } - } - }, [linkingDone, contextItems]); - - const onClick = () => { - if (!isLink) return; - if (!rif) return; - ideMessenger.post("showLines", { - filepath: rif.filepath, - startLine: rif.range.start.line, - endLine: rif.range.end.line, - }); - }; - - return ( - <> - {isLink} - - - ); -} - -export default LinkableCode; diff --git a/gui/src/components/markdown/StyledMarkdownPreview.tsx b/gui/src/components/markdown/StyledMarkdownPreview.tsx index 1e4be98db..1695b7d19 100644 --- a/gui/src/components/markdown/StyledMarkdownPreview.tsx +++ b/gui/src/components/markdown/StyledMarkdownPreview.tsx @@ -13,10 +13,13 @@ import { } from ".."; import { getFontSize } from "../../util"; import "./katex.css"; -import LinkableCode from "./LinkableCode"; +import FilenameLink from "./FilenameLink"; import "./markdown.css"; import PreWithToolbar from "./PreWithToolbar"; import { SyntaxHighlightedPre } from "./SyntaxHighlightedPre"; +import { useSelector } from "react-redux"; +import { memoizedContextItemsSelector } from "../../redux/slices/stateSlice"; +import { ctxItemToRifWithContents } from "core/commands/util"; const StyledMarkdown = styled.div<{ fontSize?: number; @@ -29,6 +32,7 @@ const StyledMarkdown = styled.div<{ overflow-x: scroll; overflow-y: hidden; + margin: 10px 0; padding: 6px 8px; } @@ -82,7 +86,7 @@ interface StyledMarkdownPreviewProps { const HLJS_LANGUAGE_CLASSNAME_PREFIX = "language-"; -const getLanuageFromClassName = (className: any): string | null => { +function getLanuageFromClassName(className: any): string | null { if (!className || typeof className !== "string") { return null; } @@ -93,11 +97,27 @@ const getLanuageFromClassName = (className: any): string | null => { ?.split("-")[1]; return language; -}; +} + +function getCodeChildrenContent(children: any) { + if (typeof children === "string") { + return children; + } else if ( + Array.isArray(children) && + children.length > 0 && + typeof children[0] === "string" + ) { + return children[0]; + } + + return undefined; +} const StyledMarkdownPreview = memo(function StyledMarkdownPreview( props: StyledMarkdownPreviewProps, ) { + const contextItems = useSelector(memoizedContextItemsSelector); + const [reactContent, setMarkdownSource] = useRemark({ remarkPlugins: [ remarkMath, @@ -167,15 +187,18 @@ const StyledMarkdownPreview = memo(function StyledMarkdownPreview( ); }, code: ({ node, ...codeProps }) => { - if ( - codeProps.className?.split(" ").includes("hljs") || - codeProps.children?.length > 1 - ) { - return {codeProps.children}; - } - return ( - {codeProps.children} + const content = getCodeChildrenContent(codeProps.children); + + const ctxItem = contextItems.find((ctxItem) => + ctxItem.uri?.value.includes(content), ); + + if (ctxItem) { + const rif = ctxItemToRifWithContents(ctxItem); + return ; + } + + return {codeProps.children}; }, }, }, diff --git a/gui/src/hooks/useChatHandler.ts b/gui/src/hooks/useChatHandler.ts index 9aff5dc79..655cfce96 100644 --- a/gui/src/hooks/useChatHandler.ts +++ b/gui/src/hooks/useChatHandler.ts @@ -230,6 +230,10 @@ function useChatHandler(dispatch: Dispatch, ideMessenger: IIdeMessenger) { itemId: currentFilePath, providerTitle: "file", }, + uri: { + type: "file", + value: currentFilePath, + }, }); } } From 526fb7fa9388292475b1b4d3c264cac4293f8483 Mon Sep 17 00:00:00 2001 From: Nate Date: Thu, 26 Sep 2024 21:06:28 -0700 Subject: [PATCH 236/268] rename acc to replacements --- core/edit/lazy/deterministic.ts | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/core/edit/lazy/deterministic.ts b/core/edit/lazy/deterministic.ts index aa03c086b..3fd4ffe73 100644 --- a/core/edit/lazy/deterministic.ts +++ b/core/edit/lazy/deterministic.ts @@ -135,10 +135,10 @@ export async function deterministicApplyLazyEdit( } } - const acc: AstReplacements = []; - findLazyBlockReplacements(oldTree.rootNode, newTree.rootNode, acc); + const replacements: AstReplacements = []; + findLazyBlockReplacements(oldTree.rootNode, newTree.rootNode, replacements); - const newFullFile = reconstructNewFile(oldFile, newLazyFile, acc); + const newFullFile = reconstructNewFile(oldFile, newLazyFile, replacements); const diff = myersDiff(oldFile, newFullFile); // If the diff is too messy and seems likely borked, we fall back to LLM strategy @@ -204,7 +204,7 @@ function nodesAreExact(a: Parser.SyntaxNode, b: Parser.SyntaxNode): boolean { function findLazyBlockReplacements( oldNode: Parser.SyntaxNode, newNode: Parser.SyntaxNode, - acc: AstReplacements, + replacements: AstReplacements, ): void { // Base case if (nodesAreExact(oldNode, newNode)) { @@ -254,7 +254,7 @@ function findLazyBlockReplacements( } // then recurse at the match - findLazyBlockReplacements(L, rightChildren[0], acc); + findLazyBlockReplacements(L, rightChildren[0], replacements); // then consume L and R leftChildren.shift(); @@ -263,7 +263,7 @@ function findLazyBlockReplacements( // Exit "lazy mode" if (isLazy) { // Record the replacement lines - acc.push({ + replacements.push({ nodeToReplace: currentLazyBlockNode!, replacementNodes: [...currentLazyBlockReplacementNodes], }); @@ -275,7 +275,7 @@ function findLazyBlockReplacements( } if (isLazy) { - acc.push({ + replacements.push({ nodeToReplace: currentLazyBlockNode!, replacementNodes: [...currentLazyBlockReplacementNodes, ...leftChildren], }); @@ -284,7 +284,7 @@ function findLazyBlockReplacements( // Cut out any extraneous lazy blocks for (const R of rightChildren) { if (isLazyBlock(R)) { - acc.push({ + replacements.push({ nodeToReplace: R, replacementNodes: [], }); From 14523ecbad36faa0e9e66f9ed6a9c068e32bd937 Mon Sep 17 00:00:00 2001 From: Nate Date: Thu, 26 Sep 2024 21:06:37 -0700 Subject: [PATCH 237/268] improve instructions for lazy comment --- core/llm/constructMessages.ts | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/core/llm/constructMessages.ts b/core/llm/constructMessages.ts index d339134e3..13d538be8 100644 --- a/core/llm/constructMessages.ts +++ b/core/llm/constructMessages.ts @@ -5,9 +5,10 @@ const SYSTEM_MESSAGE = `When generating new code: 1. Always produce a single code block. 2. Never separate the code into multiple code blocks. 3. Only include the code that is being added. -4. Replace existing code with a "lazy" block like this: "// ... existing code ..." -5. You must always provide 1-2 lines of context above and below a "lazy" block -6. If the user submits a code block that contains a filename in the language specifier, always include the filename in any code block you generate based on that file. The filename should be on the same line as the language specifier in your code block. +4. Replace existing code with a "lazy" comment like this: "// ... existing code ..." +5. The "lazy" comment must always be a valid comment in the current context (e.g. "" for HTML, "// ... existing code ..." for JavaScript, "{/* ... existing code */}" for TSX, etc.) +6. You must always provide 1-2 lines of context above and below a "lazy" comment +7. If the user submits a code block that contains a filename in the language specifier, always include the filename in any code block you generate based on that file. The filename should be on the same line as the language specifier in your code block. Example 1: Input: From dc7bbb027d182621aed4cafb9583d58952bff683 Mon Sep 17 00:00:00 2001 From: DongjaJ Date: Fri, 27 Sep 2024 18:57:43 +0900 Subject: [PATCH 238/268] Revert "fix: modify docs Next Page link" This reverts commit 10072575d593e46bd8a7b7bda125978c306a1a9c. --- docs/docs/actions/how-to-use-it.md | 1 - docs/docs/autocomplete/how-to-use-it.md | 1 - docs/docs/chat/how-to-use-it.md | 1 - docs/docs/edit/how-to-use-it.md | 1 - docs/docs/getting-started/install.md | 1 - 5 files changed, 5 deletions(-) diff --git a/docs/docs/actions/how-to-use-it.md b/docs/docs/actions/how-to-use-it.md index 026f45d74..cffc0d65d 100644 --- a/docs/docs/actions/how-to-use-it.md +++ b/docs/docs/actions/how-to-use-it.md @@ -4,7 +4,6 @@ description: How to use Actions sidebar_label: How to use it keywords: [how, slash, commands, prompt, right click, quick fix, debug, action] sidebar_position: 1 -pagination_next: actions/model-setup --- ![actions](/img/actions.gif) diff --git a/docs/docs/autocomplete/how-to-use-it.md b/docs/docs/autocomplete/how-to-use-it.md index 2cfd470e6..92a3db76e 100644 --- a/docs/docs/autocomplete/how-to-use-it.md +++ b/docs/docs/autocomplete/how-to-use-it.md @@ -4,7 +4,6 @@ description: Autocomplete \- how to use it sidebar_label: How to use it keywords: [how] sidebar_position: 1 -pagination_next: autocomplete/model-setup --- ![autocomplete](/img/autocomplete.gif) diff --git a/docs/docs/chat/how-to-use-it.md b/docs/docs/chat/how-to-use-it.md index 754ef12c8..53cd85d17 100644 --- a/docs/docs/chat/how-to-use-it.md +++ b/docs/docs/chat/how-to-use-it.md @@ -4,7 +4,6 @@ description: How to use Chat sidebar_label: How to use it keywords: [how, use, chat] sidebar_position: 1 -pagination_next: chat/model-setup --- ![chat](/img/chat.gif) diff --git a/docs/docs/edit/how-to-use-it.md b/docs/docs/edit/how-to-use-it.md index f49e4134a..ac6f2ed4b 100644 --- a/docs/docs/edit/how-to-use-it.md +++ b/docs/docs/edit/how-to-use-it.md @@ -4,7 +4,6 @@ sidebar_position: 1 sidebar_label: How to use it description: How to use Edit keywords: [edit, cmd l, use] -pagination_next: edit/model-setup --- ![edit](/img/edit.gif) diff --git a/docs/docs/getting-started/install.md b/docs/docs/getting-started/install.md index d37e73e39..da04e8468 100644 --- a/docs/docs/getting-started/install.md +++ b/docs/docs/getting-started/install.md @@ -2,7 +2,6 @@ title: Install description: The open-source AI code assistant for developers keywords: [install, installation, getting started, vs code, jetbrains] -pagination_next: getting-started/overview --- ## VS Code From f4170bbb76080e755070d7aed5520b309b2c9203 Mon Sep 17 00:00:00 2001 From: Lukas Kreussel <65088241+LLukas22@users.noreply.github.com> Date: Fri, 27 Sep 2024 14:56:24 +0200 Subject: [PATCH 239/268] Falback to `file://` path --- core/config/load.ts | 15 ++++++++++++++- 1 file changed, 14 insertions(+), 1 deletion(-) diff --git a/core/config/load.ts b/core/config/load.ts index 95fc73053..4388d94b0 100644 --- a/core/config/load.ts +++ b/core/config/load.ts @@ -595,7 +595,20 @@ async function loadFullConfigNode( try { // Try config.ts first const configJsPath = getConfigJsPath(); - const module = await import(configJsPath); + let module: any; + + try { + module = await import(configJsPath); + } catch (e) { + console.log(e) + console.log("Could not load config.ts as absolute path, retrying as file url ..."); + try { + module = await import(`file://${configJsPath}`); + } catch (e) { + throw new Error("Could not load config.ts as file url either", { cause: e }); + } + } + if (typeof require !== "undefined") { delete require.cache[require.resolve(configJsPath)]; } From 360cf9ee31553f0271d3b5b402cdd94a025cc651 Mon Sep 17 00:00:00 2001 From: DongjaJ Date: Sat, 28 Sep 2024 00:38:03 +0900 Subject: [PATCH 240/268] docs: remove link attribute in docsSidebar --- docs/sidebars.js | 20 -------------------- 1 file changed, 20 deletions(-) diff --git a/docs/sidebars.js b/docs/sidebars.js index 196a6c832..755d7f720 100644 --- a/docs/sidebars.js +++ b/docs/sidebars.js @@ -8,10 +8,6 @@ const sidebars = { type: "category", label: "Getting started", collapsed: false, - link: { - type: "doc", - id: "getting-started/install", - }, items: [ { type: "autogenerated", @@ -22,10 +18,6 @@ const sidebars = { { type: "category", label: "Chat", - link: { - type: "doc", - id: "chat/how-to-use-it", - }, items: [ { type: "autogenerated", @@ -36,10 +28,6 @@ const sidebars = { { type: "category", label: "Autocomplete", - link: { - type: "doc", - id: "autocomplete/how-to-use-it", - }, items: [ { type: "autogenerated", @@ -50,10 +38,6 @@ const sidebars = { { type: "category", label: "Edit", - link: { - type: "doc", - id: "edit/how-to-use-it", - }, items: [ { type: "autogenerated", @@ -64,10 +48,6 @@ const sidebars = { { type: "category", label: "Actions", - link: { - type: "doc", - id: "actions/how-to-use-it", - }, items: [ { type: "autogenerated", From 937200130820a7038119385adb8d1b0f8e9f09a2 Mon Sep 17 00:00:00 2001 From: Nate Date: Fri, 27 Sep 2024 08:53:50 -0700 Subject: [PATCH 241/268] update since-build for intellij --- extensions/intellij/src/main/resources/META-INF/plugin.xml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/extensions/intellij/src/main/resources/META-INF/plugin.xml b/extensions/intellij/src/main/resources/META-INF/plugin.xml index ada642dac..52111bc83 100644 --- a/extensions/intellij/src/main/resources/META-INF/plugin.xml +++ b/extensions/intellij/src/main/resources/META-INF/plugin.xml @@ -5,7 +5,8 @@ continue-dev com.intellij.modules.platform com.intellij.modules.json - + + From 3cc16994a835da7b8d8a193aa6635913ace25f30 Mon Sep 17 00:00:00 2001 From: Test Date: Fri, 27 Sep 2024 09:15:51 -0700 Subject: [PATCH 242/268] gui: improve missing api key text --- .vscode/launch.json | 2 +- gui/src/components/modelSelection/ModelSelect.tsx | 15 ++++++++------- 2 files changed, 9 insertions(+), 8 deletions(-) diff --git a/.vscode/launch.json b/.vscode/launch.json index f5c81180f..896793040 100644 --- a/.vscode/launch.json +++ b/.vscode/launch.json @@ -12,7 +12,7 @@ "cwd": "${workspaceFolder}/extensions/vscode", "args": [ // Pass a directory to manually test in - "${workspaceFolder}/gui", + "${workspaceFolder}/manual-testing-sandbox", "${workspaceFolder}/manual-testing-sandbox/test.js", "--extensionDevelopmentPath=${workspaceFolder}/extensions/vscode" ], diff --git a/gui/src/components/modelSelection/ModelSelect.tsx b/gui/src/components/modelSelection/ModelSelect.tsx index 553e440b3..7e0e471c2 100644 --- a/gui/src/components/modelSelection/ModelSelect.tsx +++ b/gui/src/components/modelSelection/ModelSelect.tsx @@ -192,7 +192,14 @@ function ModelOption({
- {option.title} + + {option.title} + {showMissingApiKeyMsg && ( + + (Missing API key) + + )} +
@@ -201,12 +208,6 @@ function ModelOption({ )}
- - {showMissingApiKeyMsg && ( - - Missing API key - - )}
); From 3e8e29e8f2ce18e138df64441e436d3a07ffa45e Mon Sep 17 00:00:00 2001 From: Test Date: Fri, 27 Sep 2024 09:20:19 -0700 Subject: [PATCH 243/268] fix: remove deugger --- gui/src/components/markdown/FilenameLink.tsx | 1 - 1 file changed, 1 deletion(-) diff --git a/gui/src/components/markdown/FilenameLink.tsx b/gui/src/components/markdown/FilenameLink.tsx index 1ef434a7e..6eea1ae73 100644 --- a/gui/src/components/markdown/FilenameLink.tsx +++ b/gui/src/components/markdown/FilenameLink.tsx @@ -12,7 +12,6 @@ function FilenameLink({ rif }: FilenameLinkProps) { const ideMessenger = useContext(IdeMessengerContext); function onClick() { - debugger; ideMessenger.post("showLines", { filepath: rif.filepath, startLine: rif.range.start.line, From 2a4a42dd634682f8785b8521b36b4436d52f4c24 Mon Sep 17 00:00:00 2001 From: Test Date: Fri, 27 Sep 2024 12:01:55 -0700 Subject: [PATCH 244/268] gui: update more page --- gui/src/App.tsx | 6 +- gui/src/components/Footer.tsx | 77 +++++++ gui/src/components/Layout.tsx | 55 +---- gui/src/components/ProfileSwitcher.tsx | 62 ++---- .../components/dialogs/KeyboardShortcuts.tsx | 6 +- .../loaders/IndexingProgressBar.tsx | 12 +- .../components/mainInput/ContextItemsPeek.tsx | 1 - .../components/markdown/CodeBlockToolbar.tsx | 13 +- .../markdown/CodeSnippetPreview.tsx | 10 +- .../components/modelSelection/ModelSelect.tsx | 2 +- gui/src/pages/more.tsx | 209 +++++++++--------- gui/src/pages/stats.tsx | 12 +- 12 files changed, 226 insertions(+), 239 deletions(-) create mode 100644 gui/src/components/Footer.tsx diff --git a/gui/src/App.tsx b/gui/src/App.tsx index 9cf442727..fdb481e5a 100644 --- a/gui/src/App.tsx +++ b/gui/src/App.tsx @@ -12,7 +12,7 @@ import GUI from "./pages/gui"; import History from "./pages/history"; import MigrationPage from "./pages/migration"; import MonacoPage from "./pages/monaco"; -import { default as More, default as MorePage } from "./pages/more"; +import { default as MorePage } from "./pages/More"; import SettingsPage from "./pages/settings"; import Stats from "./pages/stats"; @@ -38,10 +38,6 @@ const router = createMemoryRouter([ path: "/stats", element: , }, - { - path: "/help", - element: , - }, { path: "/settings", element: , diff --git a/gui/src/components/Footer.tsx b/gui/src/components/Footer.tsx new file mode 100644 index 000000000..ff0966b50 --- /dev/null +++ b/gui/src/components/Footer.tsx @@ -0,0 +1,77 @@ +import { + Cog6ToothIcon, + EllipsisHorizontalCircleIcon, +} from "@heroicons/react/24/outline"; +import { FREE_TRIAL_LIMIT_REQUESTS } from "../util/freeTrial"; +import ProgressBar from "./loaders/ProgressBar"; +import ProfileSwitcher from "./ProfileSwitcher"; +import ButtonWithTooltip from "./ButtonWithTooltip"; +import { useSelector } from "react-redux"; +import { defaultModelSelector } from "../redux/selectors/modelSelectors"; +import { useNavigate } from "react-router-dom"; +import { useContext } from "react"; +import { IdeMessengerContext } from "../context/IdeMessenger"; +import { RootState } from "../redux/store"; + +function Footer() { + const navigate = useNavigate(); + const defaultModel = useSelector(defaultModelSelector); + const ideMessenger = useContext(IdeMessengerContext); + const selectedProfileId = useSelector( + (store: RootState) => store.state.selectedProfileId, + ); + + function onClickMore() { + if (location.pathname === "/more") { + navigate("/"); + } else { + navigate("/more"); + } + } + + function onClickSettings() { + if (selectedProfileId === "local") { + ideMessenger.post("openConfigJson", undefined); + } else { + ideMessenger.post( + "openUrl", + `http://app.continue.dev/workspaces/${selectedProfileId}/config`, + ); + } + } + + return ( +
+
+ {defaultModel?.provider === "free-trial" ? ( + + ) : ( + + )} +
+ +
+ + + + + + + +
+
+ ); +} + +export default Footer; diff --git a/gui/src/components/Layout.tsx b/gui/src/components/Layout.tsx index d012194a3..7eda88c9f 100644 --- a/gui/src/components/Layout.tsx +++ b/gui/src/components/Layout.tsx @@ -1,4 +1,3 @@ -import { EllipsisHorizontalCircleIcon } from "@heroicons/react/24/outline"; import { useContext, useEffect } from "react"; import { useDispatch, useSelector } from "react-redux"; import { Outlet, useLocation, useNavigate } from "react-router-dom"; @@ -11,15 +10,11 @@ import { } from "."; import { IdeMessengerContext } from "../context/IdeMessenger"; import { useWebviewListener } from "../hooks/useWebviewListener"; -import { defaultModelSelector } from "../redux/selectors/modelSelectors"; import { RootState } from "../redux/store"; import { getFontSize, isMetaEquivalentKeyPressed } from "../util"; -import { FREE_TRIAL_LIMIT_REQUESTS } from "../util/freeTrial"; import { getLocalStorage, setLocalStorage } from "../util/localStorage"; import TextDialog from "./dialogs"; -import ProgressBar from "./loaders/ProgressBar"; import PostHogPageView from "./PosthogPageView"; -import ProfileSwitcher from "./ProfileSwitcher"; import { isNewUserOnboarding } from "./OnboardingCard/utils"; import { useOnboardingCard } from "./OnboardingCard"; import { @@ -27,9 +22,7 @@ import { setBottomMessageCloseTimeout, setShowDialog, } from "../redux/slices/uiStateSlice"; -import ButtonWithTooltip from "./ButtonWithTooltip"; - -const FOOTER_HEIGHT = "1.8em"; +import Footer from "./Footer"; const LayoutTopDiv = styled(CustomScrollbarDiv)` height: 100%; @@ -65,22 +58,6 @@ const BottomMessageDiv = styled.div<{ displayOnBottom: boolean }>` max-height: 35vh; `; -const Footer = styled.footer` - display: flex; - flex-direction: row; - gap: 8px; - justify-content: right; - padding: 8px; - align-items: center; - width: calc(100% - 16px); - height: ${FOOTER_HEIGHT}; - background-color: transparent; - backdrop-filter: blur(12px); - border-top: 1px solid rgba(136, 136, 136, 0.3); - border-bottom: 1px solid rgba(136, 136, 136, 0.3); - overflow: hidden; -`; - const GridDiv = styled.div` display: grid; grid-template-rows: 1fr auto; @@ -99,7 +76,7 @@ const ModelDropdownPortalDiv = styled.div` const ProfileDropdownPortalDiv = styled.div` background-color: ${vscInputBackground}; position: relative; - margin-left: calc(100% - 190px); + margin-left: 8px; z-index: 200; font-size: ${getFontSize() - 2}; `; @@ -118,8 +95,6 @@ const Layout = () => { (state: RootState) => state.uiState.showDialog, ); - const defaultModel = useSelector(defaultModelSelector); - const bottomMessage = useSelector( (state: RootState) => state.uiState.bottomMessage, ); @@ -238,31 +213,7 @@ const Layout = () => { -
-
- {defaultModel?.provider === "free-trial" && ( - - )} -
- - - { - if (location.pathname === "/help") { - navigate("/"); - } else { - navigate("/help"); - } - }} - > - - -
+