From ce71e5e52e3025e6f022fe6909da6072f7af3222 Mon Sep 17 00:00:00 2001 From: Dallin Romney Date: Tue, 27 May 2025 11:56:53 -0700 Subject: [PATCH 001/166] 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 002/166] 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 003/166] 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 004/166] 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 005/166] 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 006/166] 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 007/166] 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 008/166] 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 009/166] 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 010/166] 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 011/166] 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 012/166] 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 013/166] 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 014/166] 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 015/166] 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 016/166] 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 017/166] 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 018/166] 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 019/166] 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 020/166] 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 021/166] 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 16e8756115db3073a0a49a45561c0d8d3ec713c3 Mon Sep 17 00:00:00 2001 From: Dallin Romney Date: Fri, 13 Jun 2025 02:07:49 -0700 Subject: [PATCH 022/166] support for ports, case insensitivity, and removing empty gs strings --- packages/fetch/src/fetch.ts | 4 +- packages/fetch/src/util.ts | 92 +++++++++++++++++++++++++++++-------- 2 files changed, 74 insertions(+), 22 deletions(-) diff --git a/packages/fetch/src/fetch.ts b/packages/fetch/src/fetch.ts index 3b145012f..b5b461647 100644 --- a/packages/fetch/src/fetch.ts +++ b/packages/fetch/src/fetch.ts @@ -98,9 +98,7 @@ export async function fetchwithRequestOptions( } // Check if should bypass proxy based on requestOptions or NO_PROXY env var - const shouldBypass = - requestOptions?.noProxy?.includes(url.hostname) || - shouldBypassProxy(url.hostname); + const shouldBypass = shouldBypassProxy(url.hostname, requestOptions); // Create agent const protocol = url.protocol === "https:" ? https : http; diff --git a/packages/fetch/src/util.ts b/packages/fetch/src/util.ts index 20e3c1181..19fba2ba3 100644 --- a/packages/fetch/src/util.ts +++ b/packages/fetch/src/util.ts @@ -1,3 +1,5 @@ +import { RequestOptions } from "@continuedev/config-types"; + /** * Gets the proxy settings from environment variables * @param protocol The URL protocol (http: or https:) @@ -16,28 +18,80 @@ export function getProxyFromEnv(protocol: string): string | undefined { } } +export function getEnvNoProxyPatterns(): string[] { + const envValue = process.env.NO_PROXY || process.env.no_proxy; + if (envValue) { + return envValue + .split(",") + .map((item) => item.trim().toLowerCase()) + .filter((i) => !!i); + } else { + return []; + } +} + +export function getReqOptionsNoProxyPatterns( + options: RequestOptions | undefined, +): string[] { + return ( + options?.noProxy?.map((i) => i.trim().toLowerCase()).filter((i) => !!i) ?? + [] + ); +} + +export function patternMatchesHostname(hostname: string, pattern: string) { + // Split hostname and pattern to separate hostname and port + const [hostnameWithoutPort, hostnamePort] = hostname.split(":"); + const [patternWithoutPort, patternPort] = pattern.split(":"); + + // If pattern specifies a port but hostname doesn't match it, no match + if (patternPort && (!hostnamePort || hostnamePort !== patternPort)) { + return false; + } + + // Now compare just the hostname parts + + // exact match + if (patternWithoutPort === hostnameWithoutPort) { + return true; + } + // wildcard domain match (*.example.com) + if ( + patternWithoutPort.startsWith("*.") && + hostnameWithoutPort.endsWith(patternWithoutPort.substring(1)) + ) { + return true; + } + // Domain suffix match (.example.com) + if ( + patternWithoutPort.startsWith(".") && + hostnameWithoutPort.endsWith(patternWithoutPort.slice(1)) + ) { + return true; + } + + // TODO IP address ranges + + // TODO CIDR notation + + return false; +} + /** * Checks if a hostname should bypass proxy based on NO_PROXY environment variable * @param hostname The hostname to check * @returns True if the hostname should bypass proxy */ -export function shouldBypassProxy(hostname: string): boolean { - const noProxy = process.env.NO_PROXY || process.env.no_proxy; - if (!noProxy) return false; - - const noProxyItems = noProxy.split(",").map((item) => item.trim()); - - return noProxyItems.some((item) => { - // Exact match - if (item === hostname) return true; - - // Wildcard domain match (*.example.com) - if (item.startsWith("*.") && hostname.endsWith(item.substring(1))) - return true; - - // Domain suffix match (.example.com) - if (item.startsWith(".") && hostname.endsWith(item.slice(1))) return true; - - return false; - }); +export function shouldBypassProxy( + hostname: string, + requestOptions: RequestOptions | undefined, +): boolean { + const ignores = [ + ...getEnvNoProxyPatterns(), + ...getReqOptionsNoProxyPatterns(requestOptions), + ]; + const hostLowerCase = hostname.toLowerCase(); + return ignores.some((ignore) => + patternMatchesHostname(hostLowerCase, ignore), + ); } From bfe8199fe33efa17d122fa3b7d9c7554956e85f0 Mon Sep 17 00:00:00 2001 From: Dallin Romney Date: Fri, 13 Jun 2025 02:07:54 -0700 Subject: [PATCH 023/166] unit tests --- packages/fetch/src/util.test.ts | 148 ++++++++++++++++++++++++++++---- 1 file changed, 130 insertions(+), 18 deletions(-) diff --git a/packages/fetch/src/util.test.ts b/packages/fetch/src/util.test.ts index 934f1a735..35c079b01 100644 --- a/packages/fetch/src/util.test.ts +++ b/packages/fetch/src/util.test.ts @@ -1,5 +1,9 @@ import { afterEach, expect, test, vi } from "vitest"; -import { getProxyFromEnv, shouldBypassProxy } from "./util.js"; +import { + getProxyFromEnv, + patternMatchesHostname, + shouldBypassProxy, +} from "./util.js"; // Reset environment variables after each test afterEach(() => { @@ -52,51 +56,159 @@ test("getProxyFromEnv prefers HTTPS_PROXY over other env vars for https protocol expect(getProxyFromEnv("https:")).toBe("https://preferred.example.com"); }); +// Tests for patternMatchesHostname +test("patternMatchesHostname with exact hostname match", () => { + expect(patternMatchesHostname("example.com", "example.com")).toBe(true); + expect(patternMatchesHostname("example.com", "different.com")).toBe(false); +}); + +test("patternMatchesHostname with wildcard domains", () => { + expect(patternMatchesHostname("sub.example.com", "*.example.com")).toBe(true); + expect(patternMatchesHostname("sub.sub.example.com", "*.example.com")).toBe( + true, + ); + expect(patternMatchesHostname("example.com", "*.example.com")).toBe(false); + expect(patternMatchesHostname("sub.different.com", "*.example.com")).toBe( + false, + ); +}); + +test("patternMatchesHostname with domain suffix", () => { + expect(patternMatchesHostname("sub.example.com", ".example.com")).toBe(true); + expect(patternMatchesHostname("example.com", ".example.com")).toBe(true); + expect(patternMatchesHostname("different.com", ".example.com")).toBe(false); +}); + +test("patternMatchesHostname with case insensitivity", () => { + expect(patternMatchesHostname("EXAMPLE.com", "example.COM")).toBe(true); + expect(patternMatchesHostname("sub.EXAMPLE.com", "*.example.COM")).toBe(true); +}); + +// Port handling tests +test("patternMatchesHostname with exact port match", () => { + expect(patternMatchesHostname("example.com:8080", "example.com:8080")).toBe( + true, + ); + expect(patternMatchesHostname("example.com:8080", "example.com:9090")).toBe( + false, + ); +}); + +test("patternMatchesHostname with port in pattern but not in hostname", () => { + expect(patternMatchesHostname("example.com", "example.com:8080")).toBe(false); +}); + +test("patternMatchesHostname with port in hostname but not in pattern", () => { + expect(patternMatchesHostname("example.com:8080", "example.com")).toBe(true); +}); + +test("patternMatchesHostname with wildcard domains and ports", () => { + expect( + patternMatchesHostname("sub.example.com:8080", "*.example.com:8080"), + ).toBe(true); + expect( + patternMatchesHostname("sub.example.com:9090", "*.example.com:8080"), + ).toBe(false); + expect(patternMatchesHostname("sub.example.com", "*.example.com:8080")).toBe( + false, + ); +}); + +test("patternMatchesHostname with domain suffix and ports", () => { + expect( + patternMatchesHostname("sub.example.com:8080", ".example.com:8080"), + ).toBe(true); + expect(patternMatchesHostname("example.com:8080", ".example.com:8080")).toBe( + true, + ); + expect( + patternMatchesHostname("sub.example.com:9090", ".example.com:8080"), + ).toBe(false); +}); + // Tests for shouldBypassProxy test("shouldBypassProxy returns false when NO_PROXY is not set", () => { - expect(shouldBypassProxy("example.com")).toBe(false); + expect(shouldBypassProxy("example.com", undefined)).toBe(false); }); test("shouldBypassProxy returns true for exact hostname match", () => { process.env.NO_PROXY = "example.com,another.com"; - expect(shouldBypassProxy("example.com")).toBe(true); + expect(shouldBypassProxy("example.com", undefined)).toBe(true); }); test("shouldBypassProxy returns false when hostname doesn't match any NO_PROXY entry", () => { process.env.NO_PROXY = "example.com,another.com"; - expect(shouldBypassProxy("different.com")).toBe(false); + expect(shouldBypassProxy("different.com", undefined)).toBe(false); }); test("shouldBypassProxy handles lowercase no_proxy", () => { process.env.no_proxy = "example.com"; - expect(shouldBypassProxy("example.com")).toBe(true); + expect(shouldBypassProxy("example.com", undefined)).toBe(true); }); test("shouldBypassProxy works with wildcard domains", () => { process.env.NO_PROXY = "*.example.com"; - expect(shouldBypassProxy("sub.example.com")).toBe(true); - expect(shouldBypassProxy("example.com")).toBe(false); - expect(shouldBypassProxy("different.com")).toBe(false); + expect(shouldBypassProxy("sub.example.com", undefined)).toBe(true); + expect(shouldBypassProxy("example.com", undefined)).toBe(false); + expect(shouldBypassProxy("different.com", undefined)).toBe(false); }); test("shouldBypassProxy works with domain suffix", () => { process.env.NO_PROXY = ".example.com"; - expect(shouldBypassProxy("sub.example.com")).toBe(true); - expect(shouldBypassProxy("example.com")).toBe(true); - expect(shouldBypassProxy("different.com")).toBe(false); + expect(shouldBypassProxy("sub.example.com", undefined)).toBe(true); + expect(shouldBypassProxy("example.com", undefined)).toBe(true); + expect(shouldBypassProxy("different.com", undefined)).toBe(false); }); test("shouldBypassProxy handles multiple entries with different patterns", () => { process.env.NO_PROXY = "internal.local,*.example.com,.test.com"; - expect(shouldBypassProxy("internal.local")).toBe(true); - expect(shouldBypassProxy("sub.example.com")).toBe(true); - expect(shouldBypassProxy("sub.test.com")).toBe(true); - expect(shouldBypassProxy("test.com")).toBe(true); - expect(shouldBypassProxy("example.org")).toBe(false); + expect(shouldBypassProxy("internal.local", undefined)).toBe(true); + expect(shouldBypassProxy("sub.example.com", undefined)).toBe(true); + expect(shouldBypassProxy("sub.test.com", undefined)).toBe(true); + expect(shouldBypassProxy("test.com", undefined)).toBe(true); + expect(shouldBypassProxy("example.org", undefined)).toBe(false); }); test("shouldBypassProxy ignores whitespace in NO_PROXY", () => { process.env.NO_PROXY = " example.com , *.test.org "; - expect(shouldBypassProxy("example.com")).toBe(true); - expect(shouldBypassProxy("subdomain.test.org")).toBe(true); + expect(shouldBypassProxy("example.com", undefined)).toBe(true); + expect(shouldBypassProxy("subdomain.test.org", undefined)).toBe(true); +}); + +test("shouldBypassProxy with ports in NO_PROXY", () => { + process.env.NO_PROXY = "example.com:8080,*.test.org:443,.internal.net:8443"; + expect(shouldBypassProxy("example.com:8080", undefined)).toBe(true); + expect(shouldBypassProxy("example.com:9090", undefined)).toBe(false); + expect(shouldBypassProxy("sub.test.org:443", undefined)).toBe(true); + expect(shouldBypassProxy("sub.internal.net:8443", undefined)).toBe(true); + expect(shouldBypassProxy("internal.net:8443", undefined)).toBe(true); +}); + +test("shouldBypassProxy accepts options with noProxy patterns", () => { + const options = { noProxy: ["example.com:8080", "*.internal.net"] }; + expect(shouldBypassProxy("example.com:8080", options)).toBe(true); + expect(shouldBypassProxy("example.com", options)).toBe(false); + expect(shouldBypassProxy("server.internal.net", options)).toBe(true); +}); + +test("shouldBypassProxy combines environment and options noProxy patterns", () => { + process.env.NO_PROXY = "example.org,*.test.com"; + const options = { noProxy: ["example.com:8080", "*.internal.net"] }; + expect(shouldBypassProxy("example.org", options)).toBe(true); + expect(shouldBypassProxy("sub.test.com", options)).toBe(true); + expect(shouldBypassProxy("example.com:8080", options)).toBe(true); + expect(shouldBypassProxy("server.internal.net", options)).toBe(true); + expect(shouldBypassProxy("other.domain", options)).toBe(false); +}); + +test("shouldBypassProxy handles empty noProxy array in options", () => { + process.env.NO_PROXY = "example.org"; + const options = { noProxy: [] }; + expect(shouldBypassProxy("example.org", options)).toBe(true); + expect(shouldBypassProxy("different.com", options)).toBe(false); +}); + +test("shouldBypassProxy handles undefined options", () => { + process.env.NO_PROXY = "example.org"; + expect(shouldBypassProxy("example.org", undefined)).toBe(true); }); From 498e90778831d3b5bf517c81ab92aa5639c9fe84 Mon Sep 17 00:00:00 2001 From: uinstinct <61635505+uinstinct@users.noreply.github.com> Date: Thu, 12 Jun 2025 17:52:13 +0530 Subject: [PATCH 024/166] chore: migrate core (commands) tests to vitest --- core/commands/util.test.ts | 3 ++- core/jest.config.js | 1 + core/vitest.config.ts | 1 + 3 files changed, 4 insertions(+), 1 deletion(-) diff --git a/core/commands/util.test.ts b/core/commands/util.test.ts index 447ec0e60..656903aa5 100644 --- a/core/commands/util.test.ts +++ b/core/commands/util.test.ts @@ -1,5 +1,6 @@ -import { ctxItemToRifWithContents } from "./util"; +import { describe, expect, it } from "vitest"; import { ContextItemWithId, RangeInFileWithContents } from "../index"; +import { ctxItemToRifWithContents } from "./util"; describe("ctxItemToRifWithContents", () => { it("should parse start and end lines from the item name when format is valid", () => { diff --git a/core/jest.config.js b/core/jest.config.js index 75bb11e9a..7bc65548e 100644 --- a/core/jest.config.js +++ b/core/jest.config.js @@ -35,5 +35,6 @@ export default { testPathIgnorePatterns: [ "/config/yaml/LocalPlatformClient.test.ts", "/autocomplete/", + "/commands/", ], }; diff --git a/core/vitest.config.ts b/core/vitest.config.ts index d781d152d..0bad68f69 100644 --- a/core/vitest.config.ts +++ b/core/vitest.config.ts @@ -13,6 +13,7 @@ export default defineConfig({ "**/*.vitest.ts", "config/yaml/LocalPlatformClient.test.ts", "autocomplete/**/*.test.ts", + "commands/**/*.test.ts", ], }, }); From 27c19aa6ceaf9ad0ca0789628fe2aab80d9b693d Mon Sep 17 00:00:00 2001 From: uinstinct <61635505+uinstinct@users.noreply.github.com> Date: Fri, 13 Jun 2025 19:27:03 +0530 Subject: [PATCH 025/166] migrate `control-plane` to vitest --- core/control-plane/mdm/mdm.test.ts | 1 + core/jest.config.js | 1 + core/vitest.config.ts | 1 + 3 files changed, 3 insertions(+) diff --git a/core/control-plane/mdm/mdm.test.ts b/core/control-plane/mdm/mdm.test.ts index ca4f5f0ec..193960e27 100644 --- a/core/control-plane/mdm/mdm.test.ts +++ b/core/control-plane/mdm/mdm.test.ts @@ -1,4 +1,5 @@ import * as crypto from "crypto"; +import { expect, test } from "vitest"; import { LicenseKeyData, validateLicenseKey } from "./mdm"; // We'll create a real key pair once for all tests diff --git a/core/jest.config.js b/core/jest.config.js index 7bc65548e..b00bd7099 100644 --- a/core/jest.config.js +++ b/core/jest.config.js @@ -36,5 +36,6 @@ export default { "/config/yaml/LocalPlatformClient.test.ts", "/autocomplete/", "/commands/", + "/control-plane/", ], }; diff --git a/core/vitest.config.ts b/core/vitest.config.ts index 0bad68f69..dc7d7dc91 100644 --- a/core/vitest.config.ts +++ b/core/vitest.config.ts @@ -14,6 +14,7 @@ export default defineConfig({ "config/yaml/LocalPlatformClient.test.ts", "autocomplete/**/*.test.ts", "commands/**/*.test.ts", + "control-plane/**/*.test.ts", ], }, }); From 4eb5b777a5a50b1f083fe260891fd5c1d5e74846 Mon Sep 17 00:00:00 2001 From: uinstinct <61635505+uinstinct@users.noreply.github.com> Date: Fri, 13 Jun 2025 19:28:17 +0530 Subject: [PATCH 026/166] migrate `data` to vitest --- core/data/log.test.ts | 24 ++++++++++++++++-------- core/jest.config.js | 1 + core/vitest.config.ts | 1 + 3 files changed, 18 insertions(+), 8 deletions(-) diff --git a/core/data/log.test.ts b/core/data/log.test.ts index 1b7b42b2e..f79e05130 100644 --- a/core/data/log.test.ts +++ b/core/data/log.test.ts @@ -1,13 +1,22 @@ import { DevDataLogEvent } from "@continuedev/config-yaml"; import fs from "fs"; import path from "path"; +import { + afterAll, + beforeAll, + beforeEach, + describe, + expect, + it, + vi, +} from "vitest"; import { IdeInfo, IdeSettings } from ".."; import { Core } from "../core"; import { getDevDataFilePath } from "../util/paths"; import { DataLogger } from "./log"; // Only mock fetch, not fs -jest.mock("@continuedev/fetch"); +vi.mock("@continuedev/fetch"); const TEST_EVENT: DevDataLogEvent = { name: "tokensGenerated", @@ -54,7 +63,7 @@ describe("DataLogger", () => { beforeEach(() => { // Reset mocks - jest.clearAllMocks(); + vi.clearAllMocks(); // Remove test file if it exists if (fs.existsSync(testFilePath)) { @@ -67,7 +76,7 @@ describe("DataLogger", () => { // Mock core and required promises dataLogger.core = { configHandler: { - loadConfig: jest.fn().mockResolvedValue({ + loadConfig: vi.fn().mockResolvedValue({ config: { data: [], }, @@ -78,7 +87,7 @@ describe("DataLogger", () => { }, }, controlPlaneClient: { - getAccessToken: jest.fn().mockResolvedValue("test-access-token"), + getAccessToken: vi.fn().mockResolvedValue("test-access-token"), }, }, } as unknown as Core; @@ -184,7 +193,6 @@ describe("DataLogger", () => { // Read file contents and verify const fileContent = fs.readFileSync(filepath, "utf8"); - console.log("debug1 filecontent", fileContent); expect(fileContent).toContain('"eventName":"chatInteraction"'); expect(fileContent).toContain('"prompt":"Hello, world!"'); expect(fileContent).toContain('"completion":"Hello, world!"'); @@ -195,10 +203,10 @@ describe("DataLogger", () => { describe("logDevData", () => { it("should log data locally and to configured destinations", async () => { // Spy on logLocalData and logToOneDestination - const logLocalDataSpy = jest + const logLocalDataSpy = vi .spyOn(dataLogger, "logLocalData") .mockResolvedValue(); - const logToOneDestinationSpy = jest + const logToOneDestinationSpy = vi .spyOn(dataLogger, "logToOneDestination") .mockResolvedValue(); @@ -212,7 +220,7 @@ describe("DataLogger", () => { }, }; - dataLogger.core!.configHandler.loadConfig = jest + dataLogger.core!.configHandler.loadConfig = vi .fn() .mockResolvedValue(mockConfig); diff --git a/core/jest.config.js b/core/jest.config.js index b00bd7099..da0bb3a79 100644 --- a/core/jest.config.js +++ b/core/jest.config.js @@ -37,5 +37,6 @@ export default { "/autocomplete/", "/commands/", "/control-plane/", + "/data/", ], }; diff --git a/core/vitest.config.ts b/core/vitest.config.ts index dc7d7dc91..129c71a03 100644 --- a/core/vitest.config.ts +++ b/core/vitest.config.ts @@ -15,6 +15,7 @@ export default defineConfig({ "autocomplete/**/*.test.ts", "commands/**/*.test.ts", "control-plane/**/*.test.ts", + "data/**/*.test.ts", ], }, }); From c86fb9cfcbd4c02d2976cee59d11402e62d3a726 Mon Sep 17 00:00:00 2001 From: uinstinct <61635505+uinstinct@users.noreply.github.com> Date: Fri, 13 Jun 2025 19:29:41 +0530 Subject: [PATCH 027/166] migrate `diff` folder --- core/diff/myers.test.ts | 2 ++ core/diff/streamDiff.test.ts | 9 +++------ core/diff/util.test.ts | 8 ++++---- core/jest.config.js | 1 + core/vitest.config.ts | 1 + 5 files changed, 11 insertions(+), 10 deletions(-) diff --git a/core/diff/myers.test.ts b/core/diff/myers.test.ts index 0683e5a96..a5902142a 100644 --- a/core/diff/myers.test.ts +++ b/core/diff/myers.test.ts @@ -1,3 +1,5 @@ +import { describe, expect, test } from "vitest"; + import { dedent } from "../util"; import { myersDiff } from "./myers"; diff --git a/core/diff/streamDiff.test.ts b/core/diff/streamDiff.test.ts index 560d2e13d..57c6e77f1 100644 --- a/core/diff/streamDiff.test.ts +++ b/core/diff/streamDiff.test.ts @@ -1,6 +1,8 @@ import fs from "node:fs"; import path from "node:path"; +import { describe, expect, test } from "vitest"; + // @ts-ignore no typings available import { changed, diff as myersDiff } from "myers-diff"; import { streamDiff } from "../diff/streamDiff.js"; @@ -54,12 +56,7 @@ function displayDiff(diff: DiffLine[]) { } async function expectDiff(file: string) { - const testFilePath = path.join( - __dirname, - "diff", - "test-examples", - file + ".diff", - ); + const testFilePath = path.join(__dirname, "test-examples", file + ".diff"); const testFileContents = fs.readFileSync(testFilePath, "utf-8"); const [oldText, newText, expectedDiff] = testFileContents .split("\n---\n") diff --git a/core/diff/util.test.ts b/core/diff/util.test.ts index fca80ba6a..b94ab6317 100644 --- a/core/diff/util.test.ts +++ b/core/diff/util.test.ts @@ -1,8 +1,8 @@ // Generated by continue -import { matchLine, streamLines, generateLines } from "./util"; +import { describe, expect, it, vi } from "vitest"; import { ChatMessage } from "../index"; -import { jest } from "@jest/globals"; +import { generateLines, matchLine, streamLines } from "./util"; describe.skip("matchLine", () => { it("should match empty lines if the first old line is also empty", () => { @@ -146,7 +146,7 @@ describe("streamLines", () => { content: "line4", }; - // const spy = jest.spyOn(messageContentModule, "renderChatMessage"); + // const spy = vi.spyOn(messageContentModule, "renderChatMessage"); async function* streamCompletion(): AsyncGenerator { yield messageChunk1; @@ -164,7 +164,7 @@ describe("streamLines", () => { }); it("should log lines if log parameter is true", async () => { - const consoleSpy = jest.spyOn(console, "log").mockImplementation(() => {}); + const consoleSpy = vi.spyOn(console, "log").mockImplementation(() => {}); async function* streamCompletion(): AsyncGenerator { yield "line1\nline2\n"; diff --git a/core/jest.config.js b/core/jest.config.js index da0bb3a79..6c8a12faf 100644 --- a/core/jest.config.js +++ b/core/jest.config.js @@ -38,5 +38,6 @@ export default { "/commands/", "/control-plane/", "/data/", + "/diff/", ], }; diff --git a/core/vitest.config.ts b/core/vitest.config.ts index 129c71a03..b3c387fdb 100644 --- a/core/vitest.config.ts +++ b/core/vitest.config.ts @@ -16,6 +16,7 @@ export default defineConfig({ "commands/**/*.test.ts", "control-plane/**/*.test.ts", "data/**/*.test.ts", + "diff/**/*.test.ts", ], }, }); From b0cc911cf972923ee2c984a6a1c3cdb095adba3e Mon Sep 17 00:00:00 2001 From: Dallin Romney Date: Fri, 13 Jun 2025 11:33:57 -0700 Subject: [PATCH 028/166] clean up getProxy logic --- packages/fetch/src/fetch.ts | 7 ++----- packages/fetch/src/util.ts | 11 +++++++++++ 2 files changed, 13 insertions(+), 5 deletions(-) diff --git a/packages/fetch/src/fetch.ts b/packages/fetch/src/fetch.ts index b5b461647..fbf51f108 100644 --- a/packages/fetch/src/fetch.ts +++ b/packages/fetch/src/fetch.ts @@ -5,7 +5,7 @@ import { HttpsProxyAgent } from "https-proxy-agent"; import { BodyInit, RequestInit, Response } from "node-fetch"; import { getAgentOptions } from "./getAgentOptions.js"; import fetch from "./node-fetch-patch.js"; -import { getProxyFromEnv, shouldBypassProxy } from "./util.js"; +import { getProxy, shouldBypassProxy } from "./util.js"; const { http, https } = (followRedirects as any).default; @@ -92,10 +92,7 @@ export async function fetchwithRequestOptions( const agentOptions = getAgentOptions(requestOptions); // Get proxy from options or environment variables - let proxy = requestOptions?.proxy; - if (!proxy) { - proxy = getProxyFromEnv(url.protocol); - } + const proxy = getProxy(url.protocol, requestOptions); // Check if should bypass proxy based on requestOptions or NO_PROXY env var const shouldBypass = shouldBypassProxy(url.hostname, requestOptions); diff --git a/packages/fetch/src/util.ts b/packages/fetch/src/util.ts index 19fba2ba3..1a18d5b1e 100644 --- a/packages/fetch/src/util.ts +++ b/packages/fetch/src/util.ts @@ -18,6 +18,17 @@ export function getProxyFromEnv(protocol: string): string | undefined { } } +// Note that request options proxy (per model) takes precedence over environment variables +export function getProxy( + protocol: string, + requestOptions?: RequestOptions, +): string | undefined { + if (requestOptions?.proxy) { + return requestOptions.proxy; + } + return getProxyFromEnv(protocol); +} + export function getEnvNoProxyPatterns(): string[] { const envValue = process.env.NO_PROXY || process.env.no_proxy; if (envValue) { From 05020b62a99f1416a2934904574a57583b43b72d Mon Sep 17 00:00:00 2001 From: Dallin Romney Date: Fri, 13 Jun 2025 12:50:32 -0700 Subject: [PATCH 029/166] fix lowercase logic --- packages/fetch/src/util.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/fetch/src/util.ts b/packages/fetch/src/util.ts index 1a18d5b1e..dc302bf12 100644 --- a/packages/fetch/src/util.ts +++ b/packages/fetch/src/util.ts @@ -52,8 +52,8 @@ export function getReqOptionsNoProxyPatterns( export function patternMatchesHostname(hostname: string, pattern: string) { // Split hostname and pattern to separate hostname and port - const [hostnameWithoutPort, hostnamePort] = hostname.split(":"); - const [patternWithoutPort, patternPort] = pattern.split(":"); + const [hostnameWithoutPort, hostnamePort] = hostname.toLowerCase().split(":"); + const [patternWithoutPort, patternPort] = pattern.toLowerCase().split(":"); // If pattern specifies a port but hostname doesn't match it, no match if (patternPort && (!hostnamePort || hostnamePort !== patternPort)) { From 45b7069eb86dfbc6935c605f8490f2e6200f6fd0 Mon Sep 17 00:00:00 2001 From: Dallin Romney Date: Fri, 13 Jun 2025 14:31:25 -0700 Subject: [PATCH 030/166] get agent options verbose fetch logging --- packages/fetch/src/getAgentOptions.ts | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/packages/fetch/src/getAgentOptions.ts b/packages/fetch/src/getAgentOptions.ts index 20fc7641c..fd7200205 100644 --- a/packages/fetch/src/getAgentOptions.ts +++ b/packages/fetch/src/getAgentOptions.ts @@ -61,6 +61,19 @@ export function getAgentOptions(requestOptions?: RequestOptions): { keepAliveMsecs: timeout, }; + if (process.env.VERBOSE_FETCH) { + console.log("=== CERTIFICATE CONFIGURATION ==="); + console.log(`Number of CA certificates: ${ca.length}`); + console.log( + `Global agent CA certificates: ${globalAgent.options.ca ? "Present" : "Not present"}`, + ); + console.log( + `Custom certificates provided: ${customCerts?.length ? "Yes" : "No"}`, + ); + console.log(`rejectUnauthorized: ${agentOptions.rejectUnauthorized}`); + console.log("================================"); + } + // Handle ClientCertificateOptions if (requestOptions?.clientCertificate) { const { cert, key, passphrase } = requestOptions.clientCertificate; From 79f0729113c89c24b33f0679cef4c1eb8b1cc014 Mon Sep 17 00:00:00 2001 From: Dallin Romney Date: Tue, 17 Jun 2025 02:27:12 -0700 Subject: [PATCH 031/166] read extra certs and use cert cache --- packages/fetch/src/certs.test.ts | 110 ++++++++++ packages/fetch/src/certs.ts | 129 +++++++++++ packages/fetch/src/fetch.test.ts | 173 --------------- packages/fetch/src/fetch.ts | 2 +- packages/fetch/src/getAgentOptions.test.ts | 237 +++++++++++++-------- packages/fetch/src/getAgentOptions.ts | 50 +---- 6 files changed, 398 insertions(+), 303 deletions(-) create mode 100644 packages/fetch/src/certs.test.ts create mode 100644 packages/fetch/src/certs.ts delete mode 100644 packages/fetch/src/fetch.test.ts diff --git a/packages/fetch/src/certs.test.ts b/packages/fetch/src/certs.test.ts new file mode 100644 index 000000000..bd7d405c4 --- /dev/null +++ b/packages/fetch/src/certs.test.ts @@ -0,0 +1,110 @@ +import * as fs from "node:fs"; +import { beforeEach, expect, test, vi } from "vitest"; +import { getCertificateContent } from "./certs.js"; + +// Mock fs module +vi.mock("node:fs", () => ({ + readFileSync: vi.fn(), +})); + +const mockReadFileSync = vi.mocked(fs.readFileSync); + +beforeEach(() => { + vi.clearAllMocks(); +}); + +test("getCertificateContent should decode base64 data URI correctly", () => { + const testCert = + "-----BEGIN CERTIFICATE-----\nMIIC...\n-----END CERTIFICATE-----"; + const base64Data = Buffer.from(testCert, "utf8").toString("base64"); + const dataUri = `data:application/x-pem-file;base64,${base64Data}`; + + const result = getCertificateContent(dataUri); + + expect(result).toBe(testCert); +}); + +test("getCertificateContent should decode URL-encoded data URI correctly", () => { + const testCert = + "-----BEGIN CERTIFICATE-----\nMIIC...\n-----END CERTIFICATE-----"; + const encodedData = encodeURIComponent(testCert); + const dataUri = `data:text/plain,${encodedData}`; + + const result = getCertificateContent(dataUri); + + expect(result).toBe(testCert); +}); + +test("getCertificateContent should handle plain text data URI correctly", () => { + const testCert = "simple-cert-content"; + const dataUri = `data:text/plain,${testCert}`; + + const result = getCertificateContent(dataUri); + + expect(result).toBe(testCert); +}); + +test("getCertificateContent should read file when input is a file path", () => { + const filePath = "/path/to/cert.pem"; + const expectedContent = + "-----BEGIN CERTIFICATE-----\nfile content\n-----END CERTIFICATE-----"; + + mockReadFileSync.mockReturnValue(expectedContent); + + const result = getCertificateContent(filePath); + + expect(mockReadFileSync).toHaveBeenCalledWith(filePath, "utf8"); + expect(result).toBe(expectedContent); +}); + +test("getCertificateContent should handle data URI with different media types", () => { + const testData = "certificate-data"; + const base64Data = Buffer.from(testData, "utf8").toString("base64"); + const dataUri = `data:application/x-x509-ca-cert;base64,${base64Data}`; + + const result = getCertificateContent(dataUri); + + expect(result).toBe(testData); +}); + +test("getCertificateContent should handle data URI without media type", () => { + const testData = "simple-data"; + const base64Data = Buffer.from(testData, "utf8").toString("base64"); + const dataUri = `data:;base64,${base64Data}`; + + const result = getCertificateContent(dataUri); + + expect(result).toBe(testData); +}); + +test("getCertificateContent should handle data URI without media type or encoding", () => { + const testData = "simple-data"; + const base64Data = Buffer.from(testData, "utf8").toString("base64"); + const dataUri = `data:;base64,${base64Data}`; + + const result = getCertificateContent(dataUri); + + expect(result).toBe(testData); +}); + +test("getCertificateContent should handle relative file paths", () => { + const filePath = "./certs/ca.pem"; + const expectedContent = "certificate from relative path"; + + mockReadFileSync.mockReturnValue(expectedContent); + + const result = getCertificateContent(filePath); + + expect(mockReadFileSync).toHaveBeenCalledWith(filePath, "utf8"); + expect(result).toBe(expectedContent); +}); + +test("getCertificateContent should handle data URI with special characters in URL encoding", () => { + const testCert = "cert with spaces and special chars: !@#$%"; + const encodedData = encodeURIComponent(testCert); + const dataUri = `data:text/plain,${encodedData}`; + + const result = getCertificateContent(dataUri); + + expect(result).toBe(testCert); +}); diff --git a/packages/fetch/src/certs.ts b/packages/fetch/src/certs.ts new file mode 100644 index 000000000..4793e36b7 --- /dev/null +++ b/packages/fetch/src/certs.ts @@ -0,0 +1,129 @@ +import { globalAgent } from "https"; +import * as fs from "node:fs"; +import tls from "node:tls"; + +/** + * Extracts content from either a file path or data URI + */ +export function getCertificateContent(input: string): string { + if (input.startsWith("data:")) { + // Parse data URI: data:[][;base64], + const [header, data] = input.split(","); + if (header.includes("base64")) { + return Buffer.from(data, "base64").toString("utf8"); + } else { + return decodeURIComponent(data); + } + } else { + // Assume it's a file path + return fs.readFileSync(input, "utf8"); + } +} + +export class CertsCache { + private static instance: CertsCache; + private _fixedCa: string[] = []; + private _initialized: boolean = false; + private _customCerts: Map = new Map(); + + private constructor() {} + + public static getInstance(): CertsCache { + if (!CertsCache.instance) { + CertsCache.instance = new CertsCache(); + } + return CertsCache.instance; + } + + get fixedCa(): string[] { + if (this._initialized) { + return this._fixedCa; + } + + const globalCerts: string[] = []; + if (Boolean(process.env.IS_BINARY)) { + if (Array.isArray(globalAgent.options.ca)) { + globalCerts.push( + ...globalAgent.options.ca.map((cert) => cert.toString()), + ); + } else if (typeof globalAgent.options.ca !== "undefined") { + globalCerts.push(globalAgent.options.ca.toString()); + } + } + + const extraCerts: string[] = []; + if (process.env.NODE_EXTRA_CA_CERTS) { + try { + const content = fs.readFileSync( + process.env.NODE_EXTRA_CA_CERTS, + "utf8", + ); + extraCerts.push(content); + } catch (error) { + if (process.env.VERBOSE_FETCH) { + console.error( + `Error reading NODE_EXTRA_CA_CERTS file: ${process.env.NODE_EXTRA_CA_CERTS}`, + error, + ); + } + } + } + + this._fixedCa = Array.from( + new Set([...tls.rootCertificates, ...globalCerts, ...extraCerts]), + ); + this._initialized = true; + return this._fixedCa; + } + + async getCachedCustomCert(path: string): Promise { + if (this._customCerts.has(path)) { + return this._customCerts.get(path); + } + const certContent = getCertificateContent(path); + this._customCerts.set(path, certContent); + return certContent; + } + + async getAllCachedCustomCerts( + caBundlePath: string[] | string, + ): Promise { + const paths = Array.isArray(caBundlePath) ? caBundlePath : [caBundlePath]; + const certs: string[] = []; + await Promise.all( + paths.map(async (path) => { + try { + const certContent = await this.getCachedCustomCert(path); + if (certContent) { + certs.push(certContent); + } else if (process.env.VERBOSE_FETCH) { + console.warn(`Empty certificate found at ${path}`); + } + } catch (error) { + if (process.env.VERBOSE_FETCH) { + console.error( + `Error loading custom certificate from ${path}:`, + error, + ); + } + } + }), + ); + return certs; + } + + async getCa(caBundlePath: undefined | string | string[]): Promise { + if (!caBundlePath) { + return this.fixedCa; + } + + const customCerts = await this.getAllCachedCustomCerts(caBundlePath); + return [...this.fixedCa, ...customCerts]; + } + + async clear(): Promise { + this._customCerts.clear(); + this._initialized = false; + this._fixedCa = []; + } +} diff --git a/packages/fetch/src/fetch.test.ts b/packages/fetch/src/fetch.test.ts deleted file mode 100644 index c11e0ed2c..000000000 --- a/packages/fetch/src/fetch.test.ts +++ /dev/null @@ -1,173 +0,0 @@ -import { globalAgent } from "https"; -import * as fs from "node:fs"; -import * as os from "node:os"; -import * as path from "node:path"; -import { afterEach, beforeEach, expect, test } from "vitest"; -import { getAgentOptions } from "./getAgentOptions.js"; - -// Store original env -const originalEnv = process.env; -const originalGlobalAgentOptions = { ...globalAgent.options }; - -// Temporary directory for test certificate files -let tempDir: string; - -beforeEach(() => { - // Create a temporary directory for test files - tempDir = fs.mkdtempSync(path.join(os.tmpdir(), "fetch-test-")); - - process.env = { ...originalEnv }; - - // Reset globalAgent for each test - globalAgent.options = { ...originalGlobalAgentOptions }; -}); - -afterEach(() => { - process.env = originalEnv; - globalAgent.options = originalGlobalAgentOptions; - - // Clean up temporary directory - try { - fs.rmSync(tempDir, { recursive: true, force: true }); - } catch (error) { - console.error(`Failed to remove temp directory: ${error}`); - } -}); - -// Helper function to create test certificate files -function createTestCertFile(filename: string, content: string): string { - const filePath = path.join(tempDir, filename); - fs.writeFileSync(filePath, content, "utf8"); - return filePath; -} - -test("getAgentOptions returns basic configuration with default values", () => { - const options = getAgentOptions(); - - // Check default timeout (7200 seconds = 2 hours = 7,200,000 ms) - expect(options.timeout).toBe(7200000); - expect(options.sessionTimeout).toBe(7200000); - expect(options.keepAliveMsecs).toBe(7200000); - expect(options.keepAlive).toBe(true); - - // Verify certificates array exists and contains items - expect(options.ca).toBeInstanceOf(Array); - expect(options.ca.length).toBeGreaterThan(0); - - // Verify at least one of the real TLS root certificates is included - // This assumes there's at least one certificate with "CERTIFICATE" in it - expect(options.ca.some((cert: any) => cert.includes("CERTIFICATE"))).toBe( - true, - ); -}); - -test("getAgentOptions respects custom timeout", () => { - const customTimeout = 300; // 5 minutes - const options = getAgentOptions({ timeout: customTimeout }); - - // Check timeout values (300 seconds = 300,000 ms) - expect(options.timeout).toBe(300000); - expect(options.sessionTimeout).toBe(300000); - expect(options.keepAliveMsecs).toBe(300000); -}); - -test("getAgentOptions uses verifySsl setting", () => { - // With verifySsl true - let options = getAgentOptions({ verifySsl: true }); - expect(options.rejectUnauthorized).toBe(true); - - // With verifySsl false - options = getAgentOptions({ verifySsl: false }); - expect(options.rejectUnauthorized).toBe(false); -}); - -test("getAgentOptions incorporates custom CA bundle paths", () => { - // Create a test CA bundle file - const caBundleContent = - "-----BEGIN CERTIFICATE-----\nMIIDtTCCAp2gAwIBAgIJAMcuSp7chAYdMA==\n-----END CERTIFICATE-----"; - const caBundlePath = createTestCertFile("ca-bundle.pem", caBundleContent); - - // Single string path - let options = getAgentOptions({ caBundlePath }); - - // Verify that our test certificate is included in the CA list - expect(options.ca).toContain(caBundleContent); - - // Create multiple test CA bundle files - const caContent1 = - "-----BEGIN CERTIFICATE-----\nABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789\n-----END CERTIFICATE-----"; - const caContent2 = - "-----BEGIN CERTIFICATE-----\n0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ\n-----END CERTIFICATE-----"; - const caPath1 = createTestCertFile("ca1.pem", caContent1); - const caPath2 = createTestCertFile("ca2.pem", caContent2); - - // Array of paths - options = getAgentOptions({ - caBundlePath: [caPath1, caPath2], - }); - - // Verify that both test certificates are included in the CA list - expect(options.ca).toContain(caContent1); - expect(options.ca).toContain(caContent2); -}); - -test("getAgentOptions includes global certs when running as binary", () => { - // Set up test certs in globalAgent - globalAgent.options.ca = ["global-cert-1", "global-cert-2"]; - - // Set IS_BINARY environment variable - process.env.IS_BINARY = "true"; - - const options = getAgentOptions(); - - // Test for global certs - expect(options.ca).toContain("global-cert-1"); - expect(options.ca).toContain("global-cert-2"); -}); - -test("getAgentOptions handles client certificate configuration", () => { - // Create test certificate files - const clientCertContent = - "-----BEGIN CERTIFICATE-----\nCLIENTCERT\n-----END CERTIFICATE-----"; - const clientKeyContent = - "-----BEGIN PRIVATE KEY-----\nCLIENTKEY\n-----END PRIVATE KEY-----"; - const certPath = createTestCertFile("client.cert", clientCertContent); - const keyPath = createTestCertFile("client.key", clientKeyContent); - - const clientCertOptions = { - clientCertificate: { - cert: certPath, - key: keyPath, - passphrase: "secret-passphrase", - }, - }; - - const options = getAgentOptions(clientCertOptions); - - expect(options.cert).toBe(clientCertContent); - expect(options.key).toBe(clientKeyContent); - expect(options.passphrase).toBe("secret-passphrase"); -}); - -test("getAgentOptions handles client certificate without passphrase", () => { - // Create test certificate files - const clientCertContent = - "-----BEGIN CERTIFICATE-----\nCLIENTCERT2\n-----END CERTIFICATE-----"; - const clientKeyContent = - "-----BEGIN PRIVATE KEY-----\nCLIENTKEY2\n-----END PRIVATE KEY-----"; - const certPath = createTestCertFile("client2.cert", clientCertContent); - const keyPath = createTestCertFile("client2.key", clientKeyContent); - - const clientCertOptions = { - clientCertificate: { - cert: certPath, - key: keyPath, - }, - }; - - const options = getAgentOptions(clientCertOptions); - - expect(options.cert).toBe(clientCertContent); - expect(options.key).toBe(clientKeyContent); - expect(options.passphrase).toBeUndefined(); -}); diff --git a/packages/fetch/src/fetch.ts b/packages/fetch/src/fetch.ts index 3b145012f..c7b2b9db1 100644 --- a/packages/fetch/src/fetch.ts +++ b/packages/fetch/src/fetch.ts @@ -89,7 +89,7 @@ export async function fetchwithRequestOptions( url.host = "127.0.0.1"; } - const agentOptions = getAgentOptions(requestOptions); + const agentOptions = await getAgentOptions(requestOptions); // Get proxy from options or environment variables let proxy = requestOptions?.proxy; diff --git a/packages/fetch/src/getAgentOptions.test.ts b/packages/fetch/src/getAgentOptions.test.ts index 5b589ea85..e5e4dd549 100644 --- a/packages/fetch/src/getAgentOptions.test.ts +++ b/packages/fetch/src/getAgentOptions.test.ts @@ -1,122 +1,189 @@ +import { globalAgent } from "https"; import * as fs from "node:fs"; -import { expect, test, vi } from "vitest"; +import * as os from "node:os"; +import * as path from "node:path"; +import { afterEach, beforeEach, expect, test } from "vitest"; +import { CertsCache } from "./certs.js"; +import { getAgentOptions } from "./getAgentOptions.js"; -// Mock fs module -vi.mock("node:fs", () => ({ - readFileSync: vi.fn(), -})); +// Store original env +const originalEnv = process.env; +const originalGlobalAgentOptions = { ...globalAgent.options }; -const mockReadFileSync = vi.mocked(fs.readFileSync); +// Temporary directory for test certificate files +let tempDir: string; -// We need to access the private getCertificateContent function for testing -// Since it's not exported, we'll test it indirectly through scenarios or mock the module -const getCertificateContent = (input: string): string => { - if (input.startsWith("data:")) { - // Parse data URI: data:[][;base64], - const [header, data] = input.split(","); - if (header.includes("base64")) { - return Buffer.from(data, "base64").toString("utf8"); - } else { - return decodeURIComponent(data); - } - } else { - // Assume it's a file path - return fs.readFileSync(input, "utf8"); +beforeEach(() => { + // Create a temporary directory for test files + tempDir = fs.mkdtempSync(path.join(os.tmpdir(), "fetch-test-")); + + process.env = { ...originalEnv }; + + // Reset globalAgent for each test + globalAgent.options = { ...originalGlobalAgentOptions }; +}); + +afterEach(() => { + process.env = originalEnv; + globalAgent.options = originalGlobalAgentOptions; + + CertsCache.getInstance().clear(); + + // Clean up temporary directory + try { + fs.rmSync(tempDir, { recursive: true, force: true }); + } catch (error) { + console.error(`Failed to remove temp directory: ${error}`); } -}; - -test("getCertificateContent should decode base64 data URI correctly", () => { - const testCert = - "-----BEGIN CERTIFICATE-----\nMIIC...\n-----END CERTIFICATE-----"; - const base64Data = Buffer.from(testCert, "utf8").toString("base64"); - const dataUri = `data:application/x-pem-file;base64,${base64Data}`; - - const result = getCertificateContent(dataUri); - - expect(result).toBe(testCert); }); -test("getCertificateContent should decode URL-encoded data URI correctly", () => { - const testCert = - "-----BEGIN CERTIFICATE-----\nMIIC...\n-----END CERTIFICATE-----"; - const encodedData = encodeURIComponent(testCert); - const dataUri = `data:text/plain,${encodedData}`; +// Helper function to create test certificate files +function createTestCertFile(filename: string, content: string): string { + const filePath = path.join(tempDir, filename); + fs.writeFileSync(filePath, content, "utf8"); + return filePath; +} - const result = getCertificateContent(dataUri); +test("getAgentOptions returns basic configuration with default values", async () => { + const options = await getAgentOptions(); - expect(result).toBe(testCert); + // Check default timeout (7200 seconds = 2 hours = 7,200,000 ms) + expect(options.timeout).toBe(7200000); + expect(options.sessionTimeout).toBe(7200000); + expect(options.keepAliveMsecs).toBe(7200000); + expect(options.keepAlive).toBe(true); + + // Verify certificates array exists and contains items + expect(options.ca).toBeInstanceOf(Array); + expect(options.ca.length).toBeGreaterThan(0); + + // Verify at least one of the real TLS root certificates is included + // This assumes there's at least one certificate with "CERTIFICATE" in it + expect(options.ca.some((cert: any) => cert.includes("CERTIFICATE"))).toBe( + true, + ); }); -test("getCertificateContent should handle plain text data URI correctly", () => { - const testCert = "simple-cert-content"; - const dataUri = `data:text/plain,${testCert}`; +test("getAgentOptions respects custom timeout", async () => { + const customTimeout = 300; // 5 minutes + const options = await getAgentOptions({ timeout: customTimeout }); - const result = getCertificateContent(dataUri); - - expect(result).toBe(testCert); + // Check timeout values (300 seconds = 300,000 ms) + expect(options.timeout).toBe(300000); + expect(options.sessionTimeout).toBe(300000); + expect(options.keepAliveMsecs).toBe(300000); }); -test("getCertificateContent should read file when input is a file path", () => { - const filePath = "/path/to/cert.pem"; - const expectedContent = - "-----BEGIN CERTIFICATE-----\nfile content\n-----END CERTIFICATE-----"; +test("getAgentOptions uses verifySsl setting", async () => { + // With verifySsl true + let options = await getAgentOptions({ verifySsl: true }); + expect(options.rejectUnauthorized).toBe(true); - mockReadFileSync.mockReturnValue(expectedContent); - - const result = getCertificateContent(filePath); - - expect(mockReadFileSync).toHaveBeenCalledWith(filePath, "utf8"); - expect(result).toBe(expectedContent); + // With verifySsl false + options = await getAgentOptions({ verifySsl: false }); + expect(options.rejectUnauthorized).toBe(false); }); -test("getCertificateContent should handle data URI with different media types", () => { - const testData = "certificate-data"; - const base64Data = Buffer.from(testData, "utf8").toString("base64"); - const dataUri = `data:application/x-x509-ca-cert;base64,${base64Data}`; +test("getAgentOptions incorporates custom CA bundle paths", async () => { + // Create a test CA bundle file + const caBundleContent = + "-----BEGIN CERTIFICATE-----\nMIIDtTCCAp2gAwIBAgIJAMcuSp7chAYdMA==\n-----END CERTIFICATE-----"; + const caBundlePath = createTestCertFile("ca-bundle.pem", caBundleContent); - const result = getCertificateContent(dataUri); + // Single string path + let options = await getAgentOptions({ caBundlePath }); - expect(result).toBe(testData); + // Verify that our test certificate is included in the CA list + expect(options.ca).toContain(caBundleContent); + + // Create multiple test CA bundle files + const caContent1 = + "-----BEGIN CERTIFICATE-----\nABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789\n-----END CERTIFICATE-----"; + const caContent2 = + "-----BEGIN CERTIFICATE-----\n0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ\n-----END CERTIFICATE-----"; + const caPath1 = createTestCertFile("ca1.pem", caContent1); + const caPath2 = createTestCertFile("ca2.pem", caContent2); + + // Array of paths + options = await getAgentOptions({ + caBundlePath: [caPath1, caPath2], + }); + + // Verify that both test certificates are included in the CA list + expect(options.ca).toContain(caContent1); + expect(options.ca).toContain(caContent2); }); -test("getCertificateContent should handle data URI without media type", () => { - const testData = "simple-data"; - const base64Data = Buffer.from(testData, "utf8").toString("base64"); - const dataUri = `data:;base64,${base64Data}`; +test("getAgentOptions includes global certs when running as binary", async () => { + // Set up test certs in globalAgent + globalAgent.options.ca = ["global-cert-1", "global-cert-2"]; - const result = getCertificateContent(dataUri); + // Set IS_BINARY environment variable + process.env.IS_BINARY = "true"; - expect(result).toBe(testData); + const options = await getAgentOptions(); + + // Test for global certs + expect(options.ca).toContain("global-cert-1"); + expect(options.ca).toContain("global-cert-2"); }); -test("getCertificateContent should handle data URI without media type or encoding", () => { - const testData = "simple-data"; - const base64Data = Buffer.from(testData, "utf8").toString("base64"); - const dataUri = `data:;base64,${base64Data}`; +test("getAgentOptions handles client certificate configuration", async () => { + // Create test certificate files + const clientCertContent = + "-----BEGIN CERTIFICATE-----\nCLIENTCERT\n-----END CERTIFICATE-----"; + const clientKeyContent = + "-----BEGIN PRIVATE KEY-----\nCLIENTKEY\n-----END PRIVATE KEY-----"; + const certPath = createTestCertFile("client.cert", clientCertContent); + const keyPath = createTestCertFile("client.key", clientKeyContent); - const result = getCertificateContent(dataUri); + const clientCertOptions = { + clientCertificate: { + cert: certPath, + key: keyPath, + passphrase: "secret-passphrase", + }, + }; - expect(result).toBe(testData); + const options = await getAgentOptions(clientCertOptions); + + expect(options.cert).toBe(clientCertContent); + expect(options.key).toBe(clientKeyContent); + expect(options.passphrase).toBe("secret-passphrase"); }); -test("getCertificateContent should handle relative file paths", () => { - const filePath = "./certs/ca.pem"; - const expectedContent = "certificate from relative path"; +test("getAgentOptions handles client certificate without passphrase", async () => { + // Create test certificate files + const clientCertContent = + "-----BEGIN CERTIFICATE-----\nCLIENTCERT2\n-----END CERTIFICATE-----"; + const clientKeyContent = + "-----BEGIN PRIVATE KEY-----\nCLIENTKEY2\n-----END PRIVATE KEY-----"; + const certPath = createTestCertFile("client2.cert", clientCertContent); + const keyPath = createTestCertFile("client2.key", clientKeyContent); - mockReadFileSync.mockReturnValue(expectedContent); + const clientCertOptions = { + clientCertificate: { + cert: certPath, + key: keyPath, + }, + }; - const result = getCertificateContent(filePath); + const options = await getAgentOptions(clientCertOptions); - expect(mockReadFileSync).toHaveBeenCalledWith(filePath, "utf8"); - expect(result).toBe(expectedContent); + expect(options.cert).toBe(clientCertContent); + expect(options.key).toBe(clientKeyContent); + expect(options.passphrase).toBeUndefined(); }); -test("getCertificateContent should handle data URI with special characters in URL encoding", () => { - const testCert = "cert with spaces and special chars: !@#$%"; - const encodedData = encodeURIComponent(testCert); - const dataUri = `data:text/plain,${encodedData}`; +test("getAgentOptions reads NODE_EXTRA_CA_CERTS", async () => { + const extraCertContent = + "-----BEGIN CERTIFICATE-----\nEXTRA_CERT\n-----END CERTIFICATE-----"; + const certPath = createTestCertFile("extra-cert.cert", extraCertContent); - const result = getCertificateContent(dataUri); + expect(CertsCache.getInstance().fixedCa).not.toContain(extraCertContent); - expect(result).toBe(testCert); + CertsCache.getInstance().clear(); + + process.env.NODE_EXTRA_CA_CERTS = certPath; + expect(CertsCache.getInstance().fixedCa).toContain(extraCertContent); }); diff --git a/packages/fetch/src/getAgentOptions.ts b/packages/fetch/src/getAgentOptions.ts index 20fc7641c..dec90b0ad 100644 --- a/packages/fetch/src/getAgentOptions.ts +++ b/packages/fetch/src/getAgentOptions.ts @@ -1,56 +1,18 @@ -import { globalAgent } from "https"; -import * as fs from "node:fs"; -import tls from "node:tls"; - import { RequestOptions } from "@continuedev/config-types"; - -/** - * Extracts content from either a file path or data URI - */ -function getCertificateContent(input: string): string { - if (input.startsWith("data:")) { - // Parse data URI: data:[][;base64], - const [header, data] = input.split(","); - if (header.includes("base64")) { - return Buffer.from(data, "base64").toString("utf8"); - } else { - return decodeURIComponent(data); - } - } else { - // Assume it's a file path - return fs.readFileSync(input, "utf8"); - } -} +import { CertsCache, getCertificateContent } from "./certs.js"; /** * Prepares agent options based on request options and certificates */ -export function getAgentOptions(requestOptions?: RequestOptions): { +export async function getAgentOptions( + requestOptions?: RequestOptions, +): Promise<{ [key: string]: any; -} { +}> { const TIMEOUT = 7200; // 7200 seconds = 2 hours const timeout = (requestOptions?.timeout ?? TIMEOUT) * 1000; // measured in ms - // Get root certificates - let globalCerts: string[] = []; - if (process.env.IS_BINARY) { - if (Array.isArray(globalAgent.options.ca)) { - globalCerts = [...globalAgent.options.ca.map((cert) => cert.toString())]; - } else if (typeof globalAgent.options.ca !== "undefined") { - globalCerts.push(globalAgent.options.ca.toString()); - } - } - - const ca = Array.from(new Set([...tls.rootCertificates, ...globalCerts])); - const customCerts = - typeof requestOptions?.caBundlePath === "string" - ? [requestOptions?.caBundlePath] - : requestOptions?.caBundlePath; - if (customCerts) { - ca.push( - ...customCerts.map((customCert) => getCertificateContent(customCert)), - ); - } + const ca = await CertsCache.getInstance().getCa(requestOptions?.caBundlePath); const agentOptions: { [key: string]: any } = { ca, From 3678a85dff26b31191bd97f96bb5461a2686c207 Mon Sep 17 00:00:00 2001 From: Dallin Romney Date: Tue, 17 Jun 2025 02:30:04 -0700 Subject: [PATCH 032/166] add some cache functionality tests --- packages/fetch/src/certs.test.ts | 79 +++++++++++++++++++++++++++++++- 1 file changed, 78 insertions(+), 1 deletion(-) diff --git a/packages/fetch/src/certs.test.ts b/packages/fetch/src/certs.test.ts index bd7d405c4..04c30b0ed 100644 --- a/packages/fetch/src/certs.test.ts +++ b/packages/fetch/src/certs.test.ts @@ -1,6 +1,6 @@ import * as fs from "node:fs"; import { beforeEach, expect, test, vi } from "vitest"; -import { getCertificateContent } from "./certs.js"; +import { CertsCache, getCertificateContent } from "./certs.js"; // Mock fs module vi.mock("node:fs", () => ({ @@ -108,3 +108,80 @@ test("getCertificateContent should handle data URI with special characters in UR expect(result).toBe(testCert); }); + +test("CertsCache.getCachedCustomCert should cache and return certificate content", async () => { + const certsCache = CertsCache.getInstance(); + const filePath = "/path/to/custom/cert.pem"; + const expectedContent = "custom cert content"; + + mockReadFileSync.mockReturnValue(expectedContent); + + const cert1 = await certsCache.getCachedCustomCert(filePath); + expect(cert1).toBe(expectedContent); + expect(mockReadFileSync).toHaveBeenCalledTimes(1); + expect(mockReadFileSync).toHaveBeenCalledWith(filePath, "utf8"); + + // Call again to check if it's cached + const cert2 = await certsCache.getCachedCustomCert(filePath); + expect(cert2).toBe(expectedContent); + // readFileSync should not be called again + expect(mockReadFileSync).toHaveBeenCalledTimes(1); +}); + +test("CertsCache.getAllCachedCustomCerts should return all cached custom certs", async () => { + const certsCache = CertsCache.getInstance(); + const filePaths = ["/path/to/cert1.pem", "/path/to/cert2.pem"]; + const expectedContent1 = "content of cert1"; + const expectedContent2 = "content of cert2"; + + mockReadFileSync.mockReturnValueOnce(expectedContent1); + mockReadFileSync.mockReturnValueOnce(expectedContent2); + + const certs = await certsCache.getAllCachedCustomCerts(filePaths); + expect(certs).toEqual([expectedContent1, expectedContent2]); + expect(mockReadFileSync).toHaveBeenCalledTimes(2); +}); + +test("CertsCache.getCa should return combined CA when caBundlePath is provided", async () => { + const certsCache = CertsCache.getInstance(); + const fixedCa = ["fixed CA cert"]; + const customCertPath = "/path/to/custom/cert.pem"; + const customCertContent = "custom cert content"; + + // Directly set _fixedCa to avoid initializing it with real data + // eslint-disable-next-line @typescript-eslint/ban-ts-comment + // @ts-ignore + certsCache._fixedCa = fixedCa; + // eslint-disable-next-line @typescript-eslint/ban-ts-comment + // @ts-ignore + certsCache._initialized = true; + mockReadFileSync.mockReturnValue(customCertContent); + + const ca = await certsCache.getCa(customCertPath); + expect(ca).toEqual([...fixedCa, customCertContent]); +}); + +test("CertsCache.clear should clear custom certs and reset initialized flag", () => { + const certsCache = CertsCache.getInstance(); + // eslint-disable-next-line @typescript-eslint/ban-ts-comment + // @ts-ignore + certsCache._customCerts.set("key", "value"); + // eslint-disable-next-line @typescript-eslint/ban-ts-comment + // @ts-ignore + certsCache._initialized = true; + // eslint-disable-next-line @typescript-eslint/ban-ts-comment + // @ts-ignore + certsCache._fixedCa = ["test"]; + + certsCache.clear(); + + // eslint-disable-next-line @typescript-eslint/ban-ts-comment + // @ts-ignore + expect(certsCache._customCerts.size).toBe(0); + // eslint-disable-next-line @typescript-eslint/ban-ts-comment + // @ts-ignore + expect(certsCache._initialized).toBe(false); + // eslint-disable-next-line @typescript-eslint/ban-ts-comment + // @ts-ignore + expect(certsCache._fixedCa).toEqual([]); +}); From c1d4c558a6e5f884979d136ab320bdb546e843c4 Mon Sep 17 00:00:00 2001 From: Dallin Romney Date: Tue, 17 Jun 2025 02:44:05 -0700 Subject: [PATCH 033/166] bump fetch --- packages/fetch/package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/fetch/package.json b/packages/fetch/package.json index f17bcfc69..c6850ee54 100644 --- a/packages/fetch/package.json +++ b/packages/fetch/package.json @@ -1,6 +1,6 @@ { "name": "@continuedev/fetch", - "version": "1.0.13", + "version": "1.0.14", "description": "", "main": "dist/index.js", "types": "dist/index.d.ts", From deca888900df145e55d86910d00d07e848e2b602 Mon Sep 17 00:00:00 2001 From: Dallin Romney Date: Tue, 17 Jun 2025 11:28:31 -0700 Subject: [PATCH 034/166] better agent fetch logging --- packages/fetch/src/getAgentOptions.ts | 32 +++++++++++++++------------ 1 file changed, 18 insertions(+), 14 deletions(-) diff --git a/packages/fetch/src/getAgentOptions.ts b/packages/fetch/src/getAgentOptions.ts index e2176e8ec..d7a915cad 100644 --- a/packages/fetch/src/getAgentOptions.ts +++ b/packages/fetch/src/getAgentOptions.ts @@ -12,7 +12,8 @@ export async function getAgentOptions( const TIMEOUT = 7200; // 7200 seconds = 2 hours const timeout = (requestOptions?.timeout ?? TIMEOUT) * 1000; // measured in ms - const ca = await CertsCache.getInstance().getCa(requestOptions?.caBundlePath); + const certsCache = CertsCache.getInstance(); + const ca = await certsCache.getCa(requestOptions?.caBundlePath); const agentOptions: { [key: string]: any } = { ca, @@ -23,19 +24,6 @@ export async function getAgentOptions( keepAliveMsecs: timeout, }; - if (process.env.VERBOSE_FETCH) { - console.log("=== CERTIFICATE CONFIGURATION ==="); - console.log(`Number of CA certificates: ${ca.length}`); - console.log( - `Global agent CA certificates: ${globalAgent.options.ca ? "Present" : "Not present"}`, - ); - console.log( - `Custom certificates provided: ${customCerts?.length ? "Yes" : "No"}`, - ); - console.log(`rejectUnauthorized: ${agentOptions.rejectUnauthorized}`); - console.log("================================"); - } - // Handle ClientCertificateOptions if (requestOptions?.clientCertificate) { const { cert, key, passphrase } = requestOptions.clientCertificate; @@ -48,5 +36,21 @@ export async function getAgentOptions( } } + if (process.env.VERBOSE_FETCH) { + console.log( + `Fetch agent: rejectUnauthorized/verifySsl: ${agentOptions.rejectUnauthorized ?? "not set (defaulting to true)"}`, + ); + console.log(`Fetch agent options:`); + console.log( + `\tTimeout (sessionTimeout/keepAliveMsecs): ${agentOptions.timeout}`, + ); + console.log(`\tTotal CA certs: ${ca.length}`); + console.log(`\tGlobal/Root CA certs: ${certsCache.fixedCa.length}`); + console.log(`\tCustom CA certs: ${ca.length - certsCache.fixedCa.length}`); + console.log( + `\tClient certificate: ${requestOptions?.clientCertificate ? "Yes" : "No"}`, + ); + } + return agentOptions; } From 46f991029d01b94b9a2025a550f66c4d9212970a Mon Sep 17 00:00:00 2001 From: Dallin Romney Date: Tue, 17 Jun 2025 11:29:24 -0700 Subject: [PATCH 035/166] rearrange logging --- packages/fetch/src/getAgentOptions.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/packages/fetch/src/getAgentOptions.ts b/packages/fetch/src/getAgentOptions.ts index d7a915cad..2cdc1dbae 100644 --- a/packages/fetch/src/getAgentOptions.ts +++ b/packages/fetch/src/getAgentOptions.ts @@ -37,9 +37,6 @@ export async function getAgentOptions( } if (process.env.VERBOSE_FETCH) { - console.log( - `Fetch agent: rejectUnauthorized/verifySsl: ${agentOptions.rejectUnauthorized ?? "not set (defaulting to true)"}`, - ); console.log(`Fetch agent options:`); console.log( `\tTimeout (sessionTimeout/keepAliveMsecs): ${agentOptions.timeout}`, @@ -50,6 +47,9 @@ export async function getAgentOptions( console.log( `\tClient certificate: ${requestOptions?.clientCertificate ? "Yes" : "No"}`, ); + console.log( + `\trejectUnauthorized/verifySsl: ${agentOptions.rejectUnauthorized ?? "not set (defaults to true)"}`, + ); } return agentOptions; From fa295177585fde9aea76df201ccb7c3792e0d5ca Mon Sep 17 00:00:00 2001 From: Dallin Romney Date: Tue, 17 Jun 2025 13:11:20 -0700 Subject: [PATCH 036/166] respect embeddings batching for bedrock, hugginface, sagemaker --- core/llm/llms/Bedrock.ts | 2 +- core/llm/llms/HuggingFaceTEI.ts | 11 +---------- core/llm/llms/SageMaker.ts | 2 +- 3 files changed, 3 insertions(+), 12 deletions(-) diff --git a/core/llm/llms/Bedrock.ts b/core/llm/llms/Bedrock.ts index ae595f3f3..3fc229465 100644 --- a/core/llm/llms/Bedrock.ts +++ b/core/llm/llms/Bedrock.ts @@ -547,7 +547,7 @@ class Bedrock extends BaseLLM { } // EMBED // - async embed(chunks: string[]): Promise { + async _embed(chunks: string[]): Promise { const credentials = await this._getCredentials(); const client = new BedrockRuntimeClient({ region: this.region, diff --git a/core/llm/llms/HuggingFaceTEI.ts b/core/llm/llms/HuggingFaceTEI.ts index 175aedde0..fcf20ac8e 100644 --- a/core/llm/llms/HuggingFaceTEI.ts +++ b/core/llm/llms/HuggingFaceTEI.ts @@ -25,16 +25,7 @@ class HuggingFaceTEIEmbeddingsProvider extends BaseLLM { }); } - async embed(chunks: string[]) { - const batchedChunks = this.getBatchedChunks(chunks); - - const results = await Promise.all( - batchedChunks.map((batch) => this.doEmbedRequest(batch)), - ); - return results.flat(); - } - - async doEmbedRequest(batch: string[]): Promise { + async _embed(batch: string[]): Promise { const headers: Record = { "Content-Type": "application/json", }; diff --git a/core/llm/llms/SageMaker.ts b/core/llm/llms/SageMaker.ts index bbb87c131..1d1a950c9 100644 --- a/core/llm/llms/SageMaker.ts +++ b/core/llm/llms/SageMaker.ts @@ -141,7 +141,7 @@ class SageMaker extends BaseLLM { } } - async embed(chunks: string[]) { + async _embed(chunks: string[]) { const credentials = await this._getCredentials(); const client = new SageMakerRuntimeClient({ region: this.region, From a852e638516a7f2175b7f7e42005b9c1ea7e4c46 Mon Sep 17 00:00:00 2001 From: Dallin Romney Date: Tue, 17 Jun 2025 13:48:37 -0700 Subject: [PATCH 037/166] 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 038/166] 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 69ea88ccc5ea18cd81443a1b8ad81f26809fc562 Mon Sep 17 00:00:00 2001 From: Dallin Romney Date: Tue, 17 Jun 2025 15:52:17 -0700 Subject: [PATCH 039/166] reduce codebase indexer file batch size --- core/indexing/CodebaseIndexer.test.ts | 10 +--------- core/indexing/CodebaseIndexer.ts | 14 +++++--------- 2 files changed, 6 insertions(+), 18 deletions(-) diff --git a/core/indexing/CodebaseIndexer.test.ts b/core/indexing/CodebaseIndexer.test.ts index b697520aa..f2a31209c 100644 --- a/core/indexing/CodebaseIndexer.test.ts +++ b/core/indexing/CodebaseIndexer.test.ts @@ -124,14 +124,6 @@ describe("CodebaseIndexer", () => { return updates; } - async function refreshIndexFiles(files: string[]) { - const updates = []; - for await (const update of codebaseIndexer.refreshFiles(files)) { - updates.push(update); - } - return updates; - } - async function getAllIndexedFiles() { const files = await testIndex.getIndexedFilesForTags( await testIde.getTags(testIndex.artifactId), @@ -197,7 +189,7 @@ describe("CodebaseIndexer", () => { test("should successfuly re-index specific files", async () => { // Could add more specific tests for this but uses similar logic const before = await getAllIndexedFiles(); - await refreshIndexFiles(before); + await codebaseIndexer.refreshCodebaseIndexFiles(before); const after = await getAllIndexedFiles(); expect(after.length).toBe(before.length); diff --git a/core/indexing/CodebaseIndexer.ts b/core/indexing/CodebaseIndexer.ts index 86933f8bd..d2de0c512 100644 --- a/core/indexing/CodebaseIndexer.ts +++ b/core/indexing/CodebaseIndexer.ts @@ -43,7 +43,7 @@ export class CodebaseIndexer { * - To limit memory usage for indexes that perform computations locally, e.g. FTS * - To make as few requests as possible to the embeddings providers */ - filesPerBatch = 500; + filesPerBatch = 200; private indexingCancellationController: AbortController | undefined; private codebaseIndexingState: IndexingProgressUpdate; private readonly pauseToken: PauseToken; @@ -75,16 +75,10 @@ export class CodebaseIndexer { this.pauseToken = new PauseToken(initialPaused); } - /** - * Set the paused state of the indexer - */ set paused(value: boolean) { this.pauseToken.paused = value; } - /** - * Get the current paused state of the indexer - */ get paused(): boolean { return this.pauseToken.paused; } @@ -235,7 +229,9 @@ export class CodebaseIndexer { } } - async *refreshFiles(files: string[]): AsyncGenerator { + private async *refreshFiles( + files: string[], + ): AsyncGenerator { let progress = 0; if (files.length === 0) { yield { @@ -525,7 +521,7 @@ export class CodebaseIndexer { repoName, )) { yield { - progress: progress, + progress, desc, status: "indexing", }; From ec32afcc544218d176cca87caa3fd50803b6830d Mon Sep 17 00:00:00 2001 From: uinstinct <61635505+uinstinct@users.noreply.github.com> Date: Wed, 18 Jun 2025 17:21:56 +0530 Subject: [PATCH 040/166] fix: show assistant loading on login --- .../modelSelection/platform/AssistantSelect.tsx | 15 +++++++++++---- 1 file changed, 11 insertions(+), 4 deletions(-) diff --git a/gui/src/components/modelSelection/platform/AssistantSelect.tsx b/gui/src/components/modelSelection/platform/AssistantSelect.tsx index aebae2aa6..ac4a06553 100644 --- a/gui/src/components/modelSelection/platform/AssistantSelect.tsx +++ b/gui/src/components/modelSelection/platform/AssistantSelect.tsx @@ -32,6 +32,7 @@ import { import type { ProfileDescription } from "core/config/ConfigHandler"; import { useNavigate } from "react-router-dom"; +import { useWebviewListener } from "../../../hooks/useWebviewListener"; import { cn } from "../../../util/cn"; import { ROUTES } from "../../../util/navigation"; import { useLump } from "../../mainInput/Lump/LumpContext"; @@ -171,6 +172,11 @@ export default function AssistantSelect() { }); close(); } + async function refreshProfilesWithLoading() { + setLoading(true); + await refreshProfiles(); + setLoading(false); + } useEffect(() => { let lastToggleTime = 0; @@ -213,6 +219,8 @@ export default function AssistantSelect() { }; }, [currentOrg, selectedProfile]); + useWebviewListener("sessionUpdate", refreshProfilesWithLoading, []); + const cycleOrgs = () => { if (!session) { void login(false); @@ -294,10 +302,9 @@ export default function AssistantSelect() { className="flex cursor-pointer flex-row items-center gap-1 hover:brightness-125" onClick={async (e) => { e.stopPropagation(); - setLoading(true); - await refreshProfiles(); - setLoading(false); - buttonRef.current?.click(); + refreshProfilesWithLoading().then(() => + buttonRef.current?.click(), + ); }} > Date: Wed, 18 Jun 2025 13:48:17 -0700 Subject: [PATCH 041/166] programming principles rule --- .continue/rules/programming-principles.md | 6 ++++++ 1 file changed, 6 insertions(+) create mode 100644 .continue/rules/programming-principles.md diff --git a/.continue/rules/programming-principles.md b/.continue/rules/programming-principles.md new file mode 100644 index 000000000..0485f4f68 --- /dev/null +++ b/.continue/rules/programming-principles.md @@ -0,0 +1,6 @@ +--- +name: Programming principles +description: Guidelines for coding fundamentals in this project +--- + +Use functional programming paradigms whenever possible. Modifying existing classes or creating singletons where needed is acceptable. but otherwise, use functions. From 07dc2c46cef00663900f0ef84d34d2bfa9437ac3 Mon Sep 17 00:00:00 2001 From: Tomasz Stefaniak Date: Wed, 18 Jun 2025 15:31:29 -0700 Subject: [PATCH 042/166] feat: patterns --- core/index.d.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/index.d.ts b/core/index.d.ts index ce78a8d82..1c7f336f2 100644 --- a/core/index.d.ts +++ b/core/index.d.ts @@ -1576,12 +1576,12 @@ export interface RuleWithSource { slug?: string; source: RuleSource; globs?: string | string[]; + patterns?: string | string[]; rule: string; description?: string; ruleFile?: string; alwaysApply?: boolean; } - export interface CompleteOnboardingPayload { mode: OnboardingModes; provider?: string; From 3a33dc788711f739d79d0eff4f84320b27f08633 Mon Sep 17 00:00:00 2001 From: Tomasz Stefaniak Date: Wed, 18 Jun 2025 15:36:22 -0700 Subject: [PATCH 043/166] Update getSystemMessageWithRules.ts --- core/llm/rules/getSystemMessageWithRules.ts | 38 +++++++++++++++++++++ 1 file changed, 38 insertions(+) diff --git a/core/llm/rules/getSystemMessageWithRules.ts b/core/llm/rules/getSystemMessageWithRules.ts index a0f3cf64f..00532bbed 100644 --- a/core/llm/rules/getSystemMessageWithRules.ts +++ b/core/llm/rules/getSystemMessageWithRules.ts @@ -52,6 +52,44 @@ const matchesGlobs = ( return false; }; +/** + * Checks if a path matches any of the provided regex patterns + */ +const matchesPatterns = ( + filePath: string, + patterns: string | string[] | undefined, +): boolean => { + if (!patterns) return true; + + // Handle single string pattern + if (typeof patterns === "string") { + try { + const regex = new RegExp(patterns); + return regex.test(filePath); + } catch (e) { + console.error(`Invalid regex pattern: ${patterns}`, e); + return false; + } + } + // Handle array of patterns + if (Array.isArray(patterns)) { + if (patterns.length === 0) return true; + + // File must match at least one pattern + return patterns.some((pattern) => { + try { + const regex = new RegExp(pattern); + return regex.test(filePath); + } catch (e) { + console.error(`Invalid regex pattern: ${pattern}`, e); + return false; + } + }); + } + + return false; +}; + /** * Determines if a file path is within a specific directory or its subdirectories * From 1703fce6507aad8fa1d283f7735c1399a48dbb14 Mon Sep 17 00:00:00 2001 From: Tomasz Stefaniak Date: Wed, 18 Jun 2025 15:40:38 -0700 Subject: [PATCH 044/166] Update getSystemMessageWithRules.ts --- core/llm/rules/getSystemMessageWithRules.ts | 89 ++++++++++++++++++--- 1 file changed, 79 insertions(+), 10 deletions(-) diff --git a/core/llm/rules/getSystemMessageWithRules.ts b/core/llm/rules/getSystemMessageWithRules.ts index 00532bbed..1c4f0f814 100644 --- a/core/llm/rules/getSystemMessageWithRules.ts +++ b/core/llm/rules/getSystemMessageWithRules.ts @@ -149,6 +149,13 @@ const isGlobalRule = (rule: RuleWithSource): boolean => { return false; }; +/** + * Determines if a rule should be applied based on its alwaysApply property and file path matching + * + * @param rule - The rule to check + * @param filePaths - Array of file paths to check against the rule's globs + * @returns true if the rule should be applied, false otherwise + */ /** * Determines if a rule should be applied based on its alwaysApply property and file path matching * @@ -200,31 +207,93 @@ export const shouldApplyRule = ( return false; } - // If we have globs, check if any files in this directory match them - if (rule.globs) { + // Check both globs and patterns + const hasGlobs = rule.globs !== undefined; + const hasPatterns = rule.patterns !== undefined; + + // If we have both globs and patterns, check if any files match both + if (hasGlobs && hasPatterns) { + return filesInRuleDirectory.some( + (filePath) => + matchesGlobs(filePath, rule.globs) && + matchesPatterns(filePath, rule.patterns), + ); + } + + // If we only have globs, check those + if (hasGlobs) { return filesInRuleDirectory.some((filePath) => matchesGlobs(filePath, rule.globs), ); } - // No globs but files are in this directory, so apply the rule + // If we only have patterns, check those + if (hasPatterns) { + return filesInRuleDirectory.some((filePath) => + matchesPatterns(filePath, rule.patterns), + ); + } + + // No globs or patterns but files are in this directory, so apply the rule return true; } // For root-level rules: - // If alwaysApply is explicitly false, only apply if there are globs AND they match + // If alwaysApply is explicitly false, only apply if there are globs AND/OR patterns AND they match if (rule.alwaysApply === false) { - if (!rule.globs) { + const hasGlobs = rule.globs !== undefined; + const hasPatterns = rule.patterns !== undefined; + + if (!hasGlobs && !hasPatterns) { return false; } - return filePaths.some((path) => matchesGlobs(path, rule.globs)); + + // If we have both globs and patterns, check if any files match both + if (hasGlobs && hasPatterns) { + return filePaths.some( + (filePath) => + matchesGlobs(filePath, rule.globs) && + matchesPatterns(filePath, rule.patterns), + ); + } + + // If we only have globs, check those + if (hasGlobs) { + return filePaths.some((filePath) => matchesGlobs(filePath, rule.globs)); + } + + // If we only have patterns, check those + if (hasPatterns) { + return filePaths.some((filePath) => + matchesPatterns(filePath, rule.patterns), + ); + } } - // Default behavior for root rules with globs: - // - Only apply if they match the globs - if (rule.globs) { - return filePaths.some((path) => matchesGlobs(path, rule.globs)); + // Default behavior for root rules with globs and/or patterns: + const hasGlobs = rule.globs !== undefined; + const hasPatterns = rule.patterns !== undefined; + + // If we have both globs and patterns, check if any files match both + if (hasGlobs && hasPatterns) { + return filePaths.some( + (filePath) => + matchesGlobs(filePath, rule.globs) && + matchesPatterns(filePath, rule.patterns), + ); + } + + // If we only have globs, check those + if (hasGlobs) { + return filePaths.some((filePath) => matchesGlobs(filePath, rule.globs)); + } + + // If we only have patterns, check those + if (hasPatterns) { + return filePaths.some((filePath) => + matchesPatterns(filePath, rule.patterns), + ); } // This point should not be reached as we've handled all cases above From 3422fff6077ac75196bf5ff034a219586819a0b8 Mon Sep 17 00:00:00 2001 From: Tomasz Stefaniak Date: Wed, 18 Jun 2025 17:08:02 -0700 Subject: [PATCH 045/166] Update getSystemMessageWithRules.ts --- core/llm/rules/getSystemMessageWithRules.ts | 164 +++++++++++--------- 1 file changed, 90 insertions(+), 74 deletions(-) diff --git a/core/llm/rules/getSystemMessageWithRules.ts b/core/llm/rules/getSystemMessageWithRules.ts index 1c4f0f814..73942d4d0 100644 --- a/core/llm/rules/getSystemMessageWithRules.ts +++ b/core/llm/rules/getSystemMessageWithRules.ts @@ -53,10 +53,14 @@ const matchesGlobs = ( }; /** - * Checks if a path matches any of the provided regex patterns + * Checks if file content matches any of the provided regex patterns + * + * @param fileContent - The content of the file to check + * @param patterns - A single regex pattern string or array of regex pattern strings + * @returns true if the content matches any pattern (or if no patterns are provided), false otherwise */ -const matchesPatterns = ( - filePath: string, +const contentMatchesPatterns = ( + fileContent: string, patterns: string | string[] | undefined, ): boolean => { if (!patterns) return true; @@ -65,21 +69,22 @@ const matchesPatterns = ( if (typeof patterns === "string") { try { const regex = new RegExp(patterns); - return regex.test(filePath); + return regex.test(fileContent); } catch (e) { console.error(`Invalid regex pattern: ${patterns}`, e); return false; } } + // Handle array of patterns if (Array.isArray(patterns)) { if (patterns.length === 0) return true; - // File must match at least one pattern + // Content must match at least one pattern return patterns.some((pattern) => { try { const regex = new RegExp(pattern); - return regex.test(filePath); + return regex.test(fileContent); } catch (e) { console.error(`Invalid regex pattern: ${pattern}`, e); return false; @@ -150,22 +155,18 @@ const isGlobalRule = (rule: RuleWithSource): boolean => { }; /** - * Determines if a rule should be applied based on its alwaysApply property and file path matching - * - * @param rule - The rule to check - * @param filePaths - Array of file paths to check against the rule's globs - * @returns true if the rule should be applied, false otherwise - */ -/** - * Determines if a rule should be applied based on its alwaysApply property and file path matching + * Determines if a rule should be applied based on its properties and file matching * * @param rule - The rule to check * @param filePaths - Array of file paths to check against the rule's globs + * @param fileContents - Map of file paths to their contents for pattern matching + * @param rulePolicies - Optional policies that can override normal rule behavior * @returns true if the rule should be applied, false otherwise */ export const shouldApplyRule = ( rule: RuleWithSource, filePaths: string[], + fileContents: Record = {}, rulePolicies: RulePolicies = {}, ): boolean => { const policy = rulePolicies[rule.name || ""]; @@ -207,40 +208,40 @@ export const shouldApplyRule = ( return false; } - // Check both globs and patterns + // First check if the files match the globs const hasGlobs = rule.globs !== undefined; - const hasPatterns = rule.patterns !== undefined; - // If we have both globs and patterns, check if any files match both - if (hasGlobs && hasPatterns) { - return filesInRuleDirectory.some( - (filePath) => - matchesGlobs(filePath, rule.globs) && - matchesPatterns(filePath, rule.patterns), - ); + // Filter to files that match the globs (or all files if no globs) + const matchingFiles = hasGlobs + ? filesInRuleDirectory.filter((filePath) => + matchesGlobs(filePath, rule.globs), + ) + : filesInRuleDirectory; + + // If no files match the globs, don't apply the rule + if (matchingFiles.length === 0) { + return false; } - // If we only have globs, check those - if (hasGlobs) { - return filesInRuleDirectory.some((filePath) => - matchesGlobs(filePath, rule.globs), - ); + // Now check for pattern matches in file contents if patterns are specified + if (rule.patterns) { + // Check if any of the matching files also match the content patterns + return matchingFiles.some((filePath) => { + const content = fileContents[filePath]; + // If we don't have the content, we can't check patterns + if (!content) return false; + return contentMatchesPatterns(content, rule.patterns); + }); } - // If we only have patterns, check those - if (hasPatterns) { - return filesInRuleDirectory.some((filePath) => - matchesPatterns(filePath, rule.patterns), - ); - } - - // No globs or patterns but files are in this directory, so apply the rule - return true; + // If we have no patterns or if we couldn't check patterns (no content), + // just go with the glob matches + return matchingFiles.length > 0; } // For root-level rules: - // If alwaysApply is explicitly false, only apply if there are globs AND/OR patterns AND they match + // If alwaysApply is explicitly false, we need to check globs and/or patterns if (rule.alwaysApply === false) { const hasGlobs = rule.globs !== undefined; const hasPatterns = rule.patterns !== undefined; @@ -249,55 +250,60 @@ export const shouldApplyRule = ( return false; } - // If we have both globs and patterns, check if any files match both - if (hasGlobs && hasPatterns) { - return filePaths.some( - (filePath) => - matchesGlobs(filePath, rule.globs) && - matchesPatterns(filePath, rule.patterns), - ); + // Filter to files that match the globs (or all files if no globs) + const matchingFiles = hasGlobs + ? filePaths.filter((filePath) => matchesGlobs(filePath, rule.globs)) + : filePaths; + + // If no files match the globs, don't apply the rule + if (matchingFiles.length === 0) { + return false; } - // If we only have globs, check those - if (hasGlobs) { - return filePaths.some((filePath) => matchesGlobs(filePath, rule.globs)); - } - - // If we only have patterns, check those + // Now check for pattern matches in file contents if patterns are specified if (hasPatterns) { - return filePaths.some((filePath) => - matchesPatterns(filePath, rule.patterns), - ); + // Check if any of the matching files also match the content patterns + return matchingFiles.some((filePath) => { + const content = fileContents[filePath]; + // If we don't have the content, we can't check patterns + if (!content) return false; + return contentMatchesPatterns(content, rule.patterns); + }); } + + // If we have no patterns or if we couldn't check patterns (no content), + // just go with the glob matches + return matchingFiles.length > 0; } - // Default behavior for root rules with globs and/or patterns: + // Default behavior for root rules with globs: const hasGlobs = rule.globs !== undefined; const hasPatterns = rule.patterns !== undefined; - // If we have both globs and patterns, check if any files match both - if (hasGlobs && hasPatterns) { - return filePaths.some( - (filePath) => - matchesGlobs(filePath, rule.globs) && - matchesPatterns(filePath, rule.patterns), - ); + // Filter to files that match the globs (or all files if no globs) + const matchingFiles = hasGlobs + ? filePaths.filter((filePath) => matchesGlobs(filePath, rule.globs)) + : filePaths; + + // If no files match the globs, don't apply the rule + if (matchingFiles.length === 0) { + return false; } - // If we only have globs, check those - if (hasGlobs) { - return filePaths.some((filePath) => matchesGlobs(filePath, rule.globs)); - } - - // If we only have patterns, check those + // Now check for pattern matches in file contents if patterns are specified if (hasPatterns) { - return filePaths.some((filePath) => - matchesPatterns(filePath, rule.patterns), - ); + // Check if any of the matching files also match the content patterns + return matchingFiles.some((filePath) => { + const content = fileContents[filePath]; + // If we don't have the content, we can't check patterns + if (!content) return false; + return contentMatchesPatterns(content, rule.patterns); + }); } - // This point should not be reached as we've handled all cases above - return false; + // If we have no patterns or if we couldn't check patterns (no content), + // just go with the glob matches + return matchingFiles.length > 0; }; /** @@ -327,10 +333,20 @@ export const getApplicableRules = ( // Combine file paths from both sources const allFilePaths = [...filePathsFromMessage, ...filePathsFromContextItems]; + // Create a map of file paths to their contents for pattern matching + const fileContents: Record = {}; + + // Extract contents from context items with file URIs + contextItems.forEach((item) => { + if (item.uri?.type === "file" && item.uri?.value) { + fileContents[item.uri.value] = item.content; + } + }); + // Apply shouldApplyRule to all rules - this will handle global rules, rule policies, // and path matching in a consistent way const applicableRules = rules.filter((rule) => - shouldApplyRule(rule, allFilePaths, rulePolicies), + shouldApplyRule(rule, allFilePaths, fileContents, rulePolicies), ); return applicableRules; From ff80ffeb3f2bcb8381dc73a624e41ac96cd0eeee Mon Sep 17 00:00:00 2001 From: Tomasz Stefaniak Date: Wed, 18 Jun 2025 17:33:12 -0700 Subject: [PATCH 046/166] fix: missing patterns --- core/tools/definitions/createRuleBlock.ts | 8 +++++--- core/tools/implementations/createRuleBlock.ts | 3 ++- packages/config-yaml/src/markdown/createMarkdownRule.ts | 8 ++++++++ packages/config-yaml/src/markdown/markdownToRule.ts | 2 ++ packages/config-yaml/src/schemas/index.ts | 1 + 5 files changed, 18 insertions(+), 4 deletions(-) diff --git a/core/tools/definitions/createRuleBlock.ts b/core/tools/definitions/createRuleBlock.ts index ace3bc6b2..23c0185b5 100644 --- a/core/tools/definitions/createRuleBlock.ts +++ b/core/tools/definitions/createRuleBlock.ts @@ -1,6 +1,3 @@ -import { Tool } from "../.."; -import { BUILT_IN_GROUP_NAME, BuiltInToolNames } from "../builtIn"; - export const createRuleBlock: Tool = { type: "function", displayTitle: "Create Rule Block", @@ -37,6 +34,11 @@ export const createRuleBlock: Tool = { description: "Optional file patterns to which this rule applies (e.g. ['**/*.{ts,tsx}'] or ['src/**/*.ts', 'tests/**/*.ts'])", }, + patterns: { + type: "string", + description: + "Optional regex patterns to match against file content. Rule applies only to files whose content matches the pattern (e.g. 'useEffect' for React hooks or '\\bclass\\b' for class definitions)", + }, }, }, }, diff --git a/core/tools/implementations/createRuleBlock.ts b/core/tools/implementations/createRuleBlock.ts index a38e06056..5ecb756fa 100644 --- a/core/tools/implementations/createRuleBlock.ts +++ b/core/tools/implementations/createRuleBlock.ts @@ -7,7 +7,7 @@ export type CreateRuleBlockArgs = Pick< Required, "rule" | "description" | "alwaysApply" | "name" > & - Pick; + Pick; export const createRuleBlockImpl: ToolImpl = async ( args: CreateRuleBlockArgs, @@ -16,6 +16,7 @@ export const createRuleBlockImpl: ToolImpl = async ( const fileContent = createRuleMarkdown(args.name, args.rule, { description: args.description, globs: args.globs, + patterns: args.patterns, }); const [localContinueDir] = await extras.ide.getWorkspaceDirs(); diff --git a/packages/config-yaml/src/markdown/createMarkdownRule.ts b/packages/config-yaml/src/markdown/createMarkdownRule.ts index 14843f14d..13cce86f4 100644 --- a/packages/config-yaml/src/markdown/createMarkdownRule.ts +++ b/packages/config-yaml/src/markdown/createMarkdownRule.ts @@ -34,6 +34,7 @@ export function createRuleMarkdown( options: { description?: string; globs?: string | string[]; + patterns?: string | string[]; alwaysApply?: boolean; } = {}, ): string { @@ -44,6 +45,13 @@ export function createRuleMarkdown( typeof options.globs === "string" ? options.globs.trim() : options.globs; } + if (options.patterns) { + frontmatter.patterns = + typeof options.patterns === "string" + ? options.patterns.trim() + : options.patterns; + } + if (options.description) { frontmatter.description = options.description.trim(); } diff --git a/packages/config-yaml/src/markdown/markdownToRule.ts b/packages/config-yaml/src/markdown/markdownToRule.ts index a48f8176a..5bed93ac8 100644 --- a/packages/config-yaml/src/markdown/markdownToRule.ts +++ b/packages/config-yaml/src/markdown/markdownToRule.ts @@ -7,6 +7,7 @@ import { RuleObject } from "../schemas/index.js"; export interface RuleFrontmatter { globs?: RuleObject["globs"]; + patterns?: RuleObject["patterns"]; name?: RuleObject["name"]; description?: RuleObject["description"]; alwaysApply?: RuleObject["alwaysApply"]; @@ -56,6 +57,7 @@ export function markdownToRule( name: frontmatter.name ?? packageIdentifierToDisplayName(id), rule: markdown, globs: frontmatter.globs, + patterns: frontmatter.patterns, description: frontmatter.description, alwaysApply: frontmatter.alwaysApply, }; diff --git a/packages/config-yaml/src/schemas/index.ts b/packages/config-yaml/src/schemas/index.ts index 224278cd7..14d4a7486 100644 --- a/packages/config-yaml/src/schemas/index.ts +++ b/packages/config-yaml/src/schemas/index.ts @@ -45,6 +45,7 @@ const ruleObjectSchema = z.object({ rule: z.string(), description: z.string().optional(), globs: z.union([z.string(), z.array(z.string())]).optional(), + patterns: z.union([z.string(), z.array(z.string())]).optional(), alwaysApply: z.boolean().optional(), }); const ruleSchema = z.union([z.string(), ruleObjectSchema]); From c1467f5eca45f7d3260bf1ad78473bf92a1f9fea Mon Sep 17 00:00:00 2001 From: Tomasz Stefaniak Date: Wed, 18 Jun 2025 17:34:58 -0700 Subject: [PATCH 047/166] fix: types --- core/tools/definitions/createRuleBlock.ts | 3 +++ core/tools/implementations/createRuleBlock.ts | 13 ++++++++++--- 2 files changed, 13 insertions(+), 3 deletions(-) diff --git a/core/tools/definitions/createRuleBlock.ts b/core/tools/definitions/createRuleBlock.ts index 23c0185b5..2afb19d70 100644 --- a/core/tools/definitions/createRuleBlock.ts +++ b/core/tools/definitions/createRuleBlock.ts @@ -1,3 +1,6 @@ +import { Tool } from "../.."; +import { BUILT_IN_GROUP_NAME, BuiltInToolNames } from "../builtIn"; + export const createRuleBlock: Tool = { type: "function", displayTitle: "Create Rule Block", diff --git a/core/tools/implementations/createRuleBlock.ts b/core/tools/implementations/createRuleBlock.ts index 5ecb756fa..cfa60a5a3 100644 --- a/core/tools/implementations/createRuleBlock.ts +++ b/core/tools/implementations/createRuleBlock.ts @@ -13,11 +13,18 @@ export const createRuleBlockImpl: ToolImpl = async ( args: CreateRuleBlockArgs, extras, ) => { - const fileContent = createRuleMarkdown(args.name, args.rule, { + // Create options object with the fields that createRuleMarkdown expects + const options: any = { description: args.description, globs: args.globs, - patterns: args.patterns, - }); + }; + + // Add patterns if provided + if (args.patterns) { + options.patterns = args.patterns; + } + + const fileContent = createRuleMarkdown(args.name, args.rule, options); const [localContinueDir] = await extras.ide.getWorkspaceDirs(); const ruleFilePath = createRuleFilePath(localContinueDir, args.name); From 3786a04fc9140d20ab98bd2765917db099761698 Mon Sep 17 00:00:00 2001 From: Tomasz Stefaniak Date: Wed, 18 Jun 2025 17:35:35 -0700 Subject: [PATCH 048/166] Update getSystemMessageWithRules.ts --- core/llm/rules/getSystemMessageWithRules.ts | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/core/llm/rules/getSystemMessageWithRules.ts b/core/llm/rules/getSystemMessageWithRules.ts index 73942d4d0..3a662b1b6 100644 --- a/core/llm/rules/getSystemMessageWithRules.ts +++ b/core/llm/rules/getSystemMessageWithRules.ts @@ -146,11 +146,19 @@ const isGlobalRule = (rule: RuleWithSource): boolean => { return true; } - // Root-level rules with no globs are implicitly global - if (isRootLevelRule(rule) && !rule.globs && rule.alwaysApply !== false) { + console.log("RULE", rule); + // Root-level rules with no globs or patterns are implicitly global + if ( + isRootLevelRule(rule) && + !rule.globs && + !rule.patterns && + rule.alwaysApply !== false + ) { + console.log("IS ROOT"); return true; } + console.log("NOT ROOT"); return false; }; From 57e329b66d61dbfd5164686160f302112bf17a95 Mon Sep 17 00:00:00 2001 From: Dallin Romney Date: Wed, 18 Jun 2025 21:33:05 -0700 Subject: [PATCH 049/166] 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 da28644fb76a112e11cae9b5194c0fe9a6a12032 Mon Sep 17 00:00:00 2001 From: uinstinct <61635505+uinstinct@users.noreply.github.com> Date: Thu, 19 Jun 2025 10:12:24 +0530 Subject: [PATCH 050/166] show a loading indicator --- .../platform/AssistantSelect.tsx | 26 ++++++++++++------- 1 file changed, 16 insertions(+), 10 deletions(-) diff --git a/gui/src/components/modelSelection/platform/AssistantSelect.tsx b/gui/src/components/modelSelection/platform/AssistantSelect.tsx index ac4a06553..c33f4c707 100644 --- a/gui/src/components/modelSelection/platform/AssistantSelect.tsx +++ b/gui/src/components/modelSelection/platform/AssistantSelect.tsx @@ -279,14 +279,20 @@ export default function AssistantSelect() { style={{ fontSize: fontSize(-3) }} >
-
- -
- - {selectedProfile.title} - + {!loading ? ( + loading... + ) : ( + <> +
+ +
+ + {selectedProfile.title} + + + )}
{ e.stopPropagation(); - refreshProfilesWithLoading().then(() => + void refreshProfilesWithLoading().then(() => buttonRef.current?.click(), ); }} @@ -310,7 +316,7 @@ export default function AssistantSelect() { From afb36cdbfdbfdd0d4cc5e220252f90fc12d83490 Mon Sep 17 00:00:00 2001 From: uinstinct <61635505+uinstinct@users.noreply.github.com> Date: Thu, 19 Jun 2025 11:33:47 +0530 Subject: [PATCH 051/166] `configLoading` redux state on initial load, login and manual config refresh show the loading indicator --- .../platform/AssistantSelect.tsx | 22 +++++-------------- gui/src/context/Auth.tsx | 7 +++++- gui/src/hooks/ParallelListeners.tsx | 6 +++-- gui/src/redux/slices/configSlice.ts | 8 ++++++- 4 files changed, 23 insertions(+), 20 deletions(-) diff --git a/gui/src/components/modelSelection/platform/AssistantSelect.tsx b/gui/src/components/modelSelection/platform/AssistantSelect.tsx index c33f4c707..1a7c82c36 100644 --- a/gui/src/components/modelSelection/platform/AssistantSelect.tsx +++ b/gui/src/components/modelSelection/platform/AssistantSelect.tsx @@ -7,7 +7,7 @@ import { ExclamationTriangleIcon, PlusIcon, } from "@heroicons/react/24/outline"; -import { useContext, useEffect, useMemo, useRef, useState } from "react"; +import { useContext, useEffect, useMemo, useRef } from "react"; import { useAuth } from "../../../context/Auth"; import { IdeMessengerContext } from "../../../context/IdeMessenger"; import { @@ -32,7 +32,6 @@ import { import type { ProfileDescription } from "core/config/ConfigHandler"; import { useNavigate } from "react-router-dom"; -import { useWebviewListener } from "../../../hooks/useWebviewListener"; import { cn } from "../../../util/cn"; import { ROUTES } from "../../../util/navigation"; import { useLump } from "../../mainInput/Lump/LumpContext"; @@ -156,7 +155,7 @@ export default function AssistantSelect() { const orgs = useAppSelector((store) => store.profiles.organizations); const ideMessenger = useContext(IdeMessengerContext); const { isToolbarExpanded } = useLump(); - const [loading, setLoading] = useState(false); + const configLoading = useAppSelector((store) => store.config.loading); const { profiles, session, login, selectedProfile, refreshProfiles } = useAuth(); @@ -172,11 +171,6 @@ export default function AssistantSelect() { }); close(); } - async function refreshProfilesWithLoading() { - setLoading(true); - await refreshProfiles(); - setLoading(false); - } useEffect(() => { let lastToggleTime = 0; @@ -219,8 +213,6 @@ export default function AssistantSelect() { }; }, [currentOrg, selectedProfile]); - useWebviewListener("sessionUpdate", refreshProfilesWithLoading, []); - const cycleOrgs = () => { if (!session) { void login(false); @@ -279,7 +271,7 @@ export default function AssistantSelect() { style={{ fontSize: fontSize(-3) }} >
- {!loading ? ( + {configLoading ? ( loading... ) : ( <> @@ -306,17 +298,15 @@ export default function AssistantSelect() { Assistants
{ + onClick={(e) => { e.stopPropagation(); - void refreshProfilesWithLoading().then(() => - buttonRef.current?.click(), - ); + void refreshProfiles().then(() => buttonRef.current?.click()); }} >
diff --git a/gui/src/context/Auth.tsx b/gui/src/context/Auth.tsx index 8c928630d..143f09f5f 100644 --- a/gui/src/context/Auth.tsx +++ b/gui/src/context/Auth.tsx @@ -19,6 +19,7 @@ import { setSelectedOrgId, } from "../redux/"; import { useAppDispatch, useAppSelector } from "../redux/hooks"; +import { setConfigLoading } from "../redux/slices/configSlice"; import { setDialogMessage, setShowDialog } from "../redux/slices/uiSlice"; import { IdeMessengerContext } from "./IdeMessenger"; @@ -53,7 +54,7 @@ export const AuthProvider: React.FC<{ children: React.ReactNode }> = ({ const login: AuthContextType["login"] = (useOnboarding: boolean) => { return new Promise((resolve) => { - ideMessenger + void ideMessenger .request("getControlPlaneSessionInfo", { silent: false, useOnboarding, @@ -113,17 +114,21 @@ export const AuthProvider: React.FC<{ children: React.ReactNode }> = ({ "sessionUpdate", async (data) => { setSession(data.sessionInfo); + void refreshProfiles(); }, [], ); const refreshProfiles = useCallback(async () => { try { + dispatch(setConfigLoading(true)); await ideMessenger.request("config/refreshProfiles", undefined); ideMessenger.post("showToast", ["info", "Config refreshed"]); } catch (e) { console.error("Failed to refresh profiles", e); ideMessenger.post("showToast", ["error", "Failed to refresh config"]); + } finally { + dispatch(setConfigLoading(false)); } }, [ideMessenger]); diff --git a/gui/src/hooks/ParallelListeners.tsx b/gui/src/hooks/ParallelListeners.tsx index 155b91e2c..0f3f56a62 100644 --- a/gui/src/hooks/ParallelListeners.tsx +++ b/gui/src/hooks/ParallelListeners.tsx @@ -12,7 +12,7 @@ import { } from "../redux"; import { useAppDispatch, useAppSelector } from "../redux/hooks"; import { selectCurrentToolCallApplyState } from "../redux/selectors/selectCurrentToolCall"; -import { setConfigResult } from "../redux/slices/configSlice"; +import { setConfigLoading, setConfigResult } from "../redux/slices/configSlice"; import { setLastNonEditSessionEmpty, updateEditStateApplyState, @@ -93,6 +93,7 @@ function ParallelListeners() { const initialLoadAuthAndConfig = useCallback( async (initial: boolean) => { + dispatch(setConfigLoading(true)); const result = await ideMessenger.request( "config/getSerializedProfileInfo", undefined, @@ -100,6 +101,7 @@ function ParallelListeners() { if (result.status === "success") { await handleConfigUpdate(initial, result.content); } + dispatch(setConfigLoading(false)); }, [ideMessenger, handleConfigUpdate], ); @@ -242,7 +244,7 @@ function ParallelListeners() { dispatch(updateEditStateApplyState(state)); if (state.status === "closed") { - dispatch(exitEdit({})); + void dispatch(exitEdit({})); } } else { // chat or agent diff --git a/gui/src/redux/slices/configSlice.ts b/gui/src/redux/slices/configSlice.ts index b26d596c8..8d48f7332 100644 --- a/gui/src/redux/slices/configSlice.ts +++ b/gui/src/redux/slices/configSlice.ts @@ -6,6 +6,7 @@ import { DEFAULT_MAX_TOKENS } from "core/llm/constants"; export type ConfigState = { configError: ConfigValidationError[] | undefined; config: BrowserSerializedContinueConfig; + loading: boolean; }; export const EMPTY_CONFIG: BrowserSerializedContinueConfig = { @@ -47,6 +48,7 @@ export const EMPTY_CONFIG: BrowserSerializedContinueConfig = { const initialState: ConfigState = { configError: undefined, config: EMPTY_CONFIG, + loading: false, }; export const configSlice = createSlice({ @@ -82,6 +84,9 @@ export const configSlice = createSlice({ ) => { state.config = config; }, + setConfigLoading: (state, { payload: loading }: PayloadAction) => { + state.loading = loading; + }, }, selectors: { selectSelectedChatModelContextLength: (state): number => { @@ -99,7 +104,8 @@ export const configSlice = createSlice({ }, }); -export const { updateConfig, setConfigResult } = configSlice.actions; +export const { updateConfig, setConfigResult, setConfigLoading } = + configSlice.actions; export const { selectSelectedChatModelContextLength, From 99d32fe12d203ed3b7b97ffac89ac674da6bf6df Mon Sep 17 00:00:00 2001 From: uinstinct <61635505+uinstinct@users.noreply.github.com> Date: Thu, 19 Jun 2025 11:33:56 +0530 Subject: [PATCH 052/166] show loading in account selection --- gui/src/pages/config/AccountButton.tsx | 27 ++++++++++++++++++++++---- 1 file changed, 23 insertions(+), 4 deletions(-) diff --git a/gui/src/pages/config/AccountButton.tsx b/gui/src/pages/config/AccountButton.tsx index 06c6beba0..a5c59f889 100644 --- a/gui/src/pages/config/AccountButton.tsx +++ b/gui/src/pages/config/AccountButton.tsx @@ -1,3 +1,4 @@ +import { ArrowPathIcon } from "@heroicons/react/24/outline"; import { UserCircleIcon } from "@heroicons/react/24/solid"; import { isOnPremSession } from "core/control-plane/AuthTypes"; import { @@ -10,11 +11,13 @@ import { Button } from "../../components/ui/Button"; import { useAuth } from "../../context/Auth"; import { selectCurrentOrg } from "../../redux"; import { useAppSelector } from "../../redux/hooks"; +import { cn } from "../../util/cn"; import { ScopeSelect } from "./ScopeSelect"; export function AccountButton() { - const { session, logout, login, organizations } = useAuth(); + const { session, logout, login, organizations, refreshProfiles } = useAuth(); const selectedOrg = useAppSelector(selectCurrentOrg); + const configLoading = useAppSelector((store) => store.config.loading); if (!session) { return ( @@ -58,9 +61,25 @@ export function AccountButton() { {organizations.length > 0 && (
- +
+ +
{ + e.stopPropagation(); + await refreshProfiles(); + }} + > + +
+
)} 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 053/166] 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 a4c5a489e288025a4452a6d6e8f0991ec8ed0eba Mon Sep 17 00:00:00 2001 From: Dallin Romney Date: Thu, 19 Jun 2025 19:35:19 -0700 Subject: [PATCH 054/166] update unit testing rules --- .continue/rules/unit-testing-rules.yaml | 30 ++++++++++++------------- 1 file changed, 14 insertions(+), 16 deletions(-) diff --git a/.continue/rules/unit-testing-rules.yaml b/.continue/rules/unit-testing-rules.yaml index ec22e9467..f846986c2 100644 --- a/.continue/rules/unit-testing-rules.yaml +++ b/.continue/rules/unit-testing-rules.yaml @@ -6,25 +6,23 @@ rules: rule: >- For unit testing in this project: + 1. The project uses Vitest and Jest for testing. Prefer Vitest - 1. The project uses Jest as the testing framework + 2. Run tests from within the specific package directory (e.g., `cd core && ..` - 2. Run tests using `npm test` from within the specific package/module - directory + 3. For vitest tests, + - Test files follow the pattern `*.vitest.ts` + - Run tests using `vitest` from within the specific package/module + directory: `cd [directory] && vitest -- [test file path]` - 3. Command structure: `cd [directory] && npm test -- [test file path]` + 4. For jest tests, + - Test files follow the pattern `*.test.ts` + - Run tests using `npm test` from within the specific package/module + directory: `cd [directory] && npm test -- [test file path]` + - The test script uses experimental VM modules via NODE_OPTIONS flag - 4. The test script uses experimental VM modules via NODE_OPTIONS flag - - 5. Test files follow the pattern `*.test.ts` - - 6. Tests must import Jest with `import { jest } from "@jest/globals";` - - 7. Run tests from within the specific package directory (e.g., `cd core` - for core module tests) - - 8. Write tests as top-level `test()` functions - DO NOT use `describe()` + 5. For both + - Write tests as top-level `test()` functions - DO NOT use `describe()` blocks - - 9. Include the function name being tested in the test description for + - Include the function name being tested in the test description for clarity From 531b0064a94ec63d3e52d964e95081f530922132 Mon Sep 17 00:00:00 2001 From: uinstinct <61635505+uinstinct@users.noreply.github.com> Date: Fri, 20 Jun 2025 11:21:10 +0530 Subject: [PATCH 055/166] ollama streaming for tool calls --- core/llm/llms/Ollama.ts | 1 - 1 file changed, 1 deletion(-) diff --git a/core/llm/llms/Ollama.ts b/core/llm/llms/Ollama.ts index 16d0e9542..106f99e1b 100644 --- a/core/llm/llms/Ollama.ts +++ b/core/llm/llms/Ollama.ts @@ -405,7 +405,6 @@ class Ollama extends BaseLLM implements ModelInstaller { parameters: tool.function.parameters, }, })); - chatOptions.stream = false; // Cannot set stream = true for tools calls } const headers: Record = { "Content-Type": "application/json", From 8a79d55cba7664d8ca7537a043f56b4910b114b7 Mon Sep 17 00:00:00 2001 From: uinstinct <61635505+uinstinct@users.noreply.github.com> Date: Fri, 20 Jun 2025 16:58:16 +0530 Subject: [PATCH 056/166] increase context length and add tests --- core/llm/constants.ts | 2 +- core/llm/index.test.ts | 31 +++++++++++++++++++++++++++++++ core/llm/llms/Anthropic.ts | 1 - core/llm/llms/Bedrock.ts | 1 - 4 files changed, 32 insertions(+), 3 deletions(-) diff --git a/core/llm/constants.ts b/core/llm/constants.ts index 19b067d15..0975fc142 100644 --- a/core/llm/constants.ts +++ b/core/llm/constants.ts @@ -1,5 +1,5 @@ const DEFAULT_MAX_TOKENS = 4096; -const DEFAULT_CONTEXT_LENGTH = 8192; +const DEFAULT_CONTEXT_LENGTH = 32_768; const DEFAULT_TEMPERATURE = 0.5; const DEFAULT_ARGS = { diff --git a/core/llm/index.test.ts b/core/llm/index.test.ts index 7584e2122..1e7031f50 100644 --- a/core/llm/index.test.ts +++ b/core/llm/index.test.ts @@ -1,6 +1,10 @@ import { ChatMessage, LLMOptions } from ".."; +import { allModelProviders } from "@continuedev/llm-info"; +import { LlmInfo } from "@continuedev/llm-info/dist/types"; import { BaseLLM } from "."; +import { DEFAULT_CONTEXT_LENGTH } from "./constants"; +import { LLMClasses } from "./llms"; import { LLMLogger } from "./logger"; class DummyLLM extends BaseLLM { @@ -140,4 +144,31 @@ describe("BaseLLM", () => { describe("*streamChat", () => { // TODO: Implement tests for *streamChat method }); + + describe("default context length", () => { + allModelProviders.map((modelProvider) => { + const LLMClass = LLMClasses.find( + (llm) => llm.providerName === modelProvider.id, + ); + if (!LLMClass) { + throw new Error(`did not find LLM provider for ${modelProvider.id}`); + } + const testContextLength = (llmInfo: LlmInfo) => () => { + const llm = new LLMClass({ model: llmInfo.model }); + if (llmInfo.contextLength) { + expect(llm.contextLength).toEqual(llmInfo.contextLength); + } else { + expect(llm.contextLength).toEqual(DEFAULT_CONTEXT_LENGTH); + } + }; + describe(`${modelProvider.id}`, () => { + modelProvider.models.forEach((llmInfo) => { + test( + `should have correct context length for ${llmInfo.model}`, + testContextLength(llmInfo), + ); + }); + }); + }); + }); }); diff --git a/core/llm/llms/Anthropic.ts b/core/llm/llms/Anthropic.ts index 8d1d3a67f..ff0f78c06 100644 --- a/core/llm/llms/Anthropic.ts +++ b/core/llm/llms/Anthropic.ts @@ -8,7 +8,6 @@ class Anthropic extends BaseLLM { static providerName = "anthropic"; static defaultOptions: Partial = { model: "claude-3-5-sonnet-latest", - contextLength: 200_000, completionOptions: { model: "claude-3-5-sonnet-latest", maxTokens: 8192, diff --git a/core/llm/llms/Bedrock.ts b/core/llm/llms/Bedrock.ts index ae595f3f3..30ce69e7a 100644 --- a/core/llm/llms/Bedrock.ts +++ b/core/llm/llms/Bedrock.ts @@ -48,7 +48,6 @@ class Bedrock extends BaseLLM { static defaultOptions: Partial = { region: "us-east-1", model: "anthropic.claude-3-sonnet-20240229-v1:0", - contextLength: 200_000, profile: "bedrock", }; From 2c0181bd3e20992bb7f93308e7f761ba2d861f6a Mon Sep 17 00:00:00 2001 From: Tomasz Stefaniak Date: Fri, 20 Jun 2025 09:01:21 -0700 Subject: [PATCH 057/166] improv: clean up code --- core/llm/rules/getSystemMessageWithRules.ts | 158 ++++++++------------ 1 file changed, 60 insertions(+), 98 deletions(-) diff --git a/core/llm/rules/getSystemMessageWithRules.ts b/core/llm/rules/getSystemMessageWithRules.ts index 3a662b1b6..2a2ca584a 100644 --- a/core/llm/rules/getSystemMessageWithRules.ts +++ b/core/llm/rules/getSystemMessageWithRules.ts @@ -162,6 +162,45 @@ const isGlobalRule = (rule: RuleWithSource): boolean => { return false; }; +const checkGlobsAndPatterns = ({ + hasGlobs, + hasPatterns, + rule, + filePaths, + fileContents, +}: { + hasGlobs: boolean; + hasPatterns: boolean; + rule: RuleWithSource; + filePaths: string[]; + fileContents: Record; +}) => { + const matchingFiles = hasGlobs + ? filePaths.filter((filePath) => matchesGlobs(filePath, rule.globs)) + : filePaths; + + // If no files match the globs, don't apply the rule + if (matchingFiles.length === 0) { + return false; + } + + // Now check for pattern matches in file contents if patterns are specified + if (hasPatterns) { + console.log("HAS PATTERNS", rule.patterns); + // Check if any of the matching files also match the content patterns + return matchingFiles.some((filePath) => { + const content = fileContents[filePath]; + // If we don't have the content, we can't check patterns + if (!content) return false; + return contentMatchesPatterns(content, rule.patterns); + }); + } + + // If we have no patterns or if we couldn't check patterns (no content), + // just go with the glob matches + return matchingFiles.length > 0; +}; + /** * Determines if a rule should be applied based on its properties and file matching * @@ -177,6 +216,7 @@ export const shouldApplyRule = ( fileContents: Record = {}, rulePolicies: RulePolicies = {}, ): boolean => { + console.log("CHECKING SHOULD APPLY RULE", rule); const policy = rulePolicies[rule.name || ""]; // Never apply if policy is "off" @@ -198,6 +238,8 @@ export const shouldApplyRule = ( // Check if this is a root-level rule (in .continue directory or no file path) const isRootRule = isRootLevelRule(rule); + const hasGlobs = rule.globs !== undefined; + const hasPatterns = rule.patterns !== undefined; // For non-root rules, we need to check if any files are in the rule's directory if (!isRootRule && rule.ruleFile) { @@ -211,107 +253,27 @@ export const shouldApplyRule = ( isFileInDirectory(filePath, ruleDirPath), ); - // If no files are in this directory, don't apply the rule - if (filesInRuleDirectory.length === 0) { - return false; - } - - // First check if the files match the globs - const hasGlobs = rule.globs !== undefined; - - // Filter to files that match the globs (or all files if no globs) - const matchingFiles = hasGlobs - ? filesInRuleDirectory.filter((filePath) => - matchesGlobs(filePath, rule.globs), - ) - : filesInRuleDirectory; - - // If no files match the globs, don't apply the rule - if (matchingFiles.length === 0) { - return false; - } - - // Now check for pattern matches in file contents if patterns are specified - if (rule.patterns) { - // Check if any of the matching files also match the content patterns - return matchingFiles.some((filePath) => { - const content = fileContents[filePath]; - // If we don't have the content, we can't check patterns - if (!content) return false; - return contentMatchesPatterns(content, rule.patterns); - }); - } - - // If we have no patterns or if we couldn't check patterns (no content), - // just go with the glob matches - return matchingFiles.length > 0; - } - - // For root-level rules: - - // If alwaysApply is explicitly false, we need to check globs and/or patterns - if (rule.alwaysApply === false) { - const hasGlobs = rule.globs !== undefined; - const hasPatterns = rule.patterns !== undefined; - - if (!hasGlobs && !hasPatterns) { - return false; - } - - // Filter to files that match the globs (or all files if no globs) - const matchingFiles = hasGlobs - ? filePaths.filter((filePath) => matchesGlobs(filePath, rule.globs)) - : filePaths; - - // If no files match the globs, don't apply the rule - if (matchingFiles.length === 0) { - return false; - } - - // Now check for pattern matches in file contents if patterns are specified - if (hasPatterns) { - // Check if any of the matching files also match the content patterns - return matchingFiles.some((filePath) => { - const content = fileContents[filePath]; - // If we don't have the content, we can't check patterns - if (!content) return false; - return contentMatchesPatterns(content, rule.patterns); - }); - } - - // If we have no patterns or if we couldn't check patterns (no content), - // just go with the glob matches - return matchingFiles.length > 0; - } - - // Default behavior for root rules with globs: - const hasGlobs = rule.globs !== undefined; - const hasPatterns = rule.patterns !== undefined; - - // Filter to files that match the globs (or all files if no globs) - const matchingFiles = hasGlobs - ? filePaths.filter((filePath) => matchesGlobs(filePath, rule.globs)) - : filePaths; - - // If no files match the globs, don't apply the rule - if (matchingFiles.length === 0) { - return false; - } - - // Now check for pattern matches in file contents if patterns are specified - if (hasPatterns) { - // Check if any of the matching files also match the content patterns - return matchingFiles.some((filePath) => { - const content = fileContents[filePath]; - // If we don't have the content, we can't check patterns - if (!content) return false; - return contentMatchesPatterns(content, rule.patterns); + return checkGlobsAndPatterns({ + filePaths: filesInRuleDirectory, + fileContents, + rule, + hasGlobs, + hasPatterns, }); } - // If we have no patterns or if we couldn't check patterns (no content), - // just go with the glob matches - return matchingFiles.length > 0; + // If alwaysApply is explicitly false, we need to check globs and/or patterns + if (rule.alwaysApply === false && !hasGlobs && !hasPatterns) { + return false; + } + + return checkGlobsAndPatterns({ + filePaths, + fileContents, + rule, + hasGlobs, + hasPatterns, + }); }; /** From 559b5aa9fbb7c4fb60e7b67d34822ece16e5474d Mon Sep 17 00:00:00 2001 From: Tomasz Stefaniak Date: Fri, 20 Jun 2025 09:07:07 -0700 Subject: [PATCH 058/166] improv: clean up --- core/llm/rules/getSystemMessageWithRules.ts | 22 +++++++++------------ 1 file changed, 9 insertions(+), 13 deletions(-) diff --git a/core/llm/rules/getSystemMessageWithRules.ts b/core/llm/rules/getSystemMessageWithRules.ts index 2a2ca584a..54a7311d2 100644 --- a/core/llm/rules/getSystemMessageWithRules.ts +++ b/core/llm/rules/getSystemMessageWithRules.ts @@ -63,6 +63,7 @@ const contentMatchesPatterns = ( fileContent: string, patterns: string | string[] | undefined, ): boolean => { + console.log(""); if (!patterns) return true; // Handle single string pattern @@ -163,19 +164,16 @@ const isGlobalRule = (rule: RuleWithSource): boolean => { }; const checkGlobsAndPatterns = ({ - hasGlobs, - hasPatterns, rule, filePaths, fileContents, }: { - hasGlobs: boolean; - hasPatterns: boolean; rule: RuleWithSource; filePaths: string[]; fileContents: Record; }) => { - const matchingFiles = hasGlobs + console.log("HERE ZZZZ"); + const matchingFiles = rule.globs ? filePaths.filter((filePath) => matchesGlobs(filePath, rule.globs)) : filePaths; @@ -185,7 +183,7 @@ const checkGlobsAndPatterns = ({ } // Now check for pattern matches in file contents if patterns are specified - if (hasPatterns) { + if (rule.patterns) { console.log("HAS PATTERNS", rule.patterns); // Check if any of the matching files also match the content patterns return matchingFiles.some((filePath) => { @@ -238,8 +236,6 @@ export const shouldApplyRule = ( // Check if this is a root-level rule (in .continue directory or no file path) const isRootRule = isRootLevelRule(rule); - const hasGlobs = rule.globs !== undefined; - const hasPatterns = rule.patterns !== undefined; // For non-root rules, we need to check if any files are in the rule's directory if (!isRootRule && rule.ruleFile) { @@ -257,13 +253,15 @@ export const shouldApplyRule = ( filePaths: filesInRuleDirectory, fileContents, rule, - hasGlobs, - hasPatterns, }); } // If alwaysApply is explicitly false, we need to check globs and/or patterns - if (rule.alwaysApply === false && !hasGlobs && !hasPatterns) { + if ( + rule.alwaysApply === false && + rule.globs === undefined && + rule.patterns === undefined + ) { return false; } @@ -271,8 +269,6 @@ export const shouldApplyRule = ( filePaths, fileContents, rule, - hasGlobs, - hasPatterns, }); }; From b270e25059d942efce3e910fc670b4f4ff28dfa8 Mon Sep 17 00:00:00 2001 From: Tomasz Stefaniak Date: Fri, 20 Jun 2025 09:22:14 -0700 Subject: [PATCH 059/166] Update getSystemMessageWithRules.ts --- core/llm/rules/getSystemMessageWithRules.ts | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/core/llm/rules/getSystemMessageWithRules.ts b/core/llm/rules/getSystemMessageWithRules.ts index 54a7311d2..ccc70c092 100644 --- a/core/llm/rules/getSystemMessageWithRules.ts +++ b/core/llm/rules/getSystemMessageWithRules.ts @@ -61,15 +61,15 @@ const matchesGlobs = ( */ const contentMatchesPatterns = ( fileContent: string, - patterns: string | string[] | undefined, + patterns: string | string[], ): boolean => { - console.log(""); - if (!patterns) return true; + console.log("HERE XXXXX"); // Handle single string pattern if (typeof patterns === "string") { try { const regex = new RegExp(patterns); + console.log("REGEX", regex); return regex.test(fileContent); } catch (e) { console.error(`Invalid regex pattern: ${patterns}`, e); @@ -188,9 +188,10 @@ const checkGlobsAndPatterns = ({ // Check if any of the matching files also match the content patterns return matchingFiles.some((filePath) => { const content = fileContents[filePath]; + console.log("TESTING FILE MATCH", content); // If we don't have the content, we can't check patterns if (!content) return false; - return contentMatchesPatterns(content, rule.patterns); + return contentMatchesPatterns(content, rule.patterns!); }); } @@ -304,10 +305,12 @@ export const getApplicableRules = ( // Extract contents from context items with file URIs contextItems.forEach((item) => { + console.log("ITEM", item); if (item.uri?.type === "file" && item.uri?.value) { fileContents[item.uri.value] = item.content; } }); + console.log("FILE CONTENTS", fileContents); // Apply shouldApplyRule to all rules - this will handle global rules, rule policies, // and path matching in a consistent way From 4cf154d9c9b90103fe5afaf69c28e8cfaaf8d028 Mon Sep 17 00:00:00 2001 From: Tomasz Stefaniak Date: Fri, 20 Jun 2025 09:27:33 -0700 Subject: [PATCH 060/166] fix: pattern matching --- core/llm/rules/getSystemMessageWithRules.ts | 17 ++++++++++- .../llm/utils/extractContentFromCodeBlocks.ts | 29 +++++++++++++++++++ 2 files changed, 45 insertions(+), 1 deletion(-) create mode 100644 core/llm/utils/extractContentFromCodeBlocks.ts diff --git a/core/llm/rules/getSystemMessageWithRules.ts b/core/llm/rules/getSystemMessageWithRules.ts index ccc70c092..bdfe0aa0a 100644 --- a/core/llm/rules/getSystemMessageWithRules.ts +++ b/core/llm/rules/getSystemMessageWithRules.ts @@ -7,6 +7,7 @@ import { } from "../.."; import { renderChatMessage } from "../../util/messageContent"; import { getCleanUriPath } from "../../util/uri"; +import { extractContentFromCodeBlock } from "../utils/extractContentFromCodeBlocks"; import { extractPathsFromCodeBlocks } from "../utils/extractPathsFromCodeBlocks"; import { RulePolicies } from "./types"; @@ -305,11 +306,25 @@ export const getApplicableRules = ( // Extract contents from context items with file URIs contextItems.forEach((item) => { - console.log("ITEM", item); if (item.uri?.type === "file" && item.uri?.value) { fileContents[item.uri.value] = item.content; } }); + + // Extract contents from code blocks in the message for paths that don't have content yet + if (userMessage) { + const messageContent = renderChatMessage(userMessage); + filePathsFromMessage.forEach((path) => { + // Only extract content if we don't already have it from context items + if (!fileContents[path]) { + const blockContent = extractContentFromCodeBlock(messageContent, path); + if (blockContent) { + fileContents[path] = blockContent; + } + } + }); + } + console.log("FILE CONTENTS", fileContents); // Apply shouldApplyRule to all rules - this will handle global rules, rule policies, diff --git a/core/llm/utils/extractContentFromCodeBlocks.ts b/core/llm/utils/extractContentFromCodeBlocks.ts new file mode 100644 index 000000000..00abc49cf --- /dev/null +++ b/core/llm/utils/extractContentFromCodeBlocks.ts @@ -0,0 +1,29 @@ +/** + * Extracts content from code blocks with given path + * @param content The full message content + * @param path The file path to look for + * @returns The content of the code block if found, undefined otherwise + */ +export function extractContentFromCodeBlock( + content: string, + path: string +): string | undefined { + // Escape special characters in the path for regex + const escapedPath = path.replace(/[.*+?^${}()|[\]\\]/g, "\\$&"); + + // Match the code block with this path + // This regex looks for: + // 1. Code block start with the path (```[language] path) + // 2. The content until the closing ``` + const regex = new RegExp( + `\`\`\`[^\\n]*${escapedPath}[^\\n]*\\n([\\s\\S]*?)\\n\`\`\``, + "m" + ); + + const match = content.match(regex); + if (match && match[1]) { + return match[1]; + } + + return undefined; +} \ No newline at end of file From 0f174fca79a876233f0f78fb180fee74a584cb40 Mon Sep 17 00:00:00 2001 From: Tomasz Stefaniak Date: Fri, 20 Jun 2025 09:30:00 -0700 Subject: [PATCH 061/166] improv: tests --- .../extractContentFromCodeBlocks.test.ts | 71 +++++++++++++++++++ .../llm/utils/extractContentFromCodeBlocks.ts | 18 +++-- 2 files changed, 82 insertions(+), 7 deletions(-) create mode 100644 core/llm/utils/extractContentFromCodeBlocks.test.ts diff --git a/core/llm/utils/extractContentFromCodeBlocks.test.ts b/core/llm/utils/extractContentFromCodeBlocks.test.ts new file mode 100644 index 000000000..b6a612ed3 --- /dev/null +++ b/core/llm/utils/extractContentFromCodeBlocks.test.ts @@ -0,0 +1,71 @@ +import { extractContentFromCodeBlock } from "./extractContentFromCodeBlocks"; + +describe("extractContentFromCodeBlock", () => { + it("should extract content from code block with language and filepath", () => { + const content = "```typescript src/main.ts\nconst x = 1;\n```"; + expect(extractContentFromCodeBlock(content, "src/main.ts")).toBe("const x = 1;"); + }); + + it("should extract content from code block with filepath only (no language)", () => { + const content = "```test.js\nclass Calculator { }\n```"; + expect(extractContentFromCodeBlock(content, "test.js")).toBe("class Calculator { }"); + }); + + it("should extract content from code block with line ranges", () => { + const content = "```js test.js (19-25)\nfunction test() {}\n```"; + expect(extractContentFromCodeBlock(content, "test.js")).toBe("function test() {}"); + }); + + it("should handle multiple code blocks and find the right one", () => { + const content = + "```typescript src/main.ts\nconst x = 1;\n```\n" + + "```test.js\nclass Calculator { }\n```\n" + + "```js utils.js (19-25)\nfunction test() {}\n```"; + + expect(extractContentFromCodeBlock(content, "src/main.ts")).toBe("const x = 1;"); + expect(extractContentFromCodeBlock(content, "test.js")).toBe("class Calculator { }"); + expect(extractContentFromCodeBlock(content, "utils.js")).toBe("function test() {}"); + }); + + it("should handle paths with special regex characters", () => { + const content = "```typescript src/special+chars.ts[123]\nconst special = true;\n```"; + expect(extractContentFromCodeBlock(content, "src/special+chars.ts[123]")).toBe("const special = true;"); + }); + + it("should handle multiline content", () => { + const content = + "```typescript src/multi-line.ts\n" + + "function example() {\n" + + " const x = 1;\n" + + " return x + 2;\n" + + "}\n" + + "```"; + + const expected = + "function example() {\n" + + " const x = 1;\n" + + " return x + 2;\n" + + "}"; + + expect(extractContentFromCodeBlock(content, "src/multi-line.ts")).toBe(expected); + }); + + it("should return undefined when path doesn't exist in any code block", () => { + const content = "```typescript src/main.ts\nconst x = 1;\n```"; + expect(extractContentFromCodeBlock(content, "nonexistent.ts")).toBeUndefined(); + }); + + it("should extract content when the path has directory structure", () => { + const content = "```js src/components/Button.jsx\nconst Button = () => ;\n```"; + expect(extractContentFromCodeBlock(content, "src/components/Button.jsx")).toBe("const Button = () => ;"); + }); + + it("should match exact paths only", () => { + const content = + "```typescript src/utils.ts\nconst util = {};\n```\n" + + "```typescript src/utils/index.ts\nconst index = {};\n```"; + + expect(extractContentFromCodeBlock(content, "src/utils.ts")).toBe("const util = {};"); + expect(extractContentFromCodeBlock(content, "src/utils/index.ts")).toBe("const index = {};"); + }); +}); \ No newline at end of file diff --git a/core/llm/utils/extractContentFromCodeBlocks.ts b/core/llm/utils/extractContentFromCodeBlocks.ts index 00abc49cf..c67ab2f7d 100644 --- a/core/llm/utils/extractContentFromCodeBlocks.ts +++ b/core/llm/utils/extractContentFromCodeBlocks.ts @@ -6,24 +6,28 @@ */ export function extractContentFromCodeBlock( content: string, - path: string + path: string, ): string | undefined { // Escape special characters in the path for regex const escapedPath = path.replace(/[.*+?^${}()|[\]\\]/g, "\\$&"); - + // Match the code block with this path // This regex looks for: // 1. Code block start with the path (```[language] path) // 2. The content until the closing ``` + // The path can be: + // - With language: ```typescript src/main.ts + // - Without language: ```src/main.ts + // - With line ranges: ```js src/main.ts (1-10) const regex = new RegExp( - `\`\`\`[^\\n]*${escapedPath}[^\\n]*\\n([\\s\\S]*?)\\n\`\`\``, - "m" + `\`\`\`[^\\n]*\\b${escapedPath}(?:\\s+\\([\\d-]+\\))?[^\\n]*\\n([\\s\\S]*?)\\n\`\`\``, + "m", ); - + const match = content.match(regex); if (match && match[1]) { return match[1]; } - + return undefined; -} \ No newline at end of file +} From 897f7130e0d4f17c75013f6eebdbe97b3a07b592 Mon Sep 17 00:00:00 2001 From: Tomasz Stefaniak Date: Fri, 20 Jun 2025 09:32:10 -0700 Subject: [PATCH 062/166] improv: clean up --- core/llm/rules/getSystemMessageWithRules.ts | 12 ------------ 1 file changed, 12 deletions(-) diff --git a/core/llm/rules/getSystemMessageWithRules.ts b/core/llm/rules/getSystemMessageWithRules.ts index bdfe0aa0a..c0ea95fef 100644 --- a/core/llm/rules/getSystemMessageWithRules.ts +++ b/core/llm/rules/getSystemMessageWithRules.ts @@ -64,13 +64,10 @@ const contentMatchesPatterns = ( fileContent: string, patterns: string | string[], ): boolean => { - console.log("HERE XXXXX"); - // Handle single string pattern if (typeof patterns === "string") { try { const regex = new RegExp(patterns); - console.log("REGEX", regex); return regex.test(fileContent); } catch (e) { console.error(`Invalid regex pattern: ${patterns}`, e); @@ -148,7 +145,6 @@ const isGlobalRule = (rule: RuleWithSource): boolean => { return true; } - console.log("RULE", rule); // Root-level rules with no globs or patterns are implicitly global if ( isRootLevelRule(rule) && @@ -156,11 +152,9 @@ const isGlobalRule = (rule: RuleWithSource): boolean => { !rule.patterns && rule.alwaysApply !== false ) { - console.log("IS ROOT"); return true; } - console.log("NOT ROOT"); return false; }; @@ -173,7 +167,6 @@ const checkGlobsAndPatterns = ({ filePaths: string[]; fileContents: Record; }) => { - console.log("HERE ZZZZ"); const matchingFiles = rule.globs ? filePaths.filter((filePath) => matchesGlobs(filePath, rule.globs)) : filePaths; @@ -185,11 +178,9 @@ const checkGlobsAndPatterns = ({ // Now check for pattern matches in file contents if patterns are specified if (rule.patterns) { - console.log("HAS PATTERNS", rule.patterns); // Check if any of the matching files also match the content patterns return matchingFiles.some((filePath) => { const content = fileContents[filePath]; - console.log("TESTING FILE MATCH", content); // If we don't have the content, we can't check patterns if (!content) return false; return contentMatchesPatterns(content, rule.patterns!); @@ -216,7 +207,6 @@ export const shouldApplyRule = ( fileContents: Record = {}, rulePolicies: RulePolicies = {}, ): boolean => { - console.log("CHECKING SHOULD APPLY RULE", rule); const policy = rulePolicies[rule.name || ""]; // Never apply if policy is "off" @@ -325,8 +315,6 @@ export const getApplicableRules = ( }); } - console.log("FILE CONTENTS", fileContents); - // Apply shouldApplyRule to all rules - this will handle global rules, rule policies, // and path matching in a consistent way const applicableRules = rules.filter((rule) => From 1bc7b78a1c093a579b8a737dd77e07a2401714d8 Mon Sep 17 00:00:00 2001 From: Tomasz Stefaniak Date: Fri, 20 Jun 2025 09:39:04 -0700 Subject: [PATCH 063/166] fix: args --- core/llm/rules/getSystemMessageWithRules.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/core/llm/rules/getSystemMessageWithRules.ts b/core/llm/rules/getSystemMessageWithRules.ts index c0ea95fef..62756923e 100644 --- a/core/llm/rules/getSystemMessageWithRules.ts +++ b/core/llm/rules/getSystemMessageWithRules.ts @@ -204,8 +204,8 @@ const checkGlobsAndPatterns = ({ export const shouldApplyRule = ( rule: RuleWithSource, filePaths: string[], - fileContents: Record = {}, rulePolicies: RulePolicies = {}, + fileContents: Record = {}, ): boolean => { const policy = rulePolicies[rule.name || ""]; @@ -318,7 +318,7 @@ export const getApplicableRules = ( // Apply shouldApplyRule to all rules - this will handle global rules, rule policies, // and path matching in a consistent way const applicableRules = rules.filter((rule) => - shouldApplyRule(rule, allFilePaths, fileContents, rulePolicies), + shouldApplyRule(rule, allFilePaths, rulePolicies, fileContents), ); return applicableRules; From a251c1b6f641d22aeaaaacd1a827e8a129c268fc Mon Sep 17 00:00:00 2001 From: Tomasz Stefaniak Date: Fri, 20 Jun 2025 11:22:32 -0700 Subject: [PATCH 064/166] test: pattern matching --- .../rules/getSystemMessageWithRules.vitest.ts | 237 +++++++++++++++++- 1 file changed, 235 insertions(+), 2 deletions(-) diff --git a/core/llm/rules/getSystemMessageWithRules.vitest.ts b/core/llm/rules/getSystemMessageWithRules.vitest.ts index f652d3a77..8425c8324 100644 --- a/core/llm/rules/getSystemMessageWithRules.vitest.ts +++ b/core/llm/rules/getSystemMessageWithRules.vitest.ts @@ -1,6 +1,14 @@ import { describe, expect, it } from "vitest"; -import { RuleWithSource } from "../.."; -import { shouldApplyRule } from "./getSystemMessageWithRules"; +import { + ContextItemId, + ContextItemWithId, + RuleWithSource, + UserChatMessage, +} from "../.."; +import { + getApplicableRules, + shouldApplyRule, +} from "./getSystemMessageWithRules"; import { RulePolicies } from "./types"; describe("Rule colocation glob matching", () => { @@ -244,3 +252,228 @@ describe("Rule policies", () => { ).toBe(false); }); }); + +describe("Content pattern matching", () => { + it("should apply rules when file content matches pattern", () => { + // Rule with pattern to match React component files + const reactComponentRule: RuleWithSource = { + name: "React Component Rule", + rule: "Follow React component standards", + patterns: "export (function|const) \\w+.*\\(", + source: "rules-block", + ruleFile: "src/components/rules.md", + }; + + // File that matches the pattern + const filePath = "src/components/Button.tsx"; + const fileContents = { + [filePath]: + "export function Button() { return }", + }; + + expect( + shouldApplyRule(reactComponentRule, [filePath], {}, fileContents), + ).toBe(true); + + // File that doesn't match the pattern + const nonMatchingContents = { + [filePath]: + "import React from 'react'; // Just an import, not a component", + }; + + expect( + shouldApplyRule(reactComponentRule, [filePath], {}, nonMatchingContents), + ).toBe(false); + }); + + it("should support multiple regex patterns as an array", () => { + // Rule with multiple patterns + const multiPatternRule: RuleWithSource = { + name: "Multi-Pattern Rule", + rule: "Apply to functions or classes", + patterns: ["function\\s+\\w+", "class\\s+\\w+"], + source: "rules-block", + ruleFile: "src/utils/rules.md", + }; + + const filePath = "src/utils/helper.ts"; + + // Content with function - should match + const functionContent = { + [filePath]: "function formatDate(date) { return date.toISOString(); }", + }; + expect( + shouldApplyRule(multiPatternRule, [filePath], {}, functionContent), + ).toBe(true); + + // Content with class - should match + const classContent = { + [filePath]: + "class DateFormatter { format(date) { return date.toISOString(); } }", + }; + expect( + shouldApplyRule(multiPatternRule, [filePath], {}, classContent), + ).toBe(true); + + // Content with neither - should not match + const nonMatchingContent = { + [filePath]: "const PI = 3.14159;", + }; + expect( + shouldApplyRule(multiPatternRule, [filePath], {}, nonMatchingContent), + ).toBe(false); + }); + + it("should apply rules based on both globs and patterns when both are specified", () => { + // Rule with both glob and pattern restrictions + const typescriptClassRule: RuleWithSource = { + name: "TypeScript Class Rule", + rule: "Follow class standards in TypeScript", + globs: "**/*.ts", + patterns: "class\\s+\\w+", + source: "rules-block", + ruleFile: "src/models/rules.md", + }; + + const tsFilePath = "src/models/User.ts"; + const jsFilePath = "src/models/Product.js"; + + // TypeScript file with class - should match + const tsClassContent = { + [tsFilePath]: "export class User { constructor(public name: string) {} }", + }; + expect( + shouldApplyRule(typescriptClassRule, [tsFilePath], {}, tsClassContent), + ).toBe(true); + + // TypeScript file without class - should not match + const tsNonClassContent = { + [tsFilePath]: "export const createUser = (name: string) => ({ name });", + }; + expect( + shouldApplyRule(typescriptClassRule, [tsFilePath], {}, tsNonClassContent), + ).toBe(false); + + // JavaScript file with class - should not match due to glob + const jsClassContent = { + [jsFilePath]: + "export class Product { constructor(name) { this.name = name; } }", + }; + expect( + shouldApplyRule(typescriptClassRule, [jsFilePath], {}, jsClassContent), + ).toBe(false); + }); + + it("should extract file content from messages for pattern matching", () => { + // Rule with pattern + const arrowFunctionRule: RuleWithSource = { + name: "Arrow Function Rule", + rule: "Use arrow functions for better this binding", + patterns: "const\\s+\\w+\\s*=\\s*\\(", + source: "rules-block", + ruleFile: "src/utils/rules.md", + }; + + // Message with code block containing a matching pattern + const messageWithArrowFn: UserChatMessage = { + role: "user", + content: + "Can you check this code?\n```typescript src/utils/formatter.ts\nconst format = (date) => {\n return date.toISOString();\n};\n```", + }; + + // Create context item to match the file in the message + const contextItem: ContextItemWithId = { + id: { providerTitle: "file", itemId: "formatter" } as ContextItemId, + uri: { type: "file", value: "src/utils/formatter.ts" }, + content: "const format = (date) => {\n return date.toISOString();\n};", + name: "formatter.ts", + description: "Utility formatter", + }; + + // Should match the pattern + const applicableRules = getApplicableRules( + messageWithArrowFn, + [arrowFunctionRule], + [contextItem], + ); + + expect(applicableRules).toHaveLength(1); + expect(applicableRules[0].name).toBe("Arrow Function Rule"); + + // Message with code block that doesn't match the pattern + const messageWithoutArrowFn: UserChatMessage = { + role: "user", + content: + "Can you check this code?\n```typescript src/utils/formatter.ts\nfunction format(date) {\n return date.toISOString();\n}\n```", + }; + + // Context item with non-matching content + const nonMatchingContextItem: ContextItemWithId = { + id: { providerTitle: "file", itemId: "formatter2" } as ContextItemId, + uri: { type: "file", value: "src/utils/formatter.ts" }, + content: "function format(date) {\n return date.toISOString();\n}", + name: "formatter.ts", + description: "Utility formatter", + }; + + // Should not match the pattern + const nonApplicableRules = getApplicableRules( + messageWithoutArrowFn, + [arrowFunctionRule], + [nonMatchingContextItem], + ); + + expect(nonApplicableRules).toHaveLength(0); + }); + + it("should handle invalid regex patterns gracefully", () => { + // Rule with invalid regex pattern + const invalidRegexRule: RuleWithSource = { + name: "Invalid Regex Rule", + rule: "This rule has an invalid regex pattern", + patterns: "([unclosed parenthesis", + source: "rules-block", + ruleFile: "src/utils/rules.md", + }; + + const filePath = "src/utils/helper.ts"; + const fileContents = { + [filePath]: "function helper() { return true; }", + }; + + // Should not throw an error but gracefully not apply the rule + expect( + shouldApplyRule(invalidRegexRule, [filePath], {}, fileContents), + ).toBe(false); + }); + + it("should respect directory restrictions for pattern rules", () => { + // Rule with pattern in a nested directory + const nestedPatternRule: RuleWithSource = { + name: "Nested Pattern Rule", + rule: "Apply only to model files with interfaces", + patterns: "interface\\s+\\w+", + source: "rules-block", + ruleFile: "src/models/rules.md", + }; + + // File in the correct directory with matching content + const modelFilePath = "src/models/User.ts"; + const modelContents = { + [modelFilePath]: "export interface User { id: string; name: string; }", + }; + expect( + shouldApplyRule(nestedPatternRule, [modelFilePath], {}, modelContents), + ).toBe(true); + + // File outside the directory with matching content - should not match + const utilFilePath = "src/utils/types.ts"; + const utilContents = { + [utilFilePath]: + "export interface Config { apiUrl: string; timeout: number; }", + }; + expect( + shouldApplyRule(nestedPatternRule, [utilFilePath], {}, utilContents), + ).toBe(false); + }); +}); From 77989095ba5334b6a9aff4e44a1a08f94220505f Mon Sep 17 00:00:00 2001 From: Tomasz Stefaniak Date: Fri, 20 Jun 2025 11:24:06 -0700 Subject: [PATCH 065/166] fix: formatting --- .../extractContentFromCodeBlocks.test.ts | 75 ++++++++++++------- .../e2e/actions/Autocomplete.actions.ts | 4 +- 2 files changed, 51 insertions(+), 28 deletions(-) diff --git a/core/llm/utils/extractContentFromCodeBlocks.test.ts b/core/llm/utils/extractContentFromCodeBlocks.test.ts index b6a612ed3..47a814934 100644 --- a/core/llm/utils/extractContentFromCodeBlocks.test.ts +++ b/core/llm/utils/extractContentFromCodeBlocks.test.ts @@ -3,17 +3,23 @@ import { extractContentFromCodeBlock } from "./extractContentFromCodeBlocks"; describe("extractContentFromCodeBlock", () => { it("should extract content from code block with language and filepath", () => { const content = "```typescript src/main.ts\nconst x = 1;\n```"; - expect(extractContentFromCodeBlock(content, "src/main.ts")).toBe("const x = 1;"); + expect(extractContentFromCodeBlock(content, "src/main.ts")).toBe( + "const x = 1;", + ); }); it("should extract content from code block with filepath only (no language)", () => { const content = "```test.js\nclass Calculator { }\n```"; - expect(extractContentFromCodeBlock(content, "test.js")).toBe("class Calculator { }"); + expect(extractContentFromCodeBlock(content, "test.js")).toBe( + "class Calculator { }", + ); }); it("should extract content from code block with line ranges", () => { const content = "```js test.js (19-25)\nfunction test() {}\n```"; - expect(extractContentFromCodeBlock(content, "test.js")).toBe("function test() {}"); + expect(extractContentFromCodeBlock(content, "test.js")).toBe( + "function test() {}", + ); }); it("should handle multiple code blocks and find the right one", () => { @@ -21,51 +27,68 @@ describe("extractContentFromCodeBlock", () => { "```typescript src/main.ts\nconst x = 1;\n```\n" + "```test.js\nclass Calculator { }\n```\n" + "```js utils.js (19-25)\nfunction test() {}\n```"; - - expect(extractContentFromCodeBlock(content, "src/main.ts")).toBe("const x = 1;"); - expect(extractContentFromCodeBlock(content, "test.js")).toBe("class Calculator { }"); - expect(extractContentFromCodeBlock(content, "utils.js")).toBe("function test() {}"); + + expect(extractContentFromCodeBlock(content, "src/main.ts")).toBe( + "const x = 1;", + ); + expect(extractContentFromCodeBlock(content, "test.js")).toBe( + "class Calculator { }", + ); + expect(extractContentFromCodeBlock(content, "utils.js")).toBe( + "function test() {}", + ); }); it("should handle paths with special regex characters", () => { - const content = "```typescript src/special+chars.ts[123]\nconst special = true;\n```"; - expect(extractContentFromCodeBlock(content, "src/special+chars.ts[123]")).toBe("const special = true;"); + const content = + "```typescript src/special+chars.ts[123]\nconst special = true;\n```"; + expect( + extractContentFromCodeBlock(content, "src/special+chars.ts[123]"), + ).toBe("const special = true;"); }); it("should handle multiline content", () => { - const content = + const content = "```typescript src/multi-line.ts\n" + "function example() {\n" + " const x = 1;\n" + " return x + 2;\n" + "}\n" + "```"; - - const expected = - "function example() {\n" + - " const x = 1;\n" + - " return x + 2;\n" + - "}"; - - expect(extractContentFromCodeBlock(content, "src/multi-line.ts")).toBe(expected); + + const expected = + "function example() {\n" + " const x = 1;\n" + " return x + 2;\n" + "}"; + + expect(extractContentFromCodeBlock(content, "src/multi-line.ts")).toBe( + expected, + ); }); it("should return undefined when path doesn't exist in any code block", () => { const content = "```typescript src/main.ts\nconst x = 1;\n```"; - expect(extractContentFromCodeBlock(content, "nonexistent.ts")).toBeUndefined(); + expect( + extractContentFromCodeBlock(content, "nonexistent.ts"), + ).toBeUndefined(); }); it("should extract content when the path has directory structure", () => { - const content = "```js src/components/Button.jsx\nconst Button = () => ;\n```"; - expect(extractContentFromCodeBlock(content, "src/components/Button.jsx")).toBe("const Button = () => ;"); + const content = + "```js src/components/Button.jsx\nconst Button = () => ;\n```"; + expect( + extractContentFromCodeBlock(content, "src/components/Button.jsx"), + ).toBe("const Button = () => ;"); }); it("should match exact paths only", () => { - const content = + const content = "```typescript src/utils.ts\nconst util = {};\n```\n" + "```typescript src/utils/index.ts\nconst index = {};\n```"; - - expect(extractContentFromCodeBlock(content, "src/utils.ts")).toBe("const util = {};"); - expect(extractContentFromCodeBlock(content, "src/utils/index.ts")).toBe("const index = {};"); + + expect(extractContentFromCodeBlock(content, "src/utils.ts")).toBe( + "const util = {};", + ); + expect(extractContentFromCodeBlock(content, "src/utils/index.ts")).toBe( + "const index = {};", + ); }); -}); \ No newline at end of file +}); diff --git a/extensions/vscode/e2e/actions/Autocomplete.actions.ts b/extensions/vscode/e2e/actions/Autocomplete.actions.ts index 9e91355fd..29902e4f2 100644 --- a/extensions/vscode/e2e/actions/Autocomplete.actions.ts +++ b/extensions/vscode/e2e/actions/Autocomplete.actions.ts @@ -30,14 +30,14 @@ export class AutocompleteActions { expect(ghostText1).to.equal(messagePair1.llmResponse); } - public static async forceCompletion(editor: TextEditor): Promise { + public static async forceCompletion(editor: TextEditor): Promise { await editor.setText("def main():\n "); await editor.moveCursor(2, 5); await new Workbench().executeCommand("Continue: Force Autocomplete"); const ghostText = await TestUtils.waitForSuccess(() => - AutocompleteSelectors.getGhostTextContent(VSBrowser.instance.driver) + AutocompleteSelectors.getGhostTextContent(VSBrowser.instance.driver), ); return ghostText; From 8b6d1ff9a3e75087dedada70a63026efeb3b8164 Mon Sep 17 00:00:00 2001 From: Nate Date: Fri, 20 Jun 2025 11:26:26 -0700 Subject: [PATCH 066/166] Handle empty query by sending "null" instead of empty string in MCP context provider --- core/context/providers/MCPContextProvider.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/core/context/providers/MCPContextProvider.ts b/core/context/providers/MCPContextProvider.ts index 6465d6b63..0336c2ec3 100644 --- a/core/context/providers/MCPContextProvider.ts +++ b/core/context/providers/MCPContextProvider.ts @@ -56,7 +56,9 @@ class MCPContextProvider extends BaseContextProvider { private insertInputToUriTemplate(uri: string, query: string): string { const TEMPLATE_VAR = "query"; if (uri.includes(`{${TEMPLATE_VAR}}`)) { - return uri.replace(`{${TEMPLATE_VAR}}`, encodeURIComponent(query)); + // Sending an empty string will result in an error, so we instead send "null" + const queryOrNull = query.trim() === "" ? "null" : query; + return uri.replace(`{${TEMPLATE_VAR}}`, encodeURIComponent(queryOrNull)); } return uri; } From 6721efc7ffeb9fd97b63a3d5ebed9e742f75e400 Mon Sep 17 00:00:00 2001 From: Nate Date: Fri, 20 Jun 2025 16:06:03 -0700 Subject: [PATCH 067/166] 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 068/166] 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 c39ee8999eb6a6a80c0c027fac52c09c33f17768 Mon Sep 17 00:00:00 2001 From: Nate Date: Fri, 20 Jun 2025 16:59:30 -0700 Subject: [PATCH 069/166] Update createRuleBlock tool description for clarity --- core/tools/definitions/createRuleBlock.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/tools/definitions/createRuleBlock.ts b/core/tools/definitions/createRuleBlock.ts index ace3bc6b2..0ae12cbc2 100644 --- a/core/tools/definitions/createRuleBlock.ts +++ b/core/tools/definitions/createRuleBlock.ts @@ -13,7 +13,7 @@ export const createRuleBlock: Tool = { function: { name: BuiltInToolNames.CreateRuleBlock, description: - "Creates a persistent rule for all future conversations. For establishing code standards or preferences that should be applied consistently. To modify existing rules, use the edit tool instead.", + 'Creates a "rule" that can be referenced in future conversations. This should be used whenever you want to establish code standards / preferences that should be applied consistently, or when you want to avoid making a mistake again. To modify existing rules, use the edit tool instead.', parameters: { type: "object", required: ["name", "rule", "alwaysApply", "description"], From ff4dcdce7382182efff9e246994f53f39a4d3c66 Mon Sep 17 00:00:00 2001 From: Dallin Romney Date: Fri, 20 Jun 2025 23:39:39 -0700 Subject: [PATCH 070/166] 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 071/166] 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 072/166] 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 073/166] 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 074/166] 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 075/166] 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 076/166] 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 077/166] 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 078/166] 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 079/166] 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 080/166] 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 081/166] 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 082/166] 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 083/166] 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 084/166] 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 085/166] 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 ea52d138558cdb55b3ea0f9f8b252240a05c4106 Mon Sep 17 00:00:00 2001 From: Shankhadeep Dey Date: Sun, 22 Jun 2025 22:29:59 +0530 Subject: [PATCH 086/166] feat: add webview listener for index progress to load submenu items --- gui/src/context/SubmenuContextProviders.tsx | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/gui/src/context/SubmenuContextProviders.tsx b/gui/src/context/SubmenuContextProviders.tsx index 8268377de..804d622f2 100644 --- a/gui/src/context/SubmenuContextProviders.tsx +++ b/gui/src/context/SubmenuContextProviders.tsx @@ -356,6 +356,16 @@ export const SubmenuContextProvidersProvider = ({ [loadSubmenuItems], ); + useWebviewListener( + "indexProgress", + async (data) => { + if (data.status === "done") { + loadSubmenuItems("dependsOnIndexing") + } + }, + [loadSubmenuItems], + ); + // Reload all submenu items on the initial config load useEffect(() => { if (!submenuContextProviders.length) { From 944f3e16d2aa33beae0810d8d3aa642fe1b959ed Mon Sep 17 00:00:00 2001 From: Shankhadeep Dey Date: Sun, 22 Jun 2025 22:36:44 +0530 Subject: [PATCH 087/166] fix: prettier format --- gui/src/context/SubmenuContextProviders.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gui/src/context/SubmenuContextProviders.tsx b/gui/src/context/SubmenuContextProviders.tsx index 804d622f2..cf3939c48 100644 --- a/gui/src/context/SubmenuContextProviders.tsx +++ b/gui/src/context/SubmenuContextProviders.tsx @@ -360,7 +360,7 @@ export const SubmenuContextProvidersProvider = ({ "indexProgress", async (data) => { if (data.status === "done") { - loadSubmenuItems("dependsOnIndexing") + loadSubmenuItems("dependsOnIndexing"); } }, [loadSubmenuItems], From 7927a6242244a21d950e550d5cf9512d4a86a0e3 Mon Sep 17 00:00:00 2001 From: Patrick Erichsen Date: Sun, 22 Jun 2025 11:25:03 -0700 Subject: [PATCH 088/166] feat: create `AssistantAndOrgListbox` --- extensions/vscode/package-lock.json | 4 +- .../AssistantIcon.tsx | 4 +- .../AssistantOption.tsx | 118 ++++++ .../AssistantOptions.tsx | 54 +++ .../OrganizationInfo.tsx | 14 + .../AssistantAndOrgListbox}/ScopeSelect.tsx | 30 +- .../SelectedAssistantButton.tsx | 38 ++ .../AssistantAndOrgListbox/index.tsx | 173 ++++++++ .../shared.tsx | 4 +- .../platform => }/FreeTrialButton.tsx | 11 +- .../LumpToolbar/BlockSettingsTopToolbar.tsx | 6 +- .../platform/AssistantSelect.tsx | 388 ------------------ gui/src/pages/config/AccountButton.tsx | 2 +- packages/config-yaml/package-lock.json | 4 +- 14 files changed, 432 insertions(+), 418 deletions(-) rename gui/src/components/{modelSelection/platform => AssistantAndOrgListbox}/AssistantIcon.tsx (86%) create mode 100644 gui/src/components/AssistantAndOrgListbox/AssistantOption.tsx create mode 100644 gui/src/components/AssistantAndOrgListbox/AssistantOptions.tsx create mode 100644 gui/src/components/AssistantAndOrgListbox/OrganizationInfo.tsx rename gui/src/{pages/config => components/AssistantAndOrgListbox}/ScopeSelect.tsx (81%) create mode 100644 gui/src/components/AssistantAndOrgListbox/SelectedAssistantButton.tsx create mode 100644 gui/src/components/AssistantAndOrgListbox/index.tsx rename gui/src/components/{modelSelection/platform => AssistantAndOrgListbox}/shared.tsx (98%) rename gui/src/components/{modelSelection/platform => }/FreeTrialButton.tsx (93%) delete mode 100644 gui/src/components/modelSelection/platform/AssistantSelect.tsx diff --git a/extensions/vscode/package-lock.json b/extensions/vscode/package-lock.json index 199c669c7..1d493deef 100644 --- a/extensions/vscode/package-lock.json +++ b/extensions/vscode/package-lock.json @@ -1,12 +1,12 @@ { "name": "continue", - "version": "1.1.48", + "version": "1.1.49", "lockfileVersion": 3, "requires": true, "packages": { "": { "name": "continue", - "version": "1.1.48", + "version": "1.1.49", "license": "Apache-2.0", "dependencies": { "@continuedev/config-types": "^1.0.14", diff --git a/gui/src/components/modelSelection/platform/AssistantIcon.tsx b/gui/src/components/AssistantAndOrgListbox/AssistantIcon.tsx similarity index 86% rename from gui/src/components/modelSelection/platform/AssistantIcon.tsx rename to gui/src/components/AssistantAndOrgListbox/AssistantIcon.tsx index c901bfdf4..aca23dad7 100644 --- a/gui/src/components/modelSelection/platform/AssistantIcon.tsx +++ b/gui/src/components/AssistantAndOrgListbox/AssistantIcon.tsx @@ -1,13 +1,13 @@ import { ComputerDesktopIcon, SparklesIcon } from "@heroicons/react/24/outline"; import { ProfileDescription } from "core/config/ProfileLifecycleManager"; -import { isLocalProfile } from "../../../util"; +import { isLocalProfile } from "../../util"; export interface AssistantIconProps { assistant: ProfileDescription; size?: number; } -export default function AssistantIcon({ assistant, size }: AssistantIconProps) { +export function AssistantIcon({ assistant, size }: AssistantIconProps) { const sizeTw = size ?? 4; if (isLocalProfile(assistant)) { return ( diff --git a/gui/src/components/AssistantAndOrgListbox/AssistantOption.tsx b/gui/src/components/AssistantAndOrgListbox/AssistantOption.tsx new file mode 100644 index 000000000..201a9e852 --- /dev/null +++ b/gui/src/components/AssistantAndOrgListbox/AssistantOption.tsx @@ -0,0 +1,118 @@ +import { + ArrowTopRightOnSquareIcon, + Cog6ToothIcon, + ExclamationTriangleIcon, +} from "@heroicons/react/24/outline"; +import { ProfileDescription } from "core/config/ProfileLifecycleManager"; +import { useContext, useMemo } from "react"; +import { useNavigate } from "react-router-dom"; +import { IdeMessengerContext } from "../../context/IdeMessenger"; +import { useAppDispatch } from "../../redux/hooks"; +import { setSelectedProfile } from "../../redux/slices/profilesSlice"; +import { isLocalProfile } from "../../util"; +import { ROUTES } from "../../util/navigation"; +import { useLump } from "../mainInput/Lump/LumpContext"; +import { ListboxOption, useFontSize } from "../ui"; +import { AssistantIcon } from "./AssistantIcon"; + +interface AssistantOptionProps { + profile: ProfileDescription; + selected: boolean; + onClick: () => void; +} + +export function AssistantOption({ + profile, + selected, + onClick, +}: AssistantOptionProps) { + const tinyFont = useFontSize(-4); + const navigate = useNavigate(); + const { setSelectedSection } = useLump(); + const dispatch = useAppDispatch(); + const ideMessenger = useContext(IdeMessengerContext); + + const hasFatalErrors = useMemo(() => { + return !!profile.errors?.find((error) => error.fatal); + }, [profile.errors]); + + function handleOptionClick() { + // optimistic update + dispatch(setSelectedProfile(profile.id)); + // notify core which will handle actual update + ideMessenger.post("didChangeSelectedProfile", { + id: profile.id, + }); + onClick(); + } + + function handleConfigure() { + ideMessenger.post("config/openProfile", { profileId: profile.id }); + onClick(); + } + + function handleClickError() { + if (profile.id === "local") { + navigate(ROUTES.HOME); + setSelectedSection("error"); + } else { + ideMessenger.post("config/openProfile", { profileId: profile.id }); + } + onClick(); + } + + return ( + +
+
+
+ +
+ + {profile.title} + +
+
+ {profile.errors && profile.errors?.length > 0 && ( + { + e.preventDefault(); + e.stopPropagation(); + handleClickError(); + }} + /> + )} + {isLocalProfile(profile) ? ( + { + e.stopPropagation(); + e.preventDefault(); + handleConfigure(); + }} + /> + ) : ( + { + e.stopPropagation(); + e.preventDefault(); + handleConfigure(); + }} + /> + )} +
+
+
+ ); +} diff --git a/gui/src/components/AssistantAndOrgListbox/AssistantOptions.tsx b/gui/src/components/AssistantAndOrgListbox/AssistantOptions.tsx new file mode 100644 index 000000000..304444b23 --- /dev/null +++ b/gui/src/components/AssistantAndOrgListbox/AssistantOptions.tsx @@ -0,0 +1,54 @@ +import { ArrowPathIcon } from "@heroicons/react/24/outline"; +import { useState } from "react"; +import { useAuth } from "../../context/Auth"; +import { cn } from "../../util/cn"; +import { AssistantOption } from "./AssistantOption"; + +interface AssistantOptionsProps { + selectedProfileId: string | undefined; + onClose: () => void; +} + +export function AssistantOptions({ + selectedProfileId, + onClose, +}: AssistantOptionsProps) { + const [loading, setLoading] = useState(false); + const { profiles, refreshProfiles } = useAuth(); + + return ( + <> + {/* Assistants Section Header */} +
+ +
{ + e.stopPropagation(); + setLoading(true); + await refreshProfiles(); + setLoading(false); + }} + > + +
+
+ +
+ {profiles?.map((profile, idx) => ( + + ))} +
+ + ); +} diff --git a/gui/src/components/AssistantAndOrgListbox/OrganizationInfo.tsx b/gui/src/components/AssistantAndOrgListbox/OrganizationInfo.tsx new file mode 100644 index 000000000..7965616ad --- /dev/null +++ b/gui/src/components/AssistantAndOrgListbox/OrganizationInfo.tsx @@ -0,0 +1,14 @@ +import { ScopeSelect } from "./ScopeSelect"; + +export function OrganizationInfo() { + return ( +
+
+ + +
+
+ ); +} diff --git a/gui/src/pages/config/ScopeSelect.tsx b/gui/src/components/AssistantAndOrgListbox/ScopeSelect.tsx similarity index 81% rename from gui/src/pages/config/ScopeSelect.tsx rename to gui/src/components/AssistantAndOrgListbox/ScopeSelect.tsx index 9e574f44a..6374394fd 100644 --- a/gui/src/pages/config/ScopeSelect.tsx +++ b/gui/src/components/AssistantAndOrgListbox/ScopeSelect.tsx @@ -4,12 +4,6 @@ import { } from "@heroicons/react/24/outline"; import { UserCircleIcon } from "@heroicons/react/24/solid"; import { useContext } from "react"; -import { - Listbox, - ListboxButton, - ListboxOption, - ListboxOptions, -} from "../../components/ui/Listbox"; import { useAuth } from "../../context/Auth"; import { IdeMessengerContext } from "../../context/IdeMessenger"; import { useAppDispatch, useAppSelector } from "../../redux/hooks"; @@ -17,6 +11,12 @@ import { selectCurrentOrg, setSelectedOrgId, } from "../../redux/slices/profilesSlice"; +import { + Listbox, + ListboxButton, + ListboxOption, + ListboxOptions, +} from "../ui/Listbox"; interface ScopeSelectProps { onSelect?: () => void; @@ -54,15 +54,19 @@ export function ScopeSelect({ onSelect }: ScopeSelectProps) {
{selectedDisplay?.iconUrl ? ( - + ) : ( - + )} {selectedDisplay?.name || "Select Organization"}
-
@@ -70,9 +74,13 @@ export function ScopeSelect({ onSelect }: ScopeSelectProps) {
{org.iconUrl ? ( - + ) : ( - + )} {org.name}
diff --git a/gui/src/components/AssistantAndOrgListbox/SelectedAssistantButton.tsx b/gui/src/components/AssistantAndOrgListbox/SelectedAssistantButton.tsx new file mode 100644 index 000000000..131f0d1e1 --- /dev/null +++ b/gui/src/components/AssistantAndOrgListbox/SelectedAssistantButton.tsx @@ -0,0 +1,38 @@ +import { ChevronDownIcon } from "@heroicons/react/24/outline"; +import type { ProfileDescription } from "core/config/ConfigHandler"; +import { fontSize } from "../../util"; +import { useLump } from "../mainInput/Lump/LumpContext"; +import { ListboxButton } from "../ui"; +import { AssistantIcon } from "./AssistantIcon"; + +interface SelectedAssistantButtonProps { + selectedProfile: ProfileDescription; +} + +export function SelectedAssistantButton({ + selectedProfile, +}: SelectedAssistantButtonProps) { + const { isToolbarExpanded } = useLump(); + return ( + +
+
+ +
+ + {selectedProfile.title} + +
+
+ ); +} diff --git a/gui/src/components/AssistantAndOrgListbox/index.tsx b/gui/src/components/AssistantAndOrgListbox/index.tsx new file mode 100644 index 000000000..f4e92c144 --- /dev/null +++ b/gui/src/components/AssistantAndOrgListbox/index.tsx @@ -0,0 +1,173 @@ +import { PlusIcon } from "@heroicons/react/24/outline"; +import { useContext, useEffect, useRef } from "react"; +import { useAuth } from "../../context/Auth"; +import { IdeMessengerContext } from "../../context/IdeMessenger"; +import { useAppDispatch, useAppSelector } from "../../redux/hooks"; +import { + selectCurrentOrg, + setSelectedProfile, +} from "../../redux/slices/profilesSlice"; +import { getMetaKeyLabel, isMetaEquivalentKeyPressed } from "../../util"; +import { useLump } from "../mainInput/Lump/LumpContext"; +import { + Listbox, + ListboxOption, + ListboxOptions, + Transition, + useFontSize, +} from "../ui"; +import { AssistantOptions } from "./AssistantOptions"; +import { OrganizationInfo } from "./OrganizationInfo"; +import { SelectedAssistantButton } from "./SelectedAssistantButton"; + +export function AssistantAndOrgListbox() { + const dispatch = useAppDispatch(); + const listboxRef = useRef(null); + const currentOrg = useAppSelector(selectCurrentOrg); + const ideMessenger = useContext(IdeMessengerContext); + const { isToolbarExpanded } = useLump(); + const { profiles, logout, selectedProfile, session, login } = useAuth(); + const smallFont = useFontSize(-3); + const tinyFont = useFontSize(-4); + + function close() { + // Close the listbox by clicking outside or programmatically + const event = new KeyboardEvent("keydown", { key: "Escape" }); + document.dispatchEvent(event); + } + + function onNewAssistant() { + void ideMessenger.request("controlPlane/openUrl", { + path: "/new", + orgSlug: currentOrg?.slug, + }); + close(); + } + + function onLogout() { + logout(); + close(); + } + + useEffect(() => { + let lastToggleTime = 0; + const DEBOUNCE_MS = 800; + + const handleKeyDown = (event: KeyboardEvent) => { + if ( + event.key === "'" && + isMetaEquivalentKeyPressed(event as any) && + event.shiftKey + ) { + const now = Date.now(); + + if (now - lastToggleTime >= DEBOUNCE_MS) { + lastToggleTime = now; + + const profileIds = profiles?.map((profile) => profile.id) ?? []; + // In case of 1 or 0 profiles just does nothing + if (profileIds.length < 2) { + return; + } + let nextId = profileIds[0]; + if (selectedProfile) { + const curIndex = profileIds.indexOf(selectedProfile.id); + const nextIndex = (curIndex + 1) % profileIds.length; + nextId = profileIds[nextIndex]; + } + // Optimistic update + dispatch(setSelectedProfile(nextId)); + ideMessenger.post("didChangeSelectedProfile", { + id: nextId, + }); + } + } + }; + + window.addEventListener("keydown", handleKeyDown); + return () => { + window.removeEventListener("keydown", handleKeyDown); + }; + }, [currentOrg, selectedProfile]); + + if (!selectedProfile) { + return ( +
{ + void ideMessenger.request("controlPlane/openUrl", { + path: "/new?type=assistant", + orgSlug: currentOrg?.slug, + }); + }} + className="text-description flex cursor-pointer select-none items-center gap-1" + style={{ fontSize: smallFont }} + > + + + Create your first assistant + +
+ ); + } + + return ( + +
+ + + + + + + {/* Bottom Actions */} +
+ login(false)} + > +
+ New Assistant +
+
+ + {session && ( + +
+ Log out +
+
+ )} + +
+ + {getMetaKeyLabel()} ⇧ ' to toggle assistant + +
+
+
+
+
+
+ ); +} diff --git a/gui/src/components/modelSelection/platform/shared.tsx b/gui/src/components/AssistantAndOrgListbox/shared.tsx similarity index 98% rename from gui/src/components/modelSelection/platform/shared.tsx rename to gui/src/components/AssistantAndOrgListbox/shared.tsx index b617fd34e..1f57a4309 100644 --- a/gui/src/components/modelSelection/platform/shared.tsx +++ b/gui/src/components/AssistantAndOrgListbox/shared.tsx @@ -10,8 +10,8 @@ import { defaultBorderRadius, lightGray, vscCommandCenterInactiveBorder, -} from "../.."; -import { ToolTip } from "../../gui/Tooltip"; +} from ".."; +import { ToolTip } from "../gui/Tooltip"; export const OptionDiv = styled.div<{ isDisabled?: boolean; diff --git a/gui/src/components/modelSelection/platform/FreeTrialButton.tsx b/gui/src/components/FreeTrialButton.tsx similarity index 93% rename from gui/src/components/modelSelection/platform/FreeTrialButton.tsx rename to gui/src/components/FreeTrialButton.tsx index c34d0abce..1665b318d 100644 --- a/gui/src/components/modelSelection/platform/FreeTrialButton.tsx +++ b/gui/src/components/FreeTrialButton.tsx @@ -1,11 +1,10 @@ import { ChevronDownIcon } from "@heroicons/react/24/outline"; import { FreeTrialStatus } from "core/control-plane/client"; import { useContext } from "react"; -import { Button, SecondaryButton, vscButtonBackground } from "../.."; -import { IdeMessengerContext } from "../../../context/IdeMessenger"; -import { fontSize } from "../../../util"; -import { Listbox, ListboxButton, ListboxOptions, Transition } from "../../ui"; -import { useFontSize } from "../../ui/font"; +import { Button, SecondaryButton, vscButtonBackground } from "."; +import { IdeMessengerContext } from "../context/IdeMessenger"; +import { fontSize } from "../util"; +import { Listbox, ListboxButton, ListboxOptions, Transition } from "./ui"; interface ProgressBarProps { label: string; @@ -78,8 +77,6 @@ interface FreeTrialButtonProps { export default function FreeTrialButton({ freeTrialStatus, }: FreeTrialButtonProps) { - const smallFont = useFontSize(-3); - const tinyFont = useFontSize(-4); const ideMessenger = useContext(IdeMessengerContext); return ( diff --git a/gui/src/components/mainInput/Lump/LumpToolbar/BlockSettingsTopToolbar.tsx b/gui/src/components/mainInput/Lump/LumpToolbar/BlockSettingsTopToolbar.tsx index 4be749689..f902c757a 100644 --- a/gui/src/components/mainInput/Lump/LumpToolbar/BlockSettingsTopToolbar.tsx +++ b/gui/src/components/mainInput/Lump/LumpToolbar/BlockSettingsTopToolbar.tsx @@ -13,9 +13,8 @@ import { ReactNode, useContext, useEffect, useState } from "react"; import { vscBadgeForeground } from "../../.."; import { IdeMessengerContext } from "../../../../context/IdeMessenger"; import { useAppSelector } from "../../../../redux/hooks"; +import FreeTrialButton from "../../../FreeTrialButton"; import { ToolTip } from "../../../gui/Tooltip"; -import AssistantSelect from "../../../modelSelection/platform/AssistantSelect"; -import FreeTrialButton from "../../../modelSelection/platform/FreeTrialButton"; import { useFontSize } from "../../../ui/font"; import HoverItem from "../../InputToolbar/HoverItem"; import { useLump } from "../LumpContext"; @@ -25,6 +24,7 @@ import { ToolsSectionTooltip } from "../sections/tool-policies/ToolPoliciesSecti import { usesFreeTrialApiKey } from "core/config/usesFreeTrialApiKey"; import type { FreeTrialStatus } from "core/control-plane/client"; +import { AssistantAndOrgListbox } from "../../../AssistantAndOrgListbox"; interface BlockSettingsToolbarIcon { title: string; @@ -236,7 +236,7 @@ export function BlockSettingsTopToolbar() { {isUsingFreeTrial ? ( ) : ( - + )} {isUsingFreeTrial ? "View free trial usage" : "Select Assistant"} diff --git a/gui/src/components/modelSelection/platform/AssistantSelect.tsx b/gui/src/components/modelSelection/platform/AssistantSelect.tsx deleted file mode 100644 index d360abce4..000000000 --- a/gui/src/components/modelSelection/platform/AssistantSelect.tsx +++ /dev/null @@ -1,388 +0,0 @@ -import { - ArrowPathIcon, - ArrowTopRightOnSquareIcon, - BuildingOfficeIcon, - ChevronDownIcon, - Cog6ToothIcon, - ExclamationTriangleIcon, - PlusIcon, -} from "@heroicons/react/24/outline"; -import type { ProfileDescription } from "core/config/ConfigHandler"; -import { useContext, useEffect, useMemo, useRef, useState } from "react"; -import { useNavigate } from "react-router-dom"; -import { useAuth } from "../../../context/Auth"; -import { IdeMessengerContext } from "../../../context/IdeMessenger"; -import { useAppDispatch, useAppSelector } from "../../../redux/hooks"; -import { - selectCurrentOrg, - setSelectedOrgId, - setSelectedProfile, -} from "../../../redux/slices/profilesSlice"; -import { - fontSize, - getMetaKeyLabel, - isLocalProfile, - isMetaEquivalentKeyPressed, -} from "../../../util"; -import { cn } from "../../../util/cn"; -import { ROUTES } from "../../../util/navigation"; -import { useLump } from "../../mainInput/Lump/LumpContext"; -import { - Listbox, - ListboxButton, - ListboxOption, - ListboxOptions, - Transition, - useFontSize, -} from "../../ui"; -import AssistantIcon from "./AssistantIcon"; -interface AssistantSelectOptionProps { - profile: ProfileDescription; - selected: boolean; - onClick: () => void; -} - -const AssistantSelectOption = ({ - profile, - selected, - onClick, -}: AssistantSelectOptionProps) => { - const tinyFont = useFontSize(-4); - - const navigate = useNavigate(); - const { setSelectedSection } = useLump(); - - const hasFatalErrors = useMemo(() => { - return !!profile.errors?.find((error) => error.fatal); - }, [profile.errors]); - - const dispatch = useAppDispatch(); - const ideMessenger = useContext(IdeMessengerContext); - - function handleOptionClick() { - // optimistic update - dispatch(setSelectedProfile(profile.id)); - // notify core which will handle actual update - ideMessenger.post("didChangeSelectedProfile", { - id: profile.id, - }); - onClick(); - } - - function handleConfigure() { - ideMessenger.post("config/openProfile", { profileId: profile.id }); - onClick(); - } - - function handleClickError() { - if (profile.id === "local") { - navigate(ROUTES.HOME); - setSelectedSection("error"); - } else { - ideMessenger.post("config/openProfile", { profileId: profile.id }); - } - onClick(); - } - - return ( - -
-
-
-
- -
- - {profile.title} - -
-
- {profile.errors && profile.errors?.length > 0 && ( - { - e.preventDefault(); - e.stopPropagation(); - handleClickError(); - }} - /> - )} - {isLocalProfile(profile) ? ( - { - e.stopPropagation(); - e.preventDefault(); - handleConfigure(); - }} - /> - ) : ( - { - e.stopPropagation(); - e.preventDefault(); - handleConfigure(); - }} - /> - )} -
-
-
-
- ); -}; - -export default function AssistantSelect() { - const dispatch = useAppDispatch(); - const buttonRef = useRef(null); - const currentOrg = useAppSelector(selectCurrentOrg); - const orgs = useAppSelector((store) => store.profiles.organizations); - const ideMessenger = useContext(IdeMessengerContext); - const { isToolbarExpanded } = useLump(); - const [loading, setLoading] = useState(false); - const { profiles, session, login, selectedProfile, refreshProfiles } = - useAuth(); - - function close() { - if (buttonRef.current) { - buttonRef.current.click(); - } - } - function onNewAssistant() { - ideMessenger.post("controlPlane/openUrl", { - path: "new", - orgSlug: currentOrg?.slug, - }); - close(); - } - - useEffect(() => { - let lastToggleTime = 0; - const DEBOUNCE_MS = 800; - - const handleKeyDown = (event: KeyboardEvent) => { - if ( - event.key === "'" && - isMetaEquivalentKeyPressed(event as any) && - event.shiftKey - ) { - const now = Date.now(); - - if (now - lastToggleTime >= DEBOUNCE_MS) { - lastToggleTime = now; - - const profileIds = profiles?.map((profile) => profile.id) ?? []; - // In case of 1 or 0 profiles just does nothing - if (profileIds.length < 2) { - return; - } - let nextId = profileIds[0]; - if (selectedProfile) { - const curIndex = profileIds.indexOf(selectedProfile.id); - const nextIndex = (curIndex + 1) % profileIds.length; - nextId = profileIds[nextIndex]; - } - // Optimistic update - dispatch(setSelectedProfile(nextId)); - ideMessenger.post("didChangeSelectedProfile", { - id: nextId, - }); - } - } - }; - - window.addEventListener("keydown", handleKeyDown); - return () => { - window.removeEventListener("keydown", handleKeyDown); - }; - }, [currentOrg, selectedProfile]); - - const cycleOrgs = () => { - if (!session) { - void login(false); - return; - } - - const orgIds = orgs.map((org) => org.id); - if (orgIds.length < 2) { - return; - } - let nextId = orgIds[0]; - if (currentOrg) { - const curIndex = orgIds.indexOf(currentOrg.id); - const nextIndex = (curIndex + 1) % orgIds.length; - nextId = orgIds[nextIndex]; - } - // Optimistic update - dispatch(setSelectedOrgId(nextId)); - ideMessenger.post("didChangeSelectedOrg", { - id: nextId, - }); - }; - - const tinyFont = useFontSize(-4); - const smallFont = useFontSize(-3); - - if (!selectedProfile) { - return ( -
{ - void ideMessenger.request("controlPlane/openUrl", { - path: "/new?type=assistant", - orgSlug: currentOrg?.slug, - }); - }} - className="text-description flex cursor-pointer select-none items-center gap-1" - style={{ fontSize: smallFont }} - > - - - Create your first assistant - -
- ); - } - - return ( - -
- -
-
- -
- - {selectedProfile.title} - -
-
- - - -
- Assistants -
{ - e.stopPropagation(); - setLoading(true); - await refreshProfiles(); - setLoading(false); - buttonRef.current?.click(); - }} - > - -
-
- -
- {profiles?.map((profile, idx) => { - return ( - - ); - })} -
- -
-
- login(false)} - > -
- - New Assistant -
-
-
- -
- - {getMetaKeyLabel()} ⇧ ' to toggle - -
- {currentOrg?.iconUrl ? ( - - ) : ( - - )} - - {currentOrg?.name || "Personal"} - -
-
-
-
-
-
-
- ); -} diff --git a/gui/src/pages/config/AccountButton.tsx b/gui/src/pages/config/AccountButton.tsx index 888488208..f108c8e65 100644 --- a/gui/src/pages/config/AccountButton.tsx +++ b/gui/src/pages/config/AccountButton.tsx @@ -1,5 +1,6 @@ import { UserCircleIcon } from "@heroicons/react/24/solid"; import { isOnPremSession } from "core/control-plane/AuthTypes"; +import { ScopeSelect } from "../../components/AssistantAndOrgListbox/ScopeSelect"; import { Button, Popover, @@ -10,7 +11,6 @@ import { import { useAuth } from "../../context/Auth"; import { useAppSelector } from "../../redux/hooks"; import { selectCurrentOrg } from "../../redux/slices/profilesSlice"; -import { ScopeSelect } from "./ScopeSelect"; export function AccountButton() { const { session, logout, login, organizations } = useAuth(); diff --git a/packages/config-yaml/package-lock.json b/packages/config-yaml/package-lock.json index 492e0eaa5..6d02d51d8 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", From b96068408e65b2c5687b7736eba831febcc02fc8 Mon Sep 17 00:00:00 2001 From: Patrick Erichsen Date: Sun, 22 Jun 2025 11:35:16 -0700 Subject: [PATCH 089/166] remove accountbutton --- .../AssistantAndOrgListbox/AccountOption.tsx | 42 ++++++++++ .../OrganizationInfo.tsx | 14 +++- .../AssistantAndOrgListbox/index.tsx | 24 +----- gui/src/pages/config/AccountButton.tsx | 82 ------------------- gui/src/pages/config/index.tsx | 2 - gui/src/pages/history/index.tsx | 8 +- 6 files changed, 57 insertions(+), 115 deletions(-) create mode 100644 gui/src/components/AssistantAndOrgListbox/AccountOption.tsx delete mode 100644 gui/src/pages/config/AccountButton.tsx diff --git a/gui/src/components/AssistantAndOrgListbox/AccountOption.tsx b/gui/src/components/AssistantAndOrgListbox/AccountOption.tsx new file mode 100644 index 000000000..8f4f8e11e --- /dev/null +++ b/gui/src/components/AssistantAndOrgListbox/AccountOption.tsx @@ -0,0 +1,42 @@ +import { isOnPremSession } from "core/control-plane/AuthTypes"; +import { useAuth } from "../../context/Auth"; +import { ListboxOption, useFontSize } from "../ui"; + +interface AccountOptionProps { + onClose: () => void; +} + +export function AccountOption({ onClose }: AccountOptionProps) { + const { session, logout, login } = useAuth(); + const tinyFont = useFontSize(-4); + + // No account option for on-prem deployments + if (session && isOnPremSession(session)) { + return null; + } + + async function handleClick() { + if (session) { + logout(); + } else { + await login(false); + } + onClose(); + } + + return ( + +
+ {session ? "Log out" : "Sign in"} +
+
+ ); +} diff --git a/gui/src/components/AssistantAndOrgListbox/OrganizationInfo.tsx b/gui/src/components/AssistantAndOrgListbox/OrganizationInfo.tsx index 7965616ad..a4439afab 100644 --- a/gui/src/components/AssistantAndOrgListbox/OrganizationInfo.tsx +++ b/gui/src/components/AssistantAndOrgListbox/OrganizationInfo.tsx @@ -1,12 +1,20 @@ +import { useAuth } from "../../context/Auth"; import { ScopeSelect } from "./ScopeSelect"; export function OrganizationInfo() { + const { session } = useAuth(); + return (
- +
+ + {!session && ( + (Signed out) + )} +
diff --git a/gui/src/components/AssistantAndOrgListbox/index.tsx b/gui/src/components/AssistantAndOrgListbox/index.tsx index f4e92c144..114b70ef2 100644 --- a/gui/src/components/AssistantAndOrgListbox/index.tsx +++ b/gui/src/components/AssistantAndOrgListbox/index.tsx @@ -16,6 +16,7 @@ import { Transition, useFontSize, } from "../ui"; +import { AccountOption } from "./AccountOption"; import { AssistantOptions } from "./AssistantOptions"; import { OrganizationInfo } from "./OrganizationInfo"; import { SelectedAssistantButton } from "./SelectedAssistantButton"; @@ -26,7 +27,7 @@ export function AssistantAndOrgListbox() { const currentOrg = useAppSelector(selectCurrentOrg); const ideMessenger = useContext(IdeMessengerContext); const { isToolbarExpanded } = useLump(); - const { profiles, logout, selectedProfile, session, login } = useAuth(); + const { profiles, selectedProfile, session, login } = useAuth(); const smallFont = useFontSize(-3); const tinyFont = useFontSize(-4); @@ -44,11 +45,6 @@ export function AssistantAndOrgListbox() { close(); } - function onLogout() { - logout(); - close(); - } - useEffect(() => { let lastToggleTime = 0; const DEBOUNCE_MS = 800; @@ -140,21 +136,7 @@ export function AssistantAndOrgListbox() {
- {session && ( - -
- Log out -
-
- )} +
login(false)} - > - Sign in - - ); - } - - // No login button for on-prem deployments - if (isOnPremSession(session)) { - return null; - } - - return ( - - {({ close }) => ( - <> - -
- - {selectedOrg === null ? "Personal" : selectedOrg.name} - - -
-
- - - -
-
- {session.account.label} - - {session.account.id} - -
- - {organizations.length > 0 && ( -
- - -
- )} - - -
-
-
- - )} -
- ); -} diff --git a/gui/src/pages/config/index.tsx b/gui/src/pages/config/index.tsx index ea5ccef44..d9939a2c8 100644 --- a/gui/src/pages/config/index.tsx +++ b/gui/src/pages/config/index.tsx @@ -9,7 +9,6 @@ import { useNavigate } from "react-router-dom"; import { PageHeader } from "../../components/PageHeader"; import { useNavigationListener } from "../../hooks/useNavigationListener"; import { fontSize } from "../../util"; -import { AccountButton } from "./AccountButton"; import { HelpCenterSection } from "./HelpCenterSection"; import { IndexingSettingsSection } from "./IndexingSettingsSection"; import KeyboardShortcuts from "./KeyboardShortcuts"; @@ -63,7 +62,6 @@ function ConfigPage() { showBorder onTitleClick={() => navigate("/")} title="Chat" - rightContent={} /> {/* Tab Headers */} diff --git a/gui/src/pages/history/index.tsx b/gui/src/pages/history/index.tsx index a8be3d92f..86950ff24 100644 --- a/gui/src/pages/history/index.tsx +++ b/gui/src/pages/history/index.tsx @@ -2,7 +2,6 @@ import { useNavigate } from "react-router-dom"; import { History } from "../../components/History"; import { PageHeader } from "../../components/PageHeader"; import { getFontSize } from "../../util"; -import { AccountButton } from "../config/AccountButton"; export default function HistoryPage() { const navigate = useNavigate(); @@ -12,12 +11,7 @@ export default function HistoryPage() { className="flex flex-1 flex-col overflow-auto" style={{ fontSize: getFontSize() }} > - navigate("/")} - title="Chat" - rightContent={} - /> + navigate("/")} title="Chat" />
); From 7e80ca94ce128dcb2e63c6b1950b02c03401ae17 Mon Sep 17 00:00:00 2001 From: Patrick Erichsen Date: Sun, 22 Jun 2025 11:41:23 -0700 Subject: [PATCH 090/166] remove auth dialog --- .../AssistantAndOrgListbox/index.tsx | 2 +- gui/src/context/Auth.tsx | 31 ++++--------------- 2 files changed, 7 insertions(+), 26 deletions(-) diff --git a/gui/src/components/AssistantAndOrgListbox/index.tsx b/gui/src/components/AssistantAndOrgListbox/index.tsx index 114b70ef2..ee175a725 100644 --- a/gui/src/components/AssistantAndOrgListbox/index.tsx +++ b/gui/src/components/AssistantAndOrgListbox/index.tsx @@ -113,7 +113,7 @@ export function AssistantAndOrgListbox() {
- + = ({ const selectedProfile = useAppSelector(selectSelectedProfile); const login: AuthContextType["login"] = (useOnboarding: boolean) => { - return new Promise((resolve) => { - ideMessenger + return new Promise(async (resolve) => { + await ideMessenger .request("getControlPlaneSessionInfo", { silent: false, useOnboarding, @@ -73,27 +71,10 @@ export const AuthProvider: React.FC<{ children: React.ReactNode }> = ({ }; const logout = () => { - dispatch(setShowDialog(true)); - dispatch( - setDialogMessage( - { - ideMessenger.post("logoutOfControlPlane", undefined); - dispatch( - setOrganizations(orgs.filter((org) => org.id === "personal")), - ); - dispatch(setSelectedOrgId("personal")); - setSession(undefined); - }} - onCancel={() => { - dispatch(setDialogMessage(undefined)); - dispatch(setShowDialog(false)); - }} - />, - ), - ); + ideMessenger.post("logoutOfControlPlane", undefined); + dispatch(setOrganizations(orgs.filter((org) => org.id === "personal"))); + dispatch(setSelectedOrgId("personal")); + setSession(undefined); }; useEffect(() => { From 94113e0ee18785c55414ec6744b8147ca0d88f60 Mon Sep 17 00:00:00 2001 From: Patrick Erichsen Date: Sun, 22 Jun 2025 12:06:51 -0700 Subject: [PATCH 091/166] fix: use last 2 parts of file uri for rule names --- .../src/markdown/markdownToRule.test.ts | 123 ++++++++++++++++-- .../src/markdown/markdownToRule.ts | 24 +++- 2 files changed, 137 insertions(+), 10 deletions(-) diff --git a/packages/config-yaml/src/markdown/markdownToRule.test.ts b/packages/config-yaml/src/markdown/markdownToRule.test.ts index 71c22343b..1b930220a 100644 --- a/packages/config-yaml/src/markdown/markdownToRule.test.ts +++ b/packages/config-yaml/src/markdown/markdownToRule.test.ts @@ -1,5 +1,5 @@ import { PackageIdentifier } from "../browser.js"; -import { markdownToRule } from "./markdownToRule.js"; +import { getRuleName, markdownToRule } from "./markdownToRule.js"; describe("markdownToRule", () => { // Use a mock PackageIdentifier for testing @@ -36,7 +36,7 @@ This is a test rule.`; const result = markdownToRule(content, mockId); expect(result.globs).toBe("**/test/**/*.kt"); expect(result.rule).toBe("# Test Rule\n\nThis is a test rule."); - expect(result.name).toBe("/path/to/file"); // Should use packageIdentifierToDisplayName result + expect(result.name).toBe("to/file"); // Should use last two path segments }); it("should handle missing frontmatter", () => { @@ -47,7 +47,7 @@ This is a test rule without frontmatter.`; const result = markdownToRule(content, mockId); expect(result.globs).toBeUndefined(); expect(result.rule).toBe(content); - expect(result.name).toBe("/path/to/file"); // Should use packageIdentifierToDisplayName result + expect(result.name).toBe("to/file"); // Should use last two path segments }); it("should handle empty frontmatter", () => { @@ -63,7 +63,7 @@ This is a test rule with empty frontmatter.`; expect(result.rule).toBe( "# Test Rule\n\nThis is a test rule with empty frontmatter.", ); - expect(result.name).toBe("/path/to/file"); // Should use packageIdentifierToDisplayName result + expect(result.name).toBe("to/file"); // Should use last two path segments }); it("should handle frontmatter with whitespace", () => { @@ -78,7 +78,7 @@ This is a test rule.`; const result = markdownToRule(content, mockId); expect(result.globs).toBe("**/test/**/*.kt"); expect(result.rule).toBe("# Test Rule\n\nThis is a test rule."); - expect(result.name).toBe("/path/to/file"); // Should use packageIdentifierToDisplayName result + expect(result.name).toBe("to/file"); // Should use last two path segments }); it("should handle Windows line endings (CRLF)", () => { @@ -95,7 +95,7 @@ This is a test rule.`; expect(result.globs).toBe("**/test/**/*.kt"); // The result should be normalized to \n expect(result.rule).toBe("# Test Rule\n\nThis is a test rule."); - expect(result.name).toBe("/path/to/file"); // Should use packageIdentifierToDisplayName result + expect(result.name).toBe("to/file"); // Should use last two path segments }); it("should handle malformed frontmatter", () => { @@ -112,7 +112,7 @@ This is a test rule.`; const result = markdownToRule(content, mockId); expect(result.globs).toBeUndefined(); expect(result.rule).toBe(content); - expect(result.name).toBe("/path/to/file"); // Should use packageIdentifierToDisplayName result + expect(result.name).toBe("to/file"); // Should use last two path segments }); it("should use packageIdentifierToDisplayName if no heading or frontmatter name", () => { @@ -125,7 +125,7 @@ globs: "**/test/**/*.kt" This is a test rule.`; const result = markdownToRule(content, mockId); - expect(result.name).toBe("/path/to/file"); // Should use packageIdentifierToDisplayName result + expect(result.name).toBe("to/file"); // Should use last two path segments }); it("should use packageIdentifierToDisplayName if no heading or frontmatter name (no heading)", () => { @@ -136,7 +136,7 @@ globs: "**/test/**/*.kt" This is a test rule without a heading.`; const result = markdownToRule(content, mockId); - expect(result.name).toBe("/path/to/file"); // Should use packageIdentifierToDisplayName result + expect(result.name).toBe("to/file"); // Should use last two path segments }); it("should include description from frontmatter", () => { @@ -171,3 +171,108 @@ This is a rule with alwaysApply explicitly set to false.`; expect(result.alwaysApply).toBe(false); }); }); + +describe("getRuleName", () => { + it("should return frontmatter name when provided", () => { + const frontmatter = { name: "Custom Rule Name" }; + const id: PackageIdentifier = { + uriType: "file", + filePath: "/path/to/my-rule.md", + }; + + const result = getRuleName(frontmatter, id); + expect(result).toBe("Custom Rule Name"); + }); + + it("should return last two path segments for file identifier when no name", () => { + const frontmatter = {}; + const id: PackageIdentifier = { + uriType: "file", + filePath: "/long/path/to/rules/my-rule.md", + }; + + const result = getRuleName(frontmatter, id); + expect(result).toBe("rules/my-rule.md"); + }); + + it("should handle file paths with backslashes", () => { + const frontmatter = {}; + const id: PackageIdentifier = { + uriType: "file", + filePath: "C:\\long\\path\\to\\rules\\my-rule.md", + }; + + const result = getRuleName(frontmatter, id); + expect(result).toBe("rules/my-rule.md"); + }); + + it("should handle mixed forward and back slashes", () => { + const frontmatter = {}; + const id: PackageIdentifier = { + uriType: "file", + filePath: "/path/to\\rules/my-rule.md", + }; + + const result = getRuleName(frontmatter, id); + expect(result).toBe("rules/my-rule.md"); + }); + + it("should handle single segment path", () => { + const frontmatter = {}; + const id: PackageIdentifier = { + uriType: "file", + filePath: "my-rule.md", + }; + + const result = getRuleName(frontmatter, id); + expect(result).toBe("my-rule.md"); + }); + + it("should handle two segment path", () => { + const frontmatter = {}; + const id: PackageIdentifier = { + uriType: "file", + filePath: "rules/my-rule.md", + }; + + const result = getRuleName(frontmatter, id); + expect(result).toBe("rules/my-rule.md"); + }); + + it("should return display name for non-file identifiers", () => { + const frontmatter = {}; + const id: PackageIdentifier = { + uriType: "slug", + fullSlug: { + ownerSlug: "test-owner", + packageSlug: "my-rule-package", + versionSlug: "v1.0.0", + }, + }; + + const result = getRuleName(frontmatter, id); + expect(result).toBe("my-rule-package"); // packageIdentifierToDisplayName returns just the packageSlug + }); + + it("should prioritize frontmatter name over file path", () => { + const frontmatter = { name: "Override Name" }; + const id: PackageIdentifier = { + uriType: "file", + filePath: "/very/long/path/to/rules/original-name.md", + }; + + const result = getRuleName(frontmatter, id); + expect(result).toBe("Override Name"); + }); + + it("should handle empty string name in frontmatter by falling back to path", () => { + const frontmatter = { name: "" }; + const id: PackageIdentifier = { + uriType: "file", + filePath: "/path/to/rules/my-rule.md", + }; + + const result = getRuleName(frontmatter, id); + expect(result).toBe("rules/my-rule.md"); // Empty string is falsy, so falls back to path logic + }); +}); diff --git a/packages/config-yaml/src/markdown/markdownToRule.ts b/packages/config-yaml/src/markdown/markdownToRule.ts index a48f8176a..6c52cd82f 100644 --- a/packages/config-yaml/src/markdown/markdownToRule.ts +++ b/packages/config-yaml/src/markdown/markdownToRule.ts @@ -46,6 +46,28 @@ export function parseMarkdownRule(content: string): { return { frontmatter: {}, markdown: normalizedContent }; } +export function getRuleName( + frontmatter: RuleFrontmatter, + id: PackageIdentifier, +): string { + if (frontmatter.name) { + return frontmatter.name; + } + + const displayName = packageIdentifierToDisplayName(id); + + // If it's a file identifier, extract the last two parts of the file path + if (id.uriType === "file") { + // Handle both forward slashes and backslashes, get the last two segments + const segments = displayName.split(/[/\\]/); + const lastTwoParts = segments.slice(-2); + return lastTwoParts.join("/"); + } + + // Otherwise return the display name as-is (for slug identifiers) + return displayName; +} + export function markdownToRule( rule: string, id: PackageIdentifier, @@ -53,7 +75,7 @@ export function markdownToRule( const { frontmatter, markdown } = parseMarkdownRule(rule); return { - name: frontmatter.name ?? packageIdentifierToDisplayName(id), + name: getRuleName(frontmatter, id), rule: markdown, globs: frontmatter.globs, description: frontmatter.description, From 141e7dc30b9442d4eeaf9913dab2e337a1b06c9d Mon Sep 17 00:00:00 2001 From: Patrick Erichsen Date: Sun, 22 Jun 2025 12:21:59 -0700 Subject: [PATCH 092/166] Update ScopeSelect.tsx --- .../AssistantAndOrgListbox/ScopeSelect.tsx | 37 ++++++++----------- 1 file changed, 15 insertions(+), 22 deletions(-) diff --git a/gui/src/components/AssistantAndOrgListbox/ScopeSelect.tsx b/gui/src/components/AssistantAndOrgListbox/ScopeSelect.tsx index 6374394fd..7cac430a8 100644 --- a/gui/src/components/AssistantAndOrgListbox/ScopeSelect.tsx +++ b/gui/src/components/AssistantAndOrgListbox/ScopeSelect.tsx @@ -21,6 +21,19 @@ import { interface ScopeSelectProps { onSelect?: () => void; } + +function getOrgIcon(org: { name: string; iconUrl?: string | null }) { + if (org.iconUrl) { + return ( + + ); + } + + const IconComponent = + org.name === "Personal" ? UserCircleIcon : BuildingOfficeIcon; + return ; +} + export function ScopeSelect({ onSelect }: ScopeSelectProps) { const { organizations } = useAuth(); const ideMessenger = useContext(IdeMessengerContext); @@ -39,10 +52,6 @@ export function ScopeSelect({ onSelect }: ScopeSelectProps) { onSelect?.(); }; - const CurScopeEntityFallBackIcon = selectedOrgId - ? BuildingOfficeIcon - : UserCircleIcon; - const selectedDisplay = currentOrg ?? { name: "Personal", iconUrl: null, @@ -53,15 +62,7 @@ export function ScopeSelect({ onSelect }: ScopeSelectProps) {
- {selectedDisplay?.iconUrl ? ( - - ) : ( - - )} + {getOrgIcon(selectedDisplay)} {selectedDisplay?.name || "Select Organization"} @@ -73,15 +74,7 @@ export function ScopeSelect({ onSelect }: ScopeSelectProps) { {organizations.map((org) => (
- {org.iconUrl ? ( - - ) : ( - - )} + {getOrgIcon(org)} {org.name}
From bf470aecda7121996b893de2a21f76b07ea084ba Mon Sep 17 00:00:00 2001 From: Patrick Erichsen Date: Sun, 22 Jun 2025 16:57:48 -0700 Subject: [PATCH 093/166] feat: new rules --- .../rules/github-pr-documentation-updater.md | 7 +++ .continue/rules/pure-function-unit-tests.md | 1 + .../vs-code-commands-helper-functions.md | 5 ++ extensions/intellij/rules.md | 56 +++++++++++++++++++ extensions/vscode/package-lock.json | 4 +- packages/config-yaml/package-lock.json | 4 +- 6 files changed, 73 insertions(+), 4 deletions(-) create mode 100644 .continue/rules/github-pr-documentation-updater.md create mode 100644 .continue/rules/pure-function-unit-tests.md create mode 100644 .continue/rules/vs-code-commands-helper-functions.md create mode 100644 extensions/intellij/rules.md diff --git a/.continue/rules/github-pr-documentation-updater.md b/.continue/rules/github-pr-documentation-updater.md new file mode 100644 index 000000000..3560ccdad --- /dev/null +++ b/.continue/rules/github-pr-documentation-updater.md @@ -0,0 +1,7 @@ +--- +name: Update docs from GitHub PR +description: Provide a PR link to update docs based on +alwaysApply: false +--- + +When provided with a GitHub PR URL, use the GitHub CLI (`gh pr view --json title,body,commits,files,additions,deletions,changedFiles`) to fetch comprehensive PR details including title, description, commits, changed files, and diff statistics. Analyze the PR content to identify what documentation in the `docs` folder needs to be updated, created, or modified. Update relevant documentation files to reflect the changes, new features, bug fixes, or improvements described in the PR. Ensure documentation changes are accurate, well-structured, and maintain consistency with existing docs formatting and style. diff --git a/.continue/rules/pure-function-unit-tests.md b/.continue/rules/pure-function-unit-tests.md new file mode 100644 index 000000000..68a1ff983 --- /dev/null +++ b/.continue/rules/pure-function-unit-tests.md @@ -0,0 +1 @@ +Always create comprehensive unit tests for new pure functions. Tests should cover normal cases, edge cases, and boundary conditions. diff --git a/.continue/rules/vs-code-commands-helper-functions.md b/.continue/rules/vs-code-commands-helper-functions.md new file mode 100644 index 000000000..bf2e0a8da --- /dev/null +++ b/.continue/rules/vs-code-commands-helper-functions.md @@ -0,0 +1,5 @@ +--- +globs: "extensions/vscode/src/commands.ts" +--- + +When adding new commands to the commands map, always create a separate helper function for the command logic instead of defining it inline. Follow the pattern of existing commands like `streamInlineEdit` - define the helper function below the commands map, then call it from within the command entry. diff --git a/extensions/intellij/rules.md b/extensions/intellij/rules.md new file mode 100644 index 000000000..1f95724c9 --- /dev/null +++ b/extensions/intellij/rules.md @@ -0,0 +1,56 @@ +# Continue JetBrains Extension + +## Project Purpose + +JetBrains/IntelliJ extension for Continue AI code assistant. Provides chat, autocomplete, inline edit, and agent features within JetBrains IDEs. + +## Architecture + +- **Language**: Kotlin (JDK 17), Gradle build +- **Communication**: stdin/stdout message passing with core binary from `../../binary` +- **UI**: Embeds React webview from `../../gui` +- **Platform**: IntelliJ Platform Plugin (IDEA, PyCharm, WebStorm, etc.) + +## Key Source Structure + +``` +src/main/kotlin/com/github/continuedev/continueintellijextension/ +├── continue/ # Core integration (CoreMessenger, IntelliJIde, IdeProtocolClient) +├── autocomplete/ # Code completion logic +├── editor/ # Diff handling, inline edits +├── toolWindow/ # Main UI panel +├── services/ # Settings, plugin lifecycle +├── actions/ # Keyboard shortcuts, menu actions +├── protocol/ # Message type definitions +└── constants/ # App constants, paths + +src/main/resources/ +├── META-INF/plugin.xml # Plugin configuration +└── webview/ # Embedded React UI assets +``` + +## Core Files + +- `IntelliJIde.kt`: Main IDE interface implementation +- `CoreMessenger.kt`: Binary communication handler +- `plugin.xml`: Plugin manifest and extension points +- `build.gradle.kts`: Build configuration +- `ContinuePluginService.kt`: Main service orchestrator + +## Message Protocol + +JSON messages between Extension ↔ Core ↔ GUI. Message types in `constants/MessageTypes.kt`. Extension relays messages between core binary and webview. + +## Testing + +- Unit tests: `src/test/kotlin/` +- E2E tests: UI automation with intellij-ui-test-robot +- Test command: `./gradlew test` +- Debug: `runIde` Gradle task + +## Key Integration Points + +- File operations via IntelliJ VFS +- Editor integration for diffs/autocomplete +- Git operations for repository context +- Settings via IntelliJ platform storage diff --git a/extensions/vscode/package-lock.json b/extensions/vscode/package-lock.json index 199c669c7..1d493deef 100644 --- a/extensions/vscode/package-lock.json +++ b/extensions/vscode/package-lock.json @@ -1,12 +1,12 @@ { "name": "continue", - "version": "1.1.48", + "version": "1.1.49", "lockfileVersion": 3, "requires": true, "packages": { "": { "name": "continue", - "version": "1.1.48", + "version": "1.1.49", "license": "Apache-2.0", "dependencies": { "@continuedev/config-types": "^1.0.14", diff --git a/packages/config-yaml/package-lock.json b/packages/config-yaml/package-lock.json index 492e0eaa5..6d02d51d8 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", From e0dda678d7f40efbdf3bdff05290bc6d81f660ec Mon Sep 17 00:00:00 2001 From: Nate Date: Sun, 22 Jun 2025 22:58:16 -0700 Subject: [PATCH 094/166] 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 095/166] 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 af24a851e36348bd91326635cbbb5f87bcdd5576 Mon Sep 17 00:00:00 2001 From: Nate Date: Sun, 22 Jun 2025 23:47:00 -0700 Subject: [PATCH 096/166] log whether tool calls fail or succeed --- gui/src/redux/thunks/callCurrentTool.ts | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/gui/src/redux/thunks/callCurrentTool.ts b/gui/src/redux/thunks/callCurrentTool.ts index af8b4d4d9..02137d822 100644 --- a/gui/src/redux/thunks/callCurrentTool.ts +++ b/gui/src/redux/thunks/callCurrentTool.ts @@ -1,6 +1,7 @@ import { createAsyncThunk, unwrapResult } from "@reduxjs/toolkit"; import { ContextItem } from "core"; import { CLIENT_TOOLS_IMPLS } from "core/tools/builtIn"; +import posthog from "posthog-js"; import { callClientTool } from "../../util/clientTools/callClientTool"; import { selectCurrentToolCall } from "../selectors/selectCurrentToolCall"; import { selectSelectedChatModel } from "../slices/configSlice"; @@ -45,6 +46,9 @@ export const callCurrentTool = createAsyncThunk( let errorMessage: string | undefined = undefined; let streamResponse: boolean; + // Check if telemetry is enabled + const allowAnonymousTelemetry = state.config.config.allowAnonymousTelemetry; + // IMPORTANT: // Errors that occur while calling tool call implementations // Are caught and passed in output as context items @@ -110,6 +114,17 @@ export const callCurrentTool = createAsyncThunk( ); } + // Because we don't have access to use hooks, we check `allowAnonymousTelemetry` + // directly rather than using `CustomPostHogProvider` + if (allowAnonymousTelemetry) { + // Capture telemetry for tool calls + posthog.capture("gui_tool_call_outcome", { + succeeded: errorMessage === undefined, + toolName: toolCallState.toolCall.function.name, + errorMessage: errorMessage, + }); + } + if (streamResponse) { if (errorMessage) { dispatch( From 084f6cc27eeb2f784b522da2e835a9835dc03564 Mon Sep 17 00:00:00 2001 From: uinstinct <61635505+uinstinct@users.noreply.github.com> Date: Mon, 23 Jun 2025 16:25:45 +0530 Subject: [PATCH 097/166] add enable reasoning button --- gui/src/components/mainInput/InputToolbar.tsx | 30 ++++++++++++++++++- gui/src/hooks/ParallelListeners.tsx | 10 ++++++- gui/src/redux/slices/sessionSlice.ts | 5 ++++ gui/src/redux/thunks/streamNormalInput.ts | 8 +++++ 4 files changed, 51 insertions(+), 2 deletions(-) diff --git a/gui/src/components/mainInput/InputToolbar.tsx b/gui/src/components/mainInput/InputToolbar.tsx index 23d242ae2..0dfbcd493 100644 --- a/gui/src/components/mainInput/InputToolbar.tsx +++ b/gui/src/components/mainInput/InputToolbar.tsx @@ -1,4 +1,8 @@ -import { AtSymbolIcon, PhotoIcon } from "@heroicons/react/24/outline"; +import { + AtSymbolIcon, + LightBulbIcon, + PhotoIcon, +} from "@heroicons/react/24/outline"; import { InputModifiers } from "core"; import { modelSupportsImages, modelSupportsTools } from "core/llm/autodetect"; import { useContext, useRef } from "react"; @@ -10,8 +14,10 @@ import { selectCurrentToolCallApplyState, } from "../../redux/selectors/selectCurrentToolCall"; import { selectSelectedChatModel } from "../../redux/slices/configSlice"; +import { setHasReasoningEnabled } from "../../redux/slices/sessionSlice"; import { exitEdit } from "../../redux/thunks/edit"; import { getAltKeyLabel, isMetaEquivalentKeyPressed } from "../../util"; +import { cn } from "../../util/cn"; import { ToolTip } from "../gui/Tooltip"; import ModelSelect from "../modelSelection/ModelSelect"; import { ModeSelect } from "../ModeSelect"; @@ -51,6 +57,9 @@ function InputToolbar(props: InputToolbarProps) { const currentToolCallApplyState = useAppSelector( selectCurrentToolCallApplyState, ); + const hasReasoningEnabled = useAppSelector( + (store) => store.session.hasReasoningEnabled, + ); const isEnterDisabled = props.disabled || @@ -143,6 +152,25 @@ function InputToolbar(props: InputToolbarProps) { )} + {defaultModel?.provider === "anthropic" && ( + + dispatch(setHasReasoningEnabled(!hasReasoningEnabled)) + } + > + + + + Use Model Reasoning + + + )}
diff --git a/gui/src/hooks/ParallelListeners.tsx b/gui/src/hooks/ParallelListeners.tsx index a283ed969..8d0fef86d 100644 --- a/gui/src/hooks/ParallelListeners.tsx +++ b/gui/src/hooks/ParallelListeners.tsx @@ -20,6 +20,7 @@ import { import { acceptToolCall, addContextItemsAtIndex, + setHasReasoningEnabled, updateApplyState, } from "../redux/slices/sessionSlice"; import { setTTSActive } from "../redux/slices/uiSlice"; @@ -86,6 +87,13 @@ function ParallelListeners() { setLocalStorage("fontSize", configResult.config.ui.fontSize); document.body.style.fontSize = `${configResult.config.ui.fontSize}px`; } + + if ( + configResult.config?.selectedModelByRole.chat?.completionOptions + ?.reasoning + ) { + dispatch(setHasReasoningEnabled(true)); + } }, [dispatch, hasDoneInitialConfigLoad], ); @@ -241,7 +249,7 @@ function ParallelListeners() { dispatch(updateEditStateApplyState(state)); if (state.status === "closed") { - dispatch(exitEdit({})); + void dispatch(exitEdit({})); } } else { // chat or agent diff --git a/gui/src/redux/slices/sessionSlice.ts b/gui/src/redux/slices/sessionSlice.ts index 37eba4b4f..6803947fb 100644 --- a/gui/src/redux/slices/sessionSlice.ts +++ b/gui/src/redux/slices/sessionSlice.ts @@ -51,6 +51,7 @@ type SessionState = { curIndex: number; }; newestToolbarPreviewForInput: Record; + hasReasoningEnabled?: boolean; }; const initialState: SessionState = { @@ -594,6 +595,9 @@ export const sessionSlice = createSlice({ setIsInEdit: (state, action: PayloadAction) => { state.isInEdit = action.payload; }, + setHasReasoningEnabled: (state, action: PayloadAction) => { + state.hasReasoningEnabled = action.payload; + }, setNewestToolbarPreviewForInput: ( state, { @@ -691,6 +695,7 @@ export const { deleteSessionMetadata, setNewestToolbarPreviewForInput, setIsInEdit, + setHasReasoningEnabled, } = sessionSlice.actions; export const { selectIsGatheringContext } = sessionSlice.selectors; diff --git a/gui/src/redux/thunks/streamNormalInput.ts b/gui/src/redux/thunks/streamNormalInput.ts index 441cf3c20..6d84f800e 100644 --- a/gui/src/redux/thunks/streamNormalInput.ts +++ b/gui/src/redux/thunks/streamNormalInput.ts @@ -45,6 +45,14 @@ export const streamNormalInput = createAsyncThunk< }; } + if (state.session.hasReasoningEnabled) { + completionOptions = { + ...completionOptions, + reasoning: true, + reasoningBudgetTokens: completionOptions.reasoningBudgetTokens ?? 2048, + }; + } + // Send request const gen = extra.ideMessenger.llmStreamChat( { From 2574a8b4b57d1287f0c75b6519606130b996d9f3 Mon Sep 17 00:00:00 2001 From: uinstinct <61635505+uinstinct@users.noreply.github.com> Date: Mon, 23 Jun 2025 18:41:59 +0530 Subject: [PATCH 098/166] rename to vitest --- core/commands/{util.test.ts => util.vitest.ts} | 0 core/control-plane/mdm/{mdm.test.ts => mdm.vitest.ts} | 0 core/data/{log.test.ts => log.vitest.ts} | 0 core/diff/{myers.test.ts => myers.vitest.ts} | 0 core/diff/{streamDiff.test.ts => streamDiff.vitest.ts} | 0 core/diff/{util.test.ts => util.vitest.ts} | 0 6 files changed, 0 insertions(+), 0 deletions(-) rename core/commands/{util.test.ts => util.vitest.ts} (100%) rename core/control-plane/mdm/{mdm.test.ts => mdm.vitest.ts} (100%) rename core/data/{log.test.ts => log.vitest.ts} (100%) rename core/diff/{myers.test.ts => myers.vitest.ts} (100%) rename core/diff/{streamDiff.test.ts => streamDiff.vitest.ts} (100%) rename core/diff/{util.test.ts => util.vitest.ts} (100%) diff --git a/core/commands/util.test.ts b/core/commands/util.vitest.ts similarity index 100% rename from core/commands/util.test.ts rename to core/commands/util.vitest.ts diff --git a/core/control-plane/mdm/mdm.test.ts b/core/control-plane/mdm/mdm.vitest.ts similarity index 100% rename from core/control-plane/mdm/mdm.test.ts rename to core/control-plane/mdm/mdm.vitest.ts diff --git a/core/data/log.test.ts b/core/data/log.vitest.ts similarity index 100% rename from core/data/log.test.ts rename to core/data/log.vitest.ts diff --git a/core/diff/myers.test.ts b/core/diff/myers.vitest.ts similarity index 100% rename from core/diff/myers.test.ts rename to core/diff/myers.vitest.ts diff --git a/core/diff/streamDiff.test.ts b/core/diff/streamDiff.vitest.ts similarity index 100% rename from core/diff/streamDiff.test.ts rename to core/diff/streamDiff.vitest.ts diff --git a/core/diff/util.test.ts b/core/diff/util.vitest.ts similarity index 100% rename from core/diff/util.test.ts rename to core/diff/util.vitest.ts From 7f541da7ecaec0dee26d51218ccb22fa534e3dc4 Mon Sep 17 00:00:00 2001 From: Tomasz Stefaniak Date: Mon, 23 Jun 2025 09:23:00 -0700 Subject: [PATCH 099/166] improv: naming --- core/index.d.ts | 2 +- core/llm/rules/getSystemMessageWithRules.ts | 44 +++++++++---------- .../rules/getSystemMessageWithRules.vitest.ts | 20 ++++----- core/tools/definitions/createRuleBlock.ts | 2 +- core/tools/implementations/createRuleBlock.ts | 8 ++-- docs/docs/customize/deep-dives/rules.mdx | 1 + .../src/markdown/createMarkdownRule.ts | 10 ++--- .../src/markdown/markdownToRule.ts | 4 +- packages/config-yaml/src/schemas/index.ts | 2 +- 9 files changed, 46 insertions(+), 47 deletions(-) diff --git a/core/index.d.ts b/core/index.d.ts index 1c7f336f2..3dde3bc78 100644 --- a/core/index.d.ts +++ b/core/index.d.ts @@ -1576,7 +1576,7 @@ export interface RuleWithSource { slug?: string; source: RuleSource; globs?: string | string[]; - patterns?: string | string[]; + regex?: string | string[]; rule: string; description?: string; ruleFile?: string; diff --git a/core/llm/rules/getSystemMessageWithRules.ts b/core/llm/rules/getSystemMessageWithRules.ts index 62756923e..65c04f2a6 100644 --- a/core/llm/rules/getSystemMessageWithRules.ts +++ b/core/llm/rules/getSystemMessageWithRules.ts @@ -54,33 +54,33 @@ const matchesGlobs = ( }; /** - * Checks if file content matches any of the provided regex patterns + * Checks if file content matches any of the provided regex regex * * @param fileContent - The content of the file to check - * @param patterns - A single regex pattern string or array of regex pattern strings - * @returns true if the content matches any pattern (or if no patterns are provided), false otherwise + * @param regex - A single regex pattern string or array of regex pattern strings + * @returns true if the content matches any pattern (or if no regex is provided), false otherwise */ const contentMatchesPatterns = ( fileContent: string, - patterns: string | string[], + regex: string | string[], ): boolean => { // Handle single string pattern - if (typeof patterns === "string") { + if (typeof regex === "string") { try { - const regex = new RegExp(patterns); - return regex.test(fileContent); + const expression = new RegExp(regex); + return expression.test(fileContent); } catch (e) { - console.error(`Invalid regex pattern: ${patterns}`, e); + console.error(`Invalid regex pattern: ${regex}`, e); return false; } } - // Handle array of patterns - if (Array.isArray(patterns)) { - if (patterns.length === 0) return true; + // Handle array of regex + if (Array.isArray(regex)) { + if (regex.length === 0) return true; // Content must match at least one pattern - return patterns.some((pattern) => { + return regex.some((pattern) => { try { const regex = new RegExp(pattern); return regex.test(fileContent); @@ -145,11 +145,11 @@ const isGlobalRule = (rule: RuleWithSource): boolean => { return true; } - // Root-level rules with no globs or patterns are implicitly global + // Root-level rules with no globs or regex are implicitly global if ( isRootLevelRule(rule) && !rule.globs && - !rule.patterns && + !rule.regex && rule.alwaysApply !== false ) { return true; @@ -176,18 +176,18 @@ const checkGlobsAndPatterns = ({ return false; } - // Now check for pattern matches in file contents if patterns are specified - if (rule.patterns) { - // Check if any of the matching files also match the content patterns + // Now check for pattern matches in file contents if regex are specified + if (rule.regex) { + // Check if any of the matching files also match the content regex return matchingFiles.some((filePath) => { const content = fileContents[filePath]; - // If we don't have the content, we can't check patterns + // If we don't have the content, we can't check regex if (!content) return false; - return contentMatchesPatterns(content, rule.patterns!); + return contentMatchesPatterns(content, rule.regex!); }); } - // If we have no patterns or if we couldn't check patterns (no content), + // If we have no regex or if we couldn't check regex (no content), // just go with the glob matches return matchingFiles.length > 0; }; @@ -248,11 +248,11 @@ export const shouldApplyRule = ( }); } - // If alwaysApply is explicitly false, we need to check globs and/or patterns + // If alwaysApply is explicitly false, we need to check globs and/or regex if ( rule.alwaysApply === false && rule.globs === undefined && - rule.patterns === undefined + rule.regex === undefined ) { return false; } diff --git a/core/llm/rules/getSystemMessageWithRules.vitest.ts b/core/llm/rules/getSystemMessageWithRules.vitest.ts index 8425c8324..0b4444cd1 100644 --- a/core/llm/rules/getSystemMessageWithRules.vitest.ts +++ b/core/llm/rules/getSystemMessageWithRules.vitest.ts @@ -259,7 +259,7 @@ describe("Content pattern matching", () => { const reactComponentRule: RuleWithSource = { name: "React Component Rule", rule: "Follow React component standards", - patterns: "export (function|const) \\w+.*\\(", + regex: "export (function|const) \\w+.*\\(", source: "rules-block", ruleFile: "src/components/rules.md", }; @@ -286,12 +286,12 @@ describe("Content pattern matching", () => { ).toBe(false); }); - it("should support multiple regex patterns as an array", () => { - // Rule with multiple patterns + it("should support multiple regex regex as an array", () => { + // Rule with multiple regex const multiPatternRule: RuleWithSource = { name: "Multi-Pattern Rule", rule: "Apply to functions or classes", - patterns: ["function\\s+\\w+", "class\\s+\\w+"], + regex: ["function\\s+\\w+", "class\\s+\\w+"], source: "rules-block", ruleFile: "src/utils/rules.md", }; @@ -324,13 +324,13 @@ describe("Content pattern matching", () => { ).toBe(false); }); - it("should apply rules based on both globs and patterns when both are specified", () => { + it("should apply rules based on both globs and regex when both are specified", () => { // Rule with both glob and pattern restrictions const typescriptClassRule: RuleWithSource = { name: "TypeScript Class Rule", rule: "Follow class standards in TypeScript", globs: "**/*.ts", - patterns: "class\\s+\\w+", + regex: "class\\s+\\w+", source: "rules-block", ruleFile: "src/models/rules.md", }; @@ -369,7 +369,7 @@ describe("Content pattern matching", () => { const arrowFunctionRule: RuleWithSource = { name: "Arrow Function Rule", rule: "Use arrow functions for better this binding", - patterns: "const\\s+\\w+\\s*=\\s*\\(", + regex: "const\\s+\\w+\\s*=\\s*\\(", source: "rules-block", ruleFile: "src/utils/rules.md", }; @@ -426,12 +426,12 @@ describe("Content pattern matching", () => { expect(nonApplicableRules).toHaveLength(0); }); - it("should handle invalid regex patterns gracefully", () => { + it("should handle invalid regex regex gracefully", () => { // Rule with invalid regex pattern const invalidRegexRule: RuleWithSource = { name: "Invalid Regex Rule", rule: "This rule has an invalid regex pattern", - patterns: "([unclosed parenthesis", + regex: "([unclosed parenthesis", source: "rules-block", ruleFile: "src/utils/rules.md", }; @@ -452,7 +452,7 @@ describe("Content pattern matching", () => { const nestedPatternRule: RuleWithSource = { name: "Nested Pattern Rule", rule: "Apply only to model files with interfaces", - patterns: "interface\\s+\\w+", + regex: "interface\\s+\\w+", source: "rules-block", ruleFile: "src/models/rules.md", }; diff --git a/core/tools/definitions/createRuleBlock.ts b/core/tools/definitions/createRuleBlock.ts index 2afb19d70..dfb6294ae 100644 --- a/core/tools/definitions/createRuleBlock.ts +++ b/core/tools/definitions/createRuleBlock.ts @@ -37,7 +37,7 @@ export const createRuleBlock: Tool = { description: "Optional file patterns to which this rule applies (e.g. ['**/*.{ts,tsx}'] or ['src/**/*.ts', 'tests/**/*.ts'])", }, - patterns: { + regex: { type: "string", description: "Optional regex patterns to match against file content. Rule applies only to files whose content matches the pattern (e.g. 'useEffect' for React hooks or '\\bclass\\b' for class definitions)", diff --git a/core/tools/implementations/createRuleBlock.ts b/core/tools/implementations/createRuleBlock.ts index cfa60a5a3..06921f770 100644 --- a/core/tools/implementations/createRuleBlock.ts +++ b/core/tools/implementations/createRuleBlock.ts @@ -7,7 +7,7 @@ export type CreateRuleBlockArgs = Pick< Required, "rule" | "description" | "alwaysApply" | "name" > & - Pick; + Pick; export const createRuleBlockImpl: ToolImpl = async ( args: CreateRuleBlockArgs, @@ -19,9 +19,9 @@ export const createRuleBlockImpl: ToolImpl = async ( globs: args.globs, }; - // Add patterns if provided - if (args.patterns) { - options.patterns = args.patterns; + // Add regex if provided + if (args.regex) { + options.regex = args.regex; } const fileContent = createRuleMarkdown(args.name, args.rule, options); diff --git a/docs/docs/customize/deep-dives/rules.mdx b/docs/docs/customize/deep-dives/rules.mdx index 147606f85..bb0730afd 100644 --- a/docs/docs/customize/deep-dives/rules.mdx +++ b/docs/docs/customize/deep-dives/rules.mdx @@ -63,6 +63,7 @@ Rules blocks can be simple text, written in YAML configuration files, or as Mark - `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"]`). +- `regex` (optional): When files are provided as context and their content matches this regex pattern, the rule will be included. This can be either a single pattern (e.g., `"^import .* from '.*';$"`) or an array of patterns (e.g., `["^import .* from '.*';$", "^export .* from '.*';$"]`). - `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 diff --git a/packages/config-yaml/src/markdown/createMarkdownRule.ts b/packages/config-yaml/src/markdown/createMarkdownRule.ts index 13cce86f4..0fdf522f8 100644 --- a/packages/config-yaml/src/markdown/createMarkdownRule.ts +++ b/packages/config-yaml/src/markdown/createMarkdownRule.ts @@ -34,7 +34,7 @@ export function createRuleMarkdown( options: { description?: string; globs?: string | string[]; - patterns?: string | string[]; + regex?: string | string[]; alwaysApply?: boolean; } = {}, ): string { @@ -45,11 +45,9 @@ export function createRuleMarkdown( typeof options.globs === "string" ? options.globs.trim() : options.globs; } - if (options.patterns) { - frontmatter.patterns = - typeof options.patterns === "string" - ? options.patterns.trim() - : options.patterns; + if (options.regex) { + frontmatter.regex = + typeof options.regex === "string" ? options.regex.trim() : options.regex; } if (options.description) { diff --git a/packages/config-yaml/src/markdown/markdownToRule.ts b/packages/config-yaml/src/markdown/markdownToRule.ts index 5bed93ac8..85d5b3036 100644 --- a/packages/config-yaml/src/markdown/markdownToRule.ts +++ b/packages/config-yaml/src/markdown/markdownToRule.ts @@ -7,7 +7,7 @@ import { RuleObject } from "../schemas/index.js"; export interface RuleFrontmatter { globs?: RuleObject["globs"]; - patterns?: RuleObject["patterns"]; + regex?: RuleObject["regex"]; name?: RuleObject["name"]; description?: RuleObject["description"]; alwaysApply?: RuleObject["alwaysApply"]; @@ -57,7 +57,7 @@ export function markdownToRule( name: frontmatter.name ?? packageIdentifierToDisplayName(id), rule: markdown, globs: frontmatter.globs, - patterns: frontmatter.patterns, + regex: frontmatter.regex, description: frontmatter.description, alwaysApply: frontmatter.alwaysApply, }; diff --git a/packages/config-yaml/src/schemas/index.ts b/packages/config-yaml/src/schemas/index.ts index 14d4a7486..7a0a6562b 100644 --- a/packages/config-yaml/src/schemas/index.ts +++ b/packages/config-yaml/src/schemas/index.ts @@ -45,7 +45,7 @@ const ruleObjectSchema = z.object({ rule: z.string(), description: z.string().optional(), globs: z.union([z.string(), z.array(z.string())]).optional(), - patterns: z.union([z.string(), z.array(z.string())]).optional(), + regex: z.union([z.string(), z.array(z.string())]).optional(), alwaysApply: z.boolean().optional(), }); const ruleSchema = z.union([z.string(), ruleObjectSchema]); From fb5beb042eb283c137b8efe6e88f871936a9230e Mon Sep 17 00:00:00 2001 From: Dallin Romney Date: Mon, 23 Jun 2025 09:26:10 -0700 Subject: [PATCH 100/166] 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 be7c31779971dc9402d80b710cbd1f822987eaac Mon Sep 17 00:00:00 2001 From: Tomasz Stefaniak Date: Mon, 23 Jun 2025 09:42:00 -0700 Subject: [PATCH 101/166] improv: naming --- core/llm/rules/getSystemMessageWithRules.ts | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/core/llm/rules/getSystemMessageWithRules.ts b/core/llm/rules/getSystemMessageWithRules.ts index 65c04f2a6..c005a5f92 100644 --- a/core/llm/rules/getSystemMessageWithRules.ts +++ b/core/llm/rules/getSystemMessageWithRules.ts @@ -60,7 +60,7 @@ const matchesGlobs = ( * @param regex - A single regex pattern string or array of regex pattern strings * @returns true if the content matches any pattern (or if no regex is provided), false otherwise */ -const contentMatchesPatterns = ( +const contentMatchesRegex = ( fileContent: string, regex: string | string[], ): boolean => { @@ -158,7 +158,7 @@ const isGlobalRule = (rule: RuleWithSource): boolean => { return false; }; -const checkGlobsAndPatterns = ({ +const checkGlobsAndRegex = ({ rule, filePaths, fileContents, @@ -183,7 +183,7 @@ const checkGlobsAndPatterns = ({ const content = fileContents[filePath]; // If we don't have the content, we can't check regex if (!content) return false; - return contentMatchesPatterns(content, rule.regex!); + return contentMatchesRegex(content, rule.regex!); }); } @@ -241,7 +241,7 @@ export const shouldApplyRule = ( isFileInDirectory(filePath, ruleDirPath), ); - return checkGlobsAndPatterns({ + return checkGlobsAndRegex({ filePaths: filesInRuleDirectory, fileContents, rule, @@ -257,7 +257,7 @@ export const shouldApplyRule = ( return false; } - return checkGlobsAndPatterns({ + return checkGlobsAndRegex({ filePaths, fileContents, rule, From b7119ddb64857d9eb518e9806a0fd7004b4bb992 Mon Sep 17 00:00:00 2001 From: Dallin Romney Date: Mon, 23 Jun 2025 10:11:53 -0700 Subject: [PATCH 102/166] rules for vs code and navigating user requests --- .continue/rules/navigating-responses.md | 4 ++++ extensions/vscode/rules.md | 6 ++++++ 2 files changed, 10 insertions(+) create mode 100644 .continue/rules/navigating-responses.md create mode 100644 extensions/vscode/rules.md diff --git a/.continue/rules/navigating-responses.md b/.continue/rules/navigating-responses.md new file mode 100644 index 000000000..dadbd0f80 --- /dev/null +++ b/.continue/rules/navigating-responses.md @@ -0,0 +1,4 @@ +If the user's request is vague and you don't have enough information to confidently answer, you can either + +- In Chat OR Agent mode, stop and ask questions to clarify before proceeding +- In Agent mode, use tools to discover more information, starting with the glob/grep tools if available. diff --git a/extensions/vscode/rules.md b/extensions/vscode/rules.md new file mode 100644 index 000000000..865f0dac5 --- /dev/null +++ b/extensions/vscode/rules.md @@ -0,0 +1,6 @@ +The `extensions/vscode` folder contains code for the "Continue" VS Code Extension. Continue is a coding assistant extension which extends IDE functionality with AI. +Core IDE functionality, such as reading files, is implemented using the `VSCodeIDE` class. Code to enable editing/diff streaming into the editor, code suggestion autocompletion, and more can also be found in this directory. +Shared code that has abstract logic for the extension is in `core/`. Avoid importing code from `core/` directly where possible. Core is designed to be bundalable as a binary. Use `core.invoke` to send messages to the + +- see `core/protocol/core.ts` for a list of commands VS Code can post/request to Core +- see `core/portocol/ide.ts` for a list of commands/message types core can post/request to VS Code From f7bdae37e4dabf46aea2b46a9590e3cbbb303a51 Mon Sep 17 00:00:00 2001 From: Brian 'bdougie' Douglas Date: Mon, 23 Jun 2025 11:09:32 -0700 Subject: [PATCH 103/166] add llms.txt generation for docs --- docs/docusaurus.config.js | 9 +++++++++ docs/package-lock.json | 18 ++++++++++++++++++ docs/package.json | 1 + 3 files changed, 28 insertions(+) diff --git a/docs/docusaurus.config.js b/docs/docusaurus.config.js index 4e873f0db..7a3c3a8d9 100644 --- a/docs/docusaurus.config.js +++ b/docs/docusaurus.config.js @@ -211,6 +211,15 @@ const config = { enableInDevelopment: false, }, ], + [ + "docusaurus-plugin-llms-txt", + { + // Optional configuration + outputPath: "static/llms.txt", + includePatterns: ["docs/**"], + excludePatterns: ["**/node_modules/**"], + }, + ], [ "@docusaurus/plugin-client-redirects", { diff --git a/docs/package-lock.json b/docs/package-lock.json index f3a3ea446..684d04e98 100644 --- a/docs/package-lock.json +++ b/docs/package-lock.json @@ -14,6 +14,7 @@ "@docusaurus/preset-classic": "^3.7.0", "@mdx-js/react": "^3.0.0", "clsx": "^2.1.0", + "docusaurus-plugin-llms-txt": "^0.1.3", "posthog-docusaurus": "^2.0.4", "prism-react-renderer": "^2.3.1", "react": "^18.2.0", @@ -7604,6 +7605,23 @@ "node": ">=6" } }, + "node_modules/docusaurus-plugin-llms-txt": { + "version": "0.1.3", + "resolved": "https://registry.npmjs.org/docusaurus-plugin-llms-txt/-/docusaurus-plugin-llms-txt-0.1.3.tgz", + "integrity": "sha512-X/Dqf1/soHFjvELWXtfa9C023498HsWWwNPdVZEu0OoznI2Gzf+VCB/4obwpBSV9OeDeI8D94/dK/ETq534k9A==", + "license": "MIT", + "dependencies": { + "fs-extra": "^11.2.0", + "gray-matter": "^4.0.3" + }, + "engines": { + "node": ">=16.14" + }, + "peerDependencies": { + "@docusaurus/core": ">=2.0.0", + "react": ">=16.8.0" + } + }, "node_modules/dom-converter": { "version": "0.2.0", "resolved": "https://registry.npmjs.org/dom-converter/-/dom-converter-0.2.0.tgz", diff --git a/docs/package.json b/docs/package.json index 67b995070..af9538e94 100644 --- a/docs/package.json +++ b/docs/package.json @@ -22,6 +22,7 @@ "@docusaurus/preset-classic": "^3.7.0", "@mdx-js/react": "^3.0.0", "clsx": "^2.1.0", + "docusaurus-plugin-llms-txt": "^0.1.3", "posthog-docusaurus": "^2.0.4", "prism-react-renderer": "^2.3.1", "react": "^18.2.0", From 393bf0854a7c9aa8e8d3f67cac8c93b2a7ee18b5 Mon Sep 17 00:00:00 2001 From: Patrick Erichsen Date: Mon, 23 Jun 2025 11:15:51 -0700 Subject: [PATCH 104/166] nate's feedback --- .../AssistantAndOrgListbox/AccountOption.tsx | 11 ++++++- .../AssistantOptions.tsx | 2 +- .../OrganizationInfo.tsx | 22 -------------- .../AssistantAndOrgListbox/index.tsx | 30 ++++++++++++++----- 4 files changed, 34 insertions(+), 31 deletions(-) delete mode 100644 gui/src/components/AssistantAndOrgListbox/OrganizationInfo.tsx diff --git a/gui/src/components/AssistantAndOrgListbox/AccountOption.tsx b/gui/src/components/AssistantAndOrgListbox/AccountOption.tsx index 8f4f8e11e..98e8adbc5 100644 --- a/gui/src/components/AssistantAndOrgListbox/AccountOption.tsx +++ b/gui/src/components/AssistantAndOrgListbox/AccountOption.tsx @@ -1,3 +1,7 @@ +import { + ArrowRightEndOnRectangleIcon, + UserCircleIcon as UserCircleIconOutline, +} from "@heroicons/react/24/outline"; import { isOnPremSession } from "core/control-plane/AuthTypes"; import { useAuth } from "../../context/Auth"; import { ListboxOption, useFontSize } from "../ui"; @@ -28,13 +32,18 @@ export function AccountOption({ onClose }: AccountOptionProps) {
+ {session ? ( + + ) : ( + + )} {session ? "Log out" : "Sign in"}
diff --git a/gui/src/components/AssistantAndOrgListbox/AssistantOptions.tsx b/gui/src/components/AssistantAndOrgListbox/AssistantOptions.tsx index 304444b23..869aa5c67 100644 --- a/gui/src/components/AssistantAndOrgListbox/AssistantOptions.tsx +++ b/gui/src/components/AssistantAndOrgListbox/AssistantOptions.tsx @@ -19,7 +19,7 @@ export function AssistantOptions({ return ( <> {/* Assistants Section Header */} -
+
-
-
- - {!session && ( - (Signed out) - )} -
- -
-
- ); -} diff --git a/gui/src/components/AssistantAndOrgListbox/index.tsx b/gui/src/components/AssistantAndOrgListbox/index.tsx index ee175a725..dcf0bb4a4 100644 --- a/gui/src/components/AssistantAndOrgListbox/index.tsx +++ b/gui/src/components/AssistantAndOrgListbox/index.tsx @@ -1,4 +1,5 @@ import { PlusIcon } from "@heroicons/react/24/outline"; +import { isOnPremSession } from "core/control-plane/AuthTypes"; import { useContext, useEffect, useRef } from "react"; import { useAuth } from "../../context/Auth"; import { IdeMessengerContext } from "../../context/IdeMessenger"; @@ -18,7 +19,7 @@ import { } from "../ui"; import { AccountOption } from "./AccountOption"; import { AssistantOptions } from "./AssistantOptions"; -import { OrganizationInfo } from "./OrganizationInfo"; +import { ScopeSelect } from "./ScopeSelect"; import { SelectedAssistantButton } from "./SelectedAssistantButton"; export function AssistantAndOrgListbox() { @@ -27,9 +28,12 @@ export function AssistantAndOrgListbox() { const currentOrg = useAppSelector(selectCurrentOrg); const ideMessenger = useContext(IdeMessengerContext); const { isToolbarExpanded } = useLump(); - const { profiles, selectedProfile, session, login } = useAuth(); + const { profiles, selectedProfile, session, login, organizations } = + useAuth(); const smallFont = useFontSize(-3); const tinyFont = useFontSize(-4); + const shouldRenderOrgInfo = + session && organizations.length > 1 && !isOnPremSession(session); function close() { // Close the listbox by clicking outside or programmatically @@ -114,7 +118,19 @@ export function AssistantAndOrgListbox() { - + {shouldRenderOrgInfo && ( +
+
+ + {session.account.id} + + + +
+
+ )} login(false)} > -
- New Assistant -
+ New Assistant + From a2e1f5aab460e97008904b09abbac6263ac8e494 Mon Sep 17 00:00:00 2001 From: Dallin Romney Date: Mon, 23 Jun 2025 14:12:47 -0700 Subject: [PATCH 105/166] 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 a5a1b14d60ece5319ceb668331c7595865bb863e Mon Sep 17 00:00:00 2001 From: Patrick Erichsen Date: Mon, 23 Jun 2025 16:15:18 -0700 Subject: [PATCH 106/166] fix: local storage state for free trial exit --- gui/src/components/FreeTrialButton.tsx | 20 ++++++++++--------- .../LumpToolbar/BlockSettingsTopToolbar.tsx | 4 +++- gui/src/util/localStorage.ts | 2 ++ 3 files changed, 16 insertions(+), 10 deletions(-) diff --git a/gui/src/components/FreeTrialButton.tsx b/gui/src/components/FreeTrialButton.tsx index 1665b318d..c3373cf7b 100644 --- a/gui/src/components/FreeTrialButton.tsx +++ b/gui/src/components/FreeTrialButton.tsx @@ -4,6 +4,7 @@ import { useContext } from "react"; import { Button, SecondaryButton, vscButtonBackground } from "."; import { IdeMessengerContext } from "../context/IdeMessenger"; import { fontSize } from "../util"; +import { setLocalStorage } from "../util/localStorage"; import { Listbox, ListboxButton, ListboxOptions, Transition } from "./ui"; interface ProgressBarProps { @@ -79,6 +80,15 @@ export default function FreeTrialButton({ }: FreeTrialButtonProps) { const ideMessenger = useContext(IdeMessengerContext); + const onExitFreeTrial = async () => { + setLocalStorage("hasExitedFreeTrial", true); + + await ideMessenger.request("controlPlane/openUrl", { + path: "setup-models", + orgSlug: undefined, + }); + }; + return (
@@ -134,15 +144,7 @@ export default function FreeTrialButton({ )}
- { - await ideMessenger.request("controlPlane/openUrl", { - path: "setup-models", - orgSlug: undefined, - }); - }} - > + Exit trial
From f7825aa507028319c387f00c64306c73488401dd Mon Sep 17 00:00:00 2001 From: Dallin Romney Date: Thu, 26 Jun 2025 13:51:51 -0700 Subject: [PATCH 157/166] 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 158/166] 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 159/166] 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 160/166] 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 161/166] 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 162/166] 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 163/166] 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 164/166] 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 165/166] 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 166/166] 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({