From ce71e5e52e3025e6f022fe6909da6072f7af3222 Mon Sep 17 00:00:00 2001 From: Dallin Romney Date: Tue, 27 May 2025 11:56:53 -0700 Subject: [PATCH 01/91] don't accept tool call if auto accepting --- gui/src/hooks/ParallelListeners.tsx | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/gui/src/hooks/ParallelListeners.tsx b/gui/src/hooks/ParallelListeners.tsx index 155b91e2c..bc16970d9 100644 --- a/gui/src/hooks/ParallelListeners.tsx +++ b/gui/src/hooks/ParallelListeners.tsx @@ -3,7 +3,6 @@ import { IdeMessengerContext } from "../context/IdeMessenger"; import { EDIT_MODE_STREAM_ID } from "core/edit/constants"; import { FromCoreProtocol } from "core/protocol"; -import { useMainEditor } from "../components/mainInput/TipTapEditor"; import { initializeProfilePreferences, setOrganizations, @@ -52,7 +51,7 @@ function ParallelListeners() { selectCurrentToolCallApplyState, ); - const { mainEditor } = useMainEditor(); + const config = useAppSelector((store) => store.config.config); const handleConfigUpdate = useCallback( async (isInitial: boolean, result: FromCoreProtocol["configUpdate"][0]) => { @@ -252,7 +251,8 @@ function ParallelListeners() { if ( state.status === "closed" && currentToolCallApplyState && - currentToolCallApplyState.streamId === state.streamId + currentToolCallApplyState.streamId === state.streamId && + !config.ui?.autoAcceptEditToolDiffs ) { // const output: ContextItem = { // name: "Edit tool output", @@ -273,7 +273,7 @@ function ParallelListeners() { } } }, - [currentToolCallApplyState, history], + [currentToolCallApplyState, history, config], ); useEffect(() => { From 9b12377a9a9bdf0d958a0451beda14895767ff37 Mon Sep 17 00:00:00 2001 From: Dallin Romney Date: Tue, 27 May 2025 12:44:43 -0700 Subject: [PATCH 02/91] put isActive around llm calls --- gui/src/hooks/ParallelListeners.tsx | 8 +++---- gui/src/redux/thunks/edit.ts | 3 +++ gui/src/redux/thunks/streamNormalInput.ts | 6 ++++++ .../thunks/streamResponseAfterToolCall.ts | 21 ++++++++----------- gui/src/redux/thunks/streamThunkWrapper.tsx | 2 -- gui/src/util/clientTools/editImpl.ts | 4 ---- 6 files changed, 22 insertions(+), 22 deletions(-) diff --git a/gui/src/hooks/ParallelListeners.tsx b/gui/src/hooks/ParallelListeners.tsx index bc16970d9..155b91e2c 100644 --- a/gui/src/hooks/ParallelListeners.tsx +++ b/gui/src/hooks/ParallelListeners.tsx @@ -3,6 +3,7 @@ import { IdeMessengerContext } from "../context/IdeMessenger"; import { EDIT_MODE_STREAM_ID } from "core/edit/constants"; import { FromCoreProtocol } from "core/protocol"; +import { useMainEditor } from "../components/mainInput/TipTapEditor"; import { initializeProfilePreferences, setOrganizations, @@ -51,7 +52,7 @@ function ParallelListeners() { selectCurrentToolCallApplyState, ); - const config = useAppSelector((store) => store.config.config); + const { mainEditor } = useMainEditor(); const handleConfigUpdate = useCallback( async (isInitial: boolean, result: FromCoreProtocol["configUpdate"][0]) => { @@ -251,8 +252,7 @@ function ParallelListeners() { if ( state.status === "closed" && currentToolCallApplyState && - currentToolCallApplyState.streamId === state.streamId && - !config.ui?.autoAcceptEditToolDiffs + currentToolCallApplyState.streamId === state.streamId ) { // const output: ContextItem = { // name: "Edit tool output", @@ -273,7 +273,7 @@ function ParallelListeners() { } } }, - [currentToolCallApplyState, history, config], + [currentToolCallApplyState, history], ); useEffect(() => { diff --git a/gui/src/redux/thunks/edit.ts b/gui/src/redux/thunks/edit.ts index 4471cc0b4..6d379caf9 100644 --- a/gui/src/redux/thunks/edit.ts +++ b/gui/src/redux/thunks/edit.ts @@ -17,6 +17,7 @@ import { import { newSession, setActive, + setInactive, setIsInEdit, setMainEditorContentTrigger, setMode, @@ -61,6 +62,8 @@ export const streamEditThunk = createAsyncThunk< range: codeToEdit[0] as RangeInFileWithContents, }); + dispatch(setInactive()); + if (response.status === "error") { throw new Error(response.error); } diff --git a/gui/src/redux/thunks/streamNormalInput.ts b/gui/src/redux/thunks/streamNormalInput.ts index 8776aa1a6..cf68b3340 100644 --- a/gui/src/redux/thunks/streamNormalInput.ts +++ b/gui/src/redux/thunks/streamNormalInput.ts @@ -8,6 +8,8 @@ import { selectSelectedChatModel } from "../slices/configSlice"; import { abortStream, addPromptCompletionPair, + setActive, + setInactive, setToolGenerated, streamUpdate, } from "../slices/sessionSlice"; @@ -45,6 +47,8 @@ export const streamNormalInput = createAsyncThunk< }; } + dispatch(setActive()); + // Send request const gen = extra.ideMessenger.llmStreamChat( { @@ -68,6 +72,8 @@ export const streamNormalInput = createAsyncThunk< next = await gen.next(); } + dispatch(setInactive()); + // Attach prompt log and end thinking for reasoning models if (next.done && next.value) { dispatch(addPromptCompletionPair([next.value])); diff --git a/gui/src/redux/thunks/streamResponseAfterToolCall.ts b/gui/src/redux/thunks/streamResponseAfterToolCall.ts index 990723f7a..25ce6e8c5 100644 --- a/gui/src/redux/thunks/streamResponseAfterToolCall.ts +++ b/gui/src/redux/thunks/streamResponseAfterToolCall.ts @@ -4,11 +4,7 @@ import { constructMessages } from "core/llm/constructMessages"; import { renderContextItems } from "core/util/messageContent"; import { getBaseSystemMessage } from "../../util"; import { selectSelectedChatModel } from "../slices/configSlice"; -import { - addContextItemsAtIndex, - setActive, - streamUpdate, -} from "../slices/sessionSlice"; +import { addContextItemsAtIndex, streamUpdate } from "../slices/sessionSlice"; import { ThunkApiType } from "../store"; import { findToolCall } from "../util"; import { resetStateForNewMessage } from "./resetStateForNewMessage"; @@ -63,14 +59,14 @@ export const streamResponseAfterToolCall = createAsyncThunk< }), ); - dispatch(setActive()); - - const updatedHistory = getState().session.history; - const messageMode = getState().session.mode + const messageMode = getState().session.mode; + + const baseChatOrAgentSystemMessage = getBaseSystemMessage( + selectedChatModel, + messageMode, + ); - const baseChatOrAgentSystemMessage = getBaseSystemMessage(selectedChatModel, messageMode) - const messages = constructMessages( messageMode, [...updatedHistory], @@ -78,7 +74,8 @@ export const streamResponseAfterToolCall = createAsyncThunk< state.config.config.rules, ); - unwrapResult(await dispatch(streamNormalInput({ messages }))); + const result = await dispatch(streamNormalInput({ messages })); + unwrapResult(result); }), ); }, diff --git a/gui/src/redux/thunks/streamThunkWrapper.tsx b/gui/src/redux/thunks/streamThunkWrapper.tsx index 149782416..2a6eb99b0 100644 --- a/gui/src/redux/thunks/streamThunkWrapper.tsx +++ b/gui/src/redux/thunks/streamThunkWrapper.tsx @@ -1,6 +1,5 @@ import { createAsyncThunk } from "@reduxjs/toolkit"; import StreamErrorDialog from "../../pages/gui/StreamError"; -import { setInactive } from "../slices/sessionSlice"; import { setDialogMessage, setShowDialog } from "../slices/uiSlice"; import { ThunkApiType } from "../store"; import { cancelStream } from "./cancelStream"; @@ -22,7 +21,6 @@ export const streamThunkWrapper = createAsyncThunk< }), ); } - dispatch(setInactive()); } catch (e) { dispatch(cancelStream()); dispatch(setDialogMessage()); diff --git a/gui/src/util/clientTools/editImpl.ts b/gui/src/util/clientTools/editImpl.ts index 29aa5466c..ecb1ea11f 100644 --- a/gui/src/util/clientTools/editImpl.ts +++ b/gui/src/util/clientTools/editImpl.ts @@ -35,10 +35,6 @@ export const editToolImpl: ClientToolImpl = async ( if (out.status === "error") { throw new Error(out.error); } - return { - respondImmediately: true, - output: undefined, // TODO - feed edit results back to model (also in parallel listeners) - }; } return { respondImmediately: false, From 2cba8b9d8ed2db4bcc08e98ae8f35da1f0e0a770 Mon Sep 17 00:00:00 2001 From: Dallin Romney Date: Tue, 27 May 2025 12:46:03 -0700 Subject: [PATCH 03/91] cleanup --- gui/src/redux/thunks/streamResponseAfterToolCall.ts | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/gui/src/redux/thunks/streamResponseAfterToolCall.ts b/gui/src/redux/thunks/streamResponseAfterToolCall.ts index 25ce6e8c5..6ccd35c6f 100644 --- a/gui/src/redux/thunks/streamResponseAfterToolCall.ts +++ b/gui/src/redux/thunks/streamResponseAfterToolCall.ts @@ -74,8 +74,7 @@ export const streamResponseAfterToolCall = createAsyncThunk< state.config.config.rules, ); - const result = await dispatch(streamNormalInput({ messages })); - unwrapResult(result); + unwrapResult(await dispatch(streamNormalInput({ messages }))); }), ); }, From dd353c657166bc37f35b6c06e1b7144e672e6fc4 Mon Sep 17 00:00:00 2001 From: uinstinct <61635505+uinstinct@users.noreply.github.com> Date: Fri, 6 Jun 2025 12:11:09 +0530 Subject: [PATCH 04/91] speedup binary build - 70s to 20s --- binary/build.js | 174 ++++++++++------------------------ binary/utils/bundle-binary.js | 77 +++++++++++++++ binary/utils/copy-lancedb.js | 82 ++++++++++++++++ 3 files changed, 209 insertions(+), 124 deletions(-) create mode 100644 binary/utils/bundle-binary.js create mode 100644 binary/utils/copy-lancedb.js diff --git a/binary/build.js b/binary/build.js index b67afb94f..713ed6dc0 100644 --- a/binary/build.js +++ b/binary/build.js @@ -3,13 +3,10 @@ const fs = require("fs"); const path = require("path"); const ncp = require("ncp").ncp; const { rimrafSync } = require("rimraf"); -const { - validateFilesPresent, - execCmdSync, - autodetectPlatformAndArch, -} = require("../scripts/util"); +const { validateFilesPresent } = require("../scripts/util"); const { downloadRipgrep } = require("./utils/ripgrep"); const { ALL_TARGETS, TARGET_TO_LANCEDB } = require("./utils/targets"); +const { fork } = require("child_process"); const bin = path.join(__dirname, "bin"); const out = path.join(__dirname, "out"); @@ -29,8 +26,6 @@ function cleanSlate() { const esbuildOutputFile = "out/index.js"; let targets = [...ALL_TARGETS]; -const [currentPlatform, currentArch] = autodetectPlatformAndArch(); - const assetBackups = [ "node_modules/win-ca/lib/crypt32-ia32.node.bak", "node_modules/win-ca/lib/crypt32-x64.node.bak", @@ -78,67 +73,6 @@ async function buildWithEsbuild() { }); } -async function installNodeModuleInTempDirAndCopyToCurrent(packageName, toCopy) { - console.log(`Copying ${packageName} to ${toCopy}`); - // This is a way to install only one package without npm trying to install all the dependencies - // Create a temporary directory for installing the package - const adjustedName = packageName.replace(/@/g, "").replace("/", "-"); - const tempDir = path.join( - __dirname, - "tmp", - `continue-node_modules-${adjustedName}`, - ); - const currentDir = process.cwd(); - - // // Remove the dir we will be copying to - // rimrafSync(`node_modules/${toCopy}`); - - // // Ensure the temporary directory exists - fs.mkdirSync(tempDir, { recursive: true }); - - try { - // Move to the temporary directory - process.chdir(tempDir); - - // Initialize a new package.json and install the package - execCmdSync(`npm init -y && npm i -f ${packageName} --no-save`); - - console.log( - `Contents of: ${packageName}`, - fs.readdirSync(path.join(tempDir, "node_modules", toCopy)), - ); - - // Without this it seems the file isn't completely written to disk - await new Promise((resolve) => setTimeout(resolve, 2000)); - - // Copy the installed package back to the current directory - await new Promise((resolve, reject) => { - ncp( - path.join(tempDir, "node_modules", toCopy), - path.join(currentDir, "node_modules", toCopy), - { dereference: true }, - (error) => { - if (error) { - console.error( - `[error] Error copying ${packageName} package`, - error, - ); - reject(error); - } else { - resolve(); - } - }, - ); - }); - } finally { - // Clean up the temporary directory - // rimrafSync(tempDir); - - // Return to the original directory - process.chdir(currentDir); - } -} - /** * Downloads and installs ripgrep binaries for the specified target * @@ -181,16 +115,35 @@ async function downloadRipgrepForTarget(target, targetDir) { ), ); - console.log("[info] Downloading prebuilt lancedb..."); + const copyLanceDBPromises = []; for (const target of targets) { - if (TARGET_TO_LANCEDB[target]) { - console.log(`[info] Downloading for ${target}...`); - await installNodeModuleInTempDirAndCopyToCurrent( - TARGET_TO_LANCEDB[target], - "@lancedb", - ); + if (!TARGET_TO_LANCEDB[target]) { + continue; } + console.log(`[info] Downloading for ${target}...`); + const child = fork("./utils/copy-lancedb.js", { stdio: "inherit" }); + child.send({ + payload: { + packageName: TARGET_TO_LANCEDB[target], + toCopy: "@lancedb", + }, + }); + copyLanceDBPromises.push( + new Promise((resolve, reject) => { + child.on("message", (msg) => { + if (msg.error) { + reject(); + } + resolve(); + }); + }), + ); } + await Promise.all(copyLanceDBPromises).catch(() => { + console.error("[error] Failed to copy LanceDB"); + process.exit(1); + }); + console.log("[info] Copied all LanceDB"); // tree-sitter-wasm const treeSitterWasmsDir = path.join(out, "tree-sitter-wasms"); @@ -252,59 +205,31 @@ async function downloadRipgrepForTarget(target, targetDir) { "out/llamaTokenizerWorkerPool.mjs", ); + const buildBinaryPromises = []; console.log("[info] Building binaries with pkg..."); for (const target of targets) { - const targetDir = `bin/${target}`; - fs.mkdirSync(targetDir, { recursive: true }); - console.log(`[info] Building ${target}...`); - execCmdSync( - `npx pkg --no-bytecode --public-packages "*" --public --compress GZip pkgJson/${target} --out-path ${targetDir}`, + const child = fork("./utils/bundle-binary.js", { stdio: "inherit" }); + child.send({ + payload: { + target, + }, + }); + buildBinaryPromises.push( + new Promise((resolve, reject) => { + child.on("message", (msg) => { + if (msg.error) { + reject(); + } + resolve(); + }); + }), ); - - // Download and unzip prebuilt sqlite3 binary for the target - console.log("[info] Downloading node-sqlite3"); - - const downloadUrl = - // node-sqlite3 doesn't have a pre-built binary for win32-arm64 - target === "win32-arm64" - ? "https://continue-server-binaries.s3.us-west-1.amazonaws.com/win32-arm64/node_sqlite3.tar.gz" - : `https://github.com/TryGhost/node-sqlite3/releases/download/v5.1.7/sqlite3-v5.1.7-napi-v6-${ - target - }.tar.gz`; - - execCmdSync(`curl -L -o ${targetDir}/build.tar.gz ${downloadUrl}`); - execCmdSync(`cd ${targetDir} && tar -xvzf build.tar.gz`); - - // Copy to build directory for testing - try { - const [platform, arch] = target.split("-"); - if (platform === currentPlatform && arch === currentArch) { - fs.copyFileSync( - `${targetDir}/build/Release/node_sqlite3.node`, - `build/node_sqlite3.node`, - ); - } - } catch (error) { - console.log("[warn] Could not copy node_sqlite to build"); - console.log(error); - } - - fs.unlinkSync(`${targetDir}/build.tar.gz`); - - // copy @lancedb to bin folders - console.log("[info] Copying @lancedb files to bin"); - fs.copyFileSync( - `node_modules/${TARGET_TO_LANCEDB[target]}/index.node`, - `${targetDir}/index.node`, - ); - - // Download and install ripgrep for the target - await downloadRipgrepForTarget(target, targetDir); - - // Informs the `continue-binary` of where to look for node_sqlite3.node - // https://www.npmjs.com/package/bindings#:~:text=The%20searching%20for,file%20is%20found - fs.writeFileSync(`${targetDir}/package.json`, ""); } + await Promise.all(buildBinaryPromises).catch(() => { + console.error("[error] Failed to build binaries"); + process.exit(1); + }); + console.log("[info] All binaries built"); // Cleanup - this is needed when running locally fs.rmSync("out/package.json"); @@ -331,4 +256,5 @@ async function downloadRipgrepForTarget(target, targetDir) { validateFilesPresent(pathsToVerify); console.log("[info] Done!"); + process.exit(0); })(); diff --git a/binary/utils/bundle-binary.js b/binary/utils/bundle-binary.js new file mode 100644 index 000000000..a9ff0ead7 --- /dev/null +++ b/binary/utils/bundle-binary.js @@ -0,0 +1,77 @@ +/** + * @file Builds the binary for the specified target. It is intended to run as a child process. + */ +const { + execCmdSync, + autodetectPlatformAndArch, +} = require("../../scripts/util"); +const { downloadRipgrep } = require("./ripgrep"); +const { TARGET_TO_LANCEDB } = require("../utils/targets"); +const fs = require("fs"); + +/** + * @param {string} target the platform to build for + */ +async function bundleForBinary(target) { + const [currentPlatform, currentArch] = autodetectPlatformAndArch(); + + const targetDir = `bin/${target}`; + fs.mkdirSync(targetDir, { recursive: true }); + console.log(`[info] Building ${target}...`); + execCmdSync( + `npx pkg --no-bytecode --public-packages "*" --public --compress GZip pkgJson/${target} --out-path ${targetDir}`, + ); + + // Download and unzip prebuilt sqlite3 binary for the target + console.log("[info] Downloading node-sqlite3"); + + const downloadUrl = + // node-sqlite3 doesn't have a pre-built binary for win32-arm64 + target === "win32-arm64" + ? "https://continue-server-binaries.s3.us-west-1.amazonaws.com/win32-arm64/node_sqlite3.tar.gz" + : `https://github.com/TryGhost/node-sqlite3/releases/download/v5.1.7/sqlite3-v5.1.7-napi-v6-${ + target + }.tar.gz`; + + execCmdSync(`curl -L -o ${targetDir}/build.tar.gz ${downloadUrl}`); + execCmdSync(`cd ${targetDir} && tar -xvzf build.tar.gz`); + + // Copy to build directory for testing + try { + const [platform, arch] = target.split("-"); + if (platform === currentPlatform && arch === currentArch) { + fs.copyFileSync( + `${targetDir}/build/Release/node_sqlite3.node`, + `build/node_sqlite3.node`, + ); + } + } catch (error) { + console.log("[warn] Could not copy node_sqlite to build"); + console.log(error); + } + + fs.unlinkSync(`${targetDir}/build.tar.gz`); + + // copy @lancedb to bin folders + console.log("[info] Copying @lancedb files to bin"); + fs.copyFileSync( + `node_modules/${TARGET_TO_LANCEDB[target]}/index.node`, + `${targetDir}/index.node`, + ); + + // Download and install ripgrep for the target + await downloadRipgrep(target, targetDir); + + // Informs the `continue-binary` of where to look for node_sqlite3.node + // https://www.npmjs.com/package/bindings#:~:text=The%20searching%20for,file%20is%20found + fs.writeFileSync(`${targetDir}/package.json`, ""); +} + +process.on("message", (msg) => { + bundleForBinary(msg.payload.target) + .then(() => process.send({ done: true })) + .catch((error) => { + console.error(error); // show the error in the parent process + process.send({ error: true }); + }); +}); diff --git a/binary/utils/copy-lancedb.js b/binary/utils/copy-lancedb.js new file mode 100644 index 000000000..75c728020 --- /dev/null +++ b/binary/utils/copy-lancedb.js @@ -0,0 +1,82 @@ +/** + * @file Copy lancedb to the current directory. It is intended to run as a child process. + */ + +const fs = require("fs"); +const path = require("path"); +const ncp = require("ncp").ncp; +const { execCmdSync } = require("../../scripts/util"); + +async function installNodeModuleInTempDirAndCopyToCurrent(packageName, toCopy) { + console.log(`Copying ${packageName} to ${toCopy}`); + // This is a way to install only one package without npm trying to install all the dependencies + // Create a temporary directory for installing the package + const adjustedName = packageName.replace(/@/g, "").replace("/", "-"); + const tempDir = path.join( + __dirname, + "..", + "tmp", + `continue-node_modules-${adjustedName}`, + ); + const currentDir = process.cwd(); + + // // Remove the dir we will be copying to + // rimrafSync(`node_modules/${toCopy}`); + + // // Ensure the temporary directory exists + fs.mkdirSync(tempDir, { recursive: true }); + + try { + // Move to the temporary directory + process.chdir(tempDir); + + // Initialize a new package.json and install the package + execCmdSync(`npm init -y && npm i -f ${packageName} --no-save`); + + console.log( + `Contents of: ${packageName}`, + fs.readdirSync(path.join(tempDir, "node_modules", toCopy)), + ); + + // Without this it seems the file isn't completely written to disk + await new Promise((resolve) => setTimeout(resolve, 2000)); + + // Copy the installed package back to the current directory + await new Promise((resolve, reject) => { + ncp( + path.join(tempDir, "node_modules", toCopy), + path.join(currentDir, "node_modules", toCopy), + { dereference: true }, + (error) => { + if (error) { + console.error( + `[error] Error copying ${packageName} package`, + error, + ); + reject(error); + } else { + resolve(); + } + }, + ); + }); + } finally { + // Clean up the temporary directory + // rimrafSync(tempDir); + + // Return to the original directory + process.chdir(currentDir); + } +} + +process.on("message", (msg) => { + installNodeModuleInTempDirAndCopyToCurrent( + msg.payload.packageName, + msg.payload.toCopy, + ) + .then(() => process.send({ done: true })) + .catch((error) => { + console.error(error); // show the error in the parent process + process.send({ error: true }); + }); +}); From be9b32984c42d85b403aa7e7f5ce58bd19b37859 Mon Sep 17 00:00:00 2001 From: uinstinct <61635505+uinstinct@users.noreply.github.com> Date: Fri, 6 Jun 2025 12:29:40 +0530 Subject: [PATCH 05/91] parallel downloads for node-sqlite and ripgrep - reduction by 4 seconds --- binary/utils/bundle-binary.js | 74 +++++++++++++++++++---------------- 1 file changed, 40 insertions(+), 34 deletions(-) diff --git a/binary/utils/bundle-binary.js b/binary/utils/bundle-binary.js index a9ff0ead7..c218166cd 100644 --- a/binary/utils/bundle-binary.js +++ b/binary/utils/bundle-binary.js @@ -9,12 +9,46 @@ const { downloadRipgrep } = require("./ripgrep"); const { TARGET_TO_LANCEDB } = require("../utils/targets"); const fs = require("fs"); +async function downloadNodeSqlite(target, targetDir) { + return new Promise((resolve) => { + const [currentPlatform, currentArch] = autodetectPlatformAndArch(); + + // Download and unzip prebuilt sqlite3 binary for the target + console.log("[info] Downloading node-sqlite3"); + + const downloadUrl = + // node-sqlite3 doesn't have a pre-built binary for win32-arm64 + target === "win32-arm64" + ? "https://continue-server-binaries.s3.us-west-1.amazonaws.com/win32-arm64/node_sqlite3.tar.gz" + : `https://github.com/TryGhost/node-sqlite3/releases/download/v5.1.7/sqlite3-v5.1.7-napi-v6-${ + target + }.tar.gz`; + + execCmdSync(`curl -L -o ${targetDir}/build.tar.gz ${downloadUrl}`); + execCmdSync(`cd ${targetDir} && tar -xvzf build.tar.gz`); + + // Copy to build directory for testing + try { + const [platform, arch] = target.split("-"); + if (platform === currentPlatform && arch === currentArch) { + fs.copyFileSync( + `${targetDir}/build/Release/node_sqlite3.node`, + `build/node_sqlite3.node`, + ); + } + } catch (error) { + console.log("[warn] Could not copy node_sqlite to build"); + console.log(error); + } + fs.unlinkSync(`${targetDir}/build.tar.gz`); + resolve(); + }); +} + /** * @param {string} target the platform to build for */ async function bundleForBinary(target) { - const [currentPlatform, currentArch] = autodetectPlatformAndArch(); - const targetDir = `bin/${target}`; fs.mkdirSync(targetDir, { recursive: true }); console.log(`[info] Building ${target}...`); @@ -22,36 +56,6 @@ async function bundleForBinary(target) { `npx pkg --no-bytecode --public-packages "*" --public --compress GZip pkgJson/${target} --out-path ${targetDir}`, ); - // Download and unzip prebuilt sqlite3 binary for the target - console.log("[info] Downloading node-sqlite3"); - - const downloadUrl = - // node-sqlite3 doesn't have a pre-built binary for win32-arm64 - target === "win32-arm64" - ? "https://continue-server-binaries.s3.us-west-1.amazonaws.com/win32-arm64/node_sqlite3.tar.gz" - : `https://github.com/TryGhost/node-sqlite3/releases/download/v5.1.7/sqlite3-v5.1.7-napi-v6-${ - target - }.tar.gz`; - - execCmdSync(`curl -L -o ${targetDir}/build.tar.gz ${downloadUrl}`); - execCmdSync(`cd ${targetDir} && tar -xvzf build.tar.gz`); - - // Copy to build directory for testing - try { - const [platform, arch] = target.split("-"); - if (platform === currentPlatform && arch === currentArch) { - fs.copyFileSync( - `${targetDir}/build/Release/node_sqlite3.node`, - `build/node_sqlite3.node`, - ); - } - } catch (error) { - console.log("[warn] Could not copy node_sqlite to build"); - console.log(error); - } - - fs.unlinkSync(`${targetDir}/build.tar.gz`); - // copy @lancedb to bin folders console.log("[info] Copying @lancedb files to bin"); fs.copyFileSync( @@ -59,8 +63,10 @@ async function bundleForBinary(target) { `${targetDir}/index.node`, ); - // Download and install ripgrep for the target - await downloadRipgrep(target, targetDir); + const downloadPromises = []; + downloadPromises.push(downloadRipgrep(target, targetDir)); + downloadPromises.push(downloadNodeSqlite(target, targetDir)); + await Promise.all(downloadPromises); // Informs the `continue-binary` of where to look for node_sqlite3.node // https://www.npmjs.com/package/bindings#:~:text=The%20searching%20for,file%20is%20found From 8194ec700c0850cd8cbf61ab520da5d1cec96a1d Mon Sep 17 00:00:00 2001 From: uinstinct <61635505+uinstinct@users.noreply.github.com> Date: Fri, 6 Jun 2025 18:46:21 +0530 Subject: [PATCH 06/91] parallel npm installation of vscode and gui --- .../vscode/scripts/install-nodemodules.js | 41 +++++++++++++++ extensions/vscode/scripts/prepackage.js | 19 ++++--- extensions/vscode/scripts/utils.js | 50 ++++++++++++++----- 3 files changed, 87 insertions(+), 23 deletions(-) create mode 100644 extensions/vscode/scripts/install-nodemodules.js diff --git a/extensions/vscode/scripts/install-nodemodules.js b/extensions/vscode/scripts/install-nodemodules.js new file mode 100644 index 000000000..eb71f7223 --- /dev/null +++ b/extensions/vscode/scripts/install-nodemodules.js @@ -0,0 +1,41 @@ +/** + * @file Install node modules for the VS Code extension. This is intended to run as a child process. + */ + +const path = require("path"); + +const { execCmdSync } = require("../../../scripts/util"); + +/** + * @param {string} continueDir + */ +async function installNodeModulesInGui(continueDir) { + process.chdir(path.join(continueDir, "gui")); + execCmdSync("npm install"); + console.log("[info] npm install in gui completed"); +} + +async function installNodeModulesInVscode(continueDir) { + process.chdir(path.join(continueDir, "extensions", "vscode")); + execCmdSync("npm install"); + console.log("[info] npm install in extensions/vscode completed"); +} + +process.on("message", (msg) => { + const { continueDir, targetDir } = msg.payload; + if (targetDir === "gui") { + installNodeModulesInGui(continueDir) + .then(() => process.send({ done: true })) + .catch((error) => { + console.error(error); // show the error in the parent process + process.send({ error: true }); + }); + } else if (targetDir === "vscode") { + installNodeModulesInVscode(continueDir) + .then(() => process.send({ done: true })) + .catch((error) => { + console.error(error); // show the error in the parent process + process.send({ error: true }); + }); + } +}); diff --git a/extensions/vscode/scripts/prepackage.js b/extensions/vscode/scripts/prepackage.js index 01ef446c5..bda7833f6 100644 --- a/extensions/vscode/scripts/prepackage.js +++ b/extensions/vscode/scripts/prepackage.js @@ -14,6 +14,7 @@ const { copyConfigSchema, writeBuildTimestamp, generateConfigYamlSchema, + installNodeModules, } = require("./utils"); // Clear folders that will be packaged to ensure clean slate @@ -36,10 +37,10 @@ if (args[2] === "--target") { let os; let arch; -if (!target) { - [os, arch] = autodetectPlatformAndArch(); -} else { +if (target) { [os, arch] = target.split("-"); +} else { + [os, arch] = autodetectPlatformAndArch(); } if (os === "alpine") { @@ -82,13 +83,9 @@ void (async () => { writeBuildTimestamp(); // Install node_modules // - execCmdSync("npm install"); - console.log("[info] npm install in extensions/vscode completed"); + await installNodeModules(); - process.chdir("../../gui"); - - execCmdSync("npm install"); - console.log("[info] npm install in gui completed"); + process.chdir(path.join("__dirname", "..", "..", "..", "gui")); if (isInGitHubAction) { execCmdSync("npm run build"); @@ -465,7 +462,7 @@ void (async () => { ); // delete esbuild/bin because platform-specific @esbuild is downloaded - fs.rmdirSync(`out/node_modules/esbuild/bin`, { recursive: true }); + fs.rmSync(`out/node_modules/esbuild/bin`, { recursive: true }); console.log(`[info] Copied ${NODE_MODULES_TO_COPY.join(", ")}`); @@ -534,4 +531,6 @@ void (async () => { `out/node_modules/@lancedb/vectordb-${target}${isWinTarget ? "-msvc" : ""}${isLinuxTarget ? "-gnu" : ""}/index.node`, `out/node_modules/esbuild/lib/main.js`, ]); + + process.exit(0); })(); diff --git a/extensions/vscode/scripts/utils.js b/extensions/vscode/scripts/utils.js index 451fde407..b0b4966b1 100644 --- a/extensions/vscode/scripts/utils.js +++ b/extensions/vscode/scripts/utils.js @@ -1,7 +1,10 @@ +const { fork } = require("child_process"); const fs = require("fs"); -const ncp = require("ncp").ncp; const path = require("path"); + +const ncp = require("ncp").ncp; const { rimrafSync } = require("rimraf"); + const { validateFilesPresent, execCmdSync, @@ -77,20 +80,41 @@ function copyTokenizers() { console.log("[info] Copied llamaTokenizer"); } -function installNodeModules() { - // Make sure we are in the right directory - if (!process.cwd().endsWith("vscode")) { - process.chdir(path.join(continueDir, "extensions", "vscode")); - } +async function installNodeModules() { + const installVscodeChild = fork( + path.join(__dirname, "install-nodemodules.js"), + { + stdio: "inherit", + }, + ); + installVscodeChild.send({ payload: { continueDir, targetDir: "vscode" } }); - // Install node_modules // - execCmdSync("npm install"); - console.log("[info] npm install in extensions/vscode completed"); + const installGuiChild = fork(path.join(__dirname, "install-nodemodules.js"), { + stdio: "inherit", + }); + installGuiChild.send({ payload: { continueDir, targetDir: "gui" } }); - process.chdir(path.join(continueDir, "gui")); - - execCmdSync("npm install"); - console.log("[info] npm install in gui completed"); + await Promise.all([ + new Promise((resolve, reject) => { + installVscodeChild.on("message", (msg) => { + if (msg.error) { + reject(); + } + resolve(); + }); + }), + new Promise((resolve, reject) => { + installGuiChild.on("message", (msg) => { + if (msg.error) { + reject(); + } + resolve(); + }); + }), + ]).catch((error) => { + console.error(error); + process.exit(1); + }); } async function buildGui(isGhAction) { From c0700e1634dd96cf5d1743f8d52557cd0d1ddadb Mon Sep 17 00:00:00 2001 From: uinstinct <61635505+uinstinct@users.noreply.github.com> Date: Fri, 6 Jun 2025 19:08:53 +0530 Subject: [PATCH 07/91] parallel config yaml generation copying and installing node modules --- .../vscode/scripts/generate-copy-config.js | 83 ++++++++++++++++++ .../vscode/scripts/install-nodemodules.js | 15 ++-- extensions/vscode/scripts/prepackage.js | 20 +---- extensions/vscode/scripts/utils.js | 87 ++++++++----------- 4 files changed, 130 insertions(+), 75 deletions(-) create mode 100644 extensions/vscode/scripts/generate-copy-config.js diff --git a/extensions/vscode/scripts/generate-copy-config.js b/extensions/vscode/scripts/generate-copy-config.js new file mode 100644 index 000000000..16d8e1df6 --- /dev/null +++ b/extensions/vscode/scripts/generate-copy-config.js @@ -0,0 +1,83 @@ +/** + * @file Generate config.yaml file from template. Intended to run as a child process. + */ + +const fs = require("fs"); +const path = require("path"); + +const { execCmdSync } = require("../../../scripts/util"); + +const { continueDir } = require("./utils"); + +async function generateConfigYamlSchema() { + process.chdir(path.join(continueDir, "packages", "config-yaml")); + execCmdSync("npm install"); + execCmdSync("npm run build"); + execCmdSync("npm run generate-schema"); + fs.copyFileSync( + path.join("schema", "config-yaml-schema.json"), + path.join(continueDir, "extensions", "vscode", "config-yaml-schema.json"), + ); + console.log("[info] Generated config.yaml schema"); +} + +async function copyConfigSchema() { + process.chdir(path.join(continueDir, "extensions", "vscode")); + // Modify and copy for .continuerc.json + const schema = JSON.parse(fs.readFileSync("config_schema.json", "utf8")); + schema.$defs.SerializedContinueConfig.properties.mergeBehavior = { + type: "string", + 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.", + "x-intellij-html-description": + "

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.

", + }; + fs.writeFileSync("continue_rc_schema.json", JSON.stringify(schema, null, 2)); + + // Copy config schemas to intellij + fs.copyFileSync( + "config_schema.json", + path.join( + "..", + "intellij", + "src", + "main", + "resources", + "config_schema.json", + ), + ); + fs.copyFileSync( + "continue_rc_schema.json", + path.join( + "..", + "intellij", + "src", + "main", + "resources", + "continue_rc_schema.json", + ), + ); +} + +process.on("message", (msg) => { + const { operation } = msg.payload; + if (operation === "generate") { + generateConfigYamlSchema() + .then(() => process.send({ done: true })) + .catch((error) => { + console.error(error); // show the error in the parent process + process.send({ error: true }); + }); + } + if (operation === "copy") { + copyConfigSchema() + .then(() => process.send({ done: true })) + .catch((error) => { + console.error(error); // show the error in the parent process + process.send({ error: true }); + }); + } +}); diff --git a/extensions/vscode/scripts/install-nodemodules.js b/extensions/vscode/scripts/install-nodemodules.js index eb71f7223..cae222b39 100644 --- a/extensions/vscode/scripts/install-nodemodules.js +++ b/extensions/vscode/scripts/install-nodemodules.js @@ -6,32 +6,31 @@ const path = require("path"); const { execCmdSync } = require("../../../scripts/util"); -/** - * @param {string} continueDir - */ -async function installNodeModulesInGui(continueDir) { +const { continueDir } = require("./utils"); + +async function installNodeModulesInGui() { process.chdir(path.join(continueDir, "gui")); execCmdSync("npm install"); console.log("[info] npm install in gui completed"); } -async function installNodeModulesInVscode(continueDir) { +async function installNodeModulesInVscode() { process.chdir(path.join(continueDir, "extensions", "vscode")); execCmdSync("npm install"); console.log("[info] npm install in extensions/vscode completed"); } process.on("message", (msg) => { - const { continueDir, targetDir } = msg.payload; + const { targetDir } = msg.payload; if (targetDir === "gui") { - installNodeModulesInGui(continueDir) + installNodeModulesInGui() .then(() => process.send({ done: true })) .catch((error) => { console.error(error); // show the error in the parent process process.send({ error: true }); }); } else if (targetDir === "vscode") { - installNodeModulesInVscode(continueDir) + installNodeModulesInVscode() .then(() => process.send({ done: true })) .catch((error) => { console.error(error); // show the error in the parent process diff --git a/extensions/vscode/scripts/prepackage.js b/extensions/vscode/scripts/prepackage.js index bda7833f6..e57059261 100644 --- a/extensions/vscode/scripts/prepackage.js +++ b/extensions/vscode/scripts/prepackage.js @@ -11,10 +11,10 @@ const { } = require("../../../scripts/util/index"); const { - copyConfigSchema, writeBuildTimestamp, - generateConfigYamlSchema, installNodeModules, + continueDir, + generateAndCopyConfigYamlSchema, } = require("./utils"); // Clear folders that will be packaged to ensure clean slate @@ -68,24 +68,12 @@ const isMacTarget = target?.startsWith("darwin"); void (async () => { console.log("[info] Packaging extension for target ", target); - // Generate and copy over config-yaml-schema.json - generateConfigYamlSchema(); - - // Copy config schemas to intellij - copyConfigSchema(); - - if (!process.cwd().endsWith("vscode")) { - // This is sometimes run from root dir instead (e.g. in VS Code tasks) - process.chdir("extensions/vscode"); - } - // Make sure we have an initial timestamp file writeBuildTimestamp(); - // Install node_modules // - await installNodeModules(); + await Promise.all([generateAndCopyConfigYamlSchema(), installNodeModules()]); - process.chdir(path.join("__dirname", "..", "..", "..", "gui")); + process.chdir(path.join(continueDir, "gui")); if (isInGitHubAction) { execCmdSync("npm run build"); diff --git a/extensions/vscode/scripts/utils.js b/extensions/vscode/scripts/utils.js index b0b4966b1..422e6370b 100644 --- a/extensions/vscode/scripts/utils.js +++ b/extensions/vscode/scripts/utils.js @@ -13,57 +13,42 @@ const { const continueDir = path.join(__dirname, "..", "..", ".."); -function generateConfigYamlSchema() { - process.chdir(path.join(continueDir, "packages", "config-yaml")); - execCmdSync("npm install"); - execCmdSync("npm run build"); - execCmdSync("npm run generate-schema"); - fs.copyFileSync( - path.join("schema", "config-yaml-schema.json"), - path.join(continueDir, "extensions", "vscode", "config-yaml-schema.json"), +async function generateAndCopyConfigYamlSchema() { + // Generate and copy over config-yaml-schema.json + const generateConfigYamlChild = fork( + path.join(__dirname, "generate-copy-config.js"), + { + stdio: "inherit", + }, ); - console.log("[info] Generated config.yaml schema"); -} + generateConfigYamlChild.send({ payload: { operation: "generate" } }); -function copyConfigSchema() { - process.chdir(path.join(continueDir, "extensions", "vscode")); - // Modify and copy for .continuerc.json - const schema = JSON.parse(fs.readFileSync("config_schema.json", "utf8")); - schema.$defs.SerializedContinueConfig.properties.mergeBehavior = { - type: "string", - 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.", - "x-intellij-html-description": - "

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.

", - }; - fs.writeFileSync("continue_rc_schema.json", JSON.stringify(schema, null, 2)); + await new Promise((resolve, reject) => { + generateConfigYamlChild.on("message", (msg) => { + if (msg.error) { + reject(); + } + resolve(); + }); + }); // Copy config schemas to intellij - fs.copyFileSync( - "config_schema.json", - path.join( - "..", - "intellij", - "src", - "main", - "resources", - "config_schema.json", - ), - ); - fs.copyFileSync( - "continue_rc_schema.json", - path.join( - "..", - "intellij", - "src", - "main", - "resources", - "continue_rc_schema.json", - ), + const copyConfigSchemaChild = fork( + path.join(__dirname, "generate-copy-config.js"), + { + stdio: "inherit", + }, ); + copyConfigSchemaChild.send({ payload: { operation: "copy" } }); + + await new Promise((resolve, reject) => { + copyConfigSchemaChild.on("message", (msg) => { + if (msg.error) { + reject(); + } + resolve(); + }); + }); } function copyTokenizers() { @@ -87,12 +72,12 @@ async function installNodeModules() { stdio: "inherit", }, ); - installVscodeChild.send({ payload: { continueDir, targetDir: "vscode" } }); + installVscodeChild.send({ payload: { targetDir: "vscode" } }); const installGuiChild = fork(path.join(__dirname, "install-nodemodules.js"), { stdio: "inherit", }); - installGuiChild.send({ payload: { continueDir, targetDir: "gui" } }); + installGuiChild.send({ payload: { targetDir: "gui" } }); await Promise.all([ new Promise((resolve, reject) => { @@ -560,14 +545,14 @@ async function copyScripts() { // in the build function writeBuildTimestamp() { fs.writeFileSync( - "src/.buildTimestamp.ts", + path.join(continueDir, "extensions/vscode", "src/.buildTimestamp.ts"), `export default "${new Date().toISOString()}";\n`, ); } module.exports = { - generateConfigYamlSchema, - copyConfigSchema, + continueDir, + generateAndCopyConfigYamlSchema, installNodeModules, buildGui, copyOnnxRuntimeFromNodeModules, From 112bdcb0ef0d068663271111cf47cbd34f30751a Mon Sep 17 00:00:00 2001 From: uinstinct <61635505+uinstinct@users.noreply.github.com> Date: Fri, 6 Jun 2025 20:29:00 +0530 Subject: [PATCH 08/91] move copy-lancedb to root scripts/util --- binary/build.js | 39 +++---------------- package.json | 1 + .../utils => scripts/util}/copy-lancedb.js | 36 +++++++++++++++-- 3 files changed, 38 insertions(+), 38 deletions(-) rename {binary/utils => scripts/util}/copy-lancedb.js (76%) diff --git a/binary/build.js b/binary/build.js index 713ed6dc0..c88ac82cc 100644 --- a/binary/build.js +++ b/binary/build.js @@ -4,9 +4,12 @@ const path = require("path"); const ncp = require("ncp").ncp; const { rimrafSync } = require("rimraf"); const { validateFilesPresent } = require("../scripts/util"); -const { downloadRipgrep } = require("./utils/ripgrep"); const { ALL_TARGETS, TARGET_TO_LANCEDB } = require("./utils/targets"); const { fork } = require("child_process"); +const { + copyLanceDBFilePath, + copyLanceDB, +} = require("../scripts/util/copy-lancedb"); const bin = path.join(__dirname, "bin"); const out = path.join(__dirname, "out"); @@ -73,24 +76,6 @@ async function buildWithEsbuild() { }); } -/** - * Downloads and installs ripgrep binaries for the specified target - * - * @param {string} target - Target platform-arch (e.g., 'darwin-x64') - * @param {string} targetDir - Directory to install ripgrep to - * @returns {Promise} - */ -async function downloadRipgrepForTarget(target, targetDir) { - console.log(`[info] Downloading ripgrep for ${target}...`); - try { - await downloadRipgrep(target, targetDir); - console.log(`[info] Successfully installed ripgrep for ${target}`); - } catch (error) { - console.error(`[error] Failed to download ripgrep for ${target}:`, error); - throw error; - } -} - (async () => { if (esbuildOnly) { await buildWithEsbuild(); @@ -121,22 +106,8 @@ async function downloadRipgrepForTarget(target, targetDir) { continue; } console.log(`[info] Downloading for ${target}...`); - const child = fork("./utils/copy-lancedb.js", { stdio: "inherit" }); - child.send({ - payload: { - packageName: TARGET_TO_LANCEDB[target], - toCopy: "@lancedb", - }, - }); copyLanceDBPromises.push( - new Promise((resolve, reject) => { - child.on("message", (msg) => { - if (msg.error) { - reject(); - } - resolve(); - }); - }), + copyLanceDB(TARGET_TO_LANCEDB[target], "@lancedb"), ); } await Promise.all(copyLanceDBPromises).catch(() => { diff --git a/package.json b/package.json index 79e522af1..9100ad0cd 100644 --- a/package.json +++ b/package.json @@ -12,6 +12,7 @@ "@typescript-eslint/parser": "^7.8.0", "concurrently": "^9.1.2", "eslint-plugin-import": "^2.29.1", + "ncp": "^2.0.0", "prettier": "^3.3.3", "prettier-plugin-tailwindcss": "^0.6.8", "typescript": "^5.6.3" diff --git a/binary/utils/copy-lancedb.js b/scripts/util/copy-lancedb.js similarity index 76% rename from binary/utils/copy-lancedb.js rename to scripts/util/copy-lancedb.js index 75c728020..dc520a483 100644 --- a/binary/utils/copy-lancedb.js +++ b/scripts/util/copy-lancedb.js @@ -5,20 +5,20 @@ const fs = require("fs"); const path = require("path"); const ncp = require("ncp").ncp; -const { execCmdSync } = require("../../scripts/util"); +const { execCmdSync } = require("."); +const { fork } = require("child_process"); async function installNodeModuleInTempDirAndCopyToCurrent(packageName, toCopy) { console.log(`Copying ${packageName} to ${toCopy}`); // This is a way to install only one package without npm trying to install all the dependencies // Create a temporary directory for installing the package const adjustedName = packageName.replace(/@/g, "").replace("/", "-"); + const currentDir = process.cwd(); const tempDir = path.join( - __dirname, - "..", + currentDir, "tmp", `continue-node_modules-${adjustedName}`, ); - const currentDir = process.cwd(); // // Remove the dir we will be copying to // rimrafSync(`node_modules/${toCopy}`); @@ -80,3 +80,31 @@ process.on("message", (msg) => { process.send({ error: true }); }); }); + +/** + * invoke a child process to install and copy lancedb into node modules + * @param {string} packageName the lancedb platform to install and copy + * @param {string} toCopy directory to copy into inside node modules + */ +async function copyLanceDB(packageName, toCopy) { + const child = fork(__filename, { stdio: "inherit", cwd: process.cwd() }); + child.send({ + payload: { + packageName, + toCopy, + }, + }); + + return new Promise((resolve, reject) => { + child.on("message", (msg) => { + if (msg.error) { + reject(); + } + resolve(); + }); + }); +} + +module.exports = { + copyLanceDB, +}; From 37139c9e11b1d2e9dfa81bf531cb2bc96e7fb975 Mon Sep 17 00:00:00 2001 From: uinstinct <61635505+uinstinct@users.noreply.github.com> Date: Fri, 6 Jun 2025 20:39:03 +0530 Subject: [PATCH 09/91] parallel node sqlite and esbuild downloads --- extensions/vscode/.gitignore | 1 + .../scripts/install-copy-sqlite-esbuild.js | 107 ++++++++++++++++++ extensions/vscode/scripts/prepackage.js | 103 ++--------------- 3 files changed, 116 insertions(+), 95 deletions(-) create mode 100644 extensions/vscode/scripts/install-copy-sqlite-esbuild.js diff --git a/extensions/vscode/.gitignore b/extensions/vscode/.gitignore index 3ba3940c3..8b752d1ad 100644 --- a/extensions/vscode/.gitignore +++ b/extensions/vscode/.gitignore @@ -9,6 +9,7 @@ src/client exe bin assets +tmp gui/** diff --git a/extensions/vscode/scripts/install-copy-sqlite-esbuild.js b/extensions/vscode/scripts/install-copy-sqlite-esbuild.js new file mode 100644 index 000000000..502001649 --- /dev/null +++ b/extensions/vscode/scripts/install-copy-sqlite-esbuild.js @@ -0,0 +1,107 @@ +const { fork, execSync } = require("child_process"); +const fs = require("fs"); + +const { rimrafSync } = require("rimraf"); + +const { execCmdSync } = require("../../../scripts/util"); + +async function installAndCopySqlite(target) { + // Replace the installed with pre-built + console.log("[info] Downloading pre-built sqlite3 binary"); + rimrafSync("../../core/node_modules/sqlite3/build"); + const downloadUrl = { + "darwin-arm64": + "https://github.com/TryGhost/node-sqlite3/releases/download/v5.1.7/sqlite3-v5.1.7-napi-v6-darwin-arm64.tar.gz", + "linux-arm64": + "https://github.com/TryGhost/node-sqlite3/releases/download/v5.1.7/sqlite3-v5.1.7-napi-v3-linux-arm64.tar.gz", + // node-sqlite3 doesn't have a pre-built binary for win32-arm64 + "win32-arm64": + "https://continue-server-binaries.s3.us-west-1.amazonaws.com/win32-arm64/node_sqlite3.tar.gz", + }[target]; + execCmdSync( + `curl -L -o ../../core/node_modules/sqlite3/build.tar.gz ${downloadUrl}`, + ); + execCmdSync("cd ../../core/node_modules/sqlite3 && tar -xvzf build.tar.gz"); + fs.unlinkSync("../../core/node_modules/sqlite3/build.tar.gz"); +} + +async function installAndCopyEsbuild(target) { + // Download and unzip esbuild + console.log("[info] Downloading pre-built esbuild binary"); + rimrafSync("node_modules/@esbuild"); + fs.mkdirSync("node_modules/@esbuild", { recursive: true }); + execCmdSync( + `curl -o node_modules/@esbuild/esbuild.zip https://continue-server-binaries.s3.us-west-1.amazonaws.com/${target}/esbuild.zip`, + ); + execCmdSync("cd node_modules/@esbuild && unzip esbuild.zip"); + fs.unlinkSync("node_modules/@esbuild/esbuild.zip"); +} + +process.on("message", (msg) => { + const { operation, target } = msg.payload; + if (operation === "sqlite") { + installAndCopySqlite(target) + .then(() => process.send({ done: true })) + .catch((error) => { + console.error(error); // show the error in the parent process + process.send({ error: true }); + }); + } + if (operation === "esbuild") { + installAndCopyEsbuild(target) + .then(() => process.send({ done: true })) + .catch((error) => { + console.error(error); // show the error in the parent process + process.send({ error: true }); + }); + } +}); + +/** + * @param {string} target the platform to build for + */ +async function copySqlite(target) { + const child = fork(__filename, { stdio: "inherit", cwd: process.cwd() }); + child.send({ + payload: { + operation: "sqlite", + target, + }, + }); + + return new Promise((resolve, reject) => { + child.on("message", (msg) => { + if (msg.error) { + reject(); + } + resolve(); + }); + }); +} + +/** + * @param {string} target the platform to build for + */ +async function copyEsbuild(target) { + const child = fork(__filename, { stdio: "inherit", cwd: process.cwd() }); + child.send({ + payload: { + operation: "esbuild", + target, + }, + }); + + return new Promise((resolve, reject) => { + child.on("message", (msg) => { + if (msg.error) { + reject(); + } + resolve(); + }); + }); +} + +module.exports = { + copySqlite, + copyEsbuild, +}; diff --git a/extensions/vscode/scripts/prepackage.js b/extensions/vscode/scripts/prepackage.js index e57059261..43fe574f0 100644 --- a/extensions/vscode/scripts/prepackage.js +++ b/extensions/vscode/scripts/prepackage.js @@ -4,12 +4,14 @@ const path = require("path"); const ncp = require("ncp").ncp; const { rimrafSync } = require("rimraf"); +const { copyLanceDB } = require("../../../scripts/util/copy-lancedb"); const { validateFilesPresent, execCmdSync, autodetectPlatformAndArch, } = require("../../../scripts/util/index"); +const { copySqlite, copyEsbuild } = require("./install-copy-sqlite-esbuild"); const { writeBuildTimestamp, installNodeModules, @@ -265,68 +267,6 @@ void (async () => { ); }); - async function installNodeModuleInTempDirAndCopyToCurrent( - packageName, - toCopy, - ) { - console.log(`Copying ${packageName} to ${toCopy}`); - // This is a way to install only one package without npm trying to install all the dependencies - // Create a temporary directory for installing the package - const adjustedName = packageName.replace(/@/g, "").replace("/", "-"); - - const tempDir = `/tmp/continue-node_modules-${adjustedName}`; - const currentDir = process.cwd(); - - // Remove the dir we will be copying to - rimrafSync(`node_modules/${toCopy}`); - - // Ensure the temporary directory exists - fs.mkdirSync(tempDir, { recursive: true }); - - try { - // Move to the temporary directory - process.chdir(tempDir); - - // Initialize a new package.json and install the package - execCmdSync(`npm init -y && npm i -f ${packageName} --no-save`); - - console.log( - `Contents of: ${packageName}`, - fs.readdirSync(path.join(tempDir, "node_modules", toCopy)), - ); - - // Without this it seems the file isn't completely written to disk - // Ideally we validate file integrity in the validation at the end - await new Promise((resolve) => setTimeout(resolve, 2000)); - - // Copy the installed package back to the current directory - await new Promise((resolve, reject) => { - ncp( - path.join(tempDir, "node_modules", toCopy), - path.join(currentDir, "node_modules", toCopy), - { dereference: true }, - (error) => { - if (error) { - console.error( - `[error] Error copying ${packageName} package`, - error, - ); - reject(error); - } else { - resolve(); - } - }, - ); - }); - } finally { - // Clean up the temporary directory - // rimrafSync(tempDir); - - // Return to the original directory - process.chdir(currentDir); - } - } - // GitHub Actions doesn't support ARM, so we need to download pre-saved binaries // 02/07/25 - the above comment is out of date, there is now support for ARM runners on GitHub Actions if (isArmTarget) { @@ -340,41 +280,14 @@ void (async () => { "[info] Downloading pre-built lancedb binary: " + packageToInstall, ); - await installNodeModuleInTempDirAndCopyToCurrent( - packageToInstall, - "@lancedb", - ); - - // Replace the installed with pre-built - console.log("[info] Downloading pre-built sqlite3 binary"); - rimrafSync("../../core/node_modules/sqlite3/build"); - const downloadUrl = { - "darwin-arm64": - "https://github.com/TryGhost/node-sqlite3/releases/download/v5.1.7/sqlite3-v5.1.7-napi-v6-darwin-arm64.tar.gz", - "linux-arm64": - "https://github.com/TryGhost/node-sqlite3/releases/download/v5.1.7/sqlite3-v5.1.7-napi-v3-linux-arm64.tar.gz", - // node-sqlite3 doesn't have a pre-built binary for win32-arm64 - "win32-arm64": - "https://continue-server-binaries.s3.us-west-1.amazonaws.com/win32-arm64/node_sqlite3.tar.gz", - }[target]; - execCmdSync( - `curl -L -o ../../core/node_modules/sqlite3/build.tar.gz ${downloadUrl}`, - ); - execCmdSync("cd ../../core/node_modules/sqlite3 && tar -xvzf build.tar.gz"); - fs.unlinkSync("../../core/node_modules/sqlite3/build.tar.gz"); - - // Download and unzip esbuild - console.log("[info] Downloading pre-built esbuild binary"); - rimrafSync("node_modules/@esbuild"); - fs.mkdirSync("node_modules/@esbuild", { recursive: true }); - execCmdSync( - `curl -o node_modules/@esbuild/esbuild.zip https://continue-server-binaries.s3.us-west-1.amazonaws.com/${target}/esbuild.zip`, - ); - execCmdSync(`cd node_modules/@esbuild && unzip esbuild.zip`); - fs.unlinkSync("node_modules/@esbuild/esbuild.zip"); + await Promise.all([ + copyLanceDB(packageToInstall, "@lancedb"), + copySqlite(target), + copyEsbuild(target), + ]); } else { // Download esbuild from npm in tmp and copy over - console.log("npm installing esbuild binary"); + console.log("[info] npm installing esbuild binary"); await installNodeModuleInTempDirAndCopyToCurrent( "esbuild@0.17.19", "@esbuild", From e98307aafa83e62c07d49ce0c6abffbff3f9fc33 Mon Sep 17 00:00:00 2001 From: uinstinct <61635505+uinstinct@users.noreply.github.com> Date: Fri, 6 Jun 2025 21:08:33 +0530 Subject: [PATCH 10/91] download using node https over curl --- .../scripts/install-copy-sqlite-esbuild.js | 85 ++++++++++++++++++- extensions/vscode/scripts/prepackage.js | 4 +- 2 files changed, 83 insertions(+), 6 deletions(-) diff --git a/extensions/vscode/scripts/install-copy-sqlite-esbuild.js b/extensions/vscode/scripts/install-copy-sqlite-esbuild.js index 502001649..370876c7f 100644 --- a/extensions/vscode/scripts/install-copy-sqlite-esbuild.js +++ b/extensions/vscode/scripts/install-copy-sqlite-esbuild.js @@ -1,10 +1,85 @@ const { fork, execSync } = require("child_process"); const fs = require("fs"); +const https = require("https"); +const path = require("path"); const { rimrafSync } = require("rimraf"); const { execCmdSync } = require("../../../scripts/util"); +/** + * download a file using nodejs http + * @param {string} url + * @param {string} outputPath + * @param {number} maxRedirects + */ +async function downloadFile(url, outputPath, maxRedirects = 5) { + return new Promise((resolve, reject) => { + const downloadWithRedirects = (currentUrl, redirectCount = 0) => { + if (redirectCount > maxRedirects) { + return reject(new Error(`Too many redirects (${maxRedirects})`)); + } + + const request = https.get(currentUrl, (response) => { + if ( + response.statusCode >= 300 && + response.statusCode < 400 && + response.headers.location + ) { + return downloadWithRedirects( + response.headers.location, + redirectCount + 1, + ); + } + + if (response.statusCode !== 200) { + return reject( + new Error(`HTTP ${response.statusCode}: ${response.statusMessage}`), + ); + } + + const outputDir = path.dirname(outputPath); + if (!fs.existsSync(outputDir)) { + fs.mkdirSync(outputDir, { recursive: true }); + } + + const writeStream = fs.createWriteStream(outputPath); + + const totalSize = parseInt(response.headers["content-length"], 10); + let downloadedSize = 0; + + response.on("data", (chunk) => { + downloadedSize += chunk.length; + if (totalSize) { + const percent = ((downloadedSize / totalSize) * 100).toFixed(1); + process.stdout.write( + `\rDownloading: ${percent}% (${downloadedSize}/${totalSize} bytes)`, + ); + } + }); + + response.pipe(writeStream); + + writeStream.on("finish", () => { + console.log(`\nDownload completed: ${outputPath}`); + resolve(outputPath); + }); + + writeStream.on("error", reject); + response.on("error", reject); + }); + + request.on("error", reject); + request.setTimeout(30000, () => { + request.destroy(); + reject(new Error("Request timeout")); + }); + }; + + downloadWithRedirects(url); + }); +} + async function installAndCopySqlite(target) { // Replace the installed with pre-built console.log("[info] Downloading pre-built sqlite3 binary"); @@ -18,8 +93,9 @@ async function installAndCopySqlite(target) { "win32-arm64": "https://continue-server-binaries.s3.us-west-1.amazonaws.com/win32-arm64/node_sqlite3.tar.gz", }[target]; - execCmdSync( - `curl -L -o ../../core/node_modules/sqlite3/build.tar.gz ${downloadUrl}`, + await downloadFile( + downloadUrl, + "../../core/node_modules/sqlite3/build.tar.gz", ); execCmdSync("cd ../../core/node_modules/sqlite3 && tar -xvzf build.tar.gz"); fs.unlinkSync("../../core/node_modules/sqlite3/build.tar.gz"); @@ -30,8 +106,9 @@ async function installAndCopyEsbuild(target) { console.log("[info] Downloading pre-built esbuild binary"); rimrafSync("node_modules/@esbuild"); fs.mkdirSync("node_modules/@esbuild", { recursive: true }); - execCmdSync( - `curl -o node_modules/@esbuild/esbuild.zip https://continue-server-binaries.s3.us-west-1.amazonaws.com/${target}/esbuild.zip`, + await downloadFile( + `https://continue-server-binaries.s3.us-west-1.amazonaws.com/${target}/esbuild.zip`, + "node_modules/@esbuild/esbuild.zip", ); execCmdSync("cd node_modules/@esbuild && unzip esbuild.zip"); fs.unlinkSync("node_modules/@esbuild/esbuild.zip"); diff --git a/extensions/vscode/scripts/prepackage.js b/extensions/vscode/scripts/prepackage.js index 43fe574f0..6e72270e7 100644 --- a/extensions/vscode/scripts/prepackage.js +++ b/extensions/vscode/scripts/prepackage.js @@ -281,9 +281,9 @@ void (async () => { ); await Promise.all([ - copyLanceDB(packageToInstall, "@lancedb"), - copySqlite(target), copyEsbuild(target), + copySqlite(target), + copyLanceDB(packageToInstall, "@lancedb"), ]); } else { // Download esbuild from npm in tmp and copy over From 8d48cefc2e8fbd5cd011da4160a76b873875b88a Mon Sep 17 00:00:00 2001 From: uinstinct <61635505+uinstinct@users.noreply.github.com> Date: Fri, 6 Jun 2025 21:20:16 +0530 Subject: [PATCH 11/91] correct to copy-nodemodule.js --- binary/build.js | 7 ++----- extensions/vscode/scripts/prepackage.js | 9 +++------ scripts/util/{copy-lancedb.js => copy-nodemodule.js} | 8 ++++---- 3 files changed, 9 insertions(+), 15 deletions(-) rename scripts/util/{copy-lancedb.js => copy-nodemodule.js} (92%) diff --git a/binary/build.js b/binary/build.js index c88ac82cc..aa5fa5ffd 100644 --- a/binary/build.js +++ b/binary/build.js @@ -6,10 +6,7 @@ const { rimrafSync } = require("rimraf"); const { validateFilesPresent } = require("../scripts/util"); const { ALL_TARGETS, TARGET_TO_LANCEDB } = require("./utils/targets"); const { fork } = require("child_process"); -const { - copyLanceDBFilePath, - copyLanceDB, -} = require("../scripts/util/copy-lancedb"); +const { copyNodeModule } = require("../scripts/util/copy-nodemodule"); const bin = path.join(__dirname, "bin"); const out = path.join(__dirname, "out"); @@ -107,7 +104,7 @@ async function buildWithEsbuild() { } console.log(`[info] Downloading for ${target}...`); copyLanceDBPromises.push( - copyLanceDB(TARGET_TO_LANCEDB[target], "@lancedb"), + copyNodeModule(TARGET_TO_LANCEDB[target], "@lancedb"), ); } await Promise.all(copyLanceDBPromises).catch(() => { diff --git a/extensions/vscode/scripts/prepackage.js b/extensions/vscode/scripts/prepackage.js index 6e72270e7..ece5d91e5 100644 --- a/extensions/vscode/scripts/prepackage.js +++ b/extensions/vscode/scripts/prepackage.js @@ -4,7 +4,7 @@ const path = require("path"); const ncp = require("ncp").ncp; const { rimrafSync } = require("rimraf"); -const { copyLanceDB } = require("../../../scripts/util/copy-lancedb"); +const { copyNodeModule } = require("../../../scripts/util/copy-nodemodule"); const { validateFilesPresent, execCmdSync, @@ -283,15 +283,12 @@ void (async () => { await Promise.all([ copyEsbuild(target), copySqlite(target), - copyLanceDB(packageToInstall, "@lancedb"), + copyNodeModule(packageToInstall, "@lancedb"), ]); } else { // Download esbuild from npm in tmp and copy over console.log("[info] npm installing esbuild binary"); - await installNodeModuleInTempDirAndCopyToCurrent( - "esbuild@0.17.19", - "@esbuild", - ); + await copyNodeModule("esbuild@0.17.19", "@esbuild"); } console.log("[info] Copying sqlite node binding from core"); diff --git a/scripts/util/copy-lancedb.js b/scripts/util/copy-nodemodule.js similarity index 92% rename from scripts/util/copy-lancedb.js rename to scripts/util/copy-nodemodule.js index dc520a483..361e2d891 100644 --- a/scripts/util/copy-lancedb.js +++ b/scripts/util/copy-nodemodule.js @@ -82,11 +82,11 @@ process.on("message", (msg) => { }); /** - * invoke a child process to install and copy lancedb into node modules - * @param {string} packageName the lancedb platform to install and copy + * invoke a child process to install a node module into temporary directory and copy it over into node modules + * @param {string} packageName the module to install and copy * @param {string} toCopy directory to copy into inside node modules */ -async function copyLanceDB(packageName, toCopy) { +async function copyNodeModule(packageName, toCopy) { const child = fork(__filename, { stdio: "inherit", cwd: process.cwd() }); child.send({ payload: { @@ -106,5 +106,5 @@ async function copyLanceDB(packageName, toCopy) { } module.exports = { - copyLanceDB, + copyNodeModule, }; From cc21abf6c236906e475efb27e79a462366d47022 Mon Sep 17 00:00:00 2001 From: uinstinct <61635505+uinstinct@users.noreply.github.com> Date: Fri, 6 Jun 2025 21:27:21 +0530 Subject: [PATCH 12/91] update root package-lock --- package-lock.json | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/package-lock.json b/package-lock.json index 06f811afa..43530562e 100644 --- a/package-lock.json +++ b/package-lock.json @@ -8,6 +8,7 @@ "@typescript-eslint/parser": "^7.8.0", "concurrently": "^9.1.2", "eslint-plugin-import": "^2.29.1", + "ncp": "^2.0.0", "prettier": "^3.3.3", "prettier-plugin-tailwindcss": "^0.6.8", "typescript": "^5.6.3" @@ -2233,6 +2234,16 @@ "dev": true, "peer": true }, + "node_modules/ncp": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/ncp/-/ncp-2.0.0.tgz", + "integrity": "sha512-zIdGUrPRFTUELUvr3Gmc7KZ2Sw/h1PiVM0Af/oHB6zgnV1ikqSfRk+TOufi79aHYCW3NiOXmr1BP5nWbzojLaA==", + "dev": true, + "license": "MIT", + "bin": { + "ncp": "bin/ncp" + } + }, "node_modules/object-inspect": { "version": "1.13.2", "resolved": "https://registry.npmjs.org/object-inspect/-/object-inspect-1.13.2.tgz", From 6ca088fdae20e63559cbd377f4ea51b4ccc7dd58 Mon Sep 17 00:00:00 2001 From: uinstinct <61635505+uinstinct@users.noreply.github.com> Date: Fri, 6 Jun 2025 21:30:10 +0530 Subject: [PATCH 13/91] change hash to rebuild root node modules --- .github/workflows/pr_checks.yaml | 22 +++++++++++----------- 1 file changed, 11 insertions(+), 11 deletions(-) diff --git a/.github/workflows/pr_checks.yaml b/.github/workflows/pr_checks.yaml index 25a1b9a1e..a61958dea 100644 --- a/.github/workflows/pr_checks.yaml +++ b/.github/workflows/pr_checks.yaml @@ -24,7 +24,7 @@ jobs: id: root-cache with: path: node_modules - key: ${{ runner.os }}-root-node-modules-${{ hashFiles('package-lock.json') }} + key: ${{ runner.os }}-root-node-modules-${{ hashFiles('package-lock.json') }}-2 - name: Install root dependencies if: steps.root-cache.outputs.cache-hit != 'true' @@ -43,7 +43,7 @@ jobs: - uses: actions/cache@v4 with: path: node_modules - key: ${{ runner.os }}-root-node-modules-${{ hashFiles('package-lock.json') }} + key: ${{ runner.os }}-root-node-modules-${{ hashFiles('package-lock.json') }}-2 - name: Check code formatting with Prettier run: npx prettier --check "**/*.{js,jsx,ts,tsx,json,css,md}" --ignore-path .gitignore --ignore-path .prettierignore @@ -61,7 +61,7 @@ jobs: - uses: actions/cache@v4 with: path: node_modules - key: ${{ runner.os }}-root-node-modules-${{ hashFiles('package-lock.json') }} + key: ${{ runner.os }}-root-node-modules-${{ hashFiles('package-lock.json') }}-2 - uses: actions/cache@v4 id: config-yaml-cache @@ -88,7 +88,7 @@ jobs: - uses: actions/cache@v4 with: path: node_modules - key: ${{ runner.os }}-root-node-modules-${{ hashFiles('package-lock.json') }} + key: ${{ runner.os }}-root-node-modules-${{ hashFiles('package-lock.json') }}-2 - uses: actions/cache@v4 id: config-yaml-cache @@ -118,7 +118,7 @@ jobs: id: root-cache with: path: node_modules - key: ${{ runner.os }}-root-node-modules-${{ hashFiles('package-lock.json') }} + key: ${{ runner.os }}-root-node-modules-${{ hashFiles('package-lock.json') }}-2 - uses: actions/cache@v4 id: core-cache @@ -146,7 +146,7 @@ jobs: id: root-cache with: path: node_modules - key: ${{ runner.os }}-root-node-modules-${{ hashFiles('package-lock.json') }} + key: ${{ runner.os }}-root-node-modules-${{ hashFiles('package-lock.json') }}-2 - uses: actions/cache@v4 id: core-cache @@ -186,7 +186,7 @@ jobs: - uses: actions/cache@v4 with: path: node_modules - key: ${{ runner.os }}-root-node-modules-${{ hashFiles('package-lock.json') }} + key: ${{ runner.os }}-root-node-modules-${{ hashFiles('package-lock.json') }}-2 - uses: actions/cache@v4 with: @@ -229,7 +229,7 @@ jobs: - uses: actions/cache@v4 with: path: node_modules - key: ${{ runner.os }}-root-node-modules-${{ hashFiles('package-lock.json') }} + key: ${{ runner.os }}-root-node-modules-${{ hashFiles('package-lock.json') }}-2 - uses: actions/cache@v4 with: @@ -272,7 +272,7 @@ jobs: - uses: actions/cache@v4 with: path: node_modules - key: ${{ runner.os }}-root-node-modules-${{ hashFiles('package-lock.json') }} + key: ${{ runner.os }}-root-node-modules-${{ hashFiles('package-lock.json') }}-2 - uses: actions/cache@v4 with: @@ -320,7 +320,7 @@ jobs: - uses: actions/cache@v4 with: path: node_modules - key: ${{ runner.os }}-root-node-modules-${{ hashFiles('package-lock.json') }} + key: ${{ runner.os }}-root-node-modules-${{ hashFiles('package-lock.json') }}-2 - uses: actions/cache@v4 with: @@ -365,7 +365,7 @@ jobs: - uses: actions/cache@v4 with: path: node_modules - key: ${{ runner.os }}-root-node-modules-${{ hashFiles('package-lock.json') }} + key: ${{ runner.os }}-root-node-modules-${{ hashFiles('package-lock.json') }}-2 - uses: actions/cache@v4 with: From 18f1c67e20086bdb68cfb51ea4b4314106f491e0 Mon Sep 17 00:00:00 2001 From: uinstinct <61635505+uinstinct@users.noreply.github.com> Date: Fri, 6 Jun 2025 21:38:08 +0530 Subject: [PATCH 14/91] Revert "change hash to rebuild root node modules" This reverts commit 6ca088fdae20e63559cbd377f4ea51b4ccc7dd58. --- .github/workflows/pr_checks.yaml | 22 +++++++++++----------- 1 file changed, 11 insertions(+), 11 deletions(-) diff --git a/.github/workflows/pr_checks.yaml b/.github/workflows/pr_checks.yaml index a61958dea..25a1b9a1e 100644 --- a/.github/workflows/pr_checks.yaml +++ b/.github/workflows/pr_checks.yaml @@ -24,7 +24,7 @@ jobs: id: root-cache with: path: node_modules - key: ${{ runner.os }}-root-node-modules-${{ hashFiles('package-lock.json') }}-2 + key: ${{ runner.os }}-root-node-modules-${{ hashFiles('package-lock.json') }} - name: Install root dependencies if: steps.root-cache.outputs.cache-hit != 'true' @@ -43,7 +43,7 @@ jobs: - uses: actions/cache@v4 with: path: node_modules - key: ${{ runner.os }}-root-node-modules-${{ hashFiles('package-lock.json') }}-2 + key: ${{ runner.os }}-root-node-modules-${{ hashFiles('package-lock.json') }} - name: Check code formatting with Prettier run: npx prettier --check "**/*.{js,jsx,ts,tsx,json,css,md}" --ignore-path .gitignore --ignore-path .prettierignore @@ -61,7 +61,7 @@ jobs: - uses: actions/cache@v4 with: path: node_modules - key: ${{ runner.os }}-root-node-modules-${{ hashFiles('package-lock.json') }}-2 + key: ${{ runner.os }}-root-node-modules-${{ hashFiles('package-lock.json') }} - uses: actions/cache@v4 id: config-yaml-cache @@ -88,7 +88,7 @@ jobs: - uses: actions/cache@v4 with: path: node_modules - key: ${{ runner.os }}-root-node-modules-${{ hashFiles('package-lock.json') }}-2 + key: ${{ runner.os }}-root-node-modules-${{ hashFiles('package-lock.json') }} - uses: actions/cache@v4 id: config-yaml-cache @@ -118,7 +118,7 @@ jobs: id: root-cache with: path: node_modules - key: ${{ runner.os }}-root-node-modules-${{ hashFiles('package-lock.json') }}-2 + key: ${{ runner.os }}-root-node-modules-${{ hashFiles('package-lock.json') }} - uses: actions/cache@v4 id: core-cache @@ -146,7 +146,7 @@ jobs: id: root-cache with: path: node_modules - key: ${{ runner.os }}-root-node-modules-${{ hashFiles('package-lock.json') }}-2 + key: ${{ runner.os }}-root-node-modules-${{ hashFiles('package-lock.json') }} - uses: actions/cache@v4 id: core-cache @@ -186,7 +186,7 @@ jobs: - uses: actions/cache@v4 with: path: node_modules - key: ${{ runner.os }}-root-node-modules-${{ hashFiles('package-lock.json') }}-2 + key: ${{ runner.os }}-root-node-modules-${{ hashFiles('package-lock.json') }} - uses: actions/cache@v4 with: @@ -229,7 +229,7 @@ jobs: - uses: actions/cache@v4 with: path: node_modules - key: ${{ runner.os }}-root-node-modules-${{ hashFiles('package-lock.json') }}-2 + key: ${{ runner.os }}-root-node-modules-${{ hashFiles('package-lock.json') }} - uses: actions/cache@v4 with: @@ -272,7 +272,7 @@ jobs: - uses: actions/cache@v4 with: path: node_modules - key: ${{ runner.os }}-root-node-modules-${{ hashFiles('package-lock.json') }}-2 + key: ${{ runner.os }}-root-node-modules-${{ hashFiles('package-lock.json') }} - uses: actions/cache@v4 with: @@ -320,7 +320,7 @@ jobs: - uses: actions/cache@v4 with: path: node_modules - key: ${{ runner.os }}-root-node-modules-${{ hashFiles('package-lock.json') }}-2 + key: ${{ runner.os }}-root-node-modules-${{ hashFiles('package-lock.json') }} - uses: actions/cache@v4 with: @@ -365,7 +365,7 @@ jobs: - uses: actions/cache@v4 with: path: node_modules - key: ${{ runner.os }}-root-node-modules-${{ hashFiles('package-lock.json') }}-2 + key: ${{ runner.os }}-root-node-modules-${{ hashFiles('package-lock.json') }} - uses: actions/cache@v4 with: From 9fae1a2f05f9c88e7a68ce360127db1174ef0e52 Mon Sep 17 00:00:00 2001 From: uinstinct <61635505+uinstinct@users.noreply.github.com> Date: Fri, 6 Jun 2025 22:30:40 +0530 Subject: [PATCH 15/91] refactor utils to child process files --- binary/package-lock.json | 5 +- extensions/vscode/package-lock.json | 6 +- .../vscode/scripts/generate-copy-config.js | 43 ++++++++++ .../vscode/scripts/install-nodemodules.js | 42 ++++++++++ extensions/vscode/scripts/prepackage.js | 9 +- extensions/vscode/scripts/utils.js | 84 +------------------ gui/package-lock.json | 2 +- 7 files changed, 96 insertions(+), 95 deletions(-) diff --git a/binary/package-lock.json b/binary/package-lock.json index abb11ce8e..2d84672f0 100644 --- a/binary/package-lock.json +++ b/binary/package-lock.json @@ -52,7 +52,7 @@ "@aws-sdk/credential-providers": "^3.778.0", "@continuedev/config-types": "^1.0.13", "@continuedev/config-yaml": "file:../packages/config-yaml", - "@continuedev/fetch": "^1.0.10", + "@continuedev/fetch": "^1.0.13", "@continuedev/llm-info": "^1.0.8", "@continuedev/openai-adapters": "^1.0.25", "@modelcontextprotocol/sdk": "^1.12.0", @@ -144,7 +144,8 @@ "onnxruntime-common": "1.14.0", "onnxruntime-web": "1.14.0", "ts-jest": "^29.1.1", - "typescript": "^5.6.3" + "typescript": "^5.6.3", + "vitest": "^3.1.4" }, "engines": { "node": ">=20.19.0" diff --git a/extensions/vscode/package-lock.json b/extensions/vscode/package-lock.json index e516f171e..38efaa08a 100644 --- a/extensions/vscode/package-lock.json +++ b/extensions/vscode/package-lock.json @@ -1,12 +1,12 @@ { "name": "continue", - "version": "1.1.41", + "version": "1.1.44", "lockfileVersion": 3, "requires": true, "packages": { "": { "name": "continue", - "version": "1.1.41", + "version": "1.1.44", "license": "Apache-2.0", "dependencies": { "@continuedev/config-types": "^1.0.14", @@ -107,7 +107,7 @@ "@aws-sdk/credential-providers": "^3.778.0", "@continuedev/config-types": "^1.0.13", "@continuedev/config-yaml": "file:../packages/config-yaml", - "@continuedev/fetch": "^1.0.10", + "@continuedev/fetch": "^1.0.13", "@continuedev/llm-info": "^1.0.8", "@continuedev/openai-adapters": "^1.0.25", "@modelcontextprotocol/sdk": "^1.12.0", diff --git a/extensions/vscode/scripts/generate-copy-config.js b/extensions/vscode/scripts/generate-copy-config.js index 16d8e1df6..73fe4602d 100644 --- a/extensions/vscode/scripts/generate-copy-config.js +++ b/extensions/vscode/scripts/generate-copy-config.js @@ -2,6 +2,7 @@ * @file Generate config.yaml file from template. Intended to run as a child process. */ +const { fork } = require("child_process"); const fs = require("fs"); const path = require("path"); @@ -81,3 +82,45 @@ process.on("message", (msg) => { }); } }); + +async function generateAndCopyConfigYamlSchema() { + // Generate and copy over config-yaml-schema.json + const generateConfigYamlChild = fork( + path.join(__dirname, "generate-copy-config.js"), + { + stdio: "inherit", + }, + ); + generateConfigYamlChild.send({ payload: { operation: "generate" } }); + + await new Promise((resolve, reject) => { + generateConfigYamlChild.on("message", (msg) => { + if (msg.error) { + reject(); + } + resolve(); + }); + }); + + // Copy config schemas to intellij + const copyConfigSchemaChild = fork( + path.join(__dirname, "generate-copy-config.js"), + { + stdio: "inherit", + }, + ); + copyConfigSchemaChild.send({ payload: { operation: "copy" } }); + + await new Promise((resolve, reject) => { + copyConfigSchemaChild.on("message", (msg) => { + if (msg.error) { + reject(); + } + resolve(); + }); + }); +} + +module.exports = { + generateAndCopyConfigYamlSchema, +}; diff --git a/extensions/vscode/scripts/install-nodemodules.js b/extensions/vscode/scripts/install-nodemodules.js index cae222b39..f23de3b3b 100644 --- a/extensions/vscode/scripts/install-nodemodules.js +++ b/extensions/vscode/scripts/install-nodemodules.js @@ -2,6 +2,7 @@ * @file Install node modules for the VS Code extension. This is intended to run as a child process. */ +const { fork } = require("child_process"); const path = require("path"); const { execCmdSync } = require("../../../scripts/util"); @@ -38,3 +39,44 @@ process.on("message", (msg) => { }); } }); + +async function installNodeModules() { + const installVscodeChild = fork( + path.join(__dirname, "install-nodemodules.js"), + { + stdio: "inherit", + }, + ); + installVscodeChild.send({ payload: { targetDir: "vscode" } }); + + const installGuiChild = fork(path.join(__dirname, "install-nodemodules.js"), { + stdio: "inherit", + }); + installGuiChild.send({ payload: { targetDir: "gui" } }); + + await Promise.all([ + new Promise((resolve, reject) => { + installVscodeChild.on("message", (msg) => { + if (msg.error) { + reject(); + } + resolve(); + }); + }), + new Promise((resolve, reject) => { + installGuiChild.on("message", (msg) => { + if (msg.error) { + reject(); + } + resolve(); + }); + }), + ]).catch((error) => { + console.error(error); + process.exit(1); + }); +} + +module.exports = { + installNodeModules, +}; diff --git a/extensions/vscode/scripts/prepackage.js b/extensions/vscode/scripts/prepackage.js index ece5d91e5..622393a19 100644 --- a/extensions/vscode/scripts/prepackage.js +++ b/extensions/vscode/scripts/prepackage.js @@ -11,13 +11,10 @@ const { autodetectPlatformAndArch, } = require("../../../scripts/util/index"); +const { generateAndCopyConfigYamlSchema } = require("./generate-copy-config"); const { copySqlite, copyEsbuild } = require("./install-copy-sqlite-esbuild"); -const { - writeBuildTimestamp, - installNodeModules, - continueDir, - generateAndCopyConfigYamlSchema, -} = require("./utils"); +const { installNodeModules } = require("./install-nodemodules"); +const { writeBuildTimestamp, continueDir } = require("./utils"); // Clear folders that will be packaged to ensure clean slate rimrafSync(path.join(__dirname, "..", "bin")); diff --git a/extensions/vscode/scripts/utils.js b/extensions/vscode/scripts/utils.js index 422e6370b..cae982a97 100644 --- a/extensions/vscode/scripts/utils.js +++ b/extensions/vscode/scripts/utils.js @@ -1,56 +1,13 @@ -const { fork } = require("child_process"); const fs = require("fs"); const path = require("path"); const ncp = require("ncp").ncp; const { rimrafSync } = require("rimraf"); -const { - validateFilesPresent, - execCmdSync, - autodetectPlatformAndArch, -} = require("../../../scripts/util/index"); +const { execCmdSync } = require("../../../scripts/util/index"); const continueDir = path.join(__dirname, "..", "..", ".."); -async function generateAndCopyConfigYamlSchema() { - // Generate and copy over config-yaml-schema.json - const generateConfigYamlChild = fork( - path.join(__dirname, "generate-copy-config.js"), - { - stdio: "inherit", - }, - ); - generateConfigYamlChild.send({ payload: { operation: "generate" } }); - - await new Promise((resolve, reject) => { - generateConfigYamlChild.on("message", (msg) => { - if (msg.error) { - reject(); - } - resolve(); - }); - }); - - // Copy config schemas to intellij - const copyConfigSchemaChild = fork( - path.join(__dirname, "generate-copy-config.js"), - { - stdio: "inherit", - }, - ); - copyConfigSchemaChild.send({ payload: { operation: "copy" } }); - - await new Promise((resolve, reject) => { - copyConfigSchemaChild.on("message", (msg) => { - if (msg.error) { - reject(); - } - resolve(); - }); - }); -} - function copyTokenizers() { fs.copyFileSync( path.join(__dirname, "../../../core/llm/llamaTokenizerWorkerPool.mjs"), @@ -65,43 +22,6 @@ function copyTokenizers() { console.log("[info] Copied llamaTokenizer"); } -async function installNodeModules() { - const installVscodeChild = fork( - path.join(__dirname, "install-nodemodules.js"), - { - stdio: "inherit", - }, - ); - installVscodeChild.send({ payload: { targetDir: "vscode" } }); - - const installGuiChild = fork(path.join(__dirname, "install-nodemodules.js"), { - stdio: "inherit", - }); - installGuiChild.send({ payload: { targetDir: "gui" } }); - - await Promise.all([ - new Promise((resolve, reject) => { - installVscodeChild.on("message", (msg) => { - if (msg.error) { - reject(); - } - resolve(); - }); - }), - new Promise((resolve, reject) => { - installGuiChild.on("message", (msg) => { - if (msg.error) { - reject(); - } - resolve(); - }); - }), - ]).catch((error) => { - console.error(error); - process.exit(1); - }); -} - async function buildGui(isGhAction) { // Make sure we are in the right directory if (!process.cwd().endsWith("gui")) { @@ -552,8 +472,6 @@ function writeBuildTimestamp() { module.exports = { continueDir, - generateAndCopyConfigYamlSchema, - installNodeModules, buildGui, copyOnnxRuntimeFromNodeModules, copyTreeSitterWasms, diff --git a/gui/package-lock.json b/gui/package-lock.json index 020586519..a9d589b98 100644 --- a/gui/package-lock.json +++ b/gui/package-lock.json @@ -111,7 +111,7 @@ "@aws-sdk/credential-providers": "^3.778.0", "@continuedev/config-types": "^1.0.13", "@continuedev/config-yaml": "file:../packages/config-yaml", - "@continuedev/fetch": "^1.0.10", + "@continuedev/fetch": "^1.0.13", "@continuedev/llm-info": "^1.0.8", "@continuedev/openai-adapters": "^1.0.25", "@modelcontextprotocol/sdk": "^1.12.0", From 3722b8c4f8a3896f2410897cb8b9874a4dec2bcb Mon Sep 17 00:00:00 2001 From: uinstinct <61635505+uinstinct@users.noreply.github.com> Date: Fri, 6 Jun 2025 22:51:55 +0530 Subject: [PATCH 16/91] refactor download node-sqlite to common --- binary/utils/bundle-binary.js | 49 ++++++++----------- .../scripts/install-copy-sqlite-esbuild.js | 33 +++++++------ 2 files changed, 40 insertions(+), 42 deletions(-) diff --git a/binary/utils/bundle-binary.js b/binary/utils/bundle-binary.js index c218166cd..91d2f4593 100644 --- a/binary/utils/bundle-binary.js +++ b/binary/utils/bundle-binary.js @@ -8,41 +8,34 @@ const { const { downloadRipgrep } = require("./ripgrep"); const { TARGET_TO_LANCEDB } = require("../utils/targets"); const fs = require("fs"); +const { + downloadSqlite, +} = require("../../extensions/vscode/scripts/install-copy-sqlite-esbuild"); async function downloadNodeSqlite(target, targetDir) { - return new Promise((resolve) => { - const [currentPlatform, currentArch] = autodetectPlatformAndArch(); + const [currentPlatform, currentArch] = autodetectPlatformAndArch(); - // Download and unzip prebuilt sqlite3 binary for the target - console.log("[info] Downloading node-sqlite3"); + // Download and unzip prebuilt sqlite3 binary for the target + console.log("[info] Downloading node-sqlite3"); - const downloadUrl = - // node-sqlite3 doesn't have a pre-built binary for win32-arm64 - target === "win32-arm64" - ? "https://continue-server-binaries.s3.us-west-1.amazonaws.com/win32-arm64/node_sqlite3.tar.gz" - : `https://github.com/TryGhost/node-sqlite3/releases/download/v5.1.7/sqlite3-v5.1.7-napi-v6-${ - target - }.tar.gz`; + await downloadSqlite(target, `${targetDir}/build.tar.gz`); - execCmdSync(`curl -L -o ${targetDir}/build.tar.gz ${downloadUrl}`); - execCmdSync(`cd ${targetDir} && tar -xvzf build.tar.gz`); + execCmdSync(`cd ${targetDir} && tar -xvzf build.tar.gz`); - // Copy to build directory for testing - try { - const [platform, arch] = target.split("-"); - if (platform === currentPlatform && arch === currentArch) { - fs.copyFileSync( - `${targetDir}/build/Release/node_sqlite3.node`, - `build/node_sqlite3.node`, - ); - } - } catch (error) { - console.log("[warn] Could not copy node_sqlite to build"); - console.log(error); + // Copy to build directory for testing + try { + const [platform, arch] = target.split("-"); + if (platform === currentPlatform && arch === currentArch) { + fs.copyFileSync( + `${targetDir}/build/Release/node_sqlite3.node`, + `build/node_sqlite3.node`, + ); } - fs.unlinkSync(`${targetDir}/build.tar.gz`); - resolve(); - }); + } catch (error) { + console.log("[warn] Could not copy node_sqlite to build"); + console.log(error); + } + fs.unlinkSync(`${targetDir}/build.tar.gz`); } /** diff --git a/extensions/vscode/scripts/install-copy-sqlite-esbuild.js b/extensions/vscode/scripts/install-copy-sqlite-esbuild.js index 370876c7f..ad33b2eb6 100644 --- a/extensions/vscode/scripts/install-copy-sqlite-esbuild.js +++ b/extensions/vscode/scripts/install-copy-sqlite-esbuild.js @@ -1,4 +1,4 @@ -const { fork, execSync } = require("child_process"); +const { fork } = require("child_process"); const fs = require("fs"); const https = require("https"); const path = require("path"); @@ -80,23 +80,27 @@ async function downloadFile(url, outputPath, maxRedirects = 5) { }); } +/** + * + * @param {string} target platform specific target + * @param {string} targetDir the directory to download into + */ +async function downloadSqlite(target, targetDir) { + const downloadUrl = + // node-sqlite3 doesn't have a pre-built binary for win32-arm64 + target === "win32-arm64" + ? "https://continue-server-binaries.s3.us-west-1.amazonaws.com/win32-arm64/node_sqlite3.tar.gz" + : `https://github.com/TryGhost/node-sqlite3/releases/download/v5.1.7/sqlite3-v5.1.7-napi-v6-${ + target + }.tar.gz`; + await downloadFile(downloadUrl, targetDir); +} + async function installAndCopySqlite(target) { // Replace the installed with pre-built console.log("[info] Downloading pre-built sqlite3 binary"); rimrafSync("../../core/node_modules/sqlite3/build"); - const downloadUrl = { - "darwin-arm64": - "https://github.com/TryGhost/node-sqlite3/releases/download/v5.1.7/sqlite3-v5.1.7-napi-v6-darwin-arm64.tar.gz", - "linux-arm64": - "https://github.com/TryGhost/node-sqlite3/releases/download/v5.1.7/sqlite3-v5.1.7-napi-v3-linux-arm64.tar.gz", - // node-sqlite3 doesn't have a pre-built binary for win32-arm64 - "win32-arm64": - "https://continue-server-binaries.s3.us-west-1.amazonaws.com/win32-arm64/node_sqlite3.tar.gz", - }[target]; - await downloadFile( - downloadUrl, - "../../core/node_modules/sqlite3/build.tar.gz", - ); + await downloadSqlite(target, "../../core/node_modules/sqlite3/build.tar.gz"); execCmdSync("cd ../../core/node_modules/sqlite3 && tar -xvzf build.tar.gz"); fs.unlinkSync("../../core/node_modules/sqlite3/build.tar.gz"); } @@ -179,6 +183,7 @@ async function copyEsbuild(target) { } module.exports = { + downloadSqlite, copySqlite, copyEsbuild, }; From e8e8821134ef15043b92de83a31fa203640f6d70 Mon Sep 17 00:00:00 2001 From: uinstinct <61635505+uinstinct@users.noreply.github.com> Date: Fri, 6 Jun 2025 22:58:45 +0530 Subject: [PATCH 17/91] move install-copy-nodemodule to vscode scripts --- binary/build.js | 6 ++++-- extensions/vscode/package-lock.json | 4 ++-- .../vscode/scripts/install-copy-nodemodule.js | 12 +++++++----- extensions/vscode/scripts/prepackage.js | 6 +++--- package-lock.json | 11 ----------- package.json | 1 - 6 files changed, 16 insertions(+), 24 deletions(-) rename scripts/util/copy-nodemodule.js => extensions/vscode/scripts/install-copy-nodemodule.js (92%) diff --git a/binary/build.js b/binary/build.js index aa5fa5ffd..56c27b2bd 100644 --- a/binary/build.js +++ b/binary/build.js @@ -6,7 +6,9 @@ const { rimrafSync } = require("rimraf"); const { validateFilesPresent } = require("../scripts/util"); const { ALL_TARGETS, TARGET_TO_LANCEDB } = require("./utils/targets"); const { fork } = require("child_process"); -const { copyNodeModule } = require("../scripts/util/copy-nodemodule"); +const { + installAndCopyNodeModules, +} = require("../extensions/vscode/scripts/install-copy-nodemodule"); const bin = path.join(__dirname, "bin"); const out = path.join(__dirname, "out"); @@ -104,7 +106,7 @@ async function buildWithEsbuild() { } console.log(`[info] Downloading for ${target}...`); copyLanceDBPromises.push( - copyNodeModule(TARGET_TO_LANCEDB[target], "@lancedb"), + installAndCopyNodeModules(TARGET_TO_LANCEDB[target], "@lancedb"), ); } await Promise.all(copyLanceDBPromises).catch(() => { diff --git a/extensions/vscode/package-lock.json b/extensions/vscode/package-lock.json index 38efaa08a..349212a6a 100644 --- a/extensions/vscode/package-lock.json +++ b/extensions/vscode/package-lock.json @@ -1,12 +1,12 @@ { "name": "continue", - "version": "1.1.44", + "version": "1.1.45", "lockfileVersion": 3, "requires": true, "packages": { "": { "name": "continue", - "version": "1.1.44", + "version": "1.1.45", "license": "Apache-2.0", "dependencies": { "@continuedev/config-types": "^1.0.14", diff --git a/scripts/util/copy-nodemodule.js b/extensions/vscode/scripts/install-copy-nodemodule.js similarity index 92% rename from scripts/util/copy-nodemodule.js rename to extensions/vscode/scripts/install-copy-nodemodule.js index 361e2d891..a20d2dee4 100644 --- a/scripts/util/copy-nodemodule.js +++ b/extensions/vscode/scripts/install-copy-nodemodule.js @@ -1,12 +1,14 @@ /** - * @file Copy lancedb to the current directory. It is intended to run as a child process. + * @file Copy lancedb to the current directory. It is also intended to run as a child process. */ +const { fork } = require("child_process"); const fs = require("fs"); const path = require("path"); + const ncp = require("ncp").ncp; -const { execCmdSync } = require("."); -const { fork } = require("child_process"); + +const { execCmdSync } = require("../../../scripts/util"); async function installNodeModuleInTempDirAndCopyToCurrent(packageName, toCopy) { console.log(`Copying ${packageName} to ${toCopy}`); @@ -86,7 +88,7 @@ process.on("message", (msg) => { * @param {string} packageName the module to install and copy * @param {string} toCopy directory to copy into inside node modules */ -async function copyNodeModule(packageName, toCopy) { +async function installAndCopyNodeModules(packageName, toCopy) { const child = fork(__filename, { stdio: "inherit", cwd: process.cwd() }); child.send({ payload: { @@ -106,5 +108,5 @@ async function copyNodeModule(packageName, toCopy) { } module.exports = { - copyNodeModule, + installAndCopyNodeModules, }; diff --git a/extensions/vscode/scripts/prepackage.js b/extensions/vscode/scripts/prepackage.js index 622393a19..57fa5a52d 100644 --- a/extensions/vscode/scripts/prepackage.js +++ b/extensions/vscode/scripts/prepackage.js @@ -4,7 +4,6 @@ const path = require("path"); const ncp = require("ncp").ncp; const { rimrafSync } = require("rimraf"); -const { copyNodeModule } = require("../../../scripts/util/copy-nodemodule"); const { validateFilesPresent, execCmdSync, @@ -12,6 +11,7 @@ const { } = require("../../../scripts/util/index"); const { generateAndCopyConfigYamlSchema } = require("./generate-copy-config"); +const { installAndCopyNodeModules } = require("./install-copy-nodemodule"); const { copySqlite, copyEsbuild } = require("./install-copy-sqlite-esbuild"); const { installNodeModules } = require("./install-nodemodules"); const { writeBuildTimestamp, continueDir } = require("./utils"); @@ -280,12 +280,12 @@ void (async () => { await Promise.all([ copyEsbuild(target), copySqlite(target), - copyNodeModule(packageToInstall, "@lancedb"), + installAndCopyNodeModules(packageToInstall, "@lancedb"), ]); } else { // Download esbuild from npm in tmp and copy over console.log("[info] npm installing esbuild binary"); - await copyNodeModule("esbuild@0.17.19", "@esbuild"); + await installAndCopyNodeModules("esbuild@0.17.19", "@esbuild"); } console.log("[info] Copying sqlite node binding from core"); diff --git a/package-lock.json b/package-lock.json index 43530562e..06f811afa 100644 --- a/package-lock.json +++ b/package-lock.json @@ -8,7 +8,6 @@ "@typescript-eslint/parser": "^7.8.0", "concurrently": "^9.1.2", "eslint-plugin-import": "^2.29.1", - "ncp": "^2.0.0", "prettier": "^3.3.3", "prettier-plugin-tailwindcss": "^0.6.8", "typescript": "^5.6.3" @@ -2234,16 +2233,6 @@ "dev": true, "peer": true }, - "node_modules/ncp": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/ncp/-/ncp-2.0.0.tgz", - "integrity": "sha512-zIdGUrPRFTUELUvr3Gmc7KZ2Sw/h1PiVM0Af/oHB6zgnV1ikqSfRk+TOufi79aHYCW3NiOXmr1BP5nWbzojLaA==", - "dev": true, - "license": "MIT", - "bin": { - "ncp": "bin/ncp" - } - }, "node_modules/object-inspect": { "version": "1.13.2", "resolved": "https://registry.npmjs.org/object-inspect/-/object-inspect-1.13.2.tgz", diff --git a/package.json b/package.json index 9100ad0cd..79e522af1 100644 --- a/package.json +++ b/package.json @@ -12,7 +12,6 @@ "@typescript-eslint/parser": "^7.8.0", "concurrently": "^9.1.2", "eslint-plugin-import": "^2.29.1", - "ncp": "^2.0.0", "prettier": "^3.3.3", "prettier-plugin-tailwindcss": "^0.6.8", "typescript": "^5.6.3" From 1d4a31af2243297e1582a6ae5ed96f57a4212bfe Mon Sep 17 00:00:00 2001 From: uinstinct <61635505+uinstinct@users.noreply.github.com> Date: Fri, 6 Jun 2025 22:59:39 +0530 Subject: [PATCH 18/91] rename install-copy-sqlite-esbuild to download-copy-sqlite-esbuild --- binary/utils/bundle-binary.js | 2 +- ...l-copy-sqlite-esbuild.js => download-copy-sqlite-esbuild.js} | 0 extensions/vscode/scripts/prepackage.js | 2 +- 3 files changed, 2 insertions(+), 2 deletions(-) rename extensions/vscode/scripts/{install-copy-sqlite-esbuild.js => download-copy-sqlite-esbuild.js} (100%) diff --git a/binary/utils/bundle-binary.js b/binary/utils/bundle-binary.js index 91d2f4593..50f34f647 100644 --- a/binary/utils/bundle-binary.js +++ b/binary/utils/bundle-binary.js @@ -10,7 +10,7 @@ const { TARGET_TO_LANCEDB } = require("../utils/targets"); const fs = require("fs"); const { downloadSqlite, -} = require("../../extensions/vscode/scripts/install-copy-sqlite-esbuild"); +} = require("../../extensions/vscode/scripts/download-copy-sqlite-esbuild"); async function downloadNodeSqlite(target, targetDir) { const [currentPlatform, currentArch] = autodetectPlatformAndArch(); diff --git a/extensions/vscode/scripts/install-copy-sqlite-esbuild.js b/extensions/vscode/scripts/download-copy-sqlite-esbuild.js similarity index 100% rename from extensions/vscode/scripts/install-copy-sqlite-esbuild.js rename to extensions/vscode/scripts/download-copy-sqlite-esbuild.js diff --git a/extensions/vscode/scripts/prepackage.js b/extensions/vscode/scripts/prepackage.js index 57fa5a52d..7649e0919 100644 --- a/extensions/vscode/scripts/prepackage.js +++ b/extensions/vscode/scripts/prepackage.js @@ -10,9 +10,9 @@ const { autodetectPlatformAndArch, } = require("../../../scripts/util/index"); +const { copySqlite, copyEsbuild } = require("./download-copy-sqlite-esbuild"); const { generateAndCopyConfigYamlSchema } = require("./generate-copy-config"); const { installAndCopyNodeModules } = require("./install-copy-nodemodule"); -const { copySqlite, copyEsbuild } = require("./install-copy-sqlite-esbuild"); const { installNodeModules } = require("./install-nodemodules"); const { writeBuildTimestamp, continueDir } = require("./utils"); From a363e34f753bbf69b22d33e9c4a03f937b3fa038 Mon Sep 17 00:00:00 2001 From: uinstinct <61635505+uinstinct@users.noreply.github.com> Date: Fri, 6 Jun 2025 23:03:20 +0530 Subject: [PATCH 19/91] refactor bundle binary to modular function --- binary/build.js | 18 ++---------------- binary/utils/bundle-binary.js | 28 +++++++++++++++++++++++++++- 2 files changed, 29 insertions(+), 17 deletions(-) diff --git a/binary/build.js b/binary/build.js index 56c27b2bd..c2431333c 100644 --- a/binary/build.js +++ b/binary/build.js @@ -9,6 +9,7 @@ const { fork } = require("child_process"); const { installAndCopyNodeModules, } = require("../extensions/vscode/scripts/install-copy-nodemodule"); +const { bundleBinary } = require("./utils/bundle-binary"); const bin = path.join(__dirname, "bin"); const out = path.join(__dirname, "out"); @@ -178,22 +179,7 @@ async function buildWithEsbuild() { const buildBinaryPromises = []; console.log("[info] Building binaries with pkg..."); for (const target of targets) { - const child = fork("./utils/bundle-binary.js", { stdio: "inherit" }); - child.send({ - payload: { - target, - }, - }); - buildBinaryPromises.push( - new Promise((resolve, reject) => { - child.on("message", (msg) => { - if (msg.error) { - reject(); - } - resolve(); - }); - }), - ); + buildBinaryPromises.push(bundleBinary(target)); } await Promise.all(buildBinaryPromises).catch(() => { console.error("[error] Failed to build binaries"); diff --git a/binary/utils/bundle-binary.js b/binary/utils/bundle-binary.js index 50f34f647..0a778f5b0 100644 --- a/binary/utils/bundle-binary.js +++ b/binary/utils/bundle-binary.js @@ -1,6 +1,7 @@ /** - * @file Builds the binary for the specified target. It is intended to run as a child process. + * @file Builds the binary for the specified target. It is also intended to run as a child process. */ + const { execCmdSync, autodetectPlatformAndArch, @@ -11,6 +12,7 @@ const fs = require("fs"); const { downloadSqlite, } = require("../../extensions/vscode/scripts/download-copy-sqlite-esbuild"); +const { fork } = require("child_process"); async function downloadNodeSqlite(target, targetDir) { const [currentPlatform, currentArch] = autodetectPlatformAndArch(); @@ -74,3 +76,27 @@ process.on("message", (msg) => { process.send({ error: true }); }); }); + +/** + * @param {string} target the platform to bundle for + */ +async function bundleBinary(target) { + const child = fork(__filename, { stdio: "inherit" }); + child.send({ + payload: { + target, + }, + }); + return new Promise((resolve, reject) => { + child.on("message", (msg) => { + if (msg.error) { + reject(); + } + resolve(); + }); + }); +} + +module.exports = { + bundleBinary, +}; From 9c087bb8b8dd80fe55dd2175b0760b4143ed298f Mon Sep 17 00:00:00 2001 From: uinstinct <61635505+uinstinct@users.noreply.github.com> Date: Fri, 6 Jun 2025 23:04:08 +0530 Subject: [PATCH 20/91] revert package-lock to main --- binary/package-lock.json | 5 ++--- extensions/vscode/package-lock.json | 4 ++-- 2 files changed, 4 insertions(+), 5 deletions(-) diff --git a/binary/package-lock.json b/binary/package-lock.json index 2d84672f0..abb11ce8e 100644 --- a/binary/package-lock.json +++ b/binary/package-lock.json @@ -52,7 +52,7 @@ "@aws-sdk/credential-providers": "^3.778.0", "@continuedev/config-types": "^1.0.13", "@continuedev/config-yaml": "file:../packages/config-yaml", - "@continuedev/fetch": "^1.0.13", + "@continuedev/fetch": "^1.0.10", "@continuedev/llm-info": "^1.0.8", "@continuedev/openai-adapters": "^1.0.25", "@modelcontextprotocol/sdk": "^1.12.0", @@ -144,8 +144,7 @@ "onnxruntime-common": "1.14.0", "onnxruntime-web": "1.14.0", "ts-jest": "^29.1.1", - "typescript": "^5.6.3", - "vitest": "^3.1.4" + "typescript": "^5.6.3" }, "engines": { "node": ">=20.19.0" diff --git a/extensions/vscode/package-lock.json b/extensions/vscode/package-lock.json index 349212a6a..38efaa08a 100644 --- a/extensions/vscode/package-lock.json +++ b/extensions/vscode/package-lock.json @@ -1,12 +1,12 @@ { "name": "continue", - "version": "1.1.45", + "version": "1.1.44", "lockfileVersion": 3, "requires": true, "packages": { "": { "name": "continue", - "version": "1.1.45", + "version": "1.1.44", "license": "Apache-2.0", "dependencies": { "@continuedev/config-types": "^1.0.14", From 1414aec53ba347d36c1b978b4fdd04d77d0657bf Mon Sep 17 00:00:00 2001 From: uinstinct <61635505+uinstinct@users.noreply.github.com> Date: Fri, 6 Jun 2025 23:08:21 +0530 Subject: [PATCH 21/91] rename install nodemodules to npm-install --- .../vscode/scripts/generate-copy-config.js | 2 +- .../{install-nodemodules.js => npm-install.js} | 17 +++++++---------- extensions/vscode/scripts/prepackage.js | 4 ++-- 3 files changed, 10 insertions(+), 13 deletions(-) rename extensions/vscode/scripts/{install-nodemodules.js => npm-install.js} (82%) diff --git a/extensions/vscode/scripts/generate-copy-config.js b/extensions/vscode/scripts/generate-copy-config.js index 73fe4602d..21a68d999 100644 --- a/extensions/vscode/scripts/generate-copy-config.js +++ b/extensions/vscode/scripts/generate-copy-config.js @@ -1,5 +1,5 @@ /** - * @file Generate config.yaml file from template. Intended to run as a child process. + * @file Generate config.yaml file from template. Also intended to run as a child process. */ const { fork } = require("child_process"); diff --git a/extensions/vscode/scripts/install-nodemodules.js b/extensions/vscode/scripts/npm-install.js similarity index 82% rename from extensions/vscode/scripts/install-nodemodules.js rename to extensions/vscode/scripts/npm-install.js index f23de3b3b..feffdcf26 100644 --- a/extensions/vscode/scripts/install-nodemodules.js +++ b/extensions/vscode/scripts/npm-install.js @@ -1,5 +1,5 @@ /** - * @file Install node modules for the VS Code extension. This is intended to run as a child process. + * @file Install node modules for the VS Code extension and gui. This is also intended to run as a child process. */ const { fork } = require("child_process"); @@ -40,16 +40,13 @@ process.on("message", (msg) => { } }); -async function installNodeModules() { - const installVscodeChild = fork( - path.join(__dirname, "install-nodemodules.js"), - { - stdio: "inherit", - }, - ); +async function npmInstall() { + const installVscodeChild = fork(__filename, { + stdio: "inherit", + }); installVscodeChild.send({ payload: { targetDir: "vscode" } }); - const installGuiChild = fork(path.join(__dirname, "install-nodemodules.js"), { + const installGuiChild = fork(__filename, { stdio: "inherit", }); installGuiChild.send({ payload: { targetDir: "gui" } }); @@ -78,5 +75,5 @@ async function installNodeModules() { } module.exports = { - installNodeModules, + npmInstall, }; diff --git a/extensions/vscode/scripts/prepackage.js b/extensions/vscode/scripts/prepackage.js index 7649e0919..9fb0d43a4 100644 --- a/extensions/vscode/scripts/prepackage.js +++ b/extensions/vscode/scripts/prepackage.js @@ -13,7 +13,7 @@ const { const { copySqlite, copyEsbuild } = require("./download-copy-sqlite-esbuild"); const { generateAndCopyConfigYamlSchema } = require("./generate-copy-config"); const { installAndCopyNodeModules } = require("./install-copy-nodemodule"); -const { installNodeModules } = require("./install-nodemodules"); +const { npmInstall } = require("./npm-install"); const { writeBuildTimestamp, continueDir } = require("./utils"); // Clear folders that will be packaged to ensure clean slate @@ -70,7 +70,7 @@ void (async () => { // Make sure we have an initial timestamp file writeBuildTimestamp(); - await Promise.all([generateAndCopyConfigYamlSchema(), installNodeModules()]); + await Promise.all([generateAndCopyConfigYamlSchema(), npmInstall()]); process.chdir(path.join(continueDir, "gui")); From a852e638516a7f2175b7f7e42005b9c1ea7e4c46 Mon Sep 17 00:00:00 2001 From: Dallin Romney Date: Tue, 17 Jun 2025 13:48:37 -0700 Subject: [PATCH 22/91] rip out mocha --- .vscode/launch.json | 26 -- .vscode/tasks.json | 33 --- extensions/vscode/.vscodeignore | 1 - extensions/vscode/esbuild.test.mjs | 67 ----- extensions/vscode/package-lock.json | 260 +++--------------- extensions/vscode/package.json | 9 +- .../vscode/src/test/runner/mochaRunner.ts | 49 ---- .../src/test/runner/runTestOnVSCodeHost.ts | 127 --------- .../src/test/test-suites/ideUtils.test.ts | 89 ------ extensions/vscode/tsconfig.json | 4 +- 10 files changed, 42 insertions(+), 623 deletions(-) delete mode 100644 extensions/vscode/esbuild.test.mjs delete mode 100644 extensions/vscode/src/test/runner/mochaRunner.ts delete mode 100644 extensions/vscode/src/test/runner/runTestOnVSCodeHost.ts delete mode 100644 extensions/vscode/src/test/test-suites/ideUtils.test.ts diff --git a/.vscode/launch.json b/.vscode/launch.json index 294429bcb..53632f8d2 100644 --- a/.vscode/launch.json +++ b/.vscode/launch.json @@ -73,32 +73,6 @@ "sourceMaps": true // "preLaunchTask": "gui:dev" }, - // Has to be run after starting the server (separately or using the compound configuration) - { - "name": "Run tests", - "type": "extensionHost", - "request": "launch", - "cwd": "${workspaceFolder}/extensions/vscode", - "runtimeExecutable": "${execPath}", - "args": [ - // Pass a directory to run tests in - "${workspaceFolder}/extensions/vscode/manual-testing-sandbox", - "--extensionDevelopmentPath=${workspaceFolder}/extensions/vscode", - "--extensionTestsPath=${workspaceFolder}/extensions/vscode/out/test/runner/mochaRunner" - ], - "outFiles": [ - // Allows setting breakpoints in test suites across the /src folder - "${workspaceFolder}/extensions/vscode/out/test/test-suites/**/*.js", - // Allows setting breakpoints in mocha test runner file - "${workspaceFolder}/extensions/vscode/out/test/runner/**/*.js" - ], - "internalConsoleOptions": "openOnSessionStart", - "preLaunchTask": "vscode-extension:tests:build", - "env": { - // Avoid timing out when stopping on breakpoints during debugging in VSCode - "MOCHA_TIMEOUT": "0" - } - }, { "name": "[Core] Jest Test Debugger, Current Open File", "type": "node", diff --git a/.vscode/tasks.json b/.vscode/tasks.json index e40d9d054..5c562576c 100644 --- a/.vscode/tasks.json +++ b/.vscode/tasks.json @@ -106,39 +106,6 @@ "cwd": "${workspaceFolder}/extensions/vscode" } }, - // - // Compile and bundle tests - { - "label": "vscode-extension:tests:build", - "dependsOn": [ - // Build the extension - "vscode-extension:build", - // To detect compile errors - this type checks both the extension and the tests - "tsc:watch", - "vscode-extension:tests:esbuild" - ] - }, - { - "label": "vscode-extension:tests:esbuild", - "type": "npm", - "script": "build-test", - "path": "extensions/vscode", - "problemMatcher": [ - { - "pattern": [ - { - "regexp": "> (.*?):([0-9]+):([0-9]+): (warning|error): (.+)$", - "file": 1, - "line": 2, - "column": 3, - "severity": 4, - "message": 5 - } - ] - } - ] - }, - // // Install or update all dependencies for all projects in the monrepo { "label": "install-all-dependencies", diff --git a/extensions/vscode/.vscodeignore b/extensions/vscode/.vscodeignore index 387be8ba5..f2179a2c5 100644 --- a/extensions/vscode/.vscodeignore +++ b/extensions/vscode/.vscodeignore @@ -18,7 +18,6 @@ node_modules/** manual-testing-sandbox esbuild.js -esbuild.test.mjs importMetaUrl.js scripts e2e diff --git a/extensions/vscode/esbuild.test.mjs b/extensions/vscode/esbuild.test.mjs deleted file mode 100644 index 3d6ca8b94..000000000 --- a/extensions/vscode/esbuild.test.mjs +++ /dev/null @@ -1,67 +0,0 @@ -import * as esbuild from "esbuild"; -import glob from "glob"; - -/** - * Bundles tests into multiple files, runTestOnVSCodeHost is then run using node runTestOnVSCodeHost.js - * It downloads vscode, starts it and passes test file to run - mochaRunner.js - * mochaRunner.js then runs tests using Mocha class - */ - -console.log("Bundling tests..."); - -// Bundles script to run tests on VSCode host + mocha runner that will be invoked from within VSCode host -await esbuild.build({ - entryPoints: [ - // Runs mocha runner on VSCode host using runTests from @vscode/test-electron - "src/test/runner/runTestOnVSCodeHost.ts", - - // Runs the bundled tests using Mocha class - "src/test/runner/mochaRunner.ts", - ], - bundle: true, - outdir: "out", - - external: [ - "vscode", - - // Its important to externalize mocha, otherwise mocha seems to be not initialized properly when running tests - // Example warning by esbuild when mocha is not externalized: - // [WARNING] "./reporters/parallel-buffered" should be marked as external for use with "require.resolve" [require-resolve-not-external] - "mocha", - ], - format: "cjs", - platform: "node", - sourcemap: true, - loader: { - // eslint-disable-next-line @typescript-eslint/naming-convention - ".node": "file", - }, -}); - -/** - * Note: Bundling is done to work around import issues, for example with fkill that does not provide cjs module. - * Rather than figuring out a combination of tsconfig.json that would work, I decided to bundle tests instead. - */ -await esbuild.build({ - // Tests can be added anywhere in src folder - entryPoints: glob.sync("src/**/*.test.ts"), - bundle: true, - outdir: "out", - external: [ - "vscode", - - // Its important to externalize mocha, otherwise mocha seems to be not initialized properly when running tests - "mocha", - ], - format: "cjs", - platform: "node", - sourcemap: true, - loader: { - // eslint-disable-next-line @typescript-eslint/naming-convention - ".node": "file", - }, - // To allow import.meta.path for transformers.js - // https://github.com/evanw/esbuild/issues/1492#issuecomment-893144483 - inject: ["./scripts/importMetaUrl.js"], - define: { "import.meta.url": "importMetaUrl" }, -}); diff --git a/extensions/vscode/package-lock.json b/extensions/vscode/package-lock.json index 199c669c7..317dec4e3 100644 --- a/extensions/vscode/package-lock.json +++ b/extensions/vscode/package-lock.json @@ -16,7 +16,6 @@ "@types/node-fetch": "^2.6.11", "@types/uuid": "^9.0.8", "@vscode/ripgrep": "^1.15.9", - "@vscode/test-electron": "^2.3.9", "axios": "^1.2.5", "core": "file:../../core", "cors": "^2.8.5", @@ -70,8 +69,6 @@ "@types/cors": "^2.8.17", "@types/express": "^4.17.21", "@types/follow-redirects": "^1.14.4", - "@types/glob": "^8.0.0", - "@types/mocha": "^10.0.6", "@types/node": "16.x", "@types/react-dom": "^18.2.4", "@types/request": "^2.48.8", @@ -84,9 +81,7 @@ "esbuild": "0.17.19", "esbuild-visualizer": "^0.6.0", "eslint": "^8.28.0", - "glob": "^8.0.3", "json-schema-to-typescript": "^12.0.0", - "mocha": "^10.4.0", "ovsx": "^0.8.3", "rimraf": "^5.0.5", "typescript": "^5.6.3", @@ -2448,16 +2443,6 @@ "@types/node": "*" } }, - "node_modules/@types/glob": { - "version": "8.1.0", - "resolved": "https://registry.npmjs.org/@types/glob/-/glob-8.1.0.tgz", - "integrity": "sha512-IO+MJPVhoqz+28h1qLAcBEH2+xHMK6MTyHJc7MTnnYb6wsoLR29POVGJ7LycmVXIqyy/4/2ShP5sUwTXuOwb/w==", - "dev": true, - "dependencies": { - "@types/minimatch": "^5.1.2", - "@types/node": "*" - } - }, "node_modules/@types/hast": { "version": "2.3.10", "resolved": "https://registry.npmjs.org/@types/hast/-/hast-2.3.10.tgz", @@ -2541,12 +2526,6 @@ "integrity": "sha512-K0VQKziLUWkVKiRVrx4a40iPaxTUefQmjtkQofBkYRcoaaL/8rhwDWww9qWbrgicNOgnpIsMxyNIUM4+n6dUIA==", "dev": true }, - "node_modules/@types/mocha": { - "version": "10.0.9", - "resolved": "https://registry.npmjs.org/@types/mocha/-/mocha-10.0.9.tgz", - "integrity": "sha512-sicdRoWtYevwxjOHNMPTl3vSfJM6oyW8o1wXeI7uww6b6xHg8eBznQDNSGBCDJmsE8UMxP05JgZRtsKbTqt//Q==", - "dev": true - }, "node_modules/@types/ms": { "version": "0.7.34", "resolved": "https://registry.npmjs.org/@types/ms/-/ms-0.7.34.tgz", @@ -3088,136 +3067,6 @@ "yauzl": "^2.9.2" } }, - "node_modules/@vscode/test-electron": { - "version": "2.4.1", - "resolved": "https://registry.npmjs.org/@vscode/test-electron/-/test-electron-2.4.1.tgz", - "integrity": "sha512-Gc6EdaLANdktQ1t+zozoBVRynfIsMKMc94Svu1QreOBC8y76x4tvaK32TljrLi1LI2+PK58sDVbL7ALdqf3VRQ==", - "dependencies": { - "http-proxy-agent": "^7.0.2", - "https-proxy-agent": "^7.0.5", - "jszip": "^3.10.1", - "ora": "^7.0.1", - "semver": "^7.6.2" - }, - "engines": { - "node": ">=16" - } - }, - "node_modules/@vscode/test-electron/node_modules/chalk": { - "version": "5.3.0", - "resolved": "https://registry.npmjs.org/chalk/-/chalk-5.3.0.tgz", - "integrity": "sha512-dLitG79d+GV1Nb/VYcCDFivJeK1hiukt9QjRNVOsUtTy1rR1YJsmpGGTZ3qJos+uw7WmWF4wUwBd9jxjocFC2w==", - "engines": { - "node": "^12.17.0 || ^14.13 || >=16.0.0" - }, - "funding": { - "url": "https://github.com/chalk/chalk?sponsor=1" - } - }, - "node_modules/@vscode/test-electron/node_modules/cli-cursor": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/cli-cursor/-/cli-cursor-4.0.0.tgz", - "integrity": "sha512-VGtlMu3x/4DOtIUwEkRezxUZ2lBacNJCHash0N0WeZDBS+7Ux1dm3XWAgWYxLJFMMdOeXMHXorshEFhbMSGelg==", - "dependencies": { - "restore-cursor": "^4.0.0" - }, - "engines": { - "node": "^12.20.0 || ^14.13.1 || >=16.0.0" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - }, - "node_modules/@vscode/test-electron/node_modules/is-interactive": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/is-interactive/-/is-interactive-2.0.0.tgz", - "integrity": "sha512-qP1vozQRI+BMOPcjFzrjXuQvdak2pHNUMZoeG2eRbiSqyvbEf/wQtEOTOX1guk6E3t36RkaqiSt8A/6YElNxLQ==", - "engines": { - "node": ">=12" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - }, - "node_modules/@vscode/test-electron/node_modules/is-unicode-supported": { - "version": "1.3.0", - "resolved": "https://registry.npmjs.org/is-unicode-supported/-/is-unicode-supported-1.3.0.tgz", - "integrity": "sha512-43r2mRvz+8JRIKnWJ+3j8JtjRKZ6GmjzfaE/qiBJnikNnYv/6bagRJ1kUhNk8R5EX/GkobD+r+sfxCPJsiKBLQ==", - "engines": { - "node": ">=12" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - }, - "node_modules/@vscode/test-electron/node_modules/log-symbols": { - "version": "5.1.0", - "resolved": "https://registry.npmjs.org/log-symbols/-/log-symbols-5.1.0.tgz", - "integrity": "sha512-l0x2DvrW294C9uDCoQe1VSU4gf529FkSZ6leBl4TiqZH/e+0R7hSfHQBNut2mNygDgHwvYHfFLn6Oxb3VWj2rA==", - "dependencies": { - "chalk": "^5.0.0", - "is-unicode-supported": "^1.1.0" - }, - "engines": { - "node": ">=12" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - }, - "node_modules/@vscode/test-electron/node_modules/ora": { - "version": "7.0.1", - "resolved": "https://registry.npmjs.org/ora/-/ora-7.0.1.tgz", - "integrity": "sha512-0TUxTiFJWv+JnjWm4o9yvuskpEJLXTcng8MJuKd+SzAzp2o+OP3HWqNhB4OdJRt1Vsd9/mR0oyaEYlOnL7XIRw==", - "dependencies": { - "chalk": "^5.3.0", - "cli-cursor": "^4.0.0", - "cli-spinners": "^2.9.0", - "is-interactive": "^2.0.0", - "is-unicode-supported": "^1.3.0", - "log-symbols": "^5.1.0", - "stdin-discarder": "^0.1.0", - "string-width": "^6.1.0", - "strip-ansi": "^7.1.0" - }, - "engines": { - "node": ">=16" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - }, - "node_modules/@vscode/test-electron/node_modules/restore-cursor": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/restore-cursor/-/restore-cursor-4.0.0.tgz", - "integrity": "sha512-I9fPXU9geO9bHOt9pHHOhOkYerIMsmVaWB0rA2AI9ERh/+x/i7MV5HKBNrg+ljO5eoPVgCcnFuRjJ9uH6I/3eg==", - "dependencies": { - "onetime": "^5.1.0", - "signal-exit": "^3.0.2" - }, - "engines": { - "node": "^12.20.0 || ^14.13.1 || >=16.0.0" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - }, - "node_modules/@vscode/test-electron/node_modules/string-width": { - "version": "6.1.0", - "resolved": "https://registry.npmjs.org/string-width/-/string-width-6.1.0.tgz", - "integrity": "sha512-k01swCJAgQmuADB0YIc+7TuatfNvTBVOoaUWJjTB9R4VJzR5vNWzf5t42ESVZFPS8xTySF7CAdV4t/aaIm3UnQ==", - "dependencies": { - "eastasianwidth": "^0.2.0", - "emoji-regex": "^10.2.1", - "strip-ansi": "^7.0.1" - }, - "engines": { - "node": ">=16" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - }, "node_modules/@vscode/vsce": { "version": "2.32.0", "resolved": "https://registry.npmjs.org/@vscode/vsce/-/vsce-2.32.0.tgz", @@ -3599,6 +3448,7 @@ "resolved": "https://registry.npmjs.org/ansi-colors/-/ansi-colors-4.1.3.tgz", "integrity": "sha512-/6w/C21Pm1A7aZitlI5Ni/2J6FFQN8i1Cvz3kHABAAbw93v/NlvKdVOqz7CCWz/3iv/JplRSEEZ83XION15ovw==", "dev": true, + "peer": true, "engines": { "node": ">=6" } @@ -4039,7 +3889,8 @@ "version": "1.3.1", "resolved": "https://registry.npmjs.org/browser-stdout/-/browser-stdout-1.3.1.tgz", "integrity": "sha512-qhAVI1+Av2X7qelOfAIYwXONood6XlZE/fXaBSmW/T5SzLAmCgzi+eiWE7fUvbHaeNBQH13UftjpXxsfLkMpgw==", - "dev": true + "dev": true, + "peer": true }, "node_modules/buffer": { "version": "5.7.1", @@ -4308,6 +4159,7 @@ "resolved": "https://registry.npmjs.org/camelcase/-/camelcase-6.3.0.tgz", "integrity": "sha512-Gmy6FhYlCY7uOElZUSbxo2UCDH8owEk996gkbrpsgGtrJLM3J7jGxl9Ic7Qwwj4ivOE5AWZWRMecDdF7hqGjFA==", "dev": true, + "peer": true, "engines": { "node": ">=10" }, @@ -5156,7 +5008,8 @@ "node_modules/core-util-is": { "version": "1.0.3", "resolved": "https://registry.npmjs.org/core-util-is/-/core-util-is-1.0.3.tgz", - "integrity": "sha512-ZQBvi1DcpJ4GDqanjucZ2Hj3wEO5pZDS89BWbkcrvdxksJorwUDDZamX9ldFkp9aw2lmBDLgkObEA4DWNJ9FYQ==" + "integrity": "sha512-ZQBvi1DcpJ4GDqanjucZ2Hj3wEO5pZDS89BWbkcrvdxksJorwUDDZamX9ldFkp9aw2lmBDLgkObEA4DWNJ9FYQ==", + "dev": true }, "node_modules/cors": { "version": "2.8.5", @@ -5330,6 +5183,7 @@ "resolved": "https://registry.npmjs.org/decamelize/-/decamelize-4.0.0.tgz", "integrity": "sha512-9iE1PgSik9HeIIw2JO94IidnE3eBoQrFJ3w7sFuzSX4DpmZ3v5sZpUiV5Swcf6mQEF+Y0ru8Neo+p+nyh2J+hQ==", "dev": true, + "peer": true, "engines": { "node": ">=10" }, @@ -6666,6 +6520,7 @@ "resolved": "https://registry.npmjs.org/flat/-/flat-5.0.2.tgz", "integrity": "sha512-b6suED+5/3rTpUBdG1gupIl8MPFCAMA0QXwmljLhvCUKcUvdE4gWky9zpuGCcXHOsz4J9wPGNWq6OKpmIzz3hQ==", "dev": true, + "peer": true, "bin": { "flat": "cli.js" } @@ -7279,6 +7134,7 @@ "resolved": "https://registry.npmjs.org/he/-/he-1.2.0.tgz", "integrity": "sha512-F/1DnUGPopORZi0ni+CvrCgHQ5FyEAHRLSApuYWMmrbSwoN2Mn/7k+Gl38gJnR7yyDZk6WLXwiGod1JOWNDKGw==", "dev": true, + "peer": true, "bin": { "he": "bin/he" } @@ -7550,7 +7406,8 @@ "node_modules/immediate": { "version": "3.0.6", "resolved": "https://registry.npmjs.org/immediate/-/immediate-3.0.6.tgz", - "integrity": "sha512-XXOFtyqDjNDAQxVfYxuF7g9Il/IbWmmlQg2MYKOH8ExIT1qg6xc4zyS3HaEEATgs1btfzxq15ciUiY7gjSXRGQ==" + "integrity": "sha512-XXOFtyqDjNDAQxVfYxuF7g9Il/IbWmmlQg2MYKOH8ExIT1qg6xc4zyS3HaEEATgs1btfzxq15ciUiY7gjSXRGQ==", + "dev": true }, "node_modules/immer": { "version": "9.0.21", @@ -7955,7 +7812,8 @@ "node_modules/isarray": { "version": "1.0.0", "resolved": "https://registry.npmjs.org/isarray/-/isarray-1.0.0.tgz", - "integrity": "sha512-VLghIWNM6ELQzo7zwmcg0NmTVyWKYjvIeM83yjp0wRDTmUnrM678fQbcKBo6n2CJEF0szoG//ytg+TKla89ALQ==" + "integrity": "sha512-VLghIWNM6ELQzo7zwmcg0NmTVyWKYjvIeM83yjp0wRDTmUnrM678fQbcKBo6n2CJEF0szoG//ytg+TKla89ALQ==", + "dev": true }, "node_modules/isexe": { "version": "2.0.0", @@ -8301,6 +8159,7 @@ "version": "3.10.1", "resolved": "https://registry.npmjs.org/jszip/-/jszip-3.10.1.tgz", "integrity": "sha512-xXDvecyTpGLrqFrvkrUSoxxfJI5AH7U8zxxtVclpsUtMCq4JQ290LY8AW5c7Ggnr/Y/oK+bQMbqK2qmtk3pN4g==", + "dev": true, "dependencies": { "lie": "~3.3.0", "pako": "~1.0.2", @@ -8391,6 +8250,7 @@ "version": "3.3.0", "resolved": "https://registry.npmjs.org/lie/-/lie-3.3.0.tgz", "integrity": "sha512-UaiMJzeWRlEujzAuw5LokY1L5ecNQYZKfmyZ9L7wDHb/p5etKaxXhohBcrw0EYby+G/NA52vRSN4N39dxHAIwQ==", + "dev": true, "dependencies": { "immediate": "~3.0.5" } @@ -9440,6 +9300,7 @@ "resolved": "https://registry.npmjs.org/mocha/-/mocha-10.8.2.tgz", "integrity": "sha512-VZlYo/WE8t1tstuRmqgeyBgCbJc/lEdopaa+axcKzTBJ+UIdlAB9XnmvTCAH4pwR4ElNInaedhEBmZD8iCSVEg==", "dev": true, + "peer": true, "dependencies": { "ansi-colors": "^4.1.3", "browser-stdout": "^1.3.1", @@ -9475,6 +9336,7 @@ "resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-5.0.1.tgz", "integrity": "sha512-quJQXlTSUGL2LH9SUXo8VwsY4soanhgo6LNSm84E1LBcE8s3O0wpdiRzyR9z/ZZJMlMWv37qOOb9pdJlMUEKFQ==", "dev": true, + "peer": true, "engines": { "node": ">=8" } @@ -9484,6 +9346,7 @@ "resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-2.0.1.tgz", "integrity": "sha512-XnAIvQ8eM+kC6aULx6wuQiwVsnzsi9d3WxzV3FpWTGA19F621kwdbsAcFKXgKUHZWsy+mY6iL1sHTxWEFCytDA==", "dev": true, + "peer": true, "dependencies": { "balanced-match": "^1.0.0" } @@ -9493,6 +9356,7 @@ "resolved": "https://registry.npmjs.org/cliui/-/cliui-7.0.4.tgz", "integrity": "sha512-OcRE68cOsVMXp1Yvonl/fzkQOyjLSu/8bhPDfQt0e0/Eb283TKP20Fs2MqoPsr9SwA595rRCA+QMzYc9nBP+JQ==", "dev": true, + "peer": true, "dependencies": { "string-width": "^4.2.0", "strip-ansi": "^6.0.0", @@ -9504,6 +9368,7 @@ "resolved": "https://registry.npmjs.org/diff/-/diff-5.2.0.tgz", "integrity": "sha512-uIFDxqpRZGZ6ThOk84hEfqWoHx2devRFvpTZcTHur85vImfaxUbTW9Ryh4CpCuDnToOP1CEtXKIgytHBPVff5A==", "dev": true, + "peer": true, "engines": { "node": ">=0.3.1" } @@ -9513,6 +9378,7 @@ "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-5.1.6.tgz", "integrity": "sha512-lKwV/1brpG6mBUFHtb7NUmtABCb2WZZmm2wNiOA5hAb8VdCS4B3dtMWyvcoViccwAW/COERjXLt0zP1zXUN26g==", "dev": true, + "peer": true, "dependencies": { "brace-expansion": "^2.0.1" }, @@ -9525,6 +9391,7 @@ "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-6.0.1.tgz", "integrity": "sha512-Y38VPSHcqkFrCpFnQ9vuSXmquuv5oXOKpGeT6aGrr3o3Gc9AlVa6JBfUSOCnbxGGZF+/0ooI7KrPuUSztUdU5A==", "dev": true, + "peer": true, "dependencies": { "ansi-regex": "^5.0.1" }, @@ -9537,6 +9404,7 @@ "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-8.1.1.tgz", "integrity": "sha512-MpUEN2OodtUzxvKQl72cUF7RQ5EiHsGvSsVG0ia9c5RbWGL2CI4C7EpPS8UTBIplnlzZiNuV56w+FuNxy3ty2Q==", "dev": true, + "peer": true, "dependencies": { "has-flag": "^4.0.0" }, @@ -9552,6 +9420,7 @@ "resolved": "https://registry.npmjs.org/wrap-ansi/-/wrap-ansi-7.0.0.tgz", "integrity": "sha512-YVGIj2kamLSTxw6NsZjoBxfSwsn0ycdesmc4p+Q21c5zPuZ1pl+NfxVdxPtdHvmNVOQ6XSYG4AUtyt/Fi7D16Q==", "dev": true, + "peer": true, "dependencies": { "ansi-styles": "^4.0.0", "string-width": "^4.1.0", @@ -9569,6 +9438,7 @@ "resolved": "https://registry.npmjs.org/yargs/-/yargs-16.2.0.tgz", "integrity": "sha512-D1mvvtDG0L5ft/jGWkLpG1+m0eQxOfaBvTNELraWj22wSVUMWxZUvYgJYcKh6jGGIkJFhH4IZPQhR4TKpc8mBw==", "dev": true, + "peer": true, "dependencies": { "cliui": "^7.0.2", "escalade": "^3.1.1", @@ -10559,7 +10429,8 @@ "node_modules/pako": { "version": "1.0.11", "resolved": "https://registry.npmjs.org/pako/-/pako-1.0.11.tgz", - "integrity": "sha512-4hLB8Py4zZce5s4yd9XzopqwVv/yGNhV1Bl8NTmCq1763HeK2+EwVTv+leGeL13Dnh2wfbqowVPXCIO0z4taYw==" + "integrity": "sha512-4hLB8Py4zZce5s4yd9XzopqwVv/yGNhV1Bl8NTmCq1763HeK2+EwVTv+leGeL13Dnh2wfbqowVPXCIO0z4taYw==", + "dev": true }, "node_modules/parent-module": { "version": "1.0.1", @@ -11159,7 +11030,8 @@ "node_modules/process-nextick-args": { "version": "2.0.1", "resolved": "https://registry.npmjs.org/process-nextick-args/-/process-nextick-args-2.0.1.tgz", - "integrity": "sha512-3ouUOpQhtgrbOa17J7+uxOTpITYWaGP7/AhoR3+A+/1e9skrzelGi/dXzEYyvbxubEF6Wn2ypscTKiKJFFn1ag==" + "integrity": "sha512-3ouUOpQhtgrbOa17J7+uxOTpITYWaGP7/AhoR3+A+/1e9skrzelGi/dXzEYyvbxubEF6Wn2ypscTKiKJFFn1ag==", + "dev": true }, "node_modules/promise-inflight": { "version": "1.0.1", @@ -11364,6 +11236,7 @@ "resolved": "https://registry.npmjs.org/randombytes/-/randombytes-2.1.0.tgz", "integrity": "sha512-vYl3iOX+4CKUWuxGi9Ukhie6fsqXqS9FE2Zaic4tNFD2N2QQaXOMFbuKK4QmDHC0JO6B1Zp41J0LpT0oR68amQ==", "dev": true, + "peer": true, "dependencies": { "safe-buffer": "^5.1.0" } @@ -11572,6 +11445,7 @@ "version": "2.3.8", "resolved": "https://registry.npmjs.org/readable-stream/-/readable-stream-2.3.8.tgz", "integrity": "sha512-8p0AUk4XODgIewSi0l8Epjs+EVnWiK7NoDIEGU0HhE7+ZyY8D1IMY7odu5lRrFXGg71L15KG8QrPmum45RTtdA==", + "dev": true, "dependencies": { "core-util-is": "~1.0.0", "inherits": "~2.0.3", @@ -11585,7 +11459,8 @@ "node_modules/readable-stream/node_modules/safe-buffer": { "version": "5.1.2", "resolved": "https://registry.npmjs.org/safe-buffer/-/safe-buffer-5.1.2.tgz", - "integrity": "sha512-Gd2UZBJDkXlY7GbJxfsE8/nvKkUEU1G38c1siN6QP6a9PT9MmHB8GnpscSmMJSoF8LOIrt8ud/wPtojys4G6+g==" + "integrity": "sha512-Gd2UZBJDkXlY7GbJxfsE8/nvKkUEU1G38c1siN6QP6a9PT9MmHB8GnpscSmMJSoF8LOIrt8ud/wPtojys4G6+g==", + "dev": true }, "node_modules/readdirp": { "version": "3.6.0", @@ -12125,6 +12000,7 @@ "resolved": "https://registry.npmjs.org/serialize-javascript/-/serialize-javascript-6.0.2.tgz", "integrity": "sha512-Saa1xPByTTq2gdeFZYLLo+RFE35NHZkAbqZeWNd3BpzppeVisAqpDjcp8dyf6uIvEqJRd46jemmyA4iFIeVk8g==", "dev": true, + "peer": true, "dependencies": { "randombytes": "^2.1.0" } @@ -12168,7 +12044,8 @@ "node_modules/setimmediate": { "version": "1.0.5", "resolved": "https://registry.npmjs.org/setimmediate/-/setimmediate-1.0.5.tgz", - "integrity": "sha512-MATJdZp8sLqDl/68LfQmbP8zKPLQNV6BIZoIgrscFDQ+RsvK/BxeDQOgyxKKoh0y/8h3BqVFnCqQ/gd+reiIXA==" + "integrity": "sha512-MATJdZp8sLqDl/68LfQmbP8zKPLQNV6BIZoIgrscFDQ+RsvK/BxeDQOgyxKKoh0y/8h3BqVFnCqQ/gd+reiIXA==", + "dev": true }, "node_modules/setprototypeof": { "version": "1.2.0", @@ -12499,66 +12376,6 @@ "integrity": "sha512-UGvjygr6F6tpH7o2qyqR6QYpwraIjKSdtzyBdyytFOHmPZY917kwdwLG0RbOjWOnKmnm3PeHjaoLLMie7kPLQw==", "license": "MIT" }, - "node_modules/stdin-discarder": { - "version": "0.1.0", - "resolved": "https://registry.npmjs.org/stdin-discarder/-/stdin-discarder-0.1.0.tgz", - "integrity": "sha512-xhV7w8S+bUwlPTb4bAOUQhv8/cSS5offJuX8GQGq32ONF0ZtDWKfkdomM3HMRA+LhX6um/FZ0COqlwsjD53LeQ==", - "dependencies": { - "bl": "^5.0.0" - }, - "engines": { - "node": "^12.20.0 || ^14.13.1 || >=16.0.0" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - }, - "node_modules/stdin-discarder/node_modules/bl": { - "version": "5.1.0", - "resolved": "https://registry.npmjs.org/bl/-/bl-5.1.0.tgz", - "integrity": "sha512-tv1ZJHLfTDnXE6tMHv73YgSJaWR2AFuPwMntBe7XL/GBFHnT0CLnsHMogfk5+GzCDC5ZWarSCYaIGATZt9dNsQ==", - "dependencies": { - "buffer": "^6.0.3", - "inherits": "^2.0.4", - "readable-stream": "^3.4.0" - } - }, - "node_modules/stdin-discarder/node_modules/buffer": { - "version": "6.0.3", - "resolved": "https://registry.npmjs.org/buffer/-/buffer-6.0.3.tgz", - "integrity": "sha512-FTiCpNxtwiZZHEZbcbTIcZjERVICn9yq/pDFkTl95/AxzD1naBctN7YO68riM/gLSDY7sdrMby8hofADYuuqOA==", - "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": { - "base64-js": "^1.3.1", - "ieee754": "^1.2.1" - } - }, - "node_modules/stdin-discarder/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==", - "dependencies": { - "inherits": "^2.0.3", - "string_decoder": "^1.1.1", - "util-deprecate": "^1.0.1" - }, - "engines": { - "node": ">= 6" - } - }, "node_modules/stoppable": { "version": "1.1.0", "resolved": "https://registry.npmjs.org/stoppable/-/stoppable-1.1.0.tgz", @@ -16688,7 +16505,8 @@ "version": "6.5.1", "resolved": "https://registry.npmjs.org/workerpool/-/workerpool-6.5.1.tgz", "integrity": "sha512-Fs4dNYcsdpYSAfVxhnl1L5zTksjvOJxtC5hzMNl+1t9B8hTJTdKDyZ5ju7ztgPy+ft9tBFXoOlDNiOT9WUXZlA==", - "dev": true + "dev": true, + "peer": true }, "node_modules/wrap-ansi": { "version": "6.2.0", @@ -16892,6 +16710,7 @@ "resolved": "https://registry.npmjs.org/yargs-unparser/-/yargs-unparser-2.0.0.tgz", "integrity": "sha512-7pRTIA9Qc1caZ0bZ6RYRGbHJthJWuakf+WmHK0rVeLkNrrGhfoabBNdue6kdINI6r4if7ocq9aD/n7xwKOdzOA==", "dev": true, + "peer": true, "dependencies": { "camelcase": "^6.0.0", "decamelize": "^4.0.0", @@ -16907,6 +16726,7 @@ "resolved": "https://registry.npmjs.org/is-plain-obj/-/is-plain-obj-2.1.0.tgz", "integrity": "sha512-YWnfyRwxL/+SsrWYfOpUtz5b3YD+nyfkHvjbcanzk8zgyO4ASD67uVMRt8k5bM4lLMDnXfriRhOpemw+NfT1eA==", "dev": true, + "peer": true, "engines": { "node": ">=8" } diff --git a/extensions/vscode/package.json b/extensions/vscode/package.json index e4fdccca3..dd9265def 100644 --- a/extensions/vscode/package.json +++ b/extensions/vscode/package.json @@ -622,10 +622,8 @@ "rebuild": "electron-rebuild -v 19.1.8 node-pty", "lint": "eslint src --ext ts", "lint:fix": "eslint . --ext ts --fix", - "build-test": "npm run esbuild && node esbuild.test.mjs", - "test": "npm run build-test && node ./out/runTestOnVSCodeHost.js", + "test": "vitest run", "vitest": "vitest run", - "quick-test": "npm run build-test && node ./out/runTestOnVSCodeHost.js", "write-build-timestamp": "node scripts/write-build-timestamp.js", "prepackage": "node scripts/prepackage.js", "package": "node scripts/package.js", @@ -661,8 +659,6 @@ "@types/cors": "^2.8.17", "@types/express": "^4.17.21", "@types/follow-redirects": "^1.14.4", - "@types/glob": "^8.0.0", - "@types/mocha": "^10.0.6", "@types/node": "16.x", "@types/react-dom": "^18.2.4", "@types/request": "^2.48.8", @@ -675,9 +671,7 @@ "esbuild": "0.17.19", "esbuild-visualizer": "^0.6.0", "eslint": "^8.28.0", - "glob": "^8.0.3", "json-schema-to-typescript": "^12.0.0", - "mocha": "^10.4.0", "ovsx": "^0.8.3", "rimraf": "^5.0.5", "typescript": "^5.6.3", @@ -692,7 +686,6 @@ "@types/node-fetch": "^2.6.11", "@types/uuid": "^9.0.8", "@vscode/ripgrep": "^1.15.9", - "@vscode/test-electron": "^2.3.9", "axios": "^1.2.5", "core": "file:../../core", "cors": "^2.8.5", diff --git a/extensions/vscode/src/test/runner/mochaRunner.ts b/extensions/vscode/src/test/runner/mochaRunner.ts deleted file mode 100644 index 1056ed6b7..000000000 --- a/extensions/vscode/src/test/runner/mochaRunner.ts +++ /dev/null @@ -1,49 +0,0 @@ -import * as path from "node:path"; - -import * as glob from "glob"; -import Mocha from "mocha"; - -export function run() { - // Avoid timing out when stopping on breakpoints during debugging in VSCode - const timeoutOption = process.env.MOCHA_TIMEOUT - ? Number.parseInt(process.env.MOCHA_TIMEOUT) - : // : undefined; - 30_000; - - // Create the mocha test - const mocha = new Mocha({ - ui: "tdd", - color: true, - timeout: timeoutOption, - }); - - // See esbuild.test.mjs for more details - // Assumes this file is in out/test/runner/mochaRunner.js - const compiledTestSuitesDirectory = path.resolve(__dirname); - - glob - .sync("**/**.test.js", { cwd: compiledTestSuitesDirectory }) - .forEach((file) => { - mocha.addFile(path.resolve(compiledTestSuitesDirectory, file)); - }); - - console.log( - `Testing files in ${compiledTestSuitesDirectory}: ${mocha.files}`, - ); - - return new Promise((resolve, reject) => { - try { - // Run the mocha test - mocha.run((failures) => { - if (failures > 0) { - reject(new Error(`${failures} tests failed.`)); - } else { - resolve(); - } - }); - } catch (err) { - console.error(err); - reject(err); - } - }); -} diff --git a/extensions/vscode/src/test/runner/runTestOnVSCodeHost.ts b/extensions/vscode/src/test/runner/runTestOnVSCodeHost.ts deleted file mode 100644 index f6174e087..000000000 --- a/extensions/vscode/src/test/runner/runTestOnVSCodeHost.ts +++ /dev/null @@ -1,127 +0,0 @@ -import fs from "node:fs"; -import * as path from "node:path"; - -import { runTests } from "@vscode/test-electron"; -import { defaultConfig } from "core/config/default"; - -export const testWorkspacePath = path.resolve( - __dirname, - "..", - "src", - "test", - "fixtures", - "test-workspace", -); - -const continueGlobalDir = path.resolve( - __dirname, - "..", - "src", - "test", - "fixtures", - ".continue", -); - -function setupTestWorkspace() { - if (fs.existsSync(testWorkspacePath)) { - fs.rmSync(testWorkspacePath, { recursive: true }); - } - fs.mkdirSync(testWorkspacePath, { - recursive: true, - }); - - fs.writeFileSync( - path.join(testWorkspacePath, "test.py"), - "print('Hello World!')", - ); - fs.writeFileSync( - path.join(testWorkspacePath, "index.js"), - "console.log('Hello World!')", - ); - fs.writeFileSync( - path.join(testWorkspacePath, "test.py"), - "print('Hello World!')", - ); - fs.mkdirSync(path.join(testWorkspacePath, "test-folder")); - fs.writeFileSync( - path.join(testWorkspacePath, "test-folder", "test.js"), - "console.log('Hello World!')", - ); -} - -function setupContinueGlobalDir() { - if (fs.existsSync(continueGlobalDir)) { - fs.rmSync(continueGlobalDir, { recursive: true }); - } - fs.mkdirSync(continueGlobalDir, { - recursive: true, - }); - fs.writeFileSync( - path.join(continueGlobalDir, "config.json"), - JSON.stringify({ - ...defaultConfig, - models: [ - { - title: "Test Model", - provider: "openai", - model: "gpt-3.5-turbo", - apiKey: "API_KEY", - }, - ], - }), - ); -} - -function cleanupTestWorkspace() { - if (fs.existsSync(testWorkspacePath)) { - fs.rmSync(testWorkspacePath, { recursive: true }); - } -} - -function cleanupContinueGlobalDir() { - if (fs.existsSync(continueGlobalDir)) { - fs.rmSync(continueGlobalDir, { recursive: true }); - } -} - -async function main() { - try { - // The folder containing the Extension Manifest package.json - // Passed to `--extensionDevelopmentPath` - - // Assumes this file is in out/runTestOnVSCodeHost.js - const extensionDevelopmentPath = path.resolve(__dirname, "../"); - console.log("extensionDevelopmentPath", extensionDevelopmentPath); - - // The path to test runner - // Passed to --extensionTestsPath - const extensionTestsPath = path.resolve( - extensionDevelopmentPath, - "out/mochaRunner", - ); - - const extensionTestsEnv = { - NODE_ENV: "test", - CONTINUE_GLOBAL_DIR: continueGlobalDir, - }; - - setupTestWorkspace(); - setupContinueGlobalDir(); - - // Download VS Code, unzip it and run the integration test - await runTests({ - extensionDevelopmentPath, - extensionTestsPath, - extensionTestsEnv, - launchArgs: [testWorkspacePath], - }); - } catch (err) { - console.error("Failed to run tests", err); - process.exit(1); - } finally { - cleanupTestWorkspace(); - cleanupContinueGlobalDir(); - } -} - -main(); diff --git a/extensions/vscode/src/test/test-suites/ideUtils.test.ts b/extensions/vscode/src/test/test-suites/ideUtils.test.ts deleted file mode 100644 index 37ba5cc33..000000000 --- a/extensions/vscode/src/test/test-suites/ideUtils.test.ts +++ /dev/null @@ -1,89 +0,0 @@ -import assert from "node:assert"; -import path from "node:path"; - -import { describe, test } from "mocha"; -import * as vscode from "vscode"; - -import { VsCodeIdeUtils } from "../../util/ideUtils"; -import { testWorkspacePath } from "../runner/runTestOnVSCodeHost"; - -const util = require("node:util"); -const asyncExec = util.promisify(require("node:child_process").exec); - -/* - TODO check uri => path assumptions, will only work in some environments. -*/ -describe("IDE Utils", () => { - const utils = new VsCodeIdeUtils(); - const testPyPath = path.join(testWorkspacePath, "test.py"); - const testJsPath = path.join(testWorkspacePath, "test-folder", "test.js"); - - test("getWorkspaceDirectories", async () => { - const [dir] = utils.getWorkspaceDirectories(); - assert(dir.toString().endsWith("test-workspace")); - }); - - test("fileExists", async () => { - const exists2 = await utils.fileExists( - vscode.Uri.file(path.join(testWorkspacePath, "test.py")), - ); - assert(exists2); - }); - - test("getOpenFiles", async () => { - let openFiles = utils.getOpenFiles(); - assert(openFiles.length === 0); - // await utils.openFile(testPyPath); - let document = await vscode.workspace.openTextDocument(testPyPath); - await vscode.window.showTextDocument(document, { - preview: false, - }); - openFiles = utils.getOpenFiles(); - assert(openFiles.length === 1); - assert(openFiles[0].fsPath === testPyPath); - - document = await vscode.workspace.openTextDocument(testJsPath); - await vscode.window.showTextDocument(document, { - preview: false, - }); - openFiles = utils.getOpenFiles(); - assert(openFiles.length === 2); - assert(openFiles.find((f) => f.fsPath === testPyPath)); - assert(openFiles.find((f) => f.fsPath === testJsPath)); - }); - - test("getUniqueId", async () => { - const uniqueId = utils.getUniqueId(); - assert(uniqueId.length === 64); - const regex = /^[a-z0-9]+$/; - assert(regex.test(uniqueId)); - }); - - test.skip("getTerminalContents", async () => { - await new Promise((resolve) => setTimeout(resolve, 1000)); - const terminal = vscode.window.createTerminal(); - await new Promise((resolve) => setTimeout(resolve, 1000)); - terminal.show(); - await new Promise((resolve) => setTimeout(resolve, 1000)); - terminal.sendText("echo abcdefg", true); - const contents = await utils.getTerminalContents(1); - console.log("TERMINAL CONTENTS: ", contents); - assert(contents.includes("abcdefg")); - terminal.dispose(); - }); - - test("noDiff", async () => { - const noDiff = await utils.getDiff(false); - assert(noDiff.length === 0); - }); - - test.skip("getBranch", async () => { - const uri = vscode.Uri.file(testWorkspacePath); - const branch = await utils.getBranch(uri); - assert(typeof branch === "string"); - const { stdout } = await asyncExec("git rev-parse --abbrev-ref HEAD", { - cwd: __dirname, - }); - assert(branch === stdout?.trim()); - }); -}); diff --git a/extensions/vscode/tsconfig.json b/extensions/vscode/tsconfig.json index a7a58f894..e1bb6378c 100644 --- a/extensions/vscode/tsconfig.json +++ b/extensions/vscode/tsconfig.json @@ -9,11 +9,9 @@ "strict": true, "esModuleInterop": true, "resolveJsonModule": true, - "skipLibCheck": true, - "types": ["mocha"] // This solves conflict between jest and mocha: https://github.com/cypress-io/cypress/issues/7435#issuecomment-631695007 + "skipLibCheck": true }, "include": ["src/**/*", "../../core/**/*.ts", "../../core/**/*.d.ts"], - // core/test uses @types/jest, which conflicts with @types/mocha "exclude": [ "../../core/dist/**/*", "../../core/**/*.test.ts", From 515e1f5dd2109054e9a6defb87c84b8c18d316df Mon Sep 17 00:00:00 2001 From: Dallin Romney Date: Tue, 17 Jun 2025 14:57:47 -0700 Subject: [PATCH 23/91] reinstate mocha tests --- extensions/vscode/package-lock.json | 28 ++++++++++++++++++++-------- extensions/vscode/package.json | 5 +++-- extensions/vscode/tsconfig.json | 4 +++- 3 files changed, 26 insertions(+), 11 deletions(-) diff --git a/extensions/vscode/package-lock.json b/extensions/vscode/package-lock.json index 317dec4e3..2be8501ef 100644 --- a/extensions/vscode/package-lock.json +++ b/extensions/vscode/package-lock.json @@ -13,8 +13,6 @@ "@continuedev/fetch": "^1.0.10", "@electron/rebuild": "^3.2.10", "@reduxjs/toolkit": "^1.9.3", - "@types/node-fetch": "^2.6.11", - "@types/uuid": "^9.0.8", "@vscode/ripgrep": "^1.15.9", "axios": "^1.2.5", "core": "file:../../core", @@ -69,9 +67,12 @@ "@types/cors": "^2.8.17", "@types/express": "^4.17.21", "@types/follow-redirects": "^1.14.4", + "@types/mocha": "^10.0.10", "@types/node": "16.x", + "@types/node-fetch": "^2.6.12", "@types/react-dom": "^18.2.4", "@types/request": "^2.48.8", + "@types/uuid": "^10.0.0", "@types/vscode": "1.70", "@types/ws": "^8.5.4", "@typescript-eslint/eslint-plugin": "^5.45.0", @@ -2526,6 +2527,13 @@ "integrity": "sha512-K0VQKziLUWkVKiRVrx4a40iPaxTUefQmjtkQofBkYRcoaaL/8rhwDWww9qWbrgicNOgnpIsMxyNIUM4+n6dUIA==", "dev": true }, + "node_modules/@types/mocha": { + "version": "10.0.10", + "resolved": "https://registry.npmjs.org/@types/mocha/-/mocha-10.0.10.tgz", + "integrity": "sha512-xPyYSz1cMPnJQhl0CLMH68j3gprKZaTjG3s5Vi+fDgx+uhG9NOXwbVt52eFS8ECyXhyKcjDLCBEqBExKuiZb7Q==", + "dev": true, + "license": "MIT" + }, "node_modules/@types/ms": { "version": "0.7.34", "resolved": "https://registry.npmjs.org/@types/ms/-/ms-0.7.34.tgz", @@ -2537,9 +2545,11 @@ "integrity": "sha512-ia7V9a2FnhUFfetng4/sRPBMTwHZUkPFY736rb1cg9AgG7MZdR97q7/nLR9om+sq5f1la9C857E0l/nrI0RiFQ==" }, "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==", + "version": "2.6.12", + "resolved": "https://registry.npmjs.org/@types/node-fetch/-/node-fetch-2.6.12.tgz", + "integrity": "sha512-8nneRWKCg3rMtF69nLQJnOYUcbafYeFSjqkw3jCRLsqkWFlHaoQrr5mXmofFGOx3DKn7UfmBMyov8ySvLRVldA==", + "dev": true, + "license": "MIT", "dependencies": { "@types/node": "*", "form-data": "^4.0.0" @@ -2696,9 +2706,11 @@ "integrity": "sha512-EwmlvuaxPNej9+T4v5AuBPJa2x2UOJVdjCtDHgcDqitUeOtjnJKJ+apYjVcAoBEMjKW1VVFGZLUb5+qqa09XFA==" }, "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==" + "version": "10.0.0", + "resolved": "https://registry.npmjs.org/@types/uuid/-/uuid-10.0.0.tgz", + "integrity": "sha512-7gqG38EyHgyP1S+7+xomFtL+ZNHcKv6DwNaCZmJmo1vgMugyF3TCnXVg4t1uk89mLNwnLtnY3TpOpCOyp1/xHQ==", + "dev": true, + "license": "MIT" }, "node_modules/@types/vscode": { "version": "1.70.0", diff --git a/extensions/vscode/package.json b/extensions/vscode/package.json index dd9265def..46b12b4f5 100644 --- a/extensions/vscode/package.json +++ b/extensions/vscode/package.json @@ -659,9 +659,12 @@ "@types/cors": "^2.8.17", "@types/express": "^4.17.21", "@types/follow-redirects": "^1.14.4", + "@types/mocha": "^10.0.10", "@types/node": "16.x", + "@types/node-fetch": "^2.6.12", "@types/react-dom": "^18.2.4", "@types/request": "^2.48.8", + "@types/uuid": "^10.0.0", "@types/vscode": "1.70", "@types/ws": "^8.5.4", "@typescript-eslint/eslint-plugin": "^5.45.0", @@ -683,8 +686,6 @@ "@continuedev/fetch": "^1.0.10", "@electron/rebuild": "^3.2.10", "@reduxjs/toolkit": "^1.9.3", - "@types/node-fetch": "^2.6.11", - "@types/uuid": "^9.0.8", "@vscode/ripgrep": "^1.15.9", "axios": "^1.2.5", "core": "file:../../core", diff --git a/extensions/vscode/tsconfig.json b/extensions/vscode/tsconfig.json index e1bb6378c..a7a58f894 100644 --- a/extensions/vscode/tsconfig.json +++ b/extensions/vscode/tsconfig.json @@ -9,9 +9,11 @@ "strict": true, "esModuleInterop": true, "resolveJsonModule": true, - "skipLibCheck": true + "skipLibCheck": true, + "types": ["mocha"] // This solves conflict between jest and mocha: https://github.com/cypress-io/cypress/issues/7435#issuecomment-631695007 }, "include": ["src/**/*", "../../core/**/*.ts", "../../core/**/*.d.ts"], + // core/test uses @types/jest, which conflicts with @types/mocha "exclude": [ "../../core/dist/**/*", "../../core/**/*.test.ts", From 57e329b66d61dbfd5164686160f302112bf17a95 Mon Sep 17 00:00:00 2001 From: Dallin Romney Date: Wed, 18 Jun 2025 21:33:05 -0700 Subject: [PATCH 24/91] chat test progress --- .../TipTapEditor/utils/editorConfig.ts | 3 +- gui/src/context/MockIdeMessenger.ts | 30 ++- gui/src/pages/gui/Chat.test.tsx | 190 ++++++++---------- .../gui/chat-tests/ApplyScenarios.test.tsx | 44 ++++ .../gui/chat-tests/EditToolScenarios.test.tsx | 1 + gui/src/redux/slices/profiles/slice.ts | 4 +- gui/src/util/test/config.ts | 73 +++++++ 7 files changed, 234 insertions(+), 111 deletions(-) create mode 100644 gui/src/pages/gui/chat-tests/ApplyScenarios.test.tsx create mode 100644 gui/src/pages/gui/chat-tests/EditToolScenarios.test.tsx create mode 100644 gui/src/util/test/config.ts diff --git a/gui/src/components/mainInput/TipTapEditor/utils/editorConfig.ts b/gui/src/components/mainInput/TipTapEditor/utils/editorConfig.ts index 774a95446..2d7b134bd 100644 --- a/gui/src/components/mainInput/TipTapEditor/utils/editorConfig.ts +++ b/gui/src/components/mainInput/TipTapEditor/utils/editorConfig.ts @@ -332,7 +332,8 @@ export function createEditorConfig(options: { ], editorProps: { attributes: { - class: "outline-none overflow-hidden", + "data-testid": `editor-input-${props.isMainInput ? "main" : props.inputId}`, + class: "ProseMirror outline-none overflow-hidden", style: `font-size: ${getFontSize()}px;`, }, }, diff --git a/gui/src/context/MockIdeMessenger.ts b/gui/src/context/MockIdeMessenger.ts index 0e92384f1..bc46aebc0 100644 --- a/gui/src/context/MockIdeMessenger.ts +++ b/gui/src/context/MockIdeMessenger.ts @@ -109,16 +109,34 @@ export class MockIdeMessenger implements IIdeMessenger { ); } - async *llmStreamChat( - msg: ToCoreProtocol["llm/streamChat"][0], - cancelToken: AbortSignal, - ): AsyncGenerator { - yield [ + // Ability to customize the response for llmStreamChat + chatResponse: ChatMessage[][] = [ + [ { role: "assistant", content: "This is a test", }, - ]; + ], + ]; + chatStreamDelay: number = 0; + + async *llmStreamChat( + msg: ToCoreProtocol["llm/streamChat"][0], + cancelToken: AbortSignal, + ): AsyncGenerator { + for (const response of this.chatResponse) { + if (cancelToken.aborted) { + console.log("MockIdeMessenger: Stream aborted"); + return undefined; + } + console.log("MockIdeMessenger: Yielding chunk", response); + yield response; + if (this.chatStreamDelay > 0) { + await new Promise((resolve) => + setTimeout(resolve, this.chatStreamDelay), + ); + } + } return undefined; } diff --git a/gui/src/pages/gui/Chat.test.tsx b/gui/src/pages/gui/Chat.test.tsx index 626438350..27a1fe8a1 100644 --- a/gui/src/pages/gui/Chat.test.tsx +++ b/gui/src/pages/gui/Chat.test.tsx @@ -1,109 +1,95 @@ import { screen, waitFor } from "@testing-library/dom"; import { act } from "@testing-library/react"; +import { Editor } from "@tiptap/core"; +import { addAndSelectMockLlm } from "../../util/test/config"; import { renderWithProviders } from "../../util/test/render"; import { Chat } from "./Chat"; -describe("Chat page test", () => { - it("should render input box", async () => { - await renderWithProviders(); - expect(await screen.findByTestId("continue-input-box")).toBeInTheDocument(); - }); +export async function getMainEditor(): Promise { + const editorElement = await waitFor(() => + screen.findByTestId("editor-input-main"), + ); + expect(editorElement).toBeInTheDocument(); + if ("editor" in editorElement) { + return editorElement.editor as Editor; + } else { + throw new Error("Main editor not found within editor container"); + } +} - it("should be able to toggle modes", async () => { - await renderWithProviders(); - expect(screen.getByText("Chat")).toBeInTheDocument(); - - // Simulate cmd+. keyboard shortcut to toggle modes - act(() => { - document.dispatchEvent( - new KeyboardEvent("keydown", { - key: ".", - metaKey: true, // cmd key on Mac - }), - ); - }); - - // Check that it switched to Agent mode - expect(await screen.findByText("Agent")).toBeInTheDocument(); - - act(() => { - document.dispatchEvent( - new KeyboardEvent("keydown", { - key: ".", - metaKey: true, // cmd key on Mac - }), - ); - }); - - // Check that it switched back to Chat mode - expect(await screen.findByText("Chat")).toBeInTheDocument(); - }); - - it.skip("should send a message and receive a response", async () => { - const { user, container } = await renderWithProviders(); - const inputBox = await waitFor(() => - container.querySelector(".ProseMirror")!.querySelector("p"), - ); - expect(inputBox).toBeDefined(); - - const sendButton = await screen.findByTestId("submit-input-button"); - - await act(async () => { - // Focus input box - inputBox!.focus(); - - // Type message - await user.type(inputBox!, "Hello, world!"); - - sendButton.click(); - }); - expect(await screen.findByText("Hello, world!")).toBeInTheDocument(); - }); - - it("should handle apply updates and display the accept / reject all buttons", async () => { - const { ideMessenger } = await renderWithProviders(); - - // Use queryByText which returns null when element isn't found - const acceptAllButton = screen.queryByText("Accept All"); - const rejectAllButton = screen.queryByText("Reject All"); - - // Assert that the buttons don't exist - expect(acceptAllButton).not.toBeInTheDocument(); - expect(rejectAllButton).not.toBeInTheDocument(); - - for (let i = 0; i < 5; i++) { - ideMessenger.mockMessageToWebview("updateApplyState", { - status: "streaming", - streamId: `12345`, - }); - } - - ideMessenger.mockMessageToWebview("updateApplyState", { - status: "done", - streamId: "12345", - }); - - // Wait for the buttons to appear - await waitFor(() => { - expect( - screen.getByTestId("accept-reject-all-buttons"), - ).toBeInTheDocument(); - }); - - // IDE sends back message that it is done - ideMessenger.mockMessageToWebview("updateApplyState", { - status: "closed", - streamId: "12345", - }); - - // Wait for the buttons to disappear - await waitFor(() => { - expect( - screen.queryByTestId("edit-accept-button"), - ).not.toBeInTheDocument(); - expect( - screen.queryByTestId("edit-reject-button"), - ).not.toBeInTheDocument(); - }); - }); +test("should render input box", async () => { + await renderWithProviders(); + expect(await screen.findByTestId("continue-input-box")).toBeInTheDocument(); +}); + +test("should be able to toggle modes", async () => { + await renderWithProviders(); + expect(screen.getByText("Chat")).toBeInTheDocument(); + + // Simulate cmd+. keyboard shortcut to toggle modes + act(() => { + document.dispatchEvent( + new KeyboardEvent("keydown", { + key: ".", + metaKey: true, // cmd key on Mac + }), + ); + }); + + // Check that it switched to Agent mode + expect(await screen.findByText("Agent")).toBeInTheDocument(); + + act(() => { + document.dispatchEvent( + new KeyboardEvent("keydown", { + key: ".", + metaKey: true, // cmd key on Mac + }), + ); + }); + + // Check that it switched back to Chat mode + expect(await screen.findByText("Chat")).toBeInTheDocument(); +}); + +test("should send a message and receive a response", async () => { + const { ideMessenger, store } = await renderWithProviders(); + + // First add and select the mock LLM + await act(async () => { + addAndSelectMockLlm(store, ideMessenger); + }); + + const CONTENT = "Expected response"; + const INPUT = "User input"; + + // Setup the mock response before any actions + ideMessenger.chatResponse = [[{ role: "assistant", content: CONTENT }]]; + + // Wait for the editor to be in the document + const editor = await getMainEditor(); + + // Find the submit button + const sendButton = await waitFor(() => + screen.findByTestId("submit-input-button"), + ); + expect(sendButton).toBeInTheDocument(); + + // Insert content into the editor + await act(async () => { + editor.commands.insertContent(INPUT); + }); + + // Verify the input is in the document + const input = await waitFor(() => screen.findByText(INPUT)); + expect(input).toBeInTheDocument(); + + // Click the send button + await act(async () => { + sendButton.click(); + }); + + // Increase the timeout for finding the response + const response = await waitFor(() => screen.findByText(CONTENT)); + expect(response).toBeInTheDocument(); }); diff --git a/gui/src/pages/gui/chat-tests/ApplyScenarios.test.tsx b/gui/src/pages/gui/chat-tests/ApplyScenarios.test.tsx new file mode 100644 index 000000000..c219d216e --- /dev/null +++ b/gui/src/pages/gui/chat-tests/ApplyScenarios.test.tsx @@ -0,0 +1,44 @@ +import { screen, waitFor } from "@testing-library/dom"; +import { renderWithProviders } from "../../../util/test/render"; +import { Chat } from "../Chat"; + +test("Chat apply scenarios: handle apply updates and display the accept / reject all buttons", async () => { + const { ideMessenger } = await renderWithProviders(); + + // Use queryByText which returns null when element isn't found + const acceptAllButton = screen.queryByText("Accept All"); + const rejectAllButton = screen.queryByText("Reject All"); + + // Assert that the buttons don't exist + expect(acceptAllButton).not.toBeInTheDocument(); + expect(rejectAllButton).not.toBeInTheDocument(); + + for (let i = 0; i < 5; i++) { + ideMessenger.mockMessageToWebview("updateApplyState", { + status: "streaming", + streamId: `12345`, + }); + } + + ideMessenger.mockMessageToWebview("updateApplyState", { + status: "done", + streamId: "12345", + }); + + // Wait for the buttons to appear + await waitFor(() => { + expect(screen.getByTestId("accept-reject-all-buttons")).toBeInTheDocument(); + }); + + // IDE sends back message that it is done + ideMessenger.mockMessageToWebview("updateApplyState", { + status: "closed", + streamId: "12345", + }); + + // Wait for the buttons to disappear + await waitFor(() => { + expect(screen.queryByTestId("edit-accept-button")).not.toBeInTheDocument(); + expect(screen.queryByTestId("edit-reject-button")).not.toBeInTheDocument(); + }); +}); diff --git a/gui/src/pages/gui/chat-tests/EditToolScenarios.test.tsx b/gui/src/pages/gui/chat-tests/EditToolScenarios.test.tsx new file mode 100644 index 000000000..8b1378917 --- /dev/null +++ b/gui/src/pages/gui/chat-tests/EditToolScenarios.test.tsx @@ -0,0 +1 @@ + diff --git a/gui/src/redux/slices/profiles/slice.ts b/gui/src/redux/slices/profiles/slice.ts index 6f3144736..0ea3d587a 100644 --- a/gui/src/redux/slices/profiles/slice.ts +++ b/gui/src/redux/slices/profiles/slice.ts @@ -19,7 +19,7 @@ export interface ProfilesState { preferencesByProfileId: Record; } -const initialState: ProfilesState = { +export const defaultProfilesState: ProfilesState = { preferencesByProfileId: {}, selectedProfileId: null, selectedOrganizationId: null, @@ -51,7 +51,7 @@ const initialState: ProfilesState = { export const profilesSlice = createSlice({ name: "profiles", - initialState, + initialState: defaultProfilesState, reducers: { setSelectedProfile: (state, { payload }: PayloadAction) => { state.selectedProfileId = payload; diff --git a/gui/src/util/test/config.ts b/gui/src/util/test/config.ts new file mode 100644 index 000000000..4dbe4abbe --- /dev/null +++ b/gui/src/util/test/config.ts @@ -0,0 +1,73 @@ +import { EnhancedStore } from "@reduxjs/toolkit"; +import { BrowserSerializedContinueConfig, ModelDescription } from "core"; +import { SerializedOrgWithProfiles } from "core/config/ProfileLifecycleManager"; +import { MockIdeMessenger } from "../../context/MockIdeMessenger"; +import { RootState } from "../../redux/store"; + +interface TestConfigUpdateParams { + store: EnhancedStore; + messenger: MockIdeMessenger; + newProfileId?: string; + newOrgId?: string; + newOrgs?: SerializedOrgWithProfiles[]; + + configUpdates?: Partial; +} + +export function triggerConfigUpdate({ + store, + messenger, + configUpdates, + newOrgs, + newOrgId, + newProfileId, +}: TestConfigUpdateParams) { + const state = store.getState(); + messenger.mockMessageToWebview("configUpdate", { + organizations: newOrgs ?? state.profiles.organizations, + selectedOrgId: newOrgId ?? state.profiles.selectedOrganizationId, + profileId: newProfileId ?? state.profiles.selectedProfileId, + result: { + config: { + ...state.config.config, + ...configUpdates, + }, + configLoadInterrupted: false, + errors: [], + }, + }); +} + +export function addAndSelectChatModel( + store: EnhancedStore, + messenger: MockIdeMessenger, + llmDesc: ModelDescription, +) { + const state = store.getState() as RootState; + triggerConfigUpdate({ + store, + messenger, + configUpdates: { + modelsByRole: { + ...state.config.config.modelsByRole, + chat: [...state.config.config.modelsByRole.chat, llmDesc], + }, + selectedModelByRole: { + ...state.config.config.selectedModelByRole, + chat: llmDesc, + }, + }, + }); +} + +export function addAndSelectMockLlm( + store: EnhancedStore, + messenger: MockIdeMessenger, +) { + addAndSelectChatModel(store, messenger, { + model: "mock", + provider: "mock", + title: "Mock LLM", + underlyingProviderName: "mock", + }); +} From 01930c926d563b1241ed70b86b1887ed074b08cd Mon Sep 17 00:00:00 2001 From: uinstinct <61635505+uinstinct@users.noreply.github.com> Date: Thu, 19 Jun 2025 16:41:16 +0530 Subject: [PATCH 25/91] skip installations and downloads on extension run --- .vscode/tasks.json | 3 ++ extensions/vscode/scripts/prepackage.js | 50 ++++++++++++++----------- scripts/install-dependencies.sh | 2 +- 3 files changed, 32 insertions(+), 23 deletions(-) diff --git a/.vscode/tasks.json b/.vscode/tasks.json index e40d9d054..d3a4a623d 100644 --- a/.vscode/tasks.json +++ b/.vscode/tasks.json @@ -103,6 +103,9 @@ "clear": true }, "options": { + "env": { + "SKIP_INSTALLS": "true" + }, "cwd": "${workspaceFolder}/extensions/vscode" } }, diff --git a/extensions/vscode/scripts/prepackage.js b/extensions/vscode/scripts/prepackage.js index 9fb0d43a4..599b06062 100644 --- a/extensions/vscode/scripts/prepackage.js +++ b/extensions/vscode/scripts/prepackage.js @@ -27,6 +27,8 @@ if (!fs.existsSync(guiDist)) { fs.mkdirSync(guiDist, { recursive: true }); } +const skipInstalls = process.env.SKIP_INSTALLS === "true"; + // Get the target to package for let target = undefined; const args = process.argv; @@ -70,7 +72,9 @@ void (async () => { // Make sure we have an initial timestamp file writeBuildTimestamp(); - await Promise.all([generateAndCopyConfigYamlSchema(), npmInstall()]); + if (!skipInstalls) { + await Promise.all([generateAndCopyConfigYamlSchema(), npmInstall()]); + } process.chdir(path.join(continueDir, "gui")); @@ -264,28 +268,30 @@ void (async () => { ); }); - // GitHub Actions doesn't support ARM, so we need to download pre-saved binaries - // 02/07/25 - the above comment is out of date, there is now support for ARM runners on GitHub Actions - if (isArmTarget) { - // lancedb binary - const packageToInstall = { - "darwin-arm64": "@lancedb/vectordb-darwin-arm64", - "linux-arm64": "@lancedb/vectordb-linux-arm64-gnu", - "win32-arm64": "@lancedb/vectordb-win32-arm64-msvc", - }[target]; - console.log( - "[info] Downloading pre-built lancedb binary: " + packageToInstall, - ); + if (!skipInstalls) { + // GitHub Actions doesn't support ARM, so we need to download pre-saved binaries + // 02/07/25 - the above comment is out of date, there is now support for ARM runners on GitHub Actions + if (isArmTarget) { + // lancedb binary + const packageToInstall = { + "darwin-arm64": "@lancedb/vectordb-darwin-arm64", + "linux-arm64": "@lancedb/vectordb-linux-arm64-gnu", + "win32-arm64": "@lancedb/vectordb-win32-arm64-msvc", + }[target]; + console.log( + "[info] Downloading pre-built lancedb binary: " + packageToInstall, + ); - await Promise.all([ - copyEsbuild(target), - copySqlite(target), - installAndCopyNodeModules(packageToInstall, "@lancedb"), - ]); - } else { - // Download esbuild from npm in tmp and copy over - console.log("[info] npm installing esbuild binary"); - await installAndCopyNodeModules("esbuild@0.17.19", "@esbuild"); + await Promise.all([ + copyEsbuild(target), + copySqlite(target), + installAndCopyNodeModules(packageToInstall, "@lancedb"), + ]); + } else { + // Download esbuild from npm in tmp and copy over + console.log("[info] npm installing esbuild binary"); + await installAndCopyNodeModules("esbuild@0.17.19", "@esbuild"); + } } console.log("[info] Copying sqlite node binding from core"); diff --git a/scripts/install-dependencies.sh b/scripts/install-dependencies.sh index d92fc109d..092028b37 100755 --- a/scripts/install-dependencies.sh +++ b/scripts/install-dependencies.sh @@ -57,7 +57,7 @@ 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 -npm run prepackage +# npm run prepackage # not required since npm run package has prescript of prepackage npm run package popd From 6721efc7ffeb9fd97b63a3d5ebed9e742f75e400 Mon Sep 17 00:00:00 2001 From: Nate Date: Fri, 20 Jun 2025 16:06:03 -0700 Subject: [PATCH 26/91] new rules --- .continue/rules/new-protocol-message.md | 35 +++++++++++++++++++++++++ .continue/rules/overeager.md | 5 ++++ core/rules.md | 10 +++++++ 3 files changed, 50 insertions(+) create mode 100644 .continue/rules/new-protocol-message.md create mode 100644 .continue/rules/overeager.md create mode 100644 core/rules.md diff --git a/.continue/rules/new-protocol-message.md b/.continue/rules/new-protocol-message.md new file mode 100644 index 000000000..23c6ba638 --- /dev/null +++ b/.continue/rules/new-protocol-message.md @@ -0,0 +1,35 @@ +--- +name: New protocol message +description: Create a new protocol message from core/gui/ide to core/gui/ide +--- + +Create a new protocol message by taking the following steps: + +## 1. Define the message type + +Add your new message type definition to the appropriate file in the `protocol/` directory with correct TypeScript typing. + +## 2. Check for duplicates + +Verify that no existing message type already provides the same functionality. + +## 3. Add to passThrough (if webview ↔ core) + +If your message is between webview and core, add it to `core/protocol/passThrough.ts`. + +## 4. Add to IntelliJ constants (if webview ↔ core) + +If your message is between webview and core, add it to `extensions/intellij/src/main/kotlin/com/github/continuedev/continueintellijextension/constants/MessageTypes.kt`. + +## 5. Implement the message handler + +Implement the message in the appropriate location: + +- **Messages to core**: `core/core.ts` +- **Messages to GUI**: `useWebviewListener` hook +- **Messages to VS Code IDE**: `VsCodeMessenger.ts` +- **Messages to JetBrains IDE**: `IdeProtocolClient.kt` + +## 6. Test the implementation + +Verify that your message works correctly in both VS Code and JetBrains IDEs if applicable. diff --git a/.continue/rules/overeager.md b/.continue/rules/overeager.md new file mode 100644 index 000000000..729088aad --- /dev/null +++ b/.continue/rules/overeager.md @@ -0,0 +1,5 @@ +--- +name: Don't be overeager +--- + +Avoid over-eagerly adding new features. You should solve the problem at hand and then can propose further work. diff --git a/core/rules.md b/core/rules.md new file mode 100644 index 000000000..57c897d3f --- /dev/null +++ b/core/rules.md @@ -0,0 +1,10 @@ +# `core` rules + +Whenever a new protocol message is added to the `protocol/` directory, check the following: + +- It's type is defined correctly +- If it is a message from webview to core or vice versa: + - It has been added to `core/protocol/passThrough.ts` + - It has been added to `extensions/intellij/src/main/kotlin/com/github/continuedev/continueintellijextension/constants/MessageTypes.kt` +- It is implemented in either `core/core.ts` (for messages to the core), in a `useWebviewListener` (for messages to the gui), or in `VsCodeMessenger.ts` for VS Code or `IdeProtocolClient.kt` for JetBriains (for messages to the IDE). +- It does not duplicate functionality from another message type that already exists. From d2a0a6e722070967f0926ec317e3d8769c5c7a41 Mon Sep 17 00:00:00 2001 From: Nate Date: Fri, 20 Jun 2025 16:25:39 -0700 Subject: [PATCH 27/91] fix typo --- docs/docs/customize/deep-dives/rules.mdx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/docs/customize/deep-dives/rules.mdx b/docs/docs/customize/deep-dives/rules.mdx index 147606f85..7e687c71f 100644 --- a/docs/docs/customize/deep-dives/rules.mdx +++ b/docs/docs/customize/deep-dives/rules.mdx @@ -171,7 +171,7 @@ Advanced users can override this system message for a specific model if needed b :::warning -`.contninuerules` will be deprecated in a future release. Please use the `.continue/rules` folder instead. +`.continuerules` will be deprecated in a future release. Please use the `.continue/rules` folder instead. ::: From ff4dcdce7382182efff9e246994f53f39a4d3c66 Mon Sep 17 00:00:00 2001 From: Dallin Romney Date: Fri, 20 Jun 2025 23:39:39 -0700 Subject: [PATCH 28/91] add source to slash commands, rearrange and mark built in legacy as legacy --- .../slash/{ => built-in-legacy}/cmd.ts | 6 +-- .../slash/{ => built-in-legacy}/commit.ts | 4 +- .../slash/{ => built-in-legacy}/draftIssue.ts | 6 +-- .../slash/{ => built-in-legacy}/http.ts | 4 +- core/commands/slash/built-in-legacy/index.ts | 37 +++++++++++++++++++ .../slash/{ => built-in-legacy}/onboard.ts | 8 ++-- .../slash/{ => built-in-legacy}/review.ts | 4 +- .../slash/{ => built-in-legacy}/share.ts | 8 ++-- .../{index.ts => slash/customSlashCommand.ts} | 35 +++++------------- core/commands/slash/index.ts | 17 --------- .../slash/{mcp.ts => mcpSlashCommand.ts} | 5 ++- .../slash/promptFileSlashCommand.ts} | 15 ++++---- core/config/load.ts | 29 +++++++++------ core/config/profile/doLoadConfig.ts | 2 +- core/config/yaml/loadYaml.ts | 6 +-- core/index.d.ts | 35 ++++++++++++++---- core/protocol/core.ts | 4 +- .../ConversationStarterCard.tsx | 6 +-- .../ConversationStarterCards.tsx | 4 +- .../__tests__/utils.test.ts | 8 +++- .../components/ConversationStarters/utils.ts | 6 +-- .../Lump/sections/PromptsSection.tsx | 4 +- .../extensions/Prompt/PromptBlock.ts | 6 +-- .../utils/resolveEditorContent.ts | 10 ++--- gui/src/hooks/useBookmarkedSlashCommands.ts | 4 +- gui/src/redux/slices/configSlice.ts | 11 +----- gui/src/redux/slices/profilesSlice.ts | 4 +- gui/src/redux/thunks/gatherContext.ts | 6 +-- gui/src/redux/thunks/streamResponse.ts | 12 +++--- 29 files changed, 168 insertions(+), 138 deletions(-) rename core/commands/slash/{ => built-in-legacy}/cmd.ts (91%) rename core/commands/slash/{ => built-in-legacy}/commit.ts (89%) rename core/commands/slash/{ => built-in-legacy}/draftIssue.ts (91%) rename core/commands/slash/{ => built-in-legacy}/http.ts (87%) create mode 100644 core/commands/slash/built-in-legacy/index.ts rename core/commands/slash/{ => built-in-legacy}/onboard.ts (96%) rename core/commands/slash/{ => built-in-legacy}/review.ts (93%) rename core/commands/slash/{ => built-in-legacy}/share.ts (92%) rename core/commands/{index.ts => slash/customSlashCommand.ts} (62%) delete mode 100644 core/commands/slash/index.ts rename core/commands/slash/{mcp.ts => mcpSlashCommand.ts} (94%) rename core/{promptFiles/v1/slashCommandFromPromptFile.ts => commands/slash/promptFileSlashCommand.ts} (80%) diff --git a/core/commands/slash/cmd.ts b/core/commands/slash/built-in-legacy/cmd.ts similarity index 91% rename from core/commands/slash/cmd.ts rename to core/commands/slash/built-in-legacy/cmd.ts index 7b93d2fa3..5cd96e365 100644 --- a/core/commands/slash/cmd.ts +++ b/core/commands/slash/built-in-legacy/cmd.ts @@ -1,6 +1,6 @@ -import { streamLines } from "../../diff/util.js"; -import { SlashCommand } from "../../index.js"; -import { removeQuotesAndEscapes } from "../../util/index.js"; +import { streamLines } from "../../../diff/util.js"; +import { SlashCommand } from "../../../index.js"; +import { removeQuotesAndEscapes } from "../../../util/index.js"; function commandIsPotentiallyDangerous(command: string) { return ( diff --git a/core/commands/slash/commit.ts b/core/commands/slash/built-in-legacy/commit.ts similarity index 89% rename from core/commands/slash/commit.ts rename to core/commands/slash/built-in-legacy/commit.ts index 55499b583..1f7e71343 100644 --- a/core/commands/slash/commit.ts +++ b/core/commands/slash/built-in-legacy/commit.ts @@ -1,5 +1,5 @@ -import { SlashCommand } from "../../index.js"; -import { renderChatMessage } from "../../util/messageContent.js"; +import { SlashCommand } from "../../../index.js"; +import { renderChatMessage } from "../../../util/messageContent.js"; const CommitMessageCommand: SlashCommand = { name: "commit", diff --git a/core/commands/slash/draftIssue.ts b/core/commands/slash/built-in-legacy/draftIssue.ts similarity index 91% rename from core/commands/slash/draftIssue.ts rename to core/commands/slash/built-in-legacy/draftIssue.ts index fba5d4cd3..9a1c5bdf9 100644 --- a/core/commands/slash/draftIssue.ts +++ b/core/commands/slash/built-in-legacy/draftIssue.ts @@ -1,6 +1,6 @@ -import { ChatMessage, SlashCommand } from "../../index.js"; -import { removeQuotesAndEscapes } from "../../util/index.js"; -import { renderChatMessage } from "../../util/messageContent.js"; +import { ChatMessage, SlashCommand } from "../../../index.js"; +import { removeQuotesAndEscapes } from "../../../util/index.js"; +import { renderChatMessage } from "../../../util/messageContent.js"; const PROMPT = ( input: string, diff --git a/core/commands/slash/http.ts b/core/commands/slash/built-in-legacy/http.ts similarity index 87% rename from core/commands/slash/http.ts rename to core/commands/slash/built-in-legacy/http.ts index e92c7c3f1..3141dcc11 100644 --- a/core/commands/slash/http.ts +++ b/core/commands/slash/built-in-legacy/http.ts @@ -1,6 +1,6 @@ import { streamResponse } from "@continuedev/fetch"; -import { SlashCommand } from "../../index.js"; -import { removeQuotesAndEscapes } from "../../util/index.js"; +import { SlashCommand } from "../../../index.js"; +import { removeQuotesAndEscapes } from "../../../util/index.js"; const HttpSlashCommand: SlashCommand = { name: "http", diff --git a/core/commands/slash/built-in-legacy/index.ts b/core/commands/slash/built-in-legacy/index.ts new file mode 100644 index 000000000..3e57f67a6 --- /dev/null +++ b/core/commands/slash/built-in-legacy/index.ts @@ -0,0 +1,37 @@ +import { + SlashCommand, + SlashCommandDescription, + SlashCommandWithSource, +} from "../../.."; +import GenerateTerminalCommand from "./cmd"; +import CommitMessageCommand from "./commit"; +import DraftIssueCommand from "./draftIssue"; +import HttpSlashCommand from "./http"; +import OnboardSlashCommand from "./onboard"; +import ReviewMessageCommand from "./review"; +import ShareSlashCommand from "./share"; + +const LegacyBuiltInSlashCommands: SlashCommand[] = [ + DraftIssueCommand, + ShareSlashCommand, + GenerateTerminalCommand, + HttpSlashCommand, + CommitMessageCommand, + ReviewMessageCommand, + OnboardSlashCommand, +]; + +export function getLegacyBuiltInSlashCommandFromDescription( + desc: SlashCommandDescription, +): SlashCommandWithSource | undefined { + const cmd = LegacyBuiltInSlashCommands.find((cmd) => cmd.name === desc.name); + if (!cmd) { + return undefined; + } + return { + ...cmd, + params: desc.params, + description: desc.description ?? cmd.description, + source: "built-in-legacy", + }; +} diff --git a/core/commands/slash/onboard.ts b/core/commands/slash/built-in-legacy/onboard.ts similarity index 96% rename from core/commands/slash/onboard.ts rename to core/commands/slash/built-in-legacy/onboard.ts index 545b75cc2..969ebc0c4 100644 --- a/core/commands/slash/onboard.ts +++ b/core/commands/slash/built-in-legacy/onboard.ts @@ -1,17 +1,17 @@ import ignore from "ignore"; -import type { FileType, IDE, SlashCommand } from "../.."; +import type { FileType, IDE, SlashCommand } from "../../.."; import { DEFAULT_IGNORE, getGlobalContinueIgArray, gitIgArrayFromFile, -} from "../../indexing/ignore"; -import { renderChatMessage } from "../../util/messageContent"; +} from "../../../indexing/ignore"; +import { renderChatMessage } from "../../../util/messageContent"; import { findUriInDirs, getUriPathBasename, joinPathsToUri, -} from "../../util/uri"; +} from "../../../util/uri"; const LANGUAGE_DEP_MGMT_FILENAMES = [ "package.json", // JavaScript (Node.js) diff --git a/core/commands/slash/review.ts b/core/commands/slash/built-in-legacy/review.ts similarity index 93% rename from core/commands/slash/review.ts rename to core/commands/slash/built-in-legacy/review.ts index 6190f5499..37c280b34 100644 --- a/core/commands/slash/review.ts +++ b/core/commands/slash/built-in-legacy/review.ts @@ -1,5 +1,5 @@ -import { ChatMessage, SlashCommand } from "../../index.js"; -import { renderChatMessage } from "../../util/messageContent.js"; +import { ChatMessage, SlashCommand } from "../../../index.js"; +import { renderChatMessage } from "../../../util/messageContent.js"; const prompt = ` Review the following code, focusing on Readability, Maintainability, Code Smells, Speed, and Memory Performance. Provide feedback with these guidelines: diff --git a/core/commands/slash/share.ts b/core/commands/slash/built-in-legacy/share.ts similarity index 92% rename from core/commands/slash/share.ts rename to core/commands/slash/built-in-legacy/share.ts index 01d5bea96..daddf8dff 100644 --- a/core/commands/slash/share.ts +++ b/core/commands/slash/built-in-legacy/share.ts @@ -3,10 +3,10 @@ import { homedir } from "node:os"; import { fileURLToPath, pathToFileURL } from "node:url"; import path from "path"; -import { languageForFilepath } from "../../autocomplete/constants/AutocompleteLanguageInfo.js"; -import { SlashCommand } from "../../index.js"; -import { renderChatMessage } from "../../util/messageContent.js"; -import { getContinueGlobalPath } from "../../util/paths.js"; +import { languageForFilepath } from "../../../autocomplete/constants/AutocompleteLanguageInfo.js"; +import { SlashCommand } from "../../../index.js"; +import { renderChatMessage } from "../../../util/messageContent.js"; +import { getContinueGlobalPath } from "../../../util/paths.js"; // If useful elsewhere, helper funcs should move to core/util/index.ts or similar function getOffsetDatetime(date: Date): Date { diff --git a/core/commands/index.ts b/core/commands/slash/customSlashCommand.ts similarity index 62% rename from core/commands/index.ts rename to core/commands/slash/customSlashCommand.ts index d87a3536f..29fb1144d 100644 --- a/core/commands/index.ts +++ b/core/commands/slash/customSlashCommand.ts @@ -1,14 +1,12 @@ -import { CustomCommand, SlashCommand, SlashCommandDescription } from "../"; -import { renderTemplatedString } from "../promptFiles/v1/renderTemplatedString"; -import { replaceSlashCommandWithPromptInChatHistory } from "../promptFiles/v1/updateChatHistory"; -import { renderPromptFileV2 } from "../promptFiles/v2/renderPromptFile"; -import { renderChatMessage } from "../util/messageContent"; +import { CustomCommand, SlashCommandWithSource } from "../.."; +import { renderTemplatedString } from "../../promptFiles/v1/renderTemplatedString"; +import { replaceSlashCommandWithPromptInChatHistory } from "../../promptFiles/v1/updateChatHistory"; +import { renderPromptFileV2 } from "../../promptFiles/v2/renderPromptFile"; +import { renderChatMessage } from "../../util/messageContent"; -import SlashCommands from "./slash"; - -export function slashFromCustomCommand( +export function convertCustomCommandToSlashCommand( customCommand: CustomCommand, -): SlashCommand { +): SlashCommandWithSource { const commandName = customCommand.name.startsWith("/") ? customCommand.name.substring(1) : customCommand.name; @@ -16,6 +14,7 @@ export function slashFromCustomCommand( name: commandName, description: customCommand.description ?? "", prompt: customCommand.prompt, + source: "json-custom-command", run: async function* ({ input, llm, @@ -45,8 +44,8 @@ export function slashFromCustomCommand( selectedCode, fetch, fullInput: input, - embeddingsProvider: config.modelsByRole.embed[0], - reranker: config.modelsByRole.rerank[0], + embeddingsProvider: config.selectedModelByRole.embed, + reranker: config.selectedModelByRole.rerank, }, ); @@ -72,17 +71,3 @@ export function slashFromCustomCommand( }, }; } - -export function slashCommandFromDescription( - desc: SlashCommandDescription, -): SlashCommand | undefined { - const cmd = SlashCommands.find((cmd) => cmd.name === desc.name); - if (!cmd) { - return undefined; - } - return { - ...cmd, - params: desc.params, - description: desc.description ?? cmd.description, - }; -} diff --git a/core/commands/slash/index.ts b/core/commands/slash/index.ts deleted file mode 100644 index 18008e251..000000000 --- a/core/commands/slash/index.ts +++ /dev/null @@ -1,17 +0,0 @@ -import GenerateTerminalCommand from "./cmd"; -import CommitMessageCommand from "./commit"; -import DraftIssueCommand from "./draftIssue"; -import HttpSlashCommand from "./http"; -import OnboardSlashCommand from "./onboard"; -import ReviewMessageCommand from "./review"; -import ShareSlashCommand from "./share"; - -export default [ - DraftIssueCommand, - ShareSlashCommand, - GenerateTerminalCommand, - HttpSlashCommand, - CommitMessageCommand, - ReviewMessageCommand, - OnboardSlashCommand, -]; diff --git a/core/commands/slash/mcp.ts b/core/commands/slash/mcpSlashCommand.ts similarity index 94% rename from core/commands/slash/mcp.ts rename to core/commands/slash/mcpSlashCommand.ts index 89af5c5c2..c97b3b383 100644 --- a/core/commands/slash/mcp.ts +++ b/core/commands/slash/mcpSlashCommand.ts @@ -1,17 +1,18 @@ import { Client } from "@modelcontextprotocol/sdk/client/index.js"; import { PromptMessage } from "@modelcontextprotocol/sdk/types.js"; -import { ChatMessage, SlashCommand } from "../../index.js"; +import { ChatMessage, SlashCommandWithSource } from "../../index.js"; import { renderChatMessage } from "../../util/messageContent.js"; export function constructMcpSlashCommand( client: Client, name: string, description?: string, args?: string[], -): SlashCommand { +): SlashCommandWithSource { return { name, description: description ?? "MCP Prompt", + source: "mcp-prompt", params: {}, run: async function* (context) { const argsObject: { [key: string]: string } = {}; diff --git a/core/promptFiles/v1/slashCommandFromPromptFile.ts b/core/commands/slash/promptFileSlashCommand.ts similarity index 80% rename from core/promptFiles/v1/slashCommandFromPromptFile.ts rename to core/commands/slash/promptFileSlashCommand.ts index 8e1478648..7c037b2cf 100644 --- a/core/promptFiles/v1/slashCommandFromPromptFile.ts +++ b/core/commands/slash/promptFileSlashCommand.ts @@ -1,13 +1,13 @@ -import { ContinueSDK, SlashCommand } from "../.."; +import { ContinueSDK, SlashCommandWithSource } from "../.."; import { getDiffsFromCache } from "../../autocomplete/snippets/gitDiffCache"; +import { parsePromptFileV1V2 } from "../../promptFiles/v2/parsePromptFileV1V2"; +import { renderPromptFileV2 } from "../../promptFiles/v2/renderPromptFile"; import { renderChatMessage } from "../../util/messageContent"; import { getLastNPathParts } from "../../util/uri"; -import { parsePromptFileV1V2 } from "../v2/parsePromptFileV1V2"; -import { renderPromptFileV2 } from "../v2/renderPromptFile"; -import { getContextProviderHelpers } from "./getContextProviderHelpers"; -import { renderTemplatedString } from "./renderTemplatedString"; -import { replaceSlashCommandWithPromptInChatHistory } from "./updateChatHistory"; +import { getContextProviderHelpers } from "../../promptFiles/v1/getContextProviderHelpers"; +import { renderTemplatedString } from "../../promptFiles/v1/renderTemplatedString"; +import { replaceSlashCommandWithPromptInChatHistory } from "../../promptFiles/v1/updateChatHistory"; export function extractName(preamble: { name?: string }, path: string): string { return preamble.name ?? getLastNPathParts(path, 1).split(".prompt")[0]; @@ -47,7 +47,7 @@ async function renderPromptV1( export function slashCommandFromPromptFileV1( path: string, content: string, -): SlashCommand | null { +): SlashCommandWithSource | null { const { name, description, systemMessage, prompt } = parsePromptFileV1V2( path, content, @@ -57,6 +57,7 @@ export function slashCommandFromPromptFileV1( name, description, prompt, + source: ".prompt-file", promptFile: path, run: async function* (context) { const [_, renderedPrompt] = await renderPromptFileV2(prompt, { diff --git a/core/config/load.ts b/core/config/load.ts index fe0c4de61..79bb66e6a 100644 --- a/core/config/load.ts +++ b/core/config/load.ts @@ -32,10 +32,9 @@ import { SerializedContinueConfig, SlashCommand, } from ".."; -import { - slashCommandFromDescription, - slashFromCustomCommand, -} from "../commands/index"; +import { getLegacyBuiltInSlashCommandFromDescription } from "../commands/slash/built-in-legacy"; +import { convertCustomCommandToSlashCommand } from "../commands/slash/customSlashCommand"; +import { slashCommandFromPromptFileV1 } from "../commands/slash/promptFileSlashCommand"; import { MCPManagerSingleton } from "../context/mcp/MCPManagerSingleton"; import CodebaseContextProvider from "../context/providers/CodebaseContextProvider"; import ContinueProxyContextProvider from "../context/providers/ContinueProxyContextProvider"; @@ -48,7 +47,6 @@ import { LLMClasses, llmFromDescription } from "../llm/llms"; import CustomLLMClass from "../llm/llms/CustomLLM"; import { LLMReranker } from "../llm/llms/llm"; import TransformersJsEmbeddingsProvider from "../llm/llms/TransformersJsEmbeddingsProvider"; -import { slashCommandFromPromptFileV1 } from "../promptFiles/v1/slashCommandFromPromptFile"; import { getAllPromptFiles } from "../promptFiles/v2/getPromptFiles"; import { copyOf } from "../util"; import { GlobalContext } from "../util/GlobalContext"; @@ -176,13 +174,13 @@ async function serializedToIntermediateConfig( // DEPRECATED - load custom slash commands const slashCommands: SlashCommand[] = []; for (const command of initial.slashCommands || []) { - const newCommand = slashCommandFromDescription(command); + const newCommand = getLegacyBuiltInSlashCommandFromDescription(command); if (newCommand) { slashCommands.push(newCommand); } } for (const command of initial.customCommands || []) { - slashCommands.push(slashFromCustomCommand(command)); + slashCommands.push(convertCustomCommandToSlashCommand(command)); } // DEPRECATED - load slash commands from v1 prompt files @@ -529,7 +527,7 @@ async function intermediateToFinalConfig({ contextProviders, tools: [...baseToolDefinitions], mcpServerStatuses: [], - slashCommands: config.slashCommands ?? [], + slashCommands: [], modelsByRole: { chat: models, edit: models, @@ -551,6 +549,17 @@ async function intermediateToFinalConfig({ rules: [], }; + for (const cmd of config.slashCommands ?? []) { + if ("source" in cmd) { + continueConfig.slashCommands.push(cmd); + } else { + continueConfig.slashCommands.push({ + ...cmd, + source: "config-ts-slash-command", + }); + } + } + if (config.systemMessage) { continueConfig.rules.unshift({ rule: config.systemMessage, @@ -651,9 +660,7 @@ async function finalToBrowserConfig( return { allowAnonymousTelemetry: final.allowAnonymousTelemetry, completionOptions: final.completionOptions, - slashCommands: final.slashCommands?.map( - ({ run, ...slashCommandDescription }) => slashCommandDescription, - ), + slashCommands: final.slashCommands?.map(({ run, ...rest }) => rest), contextProviders: final.contextProviders?.map((c) => c.description), disableIndexing: final.disableIndexing, disableSessionTitles: final.disableSessionTitles, diff --git a/core/config/profile/doLoadConfig.ts b/core/config/profile/doLoadConfig.ts index 7685546c9..90369b57a 100644 --- a/core/config/profile/doLoadConfig.ts +++ b/core/config/profile/doLoadConfig.ts @@ -18,7 +18,7 @@ import { SerializedContinueConfig, Tool, } from "../../"; -import { constructMcpSlashCommand } from "../../commands/slash/mcp"; +import { constructMcpSlashCommand } from "../../commands/slash/mcpSlashCommand"; import { MCPManagerSingleton } from "../../context/mcp/MCPManagerSingleton"; import MCPContextProvider from "../../context/providers/MCPContextProvider"; import RulesContextProvider from "../../context/providers/RulesContextProvider"; diff --git a/core/config/yaml/loadYaml.ts b/core/config/yaml/loadYaml.ts index 0c6436c38..539e18ad1 100644 --- a/core/config/yaml/loadYaml.ts +++ b/core/config/yaml/loadYaml.ts @@ -25,7 +25,7 @@ import { ILLMLogger, RuleWithSource, } from "../.."; -import { slashFromCustomCommand } from "../../commands"; +import { slashCommandFromPromptFileV1 } from "../../commands/slash/promptFileSlashCommand"; import { MCPManagerSingleton } from "../../context/mcp/MCPManagerSingleton"; import CodebaseContextProvider from "../../context/providers/CodebaseContextProvider"; import DocsContextProvider from "../../context/providers/DocsContextProvider"; @@ -33,11 +33,11 @@ import FileContextProvider from "../../context/providers/FileContextProvider"; import { contextProviderClassFromName } from "../../context/providers/index"; import { ControlPlaneClient } from "../../control-plane/client"; import TransformersJsEmbeddingsProvider from "../../llm/llms/TransformersJsEmbeddingsProvider"; -import { slashCommandFromPromptFileV1 } from "../../promptFiles/v1/slashCommandFromPromptFile"; import { getAllPromptFiles } from "../../promptFiles/v2/getPromptFiles"; import { GlobalContext } from "../../util/GlobalContext"; import { modifyAnyConfigWithSharedConfig } from "../sharedConfig"; +import { convertCustomCommandToSlashCommand } from "../../commands/slash/customSlashCommand"; import { getControlPlaneEnvSync } from "../../control-plane/env"; import { baseToolDefinitions } from "../../tools"; import { getCleanUriPath } from "../../util/uri"; @@ -286,7 +286,7 @@ async function configYamlToContinueConfig(options: { config.prompts?.forEach((prompt) => { try { - const slashCommand = slashFromCustomCommand(prompt); + const slashCommand = convertCustomCommandToSlashCommand(prompt); continueConfig.slashCommands?.push(slashCommand); } catch (e) { localErrors.push({ diff --git a/core/index.d.ts b/core/index.d.ts index 047c468d8..d3c96f8de 100644 --- a/core/index.d.ts +++ b/core/index.d.ts @@ -836,15 +836,38 @@ export interface ContinueSDK { abortController: AbortController; } -export interface SlashCommand { +/* Be careful changing SlashCommand or SlashCommandDescription, config.ts can break */ +export interface SlashCommandDescription { name: string; description: string; prompt?: string; params?: { [key: string]: any }; - promptFile?: string; +} + +export interface SlashCommand extends SlashCommandDescription { run: (sdk: ContinueSDK) => AsyncGenerator; } +export type SlashCommandSource = + | "built-in-legacy" + | "built-in" + | "json-custom-command" + | "config-ts-slash-command" + | "yaml-prompt-block" + | "mcp-prompt" + | ".prompt-file" + | "invokable-rule"; + +export interface SlashCommandDescWithSource extends SlashCommandDescription { + source: SlashCommandSource; + promptFile?: string; +} + +export interface SlashCommandWithSource extends SlashCommand { + source: SlashCommandSource; + promptFile?: string; +} + // Config export type StepName = @@ -945,8 +968,6 @@ export interface ContextProviderWithParams { params: { [key: string]: any }; } -export type SlashCommandDescription = Omit; - export interface CustomCommand { name: string; prompt: string; @@ -1442,7 +1463,7 @@ export interface Config { /** Request options that will be applied to all models and context providers */ requestOptions?: RequestOptions; /** The list of slash commands that will be available in the sidebar */ - slashCommands?: SlashCommand[]; + slashCommands?: (SlashCommand | SlashCommandWithSource)[]; /** Each entry in this array will originally be a ContextProviderWithParams, the same object from your config.json, but you may add CustomContextProviders. * A CustomContextProvider requires you only to define a title and getContextItems function. When you type '@title ', Continue will call `getContextItems(query)`. */ @@ -1479,7 +1500,7 @@ export interface ContinueConfig { // systemMessage?: string; completionOptions?: BaseCompletionOptions; requestOptions?: RequestOptions; - slashCommands: SlashCommand[]; + slashCommands: SlashCommandWithSource[]; contextProviders: IContextProvider[]; disableSessionTitles?: boolean; disableIndexing?: boolean; @@ -1502,7 +1523,7 @@ export interface BrowserSerializedContinueConfig { // systemMessage?: string; completionOptions?: BaseCompletionOptions; requestOptions?: RequestOptions; - slashCommands: SlashCommandDescription[]; + slashCommands: SlashCommandDescWithSource[]; contextProviders: ContextProviderDescription[]; disableIndexing?: boolean; disableSessionTitles?: boolean; diff --git a/core/protocol/core.ts b/core/protocol/core.ts index dfc0d87d6..22e0c0717 100644 --- a/core/protocol/core.ts +++ b/core/protocol/core.ts @@ -29,7 +29,7 @@ import { Session, SessionMetadata, SiteIndexingConfig, - SlashCommandDescription, + SlashCommandDescWithSource, StreamDiffLinesPayload, ToolCall, } from "../"; @@ -141,7 +141,7 @@ export type ToCoreFromIdeOrWebviewProtocol = { completionOptions: LLMFullCompletionOptions; title: string; legacySlashCommandData?: { - command: SlashCommandDescription; + command: SlashCommandDescWithSource; input: string; contextItems: ContextItemWithId[]; historyIndex: number; diff --git a/gui/src/components/ConversationStarters/ConversationStarterCard.tsx b/gui/src/components/ConversationStarters/ConversationStarterCard.tsx index 29ff81833..64705d99b 100644 --- a/gui/src/components/ConversationStarters/ConversationStarterCard.tsx +++ b/gui/src/components/ConversationStarters/ConversationStarterCard.tsx @@ -1,9 +1,9 @@ import { ChatBubbleLeftIcon } from "@heroicons/react/24/outline"; -import { SlashCommandDescription } from "core"; +import { SlashCommandDescWithSource } from "core"; interface ConversationStarterCardProps { - command: SlashCommandDescription; - onClick: (command: SlashCommandDescription) => void; + command: SlashCommandDescWithSource; + onClick: (command: SlashCommandDescWithSource) => void; } export function ConversationStarterCard({ diff --git a/gui/src/components/ConversationStarters/ConversationStarterCards.tsx b/gui/src/components/ConversationStarters/ConversationStarterCards.tsx index 776c0721b..ce7907a67 100644 --- a/gui/src/components/ConversationStarters/ConversationStarterCards.tsx +++ b/gui/src/components/ConversationStarters/ConversationStarterCards.tsx @@ -1,4 +1,4 @@ -import { SlashCommandDescription } from "core"; +import { SlashCommandDescWithSource } from "core"; import { useState } from "react"; import { useBookmarkedSlashCommands } from "../../hooks/useBookmarkedSlashCommands"; import { useAppDispatch, useAppSelector } from "../../redux/hooks"; @@ -23,7 +23,7 @@ export function ConversationStarterCards() { isCommandBookmarked(command.name), ); - function onClick(command: SlashCommandDescription) { + function onClick(command: SlashCommandDescWithSource) { mainEditor?.commands.insertPrompt(command); } diff --git a/gui/src/components/ConversationStarters/__tests__/utils.test.ts b/gui/src/components/ConversationStarters/__tests__/utils.test.ts index 3e7050985..047606ba9 100644 --- a/gui/src/components/ConversationStarters/__tests__/utils.test.ts +++ b/gui/src/components/ConversationStarters/__tests__/utils.test.ts @@ -1,27 +1,31 @@ -import { SlashCommandDescription } from "core"; +import { SlashCommandDescWithSource } from "core"; import { sortCommandsByBookmarkStatus } from "../utils"; describe("sortCommandsByBookmarkStatus", () => { - const mockCommands: SlashCommandDescription[] = [ + const mockCommands: SlashCommandDescWithSource[] = [ { name: "command1", description: "First command", prompt: "This is command 1", + source: "built-in", }, { name: "command2", description: "Second command", prompt: "This is command 2", + source: "built-in", }, { name: "command3", description: "Third command", prompt: "This is command 3", + source: "built-in", }, { name: "command4", description: "Fourth command", prompt: "This is command 4", + source: "built-in", }, ]; diff --git a/gui/src/components/ConversationStarters/utils.ts b/gui/src/components/ConversationStarters/utils.ts index 1f9ef09ae..e10b79237 100644 --- a/gui/src/components/ConversationStarters/utils.ts +++ b/gui/src/components/ConversationStarters/utils.ts @@ -1,4 +1,4 @@ -import { SlashCommandDescription } from "core"; +import { SlashCommandDescWithSource } from "core"; import {} from "core/config/default"; /** @@ -8,9 +8,9 @@ import {} from "core/config/default"; * @returns A new sorted array with bookmarked commands first */ export function sortCommandsByBookmarkStatus( - commands: SlashCommandDescription[], + commands: SlashCommandDescWithSource[], bookmarkedCommands: string[], -): SlashCommandDescription[] { +): SlashCommandDescWithSource[] { return [...commands].sort((a, b) => { const aIsBookmarked = bookmarkedCommands.includes(a.name); const bIsBookmarked = bookmarkedCommands.includes(b.name); diff --git a/gui/src/components/mainInput/Lump/sections/PromptsSection.tsx b/gui/src/components/mainInput/Lump/sections/PromptsSection.tsx index d7fd74eee..52e6a5d6f 100644 --- a/gui/src/components/mainInput/Lump/sections/PromptsSection.tsx +++ b/gui/src/components/mainInput/Lump/sections/PromptsSection.tsx @@ -4,7 +4,7 @@ import { PencilIcon, } from "@heroicons/react/24/outline"; import { BookmarkIcon as BookmarkSolid } from "@heroicons/react/24/solid"; -import { SlashCommandDescription } from "core"; +import { SlashCommandDescWithSource } from "core"; import { useContext, useMemo } from "react"; import { useAuth } from "../../../../context/Auth"; import { IdeMessengerContext } from "../../../../context/IdeMessenger"; @@ -15,7 +15,7 @@ import { useMainEditor } from "../../TipTapEditor"; import { useLump } from "../LumpContext"; import { ExploreBlocksButton } from "./ExploreBlocksButton"; -type PromptWithSlug = SlashCommandDescription & { slug?: string }; +type PromptWithSlug = SlashCommandDescWithSource & { slug?: string }; interface PromptRowProps { prompt: PromptWithSlug; diff --git a/gui/src/components/mainInput/TipTapEditor/extensions/Prompt/PromptBlock.ts b/gui/src/components/mainInput/TipTapEditor/extensions/Prompt/PromptBlock.ts index 8f5c27780..839182303 100644 --- a/gui/src/components/mainInput/TipTapEditor/extensions/Prompt/PromptBlock.ts +++ b/gui/src/components/mainInput/TipTapEditor/extensions/Prompt/PromptBlock.ts @@ -1,7 +1,7 @@ import { mergeAttributes, Node } from "@tiptap/core"; import { Node as ProseMirrorNode } from "@tiptap/pm/model"; import { ReactNodeViewRenderer } from "@tiptap/react"; -import { ContextItemWithId, SlashCommandDescription } from "core"; +import { ContextItemWithId, SlashCommandDescWithSource } from "core"; import { MAIN_EDITOR_INPUT_ID } from "../../../../../pages/gui/Chat"; import { PromptBlockPreview } from "./PromptBlockPreview"; @@ -20,7 +20,7 @@ declare module "@tiptap/core" { /** * Insert a prompt block into the editor */ - insertPrompt: (item: SlashCommandDescription) => ReturnType; + insertPrompt: (item: SlashCommandDescWithSource) => ReturnType; /** * Clear all prompt blocks from the editor @@ -76,7 +76,7 @@ export const PromptBlock = Node.create({ addCommands() { return { insertPrompt: - (prompt: SlashCommandDescription) => + (prompt: SlashCommandDescWithSource) => ({ chain }) => { const item: ContextItemWithId = { content: prompt.prompt ?? "", diff --git a/gui/src/components/mainInput/TipTapEditor/utils/resolveEditorContent.ts b/gui/src/components/mainInput/TipTapEditor/utils/resolveEditorContent.ts index 958ea2331..25b251ff1 100644 --- a/gui/src/components/mainInput/TipTapEditor/utils/resolveEditorContent.ts +++ b/gui/src/components/mainInput/TipTapEditor/utils/resolveEditorContent.ts @@ -10,7 +10,7 @@ import { MessageContent, MessagePart, RangeInFile, - SlashCommandDescription, + SlashCommandDescWithSource, TextMessagePart, } from "core"; import { ctxItemToRifWithContents } from "core/commands/util"; @@ -32,7 +32,7 @@ interface ResolveEditorContentInput { modifiers: InputModifiers; ideMessenger: IIdeMessenger; defaultContextProviders: DefaultContextProvider[]; - availableSlashCommands: SlashCommandDescription[]; + availableSlashCommands: SlashCommandDescWithSource[]; dispatch: Dispatch; } @@ -42,7 +42,7 @@ type ResolveEditorContentOutput = [ MessageContent, ( | { - command: SlashCommandDescription; + command: SlashCommandDescWithSource; input: string; } | undefined @@ -184,9 +184,9 @@ function processEditorContent(editorState: JSONContent) { */ function processSlashCommand( slashCommandName: string | undefined, - availableSlashCommands: SlashCommandDescription[], + availableSlashCommands: SlashCommandDescWithSource[], parts: MessagePart[], -): { command: SlashCommandDescription; input: string } | undefined { +): { command: SlashCommandDescWithSource; input: string } | undefined { if (!slashCommandName) return; const command = availableSlashCommands.find( diff --git a/gui/src/hooks/useBookmarkedSlashCommands.ts b/gui/src/hooks/useBookmarkedSlashCommands.ts index dcd58f9f7..0301c6cc6 100644 --- a/gui/src/hooks/useBookmarkedSlashCommands.ts +++ b/gui/src/hooks/useBookmarkedSlashCommands.ts @@ -1,4 +1,4 @@ -import { SlashCommandDescription } from "core"; +import { SlashCommandDescWithSource } from "core"; import { usePostHog } from "posthog-js/react"; import { useAppDispatch, useAppSelector } from "../redux/hooks"; @@ -17,7 +17,7 @@ export function useBookmarkedSlashCommands() { return bookmarkedCommands.includes(commandName); }; - const toggleBookmark = (command: SlashCommandDescription) => { + const toggleBookmark = (command: SlashCommandDescWithSource) => { const isBookmarked = isCommandBookmarked(command.name); posthog.capture("toggle_bookmarked_slash_command", { diff --git a/gui/src/redux/slices/configSlice.ts b/gui/src/redux/slices/configSlice.ts index b26d596c8..e59f730d0 100644 --- a/gui/src/redux/slices/configSlice.ts +++ b/gui/src/redux/slices/configSlice.ts @@ -9,16 +9,7 @@ export type ConfigState = { }; export const EMPTY_CONFIG: BrowserSerializedContinueConfig = { - slashCommands: [ - { - name: "share", - description: "Export the current chat session to markdown", - }, - { - name: "cmd", - description: "Generate a shell command", - }, - ], + slashCommands: [], contextProviders: [], tools: [], mcpServerStatuses: [], diff --git a/gui/src/redux/slices/profilesSlice.ts b/gui/src/redux/slices/profilesSlice.ts index 6f3144736..16d0498ae 100644 --- a/gui/src/redux/slices/profilesSlice.ts +++ b/gui/src/redux/slices/profilesSlice.ts @@ -1,5 +1,5 @@ import { createSlice, PayloadAction } from "@reduxjs/toolkit"; -import { SlashCommandDescription } from "core"; +import { SlashCommandDescWithSource } from "core"; import { SerializedOrgWithProfiles } from "core/config/ProfileLifecycleManager"; const DEFAULT_SLASH_COMMANDS_BOOKMARKS_COUNT = 5; @@ -81,7 +81,7 @@ export const profilesSlice = createSlice({ state, action: PayloadAction<{ profileId: string; - defaultSlashCommands?: SlashCommandDescription[]; + defaultSlashCommands?: SlashCommandDescWithSource[]; }>, ) => { const { profileId, defaultSlashCommands = [] } = action.payload; diff --git a/gui/src/redux/thunks/gatherContext.ts b/gui/src/redux/thunks/gatherContext.ts index 8b72b5f88..a17a05813 100644 --- a/gui/src/redux/thunks/gatherContext.ts +++ b/gui/src/redux/thunks/gatherContext.ts @@ -17,7 +17,7 @@ export const gatherContext = createAsyncThunk< selectedContextItems: ContextItemWithId[]; selectedCode: RangeInFile[]; content: MessageContent; - slashCommandWithInput: + legacyCommandWithInput: | { command: SlashCommandDescription; input: string; @@ -50,7 +50,7 @@ export const gatherContext = createAsyncThunk< } // Resolve context providers and construct new history - let [selectedContextItems, selectedCode, content, slashCommandWithInput] = + let [selectedContextItems, selectedCode, content, legacyCommandWithInput] = await resolveEditorContent({ editorState, modifiers, @@ -118,7 +118,7 @@ export const gatherContext = createAsyncThunk< selectedContextItems, selectedCode, content, - slashCommandWithInput, + legacyCommandWithInput, }; }, ); diff --git a/gui/src/redux/thunks/streamResponse.ts b/gui/src/redux/thunks/streamResponse.ts index caeded723..7f90de52a 100644 --- a/gui/src/redux/thunks/streamResponse.ts +++ b/gui/src/redux/thunks/streamResponse.ts @@ -60,7 +60,7 @@ export const streamResponseThunk = createAsyncThunk< selectedContextItems, selectedCode, content, - slashCommandWithInput, + legacyCommandWithInput, } = unwrapResult(result); // symbols for both context items AND selected codeblocks @@ -133,9 +133,9 @@ export const streamResponseThunk = createAsyncThunk< }); posthog.capture("userInput", {}); - if (slashCommandWithInput) { + if (legacyCommandWithInput) { posthog.capture("step run", { - step_name: slashCommandWithInput.command.name, + step_name: legacyCommandWithInput.command.name, params: {}, }); } @@ -144,12 +144,12 @@ export const streamResponseThunk = createAsyncThunk< await dispatch( streamNormalInput({ messages, - legacySlashCommandData: slashCommandWithInput + legacySlashCommandData: legacyCommandWithInput ? { - command: slashCommandWithInput.command, + command: legacyCommandWithInput.command, contextItems: selectedContextItems, historyIndex: inputIndex, - input: slashCommandWithInput.input, + input: legacyCommandWithInput.input, selectedCode, } : undefined, From 5c93681fe03b0a0188cd1c133edb4d2a18537b99 Mon Sep 17 00:00:00 2001 From: Nate Date: Sat, 21 Jun 2025 23:51:57 -0700 Subject: [PATCH 29/91] set up semantic release --- .github/workflows/release-config-yaml.yml | 25 +- packages/config-yaml/package-lock.json | 6690 ++++++++++++++++++++- packages/config-yaml/package.json | 7 +- packages/config-yaml/release.config.js | 9 + 4 files changed, 6711 insertions(+), 20 deletions(-) diff --git a/.github/workflows/release-config-yaml.yml b/.github/workflows/release-config-yaml.yml index 0847f5c0c..6406e70e0 100644 --- a/.github/workflows/release-config-yaml.yml +++ b/.github/workflows/release-config-yaml.yml @@ -11,6 +11,9 @@ jobs: release: name: Release runs-on: ubuntu-latest + defaults: + run: + working-directory: packages/config-yaml steps: - name: Checkout uses: actions/checkout@v4 @@ -23,24 +26,18 @@ jobs: node-version-file: ".nvmrc" - name: Install dependencies - run: | - cd packages/config-yaml - npm ci + run: npm ci - name: Build - run: | - cd packages/config-yaml - npm run build + run: npm run build - name: Run tests - run: | - cd packages/config-yaml - npm test + run: npm test - name: Release env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - NPM_TOKEN: ${{ secrets.NPM_TOKEN }} - run: | - cd packages/config-yaml - npx semantic-release + # Requires read/write for issues and contents + GITHUB_TOKEN: ${{ secrets.SEMANTIC_RELEASE_GITHUB_TOKEN }} + NPM_TOKEN: ${{ secrets.SEMANTIC_RELEASE_NPM_TOKEN }} + NODE_AUTH_TOKEN: ${{ secrets.SEMANTIC_RELEASE_NPM_TOKEN }} + run: npx semantic-release diff --git a/packages/config-yaml/package-lock.json b/packages/config-yaml/package-lock.json index 492e0eaa5..7f2b8b2f2 100644 --- a/packages/config-yaml/package-lock.json +++ b/packages/config-yaml/package-lock.json @@ -1,12 +1,12 @@ { "name": "@continuedev/config-yaml", - "version": "1.0.93", + "version": "1.0.94", "lockfileVersion": 3, "requires": true, "packages": { "": { "name": "@continuedev/config-yaml", - "version": "1.0.93", + "version": "1.0.94", "license": "Apache-2.0", "dependencies": { "@continuedev/config-types": "^1.0.14", @@ -17,10 +17,15 @@ "config-yaml": "dist/cli.js" }, "devDependencies": { + "@semantic-release/changelog": "^6.0.3", + "@semantic-release/git": "^10.0.1", + "@semantic-release/github": "^9.2.6", + "@semantic-release/npm": "^10.0.6", "@types/jest": "^29.5.14", "@types/node": "^20.0.0", "cross-env": "^7.0.3", "jest": "^29.7.0", + "semantic-release": "^21.1.2", "ts-jest": "^29.2.3", "ts-node": "^10.9.2", "zod-to-json-schema": "^3.24.5" @@ -542,6 +547,16 @@ "integrity": "sha512-0hYQ8SB4Db5zvZB4axdMHGwEaQjkZzFjQiN9LVYvIFB2nSUHW9tYpxWriPrWDASIxiaXax83REcLxuSdnGPZtw==", "dev": true }, + "node_modules/@colors/colors": { + "version": "1.5.0", + "resolved": "https://registry.npmjs.org/@colors/colors/-/colors-1.5.0.tgz", + "integrity": "sha512-ooWCrlZP11i8GImSjTHYHLkvFDP48nS4+204nGb1RiX/WXYHmJA2III9/e2DWVabCESdW7hBAEzHRqUn9OUVvQ==", + "dev": true, + "optional": true, + "engines": { + "node": ">=0.1.90" + } + }, "node_modules/@continuedev/config-types": { "version": "1.0.14", "resolved": "https://registry.npmjs.org/@continuedev/config-types/-/config-types-1.0.14.tgz", @@ -923,12 +938,722 @@ "@jridgewell/sourcemap-codec": "^1.4.14" } }, + "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/@octokit/auth-token": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/@octokit/auth-token/-/auth-token-4.0.0.tgz", + "integrity": "sha512-tY/msAuJo6ARbK6SPIxZrPBms3xPbfwBrulZe0Wtr/DIY9lje2HeV1uoebShn6mx7SjCHif6EjMvoREj+gZ+SA==", + "dev": true, + "engines": { + "node": ">= 18" + } + }, + "node_modules/@octokit/core": { + "version": "5.2.1", + "resolved": "https://registry.npmjs.org/@octokit/core/-/core-5.2.1.tgz", + "integrity": "sha512-dKYCMuPO1bmrpuogcjQ8z7ICCH3FP6WmxpwC03yjzGfZhj9fTJg6+bS1+UAplekbN2C+M61UNllGOOoAfGCrdQ==", + "dev": true, + "dependencies": { + "@octokit/auth-token": "^4.0.0", + "@octokit/graphql": "^7.1.0", + "@octokit/request": "^8.4.1", + "@octokit/request-error": "^5.1.1", + "@octokit/types": "^13.0.0", + "before-after-hook": "^2.2.0", + "universal-user-agent": "^6.0.0" + }, + "engines": { + "node": ">= 18" + } + }, + "node_modules/@octokit/endpoint": { + "version": "9.0.6", + "resolved": "https://registry.npmjs.org/@octokit/endpoint/-/endpoint-9.0.6.tgz", + "integrity": "sha512-H1fNTMA57HbkFESSt3Y9+FBICv+0jFceJFPWDePYlR/iMGrwM5ph+Dd4XRQs+8X+PUFURLQgX9ChPfhJ/1uNQw==", + "dev": true, + "dependencies": { + "@octokit/types": "^13.1.0", + "universal-user-agent": "^6.0.0" + }, + "engines": { + "node": ">= 18" + } + }, + "node_modules/@octokit/graphql": { + "version": "7.1.1", + "resolved": "https://registry.npmjs.org/@octokit/graphql/-/graphql-7.1.1.tgz", + "integrity": "sha512-3mkDltSfcDUoa176nlGoA32RGjeWjl3K7F/BwHwRMJUW/IteSa4bnSV8p2ThNkcIcZU2umkZWxwETSSCJf2Q7g==", + "dev": true, + "dependencies": { + "@octokit/request": "^8.4.1", + "@octokit/types": "^13.0.0", + "universal-user-agent": "^6.0.0" + }, + "engines": { + "node": ">= 18" + } + }, + "node_modules/@octokit/openapi-types": { + "version": "24.2.0", + "resolved": "https://registry.npmjs.org/@octokit/openapi-types/-/openapi-types-24.2.0.tgz", + "integrity": "sha512-9sIH3nSUttelJSXUrmGzl7QUBFul0/mB8HRYl3fOlgHbIWG+WnYDXU3v/2zMtAvuzZ/ed00Ei6on975FhBfzrg==", + "dev": true + }, + "node_modules/@octokit/plugin-paginate-rest": { + "version": "9.2.2", + "resolved": "https://registry.npmjs.org/@octokit/plugin-paginate-rest/-/plugin-paginate-rest-9.2.2.tgz", + "integrity": "sha512-u3KYkGF7GcZnSD/3UP0S7K5XUFT2FkOQdcfXZGZQPGv3lm4F2Xbf71lvjldr8c1H3nNbF+33cLEkWYbokGWqiQ==", + "dev": true, + "dependencies": { + "@octokit/types": "^12.6.0" + }, + "engines": { + "node": ">= 18" + }, + "peerDependencies": { + "@octokit/core": "5" + } + }, + "node_modules/@octokit/plugin-paginate-rest/node_modules/@octokit/openapi-types": { + "version": "20.0.0", + "resolved": "https://registry.npmjs.org/@octokit/openapi-types/-/openapi-types-20.0.0.tgz", + "integrity": "sha512-EtqRBEjp1dL/15V7WiX5LJMIxxkdiGJnabzYx5Apx4FkQIFgAfKumXeYAqqJCj1s+BMX4cPFIFC4OLCR6stlnA==", + "dev": true + }, + "node_modules/@octokit/plugin-paginate-rest/node_modules/@octokit/types": { + "version": "12.6.0", + "resolved": "https://registry.npmjs.org/@octokit/types/-/types-12.6.0.tgz", + "integrity": "sha512-1rhSOfRa6H9w4YwK0yrf5faDaDTb+yLyBUKOCV4xtCDB5VmIPqd/v9yr9o6SAzOAlRxMiRiCic6JVM1/kunVkw==", + "dev": true, + "dependencies": { + "@octokit/openapi-types": "^20.0.0" + } + }, + "node_modules/@octokit/plugin-retry": { + "version": "6.1.0", + "resolved": "https://registry.npmjs.org/@octokit/plugin-retry/-/plugin-retry-6.1.0.tgz", + "integrity": "sha512-WrO3bvq4E1Xh1r2mT9w6SDFg01gFmP81nIG77+p/MqW1JeXXgL++6umim3t6x0Zj5pZm3rXAN+0HEjmmdhIRig==", + "dev": true, + "dependencies": { + "@octokit/request-error": "^5.0.0", + "@octokit/types": "^13.0.0", + "bottleneck": "^2.15.3" + }, + "engines": { + "node": ">= 18" + }, + "peerDependencies": { + "@octokit/core": "5" + } + }, + "node_modules/@octokit/plugin-throttling": { + "version": "8.2.0", + "resolved": "https://registry.npmjs.org/@octokit/plugin-throttling/-/plugin-throttling-8.2.0.tgz", + "integrity": "sha512-nOpWtLayKFpgqmgD0y3GqXafMFuKcA4tRPZIfu7BArd2lEZeb1988nhWhwx4aZWmjDmUfdgVf7W+Tt4AmvRmMQ==", + "dev": true, + "dependencies": { + "@octokit/types": "^12.2.0", + "bottleneck": "^2.15.3" + }, + "engines": { + "node": ">= 18" + }, + "peerDependencies": { + "@octokit/core": "^5.0.0" + } + }, + "node_modules/@octokit/plugin-throttling/node_modules/@octokit/openapi-types": { + "version": "20.0.0", + "resolved": "https://registry.npmjs.org/@octokit/openapi-types/-/openapi-types-20.0.0.tgz", + "integrity": "sha512-EtqRBEjp1dL/15V7WiX5LJMIxxkdiGJnabzYx5Apx4FkQIFgAfKumXeYAqqJCj1s+BMX4cPFIFC4OLCR6stlnA==", + "dev": true + }, + "node_modules/@octokit/plugin-throttling/node_modules/@octokit/types": { + "version": "12.6.0", + "resolved": "https://registry.npmjs.org/@octokit/types/-/types-12.6.0.tgz", + "integrity": "sha512-1rhSOfRa6H9w4YwK0yrf5faDaDTb+yLyBUKOCV4xtCDB5VmIPqd/v9yr9o6SAzOAlRxMiRiCic6JVM1/kunVkw==", + "dev": true, + "dependencies": { + "@octokit/openapi-types": "^20.0.0" + } + }, + "node_modules/@octokit/request": { + "version": "8.4.1", + "resolved": "https://registry.npmjs.org/@octokit/request/-/request-8.4.1.tgz", + "integrity": "sha512-qnB2+SY3hkCmBxZsR/MPCybNmbJe4KAlfWErXq+rBKkQJlbjdJeS85VI9r8UqeLYLvnAenU8Q1okM/0MBsAGXw==", + "dev": true, + "dependencies": { + "@octokit/endpoint": "^9.0.6", + "@octokit/request-error": "^5.1.1", + "@octokit/types": "^13.1.0", + "universal-user-agent": "^6.0.0" + }, + "engines": { + "node": ">= 18" + } + }, + "node_modules/@octokit/request-error": { + "version": "5.1.1", + "resolved": "https://registry.npmjs.org/@octokit/request-error/-/request-error-5.1.1.tgz", + "integrity": "sha512-v9iyEQJH6ZntoENr9/yXxjuezh4My67CBSu9r6Ve/05Iu5gNgnisNWOsoJHTP6k0Rr0+HQIpnH+kyammu90q/g==", + "dev": true, + "dependencies": { + "@octokit/types": "^13.1.0", + "deprecation": "^2.0.0", + "once": "^1.4.0" + }, + "engines": { + "node": ">= 18" + } + }, + "node_modules/@octokit/types": { + "version": "13.10.0", + "resolved": "https://registry.npmjs.org/@octokit/types/-/types-13.10.0.tgz", + "integrity": "sha512-ifLaO34EbbPj0Xgro4G5lP5asESjwHracYJvVaPIyXMuiuXLlhic3S47cBdTb+jfODkTE5YtGCLt3Ay3+J97sA==", + "dev": true, + "dependencies": { + "@octokit/openapi-types": "^24.2.0" + } + }, + "node_modules/@pnpm/config.env-replace": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/@pnpm/config.env-replace/-/config.env-replace-1.1.0.tgz", + "integrity": "sha512-htyl8TWnKL7K/ESFa1oW2UB5lVDxuF5DpM7tBi6Hu2LNL3mWkIzNLG6N4zoCUP1lCKNxWy/3iu8mS8MvToGd6w==", + "dev": true, + "engines": { + "node": ">=12.22.0" + } + }, + "node_modules/@pnpm/network.ca-file": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/@pnpm/network.ca-file/-/network.ca-file-1.0.2.tgz", + "integrity": "sha512-YcPQ8a0jwYU9bTdJDpXjMi7Brhkr1mXsXrUJvjqM2mQDgkRiz8jFaQGOdaLxgjtUfQgZhKy/O3cG/YwmgKaxLA==", + "dev": true, + "dependencies": { + "graceful-fs": "4.2.10" + }, + "engines": { + "node": ">=12.22.0" + } + }, + "node_modules/@pnpm/network.ca-file/node_modules/graceful-fs": { + "version": "4.2.10", + "resolved": "https://registry.npmjs.org/graceful-fs/-/graceful-fs-4.2.10.tgz", + "integrity": "sha512-9ByhssR2fPVsNZj478qUUbKfmL0+t5BDVyjShtyZZLiK7ZDAArFFfopyOTj0M05wE2tJPisA4iTnnXl2YoPvOA==", + "dev": true + }, + "node_modules/@pnpm/npm-conf": { + "version": "2.3.1", + "resolved": "https://registry.npmjs.org/@pnpm/npm-conf/-/npm-conf-2.3.1.tgz", + "integrity": "sha512-c83qWb22rNRuB0UaVCI0uRPNRr8Z0FWnEIvT47jiHAmOIUHbBOg5XvV7pM5x+rKn9HRpjxquDbXYSXr3fAKFcw==", + "dev": true, + "dependencies": { + "@pnpm/config.env-replace": "^1.1.0", + "@pnpm/network.ca-file": "^1.0.1", + "config-chain": "^1.1.11" + }, + "engines": { + "node": ">=12" + } + }, + "node_modules/@semantic-release/changelog": { + "version": "6.0.3", + "resolved": "https://registry.npmjs.org/@semantic-release/changelog/-/changelog-6.0.3.tgz", + "integrity": "sha512-dZuR5qByyfe3Y03TpmCvAxCyTnp7r5XwtHRf/8vD9EAn4ZWbavUX8adMtXYzE86EVh0gyLA7lm5yW4IV30XUag==", + "dev": true, + "dependencies": { + "@semantic-release/error": "^3.0.0", + "aggregate-error": "^3.0.0", + "fs-extra": "^11.0.0", + "lodash": "^4.17.4" + }, + "engines": { + "node": ">=14.17" + }, + "peerDependencies": { + "semantic-release": ">=18.0.0" + } + }, + "node_modules/@semantic-release/commit-analyzer": { + "version": "10.0.4", + "resolved": "https://registry.npmjs.org/@semantic-release/commit-analyzer/-/commit-analyzer-10.0.4.tgz", + "integrity": "sha512-pFGn99fn8w4/MHE0otb2A/l5kxgOuxaaauIh4u30ncoTJuqWj4hXTgEJ03REqjS+w1R2vPftSsO26WC61yOcpw==", + "dev": true, + "dependencies": { + "conventional-changelog-angular": "^6.0.0", + "conventional-commits-filter": "^3.0.0", + "conventional-commits-parser": "^5.0.0", + "debug": "^4.0.0", + "import-from": "^4.0.0", + "lodash-es": "^4.17.21", + "micromatch": "^4.0.2" + }, + "engines": { + "node": ">=18" + }, + "peerDependencies": { + "semantic-release": ">=20.1.0" + } + }, + "node_modules/@semantic-release/error": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/@semantic-release/error/-/error-3.0.0.tgz", + "integrity": "sha512-5hiM4Un+tpl4cKw3lV4UgzJj+SmfNIDCLLw0TepzQxz9ZGV5ixnqkzIVF+3tp0ZHgcMKE+VNGHJjEeyFG2dcSw==", + "dev": true, + "engines": { + "node": ">=14.17" + } + }, + "node_modules/@semantic-release/git": { + "version": "10.0.1", + "resolved": "https://registry.npmjs.org/@semantic-release/git/-/git-10.0.1.tgz", + "integrity": "sha512-eWrx5KguUcU2wUPaO6sfvZI0wPafUKAMNC18aXY4EnNcrZL86dEmpNVnC9uMpGZkmZJ9EfCVJBQx4pV4EMGT1w==", + "dev": true, + "dependencies": { + "@semantic-release/error": "^3.0.0", + "aggregate-error": "^3.0.0", + "debug": "^4.0.0", + "dir-glob": "^3.0.0", + "execa": "^5.0.0", + "lodash": "^4.17.4", + "micromatch": "^4.0.0", + "p-reduce": "^2.0.0" + }, + "engines": { + "node": ">=14.17" + }, + "peerDependencies": { + "semantic-release": ">=18.0.0" + } + }, + "node_modules/@semantic-release/github": { + "version": "9.2.6", + "resolved": "https://registry.npmjs.org/@semantic-release/github/-/github-9.2.6.tgz", + "integrity": "sha512-shi+Lrf6exeNZF+sBhK+P011LSbhmIAoUEgEY6SsxF8irJ+J2stwI5jkyDQ+4gzYyDImzV6LCKdYB9FXnQRWKA==", + "dev": true, + "dependencies": { + "@octokit/core": "^5.0.0", + "@octokit/plugin-paginate-rest": "^9.0.0", + "@octokit/plugin-retry": "^6.0.0", + "@octokit/plugin-throttling": "^8.0.0", + "@semantic-release/error": "^4.0.0", + "aggregate-error": "^5.0.0", + "debug": "^4.3.4", + "dir-glob": "^3.0.1", + "globby": "^14.0.0", + "http-proxy-agent": "^7.0.0", + "https-proxy-agent": "^7.0.0", + "issue-parser": "^6.0.0", + "lodash-es": "^4.17.21", + "mime": "^4.0.0", + "p-filter": "^4.0.0", + "url-join": "^5.0.0" + }, + "engines": { + "node": ">=18" + }, + "peerDependencies": { + "semantic-release": ">=20.1.0" + } + }, + "node_modules/@semantic-release/github/node_modules/@semantic-release/error": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/@semantic-release/error/-/error-4.0.0.tgz", + "integrity": "sha512-mgdxrHTLOjOddRVYIYDo0fR3/v61GNN1YGkfbrjuIKg/uMgCd+Qzo3UAXJ+woLQQpos4pl5Esuw5A7AoNlzjUQ==", + "dev": true, + "engines": { + "node": ">=18" + } + }, + "node_modules/@semantic-release/github/node_modules/aggregate-error": { + "version": "5.0.0", + "resolved": "https://registry.npmjs.org/aggregate-error/-/aggregate-error-5.0.0.tgz", + "integrity": "sha512-gOsf2YwSlleG6IjRYG2A7k0HmBMEo6qVNk9Bp/EaLgAJT5ngH6PXbqa4ItvnEwCm/velL5jAnQgsHsWnjhGmvw==", + "dev": true, + "dependencies": { + "clean-stack": "^5.2.0", + "indent-string": "^5.0.0" + }, + "engines": { + "node": ">=18" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/@semantic-release/github/node_modules/clean-stack": { + "version": "5.2.0", + "resolved": "https://registry.npmjs.org/clean-stack/-/clean-stack-5.2.0.tgz", + "integrity": "sha512-TyUIUJgdFnCISzG5zu3291TAsE77ddchd0bepon1VVQrKLGKFED4iXFEDQ24mIPdPBbyE16PK3F8MYE1CmcBEQ==", + "dev": true, + "dependencies": { + "escape-string-regexp": "5.0.0" + }, + "engines": { + "node": ">=14.16" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/@semantic-release/github/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/@semantic-release/github/node_modules/indent-string": { + "version": "5.0.0", + "resolved": "https://registry.npmjs.org/indent-string/-/indent-string-5.0.0.tgz", + "integrity": "sha512-m6FAo/spmsW2Ab2fU35JTYwtOKa2yAwXSwgjSv1TJzh4Mh7mC3lzAOVLBprb72XsTrgkEIsl7YrFNAiDiRhIGg==", + "dev": true, + "engines": { + "node": ">=12" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/@semantic-release/npm": { + "version": "10.0.6", + "resolved": "https://registry.npmjs.org/@semantic-release/npm/-/npm-10.0.6.tgz", + "integrity": "sha512-DyqHrGE8aUyapA277BB+4kV0C4iMHh3sHzUWdf0jTgp5NNJxVUz76W1f57FB64Ue03him3CBXxFqQD2xGabxow==", + "dev": true, + "dependencies": { + "@semantic-release/error": "^4.0.0", + "aggregate-error": "^5.0.0", + "execa": "^8.0.0", + "fs-extra": "^11.0.0", + "lodash-es": "^4.17.21", + "nerf-dart": "^1.0.0", + "normalize-url": "^8.0.0", + "npm": "^9.5.0", + "rc": "^1.2.8", + "read-pkg": "^8.0.0", + "registry-auth-token": "^5.0.0", + "semver": "^7.1.2", + "tempy": "^3.0.0" + }, + "engines": { + "node": ">=18" + }, + "peerDependencies": { + "semantic-release": ">=20.1.0" + } + }, + "node_modules/@semantic-release/npm/node_modules/@semantic-release/error": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/@semantic-release/error/-/error-4.0.0.tgz", + "integrity": "sha512-mgdxrHTLOjOddRVYIYDo0fR3/v61GNN1YGkfbrjuIKg/uMgCd+Qzo3UAXJ+woLQQpos4pl5Esuw5A7AoNlzjUQ==", + "dev": true, + "engines": { + "node": ">=18" + } + }, + "node_modules/@semantic-release/npm/node_modules/aggregate-error": { + "version": "5.0.0", + "resolved": "https://registry.npmjs.org/aggregate-error/-/aggregate-error-5.0.0.tgz", + "integrity": "sha512-gOsf2YwSlleG6IjRYG2A7k0HmBMEo6qVNk9Bp/EaLgAJT5ngH6PXbqa4ItvnEwCm/velL5jAnQgsHsWnjhGmvw==", + "dev": true, + "dependencies": { + "clean-stack": "^5.2.0", + "indent-string": "^5.0.0" + }, + "engines": { + "node": ">=18" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/@semantic-release/npm/node_modules/clean-stack": { + "version": "5.2.0", + "resolved": "https://registry.npmjs.org/clean-stack/-/clean-stack-5.2.0.tgz", + "integrity": "sha512-TyUIUJgdFnCISzG5zu3291TAsE77ddchd0bepon1VVQrKLGKFED4iXFEDQ24mIPdPBbyE16PK3F8MYE1CmcBEQ==", + "dev": true, + "dependencies": { + "escape-string-regexp": "5.0.0" + }, + "engines": { + "node": ">=14.16" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/@semantic-release/npm/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/@semantic-release/npm/node_modules/execa": { + "version": "8.0.1", + "resolved": "https://registry.npmjs.org/execa/-/execa-8.0.1.tgz", + "integrity": "sha512-VyhnebXciFV2DESc+p6B+y0LjSm0krU4OgJN44qFAhBY0TJ+1V61tYD2+wHusZ6F9n5K+vl8k0sTy7PEfV4qpg==", + "dev": true, + "dependencies": { + "cross-spawn": "^7.0.3", + "get-stream": "^8.0.1", + "human-signals": "^5.0.0", + "is-stream": "^3.0.0", + "merge-stream": "^2.0.0", + "npm-run-path": "^5.1.0", + "onetime": "^6.0.0", + "signal-exit": "^4.1.0", + "strip-final-newline": "^3.0.0" + }, + "engines": { + "node": ">=16.17" + }, + "funding": { + "url": "https://github.com/sindresorhus/execa?sponsor=1" + } + }, + "node_modules/@semantic-release/npm/node_modules/get-stream": { + "version": "8.0.1", + "resolved": "https://registry.npmjs.org/get-stream/-/get-stream-8.0.1.tgz", + "integrity": "sha512-VaUJspBffn/LMCJVoMvSAdmscJyS1auj5Zulnn5UoYcY531UWmdwhRWkcGKnGU93m5HSXP9LP2usOryrBtQowA==", + "dev": true, + "engines": { + "node": ">=16" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/@semantic-release/npm/node_modules/human-signals": { + "version": "5.0.0", + "resolved": "https://registry.npmjs.org/human-signals/-/human-signals-5.0.0.tgz", + "integrity": "sha512-AXcZb6vzzrFAUE61HnN4mpLqd/cSIwNQjtNWR0euPm6y0iqx3G4gOXaIDdtdDwZmhwe82LA6+zinmW4UBWVePQ==", + "dev": true, + "engines": { + "node": ">=16.17.0" + } + }, + "node_modules/@semantic-release/npm/node_modules/indent-string": { + "version": "5.0.0", + "resolved": "https://registry.npmjs.org/indent-string/-/indent-string-5.0.0.tgz", + "integrity": "sha512-m6FAo/spmsW2Ab2fU35JTYwtOKa2yAwXSwgjSv1TJzh4Mh7mC3lzAOVLBprb72XsTrgkEIsl7YrFNAiDiRhIGg==", + "dev": true, + "engines": { + "node": ">=12" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/@semantic-release/npm/node_modules/is-stream": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/is-stream/-/is-stream-3.0.0.tgz", + "integrity": "sha512-LnQR4bZ9IADDRSkvpqMGvt/tEJWclzklNgSw48V5EAaAeDd6qGvN8ei6k5p0tvxSR171VmGyHuTiAOfxAbr8kA==", + "dev": true, + "engines": { + "node": "^12.20.0 || ^14.13.1 || >=16.0.0" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/@semantic-release/npm/node_modules/mimic-fn": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/mimic-fn/-/mimic-fn-4.0.0.tgz", + "integrity": "sha512-vqiC06CuhBTUdZH+RYl8sFrL096vA45Ok5ISO6sE/Mr1jRbGH4Csnhi8f3wKVl7x8mO4Au7Ir9D3Oyv1VYMFJw==", + "dev": true, + "engines": { + "node": ">=12" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/@semantic-release/npm/node_modules/npm-run-path": { + "version": "5.3.0", + "resolved": "https://registry.npmjs.org/npm-run-path/-/npm-run-path-5.3.0.tgz", + "integrity": "sha512-ppwTtiJZq0O/ai0z7yfudtBpWIoxM8yE6nHi1X47eFR2EWORqfbu6CnPlNsjeN683eT0qG6H/Pyf9fCcvjnnnQ==", + "dev": true, + "dependencies": { + "path-key": "^4.0.0" + }, + "engines": { + "node": "^12.20.0 || ^14.13.1 || >=16.0.0" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/@semantic-release/npm/node_modules/onetime": { + "version": "6.0.0", + "resolved": "https://registry.npmjs.org/onetime/-/onetime-6.0.0.tgz", + "integrity": "sha512-1FlR+gjXK7X+AsAHso35MnyN5KqGwJRi/31ft6x0M194ht7S+rWAvd7PHss9xSKMzE0asv1pyIHaJYq+BbacAQ==", + "dev": true, + "dependencies": { + "mimic-fn": "^4.0.0" + }, + "engines": { + "node": ">=12" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/@semantic-release/npm/node_modules/path-key": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/path-key/-/path-key-4.0.0.tgz", + "integrity": "sha512-haREypq7xkM7ErfgIyA0z+Bj4AGKlMSdlQE2jvJo6huWD1EdkKYV+G/T4nq0YEF2vgTT8kqMFKo1uHn950r4SQ==", + "dev": true, + "engines": { + "node": ">=12" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/@semantic-release/npm/node_modules/semver": { + "version": "7.7.2", + "resolved": "https://registry.npmjs.org/semver/-/semver-7.7.2.tgz", + "integrity": "sha512-RF0Fw+rO5AMf9MAyaRXI4AV0Ulj5lMHqVxxdSgiVbixSCXoEmmX/jk0CuJw4+3SqroYO9VoUh+HcuJivvtJemA==", + "dev": true, + "bin": { + "semver": "bin/semver.js" + }, + "engines": { + "node": ">=10" + } + }, + "node_modules/@semantic-release/npm/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/@semantic-release/npm/node_modules/strip-final-newline": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/strip-final-newline/-/strip-final-newline-3.0.0.tgz", + "integrity": "sha512-dOESqjYr96iWYylGObzd39EuNTa5VJxyvVAEm5Jnh7KGo75V43Hk1odPQkNDyXNmUR6k+gEiDVXnjB8HJ3crXw==", + "dev": true, + "engines": { + "node": ">=12" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/@semantic-release/release-notes-generator": { + "version": "11.0.7", + "resolved": "https://registry.npmjs.org/@semantic-release/release-notes-generator/-/release-notes-generator-11.0.7.tgz", + "integrity": "sha512-T09QB9ImmNx7Q6hY6YnnEbw/rEJ6a+22LBxfZq+pSAXg/OL/k0siwEm5cK4k1f9dE2Z2mPIjJKKohzUm0jbxcQ==", + "dev": true, + "dependencies": { + "conventional-changelog-angular": "^6.0.0", + "conventional-changelog-writer": "^6.0.0", + "conventional-commits-filter": "^4.0.0", + "conventional-commits-parser": "^5.0.0", + "debug": "^4.0.0", + "get-stream": "^7.0.0", + "import-from": "^4.0.0", + "into-stream": "^7.0.0", + "lodash-es": "^4.17.21", + "read-pkg-up": "^10.0.0" + }, + "engines": { + "node": ">=18" + }, + "peerDependencies": { + "semantic-release": ">=20.1.0" + } + }, + "node_modules/@semantic-release/release-notes-generator/node_modules/conventional-commits-filter": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/conventional-commits-filter/-/conventional-commits-filter-4.0.0.tgz", + "integrity": "sha512-rnpnibcSOdFcdclpFwWa+pPlZJhXE7l+XK04zxhbWrhgpR96h33QLz8hITTXbcYICxVr3HZFtbtUAQ+4LdBo9A==", + "dev": true, + "engines": { + "node": ">=16" + } + }, + "node_modules/@semantic-release/release-notes-generator/node_modules/get-stream": { + "version": "7.0.1", + "resolved": "https://registry.npmjs.org/get-stream/-/get-stream-7.0.1.tgz", + "integrity": "sha512-3M8C1EOFN6r8AMUhwUAACIoXZJEOufDU5+0gFFN5uNs6XYOralD2Pqkl7m046va6x77FwposWXbAhPPIOus7mQ==", + "dev": true, + "engines": { + "node": ">=16" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, "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/@sindresorhus/merge-streams": { + "version": "2.3.0", + "resolved": "https://registry.npmjs.org/@sindresorhus/merge-streams/-/merge-streams-2.3.0.tgz", + "integrity": "sha512-LtoMMhxAlorcGhmFYI+LhPgbPZCkgP6ra1YL604EeF6U98pLlQ3iWIGMdWSC+vWmPBWBNgmDBAhnAobLROJmwg==", + "dev": true, + "engines": { + "node": ">=18" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, "node_modules/@sinonjs/commons": { "version": "3.0.1", "resolved": "https://registry.npmjs.org/@sinonjs/commons/-/commons-3.0.1.tgz", @@ -1056,6 +1781,12 @@ "pretty-format": "^29.0.0" } }, + "node_modules/@types/minimist": { + "version": "1.2.5", + "resolved": "https://registry.npmjs.org/@types/minimist/-/minimist-1.2.5.tgz", + "integrity": "sha512-hov8bUuiLiyFPGyFPE1lwWhmzYbirOXQNNo40+y3zow8aFVTeyn3VWL0VFFfdNddA8S4Vf0Tc062rzyNr7Paag==", + "dev": true + }, "node_modules/@types/node": { "version": "20.17.30", "resolved": "https://registry.npmjs.org/@types/node/-/node-20.17.30.tgz", @@ -1065,6 +1796,12 @@ "undici-types": "~6.19.2" } }, + "node_modules/@types/normalize-package-data": { + "version": "2.4.4", + "resolved": "https://registry.npmjs.org/@types/normalize-package-data/-/normalize-package-data-2.4.4.tgz", + "integrity": "sha512-37i+OaWTh9qeK4LSHPsyRC7NahnGotNuZvjLSgcPzblpHB3rrCJxAOgI5gCdKm7coonsaX1Of0ILiTcnZjbfxA==", + "dev": true + }, "node_modules/@types/stack-utils": { "version": "2.0.3", "resolved": "https://registry.npmjs.org/@types/stack-utils/-/stack-utils-2.0.3.tgz", @@ -1110,6 +1847,28 @@ "node": ">=0.4.0" } }, + "node_modules/agent-base": { + "version": "7.1.3", + "resolved": "https://registry.npmjs.org/agent-base/-/agent-base-7.1.3.tgz", + "integrity": "sha512-jRR5wdylq8CkOe6hei19GGZnxM6rBGwFl3Bg0YItGDimvjGtAvdZk4Pu6Cl4u4Igsws4a1fd1Vq3ezrhn4KmFw==", + "dev": true, + "engines": { + "node": ">= 14" + } + }, + "node_modules/aggregate-error": { + "version": "3.1.0", + "resolved": "https://registry.npmjs.org/aggregate-error/-/aggregate-error-3.1.0.tgz", + "integrity": "sha512-4I7Td01quW/RpocfNayFdFVk1qSuoh0E7JrbRJ16nH01HhKFQ88INq9Sd+nd72zqRySlr9BmDA8xlEJ6vJMrYA==", + "dev": true, + "dependencies": { + "clean-stack": "^2.0.0", + "indent-string": "^4.0.0" + }, + "engines": { + "node": ">=8" + } + }, "node_modules/ansi-escapes": { "version": "4.3.2", "resolved": "https://registry.npmjs.org/ansi-escapes/-/ansi-escapes-4.3.2.tgz", @@ -1149,6 +1908,12 @@ "url": "https://github.com/chalk/ansi-styles?sponsor=1" } }, + "node_modules/ansicolors": { + "version": "0.3.2", + "resolved": "https://registry.npmjs.org/ansicolors/-/ansicolors-0.3.2.tgz", + "integrity": "sha512-QXu7BPrP29VllRxH8GwB7x5iX5qWKAAMLqKQGWTeLWVlNHNOpVMJ91dsxQAIWXpjuW5wqvxu3Jd/nRjrJ+0pqg==", + "dev": true + }, "node_modules/anymatch": { "version": "3.1.3", "resolved": "https://registry.npmjs.org/anymatch/-/anymatch-3.1.3.tgz", @@ -1177,6 +1942,27 @@ "sprintf-js": "~1.0.2" } }, + "node_modules/argv-formatter": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/argv-formatter/-/argv-formatter-1.0.0.tgz", + "integrity": "sha512-F2+Hkm9xFaRg+GkaNnbwXNDV5O6pnCFEmqyhvfC/Ic5LbgOWjJh3L+mN/s91rxVL3znE7DYVpW0GJFT+4YBgWw==", + "dev": true + }, + "node_modules/array-ify": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/array-ify/-/array-ify-1.0.0.tgz", + "integrity": "sha512-c5AMf34bKdvPhQ7tBGhqkgKNUzMr4WUs+WDtC2ZUGOUncbxKMTvqxYctiseW3+L4bA8ec+GcZ6/A/FW4m8ukng==", + "dev": true + }, + "node_modules/arrify": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/arrify/-/arrify-1.0.1.tgz", + "integrity": "sha512-3CYzex9M9FGQjCGMGyi6/31c8GJbgb0qGyrx5HWxPd0aCwh4cB2YjMb2Xf9UuoogrMrlO9cTqnB5rI5GHZTcUA==", + "dev": true, + "engines": { + "node": ">=0.10.0" + } + }, "node_modules/async": { "version": "3.2.5", "resolved": "https://registry.npmjs.org/async/-/async-3.2.5.tgz", @@ -1296,6 +2082,18 @@ "integrity": "sha512-3oSeUO0TMV67hN1AmbXsK4yaqU7tjiHlbxRDZOpH0KW9+CeX4bRAaX0Anxt0tx2MrpRpWwQaPwIlISEJhYU5Pw==", "dev": true }, + "node_modules/before-after-hook": { + "version": "2.2.3", + "resolved": "https://registry.npmjs.org/before-after-hook/-/before-after-hook-2.2.3.tgz", + "integrity": "sha512-NzUnlZexiaH/46WDhANlyR2bXRopNg4F/zuSA3OpZnllCUgRaOF2znDioDWrmbNVsuZk6l9pMquQB38cfBZwkQ==", + "dev": true + }, + "node_modules/bottleneck": { + "version": "2.19.5", + "resolved": "https://registry.npmjs.org/bottleneck/-/bottleneck-2.19.5.tgz", + "integrity": "sha512-VHiNCbI1lKdl44tGrhNfU3lup0Tj/ZBMJB5/2ZbNXRCPuRCO7ed2mgcK4r17y+KB2EfuYuRaVlwNbAeaWGSpbw==", + "dev": true + }, "node_modules/brace-expansion": { "version": "1.1.11", "resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-1.1.11.tgz", @@ -1395,6 +2193,23 @@ "node": ">=6" } }, + "node_modules/camelcase-keys": { + "version": "6.2.2", + "resolved": "https://registry.npmjs.org/camelcase-keys/-/camelcase-keys-6.2.2.tgz", + "integrity": "sha512-YrwaA0vEKazPBkn0ipTiMpSajYDSe+KjQfrjhcBMxJt/znbvlHd8Pw/Vamaz5EB4Wfhs3SUR3Z9mwRu/P3s3Yg==", + "dev": true, + "dependencies": { + "camelcase": "^5.3.1", + "map-obj": "^4.0.0", + "quick-lru": "^4.0.1" + }, + "engines": { + "node": ">=8" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, "node_modules/caniuse-lite": { "version": "1.0.30001643", "resolved": "https://registry.npmjs.org/caniuse-lite/-/caniuse-lite-1.0.30001643.tgz", @@ -1415,6 +2230,19 @@ } ] }, + "node_modules/cardinal": { + "version": "2.1.1", + "resolved": "https://registry.npmjs.org/cardinal/-/cardinal-2.1.1.tgz", + "integrity": "sha512-JSr5eOgoEymtYHBjNWyjrMqet9Am2miJhlfKNdqLp6zoeAh0KN5dRAcxlecj5mAJrmQomgiOBj35xHLrFjqBpw==", + "dev": true, + "dependencies": { + "ansicolors": "~0.3.2", + "redeyed": "~2.1.0" + }, + "bin": { + "cdl": "bin/cdl.js" + } + }, "node_modules/chalk": { "version": "4.1.2", "resolved": "https://registry.npmjs.org/chalk/-/chalk-4.1.2.tgz", @@ -1461,6 +2289,30 @@ "integrity": "sha512-a3KdPAANPbNE4ZUv9h6LckSl9zLsYOP4MBmhIPkRaeyybt+r4UghLvq+xw/YwUcC1gqylCkL4rdVs3Lwupjm4Q==", "dev": true }, + "node_modules/clean-stack": { + "version": "2.2.0", + "resolved": "https://registry.npmjs.org/clean-stack/-/clean-stack-2.2.0.tgz", + "integrity": "sha512-4diC9HaTE+KRAMWhDhrGOECgWZxoevMc5TlkObMqNSsVU62PYzXZ/SMTjzyGAFF1YusgxGcSWTEXBhp0CPwQ1A==", + "dev": true, + "engines": { + "node": ">=6" + } + }, + "node_modules/cli-table3": { + "version": "0.6.5", + "resolved": "https://registry.npmjs.org/cli-table3/-/cli-table3-0.6.5.tgz", + "integrity": "sha512-+W/5efTR7y5HRD7gACw9yQjqMVvEMLBHmboM/kPWam+H+Hmyrgjh6YncVKK122YZkXrLudzTuAukUw9FnMf7IQ==", + "dev": true, + "dependencies": { + "string-width": "^4.2.0" + }, + "engines": { + "node": "10.* || >= 12.*" + }, + "optionalDependencies": { + "@colors/colors": "1.5.0" + } + }, "node_modules/cliui": { "version": "8.0.1", "resolved": "https://registry.npmjs.org/cliui/-/cliui-8.0.1.tgz", @@ -1509,18 +2361,176 @@ "integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==", "dev": true }, + "node_modules/compare-func": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/compare-func/-/compare-func-2.0.0.tgz", + "integrity": "sha512-zHig5N+tPWARooBnb0Zx1MFcdfpyJrfTJ3Y5L+IFvUm8rM74hHz66z0gw0x4tijh5CorKkKUCnW82R2vmpeCRA==", + "dev": true, + "dependencies": { + "array-ify": "^1.0.0", + "dot-prop": "^5.1.0" + } + }, "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/config-chain": { + "version": "1.1.13", + "resolved": "https://registry.npmjs.org/config-chain/-/config-chain-1.1.13.tgz", + "integrity": "sha512-qj+f8APARXHrM0hraqXYb2/bOVSV4PvJQlNZ/DVj0QrmNM2q2euizkeuVckQ57J+W0mRH6Hvi+k50M4Jul2VRQ==", + "dev": true, + "dependencies": { + "ini": "^1.3.4", + "proto-list": "~1.2.1" + } + }, + "node_modules/conventional-changelog-angular": { + "version": "6.0.0", + "resolved": "https://registry.npmjs.org/conventional-changelog-angular/-/conventional-changelog-angular-6.0.0.tgz", + "integrity": "sha512-6qLgrBF4gueoC7AFVHu51nHL9pF9FRjXrH+ceVf7WmAfH3gs+gEYOkvxhjMPjZu57I4AGUGoNTY8V7Hrgf1uqg==", + "dev": true, + "dependencies": { + "compare-func": "^2.0.0" + }, + "engines": { + "node": ">=14" + } + }, + "node_modules/conventional-changelog-writer": { + "version": "6.0.1", + "resolved": "https://registry.npmjs.org/conventional-changelog-writer/-/conventional-changelog-writer-6.0.1.tgz", + "integrity": "sha512-359t9aHorPw+U+nHzUXHS5ZnPBOizRxfQsWT5ZDHBfvfxQOAik+yfuhKXG66CN5LEWPpMNnIMHUTCKeYNprvHQ==", + "dev": true, + "dependencies": { + "conventional-commits-filter": "^3.0.0", + "dateformat": "^3.0.3", + "handlebars": "^4.7.7", + "json-stringify-safe": "^5.0.1", + "meow": "^8.1.2", + "semver": "^7.0.0", + "split": "^1.0.1" + }, + "bin": { + "conventional-changelog-writer": "cli.js" + }, + "engines": { + "node": ">=14" + } + }, + "node_modules/conventional-changelog-writer/node_modules/semver": { + "version": "7.7.2", + "resolved": "https://registry.npmjs.org/semver/-/semver-7.7.2.tgz", + "integrity": "sha512-RF0Fw+rO5AMf9MAyaRXI4AV0Ulj5lMHqVxxdSgiVbixSCXoEmmX/jk0CuJw4+3SqroYO9VoUh+HcuJivvtJemA==", + "dev": true, + "bin": { + "semver": "bin/semver.js" + }, + "engines": { + "node": ">=10" + } + }, + "node_modules/conventional-commits-filter": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/conventional-commits-filter/-/conventional-commits-filter-3.0.0.tgz", + "integrity": "sha512-1ymej8b5LouPx9Ox0Dw/qAO2dVdfpRFq28e5Y0jJEU8ZrLdy0vOSkkIInwmxErFGhg6SALro60ZrwYFVTUDo4Q==", + "dev": true, + "dependencies": { + "lodash.ismatch": "^4.4.0", + "modify-values": "^1.0.1" + }, + "engines": { + "node": ">=14" + } + }, + "node_modules/conventional-commits-parser": { + "version": "5.0.0", + "resolved": "https://registry.npmjs.org/conventional-commits-parser/-/conventional-commits-parser-5.0.0.tgz", + "integrity": "sha512-ZPMl0ZJbw74iS9LuX9YIAiW8pfM5p3yh2o/NbXHbkFuZzY5jvdi5jFycEOkmBW5H5I7nA+D6f3UcsCLP2vvSEA==", + "dev": true, + "dependencies": { + "is-text-path": "^2.0.0", + "JSONStream": "^1.3.5", + "meow": "^12.0.1", + "split2": "^4.0.0" + }, + "bin": { + "conventional-commits-parser": "cli.mjs" + }, + "engines": { + "node": ">=16" + } + }, + "node_modules/conventional-commits-parser/node_modules/meow": { + "version": "12.1.1", + "resolved": "https://registry.npmjs.org/meow/-/meow-12.1.1.tgz", + "integrity": "sha512-BhXM0Au22RwUneMPwSCnyhTOizdWoIEPU9sp0Aqa1PnDMR5Wv2FGXYDjuzJEIX+Eo2Rb8xuYe5jrnm5QowQFkw==", + "dev": true, + "engines": { + "node": ">=16.10" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, "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-util-is": { + "version": "1.0.3", + "resolved": "https://registry.npmjs.org/core-util-is/-/core-util-is-1.0.3.tgz", + "integrity": "sha512-ZQBvi1DcpJ4GDqanjucZ2Hj3wEO5pZDS89BWbkcrvdxksJorwUDDZamX9ldFkp9aw2lmBDLgkObEA4DWNJ9FYQ==", + "dev": true + }, + "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==", + "dev": true, + "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/cosmiconfig/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==", + "dev": true + }, + "node_modules/cosmiconfig/node_modules/js-yaml": { + "version": "4.1.0", + "resolved": "https://registry.npmjs.org/js-yaml/-/js-yaml-4.1.0.tgz", + "integrity": "sha512-wpxZs9NoxZaJESJGIZTyDEaYpl0FKSA+FB9aJiyemKhMwkxQg63h4T1KJgUGHpTqPDNRcmmYLugrRjJlBtWvRA==", + "dev": true, + "dependencies": { + "argparse": "^2.0.1" + }, + "bin": { + "js-yaml": "bin/js-yaml.js" + } + }, "node_modules/create-jest": { "version": "29.7.0", "resolved": "https://registry.npmjs.org/create-jest/-/create-jest-29.7.0.tgz", @@ -1580,6 +2590,42 @@ "node": ">= 8" } }, + "node_modules/crypto-random-string": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/crypto-random-string/-/crypto-random-string-4.0.0.tgz", + "integrity": "sha512-x8dy3RnvYdlUcPOjkEHqozhiwzKNSq7GcPuXFbnyMOCHxX8V3OgIg/pYuabl2sbUPfIJaeAQB7PMOK8DFIdoRA==", + "dev": true, + "dependencies": { + "type-fest": "^1.0.1" + }, + "engines": { + "node": ">=12" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/crypto-random-string/node_modules/type-fest": { + "version": "1.4.0", + "resolved": "https://registry.npmjs.org/type-fest/-/type-fest-1.4.0.tgz", + "integrity": "sha512-yGSza74xk0UG8k+pLh5oeoYirvIiWo5t0/o3zHHAO2tRDiZcxWP7fywNlXhqb6/r6sWvwi+RsyQMWhVLe4BVuA==", + "dev": true, + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/dateformat": { + "version": "3.0.3", + "resolved": "https://registry.npmjs.org/dateformat/-/dateformat-3.0.3.tgz", + "integrity": "sha512-jyCETtSl3VMZMWeRo7iY1FL19ges1t55hMo5yaam4Jrsm5EPL89UQkoQRyiI+Yf4k8r2ZpdngkV8hr1lIdjb3Q==", + "dev": true, + "engines": { + "node": "*" + } + }, "node_modules/debug": { "version": "4.3.5", "resolved": "https://registry.npmjs.org/debug/-/debug-4.3.5.tgz", @@ -1603,6 +2649,40 @@ "integrity": "sha512-sGkPx+VjMtmA6MX27oA4FBFELFCZZ4S4XqeGOXCv68tT+jb3vk/RyaKWP0PTKyWtmLSM0b+adUTEvbs1PEaH2w==", "dev": true }, + "node_modules/decamelize": { + "version": "1.2.0", + "resolved": "https://registry.npmjs.org/decamelize/-/decamelize-1.2.0.tgz", + "integrity": "sha512-z2S+W9X73hAUUki+N+9Za2lBlun89zigOyGrsax+KUQ6wKW4ZoWpEYBkGhQjwAjjDCkWxhY0VKEhk8wzY7F5cA==", + "dev": true, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/decamelize-keys": { + "version": "1.1.1", + "resolved": "https://registry.npmjs.org/decamelize-keys/-/decamelize-keys-1.1.1.tgz", + "integrity": "sha512-WiPxgEirIV0/eIOMcnFBA3/IJZAZqKnwAwWyvvdi4lsr1WCN22nhdf/3db3DoZcUjTV2SqfzIwNyp6y2xs3nmg==", + "dev": true, + "dependencies": { + "decamelize": "^1.1.0", + "map-obj": "^1.0.0" + }, + "engines": { + "node": ">=0.10.0" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/decamelize-keys/node_modules/map-obj": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/map-obj/-/map-obj-1.0.1.tgz", + "integrity": "sha512-7N/q3lyZ+LVCp7PzuxrJr4KMbBE2hW7BT7YNia330OFxIf4d3r5zVpicP2650l7CPN6RM9zOJRl3NGpqSiw3Eg==", + "dev": true, + "engines": { + "node": ">=0.10.0" + } + }, "node_modules/dedent": { "version": "1.5.3", "resolved": "https://registry.npmjs.org/dedent/-/dedent-1.5.3.tgz", @@ -1617,6 +2697,15 @@ } } }, + "node_modules/deep-extend": { + "version": "0.6.0", + "resolved": "https://registry.npmjs.org/deep-extend/-/deep-extend-0.6.0.tgz", + "integrity": "sha512-LOHxIOaPYdHlJRtCQfDIVZtfw/ufM8+rVj649RIHzcm/vGwQRXFt6OPqIFWsm2XEMrNIEtWR64sY1LEKD2vAOA==", + "dev": true, + "engines": { + "node": ">=4.0.0" + } + }, "node_modules/deepmerge": { "version": "4.3.1", "resolved": "https://registry.npmjs.org/deepmerge/-/deepmerge-4.3.1.tgz", @@ -1626,6 +2715,12 @@ "node": ">=0.10.0" } }, + "node_modules/deprecation": { + "version": "2.3.1", + "resolved": "https://registry.npmjs.org/deprecation/-/deprecation-2.3.1.tgz", + "integrity": "sha512-xmHIy4F3scKVwMsQ4WnVaS8bHOx0DmVwRywosKhaILI0ywMDWPtBSku2HNxRvF7jtwDRsoEwYQSfbxj8b7RlJQ==", + "dev": true + }, "node_modules/detect-newline": { "version": "3.1.0", "resolved": "https://registry.npmjs.org/detect-newline/-/detect-newline-3.1.0.tgz", @@ -1653,6 +2748,39 @@ "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", + "integrity": "sha512-WkrWp9GR4KXfKGYzOLmTuGVi1UWFfws377n9cc55/tb6DuqyF6pcQ5AbiHEshaDpY9v6oaSr2XCDidGmMwdzIA==", + "dev": true, + "dependencies": { + "path-type": "^4.0.0" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/dot-prop": { + "version": "5.3.0", + "resolved": "https://registry.npmjs.org/dot-prop/-/dot-prop-5.3.0.tgz", + "integrity": "sha512-QM8q3zDe58hqUqjraQOmzZ1LIH9SWQJTlEKCH4kJ2oQvLZk7RbQXvtDM2XEq3fwkV9CCvvH4LA0AV+ogFsBM2Q==", + "dev": true, + "dependencies": { + "is-obj": "^2.0.0" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/duplexer2": { + "version": "0.1.4", + "resolved": "https://registry.npmjs.org/duplexer2/-/duplexer2-0.1.4.tgz", + "integrity": "sha512-asLFVfWWtJ90ZyOUHMqk7/S2w2guQKxUI2itj3d92ADHhxUSbCMGi1f1cBcJ7xM1To+pE/Khbwo1yuNbMEPKeA==", + "dev": true, + "dependencies": { + "readable-stream": "^2.0.2" + } + }, "node_modules/ejs": { "version": "3.1.10", "resolved": "https://registry.npmjs.org/ejs/-/ejs-3.1.10.tgz", @@ -1692,6 +2820,129 @@ "integrity": "sha512-MSjYzcWNOA0ewAHpz0MxpYFvwg6yjy1NG3xteoqz644VCo/RPgnr1/GGt+ic3iJTzQ8Eu3TdM14SawnVUmGE6A==", "dev": true }, + "node_modules/env-ci": { + "version": "9.1.1", + "resolved": "https://registry.npmjs.org/env-ci/-/env-ci-9.1.1.tgz", + "integrity": "sha512-Im2yEWeF4b2RAMAaWvGioXk6m0UNaIjD8hj28j2ij5ldnIFrDQT0+pzDvpbRkcjurhXhf/AsBKv8P2rtmGi9Aw==", + "dev": true, + "dependencies": { + "execa": "^7.0.0", + "java-properties": "^1.0.2" + }, + "engines": { + "node": "^16.14 || >=18" + } + }, + "node_modules/env-ci/node_modules/execa": { + "version": "7.2.0", + "resolved": "https://registry.npmjs.org/execa/-/execa-7.2.0.tgz", + "integrity": "sha512-UduyVP7TLB5IcAQl+OzLyLcS/l32W/GLg+AhHJ+ow40FOk2U3SAllPwR44v4vmdFwIWqpdwxxpQbF1n5ta9seA==", + "dev": true, + "dependencies": { + "cross-spawn": "^7.0.3", + "get-stream": "^6.0.1", + "human-signals": "^4.3.0", + "is-stream": "^3.0.0", + "merge-stream": "^2.0.0", + "npm-run-path": "^5.1.0", + "onetime": "^6.0.0", + "signal-exit": "^3.0.7", + "strip-final-newline": "^3.0.0" + }, + "engines": { + "node": "^14.18.0 || ^16.14.0 || >=18.0.0" + }, + "funding": { + "url": "https://github.com/sindresorhus/execa?sponsor=1" + } + }, + "node_modules/env-ci/node_modules/human-signals": { + "version": "4.3.1", + "resolved": "https://registry.npmjs.org/human-signals/-/human-signals-4.3.1.tgz", + "integrity": "sha512-nZXjEF2nbo7lIw3mgYjItAfgQXog3OjJogSbKa2CQIIvSGWcKgeJnQlNXip6NglNzYH45nSRiEVimMvYL8DDqQ==", + "dev": true, + "engines": { + "node": ">=14.18.0" + } + }, + "node_modules/env-ci/node_modules/is-stream": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/is-stream/-/is-stream-3.0.0.tgz", + "integrity": "sha512-LnQR4bZ9IADDRSkvpqMGvt/tEJWclzklNgSw48V5EAaAeDd6qGvN8ei6k5p0tvxSR171VmGyHuTiAOfxAbr8kA==", + "dev": true, + "engines": { + "node": "^12.20.0 || ^14.13.1 || >=16.0.0" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/env-ci/node_modules/mimic-fn": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/mimic-fn/-/mimic-fn-4.0.0.tgz", + "integrity": "sha512-vqiC06CuhBTUdZH+RYl8sFrL096vA45Ok5ISO6sE/Mr1jRbGH4Csnhi8f3wKVl7x8mO4Au7Ir9D3Oyv1VYMFJw==", + "dev": true, + "engines": { + "node": ">=12" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/env-ci/node_modules/npm-run-path": { + "version": "5.3.0", + "resolved": "https://registry.npmjs.org/npm-run-path/-/npm-run-path-5.3.0.tgz", + "integrity": "sha512-ppwTtiJZq0O/ai0z7yfudtBpWIoxM8yE6nHi1X47eFR2EWORqfbu6CnPlNsjeN683eT0qG6H/Pyf9fCcvjnnnQ==", + "dev": true, + "dependencies": { + "path-key": "^4.0.0" + }, + "engines": { + "node": "^12.20.0 || ^14.13.1 || >=16.0.0" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/env-ci/node_modules/onetime": { + "version": "6.0.0", + "resolved": "https://registry.npmjs.org/onetime/-/onetime-6.0.0.tgz", + "integrity": "sha512-1FlR+gjXK7X+AsAHso35MnyN5KqGwJRi/31ft6x0M194ht7S+rWAvd7PHss9xSKMzE0asv1pyIHaJYq+BbacAQ==", + "dev": true, + "dependencies": { + "mimic-fn": "^4.0.0" + }, + "engines": { + "node": ">=12" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/env-ci/node_modules/path-key": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/path-key/-/path-key-4.0.0.tgz", + "integrity": "sha512-haREypq7xkM7ErfgIyA0z+Bj4AGKlMSdlQE2jvJo6huWD1EdkKYV+G/T4nq0YEF2vgTT8kqMFKo1uHn950r4SQ==", + "dev": true, + "engines": { + "node": ">=12" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/env-ci/node_modules/strip-final-newline": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/strip-final-newline/-/strip-final-newline-3.0.0.tgz", + "integrity": "sha512-dOESqjYr96iWYylGObzd39EuNTa5VJxyvVAEm5Jnh7KGo75V43Hk1odPQkNDyXNmUR6k+gEiDVXnjB8HJ3crXw==", + "dev": true, + "engines": { + "node": ">=12" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, "node_modules/error-ex": { "version": "1.3.2", "resolved": "https://registry.npmjs.org/error-ex/-/error-ex-1.3.2.tgz", @@ -1780,12 +3031,37 @@ "node": "^14.15.0 || ^16.10.0 || >=18.0.0" } }, + "node_modules/fast-glob": { + "version": "3.3.3", + "resolved": "https://registry.npmjs.org/fast-glob/-/fast-glob-3.3.3.tgz", + "integrity": "sha512-7MptL8U0cqcFdzIzwOTHoilX9x5BrNqye7Z/LuC7kCMRio1EMSyqRK3BEAUD7sXRq4iT4AzTVuZdhgQ2TCvYLg==", + "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.8" + }, + "engines": { + "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.19.1", + "resolved": "https://registry.npmjs.org/fastq/-/fastq-1.19.1.tgz", + "integrity": "sha512-GwLTyxkCXjXbxqIhTsMI2Nui8huMPtnxg7krajPJAjnEG/iiOS7i+zCtWGZR9G0NBKbXKh6X9m9UIsYX/N6vvQ==", + "dev": true, + "dependencies": { + "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", @@ -1795,6 +3071,34 @@ "bser": "2.1.1" } }, + "node_modules/figures": { + "version": "5.0.0", + "resolved": "https://registry.npmjs.org/figures/-/figures-5.0.0.tgz", + "integrity": "sha512-ej8ksPF4x6e5wvK9yevct0UCXh8TTFlWGVLlgjZuoBH1HwjIfKE/IdL5mq89sFA7zELi1VhKpmtDnrs7zWyeyg==", + "dev": true, + "dependencies": { + "escape-string-regexp": "^5.0.0", + "is-unicode-supported": "^1.2.0" + }, + "engines": { + "node": ">=14" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/figures/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/filelist": { "version": "1.0.4", "resolved": "https://registry.npmjs.org/filelist/-/filelist-1.0.4.tgz", @@ -1850,6 +3154,45 @@ "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/from2": { + "version": "2.3.0", + "resolved": "https://registry.npmjs.org/from2/-/from2-2.3.0.tgz", + "integrity": "sha512-OMcX/4IC/uqEPVgGeyfN22LJk6AZrMkRZHxcHBMBvHScDGgwTm2GT2Wkgtocyd3JfZffjj2kYUDXXII0Fk9W0g==", + "dev": true, + "dependencies": { + "inherits": "^2.0.1", + "readable-stream": "^2.0.0" + } + }, + "node_modules/fs-extra": { + "version": "11.3.0", + "resolved": "https://registry.npmjs.org/fs-extra/-/fs-extra-11.3.0.tgz", + "integrity": "sha512-Z4XaCL6dUDHfP/jT25jJKMmtxvuwbkrD1vNSMFlo9lNLY2c5FHYSQgHPRZUjAB26TpDEoW9HCOgplrdbaPV/ew==", + "dev": true, + "dependencies": { + "graceful-fs": "^4.2.0", + "jsonfile": "^6.0.1", + "universalify": "^2.0.0" + }, + "engines": { + "node": ">=14.14" + } + }, "node_modules/fs.realpath": { "version": "1.0.0", "resolved": "https://registry.npmjs.org/fs.realpath/-/fs.realpath-1.0.0.tgz", @@ -1918,6 +3261,29 @@ "url": "https://github.com/sponsors/sindresorhus" } }, + "node_modules/git-log-parser": { + "version": "1.2.1", + "resolved": "https://registry.npmjs.org/git-log-parser/-/git-log-parser-1.2.1.tgz", + "integrity": "sha512-PI+sPDvHXNPl5WNOErAK05s3j0lgwUzMN6o8cyQrDaKfT3qd7TmNJKeXX+SknI5I0QhG5fVPAEwSY4tRGDtYoQ==", + "dev": true, + "dependencies": { + "argv-formatter": "~1.0.0", + "spawn-error-forwarder": "~1.0.0", + "split2": "~1.0.0", + "stream-combiner2": "~1.1.1", + "through2": "~2.0.0", + "traverse": "0.6.8" + } + }, + "node_modules/git-log-parser/node_modules/split2": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/split2/-/split2-1.0.0.tgz", + "integrity": "sha512-NKywug4u4pX/AZBB1FCPzZ6/7O+Xhz1qMVbzTvvKvikjO99oPN87SkK08mEY9P63/5lWjK+wgOOgApnTg5r6qg==", + "dev": true, + "dependencies": { + "through2": "~2.0.0" + } + }, "node_modules/glob": { "version": "7.2.3", "resolved": "https://registry.npmjs.org/glob/-/glob-7.2.3.tgz", @@ -1939,6 +3305,18 @@ "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", @@ -1948,12 +3326,86 @@ "node": ">=4" } }, + "node_modules/globby": { + "version": "14.1.0", + "resolved": "https://registry.npmjs.org/globby/-/globby-14.1.0.tgz", + "integrity": "sha512-0Ia46fDOaT7k4og1PDW4YbodWWr3scS2vAr2lTbsplOt2WkKp0vQbkI9wKis/T5LV/dqPjO3bpS/z6GTJB82LA==", + "dev": true, + "dependencies": { + "@sindresorhus/merge-streams": "^2.1.0", + "fast-glob": "^3.3.3", + "ignore": "^7.0.3", + "path-type": "^6.0.0", + "slash": "^5.1.0", + "unicorn-magic": "^0.3.0" + }, + "engines": { + "node": ">=18" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/globby/node_modules/path-type": { + "version": "6.0.0", + "resolved": "https://registry.npmjs.org/path-type/-/path-type-6.0.0.tgz", + "integrity": "sha512-Vj7sf++t5pBD637NSfkxpHSMfWaeig5+DKWLhcqIYx6mWQz5hdJTGDVMQiJcw1ZYkhs7AazKDGpRVji1LJCZUQ==", + "dev": true, + "engines": { + "node": ">=18" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/globby/node_modules/slash": { + "version": "5.1.0", + "resolved": "https://registry.npmjs.org/slash/-/slash-5.1.0.tgz", + "integrity": "sha512-ZA6oR3T/pEyuqwMgAKT0/hAv8oAXckzbkmR0UkUosQ+Mc4RxGoJkRmwHgHufaenlyAgE1Mxgpdcrf75y6XcnDg==", + "dev": true, + "engines": { + "node": ">=14.16" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, "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==", "dev": true }, + "node_modules/handlebars": { + "version": "4.7.8", + "resolved": "https://registry.npmjs.org/handlebars/-/handlebars-4.7.8.tgz", + "integrity": "sha512-vafaFqs8MZkRrSX7sFVUdo3ap/eNiLnb4IakshzvP56X5Nr1iGKAIqdX6tMlm6HcNRIkr6AxO5jFEoJzzpT8aQ==", + "dev": true, + "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" + } + }, + "node_modules/hard-rejection": { + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/hard-rejection/-/hard-rejection-2.1.0.tgz", + "integrity": "sha512-VIZB+ibDhx7ObhAe7OVtoEbuP4h/MuOTHJ+J8h/eBXotJYl0fBgR72xDFCKgIh22OJZIOVNxBMWuhAr10r8HdA==", + "dev": true, + "engines": { + "node": ">=6" + } + }, "node_modules/has-flag": { "version": "4.0.0", "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-4.0.0.tgz", @@ -1975,12 +3427,68 @@ "node": ">= 0.4" } }, + "node_modules/hook-std": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/hook-std/-/hook-std-3.0.0.tgz", + "integrity": "sha512-jHRQzjSDzMtFy34AGj1DN+vq54WVuhSvKgrHf0OMiFQTwDD4L/qqofVEWjLOBMTn5+lCD3fPg32W9yOfnEJTTw==", + "dev": true, + "engines": { + "node": "^12.20.0 || ^14.13.1 || >=16.0.0" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/hosted-git-info": { + "version": "7.0.2", + "resolved": "https://registry.npmjs.org/hosted-git-info/-/hosted-git-info-7.0.2.tgz", + "integrity": "sha512-puUZAUKT5m8Zzvs72XWy3HtvVbTWljRE66cP60bxJzAqf2DgICo7lYTY2IHUmLnNpjYvw5bvmoHvPc0QO2a62w==", + "dev": true, + "dependencies": { + "lru-cache": "^10.0.1" + }, + "engines": { + "node": "^16.14.0 || >=18.0.0" + } + }, + "node_modules/hosted-git-info/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/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/http-proxy-agent": { + "version": "7.0.2", + "resolved": "https://registry.npmjs.org/http-proxy-agent/-/http-proxy-agent-7.0.2.tgz", + "integrity": "sha512-T1gkAiYYDWYx3V5Bmyu7HcfcvL7mUrTWiM6yOfa3PIphViJ/gFPbvidQ+veqSOHci/PxBcDabeUNCzpOODJZig==", + "dev": true, + "dependencies": { + "agent-base": "^7.1.0", + "debug": "^4.3.4" + }, + "engines": { + "node": ">= 14" + } + }, + "node_modules/https-proxy-agent": { + "version": "7.0.6", + "resolved": "https://registry.npmjs.org/https-proxy-agent/-/https-proxy-agent-7.0.6.tgz", + "integrity": "sha512-vK9P5/iUfdl95AI+JVyUuIcVtd4ofvtrOr3HNtM2yxC9bnMbEdp3x01OhQNnjb8IJYi38VlTE3mBXwcfvywuSw==", + "dev": true, + "dependencies": { + "agent-base": "^7.1.2", + "debug": "4" + }, + "engines": { + "node": ">= 14" + } + }, "node_modules/human-signals": { "version": "2.1.0", "resolved": "https://registry.npmjs.org/human-signals/-/human-signals-2.1.0.tgz", @@ -1990,6 +3498,52 @@ "node": ">=10.17.0" } }, + "node_modules/ignore": { + "version": "7.0.5", + "resolved": "https://registry.npmjs.org/ignore/-/ignore-7.0.5.tgz", + "integrity": "sha512-Hs59xBNfUIunMFgWAbGX5cq6893IbWg4KnrjbYwX3tx0ztorVgTDA6B2sxf8ejHJ4wz8BqGUMYlnzNBer5NvGg==", + "dev": true, + "engines": { + "node": ">= 4" + } + }, + "node_modules/import-fresh": { + "version": "3.3.1", + "resolved": "https://registry.npmjs.org/import-fresh/-/import-fresh-3.3.1.tgz", + "integrity": "sha512-TR3KfrTZTYLPB6jUjfx6MF9WcWrHL9su5TObK4ZkYgBdWKPOFoSoQIdEuTuR82pmtxH2spWG9h6etwfr1pLBqQ==", + "dev": true, + "dependencies": { + "parent-module": "^1.0.0", + "resolve-from": "^4.0.0" + }, + "engines": { + "node": ">=6" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/import-fresh/node_modules/resolve-from": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/resolve-from/-/resolve-from-4.0.0.tgz", + "integrity": "sha512-pb/MYmXstAkysRFx8piNI1tGFNQIFA3vkE3Gq4EuA1dF6gHp/+vgZqsCGJapvy8N3Q+4o7FwvquPJcnZ7RYy4g==", + "dev": true, + "engines": { + "node": ">=4" + } + }, + "node_modules/import-from": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/import-from/-/import-from-4.0.0.tgz", + "integrity": "sha512-P9J71vT5nLlDeV8FHs5nNxaLbrpfAV5cF5srvbZfpwpcJoM/xZR3hiv+q+SAnuSmuGbXMWud063iIMx/V/EWZQ==", + "dev": true, + "engines": { + "node": ">=12.2" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, "node_modules/import-local": { "version": "3.2.0", "resolved": "https://registry.npmjs.org/import-local/-/import-local-3.2.0.tgz", @@ -2018,6 +3572,15 @@ "node": ">=0.8.19" } }, + "node_modules/indent-string": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/indent-string/-/indent-string-4.0.0.tgz", + "integrity": "sha512-EdDDZu4A2OyIK7Lr/2zG+w5jmbuk1DVBnEwREQvBzspBJkCEbRa8GxU1lghYcaGJCnRWibjDXlq779X1/y5xwg==", + "dev": true, + "engines": { + "node": ">=8" + } + }, "node_modules/inflight": { "version": "1.0.6", "resolved": "https://registry.npmjs.org/inflight/-/inflight-1.0.6.tgz", @@ -2035,6 +3598,28 @@ "integrity": "sha512-k/vGaX4/Yla3WzyMCvTQOXYeIHvqOKtnqBduzTHpzpQZzAskKMhZ2K+EnBiSM9zGSoIFeMpXKxa4dYeZIQqewQ==", "dev": true }, + "node_modules/ini": { + "version": "1.3.8", + "resolved": "https://registry.npmjs.org/ini/-/ini-1.3.8.tgz", + "integrity": "sha512-JV/yugV2uzW5iMRSiZAyDtQd+nxtUnjeLt0acNdw98kKLrvuRVyB80tsREOE7yvGVgalhZ6RNXCmEHkUKBKxew==", + "dev": true + }, + "node_modules/into-stream": { + "version": "7.0.0", + "resolved": "https://registry.npmjs.org/into-stream/-/into-stream-7.0.0.tgz", + "integrity": "sha512-2dYz766i9HprMBasCMvHMuazJ7u4WzhJwo5kb3iPSiW/iRYV6uPari3zHoqZlnuaR7V1bEiNMxikhp37rdBXbw==", + "dev": true, + "dependencies": { + "from2": "^2.3.0", + "p-is-promise": "^3.0.0" + }, + "engines": { + "node": ">=12" + }, + "funding": { + "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", @@ -2056,6 +3641,15 @@ "url": "https://github.com/sponsors/ljharb" } }, + "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", @@ -2074,6 +3668,18 @@ "node": ">=6" } }, + "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-number": { "version": "7.0.0", "resolved": "https://registry.npmjs.org/is-number/-/is-number-7.0.0.tgz", @@ -2083,6 +3689,24 @@ "node": ">=0.12.0" } }, + "node_modules/is-obj": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/is-obj/-/is-obj-2.0.0.tgz", + "integrity": "sha512-drqDG3cbczxxEJRoOXcOjtdp1J/lyp1mNn0xaznRs8+muBhgQcrnbspox5X5fOw0HnMnbfDzvnEMEtqDEJEo8w==", + "dev": true, + "engines": { + "node": ">=8" + } + }, + "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": "2.0.1", "resolved": "https://registry.npmjs.org/is-stream/-/is-stream-2.0.1.tgz", @@ -2095,12 +3719,58 @@ "url": "https://github.com/sponsors/sindresorhus" } }, + "node_modules/is-text-path": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/is-text-path/-/is-text-path-2.0.0.tgz", + "integrity": "sha512-+oDTluR6WEjdXEJMnC2z6A4FRwFoYuvShVVEGsS7ewc0UTi2QtAKMDJuL4BDEVt+5T7MjFo12RP8ghOM75oKJw==", + "dev": true, + "dependencies": { + "text-extensions": "^2.0.0" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/is-unicode-supported": { + "version": "1.3.0", + "resolved": "https://registry.npmjs.org/is-unicode-supported/-/is-unicode-supported-1.3.0.tgz", + "integrity": "sha512-43r2mRvz+8JRIKnWJ+3j8JtjRKZ6GmjzfaE/qiBJnikNnYv/6bagRJ1kUhNk8R5EX/GkobD+r+sfxCPJsiKBLQ==", + "dev": true, + "engines": { + "node": ">=12" + }, + "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", + "integrity": "sha512-VLghIWNM6ELQzo7zwmcg0NmTVyWKYjvIeM83yjp0wRDTmUnrM678fQbcKBo6n2CJEF0szoG//ytg+TKla89ALQ==", + "dev": true + }, "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/issue-parser": { + "version": "6.0.0", + "resolved": "https://registry.npmjs.org/issue-parser/-/issue-parser-6.0.0.tgz", + "integrity": "sha512-zKa/Dxq2lGsBIXQ7CUZWTHfvxPC2ej0KfO7fIPqLlHB9J2hJ7rGhZ5rilhuufylr4RXYPzJUeFjKxz305OsNlA==", + "dev": true, + "dependencies": { + "lodash.capitalize": "^4.2.1", + "lodash.escaperegexp": "^4.1.2", + "lodash.isplainobject": "^4.0.6", + "lodash.isstring": "^4.0.1", + "lodash.uniqby": "^4.7.0" + }, + "engines": { + "node": ">=10.13" + } + }, "node_modules/istanbul-lib-coverage": { "version": "3.2.2", "resolved": "https://registry.npmjs.org/istanbul-lib-coverage/-/istanbul-lib-coverage-3.2.2.tgz", @@ -2197,6 +3867,15 @@ "node": ">=10" } }, + "node_modules/java-properties": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/java-properties/-/java-properties-1.0.2.tgz", + "integrity": "sha512-qjdpeo2yKlYTH7nFdK0vbZWuTCesk4o63v5iVOlhMQPfuIZQfW/HI35SjfhA+4qpg36rnFSvUK5b1m+ckIblQQ==", + "dev": true, + "engines": { + "node": ">= 0.6.0" + } + }, "node_modules/jest": { "version": "29.7.0", "resolved": "https://registry.npmjs.org/jest/-/jest-29.7.0.tgz", @@ -2795,12 +4474,24 @@ "node": ">=4" } }, + "node_modules/json-parse-better-errors": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/json-parse-better-errors/-/json-parse-better-errors-1.0.2.tgz", + "integrity": "sha512-mrqyZKfX5EhL7hvqcV6WG1yYjnjeuYDzDhhcAAUrq8Po85NBQBJP+ZDUT75qZQ98IkUoBqdkExkukOU7Ts2wrw==", + "dev": true + }, "node_modules/json-parse-even-better-errors": { "version": "2.3.1", "resolved": "https://registry.npmjs.org/json-parse-even-better-errors/-/json-parse-even-better-errors-2.3.1.tgz", "integrity": "sha512-xyFwyhro/JEof6Ghe2iz2NcXoj2sloNsWr/XsERDK/oiPCfaNhl5ONfp+jQdAZRQQ0IJWNzH9zIZF7li91kh2w==", "dev": true }, + "node_modules/json-stringify-safe": { + "version": "5.0.1", + "resolved": "https://registry.npmjs.org/json-stringify-safe/-/json-stringify-safe-5.0.1.tgz", + "integrity": "sha512-ZClg6AaYvamvYEE82d3Iyd3vSSIjQ+odgjaTzRuO3s7toCdFKczob2i0zCh7JE8kWn17yvAWhUVxvqGwUalsRA==", + "dev": true + }, "node_modules/json5": { "version": "2.2.3", "resolved": "https://registry.npmjs.org/json5/-/json5-2.2.3.tgz", @@ -2813,6 +4504,52 @@ "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==", + "dev": true, + "dependencies": { + "universalify": "^2.0.0" + }, + "optionalDependencies": { + "graceful-fs": "^4.1.6" + } + }, + "node_modules/jsonparse": { + "version": "1.3.1", + "resolved": "https://registry.npmjs.org/jsonparse/-/jsonparse-1.3.1.tgz", + "integrity": "sha512-POQXvpdL69+CluYsillJ7SUhKvytYjW9vG/GKpnf+xP8UWgYEM/RaMzHHofbALDiKbbP1W8UEYmgGl39WkPZsg==", + "dev": true, + "engines": [ + "node >= 0.2.0" + ] + }, + "node_modules/JSONStream": { + "version": "1.3.5", + "resolved": "https://registry.npmjs.org/JSONStream/-/JSONStream-1.3.5.tgz", + "integrity": "sha512-E+iruNOY8VV9s4JEbe1aNEm6MiszPRr/UfcHMz0TQh1BXSxHK+ASV1R6W4HpjBhSeS+54PIsAMCBmwD06LLsqQ==", + "dev": true, + "dependencies": { + "jsonparse": "^1.2.0", + "through": ">=2.2.7 <3" + }, + "bin": { + "JSONStream": "bin.js" + }, + "engines": { + "node": "*" + } + }, + "node_modules/kind-of": { + "version": "6.0.3", + "resolved": "https://registry.npmjs.org/kind-of/-/kind-of-6.0.3.tgz", + "integrity": "sha512-dcS1ul+9tmeD95T+x28/ehLgd9mENa3LsvDTtzm3vyBEO7RPptvAD+t44WVXaUjTBRcrpFeFlC8WCruUR456hw==", + "dev": true, + "engines": { + "node": ">=0.10.0" + } + }, "node_modules/kleur": { "version": "3.0.3", "resolved": "https://registry.npmjs.org/kleur/-/kleur-3.0.3.tgz", @@ -2837,6 +4574,43 @@ "integrity": "sha512-7ylylesZQ/PV29jhEDl3Ufjo6ZX7gCqJr5F7PKrqc93v7fzSymt1BpwEU8nAUXs8qzzvqhbjhK5QZg6Mt/HkBg==", "dev": true }, + "node_modules/load-json-file": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/load-json-file/-/load-json-file-4.0.0.tgz", + "integrity": "sha512-Kx8hMakjX03tiGTLAIdJ+lL0htKnXjEZN6hk/tozf/WOuYGdZBJrZ+rCJRbVCugsjB3jMLn9746NsQIf5VjBMw==", + "dev": true, + "dependencies": { + "graceful-fs": "^4.1.2", + "parse-json": "^4.0.0", + "pify": "^3.0.0", + "strip-bom": "^3.0.0" + }, + "engines": { + "node": ">=4" + } + }, + "node_modules/load-json-file/node_modules/parse-json": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/parse-json/-/parse-json-4.0.0.tgz", + "integrity": "sha512-aOIos8bujGN93/8Ox/jPLh7RwVnPEysynVFE+fQZyg6jKELEHwzgKdLRFHUgXJL6kylijVSBC4BvN9OmsB48Rw==", + "dev": true, + "dependencies": { + "error-ex": "^1.3.1", + "json-parse-better-errors": "^1.0.1" + }, + "engines": { + "node": ">=4" + } + }, + "node_modules/load-json-file/node_modules/strip-bom": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/strip-bom/-/strip-bom-3.0.0.tgz", + "integrity": "sha512-vavAMRXOgBVNF6nyEEmL3DBK19iRpDcoIwW+swQ+CbGiu7lju6t+JklA1MHweoWtadgt4ISVUsXLyDq34ddcwA==", + "dev": true, + "engines": { + "node": ">=4" + } + }, "node_modules/locate-path": { "version": "5.0.0", "resolved": "https://registry.npmjs.org/locate-path/-/locate-path-5.0.0.tgz", @@ -2849,12 +4623,60 @@ "node": ">=8" } }, + "node_modules/lodash": { + "version": "4.17.21", + "resolved": "https://registry.npmjs.org/lodash/-/lodash-4.17.21.tgz", + "integrity": "sha512-v2kDEe57lecTulaDIuNTPy3Ry4gLGJ6Z1O3vE1krgXZNrsQ+LFTGHVxVjcXPs17LhbZVGedAJv8XZ1tvj5FvSg==", + "dev": true + }, + "node_modules/lodash-es": { + "version": "4.17.21", + "resolved": "https://registry.npmjs.org/lodash-es/-/lodash-es-4.17.21.tgz", + "integrity": "sha512-mKnC+QJ9pWVzv+C4/U3rRsHapFfHvQFoFB92e52xeyGMcX6/OlIl78je1u8vePzYZSkkogMPJ2yjxxsb89cxyw==", + "dev": true + }, + "node_modules/lodash.capitalize": { + "version": "4.2.1", + "resolved": "https://registry.npmjs.org/lodash.capitalize/-/lodash.capitalize-4.2.1.tgz", + "integrity": "sha512-kZzYOKspf8XVX5AvmQF94gQW0lejFVgb80G85bU4ZWzoJ6C03PQg3coYAUpSTpQWelrZELd3XWgHzw4Ck5kaIw==", + "dev": true + }, + "node_modules/lodash.escaperegexp": { + "version": "4.1.2", + "resolved": "https://registry.npmjs.org/lodash.escaperegexp/-/lodash.escaperegexp-4.1.2.tgz", + "integrity": "sha512-TM9YBvyC84ZxE3rgfefxUWiQKLilstD6k7PTGt6wfbtXF8ixIJLOL3VYyV/z+ZiPLsVxAsKAFVwWlWeb2Y8Yyw==", + "dev": true + }, + "node_modules/lodash.ismatch": { + "version": "4.4.0", + "resolved": "https://registry.npmjs.org/lodash.ismatch/-/lodash.ismatch-4.4.0.tgz", + "integrity": "sha512-fPMfXjGQEV9Xsq/8MTSgUf255gawYRbjwMyDbcvDhXgV7enSZA0hynz6vMPnpAb5iONEzBHBPsT+0zes5Z301g==", + "dev": true + }, + "node_modules/lodash.isplainobject": { + "version": "4.0.6", + "resolved": "https://registry.npmjs.org/lodash.isplainobject/-/lodash.isplainobject-4.0.6.tgz", + "integrity": "sha512-oSXzaWypCMHkPC3NvBEaPHf0KsA5mvPrOPgQWDsbg8n7orZ290M0BmC/jgRZ4vcJ6DTAhjrsSYgdsW/F+MFOBA==", + "dev": true + }, + "node_modules/lodash.isstring": { + "version": "4.0.1", + "resolved": "https://registry.npmjs.org/lodash.isstring/-/lodash.isstring-4.0.1.tgz", + "integrity": "sha512-0wJxfxH1wgO3GrbuP+dTTk7op+6L41QCXbGINEmD+ny/G/eCqGzxyCsh7159S+mgDDcoarnBw6PC1PS5+wUGgw==", + "dev": 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/lodash.uniqby": { + "version": "4.7.0", + "resolved": "https://registry.npmjs.org/lodash.uniqby/-/lodash.uniqby-4.7.0.tgz", + "integrity": "sha512-e/zcLx6CSbmaEgFHCA7BnoQKyCtKMxnuWrJygbwPs/AIn+IMKl66L8/s+wBUn5LRw2pZx3bUHibiV1b6aTWIww==", + "dev": true + }, "node_modules/lru-cache": { "version": "5.1.1", "resolved": "https://registry.npmjs.org/lru-cache/-/lru-cache-5.1.1.tgz", @@ -2906,16 +4728,273 @@ "tmpl": "1.0.5" } }, + "node_modules/map-obj": { + "version": "4.3.0", + "resolved": "https://registry.npmjs.org/map-obj/-/map-obj-4.3.0.tgz", + "integrity": "sha512-hdN1wVrZbb29eBGiGjJbeP8JbKjq1urkHJ/LIP/NY48MZ1QVXUsQBV1G1zvYFHn1XE06cwjBsOI2K3Ulnj1YXQ==", + "dev": true, + "engines": { + "node": ">=8" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/marked": { + "version": "5.1.2", + "resolved": "https://registry.npmjs.org/marked/-/marked-5.1.2.tgz", + "integrity": "sha512-ahRPGXJpjMjwSOlBoTMZAK7ATXkli5qCPxZ21TG44rx1KEo44bii4ekgTDQPNRQ4Kh7JMb9Ub1PVk1NxRSsorg==", + "dev": true, + "bin": { + "marked": "bin/marked.js" + }, + "engines": { + "node": ">= 16" + } + }, + "node_modules/marked-terminal": { + "version": "5.2.0", + "resolved": "https://registry.npmjs.org/marked-terminal/-/marked-terminal-5.2.0.tgz", + "integrity": "sha512-Piv6yNwAQXGFjZSaiNljyNFw7jKDdGrw70FSbtxEyldLsyeuV5ZHm/1wW++kWbrOF1VPnUgYOhB2oLL0ZpnekA==", + "dev": true, + "dependencies": { + "ansi-escapes": "^6.2.0", + "cardinal": "^2.1.1", + "chalk": "^5.2.0", + "cli-table3": "^0.6.3", + "node-emoji": "^1.11.0", + "supports-hyperlinks": "^2.3.0" + }, + "engines": { + "node": ">=14.13.1 || >=16.0.0" + }, + "peerDependencies": { + "marked": "^1.0.0 || ^2.0.0 || ^3.0.0 || ^4.0.0 || ^5.0.0" + } + }, + "node_modules/marked-terminal/node_modules/ansi-escapes": { + "version": "6.2.1", + "resolved": "https://registry.npmjs.org/ansi-escapes/-/ansi-escapes-6.2.1.tgz", + "integrity": "sha512-4nJ3yixlEthEJ9Rk4vPcdBRkZvQZlYyu8j4/Mqz5sgIkddmEnH2Yj2ZrnP9S3tQOvSNRUIgVNF/1yPpRAGNRig==", + "dev": true, + "engines": { + "node": ">=14.16" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/marked-terminal/node_modules/chalk": { + "version": "5.4.1", + "resolved": "https://registry.npmjs.org/chalk/-/chalk-5.4.1.tgz", + "integrity": "sha512-zgVZuo2WcZgfUEmsn6eO3kINexW8RAE4maiQ8QNs8CtpPCSyMiYsULR3HQYkm3w8FIA3SberyMJMSldGsW+U3w==", + "dev": true, + "engines": { + "node": "^12.17.0 || ^14.13 || >=16.0.0" + }, + "funding": { + "url": "https://github.com/chalk/chalk?sponsor=1" + } + }, + "node_modules/meow": { + "version": "8.1.2", + "resolved": "https://registry.npmjs.org/meow/-/meow-8.1.2.tgz", + "integrity": "sha512-r85E3NdZ+mpYk1C6RjPFEMSE+s1iZMuHtsHAqY0DT3jZczl0diWUZ8g6oU7h0M9cD2EL+PzaYghhCLzR0ZNn5Q==", + "dev": true, + "dependencies": { + "@types/minimist": "^1.2.0", + "camelcase-keys": "^6.2.2", + "decamelize-keys": "^1.1.0", + "hard-rejection": "^2.1.0", + "minimist-options": "4.1.0", + "normalize-package-data": "^3.0.0", + "read-pkg-up": "^7.0.1", + "redent": "^3.0.0", + "trim-newlines": "^3.0.0", + "type-fest": "^0.18.0", + "yargs-parser": "^20.2.3" + }, + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/meow/node_modules/hosted-git-info": { + "version": "4.1.0", + "resolved": "https://registry.npmjs.org/hosted-git-info/-/hosted-git-info-4.1.0.tgz", + "integrity": "sha512-kyCuEOWjJqZuDbRHzL8V93NzQhwIB71oFWSyzVo+KPZI+pnQPPxucdkrOZvkLRnrf5URsQM+IJ09Dw29cRALIA==", + "dev": true, + "dependencies": { + "lru-cache": "^6.0.0" + }, + "engines": { + "node": ">=10" + } + }, + "node_modules/meow/node_modules/lru-cache": { + "version": "6.0.0", + "resolved": "https://registry.npmjs.org/lru-cache/-/lru-cache-6.0.0.tgz", + "integrity": "sha512-Jo6dJ04CmSjuznwJSS3pUeWmd/H0ffTlkXXgwZi+eq1UCmqQwCh+eLsYOYCwY991i2Fah4h1BEMCx4qThGbsiA==", + "dev": true, + "dependencies": { + "yallist": "^4.0.0" + }, + "engines": { + "node": ">=10" + } + }, + "node_modules/meow/node_modules/normalize-package-data": { + "version": "3.0.3", + "resolved": "https://registry.npmjs.org/normalize-package-data/-/normalize-package-data-3.0.3.tgz", + "integrity": "sha512-p2W1sgqij3zMMyRC067Dg16bfzVH+w7hyegmpIvZ4JNjqtGOVAIvLmjBx3yP7YTe9vKJgkoNOPjwQGogDoMXFA==", + "dev": true, + "dependencies": { + "hosted-git-info": "^4.0.1", + "is-core-module": "^2.5.0", + "semver": "^7.3.4", + "validate-npm-package-license": "^3.0.1" + }, + "engines": { + "node": ">=10" + } + }, + "node_modules/meow/node_modules/read-pkg": { + "version": "5.2.0", + "resolved": "https://registry.npmjs.org/read-pkg/-/read-pkg-5.2.0.tgz", + "integrity": "sha512-Ug69mNOpfvKDAc2Q8DRpMjjzdtrnv9HcSMX+4VsZxD1aZ6ZzrIE7rlzXBtWTyhULSMKg076AW6WR5iZpD0JiOg==", + "dev": true, + "dependencies": { + "@types/normalize-package-data": "^2.4.0", + "normalize-package-data": "^2.5.0", + "parse-json": "^5.0.0", + "type-fest": "^0.6.0" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/meow/node_modules/read-pkg-up": { + "version": "7.0.1", + "resolved": "https://registry.npmjs.org/read-pkg-up/-/read-pkg-up-7.0.1.tgz", + "integrity": "sha512-zK0TB7Xd6JpCLmlLmufqykGE+/TlOePD6qKClNW7hHDKFh/J7/7gCWGR7joEQEW1bKq3a3yUZSObOoWLFQ4ohg==", + "dev": true, + "dependencies": { + "find-up": "^4.1.0", + "read-pkg": "^5.2.0", + "type-fest": "^0.8.1" + }, + "engines": { + "node": ">=8" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/meow/node_modules/read-pkg-up/node_modules/type-fest": { + "version": "0.8.1", + "resolved": "https://registry.npmjs.org/type-fest/-/type-fest-0.8.1.tgz", + "integrity": "sha512-4dbzIzqvjtgiM5rw1k5rEHtBANKmdudhGyBEajN01fEyhaAIhsoKNy6y7+IN93IfpFtwY9iqi7kD+xwKhQsNJA==", + "dev": true, + "engines": { + "node": ">=8" + } + }, + "node_modules/meow/node_modules/read-pkg/node_modules/hosted-git-info": { + "version": "2.8.9", + "resolved": "https://registry.npmjs.org/hosted-git-info/-/hosted-git-info-2.8.9.tgz", + "integrity": "sha512-mxIDAb9Lsm6DoOJ7xH+5+X4y1LU/4Hi50L9C5sIswK3JzULS4bwk1FvjdBgvYR4bzT4tuUQiC15FE2f5HbLvYw==", + "dev": true + }, + "node_modules/meow/node_modules/read-pkg/node_modules/normalize-package-data": { + "version": "2.5.0", + "resolved": "https://registry.npmjs.org/normalize-package-data/-/normalize-package-data-2.5.0.tgz", + "integrity": "sha512-/5CMN3T0R4XTj4DcGaexo+roZSdSFW/0AOOTROrjxzCG1wrWXEsGbRKevjlIL+ZDE4sZlJr5ED4YW0yqmkK+eA==", + "dev": true, + "dependencies": { + "hosted-git-info": "^2.1.4", + "resolve": "^1.10.0", + "semver": "2 || 3 || 4 || 5", + "validate-npm-package-license": "^3.0.1" + } + }, + "node_modules/meow/node_modules/read-pkg/node_modules/semver": { + "version": "5.7.2", + "resolved": "https://registry.npmjs.org/semver/-/semver-5.7.2.tgz", + "integrity": "sha512-cBznnQ9KjJqU67B52RMC65CMarK2600WFnbkcaiwWq3xy/5haFJlshgnpjovMVJ+Hff49d8GEn0b87C5pDQ10g==", + "dev": true, + "bin": { + "semver": "bin/semver" + } + }, + "node_modules/meow/node_modules/read-pkg/node_modules/type-fest": { + "version": "0.6.0", + "resolved": "https://registry.npmjs.org/type-fest/-/type-fest-0.6.0.tgz", + "integrity": "sha512-q+MB8nYR1KDLrgr4G5yemftpMC7/QLqVndBmEEdqzmNj5dcFOO4Oo8qlwZE3ULT3+Zim1F8Kq4cBnikNhlCMlg==", + "dev": true, + "engines": { + "node": ">=8" + } + }, + "node_modules/meow/node_modules/semver": { + "version": "7.7.2", + "resolved": "https://registry.npmjs.org/semver/-/semver-7.7.2.tgz", + "integrity": "sha512-RF0Fw+rO5AMf9MAyaRXI4AV0Ulj5lMHqVxxdSgiVbixSCXoEmmX/jk0CuJw4+3SqroYO9VoUh+HcuJivvtJemA==", + "dev": true, + "bin": { + "semver": "bin/semver.js" + }, + "engines": { + "node": ">=10" + } + }, + "node_modules/meow/node_modules/type-fest": { + "version": "0.18.1", + "resolved": "https://registry.npmjs.org/type-fest/-/type-fest-0.18.1.tgz", + "integrity": "sha512-OIAYXk8+ISY+qTOwkHtKqzAuxchoMiD9Udx+FSGQDuiRR+PJKJHc2NJAXlbhkGwTt/4/nKZxELY1w3ReWOL8mw==", + "dev": true, + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/meow/node_modules/yallist": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/yallist/-/yallist-4.0.0.tgz", + "integrity": "sha512-3wdGidZyq5PB084XLES5TpOSRA3wjXAlIWMhum2kRcv/41Sn2emQ0dycQW4uZXLejwKvg6EsvbdlVL+FYEct7A==", + "dev": true + }, + "node_modules/meow/node_modules/yargs-parser": { + "version": "20.2.9", + "resolved": "https://registry.npmjs.org/yargs-parser/-/yargs-parser-20.2.9.tgz", + "integrity": "sha512-y11nGElTIV+CT3Zv9t7VKl+Q3hTQoT9a1Qzezhhl6Rp21gJ/IVTW7Z3y9EWXhuUBC2Shnf+DX0antecpAwSP8w==", + "dev": true, + "engines": { + "node": ">=10" + } + }, "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/micromatch": { - "version": "4.0.7", - "resolved": "https://registry.npmjs.org/micromatch/-/micromatch-4.0.7.tgz", - "integrity": "sha512-LPP/3KorzCwBxfeUuZmaR6bG2kdeHSbe0P2tY3FLRU4vYrjYz5hI4QZwV0njUx3jeuKe67YukQ1LSPZBKDqO/Q==", + "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", @@ -2925,6 +5004,21 @@ "node": ">=8.6" } }, + "node_modules/mime": { + "version": "4.0.7", + "resolved": "https://registry.npmjs.org/mime/-/mime-4.0.7.tgz", + "integrity": "sha512-2OfDPL+e03E0LrXaGYOtTFIYhiuzep94NSsuhrNULq+stylcJedcHdzHtz0atMUuGwJfFYs0YL5xeC/Ca2x0eQ==", + "dev": true, + "funding": [ + "https://github.com/sponsors/broofa" + ], + "bin": { + "mime": "bin/cli.js" + }, + "engines": { + "node": ">=16" + } + }, "node_modules/mimic-fn": { "version": "2.1.0", "resolved": "https://registry.npmjs.org/mimic-fn/-/mimic-fn-2.1.0.tgz", @@ -2934,6 +5028,15 @@ "node": ">=6" } }, + "node_modules/min-indent": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/min-indent/-/min-indent-1.0.1.tgz", + "integrity": "sha512-I9jwMn07Sy/IwOj3zVkVik2JTvgpaykDZEigL6Rx6N9LbMywwUSMtxET+7lVoDLLd3O3IXwJwvuuns8UB/HeAg==", + "dev": true, + "engines": { + "node": ">=4" + } + }, "node_modules/minimatch": { "version": "3.1.2", "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-3.1.2.tgz", @@ -2946,12 +5049,65 @@ "node": "*" } }, + "node_modules/minimist": { + "version": "1.2.8", + "resolved": "https://registry.npmjs.org/minimist/-/minimist-1.2.8.tgz", + "integrity": "sha512-2yyAR8qBkN3YuheJanUpWC5U3bb5osDywNB8RzDVlDwDHbocAJveqqj1u8+SVD7jkWT4yvsHCpWqqWqAxb0zCA==", + "dev": true, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/minimist-options": { + "version": "4.1.0", + "resolved": "https://registry.npmjs.org/minimist-options/-/minimist-options-4.1.0.tgz", + "integrity": "sha512-Q4r8ghd80yhO/0j1O3B2BjweX3fiHg9cdOwjJd2J76Q135c+NDxGCqdYKQ1SKBuFfgWbAUzBfvYjPUEeNgqN1A==", + "dev": true, + "dependencies": { + "arrify": "^1.0.1", + "is-plain-obj": "^1.1.0", + "kind-of": "^6.0.3" + }, + "engines": { + "node": ">= 6" + } + }, + "node_modules/modify-values": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/modify-values/-/modify-values-1.0.1.tgz", + "integrity": "sha512-xV2bxeN6F7oYjZWTe/YPAy6MN2M+sL4u/Rlm2AHCIVGfo2p1yGmBHQ6vHehl4bRTZBdHu3TSkWdYgkwpYzAGSw==", + "dev": true, + "engines": { + "node": ">=0.10.0" + } + }, "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/neo-async": { + "version": "2.6.2", + "resolved": "https://registry.npmjs.org/neo-async/-/neo-async-2.6.2.tgz", + "integrity": "sha512-Yd3UES5mWCSqR+qNT93S3UoYUkqAZ9lLg8a7g9rimsWmYGK8cVToA4/sF3RrshdyV3sAGMXVUmpMYOw+dLpOuw==", + "dev": true + }, + "node_modules/nerf-dart": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/nerf-dart/-/nerf-dart-1.0.0.tgz", + "integrity": "sha512-EZSPZB70jiVsivaBLYDCyntd5eH8NTSMOn3rB+HxwdmKThGELLdYv8qVIMWvZEFy9w8ZZpW9h9OB32l1rGtj7g==", + "dev": true + }, + "node_modules/node-emoji": { + "version": "1.11.0", + "resolved": "https://registry.npmjs.org/node-emoji/-/node-emoji-1.11.0.tgz", + "integrity": "sha512-wo2DpQkQp7Sjm2A0cq+sN7EHKO6Sl0ctXeBdFZrL9T9+UywORbufTcTZxom8YqpLQt/FqNMUkOpkZrJVYSKD3A==", + "dev": true, + "dependencies": { + "lodash": "^4.17.21" + } + }, "node_modules/node-int64": { "version": "0.4.0", "resolved": "https://registry.npmjs.org/node-int64/-/node-int64-0.4.0.tgz", @@ -2964,6 +5120,32 @@ "integrity": "sha512-d9VeXT4SJ7ZeOqGX6R5EM022wpL+eWPooLI+5UpWn2jCT1aosUQEhQP214x33Wkwx3JQMvIm+tIoVOdodFS40g==", "dev": true }, + "node_modules/normalize-package-data": { + "version": "6.0.2", + "resolved": "https://registry.npmjs.org/normalize-package-data/-/normalize-package-data-6.0.2.tgz", + "integrity": "sha512-V6gygoYb/5EmNI+MEGrWkC+e6+Rr7mTmfHrxDbLzxQogBkgzo76rkok0Am6thgSF7Mv2nLOajAJj5vDJZEFn7g==", + "dev": true, + "dependencies": { + "hosted-git-info": "^7.0.0", + "semver": "^7.3.5", + "validate-npm-package-license": "^3.0.4" + }, + "engines": { + "node": "^16.14.0 || >=18.0.0" + } + }, + "node_modules/normalize-package-data/node_modules/semver": { + "version": "7.7.2", + "resolved": "https://registry.npmjs.org/semver/-/semver-7.7.2.tgz", + "integrity": "sha512-RF0Fw+rO5AMf9MAyaRXI4AV0Ulj5lMHqVxxdSgiVbixSCXoEmmX/jk0CuJw4+3SqroYO9VoUh+HcuJivvtJemA==", + "dev": true, + "bin": { + "semver": "bin/semver.js" + }, + "engines": { + "node": ">=10" + } + }, "node_modules/normalize-path": { "version": "3.0.0", "resolved": "https://registry.npmjs.org/normalize-path/-/normalize-path-3.0.0.tgz", @@ -2973,6 +5155,175 @@ "node": ">=0.10.0" } }, + "node_modules/normalize-url": { + "version": "8.0.2", + "resolved": "https://registry.npmjs.org/normalize-url/-/normalize-url-8.0.2.tgz", + "integrity": "sha512-Ee/R3SyN4BuynXcnTaekmaVdbDAEiNrHqjQIA37mHU8G9pf7aaAD4ZX3XjBLo6rsdcxA/gtkcNYZLt30ACgynw==", + "dev": true, + "engines": { + "node": ">=14.16" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/npm": { + "version": "9.9.4", + "resolved": "https://registry.npmjs.org/npm/-/npm-9.9.4.tgz", + "integrity": "sha512-NzcQiLpqDuLhavdyJ2J3tGJ/ni/ebcqHVFZkv1C4/6lblraUPbPgCJ4Vhb4oa3FFhRa2Yj9gA58jGH/ztKueNQ==", + "bundleDependencies": [ + "@isaacs/string-locale-compare", + "@npmcli/arborist", + "@npmcli/config", + "@npmcli/fs", + "@npmcli/map-workspaces", + "@npmcli/package-json", + "@npmcli/promise-spawn", + "@npmcli/run-script", + "abbrev", + "archy", + "cacache", + "chalk", + "ci-info", + "cli-columns", + "cli-table3", + "columnify", + "fastest-levenshtein", + "fs-minipass", + "glob", + "graceful-fs", + "hosted-git-info", + "ini", + "init-package-json", + "is-cidr", + "json-parse-even-better-errors", + "libnpmaccess", + "libnpmdiff", + "libnpmexec", + "libnpmfund", + "libnpmhook", + "libnpmorg", + "libnpmpack", + "libnpmpublish", + "libnpmsearch", + "libnpmteam", + "libnpmversion", + "make-fetch-happen", + "minimatch", + "minipass", + "minipass-pipeline", + "ms", + "node-gyp", + "nopt", + "normalize-package-data", + "npm-audit-report", + "npm-install-checks", + "npm-package-arg", + "npm-pick-manifest", + "npm-profile", + "npm-registry-fetch", + "npm-user-validate", + "npmlog", + "p-map", + "pacote", + "parse-conflict-json", + "proc-log", + "qrcode-terminal", + "read", + "semver", + "sigstore", + "spdx-expression-parse", + "ssri", + "supports-color", + "tar", + "text-table", + "tiny-relative-date", + "treeverse", + "validate-npm-package-name", + "which", + "write-file-atomic" + ], + "dev": true, + "dependencies": { + "@isaacs/string-locale-compare": "^1.1.0", + "@npmcli/arborist": "^6.5.0", + "@npmcli/config": "^6.4.0", + "@npmcli/fs": "^3.1.0", + "@npmcli/map-workspaces": "^3.0.4", + "@npmcli/package-json": "^4.0.1", + "@npmcli/promise-spawn": "^6.0.2", + "@npmcli/run-script": "^6.0.2", + "abbrev": "^2.0.0", + "archy": "~1.0.0", + "cacache": "^17.1.4", + "chalk": "^5.3.0", + "ci-info": "^4.0.0", + "cli-columns": "^4.0.0", + "cli-table3": "^0.6.3", + "columnify": "^1.6.0", + "fastest-levenshtein": "^1.0.16", + "fs-minipass": "^3.0.3", + "glob": "^10.3.10", + "graceful-fs": "^4.2.11", + "hosted-git-info": "^6.1.3", + "ini": "^4.1.1", + "init-package-json": "^5.0.0", + "is-cidr": "^4.0.2", + "json-parse-even-better-errors": "^3.0.1", + "libnpmaccess": "^7.0.2", + "libnpmdiff": "^5.0.20", + "libnpmexec": "^6.0.4", + "libnpmfund": "^4.2.1", + "libnpmhook": "^9.0.3", + "libnpmorg": "^5.0.4", + "libnpmpack": "^5.0.20", + "libnpmpublish": "^7.5.1", + "libnpmsearch": "^6.0.2", + "libnpmteam": "^5.0.3", + "libnpmversion": "^4.0.2", + "make-fetch-happen": "^11.1.1", + "minimatch": "^9.0.3", + "minipass": "^7.0.4", + "minipass-pipeline": "^1.2.4", + "ms": "^2.1.2", + "node-gyp": "^9.4.1", + "nopt": "^7.2.0", + "normalize-package-data": "^5.0.0", + "npm-audit-report": "^5.0.0", + "npm-install-checks": "^6.3.0", + "npm-package-arg": "^10.1.0", + "npm-pick-manifest": "^8.0.2", + "npm-profile": "^7.0.1", + "npm-registry-fetch": "^14.0.5", + "npm-user-validate": "^2.0.0", + "npmlog": "^7.0.1", + "p-map": "^4.0.0", + "pacote": "^15.2.0", + "parse-conflict-json": "^3.0.1", + "proc-log": "^3.0.0", + "qrcode-terminal": "^0.12.0", + "read": "^2.1.0", + "semver": "^7.6.0", + "sigstore": "^1.9.0", + "spdx-expression-parse": "^3.0.1", + "ssri": "^10.0.5", + "supports-color": "^9.4.0", + "tar": "^6.2.1", + "text-table": "~0.2.0", + "tiny-relative-date": "^1.3.0", + "treeverse": "^3.0.0", + "validate-npm-package-name": "^5.0.0", + "which": "^3.0.1", + "write-file-atomic": "^5.0.1" + }, + "bin": { + "npm": "bin/npm-cli.js", + "npx": "bin/npx-cli.js" + }, + "engines": { + "node": "^14.17.0 || ^16.13.0 || >=18.0.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", @@ -2985,6 +5336,3127 @@ "node": ">=8" } }, + "node_modules/npm/node_modules/@colors/colors": { + "version": "1.5.0", + "dev": true, + "inBundle": true, + "license": "MIT", + "optional": true, + "engines": { + "node": ">=0.1.90" + } + }, + "node_modules/npm/node_modules/@gar/promisify": { + "version": "1.1.3", + "dev": true, + "inBundle": true, + "license": "MIT" + }, + "node_modules/npm/node_modules/@isaacs/cliui": { + "version": "8.0.2", + "dev": true, + "inBundle": 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/npm/node_modules/@isaacs/cliui/node_modules/ansi-regex": { + "version": "6.0.1", + "dev": true, + "inBundle": true, + "license": "MIT", + "engines": { + "node": ">=12" + }, + "funding": { + "url": "https://github.com/chalk/ansi-regex?sponsor=1" + } + }, + "node_modules/npm/node_modules/@isaacs/cliui/node_modules/emoji-regex": { + "version": "9.2.2", + "dev": true, + "inBundle": true, + "license": "MIT" + }, + "node_modules/npm/node_modules/@isaacs/cliui/node_modules/string-width": { + "version": "5.1.2", + "dev": true, + "inBundle": 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/npm/node_modules/@isaacs/cliui/node_modules/strip-ansi": { + "version": "7.1.0", + "dev": true, + "inBundle": true, + "license": "MIT", + "dependencies": { + "ansi-regex": "^6.0.1" + }, + "engines": { + "node": ">=12" + }, + "funding": { + "url": "https://github.com/chalk/strip-ansi?sponsor=1" + } + }, + "node_modules/npm/node_modules/@isaacs/string-locale-compare": { + "version": "1.1.0", + "dev": true, + "inBundle": true, + "license": "ISC" + }, + "node_modules/npm/node_modules/@npmcli/arborist": { + "version": "6.5.1", + "dev": true, + "inBundle": true, + "license": "ISC", + "dependencies": { + "@isaacs/string-locale-compare": "^1.1.0", + "@npmcli/fs": "^3.1.0", + "@npmcli/installed-package-contents": "^2.0.2", + "@npmcli/map-workspaces": "^3.0.2", + "@npmcli/metavuln-calculator": "^5.0.0", + "@npmcli/name-from-folder": "^2.0.0", + "@npmcli/node-gyp": "^3.0.0", + "@npmcli/package-json": "^4.0.0", + "@npmcli/query": "^3.1.0", + "@npmcli/run-script": "^6.0.0", + "bin-links": "^4.0.1", + "cacache": "^17.0.4", + "common-ancestor-path": "^1.0.1", + "hosted-git-info": "^6.1.1", + "json-parse-even-better-errors": "^3.0.0", + "json-stringify-nice": "^1.1.4", + "minimatch": "^9.0.0", + "nopt": "^7.0.0", + "npm-install-checks": "^6.2.0", + "npm-package-arg": "^10.1.0", + "npm-pick-manifest": "^8.0.1", + "npm-registry-fetch": "^14.0.3", + "npmlog": "^7.0.1", + "pacote": "^15.0.8", + "parse-conflict-json": "^3.0.0", + "proc-log": "^3.0.0", + "promise-all-reject-late": "^1.0.0", + "promise-call-limit": "^1.0.2", + "read-package-json-fast": "^3.0.2", + "semver": "^7.3.7", + "ssri": "^10.0.1", + "treeverse": "^3.0.0", + "walk-up-path": "^3.0.1" + }, + "bin": { + "arborist": "bin/index.js" + }, + "engines": { + "node": "^14.17.0 || ^16.13.0 || >=18.0.0" + } + }, + "node_modules/npm/node_modules/@npmcli/config": { + "version": "6.4.1", + "dev": true, + "inBundle": true, + "license": "ISC", + "dependencies": { + "@npmcli/map-workspaces": "^3.0.2", + "ci-info": "^4.0.0", + "ini": "^4.1.0", + "nopt": "^7.0.0", + "proc-log": "^3.0.0", + "read-package-json-fast": "^3.0.2", + "semver": "^7.3.5", + "walk-up-path": "^3.0.1" + }, + "engines": { + "node": "^14.17.0 || ^16.13.0 || >=18.0.0" + } + }, + "node_modules/npm/node_modules/@npmcli/disparity-colors": { + "version": "3.0.0", + "dev": true, + "inBundle": true, + "license": "ISC", + "dependencies": { + "ansi-styles": "^4.3.0" + }, + "engines": { + "node": "^14.17.0 || ^16.13.0 || >=18.0.0" + } + }, + "node_modules/npm/node_modules/@npmcli/fs": { + "version": "3.1.0", + "dev": true, + "inBundle": true, + "license": "ISC", + "dependencies": { + "semver": "^7.3.5" + }, + "engines": { + "node": "^14.17.0 || ^16.13.0 || >=18.0.0" + } + }, + "node_modules/npm/node_modules/@npmcli/git": { + "version": "4.1.0", + "dev": true, + "inBundle": true, + "license": "ISC", + "dependencies": { + "@npmcli/promise-spawn": "^6.0.0", + "lru-cache": "^7.4.4", + "npm-pick-manifest": "^8.0.0", + "proc-log": "^3.0.0", + "promise-inflight": "^1.0.1", + "promise-retry": "^2.0.1", + "semver": "^7.3.5", + "which": "^3.0.0" + }, + "engines": { + "node": "^14.17.0 || ^16.13.0 || >=18.0.0" + } + }, + "node_modules/npm/node_modules/@npmcli/installed-package-contents": { + "version": "2.0.2", + "dev": true, + "inBundle": true, + "license": "ISC", + "dependencies": { + "npm-bundled": "^3.0.0", + "npm-normalize-package-bin": "^3.0.0" + }, + "bin": { + "installed-package-contents": "lib/index.js" + }, + "engines": { + "node": "^14.17.0 || ^16.13.0 || >=18.0.0" + } + }, + "node_modules/npm/node_modules/@npmcli/map-workspaces": { + "version": "3.0.4", + "dev": true, + "inBundle": true, + "license": "ISC", + "dependencies": { + "@npmcli/name-from-folder": "^2.0.0", + "glob": "^10.2.2", + "minimatch": "^9.0.0", + "read-package-json-fast": "^3.0.0" + }, + "engines": { + "node": "^14.17.0 || ^16.13.0 || >=18.0.0" + } + }, + "node_modules/npm/node_modules/@npmcli/metavuln-calculator": { + "version": "5.0.1", + "dev": true, + "inBundle": true, + "license": "ISC", + "dependencies": { + "cacache": "^17.0.0", + "json-parse-even-better-errors": "^3.0.0", + "pacote": "^15.0.0", + "semver": "^7.3.5" + }, + "engines": { + "node": "^14.17.0 || ^16.13.0 || >=18.0.0" + } + }, + "node_modules/npm/node_modules/@npmcli/move-file": { + "version": "2.0.1", + "dev": true, + "inBundle": true, + "license": "MIT", + "dependencies": { + "mkdirp": "^1.0.4", + "rimraf": "^3.0.2" + }, + "engines": { + "node": "^12.13.0 || ^14.15.0 || >=16.0.0" + } + }, + "node_modules/npm/node_modules/@npmcli/name-from-folder": { + "version": "2.0.0", + "dev": true, + "inBundle": true, + "license": "ISC", + "engines": { + "node": "^14.17.0 || ^16.13.0 || >=18.0.0" + } + }, + "node_modules/npm/node_modules/@npmcli/node-gyp": { + "version": "3.0.0", + "dev": true, + "inBundle": true, + "license": "ISC", + "engines": { + "node": "^14.17.0 || ^16.13.0 || >=18.0.0" + } + }, + "node_modules/npm/node_modules/@npmcli/package-json": { + "version": "4.0.1", + "dev": true, + "inBundle": true, + "license": "ISC", + "dependencies": { + "@npmcli/git": "^4.1.0", + "glob": "^10.2.2", + "hosted-git-info": "^6.1.1", + "json-parse-even-better-errors": "^3.0.0", + "normalize-package-data": "^5.0.0", + "proc-log": "^3.0.0", + "semver": "^7.5.3" + }, + "engines": { + "node": "^14.17.0 || ^16.13.0 || >=18.0.0" + } + }, + "node_modules/npm/node_modules/@npmcli/promise-spawn": { + "version": "6.0.2", + "dev": true, + "inBundle": true, + "license": "ISC", + "dependencies": { + "which": "^3.0.0" + }, + "engines": { + "node": "^14.17.0 || ^16.13.0 || >=18.0.0" + } + }, + "node_modules/npm/node_modules/@npmcli/query": { + "version": "3.1.0", + "dev": true, + "inBundle": true, + "license": "ISC", + "dependencies": { + "postcss-selector-parser": "^6.0.10" + }, + "engines": { + "node": "^14.17.0 || ^16.13.0 || >=18.0.0" + } + }, + "node_modules/npm/node_modules/@npmcli/run-script": { + "version": "6.0.2", + "dev": true, + "inBundle": true, + "license": "ISC", + "dependencies": { + "@npmcli/node-gyp": "^3.0.0", + "@npmcli/promise-spawn": "^6.0.0", + "node-gyp": "^9.0.0", + "read-package-json-fast": "^3.0.0", + "which": "^3.0.0" + }, + "engines": { + "node": "^14.17.0 || ^16.13.0 || >=18.0.0" + } + }, + "node_modules/npm/node_modules/@pkgjs/parseargs": { + "version": "0.11.0", + "dev": true, + "inBundle": true, + "license": "MIT", + "optional": true, + "engines": { + "node": ">=14" + } + }, + "node_modules/npm/node_modules/@sigstore/bundle": { + "version": "1.1.0", + "dev": true, + "inBundle": true, + "license": "Apache-2.0", + "dependencies": { + "@sigstore/protobuf-specs": "^0.2.0" + }, + "engines": { + "node": "^14.17.0 || ^16.13.0 || >=18.0.0" + } + }, + "node_modules/npm/node_modules/@sigstore/protobuf-specs": { + "version": "0.2.1", + "dev": true, + "inBundle": true, + "license": "Apache-2.0", + "engines": { + "node": "^14.17.0 || ^16.13.0 || >=18.0.0" + } + }, + "node_modules/npm/node_modules/@sigstore/sign": { + "version": "1.0.0", + "dev": true, + "inBundle": true, + "license": "Apache-2.0", + "dependencies": { + "@sigstore/bundle": "^1.1.0", + "@sigstore/protobuf-specs": "^0.2.0", + "make-fetch-happen": "^11.0.1" + }, + "engines": { + "node": "^14.17.0 || ^16.13.0 || >=18.0.0" + } + }, + "node_modules/npm/node_modules/@sigstore/tuf": { + "version": "1.0.3", + "dev": true, + "inBundle": true, + "license": "Apache-2.0", + "dependencies": { + "@sigstore/protobuf-specs": "^0.2.0", + "tuf-js": "^1.1.7" + }, + "engines": { + "node": "^14.17.0 || ^16.13.0 || >=18.0.0" + } + }, + "node_modules/npm/node_modules/@tootallnate/once": { + "version": "2.0.0", + "dev": true, + "inBundle": true, + "license": "MIT", + "engines": { + "node": ">= 10" + } + }, + "node_modules/npm/node_modules/@tufjs/canonical-json": { + "version": "1.0.0", + "dev": true, + "inBundle": true, + "license": "MIT", + "engines": { + "node": "^14.17.0 || ^16.13.0 || >=18.0.0" + } + }, + "node_modules/npm/node_modules/@tufjs/models": { + "version": "1.0.4", + "dev": true, + "inBundle": true, + "license": "MIT", + "dependencies": { + "@tufjs/canonical-json": "1.0.0", + "minimatch": "^9.0.0" + }, + "engines": { + "node": "^14.17.0 || ^16.13.0 || >=18.0.0" + } + }, + "node_modules/npm/node_modules/abbrev": { + "version": "2.0.0", + "dev": true, + "inBundle": true, + "license": "ISC", + "engines": { + "node": "^14.17.0 || ^16.13.0 || >=18.0.0" + } + }, + "node_modules/npm/node_modules/agent-base": { + "version": "6.0.2", + "dev": true, + "inBundle": true, + "license": "MIT", + "dependencies": { + "debug": "4" + }, + "engines": { + "node": ">= 6.0.0" + } + }, + "node_modules/npm/node_modules/agentkeepalive": { + "version": "4.5.0", + "dev": true, + "inBundle": true, + "license": "MIT", + "dependencies": { + "humanize-ms": "^1.2.1" + }, + "engines": { + "node": ">= 8.0.0" + } + }, + "node_modules/npm/node_modules/aggregate-error": { + "version": "3.1.0", + "dev": true, + "inBundle": true, + "license": "MIT", + "dependencies": { + "clean-stack": "^2.0.0", + "indent-string": "^4.0.0" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/npm/node_modules/ansi-regex": { + "version": "5.0.1", + "dev": true, + "inBundle": true, + "license": "MIT", + "engines": { + "node": ">=8" + } + }, + "node_modules/npm/node_modules/ansi-styles": { + "version": "4.3.0", + "dev": true, + "inBundle": true, + "license": "MIT", + "dependencies": { + "color-convert": "^2.0.1" + }, + "engines": { + "node": ">=8" + }, + "funding": { + "url": "https://github.com/chalk/ansi-styles?sponsor=1" + } + }, + "node_modules/npm/node_modules/aproba": { + "version": "2.0.0", + "dev": true, + "inBundle": true, + "license": "ISC" + }, + "node_modules/npm/node_modules/archy": { + "version": "1.0.0", + "dev": true, + "inBundle": true, + "license": "MIT" + }, + "node_modules/npm/node_modules/are-we-there-yet": { + "version": "4.0.2", + "dev": true, + "inBundle": true, + "license": "ISC", + "engines": { + "node": "^14.17.0 || ^16.13.0 || >=18.0.0" + } + }, + "node_modules/npm/node_modules/balanced-match": { + "version": "1.0.2", + "dev": true, + "inBundle": true, + "license": "MIT" + }, + "node_modules/npm/node_modules/bin-links": { + "version": "4.0.3", + "dev": true, + "inBundle": true, + "license": "ISC", + "dependencies": { + "cmd-shim": "^6.0.0", + "npm-normalize-package-bin": "^3.0.0", + "read-cmd-shim": "^4.0.0", + "write-file-atomic": "^5.0.0" + }, + "engines": { + "node": "^14.17.0 || ^16.13.0 || >=18.0.0" + } + }, + "node_modules/npm/node_modules/binary-extensions": { + "version": "2.2.0", + "dev": true, + "inBundle": true, + "license": "MIT", + "engines": { + "node": ">=8" + } + }, + "node_modules/npm/node_modules/brace-expansion": { + "version": "2.0.1", + "dev": true, + "inBundle": true, + "license": "MIT", + "dependencies": { + "balanced-match": "^1.0.0" + } + }, + "node_modules/npm/node_modules/builtins": { + "version": "5.0.1", + "dev": true, + "inBundle": true, + "license": "MIT", + "dependencies": { + "semver": "^7.0.0" + } + }, + "node_modules/npm/node_modules/cacache": { + "version": "17.1.4", + "dev": true, + "inBundle": true, + "license": "ISC", + "dependencies": { + "@npmcli/fs": "^3.1.0", + "fs-minipass": "^3.0.0", + "glob": "^10.2.2", + "lru-cache": "^7.7.1", + "minipass": "^7.0.3", + "minipass-collect": "^1.0.2", + "minipass-flush": "^1.0.5", + "minipass-pipeline": "^1.2.4", + "p-map": "^4.0.0", + "ssri": "^10.0.0", + "tar": "^6.1.11", + "unique-filename": "^3.0.0" + }, + "engines": { + "node": "^14.17.0 || ^16.13.0 || >=18.0.0" + } + }, + "node_modules/npm/node_modules/chalk": { + "version": "5.3.0", + "dev": true, + "inBundle": true, + "license": "MIT", + "engines": { + "node": "^12.17.0 || ^14.13 || >=16.0.0" + }, + "funding": { + "url": "https://github.com/chalk/chalk?sponsor=1" + } + }, + "node_modules/npm/node_modules/chownr": { + "version": "2.0.0", + "dev": true, + "inBundle": true, + "license": "ISC", + "engines": { + "node": ">=10" + } + }, + "node_modules/npm/node_modules/ci-info": { + "version": "4.0.0", + "dev": true, + "funding": [ + { + "type": "github", + "url": "https://github.com/sponsors/sibiraj-s" + } + ], + "inBundle": true, + "license": "MIT", + "engines": { + "node": ">=8" + } + }, + "node_modules/npm/node_modules/cidr-regex": { + "version": "3.1.1", + "dev": true, + "inBundle": true, + "license": "BSD-2-Clause", + "dependencies": { + "ip-regex": "^4.1.0" + }, + "engines": { + "node": ">=10" + } + }, + "node_modules/npm/node_modules/clean-stack": { + "version": "2.2.0", + "dev": true, + "inBundle": true, + "license": "MIT", + "engines": { + "node": ">=6" + } + }, + "node_modules/npm/node_modules/cli-columns": { + "version": "4.0.0", + "dev": true, + "inBundle": true, + "license": "MIT", + "dependencies": { + "string-width": "^4.2.3", + "strip-ansi": "^6.0.1" + }, + "engines": { + "node": ">= 10" + } + }, + "node_modules/npm/node_modules/cli-table3": { + "version": "0.6.3", + "dev": true, + "inBundle": true, + "license": "MIT", + "dependencies": { + "string-width": "^4.2.0" + }, + "engines": { + "node": "10.* || >= 12.*" + }, + "optionalDependencies": { + "@colors/colors": "1.5.0" + } + }, + "node_modules/npm/node_modules/clone": { + "version": "1.0.4", + "dev": true, + "inBundle": true, + "license": "MIT", + "engines": { + "node": ">=0.8" + } + }, + "node_modules/npm/node_modules/cmd-shim": { + "version": "6.0.2", + "dev": true, + "inBundle": true, + "license": "ISC", + "engines": { + "node": "^14.17.0 || ^16.13.0 || >=18.0.0" + } + }, + "node_modules/npm/node_modules/color-convert": { + "version": "2.0.1", + "dev": true, + "inBundle": true, + "license": "MIT", + "dependencies": { + "color-name": "~1.1.4" + }, + "engines": { + "node": ">=7.0.0" + } + }, + "node_modules/npm/node_modules/color-name": { + "version": "1.1.4", + "dev": true, + "inBundle": true, + "license": "MIT" + }, + "node_modules/npm/node_modules/color-support": { + "version": "1.1.3", + "dev": true, + "inBundle": true, + "license": "ISC", + "bin": { + "color-support": "bin.js" + } + }, + "node_modules/npm/node_modules/columnify": { + "version": "1.6.0", + "dev": true, + "inBundle": true, + "license": "MIT", + "dependencies": { + "strip-ansi": "^6.0.1", + "wcwidth": "^1.0.0" + }, + "engines": { + "node": ">=8.0.0" + } + }, + "node_modules/npm/node_modules/common-ancestor-path": { + "version": "1.0.1", + "dev": true, + "inBundle": true, + "license": "ISC" + }, + "node_modules/npm/node_modules/concat-map": { + "version": "0.0.1", + "dev": true, + "inBundle": true, + "license": "MIT" + }, + "node_modules/npm/node_modules/console-control-strings": { + "version": "1.1.0", + "dev": true, + "inBundle": true, + "license": "ISC" + }, + "node_modules/npm/node_modules/cross-spawn": { + "version": "7.0.6", + "dev": true, + "inBundle": true, + "license": "MIT", + "dependencies": { + "path-key": "^3.1.0", + "shebang-command": "^2.0.0", + "which": "^2.0.1" + }, + "engines": { + "node": ">= 8" + } + }, + "node_modules/npm/node_modules/cross-spawn/node_modules/which": { + "version": "2.0.2", + "dev": true, + "inBundle": true, + "license": "ISC", + "dependencies": { + "isexe": "^2.0.0" + }, + "bin": { + "node-which": "bin/node-which" + }, + "engines": { + "node": ">= 8" + } + }, + "node_modules/npm/node_modules/cssesc": { + "version": "3.0.0", + "dev": true, + "inBundle": true, + "license": "MIT", + "bin": { + "cssesc": "bin/cssesc" + }, + "engines": { + "node": ">=4" + } + }, + "node_modules/npm/node_modules/debug": { + "version": "4.3.7", + "dev": true, + "inBundle": true, + "license": "MIT", + "dependencies": { + "ms": "^2.1.3" + }, + "engines": { + "node": ">=6.0" + }, + "peerDependenciesMeta": { + "supports-color": { + "optional": true + } + } + }, + "node_modules/npm/node_modules/defaults": { + "version": "1.0.4", + "dev": true, + "inBundle": true, + "license": "MIT", + "dependencies": { + "clone": "^1.0.2" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/npm/node_modules/delegates": { + "version": "1.0.0", + "dev": true, + "inBundle": true, + "license": "MIT" + }, + "node_modules/npm/node_modules/diff": { + "version": "5.2.0", + "dev": true, + "inBundle": true, + "license": "BSD-3-Clause", + "engines": { + "node": ">=0.3.1" + } + }, + "node_modules/npm/node_modules/eastasianwidth": { + "version": "0.2.0", + "dev": true, + "inBundle": true, + "license": "MIT" + }, + "node_modules/npm/node_modules/emoji-regex": { + "version": "8.0.0", + "dev": true, + "inBundle": true, + "license": "MIT" + }, + "node_modules/npm/node_modules/encoding": { + "version": "0.1.13", + "dev": true, + "inBundle": true, + "license": "MIT", + "optional": true, + "dependencies": { + "iconv-lite": "^0.6.2" + } + }, + "node_modules/npm/node_modules/env-paths": { + "version": "2.2.1", + "dev": true, + "inBundle": true, + "license": "MIT", + "engines": { + "node": ">=6" + } + }, + "node_modules/npm/node_modules/err-code": { + "version": "2.0.3", + "dev": true, + "inBundle": true, + "license": "MIT" + }, + "node_modules/npm/node_modules/exponential-backoff": { + "version": "3.1.1", + "dev": true, + "inBundle": true, + "license": "Apache-2.0" + }, + "node_modules/npm/node_modules/fastest-levenshtein": { + "version": "1.0.16", + "dev": true, + "inBundle": true, + "license": "MIT", + "engines": { + "node": ">= 4.9.1" + } + }, + "node_modules/npm/node_modules/foreground-child": { + "version": "3.1.1", + "dev": true, + "inBundle": 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/npm/node_modules/fs-minipass": { + "version": "3.0.3", + "dev": true, + "inBundle": true, + "license": "ISC", + "dependencies": { + "minipass": "^7.0.3" + }, + "engines": { + "node": "^14.17.0 || ^16.13.0 || >=18.0.0" + } + }, + "node_modules/npm/node_modules/fs.realpath": { + "version": "1.0.0", + "dev": true, + "inBundle": true, + "license": "ISC" + }, + "node_modules/npm/node_modules/function-bind": { + "version": "1.1.2", + "dev": true, + "inBundle": true, + "license": "MIT", + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/npm/node_modules/gauge": { + "version": "5.0.1", + "dev": true, + "inBundle": true, + "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" + } + }, + "node_modules/npm/node_modules/glob": { + "version": "10.3.10", + "dev": true, + "inBundle": true, + "license": "ISC", + "dependencies": { + "foreground-child": "^3.1.0", + "jackspeak": "^2.3.5", + "minimatch": "^9.0.1", + "minipass": "^5.0.0 || ^6.0.2 || ^7.0.0", + "path-scurry": "^1.10.1" + }, + "bin": { + "glob": "dist/esm/bin.mjs" + }, + "engines": { + "node": ">=16 || 14 >=14.17" + }, + "funding": { + "url": "https://github.com/sponsors/isaacs" + } + }, + "node_modules/npm/node_modules/graceful-fs": { + "version": "4.2.11", + "dev": true, + "inBundle": true, + "license": "ISC" + }, + "node_modules/npm/node_modules/has-unicode": { + "version": "2.0.1", + "dev": true, + "inBundle": true, + "license": "ISC" + }, + "node_modules/npm/node_modules/hasown": { + "version": "2.0.1", + "dev": true, + "inBundle": true, + "license": "MIT", + "dependencies": { + "function-bind": "^1.1.2" + }, + "engines": { + "node": ">= 0.4" + } + }, + "node_modules/npm/node_modules/hosted-git-info": { + "version": "6.1.3", + "dev": true, + "inBundle": true, + "license": "ISC", + "dependencies": { + "lru-cache": "^7.5.1" + }, + "engines": { + "node": "^14.17.0 || ^16.13.0 || >=18.0.0" + } + }, + "node_modules/npm/node_modules/http-cache-semantics": { + "version": "4.1.1", + "dev": true, + "inBundle": true, + "license": "BSD-2-Clause" + }, + "node_modules/npm/node_modules/http-proxy-agent": { + "version": "5.0.0", + "dev": true, + "inBundle": true, + "license": "MIT", + "dependencies": { + "@tootallnate/once": "2", + "agent-base": "6", + "debug": "4" + }, + "engines": { + "node": ">= 6" + } + }, + "node_modules/npm/node_modules/https-proxy-agent": { + "version": "5.0.1", + "dev": true, + "inBundle": true, + "license": "MIT", + "dependencies": { + "agent-base": "6", + "debug": "4" + }, + "engines": { + "node": ">= 6" + } + }, + "node_modules/npm/node_modules/humanize-ms": { + "version": "1.2.1", + "dev": true, + "inBundle": true, + "license": "MIT", + "dependencies": { + "ms": "^2.0.0" + } + }, + "node_modules/npm/node_modules/iconv-lite": { + "version": "0.6.3", + "dev": true, + "inBundle": true, + "license": "MIT", + "optional": true, + "dependencies": { + "safer-buffer": ">= 2.1.2 < 3.0.0" + }, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/npm/node_modules/ignore-walk": { + "version": "6.0.4", + "dev": true, + "inBundle": true, + "license": "ISC", + "dependencies": { + "minimatch": "^9.0.0" + }, + "engines": { + "node": "^14.17.0 || ^16.13.0 || >=18.0.0" + } + }, + "node_modules/npm/node_modules/imurmurhash": { + "version": "0.1.4", + "dev": true, + "inBundle": true, + "license": "MIT", + "engines": { + "node": ">=0.8.19" + } + }, + "node_modules/npm/node_modules/indent-string": { + "version": "4.0.0", + "dev": true, + "inBundle": true, + "license": "MIT", + "engines": { + "node": ">=8" + } + }, + "node_modules/npm/node_modules/infer-owner": { + "version": "1.0.4", + "dev": true, + "inBundle": true, + "license": "ISC" + }, + "node_modules/npm/node_modules/inflight": { + "version": "1.0.6", + "dev": true, + "inBundle": true, + "license": "ISC", + "dependencies": { + "once": "^1.3.0", + "wrappy": "1" + } + }, + "node_modules/npm/node_modules/inherits": { + "version": "2.0.4", + "dev": true, + "inBundle": true, + "license": "ISC" + }, + "node_modules/npm/node_modules/ini": { + "version": "4.1.1", + "dev": true, + "inBundle": true, + "license": "ISC", + "engines": { + "node": "^14.17.0 || ^16.13.0 || >=18.0.0" + } + }, + "node_modules/npm/node_modules/init-package-json": { + "version": "5.0.0", + "dev": true, + "inBundle": true, + "license": "ISC", + "dependencies": { + "npm-package-arg": "^10.0.0", + "promzard": "^1.0.0", + "read": "^2.0.0", + "read-package-json": "^6.0.0", + "semver": "^7.3.5", + "validate-npm-package-license": "^3.0.4", + "validate-npm-package-name": "^5.0.0" + }, + "engines": { + "node": "^14.17.0 || ^16.13.0 || >=18.0.0" + } + }, + "node_modules/npm/node_modules/ip-address": { + "version": "9.0.5", + "dev": true, + "inBundle": true, + "license": "MIT", + "dependencies": { + "jsbn": "1.1.0", + "sprintf-js": "^1.1.3" + }, + "engines": { + "node": ">= 12" + } + }, + "node_modules/npm/node_modules/ip-address/node_modules/sprintf-js": { + "version": "1.1.3", + "dev": true, + "inBundle": true, + "license": "BSD-3-Clause" + }, + "node_modules/npm/node_modules/ip-regex": { + "version": "4.3.0", + "dev": true, + "inBundle": true, + "license": "MIT", + "engines": { + "node": ">=8" + } + }, + "node_modules/npm/node_modules/is-cidr": { + "version": "4.0.2", + "dev": true, + "inBundle": true, + "license": "BSD-2-Clause", + "dependencies": { + "cidr-regex": "^3.1.1" + }, + "engines": { + "node": ">=10" + } + }, + "node_modules/npm/node_modules/is-core-module": { + "version": "2.13.1", + "dev": true, + "inBundle": true, + "license": "MIT", + "dependencies": { + "hasown": "^2.0.0" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/npm/node_modules/is-fullwidth-code-point": { + "version": "3.0.0", + "dev": true, + "inBundle": true, + "license": "MIT", + "engines": { + "node": ">=8" + } + }, + "node_modules/npm/node_modules/is-lambda": { + "version": "1.0.1", + "dev": true, + "inBundle": true, + "license": "MIT" + }, + "node_modules/npm/node_modules/isexe": { + "version": "2.0.0", + "dev": true, + "inBundle": true, + "license": "ISC" + }, + "node_modules/npm/node_modules/jackspeak": { + "version": "2.3.6", + "dev": true, + "inBundle": 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/npm/node_modules/jsbn": { + "version": "1.1.0", + "dev": true, + "inBundle": true, + "license": "MIT" + }, + "node_modules/npm/node_modules/json-parse-even-better-errors": { + "version": "3.0.1", + "dev": true, + "inBundle": true, + "license": "MIT", + "engines": { + "node": "^14.17.0 || ^16.13.0 || >=18.0.0" + } + }, + "node_modules/npm/node_modules/json-stringify-nice": { + "version": "1.1.4", + "dev": true, + "inBundle": true, + "license": "ISC", + "funding": { + "url": "https://github.com/sponsors/isaacs" + } + }, + "node_modules/npm/node_modules/jsonparse": { + "version": "1.3.1", + "dev": true, + "engines": [ + "node >= 0.2.0" + ], + "inBundle": true, + "license": "MIT" + }, + "node_modules/npm/node_modules/just-diff": { + "version": "6.0.2", + "dev": true, + "inBundle": true, + "license": "MIT" + }, + "node_modules/npm/node_modules/just-diff-apply": { + "version": "5.5.0", + "dev": true, + "inBundle": true, + "license": "MIT" + }, + "node_modules/npm/node_modules/libnpmaccess": { + "version": "7.0.3", + "dev": true, + "inBundle": true, + "license": "ISC", + "dependencies": { + "npm-package-arg": "^10.1.0", + "npm-registry-fetch": "^14.0.3" + }, + "engines": { + "node": "^14.17.0 || ^16.13.0 || >=18.0.0" + } + }, + "node_modules/npm/node_modules/libnpmdiff": { + "version": "5.0.21", + "dev": true, + "inBundle": true, + "license": "ISC", + "dependencies": { + "@npmcli/arborist": "^6.5.0", + "@npmcli/disparity-colors": "^3.0.0", + "@npmcli/installed-package-contents": "^2.0.2", + "binary-extensions": "^2.2.0", + "diff": "^5.1.0", + "minimatch": "^9.0.0", + "npm-package-arg": "^10.1.0", + "pacote": "^15.0.8", + "tar": "^6.1.13" + }, + "engines": { + "node": "^14.17.0 || ^16.13.0 || >=18.0.0" + } + }, + "node_modules/npm/node_modules/libnpmexec": { + "version": "6.0.5", + "dev": true, + "inBundle": true, + "license": "ISC", + "dependencies": { + "@npmcli/arborist": "^6.5.0", + "@npmcli/run-script": "^6.0.0", + "ci-info": "^4.0.0", + "npm-package-arg": "^10.1.0", + "npmlog": "^7.0.1", + "pacote": "^15.0.8", + "proc-log": "^3.0.0", + "read": "^2.0.0", + "read-package-json-fast": "^3.0.2", + "semver": "^7.3.7", + "walk-up-path": "^3.0.1" + }, + "engines": { + "node": "^14.17.0 || ^16.13.0 || >=18.0.0" + } + }, + "node_modules/npm/node_modules/libnpmfund": { + "version": "4.2.2", + "dev": true, + "inBundle": true, + "license": "ISC", + "dependencies": { + "@npmcli/arborist": "^6.5.0" + }, + "engines": { + "node": "^14.17.0 || ^16.13.0 || >=18.0.0" + } + }, + "node_modules/npm/node_modules/libnpmhook": { + "version": "9.0.4", + "dev": true, + "inBundle": true, + "license": "ISC", + "dependencies": { + "aproba": "^2.0.0", + "npm-registry-fetch": "^14.0.3" + }, + "engines": { + "node": "^14.17.0 || ^16.13.0 || >=18.0.0" + } + }, + "node_modules/npm/node_modules/libnpmorg": { + "version": "5.0.5", + "dev": true, + "inBundle": true, + "license": "ISC", + "dependencies": { + "aproba": "^2.0.0", + "npm-registry-fetch": "^14.0.3" + }, + "engines": { + "node": "^14.17.0 || ^16.13.0 || >=18.0.0" + } + }, + "node_modules/npm/node_modules/libnpmpack": { + "version": "5.0.21", + "dev": true, + "inBundle": true, + "license": "ISC", + "dependencies": { + "@npmcli/arborist": "^6.5.0", + "@npmcli/run-script": "^6.0.0", + "npm-package-arg": "^10.1.0", + "pacote": "^15.0.8" + }, + "engines": { + "node": "^14.17.0 || ^16.13.0 || >=18.0.0" + } + }, + "node_modules/npm/node_modules/libnpmpublish": { + "version": "7.5.2", + "dev": true, + "inBundle": true, + "license": "ISC", + "dependencies": { + "ci-info": "^4.0.0", + "normalize-package-data": "^5.0.0", + "npm-package-arg": "^10.1.0", + "npm-registry-fetch": "^14.0.3", + "proc-log": "^3.0.0", + "semver": "^7.3.7", + "sigstore": "^1.4.0", + "ssri": "^10.0.1" + }, + "engines": { + "node": "^14.17.0 || ^16.13.0 || >=18.0.0" + } + }, + "node_modules/npm/node_modules/libnpmsearch": { + "version": "6.0.3", + "dev": true, + "inBundle": true, + "license": "ISC", + "dependencies": { + "npm-registry-fetch": "^14.0.3" + }, + "engines": { + "node": "^14.17.0 || ^16.13.0 || >=18.0.0" + } + }, + "node_modules/npm/node_modules/libnpmteam": { + "version": "5.0.4", + "dev": true, + "inBundle": true, + "license": "ISC", + "dependencies": { + "aproba": "^2.0.0", + "npm-registry-fetch": "^14.0.3" + }, + "engines": { + "node": "^14.17.0 || ^16.13.0 || >=18.0.0" + } + }, + "node_modules/npm/node_modules/libnpmversion": { + "version": "4.0.3", + "dev": true, + "inBundle": true, + "license": "ISC", + "dependencies": { + "@npmcli/git": "^4.0.1", + "@npmcli/run-script": "^6.0.0", + "json-parse-even-better-errors": "^3.0.0", + "proc-log": "^3.0.0", + "semver": "^7.3.7" + }, + "engines": { + "node": "^14.17.0 || ^16.13.0 || >=18.0.0" + } + }, + "node_modules/npm/node_modules/lru-cache": { + "version": "7.18.3", + "dev": true, + "inBundle": true, + "license": "ISC", + "engines": { + "node": ">=12" + } + }, + "node_modules/npm/node_modules/make-fetch-happen": { + "version": "11.1.1", + "dev": true, + "inBundle": true, + "license": "ISC", + "dependencies": { + "agentkeepalive": "^4.2.1", + "cacache": "^17.0.0", + "http-cache-semantics": "^4.1.1", + "http-proxy-agent": "^5.0.0", + "https-proxy-agent": "^5.0.0", + "is-lambda": "^1.0.1", + "lru-cache": "^7.7.1", + "minipass": "^5.0.0", + "minipass-fetch": "^3.0.0", + "minipass-flush": "^1.0.5", + "minipass-pipeline": "^1.2.4", + "negotiator": "^0.6.3", + "promise-retry": "^2.0.1", + "socks-proxy-agent": "^7.0.0", + "ssri": "^10.0.0" + }, + "engines": { + "node": "^14.17.0 || ^16.13.0 || >=18.0.0" + } + }, + "node_modules/npm/node_modules/make-fetch-happen/node_modules/minipass": { + "version": "5.0.0", + "dev": true, + "inBundle": true, + "license": "ISC", + "engines": { + "node": ">=8" + } + }, + "node_modules/npm/node_modules/minimatch": { + "version": "9.0.3", + "dev": true, + "inBundle": true, + "license": "ISC", + "dependencies": { + "brace-expansion": "^2.0.1" + }, + "engines": { + "node": ">=16 || 14 >=14.17" + }, + "funding": { + "url": "https://github.com/sponsors/isaacs" + } + }, + "node_modules/npm/node_modules/minipass": { + "version": "7.0.4", + "dev": true, + "inBundle": true, + "license": "ISC", + "engines": { + "node": ">=16 || 14 >=14.17" + } + }, + "node_modules/npm/node_modules/minipass-collect": { + "version": "1.0.2", + "dev": true, + "inBundle": true, + "license": "ISC", + "dependencies": { + "minipass": "^3.0.0" + }, + "engines": { + "node": ">= 8" + } + }, + "node_modules/npm/node_modules/minipass-collect/node_modules/minipass": { + "version": "3.3.6", + "dev": true, + "inBundle": true, + "license": "ISC", + "dependencies": { + "yallist": "^4.0.0" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/npm/node_modules/minipass-fetch": { + "version": "3.0.4", + "dev": true, + "inBundle": true, + "license": "MIT", + "dependencies": { + "minipass": "^7.0.3", + "minipass-sized": "^1.0.3", + "minizlib": "^2.1.2" + }, + "engines": { + "node": "^14.17.0 || ^16.13.0 || >=18.0.0" + }, + "optionalDependencies": { + "encoding": "^0.1.13" + } + }, + "node_modules/npm/node_modules/minipass-flush": { + "version": "1.0.5", + "dev": true, + "inBundle": true, + "license": "ISC", + "dependencies": { + "minipass": "^3.0.0" + }, + "engines": { + "node": ">= 8" + } + }, + "node_modules/npm/node_modules/minipass-flush/node_modules/minipass": { + "version": "3.3.6", + "dev": true, + "inBundle": true, + "license": "ISC", + "dependencies": { + "yallist": "^4.0.0" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/npm/node_modules/minipass-json-stream": { + "version": "1.0.1", + "dev": true, + "inBundle": true, + "license": "MIT", + "dependencies": { + "jsonparse": "^1.3.1", + "minipass": "^3.0.0" + } + }, + "node_modules/npm/node_modules/minipass-json-stream/node_modules/minipass": { + "version": "3.3.6", + "dev": true, + "inBundle": true, + "license": "ISC", + "dependencies": { + "yallist": "^4.0.0" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/npm/node_modules/minipass-pipeline": { + "version": "1.2.4", + "dev": true, + "inBundle": true, + "license": "ISC", + "dependencies": { + "minipass": "^3.0.0" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/npm/node_modules/minipass-pipeline/node_modules/minipass": { + "version": "3.3.6", + "dev": true, + "inBundle": true, + "license": "ISC", + "dependencies": { + "yallist": "^4.0.0" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/npm/node_modules/minipass-sized": { + "version": "1.0.3", + "dev": true, + "inBundle": true, + "license": "ISC", + "dependencies": { + "minipass": "^3.0.0" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/npm/node_modules/minipass-sized/node_modules/minipass": { + "version": "3.3.6", + "dev": true, + "inBundle": true, + "license": "ISC", + "dependencies": { + "yallist": "^4.0.0" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/npm/node_modules/minizlib": { + "version": "2.1.2", + "dev": true, + "inBundle": true, + "license": "MIT", + "dependencies": { + "minipass": "^3.0.0", + "yallist": "^4.0.0" + }, + "engines": { + "node": ">= 8" + } + }, + "node_modules/npm/node_modules/minizlib/node_modules/minipass": { + "version": "3.3.6", + "dev": true, + "inBundle": true, + "license": "ISC", + "dependencies": { + "yallist": "^4.0.0" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/npm/node_modules/mkdirp": { + "version": "1.0.4", + "dev": true, + "inBundle": true, + "license": "MIT", + "bin": { + "mkdirp": "bin/cmd.js" + }, + "engines": { + "node": ">=10" + } + }, + "node_modules/npm/node_modules/ms": { + "version": "2.1.3", + "dev": true, + "inBundle": true, + "license": "MIT" + }, + "node_modules/npm/node_modules/mute-stream": { + "version": "1.0.0", + "dev": true, + "inBundle": true, + "license": "ISC", + "engines": { + "node": "^14.17.0 || ^16.13.0 || >=18.0.0" + } + }, + "node_modules/npm/node_modules/negotiator": { + "version": "0.6.3", + "dev": true, + "inBundle": true, + "license": "MIT", + "engines": { + "node": ">= 0.6" + } + }, + "node_modules/npm/node_modules/node-gyp": { + "version": "9.4.1", + "dev": true, + "inBundle": true, + "license": "MIT", + "dependencies": { + "env-paths": "^2.2.0", + "exponential-backoff": "^3.1.1", + "glob": "^7.1.4", + "graceful-fs": "^4.2.6", + "make-fetch-happen": "^10.0.3", + "nopt": "^6.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": "^12.13 || ^14.13 || >=16" + } + }, + "node_modules/npm/node_modules/node-gyp/node_modules/@npmcli/fs": { + "version": "2.1.2", + "dev": true, + "inBundle": true, + "license": "ISC", + "dependencies": { + "@gar/promisify": "^1.1.3", + "semver": "^7.3.5" + }, + "engines": { + "node": "^12.13.0 || ^14.15.0 || >=16.0.0" + } + }, + "node_modules/npm/node_modules/node-gyp/node_modules/abbrev": { + "version": "1.1.1", + "dev": true, + "inBundle": true, + "license": "ISC" + }, + "node_modules/npm/node_modules/node-gyp/node_modules/are-we-there-yet": { + "version": "3.0.1", + "dev": true, + "inBundle": true, + "license": "ISC", + "dependencies": { + "delegates": "^1.0.0", + "readable-stream": "^3.6.0" + }, + "engines": { + "node": "^12.13.0 || ^14.15.0 || >=16.0.0" + } + }, + "node_modules/npm/node_modules/node-gyp/node_modules/brace-expansion": { + "version": "1.1.11", + "dev": true, + "inBundle": true, + "license": "MIT", + "dependencies": { + "balanced-match": "^1.0.0", + "concat-map": "0.0.1" + } + }, + "node_modules/npm/node_modules/node-gyp/node_modules/cacache": { + "version": "16.1.3", + "dev": true, + "inBundle": true, + "license": "ISC", + "dependencies": { + "@npmcli/fs": "^2.1.0", + "@npmcli/move-file": "^2.0.0", + "chownr": "^2.0.0", + "fs-minipass": "^2.1.0", + "glob": "^8.0.1", + "infer-owner": "^1.0.4", + "lru-cache": "^7.7.1", + "minipass": "^3.1.6", + "minipass-collect": "^1.0.2", + "minipass-flush": "^1.0.5", + "minipass-pipeline": "^1.2.4", + "mkdirp": "^1.0.4", + "p-map": "^4.0.0", + "promise-inflight": "^1.0.1", + "rimraf": "^3.0.2", + "ssri": "^9.0.0", + "tar": "^6.1.11", + "unique-filename": "^2.0.0" + }, + "engines": { + "node": "^12.13.0 || ^14.15.0 || >=16.0.0" + } + }, + "node_modules/npm/node_modules/node-gyp/node_modules/cacache/node_modules/brace-expansion": { + "version": "2.0.1", + "dev": true, + "inBundle": true, + "license": "MIT", + "dependencies": { + "balanced-match": "^1.0.0" + } + }, + "node_modules/npm/node_modules/node-gyp/node_modules/cacache/node_modules/glob": { + "version": "8.1.0", + "dev": true, + "inBundle": true, + "license": "ISC", + "dependencies": { + "fs.realpath": "^1.0.0", + "inflight": "^1.0.4", + "inherits": "2", + "minimatch": "^5.0.1", + "once": "^1.3.0" + }, + "engines": { + "node": ">=12" + }, + "funding": { + "url": "https://github.com/sponsors/isaacs" + } + }, + "node_modules/npm/node_modules/node-gyp/node_modules/cacache/node_modules/minimatch": { + "version": "5.1.6", + "dev": true, + "inBundle": true, + "license": "ISC", + "dependencies": { + "brace-expansion": "^2.0.1" + }, + "engines": { + "node": ">=10" + } + }, + "node_modules/npm/node_modules/node-gyp/node_modules/fs-minipass": { + "version": "2.1.0", + "dev": true, + "inBundle": true, + "license": "ISC", + "dependencies": { + "minipass": "^3.0.0" + }, + "engines": { + "node": ">= 8" + } + }, + "node_modules/npm/node_modules/node-gyp/node_modules/gauge": { + "version": "4.0.4", + "dev": true, + "inBundle": true, + "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": "^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" + } + }, + "node_modules/npm/node_modules/node-gyp/node_modules/glob": { + "version": "7.2.3", + "dev": true, + "inBundle": true, + "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" + } + }, + "node_modules/npm/node_modules/node-gyp/node_modules/make-fetch-happen": { + "version": "10.2.1", + "dev": true, + "inBundle": true, + "license": "ISC", + "dependencies": { + "agentkeepalive": "^4.2.1", + "cacache": "^16.1.0", + "http-cache-semantics": "^4.1.0", + "http-proxy-agent": "^5.0.0", + "https-proxy-agent": "^5.0.0", + "is-lambda": "^1.0.1", + "lru-cache": "^7.7.1", + "minipass": "^3.1.6", + "minipass-collect": "^1.0.2", + "minipass-fetch": "^2.0.3", + "minipass-flush": "^1.0.5", + "minipass-pipeline": "^1.2.4", + "negotiator": "^0.6.3", + "promise-retry": "^2.0.1", + "socks-proxy-agent": "^7.0.0", + "ssri": "^9.0.0" + }, + "engines": { + "node": "^12.13.0 || ^14.15.0 || >=16.0.0" + } + }, + "node_modules/npm/node_modules/node-gyp/node_modules/minimatch": { + "version": "3.1.2", + "dev": true, + "inBundle": true, + "license": "ISC", + "dependencies": { + "brace-expansion": "^1.1.7" + }, + "engines": { + "node": "*" + } + }, + "node_modules/npm/node_modules/node-gyp/node_modules/minipass": { + "version": "3.3.6", + "dev": true, + "inBundle": true, + "license": "ISC", + "dependencies": { + "yallist": "^4.0.0" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/npm/node_modules/node-gyp/node_modules/minipass-fetch": { + "version": "2.1.2", + "dev": true, + "inBundle": true, + "license": "MIT", + "dependencies": { + "minipass": "^3.1.6", + "minipass-sized": "^1.0.3", + "minizlib": "^2.1.2" + }, + "engines": { + "node": "^12.13.0 || ^14.15.0 || >=16.0.0" + }, + "optionalDependencies": { + "encoding": "^0.1.13" + } + }, + "node_modules/npm/node_modules/node-gyp/node_modules/nopt": { + "version": "6.0.0", + "dev": true, + "inBundle": true, + "license": "ISC", + "dependencies": { + "abbrev": "^1.0.0" + }, + "bin": { + "nopt": "bin/nopt.js" + }, + "engines": { + "node": "^12.13.0 || ^14.15.0 || >=16.0.0" + } + }, + "node_modules/npm/node_modules/node-gyp/node_modules/npmlog": { + "version": "6.0.2", + "dev": true, + "inBundle": true, + "license": "ISC", + "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" + } + }, + "node_modules/npm/node_modules/node-gyp/node_modules/signal-exit": { + "version": "3.0.7", + "dev": true, + "inBundle": true, + "license": "ISC" + }, + "node_modules/npm/node_modules/node-gyp/node_modules/ssri": { + "version": "9.0.1", + "dev": true, + "inBundle": true, + "license": "ISC", + "dependencies": { + "minipass": "^3.1.1" + }, + "engines": { + "node": "^12.13.0 || ^14.15.0 || >=16.0.0" + } + }, + "node_modules/npm/node_modules/node-gyp/node_modules/unique-filename": { + "version": "2.0.1", + "dev": true, + "inBundle": true, + "license": "ISC", + "dependencies": { + "unique-slug": "^3.0.0" + }, + "engines": { + "node": "^12.13.0 || ^14.15.0 || >=16.0.0" + } + }, + "node_modules/npm/node_modules/node-gyp/node_modules/unique-slug": { + "version": "3.0.0", + "dev": true, + "inBundle": true, + "license": "ISC", + "dependencies": { + "imurmurhash": "^0.1.4" + }, + "engines": { + "node": "^12.13.0 || ^14.15.0 || >=16.0.0" + } + }, + "node_modules/npm/node_modules/node-gyp/node_modules/which": { + "version": "2.0.2", + "dev": true, + "inBundle": true, + "license": "ISC", + "dependencies": { + "isexe": "^2.0.0" + }, + "bin": { + "node-which": "bin/node-which" + }, + "engines": { + "node": ">= 8" + } + }, + "node_modules/npm/node_modules/nopt": { + "version": "7.2.0", + "dev": true, + "inBundle": true, + "license": "ISC", + "dependencies": { + "abbrev": "^2.0.0" + }, + "bin": { + "nopt": "bin/nopt.js" + }, + "engines": { + "node": "^14.17.0 || ^16.13.0 || >=18.0.0" + } + }, + "node_modules/npm/node_modules/normalize-package-data": { + "version": "5.0.0", + "dev": true, + "inBundle": true, + "license": "BSD-2-Clause", + "dependencies": { + "hosted-git-info": "^6.0.0", + "is-core-module": "^2.8.1", + "semver": "^7.3.5", + "validate-npm-package-license": "^3.0.4" + }, + "engines": { + "node": "^14.17.0 || ^16.13.0 || >=18.0.0" + } + }, + "node_modules/npm/node_modules/npm-audit-report": { + "version": "5.0.0", + "dev": true, + "inBundle": true, + "license": "ISC", + "engines": { + "node": "^14.17.0 || ^16.13.0 || >=18.0.0" + } + }, + "node_modules/npm/node_modules/npm-bundled": { + "version": "3.0.0", + "dev": true, + "inBundle": true, + "license": "ISC", + "dependencies": { + "npm-normalize-package-bin": "^3.0.0" + }, + "engines": { + "node": "^14.17.0 || ^16.13.0 || >=18.0.0" + } + }, + "node_modules/npm/node_modules/npm-install-checks": { + "version": "6.3.0", + "dev": true, + "inBundle": true, + "license": "BSD-2-Clause", + "dependencies": { + "semver": "^7.1.1" + }, + "engines": { + "node": "^14.17.0 || ^16.13.0 || >=18.0.0" + } + }, + "node_modules/npm/node_modules/npm-normalize-package-bin": { + "version": "3.0.1", + "dev": true, + "inBundle": true, + "license": "ISC", + "engines": { + "node": "^14.17.0 || ^16.13.0 || >=18.0.0" + } + }, + "node_modules/npm/node_modules/npm-package-arg": { + "version": "10.1.0", + "dev": true, + "inBundle": true, + "license": "ISC", + "dependencies": { + "hosted-git-info": "^6.0.0", + "proc-log": "^3.0.0", + "semver": "^7.3.5", + "validate-npm-package-name": "^5.0.0" + }, + "engines": { + "node": "^14.17.0 || ^16.13.0 || >=18.0.0" + } + }, + "node_modules/npm/node_modules/npm-packlist": { + "version": "7.0.4", + "dev": true, + "inBundle": true, + "license": "ISC", + "dependencies": { + "ignore-walk": "^6.0.0" + }, + "engines": { + "node": "^14.17.0 || ^16.13.0 || >=18.0.0" + } + }, + "node_modules/npm/node_modules/npm-pick-manifest": { + "version": "8.0.2", + "dev": true, + "inBundle": true, + "license": "ISC", + "dependencies": { + "npm-install-checks": "^6.0.0", + "npm-normalize-package-bin": "^3.0.0", + "npm-package-arg": "^10.0.0", + "semver": "^7.3.5" + }, + "engines": { + "node": "^14.17.0 || ^16.13.0 || >=18.0.0" + } + }, + "node_modules/npm/node_modules/npm-profile": { + "version": "7.0.1", + "dev": true, + "inBundle": true, + "license": "ISC", + "dependencies": { + "npm-registry-fetch": "^14.0.0", + "proc-log": "^3.0.0" + }, + "engines": { + "node": "^14.17.0 || ^16.13.0 || >=18.0.0" + } + }, + "node_modules/npm/node_modules/npm-registry-fetch": { + "version": "14.0.5", + "dev": true, + "inBundle": true, + "license": "ISC", + "dependencies": { + "make-fetch-happen": "^11.0.0", + "minipass": "^5.0.0", + "minipass-fetch": "^3.0.0", + "minipass-json-stream": "^1.0.1", + "minizlib": "^2.1.2", + "npm-package-arg": "^10.0.0", + "proc-log": "^3.0.0" + }, + "engines": { + "node": "^14.17.0 || ^16.13.0 || >=18.0.0" + } + }, + "node_modules/npm/node_modules/npm-registry-fetch/node_modules/minipass": { + "version": "5.0.0", + "dev": true, + "inBundle": true, + "license": "ISC", + "engines": { + "node": ">=8" + } + }, + "node_modules/npm/node_modules/npm-user-validate": { + "version": "2.0.0", + "dev": true, + "inBundle": true, + "license": "BSD-2-Clause", + "engines": { + "node": "^14.17.0 || ^16.13.0 || >=18.0.0" + } + }, + "node_modules/npm/node_modules/npmlog": { + "version": "7.0.1", + "dev": true, + "inBundle": true, + "license": "ISC", + "dependencies": { + "are-we-there-yet": "^4.0.0", + "console-control-strings": "^1.1.0", + "gauge": "^5.0.0", + "set-blocking": "^2.0.0" + }, + "engines": { + "node": "^14.17.0 || ^16.13.0 || >=18.0.0" + } + }, + "node_modules/npm/node_modules/once": { + "version": "1.4.0", + "dev": true, + "inBundle": true, + "license": "ISC", + "dependencies": { + "wrappy": "1" + } + }, + "node_modules/npm/node_modules/p-map": { + "version": "4.0.0", + "dev": true, + "inBundle": true, + "license": "MIT", + "dependencies": { + "aggregate-error": "^3.0.0" + }, + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/npm/node_modules/pacote": { + "version": "15.2.0", + "dev": true, + "inBundle": true, + "license": "ISC", + "dependencies": { + "@npmcli/git": "^4.0.0", + "@npmcli/installed-package-contents": "^2.0.1", + "@npmcli/promise-spawn": "^6.0.1", + "@npmcli/run-script": "^6.0.0", + "cacache": "^17.0.0", + "fs-minipass": "^3.0.0", + "minipass": "^5.0.0", + "npm-package-arg": "^10.0.0", + "npm-packlist": "^7.0.0", + "npm-pick-manifest": "^8.0.0", + "npm-registry-fetch": "^14.0.0", + "proc-log": "^3.0.0", + "promise-retry": "^2.0.1", + "read-package-json": "^6.0.0", + "read-package-json-fast": "^3.0.0", + "sigstore": "^1.3.0", + "ssri": "^10.0.0", + "tar": "^6.1.11" + }, + "bin": { + "pacote": "lib/bin.js" + }, + "engines": { + "node": "^14.17.0 || ^16.13.0 || >=18.0.0" + } + }, + "node_modules/npm/node_modules/pacote/node_modules/minipass": { + "version": "5.0.0", + "dev": true, + "inBundle": true, + "license": "ISC", + "engines": { + "node": ">=8" + } + }, + "node_modules/npm/node_modules/parse-conflict-json": { + "version": "3.0.1", + "dev": true, + "inBundle": true, + "license": "ISC", + "dependencies": { + "json-parse-even-better-errors": "^3.0.0", + "just-diff": "^6.0.0", + "just-diff-apply": "^5.2.0" + }, + "engines": { + "node": "^14.17.0 || ^16.13.0 || >=18.0.0" + } + }, + "node_modules/npm/node_modules/path-is-absolute": { + "version": "1.0.1", + "dev": true, + "inBundle": true, + "license": "MIT", + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/npm/node_modules/path-key": { + "version": "3.1.1", + "dev": true, + "inBundle": true, + "license": "MIT", + "engines": { + "node": ">=8" + } + }, + "node_modules/npm/node_modules/path-scurry": { + "version": "1.10.1", + "dev": true, + "inBundle": true, + "license": "BlueOak-1.0.0", + "dependencies": { + "lru-cache": "^9.1.1 || ^10.0.0", + "minipass": "^5.0.0 || ^6.0.2 || ^7.0.0" + }, + "engines": { + "node": ">=16 || 14 >=14.17" + }, + "funding": { + "url": "https://github.com/sponsors/isaacs" + } + }, + "node_modules/npm/node_modules/path-scurry/node_modules/lru-cache": { + "version": "10.2.0", + "dev": true, + "inBundle": true, + "license": "ISC", + "engines": { + "node": "14 || >=16.14" + } + }, + "node_modules/npm/node_modules/postcss-selector-parser": { + "version": "6.0.15", + "dev": true, + "inBundle": true, + "license": "MIT", + "dependencies": { + "cssesc": "^3.0.0", + "util-deprecate": "^1.0.2" + }, + "engines": { + "node": ">=4" + } + }, + "node_modules/npm/node_modules/proc-log": { + "version": "3.0.0", + "dev": true, + "inBundle": true, + "license": "ISC", + "engines": { + "node": "^14.17.0 || ^16.13.0 || >=18.0.0" + } + }, + "node_modules/npm/node_modules/promise-all-reject-late": { + "version": "1.0.1", + "dev": true, + "inBundle": true, + "license": "ISC", + "funding": { + "url": "https://github.com/sponsors/isaacs" + } + }, + "node_modules/npm/node_modules/promise-call-limit": { + "version": "1.0.2", + "dev": true, + "inBundle": true, + "license": "ISC", + "funding": { + "url": "https://github.com/sponsors/isaacs" + } + }, + "node_modules/npm/node_modules/promise-inflight": { + "version": "1.0.1", + "dev": true, + "inBundle": true, + "license": "ISC" + }, + "node_modules/npm/node_modules/promise-retry": { + "version": "2.0.1", + "dev": true, + "inBundle": true, + "license": "MIT", + "dependencies": { + "err-code": "^2.0.2", + "retry": "^0.12.0" + }, + "engines": { + "node": ">=10" + } + }, + "node_modules/npm/node_modules/promzard": { + "version": "1.0.0", + "dev": true, + "inBundle": true, + "license": "ISC", + "dependencies": { + "read": "^2.0.0" + }, + "engines": { + "node": "^14.17.0 || ^16.13.0 || >=18.0.0" + } + }, + "node_modules/npm/node_modules/qrcode-terminal": { + "version": "0.12.0", + "dev": true, + "inBundle": true, + "bin": { + "qrcode-terminal": "bin/qrcode-terminal.js" + } + }, + "node_modules/npm/node_modules/read": { + "version": "2.1.0", + "dev": true, + "inBundle": true, + "license": "ISC", + "dependencies": { + "mute-stream": "~1.0.0" + }, + "engines": { + "node": "^14.17.0 || ^16.13.0 || >=18.0.0" + } + }, + "node_modules/npm/node_modules/read-cmd-shim": { + "version": "4.0.0", + "dev": true, + "inBundle": true, + "license": "ISC", + "engines": { + "node": "^14.17.0 || ^16.13.0 || >=18.0.0" + } + }, + "node_modules/npm/node_modules/read-package-json": { + "version": "6.0.4", + "dev": true, + "inBundle": true, + "license": "ISC", + "dependencies": { + "glob": "^10.2.2", + "json-parse-even-better-errors": "^3.0.0", + "normalize-package-data": "^5.0.0", + "npm-normalize-package-bin": "^3.0.0" + }, + "engines": { + "node": "^14.17.0 || ^16.13.0 || >=18.0.0" + } + }, + "node_modules/npm/node_modules/read-package-json-fast": { + "version": "3.0.2", + "dev": true, + "inBundle": true, + "license": "ISC", + "dependencies": { + "json-parse-even-better-errors": "^3.0.0", + "npm-normalize-package-bin": "^3.0.0" + }, + "engines": { + "node": "^14.17.0 || ^16.13.0 || >=18.0.0" + } + }, + "node_modules/npm/node_modules/readable-stream": { + "version": "3.6.2", + "dev": true, + "inBundle": true, + "license": "MIT", + "dependencies": { + "inherits": "^2.0.3", + "string_decoder": "^1.1.1", + "util-deprecate": "^1.0.1" + }, + "engines": { + "node": ">= 6" + } + }, + "node_modules/npm/node_modules/retry": { + "version": "0.12.0", + "dev": true, + "inBundle": true, + "license": "MIT", + "engines": { + "node": ">= 4" + } + }, + "node_modules/npm/node_modules/rimraf": { + "version": "3.0.2", + "dev": true, + "inBundle": true, + "license": "ISC", + "dependencies": { + "glob": "^7.1.3" + }, + "bin": { + "rimraf": "bin.js" + }, + "funding": { + "url": "https://github.com/sponsors/isaacs" + } + }, + "node_modules/npm/node_modules/rimraf/node_modules/brace-expansion": { + "version": "1.1.11", + "dev": true, + "inBundle": true, + "license": "MIT", + "dependencies": { + "balanced-match": "^1.0.0", + "concat-map": "0.0.1" + } + }, + "node_modules/npm/node_modules/rimraf/node_modules/glob": { + "version": "7.2.3", + "dev": true, + "inBundle": true, + "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" + } + }, + "node_modules/npm/node_modules/rimraf/node_modules/minimatch": { + "version": "3.1.2", + "dev": true, + "inBundle": true, + "license": "ISC", + "dependencies": { + "brace-expansion": "^1.1.7" + }, + "engines": { + "node": "*" + } + }, + "node_modules/npm/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" + } + ], + "inBundle": true, + "license": "MIT" + }, + "node_modules/npm/node_modules/safer-buffer": { + "version": "2.1.2", + "dev": true, + "inBundle": true, + "license": "MIT", + "optional": true + }, + "node_modules/npm/node_modules/semver": { + "version": "7.6.0", + "dev": true, + "inBundle": true, + "license": "ISC", + "dependencies": { + "lru-cache": "^6.0.0" + }, + "bin": { + "semver": "bin/semver.js" + }, + "engines": { + "node": ">=10" + } + }, + "node_modules/npm/node_modules/semver/node_modules/lru-cache": { + "version": "6.0.0", + "dev": true, + "inBundle": true, + "license": "ISC", + "dependencies": { + "yallist": "^4.0.0" + }, + "engines": { + "node": ">=10" + } + }, + "node_modules/npm/node_modules/set-blocking": { + "version": "2.0.0", + "dev": true, + "inBundle": true, + "license": "ISC" + }, + "node_modules/npm/node_modules/shebang-command": { + "version": "2.0.0", + "dev": true, + "inBundle": true, + "license": "MIT", + "dependencies": { + "shebang-regex": "^3.0.0" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/npm/node_modules/shebang-regex": { + "version": "3.0.0", + "dev": true, + "inBundle": true, + "license": "MIT", + "engines": { + "node": ">=8" + } + }, + "node_modules/npm/node_modules/signal-exit": { + "version": "4.1.0", + "dev": true, + "inBundle": true, + "license": "ISC", + "engines": { + "node": ">=14" + }, + "funding": { + "url": "https://github.com/sponsors/isaacs" + } + }, + "node_modules/npm/node_modules/sigstore": { + "version": "1.9.0", + "dev": true, + "inBundle": true, + "license": "Apache-2.0", + "dependencies": { + "@sigstore/bundle": "^1.1.0", + "@sigstore/protobuf-specs": "^0.2.0", + "@sigstore/sign": "^1.0.0", + "@sigstore/tuf": "^1.0.3", + "make-fetch-happen": "^11.0.1" + }, + "bin": { + "sigstore": "bin/sigstore.js" + }, + "engines": { + "node": "^14.17.0 || ^16.13.0 || >=18.0.0" + } + }, + "node_modules/npm/node_modules/smart-buffer": { + "version": "4.2.0", + "dev": true, + "inBundle": true, + "license": "MIT", + "engines": { + "node": ">= 6.0.0", + "npm": ">= 3.0.0" + } + }, + "node_modules/npm/node_modules/socks": { + "version": "2.8.1", + "dev": true, + "inBundle": true, + "license": "MIT", + "dependencies": { + "ip-address": "^9.0.5", + "smart-buffer": "^4.2.0" + }, + "engines": { + "node": ">= 10.0.0", + "npm": ">= 3.0.0" + } + }, + "node_modules/npm/node_modules/socks-proxy-agent": { + "version": "7.0.0", + "dev": true, + "inBundle": true, + "license": "MIT", + "dependencies": { + "agent-base": "^6.0.2", + "debug": "^4.3.3", + "socks": "^2.6.2" + }, + "engines": { + "node": ">= 10" + } + }, + "node_modules/npm/node_modules/spdx-correct": { + "version": "3.2.0", + "dev": true, + "inBundle": true, + "license": "Apache-2.0", + "dependencies": { + "spdx-expression-parse": "^3.0.0", + "spdx-license-ids": "^3.0.0" + } + }, + "node_modules/npm/node_modules/spdx-exceptions": { + "version": "2.5.0", + "dev": true, + "inBundle": true, + "license": "CC-BY-3.0" + }, + "node_modules/npm/node_modules/spdx-expression-parse": { + "version": "3.0.1", + "dev": true, + "inBundle": true, + "license": "MIT", + "dependencies": { + "spdx-exceptions": "^2.1.0", + "spdx-license-ids": "^3.0.0" + } + }, + "node_modules/npm/node_modules/spdx-license-ids": { + "version": "3.0.17", + "dev": true, + "inBundle": true, + "license": "CC0-1.0" + }, + "node_modules/npm/node_modules/ssri": { + "version": "10.0.5", + "dev": true, + "inBundle": true, + "license": "ISC", + "dependencies": { + "minipass": "^7.0.3" + }, + "engines": { + "node": "^14.17.0 || ^16.13.0 || >=18.0.0" + } + }, + "node_modules/npm/node_modules/string_decoder": { + "version": "1.3.0", + "dev": true, + "inBundle": true, + "license": "MIT", + "dependencies": { + "safe-buffer": "~5.2.0" + } + }, + "node_modules/npm/node_modules/string-width": { + "version": "4.2.3", + "dev": true, + "inBundle": 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/npm/node_modules/string-width-cjs": { + "name": "string-width", + "version": "4.2.3", + "dev": true, + "inBundle": 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/npm/node_modules/strip-ansi": { + "version": "6.0.1", + "dev": true, + "inBundle": true, + "license": "MIT", + "dependencies": { + "ansi-regex": "^5.0.1" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/npm/node_modules/strip-ansi-cjs": { + "name": "strip-ansi", + "version": "6.0.1", + "dev": true, + "inBundle": true, + "license": "MIT", + "dependencies": { + "ansi-regex": "^5.0.1" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/npm/node_modules/supports-color": { + "version": "9.4.0", + "dev": true, + "inBundle": true, + "license": "MIT", + "engines": { + "node": ">=12" + }, + "funding": { + "url": "https://github.com/chalk/supports-color?sponsor=1" + } + }, + "node_modules/npm/node_modules/tar": { + "version": "6.2.1", + "dev": true, + "inBundle": true, + "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" + } + }, + "node_modules/npm/node_modules/tar/node_modules/fs-minipass": { + "version": "2.1.0", + "dev": true, + "inBundle": true, + "license": "ISC", + "dependencies": { + "minipass": "^3.0.0" + }, + "engines": { + "node": ">= 8" + } + }, + "node_modules/npm/node_modules/tar/node_modules/fs-minipass/node_modules/minipass": { + "version": "3.3.6", + "dev": true, + "inBundle": true, + "license": "ISC", + "dependencies": { + "yallist": "^4.0.0" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/npm/node_modules/tar/node_modules/minipass": { + "version": "5.0.0", + "dev": true, + "inBundle": true, + "license": "ISC", + "engines": { + "node": ">=8" + } + }, + "node_modules/npm/node_modules/text-table": { + "version": "0.2.0", + "dev": true, + "inBundle": true, + "license": "MIT" + }, + "node_modules/npm/node_modules/tiny-relative-date": { + "version": "1.3.0", + "dev": true, + "inBundle": true, + "license": "MIT" + }, + "node_modules/npm/node_modules/treeverse": { + "version": "3.0.0", + "dev": true, + "inBundle": true, + "license": "ISC", + "engines": { + "node": "^14.17.0 || ^16.13.0 || >=18.0.0" + } + }, + "node_modules/npm/node_modules/tuf-js": { + "version": "1.1.7", + "dev": true, + "inBundle": true, + "license": "MIT", + "dependencies": { + "@tufjs/models": "1.0.4", + "debug": "^4.3.4", + "make-fetch-happen": "^11.1.1" + }, + "engines": { + "node": "^14.17.0 || ^16.13.0 || >=18.0.0" + } + }, + "node_modules/npm/node_modules/unique-filename": { + "version": "3.0.0", + "dev": true, + "inBundle": true, + "license": "ISC", + "dependencies": { + "unique-slug": "^4.0.0" + }, + "engines": { + "node": "^14.17.0 || ^16.13.0 || >=18.0.0" + } + }, + "node_modules/npm/node_modules/unique-slug": { + "version": "4.0.0", + "dev": true, + "inBundle": true, + "license": "ISC", + "dependencies": { + "imurmurhash": "^0.1.4" + }, + "engines": { + "node": "^14.17.0 || ^16.13.0 || >=18.0.0" + } + }, + "node_modules/npm/node_modules/util-deprecate": { + "version": "1.0.2", + "dev": true, + "inBundle": true, + "license": "MIT" + }, + "node_modules/npm/node_modules/validate-npm-package-license": { + "version": "3.0.4", + "dev": true, + "inBundle": true, + "license": "Apache-2.0", + "dependencies": { + "spdx-correct": "^3.0.0", + "spdx-expression-parse": "^3.0.0" + } + }, + "node_modules/npm/node_modules/validate-npm-package-name": { + "version": "5.0.0", + "dev": true, + "inBundle": true, + "license": "ISC", + "dependencies": { + "builtins": "^5.0.0" + }, + "engines": { + "node": "^14.17.0 || ^16.13.0 || >=18.0.0" + } + }, + "node_modules/npm/node_modules/walk-up-path": { + "version": "3.0.1", + "dev": true, + "inBundle": true, + "license": "ISC" + }, + "node_modules/npm/node_modules/wcwidth": { + "version": "1.0.1", + "dev": true, + "inBundle": true, + "license": "MIT", + "dependencies": { + "defaults": "^1.0.3" + } + }, + "node_modules/npm/node_modules/which": { + "version": "3.0.1", + "dev": true, + "inBundle": true, + "license": "ISC", + "dependencies": { + "isexe": "^2.0.0" + }, + "bin": { + "node-which": "bin/which.js" + }, + "engines": { + "node": "^14.17.0 || ^16.13.0 || >=18.0.0" + } + }, + "node_modules/npm/node_modules/wide-align": { + "version": "1.1.5", + "dev": true, + "inBundle": true, + "license": "ISC", + "dependencies": { + "string-width": "^1.0.2 || 2 || 3 || 4" + } + }, + "node_modules/npm/node_modules/wrap-ansi": { + "version": "8.1.0", + "dev": true, + "inBundle": 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/npm/node_modules/wrap-ansi-cjs": { + "name": "wrap-ansi", + "version": "7.0.0", + "dev": true, + "inBundle": 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/npm/node_modules/wrap-ansi/node_modules/ansi-regex": { + "version": "6.0.1", + "dev": true, + "inBundle": true, + "license": "MIT", + "engines": { + "node": ">=12" + }, + "funding": { + "url": "https://github.com/chalk/ansi-regex?sponsor=1" + } + }, + "node_modules/npm/node_modules/wrap-ansi/node_modules/ansi-styles": { + "version": "6.2.1", + "dev": true, + "inBundle": true, + "license": "MIT", + "engines": { + "node": ">=12" + }, + "funding": { + "url": "https://github.com/chalk/ansi-styles?sponsor=1" + } + }, + "node_modules/npm/node_modules/wrap-ansi/node_modules/emoji-regex": { + "version": "9.2.2", + "dev": true, + "inBundle": true, + "license": "MIT" + }, + "node_modules/npm/node_modules/wrap-ansi/node_modules/string-width": { + "version": "5.1.2", + "dev": true, + "inBundle": 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/npm/node_modules/wrap-ansi/node_modules/strip-ansi": { + "version": "7.1.0", + "dev": true, + "inBundle": true, + "license": "MIT", + "dependencies": { + "ansi-regex": "^6.0.1" + }, + "engines": { + "node": ">=12" + }, + "funding": { + "url": "https://github.com/chalk/strip-ansi?sponsor=1" + } + }, + "node_modules/npm/node_modules/wrappy": { + "version": "1.0.2", + "dev": true, + "inBundle": true, + "license": "ISC" + }, + "node_modules/npm/node_modules/write-file-atomic": { + "version": "5.0.1", + "dev": true, + "inBundle": true, + "license": "ISC", + "dependencies": { + "imurmurhash": "^0.1.4", + "signal-exit": "^4.0.1" + }, + "engines": { + "node": "^14.17.0 || ^16.13.0 || >=18.0.0" + } + }, + "node_modules/npm/node_modules/yallist": { + "version": "4.0.0", + "dev": true, + "inBundle": true, + "license": "ISC" + }, "node_modules/once": { "version": "1.4.0", "resolved": "https://registry.npmjs.org/once/-/once-1.4.0.tgz", @@ -3009,6 +8481,42 @@ "url": "https://github.com/sponsors/sindresorhus" } }, + "node_modules/p-each-series": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/p-each-series/-/p-each-series-3.0.0.tgz", + "integrity": "sha512-lastgtAdoH9YaLyDa5i5z64q+kzOcQHsQ5SsZJD3q0VEyI8mq872S3geuNbRUQLVAE9siMfgKrpj7MloKFHruw==", + "dev": true, + "engines": { + "node": ">=12" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/p-filter": { + "version": "4.1.0", + "resolved": "https://registry.npmjs.org/p-filter/-/p-filter-4.1.0.tgz", + "integrity": "sha512-37/tPdZ3oJwHaS3gNJdenCDB3Tz26i9sjhnguBtvN0vYlRIiDNnvTWkuh+0hETV9rLPdJ3rlL3yVOYPIAnM8rw==", + "dev": true, + "dependencies": { + "p-map": "^7.0.1" + }, + "engines": { + "node": ">=18" + }, + "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", + "integrity": "sha512-Wo8VsW4IRQSKVXsJCn7TomUaVtyfjVDn3nUP7kE967BQk0CwFpdbZs0X0uk5sW9mkBa9eNM7hCMaG93WUAwxYQ==", + "dev": true, + "engines": { + "node": ">=8" + } + }, "node_modules/p-limit": { "version": "3.1.0", "resolved": "https://registry.npmjs.org/p-limit/-/p-limit-3.1.0.tgz", @@ -3051,6 +8559,27 @@ "url": "https://github.com/sponsors/sindresorhus" } }, + "node_modules/p-map": { + "version": "7.0.3", + "resolved": "https://registry.npmjs.org/p-map/-/p-map-7.0.3.tgz", + "integrity": "sha512-VkndIv2fIB99swvQoA65bm+fsmt6UNdGeIB0oxBs+WhAhdh08QA04JXpI7rbB9r08/nkbysKoya9rtDERYOYMA==", + "dev": true, + "engines": { + "node": ">=18" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/p-reduce": { + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/p-reduce/-/p-reduce-2.1.0.tgz", + "integrity": "sha512-2USApvnsutq8uoxZBGbbWM0JIYLiEMJ9RlaN7fAzVNb9OZN0SHjjTTfIcb667XynS5Y1VhwDJVDa72TnPzAYWw==", + "dev": true, + "engines": { + "node": ">=8" + } + }, "node_modules/p-try": { "version": "2.2.0", "resolved": "https://registry.npmjs.org/p-try/-/p-try-2.2.0.tgz", @@ -3060,6 +8589,18 @@ "node": ">=6" } }, + "node_modules/parent-module": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/parent-module/-/parent-module-1.0.1.tgz", + "integrity": "sha512-GQ2EWRpQV8/o+Aw8YqtfZZPfNRWZYkbidE9k5rpl/hC3vtHHBfGm2Ifi6qWV+coDGkrUKZAxE3Lot5kcsRlh+g==", + "dev": true, + "dependencies": { + "callsites": "^3.0.0" + }, + "engines": { + "node": ">=6" + } + }, "node_modules/parse-json": { "version": "5.2.0", "resolved": "https://registry.npmjs.org/parse-json/-/parse-json-5.2.0.tgz", @@ -3111,6 +8652,15 @@ "integrity": "sha512-LDJzPVEEEPR+y48z93A0Ed0yXb8pAByGWo/k5YYdYgpY2/2EsOsksJrq7lOHxryrVOn1ejG6oAp8ahvOIQD8sw==", "dev": true }, + "node_modules/path-type": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/path-type/-/path-type-4.0.0.tgz", + "integrity": "sha512-gDKb8aZMDeD/tZWs9P6+q0J9Mwkdl6xMV8TjnGP3qJVJ06bdMgkbBlLU8IdfOsIsFz2BW1rNVT3XuNEl8zPAvw==", + "dev": true, + "engines": { + "node": ">=8" + } + }, "node_modules/picocolors": { "version": "1.0.1", "resolved": "https://registry.npmjs.org/picocolors/-/picocolors-1.0.1.tgz", @@ -3129,6 +8679,15 @@ "url": "https://github.com/sponsors/jonschlinkert" } }, + "node_modules/pify": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/pify/-/pify-3.0.0.tgz", + "integrity": "sha512-C3FsVNH1udSEX48gGX1xfvwTWfsYWj5U+8/uK15BGzIGrKoUpghX8hWZwa/OFnakBiiVNmBvemTJR5mcy7iPcg==", + "dev": true, + "engines": { + "node": ">=4" + } + }, "node_modules/pirates": { "version": "4.0.6", "resolved": "https://registry.npmjs.org/pirates/-/pirates-4.0.6.tgz", @@ -3138,6 +8697,86 @@ "node": ">= 6" } }, + "node_modules/pkg-conf": { + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/pkg-conf/-/pkg-conf-2.1.0.tgz", + "integrity": "sha512-C+VUP+8jis7EsQZIhDYmS5qlNtjv2yP4SNtjXK9AP1ZcTRlnSfuumaTnRfYZnYgUUYVIKqL0fRvmUGDV2fmp6g==", + "dev": true, + "dependencies": { + "find-up": "^2.0.0", + "load-json-file": "^4.0.0" + }, + "engines": { + "node": ">=4" + } + }, + "node_modules/pkg-conf/node_modules/find-up": { + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/find-up/-/find-up-2.1.0.tgz", + "integrity": "sha512-NWzkk0jSJtTt08+FBFMvXoeZnOJD+jTtsRmBYbAIzJdX6l7dLgR7CTubCM5/eDdPUBvLCeVasP1brfVR/9/EZQ==", + "dev": true, + "dependencies": { + "locate-path": "^2.0.0" + }, + "engines": { + "node": ">=4" + } + }, + "node_modules/pkg-conf/node_modules/locate-path": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/locate-path/-/locate-path-2.0.0.tgz", + "integrity": "sha512-NCI2kiDkyR7VeEKm27Kda/iQHyKJe1Bu0FlTbYp3CqJu+9IFe9bLyAjMxf5ZDDbEg+iMPzB5zYyUTSm8wVTKmA==", + "dev": true, + "dependencies": { + "p-locate": "^2.0.0", + "path-exists": "^3.0.0" + }, + "engines": { + "node": ">=4" + } + }, + "node_modules/pkg-conf/node_modules/p-limit": { + "version": "1.3.0", + "resolved": "https://registry.npmjs.org/p-limit/-/p-limit-1.3.0.tgz", + "integrity": "sha512-vvcXsLAJ9Dr5rQOPk7toZQZJApBl2K4J6dANSsEuh6QI41JYcsS/qhTGa9ErIUUgK3WNQoJYvylxvjqmiqEA9Q==", + "dev": true, + "dependencies": { + "p-try": "^1.0.0" + }, + "engines": { + "node": ">=4" + } + }, + "node_modules/pkg-conf/node_modules/p-locate": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/p-locate/-/p-locate-2.0.0.tgz", + "integrity": "sha512-nQja7m7gSKuewoVRen45CtVfODR3crN3goVQ0DDZ9N3yHxgpkuBhZqsaiotSQRrADUrne346peY7kT3TSACykg==", + "dev": true, + "dependencies": { + "p-limit": "^1.1.0" + }, + "engines": { + "node": ">=4" + } + }, + "node_modules/pkg-conf/node_modules/p-try": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/p-try/-/p-try-1.0.0.tgz", + "integrity": "sha512-U1etNYuMJoIz3ZXSrrySFjsXQTWOx2/jdi86L+2pRvph/qMKL6sbcCYdH23fqsbm8TH2Gn0OybpT4eSFlCVHww==", + "dev": true, + "engines": { + "node": ">=4" + } + }, + "node_modules/pkg-conf/node_modules/path-exists": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/path-exists/-/path-exists-3.0.0.tgz", + "integrity": "sha512-bpC7GYwiDYQ4wYLe+FA8lhRjhQCMcQGuSgGGqDkg/QerRWw9CmGRT0iSOVRSZJ29NMLZgIzqaljJ63oaL4NIJQ==", + "dev": true, + "engines": { + "node": ">=4" + } + }, "node_modules/pkg-dir": { "version": "4.2.0", "resolved": "https://registry.npmjs.org/pkg-dir/-/pkg-dir-4.2.0.tgz", @@ -3176,6 +8815,12 @@ "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", + "integrity": "sha512-3ouUOpQhtgrbOa17J7+uxOTpITYWaGP7/AhoR3+A+/1e9skrzelGi/dXzEYyvbxubEF6Wn2ypscTKiKJFFn1ag==", + "dev": true + }, "node_modules/prompts": { "version": "2.4.2", "resolved": "https://registry.npmjs.org/prompts/-/prompts-2.4.2.tgz", @@ -3189,6 +8834,12 @@ "node": ">= 6" } }, + "node_modules/proto-list": { + "version": "1.2.4", + "resolved": "https://registry.npmjs.org/proto-list/-/proto-list-1.2.4.tgz", + "integrity": "sha512-vtK/94akxsTMhe0/cbfpR+syPuszcuwhqVjJq26CuNDgFGj682oRBXOP5MJpv2r7JtE8MsiepGIqvvOTBwn2vA==", + "dev": true + }, "node_modules/pure-rand": { "version": "6.1.0", "resolved": "https://registry.npmjs.org/pure-rand/-/pure-rand-6.1.0.tgz", @@ -3205,12 +8856,304 @@ } ] }, + "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": "4.0.1", + "resolved": "https://registry.npmjs.org/quick-lru/-/quick-lru-4.0.1.tgz", + "integrity": "sha512-ARhCpm70fzdcvNQfPoy49IaanKkTlRWF2JMzqhcJbhSFRZv7nPTvZJdcY7301IPmvW+/p0RgIWnQDLJxifsQ7g==", + "dev": true, + "engines": { + "node": ">=8" + } + }, + "node_modules/rc": { + "version": "1.2.8", + "resolved": "https://registry.npmjs.org/rc/-/rc-1.2.8.tgz", + "integrity": "sha512-y3bGgqKj3QBdxLbLkomlohkvsA8gdAiUQlSBJnBhfn+BPxg4bc62d8TcBW15wavDfgexCgccckhcZvywyQYPOw==", + "dev": true, + "dependencies": { + "deep-extend": "^0.6.0", + "ini": "~1.3.0", + "minimist": "^1.2.0", + "strip-json-comments": "~2.0.1" + }, + "bin": { + "rc": "cli.js" + } + }, + "node_modules/rc/node_modules/strip-json-comments": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/strip-json-comments/-/strip-json-comments-2.0.1.tgz", + "integrity": "sha512-4gB8na07fecVVkOI6Rs4e7T6NOTki5EmL7TUduTs6bu3EdnSycntVJ4re8kgZA+wx9IueI2Y11bfbgwtzuE0KQ==", + "dev": true, + "engines": { + "node": ">=0.10.0" + } + }, "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/read-pkg": { + "version": "8.1.0", + "resolved": "https://registry.npmjs.org/read-pkg/-/read-pkg-8.1.0.tgz", + "integrity": "sha512-PORM8AgzXeskHO/WEv312k9U03B8K9JSiWF/8N9sUuFjBa+9SF2u6K7VClzXwDXab51jCd8Nd36CNM+zR97ScQ==", + "dev": true, + "dependencies": { + "@types/normalize-package-data": "^2.4.1", + "normalize-package-data": "^6.0.0", + "parse-json": "^7.0.0", + "type-fest": "^4.2.0" + }, + "engines": { + "node": ">=16" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/read-pkg-up": { + "version": "10.1.0", + "resolved": "https://registry.npmjs.org/read-pkg-up/-/read-pkg-up-10.1.0.tgz", + "integrity": "sha512-aNtBq4jR8NawpKJQldrQcSW9y/d+KWH4v24HWkHljOZ7H0av+YTGANBzRh9A5pw7v/bLVsLVPpOhJ7gHNVy8lA==", + "dev": true, + "dependencies": { + "find-up": "^6.3.0", + "read-pkg": "^8.1.0", + "type-fest": "^4.2.0" + }, + "engines": { + "node": ">=16" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/read-pkg-up/node_modules/find-up": { + "version": "6.3.0", + "resolved": "https://registry.npmjs.org/find-up/-/find-up-6.3.0.tgz", + "integrity": "sha512-v2ZsoEuVHYy8ZIlYqwPe/39Cy+cFDzp4dXPaxNvkEuouymu+2Jbz0PxpKarJHYJTmv2HWT3O382qY8l4jMWthw==", + "dev": true, + "dependencies": { + "locate-path": "^7.1.0", + "path-exists": "^5.0.0" + }, + "engines": { + "node": "^12.20.0 || ^14.13.1 || >=16.0.0" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/read-pkg-up/node_modules/locate-path": { + "version": "7.2.0", + "resolved": "https://registry.npmjs.org/locate-path/-/locate-path-7.2.0.tgz", + "integrity": "sha512-gvVijfZvn7R+2qyPX8mAuKcFGDf6Nc61GdvGafQsHL0sBIxfKzA+usWn4GFC/bk+QdwPUD4kWFJLhElipq+0VA==", + "dev": true, + "dependencies": { + "p-locate": "^6.0.0" + }, + "engines": { + "node": "^12.20.0 || ^14.13.1 || >=16.0.0" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/read-pkg-up/node_modules/p-limit": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/p-limit/-/p-limit-4.0.0.tgz", + "integrity": "sha512-5b0R4txpzjPWVw/cXXUResoD4hb6U/x9BH08L7nw+GN1sezDzPdxeRvpc9c433fZhBan/wusjbCsqwqm4EIBIQ==", + "dev": true, + "dependencies": { + "yocto-queue": "^1.0.0" + }, + "engines": { + "node": "^12.20.0 || ^14.13.1 || >=16.0.0" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/read-pkg-up/node_modules/p-locate": { + "version": "6.0.0", + "resolved": "https://registry.npmjs.org/p-locate/-/p-locate-6.0.0.tgz", + "integrity": "sha512-wPrq66Llhl7/4AGC6I+cqxT07LhXvWL08LNXz1fENOw0Ap4sRZZ/gZpTTJ5jpurzzzfS2W/Ge9BY3LgLjCShcw==", + "dev": true, + "dependencies": { + "p-limit": "^4.0.0" + }, + "engines": { + "node": "^12.20.0 || ^14.13.1 || >=16.0.0" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/read-pkg-up/node_modules/path-exists": { + "version": "5.0.0", + "resolved": "https://registry.npmjs.org/path-exists/-/path-exists-5.0.0.tgz", + "integrity": "sha512-RjhtfwJOxzcFmNOi6ltcbcu4Iu+FL3zEj83dk4kAS+fVpTxXLO1b38RvJgT/0QwvV/L3aY9TAnyv0EOqW4GoMQ==", + "dev": true, + "engines": { + "node": "^12.20.0 || ^14.13.1 || >=16.0.0" + } + }, + "node_modules/read-pkg-up/node_modules/type-fest": { + "version": "4.41.0", + "resolved": "https://registry.npmjs.org/type-fest/-/type-fest-4.41.0.tgz", + "integrity": "sha512-TeTSQ6H5YHvpqVwBRcnLDCBnDOHWYu7IvGbHT6N8AOymcr9PJGjc1GTtiWZTYg0NCgYwvnYWEkVChQAr9bjfwA==", + "dev": true, + "engines": { + "node": ">=16" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/read-pkg-up/node_modules/yocto-queue": { + "version": "1.2.1", + "resolved": "https://registry.npmjs.org/yocto-queue/-/yocto-queue-1.2.1.tgz", + "integrity": "sha512-AyeEbWOu/TAXdxlV9wmGcR0+yh2j3vYPGOECcIj2S7MkrLyC7ne+oye2BKTItt0ii2PHk4cDy+95+LshzbXnGg==", + "dev": true, + "engines": { + "node": ">=12.20" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/read-pkg/node_modules/json-parse-even-better-errors": { + "version": "3.0.2", + "resolved": "https://registry.npmjs.org/json-parse-even-better-errors/-/json-parse-even-better-errors-3.0.2.tgz", + "integrity": "sha512-fi0NG4bPjCHunUJffmLd0gxssIgkNmArMvis4iNah6Owg1MCJjWhEcDLmsK6iGkJq3tHwbDkTlce70/tmXN4cQ==", + "dev": true, + "engines": { + "node": "^14.17.0 || ^16.13.0 || >=18.0.0" + } + }, + "node_modules/read-pkg/node_modules/lines-and-columns": { + "version": "2.0.4", + "resolved": "https://registry.npmjs.org/lines-and-columns/-/lines-and-columns-2.0.4.tgz", + "integrity": "sha512-wM1+Z03eypVAVUCE7QdSqpVIvelbOakn1M0bPDoA4SGWPx3sNDVUiMo3L6To6WWGClB7VyXnhQ4Sn7gxiJbE6A==", + "dev": true, + "engines": { + "node": "^12.20.0 || ^14.13.1 || >=16.0.0" + } + }, + "node_modules/read-pkg/node_modules/parse-json": { + "version": "7.1.1", + "resolved": "https://registry.npmjs.org/parse-json/-/parse-json-7.1.1.tgz", + "integrity": "sha512-SgOTCX/EZXtZxBE5eJ97P4yGM5n37BwRU+YMsH4vNzFqJV/oWFXXCmwFlgWUM4PrakybVOueJJ6pwHqSVhTFDw==", + "dev": true, + "dependencies": { + "@babel/code-frame": "^7.21.4", + "error-ex": "^1.3.2", + "json-parse-even-better-errors": "^3.0.0", + "lines-and-columns": "^2.0.3", + "type-fest": "^3.8.0" + }, + "engines": { + "node": ">=16" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/read-pkg/node_modules/parse-json/node_modules/type-fest": { + "version": "3.13.1", + "resolved": "https://registry.npmjs.org/type-fest/-/type-fest-3.13.1.tgz", + "integrity": "sha512-tLq3bSNx+xSpwvAJnzrK0Ep5CLNWjvFTOp71URMaAEWBfRb9nnJiBoUe0tF8bI4ZFO3omgBR6NvnbzVUT3Ly4g==", + "dev": true, + "engines": { + "node": ">=14.16" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/read-pkg/node_modules/type-fest": { + "version": "4.41.0", + "resolved": "https://registry.npmjs.org/type-fest/-/type-fest-4.41.0.tgz", + "integrity": "sha512-TeTSQ6H5YHvpqVwBRcnLDCBnDOHWYu7IvGbHT6N8AOymcr9PJGjc1GTtiWZTYg0NCgYwvnYWEkVChQAr9bjfwA==", + "dev": true, + "engines": { + "node": ">=16" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/readable-stream": { + "version": "2.3.8", + "resolved": "https://registry.npmjs.org/readable-stream/-/readable-stream-2.3.8.tgz", + "integrity": "sha512-8p0AUk4XODgIewSi0l8Epjs+EVnWiK7NoDIEGU0HhE7+ZyY8D1IMY7odu5lRrFXGg71L15KG8QrPmum45RTtdA==", + "dev": true, + "dependencies": { + "core-util-is": "~1.0.0", + "inherits": "~2.0.3", + "isarray": "~1.0.0", + "process-nextick-args": "~2.0.0", + "safe-buffer": "~5.1.1", + "string_decoder": "~1.1.1", + "util-deprecate": "~1.0.1" + } + }, + "node_modules/redent": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/redent/-/redent-3.0.0.tgz", + "integrity": "sha512-6tDA8g98We0zd0GvVeMT9arEOnTw9qM03L9cJXaCjrip1OO764RDBLBfrB4cwzNGDj5OA5ioymC9GkizgWJDUg==", + "dev": true, + "dependencies": { + "indent-string": "^4.0.0", + "strip-indent": "^3.0.0" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/redeyed": { + "version": "2.1.1", + "resolved": "https://registry.npmjs.org/redeyed/-/redeyed-2.1.1.tgz", + "integrity": "sha512-FNpGGo1DycYAdnrKFxCMmKYgo/mILAqtRYbkdQD8Ep/Hk2PQ5+aEAEx+IU713RTDmuBaH0c8P5ZozurNu5ObRQ==", + "dev": true, + "dependencies": { + "esprima": "~4.0.0" + } + }, + "node_modules/registry-auth-token": { + "version": "5.1.0", + "resolved": "https://registry.npmjs.org/registry-auth-token/-/registry-auth-token-5.1.0.tgz", + "integrity": "sha512-GdekYuwLXLxMuFTwAPg5UKGLW/UXzQrZvH/Zj791BQif5T05T0RsaLfHc9q3ZOKi7n+BoprPD9mJ0O0k4xzUlw==", + "dev": true, + "dependencies": { + "@pnpm/npm-conf": "^2.1.0" + }, + "engines": { + "node": ">=14" + } + }, "node_modules/require-directory": { "version": "2.1.1", "resolved": "https://registry.npmjs.org/require-directory/-/require-directory-2.1.1.tgz", @@ -3267,6 +9210,309 @@ "node": ">=10" } }, + "node_modules/reusify": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/reusify/-/reusify-1.1.0.tgz", + "integrity": "sha512-g6QUff04oZpHs0eG5p83rFLhHeV00ug/Yf9nZM6fLeUrPguBTkTQOdpAWWspMh55TZfVQDPaN3NQJfbVRAxdIw==", + "dev": true, + "engines": { + "iojs": ">=1.0.0", + "node": ">=0.10.0" + } + }, + "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.1.2", + "resolved": "https://registry.npmjs.org/safe-buffer/-/safe-buffer-5.1.2.tgz", + "integrity": "sha512-Gd2UZBJDkXlY7GbJxfsE8/nvKkUEU1G38c1siN6QP6a9PT9MmHB8GnpscSmMJSoF8LOIrt8ud/wPtojys4G6+g==", + "dev": true + }, + "node_modules/semantic-release": { + "version": "21.1.2", + "resolved": "https://registry.npmjs.org/semantic-release/-/semantic-release-21.1.2.tgz", + "integrity": "sha512-kz76azHrT8+VEkQjoCBHE06JNQgTgsC4bT8XfCzb7DHcsk9vG3fqeMVik8h5rcWCYi2Fd+M3bwA7BG8Z8cRwtA==", + "dev": true, + "dependencies": { + "@semantic-release/commit-analyzer": "^10.0.0", + "@semantic-release/error": "^4.0.0", + "@semantic-release/github": "^9.0.0", + "@semantic-release/npm": "^10.0.2", + "@semantic-release/release-notes-generator": "^11.0.0", + "aggregate-error": "^5.0.0", + "cosmiconfig": "^8.0.0", + "debug": "^4.0.0", + "env-ci": "^9.0.0", + "execa": "^8.0.0", + "figures": "^5.0.0", + "find-versions": "^5.1.0", + "get-stream": "^6.0.0", + "git-log-parser": "^1.2.0", + "hook-std": "^3.0.0", + "hosted-git-info": "^7.0.0", + "lodash-es": "^4.17.21", + "marked": "^5.0.0", + "marked-terminal": "^5.1.1", + "micromatch": "^4.0.2", + "p-each-series": "^3.0.0", + "p-reduce": "^3.0.0", + "read-pkg-up": "^10.0.0", + "resolve-from": "^5.0.0", + "semver": "^7.3.2", + "semver-diff": "^4.0.0", + "signale": "^1.2.1", + "yargs": "^17.5.1" + }, + "bin": { + "semantic-release": "bin/semantic-release.js" + }, + "engines": { + "node": ">=18" + } + }, + "node_modules/semantic-release/node_modules/@semantic-release/error": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/@semantic-release/error/-/error-4.0.0.tgz", + "integrity": "sha512-mgdxrHTLOjOddRVYIYDo0fR3/v61GNN1YGkfbrjuIKg/uMgCd+Qzo3UAXJ+woLQQpos4pl5Esuw5A7AoNlzjUQ==", + "dev": true, + "engines": { + "node": ">=18" + } + }, + "node_modules/semantic-release/node_modules/aggregate-error": { + "version": "5.0.0", + "resolved": "https://registry.npmjs.org/aggregate-error/-/aggregate-error-5.0.0.tgz", + "integrity": "sha512-gOsf2YwSlleG6IjRYG2A7k0HmBMEo6qVNk9Bp/EaLgAJT5ngH6PXbqa4ItvnEwCm/velL5jAnQgsHsWnjhGmvw==", + "dev": true, + "dependencies": { + "clean-stack": "^5.2.0", + "indent-string": "^5.0.0" + }, + "engines": { + "node": ">=18" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/semantic-release/node_modules/clean-stack": { + "version": "5.2.0", + "resolved": "https://registry.npmjs.org/clean-stack/-/clean-stack-5.2.0.tgz", + "integrity": "sha512-TyUIUJgdFnCISzG5zu3291TAsE77ddchd0bepon1VVQrKLGKFED4iXFEDQ24mIPdPBbyE16PK3F8MYE1CmcBEQ==", + "dev": true, + "dependencies": { + "escape-string-regexp": "5.0.0" + }, + "engines": { + "node": ">=14.16" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/semantic-release/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/semantic-release/node_modules/execa": { + "version": "8.0.1", + "resolved": "https://registry.npmjs.org/execa/-/execa-8.0.1.tgz", + "integrity": "sha512-VyhnebXciFV2DESc+p6B+y0LjSm0krU4OgJN44qFAhBY0TJ+1V61tYD2+wHusZ6F9n5K+vl8k0sTy7PEfV4qpg==", + "dev": true, + "dependencies": { + "cross-spawn": "^7.0.3", + "get-stream": "^8.0.1", + "human-signals": "^5.0.0", + "is-stream": "^3.0.0", + "merge-stream": "^2.0.0", + "npm-run-path": "^5.1.0", + "onetime": "^6.0.0", + "signal-exit": "^4.1.0", + "strip-final-newline": "^3.0.0" + }, + "engines": { + "node": ">=16.17" + }, + "funding": { + "url": "https://github.com/sindresorhus/execa?sponsor=1" + } + }, + "node_modules/semantic-release/node_modules/execa/node_modules/get-stream": { + "version": "8.0.1", + "resolved": "https://registry.npmjs.org/get-stream/-/get-stream-8.0.1.tgz", + "integrity": "sha512-VaUJspBffn/LMCJVoMvSAdmscJyS1auj5Zulnn5UoYcY531UWmdwhRWkcGKnGU93m5HSXP9LP2usOryrBtQowA==", + "dev": true, + "engines": { + "node": ">=16" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/semantic-release/node_modules/human-signals": { + "version": "5.0.0", + "resolved": "https://registry.npmjs.org/human-signals/-/human-signals-5.0.0.tgz", + "integrity": "sha512-AXcZb6vzzrFAUE61HnN4mpLqd/cSIwNQjtNWR0euPm6y0iqx3G4gOXaIDdtdDwZmhwe82LA6+zinmW4UBWVePQ==", + "dev": true, + "engines": { + "node": ">=16.17.0" + } + }, + "node_modules/semantic-release/node_modules/indent-string": { + "version": "5.0.0", + "resolved": "https://registry.npmjs.org/indent-string/-/indent-string-5.0.0.tgz", + "integrity": "sha512-m6FAo/spmsW2Ab2fU35JTYwtOKa2yAwXSwgjSv1TJzh4Mh7mC3lzAOVLBprb72XsTrgkEIsl7YrFNAiDiRhIGg==", + "dev": true, + "engines": { + "node": ">=12" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/semantic-release/node_modules/is-stream": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/is-stream/-/is-stream-3.0.0.tgz", + "integrity": "sha512-LnQR4bZ9IADDRSkvpqMGvt/tEJWclzklNgSw48V5EAaAeDd6qGvN8ei6k5p0tvxSR171VmGyHuTiAOfxAbr8kA==", + "dev": true, + "engines": { + "node": "^12.20.0 || ^14.13.1 || >=16.0.0" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/semantic-release/node_modules/mimic-fn": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/mimic-fn/-/mimic-fn-4.0.0.tgz", + "integrity": "sha512-vqiC06CuhBTUdZH+RYl8sFrL096vA45Ok5ISO6sE/Mr1jRbGH4Csnhi8f3wKVl7x8mO4Au7Ir9D3Oyv1VYMFJw==", + "dev": true, + "engines": { + "node": ">=12" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/semantic-release/node_modules/npm-run-path": { + "version": "5.3.0", + "resolved": "https://registry.npmjs.org/npm-run-path/-/npm-run-path-5.3.0.tgz", + "integrity": "sha512-ppwTtiJZq0O/ai0z7yfudtBpWIoxM8yE6nHi1X47eFR2EWORqfbu6CnPlNsjeN683eT0qG6H/Pyf9fCcvjnnnQ==", + "dev": true, + "dependencies": { + "path-key": "^4.0.0" + }, + "engines": { + "node": "^12.20.0 || ^14.13.1 || >=16.0.0" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/semantic-release/node_modules/onetime": { + "version": "6.0.0", + "resolved": "https://registry.npmjs.org/onetime/-/onetime-6.0.0.tgz", + "integrity": "sha512-1FlR+gjXK7X+AsAHso35MnyN5KqGwJRi/31ft6x0M194ht7S+rWAvd7PHss9xSKMzE0asv1pyIHaJYq+BbacAQ==", + "dev": true, + "dependencies": { + "mimic-fn": "^4.0.0" + }, + "engines": { + "node": ">=12" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/semantic-release/node_modules/p-reduce": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/p-reduce/-/p-reduce-3.0.0.tgz", + "integrity": "sha512-xsrIUgI0Kn6iyDYm9StOpOeK29XM1aboGji26+QEortiFST1hGZaUQOLhtEbqHErPpGW/aSz6allwK2qcptp0Q==", + "dev": true, + "engines": { + "node": ">=12" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/semantic-release/node_modules/path-key": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/path-key/-/path-key-4.0.0.tgz", + "integrity": "sha512-haREypq7xkM7ErfgIyA0z+Bj4AGKlMSdlQE2jvJo6huWD1EdkKYV+G/T4nq0YEF2vgTT8kqMFKo1uHn950r4SQ==", + "dev": true, + "engines": { + "node": ">=12" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/semantic-release/node_modules/semver": { + "version": "7.7.2", + "resolved": "https://registry.npmjs.org/semver/-/semver-7.7.2.tgz", + "integrity": "sha512-RF0Fw+rO5AMf9MAyaRXI4AV0Ulj5lMHqVxxdSgiVbixSCXoEmmX/jk0CuJw4+3SqroYO9VoUh+HcuJivvtJemA==", + "dev": true, + "bin": { + "semver": "bin/semver.js" + }, + "engines": { + "node": ">=10" + } + }, + "node_modules/semantic-release/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/semantic-release/node_modules/strip-final-newline": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/strip-final-newline/-/strip-final-newline-3.0.0.tgz", + "integrity": "sha512-dOESqjYr96iWYylGObzd39EuNTa5VJxyvVAEm5Jnh7KGo75V43Hk1odPQkNDyXNmUR6k+gEiDVXnjB8HJ3crXw==", + "dev": true, + "engines": { + "node": ">=12" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, "node_modules/semver": { "version": "6.3.1", "resolved": "https://registry.npmjs.org/semver/-/semver-6.3.1.tgz", @@ -3276,6 +9522,45 @@ "semver": "bin/semver.js" } }, + "node_modules/semver-diff": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/semver-diff/-/semver-diff-4.0.0.tgz", + "integrity": "sha512-0Ju4+6A8iOnpL/Thra7dZsSlOHYAHIeMxfhWQRI1/VLcT3WDBZKKtQt/QkBOsiIN9ZpuvHE6cGZ0x4glCMmfiA==", + "dev": true, + "dependencies": { + "semver": "^7.3.5" + }, + "engines": { + "node": ">=12" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/semver-diff/node_modules/semver": { + "version": "7.7.2", + "resolved": "https://registry.npmjs.org/semver/-/semver-7.7.2.tgz", + "integrity": "sha512-RF0Fw+rO5AMf9MAyaRXI4AV0Ulj5lMHqVxxdSgiVbixSCXoEmmX/jk0CuJw4+3SqroYO9VoUh+HcuJivvtJemA==", + "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/shebang-command": { "version": "2.0.0", "resolved": "https://registry.npmjs.org/shebang-command/-/shebang-command-2.0.0.tgz", @@ -3303,6 +9588,103 @@ "integrity": "sha512-wnD2ZE+l+SPC/uoS0vXeE9L1+0wuaMqKlfz9AMUo38JsyLSBWSFcHR1Rri62LZc12vLr1gb3jl7iwQhgwpAbGQ==", "dev": true }, + "node_modules/signale": { + "version": "1.4.0", + "resolved": "https://registry.npmjs.org/signale/-/signale-1.4.0.tgz", + "integrity": "sha512-iuh+gPf28RkltuJC7W5MRi6XAjTDCAPC/prJUpQoG4vIP3MJZ+GTydVnodXA7pwvTKb2cA0m9OFZW/cdWy/I/w==", + "dev": true, + "dependencies": { + "chalk": "^2.3.2", + "figures": "^2.0.0", + "pkg-conf": "^2.1.0" + }, + "engines": { + "node": ">=6" + } + }, + "node_modules/signale/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/signale/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/signale/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/signale/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/signale/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/signale/node_modules/figures": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/figures/-/figures-2.0.0.tgz", + "integrity": "sha512-Oa2M9atig69ZkfwiApY8F2Yy+tzMbazyvqv21R0NsSC8floSOC09BbT1ITWAdoMGQvJ/aZnR1KMwdx9tvHnTNA==", + "dev": true, + "dependencies": { + "escape-string-regexp": "^1.0.5" + }, + "engines": { + "node": ">=4" + } + }, + "node_modules/signale/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/signale/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/sisteransi": { "version": "1.0.5", "resolved": "https://registry.npmjs.org/sisteransi/-/sisteransi-1.0.5.tgz", @@ -3337,6 +9719,65 @@ "source-map": "^0.6.0" } }, + "node_modules/spawn-error-forwarder": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/spawn-error-forwarder/-/spawn-error-forwarder-1.0.0.tgz", + "integrity": "sha512-gRjMgK5uFjbCvdibeGJuy3I5OYz6VLoVdsOJdA6wV0WlfQVLFueoqMxwwYD9RODdgb6oUIvlRlsyFSiQkMKu0g==", + "dev": true + }, + "node_modules/spdx-correct": { + "version": "3.2.0", + "resolved": "https://registry.npmjs.org/spdx-correct/-/spdx-correct-3.2.0.tgz", + "integrity": "sha512-kN9dJbvnySHULIluDHy32WHRUu3Og7B9sbY7tsFLctQkIqnMh3hErYgdMjTYuqmcXX+lK5T1lnUt3G7zNswmZA==", + "dev": true, + "dependencies": { + "spdx-expression-parse": "^3.0.0", + "spdx-license-ids": "^3.0.0" + } + }, + "node_modules/spdx-exceptions": { + "version": "2.5.0", + "resolved": "https://registry.npmjs.org/spdx-exceptions/-/spdx-exceptions-2.5.0.tgz", + "integrity": "sha512-PiU42r+xO4UbUS1buo3LPJkjlO7430Xn5SVAhdpzzsPHsjbYVflnnFdATgabnLude+Cqu25p6N+g2lw/PFsa4w==", + "dev": true + }, + "node_modules/spdx-expression-parse": { + "version": "3.0.1", + "resolved": "https://registry.npmjs.org/spdx-expression-parse/-/spdx-expression-parse-3.0.1.tgz", + "integrity": "sha512-cbqHunsQWnJNE6KhVSMsMeH5H/L9EpymbzqTQ3uLwNCLZ1Q481oWaofqH7nO6V07xlXwY6PhQdQ2IedWx/ZK4Q==", + "dev": true, + "dependencies": { + "spdx-exceptions": "^2.1.0", + "spdx-license-ids": "^3.0.0" + } + }, + "node_modules/spdx-license-ids": { + "version": "3.0.21", + "resolved": "https://registry.npmjs.org/spdx-license-ids/-/spdx-license-ids-3.0.21.tgz", + "integrity": "sha512-Bvg/8F5XephndSK3JffaRqdT+gyhfqIPwDHpX80tJrF8QQRYMo8sNMeaZ2Dp5+jhwKnUmIOyFFQfHRkjJm5nXg==", + "dev": true + }, + "node_modules/split": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/split/-/split-1.0.1.tgz", + "integrity": "sha512-mTyOoPbrivtXnwnIxZRFYRrPNtEFKlpB2fvjSnCQUiAA6qAZzqwna5envK4uk6OIeP17CsdF3rSBGYVBsU0Tkg==", + "dev": true, + "dependencies": { + "through": "2" + }, + "engines": { + "node": "*" + } + }, + "node_modules/split2": { + "version": "4.2.0", + "resolved": "https://registry.npmjs.org/split2/-/split2-4.2.0.tgz", + "integrity": "sha512-UcjcJOWknrNkF6PLX83qcHM6KHgVKNkV62Y8a5uYDVv9ydGQVwAHMKqHdJje1VTWpljG0WYpCDhrCdAOYH4TWg==", + "dev": true, + "engines": { + "node": ">= 10.x" + } + }, "node_modules/sprintf-js": { "version": "1.0.3", "resolved": "https://registry.npmjs.org/sprintf-js/-/sprintf-js-1.0.3.tgz", @@ -3355,6 +9796,25 @@ "node": ">=10" } }, + "node_modules/stream-combiner2": { + "version": "1.1.1", + "resolved": "https://registry.npmjs.org/stream-combiner2/-/stream-combiner2-1.1.1.tgz", + "integrity": "sha512-3PnJbYgS56AeWgtKF5jtJRT6uFJe56Z0Hc5Ngg/6sI6rIt8iiMBTa9cvdyFfpMQjaVHr8dusbNeFGIIonxOvKw==", + "dev": true, + "dependencies": { + "duplexer2": "~0.1.0", + "readable-stream": "^2.0.2" + } + }, + "node_modules/string_decoder": { + "version": "1.1.1", + "resolved": "https://registry.npmjs.org/string_decoder/-/string_decoder-1.1.1.tgz", + "integrity": "sha512-n/ShnvDi6FHbbVfviro+WojiFzv+s8MPMHBczVePfUpDJLwoLT0ht1l4YwBCbi8pJAveEEdnkHyPyTP/mzRfwg==", + "dev": true, + "dependencies": { + "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", @@ -3412,6 +9872,18 @@ "node": ">=6" } }, + "node_modules/strip-indent": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/strip-indent/-/strip-indent-3.0.0.tgz", + "integrity": "sha512-laJTa3Jb+VQpaC6DseHhF7dXVqHTfJPCRDaEbid/drOhgitgYku/letMUqOXFoWV0zIIUbjpdH2t+tYj4bQMRQ==", + "dev": true, + "dependencies": { + "min-indent": "^1.0.0" + }, + "engines": { + "node": ">=8" + } + }, "node_modules/strip-json-comments": { "version": "3.1.1", "resolved": "https://registry.npmjs.org/strip-json-comments/-/strip-json-comments-3.1.1.tgz", @@ -3436,6 +9908,19 @@ "node": ">=8" } }, + "node_modules/supports-hyperlinks": { + "version": "2.3.0", + "resolved": "https://registry.npmjs.org/supports-hyperlinks/-/supports-hyperlinks-2.3.0.tgz", + "integrity": "sha512-RpsAZlpWcDwOPQA22aCH4J0t7L8JmAvsCxfOSEwm7cQs3LshN36QaTkwd70DnBOXDWGssw2eUoc8CaRWT0XunA==", + "dev": true, + "dependencies": { + "has-flag": "^4.0.0", + "supports-color": "^7.0.0" + }, + "engines": { + "node": ">=8" + } + }, "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", @@ -3448,6 +9933,57 @@ "url": "https://github.com/sponsors/ljharb" } }, + "node_modules/temp-dir": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/temp-dir/-/temp-dir-3.0.0.tgz", + "integrity": "sha512-nHc6S/bwIilKHNRgK/3jlhDoIHcp45YgyiwcAk46Tr0LfEqGBVpmiAyuiuxeVE44m3mXnEeVhaipLOEWmH+Njw==", + "dev": true, + "engines": { + "node": ">=14.16" + } + }, + "node_modules/tempy": { + "version": "3.1.0", + "resolved": "https://registry.npmjs.org/tempy/-/tempy-3.1.0.tgz", + "integrity": "sha512-7jDLIdD2Zp0bDe5r3D2qtkd1QOCacylBuL7oa4udvN6v2pqr4+LcCr67C8DR1zkpaZ8XosF5m1yQSabKAW6f2g==", + "dev": true, + "dependencies": { + "is-stream": "^3.0.0", + "temp-dir": "^3.0.0", + "type-fest": "^2.12.2", + "unique-string": "^3.0.0" + }, + "engines": { + "node": ">=14.16" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/tempy/node_modules/is-stream": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/is-stream/-/is-stream-3.0.0.tgz", + "integrity": "sha512-LnQR4bZ9IADDRSkvpqMGvt/tEJWclzklNgSw48V5EAaAeDd6qGvN8ei6k5p0tvxSR171VmGyHuTiAOfxAbr8kA==", + "dev": true, + "engines": { + "node": "^12.20.0 || ^14.13.1 || >=16.0.0" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/tempy/node_modules/type-fest": { + "version": "2.19.0", + "resolved": "https://registry.npmjs.org/type-fest/-/type-fest-2.19.0.tgz", + "integrity": "sha512-RAH822pAdBgcNMAfWnCBU3CFZcfZ/i1eZjwFU/dsLKumyuuP3niueg2UAukXYF0E2AAoc82ZSSf9J0WQBinzHA==", + "dev": true, + "engines": { + "node": ">=12.20" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, "node_modules/test-exclude": { "version": "6.0.0", "resolved": "https://registry.npmjs.org/test-exclude/-/test-exclude-6.0.0.tgz", @@ -3462,6 +9998,34 @@ "node": ">=8" } }, + "node_modules/text-extensions": { + "version": "2.4.0", + "resolved": "https://registry.npmjs.org/text-extensions/-/text-extensions-2.4.0.tgz", + "integrity": "sha512-te/NtwBwfiNRLf9Ijqx3T0nlqZiQ2XrrtBvu+cLL8ZRrGkO0NHTug8MYFKyoSrv/sHTaSKfilUkizV6XhxMJ3g==", + "dev": true, + "engines": { + "node": ">=8" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/through": { + "version": "2.3.8", + "resolved": "https://registry.npmjs.org/through/-/through-2.3.8.tgz", + "integrity": "sha512-w89qg7PI8wAdvX60bMDP+bFoD5Dvhm9oLheFp5O4a2QF0cSBGsBX4qZmadPMvVqlLJBBci+WqGGOAPvcDeNSVg==", + "dev": true + }, + "node_modules/through2": { + "version": "2.0.5", + "resolved": "https://registry.npmjs.org/through2/-/through2-2.0.5.tgz", + "integrity": "sha512-/mrRod8xqpA+IHSLyGCQ2s8SPHiCDEeQJSep1jqLYeEUClOFG2Qsh+4FU6G9VeqpZnGW/Su8LQGc4YKni5rYSQ==", + "dev": true, + "dependencies": { + "readable-stream": "~2.3.6", + "xtend": "~4.0.1" + } + }, "node_modules/tmpl": { "version": "1.0.5", "resolved": "https://registry.npmjs.org/tmpl/-/tmpl-1.0.5.tgz", @@ -3489,6 +10053,27 @@ "node": ">=8.0" } }, + "node_modules/traverse": { + "version": "0.6.8", + "resolved": "https://registry.npmjs.org/traverse/-/traverse-0.6.8.tgz", + "integrity": "sha512-aXJDbk6SnumuaZSANd21XAo15ucCDE38H4fkqiGsc3MhCK+wOlZvLP9cB/TvpHT0mOyWgC4Z8EwRlzqYSUzdsA==", + "dev": true, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/trim-newlines": { + "version": "3.0.1", + "resolved": "https://registry.npmjs.org/trim-newlines/-/trim-newlines-3.0.1.tgz", + "integrity": "sha512-c1PTsA3tYrIsLGkJkzHF+w9F2EyxfXGo4UyJc4pFL++FMjnq0HJS69T3M7d//gKrFKwy429bouPescbjecU+Zw==", + "dev": true, + "engines": { + "node": ">=8" + } + }, "node_modules/ts-jest": { "version": "29.2.3", "resolved": "https://registry.npmjs.org/ts-jest/-/ts-jest-29.2.3.tgz", @@ -3627,12 +10212,67 @@ "node": ">=14.17" } }, + "node_modules/uglify-js": { + "version": "3.19.3", + "resolved": "https://registry.npmjs.org/uglify-js/-/uglify-js-3.19.3.tgz", + "integrity": "sha512-v3Xu+yuwBXisp6QYTcH4UbH+xYJXqnq2m/LtQVWKWzYc1iehYnLixoQDN9FH6/j9/oybfd6W9Ghwkl8+UMKTKQ==", + "dev": true, + "optional": true, + "bin": { + "uglifyjs": "bin/uglifyjs" + }, + "engines": { + "node": ">=0.8.0" + } + }, "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/unicorn-magic": { + "version": "0.3.0", + "resolved": "https://registry.npmjs.org/unicorn-magic/-/unicorn-magic-0.3.0.tgz", + "integrity": "sha512-+QBBXBCvifc56fsbuxZQ6Sic3wqqc3WWaqxs58gvJrcOuN83HGTCwz3oS5phzU9LthRNE9VrJCFCLUgHeeFnfA==", + "dev": true, + "engines": { + "node": ">=18" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/unique-string": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/unique-string/-/unique-string-3.0.0.tgz", + "integrity": "sha512-VGXBUVwxKMBUznyffQweQABPRRW1vHZAbadFZud4pLFAqRGvv/96vafgjWFqzourzr8YonlQiPgH0YCJfawoGQ==", + "dev": true, + "dependencies": { + "crypto-random-string": "^4.0.0" + }, + "engines": { + "node": ">=12" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/universal-user-agent": { + "version": "6.0.1", + "resolved": "https://registry.npmjs.org/universal-user-agent/-/universal-user-agent-6.0.1.tgz", + "integrity": "sha512-yCzhz6FN2wU1NiiQRogkTQszlQSlpWaw8SvVegAc+bDxbzHgh1vX8uIe8OYyMH6DwH+sdTJsgMl36+mSMdRJIQ==", + "dev": true + }, + "node_modules/universalify": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/universalify/-/universalify-2.0.1.tgz", + "integrity": "sha512-gptHNQghINnc/vTGIk0SOFGFNXw7JVrlRUtConJRlvaw6DuX0wO5Jeko9sWrMBhh+PsYAZ7oXAiOnf/UKogyiw==", + "dev": true, + "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", @@ -3663,6 +10303,21 @@ "browserslist": ">= 4.21.0" } }, + "node_modules/url-join": { + "version": "5.0.0", + "resolved": "https://registry.npmjs.org/url-join/-/url-join-5.0.0.tgz", + "integrity": "sha512-n2huDr9h9yzd6exQVnH/jU5mr+Pfx08LRXXZhkLLetAMESRj+anQsTAh940iMrIetKAmry9coFuZQ2jY8/p3WA==", + "dev": true, + "engines": { + "node": "^12.20.0 || ^14.13.1 || >=16.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/v8-compile-cache-lib": { "version": "3.0.1", "resolved": "https://registry.npmjs.org/v8-compile-cache-lib/-/v8-compile-cache-lib-3.0.1.tgz", @@ -3683,6 +10338,16 @@ "node": ">=10.12.0" } }, + "node_modules/validate-npm-package-license": { + "version": "3.0.4", + "resolved": "https://registry.npmjs.org/validate-npm-package-license/-/validate-npm-package-license-3.0.4.tgz", + "integrity": "sha512-DpKm2Ui/xN7/HQKCtpZxoRWBhZ9Z0kqtygG8XCgNQ8ZlDnxuQmWhj566j8fN4Cu3/JmbhsDo7fcAJq4s9h27Ew==", + "dev": true, + "dependencies": { + "spdx-correct": "^3.0.0", + "spdx-expression-parse": "^3.0.0" + } + }, "node_modules/walker": { "version": "1.0.8", "resolved": "https://registry.npmjs.org/walker/-/walker-1.0.8.tgz", @@ -3707,6 +10372,12 @@ "node": ">= 8" } }, + "node_modules/wordwrap": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/wordwrap/-/wordwrap-1.0.0.tgz", + "integrity": "sha512-gvVzJFlPycKc5dZN4yPkP8w7Dc37BtP1yczEneOb4uq34pXZcvrtRTmWV8W+Ume+XCxKgbjM+nevkyFPMybd4Q==", + "dev": true + }, "node_modules/wrap-ansi": { "version": "7.0.0", "resolved": "https://registry.npmjs.org/wrap-ansi/-/wrap-ansi-7.0.0.tgz", @@ -3743,6 +10414,15 @@ "node": "^12.13.0 || ^14.15.0 || >=16.0.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==", + "dev": true, + "engines": { + "node": ">=0.4" + } + }, "node_modules/y18n": { "version": "5.0.8", "resolved": "https://registry.npmjs.org/y18n/-/y18n-5.0.8.tgz", diff --git a/packages/config-yaml/package.json b/packages/config-yaml/package.json index 07bd240ef..d7de62fdf 100644 --- a/packages/config-yaml/package.json +++ b/packages/config-yaml/package.json @@ -34,6 +34,11 @@ "jest": "^29.7.0", "ts-jest": "^29.2.3", "ts-node": "^10.9.2", - "zod-to-json-schema": "^3.24.5" + "zod-to-json-schema": "^3.24.5", + "@semantic-release/changelog": "^6.0.3", + "@semantic-release/git": "^10.0.1", + "@semantic-release/github": "^9.2.6", + "@semantic-release/npm": "^10.0.6", + "semantic-release": "^21.1.2" } } diff --git a/packages/config-yaml/release.config.js b/packages/config-yaml/release.config.js index f31fcb905..bbbc60919 100644 --- a/packages/config-yaml/release.config.js +++ b/packages/config-yaml/release.config.js @@ -3,7 +3,16 @@ export default { plugins: [ "@semantic-release/commit-analyzer", "@semantic-release/release-notes-generator", + "@semantic-release/changelog", "@semantic-release/npm", + [ + "@semantic-release/git", + { + assets: ["CHANGELOG.md", "package.json"], + message: + "chore(release): ${nextRelease.version} [skip ci]\n\n${nextRelease.notes}", + }, + ], "@semantic-release/github", ], }; From 68c11cd93caac4915192d4563d759b4b26658c7f Mon Sep 17 00:00:00 2001 From: Nate Date: Sat, 21 Jun 2025 23:52:21 -0700 Subject: [PATCH 30/91] test on branch --- .github/workflows/release-config-yaml.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/release-config-yaml.yml b/.github/workflows/release-config-yaml.yml index 6406e70e0..6f08e0325 100644 --- a/.github/workflows/release-config-yaml.yml +++ b/.github/workflows/release-config-yaml.yml @@ -4,6 +4,7 @@ on: push: branches: - main + - nate/semantic-release paths: - "packages/config-yaml/**" From a9d6597a3fa054d093cb63fa5859e24b8f8d571b Mon Sep 17 00:00:00 2001 From: Nate Date: Sat, 21 Jun 2025 23:54:14 -0700 Subject: [PATCH 31/91] fix: update spacing --- packages/config-yaml/src/cli.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/packages/config-yaml/src/cli.ts b/packages/config-yaml/src/cli.ts index 24ac2f6df..6f6e47314 100644 --- a/packages/config-yaml/src/cli.ts +++ b/packages/config-yaml/src/cli.ts @@ -27,6 +27,7 @@ async function main() { validationErrors.forEach((error) => { console.error(`- ${error.message}`); }); + process.exit(1); } } catch (error: any) { From 5cb6c7fde0cba42cb5346f4ca13317d8778183c9 Mon Sep 17 00:00:00 2001 From: Nate Date: Sat, 21 Jun 2025 23:56:18 -0700 Subject: [PATCH 32/91] update semantic release file --- packages/config-yaml/release.config.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/config-yaml/release.config.js b/packages/config-yaml/release.config.js index bbbc60919..cda044a27 100644 --- a/packages/config-yaml/release.config.js +++ b/packages/config-yaml/release.config.js @@ -1,5 +1,5 @@ export default { - branches: ["main"], + branches: ["main", "nate/semantic-release"], plugins: [ "@semantic-release/commit-analyzer", "@semantic-release/release-notes-generator", From e79c3ec2f51da0f91a97ef1b760e4d225bdca6f4 Mon Sep 17 00:00:00 2001 From: Nate Date: Sun, 22 Jun 2025 00:05:10 -0700 Subject: [PATCH 33/91] permissions --- .github/workflows/release-config-yaml.yml | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/.github/workflows/release-config-yaml.yml b/.github/workflows/release-config-yaml.yml index 6f08e0325..0956de23e 100644 --- a/.github/workflows/release-config-yaml.yml +++ b/.github/workflows/release-config-yaml.yml @@ -8,6 +8,11 @@ on: paths: - "packages/config-yaml/**" +permissions: + contents: write + issues: write + pull-requests: write + jobs: release: name: Release From 22aa3869e7ae7fc0cdf6eb42426c2776ddaa6f2a Mon Sep 17 00:00:00 2001 From: Nate Date: Sun, 22 Jun 2025 00:07:32 -0700 Subject: [PATCH 34/91] remove extra space --- packages/config-yaml/src/cli.ts | 1 - 1 file changed, 1 deletion(-) diff --git a/packages/config-yaml/src/cli.ts b/packages/config-yaml/src/cli.ts index 6f6e47314..24ac2f6df 100644 --- a/packages/config-yaml/src/cli.ts +++ b/packages/config-yaml/src/cli.ts @@ -27,7 +27,6 @@ async function main() { validationErrors.forEach((error) => { console.error(`- ${error.message}`); }); - process.exit(1); } } catch (error: any) { From f7e965bf1e02d821c2874b142dc023571ee6ca30 Mon Sep 17 00:00:00 2001 From: Nate Date: Sun, 22 Jun 2025 00:20:17 -0700 Subject: [PATCH 35/91] update release config --- packages/config-yaml/release.config.js | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/packages/config-yaml/release.config.js b/packages/config-yaml/release.config.js index cda044a27..14189057d 100644 --- a/packages/config-yaml/release.config.js +++ b/packages/config-yaml/release.config.js @@ -9,8 +9,7 @@ export default { "@semantic-release/git", { assets: ["CHANGELOG.md", "package.json"], - message: - "chore(release): ${nextRelease.version} [skip ci]\n\n${nextRelease.notes}", + message: "chore(release): ${nextRelease.version} [skip ci]", }, ], "@semantic-release/github", From 2f221dd055147915d5d7fdf4b910071fa2ea4dcb Mon Sep 17 00:00:00 2001 From: semantic-release-bot Date: Sun, 22 Jun 2025 07:21:28 +0000 Subject: [PATCH 36/91] chore(release): 1.0.0 [skip ci] --- packages/config-yaml/CHANGELOG.md | 1067 +++++++++++++++++++++++++++++ packages/config-yaml/package.json | 2 +- 2 files changed, 1068 insertions(+), 1 deletion(-) create mode 100644 packages/config-yaml/CHANGELOG.md diff --git a/packages/config-yaml/CHANGELOG.md b/packages/config-yaml/CHANGELOG.md new file mode 100644 index 000000000..81b43054f --- /dev/null +++ b/packages/config-yaml/CHANGELOG.md @@ -0,0 +1,1067 @@ +# 1.0.0 (2025-06-22) + + +### Bug Fixes + +* :adhesive_bandage: allow GGML to use api.openai.com ([db19f6b](https://github.com/continuedev/continue/commit/db19f6bc98285d8ea45b4db16f619dffbec7c3db)) +* :adhesive_bandage: skip indexing really large files ([b773fe6](https://github.com/continuedev/continue/commit/b773fe6d7a0b489a658139ea5fc958abd46a20b2)) +* :ambulance: catch error from meilisearch client.health ([00775f5](https://github.com/continuedev/continue/commit/00775f54e6c3fa8044a996ea1a7cf0f2205735dd)) +* :ambulance: class_name hotfix ([83b0417](https://github.com/continuedev/continue/commit/83b0417f6c8c579d0ea5a0f689eceb822fe7a04d)) +* :ambulance: fix import of run from __main__ ([ebfe428](https://github.com/continuedev/continue/commit/ebfe428b7f70de66bc5692cca1db7cd10ef4b997)) +* :ambulance: hotfix and package.json seo experiment ([42024ef](https://github.com/continuedev/continue/commit/42024effba73673b4080c25806c21293b5daad3e)) +* :ambulance: load global ~/.continue/assistants ([4b55cfb](https://github.com/continuedev/continue/commit/4b55cfb2e8ad4803855020111d0cff6a38ad79d5)) +* :ambulance: logging to file causing problems with starting server ([8b95ef7](https://github.com/continuedev/continue/commit/8b95ef7de258de8498b328d9e6107a95f57f8d2c)) +* :ambulance: specify packagePath for vsix ([512ccfd](https://github.com/continuedev/continue/commit/512ccfda670abb6132e9cd720280a472e53e3326)) +* :arrow_up: upgrade openai python package ([19cbe2c](https://github.com/continuedev/continue/commit/19cbe2cebae8e2155b6b4375c6a96a3b25e87615)) +* :art: many small improvements ([28f5d7b](https://github.com/continuedev/continue/commit/28f5d7bedab05a8b061e4e7ee9055a5403786bbc)) +* :bookmark: update extension version ([05b9642](https://github.com/continuedev/continue/commit/05b96420bda2da0c725cacc8141d87449eaf9e9c)) +* :bookmark: update version ([afae160](https://github.com/continuedev/continue/commit/afae1600255714d0a4f18f892d3e7b5e1d921962)) +* :bookmark: update version ([9aee2cc](https://github.com/continuedev/continue/commit/9aee2cc44c461ce0e001185af85352e78522bab5)) +* :bookmark: update version to try again ([1905f31](https://github.com/continuedev/continue/commit/1905f319470c02ee414498b9101b6e64b4b15d65)) +* :bookmark: v3 -> v4 of upload-artifact ([d24862a](https://github.com/continuedev/continue/commit/d24862a6fd22e4eac1b2ca27ce7bf029f0d8fa4a)) +* :bug: a few minor fixes ([c918bb3](https://github.com/continuedev/continue/commit/c918bb3af5ec4a4a409eb0a3add27951b00c3c59)) +* :bug: a handful of bug fixes ([e1325c0](https://github.com/continuedev/continue/commit/e1325c0153becb95b454810d9461efd7d3624a6a)) +* :bug: a number of small fixes + disable summaries ([a975560](https://github.com/continuedev/continue/commit/a9755603c3a2c0b3afe809f77a63824c77c6419e)) +* :bug: access highlighted_code through context_manager ([1afb37b](https://github.com/continuedev/continue/commit/1afb37b5bb901d95c493039591b9243cd2cdd6f7)) +* :bug: add data file for ca_bundle ([b82d83f](https://github.com/continuedev/continue/commit/b82d83f79389897ed5f05eb9b5e8daf9cf64ee6f)) +* :bug: Add requestOptions to YAML config for mcp ([81c20c1](https://github.com/continuedev/continue/commit/81c20c11dbbce2eccefd00364c5b74b298b2f24f)) +* :bug: add server/exe to .vscodeignore insteading of manually removing ([e8ebff1](https://github.com/continuedev/continue/commit/e8ebff1e6b07dfaafff81ee7013bb019cbfe2075)) +* :bug: additional fixes to ssh /edit ([4428acd](https://github.com/continuedev/continue/commit/4428acdd6f372c3724a908fafb1c793e0eae4096)) +* :bug: allow end/home keys to work ([615d30e](https://github.com/continuedev/continue/commit/615d30e3dce92a9993b0e93b044faadf228529b1)) +* :bug: allow None for timeout ([ff3de11](https://github.com/continuedev/continue/commit/ff3de1184737f1124090d384b877a30550b60869)) +* :bug: another hotfix - don't destructure selectors ([534304a](https://github.com/continuedev/continue/commit/534304a2a4f9abfc221a961f279d1b43d14b6d33)) +* :bug: another windows fix in typegen.js ([f38c8fb](https://github.com/continuedev/continue/commit/f38c8fb8b33a705ed4eb4d2e0974060ebb88afd3)) +* :bug: async with Client (meilisearch) ([9a0cd64](https://github.com/continuedev/continue/commit/9a0cd644dcb5ff46817a6ea686a6de0fb764c960)) +* :bug: attempting to fix mkdir ([c1a8097](https://github.com/continuedev/continue/commit/c1a8097f0a7f3cddb0aebac26e6197ffef186972)) +* :bug: automigrate between short/long imports ([eecc2b5](https://github.com/continuedev/continue/commit/eecc2b57c5c5a144abfc0623102438e902c4aeba)) +* :bug: avoid removing disallowed file windows ([19a3266](https://github.com/continuedev/continue/commit/19a3266b6f14186bd0839fac8b2a04b5a29f32e7)) +* :bug: bug when highlighting code prior to context_manager creation ([74a52c8](https://github.com/continuedev/continue/commit/74a52c8399b3ccf2d2100b088b79e65c6ca6ad7e)) +* :bug: bug where old server doesn't get updated ([bb776a0](https://github.com/continuedev/continue/commit/bb776a03df3e6a39a1726b781ea33c2ccebd5343)) +* :bug: catch error when workspace uri isn't defined ([fc9eb30](https://github.com/continuedev/continue/commit/fc9eb3051fd5a7c9cad57b5d6cd93374bd8210fb)) +* :bug: change for/backwardslash decoding scheme ([a3a05fe](https://github.com/continuedev/continue/commit/a3a05fee312ad7c04d2abb0e186da55c7d061462)) +* :bug: chmod for linux as well as mac ([089def0](https://github.com/continuedev/continue/commit/089def08c58120f78df78c10027639802ad8f77d)) +* :bug: clear all other selector destrucuring ([145642f](https://github.com/continuedev/continue/commit/145642f1eaf01d5809dabd79e7f64f234124683e)) +* :bug: Codebase Indexing was not starting on load ([e391d58](https://github.com/continuedev/continue/commit/e391d583041c54edb3fa0836eb9186c61e6b063d)) +* :bug: compatibility with python 3.8 ([275ad6f](https://github.com/continuedev/continue/commit/275ad6f72dafdfacffd9c9b5cc4847135a30f425)) +* :bug: convert to correct path sep in wsl URIs ([1b2341a](https://github.com/continuedev/continue/commit/1b2341a0113fadf8c8d23097ef1041d3e3088e84)) +* :bug: correct path sep for ssh-remote files ([b9bd8c1](https://github.com/continuedev/continue/commit/b9bd8c1848eaf38d5d15694a1ecae67f14566214)) +* :bug: correction to ContinueConfig serialization model ([b8aba4b](https://github.com/continuedev/continue/commit/b8aba4bc96d3b064012a40d837d5191cae20037e)) +* :bug: correctly generate uris for remote ([ab31cb1](https://github.com/continuedev/continue/commit/ab31cb15fae74592f49c2ceadc8d7810228fa7e2)) +* :bug: ctrl+c for windows overriding copy ([c3925c0](https://github.com/continuedev/continue/commit/c3925c04d981d2abc1e21cf72d6e77d165420a73)) +* :bug: custom escaping instead of URI for diff paths ([da3970e](https://github.com/continuedev/continue/commit/da3970e00061b7a223d23f51bd53012666d324dc)) +* :bug: default to counting chars if tiktoken blocked ([7006dbb](https://github.com/continuedev/continue/commit/7006dbb3e38a837a2580a516791874f6815ac25f)) +* :bug: don't fail on disconnected websocket ([0876610](https://github.com/continuedev/continue/commit/08766100cdb3638b3300ae4b700f8ec2af6b9a8a)) +* :bug: don't log stdout to console ([ee4701d](https://github.com/continuedev/continue/commit/ee4701dc45cd540728302ca8a09e9b7ce842597f)) +* :bug: don't open continue automatically ([8b76f51](https://github.com/continuedev/continue/commit/8b76f518313c20f13dda605931c9929ef58a7a22)) +* :bug: don't override context length param in OpenAI ([b2a6d07](https://github.com/continuedev/continue/commit/b2a6d07ea99be1f9288ee21477edc0874e780cad)) +* :bug: ebusy and logging bug fixes ([3d61469](https://github.com/continuedev/continue/commit/3d614690cd825ac5580074ecdc22f660455204f1)) +* :bug: fix "code" keyerror prior to context_manager.start ([866b16c](https://github.com/continuedev/continue/commit/866b16c3a9c9d88a7b90aa8a43610fc4884ab123)) +* :bug: fix /edit in ssh, pinyin input in combobox ([cda1be4](https://github.com/continuedev/continue/commit/cda1be46625abd8f44962cceeded04c8c47d9f65)) +* :bug: fix >c_d.png file path ([a9bc4e2](https://github.com/continuedev/continue/commit/a9bc4e26263faef8598dd8aa2aec7949c75ab70c)) +* :bug: fix 2 model config bugs ([b144d21](https://github.com/continuedev/continue/commit/b144d21b48a94aa8c203469eb7667bd22fc4e243)) +* :bug: fix 404 from undefined gif ([b467371](https://github.com/continuedev/continue/commit/b4673712e1a6a5b435125004a9b51498207fb7b6)) +* :bug: fix automigration ([ec41f55](https://github.com/continuedev/continue/commit/ec41f553c24d5f4b5bc4e601c989b1936d67ae1a)) +* :bug: fix azure openai bug for 07 version ([a8e69a0](https://github.com/continuedev/continue/commit/a8e69a02e6897689a1727fb7542ed5684b1348e2)) +* :bug: fix broken docs link ([210a02e](https://github.com/continuedev/continue/commit/210a02ef02341a98b4ed18095b2d656a7b994bd9)) +* :bug: fix bugs when selecting code to edit ([fa34214](https://github.com/continuedev/continue/commit/fa34214012d14385d231a1ac4f16006aaf4331fb)) +* :bug: fix ci to only upload from linux x64, not alpine ([4e1a5b1](https://github.com/continuedev/continue/commit/4e1a5b1fb3f96edc95b0938265da980e98566d56)) +* :bug: fix cmd+m bug ([38e8272](https://github.com/continuedev/continue/commit/38e827243ceff3732cd0f260e7a3bd4941a96bc5)) +* :bug: fix command enter, stop streaming on reject ([8e15ec3](https://github.com/continuedev/continue/commit/8e15ec3c2c1490d4a7d6371f877368376fd64e8a)) +* :bug: fix command enter, stop streaming on reject ([19b3886](https://github.com/continuedev/continue/commit/19b38863c21656526e0729776682430e0fa277da)) +* :bug: fix config.py import paths ([97861bf](https://github.com/continuedev/continue/commit/97861bf4117bbc36f8f87797a9ca60e6336f82cc)) +* :bug: fix context length bug for /edit ([d103263](https://github.com/continuedev/continue/commit/d103263030ad52debe73bd131c71bbf17f545956)) +* :bug: fix dialog links ([4c84e69](https://github.com/continuedev/continue/commit/4c84e6945a7c2018622eceb54e7fb54de193b03a)) +* :bug: fix for --meilisearch-url flag ([e2798c5](https://github.com/continuedev/continue/commit/e2798c5bb62eeb2a3bc8f5baee18f9d64ee86563)) +* :bug: fix for Azure OpenAI model names ([bcec2a0](https://github.com/continuedev/continue/commit/bcec2a0870d0ef649961b6c91ec866b612680b9e)) +* :bug: fix for edit=None in highlightedCode update ([247d3e9](https://github.com/continuedev/continue/commit/247d3e9a41ff8d9fe2da6386bfb0d0eb063b071c)) +* :bug: fix for lmstudio defaults ([0012922](https://github.com/continuedev/continue/commit/00129229cd881d6b910a4b01db68e702cdd63a40)) +* :bug: fix for windows drive difference bug ([d69c6d4](https://github.com/continuedev/continue/commit/d69c6d4f3729374ab40fcebc861e67f2da100ad9)) +* :bug: fix ggml bug ([1a75475](https://github.com/continuedev/continue/commit/1a75475c681053494984664ef1179171fe2a5d83)) +* :bug: fix headers for openai.;y ([44fe0c9](https://github.com/continuedev/continue/commit/44fe0c94a55a753ff5d6c3da6b63db4a5c70d780)) +* :bug: fix height bug after cmd+shift+R ([a7cb092](https://github.com/continuedev/continue/commit/a7cb0929bd064f73a1e3e49ba8dd6b6b7de387f4)) +* :bug: fix history.timeline indexing bug ([01ed2c7](https://github.com/continuedev/continue/commit/01ed2c7eb2d3417b2c190eea105008372f49a7c6)) +* :bug: fix huggingface tgi ([5316180](https://github.com/continuedev/continue/commit/5316180394d48d9877cda0cb3d7c3c6de9995d12)) +* :bug: fix import in run.py ([4cf1f75](https://github.com/continuedev/continue/commit/4cf1f75518053f9df174d5ab90c426124f85ecfa)) +* :bug: fix inability to copy/paste when ipynb is open ([850c8ae](https://github.com/continuedev/continue/commit/850c8aea7f3d9c46ff8e98bde936b92282376dae)) +* :bug: fix incorrect imports in default config file ([374bdd0](https://github.com/continuedev/continue/commit/374bdd037792825bf984026da12d4100ffebcac2)) +* :bug: fix keyboard shortcut for debugging ([c021958](https://github.com/continuedev/continue/commit/c021958ae893a9683352ba99e5c6301e38331492)) +* :bug: fix meilisearch empty body content-type bug ([598e243](https://github.com/continuedev/continue/commit/598e243fd292dd8851865ab1c3915ca55f4992cc)) +* :bug: fix missing path import ([5bfe68e](https://github.com/continuedev/continue/commit/5bfe68ea7f7e90e3cb1c3101360cf959b336a857)) +* :bug: fix model changing bug ([fd4a4dc](https://github.com/continuedev/continue/commit/fd4a4dcf004bea86d982ffffb66b4e3cb38193a6)) +* :bug: fix overriding of system message ([8444e76](https://github.com/continuedev/continue/commit/8444e76b7232fbddb62d3626de13653ae332d168)) +* :bug: fix paths ([b893c95](https://github.com/continuedev/continue/commit/b893c956fe75a9e45f06129290d043737f5c1007)) +* :bug: fix reducers for user input queue ([1a36a3c](https://github.com/continuedev/continue/commit/1a36a3c02acaf6bf29d4153c113217517b832942)) +* :bug: fix replicate to work with models requiring prompt input ([84ec574](https://github.com/continuedev/continue/commit/84ec574e182ec441e95d13c3543a934e0a036228)) +* :bug: fix serialization bug for context_providers ([2799249](https://github.com/continuedev/continue/commit/27992499af977baeb9124d9ab35ffec6d36a298a)) +* :bug: fix set_system_message ([084fdac](https://github.com/continuedev/continue/commit/084fdac3992f58dcf11241e7e5c2d5efa784ce0d)) +* :bug: fix ssh /edit by checking for file through vscode fs ([417d45c](https://github.com/continuedev/continue/commit/417d45ccddc2f434d7467e4f17113783996653dd)) +* :bug: fix telemetry bug ([042bc5a](https://github.com/continuedev/continue/commit/042bc5ac76800ee66e603ef23b2bb857fafe053e)) +* :bug: Fix the generating animation ([2f402b4](https://github.com/continuedev/continue/commit/2f402b4a1227ade5a4ba70f770974627b586e930)) +* :bug: fix timeout type ([e1a0290](https://github.com/continuedev/continue/commit/e1a0290d5a699e30464f1e682cb11c6aa119bd59)) +* :bug: fix togetherAI model json parsing ([deb291c](https://github.com/continuedev/continue/commit/deb291c1b225425cba543dd3b4c5557089abfb59)) +* :bug: fix undefined.filter bug ([9b58278](https://github.com/continuedev/continue/commit/9b582781ab0aceaaf1cff7432fed92fa6c205aae)) +* :bug: fix usages of LLM.complete ([f057ee4](https://github.com/continuedev/continue/commit/f057ee4d619b834dc245065d13417a86b44dc61b)) +* :bug: fix when multiple cursor ranges are selected ([f9c145c](https://github.com/continuedev/continue/commit/f9c145c9667e0cd9adb7f9b645f7abf12f7cf2a2)) +* :bug: fix yaml syntax error ([11c7cec](https://github.com/continuedev/continue/commit/11c7cecc107ef9f2571926055dbd80495fe0f8b2)) +* :bug: fixes for a few context_providers ([41b3233](https://github.com/continuedev/continue/commit/41b3233693c34cd81c872a1e7279721b5f640d60)) +* :bug: fixes to templating messages ([c56e24d](https://github.com/continuedev/continue/commit/c56e24d2a5f2b40702e4b495fa3f28d554eaa3ab)) +* :bug: fixing bugs with ggml ([87409c3](https://github.com/continuedev/continue/commit/87409c31832ccb707abbf134843323c9eb6e1183)) +* :bug: fixing issues with creating markdown files ([5c1c2d6](https://github.com/continuedev/continue/commit/5c1c2d626ffed786d00c79aadef26fa5718ca43d)) +* :bug: fixing small UI details ([088b7b8](https://github.com/continuedev/continue/commit/088b7b803866817aaedce6b61834f1ce5de7a7c2)) +* :bug: force kill old server with taskkill on windows ([b1b7d13](https://github.com/continuedev/continue/commit/b1b7d13dbf5b9f6ada28a5ef22ea6857d3b0bcb6)) +* :bug: ftc fix ([f5f10ef](https://github.com/continuedev/continue/commit/f5f10efee3402e117c34b6f0de4bf2fd7d2819c1)) +* :bug: gpt-4-32k in CHAT_MODELS ([b0445cd](https://github.com/continuedev/continue/commit/b0445cd5fc4538c8a9c4f3e76be0f3d724c99818)) +* :bug: handle when vscode workspace not open ([73c6827](https://github.com/continuedev/continue/commit/73c6827d02ff62313184e3745fd94c7591c98b61)) +* :bug: hotfix for user_input_queue.map ([610c576](https://github.com/continuedev/continue/commit/610c576cc9df72716c5e65838f805b15431011ea)) +* :bug: install python-virtualenv on linux, fix git hash files error ([6f0e634](https://github.com/continuedev/continue/commit/6f0e6340bb22ee150ef4b7996750f4c63c0bc2a7)) +* :bug: install python-virtualenv on linux, fix git hash files error ([7fa98ff](https://github.com/continuedev/continue/commit/7fa98ffe843320ddc63794a497a2d44570e005c3)) +* :bug: kill server before trying to delete exe on windows ([286fb0e](https://github.com/continuedev/continue/commit/286fb0e20e48859f129ccf568d03248805bcbc61)) +* :bug: let context providers work without meilisearch ([0f86a69](https://github.com/continuedev/continue/commit/0f86a69e4a83458db2e20e404c26dac2e02355cf)) +* :bug: llamacpp fix indexing max_tokens ([90590ab](https://github.com/continuedev/continue/commit/90590ab4e06fbc3fa721f73a4a922136946a756f)) +* :bug: make sure server_version.txt exists ([17806d9](https://github.com/continuedev/continue/commit/17806d932502adbf974ccd93a670e57b78be9a08)) +* :bug: make typegen.js windows compatible ([dc06228](https://github.com/continuedev/continue/commit/dc0622848b648ba27e7110b9b900673bb668ab4c)) +* :bug: MAX_TOKENS_FOR_MODEL bug fix, more testing ([1c288f7](https://github.com/continuedev/continue/commit/1c288f7749747c6b1908ae16c977f80e5597d2ca)) +* :bug: meilisearch fixes ([0de6e19](https://github.com/continuedev/continue/commit/0de6e1985d0e97ede5e19e7752a6be7cd2a5818d)) +* :bug: more reliable download with request ([fdb036b](https://github.com/continuedev/continue/commit/fdb036bcecec891adaf99d73101c458fc4087406)) +* :bug: more reliable setup of meilisearch ([12a8ae1](https://github.com/continuedev/continue/commit/12a8ae1c47f111b9f36633c96b26e8642c5ff223)) +* :bug: now progress bar when api_key entered ([bf82c6f](https://github.com/continuedev/continue/commit/bf82c6fd16a6777f0a9bb68ce4879d7bab9019bb)) +* :bug: number of bug fixes ([b9bdf58](https://github.com/continuedev/continue/commit/b9bdf5894c1c68b60d1919ae07b0f5909b00dec2)) +* :bug: numerous small fixes ([0940d75](https://github.com/continuedev/continue/commit/0940d756dec3b98071ae5e5a12966e02420b3cd2)) +* :bug: patch for ocassional 0 choices from older azure versions ([5c09b80](https://github.com/continuedev/continue/commit/5c09b8077588a447d6eaac9b7f624571be3ddb1d)) +* :bug: permissions for pypi-deployment step ([b237850](https://github.com/continuedev/continue/commit/b237850c4b64435e26dfb5f12275a16a93e556a8)) +* :bug: post-merge fixes ([96379a7](https://github.com/continuedev/continue/commit/96379a7bf5b576a2338142b10932d98cbc865d59)) +* :bug: remove empty grammar from llama_cpp_args ([e5bbe3b](https://github.com/continuedev/continue/commit/e5bbe3bc4d59b6f35db1ce1b94be14244c11c766)) +* :bug: replace hardcoded path for config file ([4fe9ace](https://github.com/continuedev/continue/commit/4fe9ace518bcdcf79999ce9938ba01b218d355e4)) +* :bug: require socksio ([bba5e5e](https://github.com/continuedev/continue/commit/bba5e5e5b1da2dd924aa2632e38d4bb702bbbdd9)) +* :bug: separately load ctx provs, fix filetree ([d8e821e](https://github.com/continuedev/continue/commit/d8e821e422678fd4248b472c7f3e67a32ecfefb5)) +* :bug: set api_keys in config.py, fix spawn error handling ([6823307](https://github.com/continuedev/continue/commit/68233071dd0d97a353a66fe5627d69f97a389ca8)) +* :bug: set export display in same step as linux npm test ([c3d62c5](https://github.com/continuedev/continue/commit/c3d62c5ae203aaca32583f75a7e80dfd9f196e11)) +* :bug: small bug fix ([32d1149](https://github.com/continuedev/continue/commit/32d1149692c26eb966693f03db6d9cf496ba57a4)) +* :bug: small bug fixes ([bc75ff2](https://github.com/continuedev/continue/commit/bc75ff294a2b5ec5eef5f77aff72aaa0c7f4a3f2)) +* :bug: small fixes, update troubleshooting docs ([51fc07c](https://github.com/continuedev/continue/commit/51fc07cf6441d6330ce64e45e56e8f333ca309ed)) +* :bug: solve EBUSY by polling ([9417973](https://github.com/continuedev/continue/commit/941797359f6554ac16a2e478047aabd5cbc0404b)) +* :bug: ssh compatibility by reading from vscode.workspace.fs ([e5f5630](https://github.com/continuedev/continue/commit/e5f56308c5fd87695278682b2a36ca60df0db863)) +* :bug: start meilisearch in parallel to server ([e4c1bb4](https://github.com/continuedev/continue/commit/e4c1bb4bedbe426d090f4bb2b8819ad935c5b3fb)) +* :bug: stop streaming on rejection ([8d05fc2](https://github.com/continuedev/continue/commit/8d05fc2bb5c5df617800c1abcf43bb03c574482f)) +* :bug: stop streaming on rejection ([9fc831e](https://github.com/continuedev/continue/commit/9fc831e7587cce99c8a6f2e56905c25068c8cab6)) +* :bug: streaming url_decode for Ollama ([3690101](https://github.com/continuedev/continue/commit/3690101b790f91c749f208693aaffc00b9fa2a42)) +* :bug: templating fix for queued LLM ([5c6609a](https://github.com/continuedev/continue/commit/5c6609ab5fa3a69cd0e3e8e61df643fcce1ecb47)) +* :bug: temporarily disable lsp before fixing w/ vscode ([98f340b](https://github.com/continuedev/continue/commit/98f340bd97cba6f30cfe55d47419e3925b9dc679)) +* :bug: temporarily remove replicate altogether ([bd79c00](https://github.com/continuedev/continue/commit/bd79c00e7790b92cfd8b8c8f8211b6c3d36e33a2)) +* :bug: test and fix small issues with GGML ([72e8332](https://github.com/continuedev/continue/commit/72e83325a8eb5032c448a5e891c157987921ced2)) +* :bug: timeout on blocking processes ([345b773](https://github.com/continuedev/continue/commit/345b7734d8c887d699d5038416d2a1f8193a33e9)) +* :bug: traceback fixes, remove replicate from hiddenimports ([45d9bab](https://github.com/continuedev/continue/commit/45d9bab5cea745573be7112d7130089c596c88fa)) +* :bug: try/except around starting meilisearch ([c867cd4](https://github.com/continuedev/continue/commit/c867cd40342d44901cf5277ded25f5dc5aaa4326)) +* :bug: update search path for ripgrep on windows ([e428dc5](https://github.com/continuedev/continue/commit/e428dc53cedf54f394a7cddfe8a7ce7fbf469bb9)) +* :bug: update the tip message for keyboard shortcut ([3558450](https://github.com/continuedev/continue/commit/355845002e178a618e9a792dd57b0649c3da8845)) +* :bug: urldecode ollama responses, make edit faster ([19050f8](https://github.com/continuedev/continue/commit/19050f83228b3e7f08a6aacd5bdd1804a8315e4a)) +* :bug: use certifi to set ca_bundle_path for openai ([3849420](https://github.com/continuedev/continue/commit/3849420948e491d5f84ac485169165d887751fd3)) +* :bug: use posthog-node, not -js ([88a8166](https://github.com/continuedev/continue/commit/88a8166476d38889fd4f9323472cc34a5226e05c)) +* :bug: use powershell remove-item ([64552dc](https://github.com/continuedev/continue/commit/64552dc881509c46aa14253ff94aee9d86ade256)) +* :bug: use windows equivalent of rm -rf ([8d19866](https://github.com/continuedev/continue/commit/8d198663e116c7c77b7e59015bc6032736f71f6e)) +* :bug: verify_ssl and ssl_context mutual exclusivity ([59b7453](https://github.com/continuedev/continue/commit/59b7453afed06418d4c171b65370a6a82f5a9221)) +* :bug: version patch in the publish step ([1936f72](https://github.com/continuedev/continue/commit/1936f725d226bea2e13d5d88c1dd7a9a02ddd259)) +* :bug: windowsHide on process spawn ([c3d31f0](https://github.com/continuedev/continue/commit/c3d31f00bb589df1c83308b7d9d69ed51c31341a)) +* :bug: write out npm run package as package.js ([4636c95](https://github.com/continuedev/continue/commit/4636c9590154d6b5995948003da212eb25003750)) +* :bug: write to local diff files ([6140d05](https://github.com/continuedev/continue/commit/6140d05e7d415d3334032c300ed593bdd181f7f5)) +* :children_crossing: add slash commands to default config ([58e5dc4](https://github.com/continuedev/continue/commit/58e5dc4a5c4fcbed25170b61fbd88d479c5aebcf)) +* :children_crossing: clear the dropdown after text input cleared ([23167a5](https://github.com/continuedev/continue/commit/23167a51d959fed5e4be057ceb9fff50cf34c6c8)) +* :children_crossing: don't order meilisearch results by contnet ([ab7a90a](https://github.com/continuedev/continue/commit/ab7a90a0972188dcc7b8c28b1263c918776ca19d)) +* :children_crossing: use default model in default config.py ([1bc5777](https://github.com/continuedev/continue/commit/1bc5777ed168e47e2ef2ab1b33eecf6cbd170a61)) +* :construction_worker: copy_metadata for replicate in run.spec ([b0426d8](https://github.com/continuedev/continue/commit/b0426d82a4871e9081367ad4e977b22f42db5a89)) +* :construction: working on fixing lsp ([1f95bb2](https://github.com/continuedev/continue/commit/1f95bb287846fc0501193d642420b574d9900857)) +* :fire: remove version from package.json ([27c0a40](https://github.com/continuedev/continue/commit/27c0a403de28345cd03c39ad46c02f68ff57b3a1)) +* :goal_net: catch errors when loading to meilisearch index ([7894c8e](https://github.com/continuedev/continue/commit/7894c8ed1517394aa00f6e496a97d9e27d204f5f)) +* :goal_net: display errors in SimpleChatStep ([72784f6](https://github.com/continuedev/continue/commit/72784f6f1161f0c5b647889c26089a8247111dc9)) +* :green_heart: cd extension before packaging ([0a6d72c](https://github.com/continuedev/continue/commit/0a6d72c099316e6cffa123d3ffa915f3fe13e770)) +* :green_heart: cleanup file ([951552d](https://github.com/continuedev/continue/commit/951552dd0eede1f8f255aeaf5d34a13ff0c7bfb7)) +* :green_heart: don't exclude jedi from pyinstaller ([a1328cb](https://github.com/continuedev/continue/commit/a1328cb5431f99cfe16b246ee4201b19530404e2)) +* :green_heart: fix build scripts ([ab799b0](https://github.com/continuedev/continue/commit/ab799b0b0133e926ea06a1a12c092f42b9e053a1)) +* :green_heart: fix copy statement to include.exe for windows ([36c3dfd](https://github.com/continuedev/continue/commit/36c3dfd51d319b9b9ad392988d13ef7f443e0937)) +* :green_heart: fix preview.yaml ([a736d62](https://github.com/continuedev/continue/commit/a736d62f0e8b9b80ab9a949fd1739fb9a3be26e1)) +* :green_heart: increase testing timeout to allow for fkill ([08b1cfd](https://github.com/continuedev/continue/commit/08b1cfdd2f6f456df7344c16f5d229a0ccfb841b)) +* :green_heart: install rosetta ([5b9ef10](https://github.com/continuedev/continue/commit/5b9ef102973c608bc409a7b9ec244a4be1494e96)) +* :green_heart: one last test ([758520f](https://github.com/continuedev/continue/commit/758520fe6b59d3330dec80ac07d05282d36e0058)) +* :green_heart: only upload once per binary ([490838a](https://github.com/continuedev/continue/commit/490838a8ad920a52ada7e85675aefd965e978d77)) +* :green_heart: package patch ([34f32ed](https://github.com/continuedev/continue/commit/34f32ed5f71055ea11d4332f18e77ceba5849631)) +* :green_heart: package:pre-release ([d3f21da](https://github.com/continuedev/continue/commit/d3f21da803e36b78f968c2216d9f93f90ebabd6a)) +* :green_heart: publish as pre-release! ([831bf5e](https://github.com/continuedev/continue/commit/831bf5e7f7c48dd80f71f1256f5597bd47bf22de)) +* :green_heart: publishing to depend on ALL tests ([a131c17](https://github.com/continuedev/continue/commit/a131c17326591e67a68faf6f96371ad8fc332b71)) +* :green_heart: pull origin main in main.yaml after pypi update ([6a9a079](https://github.com/continuedev/continue/commit/6a9a079914d94419183182cd0a5cc4439f2101ad)) +* :green_heart: remove "patch" from vsce publish command ([d8327ec](https://github.com/continuedev/continue/commit/d8327ec6f82058479bd294bfcdccaf3c2b54de0a)) +* :green_heart: remove npm_config_arch ([8c51664](https://github.com/continuedev/continue/commit/8c5166471b0d83b924d8bee1e0ca51822cc1bbdc)) +* :green_heart: remove version from apckage.json ([5438ce9](https://github.com/continuedev/continue/commit/5438ce94406baa0f7d131ecacadefc72912dca0d)) +* :green_heart: set permissions on apple silicon binary ([715cfed](https://github.com/continuedev/continue/commit/715cfed18747b6bc2e6d7bd7a977d249cc9066d5)) +* :green_heart: testing ([14062c5](https://github.com/continuedev/continue/commit/14062c5c385bb7ba80096bf7daf6b6a5568b0b54)) +* :green_heart: testing for failure to package dist in vsix ([19acf3b](https://github.com/continuedev/continue/commit/19acf3bb36c1e44274297c806b89b589ca02f5ba)) +* :green_heart: update permissions and version ([c4ed41c](https://github.com/continuedev/continue/commit/c4ed41c861573f4c9bdff1a21ca3e056cfdd766e)) +* :green_heart: update pylsp hidden import ([1e8ea65](https://github.com/continuedev/continue/commit/1e8ea654f5ad1e06bff2660b54a50955098703ba)) +* :green_heart: update pypi version, don't push from main ([208eb65](https://github.com/continuedev/continue/commit/208eb65f67ccc62ce6d683fd9bed2fe9524b2136)) +* :green_heart: use curl to download binary ([199e4b3](https://github.com/continuedev/continue/commit/199e4b3b99642ba5b1558132aa10119be1eeb525)) +* :heavy_plus_sign: add bs4 to requirements.txt ([8a1e6fb](https://github.com/continuedev/continue/commit/8a1e6fb4adec6e5febb2a0d78eb0b2a01bfa028b)) +* :heavy_plus_sign: add ripgrepy dependency to requirements.txt ([9801b50](https://github.com/continuedev/continue/commit/9801b50192ca661972d5b2997028db3cd0725fb7)) +* :heavy_plus_sign: hidden import for replicate ([b75555f](https://github.com/continuedev/continue/commit/b75555f106be3c7612e7c31818ff674485096e4f)) +* :heavy_plus_sign: include replicate in requirements.rtxt ([01b3f1f](https://github.com/continuedev/continue/commit/01b3f1ff8f4dd89ae79f15626ef5a3af2bc558c4)) +* :lipstick: don't display entirety of large tracebacks ([a74eda5](https://github.com/continuedev/continue/commit/a74eda56cfcafb5c463a74df564ced6f882f8d3e)) +* :lipstick: fix layout bugs ([b655781](https://github.com/continuedev/continue/commit/b6557810d70a7f341761d5018fa2835cc3a50af1)) +* :lipstick: fix UI problems in vscode light themes ([5e8866d](https://github.com/continuedev/continue/commit/5e8866da83f8a97cb8492f26e175b948d0282262)) +* :lipstick: logo alignment, better config failure description, patch ([c51ad53](https://github.com/continuedev/continue/commit/c51ad538deff06af6c9e5498b23e3536e18bfc4c)) +* :lipstick: nicer autoscroll ([88699ff](https://github.com/continuedev/continue/commit/88699ff909b026511da392bf2c0a96be02abc6fd)) +* :lipstick: small UI improvements ([ec4fb4d](https://github.com/continuedev/continue/commit/ec4fb4d9235151901c1f7367932ecc17ab55d8e4)) +* :lipstick: ui tweaks to history + scrollbars ([6e8885f](https://github.com/continuedev/continue/commit/6e8885fc2f7feb06ef6ac87d2d7688f9f33d15de)) +* :lipstick: update font size for input, remove first tutorial step ([73ff267](https://github.com/continuedev/continue/commit/73ff2678ad984c9d9082ec078a38450d5daa1376)) +* :lipstick: update light gray hex code ([e0e0482](https://github.com/continuedev/continue/commit/e0e0482f2af2eadd3df72fbdb6974c07ba11c527)) +* :lock: opt out of meilisearch analytics ([8db5b39](https://github.com/continuedev/continue/commit/8db5b39170229ba93b83f526e7fd80056e461c6a)) +* :loud_sound: better logging for ggml completion endpoint ([0459b0c](https://github.com/continuedev/continue/commit/0459b0c919903852254ac2cd081307788884cd84)) +* :loud_sound: fix logs to be sent from uvicorn ([d3b4103](https://github.com/continuedev/continue/commit/d3b4103cd2f639fc072b8a3269d7730478c8bb1c)) +* :loud_sound: websocket logging and horizontal scrollbar ([7bb0fe3](https://github.com/continuedev/continue/commit/7bb0fe34bbc8affce0c675b88ffb79a6b9985860)) +* :memo: escape in docs ([7314e79](https://github.com/continuedev/continue/commit/7314e79ac5bc34936a2c3de0fd01aadbfe640e72)) +* :memo: fix deployent readme ([7a38025](https://github.com/continuedev/continue/commit/7a3802523c2e5ae136c39849e2fbb0d3e7bba63e)) +* :memo: remove reference duplicates for ctx providers ([043d695](https://github.com/continuedev/continue/commit/043d695198caed305fa6651918c3bbb2de87db36)) +* :memo: small fix in troubleshooting.md ([275a03b](https://github.com/continuedev/continue/commit/275a03b7f1e32f57bd68e501074aa80e0dbed40f)) +* :memo: use backup server links in docs ([815627b](https://github.com/continuedev/continue/commit/815627b167e4bf06308b51c6756e33c36b17b631)) +* :pencil2: Fix typo that was causing automatic version bumping not to work for intellij ([3daf2c7](https://github.com/continuedev/continue/commit/3daf2c7b23caf838b862c2d2791ae8655b761d12)) +* :rocket: fallback s3 bucket ([aa98080](https://github.com/continuedev/continue/commit/aa98080cb16c75d2b7d6d9771b97e63120052c62)) +* :safety_vest: more safely convert windows path to posix ([4309f9d](https://github.com/continuedev/continue/commit/4309f9def89c25611273d99db01e7cc477ad935e)) +* :white_check_mark: allow longer for python server to start in test ([d8f5f10](https://github.com/continuedev/continue/commit/d8f5f102f6f91487be0281316e581858ec4ca260)) +* :white_check_mark: allow longer wait in test ([40ec1a3](https://github.com/continuedev/continue/commit/40ec1a31a7cd37da8b75bbabf1f0d160bb7bec5d)) +* :zap: register vscode commands prior to server loading ([f7a3659](https://github.com/continuedev/continue/commit/f7a3659381f839b890f2c53086f7fedecf23d9ab)) +* :zap: update count_tokens method ([8214203](https://github.com/continuedev/continue/commit/82142033f935d6236620d82e31a70ea8f2fb243e)) +* 'inferenceConfig.stopSequences' failed to satisfy constraint: Member must have length less than or equal to 4 [#2538](https://github.com/continuedev/continue/issues/2538) ([90e994d](https://github.com/continuedev/continue/commit/90e994db3c106f9b63bd043203111e5e101071ba)) +* (very) small typo breaking the prompt file examples link! ([bd6f9b9](https://github.com/continuedev/continue/commit/bd6f9b969647ee8cf6138dca63538063414553bb)) +* `REPLACE INTO` code_snippet table ([bdb967d](https://github.com/continuedev/continue/commit/bdb967d7b3c18fa2e0237f3cc0e0ea7415102715)) +* 🐛 Codebase Indexing still not work ([955ab93](https://github.com/continuedev/continue/commit/955ab93efc3f488127d16673b89f3900f75c2007)) +* 🐛 typo in core.py ([#429](https://github.com/continuedev/continue/issues/429)) ([705324e](https://github.com/continuedev/continue/commit/705324ed2ef588b2885c0b03107b9e30ae358dae)) +* a bunch of bugs, commit residuals such as npm install pg ([6d74e6b](https://github.com/continuedev/continue/commit/6d74e6b1fedf18b11ea12ba38164fcd146fdba4b)) +* actions ([653ca20](https://github.com/continuedev/continue/commit/653ca205dfbe2f7fec94891c99053d393d3efd0c)) +* add .mvn/ to list of default ignored folders ([ec91021](https://github.com/continuedev/continue/commit/ec91021adfcbd49becc3fdfbee6784981238a9f4)) +* add 'rich' module to requirements.txt ([#612](https://github.com/continuedev/continue/issues/612)) ([5d21bdf](https://github.com/continuedev/continue/commit/5d21bdf2930b30723f1fd80b05d8c1c2ad589bb2)) +* add checkmark icon to indicate selected model in dropdown ([98a3219](https://github.com/continuedev/continue/commit/98a321939ea1ba551025b16dc09f13e7a5e980ca)) +* add code range for quick actions/fixes ([#1687](https://github.com/continuedev/continue/issues/1687)) ([9f2e9bc](https://github.com/continuedev/continue/commit/9f2e9bc2dff474447d8502e386bb0cc804730bb9)) +* add context provider ([ae888d9](https://github.com/continuedev/continue/commit/ae888d9e814cf10931222070ed1e2ae5438325fe)) +* Add context/getSymbolsForFiles endpoint in JetBrains and handle symbol retrieval errors ([ba1fdf7](https://github.com/continuedev/continue/commit/ba1fdf7bac07afe04e62bd659a87dc89800a302b)) +* Add ContinuePluginDisposable to avoid memory leaks in Jetbrains ([a48a150](https://github.com/continuedev/continue/commit/a48a150b2024fca63cb50fb09a914a391c0cfce5)) +* add Delphi/Pascal syntax highlighting support ([cfcb06b](https://github.com/continuedev/continue/commit/cfcb06b1763b17e9e6d150963e090523c372d5d6)) +* Add directory checks and optimize token usage ([79736c3](https://github.com/continuedev/continue/commit/79736c3108313204184bb7d833ac21e23341354f)) +* add focus to InputToolbar on click ([#703](https://github.com/continuedev/continue/issues/703)) ([6b17de4](https://github.com/continuedev/continue/commit/6b17de49ed0e991221baee986f9dbb758d55f291)) +* add hover effect and restrict clickable area for the history and more back buttons ([9662b18](https://github.com/continuedev/continue/commit/9662b18a1ff36d8eaf743003f4df501245a31be2)) +* add missing eos_token for qwen2.5-coder ([6a7eea2](https://github.com/continuedev/continue/commit/6a7eea27ca5d1ade790ce08dc1cf4eb7bbdeb585)) +* add missing import ([400be9b](https://github.com/continuedev/continue/commit/400be9b47f0b8ab52b4e32ca77339497c63c8f96)) +* add mistral model options to config schema ([d56b48c](https://github.com/continuedev/continue/commit/d56b48cad2fcb0bb8e4a3e0dd3e32ab7f704d762)) +* add Msty logo ([397dcf4](https://github.com/continuedev/continue/commit/397dcf4ccc663560a49ff41e5892a5c118bce02e)) +* add new UI breakpoints ([5105645](https://github.com/continuedev/continue/commit/5105645dedec92abd3fc613777f60fd2a638a0ab)) +* add unit tests for commandExtractor and improve multiline comment handling ([0d940ec](https://github.com/continuedev/continue/commit/0d940ec6d1377b38945bd6217040cd025f89a80c)) +* add uuid to chat msgs for deletions ([f63fd5d](https://github.com/continuedev/continue/commit/f63fd5d83cefbbe01721515a8f28f435353bd804)) +* addTag ([53f886f](https://github.com/continuedev/continue/commit/53f886fd40c7bca29de06156f0e713a9700cc189)) +* allow downloading missing embedder on Ollama, in VS Code ([1dc58c6](https://github.com/continuedev/continue/commit/1dc58c63ab174f579e860d778ae85e73f6fb8c9d)) +* always show close icon ([4faed0b](https://github.com/continuedev/continue/commit/4faed0bc17a2b79e24fe5133efc40868bccaa6aa)) +* apply actions in toolbar ([cd810eb](https://github.com/continuedev/continue/commit/cd810eb93939bccc5bc0ff1e5c54572c7d27a97d)) +* apply insertion bug ([ceb9277](https://github.com/continuedev/continue/commit/ceb92773e9a6e4da27aa2de8f871c07f1e23d1a7)) +* apply notch filename trunaction ([033ade0](https://github.com/continuedev/continue/commit/033ade024ed685ef66dad53e675449a47e2dc872)) +* artifact name ([85e3fbc](https://github.com/continuedev/continue/commit/85e3fbc1c73872b1dfd8aee1f1dcef26b9f37761)) +* artifact upload ([1039e77](https://github.com/continuedev/continue/commit/1039e777c8a081ed9362f29e20c7c6133f3b07cd)) +* attempt to fix [#485](https://github.com/continuedev/continue/issues/485) ([#498](https://github.com/continuedev/continue/issues/498)) ([1188dd7](https://github.com/continuedev/continue/commit/1188dd7e5f26ed57d034c927ba032739963b9abc)) +* auth ([72636d9](https://github.com/continuedev/continue/commit/72636d96c8d8bb303e66f2344f5eeef26f078816)) +* autocomplete label after selecting a query type context provider ([#1562](https://github.com/continuedev/continue/issues/1562)) ([6407458](https://github.com/continuedev/continue/commit/6407458d7626d52558ea760b79a03129caba14ff)) +* autocomplete logging + input layout ([c542e5d](https://github.com/continuedev/continue/commit/c542e5d6153078f42e8eaf4361a4e5bdf24d9bc2)) +* Autocomplete not working when lookup is selected ([346f8fe](https://github.com/continuedev/continue/commit/346f8fe191a96eab5903b9a9f5a1e7e5ea1e3ee2)) +* avoid parsing md rules as yaml ([6c24132](https://github.com/continuedev/continue/commit/6c24132fab5b1c828aeb2e162c0f07ab6c830d0d)) +* binary ([8f24197](https://github.com/continuedev/continue/commit/8f2419740044a5df2ca70905c2b9ecd0fef3389e)) +* broken build ([d09711a](https://github.com/continuedev/continue/commit/d09711ab5895aca1c91552e7d9140b3aa0535d77)) +* broken help center quickpick ([a83526d](https://github.com/continuedev/continue/commit/a83526d6a49df6589d107695f99c03d02b68629c)) +* broken imports ([5fd8d2c](https://github.com/continuedev/continue/commit/5fd8d2cae5926418116031dbab8ce9465bc4c8f9)) +* broken imports ([f60009c](https://github.com/continuedev/continue/commit/f60009c2ea7c1c1a980152e5aa3cda17c3f6e64d)) +* broken JB build ([0e2587c](https://github.com/continuedev/continue/commit/0e2587cc71f497141ccd5fc807624eac80f8f183)) +* broken link ([6a675d8](https://github.com/continuedev/continue/commit/6a675d8edce1e430faa32b5142554bf61b843e0a)) +* broken schema config ([0529ae8](https://github.com/continuedev/continue/commit/0529ae8e1e4f61d83f2a4c43c9b9d23a84192ec9)) +* browse functionality ([ef5d753](https://github.com/continuedev/continue/commit/ef5d7535f0860978baeb337930f266b1201a7a5c)) +* build issues with jetbrains ([267961f](https://github.com/continuedev/continue/commit/267961f5b67f8f4529917fc43ebc1df88db92b51)) +* bump extension tester version ([006e1e4](https://github.com/continuedev/continue/commit/006e1e4b3bad2a8545a492cbeeb3238a1bf3345b)) +* bump node.js dependencies ([18fd7fb](https://github.com/continuedev/continue/commit/18fd7fbe58a03dfda382f755e261c5f16e88f38e)) +* cache ([368d264](https://github.com/continuedev/continue/commit/368d264d221793b7f2439678cef9b8b032135529)) +* caching ([1e7aa1a](https://github.com/continuedev/continue/commit/1e7aa1a879c80c0acddf09fbe0d887b7ec9bd31d)) +* change from llama3.1-8b to llama3.1:8b ([ea060a3](https://github.com/continuedev/continue/commit/ea060a37567af620cbdb8d665beb3f36cfeada6d)) +* chat tests ([7be3bb4](https://github.com/continuedev/continue/commit/7be3bb4161e7a17f7b0ae6e8d3ce365479e70dde)) +* ci ([1f47f54](https://github.com/continuedev/continue/commit/1f47f5436dde900b04cf1b307efa64f0fecebd59)) +* ci ([f6f2633](https://github.com/continuedev/continue/commit/f6f263375be129e438ab46a3ddbbba0722d3eb24)) +* ci ([fa9f86b](https://github.com/continuedev/continue/commit/fa9f86b6fd9ddb8cfab7dc52772c9f5a0623d654)) +* CI checks + fix for broken config-yaml types ([2032a8c](https://github.com/continuedev/continue/commit/2032a8c31ce9f30a5996a0fa6566d840a1eae21b)) +* ci e2e tests ([ade32d4](https://github.com/continuedev/continue/commit/ade32d428c5ef0fc8f5daefd52571b95387002f3)) +* ci tests ([27d20eb](https://github.com/continuedev/continue/commit/27d20eb08b25b142a54641048670b036e201ea1d)) +* circular state in redux selector ([5921bfa](https://github.com/continuedev/continue/commit/5921bfac67237dd4ea34dc1aad7856b220adf062)) +* cleanup model select ([1933a29](https://github.com/continuedev/continue/commit/1933a29ec4536d4887130703f1b0f94c3cd3db8d)) +* Clear all diff blocks before streaming and ensure dispose is run on EDT ([41357cd](https://github.com/continuedev/continue/commit/41357cd00c72b61cd54b80aa3963d047c0bb4184)) +* Clipboard is not available in chat window ([ef26b7c](https://github.com/continuedev/continue/commit/ef26b7c80eb0cc503017df8b9abd634f868a9b89)) +* close extension after tests ([575a707](https://github.com/continuedev/continue/commit/575a70721b39e41bfe8b860824d5eb606ce29ba9)) +* close sidebar when cmd+l pressed on focus ([93c9507](https://github.com/continuedev/continue/commit/93c95075425179d27421c7b54d92c9235d914c3c)) +* Cloudflare Workers AI message handling ([7eff255](https://github.com/continuedev/continue/commit/7eff25595c6aa063db37fb2d5394447c8472ba20)) +* cmd+shft+l closes sidebar if focused ([#1638](https://github.com/continuedev/continue/issues/1638)) ([92b5c4c](https://github.com/continuedev/continue/commit/92b5c4ccf64a88c461bb32abc9ab02329651e6be)), closes [#1536](https://github.com/continuedev/continue/issues/1536) [#1456](https://github.com/continuedev/continue/issues/1456) [#1564](https://github.com/continuedev/continue/issues/1564) [#1576](https://github.com/continuedev/continue/issues/1576) [#1570](https://github.com/continuedev/continue/issues/1570) [#1582](https://github.com/continuedev/continue/issues/1582) [#1600](https://github.com/continuedev/continue/issues/1600) [#1618](https://github.com/continuedev/continue/issues/1618) [#1626](https://github.com/continuedev/continue/issues/1626) [#1637](https://github.com/continuedev/continue/issues/1637) +* code automatically expands after pressing enter ([42c02be](https://github.com/continuedev/continue/commit/42c02bed5fb61f925eb829cd8e7e39425225cc30)) +* codestral template ([d56a33e](https://github.com/continuedev/continue/commit/d56a33ea06f7c9724ffaef86d71bbb8d31840fc8)) +* colocation ([fb28272](https://github.com/continuedev/continue/commit/fb282727e92237f6b14e28e3538e04e13b837f1e)) +* colocation ([e1d227c](https://github.com/continuedev/continue/commit/e1d227cbc3ea56e607fce5c5ce585c2b901f6029)) +* comment out auto apply on MFE ([f61476a](https://github.com/continuedev/continue/commit/f61476a4936f364b4d0adc679da067d5f3ee8411)) +* completions ([a2f62da](https://github.com/continuedev/continue/commit/a2f62dad3b4df8a9a243964584eed148835a077b)) +* config error handling ([170676a](https://github.com/continuedev/continue/commit/170676a46149a4e507f827aa566f4b1d39344e2e)) +* config-types "useSuffix" to "useFileSuffix" ([fa3afd5](https://github.com/continuedev/continue/commit/fa3afd52e766c298a9bfa62c57e8a9b6e695b1d6)) +* **continue:** update context for slash commands ([cfac639](https://github.com/continuedev/continue/commit/cfac639e44ff5ba13960bbed6756047a90ed93f2)) +* convert `walkDir` to an async generator ([#1783](https://github.com/continuedev/continue/issues/1783)) ([6824497](https://github.com/continuedev/continue/commit/68244977d377e1706a20892abc059bf5cb70bc71)) +* copy ([5e122b7](https://github.com/continuedev/continue/commit/5e122b76b3cf5f0f511101bb1b2cea1349fa3a7a)) +* **core:** delete indexed docs if re-indexing ([acea620](https://github.com/continuedev/continue/commit/acea620043d2c48826266d4f1f73eaf42819f0c6)) +* **core:** remove eslint config and fix errors ([#1457](https://github.com/continuedev/continue/issues/1457)) ([3e1c06b](https://github.com/continuedev/continue/commit/3e1c06b41b7b90a0cad026c0ba0433fb1be6d277)) +* **core:** use `TextDecoderStream` for stream response ([#1498](https://github.com/continuedev/continue/issues/1498)) ([09d256a](https://github.com/continuedev/continue/commit/09d256ad562eda0919b9fa2853176319bf4eda36)) +* correct formatting ([cbb5c21](https://github.com/continuedev/continue/commit/cbb5c21f591e078df186fd86865830cb8971be03)) +* correct llama2TemplateMessages ([#855](https://github.com/continuedev/continue/issues/855)) ([f95a54d](https://github.com/continuedev/continue/commit/f95a54d9c29247680839129c54eae912ba5ca85d)) +* correct package.json update ([02968fb](https://github.com/continuedev/continue/commit/02968fb1551c0a26af75340641312e1f9f5a1102)) +* correct typo in stop sequence ([0dac76e](https://github.com/continuedev/continue/commit/0dac76edf5f35226cf6b3e99c83a7c02273cc05c)) +* corrected typo in the info Alert paragraph ([be55052](https://github.com/continuedev/continue/commit/be55052d230b50635c43727127ee776e67bd4c20)) +* cursor focus issue causing unwanted return to text area ([#1086](https://github.com/continuedev/continue/issues/1086)) ([c54cd7a](https://github.com/continuedev/continue/commit/c54cd7a26dd2e4e8743be86c6ac22dd1c8dca774)), closes [#1078](https://github.com/continuedev/continue/issues/1078) +* cursor position ([6284eee](https://github.com/continuedev/continue/commit/6284eeebef984ac1afd3846b606a7745c5dfb49d)) +* cycling through chat messages ([b3ac143](https://github.com/continuedev/continue/commit/b3ac14332e8bd89237dfa41847701e3378487145)) +* deepseek doesn't support 'https://api.deepseek.com/completions' URL currently. When user selecting code in editor, and then use 'CMD +I' command to let model to modify codes, 400 error happens. ([170b99d](https://github.com/continuedev/continue/commit/170b99d3261b7d2ef32ba9e03a51ac37bb1fb787)) +* delete all code_snippets ([b9114bb](https://github.com/continuedev/continue/commit/b9114bbdab90de0dd167c88b57bd96b27ad03524)) +* delete button default style ([5423d24](https://github.com/continuedev/continue/commit/5423d24c35c614b0970e472aafa1f1048bf0d970)) +* delete old docs index on force re-index ([#1778](https://github.com/continuedev/continue/issues/1778)) ([0d632ea](https://github.com/continuedev/continue/commit/0d632eabbfd512c813e65212c3f5765bbc3fc8c7)) +* dependencies ([384fb56](https://github.com/continuedev/continue/commit/384fb562e5aac023301d592a186982a4b575fe98)) +* dependencies ([8efb3be](https://github.com/continuedev/continue/commit/8efb3be1b1f2253f9a7fd3035d8f0055de8f426e)) +* dependencies ([cc063fd](https://github.com/continuedev/continue/commit/cc063fdd124d66515bdcb9e2c64f575b40cc99d8)) +* dependencies ([fccae87](https://github.com/continuedev/continue/commit/fccae8732e1a4f447ff0ab650e9ae717c2022ffc)) +* Desktop.browse on linux ([7a11446](https://github.com/continuedev/continue/commit/7a11446bfc5d4cb9c05f64f1377518456d30f530)) +* disable completions in the commit box ([2b611df](https://github.com/continuedev/continue/commit/2b611df53ba716c2b550ab3b275c571eed9d2c65)) +* disable indexing for unsupported CPUs ([a005aa7](https://github.com/continuedev/continue/commit/a005aa78ac75ac47be3e647e9e23b45eab7dafaf)) +* disable lancedb cpu check ([b496777](https://github.com/continuedev/continue/commit/b49677711b4340f57ba671bacda301138c2909fb)) +* Do not break completion for unsupported FS providers ([4d1a33f](https://github.com/continuedev/continue/commit/4d1a33fd794a7415b0cc3b8de1d349fbba5a01cb)) +* do not filter context providers if not in editMode ([b2182b9](https://github.com/continuedev/continue/commit/b2182b9c8568a38d3af179909fb305e1459f5276)) +* do not write to the cache if caching is disabled ([b29ed9d](https://github.com/continuedev/continue/commit/b29ed9d34aa7ae343a2fd0c767f315e46e9aa110)) +* docs and install dependencies task for new directory structure ([#551](https://github.com/continuedev/continue/issues/551)) ([6ef8ae6](https://github.com/continuedev/continue/commit/6ef8ae6d5ab7efb1e928ff6474b6ac7a804a34cc)) +* **docs:** contributing guide ([5a06dfe](https://github.com/continuedev/continue/commit/5a06dfe1fb865bed0ca76ff23816da6396a0b27d)) +* **docs:** correct openai api key name ([9cc25c1](https://github.com/continuedev/continue/commit/9cc25c18c9fff5fc6ac4d56153667b0e8311920c)) +* **DocsCrawler:** Add response.ok check and improve link splitting ([d613b5a](https://github.com/continuedev/continue/commit/d613b5a7da5ad15c8b4b7dfe949812045f69635c)) +* don't override embeddings model name with UNSPECIFIED ([bc79388](https://github.com/continuedev/continue/commit/bc79388634ebcfcf2e38aa240441f9939e9de85a)) +* don't return empty string ([403eb38](https://github.com/continuedev/continue/commit/403eb38b9e3e38c277daed4ac6a2b6ac54353570)) +* dont toggle models when toggling assistants ([5bd8dd4](https://github.com/continuedev/continue/commit/5bd8dd4cb759bbabc35bdc00c66d88e4a175f7a8)) +* double ssh retries ([c9e2ebc](https://github.com/continuedev/continue/commit/c9e2ebc4589f7a06e804daee7f2ce6d7b2b66ce2)) +* dropdown with the height of the sticky div ([#605](https://github.com/continuedev/continue/issues/605)) ([a8d6ff0](https://github.com/continuedev/continue/commit/a8d6ff04e43a81a3c76373469ffebdfcfa8ac9f2)) +* editor focus handling on click events ([#716](https://github.com/continuedev/continue/issues/716)) ([f1660a5](https://github.com/continuedev/continue/commit/f1660a533146c420253df6e2dec0e0d4a2a9ebf4)) +* Eliminate Uncaught TypeError in dev tools ([d342825](https://github.com/continuedev/continue/commit/d3428256543bcc5ab269df93c949b56df92793f2)) +* Empty file inserts incorrect content ([ba9027b](https://github.com/continuedev/continue/commit/ba9027baea44ca51d299804636771d1a084d5fa7)) +* empty last message ([d3f7795](https://github.com/continuedev/continue/commit/d3f7795e6133fe7452c0626e6a54fb229bacbd7b)) +* enable OSR for mac after validations ([db77b50](https://github.com/continuedev/continue/commit/db77b5020d9b93cb4a7504e213d81940dbee9eaa)) +* end thinking for reasoning models when request is complete ([5109685](https://github.com/continuedev/continue/commit/51096858ab1ddc2bee534c1ea848be2b4bdcfb3f)) +* ensure code preview uses one more backtick than in the selected code as a fence ([#742](https://github.com/continuedev/continue/issues/742)) ([9ce7770](https://github.com/continuedev/continue/commit/9ce7770066cf870d2d1f36883f5e867157373eda)) +* ensure template variables are only processed for stdio MCP servers ([99b1ab2](https://github.com/continuedev/continue/commit/99b1ab2ebe51b4678722703922ecca023afa911c)) +* Ensure that the state is cleared after refresh, and files->uris when the file changes ([abd8907](https://github.com/continuedev/continue/commit/abd890738111e51bf12a700f9e5e8e66a7c76235)) +* Ensure valid line index for highlighter ([f86c95e](https://github.com/continuedev/continue/commit/f86c95ebdbd1851bcbf0e6f22d18a348a8a154ed)) +* error ([4c7f918](https://github.com/continuedev/continue/commit/4c7f9182665a259fc6b9cf10c93e696e97400a2c)) +* error printing bug leading to uncaught err ([3af4d6b](https://github.com/continuedev/continue/commit/3af4d6b1edeac113499cc9626cea75a5083b1030)) +* exclude open-codestral-mamba from supported models ([c6591f8](https://github.com/continuedev/continue/commit/c6591f836ea73e1244a0e965111f7c599669d9fa)) +* **extensions:** schema for db ctx provider ([#1534](https://github.com/continuedev/continue/issues/1534)) ([6fdad55](https://github.com/continuedev/continue/commit/6fdad553b6ac7f64c1bb23617dbe313e16174a56)) +* failing azure llm test ([546b52a](https://github.com/continuedev/continue/commit/546b52a2df928687d56924f593108f5bb9235712)) +* failing test ([ec2a72d](https://github.com/continuedev/continue/commit/ec2a72dfabbe7bd9c220b18b55145f431e19f3bf)) +* failing test ([002ecc9](https://github.com/continuedev/continue/commit/002ecc9b519472e0968e9f227894f3143c87f1ec)) +* failing test ([07b6b0c](https://github.com/continuedev/continue/commit/07b6b0cbefe86f2efa5488a33060ee9eb9f20e4d)) +* failing tests ([88ccb74](https://github.com/continuedev/continue/commit/88ccb74f7e69cf816d27f15a318a42c11f6d2aa5)) +* failing tests ([cb2e0a7](https://github.com/continuedev/continue/commit/cb2e0a7c0e9330d9b79a3e9878c851b9eba92ade)) +* failing tests ([7b52ff7](https://github.com/continuedev/continue/commit/7b52ff74d4009cb85c32a5e9482bd3624931d21e)) +* failing tests ([8d29d41](https://github.com/continuedev/continue/commit/8d29d4158d0fe21b0c0c4722e8d23715acf9ebdf)) +* failing tests ([2b828b0](https://github.com/continuedev/continue/commit/2b828b0e7b455bf6b0f9ae5a6f6a705ab4cefe6a)) +* field name fix ([0de1a2f](https://github.com/continuedev/continue/commit/0de1a2ff8937452815311c806a038a7f6d75fdf8)) +* filepath replacements in prompt files ([#1939](https://github.com/continuedev/continue/issues/1939)) ([c0923a0](https://github.com/continuedev/continue/commit/c0923a0dd7ca3a6e9dcbd9b02bfc34250269d2ef)) +* fix [#709](https://github.com/continuedev/continue/issues/709) ([#712](https://github.com/continuedev/continue/issues/712)) ([9ae07cd](https://github.com/continuedev/continue/commit/9ae07cd711d011faaf9a79952c0e213a6aa72e87)) +* fix 100% indexing progress ([7f214ad](https://github.com/continuedev/continue/commit/7f214adcbdca33ebb7270f721fd57eeeb0bac1e8)) +* fixed misallignment in tests caused by linter ([15e93dd](https://github.com/continuedev/continue/commit/15e93dd5d0dc3b5dcd00504833beacbddbfe44f3)) +* format code ([1d000be](https://github.com/continuedev/continue/commit/1d000bec682d1d723bf6748f34c3dd86b684d775)) +* formatting ([9efd0e1](https://github.com/continuedev/continue/commit/9efd0e128ef464d45379e84abf15e98ad1b24d40)) +* formatting ([2284291](https://github.com/continuedev/continue/commit/22842919489ad272edfa182e9f8af3a26d9813ae)) +* formatting ([4d70d3d](https://github.com/continuedev/continue/commit/4d70d3dcbd646b1aa1cb6e586439459dec2db462)) +* free trial config.json updates ([905f064](https://github.com/continuedev/continue/commit/905f064543e71864eaeb4e039e5d55fe2da845fd)) +* fullscreen gui retains context when hidden, fixed fullscreen focusing ([#1582](https://github.com/continuedev/continue/issues/1582)) ([679e26d](https://github.com/continuedev/continue/commit/679e26d4a8a81402d57a64d819f347d9f56d42e0)) +* gemini tool calls with MCP ([9ca4ad4](https://github.com/continuedev/continue/commit/9ca4ad4afe04fbfc3a6e0e6d447dd81ff22b4369)) +* getting diff ([9431131](https://github.com/continuedev/continue/commit/9431131f1cbbc5fe742c033a8baf970241c63378)) +* **google:** remove unnecessary parameter ([#394](https://github.com/continuedev/continue/issues/394)) ([938c1db](https://github.com/continuedev/continue/commit/938c1db5b37d5332ff5d188f4fa79f3bc6b7549a)) +* grab PATH for mcp connections ([60ec3ac](https://github.com/continuedev/continue/commit/60ec3ac452f0b25d176728dfe6e83e4f34ade745)) +* grammar ([58feb0b](https://github.com/continuedev/continue/commit/58feb0b8622e5f64737594ccbfd94aff2e9687c5)) +* **gui:** ctx rendering w/ renderInlineAs: "" ([#1541](https://github.com/continuedev/continue/issues/1541)) ([8a92f43](https://github.com/continuedev/continue/commit/8a92f4312693549a1590e99c70152b843d59b119)) +* **gui:** passing style props on StyledTooltip ([41e1eb5](https://github.com/continuedev/continue/commit/41e1eb582bec8676fc973c3a2b76259344fbb317)) +* **gui:** typo ([3d53809](https://github.com/continuedev/continue/commit/3d5380908292bb4373a122a802f2011dd0283f62)) +* handle apiType for azure w/ proxy ([036e196](https://github.com/continuedev/continue/commit/036e19618b86600e4e9c5ad6e6ee5a98e55e15f1)) +* handle closed webview on quick edit ([#1942](https://github.com/continuedev/continue/issues/1942)) ([fe05db5](https://github.com/continuedev/continue/commit/fe05db541dafc45c9870d52d9f15e812e1ea90ad)) +* handle deleted blocks ([c1157db](https://github.com/continuedev/continue/commit/c1157dbf02f6750d385b28006c90202e6b159d5a)) +* Handle empty addedLines in revertDiff ([f280319](https://github.com/continuedev/continue/commit/f28031902f41c4ae9f7cab01398216272950b7d0)) +* handle line removal diff ([#1744](https://github.com/continuedev/continue/issues/1744)) ([6126eca](https://github.com/continuedev/continue/commit/6126eca35ab981c7b8cd6a56769dfe7cb9e69349)) +* handle optional params in EditSlashCommand ([#745](https://github.com/continuedev/continue/issues/745)) ([0141229](https://github.com/continuedev/continue/commit/014122957ff6e087b03def436b95797e59c6f6cb)) +* Handle status update in DocsService ([ac3df81](https://github.com/continuedev/continue/commit/ac3df814e45343b07f63c99e8710f4a6b185074e)) +* handle when dir might be a file path ([e43d3bd](https://github.com/continuedev/continue/commit/e43d3bda6aa833bfe686b8c84dfa64d43fa08748)) +* hardcode `fontSize` for tool call status msg ([f78969b](https://github.com/continuedev/continue/commit/f78969b147a8aecb5c9e5162d080cdafb3f4adb7)) +* hmr issues with non-react component exports ([0e55c08](https://github.com/continuedev/continue/commit/0e55c08be3ef5dcaec5305f41ae871ae6903b6c7)) +* hotkey for new session ([#572](https://github.com/continuedev/continue/issues/572)) ([1d3acd9](https://github.com/continuedev/continue/commit/1d3acd9f194802d78c99cd407bcb72543aa0ff19)) +* **HttpContextProvider:** support all possible local servers via a library ([c3b2552](https://github.com/continuedev/continue/commit/c3b2552ed5e47eef8dc2a691d5f76f30b61ceafd)) +* if rules ([a6dd5a8](https://github.com/continuedev/continue/commit/a6dd5a83dedcae099f320a2da9362490eadde299)) +* ignore CSV files ([#1972](https://github.com/continuedev/continue/issues/1972)) ([1272f34](https://github.com/continuedev/continue/commit/1272f3402a1fc12e5eb0566ad4a4aadc3db7dc06)) +* Implement RepoMapContextProvider ([48c442d](https://github.com/continuedev/continue/commit/48c442d1c687b15d5612786e87a09b016714abd6)) +* import posthog as type, use inline import ([57a84dc](https://github.com/continuedev/continue/commit/57a84dcfe16e3cdebea54f7a0b0fe354f0d8ad2b)) +* Improve error handling and ensure coroutines continue correctly in case of failure ([46bd573](https://github.com/continuedev/continue/commit/46bd573a4296bb8ce8dc4c43b7293ff575655e53)) +* improve textarea ux ([#1901](https://github.com/continuedev/continue/issues/1901)) ([228bc30](https://github.com/continuedev/continue/commit/228bc30e895b87e06c170775974c49e2781d9ae0)) +* include access to the Documents folder ([03839c3](https://github.com/continuedev/continue/commit/03839c30813f3242d9a1fce91f39af110d8d85a7)) +* incorporate feedback ([98efbbd](https://github.com/continuedev/continue/commit/98efbbd80f075928a45334f8cc4103221c2656c9)) +* incorrect scroll logic on inline edit ([ed3af3f](https://github.com/continuedev/continue/commit/ed3af3f3fc49f6678d8a1f940d06aa62bec1f4b5)) +* intellij freezing ([1f602e5](https://github.com/continuedev/continue/commit/1f602e53c29eb28d98754252823ad8f40f839d1b)) +* isRuleActive ([2b97efe](https://github.com/continuedev/continue/commit/2b97efe5c6d045b461c76068c0e06df298d95902)) +* issue 3732 ([ce5d664](https://github.com/continuedev/continue/commit/ce5d664f828de8681ee7129dfec3c16cad667c46)) +* **JB+GUI:** arrow keys in GUI on linux ([9110904](https://github.com/continuedev/continue/commit/9110904e7d4f727339666ce235388397b8c4ff99)) +* **jb:** meta keybinding issues ([b4dad78](https://github.com/continuedev/continue/commit/b4dad78a727feed0ce18769a8d3f9cfd00a3bd57)) +* **jb:** remove markup from `edit` model title ([f6d334a](https://github.com/continuedev/continue/commit/f6d334a190bf1132c33a68f472aaeb2e5389399f)) +* **jb:** set `setOffScreenRendering` conditionally ([fd66ff7](https://github.com/continuedev/continue/commit/fd66ff7d464d3138a127e2035bca88f6d42c4402)) +* **Jira Context:** add api abstraction ([cc9b960](https://github.com/continuedev/continue/commit/cc9b96038bb0b88156729d1c39e6eec1794fe76a)) +* jira ctx provider ([9d24d34](https://github.com/continuedev/continue/commit/9d24d3402f3e9f9937bfdff70fa5c4fa120b2dbf)) +* keyboard shortcuts test on linux ([e45aa16](https://github.com/continuedev/continue/commit/e45aa164c64a52936c7dd1c0467548aadf821639)) +* layout alignment ([#1779](https://github.com/continuedev/continue/issues/1779)) ([6e8fc12](https://github.com/continuedev/continue/commit/6e8fc1247c44c344a48db9758437cb7b3028591c)) +* lint ([f575721](https://github.com/continuedev/continue/commit/f575721980a596cdb08be8a2e472ca26e6012325)) +* lint ([3ba1153](https://github.com/continuedev/continue/commit/3ba1153243753682ca19b26031c2c3c73394b5f2)) +* lint ([03cd1a3](https://github.com/continuedev/continue/commit/03cd1a338f03fc1baa87feb02bd6e56111fc0b13)) +* lint ([747d380](https://github.com/continuedev/continue/commit/747d3806a99abf7f55823c2fbc06c74448ba3c1c)) +* linting error ([67ab058](https://github.com/continuedev/continue/commit/67ab05821191d75a201e516b725a679671f94734)) +* linux key ([9618327](https://github.com/continuedev/continue/commit/9618327cf45687f18aacdc04d62da86ce2d1e520)) +* linux test env ([9f2f9d8](https://github.com/continuedev/continue/commit/9f2f9d895b2fe6678f49e394e4657f044e2aef2a)) +* listbox z-index issue ([1d2bfcd](https://github.com/continuedev/continue/commit/1d2bfcd4b2ad7c3afef97348c55a1c668610ea07)) +* listDir ([a41a4bd](https://github.com/continuedev/continue/commit/a41a4bd2df5807bd216a4b23eabe8656ca098cdb)) +* **llm/Ollama:** changed buffer handling like in streamChat() ([f1f8967](https://github.com/continuedev/continue/commit/f1f8967b6c4b422428fcad0575c0b24ae78bf34a)) +* load last session when completing edits ([1e33400](https://github.com/continuedev/continue/commit/1e334008c08eb8796510ba6aaac434073c44b3b8)) +* local build script ([#810](https://github.com/continuedev/continue/issues/810)) ([76fe78a](https://github.com/continuedev/continue/commit/76fe78a1a3c05b0d6dd5ed6d15575e20e797cfa6)) +* log llm completition in edit command ([3094180](https://github.com/continuedev/continue/commit/30941800b04c59b9a45375d6934a4fb79cac0141)) +* logs ([e3cf75e](https://github.com/continuedev/continue/commit/e3cf75e0779d3bc02a468ea6551e2499979c08f7)) +* mac build issues ([9946a5c](https://github.com/continuedev/continue/commit/9946a5c05f85d20e2d766719a861eb0f8a55019c)) +* major fixes to getTheme ([c6002ba](https://github.com/continuedev/continue/commit/c6002ba2ac905bd5439173e6430676bdc3594a87)) +* make `env.apiVersion` required for azure openai ([4355618](https://github.com/continuedev/continue/commit/4355618079808bdfc3240022e79a0a9dd8457b02)) +* matching context code ([64fb928](https://github.com/continuedev/continue/commit/64fb928b8ff9c0f7753a8b8d374abc179de1f4d5)) +* mcp context provider bug with issue 2467 ([98f07be](https://github.com/continuedev/continue/commit/98f07bef818cf5acc4de2828cbeaa0b4b499fc53)) +* MDX compilation issue ([aca82d2](https://github.com/continuedev/continue/commit/aca82d2ef36a5bd57119343790875e2acf7819b3)) +* merge bugs ([009e578](https://github.com/continuedev/continue/commit/009e578416982a90af05539420a7137ccd2d03c1)) +* messages ([0b07020](https://github.com/continuedev/continue/commit/0b07020d7dd9bf59ca1d804668a215174273625b)) +* minor issues ([#581](https://github.com/continuedev/continue/issues/581)) ([570f61d](https://github.com/continuedev/continue/commit/570f61de5a404559b4ff69eb5cd2fa216e70e872)) +* missing arguments ([452b242](https://github.com/continuedev/continue/commit/452b2422d18c05dd28dbfa6fd127f4c3e0b0223c)) +* missing cd ([0d88b8f](https://github.com/continuedev/continue/commit/0d88b8f379d161962a72626fe2af583cce0f3fe0)) +* missing Content-Type header in OllamaEmbeddingsProvider ([#1855](https://github.com/continuedev/continue/issues/1855)) ([841294d](https://github.com/continuedev/continue/commit/841294d15f3ad6ea4a9f7cf277fbcb905d9bd978)) +* missing context items ([bdc2ec8](https://github.com/continuedev/continue/commit/bdc2ec8374ac9e7d14fc440ea80fa438005735e8)) +* missing env ([1ebd3a3](https://github.com/continuedev/continue/commit/1ebd3a31bab5ed31374518022c5f1b7658c379f2)) +* missing package ([e284cec](https://github.com/continuedev/continue/commit/e284cecd6584b14bee43794d0d238d64c734a10a)) +* missing useLegacyCompletionsEndpoint in yaml schema ([a4b4395](https://github.com/continuedev/continue/commit/a4b4395649e9fa7888f8204ddcf56b88632b5b90)) +* model name ([b1ec201](https://github.com/continuedev/continue/commit/b1ec2012c649ff29e84d6682234328e9c2fdb792)) +* models and mode are not synced ([57441da](https://github.com/continuedev/continue/commit/57441dad6696eeb6d4bd6d769aec06e389367a53)) +* modify access modifier public to private ([c36f233](https://github.com/continuedev/continue/commit/c36f23322265a0d9c28eb401acf49d76294a1249)) +* move autocomplete logic off of EDT ([c46083d](https://github.com/continuedev/continue/commit/c46083d4115a79938bc6ae2b9421f36803b0a992)) +* naming ([ba39842](https://github.com/continuedev/continue/commit/ba3984290ddb875608845904d31c5a5d57b1bf03)) +* naming ([42a03ad](https://github.com/continuedev/continue/commit/42a03ad020634a7c6be719a70bf40144582682dc)) +* naming ([fb1a75d](https://github.com/continuedev/continue/commit/fb1a75dcf33fa38863bda4f5b88c1a567aaf0269)) +* navigation bug ([fab5347](https://github.com/continuedev/continue/commit/fab53472a931b49d7f0c19af22263df6b54bc292)) +* not sure how that button fragment got there ([880f1de](https://github.com/continuedev/continue/commit/880f1de80d2bc33635cc9ebed01ae84e2c17c640)) +* number of completions to generate is not supported ([db90b09](https://github.com/continuedev/continue/commit/db90b0954b36e856258eed2b61af8bf107f13510)) +* old docs ([b52910b](https://github.com/continuedev/continue/commit/b52910b43351e5df8c07cfb27beca8fba5463074)) +* ollama tool use ([82ac684](https://github.com/continuedev/continue/commit/82ac6848cabca21122995460328b8f4420ae3222)) +* onboarding telemetry ([445dba3](https://github.com/continuedev/continue/commit/445dba3bb60654ac9c3f8d245f896d490574c3a1)) +* only alert free trial if using free trial ([f0e73ef](https://github.com/continuedev/continue/commit/f0e73ef63a8fd8bb7ce313f9ed5439c7c68969bf)) +* only perform lancedb cpu check for linux ([e0ee7d1](https://github.com/continuedev/continue/commit/e0ee7d1e446b18c05ed3166b0aa3b199ec021f1a)) +* open new session from any page ([258bbc6](https://github.com/continuedev/continue/commit/258bbc6b5cbbd3b897e8045df247bb2a1fc21f94)) +* overly eager suffix matching ([556a8c5](https://github.com/continuedev/continue/commit/556a8c5ee3f72311a384c64ba14fde7122e68741)) +* path ([d01f243](https://github.com/continuedev/continue/commit/d01f24309b490799014dca0fd03775c39745d660)) +* path ([3ecc89e](https://github.com/continuedev/continue/commit/3ecc89eaf55b970e1a494f88fed0850c4b85c565)) +* pathing issue in jb ([c33e390](https://github.com/continuedev/continue/commit/c33e390427e459a5426ee7669733c2b407649e40)) +* pause between tests to avoid db lock ([4cb84c1](https://github.com/continuedev/continue/commit/4cb84c11b09dac6eb0791e35b95ff6f571130391)) +* placeholder ([8ded13a](https://github.com/continuedev/continue/commit/8ded13a8f8e54df4951b547d468782117fb11b8b)) +* policy precedence ([de6a0ae](https://github.com/continuedev/continue/commit/de6a0ae36c43753e768bf0164dfbe1b938da790d)) +* preserve indentation in code blocks ([#1554](https://github.com/continuedev/continue/issues/1554)) ([574a392](https://github.com/continuedev/continue/commit/574a3923a6f97d8995561da3654aae3aca9ae439)) +* preserve system messages as user messages ([d60a1c1](https://github.com/continuedev/continue/commit/d60a1c1b1f3174cd501eca69746009bdeb4c6f7f)) +* prettier ([4d278e4](https://github.com/continuedev/continue/commit/4d278e479ae02f0d02ccff8db2448d6b38b3d3e5)) +* prevent autoscrolling on new tool msgs ([678a75f](https://github.com/continuedev/continue/commit/678a75f8f7b97b0f75407c6e1b1dd78c415d22eb)) +* Prevent duplicate context provider addition ([2d6eacb](https://github.com/continuedev/continue/commit/2d6eacbeab8eb89ddc32311ade4efe3ccb272bca)) +* Prevent multiple resumes in continuation ([1e96bfb](https://github.com/continuedev/continue/commit/1e96bfb9683fa0a45437f16b419be066917351cb)) +* Promise arrays being returned. Added a new definitions-only context provider. fix: typescript tagging. ([#835](https://github.com/continuedev/continue/issues/835)) ([00eeb00](https://github.com/continuedev/continue/commit/00eeb0024178953172941bba293808be4ca5eed2)) +* prompt format ([0f6d280](https://github.com/continuedev/continue/commit/0f6d280234c459e1935b62e5244f4577d64fac53)) +* promptblock parsing ([eb6735e](https://github.com/continuedev/continue/commit/eb6735ee25da93e01a7b09223960b8975b41d898)) +* Properly ignore ignored folders when generating /onboard context ([f7bca6a](https://github.com/continuedev/continue/commit/f7bca6a61d56b6e17b100294e605d0e2bbe0239b)) +* protocols ([c8a24c0](https://github.com/continuedev/continue/commit/c8a24c0c9040a0da02bdd215b77b0320c160256f)) +* qwen completions missing whitespaces ([75dce9c](https://github.com/continuedev/continue/commit/75dce9cbd14cc374d1ce4921522f3423202be7b1)) +* **reg:** :ambulance: remove log except when in NODE_ENV === "test" ([f60fd1c](https://github.com/continuedev/continue/commit/f60fd1c6188567c67d3d8285fd6c2c5d6acc5bfa)) +* regex ([05a3eec](https://github.com/continuedev/continue/commit/05a3eec21ed1c26aa4d9825e6be5e209cdb9563c)) +* reject logic ([5944fca](https://github.com/continuedev/continue/commit/5944fca7374851869e469ed1cd3f13056de5c8b3)) +* remove `any` from promptTemplate passing ([7834d26](https://github.com/continuedev/continue/commit/7834d266330625915542913f2d44ac0d80875d7e)) +* remove debugger statement ([3e4c75b](https://github.com/continuedev/continue/commit/3e4c75bf461c36c2200ac2922670bb76a612b292)) +* remove deugger ([3e8e29e](https://github.com/continuedev/continue/commit/3e8e29e8f2ce18e138df64441e436d3a07ffa45e)) +* remove duplicated context comments ([0c217a4](https://github.com/continuedev/continue/commit/0c217a40082c2c244de4f4f8c955d96314f130da)) +* remove gifs from media ([77d321f](https://github.com/continuedev/continue/commit/77d321ff82dcd34b55d0a0253eb45672be774fe1)) +* remove invalid schema ([2355eb6](https://github.com/continuedev/continue/commit/2355eb62a5c3c5034b528ab17e8ad7a0b661bc7c)) +* remove mismatch between last selected profile and current profile ([d9eb118](https://github.com/continuedev/continue/commit/d9eb118c514fc2a4364f532eb6438588fc9f712c)) +* remove some backup files generated by pkg if present ([#1287](https://github.com/continuedev/continue/issues/1287)) ([9f160ad](https://github.com/continuedev/continue/commit/9f160ad11a1d36bfc92d2da2a8ea31721652b3e4)) +* remove stale code ([cd97833](https://github.com/continuedev/continue/commit/cd97833be88ecaf3c2860dc41ca57c9e2b18ad48)) +* remove testing logic ([5df8177](https://github.com/continuedev/continue/commit/5df81770df526c69dd71f2421a9052deb17accf6)) +* remove tooltips when switching files ([200d291](https://github.com/continuedev/continue/commit/200d29103ea97db06283f2d4b5e0eb9b6afb86df)) +* remove unnecessary baseUrl ([5f159fb](https://github.com/continuedev/continue/commit/5f159fbd81c4b8680cbad8b3875aa54e2079928e)) +* remove unused argument ([7dd2c22](https://github.com/continuedev/continue/commit/7dd2c22632d50726271655d5c5d027a8219e6862)) +* remove unused imports ([1b82d39](https://github.com/continuedev/continue/commit/1b82d39ac5b8e0cfb990a4968b3e8bc81af768ce)) +* rename edit folder ([ab1ad0a](https://github.com/continuedev/continue/commit/ab1ad0ae48eeceee87043cae9a7862a1c4f70da0)) +* replace null with empty string in getSidebarContent function ([#822](https://github.com/continuedev/continue/issues/822)) ([50d1188](https://github.com/continuedev/continue/commit/50d1188479be206d1a4ed5dcd258d4101ae4f8ba)) +* report indexing errors in webview ([6a67514](https://github.com/continuedev/continue/commit/6a67514fcf108bd0eb6989777abaed02ce2e61e7)) +* reset config errors ([cc199c2](https://github.com/continuedev/continue/commit/cc199c28634d006d38416533b06f26e001cea3fe)) +* Resolve proxy error when adding Azure OpenAI model ([17dbfe6](https://github.com/continuedev/continue/commit/17dbfe6bfd38f67b7cb535da00fa626cdaf4f690)) +* Resolve type error in env comparison ([45eacf4](https://github.com/continuedev/continue/commit/45eacf4ebbd99a97eef32eef01d780a1f8c57b7a)) +* Resolved errors related to incorrect URIs ([0a7da20](https://github.com/continuedev/continue/commit/0a7da2067e8d8567084d05f69038b7ca95464d1f)) +* restore all e2e tests ([d3a6eeb](https://github.com/continuedev/continue/commit/d3a6eebeb7b5d96133d1c13e533913dc5ec2f19c)) +* restore cache ([91ea00d](https://github.com/continuedev/continue/commit/91ea00d284227f3875daf17591b15409004372ac)) +* restore comments ([067a3a8](https://github.com/continuedev/continue/commit/067a3a843baf5a0e12bd5b6f21f37a504836286c)) +* restore tests ([553c751](https://github.com/continuedev/continue/commit/553c751562afb736fb914549ba3d2c75e5a4b305)) +* return ctx items from prompt file ([84df7f4](https://github.com/continuedev/continue/commit/84df7f45bf91c70da79901c0a44cc3b156655f6f)) +* revert file changes ([7a44a38](https://github.com/continuedev/continue/commit/7a44a38c860cfbd0eeab35d8fdb3cb198edad680)) +* Revert filepath changes ([3df34b7](https://github.com/continuedev/continue/commit/3df34b725e873fcd42058474d83ef634e21d5cad)) +* revert launch.json change ([b3abfb8](https://github.com/continuedev/continue/commit/b3abfb80d71c16a0e51cc980d4262dbd218d6463)) +* reverted the url of llama.cpp back to 'completion'. ([e8523a2](https://github.com/continuedev/continue/commit/e8523a2b07c7a5d1539138ee8e4a4836fea7a36b)) +* rules ([bcae5b3](https://github.com/continuedev/continue/commit/bcae5b3cf210f1a8ced3b2c913961ed16aaf2ea9)) +* rules ([9e57412](https://github.com/continuedev/continue/commit/9e57412fe161a9451aaaa651a9f9ed2d7b6b5517)) +* rules ([f29110f](https://github.com/continuedev/continue/commit/f29110f98b1c71f4832d6b7ff0041e342e2a0c4a)) +* rules ([b39cb83](https://github.com/continuedev/continue/commit/b39cb836ad6180226d39abe85f5637a6e2dac44d)) +* sanitize lance table names ([5d3b2cb](https://github.com/continuedev/continue/commit/5d3b2cb5070505578cc16e67d2309a40a403bc94)) +* scaffolding for future language syntax highlighting ([647656c](https://github.com/continuedev/continue/commit/647656cd3d007c016bea372bdfcb5d69f9d1d52a)) +* scroll issues w/ code blocks ([#1688](https://github.com/continuedev/continue/issues/1688)) ([ceb8da0](https://github.com/continuedev/continue/commit/ceb8da0b20db70707a3443ff6f705bba6922488d)) +* scroll to the bottom on history change ([b94ccc6](https://github.com/continuedev/continue/commit/b94ccc6db557f705ba4f810ed56c55ce21f383dd)) +* selected profile id writing to global context in org profile rectification ([47755d1](https://github.com/continuedev/continue/commit/47755d1cba3b8c7cb5c0b9a19bf8ca0a92eec850)) +* selector for `isSingleRangeEdit` ([badeb1c](https://github.com/continuedev/continue/commit/badeb1c88b7e1f8eb711a8a2cfc8f341ac22f67e)) +* send feature flags ([2e3fdb3](https://github.com/continuedev/continue/commit/2e3fdb34e2e2358232cc12fcf0a0c2d16a3ef0cc)) +* serve to localhost ([7eccf2d](https://github.com/continuedev/continue/commit/7eccf2ddb9308111686251474fb79fa03dfc87d6)) +* set DEFAULT_CONTEXT_LENGTH to 8192 ([f163768](https://github.com/continuedev/continue/commit/f1637685c651180d1fc969c2f11712fda69eb9ee)) +* settings persistance ([56f3803](https://github.com/continuedev/continue/commit/56f38038b35cedc2aa1bca1b09780b21c811bd83)) +* setup ([6a93eae](https://github.com/continuedev/continue/commit/6a93eaeb0faf685dff216ecca850f9b2ef3cf2c3)) +* show error is GH sign in failed in vscode ([e92e052](https://github.com/continuedev/continue/commit/e92e052b16fb91173aa4dc85d4e80fa569b8e60a)) +* sign in ([fa5d2c5](https://github.com/continuedev/continue/commit/fa5d2c5aa2cdcc580486f81fde3ae69e9d3069e5)) +* sign in btn + colors ([1b669bf](https://github.com/continuedev/continue/commit/1b669bf80e2d81e4aa19c4d3f2dca730ddd6d4f8)) +* Skip duplicate checks at document end or blank text ([decd04e](https://github.com/continuedev/continue/commit/decd04eddd4965b9f76c7a9a3abd276d8d2e1692)) +* snippets in fim prefix ([51e1c42](https://github.com/continuedev/continue/commit/51e1c4216baa38d73141aca1d1e681eabf044b4b)) +* some typos ([#478](https://github.com/continuedev/continue/issues/478)) ([775d051](https://github.com/continuedev/continue/commit/775d051b4bcdbe07fbd38fae4d3e36e79234eb56)) +* spread tool degs ([4ddd275](https://github.com/continuedev/continue/commit/4ddd2755996012677c15069648158bd4334fa3dd)) +* sqlite binary build on fresh clone ([#1433](https://github.com/continuedev/continue/issues/1433)) ([d124aa0](https://github.com/continuedev/continue/commit/d124aa0534303b58b55bcc2de4ec460b4f499178)) +* stream ([c497517](https://github.com/continuedev/continue/commit/c49751713248e27f060b6eee11179e13b14c5adf)) +* system message ([c2707c6](https://github.com/continuedev/continue/commit/c2707c6988a9b6368f183f0602de0cc2872726da)) +* test ([7266efb](https://github.com/continuedev/continue/commit/7266efb4e8490accd69ad5818bd9c35fe6f59e5c)) +* test env path ([71a151f](https://github.com/continuedev/continue/commit/71a151f399d514497ee917eca521863d07b2a270)) +* test timing ([878e211](https://github.com/continuedev/continue/commit/878e2116d6a97c31cad97432d785aaf3b6deb196)) +* tests ([35c674c](https://github.com/continuedev/continue/commit/35c674c724c21c6dc0b699a37f868e68c62f1259)) +* tests ([cafb2e9](https://github.com/continuedev/continue/commit/cafb2e93c7a54b4a35ecc8a209f53982b3cc26d4)) +* tests ([b786591](https://github.com/continuedev/continue/commit/b786591415d79119845e01376bf5dc97c0676b23)) +* tests ([ff543e8](https://github.com/continuedev/continue/commit/ff543e8b321e4e48a088ba296ebac4504b97356b)) +* tests ([81acb44](https://github.com/continuedev/continue/commit/81acb446019a773ce2df98467e4dcb8e5c2a428e)) +* tests ([deea8f1](https://github.com/continuedev/continue/commit/deea8f1f44403b6d7d7bb4236ff5acb8d38bca01)) +* The selected item in inline chat is always the first one ([97bc074](https://github.com/continuedev/continue/commit/97bc07453ba067f0438192d8dc6cc1cc9a86d962)) +* timeout ([b9f161f](https://github.com/continuedev/continue/commit/b9f161f6d8b4e7400dff25912881f41f472a9137)) +* timeouts ([0bf9169](https://github.com/continuedev/continue/commit/0bf9169a968a42dfc083696b3e8be5f1997ad7e5)) +* timeouts ([0c4d9eb](https://github.com/continuedev/continue/commit/0c4d9eb819b9f1a41cddd7d0b84dc0e21ee372e9)) +* timeouts ([4c90f3b](https://github.com/continuedev/continue/commit/4c90f3bdd32761b7f34a6f05334dffc085805964)) +* tip tap undo and redo ([88e34fb](https://github.com/continuedev/continue/commit/88e34fb69caae3750621f9f93253a7425535928f)) +* tool use call ([c73f72f](https://github.com/continuedev/continue/commit/c73f72fbb379dae08aa41ac07608d9dc2aa8bc83)) +* transpile dynamic imports to cjs ([#1975](https://github.com/continuedev/continue/issues/1975)) ([1e3e8eb](https://github.com/continuedev/continue/commit/1e3e8ebe408de1bbb5f9fe0dc61fefef3b85ca69)) +* truncate `tagToString` to max filename len ([afb6bd0](https://github.com/continuedev/continue/commit/afb6bd0fb53505e29e961f5a78f0afe36c3b3071)) +* ts ignore declaration file issue w/ dbinfoz ([#1945](https://github.com/continuedev/continue/issues/1945)) ([477ecd6](https://github.com/continuedev/continue/commit/477ecd63acc85be25ec992d4329f6460c42c6785)) +* tsconfig ([8549981](https://github.com/continuedev/continue/commit/8549981e200e7e62f4a5895babc1c87c45b59db0)) +* type errors ([f976e54](https://github.com/continuedev/continue/commit/f976e54dc3b2b8072aef3ecadf259ee1e5299956)) +* type errors ([f575a36](https://github.com/continuedev/continue/commit/f575a3683c499f04766ac68af6b8e214ed2c3514)) +* type errors ([cd82f4c](https://github.com/continuedev/continue/commit/cd82f4c61fdff90c8ed0e845a3b2ee8b0ce1be9d)) +* type errors ([ea6b234](https://github.com/continuedev/continue/commit/ea6b2344d0b2cde7def58de549e604142a40a353)) +* type errors ([f19b6b8](https://github.com/continuedev/continue/commit/f19b6b8abdb4dfb64c804efee851dee0bb00471c)) +* type errors ([5c49505](https://github.com/continuedev/continue/commit/5c49505f2071504481c17976670d883efebddb4a)) +* type errors ([cdc9600](https://github.com/continuedev/continue/commit/cdc9600e689161877ff7416f63baa9dcbfa6c18a)) +* type errors ([7ee4d8d](https://github.com/continuedev/continue/commit/7ee4d8db505924a4d0edd5ef3ac49f4bb9a706b6)) +* type errors ([70ae585](https://github.com/continuedev/continue/commit/70ae58594cd136e16a53fcfde88a227dbec1104f)) +* type errors ([34489b1](https://github.com/continuedev/continue/commit/34489b14de0fc1c5cfb300a624b3b8571372e532)) +* type errors / formatting ([9dba473](https://github.com/continuedev/continue/commit/9dba4730b958e05ffad6e0bab74effefd228cd6c)) +* types ([7b9c5cc](https://github.com/continuedev/continue/commit/7b9c5cc4f062e2882706919b1effe34a460f45b8)) +* types ([82cad59](https://github.com/continuedev/continue/commit/82cad596c85d0ee0b17ceccdf1f6cca5811b8f94)) +* types ([5faecca](https://github.com/continuedev/continue/commit/5faecca09f27a7490b4050b7191197c74fe38299)) +* types ([be27552](https://github.com/continuedev/continue/commit/be27552e3330b3a18ecb1065b6ab7210a4375826)) +* types ([4b120e5](https://github.com/continuedev/continue/commit/4b120e543e7c2cec0d33714cfebe88800604fbfd)) +* types ([44212e4](https://github.com/continuedev/continue/commit/44212e45828bb72c035bf63de4c13342935dcf0f)) +* types ([72b253d](https://github.com/continuedev/continue/commit/72b253d14faf2d19832b0307fb4fba1e9aed11dd)) +* types ([a88f5d7](https://github.com/continuedev/continue/commit/a88f5d771ced366926c9d6d821c697e52847a2f9)) +* types ([41a7916](https://github.com/continuedev/continue/commit/41a79166aadc2bbbe80145d12bfeb1336d94c7e2)) +* typo ([be874ad](https://github.com/continuedev/continue/commit/be874addb463f7db81c43b52f6e69f9de1c11fa3)) +* **typo:** customize overview doc ([d4dfb69](https://github.com/continuedev/continue/commit/d4dfb699af1f5bffc923a5d850f877ed45ad74a6)) +* undefined in title ([dcdfa59](https://github.com/continuedev/continue/commit/dcdfa59db43ae4e864e5cb1ca04b6804cca64d2f)) +* unnecessary dependency ([ade83fd](https://github.com/continuedev/continue/commit/ade83fd0c6b3f2d3bb8175b6bdbdc0a6e9735c5b)) +* unnecessary scroll delay ([183ae03](https://github.com/continuedev/continue/commit/183ae03ee37ba6629201211e9a63fbcb04ebc527)) +* unset system message ([4480ee3](https://github.com/continuedev/continue/commit/4480ee3ac358e60182304e0e052c27ae45815e2f)) +* update adf2md package ([ecbc123](https://github.com/continuedev/continue/commit/ecbc1234f7419f7921b31354594e5841363c54f5)) +* Update Amazon Bedrock documentation and categorization ([b156d8f](https://github.com/continuedev/continue/commit/b156d8fd4c103e520ad720853752a4f9033ef68f)) +* update CodebaseIndexer path ([#1870](https://github.com/continuedev/continue/issues/1870)) ([00d19e6](https://github.com/continuedev/continue/commit/00d19e623f8abb04fc4a022d354a909e2087aa3c)) +* update imports in CodeSnippetsIndex.ts ([434e4ee](https://github.com/continuedev/continue/commit/434e4ee44b513db15d502c6a9d52ceb17fa805c3)) +* update install script ([91f87f8](https://github.com/continuedev/continue/commit/91f87f8fd0ca328a91c9fd033c58fd5d2db02892)) +* update intellij getDiff to return string[] ([1672d9f](https://github.com/continuedev/continue/commit/1672d9f864e99436b8f309af3529f2fda341172d)) +* update snippets index to upsert cmds ([676f0d9](https://github.com/continuedev/continue/commit/676f0d9335df7bf7f42aae3434847cc0032c3c0a)) +* update spacing ([a9d6597](https://github.com/continuedev/continue/commit/a9d6597a3fa054d093cb63fa5859e24b8f8d571b)) +* update streamId matching ([8a1ce0f](https://github.com/continuedev/continue/commit/8a1ce0f1f06e92b7bd140d7eabd8393dc5993fea)) +* update streamResponse function to use streaming decoding ([#1436](https://github.com/continuedev/continue/issues/1436)) ([2d1155d](https://github.com/continuedev/continue/commit/2d1155d7d4441042480bf928398b7a15a58d92d2)) +* uri utils ([f1026c6](https://github.com/continuedev/continue/commit/f1026c6a2cfdd9424097d2103a5ffc2216e402d9)) +* use `cmd` for windows MCP connections ([b8ca4cb](https://github.com/continuedev/continue/commit/b8ca4cb6ee91670e87ae331f5e4bab24a42adbe6)) +* use bolt icon for shortcuts ([ff2116b](https://github.com/continuedev/continue/commit/ff2116bacc4537e09792ce9817b68e9cdfacb93e)) +* use dir hash in `tagToString` ([9c2a780](https://github.com/continuedev/continue/commit/9c2a780fa986f5f98c3231a12971d3f16c7a8e74)) +* use exponential backoff when checking ollama ([ebbc2fd](https://github.com/continuedev/continue/commit/ebbc2fd55df1fc43e1eacceba042fa4c0bc38e77)) +* use ide scheme auth redirect ([bae74c1](https://github.com/continuedev/continue/commit/bae74c1b324b51c2e9b14b548f92557c75025f51)) +* use index when sending chat input ([9398945](https://github.com/continuedev/continue/commit/93989459e3806f1ba6d647036dc9db064bf30e38)) +* use introduction layout ([2b71869](https://github.com/continuedev/continue/commit/2b7186973695703a48daacea46c076231d308ddf)) +* Use MCP server_name from JSON config as display name ([481d60a](https://github.com/continuedev/continue/commit/481d60a74d9b7cd0492aa5875d89e5b4e2e00c51)) +* use new edit for "Generate code" cmd ([aac6f80](https://github.com/continuedev/continue/commit/aac6f805eb35107e7d8754413d955ccfeb964576)) +* use prompt file sys msg ([093225d](https://github.com/continuedev/continue/commit/093225d4fed4d5249ca506b9867f5b5305ca4003)) +* use proper alternating colors in KeyboardShortcuts.tsx ([f1bfcec](https://github.com/continuedev/continue/commit/f1bfcec8257c2b3f99fa99a643b0464239600490)) +* vitest ([3bc4bb7](https://github.com/continuedev/continue/commit/3bc4bb710cfb2d9ef340a61f7c0ca27cb2540a28)) +* vitest ([ceeb87e](https://github.com/continuedev/continue/commit/ceeb87e81b8848517dfc604025f11bf46e1955b0)) +* **vscode:** handle null values for edits and page in getSidebarContent ([#618](https://github.com/continuedev/continue/issues/618)) ([f8a02ad](https://github.com/continuedev/continue/commit/f8a02add1775805246410ee3df396a4028ff2ec9)) +* **vscode:** improve forceAutocomplete command reliability ([cc50768](https://github.com/continuedev/continue/commit/cc507687eb36be5b7fd59eac433a9a908c1ee07e)) +* **vscode:** keybinding full screen toggle shortcut ([#625](https://github.com/continuedev/continue/issues/625)) ([2921504](https://github.com/continuedev/continue/commit/292150476c1cfcace2f6434d11c3a2dab1e5ccdb)) +* wait for permissions before initializing messenger ([7d16b8a](https://github.com/continuedev/continue/commit/7d16b8a870ebf5348713fb116c109a646fe7c79e)) +* wait for sidebar before other commands ([1566adc](https://github.com/continuedev/continue/commit/1566adcaeb3bc5258a563b208a511cdfb3938d7a)) +* watcher ([f41c819](https://github.com/continuedev/continue/commit/f41c8194fc11da9c76de0531cccd73df78a4b1c2)) +* watcher ([be153f8](https://github.com/continuedev/continue/commit/be153f8ab966e210d6249ff179c4ec1580507d88)) +* whitespace in new line completions ([4db2637](https://github.com/continuedev/continue/commit/4db2637d5b65d427e959b7fd607a65ce4140c355)) +* workflow ([e5fb4f1](https://github.com/continuedev/continue/commit/e5fb4f17ad9d3b6e72d6c7e0920357e607c0e776)) +* wrap editor buttons when out of space ([#1727](https://github.com/continuedev/continue/issues/1727)) ([b38ec0e](https://github.com/continuedev/continue/commit/b38ec0e6153e9077d1e39dfd7a453746da31c75b)) +* wrong shortcut for JB ([b358be2](https://github.com/continuedev/continue/commit/b358be2cfb798bfb6646f5015117199e2ad3a6e2)) + + +### Features + +* :adhesive_bandage: ca_bundle_path for maybeproxyopenai ([1018cd4](https://github.com/continuedev/continue/commit/1018cd47306f95dde35e1a0cc6b2a830444af389)) +* :adhesive_bandage: QueuedLLM for simultaneous reqs (LM Studio) ([e9d2891](https://github.com/continuedev/continue/commit/e9d289173ec28a1a90ae58b1834c476bb46834b8)) +* :art: custom prompt templates per model ([2e69e11](https://github.com/continuedev/continue/commit/2e69e117e198698f57bda06794cf030afbfe69e9)) +* :art: small changes to /codebase ui ([1b68904](https://github.com/continuedev/continue/commit/1b689046a7f9323c7bd56e14d403675db0b38d54)) +* :bricks: Enable terminals for additional vscode Remote Host Types ([1500281](https://github.com/continuedev/continue/commit/1500281bb547f7308aa7316f6783072e4f81fbc1)) +* :bug: kill old server if needed ([a34046b](https://github.com/continuedev/continue/commit/a34046bbbe817f81cd6d8b7ff9025413589571aa)) +* :children_crossing: display troubleshooting link when loading ([698dccf](https://github.com/continuedev/continue/commit/698dccf474619963de0312d36af6d01e3df8b47a)) +* :children_crossing: drag continue to right bar tip ([04b1fde](https://github.com/continuedev/continue/commit/04b1fde6ea77e7698870063c3f588da93d763544)) +* :children_crossing: keep file context up to data by listening for filesystem events ([#396](https://github.com/continuedev/continue/issues/396)) ([b6435e1](https://github.com/continuedev/continue/commit/b6435e1e479edb1e4f049098dc8522e944317f2a)) +* :children_crossing: more keyboard shortcuts ([bd202df](https://github.com/continuedev/continue/commit/bd202df41755c581844d0ab1773ba55968b15450)) +* :children_crossing: sort history by reverse date ([fd77a4b](https://github.com/continuedev/continue/commit/fd77a4bd6b255260d0f4cad11947b38f4d30030e)) +* :children_crossing: tip to debug ([ec74169](https://github.com/continuedev/continue/commit/ec741697c42745d29539be08bc3e01dcd86b1643)) +* :construction: create new sessions ([19060a3](https://github.com/continuedev/continue/commit/19060a30faf94454f4d69d01828a33985d07f109)) +* :construction: first work on URLContextProvider ([6467759](https://github.com/continuedev/continue/commit/6467759012a139e76dcf022a681355f7d310a30d)) +* :construction: react-router-dom work ([31e7c98](https://github.com/continuedev/continue/commit/31e7c9828f985eceb16b4c9c749cc5d4d9fd5beb)) +* :construction: Router and new history page ([f19345c](https://github.com/continuedev/continue/commit/f19345c652cfcf1bdf13d0a44a2f302e0cd1aa4c)) +* :construction: successfully loading past sessions ([c255279](https://github.com/continuedev/continue/commit/c25527926ad1d1f861dbed01df577e962e08d746)) +* :construction: work on EditableDiv - better ctx prov. UI ([e33d579](https://github.com/continuedev/continue/commit/e33d579a1d2b643842827925d032c3de92cf5217)) +* :egg: getting to know users form ([5dcdcd8](https://github.com/continuedev/continue/commit/5dcdcd81da2050825212e216bf5e7e69678d8c6e)) +* :fire: fix duplication in reference ([1e3c8ad](https://github.com/continuedev/continue/commit/1e3c8adabba561eeef124144f3a2ef36d26334b4)) +* :globe_with_meridians: alpaca chat template ([568771d](https://github.com/continuedev/continue/commit/568771d9b94280f1cb47aae863e8faf168eb052b)) +* :green_heart: ship with binary ([2751dde](https://github.com/continuedev/continue/commit/2751ddeb2dd8150a0d7de6c5b65e275e1aa0e155)) +* :lipstick: add context button (plus icon) ([2b35e5f](https://github.com/continuedev/continue/commit/2b35e5f5cff948ca7d4f207b23db68f0da248a95)) +* :lipstick: add textgenwebui as official option in Ui ([09ac7a7](https://github.com/continuedev/continue/commit/09ac7a7fc07d915ac6f3ef96c8e8d1894b7719b9)) +* :lipstick: better loading experience ([e19c918](https://github.com/continuedev/continue/commit/e19c918bb1c517a6a119ae8437c46e0724d2be9d)) +* :lipstick: fixed footer and change button color ([48b8f1f](https://github.com/continuedev/continue/commit/48b8f1f0ad89a2b4e35f49c360576dd5aa99a7c0)) +* :lipstick: gallery banner color ([0647a43](https://github.com/continuedev/continue/commit/0647a43a24c50ff0e52f23c49d979bddfcfbcd87)) +* :lipstick: handful of UI improvements ([ceafdf1](https://github.com/continuedev/continue/commit/ceafdf18c9d9f0f8769d4a9e45c8a407179161c5)) +* :lipstick: improvements to keyboard shortcuts ([7bf8e5b](https://github.com/continuedev/continue/commit/7bf8e5b56a518979bc1d2602b8eb4a2caf2b5fdb)) +* :lipstick: more ui improvements ([f9a84bd](https://github.com/continuedev/continue/commit/f9a84bd2d65b3142cbcfcdd8e1e9394c9d4b458e)) +* :lipstick: more ui improvements ([6e3ff01](https://github.com/continuedev/continue/commit/6e3ff0173e79f5374da9962c964559e0fb7165f5)) +* :lipstick: nested context provider dropdown ([8d423fd](https://github.com/continuedev/continue/commit/8d423fd8d1d5b136e8138a906e8594ab93ec1982)) +* :lipstick: nicer "continue server loading" UI ([8070ce1](https://github.com/continuedev/continue/commit/8070ce17c6d666436df38c684f5868ee7f689422)) +* :lipstick: query input indicator for ctx provs ([4362a51](https://github.com/continuedev/continue/commit/4362a51214a683bfe1efd424ddb226d4e636eeed)) +* :lipstick: setting to change font size ([4ea1760](https://github.com/continuedev/continue/commit/4ea176007d2228364d4d3fa4519898047cef988f)) +* :lipstick: small ui tweaks, detached child process ([0181d62](https://github.com/continuedev/continue/commit/0181d6236d8b74c80adb62648fd6571431cf3210)) +* :lipstick: sticky top bar in gui.tsx ([ef86d66](https://github.com/continuedev/continue/commit/ef86d661d54295c1abb9712557080f1838f96b33)) +* :lipstick: UI Improvements! ([ae058c6](https://github.com/continuedev/continue/commit/ae058c6bac7ea37108e2894e419a22dfb95fd3ff)) +* :lipstick: update icon and description ([92e7c9b](https://github.com/continuedev/continue/commit/92e7c9bb627a5559769e0eca23e02e106d2cfe96)) +* :lipstick: update marketplace icon for pre-release ([cc98ad8](https://github.com/continuedev/continue/commit/cc98ad86d561d26c97dfdb24607a1d70afbcd2a1)) +* :loud_sound: add context to dev data loggign ([8ac1518](https://github.com/continuedev/continue/commit/8ac15184aaa30d13bf168ff5123a12fb7a2dd39f)) +* :loud_sound: display any server errors to the GUI ([daabebc](https://github.com/continuedev/continue/commit/daabebcc5d6df885a508582c0ca13e659305d2ff)) +* :loud_sound: fallback unique id when vscode returns someValue.machineId ([c479442](https://github.com/continuedev/continue/commit/c47944260c5600e49d83568b3c4bafa3b7c2a37e)) +* :loud_sound: give users access to Continue server logs ([5d97349](https://github.com/continuedev/continue/commit/5d973490687c40922f2b7a2ddf2a3e19c207eb0f)) +* :loud_sound: light telemetry or context providers ([2959042](https://github.com/continuedev/continue/commit/2959042fa5a940aa4e8851b9d4db91f0f86092ff)) +* :loud_sound: telemetry for vscode vs. jetbrains ([257cef6](https://github.com/continuedev/continue/commit/257cef697c93d2f2f59936587834908bd69ae842)) +* :memo: embeddings experimental walkthrough ([e1ce1fe](https://github.com/continuedev/continue/commit/e1ce1fefee6a3f4c17ac568ba87cb7a4bcf65795)) +* :memo: note about where session data is stored ([8ada89b](https://github.com/continuedev/continue/commit/8ada89b0f66f9e746394ee64591359537fe0c7f0)) +* :money_with_wings: free trial usage indicator ([354a3f4](https://github.com/continuedev/continue/commit/354a3f493074b1fb63ff4f206a94c35f05673e99)) +* :mute: complete removal of telemetry when allow_anonymous_telemetry false ([ae7dffa](https://github.com/continuedev/continue/commit/ae7dffa211af209aea2ca13b37729e390047dd7c)) +* :necktie: allow timeout param for OpenAI LLM class ([404f7f8](https://github.com/continuedev/continue/commit/404f7f8089190d04c05957dc653baff44f342dc7)) +* :recycle: load preset_urls at load_index ([3dabc4b](https://github.com/continuedev/continue/commit/3dabc4bd6c72e2d12afb059040ca75f606e47d9d)) +* :rocket: headers param on LLM class ([e16b8ff](https://github.com/continuedev/continue/commit/e16b8ff5f2d9187f2b207addc1cd70d0cacbf9c8)) +* :sparkles: [@terminal](https://github.com/terminal) context provider ([40cfabb](https://github.com/continuedev/continue/commit/40cfabb8ce8afe20e51ca4bafddc6a0b4755bf2c)) +* :sparkles: /cmd slash command ([011877c](https://github.com/continuedev/continue/commit/011877c09e88ffcc715defc33e5c74c71ccc8aea)) +* :sparkles: /share slash command ([4e38043](https://github.com/continuedev/continue/commit/4e3804351b76cc763d904f572ad525b651d8bc00)) +* :sparkles: add edit templates to model packages ([1de976a](https://github.com/continuedev/continue/commit/1de976a6a11a0b945d59800b5a58f354808a49fc)) +* :sparkles: add max_tokens option to LLM class ([ff2a397](https://github.com/continuedev/continue/commit/ff2a3978a1e2c95a4e288b56411bf0c32b86757b)) +* :sparkles: add searchcontextprovider to default_config.py ([64f41fc](https://github.com/continuedev/continue/commit/64f41fc8a0a2616fe7074d0a49e7642fd462c95d)) +* :sparkles: add stop_tokens option to LLM ([a16ba7a](https://github.com/continuedev/continue/commit/a16ba7a0166dbf9062ee4616e3ccfbff377e9f4b)) +* :sparkles: Add support for Claude Sonnet 4 ([b24a76f](https://github.com/continuedev/continue/commit/b24a76fdabb5eccada838d8fe5ed5834c0120df1)) +* :sparkles: add urlcontextprovider back to default config ([570891e](https://github.com/continuedev/continue/commit/570891e0201769defeabec95a58c997f6d5f3889)) +* :sparkles: allow AzureOpenAI Service through GGML ([1343d12](https://github.com/continuedev/continue/commit/1343d1227cc86c860fb12695e64eaeae1384f72a)) +* :sparkles: allow changing the summary prompt ([5c8b28b](https://github.com/continuedev/continue/commit/5c8b28b7fddf5b214de61102c768ef44d4087870)) +* :sparkles: allow custom OpenAI base_url ([cb0c815](https://github.com/continuedev/continue/commit/cb0c815ad799050ecc0abdf3d15981e9832b9829)) +* :sparkles: alt+cmd+d to automatically debug terminal! ([d0483ba](https://github.com/continuedev/continue/commit/d0483ba15b4ad13399a3385ae351cf33cca3db7f)) +* :sparkles: auto-reload for config.py ([e652e90](https://github.com/continuedev/continue/commit/e652e90806b84eb409c496dd0903a4817243edc2)) +* :sparkles: autoscrolling ([e6d369f](https://github.com/continuedev/continue/commit/e6d369f4312f0c8d175251e149c62d08608cb18c)) +* :sparkles: back button on history page ([aafa5d5](https://github.com/continuedev/continue/commit/aafa5d5ec91a533f70d644e4d3fadd6f388c3e4b)) +* :sparkles: change proxy url for openai class ([32a9a47](https://github.com/continuedev/continue/commit/32a9a477d33acd5cdde08164ebeb355b27a656b5)) +* :sparkles: codelens in config.py ([58cd4db](https://github.com/continuedev/continue/commit/58cd4db2534aba9fed98925e68dc342efbc54fb0)) +* :sparkles: Continue Quick Fix ([9af39a6](https://github.com/continuedev/continue/commit/9af39a67829a6770b93ffdaa6ea70af3125c7daf)) +* :sparkles: Continue Quick Fix ([52cd93a](https://github.com/continuedev/continue/commit/52cd93ad73f7df6a5140b7d629e4f6e473dc0380)) +* :sparkles: delete context groups ([2d3d96e](https://github.com/continuedev/continue/commit/2d3d96e5b55a225eb97251850909eb7a0a7242ed)) +* :sparkles: diff context provider ([99db0da](https://github.com/continuedev/continue/commit/99db0da9d68c64d0b5adcab21e07c2db438c2404)) +* :sparkles: display model params for previous prompts ([b1b30a4](https://github.com/continuedev/continue/commit/b1b30a459cbd589a471e1528ebfa9aaeb0514968)) +* :sparkles: edit previous inputs ([c6a3d8a](https://github.com/continuedev/continue/commit/c6a3d8add014ddfe08c62b3ccb1b01dbc47495f5)) +* :sparkles: EmbeddingContextProvider ([c6a1255](https://github.com/continuedev/continue/commit/c6a12550ffca1ffe35630e7aa9af6913ddbe0675)) +* :sparkles: FileTreeContextProvider ([8bd76be](https://github.com/continuedev/continue/commit/8bd76be6c0925e0d5e5f6d239e9c6907df3cfd23)) +* :sparkles: filter history by workspace ([0757bd2](https://github.com/continuedev/continue/commit/0757bd2b556996b9c434ac43e3e4a3b042ef5802)) +* :sparkles: Give the terminal color and ansi escape rendering ([e83290b](https://github.com/continuedev/continue/commit/e83290bd3a921929052b0c0c91751800e7e9fd2c)) +* :sparkles: highlight code on cmd+shift+L ([a1fdf16](https://github.com/continuedev/continue/commit/a1fdf164b776c5ff4ddfa1c4cad66e41de4254c0)) +* :sparkles: huggingface inference api llm update ([bbf7973](https://github.com/continuedev/continue/commit/bbf7973ec091823c4197d59daaf151b748ee52fc)) +* :sparkles: huggingface tgi LLM class ([a0e2e2d](https://github.com/continuedev/continue/commit/a0e2e2d3d606d8bf465eac541a84aa57316ee271)) +* :sparkles: improved edit prompts for OS models ([1785e92](https://github.com/continuedev/continue/commit/1785e92f118b855f4a655d9b617d54b5c857a6ef)) +* :sparkles: improved model dropdown ([2f792f4](https://github.com/continuedev/continue/commit/2f792f46026a6bb3c3580f2521b01ecb8c68117c)) +* :sparkles: improvement to @ search rankings ([5590f63](https://github.com/continuedev/continue/commit/5590f63e42fda38d780bdc390361a65b65576498)) +* :sparkles: llama-2 support ([72d18fb](https://github.com/continuedev/continue/commit/72d18fb8aaac9d192a508cd54fdb296321972379)) +* :sparkles: LlamaCpp LLM subclass ([fc9e8e4](https://github.com/continuedev/continue/commit/fc9e8e4e325782409258dd483e36abf441051ee6)) +* :sparkles: LSP connection over websockets ([a6d21f9](https://github.com/continuedev/continue/commit/a6d21f979fce6135fd76923478f76000b1b343cf)) +* :sparkles: make follow-up edits ([73ae5d3](https://github.com/continuedev/continue/commit/73ae5d306c16d7c372e831d3ca41067a62c8481f)) +* :sparkles: Make the terminal command aware of its OS, platform and shell ([1a786f6](https://github.com/continuedev/continue/commit/1a786f605da47abdfc66b02f4e88044ca95df960)) +* :sparkles: manually running server option ([29940ea](https://github.com/continuedev/continue/commit/29940ea4223194cc32f6324534ad75db9e39305a)) +* :sparkles: more model options, ollama error handling ([e2a7d4a](https://github.com/continuedev/continue/commit/e2a7d4a3c7832f8788feccf4168c13ec87a31fb2)) +* :sparkles: ollama LLM class ([402883e](https://github.com/continuedev/continue/commit/402883e0661c24c418fb5aa93832c6f62dc97a63)) +* :sparkles: refactor via search Step ([9cd249e](https://github.com/continuedev/continue/commit/9cd249ee007911037639281c6d7590889ad7b467)) +* :sparkles: run continue immediately from pypi pkg ([70f6da9](https://github.com/continuedev/continue/commit/70f6da9b1ad190a967974fb477db669cbb5c928f)) +* :sparkles: saved context groups ([c98f860](https://github.com/continuedev/continue/commit/c98f860460767fe14f8fbf139150b1bd1ee2ff12)) +* :sparkles: Search context provider with ripgrep ([4b9dd4c](https://github.com/continuedev/continue/commit/4b9dd4cf8e853e17d92fb76fc726260d79e4bd7a)) +* :sparkles: select custom model to use with edit step ([c1e5039](https://github.com/continuedev/continue/commit/c1e5039731941eb6b6eea166edd433cd49d4e858)) +* :sparkles: select model from dropdown ([044b7ca](https://github.com/continuedev/continue/commit/044b7caa6b26a5d78ae52faa0ae675abc8c4e161)) +* :sparkles: select model param count from UI ([105afec](https://github.com/continuedev/continue/commit/105afeccca903072bc48772bdaf8f100f996c4a7)) +* :sparkles: set session timeout on GGML requests ([d04eec7](https://github.com/continuedev/continue/commit/d04eec7ee97319a6bcc48d289cd6eb3e0d9b8e19)) +* :sparkles: set static urls for contextprovider ([d2b1aed](https://github.com/continuedev/continue/commit/d2b1aedcedf950d792baee202efdab199b05e57e)) +* :sparkles: support browser-based IDEs with createMemoryRouter ([c9d96be](https://github.com/continuedev/continue/commit/c9d96be5615b9d193a1eeff9ab00da7ca0fe0b6b)) +* :sparkles: support for Together.ai models ([8456b24](https://github.com/continuedev/continue/commit/8456b24318b13ea5d5dabec2328dd854f8a492b4)) +* :sparkles: support stablecoder with replicate LLM ([d5e8688](https://github.com/continuedev/continue/commit/d5e86883f05fe3e99e1d6ff64241a48f935cc927)) +* :sparkles: testing improved prompting for stablecode ([6112f26](https://github.com/continuedev/continue/commit/6112f26888086ccd47ca6bcfefdbc5b82ea86879)) +* :sparkles: testing in ci, final test of ([cbd7656](https://github.com/continuedev/continue/commit/cbd7656bb4c9aebfe98c746111af52cf7192aa1b)) +* :sparkles: text-gen-webui, cleaning config and welcome ([36d517e](https://github.com/continuedev/continue/commit/36d517e37d87b1bd39d6027577714b60c32e81e9)) +* :sparkles: verify_ssl option for all LLMs ([e0522b9](https://github.com/continuedev/continue/commit/e0522b92cfa80491718de07928ce6a31850dab70)) +* :technologist: bit of customization for DefaultPolicy ([3966790](https://github.com/continuedev/continue/commit/396679009fef21e13c1a6095212d1bd68e7f2a86)) +* :technologist: button to view logs when loading ([b83eb52](https://github.com/continuedev/continue/commit/b83eb52c98d637ab3e3becf98aed9899821ea00d)) +* :technologist: github workflow to measure issue/PR stats ([f75c423](https://github.com/continuedev/continue/commit/f75c42332c44c0d2a1a7e7a7ea32c2ef346df609)) +* :white_check_mark: update test and add model telemetry ([3541d6a](https://github.com/continuedev/continue/commit/3541d6a770c919e1f2e55a1ae53c4fc3abe31aa7)) +* :wrench: update default config.py imports ([e2d0baf](https://github.com/continuedev/continue/commit/e2d0baf39348597bdd1015897152f4e3bee0744d)) +* :zap: queue messages before load, then send ([4c8b561](https://github.com/continuedev/continue/commit/4c8b56135b0a1862a4f1984e80aa1409f15e177d)) +* :zap: reduce default max_tokens ([8fff1a8](https://github.com/continuedev/continue/commit/8fff1a811c477874482b65d014e4c5565d4a8649)) +* `create_rule_block` tool ([2c8032c](https://github.com/continuedev/continue/commit/2c8032c3397f6ac8c26b8ce5e5b2fe89d079d3da)) +* `description` in markdown yaml ([e4b70db](https://github.com/continuedev/continue/commit/e4b70dbfd843345ae0689a55802462473f5641dc)) +* `globs` on rules and block docs ([24e22db](https://github.com/continuedev/continue/commit/24e22db9d416be54426709948564aee4aa08d54e)) +* `requestRule` tool ([af30fbe](https://github.com/continuedev/continue/commit/af30fbe360def278cd56858d88c5373c80a2dab6)) +* add "Gathering context..." indicator ([dd865ea](https://github.com/continuedev/continue/commit/dd865eadea014ccc8588a49e6d9c338d89734c9d)) +* add "onboarding" slash command ([#1961](https://github.com/continuedev/continue/issues/1961)) ([5819ffb](https://github.com/continuedev/continue/commit/5819ffb43901eec8ad6af85737c28896f20c4e6e)) +* add `globs` to create rule tool ([047e4e4](https://github.com/continuedev/continue/commit/047e4e418b7f252cb303f19992025acc4fb79d4f)) +* add `index.ts` to sdk ([ae31c54](https://github.com/continuedev/continue/commit/ae31c54011ac365e560cb02b9851a6806641503a)) +* add `no-negated-condition` eslint ([eb7d67d](https://github.com/continuedev/continue/commit/eb7d67dcf1a338c473a1bb7f787e4f35e62f8f73)) +* add `stream` in defaultCompletionOptions yaml ([f72e293](https://github.com/continuedev/continue/commit/f72e293e2f6251e1cca632dffa7ec14554016a73)) +* add `tsc:watch` cmd to vs code ([1d5e164](https://github.com/continuedev/continue/commit/1d5e164325e8fe8e66759baf2ac47ce766355faf)) +* add accept/reject all btns ([011e2c2](https://github.com/continuedev/continue/commit/011e2c264407ff72a0bc90980ec7d8250da4bbd6)) +* add agentinteraction dev data ([971c4de](https://github.com/continuedev/continue/commit/971c4de33e1a3f117eafe9d64bf175c0d2a849ef)) +* add animated ellipsis to lump ([e14163c](https://github.com/continuedev/continue/commit/e14163cda2ff1de2e90621f1de2341fd90b136d2)) +* add API key support for TEI reranker ([5dc25b5](https://github.com/continuedev/continue/commit/5dc25b5eb3b1f914d106a18bbb34f7d28e3039f3)) +* add azure provider config ([#1764](https://github.com/continuedev/continue/issues/1764)) ([c9635de](https://github.com/continuedev/continue/commit/c9635def237e0bb4e1d899057e6b651b6a6cd1b2)) +* add best experience onboarding ([8b30504](https://github.com/continuedev/continue/commit/8b305046eff820999e805c8b2cd6400e3572da1b)) +* add chat scrollbar visibility configuration support ([14eaf32](https://github.com/continuedev/continue/commit/14eaf3272cde744ab6390d7113c2cb507e0d6734)) +* add Claude 3.7 support to toolSupport.ts ([50ad91b](https://github.com/continuedev/continue/commit/50ad91bced864272c7f1bb92c13d7c910a0b6be2)) +* Add cloudflare as provider ([ad8743a](https://github.com/continuedev/continue/commit/ad8743a9b563ae6e09cc140a0b3f9f202715e3b5)) +* add code that comment is based on ([e3653f9](https://github.com/continuedev/continue/commit/e3653f98f08e52fa6a55d41ca147add1c8e5515a)) +* add combobox for edit file selection ([7c6295f](https://github.com/continuedev/continue/commit/7c6295feeb32a478a2d8867f0a2b863583f6a97e)) +* add deepseek models for novita ai ([a31c3eb](https://github.com/continuedev/continue/commit/a31c3ebc8334f931281cdb0a348150347c99d0e6)) +* Add docs/getDetails endpoint in JetBrains ([da2dc1e](https://github.com/continuedev/continue/commit/da2dc1ed7de3caa9ae1e8b02a09526f57dd80bb8)) +* add example integration test ([781a792](https://github.com/continuedev/continue/commit/781a792a5939958d05fa316261190c164871c563)) +* add exponential backoff for API requests ([12ffa95](https://github.com/continuedev/continue/commit/12ffa956571acd12b383ba73560d3c42a7a4415c)) +* add file search to quick edit ([#1714](https://github.com/continuedev/continue/issues/1714)) ([21d1b0c](https://github.com/continuedev/continue/commit/21d1b0c16dd9cd454d543e4b387f873e54d89aa5)) +* add fixed version of the nodejs ([cd35857](https://github.com/continuedev/continue/commit/cd35857daf5577f4677f6675344fa8488e624352)) +* add free trial card to onboarding ([#1600](https://github.com/continuedev/continue/issues/1600)) ([9bae5a2](https://github.com/continuedev/continue/commit/9bae5a254df25d25dc848b5c7bf69fc7189e6461)) +* add gif to tutorial card ([e03eb9d](https://github.com/continuedev/continue/commit/e03eb9d5801985d1968d0528dd76767bf3907cbf)) +* add gitlab context class ([efc1f3b](https://github.com/continuedev/continue/commit/efc1f3b9216d5bf503ecb58ff956f26a2bc4a130)) +* add icon for URL ctx item peek ([e901cfd](https://github.com/continuedev/continue/commit/e901cfdf4ae383a2337c2e20182f6eee6d3010f9)) +* add Jira context provider ([#860](https://github.com/continuedev/continue/issues/860)) ([8ba15b1](https://github.com/continuedev/continue/commit/8ba15b16665be871e037ada88d51b3403a8d094e)) +* add Llama 3.1 8B to cloudflare provider options ([#1811](https://github.com/continuedev/continue/issues/1811)) ([bccbff2](https://github.com/continuedev/continue/commit/bccbff273c176c54f0209c5927a19b8c6d9375f9)) +* add Moonshot AI model provider support ([b8a278d](https://github.com/continuedev/continue/commit/b8a278d216db9851aa2b0772e0313ff4bc12c7cc)) +* add novita info ([94d8d39](https://github.com/continuedev/continue/commit/94d8d39cfc8d21f2544633330370d99ef17e0fdf)) +* Add num_treads to ollama along with docs ([#863](https://github.com/continuedev/continue/issues/863)) ([d71721d](https://github.com/continuedev/continue/commit/d71721d71540cb084d67559e850440129faa67c0)) +* add openai wrapper for sdk ([ab9a248](https://github.com/continuedev/continue/commit/ab9a248572a46e00f0fa6441af861dd260c4cb65)) +* add OpenAI, xAI, Replicate and free-trial model options to config schema ([89a90f9](https://github.com/continuedev/continue/commit/89a90f99baaf493f184a09aa6083a606076f9771)) +* Add prompt caching support ([24f9960](https://github.com/continuedev/continue/commit/24f9960e27ad065fec611661e69726c9be589042)) +* add proxy support for ripgrep download ([d42c050](https://github.com/continuedev/continue/commit/d42c050e3645b4eb4635dd5a73ae12107adca701)) +* add Quick Actions CodeLens feature ([#1674](https://github.com/continuedev/continue/issues/1674)) ([fdf3408](https://github.com/continuedev/continue/commit/fdf3408e0c9c2df749b5775d3c906abfdf40e799)), closes [#1536](https://github.com/continuedev/continue/issues/1536) [#1456](https://github.com/continuedev/continue/issues/1456) [#1564](https://github.com/continuedev/continue/issues/1564) [#1576](https://github.com/continuedev/continue/issues/1576) [#1570](https://github.com/continuedev/continue/issues/1570) [#1582](https://github.com/continuedev/continue/issues/1582) [#1600](https://github.com/continuedev/continue/issues/1600) [#1618](https://github.com/continuedev/continue/issues/1618) [#1626](https://github.com/continuedev/continue/issues/1626) [#1637](https://github.com/continuedev/continue/issues/1637) +* add Qwen2.5-Coder support ([387a76a](https://github.com/continuedev/continue/commit/387a76aa5bab873565de25a2d269f0b5b1a53f1e)) +* add redux state for card logic ([5f32924](https://github.com/continuedev/continue/commit/5f32924becd3e8b03d19ffb4a5e4a2dcbfb6dbc3)) +* add redux state for mfe ([6e5236a](https://github.com/continuedev/continue/commit/6e5236a58a896ab78faa1672e56237b4f4684877)) +* add render util function ([413530a](https://github.com/continuedev/continue/commit/413530a029e32ab8e77520c0e5265cd37a84b24c)) +* add rich quick pick for quick edit ([#1706](https://github.com/continuedev/continue/issues/1706)) ([f3b15eb](https://github.com/continuedev/continue/commit/f3b15eb1b14dcc3f4c28ebfb95150b0d6627cecb)) +* add scope selector ([b78fdc4](https://github.com/continuedev/continue/commit/b78fdc4147e1ccb388b900a65099a2c61ba6ca26)) +* Add signature column to code_snippets table ([a535e9e](https://github.com/continuedev/continue/commit/a535e9e15fb3041fec732574636221e0a83dccfa)) +* add slash command cmd ([d4e1609](https://github.com/continuedev/continue/commit/d4e1609d2a65aeeece6caa8620a1b45196f40c98)) +* add support for `baseSystemPrompt` ([f6957bb](https://github.com/continuedev/continue/commit/f6957bb856ba5915ad6351a518dc4b4a47536947)) +* Add support for Cloudflare AI Gateway ([#1425](https://github.com/continuedev/continue/issues/1425)) ([837ad1c](https://github.com/continuedev/continue/commit/837ad1c552aef8909b9a1dbe01204ed2571134d7)) +* add support for custom headers in SSE transport ([d392d77](https://github.com/continuedev/continue/commit/d392d7736d5d31804cd54b3c307bbfb6289e5358)) +* add support for Mistral models in toolSupport.ts ([928cf2c](https://github.com/continuedev/continue/commit/928cf2c73752a23fe3fc026bbf3957c5c80d5604)) +* add support for multiple MCP server types (stdio, sse, websocket) in the YAML configuration schema, ensuring backward compatibility with legacy configurations ([63a2ffe](https://github.com/continuedev/continue/commit/63a2ffe9696d90786f030c2af02cec2c463d914e)) +* add tests ([0819bec](https://github.com/continuedev/continue/commit/0819becfd98127a187cc84484dd59bb4348a1ec3)) +* add tutorial card ([#1716](https://github.com/continuedev/continue/issues/1716)) ([cb8b207](https://github.com/continuedev/continue/commit/cb8b207582dec6ce997c2c602c9998a5a64504db)) +* add unified diff instant apply ([3c36b4d](https://github.com/continuedev/continue/commit/3c36b4dc378ddd8c5c5c2cc234e9a605d776d928)) +* add Vertex AI support ([dfaa02c](https://github.com/continuedev/continue/commit/dfaa02c5051c44303e055675324ff6eaaac0e91b)) +* allow input to exit ([18c5019](https://github.com/continuedev/continue/commit/18c50195248f6ca6c64e1eeb3cb8f10e6b85ffb5)) +* allow JetBrains users to index docs ([#1797](https://github.com/continuedev/continue/issues/1797)) ([e0079a4](https://github.com/continuedev/continue/commit/e0079a43721f6002ff59e2eaa79dc8768a6f66f5)) +* allow users to skip local onboaridng ([4685db0](https://github.com/continuedev/continue/commit/4685db02b854ab0a598defe0fdc4a68f8de50cc2)) +* apply e2e tests ([12b3ed9](https://github.com/continuedev/continue/commit/12b3ed9291b4f46e920f8417f1e6585e45b7edd9)) +* apply if state is active, onEnter callback dont working ([fed1651](https://github.com/continuedev/continue/commit/fed165161d1610db282b52230a4d914f4d2ffa62)) +* apply waiting cursor to chat-input enter-button during prompting ([6d08361](https://github.com/continuedev/continue/commit/6d0836189cd1c18cf97b1e604adf4e5f201665b9)) +* assistant select ([3b539d5](https://github.com/continuedev/continue/commit/3b539d53c39a98c361e27db6dfb72a8e14ddae50)) +* assistant select refresh on right ([04f5e3e](https://github.com/continuedev/continue/commit/04f5e3e165fddf3101e6210b1111c0f261793054)) +* **autocomplete:** recently visited ranged service ([811507a](https://github.com/continuedev/continue/commit/811507a406ed543adb4a8f876c3c3f30d8a9be35)) +* better buttons for account dialog ([2a4c69f](https://github.com/continuedev/continue/commit/2a4c69ff87b64e21ad04edfed2aad7b048833b53)) +* better editor content handling in edit ([7c72c4a](https://github.com/continuedev/continue/commit/7c72c4af878e4b683b582e40f483551314e92873)) +* better error handling around ripgrep ([22f6fdf](https://github.com/continuedev/continue/commit/22f6fdfa1be6f84ab8548155465f863cb65a7e30)) +* better type names ([43ebb1a](https://github.com/continuedev/continue/commit/43ebb1ad0a95ac1dfc0ff1e198fe53e8c50f0671)) +* bookmark first 5 prompts by default ([0909ef9](https://github.com/continuedev/continue/commit/0909ef938b6d2928fa650c0e0613c1e106a0315d)) +* brand text fix ([a25afee](https://github.com/continuedev/continue/commit/a25afeeda10c86072f80c025c20c21b167ddaaf0)) +* bugfixes on redux schema updates ([4efd661](https://github.com/continuedev/continue/commit/4efd66137592916167f562ac45533dfffacd35cc)) +* build steps for config-yaml ([73b95f3](https://github.com/continuedev/continue/commit/73b95f314703c266d9e348f9c1ba3dbbb3f3d266)) +* cache org selection results ([13d5668](https://github.com/continuedev/continue/commit/13d566831db9e66ae270ff70e2b5c63304df6458)) +* cache org selection results ([6e81720](https://github.com/continuedev/continue/commit/6e81720186d4215d6a650835f72ed1c6cc20e28f)) +* capture base class and interfaces implemented ([df2bbc8](https://github.com/continuedev/continue/commit/df2bbc89da7f7f9ee406a8fe6d0c4fd244abd488)) +* capture python definitions ([2f84ef0](https://github.com/continuedev/continue/commit/2f84ef0ab9a87aa6300415d30db02e3460a07195)) +* change model desc ([8d3ecaf](https://github.com/continuedev/continue/commit/8d3ecafa3dbd9a3373ec7784eda1feac6b77b684)) +* check for `nvm` version in install script ([b1a93b7](https://github.com/continuedev/continue/commit/b1a93b7a2dd22ab82ef9acdec5f1096c33c44c1b)) +* cleanup apply manager ([4b9bac5](https://github.com/continuedev/continue/commit/4b9bac55ffae743d0221df65f0a14d0981f74aeb)) +* cleanup inline edit code ([90d895e](https://github.com/continuedev/continue/commit/90d895e2e22ee40033c524a109b5777b5c3bf6cd)) +* Client Certificate Options Support ([#1658](https://github.com/continuedev/continue/issues/1658)) ([136bf9e](https://github.com/continuedev/continue/commit/136bf9e0f0ce0193f64fe291922431808c32406e)) +* close files ([d1eca9d](https://github.com/continuedev/continue/commit/d1eca9deeb3c1550982f679a58265593af603453)) +* close tutorial listener ([d4d3102](https://github.com/continuedev/continue/commit/d4d3102b61c800576513cbb07c9d482fe973a0ef)) +* collapsed codeblock by default ([979c247](https://github.com/continuedev/continue/commit/979c2473c61747157e65e1dcd33fd73ccfe404ad)) +* config.json validation ([429e54e](https://github.com/continuedev/continue/commit/429e54ed347446747d206a97cb80c91baf5d407e)) +* configure docs through config.json ([#1864](https://github.com/continuedev/continue/issues/1864)) ([d7dbdff](https://github.com/continuedev/continue/commit/d7dbdfff485f3970b8595c5a2680a012443747a5)) +* consolidate StepContainer ([58d9eb7](https://github.com/continuedev/continue/commit/58d9eb7a7e8102940d59f26a65e01edb130681fd)) +* consolidate toast logic into "showToast" ([ba777ed](https://github.com/continuedev/continue/commit/ba777edf4761f8bb781fce11ce45311c0b089048)) +* continue sdk ([c7829bb](https://github.com/continuedev/continue/commit/c7829bbd514b962caad99a4c8c660e94f9e577b4)) +* convert issue templates to issue form templates ([#507](https://github.com/continuedev/continue/issues/507)) ([fa7f2cb](https://github.com/continuedev/continue/commit/fa7f2cbdeb6013ec4bb081cb85988817f54d070c)) +* **core:** add support for Llama models on Bedrock ([#1499](https://github.com/continuedev/continue/issues/1499)) ([53aab1e](https://github.com/continuedev/continue/commit/53aab1e6fd2a0f21fbca1c29b82d1f96d2f5e074)) +* crawl `.mdx` docs ([d9f0c4f](https://github.com/continuedev/continue/commit/d9f0c4f131010bd4dae111b5e4290f3460d49e3a)) +* create "rebuild index" dialog ([c978d7c](https://github.com/continuedev/continue/commit/c978d7c871be71cd399d02159be8c1b37a0d36ff)) +* create `ApplyManager` ([652f8c4](https://github.com/continuedev/continue/commit/652f8c4c7b0879f9ab3b2cc1a25c9530de467c94)) +* create docs cache ([3f8afbe](https://github.com/continuedev/continue/commit/3f8afbefeb36c389528d420ef5945c0014ef18c0)) +* create file button in toolbar ([268f55b](https://github.com/continuedev/continue/commit/268f55b001e880fec92ef87df6be2bdf8fc25649)) +* create markdown rules in notch ([c2571e2](https://github.com/continuedev/continue/commit/c2571e2a86e373199fe9660f95fa5b168c776035)) +* create org slice ([71f8508](https://github.com/continuedev/continue/commit/71f85084f22333337a1e817e0502044771d66de4)) +* create profiles slice ([9c2db6b](https://github.com/continuedev/continue/commit/9c2db6b9c7d7fd0a0164b3e2288a4135df759707)) +* create RecentFilesService ([d597e6f](https://github.com/continuedev/continue/commit/d597e6fe5ea632f2bdf762ad2555c056fd736ba8)) +* create stream complete reducer ([ce7d982](https://github.com/continuedev/continue/commit/ce7d98291e30658b387dd5d7de96e0f3577065ab)) +* create SVG tooltip ([0cf152e](https://github.com/continuedev/continue/commit/0cf152ede652d975fd774faa40494020c7514196)) +* dallin feedback pt 2 ([d158fab](https://github.com/continuedev/continue/commit/d158fab740cf803074106717560941cca8cb96c9)) +* dallin's feedback ([e884853](https://github.com/continuedev/continue/commit/e88485348c8b53e9f19d1f9fc0c8b33dd5266df7)) +* Dallin's feedback ([fc1ee33](https://github.com/continuedev/continue/commit/fc1ee33ed912543f596d32ae6eaacbbdbc3bcae4)) +* dallins feedback ([33b1d39](https://github.com/continuedev/continue/commit/33b1d3994654f311dcae385f6ef2ef78696d1d89)) +* dallins feedback ([25b5b8c](https://github.com/continuedev/continue/commit/25b5b8c50b05fe872d74b60ced4a6d8569686ed6)) +* dallins feedback ([6070a64](https://github.com/continuedev/continue/commit/6070a645dd9741b433ad43fd09f37b42ec614a3e)) +* disable chat-input enter-button during prompting ([e01fbe7](https://github.com/continuedev/continue/commit/e01fbe7f2cf6f53f5a611afe6df53dfc5f710e55)) +* disable chat-input-editor during prompting ([7368767](https://github.com/continuedev/continue/commit/73687670da1cc7792d2c4d9ccd7b9813746a4658)) +* display rules used ([53f0679](https://github.com/continuedev/continue/commit/53f06795d3910e1ec5aecdbc1fde706f68649614)) +* editor change listener ([28d2c7d](https://github.com/continuedev/continue/commit/28d2c7d7e0a00c23c33ad25b8bfc3651ddafa2c5)) +* **embeddings:** add gemini provider ([#1362](https://github.com/continuedev/continue/issues/1362)) ([5224572](https://github.com/continuedev/continue/commit/52245724089329c792eb79c8d512cea2f617c4a1)) +* enable comment filtering ([471ca9e](https://github.com/continuedev/continue/commit/471ca9eae5e1f82e04b2d6d600631bf24876ec06)) +* enable sourcemap ([2be2b73](https://github.com/continuedev/continue/commit/2be2b73f2a28834cbfef9100f479ecffc0ad13c8)) +* enable WAL (Write-Ahead Logging) for improved performance and stability ([#1885](https://github.com/continuedev/continue/issues/1885)) ([e93ce84](https://github.com/continuedev/continue/commit/e93ce84cd57eacfe820c1f22668ed069020ee46e)) +* enhance help center ([#1755](https://github.com/continuedev/continue/issues/1755)) ([f2a04ef](https://github.com/continuedev/continue/commit/f2a04ef3e9e49876042077f36da5f457630dcaf1)) +* Enhance MCP connection refresh logic ([1a0d411](https://github.com/continuedev/continue/commit/1a0d41128f30c7f5c087c7255d6ec3292c288664)) +* Ensure CancelAutocompleteAction updates on EDT ([277c20f](https://github.com/continuedev/continue/commit/277c20f3b08eaa1b0b293b06bbfce40404e5477d)) +* evaluate rule ([1a1b854](https://github.com/continuedev/continue/commit/1a1b854fda4630e136d0d18b4ea69e71a00ced1e)) +* explore btn ([14c9528](https://github.com/continuedev/continue/commit/14c952887399f12e739d6a0fafbdbb4d1355fe90)) +* explore dialog ui ([c6cfa93](https://github.com/continuedev/continue/commit/c6cfa9334690cf7f9ecdf99959537ce522728079)) +* explore dialog watcher ([741ad35](https://github.com/continuedev/continue/commit/741ad35195d6b841b459076b8dbca1057d5f6358)) +* explore dialog watcher ([192a47f](https://github.com/continuedev/continue/commit/192a47f998d639f307933f33a731832ff35305ac)) +* explore hub card ([5a777ce](https://github.com/continuedev/continue/commit/5a777ce464243b09d466d7a11a39ff9e45a74ec5)) +* extract paths ([2ffb4ae](https://github.com/continuedev/continue/commit/2ffb4aefeb01073c924beb1c203e60c586cf96bb)) +* fall back to Cheerio for headless crawling ([fd7bbce](https://github.com/continuedev/continue/commit/fd7bbce79b831a1068c5367bc4f018fe820a917a)) +* fallback to chat model from apply model ([46e8dd7](https://github.com/continuedev/continue/commit/46e8dd7c38858173f375ac24f6857ed3bea2b190)) +* fallback to chat model in IDE ([b601c22](https://github.com/continuedev/continue/commit/b601c22d01478d74a66bf162f3e12c4c4e1a93d7)) +* filttrex ([b20b1ab](https://github.com/continuedev/continue/commit/b20b1ab5ee44d704619327a3b087b1290c634dd7)) +* fix address ([d59b3b5](https://github.com/continuedev/continue/commit/d59b3b5297924b2b6343a990c09551be4af9c670)) +* fix broken links ([66345e8](https://github.com/continuedev/continue/commit/66345e83550a898cd36eae67a68fb020ce957677)) +* fix ctx providers w/ slash cmds ([e5608a9](https://github.com/continuedev/continue/commit/e5608a94e543cd8b66d68c222eacc82e8c021aff)) +* fix filepaht issues w/ apply ([6c848ba](https://github.com/continuedev/continue/commit/6c848ba7a7fc7ea32a963653b83b5099e5ed6fad)) +* fix models ([d401a5c](https://github.com/continuedev/continue/commit/d401a5c11fdf5b3267269ff3603f83318a9dd9ad)) +* fix type error + formatting ([bb5e8b6](https://github.com/continuedev/continue/commit/bb5e8b641dc535fd8d60de92aba04680f7b93824)) +* fix version and address ([ad0fdb9](https://github.com/continuedev/continue/commit/ad0fdb988b76bebadcbb26a3069b7f821207680f)) +* get paths ([9cb5170](https://github.com/continuedev/continue/commit/9cb5170b1a23552f917265dc330ff1e05838a3de)) +* get return_type and parameters from snippets ([bf426d5](https://github.com/continuedev/continue/commit/bf426d5e2147248c06ab51cab31ac5cd9e834b1d)) +* glob rules ([8c5ca40](https://github.com/continuedev/continue/commit/8c5ca401d4fbda64eacf23cc0585e2c9830db345)) +* go definitions ([bf65b1e](https://github.com/continuedev/continue/commit/bf65b1ebbdd3b0913d141e9f60a11414088bc78f)) +* **gui:** add ability to change the session title ([1b32222](https://github.com/continuedev/continue/commit/1b32222c10c6ae6f1fd6c93f6abd8cbeab16f108)) +* **gui:** Add Azure as a provider ([b7c0623](https://github.com/continuedev/continue/commit/b7c0623ac6c5067ccefd7c8486eeef2ff56d9667)) +* **gui:** add flex-grow to TdDiv in history page ([#619](https://github.com/continuedev/continue/issues/619)) ([7106f42](https://github.com/continuedev/continue/commit/7106f42cb4ba7424b3dda8ed2d0e562e2fd99447)) +* **gui:** improve editor highlights ([7bffa2d](https://github.com/continuedev/continue/commit/7bffa2dbeab4dde415c113bb15b71968bc51f448)) +* **gui:** more config for azure provider ([e11206b](https://github.com/continuedev/continue/commit/e11206b0fa70075d21d1cc8dd4426af856ee05c2)) +* handle deletions ([2c8cee9](https://github.com/continuedev/continue/commit/2c8cee9fd42fc8f18c9e6e37781e27276dae2786)) +* hide empty code lines in markdown preview ([#815](https://github.com/continuedev/continue/issues/815)) ([793d022](https://github.com/continuedev/continue/commit/793d022eab292219cda75bb3255ed3d676585977)) +* **history:** add sticky headers to history sections ([#621](https://github.com/continuedev/continue/issues/621)) ([3d398d0](https://github.com/continuedev/continue/commit/3d398d0b3781db8bbc51ad00f47e80b3124f5c8f)) +* hover brightness on tool call div ([dba2887](https://github.com/continuedev/continue/commit/dba288748d850c7fa8047efb75e954384410a497)) +* **httpContextProvider:** load AC on fetch client ([#1150](https://github.com/continuedev/continue/issues/1150)) ([638f192](https://github.com/continuedev/continue/commit/638f1922590d7bd46d6e4d46a4d25bf1b33b26fa)) +* if rules ([6224af6](https://github.com/continuedev/continue/commit/6224af63d36e6b96b068c6d4230ee2315bd94d43)) +* if rules ([d0e922d](https://github.com/continuedev/continue/commit/d0e922dad4947ac8af4e9d0c76921da56cdc2953)) +* if-rule ([211fcb7](https://github.com/continuedev/continue/commit/211fcb77407cd261f2bb26198667388ea6270a05)) +* if-rule ([9baa4e9](https://github.com/continuedev/continue/commit/9baa4e93be7f9c2fe057e453237eaa9d1aaa8ff0)) +* if-rules ([06b76d7](https://github.com/continuedev/continue/commit/06b76d752fb4f83b14053fffe2f85cb819e39ae6)) +* if-rules ([0a13a46](https://github.com/continuedev/continue/commit/0a13a4604d7607793bea66b9cea3e89353bf3af4)) +* if-rules ([ccdc1b9](https://github.com/continuedev/continue/commit/ccdc1b953e22ca4aa26e32b9e80bc31ea30f274c)) +* ignore node_modules in js and ts code definitions ([3c9071a](https://github.com/continuedev/continue/commit/3c9071a09b114a019a593a7f241975f419cc4e43)) +* impl /multifile-edit ([f88f28b](https://github.com/continuedev/continue/commit/f88f28b8551e95e4eb346fafa68d6223f9017d5a)) +* improve chat thread ui for better readability ([#1786](https://github.com/continuedev/continue/issues/1786)) ([8478af6](https://github.com/continuedev/continue/commit/8478af63c18b0c35d59d2326ca4e8687a42a624b)) +* improve chunking desc on large projects ([3844208](https://github.com/continuedev/continue/commit/3844208a3b9b3daaff085daad8ab933f27fcb5f3)) +* improve dropshadow on jb inline edit ([35b94e7](https://github.com/continuedev/continue/commit/35b94e710260782d0311ee22a2849203b8965e38)) +* improve dropshadow on jb inline edit ([75e2d2f](https://github.com/continuedev/continue/commit/75e2d2f39df30424b3831615ee3720a2844a60a5)) +* improve fatal error message ([1d77ad3](https://github.com/continuedev/continue/commit/1d77ad31949042c7702b59f83a82ca51dcce4900)) +* improve input and tooltip ux ([#1923](https://github.com/continuedev/continue/issues/1923)) ([2c13776](https://github.com/continuedev/continue/commit/2c13776c06cfe9c775777bf2fffdcf7dfa2169ee)) +* improve model retrieval logic in InlineEditAction ([52b1704](https://github.com/continuedev/continue/commit/52b1704f3c0fe991b32959d04c660fe55e899b2c)) +* improve prompt log formatting + detail ([2376daf](https://github.com/continuedev/continue/commit/2376dafce325c87d87090e7cf995beffcb98d3b4)) +* Improve ProtocolClient initialization and GUI loading ([0c829fd](https://github.com/continuedev/continue/commit/0c829fd99d0e898c1afdc90a0957c907dcb7f4e2)) +* improve settings tabs ([a5f974b](https://github.com/continuedev/continue/commit/a5f974bf1602dabe3939ddc0ac7b5a05ac8e716b)) +* improve StreamError dialog ([ecb63a0](https://github.com/continuedev/continue/commit/ecb63a0222c7ae5e051bea02d98a4a2de7c1e2e5)) +* improve styling on code to edit ([47fbe4f](https://github.com/continuedev/continue/commit/47fbe4f9b81e1ef31d60f1110d2bf240fa6e7d40)) +* include recently + open files in codebase search ([#1833](https://github.com/continuedev/continue/issues/1833)) ([3e0fae3](https://github.com/continuedev/continue/commit/3e0fae35a75bb8dc117bc3eb008eee122e0e12ae)) +* init profiles prefs ([d6ad3e2](https://github.com/continuedev/continue/commit/d6ad3e2071ca1ee3f0b5cd4d8e93852a84fd138a)) +* insert prompt into input on click ([a73123e](https://github.com/continuedev/continue/commit/a73123e35ce29f1776b5afb456c9c67dc9495099)) +* instant apply check for diff rejectection ([98cb185](https://github.com/continuedev/continue/commit/98cb185c926d49a6f5af00f8b53e207743da815a)) +* integrate Moonshot AI model provider and update UI translations ([7ffb95e](https://github.com/continuedev/continue/commit/7ffb95e9d0fc964b55b3f92149515fa79fc3aa0d)) +* items used text ([#1973](https://github.com/continuedev/continue/issues/1973)) ([28a2042](https://github.com/continuedev/continue/commit/28a2042b7f604889cd0c7c76ee3ec0791a00e3ba)) +* **jb:** add ide logs ([22d84ae](https://github.com/continuedev/continue/commit/22d84ae726c40d65449c39b2ece4101f32608870)) +* **jb:** add plugin actions ([629641a](https://github.com/continuedev/continue/commit/629641a4adf2a1e2fe1c9a69fd431718b34c4263)) +* **jb:** create per-IDE tutorial files ([e3b5cbf](https://github.com/continuedev/continue/commit/e3b5cbfda453c727c6f81d04aa8bed1b9efe8301)) +* **jb:** fix meta key bugs in tiptap ([7682c71](https://github.com/continuedev/continue/commit/7682c71575c7ffc03d625510187d792e9d971227)) +* **jb:** impl "apply" button ([802cb43](https://github.com/continuedev/continue/commit/802cb43cd6b6abf8613591eb38c445e6bd4daa7d)) +* **JB:** impl `showFile` ([24bb5eb](https://github.com/continuedev/continue/commit/24bb5eb0dab8467f606d249f8be16fcb9ff083c0)) +* **JB:** scroll to top of file on full file edit ([c36a1ae](https://github.com/continuedev/continue/commit/c36a1ae62851383978080bc5674e7ba4ca0e9cc1)) +* jetbrains tutorial explore hub ([054b095](https://github.com/continuedev/continue/commit/054b095dab51b3abc7a3d83587e0b5f67b8acdf6)) +* make [@codebase](https://github.com/codebase) a hardcoded ctx provider ([#1818](https://github.com/continuedev/continue/issues/1818)) ([7b86678](https://github.com/continuedev/continue/commit/7b866787d947106b77ac0cef92b75ba36e09e7fc)) +* make `assistant` optional on sdk ([48429ae](https://github.com/continuedev/continue/commit/48429ae04f957a98c24d841316c722b91841c329)) +* make deletion line highlight wider ([10a5ec1](https://github.com/continuedev/continue/commit/10a5ec18a9df189d58c60886be296f1107a1dfc2)) +* make disabled state a tooltip ([#1653](https://github.com/continuedev/continue/issues/1653)) ([6cf0102](https://github.com/continuedev/continue/commit/6cf0102875316a89752d17d4fe08e4b21fd2e603)) +* manual ripgrep downloads for JB ([587459c](https://github.com/continuedev/continue/commit/587459c007ba130a4fd6f5ffde246dd8625486a8)) +* markdown rules ([a21d350](https://github.com/continuedev/continue/commit/a21d350ea14a98cf16904ae678de64a83775da7c)) +* merge conflicts ([82a328c](https://github.com/continuedev/continue/commit/82a328ca15306e0b902075c0661cd1b2bb8ed9a8)) +* model name update ([045c6bd](https://github.com/continuedev/continue/commit/045c6bdfec45ffadb25b3db2306b78f34780e84b)) +* modify vitest command, add test coverage feature ([96c70d0](https://github.com/continuedev/continue/commit/96c70d07d283130176cbda68afdb02ddc6b20366)) +* more cleanup ([6c294e7](https://github.com/continuedev/continue/commit/6c294e76834561848305ac8fb6bcb707ea21b172)) +* more cleanup ([bf7cf66](https://github.com/continuedev/continue/commit/bf7cf661cc4357029492f067ca57b1a43401aaaa)) +* more dynamic imports for LanceDB ([90c6631](https://github.com/continuedev/continue/commit/90c663146edc965bbe0b87b737755742315a8fa1)) +* more moving around ([b0492dd](https://github.com/continuedev/continue/commit/b0492ddfee2e6050d833d4ad07a942dbdd830c55)) +* more styling updates ([c7b3ea8](https://github.com/continuedev/continue/commit/c7b3ea890ac2bade08424e7a23301cea319aea35)) +* more visible assistant refresh + submenus ([1fd2ce9](https://github.com/continuedev/continue/commit/1fd2ce90f22c0dd6ebb9ec5b2542f85475844436)) +* move .prompts into slash cmd ([1d1f705](https://github.com/continuedev/continue/commit/1d1f705f7dfb1d517b90e03b82856e625f3f323e)) +* move `StepContainerPreToolbar` ([979bcb9](https://github.com/continuedev/continue/commit/979bcb97ec88d91d0ed0bd14fd5b6b7dc4c670ae)) +* move apply accept/reject into lump ([071ecb9](https://github.com/continuedev/continue/commit/071ecb91eb9c627e96439b7a5be260ec446500b0)) +* move apply manager instantiation ([2413d24](https://github.com/continuedev/continue/commit/2413d241c6448f65c99d9286e72a01bc8acc429a)) +* move Edit into Chat page ([731b54e](https://github.com/continuedev/continue/commit/731b54eb30bd7184e42c397db658020b4a70d5f7)) +* move error indicator into lump ([1f1d4f4](https://github.com/continuedev/continue/commit/1f1d4f4a1c5b365258db219e2a0ae8eecf3656a8)) +* move free trial out of assistant ([2c58a33](https://github.com/continuedev/continue/commit/2c58a33a6a937ea7beb1aa017bce64ec4cfe32d0)) +* move rule parsing to `config-yaml` ([f2d7290](https://github.com/continuedev/continue/commit/f2d72902cb45c165ca73483dd5c0a90ac89bcc49)) +* move SymbolLink ([e3bbd6b](https://github.com/continuedev/continue/commit/e3bbd6b7cfa04183f7a60470a55e4a2618083a21)) +* move vLLM rerank response in the VLLM.ts and remove unused types ([c8d9d95](https://github.com/continuedev/continue/commit/c8d9d959f10b34cb0af857cfa178c1f9df30f5cf)) +* onboarding card upgrade tab ([41bc0e9](https://github.com/continuedev/continue/commit/41bc0e922b333ee404ddb17e5bdcf7c83b7a6ca0)) +* only autoscroll Continue console when focused on last element ([40390f5](https://github.com/continuedev/continue/commit/40390f583bea74766c3eff48cb8ceda555112780)) +* open lump on submit onboarding ([f77f662](https://github.com/continuedev/continue/commit/f77f662c6e7313db645656e003c9d0145646388e)) +* org select ([dc751a3](https://github.com/continuedev/continue/commit/dc751a3274948cb12b47fb7b57106a8349e26870)) +* php definitions ([8da703f](https://github.com/continuedev/continue/commit/8da703f74525213dc212efa6b763d4be06dee38b)) +* php definitions ([eadc96e](https://github.com/continuedev/continue/commit/eadc96ebef6653a996dff32095fd87a86703058d)) +* poll in JB after upgrading ([89d4b32](https://github.com/continuedev/continue/commit/89d4b32bba3bede3ac9f001c6c013ec0bb5a9ca0)) +* postgres context provider first slice ([758a81c](https://github.com/continuedev/continue/commit/758a81c7373f398294ccb80d00a5c7d181f151d7)) +* pr_checks update ([1cc81d4](https://github.com/continuedev/continue/commit/1cc81d4b7e6ed6aedcc19753eea623acbfc8f8c1)) +* preserve edit when rejecting ([32bf80d](https://github.com/continuedev/continue/commit/32bf80d7d280fe815b547475b4a75fce92ba990d)) +* profiles slice ([b82d29c](https://github.com/continuedev/continue/commit/b82d29c2df154a632c89d32c6847f5bf43b6564b)) +* promote reject diff action ([16cbe94](https://github.com/continuedev/continue/commit/16cbe9499431d7eec64d0695821a223302d980cb)) +* prompt blocks ([9df325a](https://github.com/continuedev/continue/commit/9df325a71f3340c46820ac5335249095cda443ac)) +* Provide workspace path to HttpContextProvider ([4873f58](https://github.com/continuedev/continue/commit/4873f5805f89bc1f443211515dd7afb3fbc2cfff)) +* python context ([42d5f66](https://github.com/continuedev/continue/commit/42d5f660727dcf315d12193f70d23b283e7af10d)) +* recursively apply quick actions codelens ([#1925](https://github.com/continuedev/continue/issues/1925)) ([d5155da](https://github.com/continuedev/continue/commit/d5155dac697e5fa8b4241ebebe48bbfa66dc2c55)) +* redo action ([121be85](https://github.com/continuedev/continue/commit/121be85a69837a1d31dde31f7fca7098458ed38d)) +* refactor onboarding card ([b86bc6f](https://github.com/continuedev/continue/commit/b86bc6f727e292c2d3a8fb1511646c36e2a2531f)) +* reintroduce lazy apply for full files ([6504bd5](https://github.com/continuedev/continue/commit/6504bd55659823c8117d04ddb447f91d9932d086)) +* remove `models` property ([7f8882e](https://github.com/continuedev/continue/commit/7f8882eee136b90db9400175f9ee00fa1aa3ad93)) +* remove defaultTitle ([1bf359a](https://github.com/continuedev/continue/commit/1bf359a55fdb833569878167a1440e66c65d7249)) +* remove edit as a mode ([4f371a0](https://github.com/continuedev/continue/commit/4f371a0eb654067c626a41eb53718f565873975b)) +* remove tools from schema ([5bbda4f](https://github.com/continuedev/continue/commit/5bbda4f115a208ebd2df0c63ede75bfc5e131b54)) +* remove useFileExists ([2b34ee8](https://github.com/continuedev/continue/commit/2b34ee8c4156c544a3abd9616080f4d8e0b565a1)) +* rename to `Open Assistant configuration` ([9d8139a](https://github.com/continuedev/continue/commit/9d8139a6fae992eb1cb77248cc297d0a95683c12)) +* replace logo and deepseek model base info ([7749349](https://github.com/continuedev/continue/commit/7749349f8996f5da186ba1a8b2910443121ea2fc)) +* restructure for easier module publishing ([b51905d](https://github.com/continuedev/continue/commit/b51905da95307ed17f3fa7a466e94514bcd4113a)) +* retrieve AWS credentials from Env and from ECS/EC2 instance ([53426a1](https://github.com/continuedev/continue/commit/53426a12b858f341c9f70f8ee3513dbea39d648d)) +* reusable card ([d11376b](https://github.com/continuedev/continue/commit/d11376ba7f2b7ab1a85c75f361631fc2c5c26ab5)) +* rule colocation ([39dc367](https://github.com/continuedev/continue/commit/39dc367371c0df605f663c76fe490c4736f00153)) +* rule glob ([f95cdfa](https://github.com/continuedev/continue/commit/f95cdfaf83569159cd7aed02134be7dd5f4029cf)) +* rules ([2620064](https://github.com/continuedev/continue/commit/2620064c53ecf7de3d61b34043d2c0450f68b13c)) +* rules display ([40914a8](https://github.com/continuedev/continue/commit/40914a8bf3b4f2c1764873bc3172feab3bf23f3a)) +* rules policies ([8a2ffb3](https://github.com/continuedev/continue/commit/8a2ffb3a859d4fbec3299500a0d860c0f725573d)) +* rules preview ([d57d35d](https://github.com/continuedev/continue/commit/d57d35d5bdf6015593283a2aecbf88bca1c8c574)) +* run prettier ([ecdb4f5](https://github.com/continuedev/continue/commit/ecdb4f530dee01e8a67e7fd964206428d379b4db)) +* **scaleway:** update supported models ([8b04ba6](https://github.com/continuedev/continue/commit/8b04ba6b233d72f1e61ea67fd63de51d03629282)) +* separate toolbar action buttons ([aba6e4e](https://github.com/continuedev/continue/commit/aba6e4e61c6c7b548126a79ffeb0608e1de1147b)) +* show disableIndexing in More ([5d95b62](https://github.com/continuedev/continue/commit/5d95b62e683c0ea50eb519f7cc2851736e8ee64b)) +* show num diffs in toolbar ([ad6c0d0](https://github.com/continuedev/continue/commit/ad6c0d0bb850308993e53c4117cc45664fd8970e)) +* simplify types ([b18fd4a](https://github.com/continuedev/continue/commit/b18fd4aee0c66e41113bce4de1fa526da1dc16c6)) +* simplify typings ([c6fa6d7](https://github.com/continuedev/continue/commit/c6fa6d78a714ba6bba44ec2ef9825080b0a5b69a)) +* single default quick pick to edit ([#1743](https://github.com/continuedev/continue/issues/1743)) ([ca7bde9](https://github.com/continuedev/continue/commit/ca7bde9b5e10d684ea44291c67eb294edc357240)) +* skip hub onboarding in free trial ([d995149](https://github.com/continuedev/continue/commit/d99514995588cc2c502df99757e22f5ac3e2c7a1)) +* skip onboarding subtext ([9e6ff4b](https://github.com/continuedev/continue/commit/9e6ff4b91447b03d1b9949499cf5135d7a369df9)) +* smaller headings, use assistant name ([85804ff](https://github.com/continuedev/continue/commit/85804ff9e54adf30f1a4b23b3003b39338a82065)) +* split diff ([b7defc8](https://github.com/continuedev/continue/commit/b7defc8d912b09d9323e05a82442bea17c6faef4)) +* split diffs ([3c537f5](https://github.com/continuedev/continue/commit/3c537f51c13ee9064a3e17f3aec62dc5283ae3e2)) +* split diffs ([39087c2](https://github.com/continuedev/continue/commit/39087c2207e0dd3764761e91b9a2abd3ca6db906)) +* support o3/o4 as agents ([8bb18fd](https://github.com/continuedev/continue/commit/8bb18fd2ee4a0fb81b2f24903e47fb1b0beade36)) +* supports agent 4 deepseek ([82d8e1e](https://github.com/continuedev/continue/commit/82d8e1e6795e7258880d414c4bb78c6f83b17883)) +* toolbar header for all codeblocks ([635f7cb](https://github.com/continuedev/continue/commit/635f7cb168f264446e40c6887347327b101ee413)) +* tutorial listener ([6e01c7d](https://github.com/continuedev/continue/commit/6e01c7d0ca0d139e471edf40018d35e1033638f3)) +* unskip tests ([a5619e2](https://github.com/continuedev/continue/commit/a5619e29c8a0230f578c092c028c7cc6f3066afb)) +* update azure uri for foundry users ([638969b](https://github.com/continuedev/continue/commit/638969b7c7594f36bfefd59a986032ba597f88fa)) +* update btn colors ([b7c7171](https://github.com/continuedev/continue/commit/b7c71719e55e728f944399789f6749e493d5d13e)) +* update docs and input labelling ([1847317](https://github.com/continuedev/continue/commit/18473174365c88e7e83fd8123cb6af9318e10462)) +* update e2e tests ([93cec27](https://github.com/continuedev/continue/commit/93cec27e28773778e3223424fb72026c9e3ead44)) +* update executable perms on linux/macos ([dcbd80e](https://github.com/continuedev/continue/commit/dcbd80ecf47adeb49b9484bb1e1b3c43ff80bff8)) +* update onboarding w/ embeddings model ([#1570](https://github.com/continuedev/continue/issues/1570)) ([ed56c8f](https://github.com/continuedev/continue/commit/ed56c8f7f325f19c9b4d1c7e3cb775f850beaea9)) +* update PreToolbar ([3933791](https://github.com/continuedev/continue/commit/39337910f125a71414cf2c39b96250fc512777be)) +* update redux store schemas ([438cba4](https://github.com/continuedev/continue/commit/438cba4501026ef1705987b23f419570d1175ea1)) +* update styling ([ef349ec](https://github.com/continuedev/continue/commit/ef349ecec90dac3d15eb80ae17cf24c155d1e683)) +* update sys prompt ([25c7144](https://github.com/continuedev/continue/commit/25c714494588433d1c43d6af99cce175b48e21cc)) +* update to work as normal context provider ([0ace169](https://github.com/continuedev/continue/commit/0ace1699356be8024a8ab49ccadc4b1b22c18e08)) +* update tutorial files w/ agent mode step ([8eaf078](https://github.com/continuedev/continue/commit/8eaf078638c0d2d9c14aa0cc8e465df66f01e4df)) +* update URL replace logic ([fe6c9a1](https://github.com/continuedev/continue/commit/fe6c9a1477ab814f3cc4d0973e851701621d2c54)) +* updated prompt docs ([204aa51](https://github.com/continuedev/continue/commit/204aa51a944906fe629e92095a3f7f86113b9f6c)) +* use @lancedb/vectordb-win32-arm64-msvc ([0277320](https://github.com/continuedev/continue/commit/027732073aa0fb5202b558f4c0d71c71c6b8acbb)) +* use `fetch` instead of `http` ([401d67b](https://github.com/continuedev/continue/commit/401d67bbd0dc11fd6eda2f7d9c17dfd4da0a43f5)) +* use `instant` property on diff manager ([2f12bbd](https://github.com/continuedev/continue/commit/2f12bbdf25b1ff189a88d37bfba4f3bfe7f2f3bc)) +* use bm25 for fts ([2e5b579](https://github.com/continuedev/continue/commit/2e5b5794e9b394405c127893100be21e008b45ad)) +* use clipboard content ([9dd6284](https://github.com/continuedev/continue/commit/9dd6284b8e4b1dc09b704bc00d5231af9569b6bc)) +* use correct deployment for azure ([8e24fcf](https://github.com/continuedev/continue/commit/8e24fcf4a0ee655dfbe83d95b82855041f0ba246)) +* use crawlee for docs service ([a51c520](https://github.com/continuedev/continue/commit/a51c520deefa49f9d67aaa2469bb261af00dab80)) +* use exponential backoff in llm chat ([#1115](https://github.com/continuedev/continue/issues/1115)) ([a87df40](https://github.com/continuedev/continue/commit/a87df40a2c875a1538aa112d7d35c03137990ee2)) +* use git diff, improve comment formatting ([1adbd9a](https://github.com/continuedev/continue/commit/1adbd9a456f6c4c2f56b78d6bd5e3b8737f60ec5)) +* use hub blocks for local onboarding ([1b45308](https://github.com/continuedev/continue/commit/1b453083b14e60afda14de69b7bfb2f7ce74194b)) +* use meyers diff after initial edit/apply ([f5e7f9c](https://github.com/continuedev/continue/commit/f5e7f9ce71d4c34e8ee72b0d78fe89c68d0b7170)) +* use s3 for global docs cache on all docs ([0156409](https://github.com/continuedev/continue/commit/0156409dac5a445b055ede921c1c07706759ff4e)) +* use theme color for shortcuts rows ([44fdd65](https://github.com/continuedev/continue/commit/44fdd65967b561527865a02cafce0de4cdc9fa70)) +* use thunj ([eae1dd2](https://github.com/continuedev/continue/commit/eae1dd20bb296099db94175c43bf7af445e97200)) +* v1 onboarding card ([0d47647](https://github.com/continuedev/continue/commit/0d476473bda2ef8bea78064c89c5bc1f6818fec1)) +* vitest ([3cd19f5](https://github.com/continuedev/continue/commit/3cd19f5fabdb6eab3be381ccef8de743b37fcf29)) +* **VSC:** give option to disable quick fix ([951784c](https://github.com/continuedev/continue/commit/951784c790664a80d87b54e33886a3582137ad50)) +* vscode config for json ([666fb18](https://github.com/continuedev/continue/commit/666fb186d6b4cee9dcc95e1adc6b42748300de4c)) +* withExponentialBackoff utility function ([ad8991e](https://github.com/continuedev/continue/commit/ad8991eac0f7f40f3877d56392592d8d83e173a6)) +* working `copy-client` ([09beb58](https://github.com/continuedev/continue/commit/09beb58260f32043c89cff39c6e8567f25099c9c)) +* write initial unit test for apply ([f4a59dc](https://github.com/continuedev/continue/commit/f4a59dc185c3ea7ceb29a4629ea0c7dc82f44dbb)) + + +### Performance Improvements + +* :green_heart: hardcode distro paths ([edf0f56](https://github.com/continuedev/continue/commit/edf0f5603730d01d7ca4ca055dd49da596648627)) +* :zap: don't show server loading immediately ([5047dfc](https://github.com/continuedev/continue/commit/5047dfcd2a2e47468c15ed05c69781cc615ef723)) +* **llm:** Optimize pruneLines functions in countTokens ([35b3189](https://github.com/continuedev/continue/commit/35b3189538da5891617a79ba9c0badb0bb7dc1bc)) +* **llm:** Optimize pruneLines functions in countTokens ([28cdd1c](https://github.com/continuedev/continue/commit/28cdd1cee25973aa9a8a5cfdcbcc436e0b7f6240)) +* **llm:** Optimize pruneLines functions in countTokens ([881f8b3](https://github.com/continuedev/continue/commit/881f8b3139794aca0a6699c3d34ebf8fba01b789)) + + +### Reverts + +* Revert "Add citations to the log" ([caf7288](https://github.com/continuedev/continue/commit/caf7288d36c1361b6cb279821d9ee377636f72f7)) +* Revert "feat: add bookmark logic" ([730ac56](https://github.com/continuedev/continue/commit/730ac56d5a15a6b2931330aeb849e2d260d2644a)) +* Revert "update TabBar to use Redux for session management" ([9f13b92](https://github.com/continuedev/continue/commit/9f13b92b3fbc4157124ccf120028312390eed70f)) +* :bookmark: update version ([d6ebc6d](https://github.com/continuedev/continue/commit/d6ebc6d969ccafc753ecf00e0309777b96b4ad11)) +* :bug: revert unecessary changes from yesterday ([3629ddd](https://github.com/continuedev/continue/commit/3629dddb1daea23fbd29b03705e742ec2a22d6ec)) +* :fire: disable fallback_context_item ([a572db4](https://github.com/continuedev/continue/commit/a572db40b6c9ce98b07e89d34f8652e19f91187e)) diff --git a/packages/config-yaml/package.json b/packages/config-yaml/package.json index d7de62fdf..4b994b794 100644 --- a/packages/config-yaml/package.json +++ b/packages/config-yaml/package.json @@ -1,6 +1,6 @@ { "name": "@continuedev/config-yaml", - "version": "1.0.94", + "version": "1.0.0", "description": "", "main": "dist/index.js", "types": "dist/index.d.ts", From c227894c139004a749daeb85f8b5f4564d87ecc8 Mon Sep 17 00:00:00 2001 From: Nate Date: Sun, 22 Jun 2025 00:32:16 -0700 Subject: [PATCH 37/91] update semantic release config --- packages/config-yaml/package.json | 2 +- packages/config-yaml/release.config.js | 17 +++++++++++++++-- 2 files changed, 16 insertions(+), 3 deletions(-) diff --git a/packages/config-yaml/package.json b/packages/config-yaml/package.json index 4b994b794..f9625e5f8 100644 --- a/packages/config-yaml/package.json +++ b/packages/config-yaml/package.json @@ -1,6 +1,6 @@ { "name": "@continuedev/config-yaml", - "version": "1.0.0", + "version": "1.0.95", "description": "", "main": "dist/index.js", "types": "dist/index.d.ts", diff --git a/packages/config-yaml/release.config.js b/packages/config-yaml/release.config.js index 14189057d..99ed349bf 100644 --- a/packages/config-yaml/release.config.js +++ b/packages/config-yaml/release.config.js @@ -1,7 +1,19 @@ export default { branches: ["main", "nate/semantic-release"], + tagFormat: "@continuedev/config-yaml@${version}", plugins: [ - "@semantic-release/commit-analyzer", + [ + "@semantic-release/commit-analyzer", + { + releaseRules: [ + // Only release if commits affect this package + { scope: "config-yaml", release: "patch" }, + { scope: "config-yaml", type: "feat", release: "minor" }, + { scope: "config-yaml", type: "fix", release: "patch" }, + { scope: "config-yaml", breaking: true, release: "major" }, + ], + }, + ], "@semantic-release/release-notes-generator", "@semantic-release/changelog", "@semantic-release/npm", @@ -9,7 +21,8 @@ export default { "@semantic-release/git", { assets: ["CHANGELOG.md", "package.json"], - message: "chore(release): ${nextRelease.version} [skip ci]", + message: + "chore(release): @continuedev/config-yaml@${nextRelease.version} [skip ci]", }, ], "@semantic-release/github", From 3a1b9c78cf890a9f5f02280976a50ba8b359ace9 Mon Sep 17 00:00:00 2001 From: semantic-release-bot Date: Sun, 22 Jun 2025 07:33:24 +0000 Subject: [PATCH 38/91] chore(release): @continuedev/config-yaml@1.0.0 [skip ci] --- packages/config-yaml/CHANGELOG.md | 1068 +++++++++++++++++++++++++++++ packages/config-yaml/package.json | 2 +- 2 files changed, 1069 insertions(+), 1 deletion(-) diff --git a/packages/config-yaml/CHANGELOG.md b/packages/config-yaml/CHANGELOG.md index 81b43054f..2814e9ff2 100644 --- a/packages/config-yaml/CHANGELOG.md +++ b/packages/config-yaml/CHANGELOG.md @@ -1057,6 +1057,1074 @@ * **llm:** Optimize pruneLines functions in countTokens ([881f8b3](https://github.com/continuedev/continue/commit/881f8b3139794aca0a6699c3d34ebf8fba01b789)) +### Reverts + +* Revert "Add citations to the log" ([caf7288](https://github.com/continuedev/continue/commit/caf7288d36c1361b6cb279821d9ee377636f72f7)) +* Revert "feat: add bookmark logic" ([730ac56](https://github.com/continuedev/continue/commit/730ac56d5a15a6b2931330aeb849e2d260d2644a)) +* Revert "update TabBar to use Redux for session management" ([9f13b92](https://github.com/continuedev/continue/commit/9f13b92b3fbc4157124ccf120028312390eed70f)) +* :bookmark: update version ([d6ebc6d](https://github.com/continuedev/continue/commit/d6ebc6d969ccafc753ecf00e0309777b96b4ad11)) +* :bug: revert unecessary changes from yesterday ([3629ddd](https://github.com/continuedev/continue/commit/3629dddb1daea23fbd29b03705e742ec2a22d6ec)) +* :fire: disable fallback_context_item ([a572db4](https://github.com/continuedev/continue/commit/a572db40b6c9ce98b07e89d34f8652e19f91187e)) + +# 1.0.0 (2025-06-22) + + +### Bug Fixes + +* :adhesive_bandage: allow GGML to use api.openai.com ([db19f6b](https://github.com/continuedev/continue/commit/db19f6bc98285d8ea45b4db16f619dffbec7c3db)) +* :adhesive_bandage: skip indexing really large files ([b773fe6](https://github.com/continuedev/continue/commit/b773fe6d7a0b489a658139ea5fc958abd46a20b2)) +* :ambulance: catch error from meilisearch client.health ([00775f5](https://github.com/continuedev/continue/commit/00775f54e6c3fa8044a996ea1a7cf0f2205735dd)) +* :ambulance: class_name hotfix ([83b0417](https://github.com/continuedev/continue/commit/83b0417f6c8c579d0ea5a0f689eceb822fe7a04d)) +* :ambulance: fix import of run from __main__ ([ebfe428](https://github.com/continuedev/continue/commit/ebfe428b7f70de66bc5692cca1db7cd10ef4b997)) +* :ambulance: hotfix and package.json seo experiment ([42024ef](https://github.com/continuedev/continue/commit/42024effba73673b4080c25806c21293b5daad3e)) +* :ambulance: load global ~/.continue/assistants ([4b55cfb](https://github.com/continuedev/continue/commit/4b55cfb2e8ad4803855020111d0cff6a38ad79d5)) +* :ambulance: logging to file causing problems with starting server ([8b95ef7](https://github.com/continuedev/continue/commit/8b95ef7de258de8498b328d9e6107a95f57f8d2c)) +* :ambulance: specify packagePath for vsix ([512ccfd](https://github.com/continuedev/continue/commit/512ccfda670abb6132e9cd720280a472e53e3326)) +* :arrow_up: upgrade openai python package ([19cbe2c](https://github.com/continuedev/continue/commit/19cbe2cebae8e2155b6b4375c6a96a3b25e87615)) +* :art: many small improvements ([28f5d7b](https://github.com/continuedev/continue/commit/28f5d7bedab05a8b061e4e7ee9055a5403786bbc)) +* :bookmark: update extension version ([05b9642](https://github.com/continuedev/continue/commit/05b96420bda2da0c725cacc8141d87449eaf9e9c)) +* :bookmark: update version ([afae160](https://github.com/continuedev/continue/commit/afae1600255714d0a4f18f892d3e7b5e1d921962)) +* :bookmark: update version ([9aee2cc](https://github.com/continuedev/continue/commit/9aee2cc44c461ce0e001185af85352e78522bab5)) +* :bookmark: update version to try again ([1905f31](https://github.com/continuedev/continue/commit/1905f319470c02ee414498b9101b6e64b4b15d65)) +* :bookmark: v3 -> v4 of upload-artifact ([d24862a](https://github.com/continuedev/continue/commit/d24862a6fd22e4eac1b2ca27ce7bf029f0d8fa4a)) +* :bug: a few minor fixes ([c918bb3](https://github.com/continuedev/continue/commit/c918bb3af5ec4a4a409eb0a3add27951b00c3c59)) +* :bug: a handful of bug fixes ([e1325c0](https://github.com/continuedev/continue/commit/e1325c0153becb95b454810d9461efd7d3624a6a)) +* :bug: a number of small fixes + disable summaries ([a975560](https://github.com/continuedev/continue/commit/a9755603c3a2c0b3afe809f77a63824c77c6419e)) +* :bug: access highlighted_code through context_manager ([1afb37b](https://github.com/continuedev/continue/commit/1afb37b5bb901d95c493039591b9243cd2cdd6f7)) +* :bug: add data file for ca_bundle ([b82d83f](https://github.com/continuedev/continue/commit/b82d83f79389897ed5f05eb9b5e8daf9cf64ee6f)) +* :bug: Add requestOptions to YAML config for mcp ([81c20c1](https://github.com/continuedev/continue/commit/81c20c11dbbce2eccefd00364c5b74b298b2f24f)) +* :bug: add server/exe to .vscodeignore insteading of manually removing ([e8ebff1](https://github.com/continuedev/continue/commit/e8ebff1e6b07dfaafff81ee7013bb019cbfe2075)) +* :bug: additional fixes to ssh /edit ([4428acd](https://github.com/continuedev/continue/commit/4428acdd6f372c3724a908fafb1c793e0eae4096)) +* :bug: allow end/home keys to work ([615d30e](https://github.com/continuedev/continue/commit/615d30e3dce92a9993b0e93b044faadf228529b1)) +* :bug: allow None for timeout ([ff3de11](https://github.com/continuedev/continue/commit/ff3de1184737f1124090d384b877a30550b60869)) +* :bug: another hotfix - don't destructure selectors ([534304a](https://github.com/continuedev/continue/commit/534304a2a4f9abfc221a961f279d1b43d14b6d33)) +* :bug: another windows fix in typegen.js ([f38c8fb](https://github.com/continuedev/continue/commit/f38c8fb8b33a705ed4eb4d2e0974060ebb88afd3)) +* :bug: async with Client (meilisearch) ([9a0cd64](https://github.com/continuedev/continue/commit/9a0cd644dcb5ff46817a6ea686a6de0fb764c960)) +* :bug: attempting to fix mkdir ([c1a8097](https://github.com/continuedev/continue/commit/c1a8097f0a7f3cddb0aebac26e6197ffef186972)) +* :bug: automigrate between short/long imports ([eecc2b5](https://github.com/continuedev/continue/commit/eecc2b57c5c5a144abfc0623102438e902c4aeba)) +* :bug: avoid removing disallowed file windows ([19a3266](https://github.com/continuedev/continue/commit/19a3266b6f14186bd0839fac8b2a04b5a29f32e7)) +* :bug: bug when highlighting code prior to context_manager creation ([74a52c8](https://github.com/continuedev/continue/commit/74a52c8399b3ccf2d2100b088b79e65c6ca6ad7e)) +* :bug: bug where old server doesn't get updated ([bb776a0](https://github.com/continuedev/continue/commit/bb776a03df3e6a39a1726b781ea33c2ccebd5343)) +* :bug: catch error when workspace uri isn't defined ([fc9eb30](https://github.com/continuedev/continue/commit/fc9eb3051fd5a7c9cad57b5d6cd93374bd8210fb)) +* :bug: change for/backwardslash decoding scheme ([a3a05fe](https://github.com/continuedev/continue/commit/a3a05fee312ad7c04d2abb0e186da55c7d061462)) +* :bug: chmod for linux as well as mac ([089def0](https://github.com/continuedev/continue/commit/089def08c58120f78df78c10027639802ad8f77d)) +* :bug: clear all other selector destrucuring ([145642f](https://github.com/continuedev/continue/commit/145642f1eaf01d5809dabd79e7f64f234124683e)) +* :bug: Codebase Indexing was not starting on load ([e391d58](https://github.com/continuedev/continue/commit/e391d583041c54edb3fa0836eb9186c61e6b063d)) +* :bug: compatibility with python 3.8 ([275ad6f](https://github.com/continuedev/continue/commit/275ad6f72dafdfacffd9c9b5cc4847135a30f425)) +* :bug: convert to correct path sep in wsl URIs ([1b2341a](https://github.com/continuedev/continue/commit/1b2341a0113fadf8c8d23097ef1041d3e3088e84)) +* :bug: correct path sep for ssh-remote files ([b9bd8c1](https://github.com/continuedev/continue/commit/b9bd8c1848eaf38d5d15694a1ecae67f14566214)) +* :bug: correction to ContinueConfig serialization model ([b8aba4b](https://github.com/continuedev/continue/commit/b8aba4bc96d3b064012a40d837d5191cae20037e)) +* :bug: correctly generate uris for remote ([ab31cb1](https://github.com/continuedev/continue/commit/ab31cb15fae74592f49c2ceadc8d7810228fa7e2)) +* :bug: ctrl+c for windows overriding copy ([c3925c0](https://github.com/continuedev/continue/commit/c3925c04d981d2abc1e21cf72d6e77d165420a73)) +* :bug: custom escaping instead of URI for diff paths ([da3970e](https://github.com/continuedev/continue/commit/da3970e00061b7a223d23f51bd53012666d324dc)) +* :bug: default to counting chars if tiktoken blocked ([7006dbb](https://github.com/continuedev/continue/commit/7006dbb3e38a837a2580a516791874f6815ac25f)) +* :bug: don't fail on disconnected websocket ([0876610](https://github.com/continuedev/continue/commit/08766100cdb3638b3300ae4b700f8ec2af6b9a8a)) +* :bug: don't log stdout to console ([ee4701d](https://github.com/continuedev/continue/commit/ee4701dc45cd540728302ca8a09e9b7ce842597f)) +* :bug: don't open continue automatically ([8b76f51](https://github.com/continuedev/continue/commit/8b76f518313c20f13dda605931c9929ef58a7a22)) +* :bug: don't override context length param in OpenAI ([b2a6d07](https://github.com/continuedev/continue/commit/b2a6d07ea99be1f9288ee21477edc0874e780cad)) +* :bug: ebusy and logging bug fixes ([3d61469](https://github.com/continuedev/continue/commit/3d614690cd825ac5580074ecdc22f660455204f1)) +* :bug: fix "code" keyerror prior to context_manager.start ([866b16c](https://github.com/continuedev/continue/commit/866b16c3a9c9d88a7b90aa8a43610fc4884ab123)) +* :bug: fix /edit in ssh, pinyin input in combobox ([cda1be4](https://github.com/continuedev/continue/commit/cda1be46625abd8f44962cceeded04c8c47d9f65)) +* :bug: fix >c_d.png file path ([a9bc4e2](https://github.com/continuedev/continue/commit/a9bc4e26263faef8598dd8aa2aec7949c75ab70c)) +* :bug: fix 2 model config bugs ([b144d21](https://github.com/continuedev/continue/commit/b144d21b48a94aa8c203469eb7667bd22fc4e243)) +* :bug: fix 404 from undefined gif ([b467371](https://github.com/continuedev/continue/commit/b4673712e1a6a5b435125004a9b51498207fb7b6)) +* :bug: fix automigration ([ec41f55](https://github.com/continuedev/continue/commit/ec41f553c24d5f4b5bc4e601c989b1936d67ae1a)) +* :bug: fix azure openai bug for 07 version ([a8e69a0](https://github.com/continuedev/continue/commit/a8e69a02e6897689a1727fb7542ed5684b1348e2)) +* :bug: fix broken docs link ([210a02e](https://github.com/continuedev/continue/commit/210a02ef02341a98b4ed18095b2d656a7b994bd9)) +* :bug: fix bugs when selecting code to edit ([fa34214](https://github.com/continuedev/continue/commit/fa34214012d14385d231a1ac4f16006aaf4331fb)) +* :bug: fix ci to only upload from linux x64, not alpine ([4e1a5b1](https://github.com/continuedev/continue/commit/4e1a5b1fb3f96edc95b0938265da980e98566d56)) +* :bug: fix cmd+m bug ([38e8272](https://github.com/continuedev/continue/commit/38e827243ceff3732cd0f260e7a3bd4941a96bc5)) +* :bug: fix command enter, stop streaming on reject ([8e15ec3](https://github.com/continuedev/continue/commit/8e15ec3c2c1490d4a7d6371f877368376fd64e8a)) +* :bug: fix command enter, stop streaming on reject ([19b3886](https://github.com/continuedev/continue/commit/19b38863c21656526e0729776682430e0fa277da)) +* :bug: fix config.py import paths ([97861bf](https://github.com/continuedev/continue/commit/97861bf4117bbc36f8f87797a9ca60e6336f82cc)) +* :bug: fix context length bug for /edit ([d103263](https://github.com/continuedev/continue/commit/d103263030ad52debe73bd131c71bbf17f545956)) +* :bug: fix dialog links ([4c84e69](https://github.com/continuedev/continue/commit/4c84e6945a7c2018622eceb54e7fb54de193b03a)) +* :bug: fix for --meilisearch-url flag ([e2798c5](https://github.com/continuedev/continue/commit/e2798c5bb62eeb2a3bc8f5baee18f9d64ee86563)) +* :bug: fix for Azure OpenAI model names ([bcec2a0](https://github.com/continuedev/continue/commit/bcec2a0870d0ef649961b6c91ec866b612680b9e)) +* :bug: fix for edit=None in highlightedCode update ([247d3e9](https://github.com/continuedev/continue/commit/247d3e9a41ff8d9fe2da6386bfb0d0eb063b071c)) +* :bug: fix for lmstudio defaults ([0012922](https://github.com/continuedev/continue/commit/00129229cd881d6b910a4b01db68e702cdd63a40)) +* :bug: fix for windows drive difference bug ([d69c6d4](https://github.com/continuedev/continue/commit/d69c6d4f3729374ab40fcebc861e67f2da100ad9)) +* :bug: fix ggml bug ([1a75475](https://github.com/continuedev/continue/commit/1a75475c681053494984664ef1179171fe2a5d83)) +* :bug: fix headers for openai.;y ([44fe0c9](https://github.com/continuedev/continue/commit/44fe0c94a55a753ff5d6c3da6b63db4a5c70d780)) +* :bug: fix height bug after cmd+shift+R ([a7cb092](https://github.com/continuedev/continue/commit/a7cb0929bd064f73a1e3e49ba8dd6b6b7de387f4)) +* :bug: fix history.timeline indexing bug ([01ed2c7](https://github.com/continuedev/continue/commit/01ed2c7eb2d3417b2c190eea105008372f49a7c6)) +* :bug: fix huggingface tgi ([5316180](https://github.com/continuedev/continue/commit/5316180394d48d9877cda0cb3d7c3c6de9995d12)) +* :bug: fix import in run.py ([4cf1f75](https://github.com/continuedev/continue/commit/4cf1f75518053f9df174d5ab90c426124f85ecfa)) +* :bug: fix inability to copy/paste when ipynb is open ([850c8ae](https://github.com/continuedev/continue/commit/850c8aea7f3d9c46ff8e98bde936b92282376dae)) +* :bug: fix incorrect imports in default config file ([374bdd0](https://github.com/continuedev/continue/commit/374bdd037792825bf984026da12d4100ffebcac2)) +* :bug: fix keyboard shortcut for debugging ([c021958](https://github.com/continuedev/continue/commit/c021958ae893a9683352ba99e5c6301e38331492)) +* :bug: fix meilisearch empty body content-type bug ([598e243](https://github.com/continuedev/continue/commit/598e243fd292dd8851865ab1c3915ca55f4992cc)) +* :bug: fix missing path import ([5bfe68e](https://github.com/continuedev/continue/commit/5bfe68ea7f7e90e3cb1c3101360cf959b336a857)) +* :bug: fix model changing bug ([fd4a4dc](https://github.com/continuedev/continue/commit/fd4a4dcf004bea86d982ffffb66b4e3cb38193a6)) +* :bug: fix overriding of system message ([8444e76](https://github.com/continuedev/continue/commit/8444e76b7232fbddb62d3626de13653ae332d168)) +* :bug: fix paths ([b893c95](https://github.com/continuedev/continue/commit/b893c956fe75a9e45f06129290d043737f5c1007)) +* :bug: fix reducers for user input queue ([1a36a3c](https://github.com/continuedev/continue/commit/1a36a3c02acaf6bf29d4153c113217517b832942)) +* :bug: fix replicate to work with models requiring prompt input ([84ec574](https://github.com/continuedev/continue/commit/84ec574e182ec441e95d13c3543a934e0a036228)) +* :bug: fix serialization bug for context_providers ([2799249](https://github.com/continuedev/continue/commit/27992499af977baeb9124d9ab35ffec6d36a298a)) +* :bug: fix set_system_message ([084fdac](https://github.com/continuedev/continue/commit/084fdac3992f58dcf11241e7e5c2d5efa784ce0d)) +* :bug: fix ssh /edit by checking for file through vscode fs ([417d45c](https://github.com/continuedev/continue/commit/417d45ccddc2f434d7467e4f17113783996653dd)) +* :bug: fix telemetry bug ([042bc5a](https://github.com/continuedev/continue/commit/042bc5ac76800ee66e603ef23b2bb857fafe053e)) +* :bug: Fix the generating animation ([2f402b4](https://github.com/continuedev/continue/commit/2f402b4a1227ade5a4ba70f770974627b586e930)) +* :bug: fix timeout type ([e1a0290](https://github.com/continuedev/continue/commit/e1a0290d5a699e30464f1e682cb11c6aa119bd59)) +* :bug: fix togetherAI model json parsing ([deb291c](https://github.com/continuedev/continue/commit/deb291c1b225425cba543dd3b4c5557089abfb59)) +* :bug: fix undefined.filter bug ([9b58278](https://github.com/continuedev/continue/commit/9b582781ab0aceaaf1cff7432fed92fa6c205aae)) +* :bug: fix usages of LLM.complete ([f057ee4](https://github.com/continuedev/continue/commit/f057ee4d619b834dc245065d13417a86b44dc61b)) +* :bug: fix when multiple cursor ranges are selected ([f9c145c](https://github.com/continuedev/continue/commit/f9c145c9667e0cd9adb7f9b645f7abf12f7cf2a2)) +* :bug: fix yaml syntax error ([11c7cec](https://github.com/continuedev/continue/commit/11c7cecc107ef9f2571926055dbd80495fe0f8b2)) +* :bug: fixes for a few context_providers ([41b3233](https://github.com/continuedev/continue/commit/41b3233693c34cd81c872a1e7279721b5f640d60)) +* :bug: fixes to templating messages ([c56e24d](https://github.com/continuedev/continue/commit/c56e24d2a5f2b40702e4b495fa3f28d554eaa3ab)) +* :bug: fixing bugs with ggml ([87409c3](https://github.com/continuedev/continue/commit/87409c31832ccb707abbf134843323c9eb6e1183)) +* :bug: fixing issues with creating markdown files ([5c1c2d6](https://github.com/continuedev/continue/commit/5c1c2d626ffed786d00c79aadef26fa5718ca43d)) +* :bug: fixing small UI details ([088b7b8](https://github.com/continuedev/continue/commit/088b7b803866817aaedce6b61834f1ce5de7a7c2)) +* :bug: force kill old server with taskkill on windows ([b1b7d13](https://github.com/continuedev/continue/commit/b1b7d13dbf5b9f6ada28a5ef22ea6857d3b0bcb6)) +* :bug: ftc fix ([f5f10ef](https://github.com/continuedev/continue/commit/f5f10efee3402e117c34b6f0de4bf2fd7d2819c1)) +* :bug: gpt-4-32k in CHAT_MODELS ([b0445cd](https://github.com/continuedev/continue/commit/b0445cd5fc4538c8a9c4f3e76be0f3d724c99818)) +* :bug: handle when vscode workspace not open ([73c6827](https://github.com/continuedev/continue/commit/73c6827d02ff62313184e3745fd94c7591c98b61)) +* :bug: hotfix for user_input_queue.map ([610c576](https://github.com/continuedev/continue/commit/610c576cc9df72716c5e65838f805b15431011ea)) +* :bug: install python-virtualenv on linux, fix git hash files error ([6f0e634](https://github.com/continuedev/continue/commit/6f0e6340bb22ee150ef4b7996750f4c63c0bc2a7)) +* :bug: install python-virtualenv on linux, fix git hash files error ([7fa98ff](https://github.com/continuedev/continue/commit/7fa98ffe843320ddc63794a497a2d44570e005c3)) +* :bug: kill server before trying to delete exe on windows ([286fb0e](https://github.com/continuedev/continue/commit/286fb0e20e48859f129ccf568d03248805bcbc61)) +* :bug: let context providers work without meilisearch ([0f86a69](https://github.com/continuedev/continue/commit/0f86a69e4a83458db2e20e404c26dac2e02355cf)) +* :bug: llamacpp fix indexing max_tokens ([90590ab](https://github.com/continuedev/continue/commit/90590ab4e06fbc3fa721f73a4a922136946a756f)) +* :bug: make sure server_version.txt exists ([17806d9](https://github.com/continuedev/continue/commit/17806d932502adbf974ccd93a670e57b78be9a08)) +* :bug: make typegen.js windows compatible ([dc06228](https://github.com/continuedev/continue/commit/dc0622848b648ba27e7110b9b900673bb668ab4c)) +* :bug: MAX_TOKENS_FOR_MODEL bug fix, more testing ([1c288f7](https://github.com/continuedev/continue/commit/1c288f7749747c6b1908ae16c977f80e5597d2ca)) +* :bug: meilisearch fixes ([0de6e19](https://github.com/continuedev/continue/commit/0de6e1985d0e97ede5e19e7752a6be7cd2a5818d)) +* :bug: more reliable download with request ([fdb036b](https://github.com/continuedev/continue/commit/fdb036bcecec891adaf99d73101c458fc4087406)) +* :bug: more reliable setup of meilisearch ([12a8ae1](https://github.com/continuedev/continue/commit/12a8ae1c47f111b9f36633c96b26e8642c5ff223)) +* :bug: now progress bar when api_key entered ([bf82c6f](https://github.com/continuedev/continue/commit/bf82c6fd16a6777f0a9bb68ce4879d7bab9019bb)) +* :bug: number of bug fixes ([b9bdf58](https://github.com/continuedev/continue/commit/b9bdf5894c1c68b60d1919ae07b0f5909b00dec2)) +* :bug: numerous small fixes ([0940d75](https://github.com/continuedev/continue/commit/0940d756dec3b98071ae5e5a12966e02420b3cd2)) +* :bug: patch for ocassional 0 choices from older azure versions ([5c09b80](https://github.com/continuedev/continue/commit/5c09b8077588a447d6eaac9b7f624571be3ddb1d)) +* :bug: permissions for pypi-deployment step ([b237850](https://github.com/continuedev/continue/commit/b237850c4b64435e26dfb5f12275a16a93e556a8)) +* :bug: post-merge fixes ([96379a7](https://github.com/continuedev/continue/commit/96379a7bf5b576a2338142b10932d98cbc865d59)) +* :bug: remove empty grammar from llama_cpp_args ([e5bbe3b](https://github.com/continuedev/continue/commit/e5bbe3bc4d59b6f35db1ce1b94be14244c11c766)) +* :bug: replace hardcoded path for config file ([4fe9ace](https://github.com/continuedev/continue/commit/4fe9ace518bcdcf79999ce9938ba01b218d355e4)) +* :bug: require socksio ([bba5e5e](https://github.com/continuedev/continue/commit/bba5e5e5b1da2dd924aa2632e38d4bb702bbbdd9)) +* :bug: separately load ctx provs, fix filetree ([d8e821e](https://github.com/continuedev/continue/commit/d8e821e422678fd4248b472c7f3e67a32ecfefb5)) +* :bug: set api_keys in config.py, fix spawn error handling ([6823307](https://github.com/continuedev/continue/commit/68233071dd0d97a353a66fe5627d69f97a389ca8)) +* :bug: set export display in same step as linux npm test ([c3d62c5](https://github.com/continuedev/continue/commit/c3d62c5ae203aaca32583f75a7e80dfd9f196e11)) +* :bug: small bug fix ([32d1149](https://github.com/continuedev/continue/commit/32d1149692c26eb966693f03db6d9cf496ba57a4)) +* :bug: small bug fixes ([bc75ff2](https://github.com/continuedev/continue/commit/bc75ff294a2b5ec5eef5f77aff72aaa0c7f4a3f2)) +* :bug: small fixes, update troubleshooting docs ([51fc07c](https://github.com/continuedev/continue/commit/51fc07cf6441d6330ce64e45e56e8f333ca309ed)) +* :bug: solve EBUSY by polling ([9417973](https://github.com/continuedev/continue/commit/941797359f6554ac16a2e478047aabd5cbc0404b)) +* :bug: ssh compatibility by reading from vscode.workspace.fs ([e5f5630](https://github.com/continuedev/continue/commit/e5f56308c5fd87695278682b2a36ca60df0db863)) +* :bug: start meilisearch in parallel to server ([e4c1bb4](https://github.com/continuedev/continue/commit/e4c1bb4bedbe426d090f4bb2b8819ad935c5b3fb)) +* :bug: stop streaming on rejection ([8d05fc2](https://github.com/continuedev/continue/commit/8d05fc2bb5c5df617800c1abcf43bb03c574482f)) +* :bug: stop streaming on rejection ([9fc831e](https://github.com/continuedev/continue/commit/9fc831e7587cce99c8a6f2e56905c25068c8cab6)) +* :bug: streaming url_decode for Ollama ([3690101](https://github.com/continuedev/continue/commit/3690101b790f91c749f208693aaffc00b9fa2a42)) +* :bug: templating fix for queued LLM ([5c6609a](https://github.com/continuedev/continue/commit/5c6609ab5fa3a69cd0e3e8e61df643fcce1ecb47)) +* :bug: temporarily disable lsp before fixing w/ vscode ([98f340b](https://github.com/continuedev/continue/commit/98f340bd97cba6f30cfe55d47419e3925b9dc679)) +* :bug: temporarily remove replicate altogether ([bd79c00](https://github.com/continuedev/continue/commit/bd79c00e7790b92cfd8b8c8f8211b6c3d36e33a2)) +* :bug: test and fix small issues with GGML ([72e8332](https://github.com/continuedev/continue/commit/72e83325a8eb5032c448a5e891c157987921ced2)) +* :bug: timeout on blocking processes ([345b773](https://github.com/continuedev/continue/commit/345b7734d8c887d699d5038416d2a1f8193a33e9)) +* :bug: traceback fixes, remove replicate from hiddenimports ([45d9bab](https://github.com/continuedev/continue/commit/45d9bab5cea745573be7112d7130089c596c88fa)) +* :bug: try/except around starting meilisearch ([c867cd4](https://github.com/continuedev/continue/commit/c867cd40342d44901cf5277ded25f5dc5aaa4326)) +* :bug: update search path for ripgrep on windows ([e428dc5](https://github.com/continuedev/continue/commit/e428dc53cedf54f394a7cddfe8a7ce7fbf469bb9)) +* :bug: update the tip message for keyboard shortcut ([3558450](https://github.com/continuedev/continue/commit/355845002e178a618e9a792dd57b0649c3da8845)) +* :bug: urldecode ollama responses, make edit faster ([19050f8](https://github.com/continuedev/continue/commit/19050f83228b3e7f08a6aacd5bdd1804a8315e4a)) +* :bug: use certifi to set ca_bundle_path for openai ([3849420](https://github.com/continuedev/continue/commit/3849420948e491d5f84ac485169165d887751fd3)) +* :bug: use posthog-node, not -js ([88a8166](https://github.com/continuedev/continue/commit/88a8166476d38889fd4f9323472cc34a5226e05c)) +* :bug: use powershell remove-item ([64552dc](https://github.com/continuedev/continue/commit/64552dc881509c46aa14253ff94aee9d86ade256)) +* :bug: use windows equivalent of rm -rf ([8d19866](https://github.com/continuedev/continue/commit/8d198663e116c7c77b7e59015bc6032736f71f6e)) +* :bug: verify_ssl and ssl_context mutual exclusivity ([59b7453](https://github.com/continuedev/continue/commit/59b7453afed06418d4c171b65370a6a82f5a9221)) +* :bug: version patch in the publish step ([1936f72](https://github.com/continuedev/continue/commit/1936f725d226bea2e13d5d88c1dd7a9a02ddd259)) +* :bug: windowsHide on process spawn ([c3d31f0](https://github.com/continuedev/continue/commit/c3d31f00bb589df1c83308b7d9d69ed51c31341a)) +* :bug: write out npm run package as package.js ([4636c95](https://github.com/continuedev/continue/commit/4636c9590154d6b5995948003da212eb25003750)) +* :bug: write to local diff files ([6140d05](https://github.com/continuedev/continue/commit/6140d05e7d415d3334032c300ed593bdd181f7f5)) +* :children_crossing: add slash commands to default config ([58e5dc4](https://github.com/continuedev/continue/commit/58e5dc4a5c4fcbed25170b61fbd88d479c5aebcf)) +* :children_crossing: clear the dropdown after text input cleared ([23167a5](https://github.com/continuedev/continue/commit/23167a51d959fed5e4be057ceb9fff50cf34c6c8)) +* :children_crossing: don't order meilisearch results by contnet ([ab7a90a](https://github.com/continuedev/continue/commit/ab7a90a0972188dcc7b8c28b1263c918776ca19d)) +* :children_crossing: use default model in default config.py ([1bc5777](https://github.com/continuedev/continue/commit/1bc5777ed168e47e2ef2ab1b33eecf6cbd170a61)) +* :construction_worker: copy_metadata for replicate in run.spec ([b0426d8](https://github.com/continuedev/continue/commit/b0426d82a4871e9081367ad4e977b22f42db5a89)) +* :construction: working on fixing lsp ([1f95bb2](https://github.com/continuedev/continue/commit/1f95bb287846fc0501193d642420b574d9900857)) +* :fire: remove version from package.json ([27c0a40](https://github.com/continuedev/continue/commit/27c0a403de28345cd03c39ad46c02f68ff57b3a1)) +* :goal_net: catch errors when loading to meilisearch index ([7894c8e](https://github.com/continuedev/continue/commit/7894c8ed1517394aa00f6e496a97d9e27d204f5f)) +* :goal_net: display errors in SimpleChatStep ([72784f6](https://github.com/continuedev/continue/commit/72784f6f1161f0c5b647889c26089a8247111dc9)) +* :green_heart: cd extension before packaging ([0a6d72c](https://github.com/continuedev/continue/commit/0a6d72c099316e6cffa123d3ffa915f3fe13e770)) +* :green_heart: cleanup file ([951552d](https://github.com/continuedev/continue/commit/951552dd0eede1f8f255aeaf5d34a13ff0c7bfb7)) +* :green_heart: don't exclude jedi from pyinstaller ([a1328cb](https://github.com/continuedev/continue/commit/a1328cb5431f99cfe16b246ee4201b19530404e2)) +* :green_heart: fix build scripts ([ab799b0](https://github.com/continuedev/continue/commit/ab799b0b0133e926ea06a1a12c092f42b9e053a1)) +* :green_heart: fix copy statement to include.exe for windows ([36c3dfd](https://github.com/continuedev/continue/commit/36c3dfd51d319b9b9ad392988d13ef7f443e0937)) +* :green_heart: fix preview.yaml ([a736d62](https://github.com/continuedev/continue/commit/a736d62f0e8b9b80ab9a949fd1739fb9a3be26e1)) +* :green_heart: increase testing timeout to allow for fkill ([08b1cfd](https://github.com/continuedev/continue/commit/08b1cfdd2f6f456df7344c16f5d229a0ccfb841b)) +* :green_heart: install rosetta ([5b9ef10](https://github.com/continuedev/continue/commit/5b9ef102973c608bc409a7b9ec244a4be1494e96)) +* :green_heart: one last test ([758520f](https://github.com/continuedev/continue/commit/758520fe6b59d3330dec80ac07d05282d36e0058)) +* :green_heart: only upload once per binary ([490838a](https://github.com/continuedev/continue/commit/490838a8ad920a52ada7e85675aefd965e978d77)) +* :green_heart: package patch ([34f32ed](https://github.com/continuedev/continue/commit/34f32ed5f71055ea11d4332f18e77ceba5849631)) +* :green_heart: package:pre-release ([d3f21da](https://github.com/continuedev/continue/commit/d3f21da803e36b78f968c2216d9f93f90ebabd6a)) +* :green_heart: publish as pre-release! ([831bf5e](https://github.com/continuedev/continue/commit/831bf5e7f7c48dd80f71f1256f5597bd47bf22de)) +* :green_heart: publishing to depend on ALL tests ([a131c17](https://github.com/continuedev/continue/commit/a131c17326591e67a68faf6f96371ad8fc332b71)) +* :green_heart: pull origin main in main.yaml after pypi update ([6a9a079](https://github.com/continuedev/continue/commit/6a9a079914d94419183182cd0a5cc4439f2101ad)) +* :green_heart: remove "patch" from vsce publish command ([d8327ec](https://github.com/continuedev/continue/commit/d8327ec6f82058479bd294bfcdccaf3c2b54de0a)) +* :green_heart: remove npm_config_arch ([8c51664](https://github.com/continuedev/continue/commit/8c5166471b0d83b924d8bee1e0ca51822cc1bbdc)) +* :green_heart: remove version from apckage.json ([5438ce9](https://github.com/continuedev/continue/commit/5438ce94406baa0f7d131ecacadefc72912dca0d)) +* :green_heart: set permissions on apple silicon binary ([715cfed](https://github.com/continuedev/continue/commit/715cfed18747b6bc2e6d7bd7a977d249cc9066d5)) +* :green_heart: testing ([14062c5](https://github.com/continuedev/continue/commit/14062c5c385bb7ba80096bf7daf6b6a5568b0b54)) +* :green_heart: testing for failure to package dist in vsix ([19acf3b](https://github.com/continuedev/continue/commit/19acf3bb36c1e44274297c806b89b589ca02f5ba)) +* :green_heart: update permissions and version ([c4ed41c](https://github.com/continuedev/continue/commit/c4ed41c861573f4c9bdff1a21ca3e056cfdd766e)) +* :green_heart: update pylsp hidden import ([1e8ea65](https://github.com/continuedev/continue/commit/1e8ea654f5ad1e06bff2660b54a50955098703ba)) +* :green_heart: update pypi version, don't push from main ([208eb65](https://github.com/continuedev/continue/commit/208eb65f67ccc62ce6d683fd9bed2fe9524b2136)) +* :green_heart: use curl to download binary ([199e4b3](https://github.com/continuedev/continue/commit/199e4b3b99642ba5b1558132aa10119be1eeb525)) +* :heavy_plus_sign: add bs4 to requirements.txt ([8a1e6fb](https://github.com/continuedev/continue/commit/8a1e6fb4adec6e5febb2a0d78eb0b2a01bfa028b)) +* :heavy_plus_sign: add ripgrepy dependency to requirements.txt ([9801b50](https://github.com/continuedev/continue/commit/9801b50192ca661972d5b2997028db3cd0725fb7)) +* :heavy_plus_sign: hidden import for replicate ([b75555f](https://github.com/continuedev/continue/commit/b75555f106be3c7612e7c31818ff674485096e4f)) +* :heavy_plus_sign: include replicate in requirements.rtxt ([01b3f1f](https://github.com/continuedev/continue/commit/01b3f1ff8f4dd89ae79f15626ef5a3af2bc558c4)) +* :lipstick: don't display entirety of large tracebacks ([a74eda5](https://github.com/continuedev/continue/commit/a74eda56cfcafb5c463a74df564ced6f882f8d3e)) +* :lipstick: fix layout bugs ([b655781](https://github.com/continuedev/continue/commit/b6557810d70a7f341761d5018fa2835cc3a50af1)) +* :lipstick: fix UI problems in vscode light themes ([5e8866d](https://github.com/continuedev/continue/commit/5e8866da83f8a97cb8492f26e175b948d0282262)) +* :lipstick: logo alignment, better config failure description, patch ([c51ad53](https://github.com/continuedev/continue/commit/c51ad538deff06af6c9e5498b23e3536e18bfc4c)) +* :lipstick: nicer autoscroll ([88699ff](https://github.com/continuedev/continue/commit/88699ff909b026511da392bf2c0a96be02abc6fd)) +* :lipstick: small UI improvements ([ec4fb4d](https://github.com/continuedev/continue/commit/ec4fb4d9235151901c1f7367932ecc17ab55d8e4)) +* :lipstick: ui tweaks to history + scrollbars ([6e8885f](https://github.com/continuedev/continue/commit/6e8885fc2f7feb06ef6ac87d2d7688f9f33d15de)) +* :lipstick: update font size for input, remove first tutorial step ([73ff267](https://github.com/continuedev/continue/commit/73ff2678ad984c9d9082ec078a38450d5daa1376)) +* :lipstick: update light gray hex code ([e0e0482](https://github.com/continuedev/continue/commit/e0e0482f2af2eadd3df72fbdb6974c07ba11c527)) +* :lock: opt out of meilisearch analytics ([8db5b39](https://github.com/continuedev/continue/commit/8db5b39170229ba93b83f526e7fd80056e461c6a)) +* :loud_sound: better logging for ggml completion endpoint ([0459b0c](https://github.com/continuedev/continue/commit/0459b0c919903852254ac2cd081307788884cd84)) +* :loud_sound: fix logs to be sent from uvicorn ([d3b4103](https://github.com/continuedev/continue/commit/d3b4103cd2f639fc072b8a3269d7730478c8bb1c)) +* :loud_sound: websocket logging and horizontal scrollbar ([7bb0fe3](https://github.com/continuedev/continue/commit/7bb0fe34bbc8affce0c675b88ffb79a6b9985860)) +* :memo: escape in docs ([7314e79](https://github.com/continuedev/continue/commit/7314e79ac5bc34936a2c3de0fd01aadbfe640e72)) +* :memo: fix deployent readme ([7a38025](https://github.com/continuedev/continue/commit/7a3802523c2e5ae136c39849e2fbb0d3e7bba63e)) +* :memo: remove reference duplicates for ctx providers ([043d695](https://github.com/continuedev/continue/commit/043d695198caed305fa6651918c3bbb2de87db36)) +* :memo: small fix in troubleshooting.md ([275a03b](https://github.com/continuedev/continue/commit/275a03b7f1e32f57bd68e501074aa80e0dbed40f)) +* :memo: use backup server links in docs ([815627b](https://github.com/continuedev/continue/commit/815627b167e4bf06308b51c6756e33c36b17b631)) +* :pencil2: Fix typo that was causing automatic version bumping not to work for intellij ([3daf2c7](https://github.com/continuedev/continue/commit/3daf2c7b23caf838b862c2d2791ae8655b761d12)) +* :rocket: fallback s3 bucket ([aa98080](https://github.com/continuedev/continue/commit/aa98080cb16c75d2b7d6d9771b97e63120052c62)) +* :safety_vest: more safely convert windows path to posix ([4309f9d](https://github.com/continuedev/continue/commit/4309f9def89c25611273d99db01e7cc477ad935e)) +* :white_check_mark: allow longer for python server to start in test ([d8f5f10](https://github.com/continuedev/continue/commit/d8f5f102f6f91487be0281316e581858ec4ca260)) +* :white_check_mark: allow longer wait in test ([40ec1a3](https://github.com/continuedev/continue/commit/40ec1a31a7cd37da8b75bbabf1f0d160bb7bec5d)) +* :zap: register vscode commands prior to server loading ([f7a3659](https://github.com/continuedev/continue/commit/f7a3659381f839b890f2c53086f7fedecf23d9ab)) +* :zap: update count_tokens method ([8214203](https://github.com/continuedev/continue/commit/82142033f935d6236620d82e31a70ea8f2fb243e)) +* 'inferenceConfig.stopSequences' failed to satisfy constraint: Member must have length less than or equal to 4 [#2538](https://github.com/continuedev/continue/issues/2538) ([90e994d](https://github.com/continuedev/continue/commit/90e994db3c106f9b63bd043203111e5e101071ba)) +* (very) small typo breaking the prompt file examples link! ([bd6f9b9](https://github.com/continuedev/continue/commit/bd6f9b969647ee8cf6138dca63538063414553bb)) +* `REPLACE INTO` code_snippet table ([bdb967d](https://github.com/continuedev/continue/commit/bdb967d7b3c18fa2e0237f3cc0e0ea7415102715)) +* 🐛 Codebase Indexing still not work ([955ab93](https://github.com/continuedev/continue/commit/955ab93efc3f488127d16673b89f3900f75c2007)) +* 🐛 typo in core.py ([#429](https://github.com/continuedev/continue/issues/429)) ([705324e](https://github.com/continuedev/continue/commit/705324ed2ef588b2885c0b03107b9e30ae358dae)) +* a bunch of bugs, commit residuals such as npm install pg ([6d74e6b](https://github.com/continuedev/continue/commit/6d74e6b1fedf18b11ea12ba38164fcd146fdba4b)) +* actions ([653ca20](https://github.com/continuedev/continue/commit/653ca205dfbe2f7fec94891c99053d393d3efd0c)) +* add .mvn/ to list of default ignored folders ([ec91021](https://github.com/continuedev/continue/commit/ec91021adfcbd49becc3fdfbee6784981238a9f4)) +* add 'rich' module to requirements.txt ([#612](https://github.com/continuedev/continue/issues/612)) ([5d21bdf](https://github.com/continuedev/continue/commit/5d21bdf2930b30723f1fd80b05d8c1c2ad589bb2)) +* add checkmark icon to indicate selected model in dropdown ([98a3219](https://github.com/continuedev/continue/commit/98a321939ea1ba551025b16dc09f13e7a5e980ca)) +* add code range for quick actions/fixes ([#1687](https://github.com/continuedev/continue/issues/1687)) ([9f2e9bc](https://github.com/continuedev/continue/commit/9f2e9bc2dff474447d8502e386bb0cc804730bb9)) +* add context provider ([ae888d9](https://github.com/continuedev/continue/commit/ae888d9e814cf10931222070ed1e2ae5438325fe)) +* Add context/getSymbolsForFiles endpoint in JetBrains and handle symbol retrieval errors ([ba1fdf7](https://github.com/continuedev/continue/commit/ba1fdf7bac07afe04e62bd659a87dc89800a302b)) +* Add ContinuePluginDisposable to avoid memory leaks in Jetbrains ([a48a150](https://github.com/continuedev/continue/commit/a48a150b2024fca63cb50fb09a914a391c0cfce5)) +* add Delphi/Pascal syntax highlighting support ([cfcb06b](https://github.com/continuedev/continue/commit/cfcb06b1763b17e9e6d150963e090523c372d5d6)) +* Add directory checks and optimize token usage ([79736c3](https://github.com/continuedev/continue/commit/79736c3108313204184bb7d833ac21e23341354f)) +* add focus to InputToolbar on click ([#703](https://github.com/continuedev/continue/issues/703)) ([6b17de4](https://github.com/continuedev/continue/commit/6b17de49ed0e991221baee986f9dbb758d55f291)) +* add hover effect and restrict clickable area for the history and more back buttons ([9662b18](https://github.com/continuedev/continue/commit/9662b18a1ff36d8eaf743003f4df501245a31be2)) +* add missing eos_token for qwen2.5-coder ([6a7eea2](https://github.com/continuedev/continue/commit/6a7eea27ca5d1ade790ce08dc1cf4eb7bbdeb585)) +* add missing import ([400be9b](https://github.com/continuedev/continue/commit/400be9b47f0b8ab52b4e32ca77339497c63c8f96)) +* add mistral model options to config schema ([d56b48c](https://github.com/continuedev/continue/commit/d56b48cad2fcb0bb8e4a3e0dd3e32ab7f704d762)) +* add Msty logo ([397dcf4](https://github.com/continuedev/continue/commit/397dcf4ccc663560a49ff41e5892a5c118bce02e)) +* add new UI breakpoints ([5105645](https://github.com/continuedev/continue/commit/5105645dedec92abd3fc613777f60fd2a638a0ab)) +* add unit tests for commandExtractor and improve multiline comment handling ([0d940ec](https://github.com/continuedev/continue/commit/0d940ec6d1377b38945bd6217040cd025f89a80c)) +* add uuid to chat msgs for deletions ([f63fd5d](https://github.com/continuedev/continue/commit/f63fd5d83cefbbe01721515a8f28f435353bd804)) +* addTag ([53f886f](https://github.com/continuedev/continue/commit/53f886fd40c7bca29de06156f0e713a9700cc189)) +* allow downloading missing embedder on Ollama, in VS Code ([1dc58c6](https://github.com/continuedev/continue/commit/1dc58c63ab174f579e860d778ae85e73f6fb8c9d)) +* always show close icon ([4faed0b](https://github.com/continuedev/continue/commit/4faed0bc17a2b79e24fe5133efc40868bccaa6aa)) +* apply actions in toolbar ([cd810eb](https://github.com/continuedev/continue/commit/cd810eb93939bccc5bc0ff1e5c54572c7d27a97d)) +* apply insertion bug ([ceb9277](https://github.com/continuedev/continue/commit/ceb92773e9a6e4da27aa2de8f871c07f1e23d1a7)) +* apply notch filename trunaction ([033ade0](https://github.com/continuedev/continue/commit/033ade024ed685ef66dad53e675449a47e2dc872)) +* artifact name ([85e3fbc](https://github.com/continuedev/continue/commit/85e3fbc1c73872b1dfd8aee1f1dcef26b9f37761)) +* artifact upload ([1039e77](https://github.com/continuedev/continue/commit/1039e777c8a081ed9362f29e20c7c6133f3b07cd)) +* attempt to fix [#485](https://github.com/continuedev/continue/issues/485) ([#498](https://github.com/continuedev/continue/issues/498)) ([1188dd7](https://github.com/continuedev/continue/commit/1188dd7e5f26ed57d034c927ba032739963b9abc)) +* auth ([72636d9](https://github.com/continuedev/continue/commit/72636d96c8d8bb303e66f2344f5eeef26f078816)) +* autocomplete label after selecting a query type context provider ([#1562](https://github.com/continuedev/continue/issues/1562)) ([6407458](https://github.com/continuedev/continue/commit/6407458d7626d52558ea760b79a03129caba14ff)) +* autocomplete logging + input layout ([c542e5d](https://github.com/continuedev/continue/commit/c542e5d6153078f42e8eaf4361a4e5bdf24d9bc2)) +* Autocomplete not working when lookup is selected ([346f8fe](https://github.com/continuedev/continue/commit/346f8fe191a96eab5903b9a9f5a1e7e5ea1e3ee2)) +* avoid parsing md rules as yaml ([6c24132](https://github.com/continuedev/continue/commit/6c24132fab5b1c828aeb2e162c0f07ab6c830d0d)) +* binary ([8f24197](https://github.com/continuedev/continue/commit/8f2419740044a5df2ca70905c2b9ecd0fef3389e)) +* broken build ([d09711a](https://github.com/continuedev/continue/commit/d09711ab5895aca1c91552e7d9140b3aa0535d77)) +* broken help center quickpick ([a83526d](https://github.com/continuedev/continue/commit/a83526d6a49df6589d107695f99c03d02b68629c)) +* broken imports ([5fd8d2c](https://github.com/continuedev/continue/commit/5fd8d2cae5926418116031dbab8ce9465bc4c8f9)) +* broken imports ([f60009c](https://github.com/continuedev/continue/commit/f60009c2ea7c1c1a980152e5aa3cda17c3f6e64d)) +* broken JB build ([0e2587c](https://github.com/continuedev/continue/commit/0e2587cc71f497141ccd5fc807624eac80f8f183)) +* broken link ([6a675d8](https://github.com/continuedev/continue/commit/6a675d8edce1e430faa32b5142554bf61b843e0a)) +* broken schema config ([0529ae8](https://github.com/continuedev/continue/commit/0529ae8e1e4f61d83f2a4c43c9b9d23a84192ec9)) +* browse functionality ([ef5d753](https://github.com/continuedev/continue/commit/ef5d7535f0860978baeb337930f266b1201a7a5c)) +* build issues with jetbrains ([267961f](https://github.com/continuedev/continue/commit/267961f5b67f8f4529917fc43ebc1df88db92b51)) +* bump extension tester version ([006e1e4](https://github.com/continuedev/continue/commit/006e1e4b3bad2a8545a492cbeeb3238a1bf3345b)) +* bump node.js dependencies ([18fd7fb](https://github.com/continuedev/continue/commit/18fd7fbe58a03dfda382f755e261c5f16e88f38e)) +* cache ([368d264](https://github.com/continuedev/continue/commit/368d264d221793b7f2439678cef9b8b032135529)) +* caching ([1e7aa1a](https://github.com/continuedev/continue/commit/1e7aa1a879c80c0acddf09fbe0d887b7ec9bd31d)) +* change from llama3.1-8b to llama3.1:8b ([ea060a3](https://github.com/continuedev/continue/commit/ea060a37567af620cbdb8d665beb3f36cfeada6d)) +* chat tests ([7be3bb4](https://github.com/continuedev/continue/commit/7be3bb4161e7a17f7b0ae6e8d3ce365479e70dde)) +* ci ([1f47f54](https://github.com/continuedev/continue/commit/1f47f5436dde900b04cf1b307efa64f0fecebd59)) +* ci ([f6f2633](https://github.com/continuedev/continue/commit/f6f263375be129e438ab46a3ddbbba0722d3eb24)) +* ci ([fa9f86b](https://github.com/continuedev/continue/commit/fa9f86b6fd9ddb8cfab7dc52772c9f5a0623d654)) +* CI checks + fix for broken config-yaml types ([2032a8c](https://github.com/continuedev/continue/commit/2032a8c31ce9f30a5996a0fa6566d840a1eae21b)) +* ci e2e tests ([ade32d4](https://github.com/continuedev/continue/commit/ade32d428c5ef0fc8f5daefd52571b95387002f3)) +* ci tests ([27d20eb](https://github.com/continuedev/continue/commit/27d20eb08b25b142a54641048670b036e201ea1d)) +* circular state in redux selector ([5921bfa](https://github.com/continuedev/continue/commit/5921bfac67237dd4ea34dc1aad7856b220adf062)) +* cleanup model select ([1933a29](https://github.com/continuedev/continue/commit/1933a29ec4536d4887130703f1b0f94c3cd3db8d)) +* Clear all diff blocks before streaming and ensure dispose is run on EDT ([41357cd](https://github.com/continuedev/continue/commit/41357cd00c72b61cd54b80aa3963d047c0bb4184)) +* Clipboard is not available in chat window ([ef26b7c](https://github.com/continuedev/continue/commit/ef26b7c80eb0cc503017df8b9abd634f868a9b89)) +* close extension after tests ([575a707](https://github.com/continuedev/continue/commit/575a70721b39e41bfe8b860824d5eb606ce29ba9)) +* close sidebar when cmd+l pressed on focus ([93c9507](https://github.com/continuedev/continue/commit/93c95075425179d27421c7b54d92c9235d914c3c)) +* Cloudflare Workers AI message handling ([7eff255](https://github.com/continuedev/continue/commit/7eff25595c6aa063db37fb2d5394447c8472ba20)) +* cmd+shft+l closes sidebar if focused ([#1638](https://github.com/continuedev/continue/issues/1638)) ([92b5c4c](https://github.com/continuedev/continue/commit/92b5c4ccf64a88c461bb32abc9ab02329651e6be)), closes [#1536](https://github.com/continuedev/continue/issues/1536) [#1456](https://github.com/continuedev/continue/issues/1456) [#1564](https://github.com/continuedev/continue/issues/1564) [#1576](https://github.com/continuedev/continue/issues/1576) [#1570](https://github.com/continuedev/continue/issues/1570) [#1582](https://github.com/continuedev/continue/issues/1582) [#1600](https://github.com/continuedev/continue/issues/1600) [#1618](https://github.com/continuedev/continue/issues/1618) [#1626](https://github.com/continuedev/continue/issues/1626) [#1637](https://github.com/continuedev/continue/issues/1637) +* code automatically expands after pressing enter ([42c02be](https://github.com/continuedev/continue/commit/42c02bed5fb61f925eb829cd8e7e39425225cc30)) +* codestral template ([d56a33e](https://github.com/continuedev/continue/commit/d56a33ea06f7c9724ffaef86d71bbb8d31840fc8)) +* colocation ([fb28272](https://github.com/continuedev/continue/commit/fb282727e92237f6b14e28e3538e04e13b837f1e)) +* colocation ([e1d227c](https://github.com/continuedev/continue/commit/e1d227cbc3ea56e607fce5c5ce585c2b901f6029)) +* comment out auto apply on MFE ([f61476a](https://github.com/continuedev/continue/commit/f61476a4936f364b4d0adc679da067d5f3ee8411)) +* completions ([a2f62da](https://github.com/continuedev/continue/commit/a2f62dad3b4df8a9a243964584eed148835a077b)) +* config error handling ([170676a](https://github.com/continuedev/continue/commit/170676a46149a4e507f827aa566f4b1d39344e2e)) +* config-types "useSuffix" to "useFileSuffix" ([fa3afd5](https://github.com/continuedev/continue/commit/fa3afd52e766c298a9bfa62c57e8a9b6e695b1d6)) +* **continue:** update context for slash commands ([cfac639](https://github.com/continuedev/continue/commit/cfac639e44ff5ba13960bbed6756047a90ed93f2)) +* convert `walkDir` to an async generator ([#1783](https://github.com/continuedev/continue/issues/1783)) ([6824497](https://github.com/continuedev/continue/commit/68244977d377e1706a20892abc059bf5cb70bc71)) +* copy ([5e122b7](https://github.com/continuedev/continue/commit/5e122b76b3cf5f0f511101bb1b2cea1349fa3a7a)) +* **core:** delete indexed docs if re-indexing ([acea620](https://github.com/continuedev/continue/commit/acea620043d2c48826266d4f1f73eaf42819f0c6)) +* **core:** remove eslint config and fix errors ([#1457](https://github.com/continuedev/continue/issues/1457)) ([3e1c06b](https://github.com/continuedev/continue/commit/3e1c06b41b7b90a0cad026c0ba0433fb1be6d277)) +* **core:** use `TextDecoderStream` for stream response ([#1498](https://github.com/continuedev/continue/issues/1498)) ([09d256a](https://github.com/continuedev/continue/commit/09d256ad562eda0919b9fa2853176319bf4eda36)) +* correct formatting ([cbb5c21](https://github.com/continuedev/continue/commit/cbb5c21f591e078df186fd86865830cb8971be03)) +* correct llama2TemplateMessages ([#855](https://github.com/continuedev/continue/issues/855)) ([f95a54d](https://github.com/continuedev/continue/commit/f95a54d9c29247680839129c54eae912ba5ca85d)) +* correct package.json update ([02968fb](https://github.com/continuedev/continue/commit/02968fb1551c0a26af75340641312e1f9f5a1102)) +* correct typo in stop sequence ([0dac76e](https://github.com/continuedev/continue/commit/0dac76edf5f35226cf6b3e99c83a7c02273cc05c)) +* corrected typo in the info Alert paragraph ([be55052](https://github.com/continuedev/continue/commit/be55052d230b50635c43727127ee776e67bd4c20)) +* cursor focus issue causing unwanted return to text area ([#1086](https://github.com/continuedev/continue/issues/1086)) ([c54cd7a](https://github.com/continuedev/continue/commit/c54cd7a26dd2e4e8743be86c6ac22dd1c8dca774)), closes [#1078](https://github.com/continuedev/continue/issues/1078) +* cursor position ([6284eee](https://github.com/continuedev/continue/commit/6284eeebef984ac1afd3846b606a7745c5dfb49d)) +* cycling through chat messages ([b3ac143](https://github.com/continuedev/continue/commit/b3ac14332e8bd89237dfa41847701e3378487145)) +* deepseek doesn't support 'https://api.deepseek.com/completions' URL currently. When user selecting code in editor, and then use 'CMD +I' command to let model to modify codes, 400 error happens. ([170b99d](https://github.com/continuedev/continue/commit/170b99d3261b7d2ef32ba9e03a51ac37bb1fb787)) +* delete all code_snippets ([b9114bb](https://github.com/continuedev/continue/commit/b9114bbdab90de0dd167c88b57bd96b27ad03524)) +* delete button default style ([5423d24](https://github.com/continuedev/continue/commit/5423d24c35c614b0970e472aafa1f1048bf0d970)) +* delete old docs index on force re-index ([#1778](https://github.com/continuedev/continue/issues/1778)) ([0d632ea](https://github.com/continuedev/continue/commit/0d632eabbfd512c813e65212c3f5765bbc3fc8c7)) +* dependencies ([384fb56](https://github.com/continuedev/continue/commit/384fb562e5aac023301d592a186982a4b575fe98)) +* dependencies ([8efb3be](https://github.com/continuedev/continue/commit/8efb3be1b1f2253f9a7fd3035d8f0055de8f426e)) +* dependencies ([cc063fd](https://github.com/continuedev/continue/commit/cc063fdd124d66515bdcb9e2c64f575b40cc99d8)) +* dependencies ([fccae87](https://github.com/continuedev/continue/commit/fccae8732e1a4f447ff0ab650e9ae717c2022ffc)) +* Desktop.browse on linux ([7a11446](https://github.com/continuedev/continue/commit/7a11446bfc5d4cb9c05f64f1377518456d30f530)) +* disable completions in the commit box ([2b611df](https://github.com/continuedev/continue/commit/2b611df53ba716c2b550ab3b275c571eed9d2c65)) +* disable indexing for unsupported CPUs ([a005aa7](https://github.com/continuedev/continue/commit/a005aa78ac75ac47be3e647e9e23b45eab7dafaf)) +* disable lancedb cpu check ([b496777](https://github.com/continuedev/continue/commit/b49677711b4340f57ba671bacda301138c2909fb)) +* Do not break completion for unsupported FS providers ([4d1a33f](https://github.com/continuedev/continue/commit/4d1a33fd794a7415b0cc3b8de1d349fbba5a01cb)) +* do not filter context providers if not in editMode ([b2182b9](https://github.com/continuedev/continue/commit/b2182b9c8568a38d3af179909fb305e1459f5276)) +* do not write to the cache if caching is disabled ([b29ed9d](https://github.com/continuedev/continue/commit/b29ed9d34aa7ae343a2fd0c767f315e46e9aa110)) +* docs and install dependencies task for new directory structure ([#551](https://github.com/continuedev/continue/issues/551)) ([6ef8ae6](https://github.com/continuedev/continue/commit/6ef8ae6d5ab7efb1e928ff6474b6ac7a804a34cc)) +* **docs:** contributing guide ([5a06dfe](https://github.com/continuedev/continue/commit/5a06dfe1fb865bed0ca76ff23816da6396a0b27d)) +* **docs:** correct openai api key name ([9cc25c1](https://github.com/continuedev/continue/commit/9cc25c18c9fff5fc6ac4d56153667b0e8311920c)) +* **DocsCrawler:** Add response.ok check and improve link splitting ([d613b5a](https://github.com/continuedev/continue/commit/d613b5a7da5ad15c8b4b7dfe949812045f69635c)) +* don't override embeddings model name with UNSPECIFIED ([bc79388](https://github.com/continuedev/continue/commit/bc79388634ebcfcf2e38aa240441f9939e9de85a)) +* don't return empty string ([403eb38](https://github.com/continuedev/continue/commit/403eb38b9e3e38c277daed4ac6a2b6ac54353570)) +* dont toggle models when toggling assistants ([5bd8dd4](https://github.com/continuedev/continue/commit/5bd8dd4cb759bbabc35bdc00c66d88e4a175f7a8)) +* double ssh retries ([c9e2ebc](https://github.com/continuedev/continue/commit/c9e2ebc4589f7a06e804daee7f2ce6d7b2b66ce2)) +* dropdown with the height of the sticky div ([#605](https://github.com/continuedev/continue/issues/605)) ([a8d6ff0](https://github.com/continuedev/continue/commit/a8d6ff04e43a81a3c76373469ffebdfcfa8ac9f2)) +* editor focus handling on click events ([#716](https://github.com/continuedev/continue/issues/716)) ([f1660a5](https://github.com/continuedev/continue/commit/f1660a533146c420253df6e2dec0e0d4a2a9ebf4)) +* Eliminate Uncaught TypeError in dev tools ([d342825](https://github.com/continuedev/continue/commit/d3428256543bcc5ab269df93c949b56df92793f2)) +* Empty file inserts incorrect content ([ba9027b](https://github.com/continuedev/continue/commit/ba9027baea44ca51d299804636771d1a084d5fa7)) +* empty last message ([d3f7795](https://github.com/continuedev/continue/commit/d3f7795e6133fe7452c0626e6a54fb229bacbd7b)) +* enable OSR for mac after validations ([db77b50](https://github.com/continuedev/continue/commit/db77b5020d9b93cb4a7504e213d81940dbee9eaa)) +* end thinking for reasoning models when request is complete ([5109685](https://github.com/continuedev/continue/commit/51096858ab1ddc2bee534c1ea848be2b4bdcfb3f)) +* ensure code preview uses one more backtick than in the selected code as a fence ([#742](https://github.com/continuedev/continue/issues/742)) ([9ce7770](https://github.com/continuedev/continue/commit/9ce7770066cf870d2d1f36883f5e867157373eda)) +* ensure template variables are only processed for stdio MCP servers ([99b1ab2](https://github.com/continuedev/continue/commit/99b1ab2ebe51b4678722703922ecca023afa911c)) +* Ensure that the state is cleared after refresh, and files->uris when the file changes ([abd8907](https://github.com/continuedev/continue/commit/abd890738111e51bf12a700f9e5e8e66a7c76235)) +* Ensure valid line index for highlighter ([f86c95e](https://github.com/continuedev/continue/commit/f86c95ebdbd1851bcbf0e6f22d18a348a8a154ed)) +* error ([4c7f918](https://github.com/continuedev/continue/commit/4c7f9182665a259fc6b9cf10c93e696e97400a2c)) +* error printing bug leading to uncaught err ([3af4d6b](https://github.com/continuedev/continue/commit/3af4d6b1edeac113499cc9626cea75a5083b1030)) +* exclude open-codestral-mamba from supported models ([c6591f8](https://github.com/continuedev/continue/commit/c6591f836ea73e1244a0e965111f7c599669d9fa)) +* **extensions:** schema for db ctx provider ([#1534](https://github.com/continuedev/continue/issues/1534)) ([6fdad55](https://github.com/continuedev/continue/commit/6fdad553b6ac7f64c1bb23617dbe313e16174a56)) +* failing azure llm test ([546b52a](https://github.com/continuedev/continue/commit/546b52a2df928687d56924f593108f5bb9235712)) +* failing test ([ec2a72d](https://github.com/continuedev/continue/commit/ec2a72dfabbe7bd9c220b18b55145f431e19f3bf)) +* failing test ([002ecc9](https://github.com/continuedev/continue/commit/002ecc9b519472e0968e9f227894f3143c87f1ec)) +* failing test ([07b6b0c](https://github.com/continuedev/continue/commit/07b6b0cbefe86f2efa5488a33060ee9eb9f20e4d)) +* failing tests ([88ccb74](https://github.com/continuedev/continue/commit/88ccb74f7e69cf816d27f15a318a42c11f6d2aa5)) +* failing tests ([cb2e0a7](https://github.com/continuedev/continue/commit/cb2e0a7c0e9330d9b79a3e9878c851b9eba92ade)) +* failing tests ([7b52ff7](https://github.com/continuedev/continue/commit/7b52ff74d4009cb85c32a5e9482bd3624931d21e)) +* failing tests ([8d29d41](https://github.com/continuedev/continue/commit/8d29d4158d0fe21b0c0c4722e8d23715acf9ebdf)) +* failing tests ([2b828b0](https://github.com/continuedev/continue/commit/2b828b0e7b455bf6b0f9ae5a6f6a705ab4cefe6a)) +* field name fix ([0de1a2f](https://github.com/continuedev/continue/commit/0de1a2ff8937452815311c806a038a7f6d75fdf8)) +* filepath replacements in prompt files ([#1939](https://github.com/continuedev/continue/issues/1939)) ([c0923a0](https://github.com/continuedev/continue/commit/c0923a0dd7ca3a6e9dcbd9b02bfc34250269d2ef)) +* fix [#709](https://github.com/continuedev/continue/issues/709) ([#712](https://github.com/continuedev/continue/issues/712)) ([9ae07cd](https://github.com/continuedev/continue/commit/9ae07cd711d011faaf9a79952c0e213a6aa72e87)) +* fix 100% indexing progress ([7f214ad](https://github.com/continuedev/continue/commit/7f214adcbdca33ebb7270f721fd57eeeb0bac1e8)) +* fixed misallignment in tests caused by linter ([15e93dd](https://github.com/continuedev/continue/commit/15e93dd5d0dc3b5dcd00504833beacbddbfe44f3)) +* format code ([1d000be](https://github.com/continuedev/continue/commit/1d000bec682d1d723bf6748f34c3dd86b684d775)) +* formatting ([9efd0e1](https://github.com/continuedev/continue/commit/9efd0e128ef464d45379e84abf15e98ad1b24d40)) +* formatting ([2284291](https://github.com/continuedev/continue/commit/22842919489ad272edfa182e9f8af3a26d9813ae)) +* formatting ([4d70d3d](https://github.com/continuedev/continue/commit/4d70d3dcbd646b1aa1cb6e586439459dec2db462)) +* free trial config.json updates ([905f064](https://github.com/continuedev/continue/commit/905f064543e71864eaeb4e039e5d55fe2da845fd)) +* fullscreen gui retains context when hidden, fixed fullscreen focusing ([#1582](https://github.com/continuedev/continue/issues/1582)) ([679e26d](https://github.com/continuedev/continue/commit/679e26d4a8a81402d57a64d819f347d9f56d42e0)) +* gemini tool calls with MCP ([9ca4ad4](https://github.com/continuedev/continue/commit/9ca4ad4afe04fbfc3a6e0e6d447dd81ff22b4369)) +* getting diff ([9431131](https://github.com/continuedev/continue/commit/9431131f1cbbc5fe742c033a8baf970241c63378)) +* **google:** remove unnecessary parameter ([#394](https://github.com/continuedev/continue/issues/394)) ([938c1db](https://github.com/continuedev/continue/commit/938c1db5b37d5332ff5d188f4fa79f3bc6b7549a)) +* grab PATH for mcp connections ([60ec3ac](https://github.com/continuedev/continue/commit/60ec3ac452f0b25d176728dfe6e83e4f34ade745)) +* grammar ([58feb0b](https://github.com/continuedev/continue/commit/58feb0b8622e5f64737594ccbfd94aff2e9687c5)) +* **gui:** ctx rendering w/ renderInlineAs: "" ([#1541](https://github.com/continuedev/continue/issues/1541)) ([8a92f43](https://github.com/continuedev/continue/commit/8a92f4312693549a1590e99c70152b843d59b119)) +* **gui:** passing style props on StyledTooltip ([41e1eb5](https://github.com/continuedev/continue/commit/41e1eb582bec8676fc973c3a2b76259344fbb317)) +* **gui:** typo ([3d53809](https://github.com/continuedev/continue/commit/3d5380908292bb4373a122a802f2011dd0283f62)) +* handle apiType for azure w/ proxy ([036e196](https://github.com/continuedev/continue/commit/036e19618b86600e4e9c5ad6e6ee5a98e55e15f1)) +* handle closed webview on quick edit ([#1942](https://github.com/continuedev/continue/issues/1942)) ([fe05db5](https://github.com/continuedev/continue/commit/fe05db541dafc45c9870d52d9f15e812e1ea90ad)) +* handle deleted blocks ([c1157db](https://github.com/continuedev/continue/commit/c1157dbf02f6750d385b28006c90202e6b159d5a)) +* Handle empty addedLines in revertDiff ([f280319](https://github.com/continuedev/continue/commit/f28031902f41c4ae9f7cab01398216272950b7d0)) +* handle line removal diff ([#1744](https://github.com/continuedev/continue/issues/1744)) ([6126eca](https://github.com/continuedev/continue/commit/6126eca35ab981c7b8cd6a56769dfe7cb9e69349)) +* handle optional params in EditSlashCommand ([#745](https://github.com/continuedev/continue/issues/745)) ([0141229](https://github.com/continuedev/continue/commit/014122957ff6e087b03def436b95797e59c6f6cb)) +* Handle status update in DocsService ([ac3df81](https://github.com/continuedev/continue/commit/ac3df814e45343b07f63c99e8710f4a6b185074e)) +* handle when dir might be a file path ([e43d3bd](https://github.com/continuedev/continue/commit/e43d3bda6aa833bfe686b8c84dfa64d43fa08748)) +* hardcode `fontSize` for tool call status msg ([f78969b](https://github.com/continuedev/continue/commit/f78969b147a8aecb5c9e5162d080cdafb3f4adb7)) +* hmr issues with non-react component exports ([0e55c08](https://github.com/continuedev/continue/commit/0e55c08be3ef5dcaec5305f41ae871ae6903b6c7)) +* hotkey for new session ([#572](https://github.com/continuedev/continue/issues/572)) ([1d3acd9](https://github.com/continuedev/continue/commit/1d3acd9f194802d78c99cd407bcb72543aa0ff19)) +* **HttpContextProvider:** support all possible local servers via a library ([c3b2552](https://github.com/continuedev/continue/commit/c3b2552ed5e47eef8dc2a691d5f76f30b61ceafd)) +* if rules ([a6dd5a8](https://github.com/continuedev/continue/commit/a6dd5a83dedcae099f320a2da9362490eadde299)) +* ignore CSV files ([#1972](https://github.com/continuedev/continue/issues/1972)) ([1272f34](https://github.com/continuedev/continue/commit/1272f3402a1fc12e5eb0566ad4a4aadc3db7dc06)) +* Implement RepoMapContextProvider ([48c442d](https://github.com/continuedev/continue/commit/48c442d1c687b15d5612786e87a09b016714abd6)) +* import posthog as type, use inline import ([57a84dc](https://github.com/continuedev/continue/commit/57a84dcfe16e3cdebea54f7a0b0fe354f0d8ad2b)) +* Improve error handling and ensure coroutines continue correctly in case of failure ([46bd573](https://github.com/continuedev/continue/commit/46bd573a4296bb8ce8dc4c43b7293ff575655e53)) +* improve textarea ux ([#1901](https://github.com/continuedev/continue/issues/1901)) ([228bc30](https://github.com/continuedev/continue/commit/228bc30e895b87e06c170775974c49e2781d9ae0)) +* include access to the Documents folder ([03839c3](https://github.com/continuedev/continue/commit/03839c30813f3242d9a1fce91f39af110d8d85a7)) +* incorporate feedback ([98efbbd](https://github.com/continuedev/continue/commit/98efbbd80f075928a45334f8cc4103221c2656c9)) +* incorrect scroll logic on inline edit ([ed3af3f](https://github.com/continuedev/continue/commit/ed3af3f3fc49f6678d8a1f940d06aa62bec1f4b5)) +* intellij freezing ([1f602e5](https://github.com/continuedev/continue/commit/1f602e53c29eb28d98754252823ad8f40f839d1b)) +* isRuleActive ([2b97efe](https://github.com/continuedev/continue/commit/2b97efe5c6d045b461c76068c0e06df298d95902)) +* issue 3732 ([ce5d664](https://github.com/continuedev/continue/commit/ce5d664f828de8681ee7129dfec3c16cad667c46)) +* **JB+GUI:** arrow keys in GUI on linux ([9110904](https://github.com/continuedev/continue/commit/9110904e7d4f727339666ce235388397b8c4ff99)) +* **jb:** meta keybinding issues ([b4dad78](https://github.com/continuedev/continue/commit/b4dad78a727feed0ce18769a8d3f9cfd00a3bd57)) +* **jb:** remove markup from `edit` model title ([f6d334a](https://github.com/continuedev/continue/commit/f6d334a190bf1132c33a68f472aaeb2e5389399f)) +* **jb:** set `setOffScreenRendering` conditionally ([fd66ff7](https://github.com/continuedev/continue/commit/fd66ff7d464d3138a127e2035bca88f6d42c4402)) +* **Jira Context:** add api abstraction ([cc9b960](https://github.com/continuedev/continue/commit/cc9b96038bb0b88156729d1c39e6eec1794fe76a)) +* jira ctx provider ([9d24d34](https://github.com/continuedev/continue/commit/9d24d3402f3e9f9937bfdff70fa5c4fa120b2dbf)) +* keyboard shortcuts test on linux ([e45aa16](https://github.com/continuedev/continue/commit/e45aa164c64a52936c7dd1c0467548aadf821639)) +* layout alignment ([#1779](https://github.com/continuedev/continue/issues/1779)) ([6e8fc12](https://github.com/continuedev/continue/commit/6e8fc1247c44c344a48db9758437cb7b3028591c)) +* lint ([f575721](https://github.com/continuedev/continue/commit/f575721980a596cdb08be8a2e472ca26e6012325)) +* lint ([3ba1153](https://github.com/continuedev/continue/commit/3ba1153243753682ca19b26031c2c3c73394b5f2)) +* lint ([03cd1a3](https://github.com/continuedev/continue/commit/03cd1a338f03fc1baa87feb02bd6e56111fc0b13)) +* lint ([747d380](https://github.com/continuedev/continue/commit/747d3806a99abf7f55823c2fbc06c74448ba3c1c)) +* linting error ([67ab058](https://github.com/continuedev/continue/commit/67ab05821191d75a201e516b725a679671f94734)) +* linux key ([9618327](https://github.com/continuedev/continue/commit/9618327cf45687f18aacdc04d62da86ce2d1e520)) +* linux test env ([9f2f9d8](https://github.com/continuedev/continue/commit/9f2f9d895b2fe6678f49e394e4657f044e2aef2a)) +* listbox z-index issue ([1d2bfcd](https://github.com/continuedev/continue/commit/1d2bfcd4b2ad7c3afef97348c55a1c668610ea07)) +* listDir ([a41a4bd](https://github.com/continuedev/continue/commit/a41a4bd2df5807bd216a4b23eabe8656ca098cdb)) +* **llm/Ollama:** changed buffer handling like in streamChat() ([f1f8967](https://github.com/continuedev/continue/commit/f1f8967b6c4b422428fcad0575c0b24ae78bf34a)) +* load last session when completing edits ([1e33400](https://github.com/continuedev/continue/commit/1e334008c08eb8796510ba6aaac434073c44b3b8)) +* local build script ([#810](https://github.com/continuedev/continue/issues/810)) ([76fe78a](https://github.com/continuedev/continue/commit/76fe78a1a3c05b0d6dd5ed6d15575e20e797cfa6)) +* log llm completition in edit command ([3094180](https://github.com/continuedev/continue/commit/30941800b04c59b9a45375d6934a4fb79cac0141)) +* logs ([e3cf75e](https://github.com/continuedev/continue/commit/e3cf75e0779d3bc02a468ea6551e2499979c08f7)) +* mac build issues ([9946a5c](https://github.com/continuedev/continue/commit/9946a5c05f85d20e2d766719a861eb0f8a55019c)) +* major fixes to getTheme ([c6002ba](https://github.com/continuedev/continue/commit/c6002ba2ac905bd5439173e6430676bdc3594a87)) +* make `env.apiVersion` required for azure openai ([4355618](https://github.com/continuedev/continue/commit/4355618079808bdfc3240022e79a0a9dd8457b02)) +* matching context code ([64fb928](https://github.com/continuedev/continue/commit/64fb928b8ff9c0f7753a8b8d374abc179de1f4d5)) +* mcp context provider bug with issue 2467 ([98f07be](https://github.com/continuedev/continue/commit/98f07bef818cf5acc4de2828cbeaa0b4b499fc53)) +* MDX compilation issue ([aca82d2](https://github.com/continuedev/continue/commit/aca82d2ef36a5bd57119343790875e2acf7819b3)) +* merge bugs ([009e578](https://github.com/continuedev/continue/commit/009e578416982a90af05539420a7137ccd2d03c1)) +* messages ([0b07020](https://github.com/continuedev/continue/commit/0b07020d7dd9bf59ca1d804668a215174273625b)) +* minor issues ([#581](https://github.com/continuedev/continue/issues/581)) ([570f61d](https://github.com/continuedev/continue/commit/570f61de5a404559b4ff69eb5cd2fa216e70e872)) +* missing arguments ([452b242](https://github.com/continuedev/continue/commit/452b2422d18c05dd28dbfa6fd127f4c3e0b0223c)) +* missing cd ([0d88b8f](https://github.com/continuedev/continue/commit/0d88b8f379d161962a72626fe2af583cce0f3fe0)) +* missing Content-Type header in OllamaEmbeddingsProvider ([#1855](https://github.com/continuedev/continue/issues/1855)) ([841294d](https://github.com/continuedev/continue/commit/841294d15f3ad6ea4a9f7cf277fbcb905d9bd978)) +* missing context items ([bdc2ec8](https://github.com/continuedev/continue/commit/bdc2ec8374ac9e7d14fc440ea80fa438005735e8)) +* missing env ([1ebd3a3](https://github.com/continuedev/continue/commit/1ebd3a31bab5ed31374518022c5f1b7658c379f2)) +* missing package ([e284cec](https://github.com/continuedev/continue/commit/e284cecd6584b14bee43794d0d238d64c734a10a)) +* missing useLegacyCompletionsEndpoint in yaml schema ([a4b4395](https://github.com/continuedev/continue/commit/a4b4395649e9fa7888f8204ddcf56b88632b5b90)) +* model name ([b1ec201](https://github.com/continuedev/continue/commit/b1ec2012c649ff29e84d6682234328e9c2fdb792)) +* models and mode are not synced ([57441da](https://github.com/continuedev/continue/commit/57441dad6696eeb6d4bd6d769aec06e389367a53)) +* modify access modifier public to private ([c36f233](https://github.com/continuedev/continue/commit/c36f23322265a0d9c28eb401acf49d76294a1249)) +* move autocomplete logic off of EDT ([c46083d](https://github.com/continuedev/continue/commit/c46083d4115a79938bc6ae2b9421f36803b0a992)) +* naming ([ba39842](https://github.com/continuedev/continue/commit/ba3984290ddb875608845904d31c5a5d57b1bf03)) +* naming ([42a03ad](https://github.com/continuedev/continue/commit/42a03ad020634a7c6be719a70bf40144582682dc)) +* naming ([fb1a75d](https://github.com/continuedev/continue/commit/fb1a75dcf33fa38863bda4f5b88c1a567aaf0269)) +* navigation bug ([fab5347](https://github.com/continuedev/continue/commit/fab53472a931b49d7f0c19af22263df6b54bc292)) +* not sure how that button fragment got there ([880f1de](https://github.com/continuedev/continue/commit/880f1de80d2bc33635cc9ebed01ae84e2c17c640)) +* number of completions to generate is not supported ([db90b09](https://github.com/continuedev/continue/commit/db90b0954b36e856258eed2b61af8bf107f13510)) +* old docs ([b52910b](https://github.com/continuedev/continue/commit/b52910b43351e5df8c07cfb27beca8fba5463074)) +* ollama tool use ([82ac684](https://github.com/continuedev/continue/commit/82ac6848cabca21122995460328b8f4420ae3222)) +* onboarding telemetry ([445dba3](https://github.com/continuedev/continue/commit/445dba3bb60654ac9c3f8d245f896d490574c3a1)) +* only alert free trial if using free trial ([f0e73ef](https://github.com/continuedev/continue/commit/f0e73ef63a8fd8bb7ce313f9ed5439c7c68969bf)) +* only perform lancedb cpu check for linux ([e0ee7d1](https://github.com/continuedev/continue/commit/e0ee7d1e446b18c05ed3166b0aa3b199ec021f1a)) +* open new session from any page ([258bbc6](https://github.com/continuedev/continue/commit/258bbc6b5cbbd3b897e8045df247bb2a1fc21f94)) +* overly eager suffix matching ([556a8c5](https://github.com/continuedev/continue/commit/556a8c5ee3f72311a384c64ba14fde7122e68741)) +* path ([d01f243](https://github.com/continuedev/continue/commit/d01f24309b490799014dca0fd03775c39745d660)) +* path ([3ecc89e](https://github.com/continuedev/continue/commit/3ecc89eaf55b970e1a494f88fed0850c4b85c565)) +* pathing issue in jb ([c33e390](https://github.com/continuedev/continue/commit/c33e390427e459a5426ee7669733c2b407649e40)) +* pause between tests to avoid db lock ([4cb84c1](https://github.com/continuedev/continue/commit/4cb84c11b09dac6eb0791e35b95ff6f571130391)) +* placeholder ([8ded13a](https://github.com/continuedev/continue/commit/8ded13a8f8e54df4951b547d468782117fb11b8b)) +* policy precedence ([de6a0ae](https://github.com/continuedev/continue/commit/de6a0ae36c43753e768bf0164dfbe1b938da790d)) +* preserve indentation in code blocks ([#1554](https://github.com/continuedev/continue/issues/1554)) ([574a392](https://github.com/continuedev/continue/commit/574a3923a6f97d8995561da3654aae3aca9ae439)) +* preserve system messages as user messages ([d60a1c1](https://github.com/continuedev/continue/commit/d60a1c1b1f3174cd501eca69746009bdeb4c6f7f)) +* prettier ([4d278e4](https://github.com/continuedev/continue/commit/4d278e479ae02f0d02ccff8db2448d6b38b3d3e5)) +* prevent autoscrolling on new tool msgs ([678a75f](https://github.com/continuedev/continue/commit/678a75f8f7b97b0f75407c6e1b1dd78c415d22eb)) +* Prevent duplicate context provider addition ([2d6eacb](https://github.com/continuedev/continue/commit/2d6eacbeab8eb89ddc32311ade4efe3ccb272bca)) +* Prevent multiple resumes in continuation ([1e96bfb](https://github.com/continuedev/continue/commit/1e96bfb9683fa0a45437f16b419be066917351cb)) +* Promise arrays being returned. Added a new definitions-only context provider. fix: typescript tagging. ([#835](https://github.com/continuedev/continue/issues/835)) ([00eeb00](https://github.com/continuedev/continue/commit/00eeb0024178953172941bba293808be4ca5eed2)) +* prompt format ([0f6d280](https://github.com/continuedev/continue/commit/0f6d280234c459e1935b62e5244f4577d64fac53)) +* promptblock parsing ([eb6735e](https://github.com/continuedev/continue/commit/eb6735ee25da93e01a7b09223960b8975b41d898)) +* Properly ignore ignored folders when generating /onboard context ([f7bca6a](https://github.com/continuedev/continue/commit/f7bca6a61d56b6e17b100294e605d0e2bbe0239b)) +* protocols ([c8a24c0](https://github.com/continuedev/continue/commit/c8a24c0c9040a0da02bdd215b77b0320c160256f)) +* qwen completions missing whitespaces ([75dce9c](https://github.com/continuedev/continue/commit/75dce9cbd14cc374d1ce4921522f3423202be7b1)) +* **reg:** :ambulance: remove log except when in NODE_ENV === "test" ([f60fd1c](https://github.com/continuedev/continue/commit/f60fd1c6188567c67d3d8285fd6c2c5d6acc5bfa)) +* regex ([05a3eec](https://github.com/continuedev/continue/commit/05a3eec21ed1c26aa4d9825e6be5e209cdb9563c)) +* reject logic ([5944fca](https://github.com/continuedev/continue/commit/5944fca7374851869e469ed1cd3f13056de5c8b3)) +* remove `any` from promptTemplate passing ([7834d26](https://github.com/continuedev/continue/commit/7834d266330625915542913f2d44ac0d80875d7e)) +* remove debugger statement ([3e4c75b](https://github.com/continuedev/continue/commit/3e4c75bf461c36c2200ac2922670bb76a612b292)) +* remove deugger ([3e8e29e](https://github.com/continuedev/continue/commit/3e8e29e8f2ce18e138df64441e436d3a07ffa45e)) +* remove duplicated context comments ([0c217a4](https://github.com/continuedev/continue/commit/0c217a40082c2c244de4f4f8c955d96314f130da)) +* remove gifs from media ([77d321f](https://github.com/continuedev/continue/commit/77d321ff82dcd34b55d0a0253eb45672be774fe1)) +* remove invalid schema ([2355eb6](https://github.com/continuedev/continue/commit/2355eb62a5c3c5034b528ab17e8ad7a0b661bc7c)) +* remove mismatch between last selected profile and current profile ([d9eb118](https://github.com/continuedev/continue/commit/d9eb118c514fc2a4364f532eb6438588fc9f712c)) +* remove some backup files generated by pkg if present ([#1287](https://github.com/continuedev/continue/issues/1287)) ([9f160ad](https://github.com/continuedev/continue/commit/9f160ad11a1d36bfc92d2da2a8ea31721652b3e4)) +* remove stale code ([cd97833](https://github.com/continuedev/continue/commit/cd97833be88ecaf3c2860dc41ca57c9e2b18ad48)) +* remove testing logic ([5df8177](https://github.com/continuedev/continue/commit/5df81770df526c69dd71f2421a9052deb17accf6)) +* remove tooltips when switching files ([200d291](https://github.com/continuedev/continue/commit/200d29103ea97db06283f2d4b5e0eb9b6afb86df)) +* remove unnecessary baseUrl ([5f159fb](https://github.com/continuedev/continue/commit/5f159fbd81c4b8680cbad8b3875aa54e2079928e)) +* remove unused argument ([7dd2c22](https://github.com/continuedev/continue/commit/7dd2c22632d50726271655d5c5d027a8219e6862)) +* remove unused imports ([1b82d39](https://github.com/continuedev/continue/commit/1b82d39ac5b8e0cfb990a4968b3e8bc81af768ce)) +* rename edit folder ([ab1ad0a](https://github.com/continuedev/continue/commit/ab1ad0ae48eeceee87043cae9a7862a1c4f70da0)) +* replace null with empty string in getSidebarContent function ([#822](https://github.com/continuedev/continue/issues/822)) ([50d1188](https://github.com/continuedev/continue/commit/50d1188479be206d1a4ed5dcd258d4101ae4f8ba)) +* report indexing errors in webview ([6a67514](https://github.com/continuedev/continue/commit/6a67514fcf108bd0eb6989777abaed02ce2e61e7)) +* reset config errors ([cc199c2](https://github.com/continuedev/continue/commit/cc199c28634d006d38416533b06f26e001cea3fe)) +* Resolve proxy error when adding Azure OpenAI model ([17dbfe6](https://github.com/continuedev/continue/commit/17dbfe6bfd38f67b7cb535da00fa626cdaf4f690)) +* Resolve type error in env comparison ([45eacf4](https://github.com/continuedev/continue/commit/45eacf4ebbd99a97eef32eef01d780a1f8c57b7a)) +* Resolved errors related to incorrect URIs ([0a7da20](https://github.com/continuedev/continue/commit/0a7da2067e8d8567084d05f69038b7ca95464d1f)) +* restore all e2e tests ([d3a6eeb](https://github.com/continuedev/continue/commit/d3a6eebeb7b5d96133d1c13e533913dc5ec2f19c)) +* restore cache ([91ea00d](https://github.com/continuedev/continue/commit/91ea00d284227f3875daf17591b15409004372ac)) +* restore comments ([067a3a8](https://github.com/continuedev/continue/commit/067a3a843baf5a0e12bd5b6f21f37a504836286c)) +* restore tests ([553c751](https://github.com/continuedev/continue/commit/553c751562afb736fb914549ba3d2c75e5a4b305)) +* return ctx items from prompt file ([84df7f4](https://github.com/continuedev/continue/commit/84df7f45bf91c70da79901c0a44cc3b156655f6f)) +* revert file changes ([7a44a38](https://github.com/continuedev/continue/commit/7a44a38c860cfbd0eeab35d8fdb3cb198edad680)) +* Revert filepath changes ([3df34b7](https://github.com/continuedev/continue/commit/3df34b725e873fcd42058474d83ef634e21d5cad)) +* revert launch.json change ([b3abfb8](https://github.com/continuedev/continue/commit/b3abfb80d71c16a0e51cc980d4262dbd218d6463)) +* reverted the url of llama.cpp back to 'completion'. ([e8523a2](https://github.com/continuedev/continue/commit/e8523a2b07c7a5d1539138ee8e4a4836fea7a36b)) +* rules ([bcae5b3](https://github.com/continuedev/continue/commit/bcae5b3cf210f1a8ced3b2c913961ed16aaf2ea9)) +* rules ([9e57412](https://github.com/continuedev/continue/commit/9e57412fe161a9451aaaa651a9f9ed2d7b6b5517)) +* rules ([f29110f](https://github.com/continuedev/continue/commit/f29110f98b1c71f4832d6b7ff0041e342e2a0c4a)) +* rules ([b39cb83](https://github.com/continuedev/continue/commit/b39cb836ad6180226d39abe85f5637a6e2dac44d)) +* sanitize lance table names ([5d3b2cb](https://github.com/continuedev/continue/commit/5d3b2cb5070505578cc16e67d2309a40a403bc94)) +* scaffolding for future language syntax highlighting ([647656c](https://github.com/continuedev/continue/commit/647656cd3d007c016bea372bdfcb5d69f9d1d52a)) +* scroll issues w/ code blocks ([#1688](https://github.com/continuedev/continue/issues/1688)) ([ceb8da0](https://github.com/continuedev/continue/commit/ceb8da0b20db70707a3443ff6f705bba6922488d)) +* scroll to the bottom on history change ([b94ccc6](https://github.com/continuedev/continue/commit/b94ccc6db557f705ba4f810ed56c55ce21f383dd)) +* selected profile id writing to global context in org profile rectification ([47755d1](https://github.com/continuedev/continue/commit/47755d1cba3b8c7cb5c0b9a19bf8ca0a92eec850)) +* selector for `isSingleRangeEdit` ([badeb1c](https://github.com/continuedev/continue/commit/badeb1c88b7e1f8eb711a8a2cfc8f341ac22f67e)) +* send feature flags ([2e3fdb3](https://github.com/continuedev/continue/commit/2e3fdb34e2e2358232cc12fcf0a0c2d16a3ef0cc)) +* serve to localhost ([7eccf2d](https://github.com/continuedev/continue/commit/7eccf2ddb9308111686251474fb79fa03dfc87d6)) +* set DEFAULT_CONTEXT_LENGTH to 8192 ([f163768](https://github.com/continuedev/continue/commit/f1637685c651180d1fc969c2f11712fda69eb9ee)) +* settings persistance ([56f3803](https://github.com/continuedev/continue/commit/56f38038b35cedc2aa1bca1b09780b21c811bd83)) +* setup ([6a93eae](https://github.com/continuedev/continue/commit/6a93eaeb0faf685dff216ecca850f9b2ef3cf2c3)) +* show error is GH sign in failed in vscode ([e92e052](https://github.com/continuedev/continue/commit/e92e052b16fb91173aa4dc85d4e80fa569b8e60a)) +* sign in ([fa5d2c5](https://github.com/continuedev/continue/commit/fa5d2c5aa2cdcc580486f81fde3ae69e9d3069e5)) +* sign in btn + colors ([1b669bf](https://github.com/continuedev/continue/commit/1b669bf80e2d81e4aa19c4d3f2dca730ddd6d4f8)) +* Skip duplicate checks at document end or blank text ([decd04e](https://github.com/continuedev/continue/commit/decd04eddd4965b9f76c7a9a3abd276d8d2e1692)) +* snippets in fim prefix ([51e1c42](https://github.com/continuedev/continue/commit/51e1c4216baa38d73141aca1d1e681eabf044b4b)) +* some typos ([#478](https://github.com/continuedev/continue/issues/478)) ([775d051](https://github.com/continuedev/continue/commit/775d051b4bcdbe07fbd38fae4d3e36e79234eb56)) +* spread tool degs ([4ddd275](https://github.com/continuedev/continue/commit/4ddd2755996012677c15069648158bd4334fa3dd)) +* sqlite binary build on fresh clone ([#1433](https://github.com/continuedev/continue/issues/1433)) ([d124aa0](https://github.com/continuedev/continue/commit/d124aa0534303b58b55bcc2de4ec460b4f499178)) +* stream ([c497517](https://github.com/continuedev/continue/commit/c49751713248e27f060b6eee11179e13b14c5adf)) +* system message ([c2707c6](https://github.com/continuedev/continue/commit/c2707c6988a9b6368f183f0602de0cc2872726da)) +* test ([7266efb](https://github.com/continuedev/continue/commit/7266efb4e8490accd69ad5818bd9c35fe6f59e5c)) +* test env path ([71a151f](https://github.com/continuedev/continue/commit/71a151f399d514497ee917eca521863d07b2a270)) +* test timing ([878e211](https://github.com/continuedev/continue/commit/878e2116d6a97c31cad97432d785aaf3b6deb196)) +* tests ([35c674c](https://github.com/continuedev/continue/commit/35c674c724c21c6dc0b699a37f868e68c62f1259)) +* tests ([cafb2e9](https://github.com/continuedev/continue/commit/cafb2e93c7a54b4a35ecc8a209f53982b3cc26d4)) +* tests ([b786591](https://github.com/continuedev/continue/commit/b786591415d79119845e01376bf5dc97c0676b23)) +* tests ([ff543e8](https://github.com/continuedev/continue/commit/ff543e8b321e4e48a088ba296ebac4504b97356b)) +* tests ([81acb44](https://github.com/continuedev/continue/commit/81acb446019a773ce2df98467e4dcb8e5c2a428e)) +* tests ([deea8f1](https://github.com/continuedev/continue/commit/deea8f1f44403b6d7d7bb4236ff5acb8d38bca01)) +* The selected item in inline chat is always the first one ([97bc074](https://github.com/continuedev/continue/commit/97bc07453ba067f0438192d8dc6cc1cc9a86d962)) +* timeout ([b9f161f](https://github.com/continuedev/continue/commit/b9f161f6d8b4e7400dff25912881f41f472a9137)) +* timeouts ([0bf9169](https://github.com/continuedev/continue/commit/0bf9169a968a42dfc083696b3e8be5f1997ad7e5)) +* timeouts ([0c4d9eb](https://github.com/continuedev/continue/commit/0c4d9eb819b9f1a41cddd7d0b84dc0e21ee372e9)) +* timeouts ([4c90f3b](https://github.com/continuedev/continue/commit/4c90f3bdd32761b7f34a6f05334dffc085805964)) +* tip tap undo and redo ([88e34fb](https://github.com/continuedev/continue/commit/88e34fb69caae3750621f9f93253a7425535928f)) +* tool use call ([c73f72f](https://github.com/continuedev/continue/commit/c73f72fbb379dae08aa41ac07608d9dc2aa8bc83)) +* transpile dynamic imports to cjs ([#1975](https://github.com/continuedev/continue/issues/1975)) ([1e3e8eb](https://github.com/continuedev/continue/commit/1e3e8ebe408de1bbb5f9fe0dc61fefef3b85ca69)) +* truncate `tagToString` to max filename len ([afb6bd0](https://github.com/continuedev/continue/commit/afb6bd0fb53505e29e961f5a78f0afe36c3b3071)) +* ts ignore declaration file issue w/ dbinfoz ([#1945](https://github.com/continuedev/continue/issues/1945)) ([477ecd6](https://github.com/continuedev/continue/commit/477ecd63acc85be25ec992d4329f6460c42c6785)) +* tsconfig ([8549981](https://github.com/continuedev/continue/commit/8549981e200e7e62f4a5895babc1c87c45b59db0)) +* type errors ([f976e54](https://github.com/continuedev/continue/commit/f976e54dc3b2b8072aef3ecadf259ee1e5299956)) +* type errors ([f575a36](https://github.com/continuedev/continue/commit/f575a3683c499f04766ac68af6b8e214ed2c3514)) +* type errors ([cd82f4c](https://github.com/continuedev/continue/commit/cd82f4c61fdff90c8ed0e845a3b2ee8b0ce1be9d)) +* type errors ([ea6b234](https://github.com/continuedev/continue/commit/ea6b2344d0b2cde7def58de549e604142a40a353)) +* type errors ([f19b6b8](https://github.com/continuedev/continue/commit/f19b6b8abdb4dfb64c804efee851dee0bb00471c)) +* type errors ([5c49505](https://github.com/continuedev/continue/commit/5c49505f2071504481c17976670d883efebddb4a)) +* type errors ([cdc9600](https://github.com/continuedev/continue/commit/cdc9600e689161877ff7416f63baa9dcbfa6c18a)) +* type errors ([7ee4d8d](https://github.com/continuedev/continue/commit/7ee4d8db505924a4d0edd5ef3ac49f4bb9a706b6)) +* type errors ([70ae585](https://github.com/continuedev/continue/commit/70ae58594cd136e16a53fcfde88a227dbec1104f)) +* type errors ([34489b1](https://github.com/continuedev/continue/commit/34489b14de0fc1c5cfb300a624b3b8571372e532)) +* type errors / formatting ([9dba473](https://github.com/continuedev/continue/commit/9dba4730b958e05ffad6e0bab74effefd228cd6c)) +* types ([7b9c5cc](https://github.com/continuedev/continue/commit/7b9c5cc4f062e2882706919b1effe34a460f45b8)) +* types ([82cad59](https://github.com/continuedev/continue/commit/82cad596c85d0ee0b17ceccdf1f6cca5811b8f94)) +* types ([5faecca](https://github.com/continuedev/continue/commit/5faecca09f27a7490b4050b7191197c74fe38299)) +* types ([be27552](https://github.com/continuedev/continue/commit/be27552e3330b3a18ecb1065b6ab7210a4375826)) +* types ([4b120e5](https://github.com/continuedev/continue/commit/4b120e543e7c2cec0d33714cfebe88800604fbfd)) +* types ([44212e4](https://github.com/continuedev/continue/commit/44212e45828bb72c035bf63de4c13342935dcf0f)) +* types ([72b253d](https://github.com/continuedev/continue/commit/72b253d14faf2d19832b0307fb4fba1e9aed11dd)) +* types ([a88f5d7](https://github.com/continuedev/continue/commit/a88f5d771ced366926c9d6d821c697e52847a2f9)) +* types ([41a7916](https://github.com/continuedev/continue/commit/41a79166aadc2bbbe80145d12bfeb1336d94c7e2)) +* typo ([be874ad](https://github.com/continuedev/continue/commit/be874addb463f7db81c43b52f6e69f9de1c11fa3)) +* **typo:** customize overview doc ([d4dfb69](https://github.com/continuedev/continue/commit/d4dfb699af1f5bffc923a5d850f877ed45ad74a6)) +* undefined in title ([dcdfa59](https://github.com/continuedev/continue/commit/dcdfa59db43ae4e864e5cb1ca04b6804cca64d2f)) +* unnecessary dependency ([ade83fd](https://github.com/continuedev/continue/commit/ade83fd0c6b3f2d3bb8175b6bdbdc0a6e9735c5b)) +* unnecessary scroll delay ([183ae03](https://github.com/continuedev/continue/commit/183ae03ee37ba6629201211e9a63fbcb04ebc527)) +* unset system message ([4480ee3](https://github.com/continuedev/continue/commit/4480ee3ac358e60182304e0e052c27ae45815e2f)) +* update adf2md package ([ecbc123](https://github.com/continuedev/continue/commit/ecbc1234f7419f7921b31354594e5841363c54f5)) +* Update Amazon Bedrock documentation and categorization ([b156d8f](https://github.com/continuedev/continue/commit/b156d8fd4c103e520ad720853752a4f9033ef68f)) +* update CodebaseIndexer path ([#1870](https://github.com/continuedev/continue/issues/1870)) ([00d19e6](https://github.com/continuedev/continue/commit/00d19e623f8abb04fc4a022d354a909e2087aa3c)) +* update imports in CodeSnippetsIndex.ts ([434e4ee](https://github.com/continuedev/continue/commit/434e4ee44b513db15d502c6a9d52ceb17fa805c3)) +* update install script ([91f87f8](https://github.com/continuedev/continue/commit/91f87f8fd0ca328a91c9fd033c58fd5d2db02892)) +* update intellij getDiff to return string[] ([1672d9f](https://github.com/continuedev/continue/commit/1672d9f864e99436b8f309af3529f2fda341172d)) +* update snippets index to upsert cmds ([676f0d9](https://github.com/continuedev/continue/commit/676f0d9335df7bf7f42aae3434847cc0032c3c0a)) +* update spacing ([a9d6597](https://github.com/continuedev/continue/commit/a9d6597a3fa054d093cb63fa5859e24b8f8d571b)) +* update streamId matching ([8a1ce0f](https://github.com/continuedev/continue/commit/8a1ce0f1f06e92b7bd140d7eabd8393dc5993fea)) +* update streamResponse function to use streaming decoding ([#1436](https://github.com/continuedev/continue/issues/1436)) ([2d1155d](https://github.com/continuedev/continue/commit/2d1155d7d4441042480bf928398b7a15a58d92d2)) +* uri utils ([f1026c6](https://github.com/continuedev/continue/commit/f1026c6a2cfdd9424097d2103a5ffc2216e402d9)) +* use `cmd` for windows MCP connections ([b8ca4cb](https://github.com/continuedev/continue/commit/b8ca4cb6ee91670e87ae331f5e4bab24a42adbe6)) +* use bolt icon for shortcuts ([ff2116b](https://github.com/continuedev/continue/commit/ff2116bacc4537e09792ce9817b68e9cdfacb93e)) +* use dir hash in `tagToString` ([9c2a780](https://github.com/continuedev/continue/commit/9c2a780fa986f5f98c3231a12971d3f16c7a8e74)) +* use exponential backoff when checking ollama ([ebbc2fd](https://github.com/continuedev/continue/commit/ebbc2fd55df1fc43e1eacceba042fa4c0bc38e77)) +* use ide scheme auth redirect ([bae74c1](https://github.com/continuedev/continue/commit/bae74c1b324b51c2e9b14b548f92557c75025f51)) +* use index when sending chat input ([9398945](https://github.com/continuedev/continue/commit/93989459e3806f1ba6d647036dc9db064bf30e38)) +* use introduction layout ([2b71869](https://github.com/continuedev/continue/commit/2b7186973695703a48daacea46c076231d308ddf)) +* Use MCP server_name from JSON config as display name ([481d60a](https://github.com/continuedev/continue/commit/481d60a74d9b7cd0492aa5875d89e5b4e2e00c51)) +* use new edit for "Generate code" cmd ([aac6f80](https://github.com/continuedev/continue/commit/aac6f805eb35107e7d8754413d955ccfeb964576)) +* use prompt file sys msg ([093225d](https://github.com/continuedev/continue/commit/093225d4fed4d5249ca506b9867f5b5305ca4003)) +* use proper alternating colors in KeyboardShortcuts.tsx ([f1bfcec](https://github.com/continuedev/continue/commit/f1bfcec8257c2b3f99fa99a643b0464239600490)) +* vitest ([3bc4bb7](https://github.com/continuedev/continue/commit/3bc4bb710cfb2d9ef340a61f7c0ca27cb2540a28)) +* vitest ([ceeb87e](https://github.com/continuedev/continue/commit/ceeb87e81b8848517dfc604025f11bf46e1955b0)) +* **vscode:** handle null values for edits and page in getSidebarContent ([#618](https://github.com/continuedev/continue/issues/618)) ([f8a02ad](https://github.com/continuedev/continue/commit/f8a02add1775805246410ee3df396a4028ff2ec9)) +* **vscode:** improve forceAutocomplete command reliability ([cc50768](https://github.com/continuedev/continue/commit/cc507687eb36be5b7fd59eac433a9a908c1ee07e)) +* **vscode:** keybinding full screen toggle shortcut ([#625](https://github.com/continuedev/continue/issues/625)) ([2921504](https://github.com/continuedev/continue/commit/292150476c1cfcace2f6434d11c3a2dab1e5ccdb)) +* wait for permissions before initializing messenger ([7d16b8a](https://github.com/continuedev/continue/commit/7d16b8a870ebf5348713fb116c109a646fe7c79e)) +* wait for sidebar before other commands ([1566adc](https://github.com/continuedev/continue/commit/1566adcaeb3bc5258a563b208a511cdfb3938d7a)) +* watcher ([f41c819](https://github.com/continuedev/continue/commit/f41c8194fc11da9c76de0531cccd73df78a4b1c2)) +* watcher ([be153f8](https://github.com/continuedev/continue/commit/be153f8ab966e210d6249ff179c4ec1580507d88)) +* whitespace in new line completions ([4db2637](https://github.com/continuedev/continue/commit/4db2637d5b65d427e959b7fd607a65ce4140c355)) +* workflow ([e5fb4f1](https://github.com/continuedev/continue/commit/e5fb4f17ad9d3b6e72d6c7e0920357e607c0e776)) +* wrap editor buttons when out of space ([#1727](https://github.com/continuedev/continue/issues/1727)) ([b38ec0e](https://github.com/continuedev/continue/commit/b38ec0e6153e9077d1e39dfd7a453746da31c75b)) +* wrong shortcut for JB ([b358be2](https://github.com/continuedev/continue/commit/b358be2cfb798bfb6646f5015117199e2ad3a6e2)) + + +### Features + +* :adhesive_bandage: ca_bundle_path for maybeproxyopenai ([1018cd4](https://github.com/continuedev/continue/commit/1018cd47306f95dde35e1a0cc6b2a830444af389)) +* :adhesive_bandage: QueuedLLM for simultaneous reqs (LM Studio) ([e9d2891](https://github.com/continuedev/continue/commit/e9d289173ec28a1a90ae58b1834c476bb46834b8)) +* :art: custom prompt templates per model ([2e69e11](https://github.com/continuedev/continue/commit/2e69e117e198698f57bda06794cf030afbfe69e9)) +* :art: small changes to /codebase ui ([1b68904](https://github.com/continuedev/continue/commit/1b689046a7f9323c7bd56e14d403675db0b38d54)) +* :bricks: Enable terminals for additional vscode Remote Host Types ([1500281](https://github.com/continuedev/continue/commit/1500281bb547f7308aa7316f6783072e4f81fbc1)) +* :bug: kill old server if needed ([a34046b](https://github.com/continuedev/continue/commit/a34046bbbe817f81cd6d8b7ff9025413589571aa)) +* :children_crossing: display troubleshooting link when loading ([698dccf](https://github.com/continuedev/continue/commit/698dccf474619963de0312d36af6d01e3df8b47a)) +* :children_crossing: drag continue to right bar tip ([04b1fde](https://github.com/continuedev/continue/commit/04b1fde6ea77e7698870063c3f588da93d763544)) +* :children_crossing: keep file context up to data by listening for filesystem events ([#396](https://github.com/continuedev/continue/issues/396)) ([b6435e1](https://github.com/continuedev/continue/commit/b6435e1e479edb1e4f049098dc8522e944317f2a)) +* :children_crossing: more keyboard shortcuts ([bd202df](https://github.com/continuedev/continue/commit/bd202df41755c581844d0ab1773ba55968b15450)) +* :children_crossing: sort history by reverse date ([fd77a4b](https://github.com/continuedev/continue/commit/fd77a4bd6b255260d0f4cad11947b38f4d30030e)) +* :children_crossing: tip to debug ([ec74169](https://github.com/continuedev/continue/commit/ec741697c42745d29539be08bc3e01dcd86b1643)) +* :construction: create new sessions ([19060a3](https://github.com/continuedev/continue/commit/19060a30faf94454f4d69d01828a33985d07f109)) +* :construction: first work on URLContextProvider ([6467759](https://github.com/continuedev/continue/commit/6467759012a139e76dcf022a681355f7d310a30d)) +* :construction: react-router-dom work ([31e7c98](https://github.com/continuedev/continue/commit/31e7c9828f985eceb16b4c9c749cc5d4d9fd5beb)) +* :construction: Router and new history page ([f19345c](https://github.com/continuedev/continue/commit/f19345c652cfcf1bdf13d0a44a2f302e0cd1aa4c)) +* :construction: successfully loading past sessions ([c255279](https://github.com/continuedev/continue/commit/c25527926ad1d1f861dbed01df577e962e08d746)) +* :construction: work on EditableDiv - better ctx prov. UI ([e33d579](https://github.com/continuedev/continue/commit/e33d579a1d2b643842827925d032c3de92cf5217)) +* :egg: getting to know users form ([5dcdcd8](https://github.com/continuedev/continue/commit/5dcdcd81da2050825212e216bf5e7e69678d8c6e)) +* :fire: fix duplication in reference ([1e3c8ad](https://github.com/continuedev/continue/commit/1e3c8adabba561eeef124144f3a2ef36d26334b4)) +* :globe_with_meridians: alpaca chat template ([568771d](https://github.com/continuedev/continue/commit/568771d9b94280f1cb47aae863e8faf168eb052b)) +* :green_heart: ship with binary ([2751dde](https://github.com/continuedev/continue/commit/2751ddeb2dd8150a0d7de6c5b65e275e1aa0e155)) +* :lipstick: add context button (plus icon) ([2b35e5f](https://github.com/continuedev/continue/commit/2b35e5f5cff948ca7d4f207b23db68f0da248a95)) +* :lipstick: add textgenwebui as official option in Ui ([09ac7a7](https://github.com/continuedev/continue/commit/09ac7a7fc07d915ac6f3ef96c8e8d1894b7719b9)) +* :lipstick: better loading experience ([e19c918](https://github.com/continuedev/continue/commit/e19c918bb1c517a6a119ae8437c46e0724d2be9d)) +* :lipstick: fixed footer and change button color ([48b8f1f](https://github.com/continuedev/continue/commit/48b8f1f0ad89a2b4e35f49c360576dd5aa99a7c0)) +* :lipstick: gallery banner color ([0647a43](https://github.com/continuedev/continue/commit/0647a43a24c50ff0e52f23c49d979bddfcfbcd87)) +* :lipstick: handful of UI improvements ([ceafdf1](https://github.com/continuedev/continue/commit/ceafdf18c9d9f0f8769d4a9e45c8a407179161c5)) +* :lipstick: improvements to keyboard shortcuts ([7bf8e5b](https://github.com/continuedev/continue/commit/7bf8e5b56a518979bc1d2602b8eb4a2caf2b5fdb)) +* :lipstick: more ui improvements ([f9a84bd](https://github.com/continuedev/continue/commit/f9a84bd2d65b3142cbcfcdd8e1e9394c9d4b458e)) +* :lipstick: more ui improvements ([6e3ff01](https://github.com/continuedev/continue/commit/6e3ff0173e79f5374da9962c964559e0fb7165f5)) +* :lipstick: nested context provider dropdown ([8d423fd](https://github.com/continuedev/continue/commit/8d423fd8d1d5b136e8138a906e8594ab93ec1982)) +* :lipstick: nicer "continue server loading" UI ([8070ce1](https://github.com/continuedev/continue/commit/8070ce17c6d666436df38c684f5868ee7f689422)) +* :lipstick: query input indicator for ctx provs ([4362a51](https://github.com/continuedev/continue/commit/4362a51214a683bfe1efd424ddb226d4e636eeed)) +* :lipstick: setting to change font size ([4ea1760](https://github.com/continuedev/continue/commit/4ea176007d2228364d4d3fa4519898047cef988f)) +* :lipstick: small ui tweaks, detached child process ([0181d62](https://github.com/continuedev/continue/commit/0181d6236d8b74c80adb62648fd6571431cf3210)) +* :lipstick: sticky top bar in gui.tsx ([ef86d66](https://github.com/continuedev/continue/commit/ef86d661d54295c1abb9712557080f1838f96b33)) +* :lipstick: UI Improvements! ([ae058c6](https://github.com/continuedev/continue/commit/ae058c6bac7ea37108e2894e419a22dfb95fd3ff)) +* :lipstick: update icon and description ([92e7c9b](https://github.com/continuedev/continue/commit/92e7c9bb627a5559769e0eca23e02e106d2cfe96)) +* :lipstick: update marketplace icon for pre-release ([cc98ad8](https://github.com/continuedev/continue/commit/cc98ad86d561d26c97dfdb24607a1d70afbcd2a1)) +* :loud_sound: add context to dev data loggign ([8ac1518](https://github.com/continuedev/continue/commit/8ac15184aaa30d13bf168ff5123a12fb7a2dd39f)) +* :loud_sound: display any server errors to the GUI ([daabebc](https://github.com/continuedev/continue/commit/daabebcc5d6df885a508582c0ca13e659305d2ff)) +* :loud_sound: fallback unique id when vscode returns someValue.machineId ([c479442](https://github.com/continuedev/continue/commit/c47944260c5600e49d83568b3c4bafa3b7c2a37e)) +* :loud_sound: give users access to Continue server logs ([5d97349](https://github.com/continuedev/continue/commit/5d973490687c40922f2b7a2ddf2a3e19c207eb0f)) +* :loud_sound: light telemetry or context providers ([2959042](https://github.com/continuedev/continue/commit/2959042fa5a940aa4e8851b9d4db91f0f86092ff)) +* :loud_sound: telemetry for vscode vs. jetbrains ([257cef6](https://github.com/continuedev/continue/commit/257cef697c93d2f2f59936587834908bd69ae842)) +* :memo: embeddings experimental walkthrough ([e1ce1fe](https://github.com/continuedev/continue/commit/e1ce1fefee6a3f4c17ac568ba87cb7a4bcf65795)) +* :memo: note about where session data is stored ([8ada89b](https://github.com/continuedev/continue/commit/8ada89b0f66f9e746394ee64591359537fe0c7f0)) +* :money_with_wings: free trial usage indicator ([354a3f4](https://github.com/continuedev/continue/commit/354a3f493074b1fb63ff4f206a94c35f05673e99)) +* :mute: complete removal of telemetry when allow_anonymous_telemetry false ([ae7dffa](https://github.com/continuedev/continue/commit/ae7dffa211af209aea2ca13b37729e390047dd7c)) +* :necktie: allow timeout param for OpenAI LLM class ([404f7f8](https://github.com/continuedev/continue/commit/404f7f8089190d04c05957dc653baff44f342dc7)) +* :recycle: load preset_urls at load_index ([3dabc4b](https://github.com/continuedev/continue/commit/3dabc4bd6c72e2d12afb059040ca75f606e47d9d)) +* :rocket: headers param on LLM class ([e16b8ff](https://github.com/continuedev/continue/commit/e16b8ff5f2d9187f2b207addc1cd70d0cacbf9c8)) +* :sparkles: [@terminal](https://github.com/terminal) context provider ([40cfabb](https://github.com/continuedev/continue/commit/40cfabb8ce8afe20e51ca4bafddc6a0b4755bf2c)) +* :sparkles: /cmd slash command ([011877c](https://github.com/continuedev/continue/commit/011877c09e88ffcc715defc33e5c74c71ccc8aea)) +* :sparkles: /share slash command ([4e38043](https://github.com/continuedev/continue/commit/4e3804351b76cc763d904f572ad525b651d8bc00)) +* :sparkles: add edit templates to model packages ([1de976a](https://github.com/continuedev/continue/commit/1de976a6a11a0b945d59800b5a58f354808a49fc)) +* :sparkles: add max_tokens option to LLM class ([ff2a397](https://github.com/continuedev/continue/commit/ff2a3978a1e2c95a4e288b56411bf0c32b86757b)) +* :sparkles: add searchcontextprovider to default_config.py ([64f41fc](https://github.com/continuedev/continue/commit/64f41fc8a0a2616fe7074d0a49e7642fd462c95d)) +* :sparkles: add stop_tokens option to LLM ([a16ba7a](https://github.com/continuedev/continue/commit/a16ba7a0166dbf9062ee4616e3ccfbff377e9f4b)) +* :sparkles: Add support for Claude Sonnet 4 ([b24a76f](https://github.com/continuedev/continue/commit/b24a76fdabb5eccada838d8fe5ed5834c0120df1)) +* :sparkles: add urlcontextprovider back to default config ([570891e](https://github.com/continuedev/continue/commit/570891e0201769defeabec95a58c997f6d5f3889)) +* :sparkles: allow AzureOpenAI Service through GGML ([1343d12](https://github.com/continuedev/continue/commit/1343d1227cc86c860fb12695e64eaeae1384f72a)) +* :sparkles: allow changing the summary prompt ([5c8b28b](https://github.com/continuedev/continue/commit/5c8b28b7fddf5b214de61102c768ef44d4087870)) +* :sparkles: allow custom OpenAI base_url ([cb0c815](https://github.com/continuedev/continue/commit/cb0c815ad799050ecc0abdf3d15981e9832b9829)) +* :sparkles: alt+cmd+d to automatically debug terminal! ([d0483ba](https://github.com/continuedev/continue/commit/d0483ba15b4ad13399a3385ae351cf33cca3db7f)) +* :sparkles: auto-reload for config.py ([e652e90](https://github.com/continuedev/continue/commit/e652e90806b84eb409c496dd0903a4817243edc2)) +* :sparkles: autoscrolling ([e6d369f](https://github.com/continuedev/continue/commit/e6d369f4312f0c8d175251e149c62d08608cb18c)) +* :sparkles: back button on history page ([aafa5d5](https://github.com/continuedev/continue/commit/aafa5d5ec91a533f70d644e4d3fadd6f388c3e4b)) +* :sparkles: change proxy url for openai class ([32a9a47](https://github.com/continuedev/continue/commit/32a9a477d33acd5cdde08164ebeb355b27a656b5)) +* :sparkles: codelens in config.py ([58cd4db](https://github.com/continuedev/continue/commit/58cd4db2534aba9fed98925e68dc342efbc54fb0)) +* :sparkles: Continue Quick Fix ([9af39a6](https://github.com/continuedev/continue/commit/9af39a67829a6770b93ffdaa6ea70af3125c7daf)) +* :sparkles: Continue Quick Fix ([52cd93a](https://github.com/continuedev/continue/commit/52cd93ad73f7df6a5140b7d629e4f6e473dc0380)) +* :sparkles: delete context groups ([2d3d96e](https://github.com/continuedev/continue/commit/2d3d96e5b55a225eb97251850909eb7a0a7242ed)) +* :sparkles: diff context provider ([99db0da](https://github.com/continuedev/continue/commit/99db0da9d68c64d0b5adcab21e07c2db438c2404)) +* :sparkles: display model params for previous prompts ([b1b30a4](https://github.com/continuedev/continue/commit/b1b30a459cbd589a471e1528ebfa9aaeb0514968)) +* :sparkles: edit previous inputs ([c6a3d8a](https://github.com/continuedev/continue/commit/c6a3d8add014ddfe08c62b3ccb1b01dbc47495f5)) +* :sparkles: EmbeddingContextProvider ([c6a1255](https://github.com/continuedev/continue/commit/c6a12550ffca1ffe35630e7aa9af6913ddbe0675)) +* :sparkles: FileTreeContextProvider ([8bd76be](https://github.com/continuedev/continue/commit/8bd76be6c0925e0d5e5f6d239e9c6907df3cfd23)) +* :sparkles: filter history by workspace ([0757bd2](https://github.com/continuedev/continue/commit/0757bd2b556996b9c434ac43e3e4a3b042ef5802)) +* :sparkles: Give the terminal color and ansi escape rendering ([e83290b](https://github.com/continuedev/continue/commit/e83290bd3a921929052b0c0c91751800e7e9fd2c)) +* :sparkles: highlight code on cmd+shift+L ([a1fdf16](https://github.com/continuedev/continue/commit/a1fdf164b776c5ff4ddfa1c4cad66e41de4254c0)) +* :sparkles: huggingface inference api llm update ([bbf7973](https://github.com/continuedev/continue/commit/bbf7973ec091823c4197d59daaf151b748ee52fc)) +* :sparkles: huggingface tgi LLM class ([a0e2e2d](https://github.com/continuedev/continue/commit/a0e2e2d3d606d8bf465eac541a84aa57316ee271)) +* :sparkles: improved edit prompts for OS models ([1785e92](https://github.com/continuedev/continue/commit/1785e92f118b855f4a655d9b617d54b5c857a6ef)) +* :sparkles: improved model dropdown ([2f792f4](https://github.com/continuedev/continue/commit/2f792f46026a6bb3c3580f2521b01ecb8c68117c)) +* :sparkles: improvement to @ search rankings ([5590f63](https://github.com/continuedev/continue/commit/5590f63e42fda38d780bdc390361a65b65576498)) +* :sparkles: llama-2 support ([72d18fb](https://github.com/continuedev/continue/commit/72d18fb8aaac9d192a508cd54fdb296321972379)) +* :sparkles: LlamaCpp LLM subclass ([fc9e8e4](https://github.com/continuedev/continue/commit/fc9e8e4e325782409258dd483e36abf441051ee6)) +* :sparkles: LSP connection over websockets ([a6d21f9](https://github.com/continuedev/continue/commit/a6d21f979fce6135fd76923478f76000b1b343cf)) +* :sparkles: make follow-up edits ([73ae5d3](https://github.com/continuedev/continue/commit/73ae5d306c16d7c372e831d3ca41067a62c8481f)) +* :sparkles: Make the terminal command aware of its OS, platform and shell ([1a786f6](https://github.com/continuedev/continue/commit/1a786f605da47abdfc66b02f4e88044ca95df960)) +* :sparkles: manually running server option ([29940ea](https://github.com/continuedev/continue/commit/29940ea4223194cc32f6324534ad75db9e39305a)) +* :sparkles: more model options, ollama error handling ([e2a7d4a](https://github.com/continuedev/continue/commit/e2a7d4a3c7832f8788feccf4168c13ec87a31fb2)) +* :sparkles: ollama LLM class ([402883e](https://github.com/continuedev/continue/commit/402883e0661c24c418fb5aa93832c6f62dc97a63)) +* :sparkles: refactor via search Step ([9cd249e](https://github.com/continuedev/continue/commit/9cd249ee007911037639281c6d7590889ad7b467)) +* :sparkles: run continue immediately from pypi pkg ([70f6da9](https://github.com/continuedev/continue/commit/70f6da9b1ad190a967974fb477db669cbb5c928f)) +* :sparkles: saved context groups ([c98f860](https://github.com/continuedev/continue/commit/c98f860460767fe14f8fbf139150b1bd1ee2ff12)) +* :sparkles: Search context provider with ripgrep ([4b9dd4c](https://github.com/continuedev/continue/commit/4b9dd4cf8e853e17d92fb76fc726260d79e4bd7a)) +* :sparkles: select custom model to use with edit step ([c1e5039](https://github.com/continuedev/continue/commit/c1e5039731941eb6b6eea166edd433cd49d4e858)) +* :sparkles: select model from dropdown ([044b7ca](https://github.com/continuedev/continue/commit/044b7caa6b26a5d78ae52faa0ae675abc8c4e161)) +* :sparkles: select model param count from UI ([105afec](https://github.com/continuedev/continue/commit/105afeccca903072bc48772bdaf8f100f996c4a7)) +* :sparkles: set session timeout on GGML requests ([d04eec7](https://github.com/continuedev/continue/commit/d04eec7ee97319a6bcc48d289cd6eb3e0d9b8e19)) +* :sparkles: set static urls for contextprovider ([d2b1aed](https://github.com/continuedev/continue/commit/d2b1aedcedf950d792baee202efdab199b05e57e)) +* :sparkles: support browser-based IDEs with createMemoryRouter ([c9d96be](https://github.com/continuedev/continue/commit/c9d96be5615b9d193a1eeff9ab00da7ca0fe0b6b)) +* :sparkles: support for Together.ai models ([8456b24](https://github.com/continuedev/continue/commit/8456b24318b13ea5d5dabec2328dd854f8a492b4)) +* :sparkles: support stablecoder with replicate LLM ([d5e8688](https://github.com/continuedev/continue/commit/d5e86883f05fe3e99e1d6ff64241a48f935cc927)) +* :sparkles: testing improved prompting for stablecode ([6112f26](https://github.com/continuedev/continue/commit/6112f26888086ccd47ca6bcfefdbc5b82ea86879)) +* :sparkles: testing in ci, final test of ([cbd7656](https://github.com/continuedev/continue/commit/cbd7656bb4c9aebfe98c746111af52cf7192aa1b)) +* :sparkles: text-gen-webui, cleaning config and welcome ([36d517e](https://github.com/continuedev/continue/commit/36d517e37d87b1bd39d6027577714b60c32e81e9)) +* :sparkles: verify_ssl option for all LLMs ([e0522b9](https://github.com/continuedev/continue/commit/e0522b92cfa80491718de07928ce6a31850dab70)) +* :technologist: bit of customization for DefaultPolicy ([3966790](https://github.com/continuedev/continue/commit/396679009fef21e13c1a6095212d1bd68e7f2a86)) +* :technologist: button to view logs when loading ([b83eb52](https://github.com/continuedev/continue/commit/b83eb52c98d637ab3e3becf98aed9899821ea00d)) +* :technologist: github workflow to measure issue/PR stats ([f75c423](https://github.com/continuedev/continue/commit/f75c42332c44c0d2a1a7e7a7ea32c2ef346df609)) +* :white_check_mark: update test and add model telemetry ([3541d6a](https://github.com/continuedev/continue/commit/3541d6a770c919e1f2e55a1ae53c4fc3abe31aa7)) +* :wrench: update default config.py imports ([e2d0baf](https://github.com/continuedev/continue/commit/e2d0baf39348597bdd1015897152f4e3bee0744d)) +* :zap: queue messages before load, then send ([4c8b561](https://github.com/continuedev/continue/commit/4c8b56135b0a1862a4f1984e80aa1409f15e177d)) +* :zap: reduce default max_tokens ([8fff1a8](https://github.com/continuedev/continue/commit/8fff1a811c477874482b65d014e4c5565d4a8649)) +* `create_rule_block` tool ([2c8032c](https://github.com/continuedev/continue/commit/2c8032c3397f6ac8c26b8ce5e5b2fe89d079d3da)) +* `description` in markdown yaml ([e4b70db](https://github.com/continuedev/continue/commit/e4b70dbfd843345ae0689a55802462473f5641dc)) +* `globs` on rules and block docs ([24e22db](https://github.com/continuedev/continue/commit/24e22db9d416be54426709948564aee4aa08d54e)) +* `requestRule` tool ([af30fbe](https://github.com/continuedev/continue/commit/af30fbe360def278cd56858d88c5373c80a2dab6)) +* add "Gathering context..." indicator ([dd865ea](https://github.com/continuedev/continue/commit/dd865eadea014ccc8588a49e6d9c338d89734c9d)) +* add "onboarding" slash command ([#1961](https://github.com/continuedev/continue/issues/1961)) ([5819ffb](https://github.com/continuedev/continue/commit/5819ffb43901eec8ad6af85737c28896f20c4e6e)) +* add `globs` to create rule tool ([047e4e4](https://github.com/continuedev/continue/commit/047e4e418b7f252cb303f19992025acc4fb79d4f)) +* add `index.ts` to sdk ([ae31c54](https://github.com/continuedev/continue/commit/ae31c54011ac365e560cb02b9851a6806641503a)) +* add `no-negated-condition` eslint ([eb7d67d](https://github.com/continuedev/continue/commit/eb7d67dcf1a338c473a1bb7f787e4f35e62f8f73)) +* add `stream` in defaultCompletionOptions yaml ([f72e293](https://github.com/continuedev/continue/commit/f72e293e2f6251e1cca632dffa7ec14554016a73)) +* add `tsc:watch` cmd to vs code ([1d5e164](https://github.com/continuedev/continue/commit/1d5e164325e8fe8e66759baf2ac47ce766355faf)) +* add accept/reject all btns ([011e2c2](https://github.com/continuedev/continue/commit/011e2c264407ff72a0bc90980ec7d8250da4bbd6)) +* add agentinteraction dev data ([971c4de](https://github.com/continuedev/continue/commit/971c4de33e1a3f117eafe9d64bf175c0d2a849ef)) +* add animated ellipsis to lump ([e14163c](https://github.com/continuedev/continue/commit/e14163cda2ff1de2e90621f1de2341fd90b136d2)) +* add API key support for TEI reranker ([5dc25b5](https://github.com/continuedev/continue/commit/5dc25b5eb3b1f914d106a18bbb34f7d28e3039f3)) +* add azure provider config ([#1764](https://github.com/continuedev/continue/issues/1764)) ([c9635de](https://github.com/continuedev/continue/commit/c9635def237e0bb4e1d899057e6b651b6a6cd1b2)) +* add best experience onboarding ([8b30504](https://github.com/continuedev/continue/commit/8b305046eff820999e805c8b2cd6400e3572da1b)) +* add chat scrollbar visibility configuration support ([14eaf32](https://github.com/continuedev/continue/commit/14eaf3272cde744ab6390d7113c2cb507e0d6734)) +* add Claude 3.7 support to toolSupport.ts ([50ad91b](https://github.com/continuedev/continue/commit/50ad91bced864272c7f1bb92c13d7c910a0b6be2)) +* Add cloudflare as provider ([ad8743a](https://github.com/continuedev/continue/commit/ad8743a9b563ae6e09cc140a0b3f9f202715e3b5)) +* add code that comment is based on ([e3653f9](https://github.com/continuedev/continue/commit/e3653f98f08e52fa6a55d41ca147add1c8e5515a)) +* add combobox for edit file selection ([7c6295f](https://github.com/continuedev/continue/commit/7c6295feeb32a478a2d8867f0a2b863583f6a97e)) +* add deepseek models for novita ai ([a31c3eb](https://github.com/continuedev/continue/commit/a31c3ebc8334f931281cdb0a348150347c99d0e6)) +* Add docs/getDetails endpoint in JetBrains ([da2dc1e](https://github.com/continuedev/continue/commit/da2dc1ed7de3caa9ae1e8b02a09526f57dd80bb8)) +* add example integration test ([781a792](https://github.com/continuedev/continue/commit/781a792a5939958d05fa316261190c164871c563)) +* add exponential backoff for API requests ([12ffa95](https://github.com/continuedev/continue/commit/12ffa956571acd12b383ba73560d3c42a7a4415c)) +* add file search to quick edit ([#1714](https://github.com/continuedev/continue/issues/1714)) ([21d1b0c](https://github.com/continuedev/continue/commit/21d1b0c16dd9cd454d543e4b387f873e54d89aa5)) +* add fixed version of the nodejs ([cd35857](https://github.com/continuedev/continue/commit/cd35857daf5577f4677f6675344fa8488e624352)) +* add free trial card to onboarding ([#1600](https://github.com/continuedev/continue/issues/1600)) ([9bae5a2](https://github.com/continuedev/continue/commit/9bae5a254df25d25dc848b5c7bf69fc7189e6461)) +* add gif to tutorial card ([e03eb9d](https://github.com/continuedev/continue/commit/e03eb9d5801985d1968d0528dd76767bf3907cbf)) +* add gitlab context class ([efc1f3b](https://github.com/continuedev/continue/commit/efc1f3b9216d5bf503ecb58ff956f26a2bc4a130)) +* add icon for URL ctx item peek ([e901cfd](https://github.com/continuedev/continue/commit/e901cfdf4ae383a2337c2e20182f6eee6d3010f9)) +* add Jira context provider ([#860](https://github.com/continuedev/continue/issues/860)) ([8ba15b1](https://github.com/continuedev/continue/commit/8ba15b16665be871e037ada88d51b3403a8d094e)) +* add Llama 3.1 8B to cloudflare provider options ([#1811](https://github.com/continuedev/continue/issues/1811)) ([bccbff2](https://github.com/continuedev/continue/commit/bccbff273c176c54f0209c5927a19b8c6d9375f9)) +* add Moonshot AI model provider support ([b8a278d](https://github.com/continuedev/continue/commit/b8a278d216db9851aa2b0772e0313ff4bc12c7cc)) +* add novita info ([94d8d39](https://github.com/continuedev/continue/commit/94d8d39cfc8d21f2544633330370d99ef17e0fdf)) +* Add num_treads to ollama along with docs ([#863](https://github.com/continuedev/continue/issues/863)) ([d71721d](https://github.com/continuedev/continue/commit/d71721d71540cb084d67559e850440129faa67c0)) +* add openai wrapper for sdk ([ab9a248](https://github.com/continuedev/continue/commit/ab9a248572a46e00f0fa6441af861dd260c4cb65)) +* add OpenAI, xAI, Replicate and free-trial model options to config schema ([89a90f9](https://github.com/continuedev/continue/commit/89a90f99baaf493f184a09aa6083a606076f9771)) +* Add prompt caching support ([24f9960](https://github.com/continuedev/continue/commit/24f9960e27ad065fec611661e69726c9be589042)) +* add proxy support for ripgrep download ([d42c050](https://github.com/continuedev/continue/commit/d42c050e3645b4eb4635dd5a73ae12107adca701)) +* add Quick Actions CodeLens feature ([#1674](https://github.com/continuedev/continue/issues/1674)) ([fdf3408](https://github.com/continuedev/continue/commit/fdf3408e0c9c2df749b5775d3c906abfdf40e799)), closes [#1536](https://github.com/continuedev/continue/issues/1536) [#1456](https://github.com/continuedev/continue/issues/1456) [#1564](https://github.com/continuedev/continue/issues/1564) [#1576](https://github.com/continuedev/continue/issues/1576) [#1570](https://github.com/continuedev/continue/issues/1570) [#1582](https://github.com/continuedev/continue/issues/1582) [#1600](https://github.com/continuedev/continue/issues/1600) [#1618](https://github.com/continuedev/continue/issues/1618) [#1626](https://github.com/continuedev/continue/issues/1626) [#1637](https://github.com/continuedev/continue/issues/1637) +* add Qwen2.5-Coder support ([387a76a](https://github.com/continuedev/continue/commit/387a76aa5bab873565de25a2d269f0b5b1a53f1e)) +* add redux state for card logic ([5f32924](https://github.com/continuedev/continue/commit/5f32924becd3e8b03d19ffb4a5e4a2dcbfb6dbc3)) +* add redux state for mfe ([6e5236a](https://github.com/continuedev/continue/commit/6e5236a58a896ab78faa1672e56237b4f4684877)) +* add render util function ([413530a](https://github.com/continuedev/continue/commit/413530a029e32ab8e77520c0e5265cd37a84b24c)) +* add rich quick pick for quick edit ([#1706](https://github.com/continuedev/continue/issues/1706)) ([f3b15eb](https://github.com/continuedev/continue/commit/f3b15eb1b14dcc3f4c28ebfb95150b0d6627cecb)) +* add scope selector ([b78fdc4](https://github.com/continuedev/continue/commit/b78fdc4147e1ccb388b900a65099a2c61ba6ca26)) +* Add signature column to code_snippets table ([a535e9e](https://github.com/continuedev/continue/commit/a535e9e15fb3041fec732574636221e0a83dccfa)) +* add slash command cmd ([d4e1609](https://github.com/continuedev/continue/commit/d4e1609d2a65aeeece6caa8620a1b45196f40c98)) +* add support for `baseSystemPrompt` ([f6957bb](https://github.com/continuedev/continue/commit/f6957bb856ba5915ad6351a518dc4b4a47536947)) +* Add support for Cloudflare AI Gateway ([#1425](https://github.com/continuedev/continue/issues/1425)) ([837ad1c](https://github.com/continuedev/continue/commit/837ad1c552aef8909b9a1dbe01204ed2571134d7)) +* add support for custom headers in SSE transport ([d392d77](https://github.com/continuedev/continue/commit/d392d7736d5d31804cd54b3c307bbfb6289e5358)) +* add support for Mistral models in toolSupport.ts ([928cf2c](https://github.com/continuedev/continue/commit/928cf2c73752a23fe3fc026bbf3957c5c80d5604)) +* add support for multiple MCP server types (stdio, sse, websocket) in the YAML configuration schema, ensuring backward compatibility with legacy configurations ([63a2ffe](https://github.com/continuedev/continue/commit/63a2ffe9696d90786f030c2af02cec2c463d914e)) +* add tests ([0819bec](https://github.com/continuedev/continue/commit/0819becfd98127a187cc84484dd59bb4348a1ec3)) +* add tutorial card ([#1716](https://github.com/continuedev/continue/issues/1716)) ([cb8b207](https://github.com/continuedev/continue/commit/cb8b207582dec6ce997c2c602c9998a5a64504db)) +* add unified diff instant apply ([3c36b4d](https://github.com/continuedev/continue/commit/3c36b4dc378ddd8c5c5c2cc234e9a605d776d928)) +* add Vertex AI support ([dfaa02c](https://github.com/continuedev/continue/commit/dfaa02c5051c44303e055675324ff6eaaac0e91b)) +* allow input to exit ([18c5019](https://github.com/continuedev/continue/commit/18c50195248f6ca6c64e1eeb3cb8f10e6b85ffb5)) +* allow JetBrains users to index docs ([#1797](https://github.com/continuedev/continue/issues/1797)) ([e0079a4](https://github.com/continuedev/continue/commit/e0079a43721f6002ff59e2eaa79dc8768a6f66f5)) +* allow users to skip local onboaridng ([4685db0](https://github.com/continuedev/continue/commit/4685db02b854ab0a598defe0fdc4a68f8de50cc2)) +* apply e2e tests ([12b3ed9](https://github.com/continuedev/continue/commit/12b3ed9291b4f46e920f8417f1e6585e45b7edd9)) +* apply if state is active, onEnter callback dont working ([fed1651](https://github.com/continuedev/continue/commit/fed165161d1610db282b52230a4d914f4d2ffa62)) +* apply waiting cursor to chat-input enter-button during prompting ([6d08361](https://github.com/continuedev/continue/commit/6d0836189cd1c18cf97b1e604adf4e5f201665b9)) +* assistant select ([3b539d5](https://github.com/continuedev/continue/commit/3b539d53c39a98c361e27db6dfb72a8e14ddae50)) +* assistant select refresh on right ([04f5e3e](https://github.com/continuedev/continue/commit/04f5e3e165fddf3101e6210b1111c0f261793054)) +* **autocomplete:** recently visited ranged service ([811507a](https://github.com/continuedev/continue/commit/811507a406ed543adb4a8f876c3c3f30d8a9be35)) +* better buttons for account dialog ([2a4c69f](https://github.com/continuedev/continue/commit/2a4c69ff87b64e21ad04edfed2aad7b048833b53)) +* better editor content handling in edit ([7c72c4a](https://github.com/continuedev/continue/commit/7c72c4af878e4b683b582e40f483551314e92873)) +* better error handling around ripgrep ([22f6fdf](https://github.com/continuedev/continue/commit/22f6fdfa1be6f84ab8548155465f863cb65a7e30)) +* better type names ([43ebb1a](https://github.com/continuedev/continue/commit/43ebb1ad0a95ac1dfc0ff1e198fe53e8c50f0671)) +* bookmark first 5 prompts by default ([0909ef9](https://github.com/continuedev/continue/commit/0909ef938b6d2928fa650c0e0613c1e106a0315d)) +* brand text fix ([a25afee](https://github.com/continuedev/continue/commit/a25afeeda10c86072f80c025c20c21b167ddaaf0)) +* bugfixes on redux schema updates ([4efd661](https://github.com/continuedev/continue/commit/4efd66137592916167f562ac45533dfffacd35cc)) +* build steps for config-yaml ([73b95f3](https://github.com/continuedev/continue/commit/73b95f314703c266d9e348f9c1ba3dbbb3f3d266)) +* cache org selection results ([13d5668](https://github.com/continuedev/continue/commit/13d566831db9e66ae270ff70e2b5c63304df6458)) +* cache org selection results ([6e81720](https://github.com/continuedev/continue/commit/6e81720186d4215d6a650835f72ed1c6cc20e28f)) +* capture base class and interfaces implemented ([df2bbc8](https://github.com/continuedev/continue/commit/df2bbc89da7f7f9ee406a8fe6d0c4fd244abd488)) +* capture python definitions ([2f84ef0](https://github.com/continuedev/continue/commit/2f84ef0ab9a87aa6300415d30db02e3460a07195)) +* change model desc ([8d3ecaf](https://github.com/continuedev/continue/commit/8d3ecafa3dbd9a3373ec7784eda1feac6b77b684)) +* check for `nvm` version in install script ([b1a93b7](https://github.com/continuedev/continue/commit/b1a93b7a2dd22ab82ef9acdec5f1096c33c44c1b)) +* cleanup apply manager ([4b9bac5](https://github.com/continuedev/continue/commit/4b9bac55ffae743d0221df65f0a14d0981f74aeb)) +* cleanup inline edit code ([90d895e](https://github.com/continuedev/continue/commit/90d895e2e22ee40033c524a109b5777b5c3bf6cd)) +* Client Certificate Options Support ([#1658](https://github.com/continuedev/continue/issues/1658)) ([136bf9e](https://github.com/continuedev/continue/commit/136bf9e0f0ce0193f64fe291922431808c32406e)) +* close files ([d1eca9d](https://github.com/continuedev/continue/commit/d1eca9deeb3c1550982f679a58265593af603453)) +* close tutorial listener ([d4d3102](https://github.com/continuedev/continue/commit/d4d3102b61c800576513cbb07c9d482fe973a0ef)) +* collapsed codeblock by default ([979c247](https://github.com/continuedev/continue/commit/979c2473c61747157e65e1dcd33fd73ccfe404ad)) +* config.json validation ([429e54e](https://github.com/continuedev/continue/commit/429e54ed347446747d206a97cb80c91baf5d407e)) +* configure docs through config.json ([#1864](https://github.com/continuedev/continue/issues/1864)) ([d7dbdff](https://github.com/continuedev/continue/commit/d7dbdfff485f3970b8595c5a2680a012443747a5)) +* consolidate StepContainer ([58d9eb7](https://github.com/continuedev/continue/commit/58d9eb7a7e8102940d59f26a65e01edb130681fd)) +* consolidate toast logic into "showToast" ([ba777ed](https://github.com/continuedev/continue/commit/ba777edf4761f8bb781fce11ce45311c0b089048)) +* continue sdk ([c7829bb](https://github.com/continuedev/continue/commit/c7829bbd514b962caad99a4c8c660e94f9e577b4)) +* convert issue templates to issue form templates ([#507](https://github.com/continuedev/continue/issues/507)) ([fa7f2cb](https://github.com/continuedev/continue/commit/fa7f2cbdeb6013ec4bb081cb85988817f54d070c)) +* **core:** add support for Llama models on Bedrock ([#1499](https://github.com/continuedev/continue/issues/1499)) ([53aab1e](https://github.com/continuedev/continue/commit/53aab1e6fd2a0f21fbca1c29b82d1f96d2f5e074)) +* crawl `.mdx` docs ([d9f0c4f](https://github.com/continuedev/continue/commit/d9f0c4f131010bd4dae111b5e4290f3460d49e3a)) +* create "rebuild index" dialog ([c978d7c](https://github.com/continuedev/continue/commit/c978d7c871be71cd399d02159be8c1b37a0d36ff)) +* create `ApplyManager` ([652f8c4](https://github.com/continuedev/continue/commit/652f8c4c7b0879f9ab3b2cc1a25c9530de467c94)) +* create docs cache ([3f8afbe](https://github.com/continuedev/continue/commit/3f8afbefeb36c389528d420ef5945c0014ef18c0)) +* create file button in toolbar ([268f55b](https://github.com/continuedev/continue/commit/268f55b001e880fec92ef87df6be2bdf8fc25649)) +* create markdown rules in notch ([c2571e2](https://github.com/continuedev/continue/commit/c2571e2a86e373199fe9660f95fa5b168c776035)) +* create org slice ([71f8508](https://github.com/continuedev/continue/commit/71f85084f22333337a1e817e0502044771d66de4)) +* create profiles slice ([9c2db6b](https://github.com/continuedev/continue/commit/9c2db6b9c7d7fd0a0164b3e2288a4135df759707)) +* create RecentFilesService ([d597e6f](https://github.com/continuedev/continue/commit/d597e6fe5ea632f2bdf762ad2555c056fd736ba8)) +* create stream complete reducer ([ce7d982](https://github.com/continuedev/continue/commit/ce7d98291e30658b387dd5d7de96e0f3577065ab)) +* create SVG tooltip ([0cf152e](https://github.com/continuedev/continue/commit/0cf152ede652d975fd774faa40494020c7514196)) +* dallin feedback pt 2 ([d158fab](https://github.com/continuedev/continue/commit/d158fab740cf803074106717560941cca8cb96c9)) +* dallin's feedback ([e884853](https://github.com/continuedev/continue/commit/e88485348c8b53e9f19d1f9fc0c8b33dd5266df7)) +* Dallin's feedback ([fc1ee33](https://github.com/continuedev/continue/commit/fc1ee33ed912543f596d32ae6eaacbbdbc3bcae4)) +* dallins feedback ([33b1d39](https://github.com/continuedev/continue/commit/33b1d3994654f311dcae385f6ef2ef78696d1d89)) +* dallins feedback ([25b5b8c](https://github.com/continuedev/continue/commit/25b5b8c50b05fe872d74b60ced4a6d8569686ed6)) +* dallins feedback ([6070a64](https://github.com/continuedev/continue/commit/6070a645dd9741b433ad43fd09f37b42ec614a3e)) +* disable chat-input enter-button during prompting ([e01fbe7](https://github.com/continuedev/continue/commit/e01fbe7f2cf6f53f5a611afe6df53dfc5f710e55)) +* disable chat-input-editor during prompting ([7368767](https://github.com/continuedev/continue/commit/73687670da1cc7792d2c4d9ccd7b9813746a4658)) +* display rules used ([53f0679](https://github.com/continuedev/continue/commit/53f06795d3910e1ec5aecdbc1fde706f68649614)) +* editor change listener ([28d2c7d](https://github.com/continuedev/continue/commit/28d2c7d7e0a00c23c33ad25b8bfc3651ddafa2c5)) +* **embeddings:** add gemini provider ([#1362](https://github.com/continuedev/continue/issues/1362)) ([5224572](https://github.com/continuedev/continue/commit/52245724089329c792eb79c8d512cea2f617c4a1)) +* enable comment filtering ([471ca9e](https://github.com/continuedev/continue/commit/471ca9eae5e1f82e04b2d6d600631bf24876ec06)) +* enable sourcemap ([2be2b73](https://github.com/continuedev/continue/commit/2be2b73f2a28834cbfef9100f479ecffc0ad13c8)) +* enable WAL (Write-Ahead Logging) for improved performance and stability ([#1885](https://github.com/continuedev/continue/issues/1885)) ([e93ce84](https://github.com/continuedev/continue/commit/e93ce84cd57eacfe820c1f22668ed069020ee46e)) +* enhance help center ([#1755](https://github.com/continuedev/continue/issues/1755)) ([f2a04ef](https://github.com/continuedev/continue/commit/f2a04ef3e9e49876042077f36da5f457630dcaf1)) +* Enhance MCP connection refresh logic ([1a0d411](https://github.com/continuedev/continue/commit/1a0d41128f30c7f5c087c7255d6ec3292c288664)) +* Ensure CancelAutocompleteAction updates on EDT ([277c20f](https://github.com/continuedev/continue/commit/277c20f3b08eaa1b0b293b06bbfce40404e5477d)) +* evaluate rule ([1a1b854](https://github.com/continuedev/continue/commit/1a1b854fda4630e136d0d18b4ea69e71a00ced1e)) +* explore btn ([14c9528](https://github.com/continuedev/continue/commit/14c952887399f12e739d6a0fafbdbb4d1355fe90)) +* explore dialog ui ([c6cfa93](https://github.com/continuedev/continue/commit/c6cfa9334690cf7f9ecdf99959537ce522728079)) +* explore dialog watcher ([741ad35](https://github.com/continuedev/continue/commit/741ad35195d6b841b459076b8dbca1057d5f6358)) +* explore dialog watcher ([192a47f](https://github.com/continuedev/continue/commit/192a47f998d639f307933f33a731832ff35305ac)) +* explore hub card ([5a777ce](https://github.com/continuedev/continue/commit/5a777ce464243b09d466d7a11a39ff9e45a74ec5)) +* extract paths ([2ffb4ae](https://github.com/continuedev/continue/commit/2ffb4aefeb01073c924beb1c203e60c586cf96bb)) +* fall back to Cheerio for headless crawling ([fd7bbce](https://github.com/continuedev/continue/commit/fd7bbce79b831a1068c5367bc4f018fe820a917a)) +* fallback to chat model from apply model ([46e8dd7](https://github.com/continuedev/continue/commit/46e8dd7c38858173f375ac24f6857ed3bea2b190)) +* fallback to chat model in IDE ([b601c22](https://github.com/continuedev/continue/commit/b601c22d01478d74a66bf162f3e12c4c4e1a93d7)) +* filttrex ([b20b1ab](https://github.com/continuedev/continue/commit/b20b1ab5ee44d704619327a3b087b1290c634dd7)) +* fix address ([d59b3b5](https://github.com/continuedev/continue/commit/d59b3b5297924b2b6343a990c09551be4af9c670)) +* fix broken links ([66345e8](https://github.com/continuedev/continue/commit/66345e83550a898cd36eae67a68fb020ce957677)) +* fix ctx providers w/ slash cmds ([e5608a9](https://github.com/continuedev/continue/commit/e5608a94e543cd8b66d68c222eacc82e8c021aff)) +* fix filepaht issues w/ apply ([6c848ba](https://github.com/continuedev/continue/commit/6c848ba7a7fc7ea32a963653b83b5099e5ed6fad)) +* fix models ([d401a5c](https://github.com/continuedev/continue/commit/d401a5c11fdf5b3267269ff3603f83318a9dd9ad)) +* fix type error + formatting ([bb5e8b6](https://github.com/continuedev/continue/commit/bb5e8b641dc535fd8d60de92aba04680f7b93824)) +* fix version and address ([ad0fdb9](https://github.com/continuedev/continue/commit/ad0fdb988b76bebadcbb26a3069b7f821207680f)) +* get paths ([9cb5170](https://github.com/continuedev/continue/commit/9cb5170b1a23552f917265dc330ff1e05838a3de)) +* get return_type and parameters from snippets ([bf426d5](https://github.com/continuedev/continue/commit/bf426d5e2147248c06ab51cab31ac5cd9e834b1d)) +* glob rules ([8c5ca40](https://github.com/continuedev/continue/commit/8c5ca401d4fbda64eacf23cc0585e2c9830db345)) +* go definitions ([bf65b1e](https://github.com/continuedev/continue/commit/bf65b1ebbdd3b0913d141e9f60a11414088bc78f)) +* **gui:** add ability to change the session title ([1b32222](https://github.com/continuedev/continue/commit/1b32222c10c6ae6f1fd6c93f6abd8cbeab16f108)) +* **gui:** Add Azure as a provider ([b7c0623](https://github.com/continuedev/continue/commit/b7c0623ac6c5067ccefd7c8486eeef2ff56d9667)) +* **gui:** add flex-grow to TdDiv in history page ([#619](https://github.com/continuedev/continue/issues/619)) ([7106f42](https://github.com/continuedev/continue/commit/7106f42cb4ba7424b3dda8ed2d0e562e2fd99447)) +* **gui:** improve editor highlights ([7bffa2d](https://github.com/continuedev/continue/commit/7bffa2dbeab4dde415c113bb15b71968bc51f448)) +* **gui:** more config for azure provider ([e11206b](https://github.com/continuedev/continue/commit/e11206b0fa70075d21d1cc8dd4426af856ee05c2)) +* handle deletions ([2c8cee9](https://github.com/continuedev/continue/commit/2c8cee9fd42fc8f18c9e6e37781e27276dae2786)) +* hide empty code lines in markdown preview ([#815](https://github.com/continuedev/continue/issues/815)) ([793d022](https://github.com/continuedev/continue/commit/793d022eab292219cda75bb3255ed3d676585977)) +* **history:** add sticky headers to history sections ([#621](https://github.com/continuedev/continue/issues/621)) ([3d398d0](https://github.com/continuedev/continue/commit/3d398d0b3781db8bbc51ad00f47e80b3124f5c8f)) +* hover brightness on tool call div ([dba2887](https://github.com/continuedev/continue/commit/dba288748d850c7fa8047efb75e954384410a497)) +* **httpContextProvider:** load AC on fetch client ([#1150](https://github.com/continuedev/continue/issues/1150)) ([638f192](https://github.com/continuedev/continue/commit/638f1922590d7bd46d6e4d46a4d25bf1b33b26fa)) +* if rules ([6224af6](https://github.com/continuedev/continue/commit/6224af63d36e6b96b068c6d4230ee2315bd94d43)) +* if rules ([d0e922d](https://github.com/continuedev/continue/commit/d0e922dad4947ac8af4e9d0c76921da56cdc2953)) +* if-rule ([211fcb7](https://github.com/continuedev/continue/commit/211fcb77407cd261f2bb26198667388ea6270a05)) +* if-rule ([9baa4e9](https://github.com/continuedev/continue/commit/9baa4e93be7f9c2fe057e453237eaa9d1aaa8ff0)) +* if-rules ([06b76d7](https://github.com/continuedev/continue/commit/06b76d752fb4f83b14053fffe2f85cb819e39ae6)) +* if-rules ([0a13a46](https://github.com/continuedev/continue/commit/0a13a4604d7607793bea66b9cea3e89353bf3af4)) +* if-rules ([ccdc1b9](https://github.com/continuedev/continue/commit/ccdc1b953e22ca4aa26e32b9e80bc31ea30f274c)) +* ignore node_modules in js and ts code definitions ([3c9071a](https://github.com/continuedev/continue/commit/3c9071a09b114a019a593a7f241975f419cc4e43)) +* impl /multifile-edit ([f88f28b](https://github.com/continuedev/continue/commit/f88f28b8551e95e4eb346fafa68d6223f9017d5a)) +* improve chat thread ui for better readability ([#1786](https://github.com/continuedev/continue/issues/1786)) ([8478af6](https://github.com/continuedev/continue/commit/8478af63c18b0c35d59d2326ca4e8687a42a624b)) +* improve chunking desc on large projects ([3844208](https://github.com/continuedev/continue/commit/3844208a3b9b3daaff085daad8ab933f27fcb5f3)) +* improve dropshadow on jb inline edit ([35b94e7](https://github.com/continuedev/continue/commit/35b94e710260782d0311ee22a2849203b8965e38)) +* improve dropshadow on jb inline edit ([75e2d2f](https://github.com/continuedev/continue/commit/75e2d2f39df30424b3831615ee3720a2844a60a5)) +* improve fatal error message ([1d77ad3](https://github.com/continuedev/continue/commit/1d77ad31949042c7702b59f83a82ca51dcce4900)) +* improve input and tooltip ux ([#1923](https://github.com/continuedev/continue/issues/1923)) ([2c13776](https://github.com/continuedev/continue/commit/2c13776c06cfe9c775777bf2fffdcf7dfa2169ee)) +* improve model retrieval logic in InlineEditAction ([52b1704](https://github.com/continuedev/continue/commit/52b1704f3c0fe991b32959d04c660fe55e899b2c)) +* improve prompt log formatting + detail ([2376daf](https://github.com/continuedev/continue/commit/2376dafce325c87d87090e7cf995beffcb98d3b4)) +* Improve ProtocolClient initialization and GUI loading ([0c829fd](https://github.com/continuedev/continue/commit/0c829fd99d0e898c1afdc90a0957c907dcb7f4e2)) +* improve settings tabs ([a5f974b](https://github.com/continuedev/continue/commit/a5f974bf1602dabe3939ddc0ac7b5a05ac8e716b)) +* improve StreamError dialog ([ecb63a0](https://github.com/continuedev/continue/commit/ecb63a0222c7ae5e051bea02d98a4a2de7c1e2e5)) +* improve styling on code to edit ([47fbe4f](https://github.com/continuedev/continue/commit/47fbe4f9b81e1ef31d60f1110d2bf240fa6e7d40)) +* include recently + open files in codebase search ([#1833](https://github.com/continuedev/continue/issues/1833)) ([3e0fae3](https://github.com/continuedev/continue/commit/3e0fae35a75bb8dc117bc3eb008eee122e0e12ae)) +* init profiles prefs ([d6ad3e2](https://github.com/continuedev/continue/commit/d6ad3e2071ca1ee3f0b5cd4d8e93852a84fd138a)) +* insert prompt into input on click ([a73123e](https://github.com/continuedev/continue/commit/a73123e35ce29f1776b5afb456c9c67dc9495099)) +* instant apply check for diff rejectection ([98cb185](https://github.com/continuedev/continue/commit/98cb185c926d49a6f5af00f8b53e207743da815a)) +* integrate Moonshot AI model provider and update UI translations ([7ffb95e](https://github.com/continuedev/continue/commit/7ffb95e9d0fc964b55b3f92149515fa79fc3aa0d)) +* items used text ([#1973](https://github.com/continuedev/continue/issues/1973)) ([28a2042](https://github.com/continuedev/continue/commit/28a2042b7f604889cd0c7c76ee3ec0791a00e3ba)) +* **jb:** add ide logs ([22d84ae](https://github.com/continuedev/continue/commit/22d84ae726c40d65449c39b2ece4101f32608870)) +* **jb:** add plugin actions ([629641a](https://github.com/continuedev/continue/commit/629641a4adf2a1e2fe1c9a69fd431718b34c4263)) +* **jb:** create per-IDE tutorial files ([e3b5cbf](https://github.com/continuedev/continue/commit/e3b5cbfda453c727c6f81d04aa8bed1b9efe8301)) +* **jb:** fix meta key bugs in tiptap ([7682c71](https://github.com/continuedev/continue/commit/7682c71575c7ffc03d625510187d792e9d971227)) +* **jb:** impl "apply" button ([802cb43](https://github.com/continuedev/continue/commit/802cb43cd6b6abf8613591eb38c445e6bd4daa7d)) +* **JB:** impl `showFile` ([24bb5eb](https://github.com/continuedev/continue/commit/24bb5eb0dab8467f606d249f8be16fcb9ff083c0)) +* **JB:** scroll to top of file on full file edit ([c36a1ae](https://github.com/continuedev/continue/commit/c36a1ae62851383978080bc5674e7ba4ca0e9cc1)) +* jetbrains tutorial explore hub ([054b095](https://github.com/continuedev/continue/commit/054b095dab51b3abc7a3d83587e0b5f67b8acdf6)) +* make [@codebase](https://github.com/codebase) a hardcoded ctx provider ([#1818](https://github.com/continuedev/continue/issues/1818)) ([7b86678](https://github.com/continuedev/continue/commit/7b866787d947106b77ac0cef92b75ba36e09e7fc)) +* make `assistant` optional on sdk ([48429ae](https://github.com/continuedev/continue/commit/48429ae04f957a98c24d841316c722b91841c329)) +* make deletion line highlight wider ([10a5ec1](https://github.com/continuedev/continue/commit/10a5ec18a9df189d58c60886be296f1107a1dfc2)) +* make disabled state a tooltip ([#1653](https://github.com/continuedev/continue/issues/1653)) ([6cf0102](https://github.com/continuedev/continue/commit/6cf0102875316a89752d17d4fe08e4b21fd2e603)) +* manual ripgrep downloads for JB ([587459c](https://github.com/continuedev/continue/commit/587459c007ba130a4fd6f5ffde246dd8625486a8)) +* markdown rules ([a21d350](https://github.com/continuedev/continue/commit/a21d350ea14a98cf16904ae678de64a83775da7c)) +* merge conflicts ([82a328c](https://github.com/continuedev/continue/commit/82a328ca15306e0b902075c0661cd1b2bb8ed9a8)) +* model name update ([045c6bd](https://github.com/continuedev/continue/commit/045c6bdfec45ffadb25b3db2306b78f34780e84b)) +* modify vitest command, add test coverage feature ([96c70d0](https://github.com/continuedev/continue/commit/96c70d07d283130176cbda68afdb02ddc6b20366)) +* more cleanup ([6c294e7](https://github.com/continuedev/continue/commit/6c294e76834561848305ac8fb6bcb707ea21b172)) +* more cleanup ([bf7cf66](https://github.com/continuedev/continue/commit/bf7cf661cc4357029492f067ca57b1a43401aaaa)) +* more dynamic imports for LanceDB ([90c6631](https://github.com/continuedev/continue/commit/90c663146edc965bbe0b87b737755742315a8fa1)) +* more moving around ([b0492dd](https://github.com/continuedev/continue/commit/b0492ddfee2e6050d833d4ad07a942dbdd830c55)) +* more styling updates ([c7b3ea8](https://github.com/continuedev/continue/commit/c7b3ea890ac2bade08424e7a23301cea319aea35)) +* more visible assistant refresh + submenus ([1fd2ce9](https://github.com/continuedev/continue/commit/1fd2ce90f22c0dd6ebb9ec5b2542f85475844436)) +* move .prompts into slash cmd ([1d1f705](https://github.com/continuedev/continue/commit/1d1f705f7dfb1d517b90e03b82856e625f3f323e)) +* move `StepContainerPreToolbar` ([979bcb9](https://github.com/continuedev/continue/commit/979bcb97ec88d91d0ed0bd14fd5b6b7dc4c670ae)) +* move apply accept/reject into lump ([071ecb9](https://github.com/continuedev/continue/commit/071ecb91eb9c627e96439b7a5be260ec446500b0)) +* move apply manager instantiation ([2413d24](https://github.com/continuedev/continue/commit/2413d241c6448f65c99d9286e72a01bc8acc429a)) +* move Edit into Chat page ([731b54e](https://github.com/continuedev/continue/commit/731b54eb30bd7184e42c397db658020b4a70d5f7)) +* move error indicator into lump ([1f1d4f4](https://github.com/continuedev/continue/commit/1f1d4f4a1c5b365258db219e2a0ae8eecf3656a8)) +* move free trial out of assistant ([2c58a33](https://github.com/continuedev/continue/commit/2c58a33a6a937ea7beb1aa017bce64ec4cfe32d0)) +* move rule parsing to `config-yaml` ([f2d7290](https://github.com/continuedev/continue/commit/f2d72902cb45c165ca73483dd5c0a90ac89bcc49)) +* move SymbolLink ([e3bbd6b](https://github.com/continuedev/continue/commit/e3bbd6b7cfa04183f7a60470a55e4a2618083a21)) +* move vLLM rerank response in the VLLM.ts and remove unused types ([c8d9d95](https://github.com/continuedev/continue/commit/c8d9d959f10b34cb0af857cfa178c1f9df30f5cf)) +* onboarding card upgrade tab ([41bc0e9](https://github.com/continuedev/continue/commit/41bc0e922b333ee404ddb17e5bdcf7c83b7a6ca0)) +* only autoscroll Continue console when focused on last element ([40390f5](https://github.com/continuedev/continue/commit/40390f583bea74766c3eff48cb8ceda555112780)) +* open lump on submit onboarding ([f77f662](https://github.com/continuedev/continue/commit/f77f662c6e7313db645656e003c9d0145646388e)) +* org select ([dc751a3](https://github.com/continuedev/continue/commit/dc751a3274948cb12b47fb7b57106a8349e26870)) +* php definitions ([8da703f](https://github.com/continuedev/continue/commit/8da703f74525213dc212efa6b763d4be06dee38b)) +* php definitions ([eadc96e](https://github.com/continuedev/continue/commit/eadc96ebef6653a996dff32095fd87a86703058d)) +* poll in JB after upgrading ([89d4b32](https://github.com/continuedev/continue/commit/89d4b32bba3bede3ac9f001c6c013ec0bb5a9ca0)) +* postgres context provider first slice ([758a81c](https://github.com/continuedev/continue/commit/758a81c7373f398294ccb80d00a5c7d181f151d7)) +* pr_checks update ([1cc81d4](https://github.com/continuedev/continue/commit/1cc81d4b7e6ed6aedcc19753eea623acbfc8f8c1)) +* preserve edit when rejecting ([32bf80d](https://github.com/continuedev/continue/commit/32bf80d7d280fe815b547475b4a75fce92ba990d)) +* profiles slice ([b82d29c](https://github.com/continuedev/continue/commit/b82d29c2df154a632c89d32c6847f5bf43b6564b)) +* promote reject diff action ([16cbe94](https://github.com/continuedev/continue/commit/16cbe9499431d7eec64d0695821a223302d980cb)) +* prompt blocks ([9df325a](https://github.com/continuedev/continue/commit/9df325a71f3340c46820ac5335249095cda443ac)) +* Provide workspace path to HttpContextProvider ([4873f58](https://github.com/continuedev/continue/commit/4873f5805f89bc1f443211515dd7afb3fbc2cfff)) +* python context ([42d5f66](https://github.com/continuedev/continue/commit/42d5f660727dcf315d12193f70d23b283e7af10d)) +* recursively apply quick actions codelens ([#1925](https://github.com/continuedev/continue/issues/1925)) ([d5155da](https://github.com/continuedev/continue/commit/d5155dac697e5fa8b4241ebebe48bbfa66dc2c55)) +* redo action ([121be85](https://github.com/continuedev/continue/commit/121be85a69837a1d31dde31f7fca7098458ed38d)) +* refactor onboarding card ([b86bc6f](https://github.com/continuedev/continue/commit/b86bc6f727e292c2d3a8fb1511646c36e2a2531f)) +* reintroduce lazy apply for full files ([6504bd5](https://github.com/continuedev/continue/commit/6504bd55659823c8117d04ddb447f91d9932d086)) +* remove `models` property ([7f8882e](https://github.com/continuedev/continue/commit/7f8882eee136b90db9400175f9ee00fa1aa3ad93)) +* remove defaultTitle ([1bf359a](https://github.com/continuedev/continue/commit/1bf359a55fdb833569878167a1440e66c65d7249)) +* remove edit as a mode ([4f371a0](https://github.com/continuedev/continue/commit/4f371a0eb654067c626a41eb53718f565873975b)) +* remove tools from schema ([5bbda4f](https://github.com/continuedev/continue/commit/5bbda4f115a208ebd2df0c63ede75bfc5e131b54)) +* remove useFileExists ([2b34ee8](https://github.com/continuedev/continue/commit/2b34ee8c4156c544a3abd9616080f4d8e0b565a1)) +* rename to `Open Assistant configuration` ([9d8139a](https://github.com/continuedev/continue/commit/9d8139a6fae992eb1cb77248cc297d0a95683c12)) +* replace logo and deepseek model base info ([7749349](https://github.com/continuedev/continue/commit/7749349f8996f5da186ba1a8b2910443121ea2fc)) +* restructure for easier module publishing ([b51905d](https://github.com/continuedev/continue/commit/b51905da95307ed17f3fa7a466e94514bcd4113a)) +* retrieve AWS credentials from Env and from ECS/EC2 instance ([53426a1](https://github.com/continuedev/continue/commit/53426a12b858f341c9f70f8ee3513dbea39d648d)) +* reusable card ([d11376b](https://github.com/continuedev/continue/commit/d11376ba7f2b7ab1a85c75f361631fc2c5c26ab5)) +* rule colocation ([39dc367](https://github.com/continuedev/continue/commit/39dc367371c0df605f663c76fe490c4736f00153)) +* rule glob ([f95cdfa](https://github.com/continuedev/continue/commit/f95cdfaf83569159cd7aed02134be7dd5f4029cf)) +* rules ([2620064](https://github.com/continuedev/continue/commit/2620064c53ecf7de3d61b34043d2c0450f68b13c)) +* rules display ([40914a8](https://github.com/continuedev/continue/commit/40914a8bf3b4f2c1764873bc3172feab3bf23f3a)) +* rules policies ([8a2ffb3](https://github.com/continuedev/continue/commit/8a2ffb3a859d4fbec3299500a0d860c0f725573d)) +* rules preview ([d57d35d](https://github.com/continuedev/continue/commit/d57d35d5bdf6015593283a2aecbf88bca1c8c574)) +* run prettier ([ecdb4f5](https://github.com/continuedev/continue/commit/ecdb4f530dee01e8a67e7fd964206428d379b4db)) +* **scaleway:** update supported models ([8b04ba6](https://github.com/continuedev/continue/commit/8b04ba6b233d72f1e61ea67fd63de51d03629282)) +* separate toolbar action buttons ([aba6e4e](https://github.com/continuedev/continue/commit/aba6e4e61c6c7b548126a79ffeb0608e1de1147b)) +* show disableIndexing in More ([5d95b62](https://github.com/continuedev/continue/commit/5d95b62e683c0ea50eb519f7cc2851736e8ee64b)) +* show num diffs in toolbar ([ad6c0d0](https://github.com/continuedev/continue/commit/ad6c0d0bb850308993e53c4117cc45664fd8970e)) +* simplify types ([b18fd4a](https://github.com/continuedev/continue/commit/b18fd4aee0c66e41113bce4de1fa526da1dc16c6)) +* simplify typings ([c6fa6d7](https://github.com/continuedev/continue/commit/c6fa6d78a714ba6bba44ec2ef9825080b0a5b69a)) +* single default quick pick to edit ([#1743](https://github.com/continuedev/continue/issues/1743)) ([ca7bde9](https://github.com/continuedev/continue/commit/ca7bde9b5e10d684ea44291c67eb294edc357240)) +* skip hub onboarding in free trial ([d995149](https://github.com/continuedev/continue/commit/d99514995588cc2c502df99757e22f5ac3e2c7a1)) +* skip onboarding subtext ([9e6ff4b](https://github.com/continuedev/continue/commit/9e6ff4b91447b03d1b9949499cf5135d7a369df9)) +* smaller headings, use assistant name ([85804ff](https://github.com/continuedev/continue/commit/85804ff9e54adf30f1a4b23b3003b39338a82065)) +* split diff ([b7defc8](https://github.com/continuedev/continue/commit/b7defc8d912b09d9323e05a82442bea17c6faef4)) +* split diffs ([3c537f5](https://github.com/continuedev/continue/commit/3c537f51c13ee9064a3e17f3aec62dc5283ae3e2)) +* split diffs ([39087c2](https://github.com/continuedev/continue/commit/39087c2207e0dd3764761e91b9a2abd3ca6db906)) +* support o3/o4 as agents ([8bb18fd](https://github.com/continuedev/continue/commit/8bb18fd2ee4a0fb81b2f24903e47fb1b0beade36)) +* supports agent 4 deepseek ([82d8e1e](https://github.com/continuedev/continue/commit/82d8e1e6795e7258880d414c4bb78c6f83b17883)) +* toolbar header for all codeblocks ([635f7cb](https://github.com/continuedev/continue/commit/635f7cb168f264446e40c6887347327b101ee413)) +* tutorial listener ([6e01c7d](https://github.com/continuedev/continue/commit/6e01c7d0ca0d139e471edf40018d35e1033638f3)) +* unskip tests ([a5619e2](https://github.com/continuedev/continue/commit/a5619e29c8a0230f578c092c028c7cc6f3066afb)) +* update azure uri for foundry users ([638969b](https://github.com/continuedev/continue/commit/638969b7c7594f36bfefd59a986032ba597f88fa)) +* update btn colors ([b7c7171](https://github.com/continuedev/continue/commit/b7c71719e55e728f944399789f6749e493d5d13e)) +* update docs and input labelling ([1847317](https://github.com/continuedev/continue/commit/18473174365c88e7e83fd8123cb6af9318e10462)) +* update e2e tests ([93cec27](https://github.com/continuedev/continue/commit/93cec27e28773778e3223424fb72026c9e3ead44)) +* update executable perms on linux/macos ([dcbd80e](https://github.com/continuedev/continue/commit/dcbd80ecf47adeb49b9484bb1e1b3c43ff80bff8)) +* update onboarding w/ embeddings model ([#1570](https://github.com/continuedev/continue/issues/1570)) ([ed56c8f](https://github.com/continuedev/continue/commit/ed56c8f7f325f19c9b4d1c7e3cb775f850beaea9)) +* update PreToolbar ([3933791](https://github.com/continuedev/continue/commit/39337910f125a71414cf2c39b96250fc512777be)) +* update redux store schemas ([438cba4](https://github.com/continuedev/continue/commit/438cba4501026ef1705987b23f419570d1175ea1)) +* update styling ([ef349ec](https://github.com/continuedev/continue/commit/ef349ecec90dac3d15eb80ae17cf24c155d1e683)) +* update sys prompt ([25c7144](https://github.com/continuedev/continue/commit/25c714494588433d1c43d6af99cce175b48e21cc)) +* update to work as normal context provider ([0ace169](https://github.com/continuedev/continue/commit/0ace1699356be8024a8ab49ccadc4b1b22c18e08)) +* update tutorial files w/ agent mode step ([8eaf078](https://github.com/continuedev/continue/commit/8eaf078638c0d2d9c14aa0cc8e465df66f01e4df)) +* update URL replace logic ([fe6c9a1](https://github.com/continuedev/continue/commit/fe6c9a1477ab814f3cc4d0973e851701621d2c54)) +* updated prompt docs ([204aa51](https://github.com/continuedev/continue/commit/204aa51a944906fe629e92095a3f7f86113b9f6c)) +* use @lancedb/vectordb-win32-arm64-msvc ([0277320](https://github.com/continuedev/continue/commit/027732073aa0fb5202b558f4c0d71c71c6b8acbb)) +* use `fetch` instead of `http` ([401d67b](https://github.com/continuedev/continue/commit/401d67bbd0dc11fd6eda2f7d9c17dfd4da0a43f5)) +* use `instant` property on diff manager ([2f12bbd](https://github.com/continuedev/continue/commit/2f12bbdf25b1ff189a88d37bfba4f3bfe7f2f3bc)) +* use bm25 for fts ([2e5b579](https://github.com/continuedev/continue/commit/2e5b5794e9b394405c127893100be21e008b45ad)) +* use clipboard content ([9dd6284](https://github.com/continuedev/continue/commit/9dd6284b8e4b1dc09b704bc00d5231af9569b6bc)) +* use correct deployment for azure ([8e24fcf](https://github.com/continuedev/continue/commit/8e24fcf4a0ee655dfbe83d95b82855041f0ba246)) +* use crawlee for docs service ([a51c520](https://github.com/continuedev/continue/commit/a51c520deefa49f9d67aaa2469bb261af00dab80)) +* use exponential backoff in llm chat ([#1115](https://github.com/continuedev/continue/issues/1115)) ([a87df40](https://github.com/continuedev/continue/commit/a87df40a2c875a1538aa112d7d35c03137990ee2)) +* use git diff, improve comment formatting ([1adbd9a](https://github.com/continuedev/continue/commit/1adbd9a456f6c4c2f56b78d6bd5e3b8737f60ec5)) +* use hub blocks for local onboarding ([1b45308](https://github.com/continuedev/continue/commit/1b453083b14e60afda14de69b7bfb2f7ce74194b)) +* use meyers diff after initial edit/apply ([f5e7f9c](https://github.com/continuedev/continue/commit/f5e7f9ce71d4c34e8ee72b0d78fe89c68d0b7170)) +* use s3 for global docs cache on all docs ([0156409](https://github.com/continuedev/continue/commit/0156409dac5a445b055ede921c1c07706759ff4e)) +* use theme color for shortcuts rows ([44fdd65](https://github.com/continuedev/continue/commit/44fdd65967b561527865a02cafce0de4cdc9fa70)) +* use thunj ([eae1dd2](https://github.com/continuedev/continue/commit/eae1dd20bb296099db94175c43bf7af445e97200)) +* v1 onboarding card ([0d47647](https://github.com/continuedev/continue/commit/0d476473bda2ef8bea78064c89c5bc1f6818fec1)) +* vitest ([3cd19f5](https://github.com/continuedev/continue/commit/3cd19f5fabdb6eab3be381ccef8de743b37fcf29)) +* **VSC:** give option to disable quick fix ([951784c](https://github.com/continuedev/continue/commit/951784c790664a80d87b54e33886a3582137ad50)) +* vscode config for json ([666fb18](https://github.com/continuedev/continue/commit/666fb186d6b4cee9dcc95e1adc6b42748300de4c)) +* withExponentialBackoff utility function ([ad8991e](https://github.com/continuedev/continue/commit/ad8991eac0f7f40f3877d56392592d8d83e173a6)) +* working `copy-client` ([09beb58](https://github.com/continuedev/continue/commit/09beb58260f32043c89cff39c6e8567f25099c9c)) +* write initial unit test for apply ([f4a59dc](https://github.com/continuedev/continue/commit/f4a59dc185c3ea7ceb29a4629ea0c7dc82f44dbb)) + + +### Performance Improvements + +* :green_heart: hardcode distro paths ([edf0f56](https://github.com/continuedev/continue/commit/edf0f5603730d01d7ca4ca055dd49da596648627)) +* :zap: don't show server loading immediately ([5047dfc](https://github.com/continuedev/continue/commit/5047dfcd2a2e47468c15ed05c69781cc615ef723)) +* **llm:** Optimize pruneLines functions in countTokens ([35b3189](https://github.com/continuedev/continue/commit/35b3189538da5891617a79ba9c0badb0bb7dc1bc)) +* **llm:** Optimize pruneLines functions in countTokens ([28cdd1c](https://github.com/continuedev/continue/commit/28cdd1cee25973aa9a8a5cfdcbcc436e0b7f6240)) +* **llm:** Optimize pruneLines functions in countTokens ([881f8b3](https://github.com/continuedev/continue/commit/881f8b3139794aca0a6699c3d34ebf8fba01b789)) + + ### Reverts * Revert "Add citations to the log" ([caf7288](https://github.com/continuedev/continue/commit/caf7288d36c1361b6cb279821d9ee377636f72f7)) diff --git a/packages/config-yaml/package.json b/packages/config-yaml/package.json index f9625e5f8..4b994b794 100644 --- a/packages/config-yaml/package.json +++ b/packages/config-yaml/package.json @@ -1,6 +1,6 @@ { "name": "@continuedev/config-yaml", - "version": "1.0.95", + "version": "1.0.0", "description": "", "main": "dist/index.js", "types": "dist/index.d.ts", From ded58234d482fef8dacce5641ed7d26c7c5c14c2 Mon Sep 17 00:00:00 2001 From: Nate Date: Sun, 22 Jun 2025 00:40:24 -0700 Subject: [PATCH 39/91] fix release config --- packages/config-yaml/package.json | 2 +- packages/config-yaml/release.config.js | 8 ++++---- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/packages/config-yaml/package.json b/packages/config-yaml/package.json index 4b994b794..0dc52ee40 100644 --- a/packages/config-yaml/package.json +++ b/packages/config-yaml/package.json @@ -13,7 +13,7 @@ } }, "bin": { - "@continuedev/config-yaml": "./dist/cli.js" + "config-yaml": "./dist/cli.js" }, "scripts": { "test": "cross-env NODE_OPTIONS=--experimental-vm-modules jest", diff --git a/packages/config-yaml/release.config.js b/packages/config-yaml/release.config.js index 99ed349bf..0be4334d3 100644 --- a/packages/config-yaml/release.config.js +++ b/packages/config-yaml/release.config.js @@ -7,10 +7,10 @@ export default { { releaseRules: [ // Only release if commits affect this package - { scope: "config-yaml", release: "patch" }, - { scope: "config-yaml", type: "feat", release: "minor" }, - { scope: "config-yaml", type: "fix", release: "patch" }, - { scope: "config-yaml", breaking: true, release: "major" }, + { scope: "packages/config-yaml", release: "patch" }, + { scope: "packages/config-yaml", type: "feat", release: "minor" }, + { scope: "packages/config-yaml", type: "fix", release: "patch" }, + { scope: "packages/config-yaml", breaking: true, release: "major" }, ], }, ], From 7186c04418abd61f151d25bf03733f2f5d371b48 Mon Sep 17 00:00:00 2001 From: Nate Date: Sun, 22 Jun 2025 00:42:36 -0700 Subject: [PATCH 40/91] fix: avoid minor --- packages/config-yaml/release.config.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/config-yaml/release.config.js b/packages/config-yaml/release.config.js index 0be4334d3..6fbadee80 100644 --- a/packages/config-yaml/release.config.js +++ b/packages/config-yaml/release.config.js @@ -8,7 +8,7 @@ export default { releaseRules: [ // Only release if commits affect this package { scope: "packages/config-yaml", release: "patch" }, - { scope: "packages/config-yaml", type: "feat", release: "minor" }, + // { scope: "packages/config-yaml", type: "feat", release: "minor" }, { scope: "packages/config-yaml", type: "fix", release: "patch" }, { scope: "packages/config-yaml", breaking: true, release: "major" }, ], From 2056e7b61d60d399e2efc145b76f01c6e2ad96b3 Mon Sep 17 00:00:00 2001 From: semantic-release-bot Date: Sun, 22 Jun 2025 07:43:29 +0000 Subject: [PATCH 41/91] chore(release): @continuedev/config-yaml@1.0.95 [skip ci] --- packages/config-yaml/CHANGELOG.md | 7 +++++++ packages/config-yaml/package.json | 2 +- 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/packages/config-yaml/CHANGELOG.md b/packages/config-yaml/CHANGELOG.md index 2814e9ff2..8c4aa034b 100644 --- a/packages/config-yaml/CHANGELOG.md +++ b/packages/config-yaml/CHANGELOG.md @@ -1,3 +1,10 @@ +## [1.0.95](https://github.com/continuedev/continue/compare/@continuedev/config-yaml@1.0.94...@continuedev/config-yaml@1.0.95) (2025-06-22) + + +### Bug Fixes + +* avoid minor ([7186c04](https://github.com/continuedev/continue/commit/7186c04418abd61f151d25bf03733f2f5d371b48)) + # 1.0.0 (2025-06-22) diff --git a/packages/config-yaml/package.json b/packages/config-yaml/package.json index 0dc52ee40..aaadfe13a 100644 --- a/packages/config-yaml/package.json +++ b/packages/config-yaml/package.json @@ -1,6 +1,6 @@ { "name": "@continuedev/config-yaml", - "version": "1.0.0", + "version": "1.0.95", "description": "", "main": "dist/index.js", "types": "dist/index.d.ts", From d2b3b79767720e261c23cc7d3262ce7a98d90fd3 Mon Sep 17 00:00:00 2001 From: Nate Date: Sun, 22 Jun 2025 00:45:24 -0700 Subject: [PATCH 42/91] fix: normal release --- packages/config-yaml/release.config.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/config-yaml/release.config.js b/packages/config-yaml/release.config.js index 6fbadee80..fb704ce75 100644 --- a/packages/config-yaml/release.config.js +++ b/packages/config-yaml/release.config.js @@ -1,5 +1,5 @@ export default { - branches: ["main", "nate/semantic-release"], + branches: ["main"], tagFormat: "@continuedev/config-yaml@${version}", plugins: [ [ From a8670f34fcd1eebfd0a371b83d815c20cd8c3098 Mon Sep 17 00:00:00 2001 From: Nate Date: Sun, 22 Jun 2025 00:58:55 -0700 Subject: [PATCH 43/91] release automation for openai-adapters, llm-info, and fetch --- .github/workflows/release-config-yaml.yml | 45 +++------------ .github/workflows/release-fetch.yml | 18 ++++++ .github/workflows/release-llm-info.yml | 18 ++++++ .github/workflows/release-openai-adapters.yml | 18 ++++++ .github/workflows/reusable-release.yml | 55 +++++++++++++++++++ packages/config-yaml/release.config.js | 33 +---------- packages/fetch/release.config.js | 3 + packages/llm-info/release.config.js | 3 + packages/openai-adapters/release.config.js | 3 + packages/shared-release.config.js | 34 ++++++++++++ 10 files changed, 162 insertions(+), 68 deletions(-) create mode 100644 .github/workflows/release-fetch.yml create mode 100644 .github/workflows/release-llm-info.yml create mode 100644 .github/workflows/release-openai-adapters.yml create mode 100644 .github/workflows/reusable-release.yml create mode 100644 packages/fetch/release.config.js create mode 100644 packages/llm-info/release.config.js create mode 100644 packages/openai-adapters/release.config.js create mode 100644 packages/shared-release.config.js diff --git a/.github/workflows/release-config-yaml.yml b/.github/workflows/release-config-yaml.yml index 0956de23e..f0d220ed0 100644 --- a/.github/workflows/release-config-yaml.yml +++ b/.github/workflows/release-config-yaml.yml @@ -4,46 +4,15 @@ on: push: branches: - main - - nate/semantic-release paths: - "packages/config-yaml/**" -permissions: - contents: write - issues: write - pull-requests: write - jobs: release: - name: Release - runs-on: ubuntu-latest - defaults: - run: - working-directory: packages/config-yaml - steps: - - name: Checkout - uses: actions/checkout@v4 - with: - fetch-depth: 0 - - - name: Use Node.js from .nvmrc - uses: actions/setup-node@v4 - with: - node-version-file: ".nvmrc" - - - name: Install dependencies - run: npm ci - - - name: Build - run: npm run build - - - name: Run tests - run: npm test - - - name: Release - env: - # Requires read/write for issues and contents - GITHUB_TOKEN: ${{ secrets.SEMANTIC_RELEASE_GITHUB_TOKEN }} - NPM_TOKEN: ${{ secrets.SEMANTIC_RELEASE_NPM_TOKEN }} - NODE_AUTH_TOKEN: ${{ secrets.SEMANTIC_RELEASE_NPM_TOKEN }} - run: npx semantic-release + uses: ./.github/workflows/reusable-release.yml + with: + package-name: "config-yaml" + package-path: "packages/config-yaml" + secrets: + SEMANTIC_RELEASE_GITHUB_TOKEN: ${{ secrets.SEMANTIC_RELEASE_GITHUB_TOKEN }} + SEMANTIC_RELEASE_NPM_TOKEN: ${{ secrets.SEMANTIC_RELEASE_NPM_TOKEN }} diff --git a/.github/workflows/release-fetch.yml b/.github/workflows/release-fetch.yml new file mode 100644 index 000000000..2fa1124bc --- /dev/null +++ b/.github/workflows/release-fetch.yml @@ -0,0 +1,18 @@ +name: Release @continuedev/fetch + +on: + push: + branches: + - main + paths: + - "packages/fetch/**" + +jobs: + release: + uses: ./.github/workflows/reusable-release.yml + with: + package-name: "fetch" + package-path: "packages/fetch" + secrets: + SEMANTIC_RELEASE_GITHUB_TOKEN: ${{ secrets.SEMANTIC_RELEASE_GITHUB_TOKEN }} + SEMANTIC_RELEASE_NPM_TOKEN: ${{ secrets.SEMANTIC_RELEASE_NPM_TOKEN }} diff --git a/.github/workflows/release-llm-info.yml b/.github/workflows/release-llm-info.yml new file mode 100644 index 000000000..1b1c044dc --- /dev/null +++ b/.github/workflows/release-llm-info.yml @@ -0,0 +1,18 @@ +name: Release @continuedev/llm-info + +on: + push: + branches: + - main + paths: + - "packages/llm-info/**" + +jobs: + release: + uses: ./.github/workflows/reusable-release.yml + with: + package-name: "llm-info" + package-path: "packages/llm-info" + secrets: + SEMANTIC_RELEASE_GITHUB_TOKEN: ${{ secrets.SEMANTIC_RELEASE_GITHUB_TOKEN }} + SEMANTIC_RELEASE_NPM_TOKEN: ${{ secrets.SEMANTIC_RELEASE_NPM_TOKEN }} diff --git a/.github/workflows/release-openai-adapters.yml b/.github/workflows/release-openai-adapters.yml new file mode 100644 index 000000000..ce7f4fda8 --- /dev/null +++ b/.github/workflows/release-openai-adapters.yml @@ -0,0 +1,18 @@ +name: Release @continuedev/openai-adapters + +on: + push: + branches: + - main + paths: + - "packages/openai-adapters/**" + +jobs: + release: + uses: ./.github/workflows/reusable-release.yml + with: + package-name: "openai-adapters" + package-path: "packages/openai-adapters" + secrets: + SEMANTIC_RELEASE_GITHUB_TOKEN: ${{ secrets.SEMANTIC_RELEASE_GITHUB_TOKEN }} + SEMANTIC_RELEASE_NPM_TOKEN: ${{ secrets.SEMANTIC_RELEASE_NPM_TOKEN }} diff --git a/.github/workflows/reusable-release.yml b/.github/workflows/reusable-release.yml new file mode 100644 index 000000000..7de9d7320 --- /dev/null +++ b/.github/workflows/reusable-release.yml @@ -0,0 +1,55 @@ +name: Reusable Release Workflow + +on: + workflow_call: + inputs: + package-name: + required: true + type: string + package-path: + required: true + type: string + secrets: + SEMANTIC_RELEASE_GITHUB_TOKEN: + required: true + SEMANTIC_RELEASE_NPM_TOKEN: + required: true + +permissions: + contents: write + issues: write + pull-requests: write + +jobs: + release: + name: Release ${{ inputs.package-name }} + runs-on: ubuntu-latest + defaults: + run: + working-directory: ${{ inputs.package-path }} + steps: + - name: Checkout + uses: actions/checkout@v4 + with: + fetch-depth: 0 + + - name: Use Node.js from .nvmrc + uses: actions/setup-node@v4 + with: + node-version-file: ".nvmrc" + + - name: Install dependencies + run: npm ci + + - name: Build + run: npm run build + + - name: Run tests + run: npm test + + - name: Release + env: + GITHUB_TOKEN: ${{ secrets.SEMANTIC_RELEASE_GITHUB_TOKEN }} + NPM_TOKEN: ${{ secrets.SEMANTIC_RELEASE_NPM_TOKEN }} + NODE_AUTH_TOKEN: ${{ secrets.SEMANTIC_RELEASE_NPM_TOKEN }} + run: npx semantic-release \ No newline at end of file diff --git a/packages/config-yaml/release.config.js b/packages/config-yaml/release.config.js index fb704ce75..f984ed9fb 100644 --- a/packages/config-yaml/release.config.js +++ b/packages/config-yaml/release.config.js @@ -1,30 +1,3 @@ -export default { - branches: ["main"], - tagFormat: "@continuedev/config-yaml@${version}", - plugins: [ - [ - "@semantic-release/commit-analyzer", - { - releaseRules: [ - // Only release if commits affect this package - { scope: "packages/config-yaml", release: "patch" }, - // { scope: "packages/config-yaml", type: "feat", release: "minor" }, - { scope: "packages/config-yaml", type: "fix", release: "patch" }, - { scope: "packages/config-yaml", breaking: true, release: "major" }, - ], - }, - ], - "@semantic-release/release-notes-generator", - "@semantic-release/changelog", - "@semantic-release/npm", - [ - "@semantic-release/git", - { - assets: ["CHANGELOG.md", "package.json"], - message: - "chore(release): @continuedev/config-yaml@${nextRelease.version} [skip ci]", - }, - ], - "@semantic-release/github", - ], -}; +import createReleaseConfig from "../shared-release.config.js"; + +export default createReleaseConfig("config-yaml"); diff --git a/packages/fetch/release.config.js b/packages/fetch/release.config.js new file mode 100644 index 000000000..a5b357cf5 --- /dev/null +++ b/packages/fetch/release.config.js @@ -0,0 +1,3 @@ +import createReleaseConfig from "../shared-release.config.js"; + +export default createReleaseConfig("fetch"); diff --git a/packages/llm-info/release.config.js b/packages/llm-info/release.config.js new file mode 100644 index 000000000..74bb5a2c6 --- /dev/null +++ b/packages/llm-info/release.config.js @@ -0,0 +1,3 @@ +import createReleaseConfig from "../shared-release.config.js"; + +export default createReleaseConfig("llm-info"); diff --git a/packages/openai-adapters/release.config.js b/packages/openai-adapters/release.config.js new file mode 100644 index 000000000..6c1f5743a --- /dev/null +++ b/packages/openai-adapters/release.config.js @@ -0,0 +1,3 @@ +import createReleaseConfig from "../shared-release.config.js"; + +export default createReleaseConfig("openai-adapters"); diff --git a/packages/shared-release.config.js b/packages/shared-release.config.js new file mode 100644 index 000000000..a587ebbd0 --- /dev/null +++ b/packages/shared-release.config.js @@ -0,0 +1,34 @@ +export default function createReleaseConfig(packageName) { + return { + branches: ["main"], + tagFormat: `@continuedev/${packageName}@\${version}`, + plugins: [ + [ + "@semantic-release/commit-analyzer", + { + releaseRules: [ + { scope: `packages/${packageName}`, release: "patch" }, + { scope: `packages/${packageName}`, type: "fix", release: "patch" }, + { scope: "packages/config-yaml", type: "feat", release: "minor" }, + { + scope: `packages/${packageName}`, + breaking: true, + release: "major", + }, + ], + }, + ], + "@semantic-release/release-notes-generator", + "@semantic-release/changelog", + "@semantic-release/npm", + [ + "@semantic-release/git", + { + assets: ["CHANGELOG.md", "package.json"], + message: `chore(release): @continuedev/${packageName}@\${nextRelease.version} [skip ci]`, + }, + ], + "@semantic-release/github", + ], + }; +} From e0dda678d7f40efbdf3bdff05290bc6d81f660ec Mon Sep 17 00:00:00 2001 From: Nate Date: Sun, 22 Jun 2025 22:58:16 -0700 Subject: [PATCH 44/91] updates to rules.mdx --- docs/docs/customize/deep-dives/rules.mdx | 24 +++++++++++++++++------- 1 file changed, 17 insertions(+), 7 deletions(-) diff --git a/docs/docs/customize/deep-dives/rules.mdx b/docs/docs/customize/deep-dives/rules.mdx index 7e687c71f..c17a5c4de 100644 --- a/docs/docs/customize/deep-dives/rules.mdx +++ b/docs/docs/customize/deep-dives/rules.mdx @@ -55,18 +55,25 @@ For example, you can say "Create a rule for this", and a rule will be created fo Rules can also be added to an Assistant on the Continue Hub. -Explore available rules [here](https://hub.continue.dev/explore/rules), or [create your own](https://hub.continue.dev/new?type=block&blockType=rules) in the Hub. These blocks are defined using the [`config.yaml` syntax](../../reference.md#rules) and can also be created locally. +Explore available rules [here](https://hub.continue.dev), or [create your own](https://hub.continue.dev/new?type=block&blockType=rules) in the Hub. ### Syntax +:::info + +Rules were originally defined in YAML format (demonstrated below), but we introduced Markdown for easier editing. While both are still supported, we recommend Markdown. + +::: + Rules blocks can be simple text, written in YAML configuration files, or as Markdown (`.md`) files. They can have the following properties: - `name` (**required** for YAML): A display name/title for the rule - `globs` (optional): When files are provided as context that match this glob pattern, the rule will be included. This can be either a single pattern (e.g., `"**/*.{ts,tsx}"`) or an array of patterns (e.g., `["src/**/*.ts", "tests/**/*.ts"]`). - `description` (optional): A description for the rule. Agents may read this description when `alwaysApply` is false to determine whether the rule should be pulled into context. -- `alwaysApply`: true - Always include the rule, regardless of file context -- `alwaysApply`: false - Included if globs exist AND match file context, or the agent decides to pull the rule into context based on it's description -- `alwaysApply`: undefined - Default behavior: include if no globs exist OR globs exist and match +- `alwaysApply`: Determines whether the rule is always included. Behavior is described below: + - `true`: Always included, regardless of file context + - `false`: Included if globs exist AND match file context, or the agent decides to pull the rule into context based on it's description + - `undefined` (default behavior): Included if no globs exist OR globs exist and match @@ -96,10 +103,13 @@ Rules blocks can be simple text, written in YAML configuration files, or as Mark ```yaml title="doc-standards.yaml" name: Documentation Standards - globs: docs/**/*.{md,mdx} - alwaysApply: false + version: 1.0.0 + schema: v1 + rules: - name: Documentation Standards + globs: docs/**/*.{md,mdx} + alwaysApply: false rule: > - Follow Docusaurus documentation standards - Include YAML frontmatter with title, description, and keywords @@ -163,7 +173,7 @@ Whenever you are writing React code, make sure to Continue includes a simple default system message for [Chat](../../chat/how-to-use-it.md) and [Agent](../../agent/how-to-use-it.md) requests, to help the model provide reliable codeblock formats in its output. -This can be viewed in the rules section of the toolbar (see above), or visit the source code [here](https://github.com/continuedev/continue/blob/main/core/llm/constructMessages.ts#L4) +This can be viewed in the rules section of the toolbar (see above), or in the source code [here](https://github.com/continuedev/continue/blob/main/core/llm/constructMessages.ts#L4). Advanced users can override this system message for a specific model if needed by using `chatOptions.baseSystemMessage`. See the [`config.yaml` reference](../../reference.md#models). From 2e7e642a28acd6e72fee1eee529c2a1456e705fa Mon Sep 17 00:00:00 2001 From: Nate Date: Sun, 22 Jun 2025 23:16:04 -0700 Subject: [PATCH 45/91] update prompts.md --- docs/docs/customize/deep-dives/prompts.md | 107 +++++++--------------- 1 file changed, 34 insertions(+), 73 deletions(-) diff --git a/docs/docs/customize/deep-dives/prompts.md b/docs/docs/customize/deep-dives/prompts.md index 1cd1c0085..daaa342cd 100644 --- a/docs/docs/customize/deep-dives/prompts.md +++ b/docs/docs/customize/deep-dives/prompts.md @@ -5,93 +5,54 @@ title: Prompts Prompts are reusable instructions that can be referenced at any time during chat. They are especially useful as context for repetitive and/or complex tasks. :::info -Visit the Hub to [explore prompts](https://hub.continue.dev/explore/prompts) or [create your own](https://hub.continue.dev/new?type=block&blockType=prompts) +Prompts were previously defined in a `.prompt` file format, but for consistency we now recommend using the same Markdown format as [rules](./rules.mdx) and adding `alwaysApply: false` to the frontmatter so that they are manually triggered. ::: -## Examples - -Below are some examples to get you started. - -### Security review - -```text title="Security best practices review" -@open - Review these files for the following security best practices: -- Does the architecture follow security-by-design principles? -- Are there potential security vulnerabilities in the system design? -- Is sensitive data handled appropriately throughout the lifecycle? -``` - -### Reference best practice guides - -```text title="Redux best practices review" -@https://redux.js.org/style-guide/ -@currentFile - -Review this code for adherence to Redux best practices. -``` - -### Pull in commonly used files for tasks - -```text title="Generate a new TypeORM entity" -@src/db/dataSource.ts @src/db/entity/SampleEntity.ts - -Use these files to generate a new TypeORM entity based on the following requirements: -``` - -## Including Context Providers in your prompts - -Many [context providers](../context-providers.mdx) can be referenced by typing "@" followed by the name of the context provider. The currently supported list is: - -- `@terminal` - The contents of the terminal -- `@currentFile` - The currently active file -- `@open` - All open files -- `@os` - Information about the operating system -- `@problems` - Problems reported by the language server in the active file -- `@repo-map` - A map of files in the repository -- `@tree` - A tree view of the repository structure - -Or you can directly type URLs and file paths: - -- `@https://github.com/continuedev/continue` - The contents of a URL -- `@src/index.ts` - The contents of a file (VS Code only) - -All references will be attached as context items, rather than injected directly inline. - -## Local `.prompt` files - -In addition to Prompt blocks on the Hub, you can also define prompts in local `.prompt` files, located in the `.continue/prompts` folder at the top level of your workspace. This is useful for quick iteration on prompts to test them out before pushing up to the Hub. - ### Quick Start Below is a quick example of setting up a prompt file: -1. Create a folder called `.continue/prompts` at the top level of your workspace -2. Add a file called `test.prompt` to this folder. -3. Write the following contents to `test.prompt` and save. +1. Create a folder called `.continue/rules` at the top level of your workspace +2. Add a file called `review-prompt.md` to this folder. +3. Write the following contents to `review-prompt.md` and save. -```.prompt -name: Current file prompt -description: A test prompt using the current file context provider +```md title="review-prompt.md" --- -@currentFile +name: Redux best practices review +alwaysApply: false +--- + +Review the currently open file for adherence to Redux best practices, as explained in their style guide at https://redux.js.org/style-guide/. ``` -Now to use this prompt, you can open Chat, type /, select the prompt, and add type out some additional text such as "Review the code for any issues". +Now to use this prompt, you can open Chat, type /, select the prompt, and type out any additional instructions you'd like to add. -### Format +## Further Examples -The format is inspired by [HumanLoops's .prompt file](https://docs.humanloop.com/docs/prompt-file-format), with additional templating to reference files, URLs, and context providers. +Below are more examples to get you started. You can also visit the Hub to [explore prompts](https://hub.continue.dev/explore/prompts) or [create your own](https://hub.continue.dev/new?type=block&blockType=prompts). -:::info -The current state of this format is experimental and subject to change -::: +### Security review -### Preamble +```md title="security-review.md" +--- +name: Security best practices review +alwaysApply: false +--- -The "preamble" is everything above the `---` separator, and lets you specify model parameters. It uses YAML syntax and currently supports the following parameters: +Review the changes in the current git diff for these security best practices: -- `name` - The display title -- `description` - The description you will see in the dropdown -- `version` - Can be either "1" (for legacy prompt files) or "2" (this is the default and does not need to be set) +- Does the architecture follow security-by-design principles? +- Are there potential security vulnerabilities in the system design? +- Is sensitive data handled appropriately throughout the lifecycle? +``` -If you don't need any of these parameters, you can leave out the preamble and do not need to include the `---` separator. +### Pull in commonly used files for tasks + +```md title="typeorm-entity-generator.md" +--- +name: Generate a new TypeORM entity +alwaysApply: false +--- + +Referencing `src/db/dataSource.ts` and `src/db/entity/SampleEntity.ts`, generate a new TypeORM entity based on the following requirements: +``` From fb5beb042eb283c137b8efe6e88f871936a9230e Mon Sep 17 00:00:00 2001 From: Dallin Romney Date: Mon, 23 Jun 2025 09:26:10 -0700 Subject: [PATCH 46/91] WIP: render slash commands --- core/commands/slash/customSlashCommand.ts | 58 ----- core/commands/slash/mcpSlashCommand.ts | 75 ++----- .../commands/slash/promptBlockSlashCommand.ts | 12 + core/commands/slash/promptFileSlashCommand.ts | 30 --- core/config/load.ts | 9 +- core/config/profile/doLoadConfig.ts | 19 +- core/config/yaml/loadYaml.ts | 4 +- core/context/mcp/MCPManagerSingleton.ts | 17 ++ core/core.ts | 14 ++ core/index.d.ts | 26 ++- core/llm/streamChat.ts | 3 + core/protocol/core.ts | 11 + core/protocol/passThrough.ts | 1 + .../constants/MessageTypes.kt | 1 + .../__tests__/utils.test.ts | 4 + .../extensions/Prompt/PromptBlock.ts | 17 +- .../TipTapEditor/extensions/SlashCommand.ts | 6 +- .../utils/resolveEditorContent.ts | 207 ++++++++++++++---- gui/src/redux/thunks/edit.ts | 29 ++- gui/src/redux/thunks/gatherContext.ts | 26 ++- 20 files changed, 321 insertions(+), 248 deletions(-) create mode 100644 core/commands/slash/promptBlockSlashCommand.ts diff --git a/core/commands/slash/customSlashCommand.ts b/core/commands/slash/customSlashCommand.ts index 29fb1144d..c27a41f4c 100644 --- a/core/commands/slash/customSlashCommand.ts +++ b/core/commands/slash/customSlashCommand.ts @@ -1,8 +1,4 @@ import { CustomCommand, SlashCommandWithSource } from "../.."; -import { renderTemplatedString } from "../../promptFiles/v1/renderTemplatedString"; -import { replaceSlashCommandWithPromptInChatHistory } from "../../promptFiles/v1/updateChatHistory"; -import { renderPromptFileV2 } from "../../promptFiles/v2/renderPromptFile"; -import { renderChatMessage } from "../../util/messageContent"; export function convertCustomCommandToSlashCommand( customCommand: CustomCommand, @@ -15,59 +11,5 @@ export function convertCustomCommandToSlashCommand( description: customCommand.description ?? "", prompt: customCommand.prompt, source: "json-custom-command", - run: async function* ({ - input, - llm, - history, - ide, - completionOptions, - config, - selectedCode, - fetch, - abortController, - }) { - // Render prompt template - let renderedPrompt: string; - if (customCommand.prompt.includes("{{{ input }}}")) { - renderedPrompt = await renderTemplatedString( - customCommand.prompt, - ide.readFile.bind(ide), - { input }, - ); - } else { - const renderedPromptFile = await renderPromptFileV2( - customCommand.prompt, - { - config, - llm, - ide, - selectedCode, - fetch, - fullInput: input, - embeddingsProvider: config.selectedModelByRole.embed, - reranker: config.selectedModelByRole.rerank, - }, - ); - - renderedPrompt = renderedPromptFile[1]; - } - - // Replaces slash command messages with the rendered prompt - // which INCLUDES the input - const messages = replaceSlashCommandWithPromptInChatHistory( - history, - commandName, - renderedPrompt, - undefined, - ); - - for await (const chunk of llm.streamChat( - messages, - abortController.signal, - completionOptions, - )) { - yield renderChatMessage(chunk); - } - }, }; } diff --git a/core/commands/slash/mcpSlashCommand.ts b/core/commands/slash/mcpSlashCommand.ts index c97b3b383..d9c1278ff 100644 --- a/core/commands/slash/mcpSlashCommand.ts +++ b/core/commands/slash/mcpSlashCommand.ts @@ -1,8 +1,7 @@ import { Client } from "@modelcontextprotocol/sdk/client/index.js"; -import { PromptMessage } from "@modelcontextprotocol/sdk/types.js"; -import { ChatMessage, SlashCommandWithSource } from "../../index.js"; -import { renderChatMessage } from "../../util/messageContent.js"; +import { SlashCommandWithSource } from "../../index.js"; + export function constructMcpSlashCommand( client: Client, name: string, @@ -14,58 +13,22 @@ export function constructMcpSlashCommand( description: description ?? "MCP Prompt", source: "mcp-prompt", params: {}, - run: async function* (context) { - const argsObject: { [key: string]: string } = {}; - const userInput = context.input.split(" ").slice(1).join(" "); - if (args) { - args.forEach((arg, i) => { - argsObject[arg] = ""; // userInput - }); - } - - const result = await client.getPrompt({ name, arguments: argsObject }); - const mcpMessages: PromptMessage[] = result.messages; - const messages: ChatMessage[] = mcpMessages.map((msg) => { - if (msg.content.type !== "text") { - throw new Error( - "Continue currently only supports text prompts through MCP", - ); - } - return { - content: msg.content.text, - role: msg.role, - }; - }); - - if (messages.length === 0) { - yield "The MCP prompt returned no messages"; - return; - } - - if (userInput) { - const lastMessage = messages.at(-1); - if (!lastMessage || lastMessage.role !== "user") { - messages.push({ - role: "user", - content: userInput, - }); - } else { - let newContent = renderChatMessage(lastMessage); - if (newContent) { - newContent += "\n\n"; - } - newContent += userInput; - lastMessage.content = newContent; - } - } - - for await (const chunk of context.llm.streamChat( - messages, - context.abortController.signal, - context.completionOptions, - )) { - yield renderChatMessage(chunk); - } - }, }; } + +export function stringifyMcpPrompt( + prompt: Awaited>, +): string { + const { messages } = prompt; + let stringified = ""; + for (const message of messages) { + if (message.content.type === "text") { + stringified += `<${message.content.role}/>\n${message.content.text}\n<${message.content.role}/>`; + } else { + console.warn( + `MCP Prompt conversion warning: ${message.content.type} content is not yet supported, message skipped`, + ); + } + } + return stringified; +} diff --git a/core/commands/slash/promptBlockSlashCommand.ts b/core/commands/slash/promptBlockSlashCommand.ts new file mode 100644 index 000000000..a71ab20a6 --- /dev/null +++ b/core/commands/slash/promptBlockSlashCommand.ts @@ -0,0 +1,12 @@ +import { CustomCommand, SlashCommandWithSource } from "../.."; + +export function convertPromptBlockToSlashCommand( + customCommand: CustomCommand, +): SlashCommandWithSource { + return { + name: customCommand.name, + description: customCommand.description ?? "", + prompt: customCommand.prompt, + source: "yaml-prompt-block", + }; +} diff --git a/core/commands/slash/promptFileSlashCommand.ts b/core/commands/slash/promptFileSlashCommand.ts index 7c037b2cf..c7af54064 100644 --- a/core/commands/slash/promptFileSlashCommand.ts +++ b/core/commands/slash/promptFileSlashCommand.ts @@ -1,13 +1,10 @@ import { ContinueSDK, SlashCommandWithSource } from "../.."; import { getDiffsFromCache } from "../../autocomplete/snippets/gitDiffCache"; import { parsePromptFileV1V2 } from "../../promptFiles/v2/parsePromptFileV1V2"; -import { renderPromptFileV2 } from "../../promptFiles/v2/renderPromptFile"; -import { renderChatMessage } from "../../util/messageContent"; import { getLastNPathParts } from "../../util/uri"; import { getContextProviderHelpers } from "../../promptFiles/v1/getContextProviderHelpers"; import { renderTemplatedString } from "../../promptFiles/v1/renderTemplatedString"; -import { replaceSlashCommandWithPromptInChatHistory } from "../../promptFiles/v1/updateChatHistory"; export function extractName(preamble: { name?: string }, path: string): string { return preamble.name ?? getLastNPathParts(path, 1).split(".prompt")[0]; @@ -59,32 +56,5 @@ export function slashCommandFromPromptFileV1( prompt, source: ".prompt-file", promptFile: path, - run: async function* (context) { - const [_, renderedPrompt] = await renderPromptFileV2(prompt, { - config: context.config, - fullInput: context.input, - embeddingsProvider: context.config.modelsByRole.embed[0], - reranker: context.config.modelsByRole.rerank[0], - llm: context.llm, - ide: context.ide, - selectedCode: context.selectedCode, - fetch: context.fetch, - }); - - const messages = replaceSlashCommandWithPromptInChatHistory( - context.history, - name, - renderedPrompt, - systemMessage, - ); - - for await (const chunk of context.llm.streamChat( - messages, - context.abortController.signal, - context.completionOptions, - )) { - yield renderChatMessage(chunk); - } - }, }; } diff --git a/core/config/load.ts b/core/config/load.ts index 79bb66e6a..775ec2217 100644 --- a/core/config/load.ts +++ b/core/config/load.ts @@ -30,7 +30,7 @@ import { ModelDescription, RerankerDescription, SerializedContinueConfig, - SlashCommand, + SlashCommandWithSource, } from ".."; import { getLegacyBuiltInSlashCommandFromDescription } from "../commands/slash/built-in-legacy"; import { convertCustomCommandToSlashCommand } from "../commands/slash/customSlashCommand"; @@ -172,7 +172,7 @@ async function serializedToIntermediateConfig( ide: IDE, ): Promise { // DEPRECATED - load custom slash commands - const slashCommands: SlashCommand[] = []; + const slashCommands: SlashCommandWithSource[] = []; for (const command of initial.slashCommands || []) { const newCommand = getLegacyBuiltInSlashCommandFromDescription(command); if (newCommand) { @@ -660,7 +660,10 @@ async function finalToBrowserConfig( return { allowAnonymousTelemetry: final.allowAnonymousTelemetry, completionOptions: final.completionOptions, - slashCommands: final.slashCommands?.map(({ run, ...rest }) => rest), + slashCommands: final.slashCommands?.map(({ run, ...rest }) => ({ + ...rest, + isLegacy: !!run, + })), contextProviders: final.contextProviders?.map((c) => c.description), disableIndexing: final.disableIndexing, disableSessionTitles: final.disableSessionTitles, diff --git a/core/config/profile/doLoadConfig.ts b/core/config/profile/doLoadConfig.ts index 90369b57a..a006f0eac 100644 --- a/core/config/profile/doLoadConfig.ts +++ b/core/config/profile/doLoadConfig.ts @@ -16,9 +16,9 @@ import { ILLMLogger, RuleWithSource, SerializedContinueConfig, + SlashCommandDescWithSource, Tool, } from "../../"; -import { constructMcpSlashCommand } from "../../commands/slash/mcpSlashCommand"; import { MCPManagerSingleton } from "../../context/mcp/MCPManagerSingleton"; import MCPContextProvider from "../../context/providers/MCPContextProvider"; import RulesContextProvider from "../../context/providers/RulesContextProvider"; @@ -190,14 +190,15 @@ export default async function doLoadConfig(options: { })); newConfig.tools.push(...serverTools); - const serverSlashCommands = server.prompts.map((prompt) => - constructMcpSlashCommand( - server.client, - prompt.name, - prompt.description, - prompt.arguments?.map((a: any) => a.name), - ), - ); + const serverSlashCommands: SlashCommandDescWithSource[] = + server.prompts.map((prompt) => ({ + name: prompt.name, + description: prompt.description ?? "MCP Prompt", + source: "mcp-prompt", + isLegacy: false, + mcpServerName: server.name, // Used in client to retrieve prompt + mcpArgs: prompt.arguments, + })); newConfig.slashCommands.push(...serverSlashCommands); const submenuItems = server.resources diff --git a/core/config/yaml/loadYaml.ts b/core/config/yaml/loadYaml.ts index 539e18ad1..c5038c883 100644 --- a/core/config/yaml/loadYaml.ts +++ b/core/config/yaml/loadYaml.ts @@ -37,7 +37,7 @@ import { getAllPromptFiles } from "../../promptFiles/v2/getPromptFiles"; import { GlobalContext } from "../../util/GlobalContext"; import { modifyAnyConfigWithSharedConfig } from "../sharedConfig"; -import { convertCustomCommandToSlashCommand } from "../../commands/slash/customSlashCommand"; +import { convertPromptBlockToSlashCommand } from "../../commands/slash/promptBlockSlashCommand"; import { getControlPlaneEnvSync } from "../../control-plane/env"; import { baseToolDefinitions } from "../../tools"; import { getCleanUriPath } from "../../util/uri"; @@ -286,7 +286,7 @@ async function configYamlToContinueConfig(options: { config.prompts?.forEach((prompt) => { try { - const slashCommand = convertCustomCommandToSlashCommand(prompt); + const slashCommand = convertPromptBlockToSlashCommand(prompt); continueConfig.slashCommands?.push(slashCommand); } catch (e) { localErrors.push({ diff --git a/core/context/mcp/MCPManagerSingleton.ts b/core/context/mcp/MCPManagerSingleton.ts index d0d7c0991..7eafa1564 100644 --- a/core/context/mcp/MCPManagerSingleton.ts +++ b/core/context/mcp/MCPManagerSingleton.ts @@ -161,4 +161,21 @@ export class MCPManagerSingleton { client: connection.client, })); } + + async getPrompt( + serverName: string, + promptName: string, + args: Record = {}, + ) { + const connection = this.connections.get(serverName); + if (!connection) { + throw new Error( + `Error getting prompt: MCP Connection ${serverName} not found`, + ); + } + return await connection.client.getPrompt({ + name: promptName, + arguments: args, + }); + } } diff --git a/core/core.ts b/core/core.ts index 5e8d4d060..40756bf02 100644 --- a/core/core.ts +++ b/core/core.ts @@ -50,6 +50,7 @@ import { import { BLOCK_TYPES, ConfigYaml } from "@continuedev/config-yaml"; import { getDiffFn, GitDiffCache } from "./autocomplete/snippets/gitDiffCache"; +import { stringifyMcpPrompt } from "./commands/slash/mcpSlashCommand"; import { isLocalDefinitionFile } from "./config/loadLocalAssistants"; import { setupLocalConfig, @@ -381,6 +382,19 @@ export class Core { on("mcp/reloadServer", async (msg) => { await MCPManagerSingleton.getInstance().refreshConnection(msg.data.id); }); + on("mcp/getPrompt", async (msg) => { + const { serverName, promptName, args } = msg.data; + const prompt = await MCPManagerSingleton.getInstance().getPrompt( + serverName, + promptName, + args, + ); + const stringifiedPrompt = stringifyMcpPrompt(prompt); + return { + prompt: stringifiedPrompt, + description: prompt.description, + }; + }); // Context providers on("context/addDocs", async (msg) => { void this.docsService.indexAndAdd(msg.data); diff --git a/core/index.d.ts b/core/index.d.ts index d3c96f8de..6640e29d9 100644 --- a/core/index.d.ts +++ b/core/index.d.ts @@ -848,6 +848,12 @@ export interface SlashCommand extends SlashCommandDescription { run: (sdk: ContinueSDK) => AsyncGenerator; } +export interface SlashCommandWithSource extends SlashCommandDescription { + run?: (sdk: ContinueSDK) => AsyncGenerator; // Optional - only needed for legacy + source: SlashCommandSource; + promptFile?: string; +} + export type SlashCommandSource = | "built-in-legacy" | "built-in" @@ -859,13 +865,11 @@ export type SlashCommandSource = | "invokable-rule"; export interface SlashCommandDescWithSource extends SlashCommandDescription { + isLegacy: boolean; // Maps to if slashcommand.run exists source: SlashCommandSource; promptFile?: string; -} - -export interface SlashCommandWithSource extends SlashCommand { - source: SlashCommandSource; - promptFile?: string; + mcpServerName?: string; + mcpArgs?: MCPPromptArgs; } // Config @@ -1191,14 +1195,16 @@ export type MCPConnectionStatus = | "error" | "not-connected"; +export type MCPPromptArgs = { + name: string; + description?: string; + required?: boolean; +}[]; + export interface MCPPrompt { name: string; description?: string; - arguments?: { - name: string; - description?: string; - required?: boolean; - }[]; + arguments?: MCPPromptArgs; } // Leaving here to ideate on diff --git a/core/llm/streamChat.ts b/core/llm/streamChat.ts index 3f52a0192..25acd8461 100644 --- a/core/llm/streamChat.ts +++ b/core/llm/streamChat.ts @@ -59,6 +59,9 @@ export async function* llmStreamChat( }, true, ); + if (!slashCommand.run) { + throw new Error(`Slash command ${command.name} is not a legacy command`); + } const gen = slashCommand.run({ input, diff --git a/core/protocol/core.ts b/core/protocol/core.ts index 22e0c0717..f2f44e3ee 100644 --- a/core/protocol/core.ts +++ b/core/protocol/core.ts @@ -118,6 +118,17 @@ export type ToCoreFromIdeOrWebviewProtocol = { }, void, ]; + "mcp/getPrompt": [ + { + serverName: string; + promptName: string; + args?: Record; + }, + { + prompt: string; + description: string | undefined; + }, + ]; "context/getSymbolsForFiles": [{ uris: string[] }, FileSymbolMap]; "context/loadSubmenuItems": [{ title: string }, ContextSubmenuItem[]]; "autocomplete/complete": [AutocompleteInput, string[]]; diff --git a/core/protocol/passThrough.ts b/core/protocol/passThrough.ts index 105636d2f..6b29ce472 100644 --- a/core/protocol/passThrough.ts +++ b/core/protocol/passThrough.ts @@ -27,6 +27,7 @@ export const WEBVIEW_TO_CORE_PASS_THROUGH: (keyof ToCoreFromWebviewProtocol)[] = "config/updateSharedConfig", "config/updateSelectedModel", "mcp/reloadServer", + "mcp/getPrompt", "context/getContextItems", "context/getSymbolsForFiles", "context/loadSubmenuItems", diff --git a/extensions/intellij/src/main/kotlin/com/github/continuedev/continueintellijextension/constants/MessageTypes.kt b/extensions/intellij/src/main/kotlin/com/github/continuedev/continueintellijextension/constants/MessageTypes.kt index 66ebac070..99ec3f267 100644 --- a/extensions/intellij/src/main/kotlin/com/github/continuedev/continueintellijextension/constants/MessageTypes.kt +++ b/extensions/intellij/src/main/kotlin/com/github/continuedev/continueintellijextension/constants/MessageTypes.kt @@ -92,6 +92,7 @@ class MessageTypes { "config/updateSharedConfig", "config/updateSelectedModel", "mcp/reloadServer", + "mcp/getPrompt", "context/getContextItems", "context/getSymbolsForFiles", "context/loadSubmenuItems", diff --git a/gui/src/components/ConversationStarters/__tests__/utils.test.ts b/gui/src/components/ConversationStarters/__tests__/utils.test.ts index 047606ba9..86de0f83e 100644 --- a/gui/src/components/ConversationStarters/__tests__/utils.test.ts +++ b/gui/src/components/ConversationStarters/__tests__/utils.test.ts @@ -8,24 +8,28 @@ describe("sortCommandsByBookmarkStatus", () => { description: "First command", prompt: "This is command 1", source: "built-in", + isLegacy: false, }, { name: "command2", description: "Second command", prompt: "This is command 2", source: "built-in", + isLegacy: false, }, { name: "command3", description: "Third command", prompt: "This is command 3", source: "built-in", + isLegacy: false, }, { name: "command4", description: "Fourth command", prompt: "This is command 4", source: "built-in", + isLegacy: false, }, ]; diff --git a/gui/src/components/mainInput/TipTapEditor/extensions/Prompt/PromptBlock.ts b/gui/src/components/mainInput/TipTapEditor/extensions/Prompt/PromptBlock.ts index 839182303..52eeeb3b1 100644 --- a/gui/src/components/mainInput/TipTapEditor/extensions/Prompt/PromptBlock.ts +++ b/gui/src/components/mainInput/TipTapEditor/extensions/Prompt/PromptBlock.ts @@ -1,8 +1,9 @@ import { mergeAttributes, Node } from "@tiptap/core"; import { Node as ProseMirrorNode } from "@tiptap/pm/model"; import { ReactNodeViewRenderer } from "@tiptap/react"; -import { ContextItemWithId, SlashCommandDescWithSource } from "core"; +import { ContextItemWithId } from "core"; import { MAIN_EDITOR_INPUT_ID } from "../../../../../pages/gui/Chat"; +import { ComboBoxItem } from "../../../types"; import { PromptBlockPreview } from "./PromptBlockPreview"; export interface PromptBlockOptions { @@ -20,7 +21,7 @@ declare module "@tiptap/core" { /** * Insert a prompt block into the editor */ - insertPrompt: (item: SlashCommandDescWithSource) => ReturnType; + insertPrompt: (item: ComboBoxItem) => ReturnType; /** * Clear all prompt blocks from the editor @@ -76,12 +77,12 @@ export const PromptBlock = Node.create({ addCommands() { return { insertPrompt: - (prompt: SlashCommandDescWithSource) => + (item: ComboBoxItem) => ({ chain }) => { - const item: ContextItemWithId = { - content: prompt.prompt ?? "", - name: prompt.name, - description: prompt.description, + const contextItem: ContextItemWithId = { + content: item.content ?? "", + name: item.title, + description: item.description, id: { providerTitle: "prompt", itemId: prompt.name, @@ -93,7 +94,7 @@ export const PromptBlock = Node.create({ .insertContentAt(0, { type: this.name, attrs: { - item, + item: contextItem, inputId: MAIN_EDITOR_INPUT_ID, }, }) diff --git a/gui/src/components/mainInput/TipTapEditor/extensions/SlashCommand.ts b/gui/src/components/mainInput/TipTapEditor/extensions/SlashCommand.ts index 892d80355..2673c81bd 100644 --- a/gui/src/components/mainInput/TipTapEditor/extensions/SlashCommand.ts +++ b/gui/src/components/mainInput/TipTapEditor/extensions/SlashCommand.ts @@ -22,11 +22,7 @@ export const SlashCommand = Node.create({ // First delete the slash character and any text after it editor.chain().focus().deleteRange(range).run(); - editor.commands.insertPrompt({ - name: props.title, - description: props.description, - prompt: props.content, - }); + editor.commands.insertPrompt(props); }, }, }; diff --git a/gui/src/components/mainInput/TipTapEditor/utils/resolveEditorContent.ts b/gui/src/components/mainInput/TipTapEditor/utils/resolveEditorContent.ts index 25b251ff1..59587eb4a 100644 --- a/gui/src/components/mainInput/TipTapEditor/utils/resolveEditorContent.ts +++ b/gui/src/components/mainInput/TipTapEditor/utils/resolveEditorContent.ts @@ -14,6 +14,8 @@ import { TextMessagePart, } from "core"; import { ctxItemToRifWithContents } from "core/commands/util"; +import { renderTemplatedString } from "core/promptFiles/v1/renderTemplatedString"; +import { parsePromptFileV1V2 } from "core/promptFiles/v2/parsePromptFileV1V2"; import { renderChatMessage, stripImages } from "core/util/messageContent"; import { getUriFileExtension } from "core/util/uri"; import { IIdeMessenger } from "../../../../context/IdeMessenger"; @@ -36,18 +38,17 @@ interface ResolveEditorContentInput { dispatch: Dispatch; } -type ResolveEditorContentOutput = [ - ContextItemWithId[], - RangeInFile[], - MessageContent, - ( +interface ResolveEditorContentOutput { + selectedContextItems: ContextItemWithId[]; + selectedCode: RangeInFile[]; + content: MessageContent; + legacyCommandWithInput: | { command: SlashCommandDescWithSource; input: string; } - | undefined - ), -]; + | undefined; +} /** * This function converts the input from the editor to a string, resolving any context items @@ -61,26 +62,38 @@ export async function resolveEditorContent({ availableSlashCommands, dispatch, }: ResolveEditorContentInput): Promise { - const { parts, contextItemAttrs, selectedCode, slashCommandName } = - processEditorContent(editorState); + const { + parts, + contextItemAttrs: editorContextAttrs, + selectedCode, + slashCommandName, + } = processEditorContent(editorState); - const slashCommandWithInput = processSlashCommand( + const { + parts: slashParts, + legacyCommandWithInput, + contextAttrs: slashContextAttrs = [], + } = (await renderSlashCommandPrompt( + ideMessenger, slashCommandName, availableSlashCommands, parts, - ); + )) ?? {}; - const shouldGatherContext = modifiers.useCodebase || slashCommandWithInput; + const contextItemAttrs = [...editorContextAttrs, ...slashContextAttrs]; + + const shouldGatherContext = + modifiers.useCodebase || contextItemAttrs.length > 0; if (shouldGatherContext) { dispatch(setIsGatheringContext(true)); } - const contextItems = await gatherContextItems({ + const selectedContextItems = await gatherContextItems({ contextItemAttrs, modifiers, ideMessenger, defaultContextProviders, - parts, + parts: slashParts ?? parts, selectedCode, }); @@ -88,7 +101,12 @@ export async function resolveEditorContent({ dispatch(setIsGatheringContext(false)); } - return [contextItems, selectedCode, parts, slashCommandWithInput]; + return { + selectedContextItems, + selectedCode, + content: slashParts ?? parts, + legacyCommandWithInput, + }; } /** @@ -178,15 +196,25 @@ function processEditorContent(editorState: JSONContent) { return { parts, contextItemAttrs, selectedCode, slashCommandName }; } - /** * Processes slash commands and prepares the command with input */ -function processSlashCommand( +async function renderSlashCommandPrompt( + ideMessenger: IIdeMessenger, slashCommandName: string | undefined, availableSlashCommands: SlashCommandDescWithSource[], parts: MessagePart[], -): { command: SlashCommandDescWithSource; input: string } | undefined { +): Promise< + | { + slashedParts: MessagePart[]; + legacyCommandWithInput?: { + command: SlashCommandDescWithSource; + input: string; + }; + contextAttrs: MentionAttrs[]; + } + | undefined +> { if (!slashCommandName) return; const command = availableSlashCommands.find( @@ -195,33 +223,130 @@ function processSlashCommand( if (!command) return; - const lastTextIndex = findLastIndex(parts, (part) => part.type === "text"); - const lastTextPart = parts[lastTextIndex] as TextMessagePart; + const nonTextParts = parts.filter((part) => part.type !== "text"); + const slashedParts: MessagePart[] = [...nonTextParts]; + const textParts = parts.filter((part) => part.type === "text"); - const originalPrompt = command.prompt ? " " + command.prompt : ""; + const userInput = textParts.length + ? renderChatMessage({ + role: "user", + content: textParts, + }).trimStart() + : ""; - let input: string; + const legacyCommandWithInput = command.isLegacy + ? { + command, + input: userInput, + } + : undefined; - /** - * Although we no longer render slash command tags from the editor, - * we are inserting a slash command style text back into the text here. - * This is a a hack, but there's a number of assumptions in `core` that there - * is slash command text at the beginning of the text in order to process slash commands. - */ - if (lastTextPart) { - input = renderChatMessage({ - role: "user", - content: lastTextPart.text, - }).trimStart(); - lastTextPart.text = `/${command.name}${originalPrompt} ${lastTextPart.text}`; - } else { - input = ""; - parts.push({ type: "text", text: `/${command.name}${originalPrompt}` }); + const contextItemAttrs: MentionAttrs[] = []; + + switch (command.source) { + case "built-in-legacy": + case "config-ts-slash-command": + /** + * For legacy slash commands, we simply insert the text "/{name}" in front of the message + * And then parsing for this is done in core + */ + slashedParts.push({ + type: "text", + text: `/${command.name}${command.prompt ? " " + command.prompt : ""}${userInput ? " " + userInput : ""}`, + }); + break; + case "mcp-prompt": + // TODO add support for mcp prompt args using command.mcpArgs + const args: { [key: string]: string } = {}; + if (command.mcpArgs) { + command.mcpArgs.forEach((arg, i) => { + args[arg.name] = ""; + }); + } + const response = await ideMessenger.request("mcp/getPrompt", { + serverName: command.mcpServerName!, + promptName: command.name, + args: args, + }); + if (response.status === "success") { + slashedParts.push({ + type: "text", + text: `${response.content.prompt}${userInput ? "\n\n" + userInput : ""}`, + }); + } else { + throw new Error( + `Failed to get MCP prompt for slash command ${slashCommandName}`, + ); + } + break; + case ".prompt-file": + if (!command.promptFile || !command.prompt) { + throw new Error( + `Invalid/empty prompt from slash command ${command.name}`, + ); + } + const { name, description, systemMessage, prompt } = parsePromptFileV1V2( + command.promptFile, + command.prompt, + ); + case "yaml-prompt-block": + const [_, renderedPrompt] = await renderPromptFileV2(prompt, { + config: context.config, + fullInput: context.input, + embeddingsProvider: context.config.modelsByRole.embed[0], + reranker: context.config.modelsByRole.rerank[0], + llm: context.llm, + ide: context.ide, + selectedCode: context.selectedCode, + fetch: context.fetch, + }); + + // Render prompt template + let renderedPrompt: string; + if (customCommand.prompt.includes("{{{ input }}}")) { + renderedPrompt = await renderTemplatedString( + customCommand.prompt, + ide.readFile.bind(ide), + { input }, + ); + } else { + const renderedPromptFile = await renderPromptFileV2( + customCommand.prompt, + { + config, + llm, + ide, + selectedCode, + fetch, + fullInput: input, + embeddingsProvider: config.selectedModelByRole.embed, + reranker: config.selectedModelByRole.rerank, + }, + ); + + renderedPrompt = renderedPromptFile[1]; + } + + const renderedPrompt = renderPromptFile(); + slashedParts.push({ + type: "text", + text: renderedPrompt, // Includes user input + }); + case "built-in": + case "invokable-rule": + case "json-custom-command": + if (!command.prompt) { + throw new Error(`Slash command ${slashCommandName} is missing prompt`); + } + slashedParts.push({ + type: "text", + text: `${command.prompt}${userInput ? "\n\n" + userInput : ""}`, + }); } - return { - command, - input, + slashedParts, + legacyCommandWithInput, + contextAttrs: [], }; } diff --git a/gui/src/redux/thunks/edit.ts b/gui/src/redux/thunks/edit.ts index 4471cc0b4..f90784394 100644 --- a/gui/src/redux/thunks/edit.ts +++ b/gui/src/redux/thunks/edit.ts @@ -33,27 +33,26 @@ export const streamEditThunk = createAsyncThunk< }, ThunkApiType >( - "chat/streamResponse", + "edit/streamResponse", async ({ editorState, codeToEdit }, { dispatch, extra }) => { await dispatch( streamThunkWrapper(async () => { dispatch(setActive()); - const [contextItems, __, userInstructions, _] = - await resolveEditorContent({ - editorState, - modifiers: { - noContext: true, - useCodebase: false, - }, - ideMessenger: extra.ideMessenger, - defaultContextProviders: [], - availableSlashCommands: [], - dispatch, - }); + const { selectedContextItems, content } = await resolveEditorContent({ + editorState, + modifiers: { + noContext: true, + useCodebase: false, + }, + ideMessenger: extra.ideMessenger, + defaultContextProviders: [], + availableSlashCommands: [], + dispatch, + }); const prompt = [ - ...contextItems.map((item) => item.content), - stripImages(userInstructions), + ...selectedContextItems.map((item) => item.content), + stripImages(content), ].join("\n\n"); const response = await extra.ideMessenger.request("edit/sendPrompt", { diff --git a/gui/src/redux/thunks/gatherContext.ts b/gui/src/redux/thunks/gatherContext.ts index a17a05813..b3953780f 100644 --- a/gui/src/redux/thunks/gatherContext.ts +++ b/gui/src/redux/thunks/gatherContext.ts @@ -5,7 +5,7 @@ import { InputModifiers, MessageContent, RangeInFile, - SlashCommandDescription, + SlashCommandDescWithSource, } from "core"; import * as URI from "uri-js"; import { resolveEditorContent } from "../../components/mainInput/TipTapEditor"; @@ -19,7 +19,7 @@ export const gatherContext = createAsyncThunk< content: MessageContent; legacyCommandWithInput: | { - command: SlashCommandDescription; + command: SlashCommandDescWithSource; input: string; } | undefined; @@ -50,15 +50,19 @@ export const gatherContext = createAsyncThunk< } // Resolve context providers and construct new history - let [selectedContextItems, selectedCode, content, legacyCommandWithInput] = - await resolveEditorContent({ - editorState, - modifiers, - ideMessenger: extra.ideMessenger, - defaultContextProviders, - availableSlashCommands: state.config.config.slashCommands, - dispatch, - }); + let { + selectedContextItems, + selectedCode, + content, + legacyCommandWithInput, + } = await resolveEditorContent({ + editorState, + modifiers, + ideMessenger: extra.ideMessenger, + defaultContextProviders, + availableSlashCommands: state.config.config.slashCommands, + dispatch, + }); // Automatically use currently open file if (!modifiers.noContext) { From a2e1f5aab460e97008904b09abbac6263ac8e494 Mon Sep 17 00:00:00 2001 From: Dallin Romney Date: Mon, 23 Jun 2025 14:12:47 -0700 Subject: [PATCH 47/91] remove unused promptPreamble functionality --- gui/src/redux/thunks/gatherContext.ts | 16 ++-------------- gui/src/redux/thunks/streamResponse.ts | 7 +------ 2 files changed, 3 insertions(+), 20 deletions(-) diff --git a/gui/src/redux/thunks/gatherContext.ts b/gui/src/redux/thunks/gatherContext.ts index b3953780f..5068124e0 100644 --- a/gui/src/redux/thunks/gatherContext.ts +++ b/gui/src/redux/thunks/gatherContext.ts @@ -27,15 +27,11 @@ export const gatherContext = createAsyncThunk< { editorState: JSONContent; modifiers: InputModifiers; - promptPreamble?: string; }, ThunkApiType >( "chat/gatherContext", - async ( - { modifiers, editorState, promptPreamble }, - { dispatch, extra, getState }, - ) => { + async ({ modifiers, editorState }, { dispatch, extra, getState }) => { const state = getState(); const selectedChatModel = selectSelectedChatModel(state); @@ -50,7 +46,7 @@ export const gatherContext = createAsyncThunk< } // Resolve context providers and construct new history - let { + const { selectedContextItems, selectedCode, content, @@ -110,14 +106,6 @@ export const gatherContext = createAsyncThunk< } } - if (promptPreamble) { - if (typeof content === "string") { - content = promptPreamble + content; - } else if (content[0].type === "text") { - content[0].text = promptPreamble + content[0].text; - } - } - return { selectedContextItems, selectedCode, diff --git a/gui/src/redux/thunks/streamResponse.ts b/gui/src/redux/thunks/streamResponse.ts index 7f90de52a..2e1c0c2bb 100644 --- a/gui/src/redux/thunks/streamResponse.ts +++ b/gui/src/redux/thunks/streamResponse.ts @@ -25,15 +25,11 @@ export const streamResponseThunk = createAsyncThunk< editorState: JSONContent; modifiers: InputModifiers; index?: number; - promptPreamble?: string; }, ThunkApiType >( "chat/streamResponse", - async ( - { editorState, modifiers, index, promptPreamble }, - { dispatch, extra, getState }, - ) => { + async ({ editorState, modifiers, index }, { dispatch, extra, getState }) => { await dispatch( streamThunkWrapper(async () => { const state = getState(); @@ -53,7 +49,6 @@ export const streamResponseThunk = createAsyncThunk< gatherContext({ editorState, modifiers, - promptPreamble, }), ); const { From 5be8bf765cdf1aa6bfcd6774de2404bfd196282f Mon Sep 17 00:00:00 2001 From: Dallin Romney Date: Mon, 23 Jun 2025 17:29:10 -0700 Subject: [PATCH 48/91] render prompt slash commands on client --- core/commands/slash/promptFileSlashCommand.ts | 48 +---- core/config/load.ts | 12 +- core/config/yaml/loadYaml.ts | 2 +- core/core.ts | 2 +- core/index.d.ts | 3 +- core/llm/llms/index.ts | 7 +- .../{v2 => }/createNewPromptFile.ts | 6 +- core/promptFiles/{v2 => }/getPromptFiles.ts | 11 +- core/promptFiles/index.ts | 19 ++ ...sePromptFileV1V2.ts => parsePromptFile.ts} | 4 +- ...vitest.ts => renderPromptFileV2.vitest.ts} | 14 +- .../v1/getContextProviderHelpers.ts | 38 ---- core/promptFiles/v1/index.ts | 1 - core/promptFiles/v1/updateChatHistory.ts | 64 ------ core/promptFiles/v2/parse.ts | 34 --- core/promptFiles/v2/renderPromptFile.ts | 84 -------- core/tsconfig.json | 7 +- .../v1 => util/handlebars}/handlebarUtils.ts | 108 +++++----- .../handlebars}/renderTemplatedString.ts | 16 +- .../TipTapEditor/utils/renderPromptv1.ts | 49 +++++ .../TipTapEditor/utils/renderPromptv2.ts | 71 ++++++ .../utils/resolveEditorContent.ts | 202 +++++++++--------- .../mainInput/TipTapEditor/utils/types.ts | 6 + gui/src/redux/thunks/gatherContext.ts | 116 ---------- gui/src/redux/thunks/streamResponse.ts | 28 ++- 25 files changed, 366 insertions(+), 586 deletions(-) rename core/promptFiles/{v2 => }/createNewPromptFile.ts (94%) rename core/promptFiles/{v2 => }/getPromptFiles.ts (84%) create mode 100644 core/promptFiles/index.ts rename core/promptFiles/{v2/parsePromptFileV1V2.ts => parsePromptFile.ts} (84%) rename core/promptFiles/{v2/renderPromptFile.vitest.ts => renderPromptFileV2.vitest.ts} (93%) delete mode 100644 core/promptFiles/v1/getContextProviderHelpers.ts delete mode 100644 core/promptFiles/v1/index.ts delete mode 100644 core/promptFiles/v1/updateChatHistory.ts delete mode 100644 core/promptFiles/v2/parse.ts delete mode 100644 core/promptFiles/v2/renderPromptFile.ts rename core/{promptFiles/v1 => util/handlebars}/handlebarUtils.ts (54%) rename core/{promptFiles/v1 => util/handlebars}/renderTemplatedString.ts (60%) create mode 100644 gui/src/components/mainInput/TipTapEditor/utils/renderPromptv1.ts create mode 100644 gui/src/components/mainInput/TipTapEditor/utils/renderPromptv2.ts create mode 100644 gui/src/components/mainInput/TipTapEditor/utils/types.ts delete mode 100644 gui/src/redux/thunks/gatherContext.ts diff --git a/core/commands/slash/promptFileSlashCommand.ts b/core/commands/slash/promptFileSlashCommand.ts index c7af54064..3fe8298c3 100644 --- a/core/commands/slash/promptFileSlashCommand.ts +++ b/core/commands/slash/promptFileSlashCommand.ts @@ -1,51 +1,11 @@ -import { ContinueSDK, SlashCommandWithSource } from "../.."; -import { getDiffsFromCache } from "../../autocomplete/snippets/gitDiffCache"; -import { parsePromptFileV1V2 } from "../../promptFiles/v2/parsePromptFileV1V2"; -import { getLastNPathParts } from "../../util/uri"; - -import { getContextProviderHelpers } from "../../promptFiles/v1/getContextProviderHelpers"; -import { renderTemplatedString } from "../../promptFiles/v1/renderTemplatedString"; - -export function extractName(preamble: { name?: string }, path: string): string { - return preamble.name ?? getLastNPathParts(path, 1).split(".prompt")[0]; -} - -async function renderPromptV1( - prompt: string, - context: ContinueSDK, - userInput: string, -) { - const helpers = getContextProviderHelpers(context); - - const inputData: Record = { - input: userInput, - }; - - // A few context providers that don't need to be in config.json to work in .prompt files - if (helpers?.find((helper) => helper[0] === "diff")) { - const diffs = await getDiffsFromCache(context.ide); - inputData.diff = diffs.join("\n"); - } - if (helpers?.find((helper) => helper[0] === "currentFile")) { - const currentFile = await context.ide.getCurrentFile(); - if (currentFile) { - inputData.currentFile = currentFile.path; - } - } - - return renderTemplatedString( - prompt, - context.ide.readFile.bind(context.ide), - inputData, - helpers, - ); -} +import { SlashCommandWithSource } from "../.."; +import { parsePromptFile } from "../../promptFiles/parsePromptFile"; export function slashCommandFromPromptFileV1( path: string, content: string, ): SlashCommandWithSource | null { - const { name, description, systemMessage, prompt } = parsePromptFileV1V2( + const { name, description, systemMessage, prompt } = parsePromptFile( path, content, ); @@ -54,7 +14,7 @@ export function slashCommandFromPromptFileV1( name, description, prompt, - source: ".prompt-file", + source: "prompt-file-v1", promptFile: path, }; } diff --git a/core/config/load.ts b/core/config/load.ts index 775ec2217..ff0bc5f50 100644 --- a/core/config/load.ts +++ b/core/config/load.ts @@ -47,7 +47,7 @@ import { LLMClasses, llmFromDescription } from "../llm/llms"; import CustomLLMClass from "../llm/llms/CustomLLM"; import { LLMReranker } from "../llm/llms/llm"; import TransformersJsEmbeddingsProvider from "../llm/llms/TransformersJsEmbeddingsProvider"; -import { getAllPromptFiles } from "../promptFiles/v2/getPromptFiles"; +import { getAllPromptFiles } from "../promptFiles/getPromptFiles"; import { copyOf } from "../util"; import { GlobalContext } from "../util/GlobalContext"; import mergeJson from "../util/merge"; @@ -64,6 +64,7 @@ import { import { localPathToUri } from "../util/pathToUri"; import { baseToolDefinitions } from "../tools"; +import { resolveRelativePathInDir } from "../util/ideUtils"; import { modifyAnyConfigWithSharedConfig } from "./sharedConfig"; import { getModelByRole, @@ -252,7 +253,10 @@ async function intermediateToFinalConfig({ loadPromptFiles?: boolean; }): Promise<{ config: ContinueConfig; errors: ConfigValidationError[] }> { const errors: ConfigValidationError[] = []; - + const workspaceDirs = await ide.getWorkspaceDirs(); + const getUriFromPath = (path: string) => { + return resolveRelativePathInDir(path, ide, workspaceDirs); + }; // Auto-detect models let models: BaseLLM[] = []; await Promise.all( @@ -261,6 +265,7 @@ async function intermediateToFinalConfig({ const llm = await llmFromDescription( desc, ide.readFile.bind(ide), + getUriFromPath, uniqueId, ideSettings, llmLogger, @@ -282,6 +287,7 @@ async function intermediateToFinalConfig({ title: modelName, }, ide.readFile.bind(ide), + getUriFromPath, uniqueId, ideSettings, llmLogger, @@ -358,6 +364,7 @@ async function intermediateToFinalConfig({ const llm = await llmFromDescription( desc, ide.readFile.bind(ide), + getUriFromPath, uniqueId, ideSettings, llmLogger, @@ -985,7 +992,6 @@ async function loadContinueConfigFromJson( export { finalToBrowserConfig, - intermediateToFinalConfig, loadContinueConfigFromJson, type BrowserSerializedContinueConfig, }; diff --git a/core/config/yaml/loadYaml.ts b/core/config/yaml/loadYaml.ts index c5038c883..1872608a9 100644 --- a/core/config/yaml/loadYaml.ts +++ b/core/config/yaml/loadYaml.ts @@ -33,7 +33,7 @@ import FileContextProvider from "../../context/providers/FileContextProvider"; import { contextProviderClassFromName } from "../../context/providers/index"; import { ControlPlaneClient } from "../../control-plane/client"; import TransformersJsEmbeddingsProvider from "../../llm/llms/TransformersJsEmbeddingsProvider"; -import { getAllPromptFiles } from "../../promptFiles/v2/getPromptFiles"; +import { getAllPromptFiles } from "../../promptFiles/getPromptFiles"; import { GlobalContext } from "../../util/GlobalContext"; import { modifyAnyConfigWithSharedConfig } from "../sharedConfig"; diff --git a/core/core.ts b/core/core.ts index 40756bf02..13edb15b2 100644 --- a/core/core.ts +++ b/core/core.ts @@ -21,7 +21,7 @@ import { CodebaseIndexer } from "./indexing/CodebaseIndexer"; import DocsService from "./indexing/docs/DocsService"; import { countTokens } from "./llm/countTokens"; import Ollama from "./llm/llms/Ollama"; -import { createNewPromptFileV2 } from "./promptFiles/v2/createNewPromptFile"; +import { createNewPromptFileV2 } from "./promptFiles/createNewPromptFile"; import { callTool } from "./tools/callTool"; import { ChatDescriber } from "./util/chatDescriber"; import { clipboardCache } from "./util/clipboardCache"; diff --git a/core/index.d.ts b/core/index.d.ts index 65a8bf6dc..da468c56b 100644 --- a/core/index.d.ts +++ b/core/index.d.ts @@ -861,7 +861,8 @@ export type SlashCommandSource = | "config-ts-slash-command" | "yaml-prompt-block" | "mcp-prompt" - | ".prompt-file" + | "prompt-file-v1" + | "prompt-file-v2" | "invokable-rule"; export interface SlashCommandDescWithSource extends SlashCommandDescription { diff --git a/core/llm/llms/index.ts b/core/llm/llms/index.ts index a003ce0cf..8166dbdba 100644 --- a/core/llm/llms/index.ts +++ b/core/llm/llms/index.ts @@ -6,7 +6,7 @@ import { JSONModelDescription, LLMOptions, } from "../.."; -import { renderTemplatedString } from "../../promptFiles/v1/renderTemplatedString"; +import { renderTemplatedString } from "../../util/handlebars/renderTemplatedString"; import { DEFAULT_CHAT_SYSTEM_MESSAGE } from "../constructMessages"; import { BaseLLM } from "../index"; @@ -121,6 +121,7 @@ export const LLMClasses = [ export async function llmFromDescription( desc: JSONModelDescription, readFile: (filepath: string) => Promise, + getUriFromPath: (path: string) => Promise, uniqueId: string, ideSettings: IdeSettings, llmLogger: ILLMLogger, @@ -143,8 +144,10 @@ export async function llmFromDescription( baseChatSystemMessage += "\n\n"; baseChatSystemMessage += await renderTemplatedString( desc.systemMessage, - readFile, {}, + [], + readFile, + getUriFromPath, ); } diff --git a/core/promptFiles/v2/createNewPromptFile.ts b/core/promptFiles/createNewPromptFile.ts similarity index 94% rename from core/promptFiles/v2/createNewPromptFile.ts rename to core/promptFiles/createNewPromptFile.ts index 02ff786d1..d77967631 100644 --- a/core/promptFiles/v2/createNewPromptFile.ts +++ b/core/promptFiles/createNewPromptFile.ts @@ -1,6 +1,6 @@ -import { IDE } from "../.."; -import { GlobalContext } from "../../util/GlobalContext"; -import { joinPathsToUri } from "../../util/uri"; +import { IDE } from ".."; +import { GlobalContext } from "../util/GlobalContext"; +import { joinPathsToUri } from "../util/uri"; const FIRST_TIME_DEFAULT_PROMPT_FILE = `# This is an example ".prompt" file # It is used to define and reuse prompts within Continue diff --git a/core/promptFiles/v2/getPromptFiles.ts b/core/promptFiles/getPromptFiles.ts similarity index 84% rename from core/promptFiles/v2/getPromptFiles.ts rename to core/promptFiles/getPromptFiles.ts index 069fe1114..9e60fe95f 100644 --- a/core/promptFiles/v2/getPromptFiles.ts +++ b/core/promptFiles/getPromptFiles.ts @@ -1,10 +1,9 @@ -import { IDE } from "../.."; -import { walkDir } from "../../indexing/walkDir"; -import { readAllGlobalPromptFiles } from "../../util/paths"; -import { joinPathsToUri } from "../../util/uri"; -import { DEFAULT_PROMPTS_FOLDER_V1 } from "../v1"; +import { DEFAULT_PROMPTS_FOLDER_V1, DEFAULT_PROMPTS_FOLDER_V2 } from "."; +import { IDE } from ".."; +import { walkDir } from "../indexing/walkDir"; +import { readAllGlobalPromptFiles } from "../util/paths"; +import { joinPathsToUri } from "../util/uri"; -export const DEFAULT_PROMPTS_FOLDER_V2 = ".continue/prompts"; export async function getPromptFilesFromDir( ide: IDE, dir: string, diff --git a/core/promptFiles/index.ts b/core/promptFiles/index.ts new file mode 100644 index 000000000..ee5fb6b84 --- /dev/null +++ b/core/promptFiles/index.ts @@ -0,0 +1,19 @@ +import { ContextProviderName } from ".."; + +export const DEFAULT_PROMPTS_FOLDER_V1 = ".prompts"; +export const DEFAULT_PROMPTS_FOLDER_V2 = ".continue/prompts"; + +export const SUPPORTED_PROMPT_CONTEXT_PROVIDERS: ContextProviderName[] = [ + "file", + "clipboard", + "repo-map", + "currentFile", + "os", + "problems", + "codebase", + "tree", + "open", + "debugger", + "terminal", + "diff", +]; diff --git a/core/promptFiles/v2/parsePromptFileV1V2.ts b/core/promptFiles/parsePromptFile.ts similarity index 84% rename from core/promptFiles/v2/parsePromptFileV1V2.ts rename to core/promptFiles/parsePromptFile.ts index a883c5e7b..4b6cf6917 100644 --- a/core/promptFiles/v2/parsePromptFileV1V2.ts +++ b/core/promptFiles/parsePromptFile.ts @@ -1,8 +1,8 @@ import * as YAML from "yaml"; -import { getLastNPathParts } from "../../util/uri"; +import { getLastNPathParts } from "../util/uri"; -export function parsePromptFileV1V2(path: string, content: string) { +export function parsePromptFile(path: string, content: string) { let [preambleRaw, prompt] = content.split("\n---\n"); if (prompt === undefined) { prompt = preambleRaw; diff --git a/core/promptFiles/v2/renderPromptFile.vitest.ts b/core/promptFiles/renderPromptFileV2.vitest.ts similarity index 93% rename from core/promptFiles/v2/renderPromptFile.vitest.ts rename to core/promptFiles/renderPromptFileV2.vitest.ts index 1d72bc85a..6524208d4 100644 --- a/core/promptFiles/v2/renderPromptFile.vitest.ts +++ b/core/promptFiles/renderPromptFileV2.vitest.ts @@ -1,16 +1,12 @@ -import { ContextProviderExtras, ILLM, RangeInFile } from "../.."; -import { testConfigHandler, testIde } from "../../test/fixtures"; -import { - addToTestDir, - setUpTestDir, - tearDownTestDir, -} from "../../test/testDir"; -import { renderPromptFileV2 } from "./renderPromptFile"; +import { ContextProviderExtras, ILLM, RangeInFile } from ".."; +import { testConfigHandler, testIde } from "../test/fixtures"; +import { addToTestDir, setUpTestDir, tearDownTestDir } from "../test/testDir"; +import { renderPromptFileV2 } from "./renderV2"; import { afterEach, beforeEach, describe, expect, it, vi } from "vitest"; vi.mock( - import("../../context/providers/URLContextProvider"), + import("../context/providers/URLContextProvider"), async (importOriginal) => { const actual = await importOriginal(); return { diff --git a/core/promptFiles/v1/getContextProviderHelpers.ts b/core/promptFiles/v1/getContextProviderHelpers.ts deleted file mode 100644 index 30b51bf8b..000000000 --- a/core/promptFiles/v1/getContextProviderHelpers.ts +++ /dev/null @@ -1,38 +0,0 @@ -import Handlebars from "handlebars"; -import { ContextItem, ContinueSDK, IContextProvider } from "../.."; - -function createContextItem(item: ContextItem, provider: IContextProvider) { - return { - ...item, - id: { - itemId: item.description, - providerTitle: provider.description.title, - }, - }; -} - -export function getContextProviderHelpers( - context: ContinueSDK, -): Array<[string, Handlebars.HelperDelegate]> | undefined { - return context.config.contextProviders?.map((provider: IContextProvider) => [ - provider.description.title, - async (helperContext: any) => { - const items = await provider.getContextItems(helperContext, { - config: context.config, - embeddingsProvider: context.config.selectedModelByRole.embed, - fetch: context.fetch, - fullInput: context.input, - ide: context.ide, - llm: context.llm, - reranker: context.config.selectedModelByRole.rerank, - selectedCode: context.selectedCode, - }); - - items.forEach((item) => - context.addContextItem(createContextItem(item, provider)), - ); - - return items.map((item) => item.content).join("\n\n"); - }, - ]); -} diff --git a/core/promptFiles/v1/index.ts b/core/promptFiles/v1/index.ts deleted file mode 100644 index 1d6726b3e..000000000 --- a/core/promptFiles/v1/index.ts +++ /dev/null @@ -1 +0,0 @@ -export const DEFAULT_PROMPTS_FOLDER_V1 = ".prompts"; diff --git a/core/promptFiles/v1/updateChatHistory.ts b/core/promptFiles/v1/updateChatHistory.ts deleted file mode 100644 index 70b3ce1bd..000000000 --- a/core/promptFiles/v1/updateChatHistory.ts +++ /dev/null @@ -1,64 +0,0 @@ -import { ChatMessage } from "../.."; - -export function replaceSlashCommandWithPromptInChatHistory( - history: ChatMessage[], - commandName: string, - renderedPrompt: string, - systemMessageOverride?: string, -): ChatMessage[] { - const messages = [...history]; - - for (let i = messages.length - 1; i >= 0; i--) { - const { role, content } = messages[i]; - if (role !== "user") { - continue; - } - - if (Array.isArray(content)) { - if ( - content.some( - (part) => - part.type === "text" && part.text?.startsWith(`/${commandName}`), - ) - ) { - messages[i] = updateArrayContent( - messages[i], - commandName, - renderedPrompt, - ); - break; - } - } else if ( - typeof content === "string" && - content.startsWith(`/${commandName}`) - ) { - messages[i] = { ...messages[i], content: renderedPrompt }; - break; - } - } - - if (systemMessageOverride) { - if (messages[0]?.role === "system") { - messages[0].content = systemMessageOverride; - } else { - messages.unshift({ role: "system", content: systemMessageOverride }); - } - } - - return messages; -} - -function updateArrayContent( - message: any, - commandName: string, - renderedPrompt: string, -) { - return { - ...message, - content: message.content.map((part: any) => - part.text?.startsWith(`/${commandName}`) - ? { ...part, text: renderedPrompt } - : part, - ), - }; -} diff --git a/core/promptFiles/v2/parse.ts b/core/promptFiles/v2/parse.ts deleted file mode 100644 index ec543cbdc..000000000 --- a/core/promptFiles/v2/parse.ts +++ /dev/null @@ -1,34 +0,0 @@ -import * as YAML from "yaml"; - -import { getLastNPathParts } from "../../util/uri"; - -export function extractName(preamble: { name?: string }, path: string): string { - return preamble.name ?? getLastNPathParts(path, 1).split(".prompt")[0]; -} - -export function getPreambleAndBody(content: string): [string, string] { - let [preamble, body] = content.split("\n---\n"); - if (body === undefined) { - // This means there is no preamble - body = preamble; - preamble = ""; - } - return [preamble, body]; -} - -export function parsePreamble( - path: string, - content: string, -): { [key: string]: any; name: string; description: string } { - const [preambleRaw, _] = getPreambleAndBody(content); - - const preamble = YAML.parse(preambleRaw) ?? {}; - const name = extractName(preamble, path); - const description = preamble.description ?? name; - - return { - ...preamble, - name, - description, - }; -} diff --git a/core/promptFiles/v2/renderPromptFile.ts b/core/promptFiles/v2/renderPromptFile.ts deleted file mode 100644 index 4d1330eb3..000000000 --- a/core/promptFiles/v2/renderPromptFile.ts +++ /dev/null @@ -1,84 +0,0 @@ -import { ContextItem, ContextProviderExtras } from "../.."; -import { contextProviderClassFromName } from "../../context/providers"; -import { getUrlContextItems } from "../../context/providers/URLContextProvider"; -import { resolveRelativePathInDir } from "../../util/ideUtils"; -import { getUriPathBasename } from "../../util/uri"; - -import { getPreambleAndBody } from "./parse"; - -async function resolveAttachment( - name: string, - extras: ContextProviderExtras, -): Promise { - // Context providers - const contextProvider = extras.config.contextProviders?.find( - (provider) => provider.description.title === name, - ); - if (contextProvider) { - const items = await contextProvider.getContextItems("", extras); - return items; - } else { - // Just instantiate it here - const providerClass = contextProviderClassFromName(name) as any; - if (providerClass) { - const providerInstance = new providerClass({}); - return providerInstance.getContextItems("", extras); - } - } - - // Files - const resolvedFileUri = await resolveRelativePathInDir(name, extras.ide); - if (resolvedFileUri) { - let subItems: ContextItem[] = []; - if (name.endsWith(".prompt")) { - // Recurse - const [items, _] = await renderPromptFileV2( - await extras.ide.readFile(resolvedFileUri), - extras, - ); - subItems.push(...items); - } - - const content = `\`\`\`${name}\n${await extras.ide.readFile(resolvedFileUri)}\n\`\`\``; - return [ - ...subItems, - { - name: getUriPathBasename(resolvedFileUri), - content, - description: resolvedFileUri, - }, - ]; - } - - // URLs - if (name.startsWith("http")) { - const items = getUrlContextItems(name, extras.fetch); - return items; - } - - return []; -} - -export async function renderPromptFileV2( - rawContent: string, - extras: ContextProviderExtras, -): Promise<[ContextItem[], string]> { - const [_, body] = getPreambleAndBody(rawContent); - - const contextItemsPromises: Promise[] = []; - const renderedBody = body.replace(/@([^\s]+)/g, (match, name) => { - contextItemsPromises.push(resolveAttachment(name, extras)); - return match; - }); - - const contextItems = (await Promise.all(contextItemsPromises)).flat(); - const renderedPrompt = [ - ...contextItems.map((item) => item.content), - renderedBody, - extras.fullInput, - ] - .join("\n\n") - .trim(); - - return [contextItems, renderedPrompt]; -} diff --git a/core/tsconfig.json b/core/tsconfig.json index 69966e2de..20ea4baf2 100644 --- a/core/tsconfig.json +++ b/core/tsconfig.json @@ -18,6 +18,11 @@ "noEmitOnError": false, "types": ["jest", "node"] }, - "include": ["./**/*.ts", "./**/*.js", "./**/*.d.ts"], + "include": [ + "./**/*.ts", + "./**/*.js", + "./**/*.d.ts", + "../gui/src/components/mainInput/TipTapEditor/utils/renderPromptv2.ts" + ], "exclude": ["dist"] } diff --git a/core/promptFiles/v1/handlebarUtils.ts b/core/util/handlebars/handlebarUtils.ts similarity index 54% rename from core/promptFiles/v1/handlebarUtils.ts rename to core/util/handlebars/handlebarUtils.ts index ffb719590..1c1d01316 100644 --- a/core/promptFiles/v1/handlebarUtils.ts +++ b/core/util/handlebars/handlebarUtils.ts @@ -11,45 +11,6 @@ function convertToLetter(num: number): string { return result; } -/** - * We replace filepaths with alphabetic characters to handle - * escaping issues. - */ -const replaceFilepaths = ( - value: string, - ctxProviderNames: string[], -): [string, { [key: string]: string }] => { - const ast = Handlebars.parse(value); - - const keysToFilepath: { [key: string]: string } = {}; - - let keyIndex = 1; - - for (const i in ast.body) { - const node = ast.body[i] as any; - - if (node.type === "MustacheStatement") { - const originalNodeVal = node.path.original; - const isFilepath = !ctxProviderNames.includes(originalNodeVal); - - if (isFilepath) { - const letter = convertToLetter(keyIndex); - - keysToFilepath[letter] = originalNodeVal; - - value = value.replace( - new RegExp(`{{\\s*${originalNodeVal}\\s*}}`), - `{{${letter}}}`, - ); - - keyIndex++; - } - } - } - - return [value, keysToFilepath]; -}; - export function registerHelpers( helpers: Array<[string, Handlebars.HelperDelegate]>, ): { @@ -68,39 +29,66 @@ export function registerHelpers( return promises; } -export async function prepareTemplateAndData( +export async function prepareTemplatedFilepaths( template: string, - readFile: (filepath: string) => Promise, inputData: Record, ctxProviderNames: string[], -): Promise<[string, any]> { - const [newTemplate, vars] = replaceFilepaths(template, ctxProviderNames); + readFile: (filepath: string) => Promise, + getUriFromPath: (path: string) => Promise, +) { + // First, replace filepaths with letters to avoid escaping issues + const ast = Handlebars.parse(template); - const data: any = { ...inputData }; + const filepathLetters: Map = new Map(); + const requiredContextProviders: Set = new Set(); + let withLetterKeys = template; - for (const [replacedName, originalCtxProviderName] of Object.entries(vars)) { - data[replacedName] = - inputData[originalCtxProviderName] ?? originalCtxProviderName; + let letterIndex = 1; - // If it's not a context provider, assume it's a filepath. - if (!ctxProviderNames.includes(originalCtxProviderName)) { - const fileContents = await readFile(vars[replacedName]); + for (const i in ast.body) { + const node = ast.body[i] as any; - if (fileContents) { - data[replacedName] = fileContents; + if (node.type === "MustacheStatement") { + const originalNodeVal = node.path.original; + const isFilepath = !ctxProviderNames.includes(originalNodeVal); + + if (isFilepath) { + const letter = convertToLetter(letterIndex); + + filepathLetters.set(letter, originalNodeVal); + + withLetterKeys = withLetterKeys.replace( + new RegExp(`{{\\s*${originalNodeVal}\\s*}}`), + `{{${letter}}}`, + ); + + letterIndex++; + } else { + requiredContextProviders.add(originalNodeVal); } } } - return [newTemplate, data]; -} + // Then, resolve the filepaths to their actual content and add to template data + // Fallback to simple error string if file read fails + const templateData = { ...inputData }; -export function compileAndRenderTemplate( - template: string, - data: Record, -): string { - const templateFn = Handlebars.compile(template); - return templateFn(data); + for (const [letter, filepath] of filepathLetters.entries()) { + try { + const uri = await getUriFromPath(filepath); + if (uri) { + const fileContents = await readFile(uri); + templateData[letter] = fileContents; + } else { + throw new Error(`File not found: ${filepath}`); + } + } catch (e) { + console.error(`Error reading file in prompt file ${filepath}:`, e); + templateData[letter] = `[Error reading file ${filepath}]`; + } + } + + return { withLetterKeys, templateData, requiredContextProviders }; } export async function resolveHelperPromises( diff --git a/core/promptFiles/v1/renderTemplatedString.ts b/core/util/handlebars/renderTemplatedString.ts similarity index 60% rename from core/promptFiles/v1/renderTemplatedString.ts rename to core/util/handlebars/renderTemplatedString.ts index bcc645ace..93eb59e78 100644 --- a/core/promptFiles/v1/renderTemplatedString.ts +++ b/core/util/handlebars/renderTemplatedString.ts @@ -1,15 +1,15 @@ import { - compileAndRenderTemplate, - prepareTemplateAndData, + prepareTemplatedFilepaths, registerHelpers, resolveHelperPromises, } from "./handlebarUtils"; export async function renderTemplatedString( template: string, - readFile: (filepath: string) => Promise, inputData: Record, - availableHelpers?: Array<[string, Handlebars.HelperDelegate]>, + availableHelpers: Array<[string, Handlebars.HelperDelegate]>, + readFile: (filepath: string) => Promise, + getUriFromPath: (path: string) => Promise, ): Promise { const helperPromises = availableHelpers ? registerHelpers(availableHelpers) @@ -17,14 +17,16 @@ export async function renderTemplatedString( const ctxProviderNames = availableHelpers?.map((h) => h[0]) ?? []; - const [newTemplate, data] = await prepareTemplateAndData( + const { withLetterKeys, templateData } = await prepareTemplatedFilepaths( template, - readFile, inputData, ctxProviderNames, + readFile, + getUriFromPath, ); - let renderedString = compileAndRenderTemplate(newTemplate, data); + const templateFn = Handlebars.compile(withLetterKeys); + const renderedString = templateFn(templateData); return resolveHelperPromises(renderedString, helperPromises); } diff --git a/gui/src/components/mainInput/TipTapEditor/utils/renderPromptv1.ts b/gui/src/components/mainInput/TipTapEditor/utils/renderPromptv1.ts new file mode 100644 index 000000000..3462d025a --- /dev/null +++ b/gui/src/components/mainInput/TipTapEditor/utils/renderPromptv1.ts @@ -0,0 +1,49 @@ +import { + ContextProviderName, + RangeInFile, + SlashCommandDescWithSource, +} from "core"; +import { SUPPORTED_PROMPT_CONTEXT_PROVIDERS } from "core/promptFiles"; +import { renderTemplatedString } from "core/util/handlebars/renderTemplatedString"; +import { resolveRelativePathInDir } from "core/util/ideUtils"; +import { IIdeMessenger } from "../../../../context/IdeMessenger"; + +export async function getRenderedV1Prompt( + ideMessenger: IIdeMessenger, + command: SlashCommandDescWithSource, + userInput: string, + selectedCode: RangeInFile[], +): Promise { + if (!command.prompt) { + return ""; + } + const handleBarHelpers = SUPPORTED_PROMPT_CONTEXT_PROVIDERS.map( + (name: ContextProviderName): [string, Handlebars.HelperDelegate] => [ + name, + async (helperContext: any) => { + const response = await ideMessenger.request("context/getContextItems", { + fullInput: userInput, + name, + query: "", + selectedCode, + }); + if (response.status === "success") { + return response.content.join("\n\n"); + } else { + throw new Error(`Failed to get context items from provider: ${name}`); + } + }, + ], + ); + const workspaceDirs = await ideMessenger.ide.getWorkspaceDirs(); + const getUriFromPath = (path: string) => { + return resolveRelativePathInDir(path, ideMessenger.ide, workspaceDirs); + }; + return await renderTemplatedString( + command.prompt, + { input: userInput }, + handleBarHelpers, + ideMessenger.ide.readFile.bind(ideMessenger.ide), + getUriFromPath, + ); +} diff --git a/gui/src/components/mainInput/TipTapEditor/utils/renderPromptv2.ts b/gui/src/components/mainInput/TipTapEditor/utils/renderPromptv2.ts new file mode 100644 index 000000000..752305a22 --- /dev/null +++ b/gui/src/components/mainInput/TipTapEditor/utils/renderPromptv2.ts @@ -0,0 +1,71 @@ +import { SlashCommandDescWithSource } from "core"; +import { SUPPORTED_PROMPT_CONTEXT_PROVIDERS } from "core/promptFiles"; +import { resolveRelativePathInDir } from "core/util/ideUtils"; +import { IIdeMessenger } from "../../../../context/IdeMessenger"; +import { MentionAttrs } from "./types"; + +export async function getPromptV2ContextAttrs( + ideMessenger: IIdeMessenger, + command: SlashCommandDescWithSource, +): Promise { + if (!command.prompt) { + return []; + } + const workspaceDirs = await ideMessenger.ide.getWorkspaceDirs(); + const visitedFiles = new Set(); + if (command.promptFile) { + visitedFiles.add(command.promptFile); + } + + const contextItemAttrs: MentionAttrs[] = []; + const addItem = (item: MentionAttrs) => { + contextItemAttrs.push(item); + }; + + async function addContextAttrsRecursive(promptBody: string) { + // Files + for (const match of promptBody.matchAll(/@([^\s]+)/g)) { + const name = match[0]; + const resolvedFileUri = await resolveRelativePathInDir( + match[0], + ideMessenger.ide, + workspaceDirs, + ); + if (resolvedFileUri) { + const contents = await ideMessenger.ide.readFile(resolvedFileUri); + if (name.endsWith(".prompt")) { + if (visitedFiles.has(resolvedFileUri)) { + return []; + } + visitedFiles.add(resolvedFileUri); + await addContextAttrsRecursive(contents); + } + return addItem({ + label: name, + id: "file", + itemType: "contextProvider", + query: resolvedFileUri, + }); + } + // URLs + if (name.startsWith("http")) { + return addItem({ + label: name, + id: "url", + itemType: "contextProvider", + query: name, + }); + } + if (SUPPORTED_PROMPT_CONTEXT_PROVIDERS.includes(name)) { + return addItem({ + label: name, + id: name, + itemType: "contextProvider", + query: "", + }); + } + } + } + await addContextAttrsRecursive(command.prompt); + return contextItemAttrs; +} diff --git a/gui/src/components/mainInput/TipTapEditor/utils/resolveEditorContent.ts b/gui/src/components/mainInput/TipTapEditor/utils/resolveEditorContent.ts index 59587eb4a..0ab7dee5f 100644 --- a/gui/src/components/mainInput/TipTapEditor/utils/resolveEditorContent.ts +++ b/gui/src/components/mainInput/TipTapEditor/utils/resolveEditorContent.ts @@ -14,20 +14,14 @@ import { TextMessagePart, } from "core"; import { ctxItemToRifWithContents } from "core/commands/util"; -import { renderTemplatedString } from "core/promptFiles/v1/renderTemplatedString"; -import { parsePromptFileV1V2 } from "core/promptFiles/v2/parsePromptFileV1V2"; -import { renderChatMessage, stripImages } from "core/util/messageContent"; +import { stripImages } from "core/util/messageContent"; import { getUriFileExtension } from "core/util/uri"; import { IIdeMessenger } from "../../../../context/IdeMessenger"; import { setIsGatheringContext } from "../../../../redux/slices/sessionSlice"; import { CodeBlock, Mention, PromptBlock } from "../extensions"; - -interface MentionAttrs { - label: string; - id: string; - itemType?: string; - query?: string; -} +import { getRenderedV1Prompt } from "./renderPromptv1"; +import { getPromptV2ContextAttrs } from "./renderPromptv2"; +import { MentionAttrs } from "./types"; interface ResolveEditorContentInput { editorState: JSONContent; @@ -70,20 +64,25 @@ export async function resolveEditorContent({ } = processEditorContent(editorState); const { - parts: slashParts, + slashedParts, + contextAttrs: slashContextAttrs, legacyCommandWithInput, - contextAttrs: slashContextAttrs = [], - } = (await renderSlashCommandPrompt( + } = await renderSlashCommandPrompt( ideMessenger, slashCommandName, - availableSlashCommands, parts, - )) ?? {}; + availableSlashCommands, + selectedCode, + ); const contextItemAttrs = [...editorContextAttrs, ...slashContextAttrs]; const shouldGatherContext = - modifiers.useCodebase || contextItemAttrs.length > 0; + defaultContextProviders.length > 0 || + modifiers.useCodebase || + !modifiers.noContext || + contextItemAttrs.length > 0; + if (shouldGatherContext) { dispatch(setIsGatheringContext(true)); } @@ -93,7 +92,7 @@ export async function resolveEditorContent({ modifiers, ideMessenger, defaultContextProviders, - parts: slashParts ?? parts, + parts: slashedParts, selectedCode, }); @@ -104,7 +103,7 @@ export async function resolveEditorContent({ return { selectedContextItems, selectedCode, - content: slashParts ?? parts, + content: slashedParts, legacyCommandWithInput, }; } @@ -196,43 +195,42 @@ function processEditorContent(editorState: JSONContent) { return { parts, contextItemAttrs, selectedCode, slashCommandName }; } + /** * Processes slash commands and prepares the command with input */ async function renderSlashCommandPrompt( ideMessenger: IIdeMessenger, - slashCommandName: string | undefined, - availableSlashCommands: SlashCommandDescWithSource[], + commandName: string | undefined, parts: MessagePart[], -): Promise< - | { - slashedParts: MessagePart[]; - legacyCommandWithInput?: { - command: SlashCommandDescWithSource; - input: string; - }; - contextAttrs: MentionAttrs[]; - } - | undefined -> { - if (!slashCommandName) return; - - const command = availableSlashCommands.find( - (c) => c.name === slashCommandName, - ); - - if (!command) return; + availableSlashCommands: SlashCommandDescWithSource[], + selectedCode: RangeInFile[], +): Promise<{ + slashedParts: MessagePart[]; + legacyCommandWithInput?: { + command: SlashCommandDescWithSource; + input: string; + }; + contextAttrs: MentionAttrs[]; +}> { + const NO_COMMAND = { + slashedParts: parts, + legacyCommandWithInput: undefined, + contextAttrs: [], + }; + if (!commandName) { + return NO_COMMAND; + } + const command = availableSlashCommands.find((c) => c.name === commandName); + if (!command) { + return NO_COMMAND; + } const nonTextParts = parts.filter((part) => part.type !== "text"); const slashedParts: MessagePart[] = [...nonTextParts]; const textParts = parts.filter((part) => part.type === "text"); - const userInput = textParts.length - ? renderChatMessage({ - role: "user", - content: textParts, - }).trimStart() - : ""; + const userInput = stripImages(textParts).trimStart(); const legacyCommandWithInput = command.isLegacy ? { @@ -241,7 +239,7 @@ async function renderSlashCommandPrompt( } : undefined; - const contextItemAttrs: MentionAttrs[] = []; + const contextAttrs: MentionAttrs[] = []; switch (command.source) { case "built-in-legacy": @@ -275,68 +273,53 @@ async function renderSlashCommandPrompt( }); } else { throw new Error( - `Failed to get MCP prompt for slash command ${slashCommandName}`, + `Failed to get MCP prompt for slash command ${command.name}`, ); } break; - case ".prompt-file": - if (!command.promptFile || !command.prompt) { + case "prompt-file-v1": + case "prompt-file-v2": + if (!command.promptFile) { + throw new Error( + `Invalid prompt file from slash command ${command.name}`, + ); + } + case "yaml-prompt-block": + if (!command.prompt) { throw new Error( `Invalid/empty prompt from slash command ${command.name}`, ); } - const { name, description, systemMessage, prompt } = parsePromptFileV1V2( - command.promptFile, - command.prompt, - ); - case "yaml-prompt-block": - const [_, renderedPrompt] = await renderPromptFileV2(prompt, { - config: context.config, - fullInput: context.input, - embeddingsProvider: context.config.modelsByRole.embed[0], - reranker: context.config.modelsByRole.rerank[0], - llm: context.llm, - ide: context.ide, - selectedCode: context.selectedCode, - fetch: context.fetch, - }); - - // Render prompt template let renderedPrompt: string; - if (customCommand.prompt.includes("{{{ input }}}")) { - renderedPrompt = await renderTemplatedString( - customCommand.prompt, - ide.readFile.bind(ide), - { input }, + if ( + command.source === "prompt-file-v1" || + command.prompt.includes("{{{ input }}}") + ) { + renderedPrompt = await getRenderedV1Prompt( + ideMessenger, + command, + userInput, + selectedCode, ); } else { - const renderedPromptFile = await renderPromptFileV2( - customCommand.prompt, - { - config, - llm, - ide, - selectedCode, - fetch, - fullInput: input, - embeddingsProvider: config.selectedModelByRole.embed, - reranker: config.selectedModelByRole.rerank, - }, + const promptFileContextAttrs = await getPromptV2ContextAttrs( + ideMessenger, + command, ); - - renderedPrompt = renderedPromptFile[1]; + contextAttrs.push(...promptFileContextAttrs); + renderedPrompt = [command.prompt, userInput].join("\n\n"); } - const renderedPrompt = renderPromptFile(); + // const renderedPrompt = renderPromptFile(); slashedParts.push({ type: "text", - text: renderedPrompt, // Includes user input + text: renderedPrompt.trim(), // Includes user input }); case "built-in": case "invokable-rule": case "json-custom-command": if (!command.prompt) { - throw new Error(`Slash command ${slashCommandName} is missing prompt`); + throw new Error(`Slash command ${command.name} is missing prompt`); } slashedParts.push({ type: "text", @@ -346,7 +329,7 @@ async function renderSlashCommandPrompt( return { slashedParts, legacyCommandWithInput, - contextAttrs: [], + contextAttrs, }; } @@ -384,7 +367,10 @@ async function gatherContextItems({ } // cmd+enter to use codebase - if (modifiers.useCodebase) { + if ( + modifiers.useCodebase && + !contextItemAttrs.some((item) => item.id === "codebase") + ) { const result = await ideMessenger.request("context/getContextItems", { name: "codebase", query: "", @@ -397,6 +383,32 @@ async function gatherContextItems({ } } + // noContext modifier adds currently open file if it's not already present + if ( + !modifiers.noContext && + !contextItemAttrs.some((item) => item.id === "currentFile") + ) { + const currentFileResponse = await ideMessenger.request( + "context/getContextItems", + { + name: "currentFile", + query: "non-mention-usage", + fullInput: "", + selectedCode: [], + }, + ); + if (currentFileResponse.status === "success") { + const currentFile = currentFileResponse.content[0]; + if (currentFile.uri?.value) { + currentFile.id = { + providerTitle: "file", + itemId: currentFile.uri.value, + }; + contextItems.unshift(currentFile); + } + } + } + // Include default context providers const defaultContextItems = await Promise.all( defaultContextProviders.map(async (provider) => { @@ -418,18 +430,6 @@ async function gatherContextItems({ return contextItems; } -function findLastIndex( - array: T[], - predicate: (value: T, index: number, obj: T[]) => boolean, -): number { - for (let i = array.length - 1; i >= 0; i--) { - if (predicate(array[i], i, array)) { - return i; - } - } - return -1; // if no element satisfies the predicate -} - function resvolePromptBlock(p: JSONContent): string | undefined { return p.attrs?.item.name; } diff --git a/gui/src/components/mainInput/TipTapEditor/utils/types.ts b/gui/src/components/mainInput/TipTapEditor/utils/types.ts new file mode 100644 index 000000000..6a0be1c55 --- /dev/null +++ b/gui/src/components/mainInput/TipTapEditor/utils/types.ts @@ -0,0 +1,6 @@ +export interface MentionAttrs { + label: string; + id: string; + itemType?: string; + query?: string; +} diff --git a/gui/src/redux/thunks/gatherContext.ts b/gui/src/redux/thunks/gatherContext.ts deleted file mode 100644 index 5068124e0..000000000 --- a/gui/src/redux/thunks/gatherContext.ts +++ /dev/null @@ -1,116 +0,0 @@ -import { createAsyncThunk } from "@reduxjs/toolkit"; -import { JSONContent } from "@tiptap/core"; -import { - ContextItemWithId, - InputModifiers, - MessageContent, - RangeInFile, - SlashCommandDescWithSource, -} from "core"; -import * as URI from "uri-js"; -import { resolveEditorContent } from "../../components/mainInput/TipTapEditor"; -import { selectSelectedChatModel } from "../slices/configSlice"; -import { ThunkApiType } from "../store"; - -export const gatherContext = createAsyncThunk< - { - selectedContextItems: ContextItemWithId[]; - selectedCode: RangeInFile[]; - content: MessageContent; - legacyCommandWithInput: - | { - command: SlashCommandDescWithSource; - input: string; - } - | undefined; - }, - { - editorState: JSONContent; - modifiers: InputModifiers; - }, - ThunkApiType ->( - "chat/gatherContext", - async ({ modifiers, editorState }, { dispatch, extra, getState }) => { - const state = getState(); - const selectedChatModel = selectSelectedChatModel(state); - - const defaultContextProviders = - state.config.config.experimental?.defaultContext ?? []; - - if (!selectedChatModel) { - console.error( - "gatherContext thunk: Cannot gather context, no model selected", - ); - throw new Error("No chat model selected"); - } - - // Resolve context providers and construct new history - const { - selectedContextItems, - selectedCode, - content, - legacyCommandWithInput, - } = await resolveEditorContent({ - editorState, - modifiers, - ideMessenger: extra.ideMessenger, - defaultContextProviders, - availableSlashCommands: state.config.config.slashCommands, - dispatch, - }); - - // Automatically use currently open file - if (!modifiers.noContext) { - const usingFreeTrial = false; // TODO no longer tracking free trial count, need to hook up to hub - - const currentFileResponse = await extra.ideMessenger.request( - "context/getContextItems", - { - name: "currentFile", - query: "non-mention-usage", - fullInput: "", - selectedCode: [], - }, - ); - if (currentFileResponse.status === "success") { - const items = currentFileResponse.content; - if (items.length > 0) { - const currentFile = items[0]; - const uri = currentFile.uri?.value; - - // don't add the file if it's already in the context items - if ( - uri && - !selectedContextItems.find( - (item) => item.uri?.value && URI.equal(item.uri.value, uri), - ) - ) { - // Limit to 1000 lines if using free trial - if (usingFreeTrial) { - currentFile.content = currentFile.content - .split("\n") - .slice(0, 1000) - .join("\n"); - if (!currentFile.content.endsWith("```")) { - currentFile.content += "\n```"; - } - } - currentFile.id = { - providerTitle: "file", - itemId: uri, - }; - selectedContextItems.unshift(currentFile); - } - } - } - } - - return { - selectedContextItems, - selectedCode, - content, - legacyCommandWithInput, - }; - }, -); diff --git a/gui/src/redux/thunks/streamResponse.ts b/gui/src/redux/thunks/streamResponse.ts index 2e1c0c2bb..5dc031e56 100644 --- a/gui/src/redux/thunks/streamResponse.ts +++ b/gui/src/redux/thunks/streamResponse.ts @@ -5,6 +5,7 @@ import { constructMessages } from "core/llm/constructMessages"; import { getApplicableRules } from "core/llm/rules/getSystemMessageWithRules"; import posthog from "posthog-js"; import { v4 as uuidv4 } from "uuid"; +import { resolveEditorContent } from "../../components/mainInput/TipTapEditor/utils/resolveEditorContent"; import { getBaseSystemMessage } from "../../util"; import { selectSelectedChatModel } from "../slices/configSlice"; import { @@ -13,7 +14,6 @@ import { updateHistoryItemAtIndex, } from "../slices/sessionSlice"; import { ThunkApiType } from "../store"; -import { gatherContext } from "./gatherContext"; import { resetStateForNewMessage } from "./resetStateForNewMessage"; import { streamNormalInput } from "./streamNormalInput"; import { streamThunkWrapper } from "./streamThunkWrapper"; @@ -45,18 +45,30 @@ export const streamResponseThunk = createAsyncThunk< ); resetStateForNewMessage(); - const result = await dispatch( - gatherContext({ - editorState, - modifiers, - }), - ); + const defaultContextProviders = + state.config.config.experimental?.defaultContext ?? []; + + if (!selectedChatModel) { + console.error( + "gatherContext thunk: Cannot gather context, no model selected", + ); + throw new Error("No chat model selected"); + } + + // Resolve context providers and construct new history const { selectedContextItems, selectedCode, content, legacyCommandWithInput, - } = unwrapResult(result); + } = await resolveEditorContent({ + editorState, + modifiers, + ideMessenger: extra.ideMessenger, + defaultContextProviders, + availableSlashCommands: state.config.config.slashCommands, + dispatch, + }); // symbols for both context items AND selected codeblocks const filesForSymbols = [ From acde0b18fb18794a9305d99859c202b1eb5b82e0 Mon Sep 17 00:00:00 2001 From: Dallin Romney Date: Mon, 23 Jun 2025 18:29:41 -0700 Subject: [PATCH 49/91] unify prompt file to slash command conversion --- core/commands/slash/promptFileSlashCommand.ts | 7 +- core/config/load.ts | 4 +- core/config/yaml/loadYaml.ts | 4 +- core/index.d.ts | 1 + core/llm/llms/index.ts | 3 +- core/promptFiles/renderPromptFileV2.vitest.ts | 171 ------------------ core/tsconfig.json | 3 +- core/util/handlebars/handlebarUtils.ts | 9 +- core/util/handlebars/renderTemplatedString.ts | 7 +- extensions/vscode/package-lock.json | 4 +- gui/package-lock.json | 65 +++++++ gui/package.json | 1 + .../TipTapEditor/utils/renderPromptv1.ts | 2 + .../TipTapEditor/utils/renderPromptv2.test.ts | 129 +++++++++++++ .../TipTapEditor/utils/renderPromptv2.ts | 29 ++- .../utils/resolveEditorContent.ts | 113 ++++++------ .../mainInput/TipTapEditor/utils/types.ts | 6 +- 17 files changed, 295 insertions(+), 263 deletions(-) delete mode 100644 core/promptFiles/renderPromptFileV2.vitest.ts create mode 100644 gui/src/components/mainInput/TipTapEditor/utils/renderPromptv2.test.ts diff --git a/core/commands/slash/promptFileSlashCommand.ts b/core/commands/slash/promptFileSlashCommand.ts index 3fe8298c3..e076086c0 100644 --- a/core/commands/slash/promptFileSlashCommand.ts +++ b/core/commands/slash/promptFileSlashCommand.ts @@ -1,11 +1,11 @@ import { SlashCommandWithSource } from "../.."; import { parsePromptFile } from "../../promptFiles/parsePromptFile"; -export function slashCommandFromPromptFileV1( +export function slashCommandFromPromptFile( path: string, content: string, ): SlashCommandWithSource | null { - const { name, description, systemMessage, prompt } = parsePromptFile( + const { name, description, systemMessage, prompt, version } = parsePromptFile( path, content, ); @@ -14,7 +14,8 @@ export function slashCommandFromPromptFileV1( name, description, prompt, - source: "prompt-file-v1", + source: version === 1 ? "prompt-file-v1" : "prompt-file-v2", promptFile: path, + overrideSystemMessage: systemMessage, }; } diff --git a/core/config/load.ts b/core/config/load.ts index ff0bc5f50..6bc3eedad 100644 --- a/core/config/load.ts +++ b/core/config/load.ts @@ -34,7 +34,7 @@ import { } from ".."; import { getLegacyBuiltInSlashCommandFromDescription } from "../commands/slash/built-in-legacy"; import { convertCustomCommandToSlashCommand } from "../commands/slash/customSlashCommand"; -import { slashCommandFromPromptFileV1 } from "../commands/slash/promptFileSlashCommand"; +import { slashCommandFromPromptFile } from "../commands/slash/promptFileSlashCommand"; import { MCPManagerSingleton } from "../context/mcp/MCPManagerSingleton"; import CodebaseContextProvider from "../context/providers/CodebaseContextProvider"; import ContinueProxyContextProvider from "../context/providers/ContinueProxyContextProvider"; @@ -193,7 +193,7 @@ async function serializedToIntermediateConfig( ); for (const file of promptFiles) { - const slashCommand = slashCommandFromPromptFileV1(file.path, file.content); + const slashCommand = slashCommandFromPromptFile(file.path, file.content); if (slashCommand) { slashCommands.push(slashCommand); } diff --git a/core/config/yaml/loadYaml.ts b/core/config/yaml/loadYaml.ts index 1872608a9..56dd7bddb 100644 --- a/core/config/yaml/loadYaml.ts +++ b/core/config/yaml/loadYaml.ts @@ -25,7 +25,6 @@ import { ILLMLogger, RuleWithSource, } from "../.."; -import { slashCommandFromPromptFileV1 } from "../../commands/slash/promptFileSlashCommand"; import { MCPManagerSingleton } from "../../context/mcp/MCPManagerSingleton"; import CodebaseContextProvider from "../../context/providers/CodebaseContextProvider"; import DocsContextProvider from "../../context/providers/DocsContextProvider"; @@ -38,6 +37,7 @@ import { GlobalContext } from "../../util/GlobalContext"; import { modifyAnyConfigWithSharedConfig } from "../sharedConfig"; import { convertPromptBlockToSlashCommand } from "../../commands/slash/promptBlockSlashCommand"; +import { slashCommandFromPromptFile } from "../../commands/slash/promptFileSlashCommand"; import { getControlPlaneEnvSync } from "../../control-plane/env"; import { baseToolDefinitions } from "../../tools"; import { getCleanUriPath } from "../../util/uri"; @@ -263,7 +263,7 @@ async function configYamlToContinueConfig(options: { promptFiles.forEach((file) => { try { - const slashCommand = slashCommandFromPromptFileV1( + const slashCommand = slashCommandFromPromptFile( file.path, file.content, ); diff --git a/core/index.d.ts b/core/index.d.ts index da468c56b..b0ffb8196 100644 --- a/core/index.d.ts +++ b/core/index.d.ts @@ -852,6 +852,7 @@ export interface SlashCommandWithSource extends SlashCommandDescription { run?: (sdk: ContinueSDK) => AsyncGenerator; // Optional - only needed for legacy source: SlashCommandSource; promptFile?: string; + overrideSystemMessage?: string; } export type SlashCommandSource = diff --git a/core/llm/llms/index.ts b/core/llm/llms/index.ts index 8166dbdba..74c58e9da 100644 --- a/core/llm/llms/index.ts +++ b/core/llm/llms/index.ts @@ -1,3 +1,4 @@ +import Handlebars from "handlebars"; import { BaseCompletionOptions, IdeSettings, @@ -9,7 +10,6 @@ import { import { renderTemplatedString } from "../../util/handlebars/renderTemplatedString"; import { DEFAULT_CHAT_SYSTEM_MESSAGE } from "../constructMessages"; import { BaseLLM } from "../index"; - import Anthropic from "./Anthropic"; import Asksage from "./Asksage"; import Azure from "./Azure"; @@ -143,6 +143,7 @@ export async function llmFromDescription( baseChatSystemMessage = DEFAULT_CHAT_SYSTEM_MESSAGE; baseChatSystemMessage += "\n\n"; baseChatSystemMessage += await renderTemplatedString( + Handlebars, desc.systemMessage, {}, [], diff --git a/core/promptFiles/renderPromptFileV2.vitest.ts b/core/promptFiles/renderPromptFileV2.vitest.ts deleted file mode 100644 index 6524208d4..000000000 --- a/core/promptFiles/renderPromptFileV2.vitest.ts +++ /dev/null @@ -1,171 +0,0 @@ -import { ContextProviderExtras, ILLM, RangeInFile } from ".."; -import { testConfigHandler, testIde } from "../test/fixtures"; -import { addToTestDir, setUpTestDir, tearDownTestDir } from "../test/testDir"; -import { renderPromptFileV2 } from "./renderV2"; - -import { afterEach, beforeEach, describe, expect, it, vi } from "vitest"; - -vi.mock( - import("../context/providers/URLContextProvider"), - async (importOriginal) => { - const actual = await importOriginal(); - return { - ...actual, - getUrlContextItems: vi.fn().mockResolvedValue([ - { - description: "https://example.com", - content: "Example Content", - name: "Example site", - uri: { - type: "url", - value: "https://example.com", - }, - }, - ]), - }; - }, -); - -describe("renderPromptFileV2", () => { - let extras: ContextProviderExtras; - const mockGetContextItems = vi.fn().mockResolvedValue([ - { - name: "custom", - content: "Custom provider content", - description: "Custom provider", - }, - ]); - beforeEach(async () => { - const { config } = await testConfigHandler.loadConfig(); - - // Setup mock extras - extras = { - config: { - ...config!, - contextProviders: [ - { - description: { - type: "normal", - title: "CustomProvider", - displayTitle: "Custom Provider", - description: "A custom context provider", - }, - loadSubmenuItems: vi.fn().mockResolvedValue([]), - getContextItems: mockGetContextItems, - }, - ], - }, - fullInput: "User input", - embeddingsProvider: null, - reranker: null, - llm: {} as ILLM, - ide: testIde, - selectedCode: [] as RangeInFile[], - fetch: vi.fn(), - }; - - // Clear all mocks - vi.clearAllMocks(); - setUpTestDir(); - }); - - afterEach(() => { - tearDownTestDir(); - }); - - it("should render a prompt file with no attachments", async () => { - const rawContent = "Simple prompt with no attachments"; - const [contextItems, renderedPrompt] = await renderPromptFileV2( - rawContent, - extras, - ); - - expect(contextItems).toHaveLength(0); - expect(renderedPrompt).toBe( - "Simple prompt with no attachments\n\nUser input", - ); - }); - - it("should handle URL attachments", async () => { - const rawContent = "Content with URL @https://example.com"; - - const [contextItems, renderedPrompt] = await renderPromptFileV2( - rawContent, - extras, - ); - - expect(contextItems).toHaveLength(1); - expect(renderedPrompt).toContain("Example Content"); - }); - - it("should resolve file attachments", async () => { - const rawContent = "Content with file attachment @test.txt"; - - addToTestDir([["test.txt", "File content"]]); - - const [contextItems, renderedPrompt] = await renderPromptFileV2( - rawContent, - extras, - ); - - expect(contextItems).toHaveLength(1); - expect(renderedPrompt).toContain("```test.txt\nFile content\n```"); - expect(renderedPrompt).toContain("Content with file attachment @test.txt"); - }); - - it("should handle nested prompt files", async () => { - const rawContent = "Main prompt with nested @nested.prompt"; - addToTestDir([ - ["nested.prompt", "Nested prompt content with @CustomProvider"], - ]); - - const [contextItems, renderedPrompt] = await renderPromptFileV2( - rawContent, - extras, - ); - - expect(renderedPrompt).toContain("Custom provider content"); - }); - - it("should handle custom context providers", async () => { - const rawContent = "Content with custom provider @CustomProvider"; - - const [contextItems, renderedPrompt] = await renderPromptFileV2( - rawContent, - extras, - ); - - expect(contextItems).toHaveLength(1); - expect(renderedPrompt).toContain("Custom provider content"); - expect(mockGetContextItems).toHaveBeenCalled(); - }); - - it("should handle multiple attachments", async () => { - const rawContent = "Content with @file1.txt and @file2.txt"; - addToTestDir([ - ["file1.txt", "Content 1"], - ["file2.txt", "Content 2"], - ]); - - const [contextItems, renderedPrompt] = await renderPromptFileV2( - rawContent, - extras, - ); - - expect(contextItems).toHaveLength(2); - expect(renderedPrompt).toContain("```file1.txt\nContent 1\n```"); - expect(renderedPrompt).toContain("```file2.txt\nContent 2\n```"); - }); - - it("should handle failed attachment resolutions gracefully", async () => { - const rawContent = "Content with @nonexistent"; - - const [contextItems, renderedPrompt] = await renderPromptFileV2( - rawContent, - extras, - ); - - expect(contextItems).toHaveLength(0); - expect(renderedPrompt).toBe("Content with @nonexistent\n\nUser input"); - }); -}); diff --git a/core/tsconfig.json b/core/tsconfig.json index 20ea4baf2..afb2e5791 100644 --- a/core/tsconfig.json +++ b/core/tsconfig.json @@ -22,7 +22,8 @@ "./**/*.ts", "./**/*.js", "./**/*.d.ts", - "../gui/src/components/mainInput/TipTapEditor/utils/renderPromptv2.ts" + "../gui/src/components/mainInput/TipTapEditor/utils/renderPromptv2.ts", + "../gui/src/components/mainInput/TipTapEditor/utils/renderPromptFileV2.vitest.ts" ], "exclude": ["dist"] } diff --git a/core/util/handlebars/handlebarUtils.ts b/core/util/handlebars/handlebarUtils.ts index 1c1d01316..1add4012e 100644 --- a/core/util/handlebars/handlebarUtils.ts +++ b/core/util/handlebars/handlebarUtils.ts @@ -1,6 +1,7 @@ -import Handlebars from "handlebars"; import { v4 as uuidv4 } from "uuid"; +export type HandlebarsType = typeof import("handlebars"); + function convertToLetter(num: number): string { let result = ""; while (num > 0) { @@ -12,6 +13,7 @@ function convertToLetter(num: number): string { } export function registerHelpers( + handlebars: HandlebarsType, helpers: Array<[string, Handlebars.HelperDelegate]>, ): { [key: string]: Promise; @@ -19,7 +21,7 @@ export function registerHelpers( const promises: { [key: string]: Promise } = {}; for (const [name, helper] of helpers) { - Handlebars.registerHelper(name, (...args) => { + handlebars.registerHelper(name, (...args) => { const id = uuidv4(); promises[id] = helper(...args); return `__${id}__`; @@ -30,6 +32,7 @@ export function registerHelpers( } export async function prepareTemplatedFilepaths( + handlebars: HandlebarsType, template: string, inputData: Record, ctxProviderNames: string[], @@ -37,7 +40,7 @@ export async function prepareTemplatedFilepaths( getUriFromPath: (path: string) => Promise, ) { // First, replace filepaths with letters to avoid escaping issues - const ast = Handlebars.parse(template); + const ast = handlebars.parse(template); const filepathLetters: Map = new Map(); const requiredContextProviders: Set = new Set(); diff --git a/core/util/handlebars/renderTemplatedString.ts b/core/util/handlebars/renderTemplatedString.ts index 93eb59e78..20927e814 100644 --- a/core/util/handlebars/renderTemplatedString.ts +++ b/core/util/handlebars/renderTemplatedString.ts @@ -2,9 +2,11 @@ import { prepareTemplatedFilepaths, registerHelpers, resolveHelperPromises, + type HandlebarsType, } from "./handlebarUtils"; export async function renderTemplatedString( + handlebars: HandlebarsType, template: string, inputData: Record, availableHelpers: Array<[string, Handlebars.HelperDelegate]>, @@ -12,12 +14,13 @@ export async function renderTemplatedString( getUriFromPath: (path: string) => Promise, ): Promise { const helperPromises = availableHelpers - ? registerHelpers(availableHelpers) + ? registerHelpers(handlebars, availableHelpers) : {}; const ctxProviderNames = availableHelpers?.map((h) => h[0]) ?? []; const { withLetterKeys, templateData } = await prepareTemplatedFilepaths( + handlebars, template, inputData, ctxProviderNames, @@ -25,7 +28,7 @@ export async function renderTemplatedString( getUriFromPath, ); - const templateFn = Handlebars.compile(withLetterKeys); + const templateFn = handlebars.compile(withLetterKeys); const renderedString = templateFn(templateData); return resolveHelperPromises(renderedString, helperPromises); diff --git a/extensions/vscode/package-lock.json b/extensions/vscode/package-lock.json index 1d493deef..c5ea08c38 100644 --- a/extensions/vscode/package-lock.json +++ b/extensions/vscode/package-lock.json @@ -1,12 +1,12 @@ { "name": "continue", - "version": "1.1.49", + "version": "1.1.50", "lockfileVersion": 3, "requires": true, "packages": { "": { "name": "continue", - "version": "1.1.49", + "version": "1.1.50", "license": "Apache-2.0", "dependencies": { "@continuedev/config-types": "^1.0.14", diff --git a/gui/package-lock.json b/gui/package-lock.json index 0619e22e5..ece2fa5aa 100644 --- a/gui/package-lock.json +++ b/gui/package-lock.json @@ -31,6 +31,7 @@ "dompurify": "^3.0.6", "downshift": "^7.6.0", "escape-carriage": "^1.3.1", + "handlebars": "^4.7.8", "lodash": "^4.17.21", "lowlight": "^3.3.0", "minisearch": "^7.0.2", @@ -6299,6 +6300,36 @@ "integrity": "sha512-EtKwoO6kxCL9WO5xipiHTZlSzBm7WLT627TqC/uVRd0HKmq8NXyebnNYxDoBi7wt8eTWrUrKXCOVaFq9x1kgag==", "dev": true }, + "node_modules/handlebars": { + "version": "4.7.8", + "resolved": "https://registry.npmjs.org/handlebars/-/handlebars-4.7.8.tgz", + "integrity": "sha512-vafaFqs8MZkRrSX7sFVUdo3ap/eNiLnb4IakshzvP56X5Nr1iGKAIqdX6tMlm6HcNRIkr6AxO5jFEoJzzpT8aQ==", + "license": "MIT", + "dependencies": { + "minimist": "^1.2.5", + "neo-async": "^2.6.2", + "source-map": "^0.6.1", + "wordwrap": "^1.0.0" + }, + "bin": { + "handlebars": "bin/handlebars" + }, + "engines": { + "node": ">=0.4.7" + }, + "optionalDependencies": { + "uglify-js": "^3.1.4" + } + }, + "node_modules/handlebars/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==", + "license": "BSD-3-Clause", + "engines": { + "node": ">=0.10.0" + } + }, "node_modules/has-bigints": { "version": "1.0.2", "resolved": "https://registry.npmjs.org/has-bigints/-/has-bigints-1.0.2.tgz", @@ -8773,6 +8804,15 @@ "url": "https://github.com/sponsors/isaacs" } }, + "node_modules/minimist": { + "version": "1.2.8", + "resolved": "https://registry.npmjs.org/minimist/-/minimist-1.2.8.tgz", + "integrity": "sha512-2yyAR8qBkN3YuheJanUpWC5U3bb5osDywNB8RzDVlDwDHbocAJveqqj1u8+SVD7jkWT4yvsHCpWqqWqAxb0zCA==", + "license": "MIT", + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, "node_modules/minipass": { "version": "7.1.2", "resolved": "https://registry.npmjs.org/minipass/-/minipass-7.1.2.tgz", @@ -8845,6 +8885,12 @@ "integrity": "sha512-OWND8ei3VtNC9h7V60qff3SVobHr996CTwgxubgyQYEpg290h9J0buyECNNJexkFm5sOajh5G116RYA1c8ZMSw==", "dev": true }, + "node_modules/neo-async": { + "version": "2.6.2", + "resolved": "https://registry.npmjs.org/neo-async/-/neo-async-2.6.2.tgz", + "integrity": "sha512-Yd3UES5mWCSqR+qNT93S3UoYUkqAZ9lLg8a7g9rimsWmYGK8cVToA4/sF3RrshdyV3sAGMXVUmpMYOw+dLpOuw==", + "license": "MIT" + }, "node_modules/node-releases": { "version": "2.0.18", "resolved": "https://registry.npmjs.org/node-releases/-/node-releases-2.0.18.tgz", @@ -12152,6 +12198,19 @@ "resolved": "https://registry.npmjs.org/uc.micro/-/uc.micro-2.1.0.tgz", "integrity": "sha512-ARDJmphmdvUk6Glw7y9DQ2bFkKBHwQHLi2lsaH6PPmz/Ka9sFOBsBluozhDltWmnv9u/cF6Rt87znRTPV+yp/A==" }, + "node_modules/uglify-js": { + "version": "3.19.3", + "resolved": "https://registry.npmjs.org/uglify-js/-/uglify-js-3.19.3.tgz", + "integrity": "sha512-v3Xu+yuwBXisp6QYTcH4UbH+xYJXqnq2m/LtQVWKWzYc1iehYnLixoQDN9FH6/j9/oybfd6W9Ghwkl8+UMKTKQ==", + "license": "BSD-2-Clause", + "optional": true, + "bin": { + "uglifyjs": "bin/uglifyjs" + }, + "engines": { + "node": ">=0.8.0" + } + }, "node_modules/unbox-primitive": { "version": "1.0.2", "resolved": "https://registry.npmjs.org/unbox-primitive/-/unbox-primitive-1.0.2.tgz", @@ -13748,6 +13807,12 @@ "node": ">=0.10.0" } }, + "node_modules/wordwrap": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/wordwrap/-/wordwrap-1.0.0.tgz", + "integrity": "sha512-gvVzJFlPycKc5dZN4yPkP8w7Dc37BtP1yczEneOb4uq34pXZcvrtRTmWV8W+Ume+XCxKgbjM+nevkyFPMybd4Q==", + "license": "MIT" + }, "node_modules/wrap-ansi": { "version": "8.1.0", "resolved": "https://registry.npmjs.org/wrap-ansi/-/wrap-ansi-8.1.0.tgz", diff --git a/gui/package.json b/gui/package.json index eb4a5a4d0..8af398d21 100644 --- a/gui/package.json +++ b/gui/package.json @@ -40,6 +40,7 @@ "dompurify": "^3.0.6", "downshift": "^7.6.0", "escape-carriage": "^1.3.1", + "handlebars": "^4.7.8", "lodash": "^4.17.21", "lowlight": "^3.3.0", "minisearch": "^7.0.2", diff --git a/gui/src/components/mainInput/TipTapEditor/utils/renderPromptv1.ts b/gui/src/components/mainInput/TipTapEditor/utils/renderPromptv1.ts index 3462d025a..30538a3e1 100644 --- a/gui/src/components/mainInput/TipTapEditor/utils/renderPromptv1.ts +++ b/gui/src/components/mainInput/TipTapEditor/utils/renderPromptv1.ts @@ -39,7 +39,9 @@ export async function getRenderedV1Prompt( const getUriFromPath = (path: string) => { return resolveRelativePathInDir(path, ideMessenger.ide, workspaceDirs); }; + const handlebars = await import("handlebars"); return await renderTemplatedString( + handlebars, command.prompt, { input: userInput }, handleBarHelpers, diff --git a/gui/src/components/mainInput/TipTapEditor/utils/renderPromptv2.test.ts b/gui/src/components/mainInput/TipTapEditor/utils/renderPromptv2.test.ts new file mode 100644 index 000000000..867084d39 --- /dev/null +++ b/gui/src/components/mainInput/TipTapEditor/utils/renderPromptv2.test.ts @@ -0,0 +1,129 @@ +import { SlashCommandDescWithSource } from "core"; +import { setUpTestDir, tearDownTestDir } from "core/test/testDir"; +import { afterEach, beforeEach, describe, expect, it, vi } from "vitest"; +import { IdeMessenger, IIdeMessenger } from "../../../../context/IdeMessenger"; +import { getPromptV2ContextRequests } from "./renderPromptv2"; + +function getTestPromptV2Command(body: string): SlashCommandDescWithSource { + return { + prompt: body, + name: "test-prompt-name", + description: "test-prompt-description", + isLegacy: false, + source: "prompt-file-v2", + }; +} +describe("getPromptV2ContextRequests", () => { + let ideMessenger: IIdeMessenger; + const mockGetContextItems = vi.fn().mockResolvedValue([ + { + name: "custom", + content: "Custom provider content", + description: "Custom provider", + }, + ]); + beforeEach(async () => { + // Mock the ideMessenger + vi.clearAllMocks(); + setUpTestDir(); + ideMessenger = new IdeMessenger(); + vi.spyOn(ideMessenger.ide, "readFile").mockImplementation(() => { + return Promise.resolve("Example Content"); + }); + }); + + afterEach(() => { + tearDownTestDir(); + }); + + it("should render a prompt file with no attachments", async () => { + const rawContent = "Simple prompt with no attachments"; + const command = getTestPromptV2Command(rawContent); + const requests = await getPromptV2ContextRequests(ideMessenger, command); + + expect(requests).toHaveLength(0); + }); + + // it("should handle URL attachments", async () => { + // const rawContent = "Content with URL @https://example.com"; + + // const [contextItems, renderedPrompt] = await getPromptV2ContextAttrs( + // rawContent, + // extras, + // ); + + // expect(contextItems).toHaveLength(1); + // expect(renderedPrompt).toContain("Example Content"); + // }); + + // it("should resolve file attachments", async () => { + // const rawContent = "Content with file attachment @test.txt"; + + // addToTestDir([["test.txt", "File content"]]); + + // const [contextItems, renderedPrompt] = await getPromptV2ContextAttrs( + // rawContent, + // extras, + // ); + + // expect(contextItems).toHaveLength(1); + // expect(renderedPrompt).toContain("```test.txt\nFile content\n```"); + // expect(renderedPrompt).toContain("Content with file attachment @test.txt"); + // }); + + // it("should handle nested prompt files", async () => { + // const rawContent = "Main prompt with nested @nested.prompt"; + // addToTestDir([ + // ["nested.prompt", "Nested prompt content with @CustomProvider"], + // ]); + + // const [contextItems, renderedPrompt] = await getPromptV2ContextAttrs( + // rawContent, + // extras, + // ); + + // expect(renderedPrompt).toContain("Custom provider content"); + // }); + + // it("should handle custom context providers", async () => { + // const rawContent = "Content with custom provider @CustomProvider"; + + // const [contextItems, renderedPrompt] = await getPromptV2ContextAttrs( + // rawContent, + // extras, + // ); + + // expect(contextItems).toHaveLength(1); + // expect(renderedPrompt).toContain("Custom provider content"); + // expect(mockGetContextItems).toHaveBeenCalled(); + // }); + + // it("should handle multiple attachments", async () => { + // const rawContent = "Content with @file1.txt and @file2.txt"; + // addToTestDir([ + // ["file1.txt", "Content 1"], + // ["file2.txt", "Content 2"], + // ]); + + // const [contextItems, renderedPrompt] = await getPromptV2ContextAttrs( + // rawContent, + // extras, + // ); + + // expect(contextItems).toHaveLength(2); + // expect(renderedPrompt).toContain("```file1.txt\nContent 1\n```"); + // expect(renderedPrompt).toContain("```file2.txt\nContent 2\n```"); + // }); + + // it("should handle failed attachment resolutions gracefully", async () => { + // const rawContent = "Content with @nonexistent"; + + // const [contextItems, renderedPrompt] = await getPromptV2ContextAttrs( + // rawContent, + // extras, + // ); + + // expect(contextItems).toHaveLength(0); + // expect(renderedPrompt).toBe("Content with @nonexistent\n\nUser input"); + // }); +}); diff --git a/gui/src/components/mainInput/TipTapEditor/utils/renderPromptv2.ts b/gui/src/components/mainInput/TipTapEditor/utils/renderPromptv2.ts index 752305a22..987814193 100644 --- a/gui/src/components/mainInput/TipTapEditor/utils/renderPromptv2.ts +++ b/gui/src/components/mainInput/TipTapEditor/utils/renderPromptv2.ts @@ -2,12 +2,12 @@ import { SlashCommandDescWithSource } from "core"; import { SUPPORTED_PROMPT_CONTEXT_PROVIDERS } from "core/promptFiles"; import { resolveRelativePathInDir } from "core/util/ideUtils"; import { IIdeMessenger } from "../../../../context/IdeMessenger"; -import { MentionAttrs } from "./types"; +import { GetContextRequest } from "./types"; -export async function getPromptV2ContextAttrs( +export async function getPromptV2ContextRequests( ideMessenger: IIdeMessenger, command: SlashCommandDescWithSource, -): Promise { +): Promise { if (!command.prompt) { return []; } @@ -17,12 +17,12 @@ export async function getPromptV2ContextAttrs( visitedFiles.add(command.promptFile); } - const contextItemAttrs: MentionAttrs[] = []; - const addItem = (item: MentionAttrs) => { + const contextItemAttrs: GetContextRequest[] = []; + const addItem = (item: GetContextRequest) => { contextItemAttrs.push(item); }; - async function addContextAttrsRecursive(promptBody: string) { + async function addContextRequestsRecursive(promptBody: string) { // Files for (const match of promptBody.matchAll(/@([^\s]+)/g)) { const name = match[0]; @@ -38,34 +38,27 @@ export async function getPromptV2ContextAttrs( return []; } visitedFiles.add(resolvedFileUri); - await addContextAttrsRecursive(contents); + await addContextRequestsRecursive(contents); } return addItem({ - label: name, - id: "file", - itemType: "contextProvider", + provider: name, query: resolvedFileUri, }); } // URLs if (name.startsWith("http")) { return addItem({ - label: name, - id: "url", - itemType: "contextProvider", + provider: "url", query: name, }); } if (SUPPORTED_PROMPT_CONTEXT_PROVIDERS.includes(name)) { return addItem({ - label: name, - id: name, - itemType: "contextProvider", - query: "", + provider: name, }); } } } - await addContextAttrsRecursive(command.prompt); + await addContextRequestsRecursive(command.prompt); return contextItemAttrs; } diff --git a/gui/src/components/mainInput/TipTapEditor/utils/resolveEditorContent.ts b/gui/src/components/mainInput/TipTapEditor/utils/resolveEditorContent.ts index 0ab7dee5f..37677e2cb 100644 --- a/gui/src/components/mainInput/TipTapEditor/utils/resolveEditorContent.ts +++ b/gui/src/components/mainInput/TipTapEditor/utils/resolveEditorContent.ts @@ -20,8 +20,15 @@ import { IIdeMessenger } from "../../../../context/IdeMessenger"; import { setIsGatheringContext } from "../../../../redux/slices/sessionSlice"; import { CodeBlock, Mention, PromptBlock } from "../extensions"; import { getRenderedV1Prompt } from "./renderPromptv1"; -import { getPromptV2ContextAttrs } from "./renderPromptv2"; -import { MentionAttrs } from "./types"; +import { getPromptV2ContextRequests } from "./renderPromptv2"; +import { GetContextRequest } from "./types"; + +interface MentionAttrs { + label: string; + id: string; + itemType?: string; + query?: string; +} interface ResolveEditorContentInput { editorState: JSONContent; @@ -58,14 +65,14 @@ export async function resolveEditorContent({ }: ResolveEditorContentInput): Promise { const { parts, - contextItemAttrs: editorContextAttrs, + contextRequests: editorContextRequests, selectedCode, slashCommandName, } = processEditorContent(editorState); const { slashedParts, - contextAttrs: slashContextAttrs, + contextRequests: slashContextRequests, legacyCommandWithInput, } = await renderSlashCommandPrompt( ideMessenger, @@ -75,20 +82,20 @@ export async function resolveEditorContent({ selectedCode, ); - const contextItemAttrs = [...editorContextAttrs, ...slashContextAttrs]; + const contextRequests = [...editorContextRequests, ...slashContextRequests]; const shouldGatherContext = defaultContextProviders.length > 0 || modifiers.useCodebase || !modifiers.noContext || - contextItemAttrs.length > 0; + contextRequests.length > 0; if (shouldGatherContext) { dispatch(setIsGatheringContext(true)); } const selectedContextItems = await gatherContextItems({ - contextItemAttrs, + contextRequests, modifiers, ideMessenger, defaultContextProviders, @@ -112,7 +119,7 @@ export async function resolveEditorContent({ * Processes editor content and extracts parts, context items, code, and slash commands */ function processEditorContent(editorState: JSONContent) { - const contextItemAttrs: MentionAttrs[] = []; + const contextRequests: GetContextRequest[] = []; const selectedCode: RangeInFile[] = []; let slashCommandName: string | undefined; @@ -126,7 +133,7 @@ function processEditorContent(editorState: JSONContent) { case Paragraph.name: { const [text, ctxItems] = resolveParagraph(p); - contextItemAttrs.push(...ctxItems); + contextRequests.push(...ctxItems); if (!text) return parts; @@ -193,7 +200,7 @@ function processEditorContent(editorState: JSONContent) { [], ); - return { parts, contextItemAttrs, selectedCode, slashCommandName }; + return { parts, contextRequests, selectedCode, slashCommandName }; } /** @@ -211,12 +218,12 @@ async function renderSlashCommandPrompt( command: SlashCommandDescWithSource; input: string; }; - contextAttrs: MentionAttrs[]; + contextRequests: GetContextRequest[]; }> { const NO_COMMAND = { slashedParts: parts, legacyCommandWithInput: undefined, - contextAttrs: [], + contextRequests: [], }; if (!commandName) { return NO_COMMAND; @@ -239,7 +246,7 @@ async function renderSlashCommandPrompt( } : undefined; - const contextAttrs: MentionAttrs[] = []; + const contextRequests: GetContextRequest[] = []; switch (command.source) { case "built-in-legacy": @@ -279,16 +286,10 @@ async function renderSlashCommandPrompt( break; case "prompt-file-v1": case "prompt-file-v2": - if (!command.promptFile) { - throw new Error( - `Invalid prompt file from slash command ${command.name}`, - ); - } case "yaml-prompt-block": if (!command.prompt) { - throw new Error( - `Invalid/empty prompt from slash command ${command.name}`, - ); + console.warn(`Invalid/empty prompt from slash command ${command.name}`); + break; } let renderedPrompt: string; if ( @@ -302,34 +303,37 @@ async function renderSlashCommandPrompt( selectedCode, ); } else { - const promptFileContextAttrs = await getPromptV2ContextAttrs( + const promptFileCtxRequests = await getPromptV2ContextRequests( ideMessenger, command, ); - contextAttrs.push(...promptFileContextAttrs); + contextRequests.push(...promptFileCtxRequests); renderedPrompt = [command.prompt, userInput].join("\n\n"); } - // const renderedPrompt = renderPromptFile(); slashedParts.push({ type: "text", text: renderedPrompt.trim(), // Includes user input }); + break; case "built-in": case "invokable-rule": case "json-custom-command": if (!command.prompt) { - throw new Error(`Slash command ${command.name} is missing prompt`); + console.warn(`Slash command ${command.name} is missing prompt`); + break; } slashedParts.push({ type: "text", text: `${command.prompt}${userInput ? "\n\n" + userInput : ""}`, }); + default: + break; } return { slashedParts, legacyCommandWithInput, - contextAttrs, + contextRequests, }; } @@ -337,26 +341,41 @@ async function renderSlashCommandPrompt( * Gathers context items from various sources */ async function gatherContextItems({ - contextItemAttrs, + contextRequests, modifiers, ideMessenger, defaultContextProviders, parts, selectedCode, }: { - contextItemAttrs: MentionAttrs[]; + contextRequests: GetContextRequest[]; modifiers: InputModifiers; ideMessenger: IIdeMessenger; defaultContextProviders: DefaultContextProvider[]; parts: MessagePart[]; selectedCode: RangeInFile[]; }): Promise { + const defaultRequests: GetContextRequest[] = defaultContextProviders.map( + (def) => ({ + provider: def.name, + query: def.query, + }), + ); + const withDefaults = [...contextRequests, ...defaultRequests]; + const deduplicated = withDefaults.reduce((acc, item) => { + if ( + !acc.some((i) => i.provider === item.provider && i.query === item.query) + ) { + acc.push(item); + } + return acc; + }, []); let contextItems: ContextItemWithId[] = []; // Process context item attributes - for (const item of contextItemAttrs) { + for (const item of deduplicated) { const result = await ideMessenger.request("context/getContextItems", { - name: item.itemType === "contextProvider" ? item.id : item.itemType!, + name: item.provider, query: item.query ?? "", fullInput: stripImages(parts), selectedCode, @@ -369,7 +388,7 @@ async function gatherContextItems({ // cmd+enter to use codebase if ( modifiers.useCodebase && - !contextItemAttrs.some((item) => item.id === "codebase") + !deduplicated.some((item) => item.provider === "codebase") ) { const result = await ideMessenger.request("context/getContextItems", { name: "codebase", @@ -386,7 +405,7 @@ async function gatherContextItems({ // noContext modifier adds currently open file if it's not already present if ( !modifiers.noContext && - !contextItemAttrs.some((item) => item.id === "currentFile") + !deduplicated.some((item) => item.provider === "currentFile") ) { const currentFileResponse = await ideMessenger.request( "context/getContextItems", @@ -409,24 +428,6 @@ async function gatherContextItems({ } } - // Include default context providers - const defaultContextItems = await Promise.all( - defaultContextProviders.map(async (provider) => { - const result = await ideMessenger.request("context/getContextItems", { - name: provider.name, - query: provider.query ?? "", - fullInput: stripImages(parts), - selectedCode, - }); - if (result.status === "success") { - return result.content; - } else { - return []; - } - }), - ); - contextItems.push(...defaultContextItems.flat()); - return contextItems; } @@ -434,8 +435,8 @@ function resvolePromptBlock(p: JSONContent): string | undefined { return p.attrs?.item.name; } -function resolveParagraph(p: JSONContent): [string, MentionAttrs[]] { - const contextItems: MentionAttrs[] = []; +function resolveParagraph(p: JSONContent): [string, GetContextRequest[]] { + const contextRequests: GetContextRequest[] = []; const text = (p.content || []) .map((child) => { @@ -443,7 +444,11 @@ function resolveParagraph(p: JSONContent): [string, MentionAttrs[]] { case Text.name: return child.text; case Mention.name: - contextItems.push(child.attrs as MentionAttrs); + const attrs = child.attrs as MentionAttrs; + contextRequests.push({ + provider: + attrs.itemType === "contextProvider" ? attrs.id : attrs.itemType!, + }); return child.attrs?.renderInlineAs ?? child.attrs?.label; default: @@ -454,5 +459,5 @@ function resolveParagraph(p: JSONContent): [string, MentionAttrs[]] { .join("") .trimStart(); - return [text, contextItems]; + return [text, contextRequests]; } diff --git a/gui/src/components/mainInput/TipTapEditor/utils/types.ts b/gui/src/components/mainInput/TipTapEditor/utils/types.ts index 6a0be1c55..dbfe80fae 100644 --- a/gui/src/components/mainInput/TipTapEditor/utils/types.ts +++ b/gui/src/components/mainInput/TipTapEditor/utils/types.ts @@ -1,6 +1,4 @@ -export interface MentionAttrs { - label: string; - id: string; - itemType?: string; +export interface GetContextRequest { + provider: string; query?: string; } From 7f877f262b85d62003b478c400b63f5ee79d7ca7 Mon Sep 17 00:00:00 2001 From: Dallin Romney Date: Mon, 23 Jun 2025 19:04:45 -0700 Subject: [PATCH 50/91] deduplicate context item outputs --- .../commands/slash/promptBlockSlashCommand.ts | 11 +-- .../TipTapEditor/utils/renderPromptv2.ts | 44 +++++----- .../utils/resolveEditorContent.ts | 80 ++++++++++++++----- 3 files changed, 89 insertions(+), 46 deletions(-) diff --git a/core/commands/slash/promptBlockSlashCommand.ts b/core/commands/slash/promptBlockSlashCommand.ts index a71ab20a6..00530b8bd 100644 --- a/core/commands/slash/promptBlockSlashCommand.ts +++ b/core/commands/slash/promptBlockSlashCommand.ts @@ -1,12 +1,13 @@ -import { CustomCommand, SlashCommandWithSource } from "../.."; +import { Prompt } from "@continuedev/config-yaml"; +import { SlashCommandWithSource } from "../.."; export function convertPromptBlockToSlashCommand( - customCommand: CustomCommand, + prompt: Prompt, ): SlashCommandWithSource { return { - name: customCommand.name, - description: customCommand.description ?? "", - prompt: customCommand.prompt, + name: prompt.name, + description: prompt.description ?? "", + prompt: prompt.prompt, source: "yaml-prompt-block", }; } diff --git a/gui/src/components/mainInput/TipTapEditor/utils/renderPromptv2.ts b/gui/src/components/mainInput/TipTapEditor/utils/renderPromptv2.ts index 987814193..51a8e37b8 100644 --- a/gui/src/components/mainInput/TipTapEditor/utils/renderPromptv2.ts +++ b/gui/src/components/mainInput/TipTapEditor/utils/renderPromptv2.ts @@ -17,15 +17,31 @@ export async function getPromptV2ContextRequests( visitedFiles.add(command.promptFile); } - const contextItemAttrs: GetContextRequest[] = []; - const addItem = (item: GetContextRequest) => { - contextItemAttrs.push(item); - }; + const contextRequests: GetContextRequest[] = []; async function addContextRequestsRecursive(promptBody: string) { // Files - for (const match of promptBody.matchAll(/@([^\s]+)/g)) { - const name = match[0]; + const templateMatches = promptBody.matchAll(/@([^\s]+)/g); + for (const match of templateMatches) { + const name = match[1]; + + if (SUPPORTED_PROMPT_CONTEXT_PROVIDERS.includes(name)) { + contextRequests.push({ + provider: name, + }); + continue; + } + + // URLs + if (name.startsWith("http")) { + contextRequests.push({ + provider: "url", + query: name, + }); + continue; + } + + // Files const resolvedFileUri = await resolveRelativePathInDir( match[0], ideMessenger.ide, @@ -40,25 +56,13 @@ export async function getPromptV2ContextRequests( visitedFiles.add(resolvedFileUri); await addContextRequestsRecursive(contents); } - return addItem({ + contextRequests.push({ provider: name, query: resolvedFileUri, }); } - // URLs - if (name.startsWith("http")) { - return addItem({ - provider: "url", - query: name, - }); - } - if (SUPPORTED_PROMPT_CONTEXT_PROVIDERS.includes(name)) { - return addItem({ - provider: name, - }); - } } } await addContextRequestsRecursive(command.prompt); - return contextItemAttrs; + return contextRequests; } diff --git a/gui/src/components/mainInput/TipTapEditor/utils/resolveEditorContent.ts b/gui/src/components/mainInput/TipTapEditor/utils/resolveEditorContent.ts index 37677e2cb..465558dee 100644 --- a/gui/src/components/mainInput/TipTapEditor/utils/resolveEditorContent.ts +++ b/gui/src/components/mainInput/TipTapEditor/utils/resolveEditorContent.ts @@ -234,8 +234,8 @@ async function renderSlashCommandPrompt( } const nonTextParts = parts.filter((part) => part.type !== "text"); - const slashedParts: MessagePart[] = [...nonTextParts]; const textParts = parts.filter((part) => part.type === "text"); + const slashedParts: MessagePart[] = [...nonTextParts]; const userInput = stripImages(textParts).trimStart(); @@ -311,10 +311,17 @@ async function renderSlashCommandPrompt( renderedPrompt = [command.prompt, userInput].join("\n\n"); } - slashedParts.push({ - type: "text", - text: renderedPrompt.trim(), // Includes user input - }); + if (renderedPrompt) { + slashedParts.push({ + type: "text", + text: renderedPrompt.trim(), // Includes user input + }); + } else { + console.warn( + `Invalid/empty prompt + input from slash command ${command.name}`, + ); + } + break; case "built-in": case "invokable-rule": @@ -323,10 +330,18 @@ async function renderSlashCommandPrompt( console.warn(`Slash command ${command.name} is missing prompt`); break; } - slashedParts.push({ - type: "text", - text: `${command.prompt}${userInput ? "\n\n" + userInput : ""}`, - }); + const rendered = + `${command.prompt}${userInput ? "\n\n" + userInput : ""}`.trim(); + if (rendered) { + slashedParts.push({ + type: "text", + text: rendered, + }); + } else { + console.warn( + `Invalid/empty prompt + input from slash command ${command.name}`, + ); + } default: break; } @@ -362,18 +377,21 @@ async function gatherContextItems({ }), ); const withDefaults = [...contextRequests, ...defaultRequests]; - const deduplicated = withDefaults.reduce((acc, item) => { - if ( - !acc.some((i) => i.provider === item.provider && i.query === item.query) - ) { - acc.push(item); - } - return acc; - }, []); + const deduplicatedInputs = withDefaults.reduce( + (acc, item) => { + if ( + !acc.some((i) => i.provider === item.provider && i.query === item.query) + ) { + acc.push(item); + } + return acc; + }, + [], + ); let contextItems: ContextItemWithId[] = []; // Process context item attributes - for (const item of deduplicated) { + for (const item of deduplicatedInputs) { const result = await ideMessenger.request("context/getContextItems", { name: item.provider, query: item.query ?? "", @@ -388,7 +406,7 @@ async function gatherContextItems({ // cmd+enter to use codebase if ( modifiers.useCodebase && - !deduplicated.some((item) => item.provider === "codebase") + !deduplicatedInputs.some((item) => item.provider === "codebase") ) { const result = await ideMessenger.request("context/getContextItems", { name: "codebase", @@ -405,7 +423,7 @@ async function gatherContextItems({ // noContext modifier adds currently open file if it's not already present if ( !modifiers.noContext && - !deduplicated.some((item) => item.provider === "currentFile") + !deduplicatedInputs.some((item) => item.provider === "currentFile") ) { const currentFileResponse = await ideMessenger.request( "context/getContextItems", @@ -428,7 +446,27 @@ async function gatherContextItems({ } } - return contextItems; + // Deduplicates based on either providerTitle + itemId or uri type + value + const deduplicatedOutputs = contextItems.reduce( + (acc, item) => { + if ( + !acc.some( + (i) => + (i.id.providerTitle === item.id.providerTitle && + i.id.itemId === item.id.itemId) || + (i.uri && + item.uri && + i.uri.type === item.uri.type && + i.uri.value === item.uri.value), + ) + ) { + acc.push(item); + } + return acc; + }, + [], + ); + return deduplicatedOutputs; } function resvolePromptBlock(p: JSONContent): string | undefined { From 7644cd6ce57dc197dbe84a30f3d68605d5d6709b Mon Sep 17 00:00:00 2001 From: uinstinct <61635505+uinstinct@users.noreply.github.com> Date: Tue, 24 Jun 2025 18:36:13 +0530 Subject: [PATCH 51/91] do not ripgrep if ide is remote --- core/config/yaml/loadYaml.ts | 8 ++++++-- core/index.d.ts | 2 ++ core/tools/index.ts | 5 +++-- extensions/vscode/src/VsCodeIde.ts | 4 ++++ 4 files changed, 15 insertions(+), 4 deletions(-) diff --git a/core/config/yaml/loadYaml.ts b/core/config/yaml/loadYaml.ts index 0c6436c38..2858adfd7 100644 --- a/core/config/yaml/loadYaml.ts +++ b/core/config/yaml/loadYaml.ts @@ -39,7 +39,7 @@ import { GlobalContext } from "../../util/GlobalContext"; import { modifyAnyConfigWithSharedConfig } from "../sharedConfig"; import { getControlPlaneEnvSync } from "../../control-plane/env"; -import { baseToolDefinitions } from "../../tools"; +import { baseToolDefinitions, remoteToolDefinitions } from "../../tools"; import { getCleanUriPath } from "../../util/uri"; import { getAllDotContinueDefinitionFiles } from "../loadLocalAssistants"; import { LocalPlatformClient } from "./LocalPlatformClient"; @@ -187,7 +187,11 @@ async function configYamlToContinueConfig(options: { const continueConfig: ContinueConfig = { slashCommands: [], - tools: [...baseToolDefinitions], + tools: [ + ...(ide.isWorkspaceRemote() + ? remoteToolDefinitions + : baseToolDefinitions), + ], mcpServerStatuses: [], contextProviders: [], modelsByRole: { diff --git a/core/index.d.ts b/core/index.d.ts index 9b54701ff..edb5b9f45 100644 --- a/core/index.d.ts +++ b/core/index.d.ts @@ -731,6 +731,8 @@ export interface IDE { isTelemetryEnabled(): Promise; + isWorkspaceRemote(): boolean; + getUniqueId(): Promise; getTerminalContents(): Promise; diff --git a/core/tools/index.ts b/core/tools/index.ts index c4d1c658b..b46569344 100644 --- a/core/tools/index.ts +++ b/core/tools/index.ts @@ -13,12 +13,11 @@ import { runTerminalCommandTool } from "./definitions/runTerminalCommand"; import { searchWebTool } from "./definitions/searchWeb"; import { viewDiffTool } from "./definitions/viewDiff"; -export const baseToolDefinitions = [ +export const remoteToolDefinitions = [ readFileTool, editFileTool, createNewFileTool, runTerminalCommandTool, - grepSearchTool, globSearchTool, searchWebTool, viewDiffTool, @@ -31,6 +30,8 @@ export const baseToolDefinitions = [ // viewRepoMapTool, ]; +export const baseToolDefinitions = [...remoteToolDefinitions, grepSearchTool]; + export const getConfigDependentToolDefinitions = ( params: ConfigDependentToolParams, ): Tool[] => [requestRuleTool(params)]; diff --git a/extensions/vscode/src/VsCodeIde.ts b/extensions/vscode/src/VsCodeIde.ts index a01ecd515..be56e2f9d 100644 --- a/extensions/vscode/src/VsCodeIde.ts +++ b/extensions/vscode/src/VsCodeIde.ts @@ -200,6 +200,10 @@ class VsCodeIde implements IDE { return globalEnabled && continueEnabled; } + isWorkspaceRemote(): boolean { + return vscode.env.remoteName !== undefined; + } + getUniqueId(): Promise { return Promise.resolve(vscode.env.machineId); } From 99d222344eeaf3f0c89b3a74f308508f3ed839e4 Mon Sep 17 00:00:00 2001 From: uinstinct <61635505+uinstinct@users.noreply.github.com> Date: Tue, 24 Jun 2025 18:39:16 +0530 Subject: [PATCH 52/91] add type and method of intellij --- .../continueintellijextension/continue/IntelliJIde.kt | 4 ++++ .../com/github/continuedev/continueintellijextension/types.kt | 2 ++ 2 files changed, 6 insertions(+) diff --git a/extensions/intellij/src/main/kotlin/com/github/continuedev/continueintellijextension/continue/IntelliJIde.kt b/extensions/intellij/src/main/kotlin/com/github/continuedev/continueintellijextension/continue/IntelliJIde.kt index a692759b9..fd158acc4 100644 --- a/extensions/intellij/src/main/kotlin/com/github/continuedev/continueintellijextension/continue/IntelliJIde.kt +++ b/extensions/intellij/src/main/kotlin/com/github/continuedev/continueintellijextension/continue/IntelliJIde.kt @@ -125,6 +125,10 @@ class IntelliJIDE( return true } + override suspend fun isWorkspaceRemote(): Boolean { + return this.getIdeInfo().remoteName != "local" + } + override suspend fun getUniqueId(): String { return getMachineUniqueID() } diff --git a/extensions/intellij/src/main/kotlin/com/github/continuedev/continueintellijextension/types.kt b/extensions/intellij/src/main/kotlin/com/github/continuedev/continueintellijextension/types.kt index 34b0e25d7..5ff9e9454 100644 --- a/extensions/intellij/src/main/kotlin/com/github/continuedev/continueintellijextension/types.kt +++ b/extensions/intellij/src/main/kotlin/com/github/continuedev/continueintellijextension/types.kt @@ -102,6 +102,8 @@ interface IDE { suspend fun isTelemetryEnabled(): Boolean + suspend fun isWorkspaceRemote(): Boolean + suspend fun getUniqueId(): String suspend fun getTerminalContents(): String From f92037d3e3312eb431373fb2f4ef2f179825d84c Mon Sep 17 00:00:00 2001 From: uinstinct <61635505+uinstinct@users.noreply.github.com> Date: Tue, 24 Jun 2025 18:58:35 +0530 Subject: [PATCH 53/91] fix type --- core/util/filesystem.ts | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/core/util/filesystem.ts b/core/util/filesystem.ts index 8b50a3cae..ce2726a81 100644 --- a/core/util/filesystem.ts +++ b/core/util/filesystem.ts @@ -48,6 +48,10 @@ class FileSystemIde implements IDE { return; } + isWorkspaceRemote(): boolean { + return false; + } + async getIdeSettings(): Promise { return { remoteConfigServerUrl: undefined, From 3d5d7dabf416974e056f52ce22fac3ae466b4173 Mon Sep 17 00:00:00 2001 From: uinstinct <61635505+uinstinct@users.noreply.github.com> Date: Tue, 24 Jun 2025 19:04:10 +0530 Subject: [PATCH 54/91] correct type to promise --- core/config/yaml/loadYaml.ts | 2 +- core/index.d.ts | 2 +- core/protocol/ide.ts | 1 + core/protocol/messenger/messageIde.ts | 4 ++++ core/util/filesystem.ts | 4 ++-- extensions/vscode/src/VsCodeIde.ts | 4 ++-- 6 files changed, 11 insertions(+), 6 deletions(-) diff --git a/core/config/yaml/loadYaml.ts b/core/config/yaml/loadYaml.ts index 2858adfd7..094856cde 100644 --- a/core/config/yaml/loadYaml.ts +++ b/core/config/yaml/loadYaml.ts @@ -188,7 +188,7 @@ async function configYamlToContinueConfig(options: { const continueConfig: ContinueConfig = { slashCommands: [], tools: [ - ...(ide.isWorkspaceRemote() + ...((await ide.isWorkspaceRemote()) ? remoteToolDefinitions : baseToolDefinitions), ], diff --git a/core/index.d.ts b/core/index.d.ts index edb5b9f45..4aea44fd4 100644 --- a/core/index.d.ts +++ b/core/index.d.ts @@ -731,7 +731,7 @@ export interface IDE { isTelemetryEnabled(): Promise; - isWorkspaceRemote(): boolean; + isWorkspaceRemote(): Promise; getUniqueId(): Promise; diff --git a/core/protocol/ide.ts b/core/protocol/ide.ts index 7a9b8d68e..4fa8f4bc4 100644 --- a/core/protocol/ide.ts +++ b/core/protocol/ide.ts @@ -70,6 +70,7 @@ export type ToIdeFromWebviewOrCoreProtocol = { ]; getAvailableThreads: [undefined, Thread[]]; isTelemetryEnabled: [undefined, boolean]; + isWorkspaceRemote: [undefined, boolean]; getUniqueId: [undefined, string]; getTags: [string, IndexTag[]]; readSecrets: [{ keys: string[] }, Record]; diff --git a/core/protocol/messenger/messageIde.ts b/core/protocol/messenger/messageIde.ts index 87e1ec642..30d9b8177 100644 --- a/core/protocol/messenger/messageIde.ts +++ b/core/protocol/messenger/messageIde.ts @@ -106,6 +106,10 @@ export class MessageIde implements IDE { return this.request("isTelemetryEnabled", undefined); } + isWorkspaceRemote(): Promise { + return this.request("isWorkspaceRemote", undefined); + } + getUniqueId(): Promise { return this.request("getUniqueId", undefined); } diff --git a/core/util/filesystem.ts b/core/util/filesystem.ts index ce2726a81..f415e5e86 100644 --- a/core/util/filesystem.ts +++ b/core/util/filesystem.ts @@ -48,8 +48,8 @@ class FileSystemIde implements IDE { return; } - isWorkspaceRemote(): boolean { - return false; + isWorkspaceRemote(): Promise { + return Promise.resolve(false); } async getIdeSettings(): Promise { diff --git a/extensions/vscode/src/VsCodeIde.ts b/extensions/vscode/src/VsCodeIde.ts index be56e2f9d..91fb6154b 100644 --- a/extensions/vscode/src/VsCodeIde.ts +++ b/extensions/vscode/src/VsCodeIde.ts @@ -200,8 +200,8 @@ class VsCodeIde implements IDE { return globalEnabled && continueEnabled; } - isWorkspaceRemote(): boolean { - return vscode.env.remoteName !== undefined; + isWorkspaceRemote(): Promise { + return Promise.resolve(vscode.env.remoteName !== undefined); } getUniqueId(): Promise { From a4393731e0e8f66377b38c63a1922a067b6f374c Mon Sep 17 00:00:00 2001 From: Dallin Romney Date: Tue, 24 Jun 2025 10:54:31 -0700 Subject: [PATCH 55/91] fix input and vs context item insertion --- core/tsconfig.json | 8 +------- core/util/handlebars/handlebarUtils.ts | 3 +++ core/util/uri.ts | 2 ++ .../mainInput/TipTapEditor/utils/renderPromptv1.ts | 2 +- 4 files changed, 7 insertions(+), 8 deletions(-) diff --git a/core/tsconfig.json b/core/tsconfig.json index afb2e5791..69966e2de 100644 --- a/core/tsconfig.json +++ b/core/tsconfig.json @@ -18,12 +18,6 @@ "noEmitOnError": false, "types": ["jest", "node"] }, - "include": [ - "./**/*.ts", - "./**/*.js", - "./**/*.d.ts", - "../gui/src/components/mainInput/TipTapEditor/utils/renderPromptv2.ts", - "../gui/src/components/mainInput/TipTapEditor/utils/renderPromptFileV2.vitest.ts" - ], + "include": ["./**/*.ts", "./**/*.js", "./**/*.d.ts"], "exclude": ["dist"] } diff --git a/core/util/handlebars/handlebarUtils.ts b/core/util/handlebars/handlebarUtils.ts index 1add4012e..97b32ced0 100644 --- a/core/util/handlebars/handlebarUtils.ts +++ b/core/util/handlebars/handlebarUtils.ts @@ -53,6 +53,9 @@ export async function prepareTemplatedFilepaths( if (node.type === "MustacheStatement") { const originalNodeVal = node.path.original; + if (originalNodeVal.toLowerCase() === "input") { + continue; + } const isFilepath = !ctxProviderNames.includes(originalNodeVal); if (isFilepath) { diff --git a/core/util/uri.ts b/core/util/uri.ts index e180a0a69..d3c1659b5 100644 --- a/core/util/uri.ts +++ b/core/util/uri.ts @@ -188,6 +188,7 @@ export function getUriDescription(uri: string, dirUriCandidates: string[]) { dirUriCandidates, ); const baseName = getUriPathBasename(uri); + const extension = getFileExtensionFromBasename(baseName); const last2Parts = getLastNUriRelativePathParts(dirUriCandidates, uri, 2); return { uri, @@ -195,5 +196,6 @@ export function getUriDescription(uri: string, dirUriCandidates: string[]) { foundInDir, last2Parts, baseName, + extension, }; } diff --git a/gui/src/components/mainInput/TipTapEditor/utils/renderPromptv1.ts b/gui/src/components/mainInput/TipTapEditor/utils/renderPromptv1.ts index 30538a3e1..e6195e314 100644 --- a/gui/src/components/mainInput/TipTapEditor/utils/renderPromptv1.ts +++ b/gui/src/components/mainInput/TipTapEditor/utils/renderPromptv1.ts @@ -28,7 +28,7 @@ export async function getRenderedV1Prompt( selectedCode, }); if (response.status === "success") { - return response.content.join("\n\n"); + return response.content.map((item) => item.content).join("\n\n"); } else { throw new Error(`Failed to get context items from provider: ${name}`); } From 5a89c34c23863aec64e1a0ab568a04fe597be889 Mon Sep 17 00:00:00 2001 From: Dallin Romney Date: Tue, 24 Jun 2025 14:13:39 -0700 Subject: [PATCH 56/91] fix prompt insertion type errors --- .../ConversationStarterCards.tsx | 6 ++++- .../Lump/sections/PromptsSection.tsx | 25 ++++++++++++------- .../extensions/Prompt/PromptBlock.ts | 8 +++--- 3 files changed, 26 insertions(+), 13 deletions(-) diff --git a/gui/src/components/ConversationStarters/ConversationStarterCards.tsx b/gui/src/components/ConversationStarters/ConversationStarterCards.tsx index ce7907a67..696b00527 100644 --- a/gui/src/components/ConversationStarters/ConversationStarterCards.tsx +++ b/gui/src/components/ConversationStarters/ConversationStarterCards.tsx @@ -24,7 +24,11 @@ export function ConversationStarterCards() { ); function onClick(command: SlashCommandDescWithSource) { - mainEditor?.commands.insertPrompt(command); + mainEditor?.commands.insertPrompt({ + description: command.description, + title: command.name, + content: command.prompt, + }); } if (bookmarkedSlashCommands.length === 0) { diff --git a/gui/src/components/mainInput/Lump/sections/PromptsSection.tsx b/gui/src/components/mainInput/Lump/sections/PromptsSection.tsx index 52e6a5d6f..c277d7d92 100644 --- a/gui/src/components/mainInput/Lump/sections/PromptsSection.tsx +++ b/gui/src/components/mainInput/Lump/sections/PromptsSection.tsx @@ -15,10 +15,12 @@ import { useMainEditor } from "../../TipTapEditor"; import { useLump } from "../LumpContext"; import { ExploreBlocksButton } from "./ExploreBlocksButton"; -type PromptWithSlug = SlashCommandDescWithSource & { slug?: string }; +interface PromptCommandWithSlug extends SlashCommandDescWithSource { + slug?: string; +} interface PromptRowProps { - prompt: PromptWithSlug; + prompt: PromptCommandWithSlug; isBookmarked: boolean; setIsBookmarked: (isBookmarked: boolean) => void; onEdit?: () => void; @@ -38,7 +40,11 @@ function PromptRow({ const handlePromptClick = (e: React.MouseEvent) => { e.stopPropagation(); - mainEditor?.commands.insertPrompt(prompt); + mainEditor?.commands.insertPrompt({ + title: prompt.name, + description: prompt.description, + content: prompt.prompt, + }); hideLump(); }; @@ -102,7 +108,7 @@ export function PromptsSection() { (state) => state.config.config.slashCommands ?? [], ); - const handleEdit = (prompt: PromptWithSlug) => { + const handleEdit = (prompt: PromptCommandWithSlug) => { if (prompt.promptFile) { ideMessenger.post("openFile", { path: prompt.promptFile, @@ -120,23 +126,24 @@ export function PromptsSection() { }; const sortedCommands = useMemo(() => { - const promptsWithSlug: PromptWithSlug[] = structuredClone(slashCommands); + const promptsWithSlug: PromptCommandWithSlug[] = + structuredClone(slashCommands); // get the slugs from rawYaml if (selectedProfile?.rawYaml) { const parsed = parseConfigYaml(selectedProfile.rawYaml); const parsedPrompts = parsed.prompts ?? []; let index = 0; - for (const prompt of promptsWithSlug) { + for (const commandWithSlug of promptsWithSlug) { // skip for local prompt files - if (prompt.promptFile) continue; + if (commandWithSlug.promptFile) continue; const yamlPrompt = parsedPrompts[index]; if (yamlPrompt) { if ("uses" in yamlPrompt) { - prompt.slug = yamlPrompt.uses; + commandWithSlug.slug = yamlPrompt.uses; } else { - prompt.slug = `${selectedProfile?.fullSlug.ownerSlug}/${selectedProfile?.fullSlug.packageSlug}`; + commandWithSlug.slug = `${selectedProfile?.fullSlug.ownerSlug}/${selectedProfile?.fullSlug.packageSlug}`; } } index = index + 1; diff --git a/gui/src/components/mainInput/TipTapEditor/extensions/Prompt/PromptBlock.ts b/gui/src/components/mainInput/TipTapEditor/extensions/Prompt/PromptBlock.ts index 52eeeb3b1..441ae9952 100644 --- a/gui/src/components/mainInput/TipTapEditor/extensions/Prompt/PromptBlock.ts +++ b/gui/src/components/mainInput/TipTapEditor/extensions/Prompt/PromptBlock.ts @@ -21,7 +21,9 @@ declare module "@tiptap/core" { /** * Insert a prompt block into the editor */ - insertPrompt: (item: ComboBoxItem) => ReturnType; + insertPrompt: ( + item: Pick, + ) => ReturnType; /** * Clear all prompt blocks from the editor @@ -77,7 +79,7 @@ export const PromptBlock = Node.create({ addCommands() { return { insertPrompt: - (item: ComboBoxItem) => + (item) => ({ chain }) => { const contextItem: ContextItemWithId = { content: item.content ?? "", @@ -85,7 +87,7 @@ export const PromptBlock = Node.create({ description: item.description, id: { providerTitle: "prompt", - itemId: prompt.name, + itemId: item.title, }, }; From 3831a0b7f6ed75def117884316fd2c5f93170778 Mon Sep 17 00:00:00 2001 From: Jakub Blach Date: Wed, 25 Jun 2025 15:54:20 +0200 Subject: [PATCH 57/91] fix: Replace Desktop util with built-in BrowserUtil (fixes #6020) --- .../auth/ContinueAuthService.kt | 4 +- .../continue/IntelliJIde.kt | 3 +- .../utils/Desktop.kt | 214 ------------------ 3 files changed, 4 insertions(+), 217 deletions(-) delete mode 100644 extensions/intellij/src/main/kotlin/com/github/continuedev/continueintellijextension/utils/Desktop.kt 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 28f81b319..13ceaf810 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 @@ -2,9 +2,9 @@ package com.github.continuedev.continueintellijextension.auth import com.github.continuedev.continueintellijextension.services.ContinueExtensionSettings import com.github.continuedev.continueintellijextension.services.ContinuePluginService -import com.github.continuedev.continueintellijextension.utils.Desktop import com.google.gson.Gson import com.intellij.credentialStore.Credentials +import com.intellij.ide.BrowserUtil import com.intellij.ide.passwordSafe.PasswordSafe import com.intellij.ide.util.PropertiesComponent import com.intellij.openapi.application.ApplicationManager @@ -165,7 +165,7 @@ class ContinueAuthService { // Still open the URL in the browser (keeping existing behavior) if (authUrl != null) { - Desktop.browse(java.net.URI(authUrl)) + BrowserUtil.open(authUrl!!) } return authUrl diff --git a/extensions/intellij/src/main/kotlin/com/github/continuedev/continueintellijextension/continue/IntelliJIde.kt b/extensions/intellij/src/main/kotlin/com/github/continuedev/continueintellijextension/continue/IntelliJIde.kt index a692759b9..ce374d4e9 100644 --- a/extensions/intellij/src/main/kotlin/com/github/continuedev/continueintellijextension/continue/IntelliJIde.kt +++ b/extensions/intellij/src/main/kotlin/com/github/continuedev/continueintellijextension/continue/IntelliJIde.kt @@ -10,6 +10,7 @@ import com.github.continuedev.continueintellijextension.utils.* import com.intellij.codeInsight.daemon.impl.HighlightInfo import com.intellij.execution.configurations.GeneralCommandLine import com.intellij.execution.util.ExecUtil +import com.intellij.ide.BrowserUtil import com.intellij.ide.plugins.PluginManager import com.intellij.ide.plugins.PluginManagerCore import com.intellij.lang.annotation.HighlightSeverity @@ -211,7 +212,7 @@ class IntelliJIDE( override suspend fun openUrl(url: String) { withContext(Dispatchers.IO) { - Desktop.browse(URI(url)) + BrowserUtil.browse(url) } } diff --git a/extensions/intellij/src/main/kotlin/com/github/continuedev/continueintellijextension/utils/Desktop.kt b/extensions/intellij/src/main/kotlin/com/github/continuedev/continueintellijextension/utils/Desktop.kt deleted file mode 100644 index 8dd20536c..000000000 --- a/extensions/intellij/src/main/kotlin/com/github/continuedev/continueintellijextension/utils/Desktop.kt +++ /dev/null @@ -1,214 +0,0 @@ -/* - * Copyright © 2017 jjYBdx4IL (https://github.com/jjYBdx4IL) - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -package com.github.continuedev.continueintellijextension.utils - -import org.apache.commons.lang3.SystemUtils -import org.slf4j.LoggerFactory -import java.io.File -import java.io.IOException -import java.net.URI - -object Desktop { - private val LOG = LoggerFactory.getLogger(Desktop::class.java) - - fun browse(uri: URI): Boolean { - if (browseDESKTOP(uri)) { - return true - } - - if (openSystemSpecific(uri.toString())) { - return true - } - - LOG.warn("failed to browse {}", uri) - return false - } - - fun open(file: File): Boolean { - if (openDESKTOP(file)) { - return true - } - - if (openSystemSpecific(file.path)) { - return true - } - - LOG.warn("failed to open {}", file.absolutePath) - return false - } - - fun edit(file: File): Boolean { - if (editDESKTOP(file)) { - return true - } - - if (openSystemSpecific(file.path)) { - return true - } - - LOG.warn("failed to edit {}", file.absolutePath) - return false - } - - private fun openSystemSpecific(what: String): Boolean { - if (SystemUtils.IS_OS_LINUX) { - if (isXDG() && runCommand("xdg-open", "%s", what)) { - return true - } - if (isKDE() && runCommand("kde-open", "%s", what)) { - return true - } - if (isGNOME() && runCommand("gnome-open", "%s", what)) { - return true - } - if (runCommand("kde-open", "%s", what)) { - return true - } - if (runCommand("gnome-open", "%s", what)) { - return true - } - } - - if (SystemUtils.IS_OS_MAC && runCommand("open", "%s", what)) { - return true - } - - if (SystemUtils.IS_OS_WINDOWS && runCommand("explorer", "%s", what)) { - return true - } - - return false - } - - private fun browseDESKTOP(uri: URI): Boolean { - return try { - if (!java.awt.Desktop.isDesktopSupported()) { - LOG.debug("Platform is not supported.") - return false - } - - if (!java.awt.Desktop.getDesktop().isSupported(java.awt.Desktop.Action.BROWSE)) { - LOG.debug("BROWSE is not supported.") - return false - } - - LOG.info("Trying to use Desktop.getDesktop().browse() with {}", uri.toString()) - java.awt.Desktop.getDesktop().browse(uri) - true - } catch (t: Throwable) { - LOG.error("Error using desktop browse.", t) - false - } - } - - private fun openDESKTOP(file: File): Boolean { - return try { - if (!java.awt.Desktop.isDesktopSupported()) { - LOG.debug("Platform is not supported.") - return false - } - - if (!java.awt.Desktop.getDesktop().isSupported(java.awt.Desktop.Action.OPEN)) { - LOG.debug("OPEN is not supported.") - return false - } - - LOG.info("Trying to use Desktop.getDesktop().open() with {}", file.toString()) - java.awt.Desktop.getDesktop().open(file) - true - } catch (t: Throwable) { - LOG.error("Error using desktop open.", t) - false - } - } - - private fun editDESKTOP(file: File): Boolean { - return try { - if (!java.awt.Desktop.isDesktopSupported()) { - LOG.debug("Platform is not supported.") - return false - } - - if (!java.awt.Desktop.getDesktop().isSupported(java.awt.Desktop.Action.EDIT)) { - LOG.debug("EDIT is not supported.") - return false - } - - LOG.info("Trying to use Desktop.getDesktop().edit() with {}", file) - java.awt.Desktop.getDesktop().edit(file) - true - } catch (t: Throwable) { - LOG.error("Error using desktop edit.", t) - false - } - } - - private fun runCommand(command: String, args: String, file: String): Boolean { - LOG.info("Trying to exec:\n cmd = {}\n args = {}\n %s = {}", command, args, file) - - val parts = prepareCommand(command, args, file) - - return try { - val p = Runtime.getRuntime().exec(parts) - if (p == null) { - false - } else { - try { - val retval = p.exitValue() - if (retval == 0) { - LOG.error("Process ended immediately.") - false - } else { - LOG.error("Process crashed.") - false - } - } catch (itse: IllegalThreadStateException) { - LOG.error("Process is running.") - true - } - } - } catch (e: IOException) { - LOG.error("Error running command.", e) - false - } - } - - private fun prepareCommand(command: String, args: String?, file: String): Array { - val parts = mutableListOf() - parts.add(command) - - args?.split(" ")?.forEach { s -> - parts.add(String.format(s, file).trim()) - } - - return parts.toTypedArray() - } - - private fun isXDG(): Boolean { - val xdgSessionId = System.getenv("XDG_SESSION_ID") - return !xdgSessionId.isNullOrEmpty() - } - - private fun isGNOME(): Boolean { - val gdmSession = System.getenv("GDMSESSION") - return gdmSession?.lowercase()?.contains("gnome") == true - } - - private fun isKDE(): Boolean { - val gdmSession = System.getenv("GDMSESSION") - return gdmSession?.lowercase()?.contains("kde") == true - } -} \ No newline at end of file From 8d90c76e6558fef9148cd196130d41e83c78719f Mon Sep 17 00:00:00 2001 From: uinstinct <61635505+uinstinct@users.noreply.github.com> Date: Wed, 25 Jun 2025 19:31:51 +0530 Subject: [PATCH 58/91] refactor to `getToolsForIde` function --- core/config/yaml/loadYaml.ts | 8 ++------ core/tools/index.ts | 13 +++++++++---- 2 files changed, 11 insertions(+), 10 deletions(-) diff --git a/core/config/yaml/loadYaml.ts b/core/config/yaml/loadYaml.ts index 094856cde..ba17eae78 100644 --- a/core/config/yaml/loadYaml.ts +++ b/core/config/yaml/loadYaml.ts @@ -39,7 +39,7 @@ import { GlobalContext } from "../../util/GlobalContext"; import { modifyAnyConfigWithSharedConfig } from "../sharedConfig"; import { getControlPlaneEnvSync } from "../../control-plane/env"; -import { baseToolDefinitions, remoteToolDefinitions } from "../../tools"; +import { getToolsForIde } from "../../tools"; import { getCleanUriPath } from "../../util/uri"; import { getAllDotContinueDefinitionFiles } from "../loadLocalAssistants"; import { LocalPlatformClient } from "./LocalPlatformClient"; @@ -187,11 +187,7 @@ async function configYamlToContinueConfig(options: { const continueConfig: ContinueConfig = { slashCommands: [], - tools: [ - ...((await ide.isWorkspaceRemote()) - ? remoteToolDefinitions - : baseToolDefinitions), - ], + tools: await getToolsForIde(ide), mcpServerStatuses: [], contextProviders: [], modelsByRole: { diff --git a/core/tools/index.ts b/core/tools/index.ts index b46569344..da6112628 100644 --- a/core/tools/index.ts +++ b/core/tools/index.ts @@ -1,4 +1,4 @@ -import { ConfigDependentToolParams, Tool } from ".."; +import { ConfigDependentToolParams, IDE, Tool } from ".."; import { createNewFileTool } from "./definitions/createNewFile"; import { createRuleBlock } from "./definitions/createRuleBlock"; import { editFileTool } from "./definitions/editFile"; @@ -13,7 +13,9 @@ import { runTerminalCommandTool } from "./definitions/runTerminalCommand"; import { searchWebTool } from "./definitions/searchWeb"; import { viewDiffTool } from "./definitions/viewDiff"; -export const remoteToolDefinitions = [ +export const localOnlyToolDefinitions = [grepSearchTool]; + +export const baseToolDefinitions = [ readFileTool, editFileTool, createNewFileTool, @@ -30,8 +32,11 @@ export const remoteToolDefinitions = [ // viewRepoMapTool, ]; -export const baseToolDefinitions = [...remoteToolDefinitions, grepSearchTool]; - export const getConfigDependentToolDefinitions = ( params: ConfigDependentToolParams, ): Tool[] => [requestRuleTool(params)]; + +export const getToolsForIde = async (ide: IDE) => + (await ide.isWorkspaceRemote()) + ? baseToolDefinitions + : [...baseToolDefinitions, ...localOnlyToolDefinitions]; From 7df9c92d39bc68e83b0ddd2510364dfcf3ccf53a Mon Sep 17 00:00:00 2001 From: uinstinct <61635505+uinstinct@users.noreply.github.com> Date: Wed, 25 Jun 2025 19:47:51 +0530 Subject: [PATCH 59/91] add a script file to spawn a docker container --- scripts/create-docker-ssh-container.sh | 35 ++++++++++++++++++++++++++ 1 file changed, 35 insertions(+) create mode 100755 scripts/create-docker-ssh-container.sh diff --git a/scripts/create-docker-ssh-container.sh b/scripts/create-docker-ssh-container.sh new file mode 100755 index 000000000..ecdbf21ee --- /dev/null +++ b/scripts/create-docker-ssh-container.sh @@ -0,0 +1,35 @@ +# create the docker file + +cat > Dockerfile << 'EOF' +FROM ubuntu:latest +ENV DEBIAN_FRONTEND=noninteractive +# Install SSH server +RUN apt-get update && apt-get install -y openssh-server +# Configure SSH +RUN mkdir /var/run/sshd +RUN echo 'root:my_password' | chpasswd +# Allow root login +RUN sed -i 's/#PermitRootLogin prohibit-password/PermitRootLogin yes/' /etc/ssh/sshd_config +# SSH login fix +RUN sed 's@session\s*required\s*pam_loginuid.so@session optional pam_loginuid.so@g' -i /etc/pam.d/sshd +EXPOSE 22 +CMD ["/usr/sbin/sshd", "-D"] +EOF + +docker build -t continue-ubuntu-ssh . # build the image + +rm Dockerfile # remove the created Dockerfile + +container_name="continue-ssh-container" + +docker run -d -p 2222:22 --name $container_name continue-ubuntu-ssh # run the container + +echo "docker container ${container_name} running on port 2222" + +# add the instructions +bold=$(tput bold) +normal=$(tput sgr0) + +echo "\n--------------------------------------" +echo "now ssh into vscode (using remote explorer) with the following command: ${bold}ssh root@localhost -p 2222${normal}" +echo "use the following password - \"${bold}my_password${normal}\"" From 5db1bef85dbf19142274b51563772f562d3dfa04 Mon Sep 17 00:00:00 2001 From: uinstinct <61635505+uinstinct@users.noreply.github.com> Date: Wed, 25 Jun 2025 21:01:05 +0530 Subject: [PATCH 60/91] add upstream issue link --- core/tools/index.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/core/tools/index.ts b/core/tools/index.ts index da6112628..daf40c7e0 100644 --- a/core/tools/index.ts +++ b/core/tools/index.ts @@ -13,6 +13,7 @@ import { runTerminalCommandTool } from "./definitions/runTerminalCommand"; import { searchWebTool } from "./definitions/searchWeb"; import { viewDiffTool } from "./definitions/viewDiff"; +// missing support for remote os calls: https://github.com/microsoft/vscode/issues/252269 export const localOnlyToolDefinitions = [grepSearchTool]; export const baseToolDefinitions = [ From 22adae61570910c6abaa13621167845ff7cc65c9 Mon Sep 17 00:00:00 2001 From: Tomasz Stefaniak Date: Wed, 25 Jun 2025 15:43:14 -0700 Subject: [PATCH 61/91] fix: pathname generation --- packages/openai-adapters/src/apis/Azure.ts | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/packages/openai-adapters/src/apis/Azure.ts b/packages/openai-adapters/src/apis/Azure.ts index bbff66592..4d161c843 100644 --- a/packages/openai-adapters/src/apis/Azure.ts +++ b/packages/openai-adapters/src/apis/Azure.ts @@ -63,7 +63,11 @@ export class AzureApi extends OpenAIApi { "`env.apiVersion` is a required configuration property for Azure OpenAI", ); } - url.pathname = `${url.pathname}/openai/deployments/${config.env.deployment}`; + + const basePathname = `openai/deployments/${config.env.deployment}`; + + url.pathname = + url.pathname === "/" ? basePathname : `${url.pathname}/${basePathname}`; queryParams["api-version"] = config.env.apiVersion; } From 066c595ed71e54d7bce374fa984bf69dfa28cefb Mon Sep 17 00:00:00 2001 From: Tomasz Stefaniak Date: Wed, 25 Jun 2025 15:44:20 -0700 Subject: [PATCH 62/91] test: azure pathname --- .../openai-adapters/src/test/main.test.ts | 76 +++++++++++++++++++ 1 file changed, 76 insertions(+) diff --git a/packages/openai-adapters/src/test/main.test.ts b/packages/openai-adapters/src/test/main.test.ts index 1d68a7782..2c8d779b9 100644 --- a/packages/openai-adapters/src/test/main.test.ts +++ b/packages/openai-adapters/src/test/main.test.ts @@ -173,4 +173,80 @@ describe("Configuration", () => { "https://api.example.com", ); }); + + it("should configure Azure OpenAI client with root URL and trailing slash", () => { + const azure = constructLlmApi({ + provider: "azure", + apiKey: "sk-xxx", + apiBase: "https://test-azure-openai.azure.com/", + env: { + deployment: "gpt-4.1", + apiType: "azure-openai", + apiVersion: "2023-05-15", + }, + }); + + // The Azure client modifies the baseURL to include the deployment + expect((azure as OpenAIApi).openai.baseURL).toBe( + "https://test-azure-openai.azure.com/openai/deployments/gpt-4.1", + ); + expect((azure as OpenAIApi).openai.apiKey).toBe("sk-xxx"); + }); + + it("should configure Azure OpenAI client with path and trailing slash", () => { + const azure = constructLlmApi({ + provider: "azure", + apiKey: "sk-xxx", + apiBase: "https://test-azure-openai.azure.com/v1/", + env: { + deployment: "gpt-4.1", + apiType: "azure-openai", + apiVersion: "2023-05-15", + }, + }); + + // The Azure client modifies the baseURL to include the deployment + expect((azure as OpenAIApi).openai.baseURL).toBe( + "https://test-azure-openai.azure.com/v1/openai/deployments/gpt-4.1", + ); + expect((azure as OpenAIApi).openai.apiKey).toBe("sk-xxx"); + }); + + it("should configure Azure OpenAI client with root URL and no trailing slash", () => { + const azure = constructLlmApi({ + provider: "azure", + apiKey: "sk-xxx", + apiBase: "https://test-azure-openai.azure.com", + env: { + deployment: "gpt-4.1", + apiType: "azure-openai", + apiVersion: "2023-05-15", + }, + }); + + // The Azure client modifies the baseURL to include the deployment + expect((azure as OpenAIApi).openai.baseURL).toBe( + "https://test-azure-openai.azure.com/openai/deployments/gpt-4.1", + ); + expect((azure as OpenAIApi).openai.apiKey).toBe("sk-xxx"); + }); + + it("should configure Azure OpenAI client with path and no trailing slash", () => { + const azure = constructLlmApi({ + provider: "azure", + apiKey: "sk-xxx", + apiBase: "https://test-azure-openai.azure.com/v1", + env: { + deployment: "gpt-4.1", + apiType: "azure-openai", + apiVersion: "2023-05-15", + }, + }); + + // The Azure client modifies the baseURL to include the deployment + expect((azure as OpenAIApi).openai.baseURL).toBe( + "https://test-azure-openai.azure.com/v1/openai/deployments/gpt-4.1", + ); + expect((azure as OpenAIApi).openai.apiKey).toBe("sk-xxx"); + }); }); From 5e166803f6930b0f66ed49553157ca6e0964dd52 Mon Sep 17 00:00:00 2001 From: Patrick Erichsen Date: Wed, 25 Jun 2025 16:00:44 -0700 Subject: [PATCH 63/91] feat: bump oai version --- core/package-lock.json | 11 ++++++++--- core/package.json | 2 +- packages/openai-adapters/package-lock.json | 4 ++-- packages/openai-adapters/package.json | 2 +- 4 files changed, 12 insertions(+), 7 deletions(-) diff --git a/core/package-lock.json b/core/package-lock.json index d33a32ab4..4c7419178 100644 --- a/core/package-lock.json +++ b/core/package-lock.json @@ -16,7 +16,7 @@ "@continuedev/config-yaml": "file:../packages/config-yaml", "@continuedev/fetch": "^1.0.14", "@continuedev/llm-info": "^1.0.8", - "@continuedev/openai-adapters": "file:../packages/openai-adapters", + "@continuedev/openai-adapters": "1.0.42", "@modelcontextprotocol/sdk": "^1.12.0", "@mozilla/readability": "^0.5.0", "@octokit/rest": "^20.1.1", @@ -139,7 +139,7 @@ }, "../packages/config-yaml": { "name": "@continuedev/config-yaml", - "version": "1.0.94", + "version": "1.0.95", "license": "Apache-2.0", "dependencies": { "@continuedev/config-types": "^1.0.14", @@ -150,10 +150,15 @@ "config-yaml": "dist/cli.js" }, "devDependencies": { + "@semantic-release/changelog": "^6.0.3", + "@semantic-release/git": "^10.0.1", + "@semantic-release/github": "^9.2.6", + "@semantic-release/npm": "^10.0.6", "@types/jest": "^29.5.14", "@types/node": "^20.0.0", "cross-env": "^7.0.3", "jest": "^29.7.0", + "semantic-release": "^21.1.2", "ts-jest": "^29.2.3", "ts-node": "^10.9.2", "zod-to-json-schema": "^3.24.5" @@ -161,7 +166,7 @@ }, "../packages/openai-adapters": { "name": "@continuedev/openai-adapters", - "version": "1.0.40", + "version": "1.0.42", "license": "Apache-2.0", "dependencies": { "@continuedev/config-types": "^1.0.5", diff --git a/core/package.json b/core/package.json index df74064a8..26278e318 100644 --- a/core/package.json +++ b/core/package.json @@ -53,7 +53,7 @@ "@continuedev/config-yaml": "file:../packages/config-yaml", "@continuedev/fetch": "^1.0.14", "@continuedev/llm-info": "^1.0.8", - "@continuedev/openai-adapters": "file:../packages/openai-adapters", + "@continuedev/openai-adapters": "1.0.42", "@modelcontextprotocol/sdk": "^1.12.0", "@mozilla/readability": "^0.5.0", "@octokit/rest": "^20.1.1", diff --git a/packages/openai-adapters/package-lock.json b/packages/openai-adapters/package-lock.json index c114ee618..a5b0b7f94 100644 --- a/packages/openai-adapters/package-lock.json +++ b/packages/openai-adapters/package-lock.json @@ -1,12 +1,12 @@ { "name": "@continuedev/openai-adapters", - "version": "1.0.40", + "version": "1.0.42", "lockfileVersion": 3, "requires": true, "packages": { "": { "name": "@continuedev/openai-adapters", - "version": "1.0.40", + "version": "1.0.42", "license": "Apache-2.0", "dependencies": { "@continuedev/config-types": "^1.0.5", diff --git a/packages/openai-adapters/package.json b/packages/openai-adapters/package.json index dbbb23789..0b807411a 100644 --- a/packages/openai-adapters/package.json +++ b/packages/openai-adapters/package.json @@ -1,6 +1,6 @@ { "name": "@continuedev/openai-adapters", - "version": "1.0.40", + "version": "1.0.42", "description": "", "main": "dist/index.js", "types": "dist/index.d.ts", From 11c4c1b96b50faf8f088473479d3d92db1da6ec4 Mon Sep 17 00:00:00 2001 From: Patrick Erichsen Date: Wed, 25 Jun 2025 16:02:49 -0700 Subject: [PATCH 64/91] feat: bump extension versions --- extensions/intellij/gradle.properties | 2 +- extensions/vscode/package.json | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/extensions/intellij/gradle.properties b/extensions/intellij/gradle.properties index 15326353d..4248e25a9 100644 --- a/extensions/intellij/gradle.properties +++ b/extensions/intellij/gradle.properties @@ -3,7 +3,7 @@ pluginGroup=com.github.continuedev.continueintellijextension pluginName=continue-intellij-extension pluginRepositoryUrl=https://github.com/continuedev/continue # SemVer format -> https://semver.org -pluginVersion=1.0.25 +pluginVersion=1.0.26 # Supported build number ranges and IntelliJ Platform versions -> https://plugins.jetbrains.com/docs/intellij/build-number-ranges.html pluginSinceBuild=223 # IntelliJ Platform Properties -> https://plugins.jetbrains.com/docs/intellij/tools-gradle-intellij-plugin.html#configuration-intellij-extension diff --git a/extensions/vscode/package.json b/extensions/vscode/package.json index 01253be49..f37fe5139 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": "1.1.51", + "version": "1.1.52", "repository": { "type": "git", "url": "https://github.com/continuedev/continue" From b8af0662da16976884b61574dc4d72d01c7987e3 Mon Sep 17 00:00:00 2001 From: Dallin Romney Date: Wed, 25 Jun 2025 16:32:52 -0700 Subject: [PATCH 65/91] remove extraneous chatmessage type --- gui/src/context/MockIdeMessenger.ts | 3 +-- gui/src/pages/gui/chat-tests/EditToolScenarios | 0 gui/src/pages/gui/chat-tests/EditToolScenarios.test.tsx | 1 - gui/src/redux/store.ts | 5 ----- 4 files changed, 1 insertion(+), 8 deletions(-) create mode 100644 gui/src/pages/gui/chat-tests/EditToolScenarios delete mode 100644 gui/src/pages/gui/chat-tests/EditToolScenarios.test.tsx diff --git a/gui/src/context/MockIdeMessenger.ts b/gui/src/context/MockIdeMessenger.ts index bc46aebc0..3d9907e68 100644 --- a/gui/src/context/MockIdeMessenger.ts +++ b/gui/src/context/MockIdeMessenger.ts @@ -1,4 +1,4 @@ -import { IDE, PromptLog } from "core"; +import { ChatMessage, IDE, PromptLog } from "core"; import { AuthType } from "core/control-plane/AuthTypes"; import { FromIdeProtocol, @@ -13,7 +13,6 @@ import { GeneratorYieldType, WebviewSingleProtocolMessage, } from "core/protocol/util"; -import { ChatMessage } from "../redux/store"; import { IIdeMessenger } from "./IdeMessenger"; async function defaultMockHandleMessage( diff --git a/gui/src/pages/gui/chat-tests/EditToolScenarios b/gui/src/pages/gui/chat-tests/EditToolScenarios new file mode 100644 index 000000000..e69de29bb diff --git a/gui/src/pages/gui/chat-tests/EditToolScenarios.test.tsx b/gui/src/pages/gui/chat-tests/EditToolScenarios.test.tsx deleted file mode 100644 index 8b1378917..000000000 --- a/gui/src/pages/gui/chat-tests/EditToolScenarios.test.tsx +++ /dev/null @@ -1 +0,0 @@ - diff --git a/gui/src/redux/store.ts b/gui/src/redux/store.ts index 542ee7ffc..10ecdd2e5 100644 --- a/gui/src/redux/store.ts +++ b/gui/src/redux/store.ts @@ -23,11 +23,6 @@ import sessionReducer from "./slices/sessionSlice"; import tabsReducer from "./slices/tabsSlice"; import uiReducer from "./slices/uiSlice"; -export interface ChatMessage { - role: "system" | "user" | "assistant"; - content: string; -} - const rootReducer = combineReducers({ session: sessionReducer, ui: uiReducer, From 15c672c16fbab745b949eae9f0f2d1a8df95192c Mon Sep 17 00:00:00 2001 From: adarshramiyer Date: Wed, 25 Jun 2025 17:48:27 -0700 Subject: [PATCH 66/91] tool usage data schemas --- .../src/schemas/data/toolUsage/index.ts | 10 ++++++++ .../src/schemas/data/toolUsage/v0.2.0.ts | 25 +++++++++++++++++++ 2 files changed, 35 insertions(+) create mode 100644 packages/config-yaml/src/schemas/data/toolUsage/index.ts create mode 100644 packages/config-yaml/src/schemas/data/toolUsage/v0.2.0.ts diff --git a/packages/config-yaml/src/schemas/data/toolUsage/index.ts b/packages/config-yaml/src/schemas/data/toolUsage/index.ts new file mode 100644 index 000000000..25f650218 --- /dev/null +++ b/packages/config-yaml/src/schemas/data/toolUsage/index.ts @@ -0,0 +1,10 @@ +import { z } from "zod"; +import { baseDevDataAllSchema } from "../base.js"; + +export const toolUsageEventAllSchema = baseDevDataAllSchema.extend({ + toolCallId: z.string(), + functionName: z.string(), + functionArgs: z.string(), + parsedArgs: z.any(), + output: z.array(z.any()).optional(), +}); diff --git a/packages/config-yaml/src/schemas/data/toolUsage/v0.2.0.ts b/packages/config-yaml/src/schemas/data/toolUsage/v0.2.0.ts new file mode 100644 index 000000000..445a7311d --- /dev/null +++ b/packages/config-yaml/src/schemas/data/toolUsage/v0.2.0.ts @@ -0,0 +1,25 @@ +import { toolUsageEventAllSchema } from "./index.js"; + +export const toolUsageEventSchema_0_2_0 = toolUsageEventAllSchema.pick({ + // base + timestamp: true, + userId: true, + userAgent: true, + selectedProfileId: true, + eventName: true, + schema: true, + + // tool-usage-specific + toolCallId: true, + functionName: true, + functionArgs: true, + parsedArgs: true, + output: true, +}); + +export const autocompleteEventSchema_0_2_0_noCode = + toolUsageEventSchema_0_2_0.omit({ + functionArgs: true, + parsedArgs: true, + output: true, + }); From 4d47e91f671d669621a7c91df1140c74cc86d4f1 Mon Sep 17 00:00:00 2001 From: Patrick Erichsen Date: Wed, 25 Jun 2025 18:11:15 -0700 Subject: [PATCH 67/91] chore: bump package-lock.json files --- binary/package-lock.json | 6 ++---- extensions/vscode/package-lock.json | 8 ++++---- gui/package-lock.json | 11 ++++++++--- packages/config-yaml/package-lock.json | 4 ++-- 4 files changed, 16 insertions(+), 13 deletions(-) diff --git a/binary/package-lock.json b/binary/package-lock.json index ead2d8b83..aa334d30e 100644 --- a/binary/package-lock.json +++ b/binary/package-lock.json @@ -53,9 +53,9 @@ "@aws-sdk/credential-providers": "^3.778.0", "@continuedev/config-types": "^1.0.13", "@continuedev/config-yaml": "file:../packages/config-yaml", - "@continuedev/fetch": "^1.0.13", + "@continuedev/fetch": "^1.0.14", "@continuedev/llm-info": "^1.0.8", - "@continuedev/openai-adapters": "^1.0.32", + "@continuedev/openai-adapters": "1.0.42", "@modelcontextprotocol/sdk": "^1.12.0", "@mozilla/readability": "^0.5.0", "@octokit/rest": "^20.1.1", @@ -106,7 +106,6 @@ "sqlite3": "^5.1.7", "system-ca": "^1.0.3", "tar": "^7.4.3", - "tree-sitter-structured-text": "^0.0.1", "tree-sitter-wasms": "^0.1.11", "uuid": "^9.0.1", "vectordb": "^0.4.20", @@ -145,7 +144,6 @@ "myers-diff": "^2.1.0", "onnxruntime-common": "1.14.0", "onnxruntime-web": "1.14.0", - "tree-sitter-cli": "^0.22.5", "ts-jest": "^29.1.1", "typescript": "^5.6.3", "vitest": "^3.1.4" diff --git a/extensions/vscode/package-lock.json b/extensions/vscode/package-lock.json index 9ebbad2d0..29de81832 100644 --- a/extensions/vscode/package-lock.json +++ b/extensions/vscode/package-lock.json @@ -1,12 +1,12 @@ { "name": "continue", - "version": "1.1.50", + "version": "1.1.52", "lockfileVersion": 3, "requires": true, "packages": { "": { "name": "continue", - "version": "1.1.50", + "version": "1.1.52", "license": "Apache-2.0", "dependencies": { "@continuedev/config-types": "^1.0.14", @@ -108,9 +108,9 @@ "@aws-sdk/credential-providers": "^3.778.0", "@continuedev/config-types": "^1.0.13", "@continuedev/config-yaml": "file:../packages/config-yaml", - "@continuedev/fetch": "^1.0.13", + "@continuedev/fetch": "^1.0.14", "@continuedev/llm-info": "^1.0.8", - "@continuedev/openai-adapters": "file:../packages/openai-adapters", + "@continuedev/openai-adapters": "1.0.42", "@modelcontextprotocol/sdk": "^1.12.0", "@mozilla/readability": "^0.5.0", "@octokit/rest": "^20.1.1", diff --git a/gui/package-lock.json b/gui/package-lock.json index 62eea45da..5cbf9ede7 100644 --- a/gui/package-lock.json +++ b/gui/package-lock.json @@ -114,9 +114,9 @@ "@aws-sdk/credential-providers": "^3.778.0", "@continuedev/config-types": "^1.0.13", "@continuedev/config-yaml": "file:../packages/config-yaml", - "@continuedev/fetch": "^1.0.13", + "@continuedev/fetch": "^1.0.14", "@continuedev/llm-info": "^1.0.8", - "@continuedev/openai-adapters": "file:../packages/openai-adapters", + "@continuedev/openai-adapters": "1.0.42", "@modelcontextprotocol/sdk": "^1.12.0", "@mozilla/readability": "^0.5.0", "@octokit/rest": "^20.1.1", @@ -215,7 +215,7 @@ }, "../packages/config-yaml": { "name": "@continuedev/config-yaml", - "version": "1.0.94", + "version": "1.0.95", "license": "Apache-2.0", "dependencies": { "@continuedev/config-types": "^1.0.14", @@ -226,10 +226,15 @@ "config-yaml": "dist/cli.js" }, "devDependencies": { + "@semantic-release/changelog": "^6.0.3", + "@semantic-release/git": "^10.0.1", + "@semantic-release/github": "^9.2.6", + "@semantic-release/npm": "^10.0.6", "@types/jest": "^29.5.14", "@types/node": "^20.0.0", "cross-env": "^7.0.3", "jest": "^29.7.0", + "semantic-release": "^21.1.2", "ts-jest": "^29.2.3", "ts-node": "^10.9.2", "zod-to-json-schema": "^3.24.5" diff --git a/packages/config-yaml/package-lock.json b/packages/config-yaml/package-lock.json index 7f2b8b2f2..014ecac95 100644 --- a/packages/config-yaml/package-lock.json +++ b/packages/config-yaml/package-lock.json @@ -1,12 +1,12 @@ { "name": "@continuedev/config-yaml", - "version": "1.0.94", + "version": "1.0.95", "lockfileVersion": 3, "requires": true, "packages": { "": { "name": "@continuedev/config-yaml", - "version": "1.0.94", + "version": "1.0.95", "license": "Apache-2.0", "dependencies": { "@continuedev/config-types": "^1.0.14", From 9b4ec0a3a4de319fa2d148146c7e852489ba55b0 Mon Sep 17 00:00:00 2001 From: adarshramiyer Date: Wed, 25 Jun 2025 18:30:26 -0700 Subject: [PATCH 68/91] finished out tool usage dev data logging --- gui/src/redux/slices/sessionSlice.ts | 23 +++++++++++++++++++ .../config-yaml/src/schemas/data/index.ts | 8 +++++++ .../src/schemas/data/toolUsage/index.ts | 1 + .../src/schemas/data/toolUsage/v0.2.0.ts | 3 ++- 4 files changed, 34 insertions(+), 1 deletion(-) diff --git a/gui/src/redux/slices/sessionSlice.ts b/gui/src/redux/slices/sessionSlice.ts index 6803947fb..50ff37320 100644 --- a/gui/src/redux/slices/sessionSlice.ts +++ b/gui/src/redux/slices/sessionSlice.ts @@ -18,7 +18,9 @@ import { RuleWithSource, Session, SessionMetadata, + ToolCallState, } from "core"; +import { safeParseToolCallArgs } from "core/tools/parseArgs"; import { NEW_SESSION_TITLE } from "core/util/constants"; import { renderChatMessage } from "core/util/messageContent"; import { findUriInDirs, getUriPathBasename } from "core/util/uri"; @@ -28,6 +30,25 @@ import { RootState } from "../store"; import { streamResponseThunk } from "../thunks/streamResponse"; import { findCurrentToolCall, findToolCall } from "../util"; +const getIdeMessenger = () => (window as any).ideMessenger; + +const logToolUsage = (toolCallState: ToolCallState, success: boolean) => { + const ideMessenger = getIdeMessenger(); + if (ideMessenger) { + ideMessenger.post("devdata/log", { + name: "toolUsage", + data: { + toolCallId: toolCallState.toolCallId, + functionName: toolCallState.toolCall.function.name, + functionArgs: toolCallState.toolCall.function.arguments, + parsedArgs: safeParseToolCallArgs(toolCallState.toolCall), + succeeded: success, + output: toolCallState.output || [], + }, + }); + } +}; + // 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. export type ChatHistoryItemWithMessageId = ChatHistoryItem & { @@ -559,6 +580,7 @@ export const sessionSlice = createSlice({ ); if (toolCallState) { toolCallState.status = "errored"; + logToolUsage(toolCallState, false); } }, acceptToolCall: ( @@ -573,6 +595,7 @@ export const sessionSlice = createSlice({ ); if (toolCallState) { toolCallState.status = "done"; + logToolUsage(toolCallState, true); } }, setToolCallCalling: ( diff --git a/packages/config-yaml/src/schemas/data/index.ts b/packages/config-yaml/src/schemas/data/index.ts index 7251e12a7..679227c52 100644 --- a/packages/config-yaml/src/schemas/data/index.ts +++ b/packages/config-yaml/src/schemas/data/index.ts @@ -42,6 +42,11 @@ import { tokensGeneratedEventSchema_0_2_0, tokensGeneratedEventSchema_0_2_0_noCode, } from "./tokensGenerated/v0.2.0.js"; +import { toolUsageEventAllSchema } from "./toolUsage/index.js"; +import { + toolUsageEventSchema_0_2_0, + toolUsageEventSchema_0_2_0_noCode, +} from "./toolUsage/v0.2.0.js"; const semverRegex = /^(0|[1-9]\d*)\.(0|[1-9]\d*)\.(0|[1-9]\d*)(?:-((?:0|[1-9A-Za-z-][0-9A-Za-z-]*)(?:\.(?:0|[1-9A-Za-z-][0-9A-Za-z-]*))*))?(?:\+([0-9A-Za-z-]+(?:\.[0-9A-Za-z-]+)*))?$/; @@ -72,6 +77,7 @@ const devEventAllVersionDataSchemas = z.object({ tokensGenerated: tokensGeneratedEventAllSchema, chatInteraction: chatInteractionEventAllSchema, editInteraction: editInteractionEventAllSchema, + toolUsage: toolUsageEventAllSchema, }); // Version and level specific schemas are organized here @@ -97,6 +103,7 @@ export const devDataVersionedSchemas = { tokensGenerated: tokensGeneratedEventSchema_0_2_0, chatInteraction: chatInteractionEventSchema_0_2_0, editInteraction: editInteractionEventSchema_0_2_0, + toolUsage: toolUsageEventSchema_0_2_0, }, noCode: { autocomplete: autocompleteEventSchema_0_2_0_noCode, @@ -104,6 +111,7 @@ export const devDataVersionedSchemas = { tokensGenerated: tokensGeneratedEventSchema_0_2_0_noCode, chatInteraction: chatInteractionEventSchema_0_2_0_noCode, editInteraction: editInteractionEventSchema_0_2_0_noCode, + toolUsage: toolUsageEventSchema_0_2_0_noCode, }, }, }; diff --git a/packages/config-yaml/src/schemas/data/toolUsage/index.ts b/packages/config-yaml/src/schemas/data/toolUsage/index.ts index 25f650218..8119366f3 100644 --- a/packages/config-yaml/src/schemas/data/toolUsage/index.ts +++ b/packages/config-yaml/src/schemas/data/toolUsage/index.ts @@ -6,5 +6,6 @@ export const toolUsageEventAllSchema = baseDevDataAllSchema.extend({ functionName: z.string(), functionArgs: z.string(), parsedArgs: z.any(), + succeeded: z.boolean(), output: z.array(z.any()).optional(), }); diff --git a/packages/config-yaml/src/schemas/data/toolUsage/v0.2.0.ts b/packages/config-yaml/src/schemas/data/toolUsage/v0.2.0.ts index 445a7311d..533e33218 100644 --- a/packages/config-yaml/src/schemas/data/toolUsage/v0.2.0.ts +++ b/packages/config-yaml/src/schemas/data/toolUsage/v0.2.0.ts @@ -14,10 +14,11 @@ export const toolUsageEventSchema_0_2_0 = toolUsageEventAllSchema.pick({ functionName: true, functionArgs: true, parsedArgs: true, + succeeded: true, output: true, }); -export const autocompleteEventSchema_0_2_0_noCode = +export const toolUsageEventSchema_0_2_0_noCode = toolUsageEventSchema_0_2_0.omit({ functionArgs: true, parsedArgs: true, From e3dc391c052cbe18112640639264d726939cce02 Mon Sep 17 00:00:00 2001 From: Nate Date: Wed, 25 Jun 2025 18:42:34 -0700 Subject: [PATCH 69/91] build.sh and build.ps1 to build packages in CI --- .github/workflows/main.yaml | 8 ++++++++ build.ps1 | 13 +++++++++++++ build.sh | 13 +++++++++++++ core/package.json | 2 +- 4 files changed, 35 insertions(+), 1 deletion(-) create mode 100644 build.ps1 create mode 100644 build.sh diff --git a/.github/workflows/main.yaml b/.github/workflows/main.yaml index 0c300bf17..7f8411041 100644 --- a/.github/workflows/main.yaml +++ b/.github/workflows/main.yaml @@ -104,6 +104,14 @@ jobs: path: gui/node_modules key: ${{ runner.os }}-node-${{ hashFiles('gui/package-lock.json') }} + - name: Build packages (Windows) + run: build.ps1 + if: matrix.os == 'windows-latest' + + - name: Build packages (Unix) + run: ./build.sh + if: matrix.os != 'windows-latest' + - name: Install extension Dependencies run: | cd extensions/vscode diff --git a/build.ps1 b/build.ps1 new file mode 100644 index 000000000..cd415b3df --- /dev/null +++ b/build.ps1 @@ -0,0 +1,13 @@ +Push-Location packages + +Push-Location "openai-adapters" +npm ci +npm run build +Pop-Location + +Push-Location "config-yaml" +npm ci +npm run build +Pop-Location + +Pop-Location \ No newline at end of file diff --git a/build.sh b/build.sh new file mode 100644 index 000000000..fa6f62731 --- /dev/null +++ b/build.sh @@ -0,0 +1,13 @@ +# Build @continuedev packages for monorepo style linking + +cd packages +cd openai-adapters + +npm ci +npm run build + +cd .. +cd config-yaml + +npm ci +npm run build diff --git a/core/package.json b/core/package.json index 26278e318..df74064a8 100644 --- a/core/package.json +++ b/core/package.json @@ -53,7 +53,7 @@ "@continuedev/config-yaml": "file:../packages/config-yaml", "@continuedev/fetch": "^1.0.14", "@continuedev/llm-info": "^1.0.8", - "@continuedev/openai-adapters": "1.0.42", + "@continuedev/openai-adapters": "file:../packages/openai-adapters", "@modelcontextprotocol/sdk": "^1.12.0", "@mozilla/readability": "^0.5.0", "@octokit/rest": "^20.1.1", From 9d5d7e40a48ed9fbc9edf8b67619f96f3c704930 Mon Sep 17 00:00:00 2001 From: Nate Date: Wed, 25 Jun 2025 18:44:42 -0700 Subject: [PATCH 70/91] i --- core/package-lock.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/package-lock.json b/core/package-lock.json index 4c7419178..6fed1b052 100644 --- a/core/package-lock.json +++ b/core/package-lock.json @@ -16,7 +16,7 @@ "@continuedev/config-yaml": "file:../packages/config-yaml", "@continuedev/fetch": "^1.0.14", "@continuedev/llm-info": "^1.0.8", - "@continuedev/openai-adapters": "1.0.42", + "@continuedev/openai-adapters": "file:../packages/openai-adapters", "@modelcontextprotocol/sdk": "^1.12.0", "@mozilla/readability": "^0.5.0", "@octokit/rest": "^20.1.1", From cc05643684d6f508e68a36e4e88016c94e005580 Mon Sep 17 00:00:00 2001 From: Patrick Erichsen Date: Wed, 25 Jun 2025 19:16:36 -0700 Subject: [PATCH 71/91] chore: update preview.yaml with package build logic --- .github/workflows/main.yaml | 4 ++-- .github/workflows/preview.yaml | 8 ++++++++ extensions/vscode/package-lock.json | 2 +- gui/package-lock.json | 2 +- build.ps1 => scripts/build-packages.ps1 | 0 build.sh => scripts/build-packages.sh | 0 6 files changed, 12 insertions(+), 4 deletions(-) rename build.ps1 => scripts/build-packages.ps1 (100%) rename build.sh => scripts/build-packages.sh (100%) diff --git a/.github/workflows/main.yaml b/.github/workflows/main.yaml index 7f8411041..ce1e59e66 100644 --- a/.github/workflows/main.yaml +++ b/.github/workflows/main.yaml @@ -105,11 +105,11 @@ jobs: key: ${{ runner.os }}-node-${{ hashFiles('gui/package-lock.json') }} - name: Build packages (Windows) - run: build.ps1 + run: ./scripts/build-packages.ps1 if: matrix.os == 'windows-latest' - name: Build packages (Unix) - run: ./build.sh + run: ./scripts/build-packages.sh if: matrix.os != 'windows-latest' - name: Install extension Dependencies diff --git a/.github/workflows/preview.yaml b/.github/workflows/preview.yaml index 19dafeb41..3ef4920ed 100644 --- a/.github/workflows/preview.yaml +++ b/.github/workflows/preview.yaml @@ -99,6 +99,14 @@ jobs: path: gui/node_modules key: ${{ runner.os }}-node-${{ hashFiles('gui/package-lock.json') }} + - name: Build packages (Windows) + run: ./scripts/build-packages.ps1 + if: matrix.os == 'windows-latest' + + - name: Build packages (Unix) + run: ./scripts/build-packages.sh + if: matrix.os != 'windows-latest' + - name: Install extension Dependencies run: | cd extensions/vscode diff --git a/extensions/vscode/package-lock.json b/extensions/vscode/package-lock.json index 29de81832..7e3e3ff06 100644 --- a/extensions/vscode/package-lock.json +++ b/extensions/vscode/package-lock.json @@ -110,7 +110,7 @@ "@continuedev/config-yaml": "file:../packages/config-yaml", "@continuedev/fetch": "^1.0.14", "@continuedev/llm-info": "^1.0.8", - "@continuedev/openai-adapters": "1.0.42", + "@continuedev/openai-adapters": "file:../packages/openai-adapters", "@modelcontextprotocol/sdk": "^1.12.0", "@mozilla/readability": "^0.5.0", "@octokit/rest": "^20.1.1", diff --git a/gui/package-lock.json b/gui/package-lock.json index 5cbf9ede7..873415983 100644 --- a/gui/package-lock.json +++ b/gui/package-lock.json @@ -116,7 +116,7 @@ "@continuedev/config-yaml": "file:../packages/config-yaml", "@continuedev/fetch": "^1.0.14", "@continuedev/llm-info": "^1.0.8", - "@continuedev/openai-adapters": "1.0.42", + "@continuedev/openai-adapters": "file:../packages/openai-adapters", "@modelcontextprotocol/sdk": "^1.12.0", "@mozilla/readability": "^0.5.0", "@octokit/rest": "^20.1.1", diff --git a/build.ps1 b/scripts/build-packages.ps1 similarity index 100% rename from build.ps1 rename to scripts/build-packages.ps1 diff --git a/build.sh b/scripts/build-packages.sh similarity index 100% rename from build.sh rename to scripts/build-packages.sh From 0803fe7c258f4dd27be717b473f4e864d88a7a95 Mon Sep 17 00:00:00 2001 From: Patrick Erichsen Date: Wed, 25 Jun 2025 19:19:43 -0700 Subject: [PATCH 72/91] Update package-lock.json --- binary/package-lock.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/binary/package-lock.json b/binary/package-lock.json index aa334d30e..11eaadc8a 100644 --- a/binary/package-lock.json +++ b/binary/package-lock.json @@ -55,7 +55,7 @@ "@continuedev/config-yaml": "file:../packages/config-yaml", "@continuedev/fetch": "^1.0.14", "@continuedev/llm-info": "^1.0.8", - "@continuedev/openai-adapters": "1.0.42", + "@continuedev/openai-adapters": "file:../packages/openai-adapters", "@modelcontextprotocol/sdk": "^1.12.0", "@mozilla/readability": "^0.5.0", "@octokit/rest": "^20.1.1", From f75f0d253c30641bce6e62139768e3298b3f7aba Mon Sep 17 00:00:00 2001 From: Patrick Erichsen Date: Wed, 25 Jun 2025 21:50:37 -0700 Subject: [PATCH 73/91] chore: execute permission on build scripts --- scripts/build-packages.ps1 | 0 scripts/build-packages.sh | 0 2 files changed, 0 insertions(+), 0 deletions(-) mode change 100644 => 100755 scripts/build-packages.ps1 mode change 100644 => 100755 scripts/build-packages.sh diff --git a/scripts/build-packages.ps1 b/scripts/build-packages.ps1 old mode 100644 new mode 100755 diff --git a/scripts/build-packages.sh b/scripts/build-packages.sh old mode 100644 new mode 100755 From 5116eb2d92557d7a890dfc1bdf05a5d5a1047d0a Mon Sep 17 00:00:00 2001 From: uinstinct <61635505+uinstinct@users.noreply.github.com> Date: Thu, 26 Jun 2025 19:15:38 +0530 Subject: [PATCH 74/91] prevent focus out on mod backspace in chat area --- gui/src/pages/gui/Chat.tsx | 10 +++++----- gui/src/util/index.ts | 10 +++++----- 2 files changed, 10 insertions(+), 10 deletions(-) diff --git a/gui/src/pages/gui/Chat.tsx b/gui/src/pages/gui/Chat.tsx index 4a6d33849..6444dcb86 100644 --- a/gui/src/pages/gui/Chat.tsx +++ b/gui/src/pages/gui/Chat.tsx @@ -42,12 +42,12 @@ import { setDialogMessage, setShowDialog, } from "../../redux/slices/uiSlice"; -import { cancelStream } from "../../redux/thunks/cancelStream"; import { streamEditThunk } from "../../redux/thunks/edit"; import { loadLastSession } from "../../redux/thunks/session"; import { streamResponseThunk } from "../../redux/thunks/streamResponse"; import { isJetBrains, isMetaEquivalentKeyPressed } from "../../util"; +import { cancelStream } from "../../redux/thunks/cancelStream"; import { getLocalStorage, setLocalStorage } from "../../util/localStorage"; import { EmptyChatBody } from "./EmptyChatBody"; import { ExploreDialogWatcher } from "./ExploreDialogWatcher"; @@ -125,14 +125,14 @@ export function Chat() { useEffect(() => { // Cmd + Backspace to delete current step - const listener = (e: any) => { + const listener = (e: KeyboardEvent) => { if ( e.key === "Backspace" && (jetbrains ? e.altKey : isMetaEquivalentKeyPressed(e)) && !e.shiftKey ) { - dispatch(cancelStream()); - ideMessenger.post("rejectDiff", {}); // just always cancel, if not in applying won't matter + void dispatch(cancelStream()); + if (isInEdit) ideMessenger.post("rejectDiff", {}); } }; window.addEventListener("keydown", listener); @@ -140,7 +140,7 @@ export function Chat() { return () => { window.removeEventListener("keydown", listener); }; - }, [isStreaming, jetbrains]); + }, [isStreaming, jetbrains, isInEdit]); const { widget, highlights } = useFindWidget( stepsDivRef, diff --git a/gui/src/util/index.ts b/gui/src/util/index.ts index ccb1be1e6..dc581b51b 100644 --- a/gui/src/util/index.ts +++ b/gui/src/util/index.ts @@ -1,12 +1,12 @@ import { MessageModes, ModelDescription } from "core"; import { ProfileDescription } from "core/config/ProfileLifecycleManager"; -import _ from "lodash"; -import { KeyboardEvent } from "react"; -import { getLocalStorage } from "./localStorage"; import { - DEFAULT_CHAT_SYSTEM_MESSAGE, DEFAULT_AGENT_SYSTEM_MESSAGE, + DEFAULT_CHAT_SYSTEM_MESSAGE, } from "core/llm/constructMessages"; +import _ from "lodash"; +import { KeyboardEvent as ReactKeyboardEvent } from "react"; +import { getLocalStorage } from "./localStorage"; export type Platform = "mac" | "linux" | "windows" | "unknown"; @@ -26,7 +26,7 @@ export function getPlatform(): Platform { export function isMetaEquivalentKeyPressed({ metaKey, ctrlKey, -}: KeyboardEvent): boolean { +}: KeyboardEvent | ReactKeyboardEvent): boolean { const platform = getPlatform(); switch (platform) { case "mac": From 7c516f74689c17d0ac59d6e39c82dc7e0c659cdf Mon Sep 17 00:00:00 2001 From: Dallin Romney Date: Thu, 26 Jun 2025 10:32:50 -0700 Subject: [PATCH 75/91] chat integration tests --- extensions/vscode/package-lock.json | 6 +- gui/package-lock.json | 9 +- .../StepContainerPreToolbar/index.tsx | 1 + .../StyledMarkdownPreview/index.tsx | 23 ++- .../TipTapEditor/utils/editorConfig.ts | 4 +- gui/src/context/MockIdeMessenger.ts | 169 +++++++++------- gui/src/hooks/ParallelListeners.tsx | 69 +++++-- gui/src/pages/gui/Chat.test.tsx | 95 --------- gui/src/pages/gui/ToolCallDiv/EditFile.tsx | 27 +-- .../gui/chat-tests/ApplyScenarios.test.tsx | 50 ++--- gui/src/pages/gui/chat-tests/Chat.test.tsx | 61 ++++++ .../pages/gui/chat-tests/EditToolScenarios | 0 .../gui/chat-tests/EditToolScenarios.test.tsx | 180 ++++++++++++++++++ gui/src/pages/gui/chat-tests/utils.ts | 102 ++++++++++ gui/src/redux/slices/sessionSlice.ts | 4 +- gui/src/redux/thunks/callCurrentTool.ts | 5 +- gui/src/util/clientTools/editImpl.ts | 18 +- gui/src/util/test/config.ts | 44 ++--- gui/vite.config.ts | 13 ++ packages/config-yaml/package-lock.json | 4 +- 20 files changed, 582 insertions(+), 302 deletions(-) delete mode 100644 gui/src/pages/gui/Chat.test.tsx create mode 100644 gui/src/pages/gui/chat-tests/Chat.test.tsx delete mode 100644 gui/src/pages/gui/chat-tests/EditToolScenarios create mode 100644 gui/src/pages/gui/chat-tests/EditToolScenarios.test.tsx create mode 100644 gui/src/pages/gui/chat-tests/utils.ts diff --git a/extensions/vscode/package-lock.json b/extensions/vscode/package-lock.json index 9ebbad2d0..7c2c71f46 100644 --- a/extensions/vscode/package-lock.json +++ b/extensions/vscode/package-lock.json @@ -1,12 +1,12 @@ { "name": "continue", - "version": "1.1.50", + "version": "1.1.51", "lockfileVersion": 3, "requires": true, "packages": { "": { "name": "continue", - "version": "1.1.50", + "version": "1.1.51", "license": "Apache-2.0", "dependencies": { "@continuedev/config-types": "^1.0.14", @@ -108,7 +108,7 @@ "@aws-sdk/credential-providers": "^3.778.0", "@continuedev/config-types": "^1.0.13", "@continuedev/config-yaml": "file:../packages/config-yaml", - "@continuedev/fetch": "^1.0.13", + "@continuedev/fetch": "^1.0.14", "@continuedev/llm-info": "^1.0.8", "@continuedev/openai-adapters": "file:../packages/openai-adapters", "@modelcontextprotocol/sdk": "^1.12.0", diff --git a/gui/package-lock.json b/gui/package-lock.json index 62eea45da..873415983 100644 --- a/gui/package-lock.json +++ b/gui/package-lock.json @@ -114,7 +114,7 @@ "@aws-sdk/credential-providers": "^3.778.0", "@continuedev/config-types": "^1.0.13", "@continuedev/config-yaml": "file:../packages/config-yaml", - "@continuedev/fetch": "^1.0.13", + "@continuedev/fetch": "^1.0.14", "@continuedev/llm-info": "^1.0.8", "@continuedev/openai-adapters": "file:../packages/openai-adapters", "@modelcontextprotocol/sdk": "^1.12.0", @@ -215,7 +215,7 @@ }, "../packages/config-yaml": { "name": "@continuedev/config-yaml", - "version": "1.0.94", + "version": "1.0.95", "license": "Apache-2.0", "dependencies": { "@continuedev/config-types": "^1.0.14", @@ -226,10 +226,15 @@ "config-yaml": "dist/cli.js" }, "devDependencies": { + "@semantic-release/changelog": "^6.0.3", + "@semantic-release/git": "^10.0.1", + "@semantic-release/github": "^9.2.6", + "@semantic-release/npm": "^10.0.6", "@types/jest": "^29.5.14", "@types/node": "^20.0.0", "cross-env": "^7.0.3", "jest": "^29.7.0", + "semantic-release": "^21.1.2", "ts-jest": "^29.2.3", "ts-node": "^10.9.2", "zod-to-json-schema": "^3.24.5" diff --git a/gui/src/components/StyledMarkdownPreview/StepContainerPreToolbar/index.tsx b/gui/src/components/StyledMarkdownPreview/StepContainerPreToolbar/index.tsx index 0dd4ec7e8..a45fa18ba 100644 --- a/gui/src/components/StyledMarkdownPreview/StepContainerPreToolbar/index.tsx +++ b/gui/src/components/StyledMarkdownPreview/StepContainerPreToolbar/index.tsx @@ -293,6 +293,7 @@ export function StepContainerPreToolbar({
setIsExpanded(!isExpanded)} className={`text-lightgray h-3.5 w-3.5 flex-shrink-0 cursor-pointer hover:brightness-125 ${ isExpanded ? "rotate-0" : "-rotate-90" diff --git a/gui/src/components/StyledMarkdownPreview/index.tsx b/gui/src/components/StyledMarkdownPreview/index.tsx index 1d31852c7..bb286004f 100644 --- a/gui/src/components/StyledMarkdownPreview/index.tsx +++ b/gui/src/components/StyledMarkdownPreview/index.tsx @@ -15,6 +15,7 @@ import { import useUpdatingRef from "../../hooks/useUpdatingRef"; import { useAppSelector } from "../../redux/hooks"; import { selectUIConfig } from "../../redux/slices/configSlice"; +import { selectApplyStateByToolCallId } from "../../redux/slices/sessionSlice"; import { getContextItemsFromHistory } from "../../redux/thunks/updateFileSymbols"; import { getFontSize } from "../../util"; import { ToolTip } from "../gui/Tooltip"; @@ -126,7 +127,7 @@ interface StyledMarkdownPreviewProps { itemIndex?: number; useParentBackgroundColor?: boolean; disableManualApply?: boolean; - forceStreamId?: string; + toolCallId?: string; expandCodeblocks?: boolean; } @@ -196,11 +197,15 @@ const StyledMarkdownPreview = memo(function StyledMarkdownPreview( const itemIndexRef = useUpdatingRef(props.itemIndex); const codeblockStreamIds = useRef([]); - useEffect(() => { - if (props.forceStreamId) { - codeblockStreamIds.current = [props.forceStreamId]; - } - }, [props.forceStreamId, codeblockStreamIds]); + const toolCallApplyState = useAppSelector((state) => + selectApplyStateByToolCallId(state, props.toolCallId), + ); + const toolCallApplyStateRef = useUpdatingRef(toolCallApplyState); + // useEffect(() => { + // if (toolCallApplyState) { + // codeblockStreamIds.current = Array(1toolCallApplyState.streamId.repeat(); + // } + // }, [toolCallApplyState, codeblockStreamIds]); const [reactContent, setMarkdownSource] = useRemark({ remarkPlugins: [ @@ -294,9 +299,11 @@ const StyledMarkdownPreview = memo(function StyledMarkdownPreview( const isLastCodeblock = preChildProps["data-islastcodeblock"]; - if (codeblockStreamIds.current[codeBlockIndex] === undefined) { + if (toolCallApplyStateRef.current) { codeblockStreamIds.current[codeBlockIndex] = - props.forceStreamId ?? uuidv4(); + toolCallApplyStateRef.current.streamId; + } else { + codeblockStreamIds.current[codeBlockIndex] = uuidv4(); } return ( diff --git a/gui/src/components/mainInput/TipTapEditor/utils/editorConfig.ts b/gui/src/components/mainInput/TipTapEditor/utils/editorConfig.ts index d6ce9d2bd..be1c61dd7 100644 --- a/gui/src/components/mainInput/TipTapEditor/utils/editorConfig.ts +++ b/gui/src/components/mainInput/TipTapEditor/utils/editorConfig.ts @@ -330,7 +330,9 @@ export function createEditorConfig(options: { ], editorProps: { attributes: { - "data-testid": `editor-input-${props.isMainInput ? "main" : props.inputId}`, + "data-testid": props.isMainInput + ? "editor-input-main" + : `editor-input-${props.inputId}`, class: "ProseMirror outline-none overflow-hidden", style: `font-size: ${getFontSize()}px;`, }, diff --git a/gui/src/context/MockIdeMessenger.ts b/gui/src/context/MockIdeMessenger.ts index 3d9907e68..d79e479be 100644 --- a/gui/src/context/MockIdeMessenger.ts +++ b/gui/src/context/MockIdeMessenger.ts @@ -1,7 +1,6 @@ import { ChatMessage, IDE, PromptLog } from "core"; import { AuthType } from "core/control-plane/AuthTypes"; import { - FromIdeProtocol, FromWebviewProtocol, ToCoreProtocol, ToWebviewProtocol, @@ -15,70 +14,84 @@ import { } from "core/protocol/util"; import { IIdeMessenger } from "./IdeMessenger"; -async function defaultMockHandleMessage( - messageType: T, - data: FromWebviewProtocol[T][0], -): Promise { - function returnFor( - _: K, - value: FromWebviewProtocol[K][1], - ): FromWebviewProtocol[T][1] { - return value as unknown as FromWebviewProtocol[T][1]; - } +type MockResponses = Partial<{ + [K in keyof FromWebviewProtocol]: FromWebviewProtocol[K][1]; +}>; - switch (messageType) { - case "history/list": - return returnFor("history/list", [ - { - title: "Session 1", - sessionId: "session-1", - dateCreated: new Date().toString(), - workspaceDirectory: "/tmp", - }, - ]); - case "getControlPlaneSessionInfo": - return returnFor("getControlPlaneSessionInfo", { - AUTH_TYPE: AuthType.WorkOsStaging, - accessToken: "", - account: { - label: "", - id: "", - }, - }); - case "config/getSerializedProfileInfo": - return returnFor("config/getSerializedProfileInfo", { - organizations: [], - profileId: "test-profile", - result: { - config: undefined, - errors: [], - configLoadInterrupted: false, - }, - selectedOrgId: "local", - }); - default: - throw new Error(`Unknown message type ${messageType}`); - } -} +const DEFAULT_MOCK_CORE_RESPONSES: MockResponses = { + fileExists: true, + getCurrentFile: { + isUntitled: false, + contents: "Current file contents", + path: "file:///Users/user/workspace1/current_file.py", + }, + "controlPlane/getFreeTrialStatus": { + autocompleteLimit: 1000, + optedInToFreeTrial: false, + chatLimit: 1000, + autocompleteCount: 0, + chatCount: 0, + }, + getWorkspaceDirs: [ + "file:///Users/user/workspace1", + "file:///Users/user/workspace2", + ], + "history/list": [ + { + title: "Session 1", + sessionId: "session-1", + dateCreated: new Date().toString(), + workspaceDirectory: "/tmp", + }, + ], + "history/save": undefined, + getControlPlaneSessionInfo: { + AUTH_TYPE: AuthType.WorkOsStaging, + accessToken: "", + account: { + label: "", + id: "", + }, + }, + "config/getSerializedProfileInfo": { + organizations: [], + profileId: "test-profile", + result: { + config: undefined, + errors: [], + configLoadInterrupted: false, + }, + selectedOrgId: "local", + }, + "chatDescriber/describe": "Session summary", + applyToFile: undefined, +}; +const DEFAULT_CHAT_RESPONSE: ChatMessage[] = [ + { + role: "assistant", + content: "This is a test", + }, +]; export class MockIdeMessenger implements IIdeMessenger { ide: IDE; - private messageHandlers: Map< - keyof FromIdeProtocol, - Array<(data: any) => void> - > = new Map(); + // private messageHandlers: Map< + // keyof FromIdeProtocol, + // Array<(data: any) => void> + // > = new Map(); constructor() { this.ide = new MessageIde( - (messageType, data) => { - throw new Error("Not implemented"); + async (messageType, data) => { + const response = await this.request.bind(this)(messageType, data); + if (response.status === "error") { + throw new Error(response.error); + } else { + return response.content; + } }, (messageType, callback) => { - // Store the callback in our handlers map - if (!this.messageHandlers.has(messageType)) { - this.messageHandlers.set(messageType, []); - } - this.messageHandlers.get(messageType)?.push(callback); + return; }, ); } @@ -108,16 +121,17 @@ export class MockIdeMessenger implements IIdeMessenger { ); } - // Ability to customize the response for llmStreamChat - chatResponse: ChatMessage[][] = [ - [ + responses: MockResponses = { ...DEFAULT_MOCK_CORE_RESPONSES }; + chatResponse: ChatMessage[] = DEFAULT_CHAT_RESPONSE; + chatStreamDelay: number = 0; + setChatResponseText(text: string): void { + this.chatResponse = [ { role: "assistant", - content: "This is a test", + content: text, }, - ], - ]; - chatStreamDelay: number = 0; + ]; + } async *llmStreamChat( msg: ToCoreProtocol["llm/streamChat"][0], @@ -128,8 +142,11 @@ export class MockIdeMessenger implements IIdeMessenger { console.log("MockIdeMessenger: Stream aborted"); return undefined; } - console.log("MockIdeMessenger: Yielding chunk", response); - yield response; + console.log( + "MockIdeMessenger: Yielding chunk", + JSON.stringify(response, null, 2), + ); + yield [response]; if (this.chatStreamDelay > 0) { await new Promise((resolve) => setTimeout(resolve, this.chatStreamDelay), @@ -150,12 +167,16 @@ export class MockIdeMessenger implements IIdeMessenger { messageType: T, data: FromWebviewProtocol[T][0], ): Promise> { - const content = await defaultMockHandleMessage(messageType, data); - return { - status: "success", - content, - done: true, - }; + if (messageType in this.responses) { + const content = this.responses[messageType]; + return { + status: "success", + content, + done: true, + }; + } + console.error(messageType); + throw new Error("MockIdeMessenger: No response defined for " + messageType); } respond( @@ -174,4 +195,10 @@ export class MockIdeMessenger implements IIdeMessenger { > { return undefined; } + + resetMocks(): void { + this.responses = { ...DEFAULT_MOCK_CORE_RESPONSES }; + this.chatResponse = DEFAULT_CHAT_RESPONSE; + this.chatStreamDelay = 0; + } } diff --git a/gui/src/hooks/ParallelListeners.tsx b/gui/src/hooks/ParallelListeners.tsx index 5bf2c977a..109e6b52b 100644 --- a/gui/src/hooks/ParallelListeners.tsx +++ b/gui/src/hooks/ParallelListeners.tsx @@ -20,6 +20,8 @@ import { import { acceptToolCall, addContextItemsAtIndex, + cancelToolCall, + selectCurrentToolCall, setHasReasoningEnabled, updateApplyState, } from "../redux/slices/sessionSlice"; @@ -244,6 +246,10 @@ function ParallelListeners() { dispatch(updateIndexingStatus(data)); }); + const autoAcceptEditToolDiffs = useAppSelector( + (store) => store.config.config.ui?.autoAcceptEditToolDiffs, + ); + const currentToolCall = useAppSelector(selectCurrentToolCall); useWebviewListener( "updateApplyState", async (state) => { @@ -258,31 +264,58 @@ function ParallelListeners() { dispatch(updateApplyState(state)); // Handle apply status updates that are associated with current tool call + console.log( + "WALLAH", + currentToolCall, + currentToolCallApplyState, + state, + ); if ( - state.status === "closed" && currentToolCallApplyState && currentToolCallApplyState.streamId === state.streamId ) { - // const output: ContextItem = { - // name: "Edit tool output", - // content: "Completed edit", - // description: "", - // }; - dispatch( - acceptToolCall({ - toolCallId: currentToolCallApplyState.toolCallId!, - }), - ); - // dispatch(setToolCallOutput([])); - void dispatch( - streamResponseAfterToolCall({ - toolCallId: currentToolCallApplyState.toolCallId!, - }), - ); + if (state.status === "done" && autoAcceptEditToolDiffs) { + const out = await ideMessenger.request("acceptDiff", { + streamId: state.streamId, + filepath: state.filepath, + }); + if (out.status === "error") { + dispatch( + cancelToolCall({ + toolCallId: currentToolCallApplyState.toolCallId!, + }), + ); + } + } + if (state.status === "closed") { + if (currentToolCall?.status !== "canceled") { + dispatch( + acceptToolCall({ + toolCallId: currentToolCallApplyState.toolCallId!, + }), + ); + } + // const output: ContextItem = { + // name: "Edit tool output", + // content: "Completed edit", + // description: "", + // }; + // dispatch(setToolCallOutput([])); + void dispatch( + streamResponseAfterToolCall({ + toolCallId: currentToolCallApplyState.toolCallId!, + }), + ); + } } } }, - [currentToolCallApplyState, history], + [ + currentToolCall, + currentToolCallApplyState, + autoAcceptEditToolDiffs, + ideMessenger, + ], ); useEffect(() => { diff --git a/gui/src/pages/gui/Chat.test.tsx b/gui/src/pages/gui/Chat.test.tsx deleted file mode 100644 index 27a1fe8a1..000000000 --- a/gui/src/pages/gui/Chat.test.tsx +++ /dev/null @@ -1,95 +0,0 @@ -import { screen, waitFor } from "@testing-library/dom"; -import { act } from "@testing-library/react"; -import { Editor } from "@tiptap/core"; -import { addAndSelectMockLlm } from "../../util/test/config"; -import { renderWithProviders } from "../../util/test/render"; -import { Chat } from "./Chat"; - -export async function getMainEditor(): Promise { - const editorElement = await waitFor(() => - screen.findByTestId("editor-input-main"), - ); - expect(editorElement).toBeInTheDocument(); - if ("editor" in editorElement) { - return editorElement.editor as Editor; - } else { - throw new Error("Main editor not found within editor container"); - } -} - -test("should render input box", async () => { - await renderWithProviders(); - expect(await screen.findByTestId("continue-input-box")).toBeInTheDocument(); -}); - -test("should be able to toggle modes", async () => { - await renderWithProviders(); - expect(screen.getByText("Chat")).toBeInTheDocument(); - - // Simulate cmd+. keyboard shortcut to toggle modes - act(() => { - document.dispatchEvent( - new KeyboardEvent("keydown", { - key: ".", - metaKey: true, // cmd key on Mac - }), - ); - }); - - // Check that it switched to Agent mode - expect(await screen.findByText("Agent")).toBeInTheDocument(); - - act(() => { - document.dispatchEvent( - new KeyboardEvent("keydown", { - key: ".", - metaKey: true, // cmd key on Mac - }), - ); - }); - - // Check that it switched back to Chat mode - expect(await screen.findByText("Chat")).toBeInTheDocument(); -}); - -test("should send a message and receive a response", async () => { - const { ideMessenger, store } = await renderWithProviders(); - - // First add and select the mock LLM - await act(async () => { - addAndSelectMockLlm(store, ideMessenger); - }); - - const CONTENT = "Expected response"; - const INPUT = "User input"; - - // Setup the mock response before any actions - ideMessenger.chatResponse = [[{ role: "assistant", content: CONTENT }]]; - - // Wait for the editor to be in the document - const editor = await getMainEditor(); - - // Find the submit button - const sendButton = await waitFor(() => - screen.findByTestId("submit-input-button"), - ); - expect(sendButton).toBeInTheDocument(); - - // Insert content into the editor - await act(async () => { - editor.commands.insertContent(INPUT); - }); - - // Verify the input is in the document - const input = await waitFor(() => screen.findByText(INPUT)); - expect(input).toBeInTheDocument(); - - // Click the send button - await act(async () => { - sendButton.click(); - }); - - // Increase the timeout for finding the response - const response = await waitFor(() => screen.findByText(CONTENT)); - expect(response).toBeInTheDocument(); -}); diff --git a/gui/src/pages/gui/ToolCallDiv/EditFile.tsx b/gui/src/pages/gui/ToolCallDiv/EditFile.tsx index a4a487d42..a60113174 100644 --- a/gui/src/pages/gui/ToolCallDiv/EditFile.tsx +++ b/gui/src/pages/gui/ToolCallDiv/EditFile.tsx @@ -1,12 +1,5 @@ import { getMarkdownLanguageTagForFile } from "core/util"; -import { useEffect } from "react"; -import { v4 as uuidv4 } from "uuid"; import StyledMarkdownPreview from "../../../components/StyledMarkdownPreview"; -import { useAppDispatch, useAppSelector } from "../../../redux/hooks"; -import { - selectApplyStateByToolCallId, - updateApplyState, -} from "../../../redux/slices/sessionSlice"; type EditToolCallProps = { relativeFilePath: string; @@ -16,24 +9,6 @@ type EditToolCallProps = { }; export function EditFile(props: EditToolCallProps) { - const dispatch = useAppDispatch(); - - const applyState = useAppSelector((state) => - selectApplyStateByToolCallId(state, props.toolCallId), - ); - - useEffect(() => { - if (!applyState) { - dispatch( - updateApplyState({ - streamId: uuidv4(), - toolCallId: props.toolCallId, - status: "not-started", - }), - ); - } - }, [applyState, props.toolCallId]); - if (!props.relativeFilePath || !props.changes) { return null; } @@ -45,7 +20,7 @@ export function EditFile(props: EditToolCallProps) { isRenderingInStepContainer disableManualApply source={src} - forceStreamId={applyState?.streamId} + toolCallId={props.toolCallId} expandCodeblocks={false} itemIndex={props.historyIndex} /> diff --git a/gui/src/pages/gui/chat-tests/ApplyScenarios.test.tsx b/gui/src/pages/gui/chat-tests/ApplyScenarios.test.tsx index 909bc1ccb..06c74f080 100644 --- a/gui/src/pages/gui/chat-tests/ApplyScenarios.test.tsx +++ b/gui/src/pages/gui/chat-tests/ApplyScenarios.test.tsx @@ -1,17 +1,18 @@ -import { screen, waitFor } from "@testing-library/dom"; +import { act } from "@testing-library/react"; import { renderWithProviders } from "../../../util/test/render"; import { Chat } from "../Chat"; +import { + getElementByTestId, + verifyNotPresentByTestId, + verifyNotPresentByText, +} from "./utils"; test("Chat apply scenarios: handle apply updates and display the accept / reject all buttons", async () => { const { ideMessenger } = await renderWithProviders(); // Use queryByText which returns null when element isn't found - const acceptAllButton = screen.queryByText("Accept All"); - const rejectAllButton = screen.queryByText("Reject All"); - - // Assert that the buttons don't exist - expect(acceptAllButton).not.toBeInTheDocument(); - expect(rejectAllButton).not.toBeInTheDocument(); + await verifyNotPresentByText("Accept All"); + await verifyNotPresentByText("Reject All"); for (let i = 0; i < 5; i++) { ideMessenger.mockMessageToWebview("updateApplyState", { @@ -26,9 +27,7 @@ test("Chat apply scenarios: handle apply updates and display the accept / reject }); // Wait for the buttons to appear - await waitFor(() => { - expect(screen.getByTestId("accept-reject-all-buttons")).toBeInTheDocument(); - }); + await getElementByTestId("accept-reject-all-buttons"); // IDE sends back message that it is done ideMessenger.mockMessageToWebview("updateApplyState", { @@ -37,10 +36,8 @@ test("Chat apply scenarios: handle apply updates and display the accept / reject }); // Wait for the buttons to disappear - await waitFor(() => { - expect(screen.queryByTestId("edit-accept-button")).not.toBeInTheDocument(); - expect(screen.queryByTestId("edit-reject-button")).not.toBeInTheDocument(); - }); + await verifyNotPresentByTestId("edit-accept-button"); + await verifyNotPresentByTestId("edit-reject-button"); }); test("Chat apply scenarios: show apply cancellation", async () => { @@ -57,19 +54,15 @@ test("Chat apply scenarios: show apply cancellation", async () => { } // Wait for applying toolbar to appear - await waitFor(() => { - const cancelApplyButton = screen.getByTestId( + await getElementByTestId("notch-applying-text"); + + await act(async () => { + const cancelApplyButton = await getElementByTestId( "notch-applying-cancel-button", ); - const applyingText = screen.getByTestId("notch-applying-text"); - - expect(cancelApplyButton).toBeInTheDocument(); - expect(applyingText).toBeInTheDocument(); + cancelApplyButton.click(); }); - const cancelApplyButton = screen.getByTestId("notch-applying-cancel-button"); - cancelApplyButton.click(); - // Verify that rejectDiff message has been posted to ideMessenger expect(messengerPostSpy).toHaveBeenCalledWith("rejectDiff", {}); @@ -79,15 +72,8 @@ test("Chat apply scenarios: show apply cancellation", async () => { streamId: "12345", }); - await waitFor(() => { - const cancelApplyButton = screen.queryByTestId( - "notch-applying-cancel-button", - ); - const applyingText = screen.queryByTestId("notch-applying-text"); - - expect(cancelApplyButton).not.toBeInTheDocument(); - expect(applyingText).not.toBeInTheDocument(); - }); + await verifyNotPresentByTestId("notch-applying-text"); + await verifyNotPresentByTestId("notch-applying-cancel-button"); // Cleanup spy messengerPostSpy.mockRestore(); diff --git a/gui/src/pages/gui/chat-tests/Chat.test.tsx b/gui/src/pages/gui/chat-tests/Chat.test.tsx new file mode 100644 index 000000000..7a3d617d8 --- /dev/null +++ b/gui/src/pages/gui/chat-tests/Chat.test.tsx @@ -0,0 +1,61 @@ +import { act } from "@testing-library/react"; +import { addAndSelectMockLlm } from "../../../util/test/config"; +import { renderWithProviders } from "../../../util/test/render"; +import { Chat } from "../Chat"; +import { + getElementByTestId, + getElementByText, + sendInputWithMockedResponse, +} from "./utils"; + +test("should render input box", async () => { + await renderWithProviders(); + await getElementByTestId("continue-input-box"); +}); + +test("should be able to toggle modes", async () => { + await renderWithProviders(); + await getElementByText("Chat"); + + // Simulate cmd+. keyboard shortcut to toggle modes + act(() => { + document.dispatchEvent( + new KeyboardEvent("keydown", { + key: ".", + metaKey: true, // cmd key on Mac + }), + ); + }); + + // Check that it switched to Agent mode + await getElementByText("Agent"); + + act(() => { + document.dispatchEvent( + new KeyboardEvent("keydown", { + key: ".", + metaKey: true, // cmd key on Mac + }), + ); + }); + + await getElementByText("Chat"); +}); + +test("should send a message and receive a response", async () => { + const { ideMessenger, store } = await renderWithProviders(); + + // First add and select the mock LLM + await act(async () => { + addAndSelectMockLlm(store, ideMessenger); + }); + + const CONTENT = "Expected response"; + const INPUT = "User input"; + + await sendInputWithMockedResponse(ideMessenger, INPUT, [ + { role: "assistant", content: CONTENT }, + ]); + + await getElementByText(CONTENT); +}); diff --git a/gui/src/pages/gui/chat-tests/EditToolScenarios b/gui/src/pages/gui/chat-tests/EditToolScenarios deleted file mode 100644 index e69de29bb..000000000 diff --git a/gui/src/pages/gui/chat-tests/EditToolScenarios.test.tsx b/gui/src/pages/gui/chat-tests/EditToolScenarios.test.tsx new file mode 100644 index 000000000..f020a7513 --- /dev/null +++ b/gui/src/pages/gui/chat-tests/EditToolScenarios.test.tsx @@ -0,0 +1,180 @@ +import { BuiltInToolNames } from "core/tools/builtIn"; +import { + addAndSelectMockLlm, + triggerConfigUpdate, +} from "../../../util/test/config"; +import { renderWithProviders } from "../../../util/test/render"; +import { Chat } from "../Chat"; + +import { ChatMessage } from "core"; +import { toggleToolSetting } from "../../../redux/slices/uiSlice"; +import { + getElementByTestId, + getElementByText, + logAllTestIds, + sendInputWithMockedResponse, + verifyNotPresentByTestId, +} from "./utils"; + +const EDIT_FILEPATH = "test.txt"; +const EDIT_CHANGES = "New content"; +const EDIT_TOOL_CALL_ID = "known-id"; +const EDIT_MESSAGES: ChatMessage[] = [ + { + role: "assistant", + content: "", + toolCalls: [ + { + id: EDIT_TOOL_CALL_ID, + function: { + name: BuiltInToolNames.EditExistingFile, + arguments: JSON.stringify({ + filepath: EDIT_FILEPATH, + changes: EDIT_CHANGES, + }), + }, + }, + ], + }, +]; + +const POST_EDIT_RESPONSE = "Edit applied successfully"; +const AFTER_EDIT_MESSAGES: ChatMessage[] = [ + { + role: "assistant", + content: POST_EDIT_RESPONSE, + }, +]; +beforeEach(() => { + vi.clearAllMocks(); +}); + +test("Edit run with ask first policy and no auto apply", async () => { + const { ideMessenger, store, user } = await renderWithProviders(); + + addAndSelectMockLlm(store, ideMessenger); + + await sendInputWithMockedResponse( + ideMessenger, + "Edit this file", + EDIT_MESSAGES, + ); + + // Toggle the codeblock and make sure the changes show + + const toggleCodeblockChevron = await getElementByTestId("toggle-codeblock"); + + await user.click(toggleCodeblockChevron); + await getElementByText(EDIT_CHANGES); + + const acceptToolCallButton = await getElementByTestId( + "accept-tool-call-button", + ); + await user.click(acceptToolCallButton); + + const applyStates = store.getState().session.codeBlockApplyStates.states; + const initialToolApplyState = applyStates.find( + (s) => s.toolCallId === EDIT_TOOL_CALL_ID, + ); + + expect(initialToolApplyState).toBeDefined(); + + const streamId = initialToolApplyState!.streamId; + + ideMessenger.mockMessageToWebview("updateApplyState", { + status: "streaming", + streamId, + toolCallId: EDIT_TOOL_CALL_ID, + filepath: EDIT_FILEPATH, + }); + + await getElementByTestId("notch-applying-text"); + await getElementByTestId("notch-applying-cancel-button"); + + ideMessenger.mockMessageToWebview("updateApplyState", { + status: "done", + streamId, + toolCallId: EDIT_TOOL_CALL_ID, + filepath: EDIT_FILEPATH, + }); + + const acceptButton = await getElementByTestId("edit-accept-button"); + await getElementByTestId("edit-reject-button"); + + ideMessenger.setChatResponseText(POST_EDIT_RESPONSE); + + await user.click(acceptButton); + + ideMessenger.mockMessageToWebview("updateApplyState", { + status: "closed", + streamId, + toolCallId: EDIT_TOOL_CALL_ID, + filepath: EDIT_FILEPATH, + }); + + await getElementByText(POST_EDIT_RESPONSE); +}); + +test("Edit run with no policy and yolo mode", async () => { + const { ideMessenger, store, user } = await renderWithProviders(); + const messengerPostSpy = vi.spyOn(ideMessenger, "post"); + addAndSelectMockLlm(store, ideMessenger); + + store.dispatch(toggleToolSetting(BuiltInToolNames.EditExistingFile)); + triggerConfigUpdate({ + store, + ideMessenger, + editConfig: (current) => { + current.ui = { + ...current.ui, + autoAcceptEditToolDiffs: true, // Enable auto-accept for edit tool diffs + }; + return current; + }, + }); + expect(store.getState().config.config.ui?.autoAcceptEditToolDiffs).toBe(true); + + await sendInputWithMockedResponse( + ideMessenger, + "Edit this file", + EDIT_MESSAGES, + ); + + // Toggle the codeblock and make sure the changes show + const toggleCodeblockChevron = await getElementByTestId("toggle-codeblock"); + await user.click(toggleCodeblockChevron); + + await getElementByText(EDIT_CHANGES); + + await verifyNotPresentByTestId("accept-tool-call-button"); // Checks tool policy + + const applyStates = store.getState().session.codeBlockApplyStates.states; + const initialToolApplyState = applyStates.find( + (s) => s.toolCallId === EDIT_TOOL_CALL_ID, + ); + + expect(initialToolApplyState).toBeDefined(); + const streamId = initialToolApplyState!.streamId; + + ideMessenger.setChatResponseText(POST_EDIT_RESPONSE); + ideMessenger.mockMessageToWebview("updateApplyState", { + status: "closed", + streamId, + toolCallId: EDIT_TOOL_CALL_ID, + filepath: EDIT_FILEPATH, + }); + await getElementByText(POST_EDIT_RESPONSE); + + logAllTestIds(); // // Should be auto triggered + + // await waitFor(() => { + // expect(messengerPostSpy).toHaveBeenCalledWith("acceptDiff", {}); + // }); + + // await verifyNotPresentByTestId("edit-accept-button"); + // await verifyNotPresentByTestId("edit-reject-button"); + + // ideMessenger.setChatResponseText(POST_EDIT_RESPONSE); + + // await getElementByText(POST_EDIT_RESPONSE); +}); diff --git a/gui/src/pages/gui/chat-tests/utils.ts b/gui/src/pages/gui/chat-tests/utils.ts new file mode 100644 index 000000000..e1062bbe7 --- /dev/null +++ b/gui/src/pages/gui/chat-tests/utils.ts @@ -0,0 +1,102 @@ +import { screen, waitFor } from "@testing-library/dom"; +import { act } from "@testing-library/react"; +import { Editor } from "@tiptap/core"; +import { ChatMessage } from "core"; +import { MockIdeMessenger } from "../../../context/MockIdeMessenger"; + +function logDomText() { + const bodyText = document.body.innerHTML; + const parser = new DOMParser(); + const doc = parser.parseFromString(bodyText, "text/html"); + let cleaned = doc.body.textContent ?? ""; + cleaned = cleaned?.replace( + "No resultsAaModelsRulesDocsPromptsToolsMCPCreate your first assistant", + "", + ); + cleaned = cleaned?.replace( + "Alt⏎ Active file⏎ Enter⏎Log in to access a free trial of theModels Add-OnLog in to Continue HubOr, configure your own models", + "", + ); + cleaned = cleaned.replaceAll("Select model", ""); + cleaned = cleaned.replaceAll("Mock LLM", ""); + cleaned = cleaned.replaceAll(/^Chat|Chat$/g, ""); + console.log(cleaned || "No body content"); +} + +export function logAllTestIds() { + const elements = document.querySelectorAll("*"); + + const testIds = Array.from(elements) + .map((el) => Array.from(el.attributes)) + .flat() + .filter((a) => a.name === "data-testid") + .map((a) => a.value); + console.log("Available test ids", testIds); +} +export async function getElementByTestId(testId: string): Promise { + try { + const testIdElement = await waitFor(() => screen.findByTestId(testId)); + expect(testIdElement).toBeInTheDocument(); + return testIdElement; + } catch (e) { + logAllTestIds(); + throw new Error(`Element with testId "${testId}" not found`); + } +} + +export async function verifyNotPresentByTestId(testId: string): Promise { + const element = await waitFor(() => screen.queryByTestId(testId)); + expect(element).not.toBeInTheDocument(); +} + +export async function verifyNotPresentByText(text: string): Promise { + const element = screen.queryByText(text); + expect(element).not.toBeInTheDocument(); +} + +export async function getElementByText(text: string): Promise { + try { + const textElement = await waitFor(() => screen.findByText(text)); + expect(textElement).toBeInTheDocument(); + return textElement; + } catch (e) { + logDomText(); + throw new Error(`Element with text "${text}" not found.`); + } +} + +export async function getMainEditor(): Promise { + const editorElement = await getElementByTestId("editor-input-main"); + if ("editor" in editorElement) { + return editorElement.editor as Editor; + } else { + throw new Error("Main editor not found within editor container"); + } +} + +export async function sendInputWithMockedResponse( + ideMessenger: MockIdeMessenger, + input: string, + response: ChatMessage[], +): Promise { + // Setup the mock response before any actions + ideMessenger.chatResponse = response; + + // Wait for the editor to be in the document + const editor = await getMainEditor(); + + // Find the submit button + const sendButton = await getElementByTestId("submit-input-button"); + + // Insert content into the editor + await act(async () => { + editor.commands.insertContent(input); + }); + + await getElementByText(input); + + // Click the send button + await act(async () => { + sendButton.click(); + }); +} diff --git a/gui/src/redux/slices/sessionSlice.ts b/gui/src/redux/slices/sessionSlice.ts index 6803947fb..9c91cce73 100644 --- a/gui/src/redux/slices/sessionSlice.ts +++ b/gui/src/redux/slices/sessionSlice.ts @@ -657,7 +657,9 @@ export const selectApplyStateByToolCallId = createSelector( (state: RootState, toolCallId?: string) => toolCallId, ], (states, toolCallId) => { - return states.find((state) => state.toolCallId === toolCallId); + if (toolCallId) { + return states.find((state) => state.toolCallId === toolCallId); + } }, ); diff --git a/gui/src/redux/thunks/callCurrentTool.ts b/gui/src/redux/thunks/callCurrentTool.ts index 02137d822..a0f95a304 100644 --- a/gui/src/redux/thunks/callCurrentTool.ts +++ b/gui/src/redux/thunks/callCurrentTool.ts @@ -19,7 +19,6 @@ export const callCurrentTool = createAsyncThunk( async (_, { dispatch, extra, getState }) => { const state = getState(); const toolCallState = selectCurrentToolCall(state); - if (!toolCallState) { return; } @@ -61,7 +60,7 @@ export const callCurrentTool = createAsyncThunk( ) { // Tool is called on client side const { - output: clientToolOuput, + output: clientToolOutput, respondImmediately, errorMessage: clientToolError, } = await callClientTool(toolCallState, { @@ -73,7 +72,7 @@ export const callCurrentTool = createAsyncThunk( )?.streamId, getState, }); - output = clientToolOuput; + output = clientToolOutput; errorMessage = clientToolError; streamResponse = respondImmediately; } else { diff --git a/gui/src/util/clientTools/editImpl.ts b/gui/src/util/clientTools/editImpl.ts index ecb1ea11f..02846cc71 100644 --- a/gui/src/util/clientTools/editImpl.ts +++ b/gui/src/util/clientTools/editImpl.ts @@ -6,6 +6,7 @@ export const editToolImpl: ClientToolImpl = async ( toolCallId, extras, ) => { + console.log("EDIT TOOL IMPL", args, toolCallId, extras); if (!extras.streamId) { throw new Error("Invalid apply state"); } @@ -16,26 +17,13 @@ export const editToolImpl: ClientToolImpl = async ( if (!firstUriMatch) { throw new Error(`${args.filepath} does not exist`); } - const apply = await extras.ideMessenger.request("applyToFile", { + extras.ideMessenger.post("applyToFile", { streamId: extras.streamId, text: args.changes, toolCallId, filepath: firstUriMatch, }); - if (apply.status === "error") { - throw new Error(apply.error); - } - const state = extras.getState(); - const autoAccept = !!state.config.config.ui?.autoAcceptEditToolDiffs; - if (autoAccept) { - const out = await extras.ideMessenger.request("acceptDiff", { - streamId: extras.streamId, - filepath: firstUriMatch, - }); - if (out.status === "error") { - throw new Error(out.error); - } - } + return { respondImmediately: false, output: undefined, // No immediate output. diff --git a/gui/src/util/test/config.ts b/gui/src/util/test/config.ts index 4dbe4abbe..154ab7d24 100644 --- a/gui/src/util/test/config.ts +++ b/gui/src/util/test/config.ts @@ -1,37 +1,37 @@ import { EnhancedStore } from "@reduxjs/toolkit"; import { BrowserSerializedContinueConfig, ModelDescription } from "core"; import { SerializedOrgWithProfiles } from "core/config/ProfileLifecycleManager"; +import { copyOf } from "core/util"; import { MockIdeMessenger } from "../../context/MockIdeMessenger"; -import { RootState } from "../../redux/store"; interface TestConfigUpdateParams { store: EnhancedStore; - messenger: MockIdeMessenger; + ideMessenger: MockIdeMessenger; newProfileId?: string; newOrgId?: string; newOrgs?: SerializedOrgWithProfiles[]; - - configUpdates?: Partial; + editConfig?: ( + current: BrowserSerializedContinueConfig, + ) => BrowserSerializedContinueConfig; } export function triggerConfigUpdate({ store, - messenger, - configUpdates, + ideMessenger, + editConfig, newOrgs, newOrgId, newProfileId, }: TestConfigUpdateParams) { const state = store.getState(); - messenger.mockMessageToWebview("configUpdate", { + ideMessenger.mockMessageToWebview("configUpdate", { organizations: newOrgs ?? state.profiles.organizations, selectedOrgId: newOrgId ?? state.profiles.selectedOrganizationId, profileId: newProfileId ?? state.profiles.selectedProfileId, result: { - config: { - ...state.config.config, - ...configUpdates, - }, + config: editConfig + ? editConfig(copyOf(state.config.config)) + : state.config.config, configLoadInterrupted: false, errors: [], }, @@ -40,31 +40,25 @@ export function triggerConfigUpdate({ export function addAndSelectChatModel( store: EnhancedStore, - messenger: MockIdeMessenger, + ideMessenger: MockIdeMessenger, llmDesc: ModelDescription, ) { - const state = store.getState() as RootState; triggerConfigUpdate({ store, - messenger, - configUpdates: { - modelsByRole: { - ...state.config.config.modelsByRole, - chat: [...state.config.config.modelsByRole.chat, llmDesc], - }, - selectedModelByRole: { - ...state.config.config.selectedModelByRole, - chat: llmDesc, - }, + ideMessenger, + editConfig(current) { + current.modelsByRole.chat.push(llmDesc); + current.selectedModelByRole.chat = llmDesc; + return current; }, }); } export function addAndSelectMockLlm( store: EnhancedStore, - messenger: MockIdeMessenger, + ideMessenger: MockIdeMessenger, ) { - addAndSelectChatModel(store, messenger, { + addAndSelectChatModel(store, ideMessenger, { model: "mock", provider: "mock", title: "Mock LLM", diff --git a/gui/vite.config.ts b/gui/vite.config.ts index 957a1b0f5..cd70410f5 100644 --- a/gui/vite.config.ts +++ b/gui/vite.config.ts @@ -32,5 +32,18 @@ export default defineConfig({ globals: true, environment: "jsdom", setupFiles: "./src/util/test/setupTests.ts", + onConsoleLog(log, type) { + if (type === "stderr") { + if ( + [ + "contentEditable", + "An update to Chat inside a test was not wrapped in act", + ].some((text) => log.includes(text)) + ) { + return false; + } + } + return true; + }, }, }); diff --git a/packages/config-yaml/package-lock.json b/packages/config-yaml/package-lock.json index 7f2b8b2f2..014ecac95 100644 --- a/packages/config-yaml/package-lock.json +++ b/packages/config-yaml/package-lock.json @@ -1,12 +1,12 @@ { "name": "@continuedev/config-yaml", - "version": "1.0.94", + "version": "1.0.95", "lockfileVersion": 3, "requires": true, "packages": { "": { "name": "@continuedev/config-yaml", - "version": "1.0.94", + "version": "1.0.95", "license": "Apache-2.0", "dependencies": { "@continuedev/config-types": "^1.0.14", From c073a1e07c50988dccf538f0e623107ef370f0ed Mon Sep 17 00:00:00 2001 From: Dallin Romney Date: Thu, 26 Jun 2025 10:35:24 -0700 Subject: [PATCH 76/91] handle empty string json args --- core/tools/parseArgs.ts | 2 +- gui/src/components/console/ResultGroup.tsx | 6 +++++- packages/openai-adapters/src/util/parseArgs.ts | 2 +- 3 files changed, 7 insertions(+), 3 deletions(-) diff --git a/core/tools/parseArgs.ts b/core/tools/parseArgs.ts index 36d75e020..86ee26cb1 100644 --- a/core/tools/parseArgs.ts +++ b/core/tools/parseArgs.ts @@ -4,7 +4,7 @@ export function safeParseToolCallArgs( toolCall: ToolCallDelta, ): Record { try { - return JSON.parse(toolCall.function?.arguments ?? "{}"); + return JSON.parse(toolCall.function?.arguments?.trim() || "{}"); } catch (e) { console.error( `Failed to parse tool call arguments:\nTool call: ${toolCall.function?.name + " " + toolCall.id}\nArgs:${toolCall.function?.arguments}\n`, diff --git a/gui/src/components/console/ResultGroup.tsx b/gui/src/components/console/ResultGroup.tsx index b7ed2933c..c2005f57b 100644 --- a/gui/src/components/console/ResultGroup.tsx +++ b/gui/src/components/console/ResultGroup.tsx @@ -10,7 +10,11 @@ const ResultGroup = memo(function ResultGroup({ group }: ResultGroupProps) { return ( <> {group.map((result, i) => ( - + ))} ); diff --git a/packages/openai-adapters/src/util/parseArgs.ts b/packages/openai-adapters/src/util/parseArgs.ts index 8e7bb7380..dafb920b6 100644 --- a/packages/openai-adapters/src/util/parseArgs.ts +++ b/packages/openai-adapters/src/util/parseArgs.ts @@ -3,7 +3,7 @@ export function safeParseArgs( errorId?: string, ): Record { try { - return JSON.parse(args ?? "{}"); + return JSON.parse(args?.trim() || "{}"); } catch (e) { const identifier = errorId ? `Call: ${errorId}\nArgs:${args}\n` : ""; console.error( From 11ee6fd65a5a2e5ffc938d50f824a47fc48d5b5b Mon Sep 17 00:00:00 2001 From: Dallin Romney Date: Thu, 26 Jun 2025 11:13:31 -0700 Subject: [PATCH 77/91] clean up edit tool impl and fix apply states --- extensions/intellij/rules.md | 4 +++ .../StepContainerPreToolbar/index.tsx | 34 +++++++++++-------- .../StyledMarkdownPreview/index.tsx | 18 ++-------- gui/src/util/clientTools/callClientTool.ts | 1 - gui/src/util/clientTools/editImpl.ts | 9 ++--- 5 files changed, 30 insertions(+), 36 deletions(-) diff --git a/extensions/intellij/rules.md b/extensions/intellij/rules.md index 1f95724c9..e3d749902 100644 --- a/extensions/intellij/rules.md +++ b/extensions/intellij/rules.md @@ -1,3 +1,7 @@ +--- +globs: "**/intellij**" +--- + # Continue JetBrains Extension ## Project Purpose diff --git a/gui/src/components/StyledMarkdownPreview/StepContainerPreToolbar/index.tsx b/gui/src/components/StyledMarkdownPreview/StepContainerPreToolbar/index.tsx index a45fa18ba..5087cf9db 100644 --- a/gui/src/components/StyledMarkdownPreview/StepContainerPreToolbar/index.tsx +++ b/gui/src/components/StyledMarkdownPreview/StepContainerPreToolbar/index.tsx @@ -11,8 +11,10 @@ import { IdeMessengerContext } from "../../../context/IdeMessenger"; import { useIdeMessengerRequest } from "../../../hooks/useIdeMessengerRequest"; import { useWebviewListener } from "../../../hooks/useWebviewListener"; import { useAppSelector } from "../../../redux/hooks"; -import { selectCurrentToolCallApplyState } from "../../../redux/selectors/selectCurrentToolCall"; -import { selectApplyStateByStreamId } from "../../../redux/slices/sessionSlice"; +import { + selectApplyStateByStreamId, + selectApplyStateByToolCallId, +} from "../../../redux/slices/sessionSlice"; import { getFontSize } from "../../../util"; import Spinner from "../../gui/Spinner"; import { isTerminalCodeBlock } from "../utils"; @@ -54,6 +56,7 @@ export interface StepContainerPreToolbarProps { codeBlockIndex: number; // To track which codeblock we are applying isLastCodeblock: boolean; codeBlockStreamId: string; + forceToolCallId?: string; // If this is defined, we will use this streamId instead of the one from the codeBlock range?: string; children: any; expanded?: boolean; @@ -68,6 +71,7 @@ export function StepContainerPreToolbar({ codeBlockIndex, isLastCodeblock, codeBlockStreamId, + forceToolCallId, range, children, expanded, @@ -99,10 +103,15 @@ export function StepContainerPreToolbar({ const applyState = useAppSelector((state) => selectApplyStateByStreamId(state, codeBlockStreamId), ); - const currentToolCallApplyState = useAppSelector( - selectCurrentToolCallApplyState, + const toolCallApplyState = useAppSelector((state) => + selectApplyStateByToolCallId(state, forceToolCallId), + ); + console.log( + "applyState", + applyState, + "toolCallApplyState", + toolCallApplyState, ); - /** * In the case where `relativeFilepath` is defined, this will just be `relativeFilepathUri`. * However, if no `relativeFilepath` is defined, then this will @@ -147,7 +156,7 @@ export function StepContainerPreToolbar({ setRelativeFilepathUri(resolvedUri); } }; - getRelativeFilepathUri(); + void getRelativeFilepathUri(); }, [relativeFilepath, ideMessenger.ide]); async function getFileUriToApplyTo() { @@ -173,7 +182,7 @@ export function StepContainerPreToolbar({ async function onClickApply() { const fileUri = await getFileUriToApplyTo(); if (!fileUri) { - ideMessenger.ide.showToast( + void ideMessenger.ide.showToast( "error", "Could not resolve filepath to apply changes", ); @@ -188,7 +197,7 @@ export function StepContainerPreToolbar({ }); setAppliedFileUri(fileUri); - refreshFileExists(); + void refreshFileExists(); } function onClickInsertAtCursor() { @@ -198,7 +207,7 @@ export function StepContainerPreToolbar({ async function handleDiffAction(action: "accept" | "reject") { const filepath = await getFileUriToApplyTo(); if (!filepath) { - ideMessenger.ide.showToast( + void ideMessenger.ide.showToast( "error", `Could not resolve filepath to ${action} changes`, ); @@ -233,10 +242,7 @@ export function StepContainerPreToolbar({ } const renderActionButtons = () => { - const isPendingToolCall = - currentToolCallApplyState && - currentToolCallApplyState.streamId === applyState?.streamId && - currentToolCallApplyState.status === "not-started"; + const isPendingToolCall = toolCallApplyState?.status === "not-started"; if (isGeneratingCodeBlock || isPendingToolCall) { const numLines = codeBlockContent.split("\n").length; @@ -271,7 +277,7 @@ export function StepContainerPreToolbar({ return ( handleDiffAction("accept")} onClickReject={() => handleDiffAction("reject")} diff --git a/gui/src/components/StyledMarkdownPreview/index.tsx b/gui/src/components/StyledMarkdownPreview/index.tsx index bb286004f..f648dd61b 100644 --- a/gui/src/components/StyledMarkdownPreview/index.tsx +++ b/gui/src/components/StyledMarkdownPreview/index.tsx @@ -15,7 +15,6 @@ import { import useUpdatingRef from "../../hooks/useUpdatingRef"; import { useAppSelector } from "../../redux/hooks"; import { selectUIConfig } from "../../redux/slices/configSlice"; -import { selectApplyStateByToolCallId } from "../../redux/slices/sessionSlice"; import { getContextItemsFromHistory } from "../../redux/thunks/updateFileSymbols"; import { getFontSize } from "../../util"; import { ToolTip } from "../gui/Tooltip"; @@ -197,15 +196,6 @@ const StyledMarkdownPreview = memo(function StyledMarkdownPreview( const itemIndexRef = useUpdatingRef(props.itemIndex); const codeblockStreamIds = useRef([]); - const toolCallApplyState = useAppSelector((state) => - selectApplyStateByToolCallId(state, props.toolCallId), - ); - const toolCallApplyStateRef = useUpdatingRef(toolCallApplyState); - // useEffect(() => { - // if (toolCallApplyState) { - // codeblockStreamIds.current = Array(1toolCallApplyState.streamId.repeat(); - // } - // }, [toolCallApplyState, codeblockStreamIds]); const [reactContent, setMarkdownSource] = useRemark({ remarkPlugins: [ @@ -299,10 +289,7 @@ const StyledMarkdownPreview = memo(function StyledMarkdownPreview( const isLastCodeblock = preChildProps["data-islastcodeblock"]; - if (toolCallApplyStateRef.current) { - codeblockStreamIds.current[codeBlockIndex] = - toolCallApplyStateRef.current.streamId; - } else { + if (codeblockStreamIds.current[codeBlockIndex] === undefined) { codeblockStreamIds.current[codeBlockIndex] = uuidv4(); } @@ -315,7 +302,8 @@ const StyledMarkdownPreview = memo(function StyledMarkdownPreview( relativeFilepath={relativeFilePath} isLastCodeblock={isLastCodeblock} range={range} - codeBlockStreamId={codeblockStreamIds.current[codeBlockIndex]} + codeBlockStreamId={codeblockStreamIds.current[codeBlockIndex]} // ignored if toolCallId stream state is found + forceToolCallId={props.toolCallId} expanded={props.expandCodeblocks} disableManualApply={props.disableManualApply} > diff --git a/gui/src/util/clientTools/callClientTool.ts b/gui/src/util/clientTools/callClientTool.ts index cdf6a960f..d0c1576ce 100644 --- a/gui/src/util/clientTools/callClientTool.ts +++ b/gui/src/util/clientTools/callClientTool.ts @@ -8,7 +8,6 @@ export interface ClientToolExtras { getState: () => RootState; dispatch: AppThunkDispatch; ideMessenger: IIdeMessenger; - streamId?: string; } export interface ClientToolOutput { diff --git a/gui/src/util/clientTools/editImpl.ts b/gui/src/util/clientTools/editImpl.ts index 02846cc71..6873e0512 100644 --- a/gui/src/util/clientTools/editImpl.ts +++ b/gui/src/util/clientTools/editImpl.ts @@ -1,15 +1,11 @@ import { resolveRelativePathInDir } from "core/util/ideUtils"; +import { v4 as uuid } from "uuid"; import { ClientToolImpl } from "./callClientTool"; - export const editToolImpl: ClientToolImpl = async ( args, toolCallId, extras, ) => { - console.log("EDIT TOOL IMPL", args, toolCallId, extras); - if (!extras.streamId) { - throw new Error("Invalid apply state"); - } const firstUriMatch = await resolveRelativePathInDir( args.filepath, extras.ideMessenger.ide, @@ -17,8 +13,9 @@ export const editToolImpl: ClientToolImpl = async ( if (!firstUriMatch) { throw new Error(`${args.filepath} does not exist`); } + const streamId = uuid(); extras.ideMessenger.post("applyToFile", { - streamId: extras.streamId, + streamId, text: args.changes, toolCallId, filepath: firstUriMatch, From c7709a79b5c5524bfd4590585296c30da235be31 Mon Sep 17 00:00:00 2001 From: Dallin Romney Date: Thu, 26 Jun 2025 11:17:21 -0700 Subject: [PATCH 78/91] clean up yolo mode --- .../StepContainerPreToolbar/index.tsx | 7 +------ gui/src/hooks/ParallelListeners.tsx | 6 ------ 2 files changed, 1 insertion(+), 12 deletions(-) diff --git a/gui/src/components/StyledMarkdownPreview/StepContainerPreToolbar/index.tsx b/gui/src/components/StyledMarkdownPreview/StepContainerPreToolbar/index.tsx index 5087cf9db..f5737c78e 100644 --- a/gui/src/components/StyledMarkdownPreview/StepContainerPreToolbar/index.tsx +++ b/gui/src/components/StyledMarkdownPreview/StepContainerPreToolbar/index.tsx @@ -106,12 +106,7 @@ export function StepContainerPreToolbar({ const toolCallApplyState = useAppSelector((state) => selectApplyStateByToolCallId(state, forceToolCallId), ); - console.log( - "applyState", - applyState, - "toolCallApplyState", - toolCallApplyState, - ); + /** * In the case where `relativeFilepath` is defined, this will just be `relativeFilepathUri`. * However, if no `relativeFilepath` is defined, then this will diff --git a/gui/src/hooks/ParallelListeners.tsx b/gui/src/hooks/ParallelListeners.tsx index 109e6b52b..24f68190e 100644 --- a/gui/src/hooks/ParallelListeners.tsx +++ b/gui/src/hooks/ParallelListeners.tsx @@ -264,12 +264,6 @@ function ParallelListeners() { dispatch(updateApplyState(state)); // Handle apply status updates that are associated with current tool call - console.log( - "WALLAH", - currentToolCall, - currentToolCallApplyState, - state, - ); if ( currentToolCallApplyState && currentToolCallApplyState.streamId === state.streamId From 0c94128309953cb428c45a749c68b79425ba2cf8 Mon Sep 17 00:00:00 2001 From: Patrick Erichsen Date: Thu, 26 Jun 2025 12:11:23 -0700 Subject: [PATCH 79/91] Revert "Dev data: added tool usage event" --- gui/src/redux/slices/sessionSlice.ts | 23 ---------------- .../config-yaml/src/schemas/data/index.ts | 8 ------ .../src/schemas/data/toolUsage/index.ts | 11 -------- .../src/schemas/data/toolUsage/v0.2.0.ts | 26 ------------------- 4 files changed, 68 deletions(-) delete mode 100644 packages/config-yaml/src/schemas/data/toolUsage/index.ts delete mode 100644 packages/config-yaml/src/schemas/data/toolUsage/v0.2.0.ts diff --git a/gui/src/redux/slices/sessionSlice.ts b/gui/src/redux/slices/sessionSlice.ts index 50ff37320..6803947fb 100644 --- a/gui/src/redux/slices/sessionSlice.ts +++ b/gui/src/redux/slices/sessionSlice.ts @@ -18,9 +18,7 @@ import { RuleWithSource, Session, SessionMetadata, - ToolCallState, } from "core"; -import { safeParseToolCallArgs } from "core/tools/parseArgs"; import { NEW_SESSION_TITLE } from "core/util/constants"; import { renderChatMessage } from "core/util/messageContent"; import { findUriInDirs, getUriPathBasename } from "core/util/uri"; @@ -30,25 +28,6 @@ import { RootState } from "../store"; import { streamResponseThunk } from "../thunks/streamResponse"; import { findCurrentToolCall, findToolCall } from "../util"; -const getIdeMessenger = () => (window as any).ideMessenger; - -const logToolUsage = (toolCallState: ToolCallState, success: boolean) => { - const ideMessenger = getIdeMessenger(); - if (ideMessenger) { - ideMessenger.post("devdata/log", { - name: "toolUsage", - data: { - toolCallId: toolCallState.toolCallId, - functionName: toolCallState.toolCall.function.name, - functionArgs: toolCallState.toolCall.function.arguments, - parsedArgs: safeParseToolCallArgs(toolCallState.toolCall), - succeeded: success, - output: toolCallState.output || [], - }, - }); - } -}; - // 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. export type ChatHistoryItemWithMessageId = ChatHistoryItem & { @@ -580,7 +559,6 @@ export const sessionSlice = createSlice({ ); if (toolCallState) { toolCallState.status = "errored"; - logToolUsage(toolCallState, false); } }, acceptToolCall: ( @@ -595,7 +573,6 @@ export const sessionSlice = createSlice({ ); if (toolCallState) { toolCallState.status = "done"; - logToolUsage(toolCallState, true); } }, setToolCallCalling: ( diff --git a/packages/config-yaml/src/schemas/data/index.ts b/packages/config-yaml/src/schemas/data/index.ts index 679227c52..7251e12a7 100644 --- a/packages/config-yaml/src/schemas/data/index.ts +++ b/packages/config-yaml/src/schemas/data/index.ts @@ -42,11 +42,6 @@ import { tokensGeneratedEventSchema_0_2_0, tokensGeneratedEventSchema_0_2_0_noCode, } from "./tokensGenerated/v0.2.0.js"; -import { toolUsageEventAllSchema } from "./toolUsage/index.js"; -import { - toolUsageEventSchema_0_2_0, - toolUsageEventSchema_0_2_0_noCode, -} from "./toolUsage/v0.2.0.js"; const semverRegex = /^(0|[1-9]\d*)\.(0|[1-9]\d*)\.(0|[1-9]\d*)(?:-((?:0|[1-9A-Za-z-][0-9A-Za-z-]*)(?:\.(?:0|[1-9A-Za-z-][0-9A-Za-z-]*))*))?(?:\+([0-9A-Za-z-]+(?:\.[0-9A-Za-z-]+)*))?$/; @@ -77,7 +72,6 @@ const devEventAllVersionDataSchemas = z.object({ tokensGenerated: tokensGeneratedEventAllSchema, chatInteraction: chatInteractionEventAllSchema, editInteraction: editInteractionEventAllSchema, - toolUsage: toolUsageEventAllSchema, }); // Version and level specific schemas are organized here @@ -103,7 +97,6 @@ export const devDataVersionedSchemas = { tokensGenerated: tokensGeneratedEventSchema_0_2_0, chatInteraction: chatInteractionEventSchema_0_2_0, editInteraction: editInteractionEventSchema_0_2_0, - toolUsage: toolUsageEventSchema_0_2_0, }, noCode: { autocomplete: autocompleteEventSchema_0_2_0_noCode, @@ -111,7 +104,6 @@ export const devDataVersionedSchemas = { tokensGenerated: tokensGeneratedEventSchema_0_2_0_noCode, chatInteraction: chatInteractionEventSchema_0_2_0_noCode, editInteraction: editInteractionEventSchema_0_2_0_noCode, - toolUsage: toolUsageEventSchema_0_2_0_noCode, }, }, }; diff --git a/packages/config-yaml/src/schemas/data/toolUsage/index.ts b/packages/config-yaml/src/schemas/data/toolUsage/index.ts deleted file mode 100644 index 8119366f3..000000000 --- a/packages/config-yaml/src/schemas/data/toolUsage/index.ts +++ /dev/null @@ -1,11 +0,0 @@ -import { z } from "zod"; -import { baseDevDataAllSchema } from "../base.js"; - -export const toolUsageEventAllSchema = baseDevDataAllSchema.extend({ - toolCallId: z.string(), - functionName: z.string(), - functionArgs: z.string(), - parsedArgs: z.any(), - succeeded: z.boolean(), - output: z.array(z.any()).optional(), -}); diff --git a/packages/config-yaml/src/schemas/data/toolUsage/v0.2.0.ts b/packages/config-yaml/src/schemas/data/toolUsage/v0.2.0.ts deleted file mode 100644 index 533e33218..000000000 --- a/packages/config-yaml/src/schemas/data/toolUsage/v0.2.0.ts +++ /dev/null @@ -1,26 +0,0 @@ -import { toolUsageEventAllSchema } from "./index.js"; - -export const toolUsageEventSchema_0_2_0 = toolUsageEventAllSchema.pick({ - // base - timestamp: true, - userId: true, - userAgent: true, - selectedProfileId: true, - eventName: true, - schema: true, - - // tool-usage-specific - toolCallId: true, - functionName: true, - functionArgs: true, - parsedArgs: true, - succeeded: true, - output: true, -}); - -export const toolUsageEventSchema_0_2_0_noCode = - toolUsageEventSchema_0_2_0.omit({ - functionArgs: true, - parsedArgs: true, - output: true, - }); From 8c520f7fade313d59a4cdd0b9125be78cce9529e Mon Sep 17 00:00:00 2001 From: Dallin Romney Date: Thu, 26 Jun 2025 12:54:19 -0700 Subject: [PATCH 80/91] clean up call tool --- core/config/sharedConfig.ts | 6 ++++- core/index.d.ts | 1 + .../vscode/src/extension/VsCodeExtension.ts | 6 +++++ gui/src/pages/config/UserSettingsForm.tsx | 10 +++++++ .../gui/chat-tests/EditToolScenarios.test.tsx | 27 +++++++++++++------ gui/src/redux/thunks/callCurrentTool.ts | 4 --- 6 files changed, 41 insertions(+), 13 deletions(-) diff --git a/core/config/sharedConfig.ts b/core/config/sharedConfig.ts index 439925188..af9dc5869 100644 --- a/core/config/sharedConfig.ts +++ b/core/config/sharedConfig.ts @@ -28,6 +28,7 @@ export const sharedConfigSchema = z displayRawMarkdown: z.boolean(), showChatScrollbar: z.boolean(), autoAcceptEditToolDiffs: z.boolean(), + useNextEdit: z.boolean(), // `tabAutocompleteOptions` in `ContinueConfig` useAutocompleteCache: z.boolean(), @@ -167,10 +168,13 @@ export function modifyAnyConfigWithSharedConfig< if (sharedConfig.readResponseTTS !== undefined) { configCopy.experimental.readResponseTTS = sharedConfig.readResponseTTS; } + if (sharedConfig.useCurrentFileAsContext !== undefined) { configCopy.experimental.useCurrentFileAsContext = sharedConfig.useCurrentFileAsContext; } - + if (sharedConfig.useNextEdit !== undefined) { + configCopy.experimental.useNextEdit = sharedConfig.useNextEdit; + } return configCopy; } diff --git a/core/index.d.ts b/core/index.d.ts index 4aea44fd4..3762d9e18 100644 --- a/core/index.d.ts +++ b/core/index.d.ts @@ -1359,6 +1359,7 @@ export interface ExperimentalConfig { /** * If enabled, will add the current file as context. */ + useNextEdit?: boolean; useCurrentFileAsContext?: boolean; } diff --git a/extensions/vscode/src/extension/VsCodeExtension.ts b/extensions/vscode/src/extension/VsCodeExtension.ts index 20bde355d..72743a03a 100644 --- a/extensions/vscode/src/extension/VsCodeExtension.ts +++ b/extensions/vscode/src/extension/VsCodeExtension.ts @@ -155,6 +155,12 @@ export class VsCodeExtension { this.configHandler.onConfigUpdate( async ({ config: newConfig, configLoadInterrupted }) => { + if (config?.experimental?.useNextEdit) { + // activate next edit + } else { + // nexteditwindowmanager.deactivates + } + if (configLoadInterrupted) { // Show error in status bar setupStatusBar(undefined, undefined, true); diff --git a/gui/src/pages/config/UserSettingsForm.tsx b/gui/src/pages/config/UserSettingsForm.tsx index 7f521b95f..3aa3b829f 100644 --- a/gui/src/pages/config/UserSettingsForm.tsx +++ b/gui/src/pages/config/UserSettingsForm.tsx @@ -78,6 +78,7 @@ export function UserSettingsForm() { const disableSessionTitles = config.disableSessionTitles ?? false; const useCurrentFileAsContext = config.experimental?.useCurrentFileAsContext ?? false; + const useNextEdit = config.experimental?.useNextEdit ?? false; const allowAnonymousTelemetry = config.allowAnonymousTelemetry ?? true; const disableIndexing = config.disableIndexing ?? false; @@ -386,6 +387,15 @@ export function UserSettingsForm() { } text="Add Current File by Default" /> + + handleUpdate({ + useNextEdit: !useNextEdit, + }) + } + text="Add Current File by Default" + />
diff --git a/gui/src/pages/gui/chat-tests/EditToolScenarios.test.tsx b/gui/src/pages/gui/chat-tests/EditToolScenarios.test.tsx index f020a7513..57853a1ec 100644 --- a/gui/src/pages/gui/chat-tests/EditToolScenarios.test.tsx +++ b/gui/src/pages/gui/chat-tests/EditToolScenarios.test.tsx @@ -6,6 +6,7 @@ import { import { renderWithProviders } from "../../../util/test/render"; import { Chat } from "../Chat"; +import { waitFor } from "@testing-library/dom"; import { ChatMessage } from "core"; import { toggleToolSetting } from "../../../redux/slices/uiSlice"; import { @@ -16,7 +17,9 @@ import { verifyNotPresentByTestId, } from "./utils"; +const EDIT_WORKSPACE_DIR = "file:///workspace"; const EDIT_FILEPATH = "test.txt"; +const EDIT_FILE_URI = `${EDIT_WORKSPACE_DIR}/${EDIT_FILEPATH}`; const EDIT_CHANGES = "New content"; const EDIT_TOOL_CALL_ID = "known-id"; const EDIT_MESSAGES: ChatMessage[] = [ @@ -52,6 +55,9 @@ beforeEach(() => { test("Edit run with ask first policy and no auto apply", async () => { const { ideMessenger, store, user } = await renderWithProviders(); + ideMessenger.responses["getWorkspaceDirs"] = [EDIT_WORKSPACE_DIR]; + const messengerPostSpy = vi.spyOn(ideMessenger, "post"); + addAndSelectMockLlm(store, ideMessenger); await sendInputWithMockedResponse( @@ -72,14 +78,19 @@ test("Edit run with ask first policy and no auto apply", async () => { ); await user.click(acceptToolCallButton); - const applyStates = store.getState().session.codeBlockApplyStates.states; - const initialToolApplyState = applyStates.find( - (s) => s.toolCallId === EDIT_TOOL_CALL_ID, - ); + await waitFor(() => { + expect(messengerPostSpy).toHaveBeenCalledWith("applyToFile", { + streamId: expect.any(String), + filepath: EDIT_FILE_URI, + text: EDIT_CHANGES, + toolCallId: EDIT_TOOL_CALL_ID, + }); + }); - expect(initialToolApplyState).toBeDefined(); - - const streamId = initialToolApplyState!.streamId; + const streamId = messengerPostSpy.mock.calls.find( + (call) => call[0] === "applyToFile", + )?.[1]?.streamId; + expect(streamId).toBeDefined(); ideMessenger.mockMessageToWebview("updateApplyState", { status: "streaming", @@ -115,7 +126,7 @@ test("Edit run with ask first policy and no auto apply", async () => { await getElementByText(POST_EDIT_RESPONSE); }); -test("Edit run with no policy and yolo mode", async () => { +test.skip("Edit run with no policy and yolo mode", async () => { const { ideMessenger, store, user } = await renderWithProviders(); const messengerPostSpy = vi.spyOn(ideMessenger, "post"); addAndSelectMockLlm(store, ideMessenger); diff --git a/gui/src/redux/thunks/callCurrentTool.ts b/gui/src/redux/thunks/callCurrentTool.ts index a0f95a304..6395a6e32 100644 --- a/gui/src/redux/thunks/callCurrentTool.ts +++ b/gui/src/redux/thunks/callCurrentTool.ts @@ -66,10 +66,6 @@ export const callCurrentTool = createAsyncThunk( } = await callClientTool(toolCallState, { dispatch, ideMessenger: extra.ideMessenger, - streamId: state.session.codeBlockApplyStates.states.find( - (state) => - state.toolCallId && state.toolCallId === toolCallState.toolCallId, - )?.streamId, getState, }); output = clientToolOutput; From 32b7bb6d71e7cbd2cfd28cac3f0d74a87c8e0c14 Mon Sep 17 00:00:00 2001 From: Dallin Romney Date: Thu, 26 Jun 2025 13:16:23 -0700 Subject: [PATCH 81/91] revert the usenextedit stuff --- core/config/sharedConfig.ts | 4 ---- core/index.d.ts | 1 - extensions/vscode/src/extension/VsCodeExtension.ts | 6 ------ gui/src/pages/config/UserSettingsForm.tsx | 10 ---------- 4 files changed, 21 deletions(-) diff --git a/core/config/sharedConfig.ts b/core/config/sharedConfig.ts index af9dc5869..cf4446b6f 100644 --- a/core/config/sharedConfig.ts +++ b/core/config/sharedConfig.ts @@ -28,7 +28,6 @@ export const sharedConfigSchema = z displayRawMarkdown: z.boolean(), showChatScrollbar: z.boolean(), autoAcceptEditToolDiffs: z.boolean(), - useNextEdit: z.boolean(), // `tabAutocompleteOptions` in `ContinueConfig` useAutocompleteCache: z.boolean(), @@ -173,8 +172,5 @@ export function modifyAnyConfigWithSharedConfig< configCopy.experimental.useCurrentFileAsContext = sharedConfig.useCurrentFileAsContext; } - if (sharedConfig.useNextEdit !== undefined) { - configCopy.experimental.useNextEdit = sharedConfig.useNextEdit; - } return configCopy; } diff --git a/core/index.d.ts b/core/index.d.ts index 3762d9e18..4aea44fd4 100644 --- a/core/index.d.ts +++ b/core/index.d.ts @@ -1359,7 +1359,6 @@ export interface ExperimentalConfig { /** * If enabled, will add the current file as context. */ - useNextEdit?: boolean; useCurrentFileAsContext?: boolean; } diff --git a/extensions/vscode/src/extension/VsCodeExtension.ts b/extensions/vscode/src/extension/VsCodeExtension.ts index 72743a03a..20bde355d 100644 --- a/extensions/vscode/src/extension/VsCodeExtension.ts +++ b/extensions/vscode/src/extension/VsCodeExtension.ts @@ -155,12 +155,6 @@ export class VsCodeExtension { this.configHandler.onConfigUpdate( async ({ config: newConfig, configLoadInterrupted }) => { - if (config?.experimental?.useNextEdit) { - // activate next edit - } else { - // nexteditwindowmanager.deactivates - } - if (configLoadInterrupted) { // Show error in status bar setupStatusBar(undefined, undefined, true); diff --git a/gui/src/pages/config/UserSettingsForm.tsx b/gui/src/pages/config/UserSettingsForm.tsx index 3aa3b829f..7f521b95f 100644 --- a/gui/src/pages/config/UserSettingsForm.tsx +++ b/gui/src/pages/config/UserSettingsForm.tsx @@ -78,7 +78,6 @@ export function UserSettingsForm() { const disableSessionTitles = config.disableSessionTitles ?? false; const useCurrentFileAsContext = config.experimental?.useCurrentFileAsContext ?? false; - const useNextEdit = config.experimental?.useNextEdit ?? false; const allowAnonymousTelemetry = config.allowAnonymousTelemetry ?? true; const disableIndexing = config.disableIndexing ?? false; @@ -387,15 +386,6 @@ export function UserSettingsForm() { } text="Add Current File by Default" /> - - handleUpdate({ - useNextEdit: !useNextEdit, - }) - } - text="Add Current File by Default" - /> From f7825aa507028319c387f00c64306c73488401dd Mon Sep 17 00:00:00 2001 From: Dallin Romney Date: Thu, 26 Jun 2025 13:51:51 -0700 Subject: [PATCH 82/91] working yolo mode test --- gui/src/context/MockIdeMessenger.ts | 1 + gui/src/hooks/ParallelListeners.tsx | 11 +- .../gui/chat-tests/EditToolScenarios.test.tsx | 112 ++++++++++++------ 3 files changed, 79 insertions(+), 45 deletions(-) diff --git a/gui/src/context/MockIdeMessenger.ts b/gui/src/context/MockIdeMessenger.ts index d79e479be..725563087 100644 --- a/gui/src/context/MockIdeMessenger.ts +++ b/gui/src/context/MockIdeMessenger.ts @@ -65,6 +65,7 @@ const DEFAULT_MOCK_CORE_RESPONSES: MockResponses = { }, "chatDescriber/describe": "Session summary", applyToFile: undefined, + acceptDiff: undefined, }; const DEFAULT_CHAT_RESPONSE: ChatMessage[] = [ diff --git a/gui/src/hooks/ParallelListeners.tsx b/gui/src/hooks/ParallelListeners.tsx index 24f68190e..693359a97 100644 --- a/gui/src/hooks/ParallelListeners.tsx +++ b/gui/src/hooks/ParallelListeners.tsx @@ -20,7 +20,6 @@ import { import { acceptToolCall, addContextItemsAtIndex, - cancelToolCall, selectCurrentToolCall, setHasReasoningEnabled, updateApplyState, @@ -269,17 +268,11 @@ function ParallelListeners() { currentToolCallApplyState.streamId === state.streamId ) { if (state.status === "done" && autoAcceptEditToolDiffs) { - const out = await ideMessenger.request("acceptDiff", { + console.log("AUTO ACCEPTED"); + ideMessenger.post("acceptDiff", { streamId: state.streamId, filepath: state.filepath, }); - if (out.status === "error") { - dispatch( - cancelToolCall({ - toolCallId: currentToolCallApplyState.toolCallId!, - }), - ); - } } if (state.status === "closed") { if (currentToolCall?.status !== "canceled") { diff --git a/gui/src/pages/gui/chat-tests/EditToolScenarios.test.tsx b/gui/src/pages/gui/chat-tests/EditToolScenarios.test.tsx index 57853a1ec..e903f8ae9 100644 --- a/gui/src/pages/gui/chat-tests/EditToolScenarios.test.tsx +++ b/gui/src/pages/gui/chat-tests/EditToolScenarios.test.tsx @@ -12,7 +12,6 @@ import { toggleToolSetting } from "../../../redux/slices/uiSlice"; import { getElementByTestId, getElementByText, - logAllTestIds, sendInputWithMockedResponse, verifyNotPresentByTestId, } from "./utils"; @@ -42,17 +41,12 @@ const EDIT_MESSAGES: ChatMessage[] = [ ]; const POST_EDIT_RESPONSE = "Edit applied successfully"; -const AFTER_EDIT_MESSAGES: ChatMessage[] = [ - { - role: "assistant", - content: POST_EDIT_RESPONSE, - }, -]; beforeEach(() => { vi.clearAllMocks(); }); test("Edit run with ask first policy and no auto apply", async () => { + // Setup const { ideMessenger, store, user } = await renderWithProviders(); ideMessenger.responses["getWorkspaceDirs"] = [EDIT_WORKSPACE_DIR]; @@ -60,6 +54,7 @@ test("Edit run with ask first policy and no auto apply", async () => { addAndSelectMockLlm(store, ideMessenger); + // Send the input that will respond with an edit tool call await sendInputWithMockedResponse( ideMessenger, "Edit this file", @@ -67,17 +62,18 @@ test("Edit run with ask first policy and no auto apply", async () => { ); // Toggle the codeblock and make sure the changes show - const toggleCodeblockChevron = await getElementByTestId("toggle-codeblock"); await user.click(toggleCodeblockChevron); await getElementByText(EDIT_CHANGES); + // Pending tool call - find and click the accept button const acceptToolCallButton = await getElementByTestId( "accept-tool-call-button", ); await user.click(acceptToolCallButton); + // Tool call, check that applyToFile was called for edit await waitFor(() => { expect(messengerPostSpy).toHaveBeenCalledWith("applyToFile", { streamId: expect.any(String), @@ -87,6 +83,7 @@ test("Edit run with ask first policy and no auto apply", async () => { }); }); + // Extract stream ID and initiate mock streaming const streamId = messengerPostSpy.mock.calls.find( (call) => call[0] === "applyToFile", )?.[1]?.streamId; @@ -96,41 +93,57 @@ test("Edit run with ask first policy and no auto apply", async () => { status: "streaming", streamId, toolCallId: EDIT_TOOL_CALL_ID, - filepath: EDIT_FILEPATH, + filepath: EDIT_FILE_URI, }); + // Mid stream, should show applying in notch await getElementByTestId("notch-applying-text"); await getElementByTestId("notch-applying-cancel-button"); + // Close the stream ideMessenger.mockMessageToWebview("updateApplyState", { status: "done", streamId, toolCallId: EDIT_TOOL_CALL_ID, - filepath: EDIT_FILEPATH, + filepath: EDIT_FILE_URI, }); + // Verify accept/reject buttons are present const acceptButton = await getElementByTestId("edit-accept-button"); await getElementByTestId("edit-reject-button"); - ideMessenger.setChatResponseText(POST_EDIT_RESPONSE); - + // Accept the changes, which should trigger a response after the tool call await user.click(acceptButton); + expect(messengerPostSpy).toHaveBeenCalledWith("acceptDiff", { + streamId, + filepath: EDIT_FILE_URI, + }); + + ideMessenger.setChatResponseText(POST_EDIT_RESPONSE); ideMessenger.mockMessageToWebview("updateApplyState", { status: "closed", streamId, toolCallId: EDIT_TOOL_CALL_ID, - filepath: EDIT_FILEPATH, + filepath: EDIT_FILE_URI, }); + await verifyNotPresentByTestId("edit-accept-button"); + await verifyNotPresentByTestId("edit-reject-button"); + await getElementByText(POST_EDIT_RESPONSE); }); -test.skip("Edit run with no policy and yolo mode", async () => { +test("Edit run with no policy and yolo mode", async () => { + // Setup const { ideMessenger, store, user } = await renderWithProviders(); + + ideMessenger.responses["getWorkspaceDirs"] = [EDIT_WORKSPACE_DIR]; const messengerPostSpy = vi.spyOn(ideMessenger, "post"); + addAndSelectMockLlm(store, ideMessenger); + // Enable automatic edit and yolo mode store.dispatch(toggleToolSetting(BuiltInToolNames.EditExistingFile)); triggerConfigUpdate({ store, @@ -145,6 +158,7 @@ test.skip("Edit run with no policy and yolo mode", async () => { }); expect(store.getState().config.config.ui?.autoAcceptEditToolDiffs).toBe(true); + // Send the input that will respond with an edit tool call await sendInputWithMockedResponse( ideMessenger, "Edit this file", @@ -153,39 +167,65 @@ test.skip("Edit run with no policy and yolo mode", async () => { // Toggle the codeblock and make sure the changes show const toggleCodeblockChevron = await getElementByTestId("toggle-codeblock"); - await user.click(toggleCodeblockChevron); + await user.click(toggleCodeblockChevron); await getElementByText(EDIT_CHANGES); - await verifyNotPresentByTestId("accept-tool-call-button"); // Checks tool policy + // Make sure there's no pending tool call + verifyNotPresentByTestId("accept-tool-call-button"); + // Tool call, check that applyToFile was called for edit + await waitFor(() => { + expect(messengerPostSpy).toHaveBeenCalledWith("applyToFile", { + streamId: expect.any(String), + filepath: EDIT_FILE_URI, + text: EDIT_CHANGES, + toolCallId: EDIT_TOOL_CALL_ID, + }); + }); - const applyStates = store.getState().session.codeBlockApplyStates.states; - const initialToolApplyState = applyStates.find( - (s) => s.toolCallId === EDIT_TOOL_CALL_ID, - ); + // Extract stream ID and initiate mock streaming + const streamId = messengerPostSpy.mock.calls.find( + (call) => call[0] === "applyToFile", + )?.[1]?.streamId; + expect(streamId).toBeDefined(); - expect(initialToolApplyState).toBeDefined(); - const streamId = initialToolApplyState!.streamId; + ideMessenger.mockMessageToWebview("updateApplyState", { + status: "streaming", + streamId, + toolCallId: EDIT_TOOL_CALL_ID, + filepath: EDIT_FILE_URI, + }); + // Mid stream, should show applying in notch + await getElementByTestId("notch-applying-text"); + await getElementByTestId("notch-applying-cancel-button"); + + // Close the stream + ideMessenger.mockMessageToWebview("updateApplyState", { + status: "done", + streamId, + toolCallId: EDIT_TOOL_CALL_ID, + filepath: EDIT_FILE_URI, + }); + + await waitFor(() => { + expect(messengerPostSpy).toHaveBeenCalledWith("acceptDiff", { + streamId, + filepath: EDIT_FILE_URI, + }); + }); + + // Close the stream, ensure response is shown and diff buttons are not present ideMessenger.setChatResponseText(POST_EDIT_RESPONSE); ideMessenger.mockMessageToWebview("updateApplyState", { status: "closed", streamId, toolCallId: EDIT_TOOL_CALL_ID, - filepath: EDIT_FILEPATH, + filepath: EDIT_FILE_URI, }); + + await verifyNotPresentByTestId("edit-accept-button"); + await verifyNotPresentByTestId("edit-reject-button"); + await getElementByText(POST_EDIT_RESPONSE); - - logAllTestIds(); // // Should be auto triggered - - // await waitFor(() => { - // expect(messengerPostSpy).toHaveBeenCalledWith("acceptDiff", {}); - // }); - - // await verifyNotPresentByTestId("edit-accept-button"); - // await verifyNotPresentByTestId("edit-reject-button"); - - // ideMessenger.setChatResponseText(POST_EDIT_RESPONSE); - - // await getElementByText(POST_EDIT_RESPONSE); }); From 51dfa72d1dc6dea1bf588e131e7567dcfee00fba Mon Sep 17 00:00:00 2001 From: Dallin Romney Date: Thu, 26 Jun 2025 13:59:48 -0700 Subject: [PATCH 83/91] move chat utils --- core/config/sharedConfig.ts | 2 +- extensions/intellij/rules.md | 4 ---- gui/src/pages/gui/chat-tests/ApplyScenarios.test.tsx | 4 ++-- gui/src/pages/gui/chat-tests/Chat.test.tsx | 4 ++-- gui/src/pages/gui/chat-tests/EditToolScenarios.test.tsx | 2 +- gui/src/redux/slices/profilesSlice.ts | 4 ++-- gui/src/{pages/gui/chat-tests => util/test}/utils.ts | 2 +- 7 files changed, 9 insertions(+), 13 deletions(-) rename gui/src/{pages/gui/chat-tests => util/test}/utils.ts (97%) diff --git a/core/config/sharedConfig.ts b/core/config/sharedConfig.ts index cf4446b6f..439925188 100644 --- a/core/config/sharedConfig.ts +++ b/core/config/sharedConfig.ts @@ -167,10 +167,10 @@ export function modifyAnyConfigWithSharedConfig< if (sharedConfig.readResponseTTS !== undefined) { configCopy.experimental.readResponseTTS = sharedConfig.readResponseTTS; } - if (sharedConfig.useCurrentFileAsContext !== undefined) { configCopy.experimental.useCurrentFileAsContext = sharedConfig.useCurrentFileAsContext; } + return configCopy; } diff --git a/extensions/intellij/rules.md b/extensions/intellij/rules.md index e3d749902..1f95724c9 100644 --- a/extensions/intellij/rules.md +++ b/extensions/intellij/rules.md @@ -1,7 +1,3 @@ ---- -globs: "**/intellij**" ---- - # Continue JetBrains Extension ## Project Purpose diff --git a/gui/src/pages/gui/chat-tests/ApplyScenarios.test.tsx b/gui/src/pages/gui/chat-tests/ApplyScenarios.test.tsx index 06c74f080..3624a5bd9 100644 --- a/gui/src/pages/gui/chat-tests/ApplyScenarios.test.tsx +++ b/gui/src/pages/gui/chat-tests/ApplyScenarios.test.tsx @@ -1,11 +1,11 @@ import { act } from "@testing-library/react"; import { renderWithProviders } from "../../../util/test/render"; -import { Chat } from "../Chat"; import { getElementByTestId, verifyNotPresentByTestId, verifyNotPresentByText, -} from "./utils"; +} from "../../../util/test/utils"; +import { Chat } from "../Chat"; test("Chat apply scenarios: handle apply updates and display the accept / reject all buttons", async () => { const { ideMessenger } = await renderWithProviders(); diff --git a/gui/src/pages/gui/chat-tests/Chat.test.tsx b/gui/src/pages/gui/chat-tests/Chat.test.tsx index 7a3d617d8..d3e6aa18b 100644 --- a/gui/src/pages/gui/chat-tests/Chat.test.tsx +++ b/gui/src/pages/gui/chat-tests/Chat.test.tsx @@ -1,12 +1,12 @@ import { act } from "@testing-library/react"; import { addAndSelectMockLlm } from "../../../util/test/config"; import { renderWithProviders } from "../../../util/test/render"; -import { Chat } from "../Chat"; import { getElementByTestId, getElementByText, sendInputWithMockedResponse, -} from "./utils"; +} from "../../../util/test/utils"; +import { Chat } from "../Chat"; test("should render input box", async () => { await renderWithProviders(); diff --git a/gui/src/pages/gui/chat-tests/EditToolScenarios.test.tsx b/gui/src/pages/gui/chat-tests/EditToolScenarios.test.tsx index e903f8ae9..157c81e9e 100644 --- a/gui/src/pages/gui/chat-tests/EditToolScenarios.test.tsx +++ b/gui/src/pages/gui/chat-tests/EditToolScenarios.test.tsx @@ -14,7 +14,7 @@ import { getElementByText, sendInputWithMockedResponse, verifyNotPresentByTestId, -} from "./utils"; +} from "../../../util/test/utils"; const EDIT_WORKSPACE_DIR = "file:///workspace"; const EDIT_FILEPATH = "test.txt"; diff --git a/gui/src/redux/slices/profilesSlice.ts b/gui/src/redux/slices/profilesSlice.ts index 0ea3d587a..6f3144736 100644 --- a/gui/src/redux/slices/profilesSlice.ts +++ b/gui/src/redux/slices/profilesSlice.ts @@ -19,7 +19,7 @@ export interface ProfilesState { preferencesByProfileId: Record; } -export const defaultProfilesState: ProfilesState = { +const initialState: ProfilesState = { preferencesByProfileId: {}, selectedProfileId: null, selectedOrganizationId: null, @@ -51,7 +51,7 @@ export const defaultProfilesState: ProfilesState = { export const profilesSlice = createSlice({ name: "profiles", - initialState: defaultProfilesState, + initialState, reducers: { setSelectedProfile: (state, { payload }: PayloadAction) => { state.selectedProfileId = payload; diff --git a/gui/src/pages/gui/chat-tests/utils.ts b/gui/src/util/test/utils.ts similarity index 97% rename from gui/src/pages/gui/chat-tests/utils.ts rename to gui/src/util/test/utils.ts index e1062bbe7..ebc4181d7 100644 --- a/gui/src/pages/gui/chat-tests/utils.ts +++ b/gui/src/util/test/utils.ts @@ -2,7 +2,7 @@ import { screen, waitFor } from "@testing-library/dom"; import { act } from "@testing-library/react"; import { Editor } from "@tiptap/core"; import { ChatMessage } from "core"; -import { MockIdeMessenger } from "../../../context/MockIdeMessenger"; +import { MockIdeMessenger } from "../../context/MockIdeMessenger"; function logDomText() { const bodyText = document.body.innerHTML; From 55ff11fc2e06511582b1ffd1e340e3b461a3f812 Mon Sep 17 00:00:00 2001 From: Dallin Romney Date: Thu, 26 Jun 2025 14:12:28 -0700 Subject: [PATCH 84/91] Clean up mock ide messenger --- gui/src/context/MockIdeMessenger.ts | 4 ---- 1 file changed, 4 deletions(-) diff --git a/gui/src/context/MockIdeMessenger.ts b/gui/src/context/MockIdeMessenger.ts index 725563087..340911365 100644 --- a/gui/src/context/MockIdeMessenger.ts +++ b/gui/src/context/MockIdeMessenger.ts @@ -76,10 +76,6 @@ const DEFAULT_CHAT_RESPONSE: ChatMessage[] = [ ]; export class MockIdeMessenger implements IIdeMessenger { ide: IDE; - // private messageHandlers: Map< - // keyof FromIdeProtocol, - // Array<(data: any) => void> - // > = new Map(); constructor() { this.ide = new MessageIde( From a6dbe946eab3591ed143fb5a89cad8d7be6a243a Mon Sep 17 00:00:00 2001 From: Nate Date: Thu, 26 Jun 2025 20:54:15 -0700 Subject: [PATCH 85/91] address feedback from recurse --- binary/utils/bundle-binary.js | 3 ++- extensions/vscode/scripts/download-copy-sqlite-esbuild.js | 6 ++++-- extensions/vscode/scripts/esbuild.js | 3 ++- extensions/vscode/scripts/install-copy-nodemodule.js | 3 ++- 4 files changed, 10 insertions(+), 5 deletions(-) diff --git a/binary/utils/bundle-binary.js b/binary/utils/bundle-binary.js index 0a778f5b0..f0cde0d25 100644 --- a/binary/utils/bundle-binary.js +++ b/binary/utils/bundle-binary.js @@ -91,8 +91,9 @@ async function bundleBinary(target) { child.on("message", (msg) => { if (msg.error) { reject(); + } else { + resolve(); } - resolve(); }); }); } diff --git a/extensions/vscode/scripts/download-copy-sqlite-esbuild.js b/extensions/vscode/scripts/download-copy-sqlite-esbuild.js index ad33b2eb6..ea6f8ebd9 100644 --- a/extensions/vscode/scripts/download-copy-sqlite-esbuild.js +++ b/extensions/vscode/scripts/download-copy-sqlite-esbuild.js @@ -154,8 +154,9 @@ async function copySqlite(target) { child.on("message", (msg) => { if (msg.error) { reject(); + } else { + resolve(); } - resolve(); }); }); } @@ -176,8 +177,9 @@ async function copyEsbuild(target) { child.on("message", (msg) => { if (msg.error) { reject(); + } else { + resolve(); } - resolve(); }); }); } diff --git a/extensions/vscode/scripts/esbuild.js b/extensions/vscode/scripts/esbuild.js index 9382e2b7a..e800cdfc6 100644 --- a/extensions/vscode/scripts/esbuild.js +++ b/extensions/vscode/scripts/esbuild.js @@ -1,4 +1,5 @@ const fs = require("fs"); + const { writeBuildTimestamp } = require("./utils"); const esbuild = require("esbuild"); @@ -49,7 +50,7 @@ const esbuildConfig = { ], }; -(async () => { +void (async () => { // Create .buildTimestamp.js before starting the first build writeBuildTimestamp(); // Bundles the extension into one file diff --git a/extensions/vscode/scripts/install-copy-nodemodule.js b/extensions/vscode/scripts/install-copy-nodemodule.js index a20d2dee4..1ce65327a 100644 --- a/extensions/vscode/scripts/install-copy-nodemodule.js +++ b/extensions/vscode/scripts/install-copy-nodemodule.js @@ -101,8 +101,9 @@ async function installAndCopyNodeModules(packageName, toCopy) { child.on("message", (msg) => { if (msg.error) { reject(); + } else { + resolve(); } - resolve(); }); }); } From 0cbd7e110cff87857a0cb7e4ff8e4da02e7819dd Mon Sep 17 00:00:00 2001 From: Dallin Romney Date: Fri, 27 Jun 2025 17:17:39 -0700 Subject: [PATCH 86/91] promptv1 render tests --- core/commands/util.ts | 2 +- core/util/handlebars/handlebarUtils.ts | 2 +- .../utils/processEditorContent.test.ts | 536 ++++++++++++++++++ .../utils/processEditorContent.ts | 119 ++++ .../TipTapEditor/utils/renderPromptv1.test.ts | 128 +++++ .../TipTapEditor/utils/renderPromptv1.ts | 11 +- .../TipTapEditor/utils/renderPromptv2.test.ts | 147 ++--- .../TipTapEditor/utils/renderPromptv2.ts | 5 +- .../TipTapEditor/utils/renderSlashCommand.ts | 155 +++++ .../utils/resolveEditorContent.ts | 286 +--------- gui/src/context/MockIdeMessenger.ts | 24 +- 11 files changed, 1026 insertions(+), 389 deletions(-) create mode 100644 gui/src/components/mainInput/TipTapEditor/utils/processEditorContent.test.ts create mode 100644 gui/src/components/mainInput/TipTapEditor/utils/processEditorContent.ts create mode 100644 gui/src/components/mainInput/TipTapEditor/utils/renderPromptv1.test.ts create mode 100644 gui/src/components/mainInput/TipTapEditor/utils/renderSlashCommand.ts diff --git a/core/commands/util.ts b/core/commands/util.ts index 3785b4f52..ce234919f 100644 --- a/core/commands/util.ts +++ b/core/commands/util.ts @@ -16,7 +16,7 @@ export function rifWithContentsToContextItem( return { content: rif.contents, name: `${basename} ${rangeStr}`, - description: `${relativePathOrBasename} ${rangeStr}`, // This is passed to the LLM - do not pass full URI + description: `${relativePathOrBasename} ${rangeStr}`, id: { providerTitle: "code", itemId: uuidv4(), diff --git a/core/util/handlebars/handlebarUtils.ts b/core/util/handlebars/handlebarUtils.ts index 97b32ced0..9314fd353 100644 --- a/core/util/handlebars/handlebarUtils.ts +++ b/core/util/handlebars/handlebarUtils.ts @@ -90,7 +90,7 @@ export async function prepareTemplatedFilepaths( } } catch (e) { console.error(`Error reading file in prompt file ${filepath}:`, e); - templateData[letter] = `[Error reading file ${filepath}]`; + templateData[letter] = `[Error reading file "${filepath}"]`; } } diff --git a/gui/src/components/mainInput/TipTapEditor/utils/processEditorContent.test.ts b/gui/src/components/mainInput/TipTapEditor/utils/processEditorContent.test.ts new file mode 100644 index 000000000..891cb2855 --- /dev/null +++ b/gui/src/components/mainInput/TipTapEditor/utils/processEditorContent.test.ts @@ -0,0 +1,536 @@ +import { JSONContent } from "@tiptap/react"; +import { ContextItemWithId } from "core"; +import { expect, test, vi } from "vitest"; +import { processEditorContent } from "./processEditorContent"; + +describe("processEditorContent", () => { + // Create some reusable test data + const createContextItem = ( + content: string, + description: string, + fileUri?: string, + editing?: boolean, + ): ContextItemWithId => ({ + id: { providerTitle: "test", itemId: "test-id" }, + content, + description, + name: "Test Item", + editing, + uri: fileUri ? { type: "file", value: fileUri } : undefined, + }); + + test("processEditorContent should return empty arrays when content is empty", () => { + // Empty editor state + const emptyEditorState: JSONContent = { + type: "doc", + content: [], + }; + + const result = processEditorContent(emptyEditorState); + + expect(result.parts).toEqual([]); + expect(result.contextRequests).toEqual([]); + expect(result.selectedCode).toEqual([]); + expect(result.slashCommandName).toBeUndefined(); + }); + + test("processEditorContent should process text paragraphs", () => { + const editorState: JSONContent = { + type: "doc", + content: [ + { + type: "paragraph", + content: [ + { + type: "text", + text: "Hello world", + }, + ], + }, + { + type: "paragraph", + content: [ + { + type: "text", + text: "This is another paragraph", + }, + ], + }, + ], + }; + + const result = processEditorContent(editorState); + + expect(result.parts).toEqual([ + { + type: "text", + text: "Hello world\nThis is another paragraph", + }, + ]); + expect(result.contextRequests).toEqual([]); + expect(result.selectedCode).toEqual([]); + }); + + test("processEditorContent should detect slash commands", () => { + const editorState: JSONContent = { + type: "doc", + content: [ + { + type: "prompt-block", + attrs: { + item: { + name: "test-command", + }, + }, + }, + { + type: "paragraph", + content: [ + { + type: "text", + text: "Some text after the prompt", + }, + ], + }, + ], + }; + + const result = processEditorContent(editorState); + + expect(result.slashCommandName).toBe("test-command"); + expect(result.parts).toEqual([ + { + type: "text", + text: "Some text after the prompt", + }, + ]); + }); + + test("processEditorContent should handle mentions and collect context requests", () => { + const editorState: JSONContent = { + type: "doc", + content: [ + { + type: "paragraph", + content: [ + { + type: "text", + text: "Hello ", + }, + { + type: "mention", + attrs: { + id: "fileSearch", + label: "@fileSearch", + itemType: "contextProvider", + }, + }, + { + type: "text", + text: " and also ", + }, + { + type: "mention", + attrs: { + id: "github", + label: "@github", + itemType: "contextProvider", + }, + }, + ], + }, + ], + }; + + const result = processEditorContent(editorState); + + expect(result.parts).toEqual([ + { + type: "text", + text: "Hello @fileSearch and also @github", + }, + ]); + expect(result.contextRequests).toEqual([ + { provider: "fileSearch" }, + { provider: "github" }, + ]); + }); + + test("processEditorContent should handle code blocks", () => { + const codeItem = createContextItem( + "function test() {\n return 'hello';\n}", + "a description", + "file:///example.js", + ); + + const editorState: JSONContent = { + type: "doc", + content: [ + { + type: "paragraph", + content: [ + { + type: "text", + text: "Check this code:", + }, + ], + }, + { + type: "code-block", + attrs: { + item: codeItem, + }, + }, + ], + }; + + const result = processEditorContent(editorState); + + expect(result.parts).toEqual([ + { + type: "text", + text: "Check this code:\n\n```js example.js\nfunction test() {\n return 'hello';\n}\n```\n", + }, + ]); + expect(result.selectedCode).toHaveLength(1); + expect(result.selectedCode[0].filepath).toBe("file:///example.js"); + }); + + test("processEditorContent should not include editing code blocks in the text", () => { + const editingCodeItem = createContextItem( + "function test() {\n return 'hello';\n}", + "a description", + "file:///editing.js", + true, // Set editing to true + ); + + const editorState: JSONContent = { + type: "doc", + content: [ + { + type: "paragraph", + content: [ + { + type: "text", + text: "Edit this code:", + }, + ], + }, + { + type: "code-block", + attrs: { + item: editingCodeItem, + }, + }, + ], + }; + + const result = processEditorContent(editorState); + + // The code block should not be included in parts because it's marked as editing + expect(result.parts).toEqual([ + { + type: "text", + text: "Edit this code:", + }, + ]); + + // But it should still be in selectedCode + expect(result.selectedCode).toHaveLength(1); + expect(result.selectedCode[0].filepath).toBe("file:///editing.js"); + }); + + test("processEditorContent should handle images", () => { + const editorState: JSONContent = { + type: "doc", + content: [ + { + type: "paragraph", + content: [ + { + type: "text", + text: "Here's an image:", + }, + ], + }, + { + type: "image", + attrs: { + src: "https://example.com/image.png", + }, + }, + ], + }; + + const result = processEditorContent(editorState); + + expect(result.parts).toEqual([ + { + type: "text", + text: "Here's an image:", + }, + { + type: "imageUrl", + imageUrl: { url: "https://example.com/image.png" }, + }, + ]); + }); + + test("processEditorContent should handle complex content with multiple elements", () => { + const codeItem = createContextItem( + "const x = 42;", + "a description", + "file:///script.ts", + ); + + const editorState: JSONContent = { + type: "doc", + content: [ + { + type: "prompt-block", + attrs: { + item: { + name: "explain", + }, + }, + }, + { + type: "paragraph", + content: [ + { + type: "text", + text: "Please explain this code and also check ", + }, + { + type: "mention", + attrs: { + id: "related", + label: "@related", + itemType: "similarFiles", + }, + }, + ], + }, + { + type: "code-block", + attrs: { + item: codeItem, + }, + }, + { + type: "paragraph", + content: [ + { + type: "text", + text: "What does this constant do?", + }, + ], + }, + { + type: "image", + attrs: { + src: "https://example.com/diagram.png", + }, + }, + ], + }; + + const result = processEditorContent(editorState); + + expect(result.slashCommandName).toBe("explain"); + expect(result.contextRequests).toEqual([{ provider: "similarFiles" }]); + expect(result.selectedCode).toHaveLength(1); + expect(result.selectedCode[0].filepath).toBe("file:///script.ts"); + + // `\n\n\`\`\`${extension} ${relativePathOrBasename}\n${contextItem.content}\n\`\`\`\n`; + + expect(result.parts).toEqual([ + { + type: "text", + text: "Please explain this code and also check @related\n\n```ts script.ts\nconst x = 42;\n```\n\nWhat does this constant do?", + }, + { + type: "imageUrl", + imageUrl: { url: "https://example.com/diagram.png" }, + }, + ]); + }); + + test("processEditorContent should merge consecutive text parts", () => { + const editorState: JSONContent = { + type: "doc", + content: [ + { + type: "paragraph", + content: [ + { + type: "text", + text: "First paragraph", + }, + ], + }, + { + type: "paragraph", + content: [ + { + type: "text", + text: "Second paragraph", + }, + ], + }, + { + type: "image", + attrs: { + src: "https://example.com/image.png", + }, + }, + { + type: "paragraph", + content: [ + { + type: "text", + text: "Third paragraph", + }, + ], + }, + ], + }; + + const result = processEditorContent(editorState); + + // First two paragraphs should be merged, but the third should be separate + // because there's an image in between + expect(result.parts).toEqual([ + { + type: "text", + text: "First paragraph\nSecond paragraph", + }, + { + type: "imageUrl", + imageUrl: { url: "https://example.com/image.png" }, + }, + { + type: "text", + text: "Third paragraph", + }, + ]); + }); + + test("processEditorContent should handle unexpected content types gracefully", () => { + // Testing with an unknown node type + const editorState: JSONContent = { + type: "doc", + content: [ + { + type: "paragraph", + content: [ + { + type: "text", + text: "Normal text", + }, + ], + }, + { + type: "unknown-type", // This type doesn't exist + content: [ + { + type: "text", + text: "This should be ignored", + }, + ], + }, + ], + }; + + // Spy on console.warn to verify it's called + const warnSpy = vi.spyOn(console, "warn").mockImplementation(() => {}); + + const result = processEditorContent(editorState); + + // Only the normal paragraph should be processed + expect(result.parts).toEqual([ + { + type: "text", + text: "Normal text", + }, + ]); + + // Console.warn should be called for the unknown type + expect(warnSpy).toHaveBeenCalledWith( + "Unexpected content type", + "unknown-type", + ); + + warnSpy.mockRestore(); + }); + + test("processEditorContent should handle missing attrs in code blocks", () => { + // Testing with a code block that has no item attribute + const editorState: JSONContent = { + type: "doc", + content: [ + { + type: "code-block", + // Missing attrs property + }, + ], + }; + + // Spy on console.warn to verify it's called + const warnSpy = vi.spyOn(console, "warn").mockImplementation(() => {}); + + const result = processEditorContent(editorState); + + // No parts should be created + expect(result.parts).toEqual([]); + expect(result.selectedCode).toEqual([]); + + // Console.warn should be called for the missing item attribute + expect(warnSpy).toHaveBeenCalledWith("codeBlock has no item attribute"); + + warnSpy.mockRestore(); + }); + + test("processEditorContent should handle paragraphs with unexpected child types", () => { + // Testing with a paragraph that has an unknown child type + const editorState: JSONContent = { + type: "doc", + content: [ + { + type: "paragraph", + content: [ + { + type: "text", + text: "Normal text ", + }, + { + type: "unknown-child", // This type doesn't exist + text: "This should be ignored", + }, + ], + }, + ], + }; + + // Spy on console.warn to verify it's called + const warnSpy = vi.spyOn(console, "warn").mockImplementation(() => {}); + + const result = processEditorContent(editorState); + + // Only the normal text should be processed + expect(result.parts).toEqual([ + { + type: "text", + text: "Normal text ", + }, + ]); + + // Console.warn should be called for the unknown child type + expect(warnSpy).toHaveBeenCalledWith( + "Unexpected child type", + "unknown-child", + ); + + warnSpy.mockRestore(); + }); +}); diff --git a/gui/src/components/mainInput/TipTapEditor/utils/processEditorContent.ts b/gui/src/components/mainInput/TipTapEditor/utils/processEditorContent.ts new file mode 100644 index 000000000..15ac8e856 --- /dev/null +++ b/gui/src/components/mainInput/TipTapEditor/utils/processEditorContent.ts @@ -0,0 +1,119 @@ +import Image from "@tiptap/extension-image"; +import { Paragraph } from "@tiptap/extension-paragraph"; +import { Text } from "@tiptap/extension-text"; +import { JSONContent } from "@tiptap/react"; +import { + ContextItemWithId, + MessagePart, + RangeInFile, + TextMessagePart, +} from "core"; +import { ctxItemToRifWithContents } from "core/commands/util"; +import { getUriDescription } from "core/util/uri"; +import { CodeBlock, Mention, PromptBlock } from "../extensions"; +import { GetContextRequest } from "./types"; + +interface MentionAttrs { + label: string; + id: string; + itemType?: string; + query?: string; +} + +function resolvePromptBlock(p: JSONContent): string | undefined { + return p.attrs?.item.name; +} + +function resolveParagraph(p: JSONContent): [string, GetContextRequest[]] { + const contextRequests: GetContextRequest[] = []; + + const text = (p.content || []) + .map((child) => { + switch (child.type) { + case Text.name: + return child.text; + case Mention.name: + const attrs = child.attrs as MentionAttrs; + contextRequests.push({ + provider: + attrs.itemType === "contextProvider" ? attrs.id : attrs.itemType!, + }); + return child.attrs?.renderInlineAs ?? child.attrs?.label; + + default: + console.warn("Unexpected child type", child.type); + return ""; + } + }) + .join("") + .trimStart(); + + return [text, contextRequests]; +} + +export function processEditorContent(editorState: JSONContent) { + const contextRequests: GetContextRequest[] = []; + const selectedCode: RangeInFile[] = []; + let slashCommandName: string | undefined; + + const parts: MessagePart[] = []; + for (const p of editorState?.content || []) { + switch (p.type) { + case PromptBlock.name: + slashCommandName = resolvePromptBlock(p); + break; + case Paragraph.name: + const [text, ctxItems] = resolveParagraph(p); + + contextRequests.push(...ctxItems); + + if (text) { + // Merge with previous text part if possible + if (parts[parts.length - 1]?.type === "text") { + (parts[parts.length - 1] as TextMessagePart).text += "\n" + text; + } else { + parts.push({ type: "text", text }); + } + } + break; + case CodeBlock.name: + if (!p.attrs?.item) { + console.warn("codeBlock has no item attribute"); + break; + } + + const contextItem = p.attrs.item as ContextItemWithId; + const rif = ctxItemToRifWithContents(contextItem, true); + selectedCode.push(rif); + + // If editing, only include in selectedCode + if (contextItem.editing) { + break; + } + + const { extension, relativePathOrBasename } = getUriDescription( + rif.filepath, + window.workspacePaths ?? [], + ); + const codeText = `\n\`\`\`${extension} ${relativePathOrBasename}\n${contextItem.content}\n\`\`\`\n`; + + if (parts[parts.length - 1]?.type === "text") { + (parts[parts.length - 1] as TextMessagePart).text += "\n" + codeText; + } else { + parts.push({ type: "text", text: codeText }); + } + break; + case Image.name: + parts.push({ + type: "imageUrl", + imageUrl: { url: p.attrs?.src }, + }); + break; + default: { + console.warn("Unexpected content type", p.type); + } + } + } + + return { parts, contextRequests, selectedCode, slashCommandName }; +} diff --git a/gui/src/components/mainInput/TipTapEditor/utils/renderPromptv1.test.ts b/gui/src/components/mainInput/TipTapEditor/utils/renderPromptv1.test.ts new file mode 100644 index 000000000..7837e6e7d --- /dev/null +++ b/gui/src/components/mainInput/TipTapEditor/utils/renderPromptv1.test.ts @@ -0,0 +1,128 @@ +import { SlashCommandDescWithSource } from "core"; +import { beforeEach, describe, it, vi } from "vitest"; +import { + MockIdeMessenger, + MockResponseHandler, +} from "../../../../context/MockIdeMessenger"; +import { getRenderedV1Prompt } from "./renderPromptv1"; + +function getTestPromptV1Command(body: string): SlashCommandDescWithSource { + return { + prompt: body, + name: "test-prompt-name", + description: "test-prompt-description", + isLegacy: false, + source: "prompt-file-v1", + }; +} +describe("get rendered v1 prompt file", () => { + const ideMessenger = new MockIdeMessenger(); + const firstDir = ideMessenger.responses["getWorkspaceDirs"]?.[0] ?? ""; + const customGetContextItems: MockResponseHandler< + "context/getContextItems" + > = async ({ name }) => { + if (name === "diff") { + return [ + { + id: { + itemId: "id", + providerTitle: "diff", + }, + name: "name", + description: "description", + content: "Diff provider content", + }, + ]; + } + return []; + }; + beforeEach(async () => { + vi.clearAllMocks(); + ideMessenger.resetMocks(); + }); + + it("should render a prompt file with no attachments or templated input", async () => { + const rawContent = "Simple prompt with no attachments"; + const command = getTestPromptV1Command(rawContent); + const rendered = await getRenderedV1Prompt( + ideMessenger, + command, + "User input", + [], + ); + expect(rendered).toBe("Simple prompt with no attachments\n\nUser input"); + }); + + it("should render a prompt file templated input", async () => { + const rawContent = "{{{ input }}} Simple prompt with no attachments"; + const command = getTestPromptV1Command(rawContent); + const rendered = await getRenderedV1Prompt( + ideMessenger, + command, + "User input", + [], + ); + expect(rendered).toBe("User input Simple prompt with no attachments"); + }); + + it("Should handle file attachments", async () => { + ideMessenger.responses["readFile"] = "Test file content"; + const rawContent = "Content with URL {{{ testFile.txt }}}"; + const command = getTestPromptV1Command(rawContent); + const rendered = await getRenderedV1Prompt( + ideMessenger, + command, + "User input", + [], + ); + expect(rendered).toBe("Content with URL Test file content\n\nUser input"); + }); + + it("should handle supported providers", async () => { + ideMessenger.responseHandlers["context/getContextItems"] = + customGetContextItems; + const rawContent = "Tell me about {{{ diff }}} please"; + const command = getTestPromptV1Command(rawContent); + const rendered = await getRenderedV1Prompt( + ideMessenger, + command, + "User input", + [], + ); + expect(rendered).toBe( + "Tell me about Diff provider content please\n\nUser input", + ); + }); + + it("should render file read errors within prompt", async () => { + ideMessenger.responses["fileExists"] = false; + const rawContent = "Content with provider {{{ nonexistent }}}"; + const command = getTestPromptV1Command(rawContent); + const rendered = await getRenderedV1Prompt( + ideMessenger, + command, + "User input", + [], + ); + expect(rendered).toBe( + `Content with provider [Error reading file "nonexistent"]\n\nUser input`, + ); + }); + + it("should handle multiple attachments", async () => { + ideMessenger.responseHandlers["context/getContextItems"] = + customGetContextItems; + ideMessenger.responses["readFile"] = "Test file content"; + const rawContent = "Content with {{{ diff }}} and {{{ file.txt }}}"; + const command = getTestPromptV1Command(rawContent); + const rendered = await getRenderedV1Prompt( + ideMessenger, + command, + "User input", + [], + ); + expect(rendered).toBe( + "Content with Diff provider content and Test file content\n\nUser input", + ); + }); +}); diff --git a/gui/src/components/mainInput/TipTapEditor/utils/renderPromptv1.ts b/gui/src/components/mainInput/TipTapEditor/utils/renderPromptv1.ts index e6195e314..3721ab213 100644 --- a/gui/src/components/mainInput/TipTapEditor/utils/renderPromptv1.ts +++ b/gui/src/components/mainInput/TipTapEditor/utils/renderPromptv1.ts @@ -30,7 +30,9 @@ export async function getRenderedV1Prompt( if (response.status === "success") { return response.content.map((item) => item.content).join("\n\n"); } else { - throw new Error(`Failed to get context items from provider: ${name}`); + throw new Error( + `Failed to get context items from provider "${name}": ${response.error}`, + ); } }, ], @@ -40,7 +42,7 @@ export async function getRenderedV1Prompt( return resolveRelativePathInDir(path, ideMessenger.ide, workspaceDirs); }; const handlebars = await import("handlebars"); - return await renderTemplatedString( + let rendered = await renderTemplatedString( handlebars, command.prompt, { input: userInput }, @@ -48,4 +50,9 @@ export async function getRenderedV1Prompt( ideMessenger.ide.readFile.bind(ideMessenger.ide), getUriFromPath, ); + // For prompt file append the input if it isn't rendered + if (!rendered.includes(userInput)) { + rendered = rendered + `\n\n${userInput}`; + } + return rendered.trim(); } diff --git a/gui/src/components/mainInput/TipTapEditor/utils/renderPromptv2.test.ts b/gui/src/components/mainInput/TipTapEditor/utils/renderPromptv2.test.ts index 867084d39..b99b8279a 100644 --- a/gui/src/components/mainInput/TipTapEditor/utils/renderPromptv2.test.ts +++ b/gui/src/components/mainInput/TipTapEditor/utils/renderPromptv2.test.ts @@ -1,7 +1,6 @@ import { SlashCommandDescWithSource } from "core"; -import { setUpTestDir, tearDownTestDir } from "core/test/testDir"; -import { afterEach, beforeEach, describe, expect, it, vi } from "vitest"; -import { IdeMessenger, IIdeMessenger } from "../../../../context/IdeMessenger"; +import { beforeEach, describe, expect, it, vi } from "vitest"; +import { MockIdeMessenger } from "../../../../context/MockIdeMessenger"; import { getPromptV2ContextRequests } from "./renderPromptv2"; function getTestPromptV2Command(body: string): SlashCommandDescWithSource { @@ -14,116 +13,68 @@ function getTestPromptV2Command(body: string): SlashCommandDescWithSource { }; } describe("getPromptV2ContextRequests", () => { - let ideMessenger: IIdeMessenger; - const mockGetContextItems = vi.fn().mockResolvedValue([ - { - name: "custom", - content: "Custom provider content", - description: "Custom provider", - }, - ]); + const ideMessenger = new MockIdeMessenger(); + const firstDir = ideMessenger.responses["getWorkspaceDirs"]?.[0] ?? ""; beforeEach(async () => { - // Mock the ideMessenger vi.clearAllMocks(); - setUpTestDir(); - ideMessenger = new IdeMessenger(); - vi.spyOn(ideMessenger.ide, "readFile").mockImplementation(() => { - return Promise.resolve("Example Content"); - }); - }); - - afterEach(() => { - tearDownTestDir(); + ideMessenger.resetMocks(); }); it("should render a prompt file with no attachments", async () => { const rawContent = "Simple prompt with no attachments"; const command = getTestPromptV2Command(rawContent); const requests = await getPromptV2ContextRequests(ideMessenger, command); - expect(requests).toHaveLength(0); }); - // it("should handle URL attachments", async () => { - // const rawContent = "Content with URL @https://example.com"; + it("should handle URL attachments", async () => { + const rawContent = "Content with URL @https://example.com"; + const command = getTestPromptV2Command(rawContent); + const requests = await getPromptV2ContextRequests(ideMessenger, command); + expect(requests).toHaveLength(1); + expect(requests[0].provider).toBe("url"); + expect(requests[0].query).toBe("https://example.com"); + }); - // const [contextItems, renderedPrompt] = await getPromptV2ContextAttrs( - // rawContent, - // extras, - // ); + it("should resolve file attachments", async () => { + const rawContent = "Content with file attachment @test.txt"; + const command = getTestPromptV2Command(rawContent); + const requests = await getPromptV2ContextRequests(ideMessenger, command); - // expect(contextItems).toHaveLength(1); - // expect(renderedPrompt).toContain("Example Content"); - // }); + expect(requests).toHaveLength(1); + expect(requests[0].provider).toBe("file"); + expect(requests[0].query).toBe(`${firstDir}/test.txt`); + }); - // it("should resolve file attachments", async () => { - // const rawContent = "Content with file attachment @test.txt"; + it("should handle nested prompt files", async () => { + ideMessenger.responses["readFile"] = "Contents @myfile.txt"; + const rawContent = "Main prompt with nested @test.prompt"; + const command = getTestPromptV2Command(rawContent); + const requests = await getPromptV2ContextRequests(ideMessenger, command); + expect(requests).toHaveLength(2); + expect(requests[0].provider).toBe("file"); + expect(requests[0].query).toBe(`${firstDir}/myfile.txt`); + expect(requests[1].provider).toBe("file"); + expect(requests[1].query).toBe(`${firstDir}/test.prompt`); + }); - // addToTestDir([["test.txt", "File content"]]); + it("should ignore unsupported providers", async () => { + ideMessenger.responses["fileExists"] = false; + const rawContent = "Content with custom provider @unsupported"; + const command = getTestPromptV2Command(rawContent); + const requests = await getPromptV2ContextRequests(ideMessenger, command); + expect(requests).toHaveLength(0); + }); - // const [contextItems, renderedPrompt] = await getPromptV2ContextAttrs( - // rawContent, - // extras, - // ); + it("should handle multiple attachments", async () => { + const rawContent = "Content with @file1.txt and @file2.txt"; + const command = getTestPromptV2Command(rawContent); + const requests = await getPromptV2ContextRequests(ideMessenger, command); - // expect(contextItems).toHaveLength(1); - // expect(renderedPrompt).toContain("```test.txt\nFile content\n```"); - // expect(renderedPrompt).toContain("Content with file attachment @test.txt"); - // }); - - // it("should handle nested prompt files", async () => { - // const rawContent = "Main prompt with nested @nested.prompt"; - // addToTestDir([ - // ["nested.prompt", "Nested prompt content with @CustomProvider"], - // ]); - - // const [contextItems, renderedPrompt] = await getPromptV2ContextAttrs( - // rawContent, - // extras, - // ); - - // expect(renderedPrompt).toContain("Custom provider content"); - // }); - - // it("should handle custom context providers", async () => { - // const rawContent = "Content with custom provider @CustomProvider"; - - // const [contextItems, renderedPrompt] = await getPromptV2ContextAttrs( - // rawContent, - // extras, - // ); - - // expect(contextItems).toHaveLength(1); - // expect(renderedPrompt).toContain("Custom provider content"); - // expect(mockGetContextItems).toHaveBeenCalled(); - // }); - - // it("should handle multiple attachments", async () => { - // const rawContent = "Content with @file1.txt and @file2.txt"; - // addToTestDir([ - // ["file1.txt", "Content 1"], - // ["file2.txt", "Content 2"], - // ]); - - // const [contextItems, renderedPrompt] = await getPromptV2ContextAttrs( - // rawContent, - // extras, - // ); - - // expect(contextItems).toHaveLength(2); - // expect(renderedPrompt).toContain("```file1.txt\nContent 1\n```"); - // expect(renderedPrompt).toContain("```file2.txt\nContent 2\n```"); - // }); - - // it("should handle failed attachment resolutions gracefully", async () => { - // const rawContent = "Content with @nonexistent"; - - // const [contextItems, renderedPrompt] = await getPromptV2ContextAttrs( - // rawContent, - // extras, - // ); - - // expect(contextItems).toHaveLength(0); - // expect(renderedPrompt).toBe("Content with @nonexistent\n\nUser input"); - // }); + expect(requests).toHaveLength(2); + expect(requests[0].provider).toBe("file"); + expect(requests[0].query).toBe(`${firstDir}/file1.txt`); + expect(requests[1].provider).toBe("file"); + expect(requests[1].query).toBe(`${firstDir}/file2.txt`); + }); }); diff --git a/gui/src/components/mainInput/TipTapEditor/utils/renderPromptv2.ts b/gui/src/components/mainInput/TipTapEditor/utils/renderPromptv2.ts index 51a8e37b8..afc6c2e2c 100644 --- a/gui/src/components/mainInput/TipTapEditor/utils/renderPromptv2.ts +++ b/gui/src/components/mainInput/TipTapEditor/utils/renderPromptv2.ts @@ -43,7 +43,7 @@ export async function getPromptV2ContextRequests( // Files const resolvedFileUri = await resolveRelativePathInDir( - match[0], + match[1], ideMessenger.ide, workspaceDirs, ); @@ -54,10 +54,11 @@ export async function getPromptV2ContextRequests( return []; } visitedFiles.add(resolvedFileUri); + // As well as any context providers it references await addContextRequestsRecursive(contents); } contextRequests.push({ - provider: name, + provider: "file", query: resolvedFileUri, }); } diff --git a/gui/src/components/mainInput/TipTapEditor/utils/renderSlashCommand.ts b/gui/src/components/mainInput/TipTapEditor/utils/renderSlashCommand.ts new file mode 100644 index 000000000..2f6f0c6da --- /dev/null +++ b/gui/src/components/mainInput/TipTapEditor/utils/renderSlashCommand.ts @@ -0,0 +1,155 @@ +import { MessagePart, RangeInFile, SlashCommandDescWithSource } from "core"; +import { stripImages } from "core/util/messageContent"; +import { IIdeMessenger } from "../../../../context/IdeMessenger"; +import { getRenderedV1Prompt } from "./renderPromptv1"; +import { getPromptV2ContextRequests } from "./renderPromptv2"; +import { GetContextRequest } from "./types"; + +/* +Slash commands can come from many sources. Render based on the source. +*/ +export async function renderSlashCommandPrompt( + ideMessenger: IIdeMessenger, + commandName: string | undefined, + parts: MessagePart[], + availableSlashCommands: SlashCommandDescWithSource[], + selectedCode: RangeInFile[], +): Promise<{ + slashedParts: MessagePart[]; + legacyCommandWithInput?: { + command: SlashCommandDescWithSource; + input: string; + }; + contextRequests: GetContextRequest[]; +}> { + const NO_COMMAND = { + slashedParts: parts, + legacyCommandWithInput: undefined, + contextRequests: [], + }; + if (!commandName) { + return NO_COMMAND; + } + const command = availableSlashCommands.find((c) => c.name === commandName); + if (!command) { + return NO_COMMAND; + } + + const nonTextParts = parts.filter((part) => part.type !== "text"); + const textParts = parts.filter((part) => part.type === "text"); + const slashedParts: MessagePart[] = [...nonTextParts]; + + const userInput = stripImages(textParts).trimStart(); + + const legacyCommandWithInput = command.isLegacy + ? { + command, + input: userInput, + } + : undefined; + + const contextRequests: GetContextRequest[] = []; + + switch (command.source) { + case "built-in-legacy": + case "config-ts-slash-command": + /** + * For legacy slash commands, we simply insert the text "/{name}" in front of the message + * And then parsing for this is done in core + */ + slashedParts.push({ + type: "text", + text: `/${command.name}${command.prompt ? " " + command.prompt : ""}${userInput ? " " + userInput : ""}`, + }); + break; + case "mcp-prompt": + // TODO add support for mcp prompt args using command.mcpArgs + const args: { [key: string]: string } = {}; + if (command.mcpArgs) { + command.mcpArgs.forEach((arg, i) => { + args[arg.name] = ""; + }); + } + const response = await ideMessenger.request("mcp/getPrompt", { + serverName: command.mcpServerName!, + promptName: command.name, + args: args, + }); + if (response.status === "success") { + slashedParts.push({ + type: "text", + text: `${response.content.prompt}${userInput ? "\n\n" + userInput : ""}`, + }); + } else { + throw new Error( + `Failed to get MCP prompt for slash command ${command.name}`, + ); + } + break; + case "prompt-file-v1": + case "prompt-file-v2": + case "yaml-prompt-block": + if (!command.prompt) { + console.warn(`Invalid/empty prompt from slash command ${command.name}`); + break; + } + let renderedPrompt: string; + if ( + command.source === "prompt-file-v1" || + command.prompt.includes("{{{ input }}}") + ) { + renderedPrompt = await getRenderedV1Prompt( + ideMessenger, + command, + userInput, + selectedCode, + ); + } else { + const promptFileCtxRequests = await getPromptV2ContextRequests( + ideMessenger, + command, + ); + contextRequests.push(...promptFileCtxRequests); + renderedPrompt = [command.prompt, userInput].join("\n\n"); + } + + if (renderedPrompt) { + slashedParts.push({ + type: "text", + text: renderedPrompt.trim(), // Includes user input + }); + } else { + console.warn( + `Invalid/empty prompt + input from slash command ${command.name}`, + ); + } + + break; + case "built-in": + case "invokable-rule": + case "json-custom-command": + if (!command.prompt) { + console.warn(`Slash command ${command.name} is missing prompt`); + break; + } + const rendered = + `${command.prompt}${userInput ? "\n\n" + userInput : ""}`.trim(); + if (rendered) { + slashedParts.push({ + type: "text", + text: rendered, + }); + } else { + console.warn( + `Invalid/empty prompt + input from slash command ${command.name}`, + ); + } + default: + break; + } + return { + slashedParts, + legacyCommandWithInput, + contextRequests, + }; +} diff --git a/gui/src/components/mainInput/TipTapEditor/utils/resolveEditorContent.ts b/gui/src/components/mainInput/TipTapEditor/utils/resolveEditorContent.ts index 465558dee..85f6797b5 100644 --- a/gui/src/components/mainInput/TipTapEditor/utils/resolveEditorContent.ts +++ b/gui/src/components/mainInput/TipTapEditor/utils/resolveEditorContent.ts @@ -1,7 +1,4 @@ import { Dispatch } from "@reduxjs/toolkit"; -import Image from "@tiptap/extension-image"; -import { Paragraph } from "@tiptap/extension-paragraph"; -import { Text } from "@tiptap/extension-text"; import { JSONContent } from "@tiptap/react"; import { ContextItemWithId, @@ -11,25 +8,14 @@ import { MessagePart, RangeInFile, SlashCommandDescWithSource, - TextMessagePart, } from "core"; -import { ctxItemToRifWithContents } from "core/commands/util"; import { stripImages } from "core/util/messageContent"; -import { getUriFileExtension } from "core/util/uri"; import { IIdeMessenger } from "../../../../context/IdeMessenger"; import { setIsGatheringContext } from "../../../../redux/slices/sessionSlice"; -import { CodeBlock, Mention, PromptBlock } from "../extensions"; -import { getRenderedV1Prompt } from "./renderPromptv1"; -import { getPromptV2ContextRequests } from "./renderPromptv2"; +import { processEditorContent } from "./processEditorContent"; +import { renderSlashCommandPrompt } from "./renderSlashCommand"; import { GetContextRequest } from "./types"; -interface MentionAttrs { - label: string; - id: string; - itemType?: string; - query?: string; -} - interface ResolveEditorContentInput { editorState: JSONContent; modifiers: InputModifiers; @@ -115,243 +101,6 @@ export async function resolveEditorContent({ }; } -/** - * Processes editor content and extracts parts, context items, code, and slash commands - */ -function processEditorContent(editorState: JSONContent) { - const contextRequests: GetContextRequest[] = []; - const selectedCode: RangeInFile[] = []; - let slashCommandName: string | undefined; - - const parts = (editorState?.content || []).reduce( - (parts, p) => { - switch (p.type) { - case PromptBlock.name: { - slashCommandName = resvolePromptBlock(p); - } - - case Paragraph.name: { - const [text, ctxItems] = resolveParagraph(p); - - contextRequests.push(...ctxItems); - - if (!text) return parts; - - // Merge with previous text part if possible - if (parts[parts.length - 1]?.type === "text") { - (parts[parts.length - 1] as TextMessagePart).text += "\n" + text; - return parts; - } - - return [...parts, { type: "text", text }]; - } - - case CodeBlock.name: { - if (!p.attrs?.item) { - console.warn("codeBlock has no item attribute"); - return parts; - } - - const contextItem = p.attrs.item as ContextItemWithId; - const rif = ctxItemToRifWithContents(contextItem, true); - selectedCode.push(rif); - - // If editing, only include in selectedCode - if (contextItem.editing) { - return parts; - } - - const fileExtension = getUriFileExtension(rif.filepath); - const codeText = [ - "\n\n```", - fileExtension, - " ", - contextItem.description, - "\n", - contextItem.content, - "\n```", - ].join(""); - - if (parts[parts.length - 1]?.type === "text") { - (parts[parts.length - 1] as TextMessagePart).text += - "\n" + codeText; - return parts; - } - - return [...parts, { type: "text", text: codeText }]; - } - - case Image.name: { - return [ - ...parts, - { - type: "imageUrl", - imageUrl: { url: p.attrs?.src }, - }, - ]; - } - - default: { - console.warn("Unexpected content type", p.type); - return parts; - } - } - }, - [], - ); - - return { parts, contextRequests, selectedCode, slashCommandName }; -} - -/** - * Processes slash commands and prepares the command with input - */ -async function renderSlashCommandPrompt( - ideMessenger: IIdeMessenger, - commandName: string | undefined, - parts: MessagePart[], - availableSlashCommands: SlashCommandDescWithSource[], - selectedCode: RangeInFile[], -): Promise<{ - slashedParts: MessagePart[]; - legacyCommandWithInput?: { - command: SlashCommandDescWithSource; - input: string; - }; - contextRequests: GetContextRequest[]; -}> { - const NO_COMMAND = { - slashedParts: parts, - legacyCommandWithInput: undefined, - contextRequests: [], - }; - if (!commandName) { - return NO_COMMAND; - } - const command = availableSlashCommands.find((c) => c.name === commandName); - if (!command) { - return NO_COMMAND; - } - - const nonTextParts = parts.filter((part) => part.type !== "text"); - const textParts = parts.filter((part) => part.type === "text"); - const slashedParts: MessagePart[] = [...nonTextParts]; - - const userInput = stripImages(textParts).trimStart(); - - const legacyCommandWithInput = command.isLegacy - ? { - command, - input: userInput, - } - : undefined; - - const contextRequests: GetContextRequest[] = []; - - switch (command.source) { - case "built-in-legacy": - case "config-ts-slash-command": - /** - * For legacy slash commands, we simply insert the text "/{name}" in front of the message - * And then parsing for this is done in core - */ - slashedParts.push({ - type: "text", - text: `/${command.name}${command.prompt ? " " + command.prompt : ""}${userInput ? " " + userInput : ""}`, - }); - break; - case "mcp-prompt": - // TODO add support for mcp prompt args using command.mcpArgs - const args: { [key: string]: string } = {}; - if (command.mcpArgs) { - command.mcpArgs.forEach((arg, i) => { - args[arg.name] = ""; - }); - } - const response = await ideMessenger.request("mcp/getPrompt", { - serverName: command.mcpServerName!, - promptName: command.name, - args: args, - }); - if (response.status === "success") { - slashedParts.push({ - type: "text", - text: `${response.content.prompt}${userInput ? "\n\n" + userInput : ""}`, - }); - } else { - throw new Error( - `Failed to get MCP prompt for slash command ${command.name}`, - ); - } - break; - case "prompt-file-v1": - case "prompt-file-v2": - case "yaml-prompt-block": - if (!command.prompt) { - console.warn(`Invalid/empty prompt from slash command ${command.name}`); - break; - } - let renderedPrompt: string; - if ( - command.source === "prompt-file-v1" || - command.prompt.includes("{{{ input }}}") - ) { - renderedPrompt = await getRenderedV1Prompt( - ideMessenger, - command, - userInput, - selectedCode, - ); - } else { - const promptFileCtxRequests = await getPromptV2ContextRequests( - ideMessenger, - command, - ); - contextRequests.push(...promptFileCtxRequests); - renderedPrompt = [command.prompt, userInput].join("\n\n"); - } - - if (renderedPrompt) { - slashedParts.push({ - type: "text", - text: renderedPrompt.trim(), // Includes user input - }); - } else { - console.warn( - `Invalid/empty prompt + input from slash command ${command.name}`, - ); - } - - break; - case "built-in": - case "invokable-rule": - case "json-custom-command": - if (!command.prompt) { - console.warn(`Slash command ${command.name} is missing prompt`); - break; - } - const rendered = - `${command.prompt}${userInput ? "\n\n" + userInput : ""}`.trim(); - if (rendered) { - slashedParts.push({ - type: "text", - text: rendered, - }); - } else { - console.warn( - `Invalid/empty prompt + input from slash command ${command.name}`, - ); - } - default: - break; - } - return { - slashedParts, - legacyCommandWithInput, - contextRequests, - }; -} - /** * Gathers context items from various sources */ @@ -468,34 +217,3 @@ async function gatherContextItems({ ); return deduplicatedOutputs; } - -function resvolePromptBlock(p: JSONContent): string | undefined { - return p.attrs?.item.name; -} - -function resolveParagraph(p: JSONContent): [string, GetContextRequest[]] { - const contextRequests: GetContextRequest[] = []; - - const text = (p.content || []) - .map((child) => { - switch (child.type) { - case Text.name: - return child.text; - case Mention.name: - const attrs = child.attrs as MentionAttrs; - contextRequests.push({ - provider: - attrs.itemType === "contextProvider" ? attrs.id : attrs.itemType!, - }); - return child.attrs?.renderInlineAs ?? child.attrs?.label; - - default: - console.warn("Unexpected child type", child.type); - return ""; - } - }) - .join("") - .trimStart(); - - return [text, contextRequests]; -} diff --git a/gui/src/context/MockIdeMessenger.ts b/gui/src/context/MockIdeMessenger.ts index 340911365..f144653eb 100644 --- a/gui/src/context/MockIdeMessenger.ts +++ b/gui/src/context/MockIdeMessenger.ts @@ -18,6 +18,14 @@ type MockResponses = Partial<{ [K in keyof FromWebviewProtocol]: FromWebviewProtocol[K][1]; }>; +export type MockResponseHandler = ( + input: FromWebviewProtocol[T][0], +) => Promise; + +type MockResponseHandlers = Partial<{ + [K in keyof FromWebviewProtocol]: MockResponseHandler; +}>; + const DEFAULT_MOCK_CORE_RESPONSES: MockResponses = { fileExists: true, getCurrentFile: { @@ -66,6 +74,7 @@ const DEFAULT_MOCK_CORE_RESPONSES: MockResponses = { "chatDescriber/describe": "Session summary", applyToFile: undefined, acceptDiff: undefined, + readFile: "File contents", }; const DEFAULT_CHAT_RESPONSE: ChatMessage[] = [ @@ -119,6 +128,7 @@ export class MockIdeMessenger implements IIdeMessenger { } responses: MockResponses = { ...DEFAULT_MOCK_CORE_RESPONSES }; + responseHandlers: MockResponseHandlers = {}; chatResponse: ChatMessage[] = DEFAULT_CHAT_RESPONSE; chatStreamDelay: number = 0; setChatResponseText(text: string): void { @@ -164,6 +174,14 @@ export class MockIdeMessenger implements IIdeMessenger { messageType: T, data: FromWebviewProtocol[T][0], ): Promise> { + if (this.responseHandlers[messageType]) { + const content = await this.responseHandlers[messageType](data); + return { + status: "success", + content, + done: true, + }; + } if (messageType in this.responses) { const content = this.responses[messageType]; return { @@ -173,7 +191,10 @@ export class MockIdeMessenger implements IIdeMessenger { }; } console.error(messageType); - throw new Error("MockIdeMessenger: No response defined for " + messageType); + throw new Error( + "MockIdeMessenger: No response handler or response defined for " + + messageType, + ); } respond( @@ -195,6 +216,7 @@ export class MockIdeMessenger implements IIdeMessenger { resetMocks(): void { this.responses = { ...DEFAULT_MOCK_CORE_RESPONSES }; + this.responseHandlers = {}; this.chatResponse = DEFAULT_CHAT_RESPONSE; this.chatStreamDelay = 0; } From 332eb273e57be9d9c3b019f878ba16b3fd1c88e7 Mon Sep 17 00:00:00 2001 From: Dallin Romney Date: Fri, 27 Jun 2025 17:26:08 -0700 Subject: [PATCH 87/91] move render mcp prompt into its own file --- .../TipTapEditor/utils/renderMcpPrompt.ts | 32 ++++++++++++++ .../TipTapEditor/utils/renderSlashCommand.ts | 42 +++++++------------ 2 files changed, 48 insertions(+), 26 deletions(-) create mode 100644 gui/src/components/mainInput/TipTapEditor/utils/renderMcpPrompt.ts diff --git a/gui/src/components/mainInput/TipTapEditor/utils/renderMcpPrompt.ts b/gui/src/components/mainInput/TipTapEditor/utils/renderMcpPrompt.ts new file mode 100644 index 000000000..3ede7e303 --- /dev/null +++ b/gui/src/components/mainInput/TipTapEditor/utils/renderMcpPrompt.ts @@ -0,0 +1,32 @@ +import { SlashCommandDescWithSource } from "core"; +import { IIdeMessenger } from "../../../../context/IdeMessenger"; + +export async function renderMcpPrompt( + command: SlashCommandDescWithSource, + ideMessenger: IIdeMessenger, + userInput?: string, +) { + // TODO add support for mcp prompt args using command.mcpArgs + const args: { [key: string]: string } = {}; + if (command.mcpArgs) { + command.mcpArgs.forEach((arg, i) => { + args[arg.name] = ""; + }); + } + const response = await ideMessenger.request("mcp/getPrompt", { + serverName: command.mcpServerName!, + promptName: command.name, + args: args, + }); + if (response.status === "success") { + let renderedPrompt = response.content.prompt; + if (userInput) { + renderedPrompt += `\n\n${userInput}`; + } + return renderedPrompt; + } else { + throw new Error( + `Failed to get MCP prompt for slash command ${command.name}`, + ); + } +} diff --git a/gui/src/components/mainInput/TipTapEditor/utils/renderSlashCommand.ts b/gui/src/components/mainInput/TipTapEditor/utils/renderSlashCommand.ts index 2f6f0c6da..ac610a031 100644 --- a/gui/src/components/mainInput/TipTapEditor/utils/renderSlashCommand.ts +++ b/gui/src/components/mainInput/TipTapEditor/utils/renderSlashCommand.ts @@ -1,6 +1,7 @@ import { MessagePart, RangeInFile, SlashCommandDescWithSource } from "core"; import { stripImages } from "core/util/messageContent"; import { IIdeMessenger } from "../../../../context/IdeMessenger"; +import { renderMcpPrompt } from "./mcpPromptArgs"; import { getRenderedV1Prompt } from "./renderPromptv1"; import { getPromptV2ContextRequests } from "./renderPromptv2"; import { GetContextRequest } from "./types"; @@ -63,32 +64,20 @@ export async function renderSlashCommandPrompt( }); break; case "mcp-prompt": - // TODO add support for mcp prompt args using command.mcpArgs - const args: { [key: string]: string } = {}; - if (command.mcpArgs) { - command.mcpArgs.forEach((arg, i) => { - args[arg.name] = ""; - }); - } - const response = await ideMessenger.request("mcp/getPrompt", { - serverName: command.mcpServerName!, - promptName: command.name, - args: args, + const renderedMcpPrompt = await renderMcpPrompt( + command, + ideMessenger, + userInput, + ); + slashedParts.push({ + type: "text", + text: renderedMcpPrompt, }); - if (response.status === "success") { - slashedParts.push({ - type: "text", - text: `${response.content.prompt}${userInput ? "\n\n" + userInput : ""}`, - }); - } else { - throw new Error( - `Failed to get MCP prompt for slash command ${command.name}`, - ); - } break; case "prompt-file-v1": case "prompt-file-v2": case "yaml-prompt-block": + case "invokable-rule": if (!command.prompt) { console.warn(`Invalid/empty prompt from slash command ${command.name}`); break; @@ -110,13 +99,13 @@ export async function renderSlashCommandPrompt( command, ); contextRequests.push(...promptFileCtxRequests); - renderedPrompt = [command.prompt, userInput].join("\n\n"); + renderedPrompt = [command.prompt, userInput].join("\n\n").trim(); } if (renderedPrompt) { slashedParts.push({ type: "text", - text: renderedPrompt.trim(), // Includes user input + text: renderedPrompt, // Includes user input }); } else { console.warn( @@ -126,14 +115,15 @@ export async function renderSlashCommandPrompt( break; case "built-in": - case "invokable-rule": case "json-custom-command": if (!command.prompt) { console.warn(`Slash command ${command.name} is missing prompt`); break; } - const rendered = - `${command.prompt}${userInput ? "\n\n" + userInput : ""}`.trim(); + let rendered = command.prompt; + if (userInput) { + rendered += `\n\n${userInput}`; + } if (rendered) { slashedParts.push({ type: "text", From 11afeaeb18cda698bfebd1d969f7b51ac7830907 Mon Sep 17 00:00:00 2001 From: Dallin Romney Date: Fri, 27 Jun 2025 17:26:27 -0700 Subject: [PATCH 88/91] clean up --- .../mainInput/TipTapEditor/utils/renderSlashCommand.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gui/src/components/mainInput/TipTapEditor/utils/renderSlashCommand.ts b/gui/src/components/mainInput/TipTapEditor/utils/renderSlashCommand.ts index ac610a031..8da2ed89d 100644 --- a/gui/src/components/mainInput/TipTapEditor/utils/renderSlashCommand.ts +++ b/gui/src/components/mainInput/TipTapEditor/utils/renderSlashCommand.ts @@ -1,7 +1,7 @@ import { MessagePart, RangeInFile, SlashCommandDescWithSource } from "core"; import { stripImages } from "core/util/messageContent"; import { IIdeMessenger } from "../../../../context/IdeMessenger"; -import { renderMcpPrompt } from "./mcpPromptArgs"; +import { renderMcpPrompt } from "./renderMcpPrompt"; import { getRenderedV1Prompt } from "./renderPromptv1"; import { getPromptV2ContextRequests } from "./renderPromptv2"; import { GetContextRequest } from "./types"; From f19ac5950f4e92f02cb5120f4ac7f444cfe7ebb7 Mon Sep 17 00:00:00 2001 From: Dallin Romney Date: Fri, 27 Jun 2025 18:01:06 -0700 Subject: [PATCH 89/91] show empty message for empty terminal for terminal context provider --- core/context/providers/TerminalContextProvider.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/core/context/providers/TerminalContextProvider.ts b/core/context/providers/TerminalContextProvider.ts index 88577c946..d0f6e12b3 100644 --- a/core/context/providers/TerminalContextProvider.ts +++ b/core/context/providers/TerminalContextProvider.ts @@ -21,7 +21,9 @@ class TerminalContextProvider extends BaseContextProvider { return [ { description: "The contents of the terminal", - content: `Current terminal contents:\n\n${content}`, + content: `Current terminal contents:\n\n${ + content || "The terminal is empty." + }`, name: "Terminal", }, ]; From e92b6152b4f4b59c974c65103a6620d29569bd28 Mon Sep 17 00:00:00 2001 From: Dallin Romney Date: Fri, 27 Jun 2025 18:52:36 -0700 Subject: [PATCH 90/91] return mocha package --- extensions/vscode/package-lock.json | 230 +++++++++++----------------- extensions/vscode/package.json | 1 + 2 files changed, 88 insertions(+), 143 deletions(-) diff --git a/extensions/vscode/package-lock.json b/extensions/vscode/package-lock.json index 2be8501ef..497cc6150 100644 --- a/extensions/vscode/package-lock.json +++ b/extensions/vscode/package-lock.json @@ -35,6 +35,7 @@ "jsdom": "^24.0.0", "lru-cache": "^11.0.2", "minisearch": "^7.0.0", + "mocha": "^11.7.1", "monaco-editor": "^0.45.0", "monaco-vscode-textmate-theme-converter": "^0.1.7", "ncp": "^2.0.0", @@ -3455,16 +3456,6 @@ "url": "https://github.com/sponsors/epoberezkin" } }, - "node_modules/ansi-colors": { - "version": "4.1.3", - "resolved": "https://registry.npmjs.org/ansi-colors/-/ansi-colors-4.1.3.tgz", - "integrity": "sha512-/6w/C21Pm1A7aZitlI5Ni/2J6FFQN8i1Cvz3kHABAAbw93v/NlvKdVOqz7CCWz/3iv/JplRSEEZ83XION15ovw==", - "dev": true, - "peer": true, - "engines": { - "node": ">=6" - } - }, "node_modules/ansi-escapes": { "version": "4.3.2", "resolved": "https://registry.npmjs.org/ansi-escapes/-/ansi-escapes-4.3.2.tgz", @@ -3603,8 +3594,7 @@ "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==", - "dev": true + "integrity": "sha512-8+9WqebbFzpX9OR+Wa6O29asIogeRMzcGtAINdpMHHyAg10f05aSFVBbcEqGf/PXw1EjAZ+q2/bEBg3DvurK3Q==" }, "node_modules/array-back": { "version": "3.1.0", @@ -3900,9 +3890,7 @@ "node_modules/browser-stdout": { "version": "1.3.1", "resolved": "https://registry.npmjs.org/browser-stdout/-/browser-stdout-1.3.1.tgz", - "integrity": "sha512-qhAVI1+Av2X7qelOfAIYwXONood6XlZE/fXaBSmW/T5SzLAmCgzi+eiWE7fUvbHaeNBQH13UftjpXxsfLkMpgw==", - "dev": true, - "peer": true + "integrity": "sha512-qhAVI1+Av2X7qelOfAIYwXONood6XlZE/fXaBSmW/T5SzLAmCgzi+eiWE7fUvbHaeNBQH13UftjpXxsfLkMpgw==" }, "node_modules/buffer": { "version": "5.7.1", @@ -4170,8 +4158,6 @@ "version": "6.3.0", "resolved": "https://registry.npmjs.org/camelcase/-/camelcase-6.3.0.tgz", "integrity": "sha512-Gmy6FhYlCY7uOElZUSbxo2UCDH8owEk996gkbrpsgGtrJLM3J7jGxl9Ic7Qwwj4ivOE5AWZWRMecDdF7hqGjFA==", - "dev": true, - "peer": true, "engines": { "node": ">=10" }, @@ -5194,8 +5180,6 @@ "version": "4.0.0", "resolved": "https://registry.npmjs.org/decamelize/-/decamelize-4.0.0.tgz", "integrity": "sha512-9iE1PgSik9HeIIw2JO94IidnE3eBoQrFJ3w7sFuzSX4DpmZ3v5sZpUiV5Swcf6mQEF+Y0ru8Neo+p+nyh2J+hQ==", - "dev": true, - "peer": true, "engines": { "node": ">=10" }, @@ -5801,7 +5785,6 @@ "version": "4.0.0", "resolved": "https://registry.npmjs.org/escape-string-regexp/-/escape-string-regexp-4.0.0.tgz", "integrity": "sha512-TtpcNJ3XAzx3Gq8sWRzJaVajRs0uVxA2YAkdb1jm2YkPz4G6egUFAyA3n5vtEIZefPk5Wa4UXbKuS5fKkJWdgA==", - "dev": true, "engines": { "node": ">=10" }, @@ -6496,7 +6479,6 @@ "version": "5.0.0", "resolved": "https://registry.npmjs.org/find-up/-/find-up-5.0.0.tgz", "integrity": "sha512-78/PXT1wlLLDgTzDs7sjq9hzz0vXD+zn+7wypEe4fXQxCmdmqfGsEPQxmiCSQI3ajFV91bVSsvNtrJRiW6nGng==", - "dev": true, "dependencies": { "locate-path": "^6.0.0", "path-exists": "^4.0.0" @@ -6531,8 +6513,6 @@ "version": "5.0.2", "resolved": "https://registry.npmjs.org/flat/-/flat-5.0.2.tgz", "integrity": "sha512-b6suED+5/3rTpUBdG1gupIl8MPFCAMA0QXwmljLhvCUKcUvdE4gWky9zpuGCcXHOsz4J9wPGNWq6OKpmIzz3hQ==", - "dev": true, - "peer": true, "bin": { "flat": "cli.js" } @@ -7145,8 +7125,6 @@ "version": "1.2.0", "resolved": "https://registry.npmjs.org/he/-/he-1.2.0.tgz", "integrity": "sha512-F/1DnUGPopORZi0ni+CvrCgHQ5FyEAHRLSApuYWMmrbSwoN2Mn/7k+Gl38gJnR7yyDZk6WLXwiGod1JOWNDKGw==", - "dev": true, - "peer": true, "bin": { "he": "bin/he" } @@ -7931,7 +7909,6 @@ "version": "4.1.0", "resolved": "https://registry.npmjs.org/js-yaml/-/js-yaml-4.1.0.tgz", "integrity": "sha512-wpxZs9NoxZaJESJGIZTyDEaYpl0FKSA+FB9aJiyemKhMwkxQg63h4T1KJgUGHpTqPDNRcmmYLugrRjJlBtWvRA==", - "dev": true, "dependencies": { "argparse": "^2.0.1" }, @@ -8313,7 +8290,6 @@ "version": "6.0.0", "resolved": "https://registry.npmjs.org/locate-path/-/locate-path-6.0.0.tgz", "integrity": "sha512-iPZK6eYjbxRu3uB4/WZ3EsEIMJFMqAoopl3R+zuq0UjcAm/MO6KCweDgPfP3elTztoKP3KtnVHxTn2NHBSDVUw==", - "dev": true, "dependencies": { "p-locate": "^5.0.0" }, @@ -9308,31 +9284,30 @@ "integrity": "sha512-gKLcREMhtuZRwRAfqP3RFW+TK4JqApVBtOIftVgjuABpAtpxhPGaDcfvbhNvD0B8iD1oUr/txX35NjcaY6Ns/A==" }, "node_modules/mocha": { - "version": "10.8.2", - "resolved": "https://registry.npmjs.org/mocha/-/mocha-10.8.2.tgz", - "integrity": "sha512-VZlYo/WE8t1tstuRmqgeyBgCbJc/lEdopaa+axcKzTBJ+UIdlAB9XnmvTCAH4pwR4ElNInaedhEBmZD8iCSVEg==", - "dev": true, - "peer": true, + "version": "11.7.1", + "resolved": "https://registry.npmjs.org/mocha/-/mocha-11.7.1.tgz", + "integrity": "sha512-5EK+Cty6KheMS/YLPPMJC64g5V61gIR25KsRItHw6x4hEKT6Njp1n9LOlH4gpevuwMVS66SXaBBpg+RWZkza4A==", + "license": "MIT", "dependencies": { - "ansi-colors": "^4.1.3", "browser-stdout": "^1.3.1", - "chokidar": "^3.5.3", + "chokidar": "^4.0.1", "debug": "^4.3.5", - "diff": "^5.2.0", + "diff": "^7.0.0", "escape-string-regexp": "^4.0.0", "find-up": "^5.0.0", - "glob": "^8.1.0", + "glob": "^10.4.5", "he": "^1.2.0", "js-yaml": "^4.1.0", "log-symbols": "^4.1.0", - "minimatch": "^5.1.6", + "minimatch": "^9.0.5", "ms": "^2.1.3", + "picocolors": "^1.1.1", "serialize-javascript": "^6.0.2", "strip-json-comments": "^3.1.1", "supports-color": "^8.1.1", - "workerpool": "^6.5.1", - "yargs": "^16.2.0", - "yargs-parser": "^20.2.9", + "workerpool": "^9.2.0", + "yargs": "^17.7.2", + "yargs-parser": "^21.1.1", "yargs-unparser": "^2.0.0" }, "bin": { @@ -9340,83 +9315,94 @@ "mocha": "bin/mocha.js" }, "engines": { - "node": ">= 14.0.0" - } - }, - "node_modules/mocha/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, - "peer": true, - "engines": { - "node": ">=8" + "node": "^18.18.0 || ^20.9.0 || >=21.1.0" } }, "node_modules/mocha/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, - "peer": true, + "version": "2.0.2", + "resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-2.0.2.tgz", + "integrity": "sha512-Jt0vHyM+jmUBqojB7E1NIYadt0vI0Qxjxd2TErW94wDz+E2LAm5vKMXXwg6ZZBTHPuUlDgQHKXvjGBdfcF1ZDQ==", + "license": "MIT", "dependencies": { "balanced-match": "^1.0.0" } }, - "node_modules/mocha/node_modules/cliui": { - "version": "7.0.4", - "resolved": "https://registry.npmjs.org/cliui/-/cliui-7.0.4.tgz", - "integrity": "sha512-OcRE68cOsVMXp1Yvonl/fzkQOyjLSu/8bhPDfQt0e0/Eb283TKP20Fs2MqoPsr9SwA595rRCA+QMzYc9nBP+JQ==", - "dev": true, - "peer": true, + "node_modules/mocha/node_modules/chokidar": { + "version": "4.0.3", + "resolved": "https://registry.npmjs.org/chokidar/-/chokidar-4.0.3.tgz", + "integrity": "sha512-Qgzu8kfBvo+cA4962jnP1KkS6Dop5NS6g7R5LFYJr4b8Ub94PPQXUksCw9PvXoeXPRRddRNC5C1JQUR2SMGtnA==", + "license": "MIT", "dependencies": { - "string-width": "^4.2.0", - "strip-ansi": "^6.0.0", - "wrap-ansi": "^7.0.0" + "readdirp": "^4.0.1" + }, + "engines": { + "node": ">= 14.16.0" + }, + "funding": { + "url": "https://paulmillr.com/funding/" } }, - "node_modules/mocha/node_modules/diff": { - "version": "5.2.0", - "resolved": "https://registry.npmjs.org/diff/-/diff-5.2.0.tgz", - "integrity": "sha512-uIFDxqpRZGZ6ThOk84hEfqWoHx2devRFvpTZcTHur85vImfaxUbTW9Ryh4CpCuDnToOP1CEtXKIgytHBPVff5A==", - "dev": true, - "peer": true, - "engines": { - "node": ">=0.3.1" + "node_modules/mocha/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==", + "license": "ISC", + "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/mocha/node_modules/minimatch": { - "version": "5.1.6", - "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-5.1.6.tgz", - "integrity": "sha512-lKwV/1brpG6mBUFHtb7NUmtABCb2WZZmm2wNiOA5hAb8VdCS4B3dtMWyvcoViccwAW/COERjXLt0zP1zXUN26g==", - "dev": true, - "peer": true, + "version": "9.0.5", + "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-9.0.5.tgz", + "integrity": "sha512-G6T0ZX48xgozx7587koeX9Ys2NYy6Gmv//P89sEte9V9whIapMNF4idKxnW2QtCcLiTWlb/wfCabAtAFWhhBow==", + "license": "ISC", "dependencies": { "brace-expansion": "^2.0.1" }, "engines": { - "node": ">=10" + "node": ">=16 || 14 >=14.17" + }, + "funding": { + "url": "https://github.com/sponsors/isaacs" } }, - "node_modules/mocha/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, - "peer": true, - "dependencies": { - "ansi-regex": "^5.0.1" - }, + "node_modules/mocha/node_modules/minipass": { + "version": "7.1.2", + "resolved": "https://registry.npmjs.org/minipass/-/minipass-7.1.2.tgz", + "integrity": "sha512-qOOzS1cBTWYF4BH8fVePDBOO9iptMnGUEZwNc/cMWnTV2nVLZ7VoNWEPHkYczZA0pdoA7dl6e7FL659nX9S2aw==", + "license": "ISC", "engines": { - "node": ">=8" + "node": ">=16 || 14 >=14.17" + } + }, + "node_modules/mocha/node_modules/readdirp": { + "version": "4.1.2", + "resolved": "https://registry.npmjs.org/readdirp/-/readdirp-4.1.2.tgz", + "integrity": "sha512-GDhwkLfywWL2s6vEjyhri+eXmfH6j1L7JE27WhqLeYzoh/A3DBaYGEj2H/HFZCn/kMfim73FXxEJTw06WtxQwg==", + "license": "MIT", + "engines": { + "node": ">= 14.18.0" + }, + "funding": { + "type": "individual", + "url": "https://paulmillr.com/funding/" } }, "node_modules/mocha/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, - "peer": true, "dependencies": { "has-flag": "^4.0.0" }, @@ -9427,41 +9413,13 @@ "url": "https://github.com/chalk/supports-color?sponsor=1" } }, - "node_modules/mocha/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, - "peer": true, - "dependencies": { - "ansi-styles": "^4.0.0", - "string-width": "^4.1.0", - "strip-ansi": "^6.0.0" - }, + "node_modules/mocha/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==", + "license": "ISC", "engines": { - "node": ">=10" - }, - "funding": { - "url": "https://github.com/chalk/wrap-ansi?sponsor=1" - } - }, - "node_modules/mocha/node_modules/yargs": { - "version": "16.2.0", - "resolved": "https://registry.npmjs.org/yargs/-/yargs-16.2.0.tgz", - "integrity": "sha512-D1mvvtDG0L5ft/jGWkLpG1+m0eQxOfaBvTNELraWj22wSVUMWxZUvYgJYcKh6jGGIkJFhH4IZPQhR4TKpc8mBw==", - "dev": true, - "peer": true, - "dependencies": { - "cliui": "^7.0.2", - "escalade": "^3.1.1", - "get-caller-file": "^2.0.5", - "require-directory": "^2.1.1", - "string-width": "^4.2.0", - "y18n": "^5.0.5", - "yargs-parser": "^20.2.2" - }, - "engines": { - "node": ">=10" + "node": ">=12" } }, "node_modules/monaco-editor": { @@ -10304,7 +10262,6 @@ "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" }, @@ -10319,7 +10276,6 @@ "version": "5.0.0", "resolved": "https://registry.npmjs.org/p-locate/-/p-locate-5.0.0.tgz", "integrity": "sha512-LaNjtRWUBY++zB5nE/NwcaoMylSPk+S+ZHNB1TzdbMJMny6dynpAGt7X/tl/QYq3TIeE6nxHppbo2LGymrG5Pw==", - "dev": true, "dependencies": { "p-limit": "^3.0.2" }, @@ -10522,7 +10478,6 @@ "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" } @@ -11247,8 +11202,6 @@ "version": "2.1.0", "resolved": "https://registry.npmjs.org/randombytes/-/randombytes-2.1.0.tgz", "integrity": "sha512-vYl3iOX+4CKUWuxGi9Ukhie6fsqXqS9FE2Zaic4tNFD2N2QQaXOMFbuKK4QmDHC0JO6B1Zp41J0LpT0oR68amQ==", - "dev": true, - "peer": true, "dependencies": { "safe-buffer": "^5.1.0" } @@ -12011,8 +11964,6 @@ "version": "6.0.2", "resolved": "https://registry.npmjs.org/serialize-javascript/-/serialize-javascript-6.0.2.tgz", "integrity": "sha512-Saa1xPByTTq2gdeFZYLLo+RFE35NHZkAbqZeWNd3BpzppeVisAqpDjcp8dyf6uIvEqJRd46jemmyA4iFIeVk8g==", - "dev": true, - "peer": true, "dependencies": { "randombytes": "^2.1.0" } @@ -12540,7 +12491,6 @@ "version": "3.1.1", "resolved": "https://registry.npmjs.org/strip-json-comments/-/strip-json-comments-3.1.1.tgz", "integrity": "sha512-6fPc+R4ihwqP6N/aIv2f1gMH8lOVtWQHoqC4yK6oSDVVocumAsfCqjkXnqiYMhmMwS/mEHLp7Vehlt3ql6lEig==", - "dev": true, "engines": { "node": ">=8" }, @@ -16514,11 +16464,10 @@ } }, "node_modules/workerpool": { - "version": "6.5.1", - "resolved": "https://registry.npmjs.org/workerpool/-/workerpool-6.5.1.tgz", - "integrity": "sha512-Fs4dNYcsdpYSAfVxhnl1L5zTksjvOJxtC5hzMNl+1t9B8hTJTdKDyZ5ju7ztgPy+ft9tBFXoOlDNiOT9WUXZlA==", - "dev": true, - "peer": true + "version": "9.3.3", + "resolved": "https://registry.npmjs.org/workerpool/-/workerpool-9.3.3.tgz", + "integrity": "sha512-slxCaKbYjEdFT/o2rH9xS1hf4uRDch1w7Uo+apxhZ+sf/1d9e0ZVkn42kPNGP2dgjIx6YFvSevj0zHvbWe2jdw==", + "license": "Apache-2.0" }, "node_modules/wrap-ansi": { "version": "6.2.0", @@ -16721,8 +16670,6 @@ "version": "2.0.0", "resolved": "https://registry.npmjs.org/yargs-unparser/-/yargs-unparser-2.0.0.tgz", "integrity": "sha512-7pRTIA9Qc1caZ0bZ6RYRGbHJthJWuakf+WmHK0rVeLkNrrGhfoabBNdue6kdINI6r4if7ocq9aD/n7xwKOdzOA==", - "dev": true, - "peer": true, "dependencies": { "camelcase": "^6.0.0", "decamelize": "^4.0.0", @@ -16737,8 +16684,6 @@ "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==", - "dev": true, - "peer": true, "engines": { "node": ">=8" } @@ -16786,7 +16731,6 @@ "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" }, diff --git a/extensions/vscode/package.json b/extensions/vscode/package.json index 46b12b4f5..9ffb47233 100644 --- a/extensions/vscode/package.json +++ b/extensions/vscode/package.json @@ -708,6 +708,7 @@ "jsdom": "^24.0.0", "lru-cache": "^11.0.2", "minisearch": "^7.0.0", + "mocha": "^11.7.1", "monaco-editor": "^0.45.0", "monaco-vscode-textmate-theme-converter": "^0.1.7", "ncp": "^2.0.0", From 8113cde7f6aa2e7f4367adb59153633644ef63b3 Mon Sep 17 00:00:00 2001 From: Dallin Romney Date: Fri, 27 Jun 2025 21:38:33 -0700 Subject: [PATCH 91/91] better error message for slash command run thingy --- core/llm/streamChat.ts | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/core/llm/streamChat.ts b/core/llm/streamChat.ts index 25acd8461..00efc8c2d 100644 --- a/core/llm/streamChat.ts +++ b/core/llm/streamChat.ts @@ -60,7 +60,10 @@ export async function* llmStreamChat( true, ); if (!slashCommand.run) { - throw new Error(`Slash command ${command.name} is not a legacy command`); + console.error( + `Slash command ${command.name} (${command.source}) has no run function`, + ); + throw new Error(`Slash command not found`); } const gen = slashCommand.run({