diff --git a/.github/ISSUE_TEMPLATE/bug_report.yml b/.github/ISSUE_TEMPLATE/bug_report.yml index 44569c51a..8e2ec109e 100644 --- a/.github/ISSUE_TEMPLATE/bug_report.yml +++ b/.github/ISSUE_TEMPLATE/bug_report.yml @@ -28,7 +28,7 @@ body: - **OS**: macOS - **Continue version**: v0.9.4 - **IDE version**: VSCode 1.85.1 - - Model: Claude Sonnet 3.5 + - Model: Claude Sonnet 4.5 - Agent configuration value: | - OS: diff --git a/.github/workflows/jetbrains-release.yaml b/.github/workflows/jetbrains-release.yaml index d08f4f9a0..54b3c7812 100644 --- a/.github/workflows/jetbrains-release.yaml +++ b/.github/workflows/jetbrains-release.yaml @@ -107,7 +107,7 @@ jobs: ref: ${{ github.event.release.tag_name }} - name: Import Apple certificate - uses: apple-actions/import-codesign-certs@v5 + uses: apple-actions/import-codesign-certs@v6 with: keychain: ${{ github.run_id }} keychain-password: ${{ github.run_id }} diff --git a/binary/package-lock.json b/binary/package-lock.json index 849a4b235..1d1832d96 100644 --- a/binary/package-lock.json +++ b/binary/package-lock.json @@ -22,7 +22,7 @@ "tar": "^7.5.1", "undici": "^7.16.0", "uuid": "^9.0.1", - "vectordb": "^0.4.20", + "vectordb": "0.4.20", "win-ca": "^3.5.1" }, "bin": { @@ -117,7 +117,7 @@ "tree-sitter-wasms": "^0.1.11", "untildify": "^6.0.0", "uuid": "^9.0.1", - "vectordb": "^0.4.20", + "vectordb": "0.4.20", "web-tree-sitter": "^0.21.0", "win-ca": "^3.5.1", "wink-nlp-utils": "^2.1.0", @@ -42082,15 +42082,15 @@ }, "../packages/openai-adapters": { "name": "@continuedev/openai-adapters", - "version": "1.15.0", + "version": "1.32.0", "license": "Apache-2.0", "dependencies": { "@anthropic-ai/sdk": "^0.67.0", "@aws-sdk/client-bedrock-runtime": "^3.842.0", "@aws-sdk/credential-providers": "^3.913.0", "@continuedev/config-types": "^1.0.14", - "@continuedev/config-yaml": "^1.33.0", - "@continuedev/fetch": "^1.5.0", + "@continuedev/config-yaml": "^1.36.0", + "@continuedev/fetch": "^1.6.0", "dotenv": "^16.5.0", "google-auth-library": "^10.4.1", "json-schema": "^0.4.0", @@ -42104,14 +42104,14 @@ "@semantic-release/commit-analyzer": "^13.0.1", "@semantic-release/git": "^10.0.1", "@semantic-release/github": "^11.0.3", - "@semantic-release/npm": "^13.1.2", + "@semantic-release/npm": "^12.0.2", "@semantic-release/release-notes-generator": "^14.0.3", "@types/follow-redirects": "^1.14.4", "@types/jest": "^29.5.14", "@types/json-schema": "^7.0.15", "@types/node": "^24.3.0", "cross-env": "^7.0.3", - "semantic-release": "^25.0.2", + "semantic-release": "^24.2.7", "ts-jest": "^29.2.3", "ts-node": "^10.9.2", "vitest": "^3.2.4" diff --git a/binary/package.json b/binary/package.json index df0edd1b3..c43e145e7 100644 --- a/binary/package.json +++ b/binary/package.json @@ -55,7 +55,7 @@ "tar": "^7.5.1", "undici": "^7.16.0", "uuid": "^9.0.1", - "vectordb": "^0.4.20", + "vectordb": "0.4.20", "win-ca": "^3.5.1" } } diff --git a/core/config/ConfigHandler.ts b/core/config/ConfigHandler.ts index 545c73723..134f79d4e 100644 --- a/core/config/ConfigHandler.ts +++ b/core/config/ConfigHandler.ts @@ -100,7 +100,7 @@ export class ConfigHandler { return `${workspaceId}:::${orgId}`; } - private async cascadeInit(reason: string) { + private async cascadeInit(reason: string, isLogin?: boolean) { const signal = this.cascadeAbortController.signal; this.workspaceDirs = null; // forces workspace dirs reload @@ -118,7 +118,12 @@ export class ConfigHandler { const workspaceId = await this.getWorkspaceId(); const selectedOrgs = this.globalContext.get("lastSelectedOrgIdForWorkspace") ?? {}; - const currentSelection = selectedOrgs[workspaceId]; + let currentSelection = selectedOrgs[workspaceId]; + + // reset personal org to first available non-personal org on login + if (isLogin && currentSelection === "personal") { + currentSelection = null; + } const firstNonPersonal = orgs.find( (org) => org.id !== this.PERSONAL_ORG_DESC.id, @@ -402,6 +407,7 @@ export class ConfigHandler { const newSession = sessionInfo; let reload = false; + let isLogin = false; if (newSession) { if (currentSession) { if ( @@ -416,6 +422,7 @@ export class ConfigHandler { } else { // log in reload = true; + isLogin = true; } } else { if (currentSession) { @@ -430,7 +437,7 @@ export class ConfigHandler { this.ide, ); this.abortCascade(); - await this.cascadeInit("Control plane session info update"); + await this.cascadeInit("Control plane session info update", isLogin); } return reload; } diff --git a/core/config/workspace/workspaceBlocks.ts b/core/config/workspace/workspaceBlocks.ts index d3dfa8690..4f20eda89 100644 --- a/core/config/workspace/workspaceBlocks.ts +++ b/core/config/workspace/workspaceBlocks.ts @@ -42,9 +42,9 @@ function getContentsForNewBlock(blockType: BlockType): ConfigYaml { configYaml.models = [ { provider: "anthropic", - model: "claude-3-7-sonnet-latest", + model: "claude-sonnet-4-5", apiKey: "${{ secrets.ANTHROPIC_API_KEY }}", - name: "Claude 3.7 Sonnet", + name: "Claude Sonnet 4.5", roles: ["chat", "edit"], }, ]; diff --git a/core/llm/llms/Anthropic.vitest.ts b/core/llm/llms/Anthropic.vitest.ts index 5c623b05e..07915a93a 100644 --- a/core/llm/llms/Anthropic.vitest.ts +++ b/core/llm/llms/Anthropic.vitest.ts @@ -134,7 +134,7 @@ describe("Anthropic", () => { test("streamChat should send a valid request", async () => { const anthropic = new Anthropic({ apiKey: "test-api-key", - model: "claude-3-5-sonnet-latest", + model: "claude-sonnet-4-5", apiBase: "https://api.anthropic.com/v1/", }); @@ -155,7 +155,7 @@ describe("Anthropic", () => { "x-api-key": "test-api-key", }, body: { - model: "claude-3-5-sonnet-latest", + model: "claude-sonnet-4-5", max_tokens: 8192, stream: true, messages: [ @@ -177,7 +177,7 @@ describe("Anthropic", () => { test("chat should send a valid request", async () => { const anthropic = new Anthropic({ apiKey: "test-api-key", - model: "claude-3-5-sonnet-latest", + model: "claude-sonnet-4-5", apiBase: "https://api.anthropic.com/v1/", }); @@ -198,7 +198,7 @@ describe("Anthropic", () => { "x-api-key": "test-api-key", }, body: { - model: "claude-3-5-sonnet-latest", + model: "claude-sonnet-4-5", max_tokens: 8192, stream: true, messages: [ @@ -220,7 +220,7 @@ describe("Anthropic", () => { test("streamComplete should send a valid request", async () => { const anthropic = new Anthropic({ apiKey: "test-api-key", - model: "claude-3-5-sonnet-latest", + model: "claude-sonnet-4-5", apiBase: "https://api.anthropic.com/v1/", }); @@ -238,7 +238,7 @@ describe("Anthropic", () => { "x-api-key": "test-api-key", }, body: { - model: "claude-3-5-sonnet-latest", + model: "claude-sonnet-4-5", max_tokens: 8192, stream: true, messages: [ @@ -260,7 +260,7 @@ describe("Anthropic", () => { test("complete should send a valid request", async () => { const anthropic = new Anthropic({ apiKey: "test-api-key", - model: "claude-3-5-sonnet-latest", + model: "claude-sonnet-4-5", apiBase: "https://api.anthropic.com/v1/", }); @@ -278,7 +278,7 @@ describe("Anthropic", () => { "x-api-key": "test-api-key", }, body: { - model: "claude-3-5-sonnet-latest", + model: "claude-sonnet-4-5", max_tokens: 8192, stream: true, messages: [ @@ -301,7 +301,7 @@ describe("Anthropic", () => { test("should handle system message", async () => { const anthropic = new Anthropic({ apiKey: "test-api-key", - model: "claude-3-5-sonnet-latest", + model: "claude-sonnet-4-5", apiBase: "https://api.anthropic.com/v1/", }); @@ -325,7 +325,7 @@ describe("Anthropic", () => { "x-api-key": "test-api-key", }, body: { - model: "claude-3-5-sonnet-latest", + model: "claude-sonnet-4-5", max_tokens: 8192, stream: true, messages: [ @@ -347,7 +347,7 @@ describe("Anthropic", () => { test("should handle tool calls", async () => { const anthropic = new Anthropic({ apiKey: "test-api-key", - model: "claude-3-5-sonnet-latest", + model: "claude-sonnet-4-5", apiBase: "https://api.anthropic.com/v1/", }); @@ -386,7 +386,7 @@ describe("Anthropic", () => { "x-api-key": "test-api-key", }, body: { - model: "claude-3-5-sonnet-latest", + model: "claude-sonnet-4-5", max_tokens: 8192, stream: true, messages: [ @@ -424,7 +424,7 @@ describe("Anthropic", () => { test("should handle custom max tokens", async () => { const anthropic = new Anthropic({ apiKey: "test-api-key", - model: "claude-3-5-sonnet-latest", + model: "claude-sonnet-4-5", apiBase: "https://api.anthropic.com/v1/", }); @@ -446,7 +446,7 @@ describe("Anthropic", () => { "x-api-key": "test-api-key", }, body: { - model: "claude-3-5-sonnet-latest", + model: "claude-sonnet-4-5", max_tokens: 1000, stream: true, messages: [ @@ -470,7 +470,7 @@ describe("Anthropic", () => { test("should throw error when API key is missing", async () => { const anthropic = new Anthropic({ apiKey: "", - model: "claude-3-5-sonnet-latest", + model: "claude-sonnet-4-5", apiBase: "https://api.anthropic.com/v1/", }); diff --git a/core/llm/llms/OpenRouter.vitest.ts b/core/llm/llms/OpenRouter.vitest.ts index e6e8afdd2..85ca5dd1c 100644 --- a/core/llm/llms/OpenRouter.vitest.ts +++ b/core/llm/llms/OpenRouter.vitest.ts @@ -6,13 +6,13 @@ import OpenRouter from "./OpenRouter"; describe("OpenRouter Anthropic Caching", () => { it("should detect Anthropic models correctly", () => { const openRouter = new OpenRouter({ - model: "claude-3-5-sonnet-latest", + model: "claude-sonnet-4-5", apiKey: "test-key", }); // Test private method through modifyChatBody const body: ChatCompletionCreateParams = { - model: "claude-3-5-sonnet-latest", + model: "claude-sonnet-4-5", messages: [], }; @@ -22,7 +22,7 @@ describe("OpenRouter Anthropic Caching", () => { it("should add cache_control to user messages when caching is enabled", () => { const openRouter = new OpenRouter({ - model: "anthropic/claude-3.5-sonnet", + model: "anthropic/claude-sonnet-4.5", apiKey: "test-key", cacheBehavior: { cacheConversation: true, @@ -31,7 +31,7 @@ describe("OpenRouter Anthropic Caching", () => { }); const body: ChatCompletionCreateParams = { - model: "anthropic/claude-3.5-sonnet", + model: "anthropic/claude-sonnet-4.5", messages: [ { role: "user", content: "First message" }, { role: "assistant", content: "Response" }, @@ -71,7 +71,7 @@ describe("OpenRouter Anthropic Caching", () => { it("should correctly handle cache_control with system messages present", () => { const openRouter = new OpenRouter({ - model: "claude-3-5-sonnet-latest", + model: "claude-sonnet-4-5", apiKey: "test-key", cacheBehavior: { cacheConversation: true, @@ -80,7 +80,7 @@ describe("OpenRouter Anthropic Caching", () => { }); const body: ChatCompletionCreateParams = { - model: "claude-3-5-sonnet-latest", + model: "claude-sonnet-4-5", messages: [ { role: "system", content: "You are a helpful assistant" }, { role: "user", content: "First user message" }, @@ -137,7 +137,7 @@ describe("OpenRouter Anthropic Caching", () => { it("should add cache_control to system message when caching is enabled", () => { const openRouter = new OpenRouter({ - model: "claude-3-5-sonnet-latest", + model: "claude-sonnet-4-5", apiKey: "test-key", cacheBehavior: { cacheConversation: false, @@ -146,7 +146,7 @@ describe("OpenRouter Anthropic Caching", () => { }); const body: ChatCompletionCreateParams = { - model: "claude-3-5-sonnet-latest", + model: "claude-sonnet-4-5", messages: [ { role: "system", content: "You are a helpful assistant" }, { role: "user", content: "Hello" }, @@ -176,7 +176,7 @@ describe("OpenRouter Anthropic Caching", () => { it("should handle array content correctly", () => { const openRouter = new OpenRouter({ - model: "claude-3-5-sonnet-latest", + model: "claude-sonnet-4-5", apiKey: "test-key", cacheBehavior: { cacheConversation: true, @@ -185,7 +185,7 @@ describe("OpenRouter Anthropic Caching", () => { }); const body: ChatCompletionCreateParams = { - model: "claude-3-5-sonnet-latest", + model: "claude-sonnet-4-5", messages: [ { role: "user", diff --git a/core/llm/toolSupport.test.ts b/core/llm/toolSupport.test.ts index 2f0f566e7..7981dac5f 100644 --- a/core/llm/toolSupport.test.ts +++ b/core/llm/toolSupport.test.ts @@ -179,17 +179,11 @@ describe("PROVIDER_TOOL_SUPPORT", () => { }); it("should return undefined for Claude Haiku and Opus models", () => { - expect(supportsFn("anthropic.claude-3-5-haiku-20240307-v1:0")).toBe( - false, - ); - expect(supportsFn("anthropic.claude-3.5-haiku-20240620-v1:0")).toBe( - false, - ); - expect(supportsFn("anthropic.claude-3-7-haiku-20240620-v1:0")).toBe( - false, - ); - expect(supportsFn("anthropic.claude-3-5-opus-20240620-v1:0")).toBe(false); - expect(supportsFn("anthropic.claude-3.7-opus-20240620-v1:0")).toBe(false); + expect(supportsFn("anthropic.claude-3-5-haiku-20240307-v1:0")).toBe(true); + expect(supportsFn("anthropic.claude-3.5-haiku-20240620-v1:0")).toBe(true); + expect(supportsFn("anthropic.claude-3-7-haiku-20240620-v1:0")).toBe(true); + expect(supportsFn("anthropic.claude-3-5-opus-20240620-v1:0")).toBe(true); + expect(supportsFn("anthropic.claude-3.7-opus-20240620-v1:0")).toBe(true); }); it("should return undefined for other unsupported models", () => { diff --git a/core/llm/toolSupport.ts b/core/llm/toolSupport.ts index 01ad20798..3466a50ee 100644 --- a/core/llm/toolSupport.ts +++ b/core/llm/toolSupport.ts @@ -14,39 +14,17 @@ export const PROVIDER_TOOL_SUPPORT: Record boolean> = } } catch (e) {} - return [ - "claude-3-5", - "claude-3.5", - "claude-3-7", - "claude-3.7", - "claude-sonnet-4", - "claude-4-sonnet", - "gpt-4", - "o3", - "gemini", - "claude-opus-4", - "gemma", - ].some((part) => model.toLowerCase().startsWith(part)); + return ["claude", "gpt-4", "o3", "gemini", "gemma"].some((part) => + model.toLowerCase().startsWith(part), + ); }, anthropic: (model) => { - const lower = model.toLowerCase(); - if ( - [ - "claude-3-5", - "claude-3.5", - "claude-3-7", - "claude-3.7", - "claude-sonnet-4", - "claude-4-sonnet", - "claude-opus-4", - ].some((part) => lower.startsWith(part)) - ) { + if (model.includes("claude-2") || model.includes("claude-instant")) { + return false; + } + if (["claude"].some((part) => model.toLowerCase().startsWith(part))) { return true; } - if (lower.includes("claude") && lower.includes("4-5")) { - return true; - } - return false; }, azure: (model) => { @@ -125,15 +103,12 @@ export const PROVIDER_TOOL_SUPPORT: Record boolean> = ); }, bedrock: (model) => { + if (model.includes("claude-2") || model.includes("claude-instant")) { + return false; + } if ( [ - "claude-3-5-sonnet", - "claude-3.5-sonnet", - "claude-3-7-sonnet", - "claude-3.7-sonnet", - "claude-sonnet-4", - "claude-4-sonnet", - "claude-opus-4", + "claude", "nova-lite", "nova-pro", "nova-micro", @@ -280,8 +255,7 @@ export const PROVIDER_TOOL_SUPPORT: Record boolean> = "openai/o3", "openai/o4", "openai/gpt-oss", - "anthropic/claude-3", - "anthropic/claude-4", + "anthropic/claude", "microsoft/phi-3", "google/gemini-flash-1.5", "google/gemini-2", @@ -391,7 +365,8 @@ export function isRecommendedAgentModel(modelName: string): boolean { const recs: RegExp[][] = [ [/o[134]/], [/deepseek/, /r1|reasoner/], - [/gemini/, /2\.5|3/, /pro/], + [/gemini/, /2\.5/, /pro/], + [/gemini/, /3-pro/], [/gpt/, /-5|5\.1/], [/claude/, /sonnet/, /3\.7|3-7|-4/], [/claude/, /opus/, /-4/], diff --git a/core/package-lock.json b/core/package-lock.json index 846e3cd42..e6868edc1 100644 --- a/core/package-lock.json +++ b/core/package-lock.json @@ -78,7 +78,7 @@ "tree-sitter-wasms": "^0.1.11", "untildify": "^6.0.0", "uuid": "^9.0.1", - "vectordb": "^0.4.20", + "vectordb": "0.4.20", "web-tree-sitter": "^0.21.0", "win-ca": "^3.5.1", "wink-nlp-utils": "^2.1.0", @@ -217,15 +217,15 @@ }, "../packages/openai-adapters": { "name": "@continuedev/openai-adapters", - "version": "1.15.0", + "version": "1.32.0", "license": "Apache-2.0", "dependencies": { "@anthropic-ai/sdk": "^0.67.0", - "@aws-sdk/client-bedrock-runtime": "^3.842.0", - "@aws-sdk/credential-providers": "^3.913.0", + "@aws-sdk/client-bedrock-runtime": "^3.925.0", + "@aws-sdk/credential-providers": "^3.925.0", "@continuedev/config-types": "^1.0.14", - "@continuedev/config-yaml": "^1.33.0", - "@continuedev/fetch": "^1.5.0", + "@continuedev/config-yaml": "^1.36.0", + "@continuedev/fetch": "^1.6.0", "dotenv": "^16.5.0", "google-auth-library": "^10.4.1", "json-schema": "^0.4.0", @@ -239,14 +239,14 @@ "@semantic-release/commit-analyzer": "^13.0.1", "@semantic-release/git": "^10.0.1", "@semantic-release/github": "^11.0.3", - "@semantic-release/npm": "^13.1.2", + "@semantic-release/npm": "^12.0.2", "@semantic-release/release-notes-generator": "^14.0.3", "@types/follow-redirects": "^1.14.4", "@types/jest": "^29.5.14", "@types/json-schema": "^7.0.15", "@types/node": "^24.3.0", "cross-env": "^7.0.3", - "semantic-release": "^25.0.2", + "semantic-release": "^24.2.7", "ts-jest": "^29.2.3", "ts-node": "^10.9.2", "vitest": "^3.2.4" @@ -14678,9 +14678,9 @@ } }, "node_modules/mdast-util-to-hast": { - "version": "13.2.0", - "resolved": "https://registry.npmjs.org/mdast-util-to-hast/-/mdast-util-to-hast-13.2.0.tgz", - "integrity": "sha512-QGYKEuUsYT9ykKBCMOEDLsU5JRObWQusAolFMeko/tYPufNkRffBAQjIE+99jbA87xv6FgmjLtwjh9wBWajwAA==", + "version": "13.2.1", + "resolved": "https://registry.npmjs.org/mdast-util-to-hast/-/mdast-util-to-hast-13.2.1.tgz", + "integrity": "sha512-cctsq2wp5vTsLIcaymblUriiTcZd0CwWtCbLvrOzYCDZoWyMNV8sZ7krj09FSnsiJi3WVsHLM4k6Dq/yaPyCXA==", "dev": true, "license": "MIT", "dependencies": { @@ -15291,9 +15291,10 @@ } }, "node_modules/node-forge": { - "version": "1.3.1", - "resolved": "https://registry.npmjs.org/node-forge/-/node-forge-1.3.1.tgz", - "integrity": "sha512-dPEtOeMvF9VMcYV/1Wb8CPoVAXtp6MKMlcbAt4ddqmGqUJ6fQZFXkNZNkNlfevtNkGtaSoXf/vNNNSvgrdXwtA==", + "version": "1.3.2", + "resolved": "https://registry.npmjs.org/node-forge/-/node-forge-1.3.2.tgz", + "integrity": "sha512-6xKiQ+cph9KImrRh0VsjH2d8/GXA4FIMlgU4B757iI1ApvcyA9VlouP0yZJha01V+huImO+kKMU7ih+2+E14fw==", + "license": "(BSD-3-Clause OR GPL-2.0)", "engines": { "node": ">= 6.13.0" } diff --git a/core/package.json b/core/package.json index 91e062bc1..da4547021 100644 --- a/core/package.json +++ b/core/package.json @@ -123,7 +123,7 @@ "tree-sitter-wasms": "^0.1.11", "untildify": "^6.0.0", "uuid": "^9.0.1", - "vectordb": "^0.4.20", + "vectordb": "0.4.20", "web-tree-sitter": "^0.21.0", "win-ca": "^3.5.1", "wink-nlp-utils": "^2.1.0", diff --git a/core/tools/definitions/grepSearch.ts b/core/tools/definitions/grepSearch.ts index bac426f71..cd91752cc 100644 --- a/core/tools/definitions/grepSearch.ts +++ b/core/tools/definitions/grepSearch.ts @@ -13,7 +13,7 @@ export const grepSearchTool: Tool = { function: { name: BuiltInToolNames.GrepSearch, description: - "Performs a regex search over the repository using ripgrep. Will not include results for many build, cache, secrets dirs/files. Output may be truncated, so use targeted queries", + "Performs a regular expression (regex) search over the repository using ripgrep. Will not include results for many build, cache, secrets dirs/files. Output may be truncated, so use targeted queries", parameters: { type: "object", required: ["query"], @@ -21,7 +21,7 @@ export const grepSearchTool: Tool = { query: { type: "string", description: - "The search query to use. Must be the exact string to be searched or a valid ripgrep expression. Use regex with alternation (e.g., 'word1|word2|word3) or character classes to find multiple potential words in a single search.", + "The regex pattern to search for within file contents. Use regex with alternation (e.g., 'word1|word2|word3') or character classes to find multiple potential words in a single search.", }, }, }, diff --git a/core/tools/implementations/runTerminalCommand.ts b/core/tools/implementations/runTerminalCommand.ts index 5fa0288ff..19377a4ee 100644 --- a/core/tools/implementations/runTerminalCommand.ts +++ b/core/tools/implementations/runTerminalCommand.ts @@ -1,7 +1,6 @@ import iconv from "iconv-lite"; import childProcess from "node:child_process"; import os from "node:os"; -import util from "node:util"; import { ContinueError, ContinueErrorReason } from "../../util/errors"; // Automatically decode the buffer according to the platform to avoid garbled Chinese function getDecodedOutput(data: Buffer): string { @@ -44,7 +43,25 @@ import { } from "../../util/processTerminalStates"; import { getBooleanArg, getStringArg } from "../parseArgs"; -const asyncExec = util.promisify(childProcess.exec); +/** + * Resolves the working directory from workspace dirs. + * Falls back to home directory or temp directory if no workspace is available. + */ +function resolveWorkingDirectory(workspaceDirs: string[]): string { + const fileWorkspaceDir = workspaceDirs.find((dir) => + dir.startsWith("file:/"), + ); + if (fileWorkspaceDir) { + return fileURLToPath(fileWorkspaceDir); + } + // Default to user's home directory with fallbacks + try { + return process.env.HOME || process.env.USERPROFILE || process.cwd(); + } catch { + // Final fallback if even process.cwd() fails - use system temp directory + return os.tmpdir(); + } +} // Add color-supporting environment variables const getColorEnv = () => ({ @@ -82,20 +99,7 @@ export const runTerminalCommandImpl: ToolImpl = async (args, extras) => { if (extras.onPartialOutput) { try { const workspaceDirs = await extras.ide.getWorkspaceDirs(); - - // Handle case where no workspace is available - let cwd: string; - if (workspaceDirs.length > 0) { - cwd = fileURLToPath(workspaceDirs[0]); - } else { - // Default to user's home directory with fallbacks - try { - cwd = process.env.HOME || process.env.USERPROFILE || process.cwd(); - } catch (error) { - // Final fallback if even process.cwd() fails - use system temp directory - cwd = os.tmpdir(); - } - } + const cwd = resolveWorkingDirectory(workspaceDirs); return new Promise((resolve, reject) => { let terminalOutput = ""; @@ -281,23 +285,7 @@ export const runTerminalCommandImpl: ToolImpl = async (args, extras) => { } else { // Fallback to non-streaming for older clients const workspaceDirs = await extras.ide.getWorkspaceDirs(); - - // Handle case where no workspace is available - let cwd: string; - const fileWorkspaceDir = workspaceDirs.find((dir) => - dir.startsWith("file:/"), - ); - if (fileWorkspaceDir) { - cwd = fileURLToPath(fileWorkspaceDir); - } else { - // Default to user's home directory with fallbacks - try { - cwd = process.env.HOME || process.env.USERPROFILE || process.cwd(); - } catch (error) { - // Final fallback if even process.cwd() fails - use system temp directory - cwd = os.tmpdir(); - } - } + const cwd = resolveWorkingDirectory(workspaceDirs); if (waitForCompletion) { // Standard execution, waiting for completion diff --git a/core/tools/parseArgs.ts b/core/tools/parseArgs.ts index 543e6ba53..f919ddc92 100644 --- a/core/tools/parseArgs.ts +++ b/core/tools/parseArgs.ts @@ -18,15 +18,38 @@ export function getStringArg( argName: string, allowEmpty = false, ): string { - if (!args || !(argName in args) || typeof args[argName] !== "string") { + if (!args || !(argName in args)) { throw new Error( `\`${argName}\` argument is required${allowEmpty ? "" : " and must not be empty or whitespace-only"}. (type string)`, ); } - if (!allowEmpty && !args[argName].trim()) { + + let value = args[argName]; + + // Handle case where JSON was parsed into an object by the tool call parser. + // If the arguments to the tool call are valid JSON (e.g. the model attempts to create a .json file) + // the earlier call to JSON.parse() will have deeply parsed the returned arguments. + // If that has happened, convert back to string. + if (typeof value === "object" && value !== null) { + try { + value = JSON.stringify(value); + return value; + } catch (e) { + //Swallow this, because it might be fine later. + } + } + + if (typeof value !== "string") { + throw new Error( + `\`${argName}\` argument is required${allowEmpty ? "" : " and must not be empty or whitespace-only"}. (type string)`, + ); + } + + if (!allowEmpty && !value.trim()) { throw new Error(`Argument ${argName} must not be empty or whitespace-only`); } - return args[argName]; + + return value; } export function getOptionalStringArg( diff --git a/core/tools/parseArgs.vitest.ts b/core/tools/parseArgs.vitest.ts index 71bfc0cc5..ed0463259 100644 --- a/core/tools/parseArgs.vitest.ts +++ b/core/tools/parseArgs.vitest.ts @@ -144,6 +144,50 @@ describe("getStringArg", () => { "`name` argument is required and must not be empty or whitespace-only. (type string)", ); }); + + it("should convert parsed JSON object to string for contents parameter", () => { + // This simulates the case where JSON.parse() has converted a JSON string into an object + const args = { contents: { key: "value", number: 123 } }; + const result = getStringArg(args, "contents"); + expect(result).toBe('{"key":"value","number":123}'); + }); + + it("should convert nested JSON object to string for contents parameter", () => { + const args = { + contents: { + user: { + name: "John", + details: { + age: 30, + preferences: ["coding", "reading"], + }, + }, + }, + }; + const result = getStringArg(args, "contents"); + const expected = + '{"user":{"name":"John","details":{"age":30,"preferences":["coding","reading"]}}}'; + expect(result).toBe(expected); + }); + + it("should convert JSON array to string for contents parameter", () => { + const args = { contents: ["item1", "item2", { key: "value" }] }; + const result = getStringArg(args, "contents"); + expect(result).toBe('["item1","item2",{"key":"value"}]'); + }); + + it("should handle contents parameter that is already a string", () => { + const args = { contents: "already a string" }; + const result = getStringArg(args, "contents"); + expect(result).toBe("already a string"); + }); + + it("should handle contents parameter that is null", () => { + const args = { contents: null }; + expect(() => getStringArg(args, "contents")).toThrowError( + "`contents` argument is required and must not be empty or whitespace-only. (type string)", + ); + }); }); describe("getOptionalStringArg", () => { diff --git a/core/util/regexValidator.ts b/core/util/regexValidator.ts index f65520a94..2c00f2ce9 100644 --- a/core/util/regexValidator.ts +++ b/core/util/regexValidator.ts @@ -150,16 +150,6 @@ export function prepareQueryForRipgrep(query: string): { query: string; warning?: string; } { - // Check if it looks like a literal search that should be escaped - if (looksLikeLiteralSearch(query)) { - return { - query: escapeLiteralForRegex(query), - warning: - "Query contained special regex characters and was escaped for literal text search", - }; - } - - // Otherwise validate and sanitize as regex const validation = validateAndSanitizeRegex(query); return { diff --git a/core/util/regexValidator.vitest.ts b/core/util/regexValidator.vitest.ts index 5c0bbd34d..1d25f9d01 100644 --- a/core/util/regexValidator.vitest.ts +++ b/core/util/regexValidator.vitest.ts @@ -111,8 +111,7 @@ describe("looksLikeLiteralSearch", () => { describe("prepareQueryForRipgrep", () => { it("should escape literal-looking queries", () => { const result = prepareQueryForRipgrep("hello.world"); - expect(result.query).toBe("hello\\.world"); - expect(result.warning).toContain("escaped for literal text search"); + expect(result.query).toBe("hello.world"); }); it("should sanitize regex patterns", () => { @@ -130,14 +129,12 @@ describe("prepareQueryForRipgrep", () => { describe("real-world examples", () => { it("should escape file patterns", () => { const result = prepareQueryForRipgrep("*.js"); - expect(result.query).toBe("\\*\\.js"); - expect(result.warning).toContain("escaped for literal text search"); + expect(result.query).toBe("*.js"); }); it("should escape function calls", () => { const result = prepareQueryForRipgrep("console.log()"); - expect(result.query).toBe("console\\.log\\(\\)"); - expect(result.warning).toContain("escaped for literal text search"); + expect(result.query).toBe("console.log()"); }); it("should not escape proper regex patterns", () => { @@ -163,8 +160,7 @@ describe("problematic patterns that originally failed", () => { it("should handle dollar signs in shell patterns", () => { const result = prepareQueryForRipgrep("$(command)"); - expect(result.query).toBe("\\$\\(command\\)"); - expect(result.warning).toContain("escaped for literal text search"); + expect(result.query).toBe("$(command)"); }); it("should handle escaped dollar signs", () => { @@ -253,8 +249,7 @@ describe("patterns that should NOT be over-sanitized", () => { describe("edge cases that could trigger false positives", () => { it("should not treat mathematical expressions as problematic", () => { const result = prepareQueryForRipgrep("a + b * c"); - expect(result.query).toBe("a \\+ b \\* c"); // Should be escaped as literal - expect(result.warning).toContain("escaped for literal text search"); + expect(result.query).toBe("a + b * c"); // Should be escaped as literal }); it("should not break regex that uses word boundaries", () => { @@ -271,8 +266,7 @@ describe("patterns that should NOT be over-sanitized", () => { it("should not treat IPv4 addresses as problematic regex", () => { const result = prepareQueryForRipgrep("192.168.1.1"); - expect(result.query).toBe("192\\.168\\.1\\.1"); // Should be escaped as literal - expect(result.warning).toContain("escaped for literal text search"); + expect(result.query).toBe("192.168.1.1"); // Should be escaped as literal }); it("should not break hex color codes", () => { @@ -285,8 +279,7 @@ describe("patterns that should NOT be over-sanitized", () => { describe("patterns that should preserve user intent", () => { it("should not sanitize intentional regex alternation", () => { const result = prepareQueryForRipgrep("(foo|bar)"); - expect(result.query).toBe("\\(foo\\|bar\\)"); // Should be escaped as literal since unescaped - expect(result.warning).toContain("escaped for literal text search"); + expect(result.query).toBe("(foo|bar)"); // Should be escaped as literal since unescaped }); it("should preserve escaped alternation in regex", () => { @@ -300,11 +293,5 @@ describe("patterns that should NOT be over-sanitized", () => { expect(result.query).toBe("name LIKE '%john%'"); // No regex metacharacters here expect(result.warning).toBeUndefined(); }); - - it("should not break CSS selectors when used as literal search", () => { - const result = prepareQueryForRipgrep(".class-name > div:nth-child(2)"); - expect(result.query).toBe("\\.class-name > div:nth-child\\(2\\)"); - expect(result.warning).toContain("escaped for literal text search"); - }); }); }); diff --git a/docs/customize/deep-dives/autocomplete.mdx b/docs/customize/deep-dives/autocomplete.mdx index d2c2b28ba..b4d669a7b 100644 --- a/docs/customize/deep-dives/autocomplete.mdx +++ b/docs/customize/deep-dives/autocomplete.mdx @@ -21,6 +21,10 @@ If you want to have the best autocomplete experience, we recommend using Codestr ```yaml title="config.yaml" + name: My Config + version: 0.0.1 + schema: v1 + models: - name: Codestral provider: mistral @@ -68,6 +72,10 @@ Then, add the model to your configuration: ```yaml title="config.yaml" + name: My Config + version: 0.0.1 + schema: v1 + models: - name: Qwen 1.5b Autocomplete Model provider: ollama @@ -104,6 +112,10 @@ For example: ```yaml title="config.yaml" +name: My Config +version: 0.0.1 +schema: v1 + models: - name: Qwen3 without Thinking for Autocomplete provider: ollama diff --git a/docs/customize/model-providers/more/SambaNova.mdx b/docs/customize/model-providers/more/SambaNova.mdx index 4b46333d1..3cb4dd3e0 100644 --- a/docs/customize/model-providers/more/SambaNova.mdx +++ b/docs/customize/model-providers/more/SambaNova.mdx @@ -8,6 +8,10 @@ The SambaNova Cloud is a cloud platform for running large AI models with the wor ```yaml title="config.yaml" + name: My Config + version: 0.0.1 + schema: v1 + models: - name: GPT OSS 120B provider: sambanova diff --git a/docs/customize/model-providers/more/asksage.mdx b/docs/customize/model-providers/more/asksage.mdx index 8654d5ca1..76b73a70f 100644 --- a/docs/customize/model-providers/more/asksage.mdx +++ b/docs/customize/model-providers/more/asksage.mdx @@ -33,6 +33,10 @@ Add your Ask Sage model to your Continue configuration file. ```yaml title="config.yaml" + name: My Config + version: 0.0.1 + schema: v1 + models: - name: GPT-4 gov provider: askSage @@ -66,6 +70,10 @@ For secure environments, specify your DoD CA bundle path: ```yaml title="config.yaml" + name: My Config + version: 0.0.1 + schema: v1 + models: - name: GPT-4 gov provider: askSage diff --git a/docs/customize/model-providers/more/cerebras.mdx b/docs/customize/model-providers/more/cerebras.mdx index c8d28888d..32d5598cd 100644 --- a/docs/customize/model-providers/more/cerebras.mdx +++ b/docs/customize/model-providers/more/cerebras.mdx @@ -12,6 +12,10 @@ Cerebras Inference uses specialized silicon to provides fast inference. ```yaml title="config.yaml" + name: My Config + version: 0.0.1 + schema: v1 + models: - name: Cerebras Llama 3.1 70B provider: cerebras diff --git a/docs/customize/model-providers/more/cloudflare.mdx b/docs/customize/model-providers/more/cloudflare.mdx index 1373b637f..7182af581 100644 --- a/docs/customize/model-providers/more/cloudflare.mdx +++ b/docs/customize/model-providers/more/cloudflare.mdx @@ -8,6 +8,10 @@ Cloudflare Workers AI can be used for both chat and tab autocompletion in Contin ```yaml title="config.yaml" + name: My Config + version: 0.0.1 + schema: v1 + models: - name: Llama 3 8B provider: cloudflare diff --git a/docs/customize/model-providers/more/cohere.mdx b/docs/customize/model-providers/more/cohere.mdx index 117465918..d34bb4f97 100644 --- a/docs/customize/model-providers/more/cohere.mdx +++ b/docs/customize/model-providers/more/cohere.mdx @@ -12,6 +12,10 @@ We recommend configuring **Command A** as your chat model. ```yaml title="config.yaml" + name: My Config + version: 0.0.1 + schema: v1 + models: - name: Command A 03-2025 provider: cohere @@ -48,6 +52,10 @@ We recommend configuring **embed-v4.0** as your embeddings model. ```yaml title="config.yaml" + name: My Config + version: 0.0.1 + schema: v1 + models: - name: Cohere Embed v4.0 provider: cohere @@ -77,6 +85,10 @@ We recommend configuring **rerank-v3.5** as your reranking model. ```yaml title="config.yaml" + name: My Config + version: 0.0.1 + schema: v1 + models: - name: Cohere Rerank v3.5 provider: cohere diff --git a/docs/customize/model-providers/more/deepinfra.mdx b/docs/customize/model-providers/more/deepinfra.mdx index 733432fbd..97338a2ad 100644 --- a/docs/customize/model-providers/more/deepinfra.mdx +++ b/docs/customize/model-providers/more/deepinfra.mdx @@ -16,6 +16,10 @@ description: "Configure DeepInfra with Continue to access low-cost inference for ```yaml title="config.yaml" + name: My Config + version: 0.0.1 + schema: v1 + models: - name: provider: deepinfra diff --git a/docs/customize/model-providers/more/deepseek.mdx b/docs/customize/model-providers/more/deepseek.mdx index 6e39c9227..e7441b668 100644 --- a/docs/customize/model-providers/more/deepseek.mdx +++ b/docs/customize/model-providers/more/deepseek.mdx @@ -16,6 +16,10 @@ slug: ../deepseek ```yaml title="config.yaml" + name: My Config + version: 0.0.1 + schema: v1 + models: - name: provider: deepseek diff --git a/docs/customize/model-providers/more/flowise.mdx b/docs/customize/model-providers/more/flowise.mdx index fb504628f..ca0598570 100644 --- a/docs/customize/model-providers/more/flowise.mdx +++ b/docs/customize/model-providers/more/flowise.mdx @@ -8,6 +8,10 @@ description: "Configure Flowise with Continue to integrate with this low-code/no ```yaml title="config.yaml" + name: My Config + version: 0.0.1 + schema: v1 + models: - name: Flowise provider: flowise diff --git a/docs/customize/model-providers/more/function-network.mdx b/docs/customize/model-providers/more/function-network.mdx index b83f5aa40..07ae65577 100644 --- a/docs/customize/model-providers/more/function-network.mdx +++ b/docs/customize/model-providers/more/function-network.mdx @@ -18,6 +18,10 @@ Function Network supports a number of models for chat. We recommend using LLama ```yaml title="config.yaml" + name: My Config + version: 0.0.1 + schema: v1 + models: - name: Llama 3.1 70b provider: function-network @@ -52,6 +56,10 @@ Function Network supports a number of models for autocomplete. We recommend usin ```yaml title="config.yaml" + name: My Config + version: 0.0.1 + schema: v1 + models: - name: Deepseek Coder 6.7b provider: function-network @@ -82,6 +90,10 @@ Function Network supports a number of models for embeddings. We recommend using ```yaml title="config.yaml" + name: My Config + version: 0.0.1 + schema: v1 + models: - name: BGE Base En provider: function-network diff --git a/docs/customize/model-providers/more/groq.mdx b/docs/customize/model-providers/more/groq.mdx index 1d0a2b5e9..0b2a4dd7d 100644 --- a/docs/customize/model-providers/more/groq.mdx +++ b/docs/customize/model-providers/more/groq.mdx @@ -12,6 +12,10 @@ sidebarTitle: "Groq" ```yaml title="config.yaml" + name: My Config + version: 0.0.1 + schema: v1 + models: - name: provider: groq diff --git a/docs/customize/model-providers/more/ipex_llm.mdx b/docs/customize/model-providers/more/ipex_llm.mdx index e82fd2f34..39478c49d 100644 --- a/docs/customize/model-providers/more/ipex_llm.mdx +++ b/docs/customize/model-providers/more/ipex_llm.mdx @@ -14,6 +14,10 @@ IPEX-LLM supports accelerated Ollama backend to be hosted on Intel GPU. Refer to ```yaml title="config.yaml" + name: My Config + version: 0.0.1 + schema: v1 + models: - name: IPEX-LLM provider: ollama @@ -40,6 +44,10 @@ If you would like to reach the Ollama service from another machine, make sure yo ```yaml title="config.yaml" + name: My Config + version: 0.0.1 + schema: v1 + models: - name: IPEX-LLM provider: ollama diff --git a/docs/customize/model-providers/more/kindo.mdx b/docs/customize/model-providers/more/kindo.mdx index 2c0a87c6c..42d5f6896 100644 --- a/docs/customize/model-providers/more/kindo.mdx +++ b/docs/customize/model-providers/more/kindo.mdx @@ -10,6 +10,10 @@ Kindo offers centralized control over your organization's AI operations, ensurin ```yaml title="config.yaml" + name: My Config + version: 0.0.1 + schema: v1 + models: - name: Claude 3.5 Sonnet provider: kindo @@ -38,6 +42,10 @@ Kindo offers centralized control over your organization's AI operations, ensurin ```yaml title="config.yaml" + name: My Config + version: 0.0.1 + schema: v1 + models: - name: WhiteRabbitNeo provider: kindo diff --git a/docs/customize/model-providers/more/lemonade.mdx b/docs/customize/model-providers/more/lemonade.mdx index 79afd957d..62b59cf0d 100644 --- a/docs/customize/model-providers/more/lemonade.mdx +++ b/docs/customize/model-providers/more/lemonade.mdx @@ -33,6 +33,10 @@ If you need custom settings, you can manually configure Lemonade: ```yaml title="config.yaml" + name: My Config + version: 0.0.1 + schema: v1 + models: - name: Lemonade provider: lemonade diff --git a/docs/customize/model-providers/more/llamacpp.mdx b/docs/customize/model-providers/more/llamacpp.mdx index 54699c35a..f2ebb754b 100644 --- a/docs/customize/model-providers/more/llamacpp.mdx +++ b/docs/customize/model-providers/more/llamacpp.mdx @@ -11,6 +11,10 @@ title: "Llama.cpp" ```yaml title="config.yaml" + name: My Config + version: 0.0.1 + schema: v1 + models: - name: provider: llama.cpp diff --git a/docs/customize/model-providers/more/llamafile.mdx b/docs/customize/model-providers/more/llamafile.mdx index 1bf4b534e..736cddc8e 100644 --- a/docs/customize/model-providers/more/llamafile.mdx +++ b/docs/customize/model-providers/more/llamafile.mdx @@ -8,6 +8,10 @@ A [llamafile](https://github.com/Mozilla-Ocho/llamafile#readme) is a self-contai ```yaml title="config.yaml" + name: My Config + version: 0.0.1 + schema: v1 + models: - name: Llamafile provider: llamafile diff --git a/docs/customize/model-providers/more/llamastack.mdx b/docs/customize/model-providers/more/llamastack.mdx index 3f048e6c6..ea6fc19f9 100644 --- a/docs/customize/model-providers/more/llamastack.mdx +++ b/docs/customize/model-providers/more/llamastack.mdx @@ -10,6 +10,10 @@ keywords: [llama, stack, local, api, inference] ```yaml title="config.yaml" + name: My Config + version: 0.0.1 + schema: v1 + models: - name: provider: llamastack diff --git a/docs/customize/model-providers/more/mistral.mdx b/docs/customize/model-providers/more/mistral.mdx index cc6043039..6c8c74561 100644 --- a/docs/customize/model-providers/more/mistral.mdx +++ b/docs/customize/model-providers/more/mistral.mdx @@ -16,6 +16,10 @@ slug: ../mistral ```yaml title="config.yaml" + name: My Config + version: 0.0.1 + schema: v1 + models: - name: provider: mistral diff --git a/docs/customize/model-providers/more/moonshot.mdx b/docs/customize/model-providers/more/moonshot.mdx index 73f7927ed..2fbed3513 100644 --- a/docs/customize/model-providers/more/moonshot.mdx +++ b/docs/customize/model-providers/more/moonshot.mdx @@ -15,6 +15,10 @@ To use Moonshot AI models, you need to: ```yaml title="config.yaml" + name: My Config + version: 0.0.1 + schema: v1 + models: - name: Moonshot provider: moonshot @@ -61,6 +65,10 @@ Here's a complete configuration example: ```yaml title="config.yaml" + name: My Config + version: 0.0.1 + schema: v1 + models: - name: Moonshot-8K provider: moonshot diff --git a/docs/customize/model-providers/more/morph.mdx b/docs/customize/model-providers/more/morph.mdx index 30ef1efec..b6bf8bb57 100644 --- a/docs/customize/model-providers/more/morph.mdx +++ b/docs/customize/model-providers/more/morph.mdx @@ -8,6 +8,10 @@ Morph provides a fast apply model that helps you quickly and accurately apply co ```yaml title="config.yaml" + name: My Config + version: 0.0.1 + schema: v1 + models: - uses: morphllm/morph-v0 with: @@ -15,6 +19,10 @@ Morph provides a fast apply model that helps you quickly and accurately apply co ``` or ```yaml title="config.yaml" + name: My Config + version: 0.0.1 + schema: v1 + - name: Morph Fast Apply provider: openai model: morph-v2 @@ -54,6 +62,10 @@ We recommend configuring **morph-embedding-v2** as your embeddings model. ```yaml title="config.yaml" + name: My Config + version: 0.0.1 + schema: v1 + models: - name: Morph Embeddings provider: openai @@ -85,6 +97,10 @@ We recommend configuring **morph-rerank-v2** as your reranking model. ```yaml title="config.yaml" + name: My Config + version: 0.0.1 + schema: v1 + models: - name: Morph Reranker provider: cohere diff --git a/docs/customize/model-providers/more/msty.mdx b/docs/customize/model-providers/more/msty.mdx index 9d889bd0d..6e15cc030 100644 --- a/docs/customize/model-providers/more/msty.mdx +++ b/docs/customize/model-providers/more/msty.mdx @@ -8,6 +8,10 @@ description: "Configure Msty with Continue to easily run both online and local o ```yaml title="config.yaml" + name: My Config + version: 0.0.1 + schema: v1 + models: - name: Msty provider: msty @@ -47,6 +51,10 @@ If you need to send custom headers for authentication, you may use the `requestO ```yaml title="config.yaml" + name: My Config + version: 0.0.1 + schema: v1 + models: - name: Msty provider: msty diff --git a/docs/customize/model-providers/more/nebius.mdx b/docs/customize/model-providers/more/nebius.mdx index b3491908c..eb100bf5f 100644 --- a/docs/customize/model-providers/more/nebius.mdx +++ b/docs/customize/model-providers/more/nebius.mdx @@ -14,6 +14,10 @@ Available models can be found on the [Nebius AI Studio models page](https://stud ```yaml title="config.yaml" + name: My Config + version: 0.0.1 + schema: v1 + models: - name: DeepSeek R1 provider: nebius @@ -44,6 +48,10 @@ Available models can be found on the [Nebius AI Studio embeddings page](https:// ```yaml title="config.yaml" + name: My Config + version: 0.0.1 + schema: v1 + models: - name: BAAI Embedder provider: nebius diff --git a/docs/customize/model-providers/more/novita.mdx b/docs/customize/model-providers/more/novita.mdx index bb01ef77a..c661fc786 100644 --- a/docs/customize/model-providers/more/novita.mdx +++ b/docs/customize/model-providers/more/novita.mdx @@ -8,6 +8,10 @@ description: "Configure Novita AI with Continue to access their affordable and r ```yaml title="config.yaml" + name: My Config + version: 0.0.1 + schema: v1 + models: - name: Llama 3.1 8B provider: novita diff --git a/docs/customize/model-providers/more/nvidia.mdx b/docs/customize/model-providers/more/nvidia.mdx index 534583b31..bfb66e1a8 100644 --- a/docs/customize/model-providers/more/nvidia.mdx +++ b/docs/customize/model-providers/more/nvidia.mdx @@ -11,6 +11,10 @@ title: "NVIDIA" ```yaml title="config.yaml" + name: My Config + version: 0.0.1 + schema: v1 + models: - name: provider: nvidia diff --git a/docs/customize/model-providers/more/openvino_model_server.mdx b/docs/customize/model-providers/more/openvino_model_server.mdx index 8c7fc889a..1ff6f3bdf 100644 --- a/docs/customize/model-providers/more/openvino_model_server.mdx +++ b/docs/customize/model-providers/more/openvino_model_server.mdx @@ -14,6 +14,10 @@ OpenVINO™ Mode Server supports text generation via OpenAI Chat Completions API Example configuration once OVMS is launched: ```yaml title="config.yaml" +name: My Config +version: 0.0.1 +schema: v1 + models: - name: OVMS CodeLlama-7b-Instruct-hf provider: openai diff --git a/docs/customize/model-providers/more/ovhcloud.mdx b/docs/customize/model-providers/more/ovhcloud.mdx index 3a7b00549..433534434 100644 --- a/docs/customize/model-providers/more/ovhcloud.mdx +++ b/docs/customize/model-providers/more/ovhcloud.mdx @@ -20,6 +20,10 @@ Check our [catalog](https://endpoints.ai.cloud.ovh.net/catalog) to see all of ou ```yaml title="config.yaml" + name: My Config + version: 0.0.1 + schema: v1 + models: - name: Qwen2.5-Coder-32B-Instruct provider: ovhcloud @@ -50,6 +54,10 @@ We recommend configuring **bge-multilingual-gemma2** as your embeddings model. ```yaml title="config.yaml" + name: My Config + version: 0.0.1 + schema: v1 + models: - name: BGE Multilingual Gemma2 provider: ovhcloud diff --git a/docs/customize/model-providers/more/replicatellm.mdx b/docs/customize/model-providers/more/replicatellm.mdx index 939072cf2..51c5385f6 100644 --- a/docs/customize/model-providers/more/replicatellm.mdx +++ b/docs/customize/model-providers/more/replicatellm.mdx @@ -8,6 +8,10 @@ Replicate is a great option for newly released language models or models that yo ```yaml title="config.yaml" + name: My Config + version: 0.0.1 + schema: v1 + models: - name: Replicate CodeLLama provider: replicate diff --git a/docs/customize/model-providers/more/sagemaker.mdx b/docs/customize/model-providers/more/sagemaker.mdx index ba1ab58c6..43505d55b 100644 --- a/docs/customize/model-providers/more/sagemaker.mdx +++ b/docs/customize/model-providers/more/sagemaker.mdx @@ -10,6 +10,10 @@ Here is an example Sagemaker configuration setup: ```yaml title="config.yaml" + name: My Config + version: 0.0.1 + schema: v1 + models: - name: deepseek-6.7b-instruct provider: sagemaker diff --git a/docs/customize/model-providers/more/scaleway.mdx b/docs/customize/model-providers/more/scaleway.mdx index 5b840d1a1..e6c605d4d 100644 --- a/docs/customize/model-providers/more/scaleway.mdx +++ b/docs/customize/model-providers/more/scaleway.mdx @@ -20,6 +20,10 @@ We recommend configuring **Qwen2.5-Coder-32B-Instruct** as your chat model. ```yaml title="config.yaml" + name: My Config + version: 0.0.1 + schema: v1 + models: - name: Qwen2.5-Coder-32B-Instruct provider: scaleway @@ -56,6 +60,10 @@ We recommend configuring **BGE-Multilingual-Gemma2** as your embeddings model. ```yaml title="config.yaml" + name: My Config + version: 0.0.1 + schema: v1 + models: - name: BGE Multilingual Gemma2 provider: scaleway diff --git a/docs/customize/model-providers/more/siliconflow.mdx b/docs/customize/model-providers/more/siliconflow.mdx index 1b008dc6e..f75ce2a9c 100644 --- a/docs/customize/model-providers/more/siliconflow.mdx +++ b/docs/customize/model-providers/more/siliconflow.mdx @@ -15,6 +15,10 @@ We recommend configuring **Qwen/Qwen2.5-Coder-32B-Instruct** as your chat model. ```yaml title="config.yaml" + name: My Config + version: 0.0.1 + schema: v1 + models: - name: Qwen provider: siliconflow @@ -47,6 +51,10 @@ We recommend configuring **Qwen/Qwen2.5-Coder-7B-Instruct** as your autocomplete ```yaml title="config.yaml" + name: My Config + version: 0.0.1 + schema: v1 + models: - name: Qwen provider: siliconflow diff --git a/docs/customize/model-providers/more/textgenwebui.mdx b/docs/customize/model-providers/more/textgenwebui.mdx index 29ac9fa01..032e6a681 100644 --- a/docs/customize/model-providers/more/textgenwebui.mdx +++ b/docs/customize/model-providers/more/textgenwebui.mdx @@ -8,6 +8,10 @@ TextGenWebUI is a comprehensive, open-source language model UI and local server. ```yaml title="config.yaml" + name: My Config + version: 0.0.1 + schema: v1 + models: - name: Text Generation WebUI provider: text-gen-webui diff --git a/docs/customize/model-providers/more/together.mdx b/docs/customize/model-providers/more/together.mdx index e9a98b9b7..7de616a44 100644 --- a/docs/customize/model-providers/more/together.mdx +++ b/docs/customize/model-providers/more/together.mdx @@ -16,6 +16,10 @@ sidebarTitle: "Together AI" ```yaml title="config.yaml" + name: My Config + version: 0.0.1 + schema: v1 + models: - name: provider: together diff --git a/docs/customize/model-providers/more/vllm.mdx b/docs/customize/model-providers/more/vllm.mdx index 3f3bdd643..57c99dd39 100644 --- a/docs/customize/model-providers/more/vllm.mdx +++ b/docs/customize/model-providers/more/vllm.mdx @@ -16,6 +16,10 @@ We recommend configuring **Llama3.1 8B** as your chat model. ```yaml title="config.yaml" + name: My Config + version: 0.0.1 + schema: v1 + models: - name: Llama3.1 8B Instruct provider: vllm @@ -46,6 +50,10 @@ We recommend configuring **Qwen2.5-Coder 1.5B** as your autocomplete model. ```yaml title="config.yaml" + name: My Config + version: 0.0.1 + schema: v1 + models: - name: Qwen2.5-Coder 1.5B provider: vllm @@ -76,6 +84,10 @@ We recommend configuring **Nomic Embed Text** as your embeddings model. ```yaml title="config.yaml" + name: My Config + version: 0.0.1 + schema: v1 + models: - name: VLLM Nomad Embed Text provider: vllm diff --git a/docs/customize/model-providers/more/watsonx.mdx b/docs/customize/model-providers/more/watsonx.mdx index aafb45b1d..7681b5b27 100644 --- a/docs/customize/model-providers/more/watsonx.mdx +++ b/docs/customize/model-providers/more/watsonx.mdx @@ -46,6 +46,10 @@ Add the following configuration: ```yaml title="config.yaml" + name: My Config + version: 0.0.1 + schema: v1 + models: - name: watsonx - Model Name provider: watsonx @@ -83,6 +87,10 @@ If you are using a custom deployment endpoint, set `deploymentID` to the model's ```yaml title="config.yaml" + name: My Config + version: 0.0.1 + schema: v1 + models: - name: watsonx - Model Name provider: watsonx @@ -121,6 +129,10 @@ You can also configure generation parameters, such as temperature, topP, topK, f ```yaml title="config.yaml" + name: My Config + version: 0.0.1 + schema: v1 + models: - name: Granite Code 20b provider: watsonx @@ -180,6 +192,10 @@ Granite models are recommended for tab auto complete. The configuration is simil ```yaml title="config.yaml" + name: My Config + version: 0.0.1 + schema: v1 + models: - name: Granite Code 8b provider: watsonx @@ -217,6 +233,10 @@ To view the list of available embeddings models, visit [this page](https://datap ```yaml title="config.yaml" + name: My Config + version: 0.0.1 + schema: v1 + models: - name: Watsonx Embedder provider: watsonx @@ -250,6 +270,10 @@ To view the list of available embeddings models, visit [this page](https://datap ```yaml title="config.yaml" + name: My Config + version: 0.0.1 + schema: v1 + models: - name: Watsonx Reranker provider: watsonx diff --git a/docs/customize/model-providers/more/xAI.mdx b/docs/customize/model-providers/more/xAI.mdx index c90b2196e..a01e22c39 100644 --- a/docs/customize/model-providers/more/xAI.mdx +++ b/docs/customize/model-providers/more/xAI.mdx @@ -12,6 +12,10 @@ slug: ../xai ```yaml title="config.yaml" + name: My Config + version: 0.0.1 + schema: v1 + models: - name: provider: xai diff --git a/docs/customize/model-providers/top-level/anthropic.mdx b/docs/customize/model-providers/top-level/anthropic.mdx index 7231e93e9..cd46a20b7 100644 --- a/docs/customize/model-providers/top-level/anthropic.mdx +++ b/docs/customize/model-providers/top-level/anthropic.mdx @@ -17,6 +17,10 @@ sidebarTitle: "Anthropic" ```yaml title="config.yaml" + name: My Config + version: 0.0.1 + schema: v1 + models: - name: provider: anthropic @@ -41,7 +45,7 @@ sidebarTitle: "Anthropic" - **Check out a more advanced configuration [here](https://hub.continue.dev/anthropic/claude-4-sonnet?view=config)** + **Check out a more advanced configuration [here](https://hub.continue.dev/anthropic/claude-sonnet-4-5?view=config)** ## How to Enable Prompt Caching with Claude @@ -53,6 +57,10 @@ To enable caching of the system message and the turn-by-turn conversation, updat ```yaml title="config.yaml" + name: My Config + version: 0.0.1 + schema: v1 + models: - name: provider: anthropic diff --git a/docs/customize/model-providers/top-level/azure.mdx b/docs/customize/model-providers/top-level/azure.mdx index 62275b321..4fc3f86db 100644 --- a/docs/customize/model-providers/top-level/azure.mdx +++ b/docs/customize/model-providers/top-level/azure.mdx @@ -11,6 +11,10 @@ sidebarTitle: "Azure AI Foundry" ```yaml title="config.yaml" + name: My Config + version: 0.0.1 + schema: v1 + models: - name: provider: azure @@ -55,6 +59,10 @@ For example, a Target URI of `https://just-an-example.openai.azure.com/openai/de ```yaml title="config.yaml" + name: My Config + version: 0.0.1 + schema: v1 + models: - name: model: diff --git a/docs/customize/model-providers/top-level/bedrock.mdx b/docs/customize/model-providers/top-level/bedrock.mdx index 5b3d581ef..905428d07 100644 --- a/docs/customize/model-providers/top-level/bedrock.mdx +++ b/docs/customize/model-providers/top-level/bedrock.mdx @@ -17,6 +17,10 @@ sidebarTitle: "Amazon Bedrock" ```yaml title="config.yaml" + name: My Config + version: 0.0.1 + schema: v1 + models: - name: provider: bedrock @@ -57,6 +61,10 @@ messages between requests. Enable this behavior by adding configuration. ```yaml title="config.yaml" +name: My Config +version: 0.0.1 +schema: v1 + models: - name: provider: bedrock @@ -84,6 +92,10 @@ You can also use an AWS `accessKeyId` and `secretAccessKey` for authentication i ```yaml title="config.yaml" + name: My Config + version: 0.0.1 + schema: v1 + models: - name: provider: bedrock @@ -121,6 +133,10 @@ To setup Bedrock using custom imported models, add the following to your config ```yaml title="config.yaml" + name: My Config + version: 0.0.1 + schema: v1 + models: - name: provider: bedrockimport diff --git a/docs/customize/model-providers/top-level/gemini.mdx b/docs/customize/model-providers/top-level/gemini.mdx index 40ca45ba3..e86000bb8 100644 --- a/docs/customize/model-providers/top-level/gemini.mdx +++ b/docs/customize/model-providers/top-level/gemini.mdx @@ -17,6 +17,10 @@ sidebarTitle: "Gemini" ```yaml title="config.yaml" + name: My Config + version: 0.0.1 + schema: v1 + models: - name: provider: gemini diff --git a/docs/customize/model-providers/top-level/inception.mdx b/docs/customize/model-providers/top-level/inception.mdx index cd1225f7d..a18b89be1 100644 --- a/docs/customize/model-providers/top-level/inception.mdx +++ b/docs/customize/model-providers/top-level/inception.mdx @@ -17,6 +17,10 @@ sidebarTitle: "Inception" ```yaml title="config.yaml" + name: My Config + version: 0.0.1 + schema: v1 + models: - name: provider: inception diff --git a/docs/customize/model-providers/top-level/lmstudio.mdx b/docs/customize/model-providers/top-level/lmstudio.mdx index 06d7fa77f..d151d17b6 100644 --- a/docs/customize/model-providers/top-level/lmstudio.mdx +++ b/docs/customize/model-providers/top-level/lmstudio.mdx @@ -15,6 +15,10 @@ title: "LM Studio" ```yaml title="config.yaml" + name: My Config + version: 0.0.1 + schema: v1 + models: - name: provider: lmstudio diff --git a/docs/customize/model-providers/top-level/ollama.mdx b/docs/customize/model-providers/top-level/ollama.mdx index 77cd6757a..fa608672f 100644 --- a/docs/customize/model-providers/top-level/ollama.mdx +++ b/docs/customize/model-providers/top-level/ollama.mdx @@ -17,6 +17,10 @@ sidebarTitle: "Ollama" ```yaml title="config.yaml" + name: My Config + version: 0.0.1 + schema: v1 + models: - name: provider: ollama @@ -51,6 +55,10 @@ Ollama models usually have their capabilities auto-detected correctly. However, ```yaml title="config.yaml" + name: My Config + version: 0.0.1 + schema: v1 + models: - name: provider: ollama diff --git a/docs/customize/model-providers/top-level/openai.mdx b/docs/customize/model-providers/top-level/openai.mdx index 3249e27c9..20f735ad1 100644 --- a/docs/customize/model-providers/top-level/openai.mdx +++ b/docs/customize/model-providers/top-level/openai.mdx @@ -17,6 +17,10 @@ sidebarTitle: "OpenAI" ```yaml title="config.yaml" + name: My Config + version: 0.0.1 + schema: v1 + models: - name: provider: openai @@ -63,6 +67,10 @@ If you are using an OpenAI API compatible providers, you can change the `apiBase ```yaml title="config.yaml" + name: My Config + version: 0.0.1 + schema: v1 + models: - name: provider: openai @@ -95,6 +103,10 @@ To force usage of `completions` instead of `chat/completions` endpoint you can s ```yaml title="config.yaml" + name: My Config + version: 0.0.1 + schema: v1 + models: - name: provider: openai diff --git a/docs/customize/model-providers/top-level/openrouter.mdx b/docs/customize/model-providers/top-level/openrouter.mdx index de4aee896..9f429c6e5 100644 --- a/docs/customize/model-providers/top-level/openrouter.mdx +++ b/docs/customize/model-providers/top-level/openrouter.mdx @@ -14,6 +14,10 @@ sidebarTitle: "OpenRouter" ```yaml title="config.yaml" + name: My Config + version: 0.0.1 + schema: v1 + models: - name: provider: openrouter @@ -52,6 +56,10 @@ For example, to prevent extra long prompts from being compressed, you can explic ```yaml title="config.yaml" + name: My Config + version: 0.0.1 + schema: v1 + models: - name: provider: openrouter @@ -97,6 +105,10 @@ If you're experiencing issues with Agent mode or tools not working, you can add ```yaml title="config.yaml" + name: My Config + version: 0.0.1 + schema: v1 + models: - name: provider: openrouter diff --git a/docs/customize/model-providers/top-level/vertexai.mdx b/docs/customize/model-providers/top-level/vertexai.mdx index 0a5892a67..d85c11043 100644 --- a/docs/customize/model-providers/top-level/vertexai.mdx +++ b/docs/customize/model-providers/top-level/vertexai.mdx @@ -14,6 +14,10 @@ sidebarTitle: "Vertex AI" ```yaml title="config.yaml" + name: My Config + version: 0.0.1 + schema: v1 + models: - name: provider: vertexai @@ -47,6 +51,10 @@ You can use Vertex AI in [express mode](https://cloud.google.com/vertex-ai/gener ```yaml title="config.yaml" + name: My Config + version: 0.0.1 + schema: v1 + models: - name: provider: vertexai diff --git a/docs/customize/model-roles/chat.mdx b/docs/customize/model-roles/chat.mdx index e62179b5b..ba45fee75 100644 --- a/docs/customize/model-roles/chat.mdx +++ b/docs/customize/model-roles/chat.mdx @@ -29,6 +29,10 @@ Our current top recommendations are Claude Opus 4.5 and Claude Sonnet 4 from [An ```yaml title="config.yaml" + name: My Config + version: 0.0.1 + schema: v1 + models: - name: Claude Opus 4.5 provider: anthropic @@ -57,6 +61,10 @@ If you prefer to use an open-weight model, then the Gemma family of Models from ```yaml title="config.yaml" + name: My Config + version: 0.0.1 + schema: v1 + models: - name: "Gemma 3 27B" provider: "ollama" @@ -65,6 +73,10 @@ If you prefer to use an open-weight model, then the Gemma family of Models from ```yaml title="config.yaml" + name: My Config + version: 0.0.1 + schema: v1 + models: - name: "Gemma 3 27B" provider: "together" @@ -86,6 +98,10 @@ If you prefer to use a model from [OpenAI](../model-providers/top-level/openai), ```yaml title="config.yaml" + name: My Config + version: 0.0.1 + schema: v1 + models: - name: GPT-5.1 provider: openai @@ -105,6 +121,10 @@ If you prefer to use a model from [xAI](../model-providers/more/xAI), then we re ```yaml title="config.yaml" + name: My Config + version: 0.0.1 + schema: v1 + models: - name: Grok-4.1 provider: xAI @@ -124,6 +144,10 @@ If you prefer to use a model from [Google](../model-providers/top-level/gemini), ```yaml title="config.yaml" + name: My Config + version: 0.0.1 + schema: v1 + models: - name: Gemini 3 Pro provider: gemini @@ -157,6 +181,10 @@ If your local machine can run an 8B parameter model, then we recommend running L ```yaml title="config.yaml" + name: My Config + version: 0.0.1 + schema: v1 + models: - name: Llama 3.1 8B provider: ollama @@ -165,6 +193,10 @@ If your local machine can run an 8B parameter model, then we recommend running L ```yaml title="config.yaml" + name: My Config + version: 0.0.1 + schema: v1 + models: - name: Llama 3.1 8B provider: lmstudio @@ -173,6 +205,10 @@ If your local machine can run an 8B parameter model, then we recommend running L ```yaml title="config.yaml" + name: My Config + version: 0.0.1 + schema: v1 + models: - name: Llama 3.1 8B provider: msty @@ -203,6 +239,10 @@ If your local machine can run a 16B parameter model, then we recommend running D ```yaml title="config.yaml" + name: My Config + version: 0.0.1 + schema: v1 + models: - name: DeepSeek Coder 2 16B provider: ollama @@ -211,6 +251,10 @@ If your local machine can run a 16B parameter model, then we recommend running D ```yaml title="config.yaml" + name: My Config + version: 0.0.1 + schema: v1 + models: - name: DeepSeek Coder 2 16B provider: lmstudio @@ -219,6 +263,10 @@ If your local machine can run a 16B parameter model, then we recommend running D ```yaml title="config.yaml" + name: My Config + version: 0.0.1 + schema: v1 + models: - name: DeepSeek Coder 2 16B provider: msty diff --git a/docs/customize/model-roles/edit.mdx b/docs/customize/model-roles/edit.mdx index 3fe2b9143..425fd20a3 100644 --- a/docs/customize/model-roles/edit.mdx +++ b/docs/customize/model-roles/edit.mdx @@ -11,6 +11,10 @@ It's often useful to select a different model to respond to Edit instructions th In Continue, you can add `edit` to a model's roles to specify that it can be used for Edit requests. If no edit models are specified, the selected `chat` model is used. ```yaml title="config.yaml" +name: My Config +version: 0.0.1 +schema: v1 + models: - name: Claude 4 Sonnet provider: anthropic diff --git a/docs/customize/model-roles/embeddings.mdx b/docs/customize/model-roles/embeddings.mdx index 91e172ca2..95cd5ff29 100644 --- a/docs/customize/model-roles/embeddings.mdx +++ b/docs/customize/model-roles/embeddings.mdx @@ -37,6 +37,10 @@ After obtaining an API key from [here](https://www.voyageai.com/), you can confi ```yaml title="config.yaml" + name: My Config + version: 0.0.1 + schema: v1 + models: - name: Voyage Code 3 provider: voyage @@ -70,6 +74,10 @@ See [here](../model-providers/top-level/ollama#embeddings-model) for instruction ```yaml title="config.yaml" + name: My Config + version: 0.0.1 + schema: v1 + models: - name: default-transformers provider: transformers.js @@ -99,6 +107,10 @@ See [here](../model-providers/top-level/ollama#embeddings-model) for instruction */} ```yaml title="config.yaml" + name: My Config + version: 0.0.1 + schema: v1 + models: - name: Huggingface TEI Embedder provider: huggingface-tei diff --git a/docs/customize/model-roles/reranking.mdx b/docs/customize/model-roles/reranking.mdx index 7d057cbb4..edacf773a 100644 --- a/docs/customize/model-roles/reranking.mdx +++ b/docs/customize/model-roles/reranking.mdx @@ -24,12 +24,20 @@ Voyage AI offers the best reranking model for code with their `rerank-2` model. ```yaml title="config.yaml" + name: My Config + version: 0.0.1 + schema: v1 + models: - uses: voyageai/rerank-2 ``` ```yaml title="config.yaml" + name: My Config + version: 0.0.1 + schema: v1 + models: - name: My Voyage Reranker provider: voyage @@ -52,6 +60,10 @@ See Cohere's documentation for rerankers [here](https://docs.cohere.com/docs/rer */} ```yaml title="config.yaml" + name: My Config + version: 0.0.1 + schema: v1 + models: - name: Cohere Reranker provider: cohere @@ -74,6 +86,10 @@ If you only have access to a single LLM, then you can use it as a reranker. This */} ```yaml title="config.yaml" + name: My Config + version: 0.0.1 + schema: v1 + models: - name: LLM Reranker provider: openai @@ -97,6 +113,10 @@ If you only have access to a single LLM, then you can use it as a reranker. This */} ```yaml title="config.yaml" + name: My Config + version: 0.0.1 + schema: v1 + models: - name: Huggingface-tei Reranker provider: huggingface-tei diff --git a/docs/customize/models.mdx b/docs/customize/models.mdx index a21827a30..85bcf25c4 100644 --- a/docs/customize/models.mdx +++ b/docs/customize/models.mdx @@ -30,10 +30,10 @@ Read more about [model roles](/customize/model-roles), [model capabilities](/cus # Frontier Models -[Claude 4 Sonnet](https://hub.continue.dev/anthropic/claude-4-sonnet) from Anthropic +[Claude Sonnet 4.5](https://hub.continue.dev/anthropic/claude-sonnet-4-5) from Anthropic 1. Get your API key from [Anthropic](https://console.anthropic.com/) -2. Add [Claude 4 Sonnet](https://hub.continue.dev/anthropic/claude-4-sonnet) to a config on Continue Mission Control +2. Add[Claude Sonnet 4.5](https://hub.continue.dev/anthropic/claude-sonnet-4-5) to a config on Continue Mission Control 3. Add `ANTHROPIC_API_KEY` as a [User Secret](https://docs.continue.dev/mission-control/secrets/secret-types#user-secrets) on Continue Mission Control [here](https://hub.continue.dev/settings/secrets) 4. Click `Reload config` in the config selector in the Continue IDE extension diff --git a/docs/guides/atlassian-mcp-continue-cookbook.mdx b/docs/guides/atlassian-mcp-continue-cookbook.mdx index dcfd64a99..fa47a9aed 100644 --- a/docs/guides/atlassian-mcp-continue-cookbook.mdx +++ b/docs/guides/atlassian-mcp-continue-cookbook.mdx @@ -141,6 +141,10 @@ For all options, first: Install from Hub (recommended) or add YAML manually. Minimal YAML example: ```yaml title="config.yaml" + name: My Config + version: 0.0.1 + schema: v1 + mcpServers: - name: Atlassian Rovo MCP type: sse diff --git a/docs/guides/github-mcp-continue-cookbook.mdx b/docs/guides/github-mcp-continue-cookbook.mdx index b994025de..d60cd4a34 100644 --- a/docs/guides/github-mcp-continue-cookbook.mdx +++ b/docs/guides/github-mcp-continue-cookbook.mdx @@ -83,6 +83,10 @@ After ensuring you meet the **Prerequisites** above, you have two paths to get s Install from Hub (recommended) or add YAML manually. Minimal YAML example: ```yaml title="config.yaml" + name: My Config + version: 0.0.1 + schema: v1 + mcpServers: - name: GitHub MCP command: npx diff --git a/docs/package-lock.json b/docs/package-lock.json index 53f6f1cf9..4d2bfbbc8 100644 --- a/docs/package-lock.json +++ b/docs/package-lock.json @@ -1189,7 +1189,6 @@ "resolved": "https://registry.npmjs.org/@isaacs/cliui/-/cliui-8.0.2.tgz", "integrity": "sha512-O8jcjabXaleOG9DQ0+ARXWZBTfnP4WNAqzuiJK7ll44AmxGKv/J2M4TPjxjY3znBCfvBXFzucm1twdyFybFqEA==", "license": "ISC", - "peer": true, "dependencies": { "string-width": "^5.1.2", "string-width-cjs": "npm:string-width@^4.2.0", @@ -1206,15 +1205,13 @@ "version": "9.2.2", "resolved": "https://registry.npmjs.org/emoji-regex/-/emoji-regex-9.2.2.tgz", "integrity": "sha512-L18DaJsXSUk2+42pv8mLs5jJT2hqFkFE4j21wOmgbUqsZ2hL72NsUU785g9RXgo3s0ZNgVl42TiHp3ZtOv/Vyg==", - "license": "MIT", - "peer": true + "license": "MIT" }, "node_modules/@isaacs/cliui/node_modules/string-width": { "version": "5.1.2", "resolved": "https://registry.npmjs.org/string-width/-/string-width-5.1.2.tgz", "integrity": "sha512-HnLOCR3vjcY8beoNLtcjZ5/nxn2afmME6lhrDrebokqMap+XbeW8n9TXpPDOqdGK5qcI3oT0GKTW6wC7EMiVqA==", "license": "MIT", - "peer": true, "dependencies": { "eastasianwidth": "^0.2.0", "emoji-regex": "^9.2.2", @@ -1232,7 +1229,6 @@ "resolved": "https://registry.npmjs.org/wrap-ansi/-/wrap-ansi-8.1.0.tgz", "integrity": "sha512-si7QWI6zUMq56bESFvagtmzMdGOtoxfR+Sez11Mobfc7tm+VkUckk9bW2UeffTGVUbOksxmSw0AA2gs8g71NCQ==", "license": "MIT", - "peer": true, "dependencies": { "ansi-styles": "^6.1.0", "string-width": "^5.0.1", @@ -1859,6 +1855,7 @@ "resolved": "https://registry.npmjs.org/@opentelemetry/api/-/api-1.9.0.tgz", "integrity": "sha512-3giAOQvZiH5F9bMlMiv8+GSPMeqg0dbaeo58/0SlA9sxSqZhnUtxzX9/2FzyhS9sWQf5S0GJE0AKBrFqjpeYcg==", "license": "Apache-2.0", + "peer": true, "engines": { "node": ">=8.0.0" } @@ -1868,7 +1865,6 @@ "resolved": "https://registry.npmjs.org/@opentelemetry/api-logs/-/api-logs-0.208.0.tgz", "integrity": "sha512-CjruKY9V6NMssL/T1kAFgzosF1v9o6oeN+aX5JB/C/xPNtmgIJqcXHG7fA82Ou1zCpWGl4lROQUKwUNE1pMCyg==", "license": "Apache-2.0", - "peer": true, "dependencies": { "@opentelemetry/api": "^1.3.0" }, @@ -3129,6 +3125,7 @@ "resolved": "https://registry.npmjs.org/@orpc/contract/-/contract-1.8.1.tgz", "integrity": "sha512-zw0xgRxOyR/otX+4UeGEm0VjuMH/AeVbEuWvPNRJC8xxvQpaPJFo8Nr8eaywqSUZo1DnIS+pkwsdipa7GgFl7A==", "license": "MIT", + "peer": true, "dependencies": { "@orpc/client": "1.8.1", "@orpc/shared": "1.8.1", @@ -3234,6 +3231,7 @@ "resolved": "https://registry.npmjs.org/@orpc/server/-/server-1.8.1.tgz", "integrity": "sha512-Aei7KJSMG9daNdubREeDYKCnmSRTnZT7V1Cx0NFLYDYqx8Bdil2J2InJghsio6AZdJUWLNq/zMm6QDu3NN2E6g==", "license": "MIT", + "peer": true, "dependencies": { "@orpc/client": "1.8.1", "@orpc/contract": "1.8.1", @@ -3483,7 +3481,6 @@ "integrity": "sha512-+1VkjdD0QBLPodGrJUeqarH8VAIvQODIbwh9XpP5Syisf7YoQgsJKPNFoqqLQlu+VQ/tVSshMR6loPMn8U+dPg==", "license": "MIT", "optional": true, - "peer": true, "engines": { "node": ">=14" } @@ -4061,8 +4058,7 @@ "version": "1.2.5", "resolved": "https://registry.npmjs.org/@sqltools/formatter/-/formatter-1.2.5.tgz", "integrity": "sha512-Uy0+khmZqUrUGm5dmMqVlnvufZRSK0FbYzVgp0UMstm+F5+W2/jnEEQyc9vo1ZR/E5ZI/B1WjjoTqBqwJL6Krw==", - "license": "MIT", - "peer": true + "license": "MIT" }, "node_modules/@standard-schema/spec": { "version": "1.0.0", @@ -4667,6 +4663,7 @@ "resolved": "https://registry.npmjs.org/acorn/-/acorn-8.15.0.tgz", "integrity": "sha512-NZyJarBfL7nWwIq+FDL6Zp/yHEhePMNnnJ0y3qfieCrmNvYct8uvtiV41UvlSe6apAfk0fY1FbWx+NwfmpvtTg==", "license": "MIT", + "peer": true, "bin": { "acorn": "bin/acorn" }, @@ -4736,6 +4733,7 @@ "integrity": "sha512-B/gBuNg5SiMTrPkC+A2+cW0RszwxYmn6VYxB/inlBStS5nx6xHIt/ehKRhIMhqusl7a8LjQoZnjCs5vhwxOQ1g==", "dev": true, "license": "MIT", + "peer": true, "dependencies": { "fast-deep-equal": "^3.1.3", "fast-uri": "^3.0.1", @@ -4835,7 +4833,6 @@ "resolved": "https://registry.npmjs.org/ansis/-/ansis-3.17.0.tgz", "integrity": "sha512-0qWUglt9JEqLFr3w1I1pbrChn1grhaiAR2ocX1PP/flRmxgtwTzPFFFnfIlD6aMOLQZgSuCRlidD70lvx8yhzg==", "license": "ISC", - "peer": true, "engines": { "node": ">=14" } @@ -4859,7 +4856,6 @@ "resolved": "https://registry.npmjs.org/app-root-path/-/app-root-path-3.1.0.tgz", "integrity": "sha512-biN3PwB2gUtjaYy/isrU3aNWI5w+fAfvHkSvCKeQGxhmYpwKFUxudR3Yya+KqVRHBmEDYh+/lTozYCFbmzX4nA==", "license": "MIT", - "peer": true, "engines": { "node": ">= 6.0.0" } @@ -5965,7 +5961,6 @@ "resolved": "https://registry.npmjs.org/cross-spawn/-/cross-spawn-7.0.6.tgz", "integrity": "sha512-uV2QOWP2nWzsy2aMp8aRibhi9dlzF5Hgh5SHaB9OiTGEyDTiJJyx0uy51QXdyWbtAHNua4XJzUKca3OzKUd3vA==", "license": "MIT", - "peer": true, "dependencies": { "path-key": "^3.1.0", "shebang-command": "^2.0.0", @@ -5980,8 +5975,7 @@ "resolved": "https://registry.npmjs.org/csstype/-/csstype-3.1.3.tgz", "integrity": "sha512-M1uQkMl8rQK/szD0LNhtqxIPLpimGm8sOBwU7lLnCpSbTyY3yeU1Vc7l4KT5zT4s/yOxHH5O7tIuuLOCnLADRw==", "devOptional": true, - "license": "MIT", - "peer": true + "license": "MIT" }, "node_modules/data-uri-to-buffer": { "version": "6.0.2", @@ -6051,8 +6045,7 @@ "version": "1.11.19", "resolved": "https://registry.npmjs.org/dayjs/-/dayjs-1.11.19.tgz", "integrity": "sha512-t5EcLVS6QPBNqM2z8fakk/NKel+Xzshgt8FFKAn+qwlD1pzZWxh0nVCrvFK7ZDb6XucZeF9z8C7CBWTRIVApAw==", - "license": "MIT", - "peer": true + "license": "MIT" }, "node_modules/debug": { "version": "4.4.1", @@ -6119,7 +6112,6 @@ "resolved": "https://registry.npmjs.org/dedent/-/dedent-1.7.0.tgz", "integrity": "sha512-HGFtf8yhuhGhqO07SV79tRp+br4MnbdjeVxotpn1QBl30pcLLCQjX5b2295ll0fv8RKDKsmWYrl05usHM9CewQ==", "license": "MIT", - "peer": true, "peerDependencies": { "babel-plugin-macros": "^3.1.0" }, @@ -6302,7 +6294,8 @@ "resolved": "https://registry.npmjs.org/devtools-protocol/-/devtools-protocol-0.0.1312386.tgz", "integrity": "sha512-DPnhUXvmvKT2dFA/j7B+riVLUt9Q6RKJlcppojL5CoRywJJKLDYnRlw0gTFKfgDPHP5E04UoB71SxoJlVZy8FA==", "dev": true, - "license": "BSD-3-Clause" + "license": "BSD-3-Clause", + "peer": true }, "node_modules/dns-packet": { "version": "5.6.1", @@ -6335,7 +6328,6 @@ "resolved": "https://registry.npmjs.org/dotenv/-/dotenv-16.6.1.tgz", "integrity": "sha512-uBq4egWHTcTt33a72vpSG0z3HnPuIl6NqYcTrKEg2azoEyl2hpW0zqlxysq2pK9HlDIHyHyakeYaYnSAwd8bow==", "license": "BSD-2-Clause", - "peer": true, "engines": { "node": ">=12" }, @@ -6348,6 +6340,7 @@ "resolved": "https://registry.npmjs.org/drizzle-orm/-/drizzle-orm-0.44.7.tgz", "integrity": "sha512-quIpnYznjU9lHshEOAYLoZ9s3jweleHlZIAWR/jX9gAWNg/JhQ1wj0KGRf7/Zm+obRrYd9GjPVJg790QY9N5AQ==", "license": "Apache-2.0", + "peer": true, "peerDependencies": { "@aws-sdk/client-rds-data": ">=3", "@cloudflare/workers-types": ">=4", @@ -6486,8 +6479,7 @@ "version": "0.2.0", "resolved": "https://registry.npmjs.org/eastasianwidth/-/eastasianwidth-0.2.0.tgz", "integrity": "sha512-I88TYZWc9XiYHRQ4/3c5rjjfgkjhLyW2luGIheGERbNQ6OY7yTybanSpDXZa8y7VUP9YmDcYa+eyq4ca7iLqWA==", - "license": "MIT", - "peer": true + "license": "MIT" }, "node_modules/ee-first": { "version": "1.1.1", @@ -7063,40 +7055,40 @@ } }, "node_modules/express": { - "version": "4.21.2", - "resolved": "https://registry.npmjs.org/express/-/express-4.21.2.tgz", - "integrity": "sha512-28HqgMZAmih1Czt9ny7qr6ek2qddF4FclbMzwhCREB6OFfH+rXAnuNCwo1/wFvrtbgsQDb4kSbX9de9lFbrXnA==", + "version": "4.22.0", + "resolved": "https://registry.npmjs.org/express/-/express-4.22.0.tgz", + "integrity": "sha512-c2iPh3xp5vvCLgaHK03+mWLFPhox7j1LwyxcZwFVApEv5i0X+IjPpbT50SJJwwLpdBVfp45AkK/v+AFgv/XlfQ==", "dev": true, "license": "MIT", "dependencies": { "accepts": "~1.3.8", "array-flatten": "1.1.1", - "body-parser": "1.20.3", - "content-disposition": "0.5.4", + "body-parser": "~1.20.3", + "content-disposition": "~0.5.4", "content-type": "~1.0.4", - "cookie": "0.7.1", - "cookie-signature": "1.0.6", + "cookie": "~0.7.1", + "cookie-signature": "~1.0.6", "debug": "2.6.9", "depd": "2.0.0", "encodeurl": "~2.0.0", "escape-html": "~1.0.3", "etag": "~1.8.1", - "finalhandler": "1.3.1", - "fresh": "0.5.2", - "http-errors": "2.0.0", + "finalhandler": "~1.3.1", + "fresh": "~0.5.2", + "http-errors": "~2.0.0", "merge-descriptors": "1.0.3", "methods": "~1.1.2", - "on-finished": "2.4.1", + "on-finished": "~2.4.1", "parseurl": "~1.3.3", - "path-to-regexp": "0.1.12", + "path-to-regexp": "~0.1.12", "proxy-addr": "~2.0.7", - "qs": "6.13.0", + "qs": "~6.14.0", "range-parser": "~1.2.1", "safe-buffer": "5.2.1", - "send": "0.19.0", - "serve-static": "1.16.2", + "send": "~0.19.0", + "serve-static": "~1.16.2", "setprototypeof": "1.2.0", - "statuses": "2.0.1", + "statuses": "~2.0.1", "type-is": "~1.6.18", "utils-merge": "1.0.1", "vary": "~1.1.2" @@ -7126,6 +7118,22 @@ "dev": true, "license": "MIT" }, + "node_modules/express/node_modules/qs": { + "version": "6.14.0", + "resolved": "https://registry.npmjs.org/qs/-/qs-6.14.0.tgz", + "integrity": "sha512-YWWTjgABSKcvs/nWBi9PycY/JiPJqOD4JA6o9Sej2AtvSGarXxKC3OQSk4pAarbdQlKAh5D4FCQkJNkW+GAn3w==", + "dev": true, + "license": "BSD-3-Clause", + "dependencies": { + "side-channel": "^1.1.0" + }, + "engines": { + "node": ">=0.6" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, "node_modules/extend": { "version": "3.0.2", "resolved": "https://registry.npmjs.org/extend/-/extend-3.0.2.tgz", @@ -7348,7 +7356,6 @@ "resolved": "https://registry.npmjs.org/foreground-child/-/foreground-child-3.3.1.tgz", "integrity": "sha512-gIXjKqtFuWEgzFRJA9WCQeSJLZDjgJUOMCMzxtvFq/37KojM1BFGufqsCy0r4qSQmYLsZYMeyRqzIWOMup03sw==", "license": "ISC", - "peer": true, "dependencies": { "cross-spawn": "^7.0.6", "signal-exit": "^4.0.1" @@ -7365,7 +7372,6 @@ "resolved": "https://registry.npmjs.org/signal-exit/-/signal-exit-4.1.0.tgz", "integrity": "sha512-bzyZ1e88w9O1iNJbKnOlvYTrWPDl46O1bG0D3XInv+9tkPrxrN8jUUTiFlDkkmKWgn1M6CfIA13SuGqOa9Korw==", "license": "ISC", - "peer": true, "engines": { "node": ">=14" }, @@ -7707,7 +7713,6 @@ "resolved": "https://registry.npmjs.org/glob/-/glob-10.5.0.tgz", "integrity": "sha512-DfXN8DfhJ7NH3Oe7cFmu3NCu1wKbkReJ8TorzSAFbSKrlNaQSKfIzqYqVY8zlbs2NLBbWpRiU52GX2PbaBVNkg==", "license": "ISC", - "peer": true, "dependencies": { "foreground-child": "^3.1.0", "jackspeak": "^3.1.2", @@ -7741,7 +7746,6 @@ "resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-2.0.2.tgz", "integrity": "sha512-Jt0vHyM+jmUBqojB7E1NIYadt0vI0Qxjxd2TErW94wDz+E2LAm5vKMXXwg6ZZBTHPuUlDgQHKXvjGBdfcF1ZDQ==", "license": "MIT", - "peer": true, "dependencies": { "balanced-match": "^1.0.0" } @@ -7751,7 +7755,6 @@ "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-9.0.5.tgz", "integrity": "sha512-G6T0ZX48xgozx7587koeX9Ys2NYy6Gmv//P89sEte9V9whIapMNF4idKxnW2QtCcLiTWlb/wfCabAtAFWhhBow==", "license": "ISC", - "peer": true, "dependencies": { "brace-expansion": "^2.0.1" }, @@ -7767,7 +7770,6 @@ "resolved": "https://registry.npmjs.org/minipass/-/minipass-7.1.2.tgz", "integrity": "sha512-qOOzS1cBTWYF4BH8fVePDBOO9iptMnGUEZwNc/cMWnTV2nVLZ7VoNWEPHkYczZA0pdoA7dl6e7FL659nX9S2aw==", "license": "ISC", - "peer": true, "engines": { "node": ">=16 || 14 >=14.17" } @@ -8428,6 +8430,7 @@ "integrity": "sha512-bc4NBHqOqSfRW7POMkHd51LvClaeMXpm8dx0e8oE2GORbq5aRK7Bxl4FyzVLdGtLmvLKL7BTDBG5ACQm4HWjTA==", "devOptional": true, "license": "MIT", + "peer": true, "funding": { "type": "opencollective", "url": "https://opencollective.com/immer" @@ -8455,7 +8458,6 @@ "resolved": "https://registry.npmjs.org/import-in-the-middle/-/import-in-the-middle-2.0.0.tgz", "integrity": "sha512-yNZhyQYqXpkT0AKq3F3KLasUSK4fHvebNH5hOsKQw2dhGSALvQ4U0BqUc5suziKvydO5u5hgN2hy1RJaho8U5A==", "license": "Apache-2.0", - "peer": true, "dependencies": { "acorn": "^8.14.0", "acorn-import-attributes": "^1.9.5", @@ -8488,6 +8490,7 @@ "integrity": "sha512-vhhFrCodTHZAPPSdMYzLEbeI0Ug37R9j6yA0kLKok9kSK53lQtj/RJhEQJUjq6OwT4N33nxqSRd/7yXhEhVPIw==", "dev": true, "license": "MIT", + "peer": true, "dependencies": { "@alcalzone/ansi-tokenize": "^0.1.3", "ansi-escapes": "^7.0.0", @@ -9277,15 +9280,13 @@ "version": "2.0.0", "resolved": "https://registry.npmjs.org/isexe/-/isexe-2.0.0.tgz", "integrity": "sha512-RHxMLp9lnKHGHRng9QFhRCMbYAcVpn69smSGcq3f36xjgVVWThj4qqLbTLlq7Ssj8B+fIQ1EuCEGI2lKsyQeIw==", - "license": "ISC", - "peer": true + "license": "ISC" }, "node_modules/jackspeak": { "version": "3.4.3", "resolved": "https://registry.npmjs.org/jackspeak/-/jackspeak-3.4.3.tgz", "integrity": "sha512-OGlZQpz2yfahA/Rd1Y8Cd9SIEsqvXkLVoSw/cgwhnhFMDbsQFeZYoJJ7bIZBS9BcamUW96asq/npPWugM+RQBw==", "license": "BlueOak-1.0.0", - "peer": true, "dependencies": { "@isaacs/cliui": "^8.0.2" }, @@ -9329,6 +9330,7 @@ "integrity": "sha512-B7qPcEVE3NVkmSJbaYxvv4cHkVW7DQsZz13pUMrfS8z8Q/BuShN+gcTXrUlPiGqM2/t/EEaI030bpxMqY8gMlw==", "dev": true, "license": "MIT", + "peer": true, "engines": { "node": ">= 10.16.0" } @@ -9445,6 +9447,7 @@ "resolved": "https://registry.npmjs.org/kysely/-/kysely-0.27.6.tgz", "integrity": "sha512-FIyV/64EkKhJmjgC0g2hygpBv5RNWVPyNCqSAD7eTCv6eFWNIi4PN1UvdSJGicN/o35bnevgis4Y0UDC0qi8jQ==", "license": "MIT", + "peer": true, "engines": { "node": ">=14.0.0" } @@ -11324,8 +11327,7 @@ "version": "1.0.1", "resolved": "https://registry.npmjs.org/package-json-from-dist/-/package-json-from-dist-1.0.1.tgz", "integrity": "sha512-UEZIS3/by4OC8vL3P2dTXRETpebLI2NiI5vIrjaD/5UtrkFX/tNbwjTSRAGC/+7CAo2pIcBaRgWmcBBHcsaCIw==", - "license": "BlueOak-1.0.0", - "peer": true + "license": "BlueOak-1.0.0" }, "node_modules/parent-module": { "version": "1.0.1", @@ -11443,7 +11445,6 @@ "resolved": "https://registry.npmjs.org/path-key/-/path-key-3.1.1.tgz", "integrity": "sha512-ojmeN0qd+y0jszEtoY48r0Peq5dwMEkIlCOu6Q5f41lfkswXuKtYrhgoTpLnyIcHm24Uhqx+5Tqm2InSwLhE6Q==", "license": "MIT", - "peer": true, "engines": { "node": ">=8" } @@ -11459,7 +11460,6 @@ "resolved": "https://registry.npmjs.org/path-scurry/-/path-scurry-1.11.1.tgz", "integrity": "sha512-Xa4Nw17FS9ApQFJ9umLiJS4orGjm7ZzwUrwamcGQuHSzDyth9boKDaycYdDcZDuqYATXw4HFXgaqWTctW/v1HA==", "license": "BlueOak-1.0.0", - "peer": true, "dependencies": { "lru-cache": "^10.2.0", "minipass": "^5.0.0 || ^6.0.2 || ^7.0.0" @@ -11475,8 +11475,7 @@ "version": "10.4.3", "resolved": "https://registry.npmjs.org/lru-cache/-/lru-cache-10.4.3.tgz", "integrity": "sha512-JNAzZcXrCt42VGLuYz0zfAzDfAvJWW6AfYlDBQyDV5DClI2m5sAmK+OIO7s59XfsRsWHp02jAJrRadPRGTt6SQ==", - "license": "ISC", - "peer": true + "license": "ISC" }, "node_modules/path-to-regexp": { "version": "0.1.12", @@ -11791,6 +11790,7 @@ "resolved": "https://registry.npmjs.org/react/-/react-19.1.1.tgz", "integrity": "sha512-w8nqGImo45dmMIfljjMwOGtbmC/mk4CMYhWIicdSflH91J9TyCyczcPFXJzrZ/ZXcgGRFeP6BU0BEJTw6tZdfQ==", "license": "MIT", + "peer": true, "engines": { "node": ">=0.10.0" } @@ -11812,8 +11812,7 @@ "version": "0.26.0", "resolved": "https://registry.npmjs.org/scheduler/-/scheduler-0.26.0.tgz", "integrity": "sha512-NlHwttCI/l5gCPR3D1nNXtWABUmBwvZpEQiD4IXSbIDq8BzLIK/7Ir5gTFSGZDUu37K5cMNp0hFtzO38sC7gWA==", - "license": "MIT", - "peer": true + "license": "MIT" }, "node_modules/react-reconciler": { "version": "0.32.0", @@ -12255,7 +12254,6 @@ "resolved": "https://registry.npmjs.org/require-in-the-middle/-/require-in-the-middle-8.0.1.tgz", "integrity": "sha512-QT7FVMXfWOYFbeRBF6nu+I6tr2Tf3u0q8RIEjNob/heKY/nh7drD/k7eeMFmSQgnTtCzLDcCu/XEnpW2wk4xCQ==", "license": "MIT", - "peer": true, "dependencies": { "debug": "^4.3.5", "module-details-from-path": "^1.0.3" @@ -12712,7 +12710,6 @@ "resolved": "https://registry.npmjs.org/sha.js/-/sha.js-2.4.12.tgz", "integrity": "sha512-8LzC5+bvI45BjpfXU8V5fdU2mfeKiQe1D1gIMn7XUlF3OTUrpdJpPPH4EMAnF0DsHHdSZqCdSss5qCmJKuiO3w==", "license": "(MIT AND BSD-3-Clause)", - "peer": true, "dependencies": { "inherits": "^2.0.4", "safe-buffer": "^5.2.1", @@ -12773,7 +12770,6 @@ "resolved": "https://registry.npmjs.org/shebang-command/-/shebang-command-2.0.0.tgz", "integrity": "sha512-kHxr2zZpYtdmrN1qDjrrX/Z1rR1kG8Dx+gkpK1G4eXmvXswmcE1hTWBWYUzlraYw1/yZp6YuDY77YtvbN0dmDA==", "license": "MIT", - "peer": true, "dependencies": { "shebang-regex": "^3.0.0" }, @@ -12786,7 +12782,6 @@ "resolved": "https://registry.npmjs.org/shebang-regex/-/shebang-regex-3.0.0.tgz", "integrity": "sha512-7++dFhtcx3353uBaq8DDR4NuxBetBzC7ZQOhmTQInHEd6bSrXdiEyzCvG07Z44UYdLShWUyXt5M/yhz8ekcb1A==", "license": "MIT", - "peer": true, "engines": { "node": ">=8" } @@ -13161,7 +13156,6 @@ } ], "license": "MIT", - "peer": true, "engines": { "node": ">=14" } @@ -13250,7 +13244,6 @@ "resolved": "https://registry.npmjs.org/string-width/-/string-width-4.2.3.tgz", "integrity": "sha512-wKyQRQpjJ0sIp62ErSZdGsjMJWsap5oRNihHhu6G7JVO/9jIB6UyevL+tXuOqrng8j/cxKTWyWUwvSTriiZz/g==", "license": "MIT", - "peer": true, "dependencies": { "emoji-regex": "^8.0.0", "is-fullwidth-code-point": "^3.0.0", @@ -13265,7 +13258,6 @@ "resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-5.0.1.tgz", "integrity": "sha512-quJQXlTSUGL2LH9SUXo8VwsY4soanhgo6LNSm84E1LBcE8s3O0wpdiRzyR9z/ZZJMlMWv37qOOb9pdJlMUEKFQ==", "license": "MIT", - "peer": true, "engines": { "node": ">=8" } @@ -13274,15 +13266,13 @@ "version": "8.0.0", "resolved": "https://registry.npmjs.org/emoji-regex/-/emoji-regex-8.0.0.tgz", "integrity": "sha512-MSjYzcWNOA0ewAHpz0MxpYFvwg6yjy1NG3xteoqz644VCo/RPgnr1/GGt+ic3iJTzQ8Eu3TdM14SawnVUmGE6A==", - "license": "MIT", - "peer": true + "license": "MIT" }, "node_modules/string-width-cjs/node_modules/is-fullwidth-code-point": { "version": "3.0.0", "resolved": "https://registry.npmjs.org/is-fullwidth-code-point/-/is-fullwidth-code-point-3.0.0.tgz", "integrity": "sha512-zymm5+u+sCsSWyD9qNaejV3DFvhCKclKdizYaJUuHA83RLjb7nSuGnddCHGv0hk+KY7BMAlsWeK4Ueg6EV6XQg==", "license": "MIT", - "peer": true, "engines": { "node": ">=8" } @@ -13292,7 +13282,6 @@ "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-6.0.1.tgz", "integrity": "sha512-Y38VPSHcqkFrCpFnQ9vuSXmquuv5oXOKpGeT6aGrr3o3Gc9AlVa6JBfUSOCnbxGGZF+/0ooI7KrPuUSztUdU5A==", "license": "MIT", - "peer": true, "dependencies": { "ansi-regex": "^5.0.1" }, @@ -13395,7 +13384,6 @@ "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-6.0.1.tgz", "integrity": "sha512-Y38VPSHcqkFrCpFnQ9vuSXmquuv5oXOKpGeT6aGrr3o3Gc9AlVa6JBfUSOCnbxGGZF+/0ooI7KrPuUSztUdU5A==", "license": "MIT", - "peer": true, "dependencies": { "ansi-regex": "^5.0.1" }, @@ -13408,7 +13396,6 @@ "resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-5.0.1.tgz", "integrity": "sha512-quJQXlTSUGL2LH9SUXo8VwsY4soanhgo6LNSm84E1LBcE8s3O0wpdiRzyR9z/ZZJMlMWv37qOOb9pdJlMUEKFQ==", "license": "MIT", - "peer": true, "engines": { "node": ">=8" } @@ -13543,7 +13530,6 @@ "resolved": "https://registry.npmjs.org/to-buffer/-/to-buffer-1.2.2.tgz", "integrity": "sha512-db0E3UJjcFhpDhAF4tLo03oli3pwl3dbnzXOUIlRKrp+ldk/VUxzpWYZENsw2SZiuBjHAk7DfB0VU7NKdpb6sw==", "license": "MIT", - "peer": true, "dependencies": { "isarray": "^2.0.5", "safe-buffer": "^5.2.1", @@ -13731,7 +13717,6 @@ "resolved": "https://registry.npmjs.org/typeorm/-/typeorm-0.3.27.tgz", "integrity": "sha512-pNV1bn+1n8qEe8tUNsNdD8ejuPcMAg47u2lUGnbsajiNUr3p2Js1XLKQjBMH0yMRMDfdX8T+fIRejFmIwy9x4A==", "license": "MIT", - "peer": true, "dependencies": { "@sqltools/formatter": "^1.2.5", "ansis": "^3.17.0", @@ -13848,7 +13833,6 @@ } ], "license": "MIT", - "peer": true, "dependencies": { "base64-js": "^1.3.1", "ieee754": "^1.2.1" @@ -13858,8 +13842,7 @@ "version": "2.8.1", "resolved": "https://registry.npmjs.org/tslib/-/tslib-2.8.1.tgz", "integrity": "sha512-oJFu94HQb+KVduSUQL7wnpmqnfmLsOA/nAh6b6EH0wCEoK0/mPeXU6c3wKDV83MkOuHPRHtSXKKU99IBazS/2w==", - "license": "0BSD", - "peer": true + "license": "0BSD" }, "node_modules/unbox-primitive": { "version": "1.1.0", @@ -13903,6 +13886,7 @@ "integrity": "sha512-xKvGhPWw3k84Qjh8bI3ZeJjqnyadK+GEFtazSfZv/rKeTkTjOJho6mFqh2SM96iIcZokxiOpg78GazTSg8+KHA==", "dev": true, "license": "MIT", + "peer": true, "dependencies": { "@types/unist": "^3.0.0", "bail": "^2.0.0", @@ -14170,7 +14154,6 @@ "https://github.com/sponsors/ctavan" ], "license": "MIT", - "peer": true, "bin": { "uuid": "dist/esm/bin/uuid" } @@ -14279,7 +14262,6 @@ "resolved": "https://registry.npmjs.org/which/-/which-2.0.2.tgz", "integrity": "sha512-BLI3Tl1TW3Pvl70l3yq3Y64i+awpwXqsGBYWkkqMtnbXgrMD+yj7rhW0kuEDxzJaYXGjEW5ogapKNMEKNMjibA==", "license": "ISC", - "peer": true, "dependencies": { "isexe": "^2.0.0" }, @@ -14424,7 +14406,6 @@ "resolved": "https://registry.npmjs.org/wrap-ansi/-/wrap-ansi-7.0.0.tgz", "integrity": "sha512-YVGIj2kamLSTxw6NsZjoBxfSwsn0ycdesmc4p+Q21c5zPuZ1pl+NfxVdxPtdHvmNVOQ6XSYG4AUtyt/Fi7D16Q==", "license": "MIT", - "peer": true, "dependencies": { "ansi-styles": "^4.0.0", "string-width": "^4.1.0", @@ -14442,7 +14423,6 @@ "resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-5.0.1.tgz", "integrity": "sha512-quJQXlTSUGL2LH9SUXo8VwsY4soanhgo6LNSm84E1LBcE8s3O0wpdiRzyR9z/ZZJMlMWv37qOOb9pdJlMUEKFQ==", "license": "MIT", - "peer": true, "engines": { "node": ">=8" } @@ -14452,7 +14432,6 @@ "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.3.0.tgz", "integrity": "sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==", "license": "MIT", - "peer": true, "dependencies": { "color-convert": "^2.0.1" }, @@ -14467,15 +14446,13 @@ "version": "8.0.0", "resolved": "https://registry.npmjs.org/emoji-regex/-/emoji-regex-8.0.0.tgz", "integrity": "sha512-MSjYzcWNOA0ewAHpz0MxpYFvwg6yjy1NG3xteoqz644VCo/RPgnr1/GGt+ic3iJTzQ8Eu3TdM14SawnVUmGE6A==", - "license": "MIT", - "peer": true + "license": "MIT" }, "node_modules/wrap-ansi-cjs/node_modules/is-fullwidth-code-point": { "version": "3.0.0", "resolved": "https://registry.npmjs.org/is-fullwidth-code-point/-/is-fullwidth-code-point-3.0.0.tgz", "integrity": "sha512-zymm5+u+sCsSWyD9qNaejV3DFvhCKclKdizYaJUuHA83RLjb7nSuGnddCHGv0hk+KY7BMAlsWeK4Ueg6EV6XQg==", "license": "MIT", - "peer": true, "engines": { "node": ">=8" } @@ -14485,7 +14462,6 @@ "resolved": "https://registry.npmjs.org/string-width/-/string-width-4.2.3.tgz", "integrity": "sha512-wKyQRQpjJ0sIp62ErSZdGsjMJWsap5oRNihHhu6G7JVO/9jIB6UyevL+tXuOqrng8j/cxKTWyWUwvSTriiZz/g==", "license": "MIT", - "peer": true, "dependencies": { "emoji-regex": "^8.0.0", "is-fullwidth-code-point": "^3.0.0", @@ -14500,7 +14476,6 @@ "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-6.0.1.tgz", "integrity": "sha512-Y38VPSHcqkFrCpFnQ9vuSXmquuv5oXOKpGeT6aGrr3o3Gc9AlVa6JBfUSOCnbxGGZF+/0ooI7KrPuUSztUdU5A==", "license": "MIT", - "peer": true, "dependencies": { "ansi-regex": "^5.0.1" }, @@ -14520,6 +14495,7 @@ "integrity": "sha512-PEIGCY5tSlUt50cqyMXfCzX+oOPqN0vuGqWzbcJ2xvnkzkq46oOpz7dQaTDBdfICb4N14+GARUDw2XV2N4tvzg==", "devOptional": true, "license": "MIT", + "peer": true, "engines": { "node": ">=10.0.0" }, @@ -14702,6 +14678,7 @@ "resolved": "https://registry.npmjs.org/zod/-/zod-3.25.75.tgz", "integrity": "sha512-OhpzAmVzabPOL6C3A3gpAifqr9MqihV/Msx3gor2b2kviCgcb+HM9SEOpMWwwNp9MRunWnhtAKUoo0AHhjyPPg==", "license": "MIT", + "peer": true, "funding": { "url": "https://github.com/sponsors/colinhacks" } diff --git a/docs/reference.mdx b/docs/reference.mdx index e467a5a31..23a08cb48 100644 --- a/docs/reference.mdx +++ b/docs/reference.mdx @@ -45,7 +45,9 @@ The top-level properties in the `config.yaml` configuration file are: The `name` property specifies the name of your project or configuration. ```yaml title="config.yaml" -name: MyProject +name: My Config +version: 1.0.0 +schema: v1 ``` --- @@ -149,6 +151,9 @@ The `models` section defines the language models used in your configuration. Mod **Example:** ```yaml title="config.yaml" +name: My Config +version: 1.0.0 +schema: v1 models: - name: GPT-4o provider: openai @@ -198,6 +203,9 @@ More information about usage/params for each context provider can be found [here **Example:** ```yaml title="config.yaml" +name: My Config +version: 1.0.0 +schema: v1 context: - provider: file - provider: code @@ -218,6 +226,9 @@ Rules are concatenated into the system message for all [Agent](/ide-extensions/a Confiugration example: ```yaml title="config.yaml" +name: My Config +version: 1.0.0 +schema: v1 rules: - uses: sanity/sanity-opinionated # rules file stored on Continue Mission Control - uses: file://user/Desktop/rules.md # rules file stored on local computer @@ -244,6 +255,9 @@ Prompts can be invoked with a / command. Configuration example: ```yaml title="config.yaml" +name: My Config +version: 1.0.0 +schema: v1 prompts: - uses: supabase/create-functions # prompts file stored on Continue Mission Control - uses: file://user/Desktop/prompts.md # prompts file stored on local computer @@ -278,6 +292,9 @@ List of documentation sites to index. **Example:** ```yaml title="config.yaml" +name: My Config +version: 1.0.0 +schema: v1 docs: - name: Continue startUrl: https://docs.continue.dev/intro @@ -303,6 +320,9 @@ The [Model Context Protocol](https://modelcontextprotocol.io/introduction) is a **Example:** ```yaml title="config.yaml" +name: My Config +version: 1.0.0 +schema: v1 mcpServers: - name: My MCP Server command: uvx @@ -334,6 +354,9 @@ Destinations to which [development data](/customize/deep-dives/development-data) **Example:** ```yaml title="config.yaml" +name: My Config +version: 1.0.0 +schema: v1 data: - name: Local Data Bank destination: file:///Users/dallin/Documents/code/continuedev/continue-extras/external-data @@ -355,8 +378,8 @@ data: Putting it all together, here's a complete example of a `config.yaml` configuration file: ```yaml title="config.yaml" -name: MyProject -version: 0.0.1 +name: My Config +version: 1.0.0 schema: v1 models: - uses: anthropic/claude-3.5-sonnet @@ -430,8 +453,8 @@ You can also use node anchors to avoid duplication of properties. To do so, addi ```yaml title="config.yaml" %YAML 1.1 --- -name: MyProject -version: 0.0.1 +name: My Config +version: 1.0.0 schema: v1 model_defaults: &model_defaults provider: openai diff --git a/docs/reference/deprecated-codebase.mdx b/docs/reference/deprecated-codebase.mdx index 6e552493b..505534191 100644 --- a/docs/reference/deprecated-codebase.mdx +++ b/docs/reference/deprecated-codebase.mdx @@ -67,6 +67,10 @@ There are a few options that let you configure the behavior of the `@codebase` c ```yaml title="config.yaml" + name: My Config + version: 0.0.1 + schema: v1 + context: - provider: codebase params: diff --git a/docs/reference/deprecated-docs.mdx b/docs/reference/deprecated-docs.mdx index f0e57d5d0..6364ae77e 100644 --- a/docs/reference/deprecated-docs.mdx +++ b/docs/reference/deprecated-docs.mdx @@ -30,6 +30,10 @@ To enable the `@Docs` context provider, add it to the list of context providers ```yaml title="config.yaml" + name: My Config + version: 0.0.1 + schema: v1 + context: - provider: docs ``` @@ -90,6 +94,10 @@ For bulk documentation site adds or edits, we recommend editing your global conf ```yaml title="config.yaml" + name: My Config + version: 0.0.1 + schema: v1 + docs: - title: Nest.js startUrl: https://docs.nestjs.com/ @@ -128,6 +136,10 @@ As with [@Codebase context provider configuration](./deprecated-codebase#configu ```yaml title="config.yaml" + name: My Config + version: 0.0.1 + schema: v1 + context: - provider: docs params: @@ -161,6 +173,10 @@ The GitHub API rate limits public requests to 60 per hour. If you want to reliab ```yaml title="config.yaml" + name: My Config + version: 0.0.1 + schema: v1 + context: - provider: docs params: @@ -192,6 +208,10 @@ If your documentation is private, you can skip the default crawler and use a loc ```yaml title="config.yaml" + name: My Config + version: 0.0.1 + schema: v1 + docs: - title: My Private Docs startUrl: http://10.2.1.2/docs @@ -255,6 +275,10 @@ The following configuration example works out of the box for VS Code. This uses ```yaml title="config.yaml" + name: My Config + version: 0.0.1 + schema: v1 + context: - provider: docs @@ -289,6 +313,10 @@ Here is the equivalent minimal example for Jetbrains, which requires setting up ```yaml title="config.yaml" + name: My Config + version: 0.0.1 + schema: v1 + models: - name: LMStudio embedder provider: lmstudio @@ -337,6 +365,10 @@ The following configuration example includes: ```yaml title="config.yaml" + name: My Config + version: 0.0.1 + schema: v1 + models: - name: LMStudio Nomic Text provider: lmstudio diff --git a/docs/reference/json-reference.mdx b/docs/reference/json-reference.mdx index ad5ef6d16..e490968ff 100644 --- a/docs/reference/json-reference.mdx +++ b/docs/reference/json-reference.mdx @@ -120,7 +120,7 @@ Specifies options for tab autocompletion behavior. - `debounceDelay`: Delay (in ms) before triggering autocomplete (default: `350`). - `maxSuffixPercentage`: Maximum percentage of prompt for suffix (default: `0.2`). - `prefixPercentage`: Percentage of input for prefix (default: `0.3`). -- `template`: Template string for autocomplete, using Mustache templating. You can use the `{{{ prefix }}}`, `{{{ suffix }}}`, `{{{ filename }}}`, `{{{ reponame }}}`, and `{{{ language }}}` variables. +- `template`: Template string for autocomplete, using Mustache templating. You can use the `{{{prefix}}}`, `{{{suffix}}}`, `{{{filename}}}`, `{{{reponame}}}`, and `{{{language}}}` variables. - `onlyMyCode`: If `true`, only includes code within the repository (default: `true`). Example diff --git a/extensions/cli/docs/storage-sync.md b/extensions/cli/docs/storage-sync.md index fd42e674c..2bd83f873 100644 --- a/extensions/cli/docs/storage-sync.md +++ b/extensions/cli/docs/storage-sync.md @@ -40,11 +40,20 @@ This document captures the responsibilities for both the CLI and backend compone - Resolve `storageId` into the desired S3 prefix (e.g., `sessions///`). - Generate two short-lived pre-signed `PUT` URLs: one for `session.json`, one for `diff.txt`. - Return both URLs and their keys in the response payload described above. -- **Expiration**: The initial implementation can hand out URLs with a generous TTL (e.g., 60 minutes). Later we will add CLI-side refresh logic before expiry. +- **Expiration**: URLs are issued with a 60-minute TTL. The CLI automatically refreshes them before expiry (see URL Refresh Strategy below). + +## URL Refresh Strategy + +Pre-signed URLs are automatically refreshed using a dual-strategy approach: + +1. **Proactive Refresh**: URLs are refreshed at the 50-minute mark (10 minutes before expiry) to prevent disruption +2. **Reactive Refresh**: If a 403 Forbidden error is detected (indicating expired URLs), an immediate refresh is triggered +3. **Error Handling**: Upload errors are logged but non-fatal; the service continues running with automatic recovery + +This ensures continuous operation during devbox suspension, network interruptions, and clock drift. ## Open Questions & Future Enhancements -- **URL refresh**: When the presigned URLs expire we currently have no refresh cycle. We'd need either a renewal endpoint or to re-call the existing endpoint on failure. - **Upload cadence**: The 30-second interval is hard-coded for now. Consider making it configurable in both CLI and backend policies. - **Error telemetry**: Decide if repeated upload failures should trip analytics or circuit breakers. - **Diff source**: `diff.txt` currently mirrors the `/diff` endpoint response. Confirm backend expectations for format and size limits. diff --git a/extensions/cli/package-lock.json b/extensions/cli/package-lock.json index f5127df9b..23643e233 100644 --- a/extensions/cli/package-lock.json +++ b/extensions/cli/package-lock.json @@ -11,6 +11,7 @@ "dependencies": { "@sentry/profiling-node": "^9.43.0", "fdir": "^6.4.2", + "find-up": "^8.0.0", "fzf": "^0.5.2", "js-yaml": "^4.1.1" }, @@ -267,7 +268,7 @@ }, "../../packages/openai-adapters": { "name": "@continuedev/openai-adapters", - "version": "1.15.0", + "version": "1.32.0", "dev": true, "license": "Apache-2.0", "dependencies": { @@ -275,8 +276,8 @@ "@aws-sdk/client-bedrock-runtime": "^3.842.0", "@aws-sdk/credential-providers": "^3.913.0", "@continuedev/config-types": "^1.0.14", - "@continuedev/config-yaml": "^1.29.0", - "@continuedev/fetch": "^1.5.0", + "@continuedev/config-yaml": "^1.36.0", + "@continuedev/fetch": "^1.6.0", "dotenv": "^16.5.0", "google-auth-library": "^10.4.1", "json-schema": "^0.4.0", @@ -515,6 +516,7 @@ } ], "license": "MIT", + "peer": true, "engines": { "node": ">=18" }, @@ -538,6 +540,7 @@ } ], "license": "MIT", + "peer": true, "engines": { "node": ">=18" } @@ -1754,6 +1757,7 @@ "integrity": "sha512-oNXsh2ywth5aowwIa7RKtawnkdH6LgU1ztfP9AIUCQCvzysB+WeU8o2kyyosDPwBZutPpjZDKPQGIzzrfTWweQ==", "dev": true, "license": "MIT", + "peer": true, "dependencies": { "@octokit/auth-token": "^6.0.0", "@octokit/graphql": "^9.0.1", @@ -1924,6 +1928,7 @@ "resolved": "https://registry.npmjs.org/@opentelemetry/api/-/api-1.9.0.tgz", "integrity": "sha512-3giAOQvZiH5F9bMlMiv8+GSPMeqg0dbaeo58/0SlA9sxSqZhnUtxzX9/2FzyhS9sWQf5S0GJE0AKBrFqjpeYcg==", "license": "Apache-2.0", + "peer": true, "engines": { "node": ">=8.0.0" } @@ -1945,6 +1950,7 @@ "resolved": "https://registry.npmjs.org/@opentelemetry/context-async-hooks/-/context-async-hooks-2.0.1.tgz", "integrity": "sha512-XuY23lSI3d4PEqKA+7SLtAgwqIfc6E/E9eAQWLN1vlpC53ybO3o6jW4BsXo1xvz9lYyyWItfQDDLzezER01mCw==", "license": "Apache-2.0", + "peer": true, "engines": { "node": "^18.19.0 || >=20.6.0" }, @@ -1957,6 +1963,7 @@ "resolved": "https://registry.npmjs.org/@opentelemetry/core/-/core-2.0.1.tgz", "integrity": "sha512-MaZk9SJIDgo1peKevlbhP6+IwIiNPNmswNL4AF0WaQJLbHXjr9SrZMgS12+iqr9ToV4ZVosCcc0f8Rg67LXjxw==", "license": "Apache-2.0", + "peer": true, "dependencies": { "@opentelemetry/semantic-conventions": "^1.29.0" }, @@ -2198,6 +2205,7 @@ "resolved": "https://registry.npmjs.org/@opentelemetry/instrumentation/-/instrumentation-0.203.0.tgz", "integrity": "sha512-ke1qyM+3AK2zPuBPb6Hk/GCsc5ewbLvPNkEuELx/JmANeEp6ZjnZ+wypPAJSucTw0wvCGrUaibDSdcrGFoWxKQ==", "license": "Apache-2.0", + "peer": true, "dependencies": { "@opentelemetry/api-logs": "0.203.0", "import-in-the-middle": "^1.8.1", @@ -3514,6 +3522,7 @@ "resolved": "https://registry.npmjs.org/@opentelemetry/resources/-/resources-2.0.1.tgz", "integrity": "sha512-dZOB3R6zvBwDKnHDTB4X1xtMArB/d324VsbiPkX/Yu0Q8T2xceRthoIVFhJdvgVM2QhGVUyX9tzwiNxGtoBJUw==", "license": "Apache-2.0", + "peer": true, "dependencies": { "@opentelemetry/core": "2.0.1", "@opentelemetry/semantic-conventions": "^1.29.0" @@ -3602,6 +3611,7 @@ "resolved": "https://registry.npmjs.org/@opentelemetry/sdk-trace-base/-/sdk-trace-base-2.0.1.tgz", "integrity": "sha512-xYLlvk/xdScGx1aEqvxLwf6sXQLXCjk3/1SQT9X9AoN5rXRhkdvIFShuNNmtTEPRBqcsMbS4p/gJLNI2wXaDuQ==", "license": "Apache-2.0", + "peer": true, "dependencies": { "@opentelemetry/core": "2.0.1", "@opentelemetry/resources": "2.0.1", @@ -3637,6 +3647,7 @@ "resolved": "https://registry.npmjs.org/@opentelemetry/semantic-conventions/-/semantic-conventions-1.36.0.tgz", "integrity": "sha512-TtxJSRD8Ohxp6bKkhrm27JRHAxPczQA7idtcTOMYI+wQRRrfgqxHv1cFbCApcSnNjtXkmzFozn6jQtFrOmbjPQ==", "license": "Apache-2.0", + "peer": true, "engines": { "node": ">=14" } @@ -5047,8 +5058,7 @@ "resolved": "https://registry.npmjs.org/@types/aria-query/-/aria-query-5.0.4.tgz", "integrity": "sha512-rfT93uj5s0PRL7EzccGMs3brplhcrghnDoV26NqKhCAS1hVo+WdNsPvE/yb6ilfr5hi2MEk6d5EWJTKdxg8jVw==", "dev": true, - "license": "MIT", - "peer": true + "license": "MIT" }, "node_modules/@types/body-parser": { "version": "1.19.6", @@ -5336,6 +5346,7 @@ "resolved": "https://registry.npmjs.org/@types/node/-/node-24.3.0.tgz", "integrity": "sha512-aPTXCrfwnDLj4VvXrm+UUCQjNEvJgNA8s5F1cvwQU+3KNltTOkBm1j30uNLyqqPNe7gE3KFzImYoZEfLhp4Yow==", "license": "MIT", + "peer": true, "dependencies": { "undici-types": "~7.10.0" } @@ -5405,6 +5416,7 @@ "integrity": "sha512-lr3jdBw/BGj49Eps7EvqlUaoeA0xpj3pc0RoJkHpYaCHkVK7i28dKyImLQb3JVlqs3aYSXf7qYuWOW/fgZnTXQ==", "dev": true, "license": "MIT", + "peer": true, "dependencies": { "csstype": "^3.0.2" } @@ -5526,6 +5538,7 @@ "integrity": "sha512-w/EboPlBwnmOBtRbiOvzjD+wdiZdgFeo17lkltrtn7X37vagKKWJABvyfsJXTlHe6XBzugmYgd4A4nW+k8Mixw==", "dev": true, "license": "MIT", + "peer": true, "dependencies": { "@eslint-community/regexpp": "^4.10.0", "@typescript-eslint/scope-manager": "8.40.0", @@ -5556,6 +5569,7 @@ "integrity": "sha512-jCNyAuXx8dr5KJMkecGmZ8KI61KBUhkCob+SD+C+I5+Y1FWI2Y3QmY4/cxMCC5WAsZqoEtEETVhUiUMIGCf6Bw==", "dev": true, "license": "MIT", + "peer": true, "dependencies": { "@typescript-eslint/scope-manager": "8.40.0", "@typescript-eslint/types": "8.40.0", @@ -6156,6 +6170,7 @@ "integrity": "sha512-hGISOaP18plkzbWEcP/QvtRW1xDXF2+96HbEX6byqQhAUbiS5oH6/9JwW+QsQCIYON2bI6QZBF+2PvOmrRZ9wA==", "dev": true, "license": "MIT", + "peer": true, "dependencies": { "@vitest/utils": "3.2.4", "fflate": "^0.8.2", @@ -6236,6 +6251,7 @@ "resolved": "https://registry.npmjs.org/acorn/-/acorn-8.15.0.tgz", "integrity": "sha512-NZyJarBfL7nWwIq+FDL6Zp/yHEhePMNnnJ0y3qfieCrmNvYct8uvtiV41UvlSe6apAfk0fY1FbWx+NwfmpvtTg==", "license": "MIT", + "peer": true, "bin": { "acorn": "bin/acorn" }, @@ -6401,7 +6417,6 @@ "integrity": "sha512-b0P0sZPKtyu8HkeRAfCq0IfURZK+SuwMjY1UXGBU27wpAiTwQAIlq56IbIO+ytk/JjS1fMR14ee5WBBfKi5J6A==", "dev": true, "license": "Apache-2.0", - "peer": true, "dependencies": { "dequal": "^2.0.3" } @@ -6655,24 +6670,45 @@ "license": "Apache-2.0" }, "node_modules/body-parser": { - "version": "2.2.0", - "resolved": "https://registry.npmjs.org/body-parser/-/body-parser-2.2.0.tgz", - "integrity": "sha512-02qvAaxv8tp7fBa/mw1ga98OGm+eCbqzJOKoRt70sLmfEEi+jyBYVTDGfCL/k06/4EMk/z01gCe7HoCH/f2LTg==", + "version": "2.2.1", + "resolved": "https://registry.npmjs.org/body-parser/-/body-parser-2.2.1.tgz", + "integrity": "sha512-nfDwkulwiZYQIGwxdy0RUmowMhKcFVcYXUU7m4QlKYim1rUtg83xm2yjZ40QjDuc291AJjjeSc9b++AWHSgSHw==", "dev": true, "license": "MIT", "dependencies": { "bytes": "^3.1.2", "content-type": "^1.0.5", - "debug": "^4.4.0", + "debug": "^4.4.3", "http-errors": "^2.0.0", - "iconv-lite": "^0.6.3", + "iconv-lite": "^0.7.0", "on-finished": "^2.4.1", "qs": "^6.14.0", - "raw-body": "^3.0.0", - "type-is": "^2.0.0" + "raw-body": "^3.0.1", + "type-is": "^2.0.1" }, "engines": { "node": ">=18" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/express" + } + }, + "node_modules/body-parser/node_modules/iconv-lite": { + "version": "0.7.0", + "resolved": "https://registry.npmjs.org/iconv-lite/-/iconv-lite-0.7.0.tgz", + "integrity": "sha512-cf6L2Ds3h57VVmkZe+Pn+5APsT7FpqJtEhhieDCvrE2MK5Qk9MyffgQyuxQTm6BChfeZNtcOLHp9IcWRVcIcBQ==", + "dev": true, + "license": "MIT", + "dependencies": { + "safer-buffer": ">= 2.1.2 < 3.0.0" + }, + "engines": { + "node": ">=0.10.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/express" } }, "node_modules/bottleneck": { @@ -8020,9 +8056,9 @@ } }, "node_modules/debug": { - "version": "4.4.1", - "resolved": "https://registry.npmjs.org/debug/-/debug-4.4.1.tgz", - "integrity": "sha512-KcKCqiftBJcZr++7ykoDIEwSa3XWowTfNPo92BYxjXiyYEVrUQh2aLyhxBCwww+heortUFxEJYcRzosstTEBYQ==", + "version": "4.4.3", + "resolved": "https://registry.npmjs.org/debug/-/debug-4.4.3.tgz", + "integrity": "sha512-RGwwWnwQvkVfavKVt22FGLw+xYSdzARwm0ru6DhTVA3umU5hZc28V3kO4stgYryrTlLpuvgI9GiijltAjNbcqA==", "license": "MIT", "dependencies": { "ms": "^2.1.3" @@ -8254,8 +8290,7 @@ "resolved": "https://registry.npmjs.org/dom-accessibility-api/-/dom-accessibility-api-0.5.16.tgz", "integrity": "sha512-X7BJ2yElsnOJ30pZF4uIIDfBEVgF4XEBxL9Bxhy6dnrm5hkzqmsWHGTiHqRiITNhMyFLyAiWndIJP7Z1NTteDg==", "dev": true, - "license": "MIT", - "peer": true + "license": "MIT" }, "node_modules/dot-prop": { "version": "5.3.0", @@ -8796,6 +8831,7 @@ "integrity": "sha512-TS9bTNIryDzStCpJN93aC5VRSW3uTx9sClUn4B87pwiCaJh220otoI0X8mJKr+VcPtniMdN8GKjlwgWGUv5ZKA==", "dev": true, "license": "MIT", + "peer": true, "dependencies": { "@eslint-community/eslint-utils": "^4.2.0", "@eslint-community/regexpp": "^4.12.1", @@ -8967,6 +9003,7 @@ "integrity": "sha512-whOE1HFo/qJDyX4SnXzP4N6zOWn79WhnCUY/iDR0mPfQZO8wcYE4JClzI2oZrhBnnMUCBCHZhO6VQyoBU95mZA==", "dev": true, "license": "MIT", + "peer": true, "dependencies": { "@rtsao/scc": "^1.1.0", "array-includes": "^3.1.9", @@ -9140,6 +9177,23 @@ "url": "https://opencollective.com/eslint" } }, + "node_modules/eslint/node_modules/find-up": { + "version": "5.0.0", + "resolved": "https://registry.npmjs.org/find-up/-/find-up-5.0.0.tgz", + "integrity": "sha512-78/PXT1wlLLDgTzDs7sjq9hzz0vXD+zn+7wypEe4fXQxCmdmqfGsEPQxmiCSQI3ajFV91bVSsvNtrJRiW6nGng==", + "dev": true, + "license": "MIT", + "dependencies": { + "locate-path": "^6.0.0", + "path-exists": "^4.0.0" + }, + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, "node_modules/eslint/node_modules/ignore": { "version": "5.3.2", "resolved": "https://registry.npmjs.org/ignore/-/ignore-5.3.2.tgz", @@ -9150,6 +9204,22 @@ "node": ">= 4" } }, + "node_modules/eslint/node_modules/locate-path": { + "version": "6.0.0", + "resolved": "https://registry.npmjs.org/locate-path/-/locate-path-6.0.0.tgz", + "integrity": "sha512-iPZK6eYjbxRu3uB4/WZ3EsEIMJFMqAoopl3R+zuq0UjcAm/MO6KCweDgPfP3elTztoKP3KtnVHxTn2NHBSDVUw==", + "dev": true, + "license": "MIT", + "dependencies": { + "p-locate": "^5.0.0" + }, + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, "node_modules/eslint/node_modules/minimatch": { "version": "3.1.2", "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-3.1.2.tgz", @@ -9163,6 +9233,51 @@ "node": "*" } }, + "node_modules/eslint/node_modules/p-limit": { + "version": "3.1.0", + "resolved": "https://registry.npmjs.org/p-limit/-/p-limit-3.1.0.tgz", + "integrity": "sha512-TYOanM3wGwNGsZN2cVTYPArw454xnXj5qmWF1bEoAc4+cU/ol7GVh7odevjp1FNHduHc3KZMcFduxU5Xc6uJRQ==", + "dev": true, + "license": "MIT", + "dependencies": { + "yocto-queue": "^0.1.0" + }, + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/eslint/node_modules/p-locate": { + "version": "5.0.0", + "resolved": "https://registry.npmjs.org/p-locate/-/p-locate-5.0.0.tgz", + "integrity": "sha512-LaNjtRWUBY++zB5nE/NwcaoMylSPk+S+ZHNB1TzdbMJMny6dynpAGt7X/tl/QYq3TIeE6nxHppbo2LGymrG5Pw==", + "dev": true, + "license": "MIT", + "dependencies": { + "p-limit": "^3.0.2" + }, + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/eslint/node_modules/yocto-queue": { + "version": "0.1.0", + "resolved": "https://registry.npmjs.org/yocto-queue/-/yocto-queue-0.1.0.tgz", + "integrity": "sha512-rVksvsnNCdJ/ohGc6xgPwyN8eheCxsiLM8mxuE/t/mOVqJewPuO1miLpTHQiRgTKCLexL4MeAFVagts7HmNZ2Q==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, "node_modules/espree": { "version": "10.4.0", "resolved": "https://registry.npmjs.org/espree/-/espree-10.4.0.tgz", @@ -9331,19 +9446,21 @@ } }, "node_modules/express": { - "version": "5.1.0", - "resolved": "https://registry.npmjs.org/express/-/express-5.1.0.tgz", - "integrity": "sha512-DT9ck5YIRU+8GYzzU5kT3eHGA5iL+1Zd0EutOmTE9Dtk+Tvuzd23VBU+ec7HPNSTxXYO55gPV/hq4pSBJDjFpA==", + "version": "5.2.1", + "resolved": "https://registry.npmjs.org/express/-/express-5.2.1.tgz", + "integrity": "sha512-hIS4idWWai69NezIdRt2xFVofaF4j+6INOpJlVOLDO8zXGpUVEVzIYk12UUi2JzjEzWL3IOAxcTubgz9Po0yXw==", "dev": true, "license": "MIT", + "peer": true, "dependencies": { "accepts": "^2.0.0", - "body-parser": "^2.2.0", + "body-parser": "^2.2.1", "content-disposition": "^1.0.0", "content-type": "^1.0.5", "cookie": "^0.7.1", "cookie-signature": "^1.2.1", "debug": "^4.4.0", + "depd": "^2.0.0", "encodeurl": "^2.0.0", "escape-html": "^1.0.3", "etag": "^1.8.1", @@ -9590,17 +9707,16 @@ } }, "node_modules/find-up": { - "version": "5.0.0", - "resolved": "https://registry.npmjs.org/find-up/-/find-up-5.0.0.tgz", - "integrity": "sha512-78/PXT1wlLLDgTzDs7sjq9hzz0vXD+zn+7wypEe4fXQxCmdmqfGsEPQxmiCSQI3ajFV91bVSsvNtrJRiW6nGng==", - "dev": true, + "version": "8.0.0", + "resolved": "https://registry.npmjs.org/find-up/-/find-up-8.0.0.tgz", + "integrity": "sha512-JGG8pvDi2C+JxidYdIwQDyS/CgcrIdh18cvgxcBge3wSHRQOrooMD3GlFBcmMJAN9M42SAZjDp5zv1dglJjwww==", "license": "MIT", "dependencies": { - "locate-path": "^6.0.0", - "path-exists": "^4.0.0" + "locate-path": "^8.0.0", + "unicorn-magic": "^0.3.0" }, "engines": { - "node": ">=10" + "node": ">=20" }, "funding": { "url": "https://github.com/sponsors/sindresorhus" @@ -10409,30 +10525,24 @@ } }, "node_modules/http-errors": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/http-errors/-/http-errors-2.0.0.tgz", - "integrity": "sha512-FtwrG/euBzaEjYeRqOgly7G0qviiXoJWnvEH2Z1plBdXgbyjv34pHTSb9zoeHMyDy33+DWy5Wt9Wo+TURtOYSQ==", + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/http-errors/-/http-errors-2.0.1.tgz", + "integrity": "sha512-4FbRdAX+bSdmo4AUFuS0WNiPz8NgFt+r8ThgNWmlrjQjt1Q7ZR9+zTlce2859x4KSXrwIsaeTqDoKQmtP8pLmQ==", "dev": true, "license": "MIT", "dependencies": { - "depd": "2.0.0", - "inherits": "2.0.4", - "setprototypeof": "1.2.0", - "statuses": "2.0.1", - "toidentifier": "1.0.1" + "depd": "~2.0.0", + "inherits": "~2.0.4", + "setprototypeof": "~1.2.0", + "statuses": "~2.0.2", + "toidentifier": "~1.0.1" }, "engines": { "node": ">= 0.8" - } - }, - "node_modules/http-errors/node_modules/statuses": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/statuses/-/statuses-2.0.1.tgz", - "integrity": "sha512-RwNA9Z/7PrK06rYLIzFMlaF+l73iwpzsqRIFgbMLbTcLD6cOao82TaWefPXQvB2fOC4AjuYSEndS7N/mTCbkdQ==", - "dev": true, - "license": "MIT", - "engines": { - "node": ">= 0.8" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/express" } }, "node_modules/http-proxy-agent": { @@ -11773,16 +11883,15 @@ } }, "node_modules/locate-path": { - "version": "6.0.0", - "resolved": "https://registry.npmjs.org/locate-path/-/locate-path-6.0.0.tgz", - "integrity": "sha512-iPZK6eYjbxRu3uB4/WZ3EsEIMJFMqAoopl3R+zuq0UjcAm/MO6KCweDgPfP3elTztoKP3KtnVHxTn2NHBSDVUw==", - "dev": true, + "version": "8.0.0", + "resolved": "https://registry.npmjs.org/locate-path/-/locate-path-8.0.0.tgz", + "integrity": "sha512-XT9ewWAC43tiAV7xDAPflMkG0qOPn2QjHqlgX8FOqmWa/rxnyYDulF9T0F7tRy1u+TVTmK/M//6VIOye+2zDXg==", "license": "MIT", "dependencies": { - "p-locate": "^5.0.0" + "p-locate": "^6.0.0" }, "engines": { - "node": ">=10" + "node": ">=20" }, "funding": { "url": "https://github.com/sponsors/sindresorhus" @@ -11922,7 +12031,6 @@ "integrity": "sha512-h5bgJWpxJNswbU7qCrV0tIKQCaS3blPDrqKWx+QxzuzL1zGUzij9XCWLrSLsJPu5t+eWA/ycetzYAO5IOMcWAQ==", "dev": true, "license": "MIT", - "peer": true, "bin": { "lz-string": "bin/bin.js" } @@ -11950,6 +12058,7 @@ "integrity": "sha512-8dD6FusOQSrpv9Z1rdNMdlSgQOIP880DHqnohobOmYLElGEqAL/JvxvuxZO16r4HtjTlfPRDC1hbvxC9dPN2nA==", "dev": true, "license": "MIT", + "peer": true, "bin": { "marked": "bin/marked.js" }, @@ -14857,6 +14966,7 @@ "dev": true, "inBundle": true, "license": "MIT", + "peer": true, "engines": { "node": ">=12" }, @@ -15467,32 +15577,30 @@ } }, "node_modules/p-limit": { - "version": "3.1.0", - "resolved": "https://registry.npmjs.org/p-limit/-/p-limit-3.1.0.tgz", - "integrity": "sha512-TYOanM3wGwNGsZN2cVTYPArw454xnXj5qmWF1bEoAc4+cU/ol7GVh7odevjp1FNHduHc3KZMcFduxU5Xc6uJRQ==", - "dev": true, + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/p-limit/-/p-limit-4.0.0.tgz", + "integrity": "sha512-5b0R4txpzjPWVw/cXXUResoD4hb6U/x9BH08L7nw+GN1sezDzPdxeRvpc9c433fZhBan/wusjbCsqwqm4EIBIQ==", "license": "MIT", "dependencies": { - "yocto-queue": "^0.1.0" + "yocto-queue": "^1.0.0" }, "engines": { - "node": ">=10" + "node": "^12.20.0 || ^14.13.1 || >=16.0.0" }, "funding": { "url": "https://github.com/sponsors/sindresorhus" } }, "node_modules/p-locate": { - "version": "5.0.0", - "resolved": "https://registry.npmjs.org/p-locate/-/p-locate-5.0.0.tgz", - "integrity": "sha512-LaNjtRWUBY++zB5nE/NwcaoMylSPk+S+ZHNB1TzdbMJMny6dynpAGt7X/tl/QYq3TIeE6nxHppbo2LGymrG5Pw==", - "dev": true, + "version": "6.0.0", + "resolved": "https://registry.npmjs.org/p-locate/-/p-locate-6.0.0.tgz", + "integrity": "sha512-wPrq66Llhl7/4AGC6I+cqxT07LhXvWL08LNXz1fENOw0Ap4sRZZ/gZpTTJ5jpurzzzfS2W/Ge9BY3LgLjCShcw==", "license": "MIT", "dependencies": { - "p-limit": "^3.0.2" + "p-limit": "^4.0.0" }, "engines": { - "node": ">=10" + "node": "^12.20.0 || ^14.13.1 || >=16.0.0" }, "funding": { "url": "https://github.com/sponsors/sindresorhus" @@ -15773,6 +15881,7 @@ "integrity": "sha512-5gTmgEY/sqK6gFXLIsQNH19lWb4ebPDLA4SdLP7dsWkIXHWlG66oPuVvXSGFPppYZz8ZDZq0dYYrbHfBCVUb1Q==", "devOptional": true, "license": "MIT", + "peer": true, "engines": { "node": ">=12" }, @@ -15994,6 +16103,7 @@ "integrity": "sha512-I7AIg5boAr5R0FFtJ6rCfD+LFsWHp81dolrFD8S79U9tb8Az2nGrJncnMSnys+bpQJfRUzqs9hnA81OAA3hCuQ==", "dev": true, "license": "MIT", + "peer": true, "bin": { "prettier": "bin/prettier.cjs" }, @@ -16097,7 +16207,6 @@ "integrity": "sha512-Qb1gy5OrP5+zDf2Bvnzdl3jsTf1qXVMazbvCoKhtKqVs4/YK4ozX4gKQJJVyNe+cajNPn0KoC0MC3FUmaHWEmQ==", "dev": true, "license": "MIT", - "peer": true, "dependencies": { "ansi-regex": "^5.0.1", "ansi-styles": "^5.0.0", @@ -16113,7 +16222,6 @@ "integrity": "sha512-Cxwpt2SfTzTtXcfOlzGEee8O+c+MmUgGrNiBcXnuWxuFJHe6a5Hz7qwhwe5OgaSYI0IJvkLqWX1ASG+cJOkEiA==", "dev": true, "license": "MIT", - "peer": true, "engines": { "node": ">=10" }, @@ -16278,19 +16386,36 @@ } }, "node_modules/raw-body": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/raw-body/-/raw-body-3.0.0.tgz", - "integrity": "sha512-RmkhL8CAyCRPXCE28MMH0z2PNWQBNk2Q09ZdxM9IOOXwxwZbN+qbWaatPkdkWIKL2ZVDImrN/pK5HTRz2PcS4g==", + "version": "3.0.2", + "resolved": "https://registry.npmjs.org/raw-body/-/raw-body-3.0.2.tgz", + "integrity": "sha512-K5zQjDllxWkf7Z5xJdV0/B0WTNqx6vxG70zJE4N0kBs4LovmEYWJzQGxC9bS9RAKu3bgM40lrd5zoLJ12MQ5BA==", "dev": true, "license": "MIT", "dependencies": { - "bytes": "3.1.2", - "http-errors": "2.0.0", - "iconv-lite": "0.6.3", - "unpipe": "1.0.0" + "bytes": "~3.1.2", + "http-errors": "~2.0.1", + "iconv-lite": "~0.7.0", + "unpipe": "~1.0.0" }, "engines": { - "node": ">= 0.8" + "node": ">= 0.10" + } + }, + "node_modules/raw-body/node_modules/iconv-lite": { + "version": "0.7.0", + "resolved": "https://registry.npmjs.org/iconv-lite/-/iconv-lite-0.7.0.tgz", + "integrity": "sha512-cf6L2Ds3h57VVmkZe+Pn+5APsT7FpqJtEhhieDCvrE2MK5Qk9MyffgQyuxQTm6BChfeZNtcOLHp9IcWRVcIcBQ==", + "dev": true, + "license": "MIT", + "dependencies": { + "safer-buffer": ">= 2.1.2 < 3.0.0" + }, + "engines": { + "node": ">=0.10.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/express" } }, "node_modules/rc": { @@ -16325,6 +16450,7 @@ "integrity": "sha512-w8nqGImo45dmMIfljjMwOGtbmC/mk4CMYhWIicdSflH91J9TyCyczcPFXJzrZ/ZXcgGRFeP6BU0BEJTw6tZdfQ==", "dev": true, "license": "MIT", + "peer": true, "engines": { "node": ">=0.10.0" } @@ -16348,8 +16474,7 @@ "resolved": "https://registry.npmjs.org/react-is/-/react-is-17.0.2.tgz", "integrity": "sha512-w2GsyukL62IJnlaff/nRegPQR94C/XXamvMWmSHRJ4y7Ts/4ocGRmTHvOs8PSE6pB3dWOrD/nueuU5sduBsQ4w==", "dev": true, - "license": "MIT", - "peer": true + "license": "MIT" }, "node_modules/react-reconciler": { "version": "0.32.0", @@ -16831,6 +16956,7 @@ "integrity": "sha512-g7RssbTAbir1k/S7uSwSVZFfFXwpomUB9Oas0+xi9KStSCmeDXcA7rNhiskjLqvUe/Evhx8fVCT16OSa34eM5g==", "dev": true, "license": "MIT", + "peer": true, "dependencies": { "@semantic-release/commit-analyzer": "^13.0.0-beta.1", "@semantic-release/error": "^4.0.0", @@ -18363,6 +18489,7 @@ "integrity": "sha512-yyxBKfORQ7LuRt/BQKBXrpcq59ZvSW0XxwfjAt3w2/8PmdxaFzijtMhTawprSHhpzeM5BgU2hXHG3lklIERZXg==", "dev": true, "license": "MIT", + "peer": true, "dependencies": { "esbuild": "~0.25.0", "get-tsconfig": "^4.7.5" @@ -18512,6 +18639,7 @@ "integrity": "sha512-CWBzXQrc/qOkhidw1OzBTQuYRbfyxDXJMVJ1XNwUHGROVmuaeiEm3OslpZ1RV96d7SKKjZKrSJu3+t/xlw3R9A==", "dev": true, "license": "Apache-2.0", + "peer": true, "bin": { "tsc": "bin/tsc", "tsserver": "bin/tsserver" @@ -18573,7 +18701,6 @@ "version": "0.3.0", "resolved": "https://registry.npmjs.org/unicorn-magic/-/unicorn-magic-0.3.0.tgz", "integrity": "sha512-+QBBXBCvifc56fsbuxZQ6Sic3wqqc3WWaqxs58gvJrcOuN83HGTCwz3oS5phzU9LthRNE9VrJCFCLUgHeeFnfA==", - "dev": true, "license": "MIT", "engines": { "node": ">=18" @@ -18632,6 +18759,7 @@ "dev": true, "hasInstallScript": true, "license": "MIT", + "peer": true, "dependencies": { "napi-postinstall": "^0.3.0" }, @@ -18745,6 +18873,7 @@ "integrity": "sha512-cZn6NDFE7wdTpINgs++ZJ4N49W2vRp8LCKrn3Ob1kYNtOo21vfDoaV5GzBfLU4MovSAB8uNRm4jgzVQZ+mBzPQ==", "dev": true, "license": "MIT", + "peer": true, "dependencies": { "esbuild": "^0.25.0", "fdir": "^6.4.4", @@ -18843,6 +18972,7 @@ "integrity": "sha512-LUCP5ev3GURDysTWiP47wRRUpLKMOfPh+yKTx3kVIEiu5KOMeqzpnYNsKyOoVrULivR8tLcks4+lga33Whn90A==", "dev": true, "license": "MIT", + "peer": true, "dependencies": { "@types/chai": "^5.2.2", "@vitest/expect": "3.2.4", @@ -19378,6 +19508,7 @@ "integrity": "sha512-PEIGCY5tSlUt50cqyMXfCzX+oOPqN0vuGqWzbcJ2xvnkzkq46oOpz7dQaTDBdfICb4N14+GARUDw2XV2N4tvzg==", "dev": true, "license": "MIT", + "peer": true, "engines": { "node": ">=10.0.0" }, @@ -19452,6 +19583,7 @@ "integrity": "sha512-lcYcMxX2PO9XMGvAJkJ3OsNMw+/7FKes7/hgerGUYWIoWu5j/+YQqcZr5JnPZWzOsEBgMbSbiSTn/dv/69Mkpw==", "dev": true, "license": "ISC", + "peer": true, "bin": { "yaml": "bin.mjs" }, @@ -19544,13 +19676,12 @@ } }, "node_modules/yocto-queue": { - "version": "0.1.0", - "resolved": "https://registry.npmjs.org/yocto-queue/-/yocto-queue-0.1.0.tgz", - "integrity": "sha512-rVksvsnNCdJ/ohGc6xgPwyN8eheCxsiLM8mxuE/t/mOVqJewPuO1miLpTHQiRgTKCLexL4MeAFVagts7HmNZ2Q==", - "dev": true, + "version": "1.2.2", + "resolved": "https://registry.npmjs.org/yocto-queue/-/yocto-queue-1.2.2.tgz", + "integrity": "sha512-4LCcse/U2MHZ63HAJVE+v71o7yOdIe4cZ70Wpf8D/IyjDKYQLV5GD46B+hSTjJsvV5PztjvHoU580EftxjDZFQ==", "license": "MIT", "engines": { - "node": ">=10" + "node": ">=12.20" }, "funding": { "url": "https://github.com/sponsors/sindresorhus" @@ -19582,6 +19713,7 @@ "integrity": "sha512-gzUt/qt81nXsFGKIFcC3YnfEAx5NkunCfnDlvuBSSFS02bcXu4Lmea0AFIUwbLWxWPx3d9p8S5QoaujKcNQxcQ==", "dev": true, "license": "MIT", + "peer": true, "funding": { "url": "https://github.com/sponsors/colinhacks" } diff --git a/extensions/cli/package.json b/extensions/cli/package.json index e71717797..5debd98e5 100644 --- a/extensions/cli/package.json +++ b/extensions/cli/package.json @@ -46,6 +46,7 @@ "dependencies": { "@sentry/profiling-node": "^9.43.0", "fdir": "^6.4.2", + "find-up": "^8.0.0", "fzf": "^0.5.2", "js-yaml": "^4.1.1" }, @@ -87,6 +88,7 @@ "@vitest/ui": "^3.2.4", "@workos-inc/node": "^7.45.0", "chalk": "^5.4.1", + "clipboardy": "^4.0.0", "commander": "^14.0.0", "conventional-changelog-conventionalcommits": "^9.1.0", "core": "file:../../core", @@ -100,7 +102,6 @@ "eslint-plugin-import": "^2.32.0", "eslint-plugin-unused-imports": "^4.1.4", "execa": "^9.6.0", - "clipboardy": "^4.0.0", "express": "^5.1.0", "glob": "^11.0.3", "gpt-tokenizer": "^3.0.1", diff --git a/extensions/cli/spec/shell-mode.md b/extensions/cli/spec/shell-mode.md index 06ad477e9..2a4693b8a 100644 --- a/extensions/cli/spec/shell-mode.md +++ b/extensions/cli/spec/shell-mode.md @@ -44,8 +44,8 @@ Output handling - Stdout is streamed into memory; Stderr is captured and appended as a trailing "Stderr: ..." section on success. - If the process exits non-zero and Stderr contains content, the tool call is marked as error and the error text is shown. - Output is truncated to the first 5000 lines if exceeded. -- Timeout behavior: If no output is received for 30 seconds (configurable in tests), the process is terminated and the result includes a note like: - "[Command timed out after 30 seconds of no output]". +- Timeout behavior: If no output is received for 120 seconds (configurable in tests), the process is terminated and the result includes a note like: + "[Command timed out after 120 seconds of no output]". Keyboard behaviors (summary) diff --git a/extensions/cli/src/commands/serve.ts b/extensions/cli/src/commands/serve.ts index 684ae7e6e..18fd26748 100644 --- a/extensions/cli/src/commands/serve.ts +++ b/extensions/cli/src/commands/serve.ts @@ -28,7 +28,7 @@ import { messageQueue } from "../stream/messageQueue.js"; import { constructSystemMessage } from "../systemMessage.js"; import { telemetryService } from "../telemetry/telemetryService.js"; import { reportFailureTool } from "../tools/reportFailure.js"; -import { gracefulExit } from "../util/exit.js"; +import { gracefulExit, updateAgentMetadata } from "../util/exit.js"; import { formatError } from "../util/formatError.js"; import { getGitDiffSnapshot } from "../util/git.js"; import { logger } from "../util/logger.js"; @@ -355,9 +355,18 @@ export async function serve(prompt?: string, options: ServeOptions = {}) { } // Give a moment for the response to be sent - const handleExitResponse = () => { - server.close(() => { + const handleExitResponse = async () => { + server.close(async () => { telemetryService.stopActiveTime(); + + // Update metadata one final time before exiting + try { + const history = services.chatHistory?.getHistory(); + await updateAgentMetadata(history); + } catch (err) { + logger.debug("Failed to update metadata (non-critical)", err as any); + } + gracefulExit(0).catch((err) => { logger.error(`Graceful exit failed: ${formatError(err)}`); process.exit(1); @@ -470,6 +479,18 @@ export async function serve(prompt?: string, options: ServeOptions = {}) { // No direct persistence here; ChatHistoryService handles persistence when appropriate state.lastActivity = Date.now(); + + // Update metadata after successful agent turn + try { + const history = services.chatHistory?.getHistory(); + await updateAgentMetadata(history); + } catch (metadataErr) { + // Non-critical: log but don't fail the agent execution + logger.debug( + "Failed to update metadata after turn (non-critical)", + metadataErr as any, + ); + } } catch (e: any) { if (e.name === "AbortError") { logger.debug("Response interrupted"); @@ -526,8 +547,17 @@ export async function serve(prompt?: string, options: ServeOptions = {}) { ); state.serverRunning = false; stopStorageSync(); - server.close(() => { + server.close(async () => { telemetryService.stopActiveTime(); + + // Update metadata one final time before exiting + try { + const history = services.chatHistory?.getHistory(); + await updateAgentMetadata(history); + } catch (err) { + logger.debug("Failed to update metadata (non-critical)", err as any); + } + gracefulExit(0).catch((err) => { logger.error(`Graceful exit failed: ${formatError(err)}`); process.exit(1); @@ -549,8 +579,17 @@ export async function serve(prompt?: string, options: ServeOptions = {}) { clearInterval(inactivityChecker); inactivityChecker = null; } - server.close(() => { + server.close(async () => { telemetryService.stopActiveTime(); + + // Update metadata one final time before exiting + try { + const history = services.chatHistory?.getHistory(); + await updateAgentMetadata(history); + } catch (err) { + logger.debug("Failed to update metadata (non-critical)", err as any); + } + gracefulExit(0).catch((err) => { logger.error(`Graceful exit failed: ${formatError(err)}`); process.exit(1); diff --git a/extensions/cli/src/compaction.infiniteLoop.test.ts b/extensions/cli/src/compaction.infiniteLoop.test.ts index a1e383669..68319b4a0 100644 --- a/extensions/cli/src/compaction.infiniteLoop.test.ts +++ b/extensions/cli/src/compaction.infiniteLoop.test.ts @@ -54,7 +54,7 @@ describe("compaction infinite loop prevention", () => { ]); // This should not hang - it should break out of the loop - const result = await compactChatHistory(history, mockModel, mockLlmApi, {}); + const result = await compactChatHistory(history, mockModel, mockLlmApi); // Should complete successfully even though token count is still too high expect(result.compactedHistory).toBeDefined(); @@ -88,7 +88,7 @@ describe("compaction infinite loop prevention", () => { ]); // This should not hang - const result = await compactChatHistory(history, mockModel, mockLlmApi, {}); + const result = await compactChatHistory(history, mockModel, mockLlmApi); expect(result.compactedHistory).toBeDefined(); }); @@ -129,7 +129,7 @@ describe("compaction infinite loop prevention", () => { { role: "user", content: "Another question" }, ]); - const result = await compactChatHistory(history, mockModel, mockLlmApi, {}); + const result = await compactChatHistory(history, mockModel, mockLlmApi); expect(result.compactedHistory).toBeDefined(); // The function will call countTokens multiple times during the process diff --git a/extensions/cli/src/compaction.test.ts b/extensions/cli/src/compaction.test.ts index fd561ed23..24970cd48 100644 --- a/extensions/cli/src/compaction.test.ts +++ b/extensions/cli/src/compaction.test.ts @@ -385,8 +385,10 @@ describe("compaction", () => { ]); await compactChatHistory(history, mockModel, mockLlmApi, { - onStreamContent, - onStreamComplete, + callbacks: { + onStreamContent, + onStreamComplete, + }, }); expect(onStreamContent).toHaveBeenCalledWith("Summary "); @@ -406,7 +408,9 @@ describe("compaction", () => { ]); await expect( - compactChatHistory(history, mockModel, mockLlmApi, { onError }), + compactChatHistory(history, mockModel, mockLlmApi, { + callbacks: { onError }, + }), ).rejects.toThrow("Stream failed"); expect(onError).toHaveBeenCalledWith(mockError); diff --git a/extensions/cli/src/compaction.ts b/extensions/cli/src/compaction.ts index aa8dc4259..c52ba0147 100644 --- a/extensions/cli/src/compaction.ts +++ b/extensions/cli/src/compaction.ts @@ -22,22 +22,27 @@ export interface CompactionCallbacks { onError?: (error: Error) => void; } +export interface CompactionOptions { + callbacks?: CompactionCallbacks; + abortController?: AbortController; + systemMessageTokens?: number; +} + /** * Compacts a chat history into a summarized form * @param chatHistory The current chat history to compact * @param model The model configuration * @param llmApi The LLM API instance - * @param callbacks Optional callbacks for streaming updates - * @param abortController Optional abort controller for cancellation + * @param options Optional configuration including callbacks, abort controller, and system message tokens * @returns The compacted history with compaction index */ export async function compactChatHistory( chatHistory: ChatHistoryItem[], model: ModelConfig, llmApi: BaseLlmApi, - callbacks?: CompactionCallbacks, - abortController?: AbortController, + options?: CompactionOptions, ): Promise { + const { callbacks, abortController, systemMessageTokens = 0 } = options || {}; // Create a prompt to summarize the conversation const compactionPrompt: ChatHistoryItem = { message: { @@ -56,7 +61,19 @@ export async function compactChatHistory( const maxTokens = model.defaultCompletionOptions?.maxTokens; const reservedForOutput = maxTokens === undefined ? Math.ceil(contextLimit * 0.35) : maxTokens; - const availableForInput = contextLimit - reservedForOutput; + + // Check if system message is already in the history to avoid double-counting + const hasSystemMessageInHistory = chatHistory.some( + (item) => item.message.role === "system", + ); + + // Account for system message (if not already in history) AND safety buffer + const SAFETY_BUFFER = 100; + const systemMessageReservation = hasSystemMessageInHistory + ? 0 + : systemMessageTokens; + const availableForInput = + contextLimit - reservedForOutput - systemMessageReservation - SAFETY_BUFFER; // Check if we need to prune to fit within context while ( diff --git a/extensions/cli/src/services/MCPService.ts b/extensions/cli/src/services/MCPService.ts index 3860259ae..fdf995b0b 100644 --- a/extensions/cli/src/services/MCPService.ts +++ b/extensions/cli/src/services/MCPService.ts @@ -503,11 +503,33 @@ Org-level secrets can only be used for MCP by Background Agents (https://docs.co } catch (error: unknown) { // If token refresh didn't work and it's a 401, fall back to mcp-remote if (isAuthError(error) && !this.isHeadless) { + // Build mcp-remote args with Supabase-specific OAuth scopes if needed + const mcpRemoteArgs = ["-y", "mcp-remote", serverConfig.url]; + + // Detect Supabase MCP and add custom OAuth scopes + if (serverConfig.url.includes("mcp.supabase.com")) { + const supabaseScopes = [ + "organizations:read", + "projects:read", + "database:read", + "analytics:read", + "secrets:read", + "edge_functions:read", + "environment:read", + "storage:read", + ].join(" "); + + mcpRemoteArgs.push( + "--static-oauth-client-metadata", + JSON.stringify({ scope: supabaseScopes }), + ); + } + const transport = this.constructStdioTransport( { name: serverConfig.name, command: "npx", - args: ["-y", "mcp-remote", serverConfig.url], + args: mcpRemoteArgs, }, connection, ); diff --git a/extensions/cli/src/services/StorageSyncService.test.ts b/extensions/cli/src/services/StorageSyncService.test.ts index 1e67a6c2e..ce8a358a3 100644 --- a/extensions/cli/src/services/StorageSyncService.test.ts +++ b/extensions/cli/src/services/StorageSyncService.test.ts @@ -276,4 +276,87 @@ describe("StorageSyncService", () => { service.stop(); }); + + it("refreshes URLs on 403 error", async () => { + const syncSessionHistory = vi.fn(); + const getCompleteStateSnapshot = vi.fn().mockReturnValue({ test: "data" }); + + // Mock initial presign success + fetchMock.mockResolvedValueOnce({ + ok: true, + json: async () => ({ + session: { putUrl: "https://upload/session-old", key: "session.json" }, + diff: { putUrl: "https://upload/diff-old", key: "diff.txt" }, + }), + }); + + // Mock 403 upload failure + fetchMock.mockResolvedValueOnce({ + ok: false, + status: 403, + statusText: "Forbidden", + text: async () => "Request has expired", + }); + + // Mock refresh presign success + fetchMock.mockResolvedValueOnce({ + ok: true, + json: async () => ({ + session: { putUrl: "https://upload/session-new", key: "session.json" }, + diff: { putUrl: "https://upload/diff-new", key: "diff.txt" }, + }), + }); + + gitDiffMock.mockResolvedValue({ diff: "test", repoFound: true }); + + const result = await service.startFromOptions({ + storageOption: "session-123", + accessToken: "token", + syncSessionHistory, + getCompleteStateSnapshot, + isActive: () => true, + }); + + expect(result).toBe(true); + + // Wait for async refresh + await new Promise((resolve) => setTimeout(resolve, 100)); + + expect(fetchMock).toHaveBeenCalledTimes(3); // presign + failed upload + refresh + expect(service.getState().isEnabled).toBe(true); + + service.stop(); + }); + + it("prevents concurrent refresh requests", async () => { + const syncSessionHistory = vi.fn(); + const getCompleteStateSnapshot = vi.fn().mockReturnValue({}); + + fetchMock.mockResolvedValue({ + ok: true, + json: async () => ({ + session: { putUrl: "https://upload/session", key: "session.json" }, + diff: { putUrl: "https://upload/diff", key: "diff.txt" }, + }), + }); + + await service.start({ + storageId: "session-123", + accessToken: "token", + syncSessionHistory, + getCompleteStateSnapshot, + }); + + const refreshMethod = (service as any).refreshStorageTargets.bind(service); + const results = await Promise.all([ + refreshMethod(), + refreshMethod(), + refreshMethod(), + ]); + + const successCount = results.filter((r) => r === true).length; + expect(successCount).toBe(1); // Only first succeeds + + service.stop(); + }); }); diff --git a/extensions/cli/src/services/StorageSyncService.ts b/extensions/cli/src/services/StorageSyncService.ts index 52f0be59d..18e8950cb 100644 --- a/extensions/cli/src/services/StorageSyncService.ts +++ b/extensions/cli/src/services/StorageSyncService.ts @@ -45,6 +45,9 @@ export class StorageSyncService { private missingRepoLogged = false; private targets: StorageTargets | null = null; private options: StorageSyncStartOptions | null = null; + private targetsExpiresAt: number | null = null; + private refreshTimer: NodeJS.Timeout | null = null; + private isRefreshing = false; async initialize(): Promise { this.stop(); @@ -112,6 +115,7 @@ export class StorageSyncService { } this.targets = targets; + this.targetsExpiresAt = Date.now() + 60 * 60 * 1000; // Track 60-minute expiration this.options = options; this.stopped = false; this.uploadInFlight = false; @@ -130,10 +134,17 @@ export class StorageSyncService { ), ); + // Schedule proactive URL refresh at 50-minute mark + this.scheduleProactiveRefresh(); + await this.performUpload(); this.intervalHandle = setInterval(() => { - void this.performUpload(); + this.performUpload().catch((error) => { + logger.warn( + `Storage sync upload failed in interval: ${formatError(error)}`, + ); + }); }, intervalMs); return true; @@ -178,6 +189,7 @@ export class StorageSyncService { stop(): void { this.stopped = true; this.targets = null; + this.targetsExpiresAt = null; this.options = null; this.uploadInFlight = false; @@ -186,6 +198,12 @@ export class StorageSyncService { this.intervalHandle = null; } + // Clear refresh timer + if (this.refreshTimer) { + clearTimeout(this.refreshTimer); + this.refreshTimer = null; + } + if (this.state.isEnabled) { this.setState({ isEnabled: false, @@ -245,6 +263,59 @@ export class StorageSyncService { } } + private async refreshStorageTargets(): Promise { + if (this.isRefreshing || !this.options) { + return false; + } + + this.isRefreshing = true; + logger.info("Refreshing storage pre-signed URLs..."); + + try { + const newTargets = await this.requestStorageTargets( + this.options.storageId, + this.options.accessToken, + ); + + if (!newTargets) { + logger.warn( + "Failed to refresh storage URLs - continuing with existing URLs", + ); + return false; + } + + this.targets = newTargets; + this.targetsExpiresAt = Date.now() + 60 * 60 * 1000; // 60 minutes from now + logger.info("Storage URLs refreshed successfully"); + + // Schedule next proactive refresh at 50-minute mark + this.scheduleProactiveRefresh(); + + return true; + } catch (error) { + logger.warn(`Storage URL refresh error: ${formatError(error)}`); + return false; + } finally { + this.isRefreshing = false; + } + } + + private scheduleProactiveRefresh(): void { + // Clear any existing refresh timer + if (this.refreshTimer) { + clearTimeout(this.refreshTimer); + this.refreshTimer = null; + } + + // Schedule refresh at 50-minute mark (10 minutes before expiry) + const refreshIn = 50 * 60 * 1000; // 50 minutes + this.refreshTimer = setTimeout(() => { + this.refreshStorageTargets().catch((error) => { + logger.warn(`Proactive URL refresh failed: ${formatError(error)}`); + }); + }, refreshIn); + } + private async uploadToPresignedUrl( url: string, body: string, @@ -271,6 +342,16 @@ export class StorageSyncService { if (!response.ok) { const statusText = `${response.status} ${response.statusText}`.trim(); const responseBody = await response.text(); + + // Detect expired URL (403 Forbidden) and trigger refresh + if (response.status === 403) { + logger.warn("Storage URL expired (403), triggering refresh..."); + // Trigger async refresh without blocking the current upload error + this.refreshStorageTargets().catch((error) => { + logger.debug(`Background URL refresh failed: ${formatError(error)}`); + }); + } + throw new Error(`Storage upload failed (${statusText}): ${responseBody}`); } } diff --git a/extensions/cli/src/stream/streamChatResponse.autoCompaction.test.ts b/extensions/cli/src/stream/streamChatResponse.autoCompaction.test.ts index 528e28be2..e797c683a 100644 --- a/extensions/cli/src/stream/streamChatResponse.autoCompaction.test.ts +++ b/extensions/cli/src/stream/streamChatResponse.autoCompaction.test.ts @@ -23,6 +23,7 @@ vi.mock("../session.js", () => ({ vi.mock("../util/tokenizer.js", () => ({ shouldAutoCompact: vi.fn(), getAutoCompactMessage: vi.fn(), + countChatHistoryItemTokens: vi.fn(() => 100), // Mock return value })); vi.mock("../util/formatError.js", () => ({ @@ -38,6 +39,17 @@ vi.mock("../util/logger.js", () => ({ }, })); +vi.mock("../services/index.js", () => ({ + services: { + systemMessage: { + getSystemMessage: vi.fn(() => Promise.resolve("System message")), + }, + toolPermissions: { + getState: vi.fn(() => ({ currentMode: "enabled" })), + }, + }, +})); + vi.mock("os", async (importOriginal) => { const actual = (await importOriginal()) as object; return { @@ -137,7 +149,10 @@ describe("handleAutoCompaction", () => { mockChatHistory, mockModel, mockLlmApi, - expect.any(Object), + expect.objectContaining({ + callbacks: expect.any(Object), + systemMessageTokens: expect.any(Number), + }), ); expect(updateSessionHistory).toHaveBeenCalledWith( mockCompactionResult.compactedHistory, diff --git a/extensions/cli/src/stream/streamChatResponse.autoCompaction.ts b/extensions/cli/src/stream/streamChatResponse.autoCompaction.ts index 797cfba2b..803e7cb06 100644 --- a/extensions/cli/src/stream/streamChatResponse.autoCompaction.ts +++ b/extensions/cli/src/stream/streamChatResponse.autoCompaction.ts @@ -26,6 +26,7 @@ interface AutoCompactionOptions { isHeadless?: boolean; format?: "json"; callbacks?: AutoCompactionCallbacks; + systemMessage?: string; } /** @@ -128,7 +129,11 @@ export async function handleAutoCompaction( compactionIndex: number | null; wasCompacted: boolean; }> { - const { isHeadless = false, callbacks } = options; + const { + isHeadless = false, + callbacks, + systemMessage: providedSystemMessage, + } = options; if (!model || !shouldAutoCompact(chatHistory, model)) { return { chatHistory, compactionIndex: null, wasCompacted: false }; @@ -142,18 +147,38 @@ export async function handleAutoCompaction( notifyCompactionStart(getAutoCompactMessage(model), isHeadless, callbacks); try { + // Get system message to calculate its token count for compaction pruning + // Use provided message if available, otherwise fetch it (for backward compatibility) + const systemMessage = + providedSystemMessage ?? + (async () => { + const { services } = await import("../services/index.js"); + return services.systemMessage.getSystemMessage( + services.toolPermissions.getState().currentMode, + ); + })(); + const resolvedSystemMessage = + typeof systemMessage === "string" ? systemMessage : await systemMessage; + + const { countChatHistoryItemTokens } = await import("../util/tokenizer.js"); + const systemMessageTokens = countChatHistoryItemTokens({ + message: { + role: "system", + content: resolvedSystemMessage, + }, + contextItems: [], + }); + // Compact the history - const result = await compactChatHistory( - chatHistory, - model, - llmApi, - isHeadless + const result = await compactChatHistory(chatHistory, model, llmApi, { + callbacks: isHeadless ? undefined : { onStreamContent: callbacks?.onContent, onStreamComplete: () => {}, }, - ); + systemMessageTokens, + }); // Save the compacted session updateSessionHistory(result.compactedHistory); diff --git a/extensions/cli/src/stream/streamChatResponse.autoContinuation.test.ts b/extensions/cli/src/stream/streamChatResponse.autoContinuation.test.ts new file mode 100644 index 000000000..8803ea987 --- /dev/null +++ b/extensions/cli/src/stream/streamChatResponse.autoContinuation.test.ts @@ -0,0 +1,324 @@ +import { ModelConfig } from "@continuedev/config-yaml"; +import { BaseLlmApi } from "@continuedev/openai-adapters"; +import type { ChatHistoryItem } from "core/index.js"; +import { convertToUnifiedHistory } from "core/util/messageConversion.js"; +import type { ChatCompletionChunk } from "openai/resources/chat/completions.mjs"; +import { beforeEach, describe, expect, it, vi } from "vitest"; + +import { streamChatResponse } from "./streamChatResponse.js"; + +// Mock all dependencies +vi.mock("../compaction.js", () => ({ + compactChatHistory: vi.fn(), + pruneLastMessage: vi.fn((history) => history.slice(0, -1)), +})); + +vi.mock("../session.js", () => ({ + updateSessionHistory: vi.fn(), +})); + +vi.mock("../util/tokenizer.js", () => ({ + shouldAutoCompact: vi.fn(), + getAutoCompactMessage: vi.fn(() => "Auto-compacting..."), + countChatHistoryItemTokens: vi.fn(() => 100), + validateContextLength: vi.fn(() => ({ isValid: true })), +})); + +vi.mock("../telemetry/telemetryService.js", () => ({ + telemetryService: { + logApiRequest: vi.fn(), + recordResponseTime: vi.fn(), + recordTokenUsage: vi.fn(), + recordCost: vi.fn(), + }, +})); + +vi.mock("../telemetry/posthogService.js", () => ({ + posthogService: { + capture: vi.fn(), + }, +})); + +vi.mock("../util/logger.js", () => ({ + logger: { + info: vi.fn(), + debug: vi.fn(), + error: vi.fn(), + warn: vi.fn(), + }, +})); + +vi.mock("../services/index.js", () => ({ + services: { + systemMessage: { + getSystemMessage: vi.fn(() => Promise.resolve("System message")), + }, + toolPermissions: { + getState: vi.fn(() => ({ currentMode: "enabled" })), + isHeadless: vi.fn(() => false), + }, + chatHistory: { + isReady: vi.fn(() => true), + getHistory: vi.fn(() => []), + setHistory: vi.fn(), + addUserMessage: vi.fn(), + }, + }, +})); + +vi.mock("./handleToolCalls.js", () => ({ + handleToolCalls: vi.fn(() => Promise.resolve(false)), + getRequestTools: vi.fn(() => Promise.resolve([])), +})); + +vi.mock("./streamChatResponse.compactionHelpers.js", () => ({ + handlePreApiCompaction: vi.fn((chatHistory) => + Promise.resolve({ chatHistory, wasCompacted: false }), + ), + handlePostToolValidation: vi.fn((_, chatHistory) => + Promise.resolve({ chatHistory, wasCompacted: false }), + ), + handleNormalAutoCompaction: vi.fn((chatHistory) => + Promise.resolve({ chatHistory, wasCompacted: false }), + ), +})); + +describe("streamChatResponse - auto-continuation after compaction", () => { + const mockModel: ModelConfig = { + provider: "openai", + name: "gpt-4", + model: "gpt-4", + defaultCompletionOptions: { + contextLength: 8192, + maxTokens: 2048, + }, + } as any; + + let mockLlmApi: BaseLlmApi; + let mockAbortController: AbortController; + let chatHistory: ChatHistoryItem[]; + let chunks: ChatCompletionChunk[]; + let responseCount: number; + + function contentChunk(content: string): ChatCompletionChunk { + return { + id: "test", + object: "chat.completion.chunk", + created: Date.now(), + model: "test-model", + choices: [ + { + index: 0, + delta: { content }, + finish_reason: null, + }, + ], + }; + } + + beforeEach(() => { + vi.clearAllMocks(); + responseCount = 0; + chunks = [contentChunk("Initial response")]; + chatHistory = convertToUnifiedHistory([{ role: "user", content: "Hello" }]); + + mockLlmApi = { + chatCompletionStream: vi.fn().mockImplementation(async function* () { + responseCount++; + for (const chunk of chunks) { + yield chunk; + } + }), + } as unknown as BaseLlmApi; + + mockAbortController = { + signal: { aborted: false }, + abort: vi.fn(), + } as unknown as AbortController; + }); + + it("should automatically continue after compaction when no tool calls remain", async () => { + const { services } = await import("../services/index.js"); + const { handleNormalAutoCompaction } = await import( + "./streamChatResponse.compactionHelpers.js" + ); + const { logger } = await import("../util/logger.js"); + + // Track history modifications + const historyUpdates: string[] = []; + vi.mocked(services.chatHistory.addUserMessage).mockImplementation((msg) => { + historyUpdates.push(msg); + return { + message: { role: "user", content: msg }, + contextItems: [], + }; + }); + + // First call: compaction happens + // Second call (after continuation): no compaction + let compactionCallCount = 0; + vi.mocked(handleNormalAutoCompaction).mockImplementation(() => { + compactionCallCount++; + return Promise.resolve({ + chatHistory, + wasCompacted: compactionCallCount === 1, // Only first call has compaction + }); + }); + + // Simulate: first response completes (no tool calls), triggering auto-continue + let callCount = 0; + mockLlmApi.chatCompletionStream = vi + .fn() + .mockImplementation(async function* () { + callCount++; + if (callCount === 1) { + // First call: just content, no tool calls (shouldContinue = false) + yield contentChunk("First response"); + } else if (callCount === 2) { + // Second call: after auto-continuation + yield contentChunk("Continued after compaction"); + } + }) as any; + + await streamChatResponse( + chatHistory, + mockModel, + mockLlmApi, + mockAbortController, + ); + + // Verify "continue" message was added + expect(historyUpdates).toContain("continue"); + + // Verify logging occurred + expect(logger.debug).toHaveBeenCalledWith( + "Auto-compaction occurred during this turn - automatically continuing session", + ); + expect(logger.debug).toHaveBeenCalledWith( + "Added continuation message after compaction", + ); + + // Verify the LLM was called multiple times (continuing the conversation) + expect(callCount).toBeGreaterThan(1); + }); + + it("should not auto-continue if compaction occurs with tool calls pending", async () => { + const { services } = await import("../services/index.js"); + const { handleNormalAutoCompaction } = await import( + "./streamChatResponse.compactionHelpers.js" + ); + const { handleToolCalls } = await import("./handleToolCalls.js"); + + const historyUpdates: string[] = []; + vi.mocked(services.chatHistory.addUserMessage).mockImplementation((msg) => { + historyUpdates.push(msg); + return { + message: { role: "user", content: msg }, + contextItems: [], + }; + }); + + // Compaction happens + vi.mocked(handleNormalAutoCompaction).mockResolvedValue({ + chatHistory, + wasCompacted: true, + }); + + // But tool calls are still being processed (shouldContinue = true) + // This is simulated by having handleToolCalls return true (shouldReturn) + vi.mocked(handleToolCalls).mockResolvedValue(true); + + // Mock tool calls in response + mockLlmApi.chatCompletionStream = vi + .fn() + .mockImplementation(async function* () { + yield { + id: "test", + object: "chat.completion.chunk", + created: Date.now(), + model: "test-model", + choices: [ + { + index: 0, + delta: { + tool_calls: [ + { + index: 0, + id: "call_123", + type: "function", + function: { + name: "ReadFile", + arguments: '{"filepath": "/test"}', + }, + }, + ], + }, + finish_reason: null, + }, + ], + }; + }) as any; + + await streamChatResponse( + chatHistory, + mockModel, + mockLlmApi, + mockAbortController, + ); + + // Should NOT auto-continue because tool calls are pending + expect(historyUpdates).not.toContain("continue"); + }); + + it("should not create infinite loops - flag is reset after continuation", async () => { + const { services } = await import("../services/index.js"); + const { handleNormalAutoCompaction } = await import( + "./streamChatResponse.compactionHelpers.js" + ); + + const historyUpdates: string[] = []; + vi.mocked(services.chatHistory.addUserMessage).mockImplementation((msg) => { + historyUpdates.push(msg); + return { + message: { role: "user", content: msg }, + contextItems: [], + }; + }); + + // Track calls - compaction happens on 1st turn, then again on 2nd turn + let normalCompactionCallCount = 0; + vi.mocked(handleNormalAutoCompaction).mockImplementation(() => { + normalCompactionCallCount++; + // Compaction happens on first two calls + return Promise.resolve({ + chatHistory, + wasCompacted: normalCompactionCallCount <= 1, + }); + }); + + let streamCallCount = 0; + mockLlmApi.chatCompletionStream = vi + .fn() + .mockImplementation(async function* () { + streamCallCount++; + yield contentChunk(`Response ${streamCallCount}`); + }) as any; + + await streamChatResponse( + chatHistory, + mockModel, + mockLlmApi, + mockAbortController, + ); + + // Should only add "continue" once + // The flag is reset after the first continuation + const continueCount = historyUpdates.filter( + (msg) => msg === "continue", + ).length; + expect(continueCount).toBeLessThanOrEqual(1); + + // Should have called the LLM at least once + expect(streamCallCount).toBeGreaterThanOrEqual(1); + }); +}); diff --git a/extensions/cli/src/stream/streamChatResponse.compactionHelpers.ts b/extensions/cli/src/stream/streamChatResponse.compactionHelpers.ts new file mode 100644 index 000000000..d1c42517f --- /dev/null +++ b/extensions/cli/src/stream/streamChatResponse.compactionHelpers.ts @@ -0,0 +1,212 @@ +import { ModelConfig } from "@continuedev/config-yaml"; +import { BaseLlmApi } from "@continuedev/openai-adapters"; +import type { ChatHistoryItem } from "core/index.js"; + +import { services } from "../services/index.js"; +import { ToolCall } from "../tools/index.js"; +import { logger } from "../util/logger.js"; +import { validateContextLength } from "../util/tokenizer.js"; + +import { handleAutoCompaction } from "./streamChatResponse.autoCompaction.js"; +import { StreamCallbacks } from "./streamChatResponse.types.js"; + +export interface CompactionHelperOptions { + model: ModelConfig; + llmApi: BaseLlmApi; + isCompacting: boolean; + isHeadless: boolean; + callbacks?: StreamCallbacks; + systemMessage: string; +} + +/** + * Handle pre-API auto-compaction if needed + */ +export async function handlePreApiCompaction( + chatHistory: ChatHistoryItem[], + options: CompactionHelperOptions, +): Promise<{ chatHistory: ChatHistoryItem[]; wasCompacted: boolean }> { + const { model, llmApi, isCompacting, isHeadless, callbacks, systemMessage } = + options; + + if (isCompacting) { + return { chatHistory, wasCompacted: false }; + } + + const { wasCompacted, chatHistory: preCompactHistory } = + await handleAutoCompaction(chatHistory, model, llmApi, { + isHeadless, + callbacks: { + onSystemMessage: callbacks?.onSystemMessage, + onContent: callbacks?.onContent, + }, + systemMessage, + }); + + if (wasCompacted) { + logger.debug("Pre-API compaction occurred, updating chat history"); + const chatHistorySvc = services.chatHistory; + if ( + typeof chatHistorySvc?.isReady === "function" && + chatHistorySvc.isReady() + ) { + chatHistorySvc.setHistory(preCompactHistory); + return { chatHistory: chatHistorySvc.getHistory(), wasCompacted: true }; + } + return { chatHistory: [...preCompactHistory], wasCompacted: true }; + } + + return { chatHistory, wasCompacted: false }; +} + +/** + * Validate and handle context overflow after tool execution + */ +export async function handlePostToolValidation( + toolCalls: ToolCall[], + chatHistory: ChatHistoryItem[], + options: CompactionHelperOptions, +): Promise<{ chatHistory: ChatHistoryItem[]; wasCompacted: boolean }> { + const { model, llmApi, isHeadless, callbacks, systemMessage } = options; + + if (toolCalls.length === 0) { + return { chatHistory, wasCompacted: false }; + } + + // Get updated history after tool execution + const chatHistorySvc = services.chatHistory; + if ( + typeof chatHistorySvc?.isReady === "function" && + chatHistorySvc.isReady() + ) { + chatHistory = chatHistorySvc.getHistory(); + } + + // Validate with system message to catch tool result overflow + const postToolSystemItem: ChatHistoryItem = { + message: { + role: "system", + content: systemMessage, + }, + contextItems: [], + }; + + const SAFETY_BUFFER = 100; + const postToolValidation = validateContextLength( + [postToolSystemItem, ...chatHistory], + model, + SAFETY_BUFFER, + ); + + // If tool results pushed us over limit, force compaction regardless of threshold + if (!postToolValidation.isValid) { + logger.warn("Tool execution caused context overflow, forcing compaction", { + inputTokens: postToolValidation.inputTokens, + contextLimit: postToolValidation.contextLimit, + }); + + // Force compaction (compaction now accounts for system message during pruning) + const { wasCompacted, chatHistory: compactedHistory } = + await handleAutoCompaction(chatHistory, model, llmApi, { + isHeadless, + callbacks: { + onSystemMessage: callbacks?.onSystemMessage, + onContent: callbacks?.onContent, + }, + systemMessage, + }); + + if (wasCompacted) { + // Use the service to update history if available, otherwise use local copy + if (chatHistorySvc && typeof chatHistorySvc.setHistory === "function") { + chatHistorySvc.setHistory(compactedHistory); + chatHistory = chatHistorySvc.getHistory(); + } else { + // Fallback: use the compacted history directly when service unavailable + chatHistory = compactedHistory; + } + + // Verify compaction brought us under the limit + const postCompactionValidation = validateContextLength( + [postToolSystemItem, ...chatHistory], + model, + SAFETY_BUFFER, + ); + + if (!postCompactionValidation.isValid) { + logger.error( + "Compaction failed to bring context under limit, stopping execution", + { + inputTokens: postCompactionValidation.inputTokens, + contextLimit: postCompactionValidation.contextLimit, + }, + ); + throw new Error( + `Context limit exceeded even after compaction: ${postCompactionValidation.error}`, + ); + } + + logger.info("Successfully compacted after tool overflow", { + inputTokens: postCompactionValidation.inputTokens, + contextLimit: postCompactionValidation.contextLimit, + }); + return { chatHistory, wasCompacted: true }; + } else { + // Compaction failed, cannot continue + logger.error("Failed to compact history after tool execution overflow"); + throw new Error( + "Context limit exceeded and compaction failed. Unable to continue.", + ); + } + } + + return { chatHistory, wasCompacted: false }; +} + +/** + * Handle normal auto-compaction check at 80% threshold + */ +export async function handleNormalAutoCompaction( + chatHistory: ChatHistoryItem[], + shouldContinue: boolean, + options: CompactionHelperOptions, +): Promise<{ chatHistory: ChatHistoryItem[]; wasCompacted: boolean }> { + const { model, llmApi, isHeadless, callbacks, systemMessage } = options; + + if (!shouldContinue) { + return { chatHistory, wasCompacted: false }; + } + + const chatHistorySvc = services.chatHistory; + if ( + typeof chatHistorySvc?.isReady === "function" && + chatHistorySvc.isReady() + ) { + chatHistory = chatHistorySvc.getHistory(); + } + + const { wasCompacted, chatHistory: updatedChatHistory } = + await handleAutoCompaction(chatHistory, model, llmApi, { + isHeadless, + callbacks: { + onSystemMessage: callbacks?.onSystemMessage, + onContent: callbacks?.onContent, + }, + systemMessage, + }); + + if (wasCompacted) { + // Use the service to update history if available, otherwise use local copy + if (chatHistorySvc && typeof chatHistorySvc.setHistory === "function") { + chatHistorySvc.setHistory(updatedChatHistory); + return { + chatHistory: chatHistorySvc.getHistory(), + wasCompacted: true, + }; + } + // Fallback: return the compacted history directly when service unavailable + return { chatHistory: updatedChatHistory, wasCompacted: true }; + } + + return { chatHistory, wasCompacted: false }; +} diff --git a/extensions/cli/src/stream/streamChatResponse.systemMessage.test.ts b/extensions/cli/src/stream/streamChatResponse.systemMessage.test.ts new file mode 100644 index 000000000..cd20f734c --- /dev/null +++ b/extensions/cli/src/stream/streamChatResponse.systemMessage.test.ts @@ -0,0 +1,200 @@ +import { ModelConfig } from "@continuedev/config-yaml"; +import { BaseLlmApi } from "@continuedev/openai-adapters"; +import type { ChatHistoryItem } from "core/index.js"; +import { beforeEach, describe, expect, it, vi } from "vitest"; + +import { services } from "../services/index.js"; + +import { processStreamingResponse } from "./streamChatResponse.js"; + +// Mock services +vi.mock("../services/index.js", () => ({ + services: { + systemMessage: { + getSystemMessage: vi.fn(), + }, + toolPermissions: { + getState: vi.fn(() => ({ currentMode: "enabled" })), + isHeadless: vi.fn(() => false), + }, + chatHistory: { + isReady: vi.fn(() => false), + }, + }, +})); + +// Mock logger +vi.mock("../util/logger.js", () => ({ + logger: { + debug: vi.fn(), + info: vi.fn(), + warn: vi.fn(), + error: vi.fn(), + }, +})); + +// Mock tokenizer +vi.mock("../util/tokenizer.js", async () => { + const actual = await vi.importActual("../util/tokenizer.js"); + return { + ...actual, + countChatHistoryTokens: vi.fn((history: ChatHistoryItem[]) => { + // Simple mock: count based on content length + return history.reduce((sum, item) => { + const content = + typeof item.message.content === "string" + ? item.message.content + : JSON.stringify(item.message.content); + return sum + Math.ceil(content.length / 4); // ~4 chars per token + }, 0); + }), + }; +}); + +describe("streamChatResponse system message validation", () => { + let mockLlmApi: BaseLlmApi; + let abortController: AbortController; + + beforeEach(() => { + vi.clearAllMocks(); + + mockLlmApi = {} as BaseLlmApi; + abortController = new AbortController(); + }); + + it("should validate system message is retrieved before validation", async () => { + const model = { + model: "test-model", + defaultCompletionOptions: { + contextLength: 1000, + maxTokens: 100, + }, + } as ModelConfig; + + // Mock system message + const systemMessage = "System instructions"; + vi.mocked(services.systemMessage.getSystemMessage).mockResolvedValue( + systemMessage, + ); + + // Small chat history + const chatHistory: ChatHistoryItem[] = [ + { + message: { role: "user", content: "test" }, + contextItems: [], + }, + ]; + + // Mock the streaming response to avoid actual API call + const mockStream = { + [Symbol.asyncIterator]: async function* () { + yield { + choices: [{ delta: { content: "test" } }], + }; + }, + }; + mockLlmApi.chatCompletionStream = vi.fn().mockResolvedValue(mockStream); + + // Execute the function with systemMessage parameter + await processStreamingResponse({ + chatHistory, + model, + llmApi: mockLlmApi, + abortController, + systemMessage, + }); + + // Verify the function uses the provided system message (no fetch needed) + // The system message is now provided by the caller + expect(services.systemMessage.getSystemMessage).not.toHaveBeenCalled(); + }); + + it("should pass validation when system message + history fits", async () => { + const model = { + model: "test-model", + defaultCompletionOptions: { + contextLength: 1000, + maxTokens: 100, + }, + } as ModelConfig; + + // Small system message (50 tokens worth) + const smallSystemMessage = "x".repeat(200); // ~50 tokens + + // Small chat history (200 tokens worth) + const chatHistory: ChatHistoryItem[] = [ + { + message: { role: "user", content: "x".repeat(800) }, // ~200 tokens + contextItems: [], + }, + ]; + + // Available: 1000 - 100 (maxTokens) - 100 (buffer) = 800 tokens + // System: ~50 tokens + // History: ~200 tokens + // Total: ~250 tokens < 800 available + // Should pass validation + + // Mock the streaming response to avoid actual API call + const mockStream = { + [Symbol.asyncIterator]: async function* () { + yield { + choices: [{ delta: { content: "test" } }], + }; + }, + }; + + mockLlmApi.chatCompletionStream = vi.fn().mockResolvedValue(mockStream); + + // This should not throw + const result = await processStreamingResponse({ + chatHistory, + model, + llmApi: mockLlmApi, + abortController, + systemMessage: smallSystemMessage, + }); + + expect(result).toBeDefined(); + // System message is now provided by caller, not fetched + expect(services.systemMessage.getSystemMessage).not.toHaveBeenCalled(); + }); + + it("should use safety buffer in validation", async () => { + const model = { + model: "test-model", + defaultCompletionOptions: { + contextLength: 1000, + maxTokens: 100, + }, + } as ModelConfig; + + // System message + history that's exactly at limit without buffer + // but fails with buffer + const systemMessage = "x".repeat(800); // ~200 tokens + + const chatHistory: ChatHistoryItem[] = [ + { + message: { role: "user", content: "x".repeat(2400) }, // ~600 tokens + contextItems: [], + }, + ]; + + // Available without buffer: 1000 - 100 = 900 tokens + // Available with buffer: 1000 - 100 - 100 = 800 tokens + // System: ~200 tokens + // History: ~600 tokens + // Total: ~800 tokens + // Should exactly hit the limit with buffer and pass/prune + + await expect( + processStreamingResponse({ + chatHistory, + model, + llmApi: mockLlmApi, + abortController, + systemMessage, + }), + ).rejects.toThrow(); // Will fail because we can't prune enough + }); +}); diff --git a/extensions/cli/src/stream/streamChatResponse.test.ts b/extensions/cli/src/stream/streamChatResponse.test.ts index 685bf04d5..131132e3f 100644 --- a/extensions/cli/src/stream/streamChatResponse.test.ts +++ b/extensions/cli/src/stream/streamChatResponse.test.ts @@ -152,6 +152,7 @@ describe("processStreamingResponse - content preservation", () => { model: mockModel, llmApi: mockLlmApi, abortController: mockAbortController, + systemMessage: "You are a helpful assistant.", }); expect(result.content).toBe("I'll read the README file for you."); @@ -172,6 +173,7 @@ describe("processStreamingResponse - content preservation", () => { model: mockModel, llmApi: mockLlmApi, abortController: mockAbortController, + systemMessage: "You are a helpful assistant.", }); expect(result.content).toBe("Let me search for that. "); @@ -220,6 +222,7 @@ describe("processStreamingResponse - content preservation", () => { model: mockModel, llmApi: mockLlmApi, abortController: mockAbortController, + systemMessage: "You are a helpful assistant.", }); expect(result.content).toBe("I'll read the README file for you."); @@ -243,6 +246,7 @@ describe("processStreamingResponse - content preservation", () => { model: mockModel, llmApi: mockLlmApi, abortController: mockAbortController, + systemMessage: "You are a helpful assistant.", }); expect(result.content).toBe("Hello world!"); @@ -367,6 +371,7 @@ describe("processStreamingResponse - content preservation", () => { model: mockModel, llmApi: mockLlmApi, abortController: mockAbortController, + systemMessage: "You are a helpful assistant.", }); expect(responsesStream).toHaveBeenCalledTimes(1); @@ -405,6 +410,7 @@ describe("processStreamingResponse - content preservation", () => { model: mockModel, llmApi: mockLlmApi, abortController: mockAbortController, + systemMessage: "You are a helpful assistant.", }); // Content is captured correctly @@ -455,6 +461,7 @@ describe("processStreamingResponse - content preservation", () => { model: mockModel, llmApi: mockLlmApi, abortController: mockAbortController, + systemMessage: "You are a helpful assistant.", }); // Fixed: Both issues are resolved @@ -503,6 +510,7 @@ describe("processStreamingResponse - content preservation", () => { model: mockModel, llmApi: mockLlmApi, abortController: mockAbortController, + systemMessage: "You are a helpful assistant.", }); } catch (error) { caughtError = error; @@ -516,6 +524,7 @@ describe("processStreamingResponse - content preservation", () => { model: mockModel, llmApi: mockLlmApi, abortController: mockAbortController, + systemMessage: "You are a helpful assistant.", }); expect(result.content).toBe("Hello world!"); diff --git a/extensions/cli/src/stream/streamChatResponse.ts b/extensions/cli/src/stream/streamChatResponse.ts index 7c99c0ffa..be23f9f7f 100644 --- a/extensions/cli/src/stream/streamChatResponse.ts +++ b/extensions/cli/src/stream/streamChatResponse.ts @@ -22,7 +22,11 @@ import { logger } from "../util/logger.js"; import { validateContextLength } from "../util/tokenizer.js"; import { getRequestTools, handleToolCalls } from "./handleToolCalls.js"; -import { handleAutoCompaction } from "./streamChatResponse.autoCompaction.js"; +import { + handleNormalAutoCompaction, + handlePostToolValidation, + handlePreApiCompaction, +} from "./streamChatResponse.compactionHelpers.js"; import { processChunkContent, processToolCallDelta, @@ -66,6 +70,63 @@ function handleContentDisplay( } } +// Helper function to refresh chat history from service +function refreshChatHistoryFromService( + chatHistory: ChatHistoryItem[], + isCompacting: boolean, +): ChatHistoryItem[] { + const chatHistorySvc = services.chatHistory; + if ( + typeof chatHistorySvc?.isReady === "function" && + chatHistorySvc.isReady() + ) { + try { + // use chat history from params when isCompacting is true + // otherwise use the full history + if (!isCompacting) { + return chatHistorySvc.getHistory(); + } + } catch {} + } + return chatHistory; +} + +// Helper function to handle auto-continuation after compaction +function handleAutoContinuation( + compactionOccurred: boolean, + shouldContinue: boolean, + chatHistory: ChatHistoryItem[], +): { shouldAutoContinue: boolean; chatHistory: ChatHistoryItem[] } { + if (!compactionOccurred || shouldContinue) { + return { shouldAutoContinue: false, chatHistory }; + } + + logger.debug( + "Auto-compaction occurred during this turn - automatically continuing session", + ); + + // Add a continuation message to the history + const chatHistorySvc = services.chatHistory; + if ( + typeof chatHistorySvc?.isReady === "function" && + chatHistorySvc.isReady() + ) { + chatHistorySvc.addUserMessage("continue"); + chatHistory = chatHistorySvc.getHistory(); + } else { + chatHistory.push({ + message: { + role: "user", + content: "continue", + }, + contextItems: [], + }); + } + + logger.debug("Added continuation message after compaction"); + return { shouldAutoContinue: true, chatHistory }; +} + // Helper function to process a single chunk interface ProcessChunkOptions { chunk: any; @@ -128,6 +189,7 @@ interface ProcessStreamingResponseOptions { callbacks?: StreamCallbacks; isHeadless?: boolean; tools?: ChatCompletionTool[]; + systemMessage: string; } // Process a single streaming response and return whether we need to continue @@ -140,30 +202,56 @@ export async function processStreamingResponse( toolCalls: ToolCall[]; shouldContinue: boolean; }> { - const { model, llmApi, abortController, callbacks, isHeadless, tools } = - options; + const { + model, + llmApi, + abortController, + callbacks, + isHeadless, + tools, + systemMessage, + } = options; let chatHistory = options.chatHistory; - // Validate context length before making the request - let validation = validateContextLength(chatHistory, model); + // Create temporary system message item for validation + const systemMessageItem: ChatHistoryItem = { + message: { + role: "system", + content: systemMessage, + }, + contextItems: [], + }; - // Prune last messages until valid + // Safety buffer to account for tokenization estimation errors + const SAFETY_BUFFER = 100; + + // Validate context length INCLUDING system message + let historyWithSystem = [systemMessageItem, ...chatHistory]; + let validation = validateContextLength( + historyWithSystem, + model, + SAFETY_BUFFER, + ); + + // Prune last messages until valid (excluding system message) while (chatHistory.length > 1 && !validation.isValid) { const prunedChatHistory = pruneLastMessage(chatHistory); - if (prunedChatHistory.length === chatHistory.length) break; + if (prunedChatHistory.length === chatHistory.length) { + break; + } chatHistory = prunedChatHistory; - validation = validateContextLength(chatHistory, model); + + // Re-validate with system message + historyWithSystem = [systemMessageItem, ...chatHistory]; + validation = validateContextLength(historyWithSystem, model, SAFETY_BUFFER); } if (!validation.isValid) { throw new Error(`Context length validation failed: ${validation.error}`); } - // Get fresh system message and inject it - const systemMessage = await services.systemMessage.getSystemMessage( - services.toolPermissions.getState().currentMode, - ); + // Create OpenAI format history with validated system message const openaiChatHistory = convertFromUnifiedHistoryWithSystemMessage( chatHistory, systemMessage, @@ -329,7 +417,7 @@ export async function processStreamingResponse( } // Main function that handles the conversation loop -// eslint-disable-next-line complexity, max-params +// eslint-disable-next-line max-params export async function streamChatResponse( chatHistory: ChatHistoryItem[], model: ModelConfig, @@ -348,53 +436,32 @@ export async function streamChatResponse( let fullResponse = ""; let finalResponse = ""; + let compactionOccurredThisTurn = false; // Track if compaction happened during this conversation turn while (true) { // If ChatHistoryService is available, refresh local chatHistory view - const chatHistorySvc = services.chatHistory; - if ( - typeof chatHistorySvc?.isReady === "function" && - chatHistorySvc.isReady() - ) { - try { - // use chat history from params when isCompacting is true - // otherwise use the full history - if (!isCompacting) { - chatHistory = chatHistorySvc.getHistory(); - } - } catch {} - } + chatHistory = refreshChatHistoryFromService(chatHistory, isCompacting); logger.debug("Starting conversation iteration"); logger.debug("debug1 streamChatResponse history", { chatHistory }); - // avoid pre-compaction when compaction is in progress - // this also avoids infinite compaction call stacks - if (!isCompacting) { - // Pre-API auto-compaction checkpoint - const { wasCompacted: preCompacted, chatHistory: preCompactHistory } = - await handleAutoCompaction(chatHistory, model, llmApi, { - isHeadless, - callbacks: { - onSystemMessage: callbacks?.onSystemMessage, - onContent: callbacks?.onContent, - }, - }); + // Get system message once per iteration (can change based on tool permissions mode) + const systemMessage = await services.systemMessage.getSystemMessage( + services.toolPermissions.getState().currentMode, + ); - if (preCompacted) { - logger.debug("Pre-API compaction occurred, updating chat history"); - // Update chat history after pre-compaction - const chatHistorySvc2 = services.chatHistory; - if ( - typeof chatHistorySvc2?.isReady === "function" && - chatHistorySvc2.isReady() - ) { - chatHistorySvc2.setHistory(preCompactHistory); - chatHistory = chatHistorySvc2.getHistory(); - } else { - chatHistory = [...preCompactHistory]; - } - } + // Pre-API auto-compaction checkpoint + const preCompactionResult = await handlePreApiCompaction(chatHistory, { + model, + llmApi, + isCompacting, + isHeadless, + callbacks, + systemMessage, + }); + chatHistory = preCompactionResult.chatHistory; + if (preCompactionResult.wasCompacted) { + compactionOccurredThisTurn = true; } // Recompute tools on each iteration to handle mode changes during streaming @@ -415,6 +482,7 @@ export async function streamChatResponse( abortController, callbacks, tools, + systemMessage, }); if (abortController?.signal.aborted) { @@ -447,36 +515,59 @@ export async function streamChatResponse( return finalResponse || content || fullResponse; } - // Check for auto-compaction after tool execution - if (shouldContinue) { - const { wasCompacted, chatHistory: updatedChatHistory } = - await handleAutoCompaction(chatHistory, model, llmApi, { - isHeadless, - callbacks: { - onSystemMessage: callbacks?.onSystemMessage, - onContent: callbacks?.onContent, - }, - }); - - // Only update chat history if compaction actually occurred - if (wasCompacted) { - // Always prefer service; local copy is for temporary reads only - const chatHistorySvc2 = services.chatHistory; - if ( - typeof chatHistorySvc2?.isReady === "function" && - chatHistorySvc2.isReady() - ) { - chatHistorySvc2.setHistory(updatedChatHistory); - chatHistory = chatHistorySvc2.getHistory(); - } else { - // Fallback only when service is unavailable - chatHistory = [...updatedChatHistory]; - } - } + // After tool execution, validate that we haven't exceeded context limit + const postToolResult = await handlePostToolValidation( + toolCalls, + chatHistory, + { + model, + llmApi, + isCompacting, + isHeadless, + callbacks, + systemMessage, + }, + ); + chatHistory = postToolResult.chatHistory; + if (postToolResult.wasCompacted) { + compactionOccurredThisTurn = true; } - // Check if we should continue - if (!shouldContinue) { + // Normal auto-compaction check at 80% threshold + const compactionResult = await handleNormalAutoCompaction( + chatHistory, + shouldContinue, + { + model, + llmApi, + isCompacting, + isHeadless, + callbacks, + systemMessage, + }, + ); + chatHistory = compactionResult.chatHistory; + if (compactionResult.wasCompacted) { + compactionOccurredThisTurn = true; + } + + // If compaction happened during this turn and we're about to stop, + // automatically send a continuation message to keep the agent going + const autoContinueResult = handleAutoContinuation( + compactionOccurredThisTurn, + shouldContinue, + chatHistory, + ); + chatHistory = autoContinueResult.chatHistory; + const shouldAutoContinue = autoContinueResult.shouldAutoContinue; + + // Reset flag to avoid infinite continuation + if (shouldAutoContinue) { + compactionOccurredThisTurn = false; + } + + // Check if we should continue (skip break if auto-continuing after compaction) + if (!shouldContinue && !shouldAutoContinue) { break; } } diff --git a/extensions/cli/src/tools/runTerminalCommand.ts b/extensions/cli/src/tools/runTerminalCommand.ts index 69706c21a..cfa096655 100644 --- a/extensions/cli/src/tools/runTerminalCommand.ts +++ b/extensions/cli/src/tools/runTerminalCommand.ts @@ -88,7 +88,7 @@ IMPORTANT: To edit files, use Edit/MultiEdit tools instead of bash commands (sed const TIMEOUT_MS = process.env.NODE_ENV === "test" && process.env.TEST_TERMINAL_TIMEOUT ? parseInt(process.env.TEST_TERMINAL_TIMEOUT, 10) - : 30000; // 30 seconds default, configurable for tests + : 120000; // 120 seconds default, configurable for tests const resetTimeout = () => { if (timeoutId) { diff --git a/extensions/cli/src/tools/searchCode.ts b/extensions/cli/src/tools/searchCode.ts index cd4a1d77e..e7fa4e502 100644 --- a/extensions/cli/src/tools/searchCode.ts +++ b/extensions/cli/src/tools/searchCode.ts @@ -3,15 +3,27 @@ import * as fs from "fs"; import * as util from "util"; import { ContinueError, ContinueErrorReason } from "core/util/errors.js"; +import { findUp } from "find-up"; import { Tool } from "./types.js"; const execPromise = util.promisify(child_process.exec); -// Default maximum number of results to display -const DEFAULT_MAX_RESULTS = 100; -const MAX_LINE_LENGTH = 1000; +async function getGitignorePatterns() { + const gitIgnorePath = await findUp(".gitignore"); + if (!gitIgnorePath) return []; + const content = fs.readFileSync(gitIgnorePath, "utf-8"); + const ignorePatterns = []; + for (let line of content.trim().split("\n")) { + line = line.trim(); + if (line.startsWith("#") || line === "") continue; // ignore comments and empty line + if (line.startsWith("!")) continue; // ignore negated ignores + ignorePatterns.push(line); + } + return ignorePatterns; +} +// procedure 1: search with ripgrep export async function checkIfRipgrepIsInstalled(): Promise { try { await execPromise("rg --version"); @@ -21,6 +33,57 @@ export async function checkIfRipgrepIsInstalled(): Promise { } } +async function searchWithRipgrep( + pattern: string, + searchPath: string, + filePattern?: string, +) { + let command = `rg --line-number --with-filename --color never "${pattern}"`; + + if (filePattern) { + command += ` -g "${filePattern}"`; + } + + const ignorePatterns = await getGitignorePatterns(); + for (const ignorePattern of ignorePatterns) { + command += ` -g "!${ignorePattern}"`; + } + + command += ` "${searchPath}"`; + const { stdout, stderr } = await execPromise(command); + return { stdout, stderr }; +} + +// procedure 2: search with grep on unix or findstr on windows +async function searchWithGrepOrFindstr( + pattern: string, + searchPath: string, + filePattern?: string, +) { + const isWindows = process.platform === "win32"; + const ignorePatterns = await getGitignorePatterns(); + let command: string; + if (isWindows) { + const fileSpec = filePattern ? filePattern : "*"; + command = `findstr /S /N /P /R "${pattern}" "${fileSpec}"`; // findstr does not support ignoring patterns + } else { + let excludeArgs = ""; + for (const ignorePattern of ignorePatterns) { + excludeArgs += ` --exclude="${ignorePattern}" --exclude-dir="${ignorePattern}"`; // use both exclude and exclude-dir because ignorePattern can be a file or directory + } + if (filePattern) { + command = `find . -type f -path "${filePattern}" -print0 | xargs -0 grep -nH -I${excludeArgs} "${pattern}"`; + } else { + command = `grep -R -n -H -I${excludeArgs} "${pattern}" .`; + } + } + return await execPromise(command, { cwd: searchPath }); +} + +// Default maximum number of results to display +const DEFAULT_MAX_RESULTS = 100; +const MAX_LINE_LENGTH = 1000; + export const searchCodeTool: Tool = { name: "Search", displayName: "Search", @@ -73,15 +136,26 @@ export const searchCodeTool: Tool = { ); } - let command = `rg --line-number --with-filename --color never "${args.pattern}"`; - - if (args.file_pattern) { - command += ` -g "${args.file_pattern}"`; - } - - command += ` "${searchPath}"`; + let stdout = "", + stderr = ""; try { - const { stdout, stderr } = await execPromise(command); + if (await checkIfRipgrepIsInstalled()) { + const results = await searchWithRipgrep( + args.pattern, + searchPath, + args.file_pattern, + ); + stdout = results.stdout; + stderr = results.stderr; + } else { + const results = await searchWithGrepOrFindstr( + args.pattern, + searchPath, + args.file_pattern, + ); + stdout = results.stdout; + stderr = results.stderr; + } if (stderr) { return `Warning during search: ${stderr}\n\n${stdout}`; @@ -121,13 +195,8 @@ export const searchCodeTool: Tool = { args.file_pattern ? ` in files matching "${args.file_pattern}"` : "" }.`; } - if (error instanceof Error) { - if (error.message.includes("command not found")) { - throw new Error(`ripgrep is not installed.`); - } - } throw new Error( - `Error executing ripgrep: ${ + `Error executing search: ${ error instanceof Error ? error.message : String(error) }`, ); diff --git a/extensions/cli/src/ui/__tests__/TUIChat.editMessage.test.tsx b/extensions/cli/src/ui/__tests__/TUIChat.editMessage.test.tsx index 9e6a92874..2a537cf3d 100644 --- a/extensions/cli/src/ui/__tests__/TUIChat.editMessage.test.tsx +++ b/extensions/cli/src/ui/__tests__/TUIChat.editMessage.test.tsx @@ -1,4 +1,5 @@ -import { testBothModes, renderInMode } from "./TUIChat.dualModeHelper.js"; +import { renderInMode, testBothModes } from "./TUIChat.dualModeHelper.js"; +import { waitForCondition } from "./TUIChat.testHelper.js"; /** * Integration tests for the message edit feature in TUIChat @@ -10,7 +11,6 @@ import { testBothModes, renderInMode } from "./TUIChat.dualModeHelper.js"; * 4. History is rewound and new message is submitted * 5. Chat updates correctly */ - describe("TUIChat - Message Edit Feature", () => { testBothModes("double Esc should open edit selector", async (mode) => { const { lastFrame, stdin } = renderInMode(mode); @@ -119,7 +119,11 @@ describe("TUIChat - Message Edit Feature", () => { // Perform various operations stdin.write("\u001b"); stdin.write("\u001b"); // Open edit with separate Esc presses - await new Promise((resolve) => setTimeout(resolve, 100)); + + // Wait for selector to open (poll instead of fixed timeout) + await waitForCondition( + () => lastFrame()?.includes("No user messages to edit") ?? false, + ); // Verify selector opened let frame = lastFrame(); @@ -130,7 +134,11 @@ describe("TUIChat - Message Edit Feature", () => { await new Promise((resolve) => setTimeout(resolve, 50)); stdin.write("\u001b"); // Close - await new Promise((resolve) => setTimeout(resolve, 100)); + + // Wait for selector to close (poll instead of fixed timeout) + await waitForCondition( + () => !(lastFrame()?.includes("No user messages to edit") ?? true), + ); frame = lastFrame(); diff --git a/extensions/cli/src/ui/__tests__/TUIChat.fileSearch.test.tsx b/extensions/cli/src/ui/__tests__/TUIChat.fileSearch.test.tsx index b38a90cb6..b469b2725 100644 --- a/extensions/cli/src/ui/__tests__/TUIChat.fileSearch.test.tsx +++ b/extensions/cli/src/ui/__tests__/TUIChat.fileSearch.test.tsx @@ -1,5 +1,5 @@ import { renderInMode, testSingleMode } from "./TUIChat.dualModeHelper.js"; -import { waitForNextRender } from "./TUIChat.testHelper.js"; +import { waitForCondition } from "./TUIChat.testHelper.js"; describe("TUIChat - @ File Search Tests", () => { testSingleMode("shows @ character when user types @", "local", async () => { @@ -34,17 +34,20 @@ describe("TUIChat - @ File Search Tests", () => { // Type @ followed by text to filter files stdin.write("@READ"); - // Wait for file search to filter and display results - await new Promise((resolve) => setTimeout(resolve, 500)); + let frame = lastFrame(); - const frame = lastFrame()!; + await waitForCondition(() => { + frame = lastFrame(); + return frame?.includes("@READ") ?? false; + }); + expect(frame).toBeDefined(); // Should show the typed text expect(frame).toContain("@READ"); // Should show either navigation hints or at least indicate file search is working - const hasNavigationHints = frame.includes("↑/↓ to navigate"); - const hasFileSearch = frame.includes("@READ"); + const hasNavigationHints = frame!.includes("↑/↓ to navigate"); + const hasFileSearch = frame!.includes("@READ"); expect(hasNavigationHints || hasFileSearch).toBe(true); // Local mode specific UI expectations @@ -57,10 +60,13 @@ describe("TUIChat - @ File Search Tests", () => { // Type multiple @ characters stdin.write("@@test"); - // Wait for UI update - await waitForNextRender(); - const frame = lastFrame(); + let frame = lastFrame(); + + await waitForCondition(() => { + frame = lastFrame(); + return frame?.includes("@@test") ?? false; + }); // Should handle multiple @ without crashing expect(frame).toBeDefined(); diff --git a/extensions/cli/src/ui/__tests__/TUIChat.slashCommands.test.tsx b/extensions/cli/src/ui/__tests__/TUIChat.slashCommands.test.tsx index 1f63f3814..6f44933b6 100644 --- a/extensions/cli/src/ui/__tests__/TUIChat.slashCommands.test.tsx +++ b/extensions/cli/src/ui/__tests__/TUIChat.slashCommands.test.tsx @@ -1,5 +1,5 @@ import { renderInMode, testBothModes } from "./TUIChat.dualModeHelper.js"; -import { waitForNextRender } from "./TUIChat.testHelper.js"; +import { waitForCondition, waitForNextRender } from "./TUIChat.testHelper.js"; describe("TUIChat - Slash Commands Tests", () => { testBothModes("shows slash when user types /", async (mode) => { @@ -28,9 +28,13 @@ describe("TUIChat - Slash Commands Tests", () => { // Type /exi to trigger slash command filtering stdin.write("/exi"); - await waitForNextRender(); - const frame = lastFrame(); + let frame = lastFrame(); + + await waitForCondition(() => { + frame = lastFrame(); + return frame?.includes("/exi") ?? false; + }); // Should show the typed command expect(frame).toContain("/exi"); diff --git a/extensions/cli/src/ui/__tests__/TUIChat.testHelper.ts b/extensions/cli/src/ui/__tests__/TUIChat.testHelper.ts index 37ebb5c3e..00a0e16a3 100644 --- a/extensions/cli/src/ui/__tests__/TUIChat.testHelper.ts +++ b/extensions/cli/src/ui/__tests__/TUIChat.testHelper.ts @@ -458,6 +458,24 @@ export function expectNormalMode(frame: string | undefined) { expect(frame).toContain("Continue CLI"); } +/** + * Helper to wait for a condition to be true + * similar to `waitFor` in testing libraries + */ +export async function waitForCondition( + conditionFn: () => boolean, + timeoutMs = 2000, + intervalMs = 50, +): Promise { + const startTime = Date.now(); + while (Date.now() - startTime < timeoutMs) { + if (conditionFn()) { + return; + } + await new Promise((resolve) => setTimeout(resolve, intervalMs)); + } +} + // Make runTest available globally for test files declare global { var runTest: ( diff --git a/extensions/cli/src/ui/hooks/useChat.compaction.ts b/extensions/cli/src/ui/hooks/useChat.compaction.ts index df0132246..250165499 100644 --- a/extensions/cli/src/ui/hooks/useChat.compaction.ts +++ b/extensions/cli/src/ui/hooks/useChat.compaction.ts @@ -44,13 +44,9 @@ export async function handleCompactCommand({ try { // Compact the chat history directly (already in unified format) with abort controller - const result = await compactChatHistory( - chatHistory, - model, - llmApi, - undefined, - compactionController, - ); + const result = await compactChatHistory(chatHistory, model, llmApi, { + abortController: compactionController, + }); // Check if operation was aborted before proceeding with success actions if (compactionController.signal.aborted) { @@ -153,13 +149,9 @@ export async function handleAutoCompaction({ logger.info("Auto-compaction triggered for TUI mode"); // Compact the unified history - const result = await compactChatHistory( - chatHistory, - model, - llmApi, - undefined, + const result = await compactChatHistory(chatHistory, model, llmApi, { abortController, - ); + }); // Keep the system message and append the compaction summary // This replaces the old messages with a summary to reduce context size diff --git a/extensions/cli/src/util/exit.ts b/extensions/cli/src/util/exit.ts index 31ec02652..ba27b9db2 100644 --- a/extensions/cli/src/util/exit.ts +++ b/extensions/cli/src/util/exit.ts @@ -1,7 +1,74 @@ +import type { ChatHistoryItem } from "core/index.js"; + import { sentryService } from "../sentry.js"; import { telemetryService } from "../telemetry/telemetryService.js"; +import { getGitDiffSnapshot } from "./git.js"; import { logger } from "./logger.js"; +import { + calculateDiffStats, + extractSummary, + getAgentIdFromArgs, + postAgentMetadata, +} from "./metadata.js"; + +/** + * Update agent session metadata in control plane + * Collects diff stats and conversation summary, posts to control plane + * This is called both during execution (after each turn) and before exit + * + * @param history - Chat history to extract summary from (optional, will fetch if not provided) + */ +export async function updateAgentMetadata( + history?: ChatHistoryItem[], +): Promise { + try { + const agentId = getAgentIdFromArgs(); + if (!agentId) { + logger.debug("No agent ID found, skipping metadata update"); + return; + } + + const metadata: Record = {}; + + // Calculate diff stats + try { + const { diff, repoFound } = await getGitDiffSnapshot(); + if (repoFound && diff) { + const { additions, deletions } = calculateDiffStats(diff); + if (additions > 0 || deletions > 0) { + metadata.additions = additions; + metadata.deletions = deletions; + } + } + } catch (err) { + logger.debug("Failed to calculate diff stats (non-critical)", err as any); + } + + // Extract summary from conversation + if (history && history.length > 0) { + try { + const summary = extractSummary(history); + if (summary) { + metadata.summary = summary; + } + } catch (err) { + logger.debug( + "Failed to extract conversation summary (non-critical)", + err as any, + ); + } + } + + // Post metadata if we have any + if (Object.keys(metadata).length > 0) { + await postAgentMetadata(agentId, metadata); + } + } catch (err) { + // Non-critical: log but don't fail the process + logger.debug("Error in updateAgentMetadata (ignored)", err as any); + } +} /** * Exit the process after flushing telemetry and error reporting. diff --git a/extensions/cli/src/util/metadata.test.ts b/extensions/cli/src/util/metadata.test.ts new file mode 100644 index 000000000..668516d56 --- /dev/null +++ b/extensions/cli/src/util/metadata.test.ts @@ -0,0 +1,381 @@ +import type { ChatHistoryItem } from "core/index.js"; +import { describe, expect, it } from "vitest"; + +import { calculateDiffStats, extractSummary } from "./metadata.js"; + +// Helper to create a mock chat history item +function createMockChatHistoryItem( + content: string, + role: "user" | "assistant" | "system" = "assistant", +): ChatHistoryItem { + return { + message: { + role, + content, + }, + } as ChatHistoryItem; +} + +describe("metadata utilities", () => { + describe("calculateDiffStats", () => { + it("should count additions and deletions in a simple diff", () => { + const diff = `diff --git a/file.txt b/file.txt +index 123..456 789 +--- a/file.txt ++++ b/file.txt +@@ -1,3 +1,3 @@ + line 1 +-line 2 ++line 2 modified + line 3`; + + const stats = calculateDiffStats(diff); + + expect(stats.additions).toBe(1); + expect(stats.deletions).toBe(1); + }); + + it("should handle multiple hunks with multiple changes", () => { + const diff = `diff --git a/app.js b/app.js +--- a/app.js ++++ b/app.js +@@ -10,5 +10,7 @@ + const express = require('express'); +-const old = 'value'; ++const new = 'value'; ++const another = 'line'; + +@@ -50,3 +52,2 @@ +-function oldFunc() {} +-function anotherOld() {} ++function newFunc() {}`; + + const stats = calculateDiffStats(diff); + + expect(stats.additions).toBe(3); // +const new, +const another, +function newFunc + expect(stats.deletions).toBe(3); // -const old, -function oldFunc, -function anotherOld + }); + + it("should exclude diff metadata lines from counts", () => { + const diff = `diff --git a/file.txt b/file.txt +index abc123..def456 100644 +--- a/file.txt ++++ b/file.txt +@@ -1 +1 @@ +-old content ++new content`; + + const stats = calculateDiffStats(diff); + + // Should only count the actual changes, not the metadata lines + expect(stats.additions).toBe(1); + expect(stats.deletions).toBe(1); + }); + + it("should handle binary file changes", () => { + const diff = `diff --git a/image.png b/image.png +Binary files a/image.png and b/image.png differ`; + + const stats = calculateDiffStats(diff); + + // Binary files shouldn't be counted + expect(stats.additions).toBe(0); + expect(stats.deletions).toBe(0); + }); + + it("should return zeros for empty diff", () => { + const stats = calculateDiffStats(""); + + expect(stats.additions).toBe(0); + expect(stats.deletions).toBe(0); + }); + + it("should return zeros for whitespace-only diff", () => { + const stats = calculateDiffStats(" \n\n \t "); + + expect(stats.additions).toBe(0); + expect(stats.deletions).toBe(0); + }); + + it("should handle a diff with only additions", () => { + const diff = `diff --git a/new.txt b/new.txt +--- /dev/null ++++ b/new.txt +@@ -0,0 +1,3 @@ ++line 1 ++line 2 ++line 3`; + + const stats = calculateDiffStats(diff); + + expect(stats.additions).toBe(3); + expect(stats.deletions).toBe(0); + }); + + it("should handle a diff with only deletions", () => { + const diff = `diff --git a/old.txt b/old.txt +--- a/old.txt ++++ /dev/null +@@ -1,3 +0,0 @@ +-line 1 +-line 2 +-line 3`; + + const stats = calculateDiffStats(diff); + + expect(stats.additions).toBe(0); + expect(stats.deletions).toBe(3); + }); + + it("should handle real-world TypeScript diff", () => { + const diff = `diff --git a/src/util/metadata.ts b/src/util/metadata.ts +index abc123..def456 100644 +--- a/src/util/metadata.ts ++++ b/src/util/metadata.ts +@@ -1,10 +1,15 @@ + import type { ChatHistoryItem } from "core/index.js"; + +-export function oldFunction() { +- return "old"; ++export function newFunction() { ++ return "new"; ++} ++ ++export function anotherFunction() { ++ return "another"; + } + + // Comment line (unchanged) +-const OLD_CONSTANT = 42; ++const NEW_CONSTANT = 43;`; + + const stats = calculateDiffStats(diff); + + expect(stats.additions).toBe(7); + expect(stats.deletions).toBe(3); + }); + + it("should correctly count code with ++ or -- operators", () => { + // This tests the edge case where code contains ++ or -- at the start + const diff = `diff --git a/counter.js b/counter.js +index abc123..def456 100644 +--- a/counter.js ++++ b/counter.js +@@ -1,5 +1,5 @@ + function increment(counter) { +- counter++; ++ ++counter; + } + + function decrement(counter) { +- counter--; ++ --counter; + }`; + + const stats = calculateDiffStats(diff); + + // Should count all 4 changes: 2 additions and 2 deletions + // Lines like "+++counter;" should be counted as additions, not skipped as file headers + expect(stats.additions).toBe(2); + expect(stats.deletions).toBe(2); + }); + + it("should handle code with multiple + or - at line start", () => { + const diff = `diff --git a/operators.c b/operators.c +--- a/operators.c ++++ b/operators.c +@@ -1,4 +1,4 @@ + int main() { +- x--; +- y++; ++ --x; ++ ++y; + return 0; + }`; + + const stats = calculateDiffStats(diff); + + expect(stats.additions).toBe(2); + expect(stats.deletions).toBe(2); + }); + }); + + describe("extractSummary", () => { + it("should extract last assistant message", () => { + const history = [ + createMockChatHistoryItem("Hello", "user"), + createMockChatHistoryItem("Hi there, how can I help?", "assistant"), + createMockChatHistoryItem("Please fix the bug", "user"), + createMockChatHistoryItem( + "I've fixed the authentication bug in the login module.", + "assistant", + ), + ]; + + const summary = extractSummary(history); + + expect(summary).toBe( + "I've fixed the authentication bug in the login module.", + ); + }); + + it("should skip empty assistant messages", () => { + const history = [ + createMockChatHistoryItem("User message", "user"), + createMockChatHistoryItem("Valid assistant message", "assistant"), + createMockChatHistoryItem("", "assistant"), + createMockChatHistoryItem(" ", "assistant"), + ]; + + const summary = extractSummary(history); + + expect(summary).toBe("Valid assistant message"); + }); + + it("should truncate long messages to default 500 characters", () => { + const longMessage = "a".repeat(600); + const history = [createMockChatHistoryItem(longMessage, "assistant")]; + + const summary = extractSummary(history); + + expect(summary?.length).toBe(500); + expect(summary).toBe("a".repeat(497) + "..."); + }); + + it("should respect custom maxLength parameter", () => { + const longMessage = "b".repeat(200); + const history = [createMockChatHistoryItem(longMessage, "assistant")]; + + const summary = extractSummary(history, 100); + + expect(summary?.length).toBe(100); + expect(summary).toBe("b".repeat(97) + "..."); + }); + + it("should not truncate messages under the limit", () => { + const shortMessage = "This is a short message."; + const history = [createMockChatHistoryItem(shortMessage, "assistant")]; + + const summary = extractSummary(history, 500); + + expect(summary).toBe(shortMessage); + }); + + it("should return undefined for empty history", () => { + const summary = extractSummary([]); + + expect(summary).toBeUndefined(); + }); + + it("should return undefined when no assistant messages exist", () => { + const history = [ + createMockChatHistoryItem("User message 1", "user"), + createMockChatHistoryItem("User message 2", "user"), + createMockChatHistoryItem("System message", "system"), + ]; + + const summary = extractSummary(history); + + expect(summary).toBeUndefined(); + }); + + it("should handle message content as object (multimodal)", () => { + const history: ChatHistoryItem[] = [ + { + message: { + role: "assistant", + content: [ + { type: "text", text: "Here's the image analysis" }, + { type: "image_url", image_url: { url: "data:..." } }, + ], + }, + } as any, + ]; + + const summary = extractSummary(history); + + // Should stringify the object content + expect(summary).toBeDefined(); + expect(typeof summary).toBe("string"); + expect(summary).toContain("Here's the image analysis"); + }); + + it("should trim whitespace from content", () => { + const history = [ + createMockChatHistoryItem( + " \n Message with whitespace \n ", + "assistant", + ), + ]; + + const summary = extractSummary(history); + + expect(summary).toBe("Message with whitespace"); + }); + + it("should find last assistant message among mixed roles", () => { + const history = [ + createMockChatHistoryItem("First assistant message", "assistant"), + createMockChatHistoryItem("User response", "user"), + createMockChatHistoryItem("Second assistant message", "assistant"), + createMockChatHistoryItem("Another user message", "user"), + createMockChatHistoryItem("System notification", "system"), + ]; + + const summary = extractSummary(history); + + expect(summary).toBe("Second assistant message"); + }); + + it("should handle markdown formatting in messages", () => { + const history = [ + createMockChatHistoryItem( + "I've updated the code:\n\n```typescript\nfunction test() {}\n```\n\nThe changes are complete.", + "assistant", + ), + ]; + + const summary = extractSummary(history); + + // Should keep markdown formatting + expect(summary).toContain("```typescript"); + expect(summary).toContain("function test()"); + }); + + it("should handle special characters in messages", () => { + const history = [ + createMockChatHistoryItem( + 'Fixed the regex pattern: /[a-z]+/gi and added "quotes" & ', + "assistant", + ), + ]; + + const summary = extractSummary(history); + + expect(summary).toBe( + 'Fixed the regex pattern: /[a-z]+/gi and added "quotes" & ', + ); + }); + + it("should handle exactly 500 character message (no truncation)", () => { + const exactMessage = "x".repeat(500); + const history = [createMockChatHistoryItem(exactMessage, "assistant")]; + + const summary = extractSummary(history, 500); + + expect(summary).toBe(exactMessage); + expect(summary?.length).toBe(500); + expect(summary?.endsWith("...")).toBe(false); + }); + + it("should handle 501 character message (with truncation)", () => { + const longMessage = "y".repeat(501); + const history = [createMockChatHistoryItem(longMessage, "assistant")]; + + const summary = extractSummary(history, 500); + + expect(summary).toBe("y".repeat(497) + "..."); + expect(summary?.length).toBe(500); + }); + }); +}); diff --git a/extensions/cli/src/util/metadata.ts b/extensions/cli/src/util/metadata.ts new file mode 100644 index 000000000..a0759b5bb --- /dev/null +++ b/extensions/cli/src/util/metadata.ts @@ -0,0 +1,169 @@ +import type { ChatHistoryItem } from "core/index.js"; + +import { + post, + ApiRequestError, + AuthenticationRequiredError, +} from "./apiClient.js"; +import { logger } from "./logger.js"; + +/** + * Statistics about a git diff + */ +export interface DiffStats { + additions: number; + deletions: number; +} + +/** + * Calculate diff statistics from unified diff content + * Counts lines added (+) and deleted (-), excluding metadata lines + * + * @param diffContent - The unified diff content as a string + * @returns Object with additions and deletions counts + */ +export function calculateDiffStats(diffContent: string): DiffStats { + if (!diffContent || diffContent.trim() === "") { + return { additions: 0, deletions: 0 }; + } + + const lines = diffContent.split("\n"); + let additions = 0; + let deletions = 0; + + for (const line of lines) { + // Skip diff metadata lines + // File headers contain a space: "--- a/file" or "+++ b/file" + // But code changes with ++ or -- at start don't: "+++counter;" or "---counter;" + if ( + (line.startsWith("+++") && (line.length === 3 || line[3] === " ")) || + (line.startsWith("---") && (line.length === 3 || line[3] === " ")) || + line.startsWith("@@") || + line.startsWith("diff ") || + line.startsWith("index ") || + line.startsWith("Binary files") + ) { + continue; + } + + // Count actual code changes + if (line.startsWith("+")) { + additions++; + } else if (line.startsWith("-")) { + deletions++; + } + } + + return { additions, deletions }; +} + +/** + * Extract the last assistant message from conversation history + * Truncates if too long + * + * @param history - Array of chat history items + * @param maxLength - Maximum length for the summary (default: 500) + * @returns The last assistant message content, or undefined if none found + */ +export function extractSummary( + history: ChatHistoryItem[], + maxLength: number = 500, +): string | undefined { + if (!history || history.length === 0) { + return undefined; + } + + // Find last assistant message (iterate backwards) + for (let i = history.length - 1; i >= 0; i--) { + const item = history[i]; + if (item.message.role === "assistant") { + const content = + typeof item.message.content === "string" + ? item.message.content + : JSON.stringify(item.message.content); + + if (!content || content.trim() === "") { + continue; + } + + const trimmedContent = content.trim(); + + // Truncate if too long + if (trimmedContent.length <= maxLength) { + return trimmedContent; + } + + return trimmedContent.substring(0, maxLength - 3) + "..."; + } + } + + return undefined; +} + +/** + * Extract the agent ID from the --id command line flag + * @returns The agent ID or undefined if not found + */ +export function getAgentIdFromArgs(): string | undefined { + const args = process.argv; + const idIndex = args.indexOf("--id"); + if (idIndex !== -1 && idIndex + 1 < args.length) { + return args[idIndex + 1]; + } + return undefined; +} + +/** + * POST metadata to the control plane for an agent session + * Non-blocking and error-tolerant - failures are logged but don't throw + * + * @param agentId - The agent session ID + * @param metadata - Arbitrary metadata object to post + */ +export async function postAgentMetadata( + agentId: string, + metadata: Record, +): Promise { + if (!agentId) { + logger.debug("No agent ID provided, skipping metadata update"); + return; + } + + if (!metadata || Object.keys(metadata).length === 0) { + logger.debug("Empty metadata object, skipping metadata update"); + return; + } + + try { + logger.debug("Posting metadata to control plane", { + agentId, + metadata, + }); + + const response = await post(`agents/${agentId}/metadata`, { metadata }); + + if (response.ok) { + logger.info("Successfully posted metadata to control plane"); + } else { + logger.warn( + `Unexpected response when posting metadata: ${response.status}`, + ); + } + } catch (error) { + // Non-critical: Log but don't fail the entire agent execution + if (error instanceof AuthenticationRequiredError) { + logger.debug( + "Authentication required for metadata update (skipping)", + error.message, + ); + } else if (error instanceof ApiRequestError) { + logger.warn( + `Failed to post metadata: ${error.status} ${error.response || error.statusText}`, + ); + } else { + const errorMessage = + error instanceof Error ? error.message : String(error); + logger.warn(`Error posting metadata: ${errorMessage}`); + } + } +} diff --git a/extensions/cli/src/util/tokenizer.ts b/extensions/cli/src/util/tokenizer.ts index df9754967..cccc60ad2 100644 --- a/extensions/cli/src/util/tokenizer.ts +++ b/extensions/cli/src/util/tokenizer.ts @@ -22,6 +22,67 @@ export function getModelContextLimit(model: ModelConfig): number { ); } +/** + * Count tokens in message content (string or multimodal array) + */ +function countContentTokens(content: string | any[]): number { + if (typeof content === "string") { + return encode(content).length; + } + + if (Array.isArray(content)) { + let tokenCount = 0; + for (const part of content) { + if (part.type === "text" && part.text) { + tokenCount += encode(part.text).length; + } + if (part.type === "imageUrl") { + tokenCount += 1024; // Rough estimate for image tokens + } + } + return tokenCount; + } + + return 0; +} + +/** + * Count tokens in a single tool call function + */ +function countToolCallFunctionTokens( + toolCallFunction: { name?: string; arguments?: string } | undefined, +): number { + if (!toolCallFunction) { + return 0; + } + + let tokenCount = 0; + tokenCount += encode(toolCallFunction.name ?? "").length + 10; // Function name and structure overhead + tokenCount += encode(toolCallFunction.arguments ?? "").length; // Arguments + return tokenCount; +} + +/** + * Count tokens in tool call outputs + */ +function countToolOutputTokens( + output: Array<{ content?: string; name?: string }> | undefined, +): number { + if (!output) { + return 0; + } + + let tokenCount = 0; + for (const item of output) { + if (item.content) { + tokenCount += encode(item.content).length; + } + // Note: item.name is not sent to the model, only used for internal tracking + tokenCount += 5; // Output structure overhead + } + return tokenCount; +} + /** * Estimate the token count for a single ChatHistoryItem * @param historyItem The ChatHistoryItem to count tokens for @@ -36,35 +97,20 @@ export function countChatHistoryItemTokens( const message = historyItem.message; // Count tokens in content - if (typeof message.content === "string") { - tokenCount += encode(message.content).length; - } else if (Array.isArray(message.content)) { - // Handle array content (e.g., multimodal messages) - for (const part of message.content) { - if (part.type === "text" && part.text) { - tokenCount += encode(part.text).length; - } - // Images and other content types have their own token costs - // but we'll use a rough estimate for now - if (part.type === "imageUrl") { - tokenCount += 1024; // Rough estimate for image tokens - } - } - } + tokenCount += countContentTokens(message.content); // Add tokens for role (roughly 1-2 tokens) tokenCount += 2; // Add tokens for tool calls if present - if ("toolCalls" in message && message.toolCalls) { + // Skip if toolCallStates exists to avoid double-counting (toolCallStates includes the tool calls) + if ( + "toolCalls" in message && + message.toolCalls && + !historyItem.toolCallStates + ) { for (const toolCall of message.toolCalls) { - if (!toolCall.function) { - continue; - } - // Function name and structure overhead - tokenCount += encode(toolCall.function.name ?? "").length + 10; - // Arguments - tokenCount += encode(toolCall.function.arguments ?? "").length; + tokenCount += countToolCallFunctionTokens(toolCall.function); } } @@ -80,6 +126,16 @@ export function countChatHistoryItemTokens( tokenCount += 5; // Context item structure overhead } + // Add tokens for tool call states (tool results/outputs) + if (historyItem.toolCallStates) { + for (const toolState of historyItem.toolCallStates) { + // Count tokens in tool call function (name + arguments) + tokenCount += countToolCallFunctionTokens(toolState.toolCall?.function); + // Count tokens in tool outputs (can be very large - thousands of tokens) + tokenCount += countToolOutputTokens(toolState.output); + } + } + return tokenCount; } catch (error) { logger.error("Error counting tokens for history item", error); @@ -197,11 +253,13 @@ export function getAutoCompactMessage(model: ModelConfig): string { * Validates that the input tokens + max_tokens don't exceed context limit * @param chatHistory The chat history to validate * @param model The model configuration + * @param safetyBuffer Additional token buffer to account for estimation errors (default: 0) * @returns Validation result with error details if invalid */ export function validateContextLength( chatHistory: ChatHistoryItem[], model: ModelConfig, + safetyBuffer: number = 0, ): { isValid: boolean; error?: string; @@ -216,12 +274,12 @@ export function validateContextLength( // If maxTokens is not set, use 35% default reservation for output const reservedForOutput = maxTokens > 0 ? maxTokens : Math.ceil(contextLimit * 0.35); - const totalRequired = inputTokens + reservedForOutput; + const totalRequired = inputTokens + reservedForOutput + safetyBuffer; if (totalRequired > contextLimit) { return { isValid: false, - error: `Context length exceeded: input (${inputTokens.toLocaleString()}) + max_tokens (${reservedForOutput.toLocaleString()}) = ${totalRequired.toLocaleString()} > context_limit (${contextLimit.toLocaleString()})`, + error: `Context length exceeded: input (${inputTokens.toLocaleString()}) + max_tokens (${reservedForOutput.toLocaleString()})${safetyBuffer > 0 ? ` + buffer (${safetyBuffer})` : ""} = ${totalRequired.toLocaleString()} > context_limit (${contextLimit.toLocaleString()})`, inputTokens, contextLimit, maxTokens: reservedForOutput, diff --git a/extensions/intellij/gradle.properties b/extensions/intellij/gradle.properties index 6f9b64db7..06b3b1159 100644 --- a/extensions/intellij/gradle.properties +++ b/extensions/intellij/gradle.properties @@ -1,5 +1,5 @@ pluginGroup=com.github.continuedev.continueintellijextension -pluginVersion=1.0.56 +pluginVersion=1.0.57 platformVersion=2024.1 kotlin.stdlib.default.dependency=false org.gradle.configuration-cache=true diff --git a/extensions/intellij/src/main/kotlin/com/github/continuedev/continueintellijextension/constants/ServerConstants.kt b/extensions/intellij/src/main/kotlin/com/github/continuedev/continueintellijextension/constants/ServerConstants.kt index 5135dc87a..725cc948a 100644 --- a/extensions/intellij/src/main/kotlin/com/github/continuedev/continueintellijextension/constants/ServerConstants.kt +++ b/extensions/intellij/src/main/kotlin/com/github/continuedev/continueintellijextension/constants/ServerConstants.kt @@ -14,10 +14,10 @@ const val DEFAULT_CONFIG = { "models": [ { - "model": "claude-3-5-sonnet-latest", + "model": "claude-sonnet-4-5", "provider": "anthropic", "apiKey": "", - "title": "Claude 3.5 Sonnet" + "title": "Claude Sonnet 4.5" } ], "tabAutocompleteModel": { diff --git a/extensions/vscode/config_schema.json b/extensions/vscode/config_schema.json index 111db4046..c7ea072f4 100644 --- a/extensions/vscode/config_schema.json +++ b/extensions/vscode/config_schema.json @@ -850,14 +850,10 @@ "anyOf": [ { "enum": [ - "claude-2", - "claude-instant-1", - "claude-3-5-sonnet-latest", - "claude-3-7-sonnet-20250219", - "claude-3-opus-20240229", - "claude-3-sonnet-20240229", - "claude-3-haiku-20240307", - "claude-2.1" + "claude-sonnet-4", + "claude-sonnet-4-5", + "claude-opus-4-1", + "claude-haiku-4-5" ] }, { @@ -1610,14 +1606,10 @@ "codeup-13b", "deepseek-7b", "deepseek-33b", - "claude-2", - "claude-instant-1", - "claude-3-5-sonnet-latest", - "claude-3-5-sonnet-20240620", - "claude-3-opus-20240229", - "claude-3-sonnet-20240229", - "claude-3-haiku-20240307", - "claude-2.1", + "claude-sonnet-4", + "claude-sonnet-4-5", + "claude-opus-4-1", + "claude-haiku-4-5", "command-r", "command-r-plus", "chat-bison-001", diff --git a/extensions/vscode/e2e/test-continue/config.json b/extensions/vscode/e2e/test-continue/config.json index fbe78fa0a..814552d91 100644 --- a/extensions/vscode/e2e/test-continue/config.json +++ b/extensions/vscode/e2e/test-continue/config.json @@ -16,7 +16,7 @@ { "provider": "mock", "title": "TOOL MOCK LLM", - "model": "claude-3-5-sonnet-latest", + "model": "claude-sonnet-4-5", "capabilities": { "tools": true }, @@ -50,7 +50,7 @@ { "provider": "mock", "title": "SYSTEM MESSAGE MOCK LLM", - "model": "claude-3-5-sonnet-latest", + "model": "claude-sonnet-4-5", "requestOptions": { "extraBodyProperties": { "chatStream": [["REPEAT_SYSTEM_MSG"]] @@ -60,7 +60,7 @@ { "provider": "mock", "title": "LAST MESSAGE MOCK LLM", - "model": "claude-3-5-sonnet-latest", + "model": "claude-sonnet-4-5", "requestOptions": { "extraBodyProperties": { "chatStream": [["REPEAT_LAST_MSG"]] diff --git a/extensions/vscode/package-lock.json b/extensions/vscode/package-lock.json index d8e0bc47b..a09d7f17e 100644 --- a/extensions/vscode/package-lock.json +++ b/extensions/vscode/package-lock.json @@ -53,7 +53,7 @@ "undici": "^6.21.3", "uuid": "^9.0.1", "uuidv4": "^6.2.13", - "vectordb": "^0.4.20", + "vectordb": "0.4.20", "vitest": "^3.1.4", "vscode-languageclient": "^8.0.2", "ws": "^8.13.0", @@ -168,7 +168,7 @@ "tree-sitter-wasms": "^0.1.11", "untildify": "^6.0.0", "uuid": "^9.0.1", - "vectordb": "^0.4.20", + "vectordb": "0.4.20", "web-tree-sitter": "^0.21.0", "win-ca": "^3.5.1", "wink-nlp-utils": "^2.1.0", diff --git a/extensions/vscode/package.json b/extensions/vscode/package.json index c30ec472a..9808290a3 100644 --- a/extensions/vscode/package.json +++ b/extensions/vscode/package.json @@ -2,7 +2,7 @@ "name": "continue", "icon": "media/icon.png", "author": "Continue Dev, Inc", - "version": "1.3.27", + "version": "1.3.28", "repository": { "type": "git", "url": "https://github.com/continuedev/continue" @@ -772,7 +772,7 @@ "undici": "^6.21.3", "uuid": "^9.0.1", "uuidv4": "^6.2.13", - "vectordb": "^0.4.20", + "vectordb": "0.4.20", "vitest": "^3.1.4", "vscode-languageclient": "^8.0.2", "ws": "^8.13.0", diff --git a/gui/src/pages/AddNewModel/configs/models.ts b/gui/src/pages/AddNewModel/configs/models.ts index 7de58309d..59edce01d 100644 --- a/gui/src/pages/AddNewModel/configs/models.ts +++ b/gui/src/pages/AddNewModel/configs/models.ts @@ -1213,17 +1213,45 @@ export const models: { [key: string]: ModelPackage } = { icon: "openai.png", isOpenSource: false, }, - claude4Sonnet: { - title: "Claude 4 Sonnet", + claude45Sonnet: { + title: "Claude Sonnet 4.5", description: - "The most intelligent model in the Claude 4 series. Costing lesser than Claude 4 Opus.", + "Anthropic's smartest model for complex agents and coding with exceptional performance in reasoning and multilingual tasks.", + params: { + model: "claude-sonnet-4-5-20250929", + contextLength: 200_000, + title: "Claude 4.5 Sonnet", + apiKey: "", + }, + providerOptions: ["anthropic", "replicate"], + icon: "anthropic.png", + isOpenSource: false, + }, + claude45Haiku: { + title: "Claude Haiku 4.5", + description: + "Anthropic's fastest model with near-frontier intelligence, ideal for quick and accurate responses.", + params: { + model: "claude-haiku-4-5-20251001", + contextLength: 200_000, + title: "Claude Haiku 4.5", + apiKey: "", + }, + providerOptions: ["anthropic"], + icon: "anthropic.png", + isOpenSource: false, + }, + claude4Sonnet: { + title: "Claude Sonnet 4", + description: + "The most intelligent model in the Claude 4 series. Costing lesser than Claude Opus 4.", params: { model: "claude-4-sonnet-latest", contextLength: 200_000, title: "Claude 4 Sonnet", apiKey: "", }, - providerOptions: ["anthropic", "replicate"], + providerOptions: ["anthropic"], icon: "anthropic.png", isOpenSource: false, }, @@ -1240,14 +1268,13 @@ export const models: { [key: string]: ModelPackage } = { icon: "anthropic.png", isOpenSource: false, }, - claude35Haiku: { - title: "Claude 3.5 Haiku", - description: - "The fastest model in the Claude 3.5 series: a compact model for near-instant responsiveness", + claude41Opus: { + title: "Claude Opus 4.1", + description: "The most capable model in the Claude 4 series", params: { - model: "claude-3-5-haiku-latest", + model: "claude-opus-4-1-20250805", contextLength: 200_000, - title: "Claude 3.5 Haiku", + title: "Claude Opus 4.1", apiKey: "", }, providerOptions: ["anthropic"], @@ -1643,20 +1670,7 @@ export const models: { [key: string]: ModelPackage } = { icon: "openai.png", isOpenSource: false, }, - asksageclaude35Sonnet: { - title: "Claude 3.5 Sonnet", - description: - "Anthropic's most intelligent model, but much less expensive than Claude 3 Opus", - params: { - model: "claude-35-sonnet", - contextLength: 200_000, - title: "Claude 3.5 Sonnet", - apiKey: "", - }, - providerOptions: ["askSage"], - icon: "anthropic.png", - isOpenSource: false, - }, + asksageclaude37sonnet: { title: "Claude 3.7 Sonnet", description: "Anthropic's 3.7 model.", @@ -1683,19 +1697,7 @@ export const models: { [key: string]: ModelPackage } = { icon: "anthropic.png", isOpenSource: false, }, - asksageclaude35gov: { - title: "Claude 3.5 Sonnet gov*", - description: "Anthropic's 3.5 Sonnet model.", - params: { - model: "aws-bedrock-claude-35-sonnet-gov", - contextLength: 200_000, - title: "Claude 3.5 Sonnet gov*", - apiKey: "", - }, - providerOptions: ["askSage"], - icon: "anthropic.png", - isOpenSource: false, - }, + asksageclaude4s: { title: "Claude 4 Sonnet", description: "Anthropic's Claude 4 Sonnet", @@ -2416,20 +2418,61 @@ export const models: { [key: string]: ModelPackage } = { icon: "cometapi.png", isOpenSource: false, }, - cometapiClaude35HaikuLatest: { - title: "Claude 3.5 Haiku Latest", + cometapiClaude45Sonnet: { + title: "Claude 4.5 Sonnet Latest", description: - "Claude 3.5 Haiku Latest via CometAPI - fast and efficient model from Anthropic.", + "Claude 4.5 Sonnet Latest via CometAPI - Anthropic's smartest model for complex agents and coding.", params: { - model: "claude-3-5-haiku-latest", + model: "claude-sonnet-4-5-20250929", contextLength: 200_000, - title: "Claude 3.5 Haiku Latest", + title: "Claude 4.5 Sonnet Latest", apiKey: "", }, providerOptions: ["cometapi"], icon: "cometapi.png", isOpenSource: false, }, + cometapiClaude45Haiku: { + title: "Claude 4.5 Haiku Latest", + description: + "Claude 4.5 Haiku Latest via CometAPI - Anthropic's fastest model with near-frontier intelligence.", + params: { + model: "claude-haiku-4-5-20251001", + contextLength: 200_000, + title: "Claude 4.5 Haiku Latest", + apiKey: "", + }, + providerOptions: ["cometapi"], + icon: "cometapi.png", + isOpenSource: false, + }, + asksageclaude35Sonnet: { + title: "Claude 3.5 Sonnet", + description: + "Anthropic's most intelligent model, but much less expensive than Claude 3 Opus", + params: { + model: "claude-35-sonnet", + contextLength: 200_000, + title: "Claude 3.5 Sonnet", + apiKey: "", + }, + providerOptions: ["askSage"], + icon: "anthropic.png", + isOpenSource: false, + }, + asksageclaude35gov: { + title: "Claude 3.5 Sonnet gov*", + description: "Anthropic's 3.5 Sonnet model.", + params: { + model: "aws-bedrock-claude-35-sonnet-gov", + contextLength: 200_000, + title: "Claude 3.5 Sonnet gov*", + apiKey: "", + }, + providerOptions: ["askSage"], + icon: "anthropic.png", + isOpenSource: false, + }, // Gemini series models via CometAPI cometapiGemini25Pro: { diff --git a/gui/src/pages/AddNewModel/configs/providers.ts b/gui/src/pages/AddNewModel/configs/providers.ts index fa9491635..085fb9522 100644 --- a/gui/src/pages/AddNewModel/configs/providers.ts +++ b/gui/src/pages/AddNewModel/configs/providers.ts @@ -77,12 +77,13 @@ export const providers: Partial> = { models.cometapiO4Mini, models.cometapiO3Pro, // Anthropic Claude family + models.cometapiClaude45Sonnet, + models.cometapiClaude45Haiku, models.cometapiClaudeOpus41, models.cometapiClaudeOpus41Thinking, models.cometapiClaudeSonnet4, models.cometapiClaudeSonnet4Thinking, models.cometapiClaude37SonnetLatest, - models.cometapiClaude35HaikuLatest, // Google Gemini family models.cometapiGemini25Pro, models.cometapiGemini25Flash, @@ -169,9 +170,11 @@ export const providers: Partial> = { }, ], packages: [ - models.claude4Sonnet, models.claude4_5Opus, - models.claude35Haiku, + models.claude45Sonnet, + models.claude45Haiku, + models.claude41Opus, + models.claude4Sonnet, ], apiKeyUrl: "https://console.anthropic.com/account/keys", }, @@ -603,7 +606,6 @@ Select the \`GPT-4o\` model below to complete your provider configuration, but n models.gemini20Flash, models.gemini20FlashLite, models.gemini20FlashImageGeneration, - models.gemini25ProExp, models.gemini3ProPreview, ], apiKeyUrl: "https://aistudio.google.com/app/apikey", diff --git a/gui/src/pages/gui/StreamError.tsx b/gui/src/pages/gui/StreamError.tsx index c3bb95efb..7f7c32245 100644 --- a/gui/src/pages/gui/StreamError.tsx +++ b/gui/src/pages/gui/StreamError.tsx @@ -5,7 +5,7 @@ import { Cog6ToothIcon, KeyIcon, } from "@heroicons/react/24/outline"; -import { DISCORD_LINK, GITHUB_LINK } from "core/util/constants"; +import { DISCORD_LINK } from "core/util/constants"; import { useContext, useMemo } from "react"; import { GhostButton, SecondaryButton } from "../../components"; import { useEditModel } from "../../components/mainInput/Lump/useEditBlock"; @@ -290,11 +290,27 @@ const StreamErrorDialog = ({ error }: StreamErrorProps) => { { - ideMessenger.post("openUrl", GITHUB_LINK); + const issueTitle = `Error: ${selectedModel?.title || "Model"} - ${statusCode || "Unknown error"}`; + const issueBody = `**Error Details** + +Model: ${selectedModel?.title || "Unknown"} +Provider: ${selectedModel?.provider || "Unknown"} +Status Code: ${statusCode || "N/A"} + +**Error Output** +\`\`\` +${parsedError} +\`\`\` + +**Additional Context** +Please add any additional context about the error here +`; + const url = `https://github.com/continuedev/continue/issues/new?title=${encodeURIComponent(issueTitle)}&body=${encodeURIComponent(issueBody)}`; + ideMessenger.post("openUrl", url); }} > - Github + Open GitHub issue 1 && isStreamingComplete; const activeCalls = toolCallStates.filter( - (call) => call.status !== "canceled", + (call) => call.status !== "canceled" && call.status !== "done", ); const renderToolCall = (toolCallState: ToolCallState) => { diff --git a/gui/src/redux/slices/sessionSlice.ts b/gui/src/redux/slices/sessionSlice.ts index 3656af0c1..abe3434c8 100644 --- a/gui/src/redux/slices/sessionSlice.ts +++ b/gui/src/redux/slices/sessionSlice.ts @@ -598,7 +598,6 @@ export const sessionSlice = createSlice({ }, contextItems: [], }; - handleToolCallsInMessage(message, historyItem); state.history.push(historyItem); lastItem = state.history[state.history.length - 1]; lastMessage = lastItem.message; diff --git a/gui/src/redux/thunks/streamNormalInput.ts b/gui/src/redux/thunks/streamNormalInput.ts index dcd179d8b..13cc5ebbf 100644 --- a/gui/src/redux/thunks/streamNormalInput.ts +++ b/gui/src/redux/thunks/streamNormalInput.ts @@ -2,6 +2,7 @@ import { createAsyncThunk, unwrapResult } from "@reduxjs/toolkit"; import { LLMFullCompletionOptions, ModelDescription } from "core"; import { getRuleId } from "core/llm/rules/getSystemMessageWithRules"; import { ToCoreProtocol } from "core/protocol"; +import { BUILT_IN_GROUP_NAME } from "core/tools/builtIn"; import { selectActiveTools } from "../selectors/selectActiveTools"; import { selectSelectedChatModel } from "../slices/configSlice"; import { @@ -317,14 +318,43 @@ export const streamNormalInput = createAsyncThunk< generatedCalls3, toolPolicies, ); - const anyRequireApproval = policies.find( + const autoApprovedPolicies = policies.filter( + ({ policy }) => policy === "allowedWithoutPermission", + ); + const needsApprovalPolicies = policies.filter( ({ policy }) => policy === "allowedWithPermission", ); // 4. Execute remaining tool calls - // Only set inactive if not all tools were auto-approved - // This prevents UI flashing for auto-approved tools - if (originalToolCalls.length === 0 || anyRequireApproval) { + if (originalToolCalls.length === 0) { + dispatch(setInactive()); + } else if (needsApprovalPolicies.length > 0) { + const builtInReadonlyAutoApproved = autoApprovedPolicies.filter( + ({ toolCallState }) => + toolCallState.tool?.group === BUILT_IN_GROUP_NAME && + toolCallState.tool?.readonly, + ); + + if (builtInReadonlyAutoApproved.length > 0) { + const state4 = getState(); + if (streamAborter.signal.aborted || !state4.session.isStreaming) { + return; + } + await Promise.all( + builtInReadonlyAutoApproved.map(async ({ toolCallState }) => { + unwrapResult( + await dispatch( + callToolById({ + toolCallId: toolCallState.toolCallId, + isAutoApproved: true, + depth: depth + 1, + }), + ), + ); + }), + ); + } + dispatch(setInactive()); } else { // auto stream cases increase thunk depth by 1 for debugging @@ -334,7 +364,6 @@ export const streamNormalInput = createAsyncThunk< return; } if (generatedCalls4.length > 0) { - // All that didn't fail are auto approved - call them await Promise.all( generatedCalls4.map(async ({ toolCallId }) => { unwrapResult( @@ -349,7 +378,6 @@ export const streamNormalInput = createAsyncThunk< }), ); } else { - // All failed - stream on for (const { toolCallId } of originalToolCalls) { unwrapResult( await dispatch( diff --git a/manual-testing-sandbox/requirements.txt b/manual-testing-sandbox/requirements.txt index 55452b992..787755f1d 100644 --- a/manual-testing-sandbox/requirements.txt +++ b/manual-testing-sandbox/requirements.txt @@ -5,7 +5,7 @@ scipy==1.7.1 # Web development flask==2.0.2 -django==4.2.22 +django==4.2.27 # Request handling requests==2.26.0 diff --git a/packages/config-yaml/src/markdown/agentFiles.test.ts b/packages/config-yaml/src/markdown/agentFiles.test.ts index 20763ff0e..2937db476 100644 --- a/packages/config-yaml/src/markdown/agentFiles.test.ts +++ b/packages/config-yaml/src/markdown/agentFiles.test.ts @@ -185,7 +185,7 @@ describe("serializeAgentFile", () => { const agentFile: AgentFile = { name: "Test Agent File", description: "A test agent file", - model: "anthropic/claude-3-sonnet", + model: "anthropic/claude-sonnet-4-5", tools: "tool1, tool2", rules: "rule1, rule2", prompt: "This is the test prompt", diff --git a/packages/config-yaml/src/schemas/commonSlugs.ts b/packages/config-yaml/src/schemas/commonSlugs.ts index 3ba10bbd5..c0790c448 100644 --- a/packages/config-yaml/src/schemas/commonSlugs.ts +++ b/packages/config-yaml/src/schemas/commonSlugs.ts @@ -1,19 +1,20 @@ export const commonModelSlugs = [ - "anthropic/claude-3-7-sonnet", + "anthropic/claude-sonnet-4", "togetherai/llama-4-maverick-instruct-17bx128e", "google/gemini-2.5-pro", "mistral/codestral", "voyageai/voyage-code-3", + "anthropic/claude-sonnet-4-5", "relace/instant-apply", "xai/grok-2", "openai/gpt-4o", "togetherai/llama-4-scout-instruct-17bx16e", - "anthropic/claude-3-5-sonnet", + "anthropic/claude-haiku-4-5", "google/gemini-2.0-flash", "voyageai/rerank-2", + "anthropic/claude-opus-4-1", "ollama/deepseek-r1", "morphllm/morph-v0", - "anthropic/claude-3-5-haiku", "lmstudio/deepseek-r1", "openai/o3-mini", "voyageai/voyage-code-2", diff --git a/packages/continue-sdk/package-lock.json b/packages/continue-sdk/package-lock.json index d0c16c61e..0696bc47b 100644 --- a/packages/continue-sdk/package-lock.json +++ b/packages/continue-sdk/package-lock.json @@ -9,7 +9,7 @@ "version": "0.0.1", "license": "Apache-2.0", "dependencies": { - "@continuedev/config-yaml": "^1.33.0", + "@continuedev/config-yaml": "^1.36.0", "@openapitools/openapi-generator-cli": "^2.25.1", "express": "^4.18.2", "swagger-ui-express": "^5.0.0" @@ -38,14 +38,14 @@ } }, "node_modules/@continuedev/config-yaml": { - "version": "1.33.0", - "resolved": "https://registry.npmjs.org/@continuedev/config-yaml/-/config-yaml-1.33.0.tgz", - "integrity": "sha512-riMSmuQ3HhLMKXeQ6L55pXzo/CZUVbEMallg09Pq3GNl8nddV6+7eHhzr1bThLO1COvKNLmo+3kQg52ROv+syA==", + "version": "1.36.0", + "resolved": "https://registry.npmjs.org/@continuedev/config-yaml/-/config-yaml-1.36.0.tgz", + "integrity": "sha512-uYFs22npkF2wvvpkRDsDJyaGNRydHxYW+ekksGOMj2MFbUkFMH3CZ/K/tD8S/DW6ZXbwju4datXr+BthW0n0Cg==", "license": "Apache-2.0", "dependencies": { "@continuedev/config-types": "^1.0.14", - "yaml": "^2.6.1", - "zod": "^3.24.2" + "yaml": "^2.8.1", + "zod": "^3.25.76" }, "bin": { "config-yaml": "dist/cli.js" diff --git a/packages/continue-sdk/package.json b/packages/continue-sdk/package.json index fdc99d062..fdff5b588 100644 --- a/packages/continue-sdk/package.json +++ b/packages/continue-sdk/package.json @@ -14,7 +14,7 @@ "author": "Continue Dev, Inc.", "license": "Apache-2.0", "dependencies": { - "@continuedev/config-yaml": "^1.33.0", + "@continuedev/config-yaml": "^1.36.0", "@openapitools/openapi-generator-cli": "^2.25.1", "express": "^4.18.2", "swagger-ui-express": "^5.0.0" diff --git a/packages/hub/package-lock.json b/packages/hub/package-lock.json index dc3d3f396..14e2b2a9c 100644 --- a/packages/hub/package-lock.json +++ b/packages/hub/package-lock.json @@ -9,7 +9,7 @@ "version": "0.0.7", "license": "Apache-2.0", "dependencies": { - "@continuedev/config-yaml": "^1.33.0", + "@continuedev/config-yaml": "^1.36.0", "js-yaml": "^4.1.1" }, "devDependencies": { @@ -545,14 +545,14 @@ } }, "node_modules/@continuedev/config-yaml": { - "version": "1.33.0", - "resolved": "https://registry.npmjs.org/@continuedev/config-yaml/-/config-yaml-1.33.0.tgz", - "integrity": "sha512-riMSmuQ3HhLMKXeQ6L55pXzo/CZUVbEMallg09Pq3GNl8nddV6+7eHhzr1bThLO1COvKNLmo+3kQg52ROv+syA==", + "version": "1.36.0", + "resolved": "https://registry.npmjs.org/@continuedev/config-yaml/-/config-yaml-1.36.0.tgz", + "integrity": "sha512-uYFs22npkF2wvvpkRDsDJyaGNRydHxYW+ekksGOMj2MFbUkFMH3CZ/K/tD8S/DW6ZXbwju4datXr+BthW0n0Cg==", "license": "Apache-2.0", "dependencies": { "@continuedev/config-types": "^1.0.14", - "yaml": "^2.6.1", - "zod": "^3.24.2" + "yaml": "^2.8.1", + "zod": "^3.25.76" }, "bin": { "config-yaml": "dist/cli.js" @@ -3788,14 +3788,15 @@ "dev": true }, "node_modules/yaml": { - "version": "2.6.1", - "resolved": "https://registry.npmjs.org/yaml/-/yaml-2.6.1.tgz", - "integrity": "sha512-7r0XPzioN/Q9kXBro/XPnA6kznR73DHq+GXh5ON7ZozRO6aMjbmiBuKste2wslTFkC5d1dw0GooOCepZXJ2SAg==", + "version": "2.8.1", + "resolved": "https://registry.npmjs.org/yaml/-/yaml-2.8.1.tgz", + "integrity": "sha512-lcYcMxX2PO9XMGvAJkJ3OsNMw+/7FKes7/hgerGUYWIoWu5j/+YQqcZr5JnPZWzOsEBgMbSbiSTn/dv/69Mkpw==", + "license": "ISC", "bin": { "yaml": "bin.mjs" }, "engines": { - "node": ">= 14" + "node": ">= 14.6" } }, "node_modules/yargs": { @@ -3847,9 +3848,10 @@ } }, "node_modules/zod": { - "version": "3.24.2", - "resolved": "https://registry.npmjs.org/zod/-/zod-3.24.2.tgz", - "integrity": "sha512-lY7CDW43ECgW9u1TcT3IoXHflywfVqDYze4waEz812jR/bZ8FHDsl7pFQoSZTz5N+2NqRXs8GBwnAwo3ZNxqhQ==", + "version": "3.25.76", + "resolved": "https://registry.npmjs.org/zod/-/zod-3.25.76.tgz", + "integrity": "sha512-gzUt/qt81nXsFGKIFcC3YnfEAx5NkunCfnDlvuBSSFS02bcXu4Lmea0AFIUwbLWxWPx3d9p8S5QoaujKcNQxcQ==", + "license": "MIT", "funding": { "url": "https://github.com/sponsors/colinhacks" } diff --git a/packages/hub/package.json b/packages/hub/package.json index dfef41c01..1094165d5 100644 --- a/packages/hub/package.json +++ b/packages/hub/package.json @@ -12,7 +12,7 @@ "author": "Continue Dev, Inc.", "license": "Apache-2.0", "dependencies": { - "@continuedev/config-yaml": "^1.33.0", + "@continuedev/config-yaml": "^1.36.0", "js-yaml": "^4.1.1" }, "devDependencies": { diff --git a/packages/llm-info/src/providers/anthropic.ts b/packages/llm-info/src/providers/anthropic.ts index 176cd3727..a84709f7b 100644 --- a/packages/llm-info/src/providers/anthropic.ts +++ b/packages/llm-info/src/providers/anthropic.ts @@ -4,13 +4,43 @@ export const Anthropic: ModelProvider = { id: "anthropic", displayName: "Anthropic", models: [ + { + model: "claude-sonnet-4-5-20250929", + displayName: "Claude 4.5 Sonnet", + contextLength: 200000, + maxCompletionTokens: 64000, + description: + "Anthropic's smartest model for complex agents and coding with exceptional performance in reasoning and multilingual tasks.", + regex: /claude-(?:4[.-]5-sonnet|sonnet-4[.-]5).*/i, + recommendedFor: ["chat"], + }, + { + model: "claude-haiku-4-5-20251001", + displayName: "Claude 4.5 Haiku", + contextLength: 200000, + maxCompletionTokens: 64000, + description: + "Anthropic's fastest model with near-frontier intelligence, ideal for quick and accurate responses.", + regex: /claude-(?:4[.-]5-haiku|haiku-4[.-]5).*/i, + recommendedFor: ["chat"], + }, + { + model: "claude-opus-4-1-20250805", + displayName: "Claude 4.1 Opus", + contextLength: 200000, + maxCompletionTokens: 32000, + description: + "Exceptional model for specialized reasoning tasks with advanced agentic capabilities and superior coding performance.", + regex: /claude-opus-4[.-]1.*/i, + recommendedFor: ["chat"], + }, { model: "claude-sonnet-4-20250514", displayName: "Claude 4 Sonnet", contextLength: 200000, maxCompletionTokens: 8192, description: - "Most intelligent model with the highest level of intelligence and capability.", + "Previous generation model with strong coding and reasoning capabilities, now superseded by Claude 4.5 Sonnet.", // Sometimes written as claude-4-sonnet, other times as claude-sonnet-4 regex: /claude-(?:4-sonnet|sonnet-4).*/i, recommendedFor: ["chat"], @@ -40,31 +70,32 @@ export const Anthropic: ModelProvider = { displayName: "Claude 4 Opus", contextLength: 200000, maxCompletionTokens: 8192, - description: "Previous iteration on Opus", + description: + "Previous generation model with high intelligence, now superseded by Claude 4.1 Opus.", regex: /claude-(?:4-opus|opus-4).*/i, recommendedFor: ["chat"], }, + { + model: "claude-3-7-sonnet-latest", + displayName: "Claude 3.7 Sonnet", + contextLength: 200000, + maxCompletionTokens: 128000, + description: + "First hybrid reasoning model with extended thinking capabilities, excellent for coding and front-end development.", + regex: /claude-3[.-]7-sonnet.*/i, + recommendedFor: ["chat"], + }, { model: "claude-3-5-sonnet-latest", displayName: "Claude 3.5 Sonnet", contextLength: 200000, maxCompletionTokens: 8192, description: - "Most intelligent model with the highest level of intelligence and capability.", + "Previous flagship model with strong performance across diverse tasks, now superseded by Claude 4.5.", regex: /claude-3[.-]5-sonnet.*/i, recommendedFor: ["chat"], }, - { - model: "claude-3-7-sonnet-latest", - displayName: "Claude 3.7 Sonnet", - contextLength: 200000, - maxCompletionTokens: 8192, - description: - "Most intelligent model with the highest level of intelligence and capability.", - regex: /claude-3[.-]7-sonnet.*/i, - recommendedFor: ["chat"], - }, { model: "claude-3-opus-20240229", displayName: "Claude 3 Opus", @@ -116,7 +147,7 @@ export const Anthropic: ModelProvider = { contextLength: 100000, maxCompletionTokens: 4096, description: - "Our cheapest small and fast model, a predecessor of Claude Haiku.", + "Anthropic's cheapest small and fast model, a predecessor of Claude Haiku.", regex: /claude-instant-1\.2/i, }, ], diff --git a/packages/llm-info/src/providers/cometapi.ts b/packages/llm-info/src/providers/cometapi.ts index bb11aea61..3efe24dc6 100644 --- a/packages/llm-info/src/providers/cometapi.ts +++ b/packages/llm-info/src/providers/cometapi.ts @@ -79,6 +79,24 @@ export const CometAPI: ModelProvider = { }, // Claude Series + { + model: "claude-sonnet-4-5", + displayName: "Claude 4.5 Sonnet", + contextLength: 200000, + maxCompletionTokens: 64000, + description: + "Anthropic's smartest model for complex agents and coding with exceptional performance in reasoning and multilingual tasks.", + recommendedFor: ["chat"], + }, + { + model: "claude-haiku-4-5-20251001", + displayName: "Claude 4.5 Haiku (2025-10-01)", + contextLength: 200000, + maxCompletionTokens: 64000, + description: + "Anthropic's fastest model with near-frontier intelligence, ideal for quick and accurate responses.", + recommendedFor: ["chat"], + }, { model: "claude-opus-4-1-20250805", displayName: "Claude Opus 4.1 (2025-08-05)", diff --git a/packages/openai-adapters/package-lock.json b/packages/openai-adapters/package-lock.json index 8750b09da..9fd0048d1 100644 --- a/packages/openai-adapters/package-lock.json +++ b/packages/openai-adapters/package-lock.json @@ -1,20 +1,20 @@ { "name": "@continuedev/openai-adapters", - "version": "1.15.0", + "version": "1.32.0", "lockfileVersion": 3, "requires": true, "packages": { "": { "name": "@continuedev/openai-adapters", - "version": "1.15.0", + "version": "1.32.0", "license": "Apache-2.0", "dependencies": { "@anthropic-ai/sdk": "^0.67.0", - "@aws-sdk/client-bedrock-runtime": "^3.842.0", - "@aws-sdk/credential-providers": "^3.913.0", + "@aws-sdk/client-bedrock-runtime": "^3.925.0", + "@aws-sdk/credential-providers": "^3.929.0", "@continuedev/config-types": "^1.0.14", - "@continuedev/config-yaml": "^1.33.0", - "@continuedev/fetch": "^1.5.0", + "@continuedev/config-yaml": "^1.36.0", + "@continuedev/fetch": "^1.6.0", "dotenv": "^16.5.0", "google-auth-library": "^10.4.1", "json-schema": "^0.4.0", @@ -201,121 +201,107 @@ } }, "node_modules/@aws-sdk/client-bedrock-runtime": { - "version": "3.890.0", - "resolved": "https://registry.npmjs.org/@aws-sdk/client-bedrock-runtime/-/client-bedrock-runtime-3.890.0.tgz", - "integrity": "sha512-pgYxjMEed4UTlBGPqU/XjLIrfGDXvDftvqZjXqfwb/ZVNHzU/WIIKv79U9US4ESx6OJoIjlv/ovbH6SxS4VX7Q==", + "version": "3.925.0", + "resolved": "https://registry.npmjs.org/@aws-sdk/client-bedrock-runtime/-/client-bedrock-runtime-3.925.0.tgz", + "integrity": "sha512-+CKHkRnsV17/bq8DWKqYskXNaZTuerpFwkOrHLv7ri43kumM2IAMdXdLeOD6k7C7qAU+5E8H8i4AZzC3WpOYYw==", "license": "Apache-2.0", "dependencies": { "@aws-crypto/sha256-browser": "5.2.0", "@aws-crypto/sha256-js": "5.2.0", - "@aws-sdk/core": "3.890.0", - "@aws-sdk/credential-provider-node": "3.890.0", - "@aws-sdk/eventstream-handler-node": "3.890.0", - "@aws-sdk/middleware-eventstream": "3.887.0", - "@aws-sdk/middleware-host-header": "3.887.0", - "@aws-sdk/middleware-logger": "3.887.0", - "@aws-sdk/middleware-recursion-detection": "3.887.0", - "@aws-sdk/middleware-user-agent": "3.890.0", - "@aws-sdk/middleware-websocket": "3.890.0", - "@aws-sdk/region-config-resolver": "3.890.0", - "@aws-sdk/token-providers": "3.890.0", - "@aws-sdk/types": "3.887.0", - "@aws-sdk/util-endpoints": "3.890.0", - "@aws-sdk/util-user-agent-browser": "3.887.0", - "@aws-sdk/util-user-agent-node": "3.890.0", - "@smithy/config-resolver": "^4.2.2", - "@smithy/core": "^3.11.0", - "@smithy/eventstream-serde-browser": "^4.1.1", - "@smithy/eventstream-serde-config-resolver": "^4.2.1", - "@smithy/eventstream-serde-node": "^4.1.1", - "@smithy/fetch-http-handler": "^5.2.1", - "@smithy/hash-node": "^4.1.1", - "@smithy/invalid-dependency": "^4.1.1", - "@smithy/middleware-content-length": "^4.1.1", - "@smithy/middleware-endpoint": "^4.2.2", - "@smithy/middleware-retry": "^4.2.2", - "@smithy/middleware-serde": "^4.1.1", - "@smithy/middleware-stack": "^4.1.1", - "@smithy/node-config-provider": "^4.2.2", - "@smithy/node-http-handler": "^4.2.1", - "@smithy/protocol-http": "^5.2.1", - "@smithy/smithy-client": "^4.6.2", - "@smithy/types": "^4.5.0", - "@smithy/url-parser": "^4.1.1", - "@smithy/util-base64": "^4.1.0", - "@smithy/util-body-length-browser": "^4.1.0", - "@smithy/util-body-length-node": "^4.1.0", - "@smithy/util-defaults-mode-browser": "^4.1.2", - "@smithy/util-defaults-mode-node": "^4.1.2", - "@smithy/util-endpoints": "^3.1.2", - "@smithy/util-middleware": "^4.1.1", - "@smithy/util-retry": "^4.1.1", - "@smithy/util-stream": "^4.3.1", - "@smithy/util-utf8": "^4.1.0", - "@types/uuid": "^9.0.1", - "tslib": "^2.6.2", - "uuid": "^9.0.1" + "@aws-sdk/core": "3.922.0", + "@aws-sdk/credential-provider-node": "3.925.0", + "@aws-sdk/eventstream-handler-node": "3.922.0", + "@aws-sdk/middleware-eventstream": "3.922.0", + "@aws-sdk/middleware-host-header": "3.922.0", + "@aws-sdk/middleware-logger": "3.922.0", + "@aws-sdk/middleware-recursion-detection": "3.922.0", + "@aws-sdk/middleware-user-agent": "3.922.0", + "@aws-sdk/middleware-websocket": "3.922.0", + "@aws-sdk/region-config-resolver": "3.925.0", + "@aws-sdk/token-providers": "3.925.0", + "@aws-sdk/types": "3.922.0", + "@aws-sdk/util-endpoints": "3.922.0", + "@aws-sdk/util-user-agent-browser": "3.922.0", + "@aws-sdk/util-user-agent-node": "3.922.0", + "@smithy/config-resolver": "^4.4.2", + "@smithy/core": "^3.17.2", + "@smithy/eventstream-serde-browser": "^4.2.4", + "@smithy/eventstream-serde-config-resolver": "^4.3.4", + "@smithy/eventstream-serde-node": "^4.2.4", + "@smithy/fetch-http-handler": "^5.3.5", + "@smithy/hash-node": "^4.2.4", + "@smithy/invalid-dependency": "^4.2.4", + "@smithy/middleware-content-length": "^4.2.4", + "@smithy/middleware-endpoint": "^4.3.6", + "@smithy/middleware-retry": "^4.4.6", + "@smithy/middleware-serde": "^4.2.4", + "@smithy/middleware-stack": "^4.2.4", + "@smithy/node-config-provider": "^4.3.4", + "@smithy/node-http-handler": "^4.4.4", + "@smithy/protocol-http": "^5.3.4", + "@smithy/smithy-client": "^4.9.2", + "@smithy/types": "^4.8.1", + "@smithy/url-parser": "^4.2.4", + "@smithy/util-base64": "^4.3.0", + "@smithy/util-body-length-browser": "^4.2.0", + "@smithy/util-body-length-node": "^4.2.1", + "@smithy/util-defaults-mode-browser": "^4.3.5", + "@smithy/util-defaults-mode-node": "^4.2.8", + "@smithy/util-endpoints": "^3.2.4", + "@smithy/util-middleware": "^4.2.4", + "@smithy/util-retry": "^4.2.4", + "@smithy/util-stream": "^4.5.5", + "@smithy/util-utf8": "^4.2.0", + "@smithy/uuid": "^1.1.0", + "tslib": "^2.6.2" }, "engines": { "node": ">=18.0.0" } }, - "node_modules/@aws-sdk/client-bedrock-runtime/node_modules/uuid": { - "version": "9.0.1", - "resolved": "https://registry.npmjs.org/uuid/-/uuid-9.0.1.tgz", - "integrity": "sha512-b+1eJOlsR9K8HJpow9Ok3fiWOWSIcIzXodvv0rQjVoOVNpWMpxf1wZNpt4y9h10odCNrqnYp1OBzRktckBe3sA==", - "funding": [ - "https://github.com/sponsors/broofa", - "https://github.com/sponsors/ctavan" - ], - "license": "MIT", - "bin": { - "uuid": "dist/bin/uuid" - } - }, "node_modules/@aws-sdk/client-cognito-identity": { - "version": "3.913.0", - "resolved": "https://registry.npmjs.org/@aws-sdk/client-cognito-identity/-/client-cognito-identity-3.913.0.tgz", - "integrity": "sha512-TdEwasoXnLIb90z7NL1vLbEprzY0vdRqZH97ubIUDo8EaJ6WrJ35Um5g0rcnWKR6C+P9lKKI4mVv2BI2EwY94Q==", + "version": "3.929.0", + "resolved": "https://registry.npmjs.org/@aws-sdk/client-cognito-identity/-/client-cognito-identity-3.929.0.tgz", + "integrity": "sha512-2h4Vb4aIjsDWgfgbUaiy+3Q6u3j5kU3ZB7f9b5rADdM6MGlxWxAa8IKOUXYG6ST3XBL8lAdfUtoyj6yB67U6WA==", "license": "Apache-2.0", "dependencies": { "@aws-crypto/sha256-browser": "5.2.0", "@aws-crypto/sha256-js": "5.2.0", - "@aws-sdk/core": "3.911.0", - "@aws-sdk/credential-provider-node": "3.913.0", - "@aws-sdk/middleware-host-header": "3.910.0", - "@aws-sdk/middleware-logger": "3.910.0", - "@aws-sdk/middleware-recursion-detection": "3.910.0", - "@aws-sdk/middleware-user-agent": "3.911.0", - "@aws-sdk/region-config-resolver": "3.910.0", - "@aws-sdk/types": "3.910.0", - "@aws-sdk/util-endpoints": "3.910.0", - "@aws-sdk/util-user-agent-browser": "3.910.0", - "@aws-sdk/util-user-agent-node": "3.911.0", - "@smithy/config-resolver": "^4.3.2", - "@smithy/core": "^3.16.1", - "@smithy/fetch-http-handler": "^5.3.3", - "@smithy/hash-node": "^4.2.2", - "@smithy/invalid-dependency": "^4.2.2", - "@smithy/middleware-content-length": "^4.2.2", - "@smithy/middleware-endpoint": "^4.3.3", - "@smithy/middleware-retry": "^4.4.3", - "@smithy/middleware-serde": "^4.2.2", - "@smithy/middleware-stack": "^4.2.2", - "@smithy/node-config-provider": "^4.3.2", - "@smithy/node-http-handler": "^4.4.1", - "@smithy/protocol-http": "^5.3.2", - "@smithy/smithy-client": "^4.8.1", - "@smithy/types": "^4.7.1", - "@smithy/url-parser": "^4.2.2", + "@aws-sdk/core": "3.928.0", + "@aws-sdk/credential-provider-node": "3.929.0", + "@aws-sdk/middleware-host-header": "3.922.0", + "@aws-sdk/middleware-logger": "3.922.0", + "@aws-sdk/middleware-recursion-detection": "3.922.0", + "@aws-sdk/middleware-user-agent": "3.928.0", + "@aws-sdk/region-config-resolver": "3.925.0", + "@aws-sdk/types": "3.922.0", + "@aws-sdk/util-endpoints": "3.922.0", + "@aws-sdk/util-user-agent-browser": "3.922.0", + "@aws-sdk/util-user-agent-node": "3.928.0", + "@smithy/config-resolver": "^4.4.2", + "@smithy/core": "^3.17.2", + "@smithy/fetch-http-handler": "^5.3.5", + "@smithy/hash-node": "^4.2.4", + "@smithy/invalid-dependency": "^4.2.4", + "@smithy/middleware-content-length": "^4.2.4", + "@smithy/middleware-endpoint": "^4.3.6", + "@smithy/middleware-retry": "^4.4.6", + "@smithy/middleware-serde": "^4.2.4", + "@smithy/middleware-stack": "^4.2.4", + "@smithy/node-config-provider": "^4.3.4", + "@smithy/node-http-handler": "^4.4.4", + "@smithy/protocol-http": "^5.3.4", + "@smithy/smithy-client": "^4.9.2", + "@smithy/types": "^4.8.1", + "@smithy/url-parser": "^4.2.4", "@smithy/util-base64": "^4.3.0", "@smithy/util-body-length-browser": "^4.2.0", "@smithy/util-body-length-node": "^4.2.1", - "@smithy/util-defaults-mode-browser": "^4.3.2", - "@smithy/util-defaults-mode-node": "^4.2.3", - "@smithy/util-endpoints": "^3.2.2", - "@smithy/util-middleware": "^4.2.2", - "@smithy/util-retry": "^4.2.2", + "@smithy/util-defaults-mode-browser": "^4.3.5", + "@smithy/util-defaults-mode-node": "^4.2.8", + "@smithy/util-endpoints": "^3.2.4", + "@smithy/util-middleware": "^4.2.4", + "@smithy/util-retry": "^4.2.4", "@smithy/util-utf8": "^4.2.0", "tslib": "^2.6.2" }, @@ -324,47 +310,47 @@ } }, "node_modules/@aws-sdk/client-cognito-identity/node_modules/@aws-sdk/client-sso": { - "version": "3.911.0", - "resolved": "https://registry.npmjs.org/@aws-sdk/client-sso/-/client-sso-3.911.0.tgz", - "integrity": "sha512-N9QAeMvN3D1ZyKXkQp4aUgC4wUMuA5E1HuVCkajc0bq1pnH4PIke36YlrDGGREqPlyLFrXCkws2gbL5p23vtlg==", + "version": "3.929.0", + "resolved": "https://registry.npmjs.org/@aws-sdk/client-sso/-/client-sso-3.929.0.tgz", + "integrity": "sha512-CE1T7PvN2MDRCw96BTUz2Zcnb6Lae3Dl4w3TPB5auBv2sAiIPbQegFUwT2C8teMDGCNXyndzoTvAd4wmO9AcpA==", "license": "Apache-2.0", "dependencies": { "@aws-crypto/sha256-browser": "5.2.0", "@aws-crypto/sha256-js": "5.2.0", - "@aws-sdk/core": "3.911.0", - "@aws-sdk/middleware-host-header": "3.910.0", - "@aws-sdk/middleware-logger": "3.910.0", - "@aws-sdk/middleware-recursion-detection": "3.910.0", - "@aws-sdk/middleware-user-agent": "3.911.0", - "@aws-sdk/region-config-resolver": "3.910.0", - "@aws-sdk/types": "3.910.0", - "@aws-sdk/util-endpoints": "3.910.0", - "@aws-sdk/util-user-agent-browser": "3.910.0", - "@aws-sdk/util-user-agent-node": "3.911.0", - "@smithy/config-resolver": "^4.3.2", - "@smithy/core": "^3.16.1", - "@smithy/fetch-http-handler": "^5.3.3", - "@smithy/hash-node": "^4.2.2", - "@smithy/invalid-dependency": "^4.2.2", - "@smithy/middleware-content-length": "^4.2.2", - "@smithy/middleware-endpoint": "^4.3.3", - "@smithy/middleware-retry": "^4.4.3", - "@smithy/middleware-serde": "^4.2.2", - "@smithy/middleware-stack": "^4.2.2", - "@smithy/node-config-provider": "^4.3.2", - "@smithy/node-http-handler": "^4.4.1", - "@smithy/protocol-http": "^5.3.2", - "@smithy/smithy-client": "^4.8.1", - "@smithy/types": "^4.7.1", - "@smithy/url-parser": "^4.2.2", + "@aws-sdk/core": "3.928.0", + "@aws-sdk/middleware-host-header": "3.922.0", + "@aws-sdk/middleware-logger": "3.922.0", + "@aws-sdk/middleware-recursion-detection": "3.922.0", + "@aws-sdk/middleware-user-agent": "3.928.0", + "@aws-sdk/region-config-resolver": "3.925.0", + "@aws-sdk/types": "3.922.0", + "@aws-sdk/util-endpoints": "3.922.0", + "@aws-sdk/util-user-agent-browser": "3.922.0", + "@aws-sdk/util-user-agent-node": "3.928.0", + "@smithy/config-resolver": "^4.4.2", + "@smithy/core": "^3.17.2", + "@smithy/fetch-http-handler": "^5.3.5", + "@smithy/hash-node": "^4.2.4", + "@smithy/invalid-dependency": "^4.2.4", + "@smithy/middleware-content-length": "^4.2.4", + "@smithy/middleware-endpoint": "^4.3.6", + "@smithy/middleware-retry": "^4.4.6", + "@smithy/middleware-serde": "^4.2.4", + "@smithy/middleware-stack": "^4.2.4", + "@smithy/node-config-provider": "^4.3.4", + "@smithy/node-http-handler": "^4.4.4", + "@smithy/protocol-http": "^5.3.4", + "@smithy/smithy-client": "^4.9.2", + "@smithy/types": "^4.8.1", + "@smithy/url-parser": "^4.2.4", "@smithy/util-base64": "^4.3.0", "@smithy/util-body-length-browser": "^4.2.0", "@smithy/util-body-length-node": "^4.2.1", - "@smithy/util-defaults-mode-browser": "^4.3.2", - "@smithy/util-defaults-mode-node": "^4.2.3", - "@smithy/util-endpoints": "^3.2.2", - "@smithy/util-middleware": "^4.2.2", - "@smithy/util-retry": "^4.2.2", + "@smithy/util-defaults-mode-browser": "^4.3.5", + "@smithy/util-defaults-mode-node": "^4.2.8", + "@smithy/util-endpoints": "^3.2.4", + "@smithy/util-middleware": "^4.2.4", + "@smithy/util-retry": "^4.2.4", "@smithy/util-utf8": "^4.2.0", "tslib": "^2.6.2" }, @@ -373,22 +359,22 @@ } }, "node_modules/@aws-sdk/client-cognito-identity/node_modules/@aws-sdk/core": { - "version": "3.911.0", - "resolved": "https://registry.npmjs.org/@aws-sdk/core/-/core-3.911.0.tgz", - "integrity": "sha512-k4QG9A+UCq/qlDJFmjozo6R0eXXfe++/KnCDMmajehIE9kh+b/5DqlGvAmbl9w4e92LOtrY6/DN3mIX1xs4sXw==", + "version": "3.928.0", + "resolved": "https://registry.npmjs.org/@aws-sdk/core/-/core-3.928.0.tgz", + "integrity": "sha512-e28J2uKjy2uub4u41dNnmzAu0AN3FGB+LRcLN2Qnwl9Oq3kIcByl5sM8ZD+vWpNG+SFUrUasBCq8cMnHxwXZ4w==", "license": "Apache-2.0", "dependencies": { - "@aws-sdk/types": "3.910.0", - "@aws-sdk/xml-builder": "3.911.0", - "@smithy/core": "^3.16.1", - "@smithy/node-config-provider": "^4.3.2", - "@smithy/property-provider": "^4.2.2", - "@smithy/protocol-http": "^5.3.2", - "@smithy/signature-v4": "^5.3.2", - "@smithy/smithy-client": "^4.8.1", - "@smithy/types": "^4.7.1", + "@aws-sdk/types": "3.922.0", + "@aws-sdk/xml-builder": "3.921.0", + "@smithy/core": "^3.17.2", + "@smithy/node-config-provider": "^4.3.4", + "@smithy/property-provider": "^4.2.4", + "@smithy/protocol-http": "^5.3.4", + "@smithy/signature-v4": "^5.3.4", + "@smithy/smithy-client": "^4.9.2", + "@smithy/types": "^4.8.1", "@smithy/util-base64": "^4.3.0", - "@smithy/util-middleware": "^4.2.2", + "@smithy/util-middleware": "^4.2.4", "@smithy/util-utf8": "^4.2.0", "tslib": "^2.6.2" }, @@ -397,15 +383,15 @@ } }, "node_modules/@aws-sdk/client-cognito-identity/node_modules/@aws-sdk/credential-provider-env": { - "version": "3.911.0", - "resolved": "https://registry.npmjs.org/@aws-sdk/credential-provider-env/-/credential-provider-env-3.911.0.tgz", - "integrity": "sha512-6FWRwWn3LUZzLhqBXB+TPMW2ijCWUqGICSw8bVakEdODrvbiv1RT/MVUayzFwz/ek6e6NKZn6DbSWzx07N9Hjw==", + "version": "3.928.0", + "resolved": "https://registry.npmjs.org/@aws-sdk/credential-provider-env/-/credential-provider-env-3.928.0.tgz", + "integrity": "sha512-tB8F9Ti0/NFyFVQX8UQtgRik88evtHpyT6WfXOB4bAY6lEnEHA0ubJZmk9y+aUeoE+OsGLx70dC3JUsiiCPJkQ==", "license": "Apache-2.0", "dependencies": { - "@aws-sdk/core": "3.911.0", - "@aws-sdk/types": "3.910.0", - "@smithy/property-provider": "^4.2.2", - "@smithy/types": "^4.7.1", + "@aws-sdk/core": "3.928.0", + "@aws-sdk/types": "3.922.0", + "@smithy/property-provider": "^4.2.4", + "@smithy/types": "^4.8.1", "tslib": "^2.6.2" }, "engines": { @@ -413,20 +399,20 @@ } }, "node_modules/@aws-sdk/client-cognito-identity/node_modules/@aws-sdk/credential-provider-http": { - "version": "3.911.0", - "resolved": "https://registry.npmjs.org/@aws-sdk/credential-provider-http/-/credential-provider-http-3.911.0.tgz", - "integrity": "sha512-xUlwKmIUW2fWP/eM3nF5u4CyLtOtyohlhGJ5jdsJokr3MrQ7w0tDITO43C9IhCn+28D5UbaiWnKw5ntkw7aVfA==", + "version": "3.928.0", + "resolved": "https://registry.npmjs.org/@aws-sdk/credential-provider-http/-/credential-provider-http-3.928.0.tgz", + "integrity": "sha512-67ynC/8UW9Y8Gn1ZZtC3OgcQDGWrJelHmkbgpmmxYUrzVhp+NINtz3wiTzrrBFhPH/8Uy6BxvhMfXhn0ptcMEQ==", "license": "Apache-2.0", "dependencies": { - "@aws-sdk/core": "3.911.0", - "@aws-sdk/types": "3.910.0", - "@smithy/fetch-http-handler": "^5.3.3", - "@smithy/node-http-handler": "^4.4.1", - "@smithy/property-provider": "^4.2.2", - "@smithy/protocol-http": "^5.3.2", - "@smithy/smithy-client": "^4.8.1", - "@smithy/types": "^4.7.1", - "@smithy/util-stream": "^4.5.2", + "@aws-sdk/core": "3.928.0", + "@aws-sdk/types": "3.922.0", + "@smithy/fetch-http-handler": "^5.3.5", + "@smithy/node-http-handler": "^4.4.4", + "@smithy/property-provider": "^4.2.4", + "@smithy/protocol-http": "^5.3.4", + "@smithy/smithy-client": "^4.9.2", + "@smithy/types": "^4.8.1", + "@smithy/util-stream": "^4.5.5", "tslib": "^2.6.2" }, "engines": { @@ -434,23 +420,23 @@ } }, "node_modules/@aws-sdk/client-cognito-identity/node_modules/@aws-sdk/credential-provider-ini": { - "version": "3.913.0", - "resolved": "https://registry.npmjs.org/@aws-sdk/credential-provider-ini/-/credential-provider-ini-3.913.0.tgz", - "integrity": "sha512-iR4c4NQ1OSRKQi0SxzpwD+wP1fCy+QNKtEyCajuVlD0pvmoIHdrm5THK9e+2/7/SsQDRhOXHJfLGxHapD74WJw==", + "version": "3.929.0", + "resolved": "https://registry.npmjs.org/@aws-sdk/credential-provider-ini/-/credential-provider-ini-3.929.0.tgz", + "integrity": "sha512-XIzWsJUYeS/DjggHFB53sGGjXdlN/BA6x+Y/JvLbpdkGD2yLISU34/cDPbK/O8BAQCRTCQ69VPa/1AdNgZZRQw==", "license": "Apache-2.0", "dependencies": { - "@aws-sdk/core": "3.911.0", - "@aws-sdk/credential-provider-env": "3.911.0", - "@aws-sdk/credential-provider-http": "3.911.0", - "@aws-sdk/credential-provider-process": "3.911.0", - "@aws-sdk/credential-provider-sso": "3.911.0", - "@aws-sdk/credential-provider-web-identity": "3.911.0", - "@aws-sdk/nested-clients": "3.911.0", - "@aws-sdk/types": "3.910.0", - "@smithy/credential-provider-imds": "^4.2.2", - "@smithy/property-provider": "^4.2.2", - "@smithy/shared-ini-file-loader": "^4.3.2", - "@smithy/types": "^4.7.1", + "@aws-sdk/core": "3.928.0", + "@aws-sdk/credential-provider-env": "3.928.0", + "@aws-sdk/credential-provider-http": "3.928.0", + "@aws-sdk/credential-provider-process": "3.928.0", + "@aws-sdk/credential-provider-sso": "3.929.0", + "@aws-sdk/credential-provider-web-identity": "3.929.0", + "@aws-sdk/nested-clients": "3.929.0", + "@aws-sdk/types": "3.922.0", + "@smithy/credential-provider-imds": "^4.2.4", + "@smithy/property-provider": "^4.2.4", + "@smithy/shared-ini-file-loader": "^4.3.4", + "@smithy/types": "^4.8.1", "tslib": "^2.6.2" }, "engines": { @@ -458,22 +444,22 @@ } }, "node_modules/@aws-sdk/client-cognito-identity/node_modules/@aws-sdk/credential-provider-node": { - "version": "3.913.0", - "resolved": "https://registry.npmjs.org/@aws-sdk/credential-provider-node/-/credential-provider-node-3.913.0.tgz", - "integrity": "sha512-HQPLkKDxS83Q/nZKqg9bq4igWzYQeOMqhpx5LYs4u1GwsKeCsYrrfz12Iu4IHNWPp9EnGLcmdfbfYuqZGrsaSQ==", + "version": "3.929.0", + "resolved": "https://registry.npmjs.org/@aws-sdk/credential-provider-node/-/credential-provider-node-3.929.0.tgz", + "integrity": "sha512-GhNZEacpa7fh8GNggshm5S93UK25bCV5aDK8c2vfe7Y3OxBiL89Ox5GUKCu0xIOqiBdfYkI9wvWCFsQRRn7Bjw==", "license": "Apache-2.0", "dependencies": { - "@aws-sdk/credential-provider-env": "3.911.0", - "@aws-sdk/credential-provider-http": "3.911.0", - "@aws-sdk/credential-provider-ini": "3.913.0", - "@aws-sdk/credential-provider-process": "3.911.0", - "@aws-sdk/credential-provider-sso": "3.911.0", - "@aws-sdk/credential-provider-web-identity": "3.911.0", - "@aws-sdk/types": "3.910.0", - "@smithy/credential-provider-imds": "^4.2.2", - "@smithy/property-provider": "^4.2.2", - "@smithy/shared-ini-file-loader": "^4.3.2", - "@smithy/types": "^4.7.1", + "@aws-sdk/credential-provider-env": "3.928.0", + "@aws-sdk/credential-provider-http": "3.928.0", + "@aws-sdk/credential-provider-ini": "3.929.0", + "@aws-sdk/credential-provider-process": "3.928.0", + "@aws-sdk/credential-provider-sso": "3.929.0", + "@aws-sdk/credential-provider-web-identity": "3.929.0", + "@aws-sdk/types": "3.922.0", + "@smithy/credential-provider-imds": "^4.2.4", + "@smithy/property-provider": "^4.2.4", + "@smithy/shared-ini-file-loader": "^4.3.4", + "@smithy/types": "^4.8.1", "tslib": "^2.6.2" }, "engines": { @@ -481,16 +467,16 @@ } }, "node_modules/@aws-sdk/client-cognito-identity/node_modules/@aws-sdk/credential-provider-process": { - "version": "3.911.0", - "resolved": "https://registry.npmjs.org/@aws-sdk/credential-provider-process/-/credential-provider-process-3.911.0.tgz", - "integrity": "sha512-mKshhV5jRQffZjbK9x7bs+uC2IsYKfpzYaBamFsEov3xtARCpOiKaIlM8gYKFEbHT2M+1R3rYYlhhl9ndVWS2g==", + "version": "3.928.0", + "resolved": "https://registry.npmjs.org/@aws-sdk/credential-provider-process/-/credential-provider-process-3.928.0.tgz", + "integrity": "sha512-XL0juran8yhqwn0mreV+NJeHJOkcRBaExsvVn9fXWW37A4gLh4esSJxM2KbSNh0t+/Bk3ehBI5sL9xad+yRDuw==", "license": "Apache-2.0", "dependencies": { - "@aws-sdk/core": "3.911.0", - "@aws-sdk/types": "3.910.0", - "@smithy/property-provider": "^4.2.2", - "@smithy/shared-ini-file-loader": "^4.3.2", - "@smithy/types": "^4.7.1", + "@aws-sdk/core": "3.928.0", + "@aws-sdk/types": "3.922.0", + "@smithy/property-provider": "^4.2.4", + "@smithy/shared-ini-file-loader": "^4.3.4", + "@smithy/types": "^4.8.1", "tslib": "^2.6.2" }, "engines": { @@ -498,18 +484,18 @@ } }, "node_modules/@aws-sdk/client-cognito-identity/node_modules/@aws-sdk/credential-provider-sso": { - "version": "3.911.0", - "resolved": "https://registry.npmjs.org/@aws-sdk/credential-provider-sso/-/credential-provider-sso-3.911.0.tgz", - "integrity": "sha512-JAxd4uWe0Zc9tk6+N0cVxe9XtJVcOx6Ms0k933ZU9QbuRMH6xti/wnZxp/IvGIWIDzf5fhqiGyw5MSyDeI5b1w==", + "version": "3.929.0", + "resolved": "https://registry.npmjs.org/@aws-sdk/credential-provider-sso/-/credential-provider-sso-3.929.0.tgz", + "integrity": "sha512-aADe6cLo4+9MUOe0GnC5kUn8IduEKnTxqBlsciZOplU0/0+Rdp9rRh/e9ZBskeIXZ33eO2HG+KDAf1lvtPT7dA==", "license": "Apache-2.0", "dependencies": { - "@aws-sdk/client-sso": "3.911.0", - "@aws-sdk/core": "3.911.0", - "@aws-sdk/token-providers": "3.911.0", - "@aws-sdk/types": "3.910.0", - "@smithy/property-provider": "^4.2.2", - "@smithy/shared-ini-file-loader": "^4.3.2", - "@smithy/types": "^4.7.1", + "@aws-sdk/client-sso": "3.929.0", + "@aws-sdk/core": "3.928.0", + "@aws-sdk/token-providers": "3.929.0", + "@aws-sdk/types": "3.922.0", + "@smithy/property-provider": "^4.2.4", + "@smithy/shared-ini-file-loader": "^4.3.4", + "@smithy/types": "^4.8.1", "tslib": "^2.6.2" }, "engines": { @@ -517,62 +503,17 @@ } }, "node_modules/@aws-sdk/client-cognito-identity/node_modules/@aws-sdk/credential-provider-web-identity": { - "version": "3.911.0", - "resolved": "https://registry.npmjs.org/@aws-sdk/credential-provider-web-identity/-/credential-provider-web-identity-3.911.0.tgz", - "integrity": "sha512-urIbXWWG+cm54RwwTFQuRwPH0WPsMFSDF2/H9qO2J2fKoHRURuyblFCyYG3aVKZGvFBhOizJYexf5+5w3CJKBw==", + "version": "3.929.0", + "resolved": "https://registry.npmjs.org/@aws-sdk/credential-provider-web-identity/-/credential-provider-web-identity-3.929.0.tgz", + "integrity": "sha512-L18JtW28xUZVTRHblgqZ8QTVGQfxpMLIuVYgQXrVWiY9Iz9EF4XrfZo3ywCAgqfgLi5pgg3fCxx/pe7uiMOs2w==", "license": "Apache-2.0", "dependencies": { - "@aws-sdk/core": "3.911.0", - "@aws-sdk/nested-clients": "3.911.0", - "@aws-sdk/types": "3.910.0", - "@smithy/property-provider": "^4.2.2", - "@smithy/shared-ini-file-loader": "^4.3.2", - "@smithy/types": "^4.7.1", - "tslib": "^2.6.2" - }, - "engines": { - "node": ">=18.0.0" - } - }, - "node_modules/@aws-sdk/client-cognito-identity/node_modules/@aws-sdk/middleware-host-header": { - "version": "3.910.0", - "resolved": "https://registry.npmjs.org/@aws-sdk/middleware-host-header/-/middleware-host-header-3.910.0.tgz", - "integrity": "sha512-F9Lqeu80/aTM6S/izZ8RtwSmjfhWjIuxX61LX+/9mxJyEkgaECRxv0chsLQsLHJumkGnXRy/eIyMLBhcTPF5vg==", - "license": "Apache-2.0", - "dependencies": { - "@aws-sdk/types": "3.910.0", - "@smithy/protocol-http": "^5.3.2", - "@smithy/types": "^4.7.1", - "tslib": "^2.6.2" - }, - "engines": { - "node": ">=18.0.0" - } - }, - "node_modules/@aws-sdk/client-cognito-identity/node_modules/@aws-sdk/middleware-logger": { - "version": "3.910.0", - "resolved": "https://registry.npmjs.org/@aws-sdk/middleware-logger/-/middleware-logger-3.910.0.tgz", - "integrity": "sha512-3LJyyfs1USvRuRDla1pGlzGRtXJBXD1zC9F+eE9Iz/V5nkmhyv52A017CvKWmYoR0DM9dzjLyPOI0BSSppEaTw==", - "license": "Apache-2.0", - "dependencies": { - "@aws-sdk/types": "3.910.0", - "@smithy/types": "^4.7.1", - "tslib": "^2.6.2" - }, - "engines": { - "node": ">=18.0.0" - } - }, - "node_modules/@aws-sdk/client-cognito-identity/node_modules/@aws-sdk/middleware-recursion-detection": { - "version": "3.910.0", - "resolved": "https://registry.npmjs.org/@aws-sdk/middleware-recursion-detection/-/middleware-recursion-detection-3.910.0.tgz", - "integrity": "sha512-m/oLz0EoCy+WoIVBnXRXJ4AtGpdl0kPE7U+VH9TsuUzHgxY1Re/176Q1HWLBRVlz4gr++lNsgsMWEC+VnAwMpw==", - "license": "Apache-2.0", - "dependencies": { - "@aws-sdk/types": "3.910.0", - "@aws/lambda-invoke-store": "^0.0.1", - "@smithy/protocol-http": "^5.3.2", - "@smithy/types": "^4.7.1", + "@aws-sdk/core": "3.928.0", + "@aws-sdk/nested-clients": "3.929.0", + "@aws-sdk/types": "3.922.0", + "@smithy/property-provider": "^4.2.4", + "@smithy/shared-ini-file-loader": "^4.3.4", + "@smithy/types": "^4.8.1", "tslib": "^2.6.2" }, "engines": { @@ -580,17 +521,17 @@ } }, "node_modules/@aws-sdk/client-cognito-identity/node_modules/@aws-sdk/middleware-user-agent": { - "version": "3.911.0", - "resolved": "https://registry.npmjs.org/@aws-sdk/middleware-user-agent/-/middleware-user-agent-3.911.0.tgz", - "integrity": "sha512-rY3LvGvgY/UI0nmt5f4DRzjEh8135A2TeHcva1bgOmVfOI4vkkGfA20sNRqerOkSO6hPbkxJapO50UJHFzmmyA==", + "version": "3.928.0", + "resolved": "https://registry.npmjs.org/@aws-sdk/middleware-user-agent/-/middleware-user-agent-3.928.0.tgz", + "integrity": "sha512-ESvcfLx5PtpdUM3ptCwb80toBTd3y5I4w5jaeOPHihiZr7jkRLE/nsaCKzlqscPs6UQ8xI0maav04JUiTskcHw==", "license": "Apache-2.0", "dependencies": { - "@aws-sdk/core": "3.911.0", - "@aws-sdk/types": "3.910.0", - "@aws-sdk/util-endpoints": "3.910.0", - "@smithy/core": "^3.16.1", - "@smithy/protocol-http": "^5.3.2", - "@smithy/types": "^4.7.1", + "@aws-sdk/core": "3.928.0", + "@aws-sdk/types": "3.922.0", + "@aws-sdk/util-endpoints": "3.922.0", + "@smithy/core": "^3.17.2", + "@smithy/protocol-http": "^5.3.4", + "@smithy/types": "^4.8.1", "tslib": "^2.6.2" }, "engines": { @@ -598,47 +539,47 @@ } }, "node_modules/@aws-sdk/client-cognito-identity/node_modules/@aws-sdk/nested-clients": { - "version": "3.911.0", - "resolved": "https://registry.npmjs.org/@aws-sdk/nested-clients/-/nested-clients-3.911.0.tgz", - "integrity": "sha512-lp/sXbdX/S0EYaMYPVKga0omjIUbNNdFi9IJITgKZkLC6CzspihIoHd5GIdl4esMJevtTQQfkVncXTFkf/a4YA==", + "version": "3.929.0", + "resolved": "https://registry.npmjs.org/@aws-sdk/nested-clients/-/nested-clients-3.929.0.tgz", + "integrity": "sha512-emR4LTSupxPed1ni0zVxz5msezz/gA1YYXooiW567+NyhvLgSzDvNjK7GPU1waLCj1LrRFe7NkXX1pwa5sPrpw==", "license": "Apache-2.0", "dependencies": { "@aws-crypto/sha256-browser": "5.2.0", "@aws-crypto/sha256-js": "5.2.0", - "@aws-sdk/core": "3.911.0", - "@aws-sdk/middleware-host-header": "3.910.0", - "@aws-sdk/middleware-logger": "3.910.0", - "@aws-sdk/middleware-recursion-detection": "3.910.0", - "@aws-sdk/middleware-user-agent": "3.911.0", - "@aws-sdk/region-config-resolver": "3.910.0", - "@aws-sdk/types": "3.910.0", - "@aws-sdk/util-endpoints": "3.910.0", - "@aws-sdk/util-user-agent-browser": "3.910.0", - "@aws-sdk/util-user-agent-node": "3.911.0", - "@smithy/config-resolver": "^4.3.2", - "@smithy/core": "^3.16.1", - "@smithy/fetch-http-handler": "^5.3.3", - "@smithy/hash-node": "^4.2.2", - "@smithy/invalid-dependency": "^4.2.2", - "@smithy/middleware-content-length": "^4.2.2", - "@smithy/middleware-endpoint": "^4.3.3", - "@smithy/middleware-retry": "^4.4.3", - "@smithy/middleware-serde": "^4.2.2", - "@smithy/middleware-stack": "^4.2.2", - "@smithy/node-config-provider": "^4.3.2", - "@smithy/node-http-handler": "^4.4.1", - "@smithy/protocol-http": "^5.3.2", - "@smithy/smithy-client": "^4.8.1", - "@smithy/types": "^4.7.1", - "@smithy/url-parser": "^4.2.2", + "@aws-sdk/core": "3.928.0", + "@aws-sdk/middleware-host-header": "3.922.0", + "@aws-sdk/middleware-logger": "3.922.0", + "@aws-sdk/middleware-recursion-detection": "3.922.0", + "@aws-sdk/middleware-user-agent": "3.928.0", + "@aws-sdk/region-config-resolver": "3.925.0", + "@aws-sdk/types": "3.922.0", + "@aws-sdk/util-endpoints": "3.922.0", + "@aws-sdk/util-user-agent-browser": "3.922.0", + "@aws-sdk/util-user-agent-node": "3.928.0", + "@smithy/config-resolver": "^4.4.2", + "@smithy/core": "^3.17.2", + "@smithy/fetch-http-handler": "^5.3.5", + "@smithy/hash-node": "^4.2.4", + "@smithy/invalid-dependency": "^4.2.4", + "@smithy/middleware-content-length": "^4.2.4", + "@smithy/middleware-endpoint": "^4.3.6", + "@smithy/middleware-retry": "^4.4.6", + "@smithy/middleware-serde": "^4.2.4", + "@smithy/middleware-stack": "^4.2.4", + "@smithy/node-config-provider": "^4.3.4", + "@smithy/node-http-handler": "^4.4.4", + "@smithy/protocol-http": "^5.3.4", + "@smithy/smithy-client": "^4.9.2", + "@smithy/types": "^4.8.1", + "@smithy/url-parser": "^4.2.4", "@smithy/util-base64": "^4.3.0", "@smithy/util-body-length-browser": "^4.2.0", "@smithy/util-body-length-node": "^4.2.1", - "@smithy/util-defaults-mode-browser": "^4.3.2", - "@smithy/util-defaults-mode-node": "^4.2.3", - "@smithy/util-endpoints": "^3.2.2", - "@smithy/util-middleware": "^4.2.2", - "@smithy/util-retry": "^4.2.2", + "@smithy/util-defaults-mode-browser": "^4.3.5", + "@smithy/util-defaults-mode-node": "^4.2.8", + "@smithy/util-endpoints": "^3.2.4", + "@smithy/util-middleware": "^4.2.4", + "@smithy/util-retry": "^4.2.4", "@smithy/util-utf8": "^4.2.0", "tslib": "^2.6.2" }, @@ -646,92 +587,34 @@ "node": ">=18.0.0" } }, - "node_modules/@aws-sdk/client-cognito-identity/node_modules/@aws-sdk/region-config-resolver": { - "version": "3.910.0", - "resolved": "https://registry.npmjs.org/@aws-sdk/region-config-resolver/-/region-config-resolver-3.910.0.tgz", - "integrity": "sha512-gzQAkuHI3xyG6toYnH/pju+kc190XmvnB7X84vtN57GjgdQJICt9So/BD0U6h+eSfk9VBnafkVrAzBzWMEFZVw==", - "license": "Apache-2.0", - "dependencies": { - "@aws-sdk/types": "3.910.0", - "@smithy/node-config-provider": "^4.3.2", - "@smithy/types": "^4.7.1", - "@smithy/util-config-provider": "^4.2.0", - "@smithy/util-middleware": "^4.2.2", - "tslib": "^2.6.2" - }, - "engines": { - "node": ">=18.0.0" - } - }, "node_modules/@aws-sdk/client-cognito-identity/node_modules/@aws-sdk/token-providers": { - "version": "3.911.0", - "resolved": "https://registry.npmjs.org/@aws-sdk/token-providers/-/token-providers-3.911.0.tgz", - "integrity": "sha512-O1c5F1pbEImgEe3Vr8j1gpWu69UXWj3nN3vvLGh77hcrG5dZ8I27tSP5RN4Labm8Dnji/6ia+vqSYpN8w6KN5A==", + "version": "3.929.0", + "resolved": "https://registry.npmjs.org/@aws-sdk/token-providers/-/token-providers-3.929.0.tgz", + "integrity": "sha512-78kph1R6TVJ53VXDKUmt64HMqWjTECLymJ7kLguz2QJiWh2ZdLvpyYGvaueEwwhisHYBh2qef1tGIf/PpEb8SQ==", "license": "Apache-2.0", "dependencies": { - "@aws-sdk/core": "3.911.0", - "@aws-sdk/nested-clients": "3.911.0", - "@aws-sdk/types": "3.910.0", - "@smithy/property-provider": "^4.2.2", - "@smithy/shared-ini-file-loader": "^4.3.2", - "@smithy/types": "^4.7.1", + "@aws-sdk/core": "3.928.0", + "@aws-sdk/nested-clients": "3.929.0", + "@aws-sdk/types": "3.922.0", + "@smithy/property-provider": "^4.2.4", + "@smithy/shared-ini-file-loader": "^4.3.4", + "@smithy/types": "^4.8.1", "tslib": "^2.6.2" }, "engines": { "node": ">=18.0.0" } }, - "node_modules/@aws-sdk/client-cognito-identity/node_modules/@aws-sdk/types": { - "version": "3.910.0", - "resolved": "https://registry.npmjs.org/@aws-sdk/types/-/types-3.910.0.tgz", - "integrity": "sha512-o67gL3vjf4nhfmuSUNNkit0d62QJEwwHLxucwVJkR/rw9mfUtAWsgBs8Tp16cdUbMgsyQtCQilL8RAJDoGtadQ==", - "license": "Apache-2.0", - "dependencies": { - "@smithy/types": "^4.7.1", - "tslib": "^2.6.2" - }, - "engines": { - "node": ">=18.0.0" - } - }, - "node_modules/@aws-sdk/client-cognito-identity/node_modules/@aws-sdk/util-endpoints": { - "version": "3.910.0", - "resolved": "https://registry.npmjs.org/@aws-sdk/util-endpoints/-/util-endpoints-3.910.0.tgz", - "integrity": "sha512-6XgdNe42ibP8zCQgNGDWoOF53RfEKzpU/S7Z29FTTJ7hcZv0SytC0ZNQQZSx4rfBl036YWYwJRoJMlT4AA7q9A==", - "license": "Apache-2.0", - "dependencies": { - "@aws-sdk/types": "3.910.0", - "@smithy/types": "^4.7.1", - "@smithy/url-parser": "^4.2.2", - "@smithy/util-endpoints": "^3.2.2", - "tslib": "^2.6.2" - }, - "engines": { - "node": ">=18.0.0" - } - }, - "node_modules/@aws-sdk/client-cognito-identity/node_modules/@aws-sdk/util-user-agent-browser": { - "version": "3.910.0", - "resolved": "https://registry.npmjs.org/@aws-sdk/util-user-agent-browser/-/util-user-agent-browser-3.910.0.tgz", - "integrity": "sha512-iOdrRdLZHrlINk9pezNZ82P/VxO/UmtmpaOAObUN+xplCUJu31WNM2EE/HccC8PQw6XlAudpdA6HDTGiW6yVGg==", - "license": "Apache-2.0", - "dependencies": { - "@aws-sdk/types": "3.910.0", - "@smithy/types": "^4.7.1", - "bowser": "^2.11.0", - "tslib": "^2.6.2" - } - }, "node_modules/@aws-sdk/client-cognito-identity/node_modules/@aws-sdk/util-user-agent-node": { - "version": "3.911.0", - "resolved": "https://registry.npmjs.org/@aws-sdk/util-user-agent-node/-/util-user-agent-node-3.911.0.tgz", - "integrity": "sha512-3l+f6ooLF6Z6Lz0zGi7vSKSUYn/EePPizv88eZQpEAFunBHv+CSVNPtxhxHfkm7X9tTsV4QGZRIqo3taMLolmA==", + "version": "3.928.0", + "resolved": "https://registry.npmjs.org/@aws-sdk/util-user-agent-node/-/util-user-agent-node-3.928.0.tgz", + "integrity": "sha512-s0jP67nQLLWVWfBtqTkZUkSWK5e6OI+rs+wFya2h9VLyWBFir17XSDI891s8HZKIVCEl8eBrup+hhywm4nsIAA==", "license": "Apache-2.0", "dependencies": { - "@aws-sdk/middleware-user-agent": "3.911.0", - "@aws-sdk/types": "3.910.0", - "@smithy/node-config-provider": "^4.3.2", - "@smithy/types": "^4.7.1", + "@aws-sdk/middleware-user-agent": "3.928.0", + "@aws-sdk/types": "3.922.0", + "@smithy/node-config-provider": "^4.3.4", + "@smithy/types": "^4.8.1", "tslib": "^2.6.2" }, "engines": { @@ -746,63 +629,49 @@ } } }, - "node_modules/@aws-sdk/client-cognito-identity/node_modules/@aws-sdk/xml-builder": { - "version": "3.911.0", - "resolved": "https://registry.npmjs.org/@aws-sdk/xml-builder/-/xml-builder-3.911.0.tgz", - "integrity": "sha512-/yh3oe26bZfCVGrIMRM9Z4hvvGJD+qx5tOLlydOkuBkm72aXON7D9+MucjJXTAcI8tF2Yq+JHa0478eHQOhnLg==", - "license": "Apache-2.0", - "dependencies": { - "@smithy/types": "^4.7.1", - "fast-xml-parser": "5.2.5", - "tslib": "^2.6.2" - }, - "engines": { - "node": ">=18.0.0" - } - }, "node_modules/@aws-sdk/client-sso": { - "version": "3.890.0", - "resolved": "https://registry.npmjs.org/@aws-sdk/client-sso/-/client-sso-3.890.0.tgz", - "integrity": "sha512-vefYNwh/K5V5YiJpFJfoMPNqsoiRTqD7ZnkvR0cjJdwhOIwFnSKN1vz0OMjySTQmVMcG4JKGVul82ou7ErtOhQ==", + "version": "3.925.0", + "resolved": "https://registry.npmjs.org/@aws-sdk/client-sso/-/client-sso-3.925.0.tgz", + "integrity": "sha512-ixC9CyXe/mBo1X+bzOxIIzsdBYzM+klWoHUYzwnPMrXhpDrMjj8D24R/FPqrDnhoYYXiyS4BApRLpeymsFJq2Q==", "license": "Apache-2.0", "dependencies": { "@aws-crypto/sha256-browser": "5.2.0", "@aws-crypto/sha256-js": "5.2.0", - "@aws-sdk/core": "3.890.0", - "@aws-sdk/middleware-host-header": "3.887.0", - "@aws-sdk/middleware-logger": "3.887.0", - "@aws-sdk/middleware-recursion-detection": "3.887.0", - "@aws-sdk/middleware-user-agent": "3.890.0", - "@aws-sdk/region-config-resolver": "3.890.0", - "@aws-sdk/types": "3.887.0", - "@aws-sdk/util-endpoints": "3.890.0", - "@aws-sdk/util-user-agent-browser": "3.887.0", - "@aws-sdk/util-user-agent-node": "3.890.0", - "@smithy/config-resolver": "^4.2.2", - "@smithy/core": "^3.11.0", - "@smithy/fetch-http-handler": "^5.2.1", - "@smithy/hash-node": "^4.1.1", - "@smithy/invalid-dependency": "^4.1.1", - "@smithy/middleware-content-length": "^4.1.1", - "@smithy/middleware-endpoint": "^4.2.2", - "@smithy/middleware-retry": "^4.2.2", - "@smithy/middleware-serde": "^4.1.1", - "@smithy/middleware-stack": "^4.1.1", - "@smithy/node-config-provider": "^4.2.2", - "@smithy/node-http-handler": "^4.2.1", - "@smithy/protocol-http": "^5.2.1", - "@smithy/smithy-client": "^4.6.2", - "@smithy/types": "^4.5.0", - "@smithy/url-parser": "^4.1.1", - "@smithy/util-base64": "^4.1.0", - "@smithy/util-body-length-browser": "^4.1.0", - "@smithy/util-body-length-node": "^4.1.0", - "@smithy/util-defaults-mode-browser": "^4.1.2", - "@smithy/util-defaults-mode-node": "^4.1.2", - "@smithy/util-endpoints": "^3.1.2", - "@smithy/util-middleware": "^4.1.1", - "@smithy/util-retry": "^4.1.1", - "@smithy/util-utf8": "^4.1.0", + "@aws-sdk/core": "3.922.0", + "@aws-sdk/middleware-host-header": "3.922.0", + "@aws-sdk/middleware-logger": "3.922.0", + "@aws-sdk/middleware-recursion-detection": "3.922.0", + "@aws-sdk/middleware-user-agent": "3.922.0", + "@aws-sdk/region-config-resolver": "3.925.0", + "@aws-sdk/types": "3.922.0", + "@aws-sdk/util-endpoints": "3.922.0", + "@aws-sdk/util-user-agent-browser": "3.922.0", + "@aws-sdk/util-user-agent-node": "3.922.0", + "@smithy/config-resolver": "^4.4.2", + "@smithy/core": "^3.17.2", + "@smithy/fetch-http-handler": "^5.3.5", + "@smithy/hash-node": "^4.2.4", + "@smithy/invalid-dependency": "^4.2.4", + "@smithy/middleware-content-length": "^4.2.4", + "@smithy/middleware-endpoint": "^4.3.6", + "@smithy/middleware-retry": "^4.4.6", + "@smithy/middleware-serde": "^4.2.4", + "@smithy/middleware-stack": "^4.2.4", + "@smithy/node-config-provider": "^4.3.4", + "@smithy/node-http-handler": "^4.4.4", + "@smithy/protocol-http": "^5.3.4", + "@smithy/smithy-client": "^4.9.2", + "@smithy/types": "^4.8.1", + "@smithy/url-parser": "^4.2.4", + "@smithy/util-base64": "^4.3.0", + "@smithy/util-body-length-browser": "^4.2.0", + "@smithy/util-body-length-node": "^4.2.1", + "@smithy/util-defaults-mode-browser": "^4.3.5", + "@smithy/util-defaults-mode-node": "^4.2.8", + "@smithy/util-endpoints": "^3.2.4", + "@smithy/util-middleware": "^4.2.4", + "@smithy/util-retry": "^4.2.4", + "@smithy/util-utf8": "^4.2.0", "tslib": "^2.6.2" }, "engines": { @@ -810,25 +679,23 @@ } }, "node_modules/@aws-sdk/core": { - "version": "3.890.0", - "resolved": "https://registry.npmjs.org/@aws-sdk/core/-/core-3.890.0.tgz", - "integrity": "sha512-CT+yjhytHdyKvV3Nh/fqBjnZ8+UiQZVz4NMm4LrPATgVSOdfygXHqrWxrPTVgiBtuJWkotg06DF7+pTd5ekLBw==", + "version": "3.922.0", + "resolved": "https://registry.npmjs.org/@aws-sdk/core/-/core-3.922.0.tgz", + "integrity": "sha512-EvfP4cqJfpO3L2v5vkIlTkMesPtRwWlMfsaW6Tpfm7iYfBOuTi6jx60pMDMTyJNVfh6cGmXwh/kj1jQdR+w99Q==", "license": "Apache-2.0", "dependencies": { - "@aws-sdk/types": "3.887.0", - "@aws-sdk/xml-builder": "3.887.0", - "@smithy/core": "^3.11.0", - "@smithy/node-config-provider": "^4.2.2", - "@smithy/property-provider": "^4.1.1", - "@smithy/protocol-http": "^5.2.1", - "@smithy/signature-v4": "^5.2.1", - "@smithy/smithy-client": "^4.6.2", - "@smithy/types": "^4.5.0", - "@smithy/util-base64": "^4.1.0", - "@smithy/util-body-length-browser": "^4.1.0", - "@smithy/util-middleware": "^4.1.1", - "@smithy/util-utf8": "^4.1.0", - "fast-xml-parser": "5.2.5", + "@aws-sdk/types": "3.922.0", + "@aws-sdk/xml-builder": "3.921.0", + "@smithy/core": "^3.17.2", + "@smithy/node-config-provider": "^4.3.4", + "@smithy/property-provider": "^4.2.4", + "@smithy/protocol-http": "^5.3.4", + "@smithy/signature-v4": "^5.3.4", + "@smithy/smithy-client": "^4.9.2", + "@smithy/types": "^4.8.1", + "@smithy/util-base64": "^4.3.0", + "@smithy/util-middleware": "^4.2.4", + "@smithy/util-utf8": "^4.2.0", "tslib": "^2.6.2" }, "engines": { @@ -836,28 +703,15 @@ } }, "node_modules/@aws-sdk/credential-provider-cognito-identity": { - "version": "3.913.0", - "resolved": "https://registry.npmjs.org/@aws-sdk/credential-provider-cognito-identity/-/credential-provider-cognito-identity-3.913.0.tgz", - "integrity": "sha512-AYZNpy3eEFzopzntLcrkEQQ1qyhg0V7BL8U77QdLSYtzoYvI9CqnWOGdWnNSEUp+Mpbk1VJyPzVfkDoDq5kX6g==", + "version": "3.929.0", + "resolved": "https://registry.npmjs.org/@aws-sdk/credential-provider-cognito-identity/-/credential-provider-cognito-identity-3.929.0.tgz", + "integrity": "sha512-M9h1z/Us5eJyOMijmngcfo/uBgwhIer5fk5rFI++3Bf1jqzjkF9xERW0xklbShRHKLlNfG6EOpBEhvbm8Clygw==", "license": "Apache-2.0", "dependencies": { - "@aws-sdk/client-cognito-identity": "3.913.0", - "@aws-sdk/types": "3.910.0", - "@smithy/property-provider": "^4.2.2", - "@smithy/types": "^4.7.1", - "tslib": "^2.6.2" - }, - "engines": { - "node": ">=18.0.0" - } - }, - "node_modules/@aws-sdk/credential-provider-cognito-identity/node_modules/@aws-sdk/types": { - "version": "3.910.0", - "resolved": "https://registry.npmjs.org/@aws-sdk/types/-/types-3.910.0.tgz", - "integrity": "sha512-o67gL3vjf4nhfmuSUNNkit0d62QJEwwHLxucwVJkR/rw9mfUtAWsgBs8Tp16cdUbMgsyQtCQilL8RAJDoGtadQ==", - "license": "Apache-2.0", - "dependencies": { - "@smithy/types": "^4.7.1", + "@aws-sdk/client-cognito-identity": "3.929.0", + "@aws-sdk/types": "3.922.0", + "@smithy/property-provider": "^4.2.4", + "@smithy/types": "^4.8.1", "tslib": "^2.6.2" }, "engines": { @@ -865,15 +719,15 @@ } }, "node_modules/@aws-sdk/credential-provider-env": { - "version": "3.890.0", - "resolved": "https://registry.npmjs.org/@aws-sdk/credential-provider-env/-/credential-provider-env-3.890.0.tgz", - "integrity": "sha512-BtsUa2y0Rs8phmB2ScZ5RuPqZVmxJJXjGfeiXctmLFTxTwoayIK1DdNzOWx6SRMPVc3s2RBGN4vO7T1TwN+ajA==", + "version": "3.922.0", + "resolved": "https://registry.npmjs.org/@aws-sdk/credential-provider-env/-/credential-provider-env-3.922.0.tgz", + "integrity": "sha512-WikGQpKkROJSK3D3E7odPjZ8tU7WJp5/TgGdRuZw3izsHUeH48xMv6IznafpRTmvHcjAbDQj4U3CJZNAzOK/OQ==", "license": "Apache-2.0", "dependencies": { - "@aws-sdk/core": "3.890.0", - "@aws-sdk/types": "3.887.0", - "@smithy/property-provider": "^4.1.1", - "@smithy/types": "^4.5.0", + "@aws-sdk/core": "3.922.0", + "@aws-sdk/types": "3.922.0", + "@smithy/property-provider": "^4.2.4", + "@smithy/types": "^4.8.1", "tslib": "^2.6.2" }, "engines": { @@ -881,20 +735,20 @@ } }, "node_modules/@aws-sdk/credential-provider-http": { - "version": "3.890.0", - "resolved": "https://registry.npmjs.org/@aws-sdk/credential-provider-http/-/credential-provider-http-3.890.0.tgz", - "integrity": "sha512-0sru3LVwsuGYyzbD90EC/d5HnCZ9PL4O9BA2LYT6b9XceC005Oj86uzE47LXb+mDhTAt3T6ZO0+ZcVQe0DDi8w==", + "version": "3.922.0", + "resolved": "https://registry.npmjs.org/@aws-sdk/credential-provider-http/-/credential-provider-http-3.922.0.tgz", + "integrity": "sha512-i72DgHMK7ydAEqdzU0Duqh60Q8W59EZmRJ73y0Y5oFmNOqnYsAI+UXyOoCsubp+Dkr6+yOwAn1gPt1XGE9Aowg==", "license": "Apache-2.0", "dependencies": { - "@aws-sdk/core": "3.890.0", - "@aws-sdk/types": "3.887.0", - "@smithy/fetch-http-handler": "^5.2.1", - "@smithy/node-http-handler": "^4.2.1", - "@smithy/property-provider": "^4.1.1", - "@smithy/protocol-http": "^5.2.1", - "@smithy/smithy-client": "^4.6.2", - "@smithy/types": "^4.5.0", - "@smithy/util-stream": "^4.3.1", + "@aws-sdk/core": "3.922.0", + "@aws-sdk/types": "3.922.0", + "@smithy/fetch-http-handler": "^5.3.5", + "@smithy/node-http-handler": "^4.4.4", + "@smithy/property-provider": "^4.2.4", + "@smithy/protocol-http": "^5.3.4", + "@smithy/smithy-client": "^4.9.2", + "@smithy/types": "^4.8.1", + "@smithy/util-stream": "^4.5.5", "tslib": "^2.6.2" }, "engines": { @@ -902,23 +756,23 @@ } }, "node_modules/@aws-sdk/credential-provider-ini": { - "version": "3.890.0", - "resolved": "https://registry.npmjs.org/@aws-sdk/credential-provider-ini/-/credential-provider-ini-3.890.0.tgz", - "integrity": "sha512-Mxv7ByftHKH7dE6YXu9gQ6ODXwO1iSO32t8tBrZLS3g8K1knWADIqDFv3yErQtJ8hp27IDxbAbVH/1RQdSkmhA==", + "version": "3.925.0", + "resolved": "https://registry.npmjs.org/@aws-sdk/credential-provider-ini/-/credential-provider-ini-3.925.0.tgz", + "integrity": "sha512-TOs/UkKWwXrSPolRTChpDUQjczw6KqbbanF0EzjUm3sp/AS1ThOQCKuTTdaOBZXkCIJdvRmZjF3adccE3rAoXg==", "license": "Apache-2.0", "dependencies": { - "@aws-sdk/core": "3.890.0", - "@aws-sdk/credential-provider-env": "3.890.0", - "@aws-sdk/credential-provider-http": "3.890.0", - "@aws-sdk/credential-provider-process": "3.890.0", - "@aws-sdk/credential-provider-sso": "3.890.0", - "@aws-sdk/credential-provider-web-identity": "3.890.0", - "@aws-sdk/nested-clients": "3.890.0", - "@aws-sdk/types": "3.887.0", - "@smithy/credential-provider-imds": "^4.1.2", - "@smithy/property-provider": "^4.1.1", - "@smithy/shared-ini-file-loader": "^4.2.0", - "@smithy/types": "^4.5.0", + "@aws-sdk/core": "3.922.0", + "@aws-sdk/credential-provider-env": "3.922.0", + "@aws-sdk/credential-provider-http": "3.922.0", + "@aws-sdk/credential-provider-process": "3.922.0", + "@aws-sdk/credential-provider-sso": "3.925.0", + "@aws-sdk/credential-provider-web-identity": "3.925.0", + "@aws-sdk/nested-clients": "3.925.0", + "@aws-sdk/types": "3.922.0", + "@smithy/credential-provider-imds": "^4.2.4", + "@smithy/property-provider": "^4.2.4", + "@smithy/shared-ini-file-loader": "^4.3.4", + "@smithy/types": "^4.8.1", "tslib": "^2.6.2" }, "engines": { @@ -926,22 +780,22 @@ } }, "node_modules/@aws-sdk/credential-provider-node": { - "version": "3.890.0", - "resolved": "https://registry.npmjs.org/@aws-sdk/credential-provider-node/-/credential-provider-node-3.890.0.tgz", - "integrity": "sha512-zbPz3mUtaBdch0KoH8/LouRDcYSzyT2ecyCOo5OAFVil7AxT1jvsn4vX78FlnSVpZ4mLuHY8pHTVGi235XiyBA==", + "version": "3.925.0", + "resolved": "https://registry.npmjs.org/@aws-sdk/credential-provider-node/-/credential-provider-node-3.925.0.tgz", + "integrity": "sha512-+T9mnnTY73MLkVxsk5RtzE4fv7GnMhR7iXhL/yTusf1zLfA09uxlA9VCz6tWxm5rHcO4ZN0x4hnqqDhM+DB5KQ==", "license": "Apache-2.0", "dependencies": { - "@aws-sdk/credential-provider-env": "3.890.0", - "@aws-sdk/credential-provider-http": "3.890.0", - "@aws-sdk/credential-provider-ini": "3.890.0", - "@aws-sdk/credential-provider-process": "3.890.0", - "@aws-sdk/credential-provider-sso": "3.890.0", - "@aws-sdk/credential-provider-web-identity": "3.890.0", - "@aws-sdk/types": "3.887.0", - "@smithy/credential-provider-imds": "^4.1.2", - "@smithy/property-provider": "^4.1.1", - "@smithy/shared-ini-file-loader": "^4.2.0", - "@smithy/types": "^4.5.0", + "@aws-sdk/credential-provider-env": "3.922.0", + "@aws-sdk/credential-provider-http": "3.922.0", + "@aws-sdk/credential-provider-ini": "3.925.0", + "@aws-sdk/credential-provider-process": "3.922.0", + "@aws-sdk/credential-provider-sso": "3.925.0", + "@aws-sdk/credential-provider-web-identity": "3.925.0", + "@aws-sdk/types": "3.922.0", + "@smithy/credential-provider-imds": "^4.2.4", + "@smithy/property-provider": "^4.2.4", + "@smithy/shared-ini-file-loader": "^4.3.4", + "@smithy/types": "^4.8.1", "tslib": "^2.6.2" }, "engines": { @@ -949,16 +803,16 @@ } }, "node_modules/@aws-sdk/credential-provider-process": { - "version": "3.890.0", - "resolved": "https://registry.npmjs.org/@aws-sdk/credential-provider-process/-/credential-provider-process-3.890.0.tgz", - "integrity": "sha512-dWZ54TI1Q+UerF5YOqGiCzY+x2YfHsSQvkyM3T4QDNTJpb/zjiVv327VbSOULOlI7gHKWY/G3tMz0D9nWI7YbA==", + "version": "3.922.0", + "resolved": "https://registry.npmjs.org/@aws-sdk/credential-provider-process/-/credential-provider-process-3.922.0.tgz", + "integrity": "sha512-1DZOYezT6okslpvMW7oA2q+y17CJd4fxjNFH0jtThfswdh9CtG62+wxenqO+NExttq0UMaKisrkZiVrYQBTShw==", "license": "Apache-2.0", "dependencies": { - "@aws-sdk/core": "3.890.0", - "@aws-sdk/types": "3.887.0", - "@smithy/property-provider": "^4.1.1", - "@smithy/shared-ini-file-loader": "^4.2.0", - "@smithy/types": "^4.5.0", + "@aws-sdk/core": "3.922.0", + "@aws-sdk/types": "3.922.0", + "@smithy/property-provider": "^4.2.4", + "@smithy/shared-ini-file-loader": "^4.3.4", + "@smithy/types": "^4.8.1", "tslib": "^2.6.2" }, "engines": { @@ -966,18 +820,18 @@ } }, "node_modules/@aws-sdk/credential-provider-sso": { - "version": "3.890.0", - "resolved": "https://registry.npmjs.org/@aws-sdk/credential-provider-sso/-/credential-provider-sso-3.890.0.tgz", - "integrity": "sha512-ajYCZ6f2+98w8zG/IXcQ+NhWYoI5qPUDovw+gMqMWX/jL1cmZ9PFAwj2Vyq9cbjum5RNWwPLArWytTCgJex4AQ==", + "version": "3.925.0", + "resolved": "https://registry.npmjs.org/@aws-sdk/credential-provider-sso/-/credential-provider-sso-3.925.0.tgz", + "integrity": "sha512-aZlUC6LRsOMDvIu0ifF62mTjL3KGzclWu5XBBN8eLDAYTdhqMxv3HyrqWoiHnGZnZGaVU+II+qsVoeBnGOwHow==", "license": "Apache-2.0", "dependencies": { - "@aws-sdk/client-sso": "3.890.0", - "@aws-sdk/core": "3.890.0", - "@aws-sdk/token-providers": "3.890.0", - "@aws-sdk/types": "3.887.0", - "@smithy/property-provider": "^4.1.1", - "@smithy/shared-ini-file-loader": "^4.2.0", - "@smithy/types": "^4.5.0", + "@aws-sdk/client-sso": "3.925.0", + "@aws-sdk/core": "3.922.0", + "@aws-sdk/token-providers": "3.925.0", + "@aws-sdk/types": "3.922.0", + "@smithy/property-provider": "^4.2.4", + "@smithy/shared-ini-file-loader": "^4.3.4", + "@smithy/types": "^4.8.1", "tslib": "^2.6.2" }, "engines": { @@ -985,17 +839,17 @@ } }, "node_modules/@aws-sdk/credential-provider-web-identity": { - "version": "3.890.0", - "resolved": "https://registry.npmjs.org/@aws-sdk/credential-provider-web-identity/-/credential-provider-web-identity-3.890.0.tgz", - "integrity": "sha512-qZ2Mx7BeYR1s0F/H6wePI0MAmkFswmBgrpgMCOt2S4b2IpQPnUa2JbxY3GwW2WqX3nV0KjPW08ctSLMmlq/tKA==", + "version": "3.925.0", + "resolved": "https://registry.npmjs.org/@aws-sdk/credential-provider-web-identity/-/credential-provider-web-identity-3.925.0.tgz", + "integrity": "sha512-dR34s8Sfd1wJBzIuvRFO2FCnLmYD8iwPWrdXWI2ZypFt1EQR8jeQ20mnS+UOCoR5Z0tY6wJqEgTXKl4KuZ+DUg==", "license": "Apache-2.0", "dependencies": { - "@aws-sdk/core": "3.890.0", - "@aws-sdk/nested-clients": "3.890.0", - "@aws-sdk/types": "3.887.0", - "@smithy/property-provider": "^4.1.1", - "@smithy/shared-ini-file-loader": "^4.2.0", - "@smithy/types": "^4.5.0", + "@aws-sdk/core": "3.922.0", + "@aws-sdk/nested-clients": "3.925.0", + "@aws-sdk/types": "3.922.0", + "@smithy/property-provider": "^4.2.4", + "@smithy/shared-ini-file-loader": "^4.3.4", + "@smithy/types": "^4.8.1", "tslib": "^2.6.2" }, "engines": { @@ -1003,29 +857,29 @@ } }, "node_modules/@aws-sdk/credential-providers": { - "version": "3.913.0", - "resolved": "https://registry.npmjs.org/@aws-sdk/credential-providers/-/credential-providers-3.913.0.tgz", - "integrity": "sha512-KnkvoLXGszXNV7IMLdUH2Smo+tr4MiHUp2zkkrhl+6uXdSWpEAhlARSA8OPIxgVMabUW1AWDumN7Km7z0GvnWg==", + "version": "3.929.0", + "resolved": "https://registry.npmjs.org/@aws-sdk/credential-providers/-/credential-providers-3.929.0.tgz", + "integrity": "sha512-AOzXE24dnHtJLYVByqanxVyHk0A4K4OJRX/i37NqBweuDdt+cM35zEohYck/DbflIWjyQSOT9JO5zGLfrhbQEQ==", "license": "Apache-2.0", "dependencies": { - "@aws-sdk/client-cognito-identity": "3.913.0", - "@aws-sdk/core": "3.911.0", - "@aws-sdk/credential-provider-cognito-identity": "3.913.0", - "@aws-sdk/credential-provider-env": "3.911.0", - "@aws-sdk/credential-provider-http": "3.911.0", - "@aws-sdk/credential-provider-ini": "3.913.0", - "@aws-sdk/credential-provider-node": "3.913.0", - "@aws-sdk/credential-provider-process": "3.911.0", - "@aws-sdk/credential-provider-sso": "3.911.0", - "@aws-sdk/credential-provider-web-identity": "3.911.0", - "@aws-sdk/nested-clients": "3.911.0", - "@aws-sdk/types": "3.910.0", - "@smithy/config-resolver": "^4.3.2", - "@smithy/core": "^3.16.1", - "@smithy/credential-provider-imds": "^4.2.2", - "@smithy/node-config-provider": "^4.3.2", - "@smithy/property-provider": "^4.2.2", - "@smithy/types": "^4.7.1", + "@aws-sdk/client-cognito-identity": "3.929.0", + "@aws-sdk/core": "3.928.0", + "@aws-sdk/credential-provider-cognito-identity": "3.929.0", + "@aws-sdk/credential-provider-env": "3.928.0", + "@aws-sdk/credential-provider-http": "3.928.0", + "@aws-sdk/credential-provider-ini": "3.929.0", + "@aws-sdk/credential-provider-node": "3.929.0", + "@aws-sdk/credential-provider-process": "3.928.0", + "@aws-sdk/credential-provider-sso": "3.929.0", + "@aws-sdk/credential-provider-web-identity": "3.929.0", + "@aws-sdk/nested-clients": "3.929.0", + "@aws-sdk/types": "3.922.0", + "@smithy/config-resolver": "^4.4.2", + "@smithy/core": "^3.17.2", + "@smithy/credential-provider-imds": "^4.2.4", + "@smithy/node-config-provider": "^4.3.4", + "@smithy/property-provider": "^4.2.4", + "@smithy/types": "^4.8.1", "tslib": "^2.6.2" }, "engines": { @@ -1033,47 +887,47 @@ } }, "node_modules/@aws-sdk/credential-providers/node_modules/@aws-sdk/client-sso": { - "version": "3.911.0", - "resolved": "https://registry.npmjs.org/@aws-sdk/client-sso/-/client-sso-3.911.0.tgz", - "integrity": "sha512-N9QAeMvN3D1ZyKXkQp4aUgC4wUMuA5E1HuVCkajc0bq1pnH4PIke36YlrDGGREqPlyLFrXCkws2gbL5p23vtlg==", + "version": "3.929.0", + "resolved": "https://registry.npmjs.org/@aws-sdk/client-sso/-/client-sso-3.929.0.tgz", + "integrity": "sha512-CE1T7PvN2MDRCw96BTUz2Zcnb6Lae3Dl4w3TPB5auBv2sAiIPbQegFUwT2C8teMDGCNXyndzoTvAd4wmO9AcpA==", "license": "Apache-2.0", "dependencies": { "@aws-crypto/sha256-browser": "5.2.0", "@aws-crypto/sha256-js": "5.2.0", - "@aws-sdk/core": "3.911.0", - "@aws-sdk/middleware-host-header": "3.910.0", - "@aws-sdk/middleware-logger": "3.910.0", - "@aws-sdk/middleware-recursion-detection": "3.910.0", - "@aws-sdk/middleware-user-agent": "3.911.0", - "@aws-sdk/region-config-resolver": "3.910.0", - "@aws-sdk/types": "3.910.0", - "@aws-sdk/util-endpoints": "3.910.0", - "@aws-sdk/util-user-agent-browser": "3.910.0", - "@aws-sdk/util-user-agent-node": "3.911.0", - "@smithy/config-resolver": "^4.3.2", - "@smithy/core": "^3.16.1", - "@smithy/fetch-http-handler": "^5.3.3", - "@smithy/hash-node": "^4.2.2", - "@smithy/invalid-dependency": "^4.2.2", - "@smithy/middleware-content-length": "^4.2.2", - "@smithy/middleware-endpoint": "^4.3.3", - "@smithy/middleware-retry": "^4.4.3", - "@smithy/middleware-serde": "^4.2.2", - "@smithy/middleware-stack": "^4.2.2", - "@smithy/node-config-provider": "^4.3.2", - "@smithy/node-http-handler": "^4.4.1", - "@smithy/protocol-http": "^5.3.2", - "@smithy/smithy-client": "^4.8.1", - "@smithy/types": "^4.7.1", - "@smithy/url-parser": "^4.2.2", + "@aws-sdk/core": "3.928.0", + "@aws-sdk/middleware-host-header": "3.922.0", + "@aws-sdk/middleware-logger": "3.922.0", + "@aws-sdk/middleware-recursion-detection": "3.922.0", + "@aws-sdk/middleware-user-agent": "3.928.0", + "@aws-sdk/region-config-resolver": "3.925.0", + "@aws-sdk/types": "3.922.0", + "@aws-sdk/util-endpoints": "3.922.0", + "@aws-sdk/util-user-agent-browser": "3.922.0", + "@aws-sdk/util-user-agent-node": "3.928.0", + "@smithy/config-resolver": "^4.4.2", + "@smithy/core": "^3.17.2", + "@smithy/fetch-http-handler": "^5.3.5", + "@smithy/hash-node": "^4.2.4", + "@smithy/invalid-dependency": "^4.2.4", + "@smithy/middleware-content-length": "^4.2.4", + "@smithy/middleware-endpoint": "^4.3.6", + "@smithy/middleware-retry": "^4.4.6", + "@smithy/middleware-serde": "^4.2.4", + "@smithy/middleware-stack": "^4.2.4", + "@smithy/node-config-provider": "^4.3.4", + "@smithy/node-http-handler": "^4.4.4", + "@smithy/protocol-http": "^5.3.4", + "@smithy/smithy-client": "^4.9.2", + "@smithy/types": "^4.8.1", + "@smithy/url-parser": "^4.2.4", "@smithy/util-base64": "^4.3.0", "@smithy/util-body-length-browser": "^4.2.0", "@smithy/util-body-length-node": "^4.2.1", - "@smithy/util-defaults-mode-browser": "^4.3.2", - "@smithy/util-defaults-mode-node": "^4.2.3", - "@smithy/util-endpoints": "^3.2.2", - "@smithy/util-middleware": "^4.2.2", - "@smithy/util-retry": "^4.2.2", + "@smithy/util-defaults-mode-browser": "^4.3.5", + "@smithy/util-defaults-mode-node": "^4.2.8", + "@smithy/util-endpoints": "^3.2.4", + "@smithy/util-middleware": "^4.2.4", + "@smithy/util-retry": "^4.2.4", "@smithy/util-utf8": "^4.2.0", "tslib": "^2.6.2" }, @@ -1082,22 +936,22 @@ } }, "node_modules/@aws-sdk/credential-providers/node_modules/@aws-sdk/core": { - "version": "3.911.0", - "resolved": "https://registry.npmjs.org/@aws-sdk/core/-/core-3.911.0.tgz", - "integrity": "sha512-k4QG9A+UCq/qlDJFmjozo6R0eXXfe++/KnCDMmajehIE9kh+b/5DqlGvAmbl9w4e92LOtrY6/DN3mIX1xs4sXw==", + "version": "3.928.0", + "resolved": "https://registry.npmjs.org/@aws-sdk/core/-/core-3.928.0.tgz", + "integrity": "sha512-e28J2uKjy2uub4u41dNnmzAu0AN3FGB+LRcLN2Qnwl9Oq3kIcByl5sM8ZD+vWpNG+SFUrUasBCq8cMnHxwXZ4w==", "license": "Apache-2.0", "dependencies": { - "@aws-sdk/types": "3.910.0", - "@aws-sdk/xml-builder": "3.911.0", - "@smithy/core": "^3.16.1", - "@smithy/node-config-provider": "^4.3.2", - "@smithy/property-provider": "^4.2.2", - "@smithy/protocol-http": "^5.3.2", - "@smithy/signature-v4": "^5.3.2", - "@smithy/smithy-client": "^4.8.1", - "@smithy/types": "^4.7.1", + "@aws-sdk/types": "3.922.0", + "@aws-sdk/xml-builder": "3.921.0", + "@smithy/core": "^3.17.2", + "@smithy/node-config-provider": "^4.3.4", + "@smithy/property-provider": "^4.2.4", + "@smithy/protocol-http": "^5.3.4", + "@smithy/signature-v4": "^5.3.4", + "@smithy/smithy-client": "^4.9.2", + "@smithy/types": "^4.8.1", "@smithy/util-base64": "^4.3.0", - "@smithy/util-middleware": "^4.2.2", + "@smithy/util-middleware": "^4.2.4", "@smithy/util-utf8": "^4.2.0", "tslib": "^2.6.2" }, @@ -1106,15 +960,15 @@ } }, "node_modules/@aws-sdk/credential-providers/node_modules/@aws-sdk/credential-provider-env": { - "version": "3.911.0", - "resolved": "https://registry.npmjs.org/@aws-sdk/credential-provider-env/-/credential-provider-env-3.911.0.tgz", - "integrity": "sha512-6FWRwWn3LUZzLhqBXB+TPMW2ijCWUqGICSw8bVakEdODrvbiv1RT/MVUayzFwz/ek6e6NKZn6DbSWzx07N9Hjw==", + "version": "3.928.0", + "resolved": "https://registry.npmjs.org/@aws-sdk/credential-provider-env/-/credential-provider-env-3.928.0.tgz", + "integrity": "sha512-tB8F9Ti0/NFyFVQX8UQtgRik88evtHpyT6WfXOB4bAY6lEnEHA0ubJZmk9y+aUeoE+OsGLx70dC3JUsiiCPJkQ==", "license": "Apache-2.0", "dependencies": { - "@aws-sdk/core": "3.911.0", - "@aws-sdk/types": "3.910.0", - "@smithy/property-provider": "^4.2.2", - "@smithy/types": "^4.7.1", + "@aws-sdk/core": "3.928.0", + "@aws-sdk/types": "3.922.0", + "@smithy/property-provider": "^4.2.4", + "@smithy/types": "^4.8.1", "tslib": "^2.6.2" }, "engines": { @@ -1122,20 +976,20 @@ } }, "node_modules/@aws-sdk/credential-providers/node_modules/@aws-sdk/credential-provider-http": { - "version": "3.911.0", - "resolved": "https://registry.npmjs.org/@aws-sdk/credential-provider-http/-/credential-provider-http-3.911.0.tgz", - "integrity": "sha512-xUlwKmIUW2fWP/eM3nF5u4CyLtOtyohlhGJ5jdsJokr3MrQ7w0tDITO43C9IhCn+28D5UbaiWnKw5ntkw7aVfA==", + "version": "3.928.0", + "resolved": "https://registry.npmjs.org/@aws-sdk/credential-provider-http/-/credential-provider-http-3.928.0.tgz", + "integrity": "sha512-67ynC/8UW9Y8Gn1ZZtC3OgcQDGWrJelHmkbgpmmxYUrzVhp+NINtz3wiTzrrBFhPH/8Uy6BxvhMfXhn0ptcMEQ==", "license": "Apache-2.0", "dependencies": { - "@aws-sdk/core": "3.911.0", - "@aws-sdk/types": "3.910.0", - "@smithy/fetch-http-handler": "^5.3.3", - "@smithy/node-http-handler": "^4.4.1", - "@smithy/property-provider": "^4.2.2", - "@smithy/protocol-http": "^5.3.2", - "@smithy/smithy-client": "^4.8.1", - "@smithy/types": "^4.7.1", - "@smithy/util-stream": "^4.5.2", + "@aws-sdk/core": "3.928.0", + "@aws-sdk/types": "3.922.0", + "@smithy/fetch-http-handler": "^5.3.5", + "@smithy/node-http-handler": "^4.4.4", + "@smithy/property-provider": "^4.2.4", + "@smithy/protocol-http": "^5.3.4", + "@smithy/smithy-client": "^4.9.2", + "@smithy/types": "^4.8.1", + "@smithy/util-stream": "^4.5.5", "tslib": "^2.6.2" }, "engines": { @@ -1143,23 +997,23 @@ } }, "node_modules/@aws-sdk/credential-providers/node_modules/@aws-sdk/credential-provider-ini": { - "version": "3.913.0", - "resolved": "https://registry.npmjs.org/@aws-sdk/credential-provider-ini/-/credential-provider-ini-3.913.0.tgz", - "integrity": "sha512-iR4c4NQ1OSRKQi0SxzpwD+wP1fCy+QNKtEyCajuVlD0pvmoIHdrm5THK9e+2/7/SsQDRhOXHJfLGxHapD74WJw==", + "version": "3.929.0", + "resolved": "https://registry.npmjs.org/@aws-sdk/credential-provider-ini/-/credential-provider-ini-3.929.0.tgz", + "integrity": "sha512-XIzWsJUYeS/DjggHFB53sGGjXdlN/BA6x+Y/JvLbpdkGD2yLISU34/cDPbK/O8BAQCRTCQ69VPa/1AdNgZZRQw==", "license": "Apache-2.0", "dependencies": { - "@aws-sdk/core": "3.911.0", - "@aws-sdk/credential-provider-env": "3.911.0", - "@aws-sdk/credential-provider-http": "3.911.0", - "@aws-sdk/credential-provider-process": "3.911.0", - "@aws-sdk/credential-provider-sso": "3.911.0", - "@aws-sdk/credential-provider-web-identity": "3.911.0", - "@aws-sdk/nested-clients": "3.911.0", - "@aws-sdk/types": "3.910.0", - "@smithy/credential-provider-imds": "^4.2.2", - "@smithy/property-provider": "^4.2.2", - "@smithy/shared-ini-file-loader": "^4.3.2", - "@smithy/types": "^4.7.1", + "@aws-sdk/core": "3.928.0", + "@aws-sdk/credential-provider-env": "3.928.0", + "@aws-sdk/credential-provider-http": "3.928.0", + "@aws-sdk/credential-provider-process": "3.928.0", + "@aws-sdk/credential-provider-sso": "3.929.0", + "@aws-sdk/credential-provider-web-identity": "3.929.0", + "@aws-sdk/nested-clients": "3.929.0", + "@aws-sdk/types": "3.922.0", + "@smithy/credential-provider-imds": "^4.2.4", + "@smithy/property-provider": "^4.2.4", + "@smithy/shared-ini-file-loader": "^4.3.4", + "@smithy/types": "^4.8.1", "tslib": "^2.6.2" }, "engines": { @@ -1167,22 +1021,22 @@ } }, "node_modules/@aws-sdk/credential-providers/node_modules/@aws-sdk/credential-provider-node": { - "version": "3.913.0", - "resolved": "https://registry.npmjs.org/@aws-sdk/credential-provider-node/-/credential-provider-node-3.913.0.tgz", - "integrity": "sha512-HQPLkKDxS83Q/nZKqg9bq4igWzYQeOMqhpx5LYs4u1GwsKeCsYrrfz12Iu4IHNWPp9EnGLcmdfbfYuqZGrsaSQ==", + "version": "3.929.0", + "resolved": "https://registry.npmjs.org/@aws-sdk/credential-provider-node/-/credential-provider-node-3.929.0.tgz", + "integrity": "sha512-GhNZEacpa7fh8GNggshm5S93UK25bCV5aDK8c2vfe7Y3OxBiL89Ox5GUKCu0xIOqiBdfYkI9wvWCFsQRRn7Bjw==", "license": "Apache-2.0", "dependencies": { - "@aws-sdk/credential-provider-env": "3.911.0", - "@aws-sdk/credential-provider-http": "3.911.0", - "@aws-sdk/credential-provider-ini": "3.913.0", - "@aws-sdk/credential-provider-process": "3.911.0", - "@aws-sdk/credential-provider-sso": "3.911.0", - "@aws-sdk/credential-provider-web-identity": "3.911.0", - "@aws-sdk/types": "3.910.0", - "@smithy/credential-provider-imds": "^4.2.2", - "@smithy/property-provider": "^4.2.2", - "@smithy/shared-ini-file-loader": "^4.3.2", - "@smithy/types": "^4.7.1", + "@aws-sdk/credential-provider-env": "3.928.0", + "@aws-sdk/credential-provider-http": "3.928.0", + "@aws-sdk/credential-provider-ini": "3.929.0", + "@aws-sdk/credential-provider-process": "3.928.0", + "@aws-sdk/credential-provider-sso": "3.929.0", + "@aws-sdk/credential-provider-web-identity": "3.929.0", + "@aws-sdk/types": "3.922.0", + "@smithy/credential-provider-imds": "^4.2.4", + "@smithy/property-provider": "^4.2.4", + "@smithy/shared-ini-file-loader": "^4.3.4", + "@smithy/types": "^4.8.1", "tslib": "^2.6.2" }, "engines": { @@ -1190,16 +1044,16 @@ } }, "node_modules/@aws-sdk/credential-providers/node_modules/@aws-sdk/credential-provider-process": { - "version": "3.911.0", - "resolved": "https://registry.npmjs.org/@aws-sdk/credential-provider-process/-/credential-provider-process-3.911.0.tgz", - "integrity": "sha512-mKshhV5jRQffZjbK9x7bs+uC2IsYKfpzYaBamFsEov3xtARCpOiKaIlM8gYKFEbHT2M+1R3rYYlhhl9ndVWS2g==", + "version": "3.928.0", + "resolved": "https://registry.npmjs.org/@aws-sdk/credential-provider-process/-/credential-provider-process-3.928.0.tgz", + "integrity": "sha512-XL0juran8yhqwn0mreV+NJeHJOkcRBaExsvVn9fXWW37A4gLh4esSJxM2KbSNh0t+/Bk3ehBI5sL9xad+yRDuw==", "license": "Apache-2.0", "dependencies": { - "@aws-sdk/core": "3.911.0", - "@aws-sdk/types": "3.910.0", - "@smithy/property-provider": "^4.2.2", - "@smithy/shared-ini-file-loader": "^4.3.2", - "@smithy/types": "^4.7.1", + "@aws-sdk/core": "3.928.0", + "@aws-sdk/types": "3.922.0", + "@smithy/property-provider": "^4.2.4", + "@smithy/shared-ini-file-loader": "^4.3.4", + "@smithy/types": "^4.8.1", "tslib": "^2.6.2" }, "engines": { @@ -1207,18 +1061,18 @@ } }, "node_modules/@aws-sdk/credential-providers/node_modules/@aws-sdk/credential-provider-sso": { - "version": "3.911.0", - "resolved": "https://registry.npmjs.org/@aws-sdk/credential-provider-sso/-/credential-provider-sso-3.911.0.tgz", - "integrity": "sha512-JAxd4uWe0Zc9tk6+N0cVxe9XtJVcOx6Ms0k933ZU9QbuRMH6xti/wnZxp/IvGIWIDzf5fhqiGyw5MSyDeI5b1w==", + "version": "3.929.0", + "resolved": "https://registry.npmjs.org/@aws-sdk/credential-provider-sso/-/credential-provider-sso-3.929.0.tgz", + "integrity": "sha512-aADe6cLo4+9MUOe0GnC5kUn8IduEKnTxqBlsciZOplU0/0+Rdp9rRh/e9ZBskeIXZ33eO2HG+KDAf1lvtPT7dA==", "license": "Apache-2.0", "dependencies": { - "@aws-sdk/client-sso": "3.911.0", - "@aws-sdk/core": "3.911.0", - "@aws-sdk/token-providers": "3.911.0", - "@aws-sdk/types": "3.910.0", - "@smithy/property-provider": "^4.2.2", - "@smithy/shared-ini-file-loader": "^4.3.2", - "@smithy/types": "^4.7.1", + "@aws-sdk/client-sso": "3.929.0", + "@aws-sdk/core": "3.928.0", + "@aws-sdk/token-providers": "3.929.0", + "@aws-sdk/types": "3.922.0", + "@smithy/property-provider": "^4.2.4", + "@smithy/shared-ini-file-loader": "^4.3.4", + "@smithy/types": "^4.8.1", "tslib": "^2.6.2" }, "engines": { @@ -1226,62 +1080,17 @@ } }, "node_modules/@aws-sdk/credential-providers/node_modules/@aws-sdk/credential-provider-web-identity": { - "version": "3.911.0", - "resolved": "https://registry.npmjs.org/@aws-sdk/credential-provider-web-identity/-/credential-provider-web-identity-3.911.0.tgz", - "integrity": "sha512-urIbXWWG+cm54RwwTFQuRwPH0WPsMFSDF2/H9qO2J2fKoHRURuyblFCyYG3aVKZGvFBhOizJYexf5+5w3CJKBw==", + "version": "3.929.0", + "resolved": "https://registry.npmjs.org/@aws-sdk/credential-provider-web-identity/-/credential-provider-web-identity-3.929.0.tgz", + "integrity": "sha512-L18JtW28xUZVTRHblgqZ8QTVGQfxpMLIuVYgQXrVWiY9Iz9EF4XrfZo3ywCAgqfgLi5pgg3fCxx/pe7uiMOs2w==", "license": "Apache-2.0", "dependencies": { - "@aws-sdk/core": "3.911.0", - "@aws-sdk/nested-clients": "3.911.0", - "@aws-sdk/types": "3.910.0", - "@smithy/property-provider": "^4.2.2", - "@smithy/shared-ini-file-loader": "^4.3.2", - "@smithy/types": "^4.7.1", - "tslib": "^2.6.2" - }, - "engines": { - "node": ">=18.0.0" - } - }, - "node_modules/@aws-sdk/credential-providers/node_modules/@aws-sdk/middleware-host-header": { - "version": "3.910.0", - "resolved": "https://registry.npmjs.org/@aws-sdk/middleware-host-header/-/middleware-host-header-3.910.0.tgz", - "integrity": "sha512-F9Lqeu80/aTM6S/izZ8RtwSmjfhWjIuxX61LX+/9mxJyEkgaECRxv0chsLQsLHJumkGnXRy/eIyMLBhcTPF5vg==", - "license": "Apache-2.0", - "dependencies": { - "@aws-sdk/types": "3.910.0", - "@smithy/protocol-http": "^5.3.2", - "@smithy/types": "^4.7.1", - "tslib": "^2.6.2" - }, - "engines": { - "node": ">=18.0.0" - } - }, - "node_modules/@aws-sdk/credential-providers/node_modules/@aws-sdk/middleware-logger": { - "version": "3.910.0", - "resolved": "https://registry.npmjs.org/@aws-sdk/middleware-logger/-/middleware-logger-3.910.0.tgz", - "integrity": "sha512-3LJyyfs1USvRuRDla1pGlzGRtXJBXD1zC9F+eE9Iz/V5nkmhyv52A017CvKWmYoR0DM9dzjLyPOI0BSSppEaTw==", - "license": "Apache-2.0", - "dependencies": { - "@aws-sdk/types": "3.910.0", - "@smithy/types": "^4.7.1", - "tslib": "^2.6.2" - }, - "engines": { - "node": ">=18.0.0" - } - }, - "node_modules/@aws-sdk/credential-providers/node_modules/@aws-sdk/middleware-recursion-detection": { - "version": "3.910.0", - "resolved": "https://registry.npmjs.org/@aws-sdk/middleware-recursion-detection/-/middleware-recursion-detection-3.910.0.tgz", - "integrity": "sha512-m/oLz0EoCy+WoIVBnXRXJ4AtGpdl0kPE7U+VH9TsuUzHgxY1Re/176Q1HWLBRVlz4gr++lNsgsMWEC+VnAwMpw==", - "license": "Apache-2.0", - "dependencies": { - "@aws-sdk/types": "3.910.0", - "@aws/lambda-invoke-store": "^0.0.1", - "@smithy/protocol-http": "^5.3.2", - "@smithy/types": "^4.7.1", + "@aws-sdk/core": "3.928.0", + "@aws-sdk/nested-clients": "3.929.0", + "@aws-sdk/types": "3.922.0", + "@smithy/property-provider": "^4.2.4", + "@smithy/shared-ini-file-loader": "^4.3.4", + "@smithy/types": "^4.8.1", "tslib": "^2.6.2" }, "engines": { @@ -1289,17 +1098,17 @@ } }, "node_modules/@aws-sdk/credential-providers/node_modules/@aws-sdk/middleware-user-agent": { - "version": "3.911.0", - "resolved": "https://registry.npmjs.org/@aws-sdk/middleware-user-agent/-/middleware-user-agent-3.911.0.tgz", - "integrity": "sha512-rY3LvGvgY/UI0nmt5f4DRzjEh8135A2TeHcva1bgOmVfOI4vkkGfA20sNRqerOkSO6hPbkxJapO50UJHFzmmyA==", + "version": "3.928.0", + "resolved": "https://registry.npmjs.org/@aws-sdk/middleware-user-agent/-/middleware-user-agent-3.928.0.tgz", + "integrity": "sha512-ESvcfLx5PtpdUM3ptCwb80toBTd3y5I4w5jaeOPHihiZr7jkRLE/nsaCKzlqscPs6UQ8xI0maav04JUiTskcHw==", "license": "Apache-2.0", "dependencies": { - "@aws-sdk/core": "3.911.0", - "@aws-sdk/types": "3.910.0", - "@aws-sdk/util-endpoints": "3.910.0", - "@smithy/core": "^3.16.1", - "@smithy/protocol-http": "^5.3.2", - "@smithy/types": "^4.7.1", + "@aws-sdk/core": "3.928.0", + "@aws-sdk/types": "3.922.0", + "@aws-sdk/util-endpoints": "3.922.0", + "@smithy/core": "^3.17.2", + "@smithy/protocol-http": "^5.3.4", + "@smithy/types": "^4.8.1", "tslib": "^2.6.2" }, "engines": { @@ -1307,47 +1116,47 @@ } }, "node_modules/@aws-sdk/credential-providers/node_modules/@aws-sdk/nested-clients": { - "version": "3.911.0", - "resolved": "https://registry.npmjs.org/@aws-sdk/nested-clients/-/nested-clients-3.911.0.tgz", - "integrity": "sha512-lp/sXbdX/S0EYaMYPVKga0omjIUbNNdFi9IJITgKZkLC6CzspihIoHd5GIdl4esMJevtTQQfkVncXTFkf/a4YA==", + "version": "3.929.0", + "resolved": "https://registry.npmjs.org/@aws-sdk/nested-clients/-/nested-clients-3.929.0.tgz", + "integrity": "sha512-emR4LTSupxPed1ni0zVxz5msezz/gA1YYXooiW567+NyhvLgSzDvNjK7GPU1waLCj1LrRFe7NkXX1pwa5sPrpw==", "license": "Apache-2.0", "dependencies": { "@aws-crypto/sha256-browser": "5.2.0", "@aws-crypto/sha256-js": "5.2.0", - "@aws-sdk/core": "3.911.0", - "@aws-sdk/middleware-host-header": "3.910.0", - "@aws-sdk/middleware-logger": "3.910.0", - "@aws-sdk/middleware-recursion-detection": "3.910.0", - "@aws-sdk/middleware-user-agent": "3.911.0", - "@aws-sdk/region-config-resolver": "3.910.0", - "@aws-sdk/types": "3.910.0", - "@aws-sdk/util-endpoints": "3.910.0", - "@aws-sdk/util-user-agent-browser": "3.910.0", - "@aws-sdk/util-user-agent-node": "3.911.0", - "@smithy/config-resolver": "^4.3.2", - "@smithy/core": "^3.16.1", - "@smithy/fetch-http-handler": "^5.3.3", - "@smithy/hash-node": "^4.2.2", - "@smithy/invalid-dependency": "^4.2.2", - "@smithy/middleware-content-length": "^4.2.2", - "@smithy/middleware-endpoint": "^4.3.3", - "@smithy/middleware-retry": "^4.4.3", - "@smithy/middleware-serde": "^4.2.2", - "@smithy/middleware-stack": "^4.2.2", - "@smithy/node-config-provider": "^4.3.2", - "@smithy/node-http-handler": "^4.4.1", - "@smithy/protocol-http": "^5.3.2", - "@smithy/smithy-client": "^4.8.1", - "@smithy/types": "^4.7.1", - "@smithy/url-parser": "^4.2.2", + "@aws-sdk/core": "3.928.0", + "@aws-sdk/middleware-host-header": "3.922.0", + "@aws-sdk/middleware-logger": "3.922.0", + "@aws-sdk/middleware-recursion-detection": "3.922.0", + "@aws-sdk/middleware-user-agent": "3.928.0", + "@aws-sdk/region-config-resolver": "3.925.0", + "@aws-sdk/types": "3.922.0", + "@aws-sdk/util-endpoints": "3.922.0", + "@aws-sdk/util-user-agent-browser": "3.922.0", + "@aws-sdk/util-user-agent-node": "3.928.0", + "@smithy/config-resolver": "^4.4.2", + "@smithy/core": "^3.17.2", + "@smithy/fetch-http-handler": "^5.3.5", + "@smithy/hash-node": "^4.2.4", + "@smithy/invalid-dependency": "^4.2.4", + "@smithy/middleware-content-length": "^4.2.4", + "@smithy/middleware-endpoint": "^4.3.6", + "@smithy/middleware-retry": "^4.4.6", + "@smithy/middleware-serde": "^4.2.4", + "@smithy/middleware-stack": "^4.2.4", + "@smithy/node-config-provider": "^4.3.4", + "@smithy/node-http-handler": "^4.4.4", + "@smithy/protocol-http": "^5.3.4", + "@smithy/smithy-client": "^4.9.2", + "@smithy/types": "^4.8.1", + "@smithy/url-parser": "^4.2.4", "@smithy/util-base64": "^4.3.0", "@smithy/util-body-length-browser": "^4.2.0", "@smithy/util-body-length-node": "^4.2.1", - "@smithy/util-defaults-mode-browser": "^4.3.2", - "@smithy/util-defaults-mode-node": "^4.2.3", - "@smithy/util-endpoints": "^3.2.2", - "@smithy/util-middleware": "^4.2.2", - "@smithy/util-retry": "^4.2.2", + "@smithy/util-defaults-mode-browser": "^4.3.5", + "@smithy/util-defaults-mode-node": "^4.2.8", + "@smithy/util-endpoints": "^3.2.4", + "@smithy/util-middleware": "^4.2.4", + "@smithy/util-retry": "^4.2.4", "@smithy/util-utf8": "^4.2.0", "tslib": "^2.6.2" }, @@ -1355,92 +1164,34 @@ "node": ">=18.0.0" } }, - "node_modules/@aws-sdk/credential-providers/node_modules/@aws-sdk/region-config-resolver": { - "version": "3.910.0", - "resolved": "https://registry.npmjs.org/@aws-sdk/region-config-resolver/-/region-config-resolver-3.910.0.tgz", - "integrity": "sha512-gzQAkuHI3xyG6toYnH/pju+kc190XmvnB7X84vtN57GjgdQJICt9So/BD0U6h+eSfk9VBnafkVrAzBzWMEFZVw==", - "license": "Apache-2.0", - "dependencies": { - "@aws-sdk/types": "3.910.0", - "@smithy/node-config-provider": "^4.3.2", - "@smithy/types": "^4.7.1", - "@smithy/util-config-provider": "^4.2.0", - "@smithy/util-middleware": "^4.2.2", - "tslib": "^2.6.2" - }, - "engines": { - "node": ">=18.0.0" - } - }, "node_modules/@aws-sdk/credential-providers/node_modules/@aws-sdk/token-providers": { - "version": "3.911.0", - "resolved": "https://registry.npmjs.org/@aws-sdk/token-providers/-/token-providers-3.911.0.tgz", - "integrity": "sha512-O1c5F1pbEImgEe3Vr8j1gpWu69UXWj3nN3vvLGh77hcrG5dZ8I27tSP5RN4Labm8Dnji/6ia+vqSYpN8w6KN5A==", + "version": "3.929.0", + "resolved": "https://registry.npmjs.org/@aws-sdk/token-providers/-/token-providers-3.929.0.tgz", + "integrity": "sha512-78kph1R6TVJ53VXDKUmt64HMqWjTECLymJ7kLguz2QJiWh2ZdLvpyYGvaueEwwhisHYBh2qef1tGIf/PpEb8SQ==", "license": "Apache-2.0", "dependencies": { - "@aws-sdk/core": "3.911.0", - "@aws-sdk/nested-clients": "3.911.0", - "@aws-sdk/types": "3.910.0", - "@smithy/property-provider": "^4.2.2", - "@smithy/shared-ini-file-loader": "^4.3.2", - "@smithy/types": "^4.7.1", + "@aws-sdk/core": "3.928.0", + "@aws-sdk/nested-clients": "3.929.0", + "@aws-sdk/types": "3.922.0", + "@smithy/property-provider": "^4.2.4", + "@smithy/shared-ini-file-loader": "^4.3.4", + "@smithy/types": "^4.8.1", "tslib": "^2.6.2" }, "engines": { "node": ">=18.0.0" } }, - "node_modules/@aws-sdk/credential-providers/node_modules/@aws-sdk/types": { - "version": "3.910.0", - "resolved": "https://registry.npmjs.org/@aws-sdk/types/-/types-3.910.0.tgz", - "integrity": "sha512-o67gL3vjf4nhfmuSUNNkit0d62QJEwwHLxucwVJkR/rw9mfUtAWsgBs8Tp16cdUbMgsyQtCQilL8RAJDoGtadQ==", - "license": "Apache-2.0", - "dependencies": { - "@smithy/types": "^4.7.1", - "tslib": "^2.6.2" - }, - "engines": { - "node": ">=18.0.0" - } - }, - "node_modules/@aws-sdk/credential-providers/node_modules/@aws-sdk/util-endpoints": { - "version": "3.910.0", - "resolved": "https://registry.npmjs.org/@aws-sdk/util-endpoints/-/util-endpoints-3.910.0.tgz", - "integrity": "sha512-6XgdNe42ibP8zCQgNGDWoOF53RfEKzpU/S7Z29FTTJ7hcZv0SytC0ZNQQZSx4rfBl036YWYwJRoJMlT4AA7q9A==", - "license": "Apache-2.0", - "dependencies": { - "@aws-sdk/types": "3.910.0", - "@smithy/types": "^4.7.1", - "@smithy/url-parser": "^4.2.2", - "@smithy/util-endpoints": "^3.2.2", - "tslib": "^2.6.2" - }, - "engines": { - "node": ">=18.0.0" - } - }, - "node_modules/@aws-sdk/credential-providers/node_modules/@aws-sdk/util-user-agent-browser": { - "version": "3.910.0", - "resolved": "https://registry.npmjs.org/@aws-sdk/util-user-agent-browser/-/util-user-agent-browser-3.910.0.tgz", - "integrity": "sha512-iOdrRdLZHrlINk9pezNZ82P/VxO/UmtmpaOAObUN+xplCUJu31WNM2EE/HccC8PQw6XlAudpdA6HDTGiW6yVGg==", - "license": "Apache-2.0", - "dependencies": { - "@aws-sdk/types": "3.910.0", - "@smithy/types": "^4.7.1", - "bowser": "^2.11.0", - "tslib": "^2.6.2" - } - }, "node_modules/@aws-sdk/credential-providers/node_modules/@aws-sdk/util-user-agent-node": { - "version": "3.911.0", - "resolved": "https://registry.npmjs.org/@aws-sdk/util-user-agent-node/-/util-user-agent-node-3.911.0.tgz", - "integrity": "sha512-3l+f6ooLF6Z6Lz0zGi7vSKSUYn/EePPizv88eZQpEAFunBHv+CSVNPtxhxHfkm7X9tTsV4QGZRIqo3taMLolmA==", + "version": "3.928.0", + "resolved": "https://registry.npmjs.org/@aws-sdk/util-user-agent-node/-/util-user-agent-node-3.928.0.tgz", + "integrity": "sha512-s0jP67nQLLWVWfBtqTkZUkSWK5e6OI+rs+wFya2h9VLyWBFir17XSDI891s8HZKIVCEl8eBrup+hhywm4nsIAA==", "license": "Apache-2.0", "dependencies": { - "@aws-sdk/middleware-user-agent": "3.911.0", - "@aws-sdk/types": "3.910.0", - "@smithy/node-config-provider": "^4.3.2", - "@smithy/types": "^4.7.1", + "@aws-sdk/middleware-user-agent": "3.928.0", + "@aws-sdk/types": "3.922.0", + "@smithy/node-config-provider": "^4.3.4", + "@smithy/types": "^4.8.1", "tslib": "^2.6.2" }, "engines": { @@ -1455,29 +1206,15 @@ } } }, - "node_modules/@aws-sdk/credential-providers/node_modules/@aws-sdk/xml-builder": { - "version": "3.911.0", - "resolved": "https://registry.npmjs.org/@aws-sdk/xml-builder/-/xml-builder-3.911.0.tgz", - "integrity": "sha512-/yh3oe26bZfCVGrIMRM9Z4hvvGJD+qx5tOLlydOkuBkm72aXON7D9+MucjJXTAcI8tF2Yq+JHa0478eHQOhnLg==", - "license": "Apache-2.0", - "dependencies": { - "@smithy/types": "^4.7.1", - "fast-xml-parser": "5.2.5", - "tslib": "^2.6.2" - }, - "engines": { - "node": ">=18.0.0" - } - }, "node_modules/@aws-sdk/eventstream-handler-node": { - "version": "3.890.0", - "resolved": "https://registry.npmjs.org/@aws-sdk/eventstream-handler-node/-/eventstream-handler-node-3.890.0.tgz", - "integrity": "sha512-Jl58RLWlNgbmnk6r7kQRzXaUdDebcd3ZBRfM4sHJmd5TNWViqfdh8xYlhZFfSjSNw6eAPOfaZbAJWkQCNWJNqw==", + "version": "3.922.0", + "resolved": "https://registry.npmjs.org/@aws-sdk/eventstream-handler-node/-/eventstream-handler-node-3.922.0.tgz", + "integrity": "sha512-DTKHeH1Bk17zSdoa5qXPGwCmZXuhQReqXOVW2/jIVX8NGVvnraH7WppGPlQxBjFtwSSwVTgzH2NVPgediQphNA==", "license": "Apache-2.0", "dependencies": { - "@aws-sdk/types": "3.887.0", - "@smithy/eventstream-codec": "^4.1.1", - "@smithy/types": "^4.5.0", + "@aws-sdk/types": "3.922.0", + "@smithy/eventstream-codec": "^4.2.4", + "@smithy/types": "^4.8.1", "tslib": "^2.6.2" }, "engines": { @@ -1485,14 +1222,14 @@ } }, "node_modules/@aws-sdk/middleware-eventstream": { - "version": "3.887.0", - "resolved": "https://registry.npmjs.org/@aws-sdk/middleware-eventstream/-/middleware-eventstream-3.887.0.tgz", - "integrity": "sha512-OeZyhx9O5u3aYmkKspByzuUes2AUbbZjr52SM2KmP/9qRBuQ20rUMir4d6iYtN0Ha24OOkhDOlEtEjkEN546rQ==", + "version": "3.922.0", + "resolved": "https://registry.npmjs.org/@aws-sdk/middleware-eventstream/-/middleware-eventstream-3.922.0.tgz", + "integrity": "sha512-qDHi3NxIZCOh10aKcDPz58qlt7xtTXTMHGv7N2uVWeb7gAhk/KGerHLukY6SFAID5FJ246Le14h2blQOHi9U2Q==", "license": "Apache-2.0", "dependencies": { - "@aws-sdk/types": "3.887.0", - "@smithy/protocol-http": "^5.2.1", - "@smithy/types": "^4.5.0", + "@aws-sdk/types": "3.922.0", + "@smithy/protocol-http": "^5.3.4", + "@smithy/types": "^4.8.1", "tslib": "^2.6.2" }, "engines": { @@ -1500,14 +1237,14 @@ } }, "node_modules/@aws-sdk/middleware-host-header": { - "version": "3.887.0", - "resolved": "https://registry.npmjs.org/@aws-sdk/middleware-host-header/-/middleware-host-header-3.887.0.tgz", - "integrity": "sha512-ulzqXv6NNqdu/kr0sgBYupWmahISHY+azpJidtK6ZwQIC+vBUk9NdZeqQpy7KVhIk2xd4+5Oq9rxapPwPI21CA==", + "version": "3.922.0", + "resolved": "https://registry.npmjs.org/@aws-sdk/middleware-host-header/-/middleware-host-header-3.922.0.tgz", + "integrity": "sha512-HPquFgBnq/KqKRVkiuCt97PmWbKtxQ5iUNLEc6FIviqOoZTmaYG3EDsIbuFBz9C4RHJU4FKLmHL2bL3FEId6AA==", "license": "Apache-2.0", "dependencies": { - "@aws-sdk/types": "3.887.0", - "@smithy/protocol-http": "^5.2.1", - "@smithy/types": "^4.5.0", + "@aws-sdk/types": "3.922.0", + "@smithy/protocol-http": "^5.3.4", + "@smithy/types": "^4.8.1", "tslib": "^2.6.2" }, "engines": { @@ -1515,13 +1252,13 @@ } }, "node_modules/@aws-sdk/middleware-logger": { - "version": "3.887.0", - "resolved": "https://registry.npmjs.org/@aws-sdk/middleware-logger/-/middleware-logger-3.887.0.tgz", - "integrity": "sha512-YbbgLI6jKp2qSoAcHnXrQ5jcuc5EYAmGLVFgMVdk8dfCfJLfGGSaOLxF4CXC7QYhO50s+mPPkhBYejCik02Kug==", + "version": "3.922.0", + "resolved": "https://registry.npmjs.org/@aws-sdk/middleware-logger/-/middleware-logger-3.922.0.tgz", + "integrity": "sha512-AkvYO6b80FBm5/kk2E636zNNcNgjztNNUxpqVx+huyGn9ZqGTzS4kLqW2hO6CBe5APzVtPCtiQsXL24nzuOlAg==", "license": "Apache-2.0", "dependencies": { - "@aws-sdk/types": "3.887.0", - "@smithy/types": "^4.5.0", + "@aws-sdk/types": "3.922.0", + "@smithy/types": "^4.8.1", "tslib": "^2.6.2" }, "engines": { @@ -1529,33 +1266,42 @@ } }, "node_modules/@aws-sdk/middleware-recursion-detection": { - "version": "3.887.0", - "resolved": "https://registry.npmjs.org/@aws-sdk/middleware-recursion-detection/-/middleware-recursion-detection-3.887.0.tgz", - "integrity": "sha512-tjrUXFtQnFLo+qwMveq5faxP5MQakoLArXtqieHphSqZTXm21wDJM73hgT4/PQQGTwgYjDKqnqsE1hvk0hcfDw==", + "version": "3.922.0", + "resolved": "https://registry.npmjs.org/@aws-sdk/middleware-recursion-detection/-/middleware-recursion-detection-3.922.0.tgz", + "integrity": "sha512-TtSCEDonV/9R0VhVlCpxZbp/9sxQvTTRKzIf8LxW3uXpby6Wl8IxEciBJlxmSkoqxh542WRcko7NYODlvL/gDA==", "license": "Apache-2.0", "dependencies": { - "@aws-sdk/types": "3.887.0", - "@aws/lambda-invoke-store": "^0.0.1", - "@smithy/protocol-http": "^5.2.1", - "@smithy/types": "^4.5.0", + "@aws-sdk/types": "3.922.0", + "@aws/lambda-invoke-store": "^0.1.1", + "@smithy/protocol-http": "^5.3.4", + "@smithy/types": "^4.8.1", "tslib": "^2.6.2" }, "engines": { "node": ">=18.0.0" } }, + "node_modules/@aws-sdk/middleware-recursion-detection/node_modules/@aws/lambda-invoke-store": { + "version": "0.1.1", + "resolved": "https://registry.npmjs.org/@aws/lambda-invoke-store/-/lambda-invoke-store-0.1.1.tgz", + "integrity": "sha512-RcLam17LdlbSOSp9VxmUu1eI6Mwxp+OwhD2QhiSNmNCzoDb0EeUXTD2n/WbcnrAYMGlmf05th6QYq23VqvJqpA==", + "license": "Apache-2.0", + "engines": { + "node": ">=18.0.0" + } + }, "node_modules/@aws-sdk/middleware-user-agent": { - "version": "3.890.0", - "resolved": "https://registry.npmjs.org/@aws-sdk/middleware-user-agent/-/middleware-user-agent-3.890.0.tgz", - "integrity": "sha512-x4+gLrOFGN7PnfxCaQbs3QEF8bMQE4CVxcOp066UEJqr2Pn4yB12Q3O+YntOtESK5NcTxIh7JlhGss95EHzNng==", + "version": "3.922.0", + "resolved": "https://registry.npmjs.org/@aws-sdk/middleware-user-agent/-/middleware-user-agent-3.922.0.tgz", + "integrity": "sha512-N4Qx/9KP3oVQBJOrSghhz8iZFtUC2NNeSZt88hpPhbqAEAtuX8aD8OzVcpnAtrwWqy82Yd2YTxlkqMGkgqnBsQ==", "license": "Apache-2.0", "dependencies": { - "@aws-sdk/core": "3.890.0", - "@aws-sdk/types": "3.887.0", - "@aws-sdk/util-endpoints": "3.890.0", - "@smithy/core": "^3.11.0", - "@smithy/protocol-http": "^5.2.1", - "@smithy/types": "^4.5.0", + "@aws-sdk/core": "3.922.0", + "@aws-sdk/types": "3.922.0", + "@aws-sdk/util-endpoints": "3.922.0", + "@smithy/core": "^3.17.2", + "@smithy/protocol-http": "^5.3.4", + "@smithy/types": "^4.8.1", "tslib": "^2.6.2" }, "engines": { @@ -1563,20 +1309,20 @@ } }, "node_modules/@aws-sdk/middleware-websocket": { - "version": "3.890.0", - "resolved": "https://registry.npmjs.org/@aws-sdk/middleware-websocket/-/middleware-websocket-3.890.0.tgz", - "integrity": "sha512-t6iJhlh7S0lAWpC10t+7QAn7jlNfNweXJgb/rTtp9FMh/DA2+7o0zTHllFaZ1GsKuEbCU/pRDKvzvnOeTrL5WA==", + "version": "3.922.0", + "resolved": "https://registry.npmjs.org/@aws-sdk/middleware-websocket/-/middleware-websocket-3.922.0.tgz", + "integrity": "sha512-cBGDpMORc2lkpsSWJJkXes1lduPeUo58TIjMuC66TK134o8Wc+EsSutInxZXAT031BVWoyddhW9dBZJ1ybQQ2Q==", "license": "Apache-2.0", "dependencies": { - "@aws-sdk/types": "3.887.0", - "@aws-sdk/util-format-url": "3.887.0", - "@smithy/eventstream-codec": "^4.1.1", - "@smithy/eventstream-serde-browser": "^4.1.1", - "@smithy/fetch-http-handler": "^5.2.1", - "@smithy/protocol-http": "^5.2.1", - "@smithy/signature-v4": "^5.2.1", - "@smithy/types": "^4.5.0", - "@smithy/util-hex-encoding": "^4.1.0", + "@aws-sdk/types": "3.922.0", + "@aws-sdk/util-format-url": "3.922.0", + "@smithy/eventstream-codec": "^4.2.4", + "@smithy/eventstream-serde-browser": "^4.2.4", + "@smithy/fetch-http-handler": "^5.3.5", + "@smithy/protocol-http": "^5.3.4", + "@smithy/signature-v4": "^5.3.4", + "@smithy/types": "^4.8.1", + "@smithy/util-hex-encoding": "^4.2.0", "tslib": "^2.6.2" }, "engines": { @@ -1584,48 +1330,48 @@ } }, "node_modules/@aws-sdk/nested-clients": { - "version": "3.890.0", - "resolved": "https://registry.npmjs.org/@aws-sdk/nested-clients/-/nested-clients-3.890.0.tgz", - "integrity": "sha512-D5qVNd+qlqdL8duJShzffAqPllGRA4tG7n/GEpL13eNfHChPvGkkUFBMrxSgCAETaTna13G6kq+dMO+SAdbm1A==", + "version": "3.925.0", + "resolved": "https://registry.npmjs.org/@aws-sdk/nested-clients/-/nested-clients-3.925.0.tgz", + "integrity": "sha512-Fc8QhH+1YzGQb5aWQUX6gRnKSzUZ9p3p/muqXIgYBL8RSd5O6hSPhDTyrOWE247zFlOjVlAlEnoTMJKarH0cIA==", "license": "Apache-2.0", "dependencies": { "@aws-crypto/sha256-browser": "5.2.0", "@aws-crypto/sha256-js": "5.2.0", - "@aws-sdk/core": "3.890.0", - "@aws-sdk/middleware-host-header": "3.887.0", - "@aws-sdk/middleware-logger": "3.887.0", - "@aws-sdk/middleware-recursion-detection": "3.887.0", - "@aws-sdk/middleware-user-agent": "3.890.0", - "@aws-sdk/region-config-resolver": "3.890.0", - "@aws-sdk/types": "3.887.0", - "@aws-sdk/util-endpoints": "3.890.0", - "@aws-sdk/util-user-agent-browser": "3.887.0", - "@aws-sdk/util-user-agent-node": "3.890.0", - "@smithy/config-resolver": "^4.2.2", - "@smithy/core": "^3.11.0", - "@smithy/fetch-http-handler": "^5.2.1", - "@smithy/hash-node": "^4.1.1", - "@smithy/invalid-dependency": "^4.1.1", - "@smithy/middleware-content-length": "^4.1.1", - "@smithy/middleware-endpoint": "^4.2.2", - "@smithy/middleware-retry": "^4.2.2", - "@smithy/middleware-serde": "^4.1.1", - "@smithy/middleware-stack": "^4.1.1", - "@smithy/node-config-provider": "^4.2.2", - "@smithy/node-http-handler": "^4.2.1", - "@smithy/protocol-http": "^5.2.1", - "@smithy/smithy-client": "^4.6.2", - "@smithy/types": "^4.5.0", - "@smithy/url-parser": "^4.1.1", - "@smithy/util-base64": "^4.1.0", - "@smithy/util-body-length-browser": "^4.1.0", - "@smithy/util-body-length-node": "^4.1.0", - "@smithy/util-defaults-mode-browser": "^4.1.2", - "@smithy/util-defaults-mode-node": "^4.1.2", - "@smithy/util-endpoints": "^3.1.2", - "@smithy/util-middleware": "^4.1.1", - "@smithy/util-retry": "^4.1.1", - "@smithy/util-utf8": "^4.1.0", + "@aws-sdk/core": "3.922.0", + "@aws-sdk/middleware-host-header": "3.922.0", + "@aws-sdk/middleware-logger": "3.922.0", + "@aws-sdk/middleware-recursion-detection": "3.922.0", + "@aws-sdk/middleware-user-agent": "3.922.0", + "@aws-sdk/region-config-resolver": "3.925.0", + "@aws-sdk/types": "3.922.0", + "@aws-sdk/util-endpoints": "3.922.0", + "@aws-sdk/util-user-agent-browser": "3.922.0", + "@aws-sdk/util-user-agent-node": "3.922.0", + "@smithy/config-resolver": "^4.4.2", + "@smithy/core": "^3.17.2", + "@smithy/fetch-http-handler": "^5.3.5", + "@smithy/hash-node": "^4.2.4", + "@smithy/invalid-dependency": "^4.2.4", + "@smithy/middleware-content-length": "^4.2.4", + "@smithy/middleware-endpoint": "^4.3.6", + "@smithy/middleware-retry": "^4.4.6", + "@smithy/middleware-serde": "^4.2.4", + "@smithy/middleware-stack": "^4.2.4", + "@smithy/node-config-provider": "^4.3.4", + "@smithy/node-http-handler": "^4.4.4", + "@smithy/protocol-http": "^5.3.4", + "@smithy/smithy-client": "^4.9.2", + "@smithy/types": "^4.8.1", + "@smithy/url-parser": "^4.2.4", + "@smithy/util-base64": "^4.3.0", + "@smithy/util-body-length-browser": "^4.2.0", + "@smithy/util-body-length-node": "^4.2.1", + "@smithy/util-defaults-mode-browser": "^4.3.5", + "@smithy/util-defaults-mode-node": "^4.2.8", + "@smithy/util-endpoints": "^3.2.4", + "@smithy/util-middleware": "^4.2.4", + "@smithy/util-retry": "^4.2.4", + "@smithy/util-utf8": "^4.2.0", "tslib": "^2.6.2" }, "engines": { @@ -1633,16 +1379,15 @@ } }, "node_modules/@aws-sdk/region-config-resolver": { - "version": "3.890.0", - "resolved": "https://registry.npmjs.org/@aws-sdk/region-config-resolver/-/region-config-resolver-3.890.0.tgz", - "integrity": "sha512-VfdT+tkF9groRYNzKvQCsCGDbOQdeBdzyB1d6hWiq22u13UafMIoskJ1ec0i0H1X29oT6mjTitfnvPq1UiKwzQ==", + "version": "3.925.0", + "resolved": "https://registry.npmjs.org/@aws-sdk/region-config-resolver/-/region-config-resolver-3.925.0.tgz", + "integrity": "sha512-FOthcdF9oDb1pfQBRCfWPZhJZT5wqpvdAS5aJzB1WDZ+6EuaAhLzLH/fW1slDunIqq1PSQGG3uSnVglVVOvPHQ==", "license": "Apache-2.0", "dependencies": { - "@aws-sdk/types": "3.887.0", - "@smithy/node-config-provider": "^4.2.2", - "@smithy/types": "^4.5.0", - "@smithy/util-config-provider": "^4.1.0", - "@smithy/util-middleware": "^4.1.1", + "@aws-sdk/types": "3.922.0", + "@smithy/config-resolver": "^4.4.2", + "@smithy/node-config-provider": "^4.3.4", + "@smithy/types": "^4.8.1", "tslib": "^2.6.2" }, "engines": { @@ -1650,17 +1395,17 @@ } }, "node_modules/@aws-sdk/token-providers": { - "version": "3.890.0", - "resolved": "https://registry.npmjs.org/@aws-sdk/token-providers/-/token-providers-3.890.0.tgz", - "integrity": "sha512-+pK/0iQEpPmnztbAw0NNmb+B5pPy8VLu+Ab4SJLgVp41RE9NO13VQtrzUbh61TTAVMrzqWlLQ2qmAl2Fk4VNgw==", + "version": "3.925.0", + "resolved": "https://registry.npmjs.org/@aws-sdk/token-providers/-/token-providers-3.925.0.tgz", + "integrity": "sha512-F4Oibka1W5YYDeL+rGt/Hg3NLjOzrJdmuZOE0OFQt/U6dnJwYmYi2gFqduvZnZcD1agNm37mh7/GUq1zvKS6ig==", "license": "Apache-2.0", "dependencies": { - "@aws-sdk/core": "3.890.0", - "@aws-sdk/nested-clients": "3.890.0", - "@aws-sdk/types": "3.887.0", - "@smithy/property-provider": "^4.1.1", - "@smithy/shared-ini-file-loader": "^4.2.0", - "@smithy/types": "^4.5.0", + "@aws-sdk/core": "3.922.0", + "@aws-sdk/nested-clients": "3.925.0", + "@aws-sdk/types": "3.922.0", + "@smithy/property-provider": "^4.2.4", + "@smithy/shared-ini-file-loader": "^4.3.4", + "@smithy/types": "^4.8.1", "tslib": "^2.6.2" }, "engines": { @@ -1668,12 +1413,12 @@ } }, "node_modules/@aws-sdk/types": { - "version": "3.887.0", - "resolved": "https://registry.npmjs.org/@aws-sdk/types/-/types-3.887.0.tgz", - "integrity": "sha512-fmTEJpUhsPsovQ12vZSpVTEP/IaRoJAMBGQXlQNjtCpkBp6Iq3KQDa/HDaPINE+3xxo6XvTdtibsNOd5zJLV9A==", + "version": "3.922.0", + "resolved": "https://registry.npmjs.org/@aws-sdk/types/-/types-3.922.0.tgz", + "integrity": "sha512-eLA6XjVobAUAMivvM7DBL79mnHyrm+32TkXNWZua5mnxF+6kQCfblKKJvxMZLGosO53/Ex46ogim8IY5Nbqv2w==", "license": "Apache-2.0", "dependencies": { - "@smithy/types": "^4.5.0", + "@smithy/types": "^4.8.1", "tslib": "^2.6.2" }, "engines": { @@ -1681,15 +1426,15 @@ } }, "node_modules/@aws-sdk/util-endpoints": { - "version": "3.890.0", - "resolved": "https://registry.npmjs.org/@aws-sdk/util-endpoints/-/util-endpoints-3.890.0.tgz", - "integrity": "sha512-nJ8v1x9ZQKzMRK4dS4oefOMIHqb6cguctTcx1RB9iTaFOR5pP7bvq+D4mvNZ6vBxiHg1dQGBUUgl5XJmdR7atQ==", + "version": "3.922.0", + "resolved": "https://registry.npmjs.org/@aws-sdk/util-endpoints/-/util-endpoints-3.922.0.tgz", + "integrity": "sha512-4ZdQCSuNMY8HMlR1YN4MRDdXuKd+uQTeKIr5/pIM+g3TjInZoj8imvXudjcrFGA63UF3t92YVTkBq88mg58RXQ==", "license": "Apache-2.0", "dependencies": { - "@aws-sdk/types": "3.887.0", - "@smithy/types": "^4.5.0", - "@smithy/url-parser": "^4.1.1", - "@smithy/util-endpoints": "^3.1.2", + "@aws-sdk/types": "3.922.0", + "@smithy/types": "^4.8.1", + "@smithy/url-parser": "^4.2.4", + "@smithy/util-endpoints": "^3.2.4", "tslib": "^2.6.2" }, "engines": { @@ -1697,14 +1442,14 @@ } }, "node_modules/@aws-sdk/util-format-url": { - "version": "3.887.0", - "resolved": "https://registry.npmjs.org/@aws-sdk/util-format-url/-/util-format-url-3.887.0.tgz", - "integrity": "sha512-ABDSP6KsrdD+JC7qwMqUpLXqPidvfgT+Q+W8sGGuk/IBy7smgZDOdYSZLE4VBbQpH3N/zSJuslAWhL2x37Qwww==", + "version": "3.922.0", + "resolved": "https://registry.npmjs.org/@aws-sdk/util-format-url/-/util-format-url-3.922.0.tgz", + "integrity": "sha512-UYLWPvZEd6TYilNkrQrIeXh2bXZsY3ighYErSEjD24f3JQhg0XdXoR/QHIE8licHu2qFrTRM6yi9LH1GY6X0cg==", "license": "Apache-2.0", "dependencies": { - "@aws-sdk/types": "3.887.0", - "@smithy/querystring-builder": "^4.1.1", - "@smithy/types": "^4.5.0", + "@aws-sdk/types": "3.922.0", + "@smithy/querystring-builder": "^4.2.4", + "@smithy/types": "^4.8.1", "tslib": "^2.6.2" }, "engines": { @@ -1724,27 +1469,27 @@ } }, "node_modules/@aws-sdk/util-user-agent-browser": { - "version": "3.887.0", - "resolved": "https://registry.npmjs.org/@aws-sdk/util-user-agent-browser/-/util-user-agent-browser-3.887.0.tgz", - "integrity": "sha512-X71UmVsYc6ZTH4KU6hA5urOzYowSXc3qvroagJNLJYU1ilgZ529lP4J9XOYfEvTXkLR1hPFSRxa43SrwgelMjA==", + "version": "3.922.0", + "resolved": "https://registry.npmjs.org/@aws-sdk/util-user-agent-browser/-/util-user-agent-browser-3.922.0.tgz", + "integrity": "sha512-qOJAERZ3Plj1st7M4Q5henl5FRpE30uLm6L9edZqZXGR6c7ry9jzexWamWVpQ4H4xVAVmiO9dIEBAfbq4mduOA==", "license": "Apache-2.0", "dependencies": { - "@aws-sdk/types": "3.887.0", - "@smithy/types": "^4.5.0", + "@aws-sdk/types": "3.922.0", + "@smithy/types": "^4.8.1", "bowser": "^2.11.0", "tslib": "^2.6.2" } }, "node_modules/@aws-sdk/util-user-agent-node": { - "version": "3.890.0", - "resolved": "https://registry.npmjs.org/@aws-sdk/util-user-agent-node/-/util-user-agent-node-3.890.0.tgz", - "integrity": "sha512-s85NkCxKoAlUvx7UP7OelxLqwTi27Tps9/Q+4N+9rEUjThxEnDsqJSStJ1XiYhddz1xc/vxMvPjYN0qX6EKPtA==", + "version": "3.922.0", + "resolved": "https://registry.npmjs.org/@aws-sdk/util-user-agent-node/-/util-user-agent-node-3.922.0.tgz", + "integrity": "sha512-NrPe/Rsr5kcGunkog0eBV+bY0inkRELsD2SacC4lQZvZiXf8VJ2Y7j+Yq1tB+h+FPLsdt3v9wItIvDf/laAm0Q==", "license": "Apache-2.0", "dependencies": { - "@aws-sdk/middleware-user-agent": "3.890.0", - "@aws-sdk/types": "3.887.0", - "@smithy/node-config-provider": "^4.2.2", - "@smithy/types": "^4.5.0", + "@aws-sdk/middleware-user-agent": "3.922.0", + "@aws-sdk/types": "3.922.0", + "@smithy/node-config-provider": "^4.3.4", + "@smithy/types": "^4.8.1", "tslib": "^2.6.2" }, "engines": { @@ -1760,27 +1505,19 @@ } }, "node_modules/@aws-sdk/xml-builder": { - "version": "3.887.0", - "resolved": "https://registry.npmjs.org/@aws-sdk/xml-builder/-/xml-builder-3.887.0.tgz", - "integrity": "sha512-lMwgWK1kNgUhHGfBvO/5uLe7TKhycwOn3eRCqsKPT9aPCx/HWuTlpcQp8oW2pCRGLS7qzcxqpQulcD+bbUL7XQ==", + "version": "3.921.0", + "resolved": "https://registry.npmjs.org/@aws-sdk/xml-builder/-/xml-builder-3.921.0.tgz", + "integrity": "sha512-LVHg0jgjyicKKvpNIEMXIMr1EBViESxcPkqfOlT+X1FkmUMTNZEEVF18tOJg4m4hV5vxtkWcqtr4IEeWa1C41Q==", "license": "Apache-2.0", "dependencies": { - "@smithy/types": "^4.5.0", + "@smithy/types": "^4.8.1", + "fast-xml-parser": "5.2.5", "tslib": "^2.6.2" }, "engines": { "node": ">=18.0.0" } }, - "node_modules/@aws/lambda-invoke-store": { - "version": "0.0.1", - "resolved": "https://registry.npmjs.org/@aws/lambda-invoke-store/-/lambda-invoke-store-0.0.1.tgz", - "integrity": "sha512-ORHRQ2tmvnBXc8t/X9Z8IcSbBA4xTLKuN873FopzklHMeqBst7YG0d+AX97inkvDX+NChYtSr+qGfcqGFaI8Zw==", - "license": "Apache-2.0", - "engines": { - "node": ">=18.0.0" - } - }, "node_modules/@babel/code-frame": { "version": "7.27.1", "resolved": "https://registry.npmjs.org/@babel/code-frame/-/code-frame-7.27.1.tgz", @@ -2362,23 +2099,24 @@ } }, "node_modules/@continuedev/config-yaml": { - "version": "1.33.0", - "resolved": "https://registry.npmjs.org/@continuedev/config-yaml/-/config-yaml-1.33.0.tgz", - "integrity": "sha512-riMSmuQ3HhLMKXeQ6L55pXzo/CZUVbEMallg09Pq3GNl8nddV6+7eHhzr1bThLO1COvKNLmo+3kQg52ROv+syA==", + "version": "1.36.0", + "resolved": "https://registry.npmjs.org/@continuedev/config-yaml/-/config-yaml-1.36.0.tgz", + "integrity": "sha512-uYFs22npkF2wvvpkRDsDJyaGNRydHxYW+ekksGOMj2MFbUkFMH3CZ/K/tD8S/DW6ZXbwju4datXr+BthW0n0Cg==", "license": "Apache-2.0", "dependencies": { "@continuedev/config-types": "^1.0.14", - "yaml": "^2.6.1", - "zod": "^3.24.2" + "yaml": "^2.8.1", + "zod": "^3.25.76" }, "bin": { "config-yaml": "dist/cli.js" } }, "node_modules/@continuedev/fetch": { - "version": "1.5.0", - "resolved": "https://registry.npmjs.org/@continuedev/fetch/-/fetch-1.5.0.tgz", - "integrity": "sha512-3c0YAEsaJ6tOy8HW07WUiHErrWb5r5ib+iZg7WxI0JcppvruSWMkQ6EosM/KMLkVw7v2VZi3KPBlZq/7gsBs2A==", + "version": "1.6.0", + "resolved": "https://registry.npmjs.org/@continuedev/fetch/-/fetch-1.6.0.tgz", + "integrity": "sha512-qk6ik3ldQ/fNnHrabuSEyHKEspLwizmTOVdDZCa64wJM1GdKqIHp/kEiENCx2GndxFOT28E92C3fXpHof0KFHw==", + "license": "Apache-2.0", "dependencies": { "@continuedev/config-types": "^1.0.14", "follow-redirects": "^1.15.6", @@ -5093,14 +4831,14 @@ } }, "node_modules/@smithy/eventstream-codec": { - "version": "4.1.1", - "resolved": "https://registry.npmjs.org/@smithy/eventstream-codec/-/eventstream-codec-4.1.1.tgz", - "integrity": "sha512-PwkQw1hZwHTQB6X5hSUWz2OSeuj5Z6enWuAqke7DgWoP3t6vg3ktPpqPz3Erkn6w+tmsl8Oss6nrgyezoea2Iw==", + "version": "4.2.5", + "resolved": "https://registry.npmjs.org/@smithy/eventstream-codec/-/eventstream-codec-4.2.5.tgz", + "integrity": "sha512-Ogt4Zi9hEbIP17oQMd68qYOHUzmH47UkK7q7Gl55iIm9oKt27MUGrC5JfpMroeHjdkOliOA4Qt3NQ1xMq/nrlA==", "license": "Apache-2.0", "dependencies": { "@aws-crypto/crc32": "5.2.0", - "@smithy/types": "^4.5.0", - "@smithy/util-hex-encoding": "^4.1.0", + "@smithy/types": "^4.9.0", + "@smithy/util-hex-encoding": "^4.2.0", "tslib": "^2.6.2" }, "engines": { @@ -5108,13 +4846,13 @@ } }, "node_modules/@smithy/eventstream-serde-browser": { - "version": "4.1.1", - "resolved": "https://registry.npmjs.org/@smithy/eventstream-serde-browser/-/eventstream-serde-browser-4.1.1.tgz", - "integrity": "sha512-Q9QWdAzRaIuVkefupRPRFAasaG/droBqn1feiMnmLa+LLEUG45pqX1+FurHFmlqiCfobB3nUlgoJfeXZsr7MPA==", + "version": "4.2.5", + "resolved": "https://registry.npmjs.org/@smithy/eventstream-serde-browser/-/eventstream-serde-browser-4.2.5.tgz", + "integrity": "sha512-HohfmCQZjppVnKX2PnXlf47CW3j92Ki6T/vkAT2DhBR47e89pen3s4fIa7otGTtrVxmj7q+IhH0RnC5kpR8wtw==", "license": "Apache-2.0", "dependencies": { - "@smithy/eventstream-serde-universal": "^4.1.1", - "@smithy/types": "^4.5.0", + "@smithy/eventstream-serde-universal": "^4.2.5", + "@smithy/types": "^4.9.0", "tslib": "^2.6.2" }, "engines": { @@ -5122,12 +4860,12 @@ } }, "node_modules/@smithy/eventstream-serde-config-resolver": { - "version": "4.2.1", - "resolved": "https://registry.npmjs.org/@smithy/eventstream-serde-config-resolver/-/eventstream-serde-config-resolver-4.2.1.tgz", - "integrity": "sha512-oSUkF9zDN9zcOUBMtxp8RewJlh71E9NoHWU8jE3hU9JMYCsmW4assVTpgic/iS3/dM317j6hO5x18cc3XrfvEw==", + "version": "4.3.5", + "resolved": "https://registry.npmjs.org/@smithy/eventstream-serde-config-resolver/-/eventstream-serde-config-resolver-4.3.5.tgz", + "integrity": "sha512-ibjQjM7wEXtECiT6my1xfiMH9IcEczMOS6xiCQXoUIYSj5b1CpBbJ3VYbdwDy8Vcg5JHN7eFpOCGk8nyZAltNQ==", "license": "Apache-2.0", "dependencies": { - "@smithy/types": "^4.5.0", + "@smithy/types": "^4.9.0", "tslib": "^2.6.2" }, "engines": { @@ -5135,13 +4873,13 @@ } }, "node_modules/@smithy/eventstream-serde-node": { - "version": "4.1.1", - "resolved": "https://registry.npmjs.org/@smithy/eventstream-serde-node/-/eventstream-serde-node-4.1.1.tgz", - "integrity": "sha512-tn6vulwf/ScY0vjhzptSJuDJJqlhNtUjkxJ4wiv9E3SPoEqTEKbaq6bfqRO7nvhTG29ALICRcvfFheOUPl8KNA==", + "version": "4.2.5", + "resolved": "https://registry.npmjs.org/@smithy/eventstream-serde-node/-/eventstream-serde-node-4.2.5.tgz", + "integrity": "sha512-+elOuaYx6F2H6x1/5BQP5ugv12nfJl66GhxON8+dWVUEDJ9jah/A0tayVdkLRP0AeSac0inYkDz5qBFKfVp2Gg==", "license": "Apache-2.0", "dependencies": { - "@smithy/eventstream-serde-universal": "^4.1.1", - "@smithy/types": "^4.5.0", + "@smithy/eventstream-serde-universal": "^4.2.5", + "@smithy/types": "^4.9.0", "tslib": "^2.6.2" }, "engines": { @@ -5149,13 +4887,13 @@ } }, "node_modules/@smithy/eventstream-serde-universal": { - "version": "4.1.1", - "resolved": "https://registry.npmjs.org/@smithy/eventstream-serde-universal/-/eventstream-serde-universal-4.1.1.tgz", - "integrity": "sha512-uLOAiM/Dmgh2CbEXQx+6/ssK7fbzFhd+LjdyFxXid5ZBCbLHTFHLdD/QbXw5aEDsLxQhgzDxLLsZhsftAYwHJA==", + "version": "4.2.5", + "resolved": "https://registry.npmjs.org/@smithy/eventstream-serde-universal/-/eventstream-serde-universal-4.2.5.tgz", + "integrity": "sha512-G9WSqbST45bmIFaeNuP/EnC19Rhp54CcVdX9PDL1zyEB514WsDVXhlyihKlGXnRycmHNmVv88Bvvt4EYxWef/Q==", "license": "Apache-2.0", "dependencies": { - "@smithy/eventstream-codec": "^4.1.1", - "@smithy/types": "^4.5.0", + "@smithy/eventstream-codec": "^4.2.5", + "@smithy/types": "^4.9.0", "tslib": "^2.6.2" }, "engines": { @@ -5445,9 +5183,9 @@ } }, "node_modules/@smithy/types": { - "version": "4.8.1", - "resolved": "https://registry.npmjs.org/@smithy/types/-/types-4.8.1.tgz", - "integrity": "sha512-N0Zn0OT1zc+NA+UVfkYqQzviRh5ucWwO7mBV3TmHHprMnfcJNfhlPicDkBHi0ewbh+y3evR6cNAW0Raxvb01NA==", + "version": "4.9.0", + "resolved": "https://registry.npmjs.org/@smithy/types/-/types-4.9.0.tgz", + "integrity": "sha512-MvUbdnXDTwykR8cB1WZvNNwqoWVaTRA0RLlLmf/cIFNMM2cKWz01X4Ly6SMC4Kks30r8tT3Cty0jmeWfiuyHTA==", "license": "Apache-2.0", "dependencies": { "tslib": "^2.6.2" @@ -5867,12 +5605,6 @@ "dev": true, "license": "MIT" }, - "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==", - "license": "MIT" - }, "node_modules/@types/yargs": { "version": "17.0.33", "resolved": "https://registry.npmjs.org/@types/yargs/-/yargs-17.0.33.tgz", diff --git a/packages/openai-adapters/package.json b/packages/openai-adapters/package.json index c120671bd..c31c5d70f 100644 --- a/packages/openai-adapters/package.json +++ b/packages/openai-adapters/package.json @@ -13,11 +13,11 @@ "license": "Apache-2.0", "dependencies": { "@anthropic-ai/sdk": "^0.67.0", - "@aws-sdk/client-bedrock-runtime": "^3.842.0", - "@aws-sdk/credential-providers": "^3.913.0", + "@aws-sdk/client-bedrock-runtime": "^3.925.0", + "@aws-sdk/credential-providers": "^3.929.0", "@continuedev/config-types": "^1.0.14", - "@continuedev/config-yaml": "^1.33.0", - "@continuedev/fetch": "^1.5.0", + "@continuedev/config-yaml": "^1.36.0", + "@continuedev/fetch": "^1.6.0", "dotenv": "^16.5.0", "google-auth-library": "^10.4.1", "json-schema": "^0.4.0", diff --git a/packages/openai-adapters/src/apis/OpenRouter.test.ts b/packages/openai-adapters/src/apis/OpenRouter.test.ts index 6b7175446..e62e2123f 100644 --- a/packages/openai-adapters/src/apis/OpenRouter.test.ts +++ b/packages/openai-adapters/src/apis/OpenRouter.test.ts @@ -14,7 +14,7 @@ describe("OpenRouterApi Anthropic caching", () => { const api = new OpenRouterApi(baseConfig); const body: ChatCompletionCreateParams = { - model: "anthropic/claude-3.5-sonnet", + model: "anthropic/claude-sonnet-4-5", messages: [ { role: "user", content: "First" }, { role: "assistant", content: "Resp" }, @@ -161,7 +161,7 @@ describe("OpenRouterApi Anthropic caching", () => { describe("applyAnthropicCachingToOpenRouterBody", () => { it("mutates OpenAI chat body with system and tool caching", () => { const body: ChatCompletionCreateParams = { - model: "anthropic/claude-3.5-sonnet", + model: "anthropic/claude-sonnet-4-5", messages: [ { role: "system", content: "You are helpful" }, { role: "user", content: "Alpha" }, @@ -241,7 +241,7 @@ describe("OpenRouterApi Anthropic caching", () => { it("leaves system untouched when strategy is none while caching users", () => { const body: ChatCompletionCreateParams = { - model: "anthropic/claude-3.5-sonnet", + model: "anthropic/claude-sonnet-4-5", messages: [ { role: "system", content: "Stay focused" }, { role: "user", content: "Question" }, @@ -276,7 +276,7 @@ describe("OpenRouterApi Anthropic caching", () => { it("adds cache_control only to final text segment of user arrays", () => { const body: ChatCompletionCreateParams = { - model: "anthropic/claude-3.5-sonnet", + model: "anthropic/claude-sonnet-4-5", messages: [ { role: "user", diff --git a/packages/openai-adapters/src/test/anthropic-adapter.vitest.ts b/packages/openai-adapters/src/test/anthropic-adapter.vitest.ts index 859bcab02..dba75137c 100644 --- a/packages/openai-adapters/src/test/anthropic-adapter.vitest.ts +++ b/packages/openai-adapters/src/test/anthropic-adapter.vitest.ts @@ -35,7 +35,7 @@ describe("Anthropic Adapter Tests", () => { methodToTest: "chatCompletionNonStream", params: [ { - model: "claude-3-5-sonnet-20241022", + model: "claude-sonnet-4-5", messages: [{ role: "user", content: "hello" }], }, new AbortController().signal, @@ -62,7 +62,7 @@ describe("Anthropic Adapter Tests", () => { }, ], system: undefined, - model: "claude-3-5-sonnet-20241022", + model: "claude-sonnet-4-5", max_tokens: 32000, stream: undefined, }, @@ -77,7 +77,7 @@ describe("Anthropic Adapter Tests", () => { text: "Hello! How can I help you today?", }, ], - model: "claude-3-5-sonnet-20241022", + model: "claude-sonnet-4-5", stop_reason: "end_turn", stop_sequence: null, usage: { @@ -98,7 +98,7 @@ describe("Anthropic Adapter Tests", () => { methodToTest: "chatCompletionStream", params: [ { - model: "claude-3-5-sonnet-20241022", + model: "claude-sonnet-4-5", messages: [{ role: "user", content: "hello" }], stream: true, }, @@ -126,7 +126,7 @@ describe("Anthropic Adapter Tests", () => { }, ], system: undefined, - model: "claude-3-5-sonnet-20241022", + model: "claude-sonnet-4-5", max_tokens: 32000, stream: true, }, @@ -160,7 +160,7 @@ describe("Anthropic Adapter Tests", () => { methodToTest: "chatCompletionStream", params: [ { - model: "claude-3-5-sonnet-20241022", + model: "claude-sonnet-4-5", messages: [ { role: "system", content: "You are a helpful assistant." }, { role: "user", content: "hello" }, @@ -197,7 +197,7 @@ describe("Anthropic Adapter Tests", () => { cache_control: { type: "ephemeral" }, }, ], - model: "claude-3-5-sonnet-20241022", + model: "claude-sonnet-4-5", max_tokens: 32000, stream: true, }, diff --git a/packages/openai-adapters/src/test/main.test.ts b/packages/openai-adapters/src/test/main.test.ts index 3b7b96193..8a10c8b72 100644 --- a/packages/openai-adapters/src/test/main.test.ts +++ b/packages/openai-adapters/src/test/main.test.ts @@ -70,7 +70,7 @@ const TESTS: Omit[] = [ }, { provider: "anthropic", - model: "claude-3-5-haiku-latest", + model: "claude-haiku-4-5", apiKey: process.env.ANTHROPIC_API_KEY!, roles: ["chat"], options: {