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/actions/build-vscode-extension/action.yml b/.github/actions/build-vscode-extension/action.yml index b465bf478..c09479697 100644 --- a/.github/actions/build-vscode-extension/action.yml +++ b/.github/actions/build-vscode-extension/action.yml @@ -111,8 +111,11 @@ runs: - name: Prepackage the extension shell: bash + env: + CONTINUE_VSCODE_TARGET: ${{ steps.set-target.outputs.target }} run: | cd extensions/vscode + export CONTINUE_VSCODE_TARGET="${{ steps.set-target.outputs.target }}" npm run prepackage -- --target ${{ steps.set-target.outputs.target }} - name: Re-install esbuild @@ -146,14 +149,20 @@ runs: - name: Package extension (build artifacts) shell: bash + env: + CONTINUE_VSCODE_TARGET: ${{ steps.set-target.outputs.target }} run: | cd extensions/vscode - npm run package + export CONTINUE_VSCODE_TARGET="${{ steps.set-target.outputs.target }}" + npm run package -- --target ${{ steps.set-target.outputs.target }} - name: Package extension (.vsix files) shell: bash + env: + CONTINUE_VSCODE_TARGET: ${{ steps.set-target.outputs.target }} run: | cd extensions/vscode + export CONTINUE_VSCODE_TARGET="${{ steps.set-target.outputs.target }}" if [ "${{ inputs.pre-release }}" = "true" ]; then npx vsce package --pre-release --no-dependencies --target ${{ steps.set-target.outputs.target }} else diff --git a/.github/workflows/jetbrains-release.yaml b/.github/workflows/jetbrains-release.yaml index d08f4f9a0..38413cf0c 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 }} @@ -491,7 +491,7 @@ jobs: # Run Qodana inspections - name: Qodana - Code Inspection - uses: JetBrains/qodana-action@v2025.2.2 + uses: JetBrains/qodana-action@v2025.2.3 with: cache-default-branch-only: true diff --git a/.github/workflows/runloop-blueprint-template.json b/.github/workflows/runloop-blueprint-template.json index d0fcf57c1..67d105bfa 100644 --- a/.github/workflows/runloop-blueprint-template.json +++ b/.github/workflows/runloop-blueprint-template.json @@ -1,8 +1,29 @@ { "name": "cn", + "dockerfile": "FROM runloop:runloop/universal-ubuntu-24.04-x86_64-dnd", "system_setup_commands": [ "npm i -g @continuedev/cli@latest", "sudo apt update", - "sudo apt install -y ripgrep" - ] + "printf '#!/bin/sh\\nexit 101\\n' | sudo tee /usr/sbin/policy-rc.d > /dev/null && sudo chmod +x /usr/sbin/policy-rc.d", + "sudo apt install -y --no-install-recommends ripgrep chromium chromium-driver xvfb", + "sudo rm /usr/sbin/policy-rc.d", + "sudo mkdir -p /opt/google/chrome", + "sudo ln -s /usr/bin/chromium /opt/google/chrome/chrome", + "curl -1sLf 'https://artifacts-cli.infisical.com/setup.deb.sh' | sudo -E bash", + "sudo apt-get install -y infisical", + "curl -fsSL https://cli.github.com/packages/githubcli-archive-keyring.gpg | sudo dd of=/usr/share/keyrings/githubcli-archive-keyring.gpg", + "sudo chmod go+r /usr/share/keyrings/githubcli-archive-keyring.gpg", + "echo 'deb [arch=amd64 signed-by=/usr/share/keyrings/githubcli-archive-keyring.gpg] https://cli.github.com/packages stable main' | sudo tee /etc/apt/sources.list.d/github-cli.list > /dev/null", + "sudo apt update", + "sudo apt install -y gh" + ], + "launch_parameters": { + "launch_commands": [ + "export DISPLAY=:99", + "nohup Xvfb :99 -screen 0 1920x1080x24 > /tmp/xvfb.log 2>&1 &", + "sleep 2", + "sudo mkdir -p /home/user", + "for dir in /root/*; do [ -d \"$dir\" ] && [ -d \"$dir/.git\" ] && sudo ln -sf \"$dir\" \"/home/user/$(basename \"$dir\")\"; done" + ] + } } diff --git a/.github/workflows/upload-runloop-blueprint.yml b/.github/workflows/upload-runloop-blueprint.yml new file mode 100644 index 000000000..e88aa5cea --- /dev/null +++ b/.github/workflows/upload-runloop-blueprint.yml @@ -0,0 +1,59 @@ +name: Upload Runloop Blueprint + +on: + workflow_dispatch: + push: + branches: + - main + paths: + - '.github/workflows/runloop-blueprint-template.json' + +permissions: + contents: read + +jobs: + upload-blueprint: + name: Upload Blueprint to Runloop + runs-on: ubuntu-latest + # Only run this workflow on the main repository (continuedev/continue) + if: github.repository == 'continuedev/continue' + steps: + - name: Checkout + uses: actions/checkout@v6 + + - name: Publish Blueprint to Runloop + env: + RUNLOOP_API_KEY: ${{ secrets.RUNLOOP_API_KEY }} + run: | + echo "Publishing blueprint 'cn' to Runloop API" + + # Use blueprint configuration from template file + cp .github/workflows/runloop-blueprint-template.json blueprint.json + + # Publish to Runloop API + response=$(curl -X POST "https://api.runloop.ai/v1/blueprints" \ + -H "Authorization: Bearer $RUNLOOP_API_KEY" \ + -H "Content-Type: application/json" \ + -d @blueprint.json \ + -w "%{http_code}" \ + -s) + + http_code=$(echo "$response" | tail -c 4) + response_body=$(echo "$response" | head -c -4) + + if [[ "$http_code" == "200" ]] || [[ "$http_code" == "201" ]]; then + echo "✅ Successfully published blueprint to Runloop API" + echo "Response: $response_body" + + # Extract blueprint ID if available + blueprint_id=$(echo "$response_body" | jq -r '.id // empty') + if [[ -n "$blueprint_id" ]]; then + echo "Blueprint ID: $blueprint_id" + echo "blueprint_id=$blueprint_id" >> $GITHUB_OUTPUT + fi + else + echo "❌ Failed to publish blueprint to Runloop API" + echo "HTTP Code: $http_code" + echo "Response: $response_body" + exit 1 + fi diff --git a/README.md b/README.md index ccc192c52..00dcc6911 100644 --- a/README.md +++ b/README.md @@ -33,6 +33,13 @@ Get started in [Mission Control](https://hub.continue.dev/agents), [CLI (Headless Mode)](https://docs.continue.dev/cli/quick-start#headless-mode), or [CLI (TUI mode)](https://docs.continue.dev/cli/quick-start#tui-mode) +### Quick Install + +```bash +npm i -g @continuedev/cli +cn +``` + ## Cloud Agents Set workflows to run automatically on [PR opens](https://docs.continue.dev/guides/continuous-ai#pattern-2-the-pr-review-agent), [schedules](https://docs.continue.dev/guides/continuous-ai#pattern-1-the-async-triage-bot), or [any event trigger](https://docs.continue.dev/cli/quick-start#headless-mode) diff --git a/binary/package-lock.json b/binary/package-lock.json index 849a4b235..a49050b34 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", + "@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", @@ -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/commands/slash/mcpSlashCommand.ts b/core/commands/slash/mcpSlashCommand.ts index d9c1278ff..20955e779 100644 --- a/core/commands/slash/mcpSlashCommand.ts +++ b/core/commands/slash/mcpSlashCommand.ts @@ -23,7 +23,15 @@ export function stringifyMcpPrompt( let stringified = ""; for (const message of messages) { if (message.content.type === "text") { - stringified += `<${message.content.role}/>\n${message.content.text}\n<${message.content.role}/>`; + const role = + "role" in message.content && typeof message.content.role === "string" + ? message.content.role + : message.content._meta && + "role" in message.content._meta && + typeof message.content._meta.role === "string" + ? message.content._meta.role + : "assistant"; + stringified += `<${role}/>\n${message.content.text}\n<${role}/>`; } else { console.warn( `MCP Prompt conversion warning: ${message.content.type} content is not yet supported, message skipped`, 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/context/providers/MCPContextProvider.ts b/core/context/providers/MCPContextProvider.ts index ce27eb458..7b1010f96 100644 --- a/core/context/providers/MCPContextProvider.ts +++ b/core/context/providers/MCPContextProvider.ts @@ -80,17 +80,15 @@ class MCPContextProvider extends BaseContextProvider { return await Promise.all( contents.map(async (resource) => { - const content = resource.text; - if (typeof content !== "string") { + if (!("text" in resource) || typeof resource.text !== "string") { throw new Error( "Continue currently only supports text resources from MCP", ); } - return { name: resource.uri, description: resource.uri, - content, + content: resource.text, uri: { type: "url", value: resource.uri, diff --git a/core/edit/searchAndReplace/findSearchMatch.ts b/core/edit/searchAndReplace/findSearchMatch.ts index 9093bc27b..dd826985d 100644 --- a/core/edit/searchAndReplace/findSearchMatch.ts +++ b/core/edit/searchAndReplace/findSearchMatch.ts @@ -59,6 +59,25 @@ function trimmedMatch( return null; } +/** + * Case-insensitive matching strategy + */ +function caseInsensitiveMatch( + fileContent: string, + searchContent: string, +): BasicMatchResult | null { + const lowerFileContent = fileContent.toLowerCase(); + const lowerSearchContent = searchContent.toLowerCase(); + const index = lowerFileContent.indexOf(lowerSearchContent); + if (index !== -1) { + return { + startIndex: index, + endIndex: index + searchContent.length, + }; + } + return null; +} + /** * Whitespace-ignored matching strategy * Removes all whitespace from both content and search, then finds the match @@ -284,6 +303,7 @@ function findFuzzyMatch( const matchingStrategies: Array<{ strategy: MatchStrategy; name: string }> = [ { strategy: exactMatch, name: "exactMatch" }, { strategy: trimmedMatch, name: "trimmedMatch" }, + { strategy: caseInsensitiveMatch, name: "caseInsensitiveMatch" }, { strategy: whitespaceIgnoredMatch, name: "whitespaceIgnoredMatch" }, // { strategy: findFuzzyMatch, name: "jaroWinklerFuzzyMatch" }, ]; diff --git a/core/edit/searchAndReplace/findSearchMatch.vitest.ts b/core/edit/searchAndReplace/findSearchMatch.vitest.ts index 54c2f5128..c2489d93e 100644 --- a/core/edit/searchAndReplace/findSearchMatch.vitest.ts +++ b/core/edit/searchAndReplace/findSearchMatch.vitest.ts @@ -109,8 +109,11 @@ describe("findSearchMatch", () => { const searchContent = "hello"; const result = findSearchMatch(fileContent, searchContent); - // Should not match due to case sensitivity, will fall through to other strategies - expect(result).toBeNull(); + expect(result).toEqual({ + startIndex: 0, + endIndex: 5, + strategyName: "caseInsensitiveMatch", + }); }); }); @@ -152,6 +155,32 @@ describe("findSearchMatch", () => { }); }); + describe("Case insensitive match strategy fallback", () => { + it("should match when case differs", () => { + const result = findSearchMatch( + "const myVariable = 42;", + "const MYVARIABLE = 42;", + ); + expect(result).toEqual({ + startIndex: 0, + endIndex: 22, + strategyName: "caseInsensitiveMatch", + }); + }); + + it("should match mixed case in middle of file", () => { + const result = findSearchMatch( + "function HandleClick() {", + "function handleclick() {", + ); + expect(result).toEqual({ + startIndex: 0, + endIndex: 24, + strategyName: "caseInsensitiveMatch", + }); + }); + }); + describe("Whitespace ignored strategy fallback", () => { it("should match content with different whitespace formatting", () => { const fileContent = "function test() {\n return true;\n}"; diff --git a/core/edit/searchAndReplace/findSearchMatches.test.ts b/core/edit/searchAndReplace/findSearchMatches.test.ts index 392637a62..120d54711 100644 --- a/core/edit/searchAndReplace/findSearchMatches.test.ts +++ b/core/edit/searchAndReplace/findSearchMatches.test.ts @@ -113,6 +113,98 @@ line 3 foo`; }); }); + describe("case insensitive match strategy", () => { + it("should find multiple occurrences with different cases", () => { + const content = "const Foo = 'FOO';"; + const search = "foo"; + const matches = findSearchMatches(content, search); + + expect(matches).toHaveLength(2); + expect(matches[0]).toEqual({ + startIndex: 6, + endIndex: 9, + strategyName: "caseInsensitiveMatch", + }); + expect(matches[1]).toEqual({ + startIndex: 13, + endIndex: 16, + strategyName: "caseInsensitiveMatch", + }); + }); + + it("should handle mixed case patterns", () => { + const content = "const MyVariable = 'value';"; + const search = "mYvArIaBlE"; + const matches = findSearchMatches(content, search); + + expect(matches).toHaveLength(1); + expect(matches[0]).toEqual({ + startIndex: 6, + endIndex: 16, + strategyName: "caseInsensitiveMatch", + }); + }); + + it("should find multiple matches with varying cases", () => { + const content = "Hello world, HELLO universe, HeLLo there"; + const search = "hello"; + const matches = findSearchMatches(content, search); + + expect(matches).toHaveLength(3); + expect(matches[0]).toEqual({ + startIndex: 0, + endIndex: 5, + strategyName: "caseInsensitiveMatch", + }); + expect(matches[1]).toEqual({ + startIndex: 13, + endIndex: 18, + strategyName: "caseInsensitiveMatch", + }); + expect(matches[2]).toEqual({ + startIndex: 29, + endIndex: 34, + strategyName: "caseInsensitiveMatch", + }); + }); + + it("should handle multi-line content with case differences", () => { + const content = `function Test() { + return TRUE; +}`; + const search = "test"; + const matches = findSearchMatches(content, search); + + expect(matches).toHaveLength(1); + expect(matches[0]).toEqual({ + startIndex: 9, + endIndex: 13, + strategyName: "caseInsensitiveMatch", + }); + }); + + it("should preserve original content length in match", () => { + const content = "const VARIABLE = 'value';"; + const search = "variable"; + const matches = findSearchMatches(content, search); + + expect(matches).toHaveLength(1); + expect(matches[0].endIndex - matches[0].startIndex).toBe(8); + expect(content.slice(matches[0].startIndex, matches[0].endIndex)).toBe( + "VARIABLE", + ); + }); + + it("should not match when exact and trimmed strategies succeed", () => { + const content = "const foo = 'bar';"; + const search = "foo"; + const matches = findSearchMatches(content, search); + + expect(matches).toHaveLength(1); + expect(matches[0].strategyName).toBe("exactMatch"); + }); + }); + describe("whitespace ignored match strategy", () => { it("should find matches ignoring internal whitespace", () => { const content = "const foo = bar;"; diff --git a/core/index.d.ts b/core/index.d.ts index 7086a98e5..197b5516d 100644 --- a/core/index.d.ts +++ b/core/index.d.ts @@ -267,6 +267,11 @@ export interface IContextProvider { get deprecationMessage(): string | null; } +export interface SessionUsage extends Usage { + /** Total cumulative cost in USD for all LLM API calls in this session */ + totalCost: number; +} + export interface Session { sessionId: string; title: string; @@ -276,6 +281,8 @@ export interface Session { mode?: MessageModes; /** Optional: title of the selected chat model for this session */ chatModelTitle?: string | null; + /** Optional: cumulative usage and cost for all LLM API calls in this session */ + usage?: SessionUsage; } export interface BaseSessionMetadata { diff --git a/core/llm/llms/Anthropic.ts b/core/llm/llms/Anthropic.ts index a1fdfbe35..35e9845ed 100644 --- a/core/llm/llms/Anthropic.ts +++ b/core/llm/llms/Anthropic.ts @@ -426,6 +426,7 @@ class Anthropic extends BaseLLM { const headers = getAnthropicHeaders( this.apiKey, shouldCacheSystemMessage || shouldCachePrompt, + this.apiBase, ); const body: MessageCreateParams = { 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/Gemini.ts b/core/llm/llms/Gemini.ts index 79462607d..3e48a6331 100644 --- a/core/llm/llms/Gemini.ts +++ b/core/llm/llms/Gemini.ts @@ -13,6 +13,7 @@ import { safeParseToolCallArgs } from "../../tools/parseArgs.js"; import { renderChatMessage, stripImages } from "../../util/messageContent.js"; import { extractBase64FromDataUrl } from "../../util/url.js"; import { BaseLLM } from "../index.js"; +import { LlmApiRequestType } from "../openaiTypeConverters.js"; import { GeminiChatContent, GeminiChatContentPart, @@ -41,6 +42,15 @@ class Gemini extends BaseLLM { maxEmbeddingBatchSize: 100, }; + protected useOpenAIAdapterFor: (LlmApiRequestType | "*")[] = [ + "chat", + "embed", + "list", + "rerank", + "streamChat", + "streamFim", + ]; + // Function to convert completion options to Gemini format public convertArgs(options: CompletionOptions): GeminiGenerationConfig { // should be public for use within VertexAI 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/llms/VertexAI.ts b/core/llm/llms/VertexAI.ts index 258bccc3d..2bb5fa13d 100644 --- a/core/llm/llms/VertexAI.ts +++ b/core/llm/llms/VertexAI.ts @@ -5,6 +5,7 @@ import { ChatMessage, CompletionOptions, LLMOptions } from "../../index.js"; import { renderChatMessage, stripImages } from "../../util/messageContent.js"; import { BaseLLM } from "../index.js"; +import { LlmApiRequestType } from "../openaiTypeConverters.js"; import Anthropic from "./Anthropic.js"; import Gemini from "./Gemini.js"; @@ -23,6 +24,15 @@ class VertexAI extends BaseLLM { private clientPromise: Promise; + protected useOpenAIAdapterFor: (LlmApiRequestType | "*")[] = [ + "chat", + "embed", + "list", + "rerank", + "streamChat", + "streamFim", + ]; + /* Vertex Supports 3 different URL formats 1. Standard VertexAI: e.g. https://{location}-aiplatform.googleapis.com/v1/projects/{project}/locations/{location}/publishers/google/models/{model}:streamGenerateContent 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/llm/utils/calculateRequestCost.ts b/core/llm/utils/calculateRequestCost.ts index d8706c29e..0d6259657 100644 --- a/core/llm/utils/calculateRequestCost.ts +++ b/core/llm/utils/calculateRequestCost.ts @@ -12,19 +12,21 @@ function calculateAnthropicCost( // Normalize model name to handle various formats const normalizedModel = model.toLowerCase(); - // Define pricing per million tokens (MTok) + // Define pricing per million tokens (MTok) by model family prefix const pricing: Record< string, { input: number; output: number; cacheWrite: number; cacheRead: number } > = { - // Claude Opus 4 (most intelligent model) - "claude-3-opus": { - input: 15, - output: 75, - cacheWrite: 18.75, - cacheRead: 1.5, + // Claude Opus 4.5 (most intelligent model) + "claude-opus-4-5": { + input: 5, + output: 25, + cacheWrite: 6.25, + cacheRead: 0.5, }, - "claude-3-opus-20240229": { + + // Claude Opus 4 (legacy) + "claude-3-opus": { input: 15, output: 75, cacheWrite: 18.75, @@ -38,18 +40,6 @@ function calculateAnthropicCost( cacheWrite: 3.75, cacheRead: 0.3, }, - "claude-3-5-sonnet-20241022": { - input: 3, - output: 15, - cacheWrite: 3.75, - cacheRead: 0.3, - }, - "claude-3-5-sonnet-20240620": { - input: 3, - output: 15, - cacheWrite: 3.75, - cacheRead: 0.3, - }, // Claude Haiku 3.5 (fastest, most cost-effective) "claude-3-5-haiku": { @@ -58,12 +48,6 @@ function calculateAnthropicCost( cacheWrite: 1, cacheRead: 0.08, }, - "claude-3-5-haiku-20241022": { - input: 0.8, - output: 4, - cacheWrite: 1, - cacheRead: 0.08, - }, // Legacy Claude 3 Haiku "claude-3-haiku": { @@ -72,35 +56,16 @@ function calculateAnthropicCost( cacheWrite: 0.3, cacheRead: 0.03, }, - "claude-3-haiku-20240307": { - input: 0.25, - output: 1.25, - cacheWrite: 0.3, - cacheRead: 0.03, - }, }; - // Find matching pricing model - let modelPricing = pricing[normalizedModel]; + // Sort keys by length (longest first) to match most specific patterns first + const sortedKeys = Object.keys(pricing).sort((a, b) => b.length - a.length); - // If exact match not found, try to find by partial match - if (!modelPricing) { - for (const [key, value] of Object.entries(pricing)) { - if (normalizedModel.includes(key) || key.includes(normalizedModel)) { - modelPricing = value; - break; - } - } - } - - // If still no match, try common patterns - if (!modelPricing) { - if (normalizedModel.includes("opus")) { - modelPricing = pricing["claude-3-opus"]; - } else if (normalizedModel.includes("sonnet")) { - modelPricing = pricing["claude-3-5-sonnet"]; - } else if (normalizedModel.includes("haiku")) { - modelPricing = pricing["claude-3-5-haiku"]; + let modelPricing = null; + for (const prefix of sortedKeys) { + if (normalizedModel.startsWith(prefix)) { + modelPricing = pricing[prefix]; + break; } } @@ -167,14 +132,90 @@ function calculateAnthropicCost( }; } +function calculateOpenAICost( + model: string, + usage: Usage, +): CostBreakdown | null { + // Normalize model name + const normalizedModel = model.toLowerCase(); + + // Define pricing per million tokens (MTok) by model family prefix + const pricing: Record = { + // GPT-4o models (most specific first) + "gpt-4o-mini": { input: 0.15, output: 0.6 }, + "gpt-4o": { input: 2.5, output: 10 }, + + // GPT-4 Turbo models + "gpt-4-turbo": { input: 10, output: 30 }, + + // GPT-3.5 Turbo models (most specific first) + "gpt-3.5-turbo-0125": { input: 0.5, output: 1.5 }, + "gpt-3.5-turbo-1106": { input: 1, output: 2 }, + "gpt-3.5-turbo": { input: 1.5, output: 2 }, + + // Base GPT-4 (fallback for other gpt-4 variants) + "gpt-4": { input: 30, output: 60 }, + }; + + // Sort keys by length (longest first) to match most specific patterns first + const sortedKeys = Object.keys(pricing).sort((a, b) => b.length - a.length); + + let modelPricing = null; + for (const prefix of sortedKeys) { + if (normalizedModel.startsWith(prefix)) { + modelPricing = pricing[prefix]; + break; + } + } + + if (!modelPricing) { + return null; // Unknown model + } + + // Calculate costs + const inputCost = (usage.promptTokens / 1_000_000) * modelPricing.input; + const outputCost = (usage.completionTokens / 1_000_000) * modelPricing.output; + + // Build breakdown components + const breakdownParts: string[] = []; + + if (usage.promptTokens > 0) { + breakdownParts.push( + `Input: ${usage.promptTokens.toLocaleString()} tokens × $${modelPricing.input}/MTok = $${inputCost.toFixed(6)}`, + ); + } + + if (usage.completionTokens > 0) { + breakdownParts.push( + `Output: ${usage.completionTokens.toLocaleString()} tokens × $${modelPricing.output}/MTok = $${outputCost.toFixed(6)}`, + ); + } + + const totalCost = inputCost + outputCost; + + // Build final breakdown string + let breakdown = `Model: ${model}\n`; + breakdown += breakdownParts.join("\n"); + if (breakdownParts.length > 1) { + breakdown += `\nTotal: $${totalCost.toFixed(6)}`; + } + + return { + cost: totalCost, + breakdown, + }; +} + export function calculateRequestCost( provider: string, model: string, usage: Usage, ): CostBreakdown | null { - switch (provider) { + switch (provider.toLowerCase()) { case "anthropic": return calculateAnthropicCost(model, usage); + case "openai": + return calculateOpenAICost(model, usage); default: return null; } diff --git a/core/llm/utils/calculateRequestCost.vitest.ts b/core/llm/utils/calculateRequestCost.vitest.ts new file mode 100644 index 000000000..32183ca1b --- /dev/null +++ b/core/llm/utils/calculateRequestCost.vitest.ts @@ -0,0 +1,256 @@ +import { describe, expect, it } from "vitest"; + +import type { Usage } from "../.."; + +import { calculateRequestCost, CostBreakdown } from "./calculateRequestCost"; + +interface TestCase { + provider: string; + model: string; + promptTokens: number; + completionTokens: number; + cachedTokens?: number; + cacheWriteTokens?: number; + expectedCost: number | null; + description?: string; +} + +describe("calculateRequestCost", () => { + const testCases: TestCase[] = [ + // Anthropic Claude 3.5 Sonnet + { + provider: "anthropic", + model: "claude-3-5-sonnet-20241022", + promptTokens: 1000, + completionTokens: 500, + expectedCost: 0.0105, + description: "Claude 3.5 Sonnet basic usage", + }, + { + provider: "anthropic", + model: "claude-3-5-sonnet-20241022", + promptTokens: 1000, + completionTokens: 500, + cachedTokens: 2000, + expectedCost: 0.0111, + description: "Claude 3.5 Sonnet with cache reads", + }, + { + provider: "anthropic", + model: "claude-3-5-sonnet-20241022", + promptTokens: 1000, + completionTokens: 500, + cacheWriteTokens: 300, + expectedCost: 0.011625, + description: "Claude 3.5 Sonnet with cache writes", + }, + { + provider: "anthropic", + model: "claude-3-5-sonnet-20240620", + promptTokens: 1000, + completionTokens: 500, + expectedCost: 0.0105, + description: "Claude 3.5 Sonnet (older version)", + }, + + // Anthropic Claude 3.5 Haiku + { + provider: "anthropic", + model: "claude-3-5-haiku-20241022", + promptTokens: 1000, + completionTokens: 500, + expectedCost: 0.0028, + description: "Claude 3.5 Haiku", + }, + + // Anthropic Claude 3 Haiku (legacy) + { + provider: "anthropic", + model: "claude-3-haiku-20240307", + promptTokens: 1000, + completionTokens: 500, + expectedCost: 0.000875, + description: "Claude 3 Haiku legacy", + }, + + // Anthropic Claude 3 Opus + { + provider: "anthropic", + model: "claude-3-opus-20240229", + promptTokens: 1000, + completionTokens: 500, + expectedCost: 0.0525, + description: "Claude 3 Opus", + }, + + // Anthropic Claude Opus 4.5 + { + provider: "anthropic", + model: "claude-opus-4-5-20251101", + promptTokens: 1000, + completionTokens: 500, + expectedCost: 0.0175, + description: "Claude Opus 4.5 basic usage", + }, + { + provider: "anthropic", + model: "claude-opus-4-5-latest", + promptTokens: 1000, + completionTokens: 500, + expectedCost: 0.0175, + description: "Claude Opus 4.5 latest (partial match)", + }, + { + provider: "anthropic", + model: "claude-opus-4-5-20251101", + promptTokens: 1000, + completionTokens: 500, + cachedTokens: 2000, + expectedCost: 0.0185, + description: "Claude Opus 4.5 with cache reads", + }, + { + provider: "anthropic", + model: "claude-opus-4-5-20251101", + promptTokens: 1000, + completionTokens: 500, + cacheWriteTokens: 300, + expectedCost: 0.019375, + description: "Claude Opus 4.5 with cache writes", + }, + + // OpenAI GPT-4 + { + provider: "openai", + model: "gpt-4", + promptTokens: 1000, + completionTokens: 500, + expectedCost: 0.06, + description: "GPT-4 basic usage", + }, + { + provider: "openai", + model: "gpt-4-turbo", + promptTokens: 1000, + completionTokens: 500, + expectedCost: 0.025, + description: "GPT-4 Turbo", + }, + { + provider: "openai", + model: "gpt-4o", + promptTokens: 1000, + completionTokens: 500, + expectedCost: 0.0075, + description: "GPT-4o", + }, + { + provider: "openai", + model: "gpt-4o-mini", + promptTokens: 1000, + completionTokens: 500, + expectedCost: 0.00045, + description: "GPT-4o-mini", + }, + + // OpenAI GPT-3.5 + { + provider: "openai", + model: "gpt-3.5-turbo-0125", + promptTokens: 1000, + completionTokens: 500, + expectedCost: 0.00125, + description: "GPT-3.5 Turbo", + }, + + // Edge cases + { + provider: "anthropic", + model: "claude-3-5-sonnet-20241022", + promptTokens: 0, + completionTokens: 0, + expectedCost: 0, + description: "Zero tokens", + }, + { + provider: "anthropic", + model: "claude-3-5-sonnet-20241022", + promptTokens: 1000, + completionTokens: 0, + expectedCost: 0.003, + description: "Only input tokens", + }, + { + provider: "anthropic", + model: "claude-3-5-sonnet-20241022", + promptTokens: 0, + completionTokens: 500, + expectedCost: 0.0075, + description: "Only output tokens", + }, + + // Case insensitivity + { + provider: "ANTHROPIC", + model: "claude-3-5-sonnet-20241022", + promptTokens: 1000, + completionTokens: 500, + expectedCost: 0.0105, + description: "Provider name case insensitive", + }, + + // Unknown models/providers + { + provider: "anthropic", + model: "claude-unknown-model", + promptTokens: 1000, + completionTokens: 500, + expectedCost: null, + description: "Unknown Anthropic model", + }, + { + provider: "google", + model: "gemini-pro", + promptTokens: 1000, + completionTokens: 500, + expectedCost: null, + description: "Unknown provider", + }, + ]; + + testCases.forEach( + ({ + provider, + model, + promptTokens, + completionTokens, + cachedTokens, + cacheWriteTokens, + expectedCost, + description, + }) => { + it(description || `${provider}/${model}`, () => { + const usage: Usage = { + promptTokens, + completionTokens, + promptTokensDetails: + cachedTokens || cacheWriteTokens + ? { + cachedTokens, + cacheWriteTokens, + } + : undefined, + }; + + const result = calculateRequestCost(provider, model, usage); + + if (expectedCost === null) { + expect(result).toBeNull(); + } else { + expect(result).not.toBeNull(); + expect(result!.cost).toBeCloseTo(expectedCost, 6); + } + }); + }, + ); +}); diff --git a/core/package-lock.json b/core/package-lock.json index 53a2e7f52..ba8ded170 100644 --- a/core/package-lock.json +++ b/core/package-lock.json @@ -19,7 +19,7 @@ "@continuedev/llm-info": "file:../packages/llm-info", "@continuedev/openai-adapters": "file:../packages/openai-adapters", "@continuedev/terminal-security": "file:../packages/terminal-security", - "@modelcontextprotocol/sdk": "^1.12.0", + "@modelcontextprotocol/sdk": "^1.24.0", "@mozilla/readability": "^0.5.0", "@octokit/rest": "^20.1.1", "@sentry/cli": "^2.50.2", @@ -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", @@ -221,11 +221,12 @@ "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.929.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", + "@google/genai": "^1.30.0", "dotenv": "^16.5.0", "google-auth-library": "^10.4.1", "json-schema": "^0.4.0", @@ -4350,34 +4351,64 @@ ] }, "node_modules/@modelcontextprotocol/sdk": { - "version": "1.12.0", - "resolved": "https://registry.npmjs.org/@modelcontextprotocol/sdk/-/sdk-1.12.0.tgz", - "integrity": "sha512-m//7RlINx1F3sz3KqwY1WWzVgTcYX52HYk4bJ1hkBXV3zccAEth+jRvG8DBRrdaQuRsPAJOx2MH3zaHNCKL7Zg==", + "version": "1.24.1", + "resolved": "https://registry.npmjs.org/@modelcontextprotocol/sdk/-/sdk-1.24.1.tgz", + "integrity": "sha512-YTg4v6bKSst8EJM8NXHC3nGm8kgHD08IbIBbognUeLAgGLVgLpYrgQswzLQd4OyTL4l614ejhqsDrV1//t02Qw==", + "license": "MIT", "dependencies": { - "ajv": "^6.12.6", + "ajv": "^8.17.1", + "ajv-formats": "^3.0.1", "content-type": "^1.0.5", "cors": "^2.8.5", "cross-spawn": "^7.0.5", "eventsource": "^3.0.2", + "eventsource-parser": "^3.0.0", "express": "^5.0.1", "express-rate-limit": "^7.5.0", + "jose": "^6.1.1", "pkce-challenge": "^5.0.0", "raw-body": "^3.0.0", - "zod": "^3.23.8", - "zod-to-json-schema": "^3.24.1" + "zod": "^3.25 || ^4.0", + "zod-to-json-schema": "^3.25.0" }, "engines": { "node": ">=18" + }, + "peerDependencies": { + "@cfworker/json-schema": "^4.1.1", + "zod": "^3.25 || ^4.0" + }, + "peerDependenciesMeta": { + "@cfworker/json-schema": { + "optional": true + }, + "zod": { + "optional": false + } } }, - "node_modules/@modelcontextprotocol/sdk/node_modules/zod-to-json-schema": { - "version": "3.24.1", - "resolved": "https://registry.npmjs.org/zod-to-json-schema/-/zod-to-json-schema-3.24.1.tgz", - "integrity": "sha512-3h08nf3Vw3Wl3PK+q3ow/lIil81IT2Oa7YpQyUUDsEWbXveMesdfK1xBd2RhCkynwZndAxixji/7SYJJowr62w==", - "peerDependencies": { - "zod": "^3.24.1" + "node_modules/@modelcontextprotocol/sdk/node_modules/ajv": { + "version": "8.17.1", + "resolved": "https://registry.npmjs.org/ajv/-/ajv-8.17.1.tgz", + "integrity": "sha512-B/gBuNg5SiMTrPkC+A2+cW0RszwxYmn6VYxB/inlBStS5nx6xHIt/ehKRhIMhqusl7a8LjQoZnjCs5vhwxOQ1g==", + "license": "MIT", + "dependencies": { + "fast-deep-equal": "^3.1.3", + "fast-uri": "^3.0.1", + "json-schema-traverse": "^1.0.0", + "require-from-string": "^2.0.2" + }, + "funding": { + "type": "github", + "url": "https://github.com/sponsors/epoberezkin" } }, + "node_modules/@modelcontextprotocol/sdk/node_modules/json-schema-traverse": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/json-schema-traverse/-/json-schema-traverse-1.0.0.tgz", + "integrity": "sha512-NM8/P9n3XjXhIZn1lLhkFaACTOURQXjWhV4BA/RnOv8xvgqtqpAX9IO4mRQxSx1Rlo4tqzeqb0sOlruaOy3dug==", + "license": "MIT" + }, "node_modules/@mozilla/readability": { "version": "0.5.0", "resolved": "https://registry.npmjs.org/@mozilla/readability/-/readability-0.5.0.tgz", @@ -7772,6 +7803,45 @@ "url": "https://github.com/sponsors/epoberezkin" } }, + "node_modules/ajv-formats": { + "version": "3.0.1", + "resolved": "https://registry.npmjs.org/ajv-formats/-/ajv-formats-3.0.1.tgz", + "integrity": "sha512-8iUql50EUR+uUcdRQ3HDqa6EVyo3docL8g5WJ3FNcWmu62IbkGUue/pEyLBW8VGKKucTPgqeks4fIU1DA4yowQ==", + "license": "MIT", + "dependencies": { + "ajv": "^8.0.0" + }, + "peerDependencies": { + "ajv": "^8.0.0" + }, + "peerDependenciesMeta": { + "ajv": { + "optional": true + } + } + }, + "node_modules/ajv-formats/node_modules/ajv": { + "version": "8.17.1", + "resolved": "https://registry.npmjs.org/ajv/-/ajv-8.17.1.tgz", + "integrity": "sha512-B/gBuNg5SiMTrPkC+A2+cW0RszwxYmn6VYxB/inlBStS5nx6xHIt/ehKRhIMhqusl7a8LjQoZnjCs5vhwxOQ1g==", + "license": "MIT", + "dependencies": { + "fast-deep-equal": "^3.1.3", + "fast-uri": "^3.0.1", + "json-schema-traverse": "^1.0.0", + "require-from-string": "^2.0.2" + }, + "funding": { + "type": "github", + "url": "https://github.com/sponsors/epoberezkin" + } + }, + "node_modules/ajv-formats/node_modules/json-schema-traverse": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/json-schema-traverse/-/json-schema-traverse-1.0.0.tgz", + "integrity": "sha512-NM8/P9n3XjXhIZn1lLhkFaACTOURQXjWhV4BA/RnOv8xvgqtqpAX9IO4mRQxSx1Rlo4tqzeqb0sOlruaOy3dug==", + "license": "MIT" + }, "node_modules/ansi-escapes": { "version": "4.3.2", "resolved": "https://registry.npmjs.org/ansi-escapes/-/ansi-escapes-4.3.2.tgz", @@ -8584,7 +8654,8 @@ "node_modules/buffer-equal-constant-time": { "version": "1.0.1", "resolved": "https://registry.npmjs.org/buffer-equal-constant-time/-/buffer-equal-constant-time-1.0.1.tgz", - "integrity": "sha512-zRpUiDwd/xk6ADqPMATG8vc9VPrkck7T07OIx0gnjmJAnHnTVXNQG3vfvWNuiZIkwu9KrKdA1iJKfsfTVxE6NA==" + "integrity": "sha512-zRpUiDwd/xk6ADqPMATG8vc9VPrkck7T07OIx0gnjmJAnHnTVXNQG3vfvWNuiZIkwu9KrKdA1iJKfsfTVxE6NA==", + "license": "BSD-3-Clause" }, "node_modules/buffer-from": { "version": "1.1.2", @@ -11237,6 +11308,22 @@ "resolved": "https://registry.npmjs.org/fast-levenshtein/-/fast-levenshtein-2.0.6.tgz", "integrity": "sha512-DCXu6Ifhqcks7TZKY3Hxp3y6qphY5SJZmrWMDrKcERSOXWQdMhU9Ig/PYrzyw/ul9jOIyh0N4M0tbC5hodg8dw==" }, + "node_modules/fast-uri": { + "version": "3.1.0", + "resolved": "https://registry.npmjs.org/fast-uri/-/fast-uri-3.1.0.tgz", + "integrity": "sha512-iPeeDKJSWf4IEOasVVrknXpaBV0IApz/gp7S2bb7Z4Lljbl2MGJRqInZiUrQwV16cpzw/D3S5j5Julj/gT52AA==", + "funding": [ + { + "type": "github", + "url": "https://github.com/sponsors/fastify" + }, + { + "type": "opencollective", + "url": "https://opencollective.com/fastify" + } + ], + "license": "BSD-3-Clause" + }, "node_modules/fast-xml-parser": { "version": "4.4.1", "resolved": "https://registry.npmjs.org/fast-xml-parser/-/fast-xml-parser-4.4.1.tgz", @@ -14018,6 +14105,15 @@ "jinjajs": "cli.js" } }, + "node_modules/jose": { + "version": "6.1.3", + "resolved": "https://registry.npmjs.org/jose/-/jose-6.1.3.tgz", + "integrity": "sha512-0TpaTfihd4QMNwrz/ob2Bp7X04yuxJkjRGi4aKmOqwhov54i6u79oCv7T+C7lo70MKH6BesI3vscD1yb/yzKXQ==", + "license": "MIT", + "funding": { + "url": "https://github.com/sponsors/panva" + } + }, "node_modules/js-md4": { "version": "0.3.2", "resolved": "https://registry.npmjs.org/js-md4/-/js-md4-0.3.2.tgz", @@ -14183,21 +14279,23 @@ } }, "node_modules/jsonwebtoken/node_modules/jwa": { - "version": "1.4.1", - "resolved": "https://registry.npmjs.org/jwa/-/jwa-1.4.1.tgz", - "integrity": "sha512-qiLX/xhEEFKUAJ6FiBMbes3w9ATzyk5W7Hvzpa/SLYdxNtng+gcurvrI7TbACjIXlsJyr05/S1oUhZrc63evQA==", + "version": "1.4.2", + "resolved": "https://registry.npmjs.org/jwa/-/jwa-1.4.2.tgz", + "integrity": "sha512-eeH5JO+21J78qMvTIDdBXidBd6nG2kZjg5Ohz/1fpa28Z4CcsWUzJ1ZZyFq/3z3N17aZy+ZuBoHljASbL1WfOw==", + "license": "MIT", "dependencies": { - "buffer-equal-constant-time": "1.0.1", + "buffer-equal-constant-time": "^1.0.1", "ecdsa-sig-formatter": "1.0.11", "safe-buffer": "^5.0.1" } }, "node_modules/jsonwebtoken/node_modules/jws": { - "version": "3.2.2", - "resolved": "https://registry.npmjs.org/jws/-/jws-3.2.2.tgz", - "integrity": "sha512-YHlZCB6lMTllWDtSPHz/ZXTsi8S00usEV6v1tjq8tOUZzw7DpSDWVXjXDre6ed1w/pd495ODpHZYSdkRTsa0HA==", + "version": "3.2.3", + "resolved": "https://registry.npmjs.org/jws/-/jws-3.2.3.tgz", + "integrity": "sha512-byiJ0FLRdLdSVSReO/U4E7RoEyOCKnEnEPMjq3HxWtvzLsV08/i5RQKsFVNkCldrCaPr2vDNAOMsfs8T/Hze7g==", + "license": "MIT", "dependencies": { - "jwa": "^1.4.1", + "jwa": "^1.4.2", "safe-buffer": "^5.0.1" } }, @@ -14227,21 +14325,23 @@ } }, "node_modules/jwa": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/jwa/-/jwa-2.0.0.tgz", - "integrity": "sha512-jrZ2Qx916EA+fq9cEAeCROWPTfCwi1IVHqT2tapuqLEVVDKFDENFw1oL+MwrTvH6msKxsd1YTDVw6uKEcsrLEA==", + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/jwa/-/jwa-2.0.1.tgz", + "integrity": "sha512-hRF04fqJIP8Abbkq5NKGN0Bbr3JxlQ+qhZufXVr0DvujKy93ZCbXZMHDL4EOtodSbCWxOqR8MS1tXA5hwqCXDg==", + "license": "MIT", "dependencies": { - "buffer-equal-constant-time": "1.0.1", + "buffer-equal-constant-time": "^1.0.1", "ecdsa-sig-formatter": "1.0.11", "safe-buffer": "^5.0.1" } }, "node_modules/jws": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/jws/-/jws-4.0.0.tgz", - "integrity": "sha512-KDncfTmOZoOMTFG4mBlG0qUIOlc03fmzH+ru6RgYVZhPkyiy/92Owlt/8UEN+a4TXR1FQetfIpJE8ApdvdVxTg==", + "version": "4.0.1", + "resolved": "https://registry.npmjs.org/jws/-/jws-4.0.1.tgz", + "integrity": "sha512-EKI/M/yqPncGUUh44xz0PxSidXFr/+r0pA70+gIYhjv+et7yxM+s29Y+VGDkovRofQem0fs7Uvf4+YmAdyRduA==", + "license": "MIT", "dependencies": { - "jwa": "^2.0.0", + "jwa": "^2.0.1", "safe-buffer": "^5.0.1" } }, @@ -14678,9 +14778,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": { @@ -17245,6 +17345,15 @@ "node": ">=0.10.0" } }, + "node_modules/require-from-string": { + "version": "2.0.2", + "resolved": "https://registry.npmjs.org/require-from-string/-/require-from-string-2.0.2.tgz", + "integrity": "sha512-Xf0nWe6RseziFMu+Ap9biiUbmplq6S9/p+7w7YXP/JBHhrUDDUhwa+vANyubuqfZWTveU//DYVGsDG7RKL/vEw==", + "license": "MIT", + "engines": { + "node": ">=0.10.0" + } + }, "node_modules/require-in-the-middle": { "version": "7.5.2", "resolved": "https://registry.npmjs.org/require-in-the-middle/-/require-in-the-middle-7.5.2.tgz", @@ -20398,6 +20507,15 @@ "url": "https://github.com/sponsors/colinhacks" } }, + "node_modules/zod-to-json-schema": { + "version": "3.25.0", + "resolved": "https://registry.npmjs.org/zod-to-json-schema/-/zod-to-json-schema-3.25.0.tgz", + "integrity": "sha512-HvWtU2UG41LALjajJrML6uQejQhNJx+JBO9IflpSja4R03iNWfKXrj6W2h7ljuLyc1nKS+9yDyL/9tD1U/yBnQ==", + "license": "ISC", + "peerDependencies": { + "zod": "^3.25 || ^4" + } + }, "node_modules/zwitch": { "version": "2.0.4", "resolved": "https://registry.npmjs.org/zwitch/-/zwitch-2.0.4.tgz", diff --git a/core/package.json b/core/package.json index 91e062bc1..1f73462d6 100644 --- a/core/package.json +++ b/core/package.json @@ -64,7 +64,7 @@ "@continuedev/llm-info": "file:../packages/llm-info", "@continuedev/openai-adapters": "file:../packages/openai-adapters", "@continuedev/terminal-security": "file:../packages/terminal-security", - "@modelcontextprotocol/sdk": "^1.12.0", + "@modelcontextprotocol/sdk": "^1.24.0", "@mozilla/readability": "^0.5.0", "@octokit/rest": "^20.1.1", "@sentry/cli": "^2.50.2", @@ -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/implementations/readFileRange.integration.vitest.ts b/core/tools/implementations/readFileRange.integration.vitest.ts index 945d03e41..72f9a13d0 100644 --- a/core/tools/implementations/readFileRange.integration.vitest.ts +++ b/core/tools/implementations/readFileRange.integration.vitest.ts @@ -1,6 +1,6 @@ import { expect, test, vi } from "vitest"; import { ToolExtras } from "../.."; -import { readFileRangeImpl } from "./readFileRange"; +import { MAX_CHAR_POSITION, readFileRangeImpl } from "./readFileRange"; // Mock the dependencies vi.mock("../../util/ideUtils", () => ({ @@ -76,7 +76,7 @@ test("readFileRangeImpl handles out-of-bounds ranges gracefully", async () => { "file:///test.txt", { start: { line: 99, character: 0 }, // 100 - 1 - end: { line: 104, character: Number.MAX_SAFE_INTEGER }, // 105 - 1 + end: { line: 104, character: MAX_CHAR_POSITION }, // 105 - 1 }, ); @@ -84,7 +84,7 @@ test("readFileRangeImpl handles out-of-bounds ranges gracefully", async () => { "file:///test.txt", { start: { line: 4, character: 0 }, // 5 - 1 - end: { line: 99, character: Number.MAX_SAFE_INTEGER }, // 100 - 1 + end: { line: 99, character: MAX_CHAR_POSITION }, // 100 - 1 }, ); }); @@ -199,6 +199,6 @@ test("readFileRangeImpl handles normal ranges correctly", async () => { // Verify correct 0-based conversion expect(mockIde.readRangeInFile).toHaveBeenCalledWith("file:///test.txt", { start: { line: 1, character: 0 }, // 2 - 1 - end: { line: 3, character: Number.MAX_SAFE_INTEGER }, // 4 - 1 + end: { line: 3, character: MAX_CHAR_POSITION }, // 4 - 1 }); }); diff --git a/core/tools/implementations/readFileRange.ts b/core/tools/implementations/readFileRange.ts index 7b5f47338..1facb4573 100644 --- a/core/tools/implementations/readFileRange.ts +++ b/core/tools/implementations/readFileRange.ts @@ -7,6 +7,10 @@ import { getNumberArg, getStringArg } from "../parseArgs"; import { throwIfFileExceedsHalfOfContext } from "./readFileLimit"; import { ContinueError, ContinueErrorReason } from "../../util/errors"; +// Use Int.MAX_VALUE from Java/Kotlin (2^31 - 1) instead of JavaScript's Number.MAX_SAFE_INTEGER +// to ensure compatibility with IntelliJ's Kotlin Position type which uses Int for character field +export const MAX_CHAR_POSITION = 2147483647; + export const readFileRangeImpl: ToolImpl = async (args, extras) => { const filepath = getStringArg(args, "filepath"); const startLine = getNumberArg(args, "startLine"); @@ -52,7 +56,7 @@ export const readFileRangeImpl: ToolImpl = async (args, extras) => { }, end: { line: endLine - 1, // Convert from 1-based to 0-based - character: Number.MAX_SAFE_INTEGER, // Read to end of line + character: MAX_CHAR_POSITION, // Read to end of line }, }); 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/history.ts b/core/util/history.ts index 65d7d53f0..cc1cf69cb 100644 --- a/core/util/history.ts +++ b/core/util/history.ts @@ -114,6 +114,9 @@ export class HistoryManager { if (session.chatModelTitle !== undefined) { orderedSession.chatModelTitle = session.chatModelTitle; } + if (session.usage !== undefined) { + orderedSession.usage = session.usage; + } fs.writeFileSync( getSessionFilePath(session.sessionId), 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/huggingfaceinferenceapi.mdx b/docs/customize/model-providers/more/huggingfaceinferenceapi.mdx deleted file mode 100644 index badaa36e5..000000000 --- a/docs/customize/model-providers/more/huggingfaceinferenceapi.mdx +++ /dev/null @@ -1,37 +0,0 @@ ---- -title: "Hugging Face" ---- - - - Get started with [Hugging Face Inference Endpoints](https://endpoints.huggingface.co/) - - -## Configuration - - - - ```yaml title="config.yaml" - models: - - name: - provider: huggingface-inference-api - model: - apiKey: - apiBase: - ``` - - - ```json title="config.json" - { - "models": [ - { - "title": "", - "provider": "huggingface-inference-api", - "model": "", - "apiKey": "", - "apiBase": "" - } - ] - } - ``` - - \ No newline at end of file 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/overview.mdx b/docs/customize/model-providers/overview.mdx index 5e55a255a..4bbf1c0dc 100644 --- a/docs/customize/model-providers/overview.mdx +++ b/docs/customize/model-providers/overview.mdx @@ -20,6 +20,7 @@ These are the most commonly used model providers that offer a wide range of capa | [xAI](/customize/model-providers/more/xAI) | Grok models from xAI | Chat, Edit, Apply | | [Vertex AI](/customize/model-providers/top-level/vertexai) | Google Cloud's machine learning platform | Chat, Edit, Apply, Embeddings | | [Inception](/customize/model-providers/top-level/inception) | On-premises open-source model runners | Chat, Edit, Apply | +| [HuggingFace](/customize/model-providers/top-level/huggingfaceinference) | Platform for open source models with inference providers and endpoints | Chat, Edit, Apply, Embeddings | ## Additional Model Providers @@ -37,7 +38,6 @@ Beyond the top-level providers, Continue supports many other options: | [Cohere](/customize/model-providers/more/cohere) | Models specialized for semantic search and text generation | | [NVIDIA](/customize/model-providers/more/nvidia) | GPU-accelerated model hosting | | [Cloudflare](/customize/model-providers/more/cloudflare) | Edge-based AI inference services | -| [HuggingFace](/customize/model-providers/more/huggingfaceinferenceapi) | Platform for open source models | ### Local Model Options 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/huggingfaceinference.mdx b/docs/customize/model-providers/top-level/huggingfaceinference.mdx new file mode 100644 index 000000000..2ee1fc41a --- /dev/null +++ b/docs/customize/model-providers/top-level/huggingfaceinference.mdx @@ -0,0 +1,89 @@ +--- +title: "Hugging Face" +--- + +Hugging Face is the main platform for sharing open AI models. It provides inference in two ways. [Inference Providers](https://huggingface.co/docs/inference-providers/index) and [Inference Endpoints](https://huggingface.co/docs/inference-endpoints/index). + +## Inference Providers + +Inference Providers is a serverless service powered by external inference providers and routed through Hugging Face and paid per token. + + + +You can access your access token from [Hugging Face](https://huggingface.co/settings/tokens) and prioritize your [providers in settings](https://huggingface.co/settings/inference-providers/overview). + + + + + + ```yaml title="config.yaml" + name: My Config + version: 0.0.1 + schema: v1 + + models: + - name: deepseek + provider: huggingface-inference-providers + model: deepseek-ai/DeepSeek-V3.2-Exp + apiKey: + apiBase: https://router.huggingface.co/v1 + ``` + + + ```json title="config.json" + { + "models": [ + { + "title": "deepseek", + "provider": "huggingface-inference-providers", + "model": "deepseek-ai/DeepSeek-V3.2-Exp", + "apiKey": "", + "apiBase": "https://router.huggingface.co/v1" + } + ] + } + ``` + + + +## Inference Endpoints + +Inference Endpoints is a dedicated service that allows you to run your open models dedicated hardware. It is a more advanced way to get inference from Hugging Face models where you have more control over the whole process. + + + +Before you can use Inference Endpoints, you need to create an endpoint. You can do this by going to [Inference Endpoints](https://endpoints.huggingface.co/burtenshaw/endpoints/dedicated) and clicking on "Create Endpoint". + + + + + + ```yaml title="config.yaml" + name: My Config + version: 0.0.1 + schema: v1 + + models: + - name: deepseek + provider: huggingface-inference-endpoints + model: + apiKey: + apiBase: https://.aws.endpoints.huggingface.cloud + ``` + + + ```json title="config.json" + { + "models": [ + { + "title": "deepseek", + "provider": "huggingface-inference-endpoints", + "model": "", + "apiKey": "", + "apiBase": "https://.aws.endpoints.huggingface.cloud" + } + ] + } + ``` + + \ No newline at end of file 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/docs.json b/docs/docs.json index 9e61f5d6c..afd202c95 100644 --- a/docs/docs.json +++ b/docs/docs.json @@ -184,6 +184,7 @@ "customize/model-providers/top-level/azure", "customize/model-providers/top-level/bedrock", "customize/model-providers/top-level/gemini", + "customize/model-providers/top-level/huggingfaceinference", "customize/model-providers/top-level/inception", "customize/model-providers/top-level/lmstudio", "customize/model-providers/top-level/ollama", @@ -200,7 +201,6 @@ "customize/model-providers/more/deepseek", "customize/model-providers/more/deepinfra", "customize/model-providers/more/groq", - "customize/model-providers/more/huggingfaceinferenceapi", "customize/model-providers/more/llamacpp", "customize/model-providers/more/llamastack", "customize/model-providers/more/mistral", 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/index.mdx b/docs/index.mdx index e2b5d9a22..ca3054865 100644 --- a/docs/index.mdx +++ b/docs/index.mdx @@ -56,7 +56,7 @@ description: "Create, run, and automate AI agents across Mission Control, termin ```bash npm - npm install -g @continuedev/cli + npm i -g @continuedev/cli ``` ```bash yarn diff --git a/docs/package-lock.json b/docs/package-lock.json index 53f6f1cf9..a47fadd07 100644 --- a/docs/package-lock.json +++ b/docs/package-lock.json @@ -7063,40 +7063,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 +7126,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", 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/docs/telemetry.mdx b/docs/telemetry.mdx index b566d046b..12dc39bf2 100644 --- a/docs/telemetry.mdx +++ b/docs/telemetry.mdx @@ -36,15 +36,15 @@ Alternatively in VS Code, you can disable telemetry through your VS Code setting ### CLI -For `cn`, the Continue CLI, set the environment variable `CONTINUE_ALLOW_ANONYMOUS_TELEMETRY=0` before running commands: +For `cn`, the Continue CLI, set the environment variable `CONTINUE_TELEMETRY_ENABLED=0` before running commands: ```bash -export CONTINUE_ALLOW_ANONYMOUS_TELEMETRY=0 +export CONTINUE_TELEMETRY_ENABLED=0 cn ``` Or run it inline: ```bash -CONTINUE_ALLOW_ANONYMOUS_TELEMETRY=0 cn -``` +CONTINUE_TELEMETRY_ENABLED=0 cn +``` \ No newline at end of file diff --git a/extensions/cli/docs/artifact-uploads.md b/extensions/cli/docs/artifact-uploads.md new file mode 100644 index 000000000..66928adb2 --- /dev/null +++ b/extensions/cli/docs/artifact-uploads.md @@ -0,0 +1,335 @@ +# Artifact Upload Architecture + +## Overview + +The artifact upload feature enables Continue agents running in devboxes to upload arbitrary files (screenshots, videos, logs) to agent session storage for review and debugging purposes. The architecture uses a two-step presigned URL pattern for secure, performant uploads. + +## Architecture Pattern: Presigned URLs + +### Why Presigned URLs? + +The artifact upload system uses **presigned URLs** for direct client-to-S3 uploads rather than proxying files through the backend. This design provides several benefits: + +1. **Security**: The backend controls who can upload, validates file types/sizes, and enforces storage limits before issuing a presigned URL. The agent cannot bypass these validations. + +2. **Performance**: Files upload directly from the devbox to S3, avoiding bandwidth costs and latency of routing through the backend API server. + +3. **Scalability**: The backend doesn't become a bottleneck for file uploads. S3 handles the heavy lifting of data transfer. + +4. **Simplicity**: Presigned URLs are time-limited (15 minutes), self-contained credentials that require no complex token management. + +## Two-Step Upload Flow + +### Step 1: Request Presigned URL + +The agent requests a presigned upload URL from the backend: + +**Request:** + +```http +POST /agents/artifacts/upload-url +Authorization: Bearer +Content-Type: application/json + +{ + "agentSessionId": "", + "filename": "screenshot.png", + "contentType": "image/png", + "fileSize": 1048576 +} +``` + +**Backend Validation:** + +- Authenticates the API key and verifies session ownership +- Validates filename (no path traversal, allowed extension) +- Validates file size against per-file limit (50MB default) +- Validates content type against allowlist +- Checks total session storage against limit (500MB default) + +**Response (if validation passes):** + +```json +{ + "url": "https://s3.amazonaws.com/bucket/sessions/org/abc123/artifacts/screenshot.png?X-Amz-...", + "key": "sessions/org/abc123/artifacts/screenshot.png", + "expiresIn": 900 +} +``` + +**Response (if validation fails):** + +```http +400 Bad Request + +{ + "error": "File size exceeds maximum allowed (50MB)" +} +``` + +### Step 2: Upload to S3 + +The agent uploads the file directly to S3 using the presigned URL: + +**Request:** + +```http +PUT +Content-Type: image/png + +``` + +S3 validates the presigned URL signature and accepts the upload. The backend is not involved in this step. + +## Storage Organization + +Artifacts are stored in S3 with the following path structure: + +``` +sessions/ + user/ + / + / + artifacts/ + screenshot.png + video.mp4 + debug.log + session.json # Session state (existing) + diff.txt # Git diff (existing) + org/ + / + / + artifacts/ + ... +``` + +This structure: + +- Maintains backward compatibility with existing `session.json` and `diff.txt` files +- Isolates user/org data for security +- Groups all session-related files together +- Allows simple recursive deletion when a session is removed + +## File Type and Size Limits + +### Allowed File Types + +The system validates both file extensions and MIME types: + +**Images:** `.png`, `.jpg`, `.jpeg`, `.gif`, `.webp` +**Videos:** `.mp4`, `.mov`, `.avi`, `.webm` +**Text/Logs:** `.log`, `.txt`, `.json`, `.xml`, `.csv`, `.html` + +Content types are validated against an allowlist to prevent uploading executable files or other potentially dangerous content. + +### Size Limits + +Two limits are enforced: + +1. **Per-File Limit:** 50MB (configurable via `ARTIFACT_MAX_FILE_SIZE_MB`) +2. **Total Session Storage:** 500MB (configurable via `ARTIFACT_MAX_TOTAL_SIZE_MB`) + +The backend calculates total storage by summing all files under the session's S3 prefix before issuing presigned URLs. This prevents a single session from consuming excessive storage. + +## CLI Usage + +### Using the UploadArtifact Tool (Recommended) + +The `UploadArtifact` tool is available when running with the beta flag: + +```bash +cn serve --id --beta-upload-artifact-tool +``` + +Agents can then use the built-in `UploadArtifact` tool to upload files: + +```typescript +// The agent calls this tool with the file path +{ + "name": "UploadArtifact", + "parameters": { + "filePath": "/tmp/screenshot.png" + } +} +``` + +The tool will: + +- Validate the file exists and is an allowed type +- Check file size limits (50MB max per file) +- Upload to session storage +- Return success message or detailed error + +**Tool Description:** "Upload a file (screenshot, video, log) to the session artifacts for user review. Supported formats: images (png, jpg, jpeg, gif, webp), videos (mp4, mov, avi, webm), and text files (log, txt, json, xml, csv, html). Maximum file size: 50MB. **If an artifact with the same filename already exists, it will be overwritten with the new file.**" + +**Requirements:** + +- Must run with `--id ` (agent mode) +- Must enable `--beta-upload-artifact-tool` flag +- User must be authenticated (`cn login`) + +### Programmatic Upload (Service API) + +For custom implementations, use the service directly: + +```typescript +import { services } from "./services/index.js"; + +const result = await services.artifactUpload.uploadArtifact({ + agentSessionId: process.env.AGENT_SESSION_ID, + filePath: "/tmp/screenshot.png", + accessToken: process.env.CONTINUE_API_KEY, +}); + +if (result.success) { + console.log(`Uploaded: ${result.filename}`); +} else { + console.error(`Failed: ${result.error}`); +} +``` + +### Multiple Files + +```typescript +const results = await services.artifactUpload.uploadArtifacts( + process.env.AGENT_SESSION_ID, + ["/tmp/screenshot1.png", "/tmp/screenshot2.png", "/tmp/debug.log"], + process.env.CONTINUE_API_KEY, +); + +results.forEach((result) => { + console.log(`${result.filename}: ${result.success ? "✓" : "✗"}`); +}); +``` + +## Environment Variables + +The CLI requires these environment variables for artifact uploads: + +- `CONTINUE_API_KEY`: Bearer token for backend authentication +- `CONTINUE_API_BASE`: API base URL (defaults to `https://api.continue.dev/`) +- `AGENT_SESSION_ID`: The current agent session identifier + +These are automatically provided when running in Continue's devbox environment. + +## Error Handling + +### Validation Errors (400) + +- Invalid filename (path traversal, disallowed extension) +- File too large (exceeds per-file limit) +- Storage limit exceeded (session total > 500MB) +- Invalid content type + +### Authentication Errors (401/403) + +- Missing or invalid API key +- User doesn't own the agent session + +### Upload Errors (S3) + +- Network failure during upload +- Presigned URL expired (15-minute timeout) +- S3 service error + +All errors are logged and returned with descriptive messages. Failed uploads don't crash the agent - they return an error result that the agent can handle gracefully. + +## Frontend Access + +The frontend can list and download artifacts using: + +**List artifacts:** + +```http +GET /agents/{agentSessionId}/artifacts +Authorization: Bearer + +Response: +{ + "artifacts": [ + { + "filename": "screenshot.png", + "size": 1048576, + "sizeFormatted": "1.0 MB", + "lastModified": "2025-12-08T10:30:00Z" + } + ] +} +``` + +**Download artifact:** + +```http +GET /agents/{agentSessionId}/artifacts/{filename}/download +Authorization: Bearer + +Response: +{ + "url": "https://s3.amazonaws.com/...", + "expiresIn": 3600 +} +``` + +The frontend then uses the presigned download URL to fetch the artifact directly from S3. + +## Security Considerations + +1. **Authentication**: All endpoints require valid API keys tied to user/org accounts +2. **Authorization**: Session ownership is verified before issuing presigned URLs +3. **Path Traversal Prevention**: Filenames are validated to prevent `../` attacks +4. **Content Validation**: File types are restricted via extension and MIME type checks +5. **Rate Limiting**: Storage limits prevent abuse (per-file and total session limits) +6. **Time-Limited URLs**: Presigned URLs expire after 15 minutes for uploads, 1 hour for downloads +7. **Storage Isolation**: Files are scoped to user/org prefixes, preventing cross-tenant access + +## Design Trade-offs + +### Chosen: No Database Tracking + +**Decision:** Store artifacts as files in S3 without tracking individual files in the database. + +**Rationale:** + +- Simpler implementation (no new database tables) +- Files are the source of truth (no sync issues between DB and S3) +- Fast listing via S3 API (ListObjects) +- Automatic cleanup when deleting session folder + +**Trade-off:** Cannot query artifacts across sessions or track metadata without scanning S3. + +### Chosen: Overwrite on Name Collision + +**Decision:** If the same filename is uploaded twice, the last upload wins. + +**Rationale:** + +- Simpler than versioning or auto-renaming +- Common use case: agent re-uploading updated screenshot +- Reduces storage consumption + +**Trade-off:** No version history for artifacts. + +### Chosen: Direct S3 Upload (Presigned URLs) + +**Decision:** Use presigned URLs instead of proxying files through backend. + +**Rationale:** + +- Better performance (no backend bottleneck) +- Lower cost (no backend bandwidth charges) +- Proven pattern (already used in StorageSyncService) + +**Trade-off:** Backend cannot inspect file contents before upload (relies on validation at URL generation). + +## Future Enhancements + +- **Compression**: Automatically compress screenshots/videos before upload +- **Retention Policies**: Auto-delete artifacts after N days +- **Artifact Types**: Support more file types (PDFs, archives) +- **Preview Generation**: Generate thumbnails for images/videos +- **Streaming**: Support large file uploads with multipart upload +- **Metadata**: Attach custom metadata to artifacts (tags, descriptions) + +--- + +This document describes the initial artifact upload implementation. Update it when the architecture evolves. diff --git a/extensions/cli/package-lock.json b/extensions/cli/package-lock.json index 69b92bac8..7b8d0eb54 100644 --- a/extensions/cli/package-lock.json +++ b/extensions/cli/package-lock.json @@ -23,7 +23,7 @@ "@continuedev/openai-adapters": "file:../../packages/openai-adapters", "@continuedev/sdk": "^0.0.13", "@continuedev/terminal-security": "file:../../packages/terminal-security", - "@modelcontextprotocol/sdk": "^1.17.2", + "@modelcontextprotocol/sdk": "^1.24.0", "@opentelemetry/api": "^1.9.0", "@opentelemetry/exporter-metrics-otlp-grpc": "^0.203.0", "@opentelemetry/exporter-metrics-otlp-http": "^0.203.0", @@ -129,7 +129,7 @@ "@continuedev/llm-info": "file:../packages/llm-info", "@continuedev/openai-adapters": "file:../packages/openai-adapters", "@continuedev/terminal-security": "file:../packages/terminal-security", - "@modelcontextprotocol/sdk": "^1.12.0", + "@modelcontextprotocol/sdk": "^1.24.0", "@mozilla/readability": "^0.5.0", "@octokit/rest": "^20.1.1", "@sentry/cli": "^2.50.2", @@ -188,7 +188,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", @@ -268,16 +268,17 @@ }, "../../packages/openai-adapters": { "name": "@continuedev/openai-adapters", - "version": "1.15.0", + "version": "1.32.0", "dev": true, "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.929.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", + "@google/genai": "^1.30.0", "dotenv": "^16.5.0", "google-auth-library": "^10.4.1", "json-schema": "^0.4.0", @@ -1634,13 +1635,14 @@ "license": "BSD-2-Clause" }, "node_modules/@modelcontextprotocol/sdk": { - "version": "1.17.4", - "resolved": "https://registry.npmjs.org/@modelcontextprotocol/sdk/-/sdk-1.17.4.tgz", - "integrity": "sha512-zq24hfuAmmlNZvik0FLI58uE5sriN0WWsQzIlYnzSuKDAHFqJtBFrl/LfB1NLgJT5Y7dEBzaX4yAKqOPrcetaw==", + "version": "1.24.1", + "resolved": "https://registry.npmjs.org/@modelcontextprotocol/sdk/-/sdk-1.24.1.tgz", + "integrity": "sha512-YTg4v6bKSst8EJM8NXHC3nGm8kgHD08IbIBbognUeLAgGLVgLpYrgQswzLQd4OyTL4l614ejhqsDrV1//t02Qw==", "dev": true, "license": "MIT", "dependencies": { - "ajv": "^6.12.6", + "ajv": "^8.17.1", + "ajv-formats": "^3.0.1", "content-type": "^1.0.5", "cors": "^2.8.5", "cross-spawn": "^7.0.5", @@ -1648,15 +1650,62 @@ "eventsource-parser": "^3.0.0", "express": "^5.0.1", "express-rate-limit": "^7.5.0", + "jose": "^6.1.1", "pkce-challenge": "^5.0.0", "raw-body": "^3.0.0", - "zod": "^3.23.8", - "zod-to-json-schema": "^3.24.1" + "zod": "^3.25 || ^4.0", + "zod-to-json-schema": "^3.25.0" }, "engines": { "node": ">=18" + }, + "peerDependencies": { + "@cfworker/json-schema": "^4.1.1", + "zod": "^3.25 || ^4.0" + }, + "peerDependenciesMeta": { + "@cfworker/json-schema": { + "optional": true + }, + "zod": { + "optional": false + } } }, + "node_modules/@modelcontextprotocol/sdk/node_modules/ajv": { + "version": "8.17.1", + "resolved": "https://registry.npmjs.org/ajv/-/ajv-8.17.1.tgz", + "integrity": "sha512-B/gBuNg5SiMTrPkC+A2+cW0RszwxYmn6VYxB/inlBStS5nx6xHIt/ehKRhIMhqusl7a8LjQoZnjCs5vhwxOQ1g==", + "dev": true, + "license": "MIT", + "dependencies": { + "fast-deep-equal": "^3.1.3", + "fast-uri": "^3.0.1", + "json-schema-traverse": "^1.0.0", + "require-from-string": "^2.0.2" + }, + "funding": { + "type": "github", + "url": "https://github.com/sponsors/epoberezkin" + } + }, + "node_modules/@modelcontextprotocol/sdk/node_modules/jose": { + "version": "6.1.3", + "resolved": "https://registry.npmjs.org/jose/-/jose-6.1.3.tgz", + "integrity": "sha512-0TpaTfihd4QMNwrz/ob2Bp7X04yuxJkjRGi4aKmOqwhov54i6u79oCv7T+C7lo70MKH6BesI3vscD1yb/yzKXQ==", + "dev": true, + "license": "MIT", + "funding": { + "url": "https://github.com/sponsors/panva" + } + }, + "node_modules/@modelcontextprotocol/sdk/node_modules/json-schema-traverse": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/json-schema-traverse/-/json-schema-traverse-1.0.0.tgz", + "integrity": "sha512-NM8/P9n3XjXhIZn1lLhkFaACTOURQXjWhV4BA/RnOv8xvgqtqpAX9IO4mRQxSx1Rlo4tqzeqb0sOlruaOy3dug==", + "dev": true, + "license": "MIT" + }, "node_modules/@mswjs/interceptors": { "version": "0.39.6", "resolved": "https://registry.npmjs.org/@mswjs/interceptors/-/interceptors-0.39.6.tgz", @@ -6330,6 +6379,48 @@ "url": "https://github.com/sponsors/epoberezkin" } }, + "node_modules/ajv-formats": { + "version": "3.0.1", + "resolved": "https://registry.npmjs.org/ajv-formats/-/ajv-formats-3.0.1.tgz", + "integrity": "sha512-8iUql50EUR+uUcdRQ3HDqa6EVyo3docL8g5WJ3FNcWmu62IbkGUue/pEyLBW8VGKKucTPgqeks4fIU1DA4yowQ==", + "dev": true, + "license": "MIT", + "dependencies": { + "ajv": "^8.0.0" + }, + "peerDependencies": { + "ajv": "^8.0.0" + }, + "peerDependenciesMeta": { + "ajv": { + "optional": true + } + } + }, + "node_modules/ajv-formats/node_modules/ajv": { + "version": "8.17.1", + "resolved": "https://registry.npmjs.org/ajv/-/ajv-8.17.1.tgz", + "integrity": "sha512-B/gBuNg5SiMTrPkC+A2+cW0RszwxYmn6VYxB/inlBStS5nx6xHIt/ehKRhIMhqusl7a8LjQoZnjCs5vhwxOQ1g==", + "dev": true, + "license": "MIT", + "dependencies": { + "fast-deep-equal": "^3.1.3", + "fast-uri": "^3.0.1", + "json-schema-traverse": "^1.0.0", + "require-from-string": "^2.0.2" + }, + "funding": { + "type": "github", + "url": "https://github.com/sponsors/epoberezkin" + } + }, + "node_modules/ajv-formats/node_modules/json-schema-traverse": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/json-schema-traverse/-/json-schema-traverse-1.0.0.tgz", + "integrity": "sha512-NM8/P9n3XjXhIZn1lLhkFaACTOURQXjWhV4BA/RnOv8xvgqtqpAX9IO4mRQxSx1Rlo4tqzeqb0sOlruaOy3dug==", + "dev": true, + "license": "MIT" + }, "node_modules/ansi-escapes": { "version": "7.0.0", "resolved": "https://registry.npmjs.org/ansi-escapes/-/ansi-escapes-7.0.0.tgz", @@ -6656,24 +6747,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": { @@ -8021,9 +8133,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" @@ -9410,19 +9522,20 @@ } }, "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", "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", @@ -9543,6 +9656,23 @@ "dev": true, "license": "MIT" }, + "node_modules/fast-uri": { + "version": "3.1.0", + "resolved": "https://registry.npmjs.org/fast-uri/-/fast-uri-3.1.0.tgz", + "integrity": "sha512-iPeeDKJSWf4IEOasVVrknXpaBV0IApz/gp7S2bb7Z4Lljbl2MGJRqInZiUrQwV16cpzw/D3S5j5Julj/gT52AA==", + "dev": true, + "funding": [ + { + "type": "github", + "url": "https://github.com/sponsors/fastify" + }, + { + "type": "opencollective", + "url": "https://opencollective.com/fastify" + } + ], + "license": "BSD-3-Clause" + }, "node_modules/fastq": { "version": "1.19.1", "resolved": "https://registry.npmjs.org/fastq/-/fastq-1.19.1.tgz", @@ -10487,30 +10617,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": { @@ -16353,19 +16477,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": { @@ -16395,9 +16536,9 @@ } }, "node_modules/react": { - "version": "19.1.1", - "resolved": "https://registry.npmjs.org/react/-/react-19.1.1.tgz", - "integrity": "sha512-w8nqGImo45dmMIfljjMwOGtbmC/mk4CMYhWIicdSflH91J9TyCyczcPFXJzrZ/ZXcgGRFeP6BU0BEJTw6tZdfQ==", + "version": "19.2.1", + "resolved": "https://registry.npmjs.org/react/-/react-19.2.1.tgz", + "integrity": "sha512-DGrYcCWK7tvYMnWh79yrPHt+vdx9tY+1gPZa7nJQtO/p8bLTDaHp4dzwEhQB7pZ4Xe3ok4XKuEPrVuc+wlpkmw==", "dev": true, "license": "MIT", "engines": { @@ -16405,19 +16546,27 @@ } }, "node_modules/react-dom": { - "version": "19.1.1", - "resolved": "https://registry.npmjs.org/react-dom/-/react-dom-19.1.1.tgz", - "integrity": "sha512-Dlq/5LAZgF0Gaz6yiqZCf6VCcZs1ghAJyrsu84Q/GT0gV+mCxbfmKNoGRKBYMJ8IEdGPqu49YWXD02GCknEDkw==", + "version": "19.2.1", + "resolved": "https://registry.npmjs.org/react-dom/-/react-dom-19.2.1.tgz", + "integrity": "sha512-ibrK8llX2a4eOskq1mXKu/TGZj9qzomO+sNfO98M6d9zIPOEhlBkMkBUBLd1vgS0gQsLDBzA+8jJBVXDnfHmJg==", "dev": true, "license": "MIT", "peer": true, "dependencies": { - "scheduler": "^0.26.0" + "scheduler": "^0.27.0" }, "peerDependencies": { - "react": "^19.1.1" + "react": "^19.2.1" } }, + "node_modules/react-dom/node_modules/scheduler": { + "version": "0.27.0", + "resolved": "https://registry.npmjs.org/scheduler/-/scheduler-0.27.0.tgz", + "integrity": "sha512-eNv+WrVbKu1f3vbYJT/xtiF5syA5HPIMtf9IgY/nKg0sWqzAUEvqY/xm7OcZc/qafLx/iO9FgOmeSAp4v5ti/Q==", + "dev": true, + "license": "MIT", + "peer": true + }, "node_modules/react-is": { "version": "17.0.2", "resolved": "https://registry.npmjs.org/react-is/-/react-is-17.0.2.tgz", @@ -16583,6 +16732,16 @@ "node": ">=0.10.0" } }, + "node_modules/require-from-string": { + "version": "2.0.2", + "resolved": "https://registry.npmjs.org/require-from-string/-/require-from-string-2.0.2.tgz", + "integrity": "sha512-Xf0nWe6RseziFMu+Ap9biiUbmplq6S9/p+7w7YXP/JBHhrUDDUhwa+vANyubuqfZWTveU//DYVGsDG7RKL/vEw==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=0.10.0" + } + }, "node_modules/require-in-the-middle": { "version": "7.5.2", "resolved": "https://registry.npmjs.org/require-in-the-middle/-/require-in-the-middle-7.5.2.tgz", @@ -19660,13 +19819,13 @@ } }, "node_modules/zod-to-json-schema": { - "version": "3.24.6", - "resolved": "https://registry.npmjs.org/zod-to-json-schema/-/zod-to-json-schema-3.24.6.tgz", - "integrity": "sha512-h/z3PKvcTcTetyjl1fkj79MHNEjm+HpD6NXheWjzOekY7kV+lwDYnHw+ivHkijnCSMz1yJaWBD9vu/Fcmk+vEg==", + "version": "3.25.0", + "resolved": "https://registry.npmjs.org/zod-to-json-schema/-/zod-to-json-schema-3.25.0.tgz", + "integrity": "sha512-HvWtU2UG41LALjajJrML6uQejQhNJx+JBO9IflpSja4R03iNWfKXrj6W2h7ljuLyc1nKS+9yDyL/9tD1U/yBnQ==", "dev": true, "license": "ISC", "peerDependencies": { - "zod": "^3.24.1" + "zod": "^3.25 || ^4" } } } diff --git a/extensions/cli/package.json b/extensions/cli/package.json index 5debd98e5..3acb225ce 100644 --- a/extensions/cli/package.json +++ b/extensions/cli/package.json @@ -55,7 +55,7 @@ "@continuedev/openai-adapters": "file:../../packages/openai-adapters", "@continuedev/sdk": "^0.0.13", "@continuedev/terminal-security": "file:../../packages/terminal-security", - "@modelcontextprotocol/sdk": "^1.17.2", + "@modelcontextprotocol/sdk": "^1.24.0", "@opentelemetry/api": "^1.9.0", "@opentelemetry/exporter-metrics-otlp-grpc": "^0.203.0", "@opentelemetry/exporter-metrics-otlp-http": "^0.203.0", diff --git a/extensions/cli/spec/otlp-metrics.md b/extensions/cli/spec/otlp-metrics.md index a3900f700..af3e2e703 100644 --- a/extensions/cli/spec/otlp-metrics.md +++ b/extensions/cli/spec/otlp-metrics.md @@ -17,17 +17,18 @@ The Continue CLI should emit metrics that provide insights into: ### Environment Variables -| Environment Variable | Description | Example Values | -| ------------------------------- | --------------------------------------------------------- | ------------------------------------ | -| `CONTINUE_CLI_ENABLE_TELEMETRY` | Enables OTEL telemetry collection (required) | `1` | -| `OTEL_METRICS_EXPORTER` | Metrics exporter type(s) (comma-separated) | `console`, `otlp`, `prometheus` | -| `OTEL_LOGS_EXPORTER` | Logs/events exporter type(s) (comma-separated) | `console`, `otlp` | -| `OTEL_EXPORTER_OTLP_PROTOCOL` | Protocol for OTLP exporter (all signals) | `grpc`, `http/json`, `http/protobuf` | -| `OTEL_EXPORTER_OTLP_ENDPOINT` | OTLP collector endpoint (all signals) | `http://localhost:4317` | -| `OTEL_EXPORTER_OTLP_HEADERS` | Authentication headers for OTLP | `Authorization=Bearer token` | -| `OTEL_METRIC_EXPORT_INTERVAL` | Export interval in milliseconds (default: 60000) | `5000`, `60000` | -| `OTEL_LOGS_EXPORT_INTERVAL` | Logs export interval in milliseconds (default: 5000) | `1000`, `10000` | -| `OTEL_LOG_USER_PROMPTS` | Enable logging of user prompt content (default: disabled) | `1` to enable | +| Environment Variable | Description | Example Values | +| ------------------------------- | --------------------------------------------------------------- | ------------------------------------ | +| `CONTINUE_METRICS_ENABLED` | Enables OTEL telemetry collection (preferred, takes precedence) | `0` to disable, `1` to enable | +| `CONTINUE_CLI_ENABLE_TELEMETRY` | Enables OTEL telemetry collection (legacy, lower precedence) | `0` to disable, `1` to enable | +| `OTEL_METRICS_EXPORTER` | Metrics exporter type(s) (comma-separated) | `console`, `otlp`, `prometheus` | +| `OTEL_LOGS_EXPORTER` | Logs/events exporter type(s) (comma-separated) | `console`, `otlp` | +| `OTEL_EXPORTER_OTLP_PROTOCOL` | Protocol for OTLP exporter (all signals) | `grpc`, `http/json`, `http/protobuf` | +| `OTEL_EXPORTER_OTLP_ENDPOINT` | OTLP collector endpoint (all signals) | `http://localhost:4317` | +| `OTEL_EXPORTER_OTLP_HEADERS` | Authentication headers for OTLP | `Authorization=Bearer token` | +| `OTEL_METRIC_EXPORT_INTERVAL` | Export interval in milliseconds (default: 60000) | `5000`, `60000` | +| `OTEL_LOGS_EXPORT_INTERVAL` | Logs export interval in milliseconds (default: 5000) | `1000`, `10000` | +| `OTEL_LOG_USER_PROMPTS` | Enable logging of user prompt content (default: disabled) | `1` to enable | ### Metrics Cardinality Control diff --git a/extensions/cli/spec/shell-mode.md b/extensions/cli/spec/shell-mode.md index 06ad477e9..dd5c2dc18 100644 --- a/extensions/cli/spec/shell-mode.md +++ b/extensions/cli/spec/shell-mode.md @@ -27,6 +27,8 @@ Interaction with other input helpers - "/" slash command UI is disabled. - When in slash command mode (input starts with /): - "@" file search suggestions are disabled. + - Enter submits the highlighted slash command directly (except /title, which requires Tab to select first). + - Tab selects the highlighted command without submitting. Submission behavior @@ -44,8 +46,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/spec/telemtry.md b/extensions/cli/spec/telemtry.md index e5f4d76f8..8c3a1796d 100644 --- a/extensions/cli/spec/telemtry.md +++ b/extensions/cli/spec/telemtry.md @@ -4,7 +4,7 @@ - Used by Continue for product metrics (not used by customers) - uses public posthog key in repo -- CONTINUE_ALLOW_ANONYMOUS_TELEMETRY can be set to 0 to disable +- `CONTINUE_TELEMETRY_ENABLED=0` disables telemetry - non-anonymous and private data like code is never sent to posthog - Event user ids are the Continue user id is signed in, or a unique machine id if not - Current events are slash command usage and chat calls diff --git a/extensions/cli/src/__mocks__/services/index.ts b/extensions/cli/src/__mocks__/services/index.ts index 5df13605a..1050040e5 100644 --- a/extensions/cli/src/__mocks__/services/index.ts +++ b/extensions/cli/src/__mocks__/services/index.ts @@ -1,4 +1,3 @@ -import { ToolPermissionService } from "src/services/ToolPermissionService.js"; import { vi } from "vitest"; export const services = { @@ -8,7 +7,18 @@ export const services = { switchOrganization: vi.fn(() => Promise.resolve({})), getAvailableOrganizations: vi.fn(() => Promise.resolve([])), }, - toolPermissions: vi.mocked(new ToolPermissionService()), + toolPermissions: { + isAllowed: vi.fn(() => Promise.resolve(true)), + shouldAsk: vi.fn(() => Promise.resolve(false)), + handleToolCall: vi.fn(() => Promise.resolve({ allowed: true })), + }, + artifactUpload: { + uploadArtifact: vi.fn(() => + Promise.resolve({ success: true, filename: "test.png" }), + ), + uploadArtifacts: vi.fn(() => Promise.resolve([])), + getState: vi.fn(() => ({ uploadsInProgress: 0, lastError: null })), + }, }; export const reloadService = vi.fn(() => Promise.resolve(undefined)); @@ -27,4 +37,5 @@ export const SERVICE_NAMES = { UPDATE: "update", STORAGE_SYNC: "storageSync", AGENT_FILE: "agentFile", + ARTIFACT_UPLOAD: "artifactUpload", } as const; diff --git a/extensions/cli/src/auth/uriUtils.test.ts b/extensions/cli/src/auth/uriUtils.test.ts new file mode 100644 index 000000000..8195b3e0f --- /dev/null +++ b/extensions/cli/src/auth/uriUtils.test.ts @@ -0,0 +1,266 @@ +import { platform } from "os"; +import { normalize, resolve } from "path"; + +import { describe, expect, it } from "vitest"; + +import { pathToUri, slugToUri, uriToPath, uriToSlug } from "./uriUtils.js"; + +describe("uriUtils", () => { + describe("pathToUri", () => { + it("should convert Unix-style absolute paths to file URIs", () => { + const unixPath = "/home/user/documents/file.txt"; + const result = pathToUri(unixPath); + expect(result).toMatch(/^file:\/\/\//); + expect(result).toContain("file.txt"); + }); + + it("should convert Unix-style relative paths to file URIs", () => { + const relativePath = "./documents/file.txt"; + const result = pathToUri(relativePath); + expect(result).toMatch(/^file:\/\/\//); + expect(result).toContain("file.txt"); + }); + + it("should handle Windows-style paths with drive letters", () => { + const windowsPath = "C:\\Users\\user\\Documents\\file.txt"; + const result = pathToUri(windowsPath); + expect(result).toMatch(/^file:\/\/\//); + expect(result).toContain("file.txt"); + // Windows paths should be converted to forward slashes in URI + if (platform() === "win32") { + expect(result).toContain("C:"); + } + }); + + it("should handle Windows UNC paths", () => { + const uncPath = "\\\\server\\share\\folder\\file.txt"; + const result = pathToUri(uncPath); + // UNC paths produce file://server/share/... format (two slashes, not three) + expect(result).toMatch(/^file:\/\//); + expect(result).toContain("file.txt"); + }); + + it("should handle paths with special characters", () => { + const pathWithSpaces = "/home/user/my documents/file with spaces.txt"; + const result = pathToUri(pathWithSpaces); + expect(result).toMatch(/^file:\/\/\//); + // Spaces should be properly encoded + expect(result).toContain("file%20with%20spaces.txt"); + }); + + it("should handle paths with Unicode characters", () => { + const unicodePath = "/home/user/文档/файл.txt"; + const result = pathToUri(unicodePath); + expect(result).toMatch(/^file:\/\/\//); + // Should handle Unicode properly + expect(result).toContain("%E6%96%87%E6%A1%A3"); // 文档 encoded + }); + + it("should normalize mixed path separators", () => { + const mixedPath = "/home/user\\documents/file.txt"; + const result = pathToUri(mixedPath); + expect(result).toMatch(/^file:\/\/\//); + expect(result).toContain("file.txt"); + }); + + it("should handle empty string", () => { + const result = pathToUri(""); + expect(result).toMatch(/^file:\/\/\//); + }); + + it("should handle current directory", () => { + const result = pathToUri("."); + expect(result).toMatch(/^file:\/\/\//); + }); + }); + + describe("uriToPath", () => { + it("should convert file URIs to Unix-style paths", () => { + const uri = "file:///home/user/documents/file.txt"; + const result = uriToPath(uri); + // On Windows, Unix-style URIs without a drive letter are invalid + if (platform() === "win32") { + expect(result).toBeNull(); + } else { + expect(result).toBeTruthy(); + expect(result).toContain("file.txt"); + expect(result).toBe("/home/user/documents/file.txt"); + } + }); + + it("should convert Windows file URIs to Windows paths", () => { + const uri = "file:///C:/Users/user/Documents/file.txt"; + const result = uriToPath(uri); + expect(result).toBeTruthy(); + expect(result).toContain("file.txt"); + if (platform() === "win32") { + expect(result).toContain("C:"); + // fileURLToPath returns paths with single backslashes as separators + expect(result).toContain("\\"); + } + }); + + it("should handle URIs with encoded special characters", () => { + const uri = "file:///home/user/my%20documents/file%20with%20spaces.txt"; + const result = uriToPath(uri); + // Note: This test may fail on Windows if the URI lacks a drive letter + if (result) { + expect(result).toContain("my documents"); + expect(result).toContain("file with spaces.txt"); + } + }); + + it("should handle URIs with Unicode characters", () => { + const uri = "file:///home/user/%E6%96%87%E6%A1%A3/%E6%96%87%E4%BB%B6.txt"; + const result = uriToPath(uri); + // Note: This test may fail on Windows if the URI lacks a drive letter + if (result) { + expect(result).toContain("文档"); + expect(result).toContain("文件.txt"); + } + }); + + it("should return null for non-file URIs", () => { + const httpUri = "http://example.com/file.txt"; + const result = uriToPath(httpUri); + expect(result).toBeNull(); + }); + + it("should return null for malformed URIs", () => { + const malformedUri = "file://invalid-uri"; + const result = uriToPath(malformedUri); + // On Windows, file://invalid-uri is interpreted as a UNC path + // On Unix, it may throw an error and return null, or parse successfully + if (platform() === "win32") { + // Windows interprets this as \\invalid-uri + expect(result).toBeTruthy(); + } + // On other platforms behavior varies, so we don't assert + }); + + it("should handle UNC paths on Windows", () => { + const uri = "file://server/share/folder/file.txt"; + const result = uriToPath(uri); + if (platform() === "win32") { + expect(result).toBeTruthy(); + expect(result).toContain("file.txt"); + } + // On Unix systems, this format is not valid and behavior is undefined + }); + + it("should return null for empty URI", () => { + const result = uriToPath(""); + expect(result).toBeNull(); + }); + + it("should handle root directory URI", () => { + const uri = "file:///"; + const result = uriToPath(uri); + // On Windows, file:/// without a drive letter may fail + // On Unix, it should return / + if (platform() !== "win32") { + expect(result).toBe("/"); + } + // Skip assertion on Windows as behavior is platform-specific + }); + }); + + describe("round-trip conversion", () => { + const testPaths = [ + "/home/user/documents/file.txt", // Unix absolute + "./relative/path/file.txt", // Relative + "../parent/file.txt", // Parent relative + "/tmp/file with spaces.txt", // Spaces + "/home/用户/文档/文件.txt", // Unicode + ]; + + // Add Windows-specific paths if running on Windows + const windowsPaths = [ + "C:\\Users\\user\\Documents\\file.txt", // Windows absolute + "D:\\Program Files\\app\\file.exe", // Program Files + "\\\\server\\share\\file.txt", // UNC path + ]; + + const allPaths = + platform() === "win32" ? [...testPaths, ...windowsPaths] : testPaths; + + allPaths.forEach((originalPath) => { + it(`should maintain path integrity for: ${originalPath}`, () => { + const uri = pathToUri(originalPath); + const roundTripPath = uriToPath(uri); + + expect(roundTripPath).toBeTruthy(); + + // Normalize both paths for comparison since path separators might differ + const normalizedOriginal = normalize(resolve(originalPath)); + const normalizedRoundTrip = normalize(roundTripPath!); + + expect(normalizedRoundTrip).toBe(normalizedOriginal); + }); + }); + }); + + describe("slugToUri", () => { + it("should convert slug to URI", () => { + const slug = "my-awesome-project"; + const result = slugToUri(slug); + expect(result).toBe("slug://my-awesome-project"); + }); + + it("should handle empty slug", () => { + const slug = ""; + const result = slugToUri(slug); + expect(result).toBe("slug://"); + }); + + it("should handle slug with special characters", () => { + const slug = "my-project_123"; + const result = slugToUri(slug); + expect(result).toBe("slug://my-project_123"); + }); + }); + + describe("uriToSlug", () => { + it("should extract slug from URI", () => { + const uri = "slug://my-awesome-project"; + const result = uriToSlug(uri); + expect(result).toBe("my-awesome-project"); + }); + + it("should return null for non-slug URIs", () => { + const uri = "file:///path/to/file"; + const result = uriToSlug(uri); + expect(result).toBeNull(); + }); + + it("should handle empty slug URI", () => { + const uri = "slug://"; + const result = uriToSlug(uri); + expect(result).toBe(""); + }); + + it("should return null for malformed URI", () => { + const uri = "slug:/missing-slash"; + const result = uriToSlug(uri); + expect(result).toBeNull(); + }); + }); + + describe("slug round-trip conversion", () => { + const testSlugs = [ + "simple-slug", + "complex_slug-123", + "", + "a", + "very-long-slug-name-with-many-parts", + ]; + + testSlugs.forEach((originalSlug) => { + it(`should maintain slug integrity for: "${originalSlug}"`, () => { + const uri = slugToUri(originalSlug); + const roundTripSlug = uriToSlug(uri); + expect(roundTripSlug).toBe(originalSlug); + }); + }); + }); +}); diff --git a/extensions/cli/src/auth/uriUtils.ts b/extensions/cli/src/auth/uriUtils.ts index 832c01298..135b542ee 100644 --- a/extensions/cli/src/auth/uriUtils.ts +++ b/extensions/cli/src/auth/uriUtils.ts @@ -1,9 +1,13 @@ +import { normalize } from "path"; +import { fileURLToPath, pathToFileURL } from "url"; + /** * URI utility functions for auth config */ export function pathToUri(path: string): string { - return `file://${path}`; + const normalizedPath = normalize(path); + return pathToFileURL(normalizedPath).href; } export function slugToUri(slug: string): string { @@ -14,7 +18,11 @@ export function uriToPath(uri: string): string | null { if (!uri.startsWith("file://")) { return null; } - return uri.slice(7); + try { + return fileURLToPath(uri); + } catch { + return null; + } } export function uriToSlug(uri: string): string | null { diff --git a/extensions/cli/src/commands/BaseCommandOptions.ts b/extensions/cli/src/commands/BaseCommandOptions.ts index 9c457d066..40db1aa7a 100644 --- a/extensions/cli/src/commands/BaseCommandOptions.ts +++ b/extensions/cli/src/commands/BaseCommandOptions.ts @@ -23,6 +23,8 @@ export interface BaseCommandOptions { exclude?: string[]; /** Agent file slug from the hub (--agent) */ agent?: string; + /** Enable beta UploadArtifact tool */ + betaUploadArtifactTool?: boolean; } /** diff --git a/extensions/cli/src/commands/devbox-entrypoint.md b/extensions/cli/src/commands/devbox-entrypoint.md new file mode 100644 index 000000000..bd4382058 --- /dev/null +++ b/extensions/cli/src/commands/devbox-entrypoint.md @@ -0,0 +1,12 @@ +# Devbox entrypoint behavior (cn serve) + +Context: runloop resumes a devbox by re-running the same entrypoint script, which invokes `cn serve --id ...`. Because the entrypoint always replays, the CLI must avoid duplicating state on restart. + +- **Session reuse:** `serve` now calls `loadOrCreateSessionById` when `--id` is provided so the same session file is reused instead of generating a new UUID. This keeps chat history intact across suspend/resume. +- **Skip replaying the initial prompt:** `shouldQueueInitialPrompt` checks existing history and only queues the initial prompt when there are no non-system messages. This prevents the first prompt from being resent when a suspended devbox restarts. +- **Environment persistence:** The devbox entrypoint (control-plane) writes all env vars to `~/.continue/devbox-env` and sources it before `cn serve`, so keys survive suspend/resume. The CLI assumes env is already present. + +Operational notes: + +- Changing the entrypoint is expensive; prefer adapting CLI/session behavior as above. +- When testing suspend/resume, confirm a single session file under `~/.continue/sessions` for the agent id and that follow-up messages append normally without replaying the first prompt. diff --git a/extensions/cli/src/commands/serve.initialPrompt.test.ts b/extensions/cli/src/commands/serve.initialPrompt.test.ts new file mode 100644 index 000000000..6e11b4571 --- /dev/null +++ b/extensions/cli/src/commands/serve.initialPrompt.test.ts @@ -0,0 +1,30 @@ +import type { ChatHistoryItem } from "core/index.js"; +import { describe, expect, it } from "vitest"; + +import { shouldQueueInitialPrompt } from "./serve.js"; + +const systemOnly: ChatHistoryItem[] = [ + { message: { role: "system", content: "sys" }, contextItems: [] }, +]; + +const withConversation: ChatHistoryItem[] = [ + ...systemOnly, + { message: { role: "user", content: "hi" }, contextItems: [] }, + { message: { role: "assistant", content: "hello" }, contextItems: [] }, +]; + +describe("shouldQueueInitialPrompt", () => { + it("returns false when no prompt is provided", () => { + expect(shouldQueueInitialPrompt([], undefined)).toBe(false); + expect(shouldQueueInitialPrompt([], null)).toBe(false); + }); + + it("returns true when prompt exists and only system history is present", () => { + expect(shouldQueueInitialPrompt([], "prompt")).toBe(true); + expect(shouldQueueInitialPrompt(systemOnly, "prompt")).toBe(true); + }); + + it("returns false when prompt exists but conversation already has non-system messages", () => { + expect(shouldQueueInitialPrompt(withConversation, "prompt")).toBe(false); + }); +}); diff --git a/extensions/cli/src/commands/serve.ts b/extensions/cli/src/commands/serve.ts index 684ae7e6e..f77e86f41 100644 --- a/extensions/cli/src/commands/serve.ts +++ b/extensions/cli/src/commands/serve.ts @@ -23,12 +23,16 @@ import { ConfigServiceState, ModelServiceState, } from "../services/types.js"; -import { createSession, getCompleteStateSnapshot } from "../session.js"; +import { + createSession, + getCompleteStateSnapshot, + loadOrCreateSessionById, +} from "../session.js"; 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"; @@ -47,6 +51,26 @@ interface ServeOptions extends ExtendedCommandOptions { id?: string; } +/** + * Decide whether to enqueue the initial prompt on server startup. + * We only want to send it when starting a brand-new session; if any non-system + * messages already exist (e.g., after resume), skip to avoid replaying. + */ +export function shouldQueueInitialPrompt( + history: ChatHistoryItem[], + prompt?: string | null, +): boolean { + if (!prompt) { + return false; + } + + // If there are any non-system messages, we already have conversation context + const hasConversation = history.some( + (item) => item.message.role !== "system", + ); + return !hasConversation; +} + // eslint-disable-next-line max-statements export async function serve(prompt?: string, options: ServeOptions = {}) { await posthogService.capture("sessionStart", {}); @@ -142,7 +166,11 @@ export async function serve(prompt?: string, options: ServeOptions = {}) { }); } - const session = createSession(initialHistory); + const trimmedId = options.id?.trim(); + const session = + trimmedId && trimmedId.length > 0 + ? loadOrCreateSessionById(trimmedId, initialHistory) + : createSession(initialHistory); // Align ChatHistoryService with server session and enable remote mode try { @@ -355,9 +383,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); @@ -402,10 +439,28 @@ export async function serve(prompt?: string, options: ServeOptions = {}) { agentFileState?.agentFile?.prompt, actualPrompt, ); + if (initialPrompt) { - console.log(chalk.dim("\nProcessing initial prompt...")); - await messageQueue.enqueueMessage(initialPrompt); - processMessages(state, llmApi); + const existingHistory = + (() => { + try { + return services.chatHistory.getHistory(); + } catch { + return state.session.history; + } + })() ?? []; + + if (shouldQueueInitialPrompt(existingHistory, initialPrompt)) { + logger.info(chalk.dim("\nProcessing initial prompt...")); + await messageQueue.enqueueMessage(initialPrompt); + processMessages(state, llmApi); + } else { + logger.info( + chalk.dim( + "Skipping initial prompt because existing conversation history was found.", + ), + ); + } } }); @@ -470,6 +525,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 +593,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 +625,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/index.ts b/extensions/cli/src/index.ts index fe9c849d5..4ed87837d 100644 --- a/extensions/cli/src/index.ts +++ b/extensions/cli/src/index.ts @@ -379,6 +379,10 @@ program "--id ", "Upload session snapshots to Continue-managed storage using the provided identifier", ) + .option( + "--beta-upload-artifact-tool", + "Enable beta UploadArtifact tool for uploading screenshots, videos, and logs", + ) .action(async (prompt, options) => { // Telemetry: record command invocation await posthogService.capture("cliCommand", { command: "serve" }); diff --git a/extensions/cli/src/services/ArtifactUploadService.ts b/extensions/cli/src/services/ArtifactUploadService.ts new file mode 100644 index 000000000..116179bc9 --- /dev/null +++ b/extensions/cli/src/services/ArtifactUploadService.ts @@ -0,0 +1,273 @@ +import * as fs from "fs"; +import * as path from "path"; + +import { env } from "../env.js"; +import { formatError } from "../util/formatError.js"; +import { logger } from "../util/logger.js"; + +import { BaseService } from "./BaseService.js"; +import type { ArtifactUploadServiceState } from "./types.js"; + +/** + * Response from backend when requesting a presigned upload URL + */ +type ArtifactPresignedUrlResponse = { + url: string; + key: string; + expiresIn: number; +}; + +/** + * Options for uploading an artifact file + */ +export interface ArtifactUploadOptions { + /** The agent session ID to upload to */ + agentSessionId: string; + /** Path to the file to upload */ + filePath: string; + /** Optional content type (auto-detected from extension if not provided) */ + contentType?: string; + /** Access token for authentication */ + accessToken: string; +} + +/** + * Result of an artifact upload attempt + */ +export interface ArtifactUploadResult { + success: boolean; + filename: string; + error?: string; +} + +/** + * Service for uploading artifact files (screenshots, videos, logs) to agent sessions. + * + * Architecture: + * 1. Request presigned URL from backend API + * 2. Upload file directly to S3 using presigned URL + * 3. Backend validates file size, type, and storage limits before issuing URL + * + * This two-step process provides security (backend controls access) and performance + * (direct S3 upload without proxying through backend). + */ +export class ArtifactUploadService extends BaseService { + constructor() { + super("artifactUpload", { + uploadsInProgress: 0, + lastError: null, + }); + } + + async doInitialize(): Promise { + return this.getState(); + } + + /** + * Upload an artifact file to an agent session. + * + * @param options Upload options including session ID, file path, and auth token + * @returns Upload result with success status and error if failed + */ + async uploadArtifact( + options: ArtifactUploadOptions, + ): Promise { + const filename = path.basename(options.filePath); + + // Validate file exists + if (!fs.existsSync(options.filePath)) { + const error = `File not found: ${options.filePath}`; + logger.error(error); + return { success: false, filename, error }; + } + + // Get file stats + const stats = fs.statSync(options.filePath); + const fileSizeBytes = stats.size; + + // Detect content type if not provided + const contentType = options.contentType ?? this.inferContentType(filename); + + this.setState({ + uploadsInProgress: this.currentState.uploadsInProgress + 1, + lastError: null, + }); + + try { + // Step 1: Request presigned URL from backend + logger.info(`Requesting upload URL for artifact: ${filename}`); + const presignedData = await this.requestPresignedUploadUrl( + options.agentSessionId, + filename, + contentType, + fileSizeBytes, + options.accessToken, + ); + + if (!presignedData) { + const error = "Failed to obtain presigned upload URL"; + this.setState({ + uploadsInProgress: this.currentState.uploadsInProgress - 1, + lastError: error, + }); + return { success: false, filename, error }; + } + + // Step 2: Upload file directly to S3 + logger.info(`Uploading artifact to S3: ${filename}`); + await this.uploadFileToS3( + presignedData.url, + options.filePath, + contentType, + ); + + logger.info(`Successfully uploaded artifact: ${filename}`); + this.setState({ + uploadsInProgress: this.currentState.uploadsInProgress - 1, + lastError: null, + }); + + return { success: true, filename }; + } catch (error) { + const errorMsg = formatError(error); + logger.error(`Failed to upload artifact ${filename}: ${errorMsg}`); + this.setState({ + uploadsInProgress: this.currentState.uploadsInProgress - 1, + lastError: errorMsg, + }); + return { success: false, filename, error: errorMsg }; + } + } + + /** + * Upload multiple artifacts in parallel. + * + * @param agentSessionId The agent session ID + * @param filePaths Array of file paths to upload + * @param accessToken Access token for authentication + * @returns Array of upload results + */ + async uploadArtifacts( + agentSessionId: string, + filePaths: string[], + accessToken: string, + ): Promise { + const uploadPromises = filePaths.map((filePath) => + this.uploadArtifact({ + agentSessionId, + filePath, + accessToken, + }), + ); + + return Promise.all(uploadPromises); + } + + /** + * Request a presigned URL from the backend API for uploading an artifact. + */ + private async requestPresignedUploadUrl( + agentSessionId: string, + filename: string, + contentType: string, + fileSizeBytes: number, + accessToken: string, + ): Promise { + const url = new URL("agents/artifacts/upload-url", env.apiBase); + + try { + const response = await fetch(url, { + method: "POST", + headers: { + "Content-Type": "application/json", + Authorization: `Bearer ${accessToken}`, + }, + body: JSON.stringify({ + agentSessionId, + filename, + contentType, + fileSize: fileSizeBytes, + }), + }); + + if (!response.ok) { + const errorData = await response.json().catch(() => ({})); + const errorMsg = + errorData.error || `${response.status} ${response.statusText}`; + logger.warn(`Failed to get presigned upload URL: ${errorMsg}`); + return null; + } + + const data = (await response.json()) as ArtifactPresignedUrlResponse; + + if (!data.url) { + logger.warn("Presigned URL response missing required 'url' field"); + return null; + } + + return data; + } catch (error) { + logger.warn( + `Error requesting presigned upload URL: ${formatError(error)}`, + ); + return null; + } + } + + /** + * Upload a file to S3 using a presigned URL. + */ + private async uploadFileToS3( + presignedUrl: string, + filePath: string, + contentType: string, + ): Promise { + // Read file contents + const fileBuffer = fs.readFileSync(filePath); + + // Upload to S3 + const response = await fetch(presignedUrl, { + method: "PUT", + headers: { + "Content-Type": contentType, + }, + body: fileBuffer, + }); + + if (!response.ok) { + const statusText = `${response.status} ${response.statusText}`.trim(); + const responseBody = await response.text(); + throw new Error(`S3 upload failed (${statusText}): ${responseBody}`); + } + } + + /** + * Infer content type from file extension. + */ + private inferContentType(filename: string): string { + const ext = path.extname(filename).toLowerCase(); + + const contentTypeMap: Record = { + // Images + ".png": "image/png", + ".jpg": "image/jpeg", + ".jpeg": "image/jpeg", + ".gif": "image/gif", + ".webp": "image/webp", + // Videos + ".mp4": "video/mp4", + ".mov": "video/quicktime", + ".avi": "video/x-msvideo", + ".webm": "video/webm", + // Text/Logs + ".log": "text/plain", + ".txt": "text/plain", + ".json": "application/json", + ".xml": "text/xml", + ".csv": "text/csv", + ".html": "text/html", + }; + + return contentTypeMap[ext] || "application/octet-stream"; + } +} 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/index.ts b/extensions/cli/src/services/index.ts index b9b11d9cf..ee79874e0 100644 --- a/extensions/cli/src/services/index.ts +++ b/extensions/cli/src/services/index.ts @@ -1,9 +1,11 @@ import { loadAuthConfig } from "../auth/workos.js"; import { initializeWithOnboarding } from "../onboarding.js"; +import { setBetaUploadArtifactToolEnabled } from "../tools/toolsConfig.js"; import { logger } from "../util/logger.js"; import { AgentFileService } from "./AgentFileService.js"; import { ApiClientService } from "./ApiClientService.js"; +import { ArtifactUploadService } from "./ArtifactUploadService.js"; import { AuthService } from "./AuthService.js"; import { ChatHistoryService } from "./ChatHistoryService.js"; import { ConfigService } from "./ConfigService.js"; @@ -43,6 +45,7 @@ const storageSyncService = new StorageSyncService(); const agentFileService = new AgentFileService(); const toolPermissionService = new ToolPermissionService(); const systemMessageService = new SystemMessageService(); +const artifactUploadService = new ArtifactUploadService(); /** * Initialize all services and register them with the service container @@ -52,6 +55,11 @@ export async function initializeServices(initOptions: ServiceInitOptions = {}) { logger.debug("Initializing service registry"); const commandOptions = initOptions.options || {}; + + // Configure beta tools based on command options + if (commandOptions.betaUploadArtifactTool) { + setBetaUploadArtifactToolEnabled(true); + } // Handle onboarding for TUI mode (headless: false) unless explicitly skipped if (!initOptions.headless && !initOptions.skipOnboarding) { const authConfig = loadAuthConfig(); @@ -290,6 +298,12 @@ export async function initializeServices(initOptions: ServiceInitOptions = {}) { [], ); + serviceContainer.register( + SERVICE_NAMES.ARTIFACT_UPLOAD, + () => artifactUploadService.initialize(), + [], + ); + serviceContainer.register( SERVICE_NAMES.CHAT_HISTORY, () => chatHistoryService.initialize(undefined, initOptions.headless), @@ -357,6 +371,7 @@ export const services = { storageSync: storageSyncService, agentFile: agentFileService, toolPermissions: toolPermissionService, + artifactUpload: artifactUploadService, } as const; // Export the service container for advanced usage diff --git a/extensions/cli/src/services/types.ts b/extensions/cli/src/services/types.ts index 8de9f26d9..f9f15f52a 100644 --- a/extensions/cli/src/services/types.ts +++ b/extensions/cli/src/services/types.ts @@ -125,6 +125,11 @@ export interface AgentFileServiceState { parsedRules: ReturnType | null; } +export interface ArtifactUploadServiceState { + uploadsInProgress: number; + lastError: string | null; +} + export type { ChatHistoryState } from "./ChatHistoryService.js"; export type { FileIndexServiceState } from "./FileIndexService.js"; @@ -145,6 +150,7 @@ export const SERVICE_NAMES = { UPDATE: "update", STORAGE_SYNC: "storageSync", AGENT_FILE: "agentFile", + ARTIFACT_UPLOAD: "artifactUpload", } as const; /** diff --git a/extensions/cli/src/session.test.ts b/extensions/cli/src/session.test.ts index 9ca3b4bd5..dc73922bd 100644 --- a/extensions/cli/src/session.test.ts +++ b/extensions/cli/src/session.test.ts @@ -10,6 +10,7 @@ import { createSession, getCurrentSession, hasSession, + loadOrCreateSessionById, loadSession, saveSession, startNewSession, @@ -36,17 +37,24 @@ vi.mock("./util/logger.js", () => ({ error: vi.fn(), }, })); -vi.mock("../../core/util/history.js", () => ({ - default: { - save: vi.fn(), - load: vi.fn(() => ({ - sessionId: "test-session-id", - title: "Test Session", - workspaceDirectory: "/test/workspace", - history: [], - })), - list: vi.fn(() => []), - }, +const mockHistoryManager: any = vi.hoisted(() => ({ + save: vi.fn((session: any) => { + // Mimic writing the session payload to disk so expectations on fs still work + fs.writeFileSync( + `/home/test/.continue/sessions/${session.sessionId}.json`, + JSON.stringify(session), + ); + }), + load: vi.fn(() => ({ + sessionId: "test-session-id", + title: "Test Session", + workspaceDirectory: "/test/workspace", + history: [], + })), + list: vi.fn(() => []), +})); +vi.mock("core/util/history.js", () => ({ + default: mockHistoryManager, })); const mockFs = vi.mocked(fs); @@ -71,6 +79,9 @@ describe("SessionManager", () => { mockFs.readFileSync.mockReturnValue("[]"); mockFs.readdirSync.mockReturnValue([]); mockFs.statSync.mockReturnValue({ mtime: new Date() } as any); + + // Ensure each test starts with a fresh session + clearSession(); }); describe("getCurrentSession", () => { @@ -82,6 +93,15 @@ describe("SessionManager", () => { title: "Untitled Session", workspaceDirectory: process.cwd(), history: [], + usage: { + promptTokens: 0, + completionTokens: 0, + totalCost: 0, + promptTokensDetails: { + cachedTokens: 0, + cacheWriteTokens: 0, + }, + }, }); }); @@ -102,6 +122,15 @@ describe("SessionManager", () => { title: "Untitled Session", workspaceDirectory: process.cwd(), history: [], + usage: { + promptTokens: 0, + completionTokens: 0, + totalCost: 0, + promptTokensDetails: { + cachedTokens: 0, + cacheWriteTokens: 0, + }, + }, }); }); @@ -127,6 +156,13 @@ describe("SessionManager", () => { expect(currentSession).toBe(session); }); + + it("should use provided sessionId when supplied", () => { + const session = createSession([], "custom-session-id"); + + expect(session.sessionId).toBe("custom-session-id"); + expect(uuidv4).not.toHaveBeenCalled(); + }); }); describe("updateSessionHistory", () => { @@ -217,6 +253,42 @@ describe("SessionManager", () => { }); }); + describe("loadOrCreateSessionById", () => { + it("should load an existing session and set it as current", () => { + const existingSession: Session = { + sessionId: "existing-id", + title: "Existing", + workspaceDirectory: "/test/workspace", + history: [ + { + message: { role: "user", content: "hi" }, + contextItems: [], + }, + ], + }; + + mockHistoryManager.load.mockReturnValue(existingSession); + + const session = loadOrCreateSessionById("existing-id"); + + expect(session).toBe(existingSession); + expect(mockHistoryManager.load).toHaveBeenCalledWith("existing-id"); + expect(getCurrentSession()).toBe(existingSession); + }); + + it("should create a new session when none exists for the id", () => { + mockHistoryManager.load.mockImplementation(() => { + throw new Error("not found"); + }); + + const session = loadOrCreateSessionById("new-id"); + + expect(session.sessionId).toBe("new-id"); + expect(session.history).toEqual([]); + expect(getCurrentSession()).toBe(session); + }); + }); + describe("loadSession", () => { it("should return null if session directory doesn't exist", () => { mockFs.existsSync.mockReturnValue(false); diff --git a/extensions/cli/src/session.ts b/extensions/cli/src/session.ts index 94b60d823..8a0173b95 100644 --- a/extensions/cli/src/session.ts +++ b/extensions/cli/src/session.ts @@ -6,6 +6,8 @@ import type { BaseSessionMetadata, ChatHistoryItem, Session, + SessionUsage, + Usage, } from "core/index.js"; import historyManager from "core/util/history.js"; import { v4 as uuidv4 } from "uuid"; @@ -75,6 +77,15 @@ export function getSessionFilePath(): string { class SessionManager { private static instance: SessionManager; private currentSession: Session | null = null; + private sessionUsage: SessionUsage = { + totalCost: 0, + promptTokens: 0, + completionTokens: 0, + promptTokensDetails: { + cachedTokens: 0, + cacheWriteTokens: 0, + }, + }; private constructor() {} @@ -97,6 +108,7 @@ class SessionManager { title: DEFAULT_SESSION_TITLE, workspaceDirectory: process.cwd(), history: [], + usage: { ...this.sessionUsage }, }; } return this.currentSession; @@ -104,6 +116,7 @@ class SessionManager { setSession(session: Session): void { this.currentSession = session; + this.syncUsageFromSession(); } updateHistory(history: ChatHistoryItem[]): void { @@ -120,6 +133,15 @@ class SessionManager { clear(): void { this.currentSession = null; + this.sessionUsage = { + totalCost: 0, + promptTokens: 0, + completionTokens: 0, + promptTokensDetails: { + cachedTokens: 0, + cacheWriteTokens: 0, + }, + }; } hasSession(): boolean { @@ -129,6 +151,63 @@ class SessionManager { getSessionId(): string { return this.getCurrentSession().sessionId; } + + trackUsage(cost: number, usage: Usage): void { + // Accumulate cost + this.sessionUsage.totalCost += cost; + + // Accumulate token counts + this.sessionUsage.promptTokens += usage.promptTokens; + this.sessionUsage.completionTokens += usage.completionTokens; + + // Accumulate cache tokens if present + if (usage.promptTokensDetails?.cachedTokens) { + this.sessionUsage.promptTokensDetails = + this.sessionUsage.promptTokensDetails || {}; + this.sessionUsage.promptTokensDetails.cachedTokens = + (this.sessionUsage.promptTokensDetails.cachedTokens || 0) + + usage.promptTokensDetails.cachedTokens; + } + + if (usage.promptTokensDetails?.cacheWriteTokens) { + this.sessionUsage.promptTokensDetails = + this.sessionUsage.promptTokensDetails || {}; + this.sessionUsage.promptTokensDetails.cacheWriteTokens = + (this.sessionUsage.promptTokensDetails.cacheWriteTokens || 0) + + usage.promptTokensDetails.cacheWriteTokens; + } + + // Update session and persist + const session = this.getCurrentSession(); + session.usage = { ...this.sessionUsage }; + saveSession(); // Persist immediately + } + + getTotalCost(): number { + return this.sessionUsage.totalCost; + } + + getUsage(): SessionUsage { + return { ...this.sessionUsage }; + } + + private syncUsageFromSession(): void { + const session = this.currentSession; + if (session?.usage) { + this.sessionUsage = { ...session.usage }; + } else { + // Migrate old sessions that only had totalCost + this.sessionUsage = { + totalCost: 0, + promptTokens: 0, + completionTokens: 0, + promptTokensDetails: { + cachedTokens: 0, + cacheWriteTokens: 0, + }, + }; + } + } } function getCurrentSessionId(): string { @@ -237,12 +316,24 @@ export function loadSession(): Session | null { /** * Create a new session */ -export function createSession(history: ChatHistoryItem[] = []): Session { +export function createSession( + history: ChatHistoryItem[] = [], + sessionId?: string, +): Session { const session: Session = { - sessionId: uuidv4(), + sessionId: sessionId ?? uuidv4(), title: DEFAULT_SESSION_TITLE, workspaceDirectory: process.cwd(), history, + usage: { + totalCost: 0, + promptTokens: 0, + completionTokens: 0, + promptTokensDetails: { + cachedTokens: 0, + cacheWriteTokens: 0, + }, + }, }; SessionManager.getInstance().setSession(session); return session; @@ -438,6 +529,24 @@ export function loadSessionById(sessionId: string): Session | null { } } +/** + * Load an existing session by ID or create a new one with that ID. + * Useful for long-lived processes (e.g., cn serve) that need to + * preserve chat history across restarts for the same storage/agent id. + */ +export function loadOrCreateSessionById( + sessionId: string, + history: ChatHistoryItem[] = [], +): Session { + const existing = loadSessionById(sessionId); + if (existing) { + SessionManager.getInstance().setSession(existing); + return existing; + } + + return createSession(history, sessionId); +} + /** * Update the current session's history */ @@ -474,8 +583,38 @@ export function startNewSession(history: ChatHistoryItem[] = []): Session { title: DEFAULT_SESSION_TITLE, workspaceDirectory: process.cwd(), history, + usage: { + totalCost: 0, + promptTokens: 0, + completionTokens: 0, + promptTokensDetails: { + cachedTokens: 0, + cacheWriteTokens: 0, + }, + }, }; manager.setSession(newSession); return newSession; } + +/** + * Track cost for the current session + */ +export function trackSessionUsage(cost: number, usage: Usage): void { + SessionManager.getInstance().trackUsage(cost, usage); +} + +/** + * Get the total cost for the current session + */ +export function getTotalSessionCost(): number { + return SessionManager.getInstance().getTotalCost(); +} + +/** + * Get the full usage statistics for the current session + */ +export function getSessionUsage(): SessionUsage { + return SessionManager.getInstance().getUsage(); +} diff --git a/extensions/cli/src/stream/streamChatResponse.autoCompaction.test.ts b/extensions/cli/src/stream/streamChatResponse.autoCompaction.test.ts index 528e28be2..1e0b6638a 100644 --- a/extensions/cli/src/stream/streamChatResponse.autoCompaction.test.ts +++ b/extensions/cli/src/stream/streamChatResponse.autoCompaction.test.ts @@ -18,11 +18,13 @@ vi.mock("../session.js", () => ({ })), saveSession: vi.fn(), updateSessionHistory: vi.fn(), + trackSessionUsage: vi.fn(), })); 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 +40,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 +150,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..42a6ec05f --- /dev/null +++ b/extensions/cli/src/stream/streamChatResponse.autoContinuation.test.ts @@ -0,0 +1,325 @@ +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(), + trackSessionUsage: 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.helpers.ts b/extensions/cli/src/stream/streamChatResponse.helpers.ts index e85cc2e7d..a60b10af4 100644 --- a/extensions/cli/src/stream/streamChatResponse.helpers.ts +++ b/extensions/cli/src/stream/streamChatResponse.helpers.ts @@ -1,6 +1,8 @@ // Helper functions extracted from streamChatResponse.ts to reduce file size +/* eslint-disable max-lines */ -import type { ToolStatus } from "core/index.js"; +import type { ToolStatus, Usage } from "core/index.js"; +import { calculateRequestCost } from "core/llm/utils/calculateRequestCost.js"; import { ContinueError, ContinueErrorReason } from "core/util/errors.js"; import { ChatCompletionToolMessageParam } from "openai/resources/chat/completions.mjs"; @@ -14,9 +16,9 @@ import { serviceContainer, services, } from "../services/index.js"; +import { trackSessionUsage } from "../session.js"; import { posthogService } from "../telemetry/posthogService.js"; import { telemetryService } from "../telemetry/telemetryService.js"; -import { calculateTokenCost } from "../telemetry/utils.js"; import { executeToolCall, getAllAvailableTools, @@ -241,6 +243,28 @@ export function processToolCallDelta( } } +// Helper function to detect provider from model name +function detectProvider(modelName: string): string { + const normalized = modelName.toLowerCase(); + if (normalized.includes("gpt") || normalized.includes("openai")) { + return "openai"; + } + if (normalized.includes("claude") || normalized.includes("anthropic")) { + return "anthropic"; + } + // Default to anthropic for backward compatibility + return "anthropic"; +} + +// Simple fallback cost calculation for unknown models +function calculateFallbackCost( + inputTokens: number, + outputTokens: number, +): number { + // Default pricing: $1/MTok input, $2/MTok output + return (inputTokens * 1 + outputTokens * 2) / 1_000_000; +} + // Helper function to record telemetry export function recordStreamTelemetry(options: { requestStartTime: number; @@ -249,6 +273,7 @@ export function recordStreamTelemetry(options: { outputTokens: number; model: any; tools?: any[]; + fullUsage?: any; }): number { const { requestStartTime, @@ -257,13 +282,73 @@ export function recordStreamTelemetry(options: { outputTokens, model, tools, + fullUsage, } = options; const totalDuration = responseEndTime - requestStartTime; - const cost = calculateTokenCost(inputTokens, outputTokens, model.model); - telemetryService.recordTokenUsage(inputTokens, "input", model.model); - telemetryService.recordTokenUsage(outputTokens, "output", model.model); + // Calculate cost using comprehensive pricing that includes caching + let cost: number; + let usage: Usage; + + if (fullUsage) { + // Transform API usage format to Usage interface + usage = { + promptTokens: fullUsage.prompt_tokens, + completionTokens: fullUsage.completion_tokens, + promptTokensDetails: fullUsage.prompt_tokens_details + ? { + cachedTokens: fullUsage.prompt_tokens_details.cache_read_tokens, + cacheWriteTokens: + fullUsage.prompt_tokens_details.cache_write_tokens, + } + : undefined, + }; + + // Detect provider and calculate cost + const provider = detectProvider(model.model); + const costBreakdown = calculateRequestCost(provider, model.model, usage); + + // Use fallback for unknown models + cost = + costBreakdown?.cost ?? + calculateFallbackCost( + fullUsage.prompt_tokens, + fullUsage.completion_tokens, + ); + } else { + // Fallback when fullUsage not available + usage = { + promptTokens: inputTokens, + completionTokens: outputTokens, + }; + cost = calculateFallbackCost(inputTokens, outputTokens); + } + + // Use tokens from fullUsage if available, otherwise use the passed params + const actualInputTokens = fullUsage?.prompt_tokens ?? inputTokens; + const actualOutputTokens = fullUsage?.completion_tokens ?? outputTokens; + + telemetryService.recordTokenUsage(actualInputTokens, "input", model.model); + telemetryService.recordTokenUsage(actualOutputTokens, "output", model.model); + + // Record cache tokens if available + if (fullUsage?.prompt_tokens_details?.cache_read_tokens) { + telemetryService.recordTokenUsage( + fullUsage.prompt_tokens_details.cache_read_tokens, + "cacheRead", + model.model, + ); + } + if (fullUsage?.prompt_tokens_details?.cache_write_tokens) { + telemetryService.recordTokenUsage( + fullUsage.prompt_tokens_details.cache_write_tokens, + "cacheCreation", + model.model, + ); + } + telemetryService.recordCost(cost, model.model); + trackSessionUsage(cost, usage); telemetryService.recordResponseTime( totalDuration, @@ -276,8 +361,8 @@ export function recordStreamTelemetry(options: { model: model.model, durationMs: totalDuration, success: true, - inputTokens, - outputTokens, + inputTokens: actualInputTokens, + outputTokens: actualOutputTokens, costUsd: cost, }); @@ -286,8 +371,8 @@ export function recordStreamTelemetry(options: { posthogService.capture("apiRequest", { model: model.model, durationMs: totalDuration, - inputTokens, - outputTokens, + inputTokens: actualInputTokens, + outputTokens: actualOutputTokens, costUsd: cost, }); } catch {} 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..098ff5a38 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,10 +189,11 @@ interface ProcessStreamingResponseOptions { callbacks?: StreamCallbacks; isHeadless?: boolean; tools?: ChatCompletionTool[]; + systemMessage: string; } // Process a single streaming response and return whether we need to continue -// eslint-disable-next-line max-statements +// eslint-disable-next-line max-statements, complexity export async function processStreamingResponse( options: ProcessStreamingResponseOptions, ): Promise<{ @@ -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, @@ -196,6 +284,7 @@ export async function processStreamingResponse( let firstTokenTime: number | null = null; let inputTokens = 0; let outputTokens = 0; + let fullUsage: any = null; try { const streamWithBackoff = withExponentialBackoff( @@ -213,6 +302,7 @@ export async function processStreamingResponse( if (chunk.usage) { inputTokens = chunk.usage.prompt_tokens || 0; outputTokens = chunk.usage.completion_tokens || 0; + fullUsage = chunk.usage; // Capture full usage including cache details } // Check if we should abort @@ -250,6 +340,7 @@ export async function processStreamingResponse( outputTokens, model, tools, + fullUsage, }); const totalDuration = responseEndTime - requestStartTime; @@ -259,6 +350,8 @@ export async function processStreamingResponse( toolCallsCount: toolCallsMap.size, inputTokens, outputTokens, + cacheReadTokens: fullUsage?.prompt_tokens_details?.cache_read_tokens, + cacheWriteTokens: fullUsage?.prompt_tokens_details?.cache_write_tokens, cost, duration: totalDuration, }); @@ -329,7 +422,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 +441,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 +487,7 @@ export async function streamChatResponse( abortController, callbacks, tools, + systemMessage, }); if (abortController?.signal.aborted) { @@ -447,36 +520,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/telemetry/posthogService.test.ts b/extensions/cli/src/telemetry/posthogService.test.ts index 7fd95204d..6e60de95e 100644 --- a/extensions/cli/src/telemetry/posthogService.test.ts +++ b/extensions/cli/src/telemetry/posthogService.test.ts @@ -152,5 +152,38 @@ describe("PosthogService", () => { expect(client).toBeUndefined(); expect(dns.lookup).toHaveBeenCalledTimes(1); }); + + it("returns false when DNS resolves to 0.0.0.0 (blocked)", async () => { + const dns: any = (await import("dns/promises")).default; + dns.lookup.mockResolvedValueOnce({ + address: "0.0.0.0", + family: 4, + } as any); + const result = await (service as any).hasInternetConnection(); + expect(result).toBe(false); + expect(dns.lookup).toHaveBeenCalledTimes(1); + }); + + it("returns false when DNS resolves to localhost", async () => { + const dns: any = (await import("dns/promises")).default; + dns.lookup.mockResolvedValueOnce({ + address: "127.0.0.1", + family: 4, + } as any); + const result = await (service as any).hasInternetConnection(); + expect(result).toBe(false); + expect(dns.lookup).toHaveBeenCalledTimes(1); + }); + + it("returns true when DNS resolves to valid address", async () => { + const dns: any = (await import("dns/promises")).default; + dns.lookup.mockResolvedValueOnce({ + address: "1.1.1.1", + family: 4, + } as any); + const result = await (service as any).hasInternetConnection(); + expect(result).toBe(true); + expect(dns.lookup).toHaveBeenCalledTimes(1); + }); }); }); diff --git a/extensions/cli/src/telemetry/posthogService.ts b/extensions/cli/src/telemetry/posthogService.ts index 1c2c66304..775915549 100644 --- a/extensions/cli/src/telemetry/posthogService.ts +++ b/extensions/cli/src/telemetry/posthogService.ts @@ -5,6 +5,7 @@ import node_machine_id from "node-machine-id"; import type { PostHog as PostHogType } from "posthog-node"; import { isAuthenticatedConfig, loadAuthConfig } from "../auth/workos.js"; +import { loggers } from "../logging.js"; import { isHeadlessMode, isServe } from "../util/cli.js"; import { isGitHubActions } from "../util/git.js"; import { logger } from "../util/logger.js"; @@ -13,6 +14,7 @@ import { getVersion } from "../version.js"; export class PosthogService { private _os: string | undefined; private _uniqueId: string | undefined; + private _telemetryBlocked: boolean = false; constructor() { // Initialization is now lazy to avoid issues with mocking in tests @@ -36,10 +38,19 @@ export class PosthogService { private async hasInternetConnection() { const refetchConnection = async () => { try { - await dns.lookup("app.posthog.com"); - this._hasInternetConnection = true; + const result = await dns.lookup("app.posthog.com"); + const isValidAddress = + result.address !== "0.0.0.0" && !result.address.startsWith("127."); + this._hasInternetConnection = isValidAddress; + this._telemetryBlocked = !isValidAddress; + if (!isValidAddress) { + logger.debug( + "DNS lookup returned invalid address for PostHog, skipping telemetry", + ); + } } catch { this._hasInternetConnection = false; + this._telemetryBlocked = false; } }; @@ -53,6 +64,12 @@ export class PosthogService { } get isEnabled() { + if (process.env.CONTINUE_TELEMETRY_ENABLED === "0") { + return false; + } + if (process.env.CONTINUE_TELEMETRY_ENABLED === "1") { + return true; + } return process.env.CONTINUE_ALLOW_ANONYMOUS_TELEMETRY !== "0"; } @@ -60,7 +77,13 @@ export class PosthogService { private async getClient() { if (!(await this.hasInternetConnection())) { this._client = undefined; - logger.warn("No internet connection, skipping telemetry"); + if (this._telemetryBlocked && this.isEnabled) { + loggers.warning( + "Telemetry appears to be blocked by your network. To disable telemetry entirely, set CONTINUE_TELEMETRY_ENABLED=0", + ); + } else if (this.isEnabled) { + logger.warn("No internet connection, skipping telemetry"); + } } else if (this.isEnabled) { if (!this._client) { const { PostHog } = await import("posthog-node"); diff --git a/extensions/cli/src/telemetry/telemetryService.ts b/extensions/cli/src/telemetry/telemetryService.ts index 910c82f59..5804a24bc 100644 --- a/extensions/cli/src/telemetry/telemetryService.ts +++ b/extensions/cli/src/telemetry/telemetryService.ts @@ -71,8 +71,17 @@ class TelemetryService { process.env.OTEL_EXPORTER_OTLP_METRICS_ENDPOINT || process.env.OTEL_METRICS_EXPORTER ); - const enabled = - process.env.CONTINUE_CLI_ENABLE_TELEMETRY !== "0" && hasOtelConfig; + + let telemetryEnabled = true; + if (process.env.CONTINUE_METRICS_ENABLED === "0") { + telemetryEnabled = false; + } else if (process.env.CONTINUE_METRICS_ENABLED === "1") { + telemetryEnabled = true; + } else { + telemetryEnabled = process.env.CONTINUE_CLI_ENABLE_TELEMETRY !== "0"; + } + + const enabled = telemetryEnabled && hasOtelConfig; const sessionId = uuidv4(); return { diff --git a/extensions/cli/src/telemetry/utils.ts b/extensions/cli/src/telemetry/utils.ts index 6f968033a..54fb60f92 100644 --- a/extensions/cli/src/telemetry/utils.ts +++ b/extensions/cli/src/telemetry/utils.ts @@ -112,40 +112,6 @@ export function isPullRequestCommand(command: string): boolean { ); } -/** - * Simple cost calculation based on tokens and model - * This should be updated with actual pricing from model providers - */ -export function calculateTokenCost( - inputTokens: number, - outputTokens: number, - model: string, -): number { - // Pricing per 1K tokens (these are approximate and should be updated) - const pricingMap: Record = { - "gpt-4": { input: 0.03, output: 0.06 }, - "gpt-4-turbo": { input: 0.01, output: 0.03 }, - "gpt-3.5-turbo": { input: 0.0015, output: 0.002 }, - "claude-3-5-sonnet-20241022": { input: 0.003, output: 0.015 }, - "claude-3-sonnet": { input: 0.003, output: 0.015 }, - "claude-3-haiku": { input: 0.00025, output: 0.00125 }, - "claude-3-opus": { input: 0.015, output: 0.075 }, - }; - - // Find pricing for model (case insensitive partial match) - const modelKey = Object.keys(pricingMap).find((key) => - model.toLowerCase().includes(key.toLowerCase()), - ); - - if (!modelKey) { - // Default pricing if model not found - return (inputTokens * 0.001 + outputTokens * 0.002) / 1000; - } - - const pricing = pricingMap[modelKey]; - return (inputTokens * pricing.input + outputTokens * pricing.output) / 1000; -} - /** * Get file type from extension for metrics */ diff --git a/extensions/cli/src/tools/allBuiltIns.ts b/extensions/cli/src/tools/allBuiltIns.ts index 09ba9dbba..18a7e8eee 100644 --- a/extensions/cli/src/tools/allBuiltIns.ts +++ b/extensions/cli/src/tools/allBuiltIns.ts @@ -7,6 +7,7 @@ import { readFileTool } from "./readFile.js"; import { reportFailureTool } from "./reportFailure.js"; import { runTerminalCommandTool } from "./runTerminalCommand.js"; import { searchCodeTool } from "./searchCode.js"; +import { uploadArtifactTool } from "./uploadArtifact.js"; import { writeChecklistTool } from "./writeChecklist.js"; import { writeFileTool } from "./writeFile.js"; @@ -23,4 +24,5 @@ export const ALL_BUILT_IN_TOOLS = [ writeChecklistTool, exitTool, reportFailureTool, + uploadArtifactTool, ]; diff --git a/extensions/cli/src/tools/index.tsx b/extensions/cli/src/tools/index.tsx index 95dfc60f6..cf3e1b1dd 100644 --- a/extensions/cli/src/tools/index.tsx +++ b/extensions/cli/src/tools/index.tsx @@ -28,6 +28,7 @@ import { readFileTool } from "./readFile.js"; import { reportFailureTool } from "./reportFailure.js"; import { runTerminalCommandTool } from "./runTerminalCommand.js"; import { checkIfRipgrepIsInstalled, searchCodeTool } from "./searchCode.js"; +import { isBetaUploadArtifactToolEnabled } from "./toolsConfig.js"; import { type Tool, type ToolCall, @@ -35,6 +36,7 @@ import { ParameterSchema, PreprocessedToolCall, } from "./types.js"; +import { uploadArtifactTool } from "./uploadArtifact.js"; import { writeChecklistTool } from "./writeChecklist.js"; import { writeFileTool } from "./writeFile.js"; @@ -75,11 +77,16 @@ export async function getAllAvailableTools( tools.push(...BUILTIN_SEARCH_TOOLS); } - // Add ReportFailure tool if no agent ID is present - // (it requires --id to function and will confuse the agent if unavailable) + // Add agent-specific tools if agent ID is present + // (these require --id to function and will confuse the agent if unavailable) const agentId = getAgentIdFromArgs(); if (agentId) { tools.push(reportFailureTool); + + // UploadArtifact tool is gated behind beta flag + if (isBetaUploadArtifactToolEnabled()) { + tools.push(uploadArtifactTool); + } } // If model is capable, exclude editTool in favor of multiEditTool diff --git a/extensions/cli/src/tools/runTerminalCommand.ts b/extensions/cli/src/tools/runTerminalCommand.ts index 69706c21a..ed4a2e49b 100644 --- a/extensions/cli/src/tools/runTerminalCommand.ts +++ b/extensions/cli/src/tools/runTerminalCommand.ts @@ -45,6 +45,11 @@ IMPORTANT: To edit files, use Edit/MultiEdit tools instead of bash commands (sed type: "string", description: "The command to execute in the terminal.", }, + timeout: { + type: "number", + description: + "Optional timeout in seconds (max 600). Use this parameter for commands that take longer than the default 180 second timeout.", + }, }, }, readonly: false, @@ -75,7 +80,13 @@ IMPORTANT: To edit files, use Edit/MultiEdit tools instead of bash commands (sed ], }; }, - run: async ({ command }: { command: string }): Promise => { + run: async ({ + command, + timeout, + }: { + command: string; + timeout?: number; + }): Promise => { return new Promise((resolve, reject) => { // Use same shell logic as core implementation const { shell, args } = getShellCommand(command); @@ -85,10 +96,18 @@ IMPORTANT: To edit files, use Edit/MultiEdit tools instead of bash commands (sed let timeoutId: NodeJS.Timeout; let isResolved = false; - 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 + // Determine timeout: use provided timeout (capped at 600s), test env variable, or default 120s + let TIMEOUT_MS = 180000; // 180 seconds default + if (timeout !== undefined) { + // Cap at 600 seconds (10 minutes) + const cappedTimeout = Math.min(timeout, 600); + TIMEOUT_MS = cappedTimeout * 1000; + } else if ( + process.env.NODE_ENV === "test" && + process.env.TEST_TERMINAL_TIMEOUT + ) { + TIMEOUT_MS = parseInt(process.env.TEST_TERMINAL_TIMEOUT, 10); + } const resetTimeout = () => { if (timeoutId) { diff --git a/extensions/cli/src/tools/toolsConfig.ts b/extensions/cli/src/tools/toolsConfig.ts new file mode 100644 index 000000000..b1703a545 --- /dev/null +++ b/extensions/cli/src/tools/toolsConfig.ts @@ -0,0 +1,14 @@ +/** + * Global configuration for tools system. + * This stores command-line flags that affect tool availability. + */ + +let betaUploadArtifactToolEnabled = false; + +export function setBetaUploadArtifactToolEnabled(enabled: boolean): void { + betaUploadArtifactToolEnabled = enabled; +} + +export function isBetaUploadArtifactToolEnabled(): boolean { + return betaUploadArtifactToolEnabled; +} diff --git a/extensions/cli/src/tools/uploadArtifact.ts b/extensions/cli/src/tools/uploadArtifact.ts new file mode 100644 index 000000000..4b43d4b13 --- /dev/null +++ b/extensions/cli/src/tools/uploadArtifact.ts @@ -0,0 +1,142 @@ +import * as fs from "fs"; +import * as path from "path"; + +import { ContinueError, ContinueErrorReason } from "core/util/errors.js"; + +import { getAccessToken, loadAuthConfig } from "../auth/workos.js"; +import { logger } from "../util/logger.js"; + +import { Tool } from "./types.js"; + +/** + * Extract the agent ID from the --id command line flag + */ +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; +} + +export const uploadArtifactTool: Tool = { + name: "UploadArtifact", + displayName: "Upload Artifact", + description: + "Upload a file (screenshot, video, log) to the session artifacts for user review. Supported formats: images (png, jpg, jpeg, gif, webp), videos (mp4, mov, avi, webm), and text files. Maximum file size: 50MB. If an artifact with the same filename already exists, it will be overwritten with the new file.", + parameters: { + type: "object", + required: ["filePath"], + properties: { + filePath: { + type: "string", + description: + "Absolute path to the file to upload (e.g., /tmp/screenshot.png)", + }, + }, + }, + readonly: true, + isBuiltIn: true, + run: async (args: { filePath: string }): Promise => { + try { + // Import services here to avoid circular dependency + // services/index.ts -> ToolPermissionService -> allBuiltIns -> uploadArtifact -> services/index.ts + const { services } = await import("../services/index.js"); + + const trimmedPath = args.filePath?.trim(); + if (!trimmedPath) { + throw new ContinueError( + ContinueErrorReason.Unspecified, + "filePath is required to upload an artifact.", + ); + } + + // Get agent session ID + const agentId = getAgentIdFromArgs(); + if (!agentId) { + throw new ContinueError( + ContinueErrorReason.Unspecified, + "Agent ID is required. This tool only works with 'cn serve --id '.", + ); + } + + // Get access token + const authConfig = loadAuthConfig(); + const accessToken = getAccessToken(authConfig); + if (!accessToken) { + throw new ContinueError( + ContinueErrorReason.Unspecified, + "Authentication required. Please log in with 'cn login'.", + ); + } + + // Validate file exists + if (!fs.existsSync(trimmedPath)) { + throw new ContinueError( + ContinueErrorReason.Unspecified, + `File not found: ${trimmedPath}`, + ); + } + + // Get file stats for logging + const stats = fs.statSync(trimmedPath); + const fileSizeMB = (stats.size / (1024 * 1024)).toFixed(2); + const filename = path.basename(trimmedPath); + + logger.info(`Uploading artifact: ${filename} (${fileSizeMB} MB)`); + + // Upload the artifact + const result = await services.artifactUpload.uploadArtifact({ + agentSessionId: agentId, + filePath: trimmedPath, + accessToken, + }); + + if (result.success) { + logger.info(`Successfully uploaded artifact: ${result.filename}`); + return `Artifact uploaded successfully: ${result.filename} (${fileSizeMB} MB). The user can view it in the Artifacts tab of the session.`; + } else { + // Handle specific error cases with helpful messages + const errorMsg = result.error || "Unknown error"; + + if (errorMsg.includes("File size exceeds")) { + throw new ContinueError( + ContinueErrorReason.Unspecified, + `File is too large (${fileSizeMB} MB). Maximum allowed size is 50MB. Consider compressing the file or splitting it into smaller parts.`, + ); + } else if (errorMsg.includes("Storage limit exceeded")) { + throw new ContinueError( + ContinueErrorReason.Unspecified, + "Session storage limit exceeded (500MB total). The user may need to delete old artifacts or you may need to reduce the number of uploads.", + ); + } else if ( + errorMsg.includes("not allowed") || + errorMsg.includes("extension") + ) { + throw new ContinueError( + ContinueErrorReason.Unspecified, + `File type not supported. Only images (png, jpg, jpeg, gif, webp), videos (mp4, mov, avi, webm), and text files (log, txt, json, xml, csv, html) are allowed.`, + ); + } else { + throw new ContinueError( + ContinueErrorReason.Unspecified, + `Failed to upload artifact: ${errorMsg}`, + ); + } + } + } catch (error) { + if (error instanceof ContinueError) { + throw error; + } + + const errorMessage = + error instanceof Error ? error.message : String(error); + logger.error(`Error uploading artifact: ${errorMessage}`); + throw new ContinueError( + ContinueErrorReason.Unspecified, + `Error uploading artifact: ${errorMessage}`, + ); + } + }, +}; diff --git a/extensions/cli/src/ui/TUIChat.tsx b/extensions/cli/src/ui/TUIChat.tsx index dfcd19060..a3fef65b9 100644 --- a/extensions/cli/src/ui/TUIChat.tsx +++ b/extensions/cli/src/ui/TUIChat.tsx @@ -19,6 +19,7 @@ import { ModelServiceState, UpdateServiceState, } from "../services/types.js"; +import { getTotalSessionCost } from "../session.js"; import { logger } from "../util/logger.js"; import { ActionStatus } from "./components/ActionStatus.js"; @@ -442,6 +443,8 @@ const TUIChat: React.FC = ({ closeCurrentScreen={closeCurrentScreen} contextPercentage={contextData?.percentage} hasImageInClipboard={hasImageInClipboard} + isVerboseMode={isVerboseMode} + totalCost={getTotalSessionCost()} /> diff --git a/extensions/cli/src/ui/UserInput.tsx b/extensions/cli/src/ui/UserInput.tsx index fb31e4e5c..470688120 100644 --- a/extensions/cli/src/ui/UserInput.tsx +++ b/extensions/cli/src/ui/UserInput.tsx @@ -463,7 +463,28 @@ const UserInput: React.FC = ({ if ((key.return && !key.shift) || key.tab) { if (filteredCommands.length > 0) { - selectSlashCommand(filteredCommands[selectedCommandIndex].name); + const commandName = filteredCommands[selectedCommandIndex].name; + if (key.return && commandName !== "title") { + // select and submit the command + const commandText = "/" + commandName; + inputHistory.addEntry(commandText); + + // queue up when responding/generating + if (!isRemoteMode && (isWaitingForResponse || isCompacting)) { + void messageQueue.enqueueMessage(commandText); + } else { + onSubmit(commandText); + } + + // reset after submitting command + textBuffer.clear(); + setInputText(""); + setCursorPosition(0); + setShowSlashCommands(false); + setShowBashMode(false); + } else { + selectSlashCommand(commandName); + } } return true; } 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..e1ee6d001 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 } from "./TUIChat.testHelper.js"; describe("TUIChat - Slash Commands Tests", () => { testBothModes("shows slash when user types /", async (mode) => { @@ -7,9 +7,12 @@ describe("TUIChat - Slash Commands Tests", () => { // Type / to trigger slash command stdin.write("/"); - await waitForNextRender(); - const frame = lastFrame(); + let frame = ""; + await waitForCondition(() => { + frame = lastFrame() ?? ""; + return frame.includes("/"); + }); // Should show the slash character expect(frame).toContain("/"); @@ -28,9 +31,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"); @@ -47,14 +54,21 @@ describe("TUIChat - Slash Commands Tests", () => { testBothModes("handles tab key after slash command", async (mode) => { const { lastFrame, stdin } = renderInMode(mode); - // Type /exi and then tab stdin.write("/exi"); - await waitForNextRender(); + + let frame = ""; + await waitForCondition(() => { + frame = lastFrame() ?? ""; + return frame.includes("/exi"); + }); stdin.write("\t"); - await waitForNextRender(); - const frameAfterTab = lastFrame(); + let frameAfterTab = ""; + await waitForCondition(() => { + frameAfterTab = lastFrame() ?? ""; + return frameAfterTab.length > 0; + }); // Should not crash after tab expect(frameAfterTab).toBeDefined(); @@ -73,11 +87,13 @@ describe("TUIChat - Slash Commands Tests", () => { testBothModes("shows slash command menu when typing /", async (mode) => { const { lastFrame, stdin } = renderInMode(mode); - // Type just / stdin.write("/"); - await waitForNextRender(); - const frame = lastFrame(); + let frame = ""; + await waitForCondition(() => { + frame = lastFrame() ?? ""; + return frame.includes("/"); + }); // Should show the slash expect(frame).toContain("/"); @@ -107,9 +123,18 @@ describe("TUIChat - Slash Commands Tests", () => { // Type a complete command name first stdin.write("/title"); - await waitForNextRender(); - const frameAfterCommand = lastFrame(); + let frameAfterCommand = lastFrame(); + await waitForCondition(() => { + frameAfterCommand = lastFrame(); + + return ( + frameAfterCommand?.includes( + mode === "remote" ? "Remote Mode" : "/title", + ) ?? false + ); + }); + if (mode === "remote") { // In remote mode, /title might not be a valid command, so just check we're in remote mode expect(frameAfterCommand).toContain("Remote Mode"); @@ -120,9 +145,12 @@ describe("TUIChat - Slash Commands Tests", () => { // Now add a space and arguments stdin.write(" My Session Title"); - await waitForNextRender(); - const frameAfterArgs = lastFrame(); + let frameAfterArgs = lastFrame(); + await waitForCondition(() => { + frameAfterArgs = lastFrame() ?? ""; + return frameAfterArgs.includes("My Session Title"); + }); // Check that the UI is still functional after adding arguments if (mode === "remote") { @@ -141,19 +169,27 @@ describe("TUIChat - Slash Commands Tests", () => { async (mode) => { const { lastFrame, stdin } = renderInMode(mode); - // Type a complete command with arguments stdin.write("/title Test Session"); - await waitForNextRender(); - const frameBeforeEnter = lastFrame(); + let frameBeforeEnter = lastFrame(); + await waitForCondition(() => { + frameBeforeEnter = lastFrame() ?? ""; + return ( + frameBeforeEnter.includes("/title") && + frameBeforeEnter.includes("Test Session") + ); + }); + expect(frameBeforeEnter).toContain("/title"); expect(frameBeforeEnter).toContain("Test Session"); - // Press Enter - this should execute the command, not try to autocomplete stdin.write("\r"); - await waitForNextRender(); - const frameAfterEnter = lastFrame(); + let frameAfterEnter = lastFrame(); + await waitForCondition(() => { + frameAfterEnter = lastFrame() ?? ""; + return frameAfterEnter.length > 0; + }); // Should not crash and should clear the input (or show command execution) expect(frameAfterEnter).toBeDefined(); 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/__tests__/mocks/MockMCPService.ts b/extensions/cli/src/ui/__tests__/mocks/MockMCPService.ts index b72d223ba..a471f8ff8 100644 --- a/extensions/cli/src/ui/__tests__/mocks/MockMCPService.ts +++ b/extensions/cli/src/ui/__tests__/mocks/MockMCPService.ts @@ -13,7 +13,7 @@ export class MockMCPService extends MCPService { } async restartAllServers() {} async runTool() { - return {}; + return { content: [] }; } getServerInfo() { return { diff --git a/extensions/cli/src/ui/components/BottomStatusBar.tsx b/extensions/cli/src/ui/components/BottomStatusBar.tsx index 0dc6d2c2c..e323911da 100644 --- a/extensions/cli/src/ui/components/BottomStatusBar.tsx +++ b/extensions/cli/src/ui/components/BottomStatusBar.tsx @@ -21,6 +21,8 @@ export interface BottomStatusBarProps { closeCurrentScreen: () => void; contextPercentage?: number; hasImageInClipboard?: boolean; + isVerboseMode?: boolean; + totalCost?: number; } export const BottomStatusBar: React.FC = ({ @@ -33,6 +35,8 @@ export const BottomStatusBar: React.FC = ({ closeCurrentScreen, contextPercentage, hasImageInClipboard, + isVerboseMode, + totalCost, }) => { const [_refreshTrigger, setRefreshTrigger] = useState(0); @@ -73,6 +77,17 @@ export const BottomStatusBar: React.FC = ({ )} + {isVerboseMode && totalCost !== undefined && totalCost > 0 && ( + + + {" "} + •{" "} + + + Cost: ${totalCost.toFixed(4)} + + + )} {!isRemoteMode && services.model?.model && ( 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..dcdd44ab5 100644 --- a/extensions/cli/src/util/exit.ts +++ b/extensions/cli/src/util/exit.ts @@ -1,13 +1,150 @@ +import type { ChatHistoryItem } from "core/index.js"; + import { sentryService } from "../sentry.js"; +import { getSessionUsage } from "../session.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, + ); + } + } + + // Extract session usage (cost and token counts) + try { + const usage = getSessionUsage(); + if (usage.totalCost > 0) { + metadata.usage = { + totalCost: parseFloat(usage.totalCost.toFixed(6)), + promptTokens: usage.promptTokens, + completionTokens: usage.completionTokens, + ...(usage.promptTokensDetails?.cachedTokens && { + cachedTokens: usage.promptTokensDetails.cachedTokens, + }), + ...(usage.promptTokensDetails?.cacheWriteTokens && { + cacheWriteTokens: usage.promptTokensDetails.cacheWriteTokens, + }), + }; + } + } catch (err) { + logger.debug("Failed to get session usage (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); + } +} + +/** + * Display session usage breakdown in verbose mode + */ +function displaySessionUsage(): void { + const isVerbose = process.argv.includes("--verbose"); + if (!isVerbose) { + return; + } + + try { + const usage = getSessionUsage(); + if (usage.totalCost === 0) { + return; // No usage to display + } + + logger.info("\n" + "=".repeat(60)); + logger.info("Session Usage Summary"); + logger.info("=".repeat(60)); + logger.info(`Total Cost: $${usage.totalCost.toFixed(6)}`); + logger.info(""); + logger.info("Token Usage:"); + logger.info(` Input Tokens: ${usage.promptTokens.toLocaleString()}`); + logger.info( + ` Output Tokens: ${usage.completionTokens.toLocaleString()}`, + ); + + if (usage.promptTokensDetails?.cachedTokens) { + logger.info( + ` Cache Read Tokens: ${usage.promptTokensDetails.cachedTokens.toLocaleString()}`, + ); + } + + if (usage.promptTokensDetails?.cacheWriteTokens) { + logger.info( + ` Cache Write Tokens: ${usage.promptTokensDetails.cacheWriteTokens.toLocaleString()}`, + ); + } + + const totalTokens = usage.promptTokens + usage.completionTokens; + logger.info(` Total Tokens: ${totalTokens.toLocaleString()}`); + logger.info("=".repeat(60) + "\n"); + } catch (err) { + logger.debug("Failed to display session usage (non-critical)", err as any); + } +} /** * Exit the process after flushing telemetry and error reporting. * Use this instead of process.exit() to avoid losing metrics/logs. */ export async function gracefulExit(code: number = 0): Promise { + // Display session usage breakdown in verbose mode + displaySessionUsage(); + try { // Flush metrics (forceFlush + shutdown inside service) await telemetryService.shutdown(); 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/cli/src/utils/modelCapability.test.ts b/extensions/cli/src/utils/modelCapability.test.ts index 188f992b2..d3225cda2 100644 --- a/extensions/cli/src/utils/modelCapability.test.ts +++ b/extensions/cli/src/utils/modelCapability.test.ts @@ -53,26 +53,46 @@ describe("isModelCapable", () => { }); describe("Local/Ollama models", () => { - test("should consider larger models as not capable", () => { - expect(isModelCapable("ollama", "llama2-70b")).toBe(false); - expect(isModelCapable("local", "codellama-34b")).toBe(false); + test("should consider Llama models as capable (matches llama pattern)", () => { + expect(isModelCapable("ollama", "llama2-70b")).toBe(true); + expect(isModelCapable("ollama", "llama2-7b")).toBe(true); + expect(isModelCapable("local", "codellama-34b")).toBe(true); }); - test("should consider smaller models as less capable", () => { - expect(isModelCapable("ollama", "llama2-7b")).toBe(false); - expect(isModelCapable("local", "mistral-7b")).toBe(false); + test("should consider Mistral models as capable (matches mistral pattern)", () => { + expect(isModelCapable("local", "mistral-7b")).toBe(true); + expect(isModelCapable("ollama", "mistral-small")).toBe(true); + }); + + test("should consider non-capable local models as not capable", () => { + expect(isModelCapable("ollama", "falcon-7b")).toBe(false); + expect(isModelCapable("local", "starcoder-base")).toBe(false); }); }); describe("Meta/Llama models", () => { - test("should consider large Llama models as not capable", () => { - expect(isModelCapable("llama", "llama-2-70b")).toBe(false); - expect(isModelCapable("meta", "llama-65b")).toBe(false); + test("should consider Llama models as capable", () => { + expect(isModelCapable("openai", "Llama 3.3 70B")).toBe(true); + expect(isModelCapable("openai", "Llama 3.3 Nemotron 49B")).toBe(true); + expect( + isModelCapable( + "nvidia", + "nvidia/Llama-3_3-Nemotron-Super-49B-v1", + "nvidia/Llama-3_3-Nemotron-Super-49B-v1", + ), + ).toBe(true); + expect(isModelCapable("meta", "llama-3.1-70b")).toBe(true); }); - test("should consider small Llama models as less capable", () => { - expect(isModelCapable("llama", "llama-2-7b")).toBe(false); - expect(isModelCapable("meta", "llama-13b")).toBe(false); + test("should consider Nemotron models as capable", () => { + expect(isModelCapable("nvidia", "Llama 3.3 Nemotron 49B")).toBe(true); + expect(isModelCapable("nvidia", "nemotron-4-340b")).toBe(true); + }); + + test("should consider Mistral models as capable", () => { + expect(isModelCapable("mistral", "Mistral Small 24B")).toBe(true); + expect(isModelCapable("mistral", "mistral-large")).toBe(true); + expect(isModelCapable("mistralai", "mistral-small-24b")).toBe(true); }); }); @@ -83,12 +103,13 @@ describe("isModelCapable", () => { }); describe("Hugging Face models", () => { - test("should consider code-specific models as not capable", () => { - expect(isModelCapable("huggingface", "codellama-instruct")).toBe(false); - expect(isModelCapable("huggingface", "starcoder-base")).toBe(false); + test("should consider Llama/Mistral models as capable even on HuggingFace", () => { + expect(isModelCapable("huggingface", "codellama-instruct")).toBe(true); + expect(isModelCapable("huggingface", "mistral-7b-instruct")).toBe(true); }); - test("should consider general chat models as less capable", () => { + test("should consider non-capable models as not capable", () => { + expect(isModelCapable("huggingface", "starcoder-base")).toBe(false); expect(isModelCapable("huggingface", "falcon-7b")).toBe(false); }); }); @@ -145,9 +166,11 @@ describe("isModelCapable", () => { }); test("should consider models not capable when neither name nor model match", () => { - // Case where neither matches - expect(isModelCapable("custom", "llama-7b", "local-model")).toBe(false); + // Case where neither matches capable patterns expect(isModelCapable("custom", "falcon-7b", "random-model")).toBe(false); + expect(isModelCapable("custom", "unknown-model", "local-model")).toBe( + false, + ); }); }); }); diff --git a/extensions/cli/src/utils/modelCapability.ts b/extensions/cli/src/utils/modelCapability.ts index a827da0ce..c3737349a 100644 --- a/extensions/cli/src/utils/modelCapability.ts +++ b/extensions/cli/src/utils/modelCapability.ts @@ -10,7 +10,18 @@ export function isModelCapable( const normalizedName = name.toLowerCase(); const normalizedModel = model ? model.toLowerCase() : ""; - const patterns = [/gemini/, /claude/, /gpt/, /o\d/, /kimi/, /qwen/, /grok/]; + const patterns = [ + /gemini/, + /claude/, + /gpt/, + /o\d/, + /kimi/, + /qwen/, + /llama/, + /nemotron/, + /grok/, + /mistral/, + ]; // If either name OR model matches any of the patterns, consider it capable if (patterns.some((pattern) => pattern.test(normalizedName))) { 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/activities/ContinuePluginStartupActivity.kt b/extensions/intellij/src/main/kotlin/com/github/continuedev/continueintellijextension/activities/ContinuePluginStartupActivity.kt index d3425b1a9..353888827 100644 --- a/extensions/intellij/src/main/kotlin/com/github/continuedev/continueintellijextension/activities/ContinuePluginStartupActivity.kt +++ b/extensions/intellij/src/main/kotlin/com/github/continuedev/continueintellijextension/activities/ContinuePluginStartupActivity.kt @@ -88,9 +88,11 @@ private fun getTutorialFileName(): String { class ContinuePluginStartupActivity : StartupActivity, DumbAware { override fun runActivity(project: Project) { - removeShortcutFromAction(getPlatformSpecificKeyStroke("J")) - removeShortcutFromAction(getPlatformSpecificKeyStroke("shift J")) - removeShortcutFromAction(getPlatformSpecificKeyStroke("I")) + ApplicationManager.getApplication().invokeLater { + removeShortcutFromAction(getPlatformSpecificKeyStroke("J")) + removeShortcutFromAction(getPlatformSpecificKeyStroke("shift J")) + removeShortcutFromAction(getPlatformSpecificKeyStroke("I")) + } initializePlugin(project) } 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..4d0858434 100644 --- a/extensions/vscode/package-lock.json +++ b/extensions/vscode/package-lock.json @@ -1,12 +1,12 @@ { "name": "continue", - "version": "1.3.27", + "version": "1.3.28", "lockfileVersion": 3, "requires": true, "packages": { "": { "name": "continue", - "version": "1.3.27", + "version": "1.3.28", "license": "Apache-2.0", "dependencies": { "@continuedev/config-types": "file:../../packages/config-types", @@ -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", @@ -4063,7 +4063,8 @@ "node_modules/buffer-equal-constant-time": { "version": "1.0.1", "resolved": "https://registry.npmjs.org/buffer-equal-constant-time/-/buffer-equal-constant-time-1.0.1.tgz", - "integrity": "sha512-zRpUiDwd/xk6ADqPMATG8vc9VPrkck7T07OIx0gnjmJAnHnTVXNQG3vfvWNuiZIkwu9KrKdA1iJKfsfTVxE6NA==" + "integrity": "sha512-zRpUiDwd/xk6ADqPMATG8vc9VPrkck7T07OIx0gnjmJAnHnTVXNQG3vfvWNuiZIkwu9KrKdA1iJKfsfTVxE6NA==", + "license": "BSD-3-Clause" }, "node_modules/buffer-fill": { "version": "1.0.0", @@ -5575,6 +5576,7 @@ "version": "1.0.11", "resolved": "https://registry.npmjs.org/ecdsa-sig-formatter/-/ecdsa-sig-formatter-1.0.11.tgz", "integrity": "sha512-nagl3RYrbNv6kQkeJIpt6NJZy8twLB/2vtz6yN9Z4vRKHN4/QZJIEbqohALSgwKdnksuY3k5Addp5lg8sVoVcQ==", + "license": "Apache-2.0", "dependencies": { "safe-buffer": "^5.0.1" } @@ -7595,15 +7597,15 @@ } }, "node_modules/inquirer/node_modules/@types/node": { - "version": "24.3.1", - "resolved": "https://registry.npmjs.org/@types/node/-/node-24.3.1.tgz", - "integrity": "sha512-3vXmQDXy+woz+gnrTvuvNrPzekOi+Ds0ReMxw0LzBiK3a+1k0kQn9f2NWk+lgD4rJehFUmYy2gMhJ2ZI+7YP9g==", + "version": "24.10.1", + "resolved": "https://registry.npmjs.org/@types/node/-/node-24.10.1.tgz", + "integrity": "sha512-GNWcUTRBgIRJD5zj+Tq0fKOJ5XZajIiBroOF0yvj2bSU1WvNdYS/dn9UxwsujGW4JX06dnHyjV2y9rRaybH0iQ==", "dev": true, "license": "MIT", "optional": true, "peer": true, "dependencies": { - "undici-types": "~7.10.0" + "undici-types": "~7.16.0" } }, "node_modules/inquirer/node_modules/ansi-regex": { @@ -7630,9 +7632,9 @@ } }, "node_modules/inquirer/node_modules/undici-types": { - "version": "7.10.0", - "resolved": "https://registry.npmjs.org/undici-types/-/undici-types-7.10.0.tgz", - "integrity": "sha512-t5Fy/nfn+14LuOc2KNYg75vZqClpAiqscVvMygNnlsHBFpSXdJaYtXMcdNLpl/Qvc3P2cB3s6lOV51nqsFq4ag==", + "version": "7.16.0", + "resolved": "https://registry.npmjs.org/undici-types/-/undici-types-7.16.0.tgz", + "integrity": "sha512-Zz+aZWSj8LE6zoxD+xrjh4VfkIG8Ya6LvYkZqtUQGJPZjYl53ypCaUwWqo7eI0x66KBGeRo+mlBEkMSeSZ38Nw==", "dev": true, "license": "MIT", "optional": true, @@ -8230,21 +8232,23 @@ } }, "node_modules/jsonwebtoken/node_modules/jwa": { - "version": "1.4.1", - "resolved": "https://registry.npmjs.org/jwa/-/jwa-1.4.1.tgz", - "integrity": "sha512-qiLX/xhEEFKUAJ6FiBMbes3w9ATzyk5W7Hvzpa/SLYdxNtng+gcurvrI7TbACjIXlsJyr05/S1oUhZrc63evQA==", + "version": "1.4.2", + "resolved": "https://registry.npmjs.org/jwa/-/jwa-1.4.2.tgz", + "integrity": "sha512-eeH5JO+21J78qMvTIDdBXidBd6nG2kZjg5Ohz/1fpa28Z4CcsWUzJ1ZZyFq/3z3N17aZy+ZuBoHljASbL1WfOw==", + "license": "MIT", "dependencies": { - "buffer-equal-constant-time": "1.0.1", + "buffer-equal-constant-time": "^1.0.1", "ecdsa-sig-formatter": "1.0.11", "safe-buffer": "^5.0.1" } }, "node_modules/jsonwebtoken/node_modules/jws": { - "version": "3.2.2", - "resolved": "https://registry.npmjs.org/jws/-/jws-3.2.2.tgz", - "integrity": "sha512-YHlZCB6lMTllWDtSPHz/ZXTsi8S00usEV6v1tjq8tOUZzw7DpSDWVXjXDre6ed1w/pd495ODpHZYSdkRTsa0HA==", + "version": "3.2.3", + "resolved": "https://registry.npmjs.org/jws/-/jws-3.2.3.tgz", + "integrity": "sha512-byiJ0FLRdLdSVSReO/U4E7RoEyOCKnEnEPMjq3HxWtvzLsV08/i5RQKsFVNkCldrCaPr2vDNAOMsfs8T/Hze7g==", + "license": "MIT", "dependencies": { - "jwa": "^1.4.1", + "jwa": "^1.4.2", "safe-buffer": "^5.0.1" } }, @@ -8275,21 +8279,23 @@ } }, "node_modules/jwa": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/jwa/-/jwa-2.0.0.tgz", - "integrity": "sha512-jrZ2Qx916EA+fq9cEAeCROWPTfCwi1IVHqT2tapuqLEVVDKFDENFw1oL+MwrTvH6msKxsd1YTDVw6uKEcsrLEA==", + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/jwa/-/jwa-2.0.1.tgz", + "integrity": "sha512-hRF04fqJIP8Abbkq5NKGN0Bbr3JxlQ+qhZufXVr0DvujKy93ZCbXZMHDL4EOtodSbCWxOqR8MS1tXA5hwqCXDg==", + "license": "MIT", "dependencies": { - "buffer-equal-constant-time": "1.0.1", + "buffer-equal-constant-time": "^1.0.1", "ecdsa-sig-formatter": "1.0.11", "safe-buffer": "^5.0.1" } }, "node_modules/jws": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/jws/-/jws-4.0.0.tgz", - "integrity": "sha512-KDncfTmOZoOMTFG4mBlG0qUIOlc03fmzH+ru6RgYVZhPkyiy/92Owlt/8UEN+a4TXR1FQetfIpJE8ApdvdVxTg==", + "version": "4.0.1", + "resolved": "https://registry.npmjs.org/jws/-/jws-4.0.1.tgz", + "integrity": "sha512-EKI/M/yqPncGUUh44xz0PxSidXFr/+r0pA70+gIYhjv+et7yxM+s29Y+VGDkovRofQem0fs7Uvf4+YmAdyRduA==", + "license": "MIT", "dependencies": { - "jwa": "^2.0.0", + "jwa": "^2.0.1", "safe-buffer": "^5.0.1" } }, @@ -14474,14 +14480,14 @@ } }, "node_modules/vite-node/node_modules/@types/node": { - "version": "24.0.1", - "resolved": "https://registry.npmjs.org/@types/node/-/node-24.0.1.tgz", - "integrity": "sha512-MX4Zioh39chHlDJbKmEgydJDS3tspMP/lnQC67G3SWsTnb9NeYVWOjkxpOSy4oMfPs4StcWHwBrvUb4ybfnuaw==", + "version": "24.10.1", + "resolved": "https://registry.npmjs.org/@types/node/-/node-24.10.1.tgz", + "integrity": "sha512-GNWcUTRBgIRJD5zj+Tq0fKOJ5XZajIiBroOF0yvj2bSU1WvNdYS/dn9UxwsujGW4JX06dnHyjV2y9rRaybH0iQ==", "license": "MIT", "optional": true, "peer": true, "dependencies": { - "undici-types": "~7.8.0" + "undici-types": "~7.16.0" } }, "node_modules/vite-node/node_modules/debug": { @@ -14607,9 +14613,9 @@ } }, "node_modules/vite-node/node_modules/undici-types": { - "version": "7.8.0", - "resolved": "https://registry.npmjs.org/undici-types/-/undici-types-7.8.0.tgz", - "integrity": "sha512-9UJ2xGDvQ43tYyVMpuHlsgApydB8ZKfVYTsLDhXkFL/6gfkp+U8xTGdh8pMJv1SpZna0zxG1DwsKZsreLbXBxw==", + "version": "7.16.0", + "resolved": "https://registry.npmjs.org/undici-types/-/undici-types-7.16.0.tgz", + "integrity": "sha512-Zz+aZWSj8LE6zoxD+xrjh4VfkIG8Ya6LvYkZqtUQGJPZjYl53ypCaUwWqo7eI0x66KBGeRo+mlBEkMSeSZ38Nw==", "license": "MIT", "optional": true, "peer": true 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/extensions/vscode/scripts/install-copy-nodemodule.js b/extensions/vscode/scripts/install-copy-nodemodule.js index 1ce65327a..9f32e91d8 100644 --- a/extensions/vscode/scripts/install-copy-nodemodule.js +++ b/extensions/vscode/scripts/install-copy-nodemodule.js @@ -7,6 +7,7 @@ const fs = require("fs"); const path = require("path"); const ncp = require("ncp").ncp; +const { rimrafSync } = require("rimraf"); const { execCmdSync } = require("../../../scripts/util"); @@ -64,7 +65,11 @@ async function installNodeModuleInTempDirAndCopyToCurrent(packageName, toCopy) { }); } finally { // Clean up the temporary directory - // rimrafSync(tempDir); + try { + rimrafSync(tempDir); + } catch (err) { + console.warn("[warn] Failed to remove temp directory", tempDir, err); + } // Return to the original directory process.chdir(currentDir); diff --git a/extensions/vscode/scripts/prepackage.js b/extensions/vscode/scripts/prepackage.js index 6085dc19c..dff54eab6 100644 --- a/extensions/vscode/scripts/prepackage.js +++ b/extensions/vscode/scripts/prepackage.js @@ -35,6 +35,15 @@ const args = process.argv; if (args[2] === "--target") { target = args[3]; } +if (!target) { + const envTarget = + process.env.CONTINUE_VSCODE_TARGET || + process.env.CONTINUE_BUILD_TARGET || + process.env.VSCODE_TARGET; + if (envTarget && typeof envTarget === "string") { + target = envTarget.trim(); + } +} let os; let arch; @@ -55,11 +64,6 @@ console.log("[info] Using target: ", target); const exe = os === "win32" ? ".exe" : ""; -const isArmTarget = - target === "darwin-arm64" || - target === "linux-arm64" || - target === "win32-arm64"; - const isWinTarget = target?.startsWith("win"); const isLinuxTarget = target?.startsWith("linux"); const isMacTarget = target?.startsWith("darwin"); @@ -288,25 +292,53 @@ void (async () => { ); }); - if (!skipInstalls) { - // GitHub Actions doesn't support ARM, so we need to download pre-saved binaries - // 02/07/25 - the above comment is out of date, there is now support for ARM runners on GitHub Actions - if (isArmTarget) { - // lancedb binary - const packageToInstall = { - "darwin-arm64": "@lancedb/vectordb-darwin-arm64", - "linux-arm64": "@lancedb/vectordb-linux-arm64-gnu", - "win32-arm64": "@lancedb/vectordb-win32-arm64-msvc", - }[target]; - console.log( - "[info] Downloading pre-built lancedb binary: " + packageToInstall, - ); + const lancedbPackagesByTarget = { + "darwin-arm64": "@lancedb/vectordb-darwin-arm64", + "darwin-x64": "@lancedb/vectordb-darwin-x64", + "linux-arm64": "@lancedb/vectordb-linux-arm64-gnu", + "linux-x64": "@lancedb/vectordb-linux-x64-gnu", + "win32-x64": "@lancedb/vectordb-win32-x64-msvc", + "win32-arm64": "@lancedb/vectordb-win32-arm64-msvc", + }; - await Promise.all([ - copySqlite(target), - installAndCopyNodeModules(packageToInstall, "@lancedb"), - ]); + const packageToInstall = lancedbPackagesByTarget[target]; + let packageDirName; + let expectedPackagePath; + if (packageToInstall) { + packageDirName = packageToInstall.split("/").pop(); + expectedPackagePath = path.join( + __dirname, + "..", + "node_modules", + "@lancedb", + packageDirName, + ); + + if (!fs.existsSync(expectedPackagePath)) { + console.log( + `[info] Installing LanceDB binary for ${target}: ${packageToInstall}`, + ); + await installAndCopyNodeModules(packageToInstall, "@lancedb"); + if (!fs.existsSync(expectedPackagePath)) { + throw new Error( + `Failed to install LanceDB binary at ${expectedPackagePath}`, + ); + } + } else { + console.log( + `[info] LanceDB binary already present for ${target} at ${expectedPackagePath}`, + ); } + } else { + console.warn( + `[warn] No LanceDB package mapping found for target ${target}`, + ); + } + + if (!skipInstalls) { + await copySqlite(target); + } else { + console.log("[info] Skipping sqlite download because SKIP_INSTALLS=true"); } console.log("[info] Copying sqlite node binding from core"); @@ -373,6 +405,34 @@ void (async () => { console.log(`[info] Copied ${NODE_MODULES_TO_COPY.join(", ")}`); + if (packageDirName && expectedPackagePath) { + const expectedOutPackagePath = path.join( + __dirname, + "..", + "out", + "node_modules", + "@lancedb", + packageDirName, + ); + const expectedOutIndexPath = path.join( + expectedOutPackagePath, + "index.node", + ); + if (!fs.existsSync(expectedOutIndexPath)) { + rimrafSync(expectedOutPackagePath); + fs.mkdirSync(expectedOutPackagePath, { recursive: true }); + fs.cpSync(expectedPackagePath, expectedOutPackagePath, { + recursive: true, + dereference: true, + }); + console.log(`[info] Copied LanceDB binary to ${expectedOutPackagePath}`); + } else { + console.log( + `[info] LanceDB binary already copied at ${expectedOutIndexPath}`, + ); + } + } + // Copy over any worker files fs.cpSync( "node_modules/jsdom/lib/jsdom/living/xhr/xhr-sync-worker.js", diff --git a/extensions/vscode/src/stubs/WorkOsAuthProvider.ts b/extensions/vscode/src/stubs/WorkOsAuthProvider.ts index 1c0e60bba..b4e07ceec 100644 --- a/extensions/vscode/src/stubs/WorkOsAuthProvider.ts +++ b/extensions/vscode/src/stubs/WorkOsAuthProvider.ts @@ -206,11 +206,6 @@ export class WorkOsAuthProvider implements AuthenticationProvider, Disposable { public static useOnboardingUri: boolean = false; get redirectUri() { - if (WorkOsAuthProvider.useOnboardingUri) { - const url = new URL(controlPlaneEnv.APP_URL); - url.pathname = `/auth/${env.uriScheme}-redirect`; - return url.toString(); - } return this.ideRedirectUri; } diff --git a/extensions/vscode/tree-sitter/code-snippet-queries/javascript.scm b/extensions/vscode/tree-sitter/code-snippet-queries/javascript.scm index a99e33ced..ec9bf4531 100644 --- a/extensions/vscode/tree-sitter/code-snippet-queries/javascript.scm +++ b/extensions/vscode/tree-sitter/code-snippet-queries/javascript.scm @@ -1,12 +1,12 @@ ( - (comment)? @comment + (comment)? @comment . (class_declaration name: (_) @name ) @definition ) ( - (comment)? @comment + (comment)? @comment . (function_declaration name: (_) @name parameters: (_) @parameters @@ -14,7 +14,7 @@ ) ( - (comment)? @comment + (comment)? @comment . (method_definition name: (_) @name parameters: (_) @parameters diff --git a/extensions/vscode/tree-sitter/code-snippet-queries/typescript.scm b/extensions/vscode/tree-sitter/code-snippet-queries/typescript.scm index 2316d733f..a0bcb2f2f 100644 --- a/extensions/vscode/tree-sitter/code-snippet-queries/typescript.scm +++ b/extensions/vscode/tree-sitter/code-snippet-queries/typescript.scm @@ -1,12 +1,12 @@ ( - (comment)? @comment + (comment)? @comment . (class_declaration name: (_) @name ) @definition ) ( - (comment)? @comment + (comment)? @comment . (function_declaration name: (_) @name parameters: (_) @parameters @@ -14,7 +14,7 @@ ) ( - (comment)? @comment + (comment)? @comment . (method_definition name: (_) @name parameters: (_) @parameters @@ -22,7 +22,7 @@ ) ( - (comment)? @comment + (comment)? @comment . (interface_declaration name: (_) @name) @definition ) diff --git a/gui/package-lock.json b/gui/package-lock.json index 33e2d7c4f..545c478fc 100644 --- a/gui/package-lock.json +++ b/gui/package-lock.json @@ -18,7 +18,7 @@ "@tiptap/core": "^2.27.0", "@tiptap/extension-document": "^2.27.0", "@tiptap/extension-dropcursor": "^2.27.0", - "@tiptap/extension-history": "^2.3.2", + "@tiptap/extension-history": "^2.27.1", "@tiptap/extension-image": "^2.1.16", "@tiptap/extension-mention": "^2.1.13", "@tiptap/extension-paragraph": "^2.3.2", @@ -126,7 +126,7 @@ "@continuedev/llm-info": "file:../packages/llm-info", "@continuedev/openai-adapters": "file:../packages/openai-adapters", "@continuedev/terminal-security": "file:../packages/terminal-security", - "@modelcontextprotocol/sdk": "^1.12.0", + "@modelcontextprotocol/sdk": "^1.24.0", "@mozilla/readability": "^0.5.0", "@octokit/rest": "^20.1.1", "@sentry/cli": "^2.50.2", @@ -185,7 +185,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", @@ -3267,9 +3267,10 @@ } }, "node_modules/@tiptap/extension-history": { - "version": "2.26.1", - "resolved": "https://registry.npmjs.org/@tiptap/extension-history/-/extension-history-2.26.1.tgz", - "integrity": "sha512-m6YR1gkkauIDo3PRl0gP+7Oc4n5OqDzcjVh6LvWREmZP8nmi94hfseYbqOXUb6RPHIc0JKF02eiRifT4MSd2nw==", + "version": "2.27.1", + "resolved": "https://registry.npmjs.org/@tiptap/extension-history/-/extension-history-2.27.1.tgz", + "integrity": "sha512-K8PHC9gegSAt0wzSlsd4aUpoEyIJYOmVVeyniHr1P1mIblW1KYEDbRGbDlrLALTyUEfMcBhdIm8zrB9X2Nihvg==", + "license": "MIT", "funding": { "type": "github", "url": "https://github.com/sponsors/ueberdosis" @@ -9624,9 +9625,10 @@ } }, "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==", + "license": "MIT", "dependencies": { "@types/hast": "^3.0.0", "@types/mdast": "^4.0.0", diff --git a/gui/package.json b/gui/package.json index 7ed52910a..1927f6432 100644 --- a/gui/package.json +++ b/gui/package.json @@ -27,7 +27,7 @@ "@tiptap/core": "^2.27.0", "@tiptap/extension-document": "^2.27.0", "@tiptap/extension-dropcursor": "^2.27.0", - "@tiptap/extension-history": "^2.3.2", + "@tiptap/extension-history": "^2.27.1", "@tiptap/extension-image": "^2.1.16", "@tiptap/extension-mention": "^2.1.13", "@tiptap/extension-paragraph": "^2.3.2", diff --git a/gui/src/components/Layout.tsx b/gui/src/components/Layout.tsx index af5f3b785..12e058c23 100644 --- a/gui/src/components/Layout.tsx +++ b/gui/src/components/Layout.tsx @@ -154,7 +154,7 @@ const Layout = () => { dispatch( setDialogMessage(
- +
, ), ); diff --git a/gui/src/components/OnboardingCard/OnboardingCard.tsx b/gui/src/components/OnboardingCard/OnboardingCard.tsx index b5131916a..ad86876f3 100644 --- a/gui/src/components/OnboardingCard/OnboardingCard.tsx +++ b/gui/src/components/OnboardingCard/OnboardingCard.tsx @@ -1,9 +1,8 @@ import { OnboardingModes } from "core/protocol/core"; +import { useEffect } from "react"; import { useAppSelector } from "../../redux/hooks"; import { getLocalStorage, setLocalStorage } from "../../util/localStorage"; -import Alert from "../gui/Alert"; import { ReusableCard } from "../ReusableCard"; -import { OnboardingCardLanding } from "./components/OnboardingCardLanding"; import { OnboardingCardTabs } from "./components/OnboardingCardTabs"; import { OnboardingLocalTab } from "./components/OnboardingLocalTab"; import { OnboardingModelsAddOnTab } from "./components/OnboardingModelsAddOnTab"; @@ -17,13 +16,9 @@ export interface OnboardingCardState { interface OnboardingCardProps { isDialog?: boolean; - showFreeTrialExceededAlert?: boolean; } -export function OnboardingCard({ - isDialog, - showFreeTrialExceededAlert, -}: OnboardingCardProps) { +export function OnboardingCard({ isDialog }: OnboardingCardProps) { const { activeTab, close, setActiveTab } = useOnboardingCard(); const config = useAppSelector((store) => store.config.config); @@ -31,6 +26,13 @@ export function OnboardingCard({ setLocalStorage("onboardingStatus", "Started"); } + // Default to MODELS_ADD_ON tab if no active tab is set + useEffect(() => { + if (!activeTab) { + setActiveTab(OnboardingModes.MODELS_ADD_ON); + } + }, [activeTab, setActiveTab]); + function renderTabContent() { switch (activeTab) { case OnboardingModes.API_KEY: @@ -40,51 +42,21 @@ export function OnboardingCard({ case OnboardingModes.MODELS_ADD_ON: return ; default: - return ; + return ; } } - if (activeTab) { - return ( - - {showFreeTrialExceededAlert && ( -
- -

- Free trial completed -

- - To keep using Continue, select an option below to setup your - models - -
-
- )} - - {renderTabContent()} -
- ); - } + // Always show tabs view, defaulting to Models Add-On + const currentTab = activeTab || OnboardingModes.MODELS_ADD_ON; return ( -
- setActiveTab(OnboardingModes.API_KEY)} - isDialog={isDialog} - /> -
+ + {renderTabContent()}
); } diff --git a/gui/src/components/OnboardingCard/components/OnboardingCardLanding.tsx b/gui/src/components/OnboardingCard/components/OnboardingCardLanding.tsx index 846aa70fd..e0c20ccde 100644 --- a/gui/src/components/OnboardingCard/components/OnboardingCardLanding.tsx +++ b/gui/src/components/OnboardingCard/components/OnboardingCardLanding.tsx @@ -2,7 +2,6 @@ import { useContext } from "react"; import { Button, SecondaryButton } from "../.."; import { useAuth } from "../../../context/Auth"; import { IdeMessengerContext } from "../../../context/IdeMessenger"; -import { useCreditStatus } from "../../../hooks/useCredits"; import { useAppDispatch, useAppSelector } from "../../../redux/hooks"; import { selectCurrentOrg } from "../../../redux/slices/profilesSlice"; import { selectFirstHubProfile } from "../../../redux/thunks/selectFirstHubProfile"; @@ -45,55 +44,22 @@ export function OnboardingCardLanding({ onboardingCard.close(isDialog); } - function openApiKeysPage() { - ideMessenger.post("controlPlane/openUrl", { - path: "setup-models/api-keys", - orgSlug: currentOrg?.slug, - }); - onboardingCard.close(isDialog); - } - - const { creditStatus, outOfStarterCredits } = useCreditStatus(); - return (
- {outOfStarterCredits ? ( - <> -

- You've used all your starter credits! Click below to purchase - credits or configure API keys -

- - Set up API keys - - - - ) : ( - <> -

- Log in to get up and running with starter credits -

+

+ Log in to Continue Hub to get started with AI-powered coding +

- - - )} + Or, configure your own models diff --git a/gui/src/components/OnboardingCard/components/OnboardingCardTabs.tsx b/gui/src/components/OnboardingCard/components/OnboardingCardTabs.tsx index 3040a5324..f14d7084e 100644 --- a/gui/src/components/OnboardingCard/components/OnboardingCardTabs.tsx +++ b/gui/src/components/OnboardingCard/components/OnboardingCardTabs.tsx @@ -6,7 +6,6 @@ import OllamaLogo from "../../svg/OllamaLogo"; interface OnboardingCardTabsProps { activeTab: OnboardingModes; onTabClick: (tabName: OnboardingModes) => void; - showFreeTrialExceededAlert?: boolean; } const renderTabButton = ( @@ -68,27 +67,13 @@ const renderTabButton = ( export function OnboardingCardTabs({ activeTab, onTabClick, - showFreeTrialExceededAlert, }: OnboardingCardTabsProps) { - /** - * When users initially install, we only render these tabs after they've - * declined the free trial, so we show the upgrade tab last since they've - * indicated they want don't want to use the Hub. - * - * If `showFreeTrialExceededAlert` is true, they've used the Hub, so show - * upgrade first. - */ - const tabs = showFreeTrialExceededAlert - ? [ - OnboardingModes.MODELS_ADD_ON, - OnboardingModes.API_KEY, - OnboardingModes.LOCAL, - ] - : [ - OnboardingModes.API_KEY, - OnboardingModes.LOCAL, - OnboardingModes.MODELS_ADD_ON, - ]; + // Show Models Add-On (Credits) first as the primary option + const tabs = [ + OnboardingModes.MODELS_ADD_ON, + OnboardingModes.API_KEY, + OnboardingModes.LOCAL, + ]; return (
diff --git a/gui/src/components/OnboardingCard/components/OnboardingModelsAddOnTab.tsx b/gui/src/components/OnboardingCard/components/OnboardingModelsAddOnTab.tsx index bc667ca80..0b9f45ace 100644 --- a/gui/src/components/OnboardingCard/components/OnboardingModelsAddOnTab.tsx +++ b/gui/src/components/OnboardingCard/components/OnboardingModelsAddOnTab.tsx @@ -1,49 +1,41 @@ -import { ArrowPathIcon } from "@heroicons/react/24/outline"; -import { useContext, useEffect, useState } from "react"; +import { CheckIcon } from "@heroicons/react/24/outline"; +import { useContext } from "react"; import { Button } from "../.."; +import { useAuth } from "../../../context/Auth"; import { IdeMessengerContext } from "../../../context/IdeMessenger"; -import { getLocalStorage } from "../../../util/localStorage"; +import { useAppDispatch } from "../../../redux/hooks"; +import { selectFirstHubProfile } from "../../../redux/thunks/selectFirstHubProfile"; import { useOnboardingCard } from "../hooks/useOnboardingCard"; /** - * Models Add-On tab component displaying pricing and tier information + * Models Add-On tab component with two-step onboarding: + * 1. Create Account - Uses auth.login(true) to sign up and redirect back to IDE + * 2. Purchase Credits - Opens /settings/billing to purchase credits */ export function OnboardingModelsAddOnTab() { const ideMessenger = useContext(IdeMessengerContext); const { close } = useOnboardingCard(); - const [isPolling, setIsPolling] = useState(false); + const auth = useAuth(); + const dispatch = useAppDispatch(); - const isJetbrains = getLocalStorage("ide") === "jetbrains"; + const isLoggedIn = !!auth.session; - // Polling effect for JetBrains - // This is because jetbrains doesn't support deeplinking the same way as VS Code - useEffect(() => { - if (!isPolling || !isJetbrains) return; - - const interval = setInterval(() => { - ideMessenger.post("config/refreshProfiles", { - reason: "Jetbrains onboarding polling", - selectProfileId: "local", - }); - }, 7000); - - return () => clearInterval(interval); - }, [isPolling, isJetbrains, ideMessenger]); - - async function openBillingSettings() { - try { - await ideMessenger.request("controlPlane/openUrl", { - path: "settings/billing", - }); - } catch (error) { - console.error("Error during upgrade process:", error); - } finally { - if (isJetbrains) { - setIsPolling(true); - } else { - close(); + function handleCreateAccount() { + void auth.login(true).then((success) => { + if (success) { + // A new assistant is created when the account is created + // Switch to it immediately + void dispatch(selectFirstHubProfile()); + ideMessenger.post("showToast", ["info", "Account created!"]); } - } + }); + } + + function handlePurchaseCredits() { + ideMessenger.post("controlPlane/openUrl", { + path: "settings/billing", + }); + close(); } function openPricingPage() { @@ -52,28 +44,14 @@ export function OnboardingModelsAddOnTab() { }); } - // Show polling UI for JetBrains after upgrade - if (isPolling && isJetbrains) { - return ( -
-

- - You may close this dialog after upgrading -

-
- ); - } - return (
-
-

- Models Add-on -

-
+

+ Models Add-on +

- + Use a{" "}
-
- -
-
- - - Click here - {" "} - to view pricing details - + {/* Vertical step indicators */} +
+ {/* Step 1: Create Account */} +
+
+
+ {isLoggedIn ? : "1"} +
+ + Create Account + +
+
+
+ +
+
+ + {/* Step 2: Purchase Credits */} +
+
+
+ 2 +
+ + Purchase Credits + +
+
+
+ +
+
); diff --git a/gui/src/components/OnboardingCard/hooks/useOnboardingCard.ts b/gui/src/components/OnboardingCard/hooks/useOnboardingCard.ts index 94a7fb7a8..b3cbd644d 100644 --- a/gui/src/components/OnboardingCard/hooks/useOnboardingCard.ts +++ b/gui/src/components/OnboardingCard/hooks/useOnboardingCard.ts @@ -43,7 +43,7 @@ export function useOnboardingCard(): UseOnboardingCard { dispatch( setOnboardingCard({ show: true, - activeTab: tab ?? OnboardingModes.API_KEY, + activeTab: tab ?? OnboardingModes.MODELS_ADD_ON, }), ); } diff --git a/gui/src/components/ReusableCard.tsx b/gui/src/components/ReusableCard.tsx index fc5ee85b4..1170579fc 100644 --- a/gui/src/components/ReusableCard.tsx +++ b/gui/src/components/ReusableCard.tsx @@ -28,7 +28,7 @@ export function ReusableCard({ }: ReusableCardProps) { return ( {showCloseButton && ( @@ -36,7 +36,7 @@ export function ReusableCard({ )} -
{children}
+
{children}
); } diff --git a/gui/src/components/StyledMarkdownPreview/SyntaxHighlightedPre.tsx b/gui/src/components/StyledMarkdownPreview/SyntaxHighlightedPre.tsx index e656e8e9b..6e4fc3e2b 100644 --- a/gui/src/components/StyledMarkdownPreview/SyntaxHighlightedPre.tsx +++ b/gui/src/components/StyledMarkdownPreview/SyntaxHighlightedPre.tsx @@ -23,6 +23,8 @@ const StyledPre = styled.pre<{ theme: any }>` margin-top: 0; margin-bottom: 0; border-radius: 0 0 ${defaultBorderRadius} ${defaultBorderRadius} !important; + max-height: 40vh; + overflow-y: scroll !important; ${(props) => generateThemeStyles(props.theme)} `; 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 call.status !== "canceled", ); + const pendingCalls = toolCallStates.filter((call) => call.status !== "done"); const renderToolCall = (toolCallState: ToolCallState) => { const tool = availableTools.find( @@ -92,7 +93,7 @@ export function ToolCallDiv({
0 ? pendingCalls : activeCalls} open={open} onToggle={() => setOpen(!open)} /> 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/package-lock.json b/package-lock.json index 095609e8f..a4b2f9714 100644 --- a/package-lock.json +++ b/package-lock.json @@ -8,6 +8,7 @@ "devDependencies": { "@typescript-eslint/parser": "^8.40.0", "concurrently": "^9.1.2", + "eslint": "^8", "eslint-plugin-import": "^2.29.1", "husky": "^9.1.7", "lint-staged": "^15.5.2", @@ -17,9 +18,9 @@ } }, "node_modules/@eslint-community/eslint-utils": { - "version": "4.7.0", - "resolved": "https://registry.npmjs.org/@eslint-community/eslint-utils/-/eslint-utils-4.7.0.tgz", - "integrity": "sha512-dyybb3AcajC7uha6CvhdVRJqaKyn7w2YKqKyAN37NKYgZT36w+iRb0Dymmc5qEJ549c/S31cMMSFd75bteCpCw==", + "version": "4.9.0", + "resolved": "https://registry.npmjs.org/@eslint-community/eslint-utils/-/eslint-utils-4.9.0.tgz", + "integrity": "sha512-ayVFHdtZ+hsq1t2Dy24wCmGXGe4q9Gu3smhLYALJrr473ZH27MsnSL+LKUlimp4BWJqMDMLmPpx/Q9R3OAlL4g==", "dev": true, "license": "MIT", "dependencies": { @@ -35,10 +36,23 @@ "eslint": "^6.0.0 || ^7.0.0 || >=8.0.0" } }, + "node_modules/@eslint-community/eslint-utils/node_modules/eslint-visitor-keys": { + "version": "3.4.3", + "resolved": "https://registry.npmjs.org/eslint-visitor-keys/-/eslint-visitor-keys-3.4.3.tgz", + "integrity": "sha512-wpc+LXeiyiisxPlEkUzU6svyS1frIO3Mgxj1fdy7Pm8Ygzguax2N3Fa/D/ag1WqbOprdI+uY6wMUl8/a2G+iag==", + "dev": true, + "license": "Apache-2.0", + "engines": { + "node": "^12.22.0 || ^14.17.0 || >=16.0.0" + }, + "funding": { + "url": "https://opencollective.com/eslint" + } + }, "node_modules/@eslint-community/regexpp": { - "version": "4.12.1", - "resolved": "https://registry.npmjs.org/@eslint-community/regexpp/-/regexpp-4.12.1.tgz", - "integrity": "sha512-CCZCDJuduB9OUkFkY2IgppNZMi2lBQgD2qzwXkEia16cge2pijY/aXi96CJMquDMn3nJdlPV1A5KrJEXwfLNzQ==", + "version": "4.12.2", + "resolved": "https://registry.npmjs.org/@eslint-community/regexpp/-/regexpp-4.12.2.tgz", + "integrity": "sha512-EriSTlt5OC9/7SXkRSCAhfSxxoSUgBm33OH+IkwbdpgoqsSsUg7y3uh+IICI/Qg4BBWr3U2i39RpmycbxMq4ew==", "dev": true, "license": "MIT", "engines": { @@ -353,18 +367,6 @@ "url": "https://opencollective.com/typescript-eslint" } }, - "node_modules/@typescript-eslint/visitor-keys/node_modules/eslint-visitor-keys": { - "version": "4.2.1", - "resolved": "https://registry.npmjs.org/eslint-visitor-keys/-/eslint-visitor-keys-4.2.1.tgz", - "integrity": "sha512-Uhdk5sfqcee/9H/rCOJikYz67o0a2Tw2hGRPOG2Y1R2dg7brRe1uG0yaNQDHu+TO/uQPF/5eCapvYSmHUjt7JQ==", - "dev": true, - "engines": { - "node": "^18.18.0 || ^20.9.0 || >=21.1.0" - }, - "funding": { - "url": "https://opencollective.com/eslint" - } - }, "node_modules/@ungap/structured-clone": { "version": "1.3.0", "resolved": "https://registry.npmjs.org/@ungap/structured-clone/-/structured-clone-1.3.0.tgz", @@ -1468,13 +1470,13 @@ } }, "node_modules/eslint-visitor-keys": { - "version": "3.4.3", - "resolved": "https://registry.npmjs.org/eslint-visitor-keys/-/eslint-visitor-keys-3.4.3.tgz", - "integrity": "sha512-wpc+LXeiyiisxPlEkUzU6svyS1frIO3Mgxj1fdy7Pm8Ygzguax2N3Fa/D/ag1WqbOprdI+uY6wMUl8/a2G+iag==", + "version": "4.2.1", + "resolved": "https://registry.npmjs.org/eslint-visitor-keys/-/eslint-visitor-keys-4.2.1.tgz", + "integrity": "sha512-Uhdk5sfqcee/9H/rCOJikYz67o0a2Tw2hGRPOG2Y1R2dg7brRe1uG0yaNQDHu+TO/uQPF/5eCapvYSmHUjt7JQ==", "dev": true, "license": "Apache-2.0", "engines": { - "node": "^12.22.0 || ^14.17.0 || >=16.0.0" + "node": "^18.18.0 || ^20.9.0 || >=21.1.0" }, "funding": { "url": "https://opencollective.com/eslint" @@ -1491,6 +1493,19 @@ "concat-map": "0.0.1" } }, + "node_modules/eslint/node_modules/eslint-visitor-keys": { + "version": "3.4.3", + "resolved": "https://registry.npmjs.org/eslint-visitor-keys/-/eslint-visitor-keys-3.4.3.tgz", + "integrity": "sha512-wpc+LXeiyiisxPlEkUzU6svyS1frIO3Mgxj1fdy7Pm8Ygzguax2N3Fa/D/ag1WqbOprdI+uY6wMUl8/a2G+iag==", + "dev": true, + "license": "Apache-2.0", + "engines": { + "node": "^12.22.0 || ^14.17.0 || >=16.0.0" + }, + "funding": { + "url": "https://opencollective.com/eslint" + } + }, "node_modules/eslint/node_modules/minimatch": { "version": "3.1.2", "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-3.1.2.tgz", @@ -1522,6 +1537,19 @@ "url": "https://opencollective.com/eslint" } }, + "node_modules/espree/node_modules/eslint-visitor-keys": { + "version": "3.4.3", + "resolved": "https://registry.npmjs.org/eslint-visitor-keys/-/eslint-visitor-keys-3.4.3.tgz", + "integrity": "sha512-wpc+LXeiyiisxPlEkUzU6svyS1frIO3Mgxj1fdy7Pm8Ygzguax2N3Fa/D/ag1WqbOprdI+uY6wMUl8/a2G+iag==", + "dev": true, + "license": "Apache-2.0", + "engines": { + "node": "^12.22.0 || ^14.17.0 || >=16.0.0" + }, + "funding": { + "url": "https://opencollective.com/eslint" + } + }, "node_modules/esquery": { "version": "1.6.0", "resolved": "https://registry.npmjs.org/esquery/-/esquery-1.6.0.tgz", @@ -2622,9 +2650,9 @@ "license": "ISC" }, "node_modules/js-yaml": { - "version": "4.1.0", - "resolved": "https://registry.npmjs.org/js-yaml/-/js-yaml-4.1.0.tgz", - "integrity": "sha512-wpxZs9NoxZaJESJGIZTyDEaYpl0FKSA+FB9aJiyemKhMwkxQg63h4T1KJgUGHpTqPDNRcmmYLugrRjJlBtWvRA==", + "version": "4.1.1", + "resolved": "https://registry.npmjs.org/js-yaml/-/js-yaml-4.1.1.tgz", + "integrity": "sha512-qQKT4zQxXl8lLwBtHMWwaTcGfFOZviOJet3Oy/xmGk2gZH677CJM9EvtfdSkgWcATZhj/55JZ0rmy3myCT5lsA==", "dev": true, "license": "MIT", "dependencies": { diff --git a/package.json b/package.json index 8f5aa040e..dd1a5f381 100644 --- a/package.json +++ b/package.json @@ -16,6 +16,7 @@ "devDependencies": { "@typescript-eslint/parser": "^8.40.0", "concurrently": "^9.1.2", + "eslint": "^8", "eslint-plugin-import": "^2.29.1", "husky": "^9.1.7", "lint-staged": "^15.5.2", 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/continue-sdk/python/api/requirements.txt b/packages/continue-sdk/python/api/requirements.txt index 67f7f68df..fd20bc894 100644 --- a/packages/continue-sdk/python/api/requirements.txt +++ b/packages/continue-sdk/python/api/requirements.txt @@ -1,4 +1,4 @@ -urllib3 >= 1.25.3, < 3.0.0 +urllib3>=2.6.0 python_dateutil >= 2.8.2 pydantic >= 2 typing-extensions >= 4.7.1 diff --git a/packages/fetch/package-lock.json b/packages/fetch/package-lock.json index 39980e93e..ef54d2290 100644 --- a/packages/fetch/package-lock.json +++ b/packages/fetch/package-lock.json @@ -31,7 +31,7 @@ "version": "1.0.14", "license": "Apache-2.0", "dependencies": { - "zod": "^3.24.2" + "zod": "^3.25.76" }, "devDependencies": { "@types/node": "^20.11.19", 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..039691f4b 100644 --- a/packages/openai-adapters/package-lock.json +++ b/packages/openai-adapters/package-lock.json @@ -1,20 +1,21 @@ { "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.929.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", + "@google/genai": "^1.30.0", "dotenv": "^16.5.0", "google-auth-library": "^10.4.1", "json-schema": "^0.4.0", @@ -42,9 +43,9 @@ } }, "node_modules/@anthropic-ai/sdk": { - "version": "0.67.0", - "resolved": "https://registry.npmjs.org/@anthropic-ai/sdk/-/sdk-0.67.0.tgz", - "integrity": "sha512-Buxbf6jYJ+pPtfCgXe1pcFtZmdXPrbdqhBjiscFt9irS1G0hCsmR/fPA+DwKTk4GPjqeNnnCYNecXH6uVZ4G/A==", + "version": "0.67.1", + "resolved": "https://registry.npmjs.org/@anthropic-ai/sdk/-/sdk-0.67.1.tgz", + "integrity": "sha512-ZLYZLog5ttur2OXkBxoCr8C+bsIGG//OwKYoDw4ZOlwdKF6u+qqQ7y+R4x9zqgQJBbdg5qZs6RHA7L+QpSrHUA==", "license": "MIT", "dependencies": { "json-schema-to-ts": "^3.1.1" @@ -201,121 +202,106 @@ } }, "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.943.0", + "resolved": "https://registry.npmjs.org/@aws-sdk/client-bedrock-runtime/-/client-bedrock-runtime-3.943.0.tgz", + "integrity": "sha512-mEiv1g5BeZFIQjBrzM5nT//KYLOBwUkXtHzsufkV99TIEKW5qzgOgx9Q9O8IbFQk3c7C6HYkV/kNOUI3KGyH6g==", "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.943.0", + "@aws-sdk/credential-provider-node": "3.943.0", + "@aws-sdk/eventstream-handler-node": "3.936.0", + "@aws-sdk/middleware-eventstream": "3.936.0", + "@aws-sdk/middleware-host-header": "3.936.0", + "@aws-sdk/middleware-logger": "3.936.0", + "@aws-sdk/middleware-recursion-detection": "3.936.0", + "@aws-sdk/middleware-user-agent": "3.943.0", + "@aws-sdk/middleware-websocket": "3.936.0", + "@aws-sdk/region-config-resolver": "3.936.0", + "@aws-sdk/token-providers": "3.943.0", + "@aws-sdk/types": "3.936.0", + "@aws-sdk/util-endpoints": "3.936.0", + "@aws-sdk/util-user-agent-browser": "3.936.0", + "@aws-sdk/util-user-agent-node": "3.943.0", + "@smithy/config-resolver": "^4.4.3", + "@smithy/core": "^3.18.5", + "@smithy/eventstream-serde-browser": "^4.2.5", + "@smithy/eventstream-serde-config-resolver": "^4.3.5", + "@smithy/eventstream-serde-node": "^4.2.5", + "@smithy/fetch-http-handler": "^5.3.6", + "@smithy/hash-node": "^4.2.5", + "@smithy/invalid-dependency": "^4.2.5", + "@smithy/middleware-content-length": "^4.2.5", + "@smithy/middleware-endpoint": "^4.3.12", + "@smithy/middleware-retry": "^4.4.12", + "@smithy/middleware-serde": "^4.2.6", + "@smithy/middleware-stack": "^4.2.5", + "@smithy/node-config-provider": "^4.3.5", + "@smithy/node-http-handler": "^4.4.5", + "@smithy/protocol-http": "^5.3.5", + "@smithy/smithy-client": "^4.9.8", + "@smithy/types": "^4.9.0", + "@smithy/url-parser": "^4.2.5", + "@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.11", + "@smithy/util-defaults-mode-node": "^4.2.14", + "@smithy/util-endpoints": "^3.2.5", + "@smithy/util-middleware": "^4.2.5", + "@smithy/util-retry": "^4.2.5", + "@smithy/util-stream": "^4.5.6", + "@smithy/util-utf8": "^4.2.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.943.0", + "resolved": "https://registry.npmjs.org/@aws-sdk/client-cognito-identity/-/client-cognito-identity-3.943.0.tgz", + "integrity": "sha512-XkuokRF2IQ+VLBn0AwrwfFOkZ2c1IXACwQdn3CDnpBZpT1s2hgH3MX0DoH9+41w4ar2QCSI09uAJiv9PX4DLoQ==", "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.943.0", + "@aws-sdk/credential-provider-node": "3.943.0", + "@aws-sdk/middleware-host-header": "3.936.0", + "@aws-sdk/middleware-logger": "3.936.0", + "@aws-sdk/middleware-recursion-detection": "3.936.0", + "@aws-sdk/middleware-user-agent": "3.943.0", + "@aws-sdk/region-config-resolver": "3.936.0", + "@aws-sdk/types": "3.936.0", + "@aws-sdk/util-endpoints": "3.936.0", + "@aws-sdk/util-user-agent-browser": "3.936.0", + "@aws-sdk/util-user-agent-node": "3.943.0", + "@smithy/config-resolver": "^4.4.3", + "@smithy/core": "^3.18.5", + "@smithy/fetch-http-handler": "^5.3.6", + "@smithy/hash-node": "^4.2.5", + "@smithy/invalid-dependency": "^4.2.5", + "@smithy/middleware-content-length": "^4.2.5", + "@smithy/middleware-endpoint": "^4.3.12", + "@smithy/middleware-retry": "^4.4.12", + "@smithy/middleware-serde": "^4.2.6", + "@smithy/middleware-stack": "^4.2.5", + "@smithy/node-config-provider": "^4.3.5", + "@smithy/node-http-handler": "^4.4.5", + "@smithy/protocol-http": "^5.3.5", + "@smithy/smithy-client": "^4.9.8", + "@smithy/types": "^4.9.0", + "@smithy/url-parser": "^4.2.5", "@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.11", + "@smithy/util-defaults-mode-node": "^4.2.14", + "@smithy/util-endpoints": "^3.2.5", + "@smithy/util-middleware": "^4.2.5", + "@smithy/util-retry": "^4.2.5", "@smithy/util-utf8": "^4.2.0", "tslib": "^2.6.2" }, @@ -323,486 +309,49 @@ "node": ">=18.0.0" } }, - "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==", - "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", - "@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-utf8": "^4.2.0", - "tslib": "^2.6.2" - }, - "engines": { - "node": ">=18.0.0" - } - }, - "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==", - "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", - "@smithy/util-base64": "^4.3.0", - "@smithy/util-middleware": "^4.2.2", - "@smithy/util-utf8": "^4.2.0", - "tslib": "^2.6.2" - }, - "engines": { - "node": ">=18.0.0" - } - }, - "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==", - "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", - "tslib": "^2.6.2" - }, - "engines": { - "node": ">=18.0.0" - } - }, - "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==", - "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", - "tslib": "^2.6.2" - }, - "engines": { - "node": ">=18.0.0" - } - }, - "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==", - "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", - "tslib": "^2.6.2" - }, - "engines": { - "node": ">=18.0.0" - } - }, - "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==", - "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", - "tslib": "^2.6.2" - }, - "engines": { - "node": ">=18.0.0" - } - }, - "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==", - "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", - "tslib": "^2.6.2" - }, - "engines": { - "node": ">=18.0.0" - } - }, - "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==", - "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", - "tslib": "^2.6.2" - }, - "engines": { - "node": ">=18.0.0" - } - }, - "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==", - "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", - "tslib": "^2.6.2" - }, - "engines": { - "node": ">=18.0.0" - } - }, - "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==", - "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", - "tslib": "^2.6.2" - }, - "engines": { - "node": ">=18.0.0" - } - }, - "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==", - "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", - "@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-utf8": "^4.2.0", - "tslib": "^2.6.2" - }, - "engines": { - "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==", - "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/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==", - "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", - "tslib": "^2.6.2" - }, - "engines": { - "node": ">=18.0.0" - }, - "peerDependencies": { - "aws-crt": ">=1.0.0" - }, - "peerDependenciesMeta": { - "aws-crt": { - "optional": true - } - } - }, - "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.943.0", + "resolved": "https://registry.npmjs.org/@aws-sdk/client-sso/-/client-sso-3.943.0.tgz", + "integrity": "sha512-kOTO2B8Ks2qX73CyKY8PAajtf5n39aMe2spoiOF5EkgSzGV7hZ/HONRDyADlyxwfsX39Q2F2SpPUaXzon32IGw==", "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.943.0", + "@aws-sdk/middleware-host-header": "3.936.0", + "@aws-sdk/middleware-logger": "3.936.0", + "@aws-sdk/middleware-recursion-detection": "3.936.0", + "@aws-sdk/middleware-user-agent": "3.943.0", + "@aws-sdk/region-config-resolver": "3.936.0", + "@aws-sdk/types": "3.936.0", + "@aws-sdk/util-endpoints": "3.936.0", + "@aws-sdk/util-user-agent-browser": "3.936.0", + "@aws-sdk/util-user-agent-node": "3.943.0", + "@smithy/config-resolver": "^4.4.3", + "@smithy/core": "^3.18.5", + "@smithy/fetch-http-handler": "^5.3.6", + "@smithy/hash-node": "^4.2.5", + "@smithy/invalid-dependency": "^4.2.5", + "@smithy/middleware-content-length": "^4.2.5", + "@smithy/middleware-endpoint": "^4.3.12", + "@smithy/middleware-retry": "^4.4.12", + "@smithy/middleware-serde": "^4.2.6", + "@smithy/middleware-stack": "^4.2.5", + "@smithy/node-config-provider": "^4.3.5", + "@smithy/node-http-handler": "^4.4.5", + "@smithy/protocol-http": "^5.3.5", + "@smithy/smithy-client": "^4.9.8", + "@smithy/types": "^4.9.0", + "@smithy/url-parser": "^4.2.5", + "@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.11", + "@smithy/util-defaults-mode-node": "^4.2.14", + "@smithy/util-endpoints": "^3.2.5", + "@smithy/util-middleware": "^4.2.5", + "@smithy/util-retry": "^4.2.5", + "@smithy/util-utf8": "^4.2.0", "tslib": "^2.6.2" }, "engines": { @@ -810,25 +359,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.943.0", + "resolved": "https://registry.npmjs.org/@aws-sdk/core/-/core-3.943.0.tgz", + "integrity": "sha512-8CBy2hI9ABF7RBVQuY1bgf/ue+WPmM/hl0adrXFlhnhkaQP0tFY5zhiy1Y+n7V+5f3/ORoHBmCCQmcHDDYJqJQ==", "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.936.0", + "@aws-sdk/xml-builder": "3.930.0", + "@smithy/core": "^3.18.5", + "@smithy/node-config-provider": "^4.3.5", + "@smithy/property-provider": "^4.2.5", + "@smithy/protocol-http": "^5.3.5", + "@smithy/signature-v4": "^5.3.5", + "@smithy/smithy-client": "^4.9.8", + "@smithy/types": "^4.9.0", + "@smithy/util-base64": "^4.3.0", + "@smithy/util-middleware": "^4.2.5", + "@smithy/util-utf8": "^4.2.0", "tslib": "^2.6.2" }, "engines": { @@ -836,28 +383,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.943.0", + "resolved": "https://registry.npmjs.org/@aws-sdk/credential-provider-cognito-identity/-/credential-provider-cognito-identity-3.943.0.tgz", + "integrity": "sha512-jZJ0uHjNlhfjx2ZX7YVYnh1wfSkLAvQmecGCSl9C6LJRNXy4uWFPbGjPqcA0tWp0WWIsUYhqjasgvCOMZIY8nw==", "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.943.0", + "@aws-sdk/types": "3.936.0", + "@smithy/property-provider": "^4.2.5", + "@smithy/types": "^4.9.0", "tslib": "^2.6.2" }, "engines": { @@ -865,15 +399,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.943.0", + "resolved": "https://registry.npmjs.org/@aws-sdk/credential-provider-env/-/credential-provider-env-3.943.0.tgz", + "integrity": "sha512-WnS5w9fK9CTuoZRVSIHLOMcI63oODg9qd1vXMYb7QGLGlfwUm4aG3hdu7i9XvYrpkQfE3dzwWLtXF4ZBuL1Tew==", "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.943.0", + "@aws-sdk/types": "3.936.0", + "@smithy/property-provider": "^4.2.5", + "@smithy/types": "^4.9.0", "tslib": "^2.6.2" }, "engines": { @@ -881,20 +415,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.943.0", + "resolved": "https://registry.npmjs.org/@aws-sdk/credential-provider-http/-/credential-provider-http-3.943.0.tgz", + "integrity": "sha512-SA8bUcYDEACdhnhLpZNnWusBpdmj4Vl67Vxp3Zke7SvoWSYbuxa+tiDiC+c92Z4Yq6xNOuLPW912ZPb9/NsSkA==", "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.943.0", + "@aws-sdk/types": "3.936.0", + "@smithy/fetch-http-handler": "^5.3.6", + "@smithy/node-http-handler": "^4.4.5", + "@smithy/property-provider": "^4.2.5", + "@smithy/protocol-http": "^5.3.5", + "@smithy/smithy-client": "^4.9.8", + "@smithy/types": "^4.9.0", + "@smithy/util-stream": "^4.5.6", "tslib": "^2.6.2" }, "engines": { @@ -902,23 +436,43 @@ } }, "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.943.0", + "resolved": "https://registry.npmjs.org/@aws-sdk/credential-provider-ini/-/credential-provider-ini-3.943.0.tgz", + "integrity": "sha512-BcLDb8l4oVW+NkuqXMlO7TnM6lBOWW318ylf4FRED/ply5eaGxkQYqdGvHSqGSN5Rb3vr5Ek0xpzSjeYD7C8Kw==", "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.943.0", + "@aws-sdk/credential-provider-env": "3.943.0", + "@aws-sdk/credential-provider-http": "3.943.0", + "@aws-sdk/credential-provider-login": "3.943.0", + "@aws-sdk/credential-provider-process": "3.943.0", + "@aws-sdk/credential-provider-sso": "3.943.0", + "@aws-sdk/credential-provider-web-identity": "3.943.0", + "@aws-sdk/nested-clients": "3.943.0", + "@aws-sdk/types": "3.936.0", + "@smithy/credential-provider-imds": "^4.2.5", + "@smithy/property-provider": "^4.2.5", + "@smithy/shared-ini-file-loader": "^4.4.0", + "@smithy/types": "^4.9.0", + "tslib": "^2.6.2" + }, + "engines": { + "node": ">=18.0.0" + } + }, + "node_modules/@aws-sdk/credential-provider-login": { + "version": "3.943.0", + "resolved": "https://registry.npmjs.org/@aws-sdk/credential-provider-login/-/credential-provider-login-3.943.0.tgz", + "integrity": "sha512-9iCOVkiRW+evxiJE94RqosCwRrzptAVPhRhGWv4osfYDhjNAvUMyrnZl3T1bjqCoKNcETRKEZIU3dqYHnUkcwQ==", + "license": "Apache-2.0", + "dependencies": { + "@aws-sdk/core": "3.943.0", + "@aws-sdk/nested-clients": "3.943.0", + "@aws-sdk/types": "3.936.0", + "@smithy/property-provider": "^4.2.5", + "@smithy/protocol-http": "^5.3.5", + "@smithy/shared-ini-file-loader": "^4.4.0", + "@smithy/types": "^4.9.0", "tslib": "^2.6.2" }, "engines": { @@ -926,22 +480,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.943.0", + "resolved": "https://registry.npmjs.org/@aws-sdk/credential-provider-node/-/credential-provider-node-3.943.0.tgz", + "integrity": "sha512-14eddaH/gjCWoLSAELVrFOQNyswUYwWphIt+PdsJ/FqVfP4ay2HsiZVEIYbQtmrKHaoLJhiZKwBQRjcqJDZG0w==", "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.943.0", + "@aws-sdk/credential-provider-http": "3.943.0", + "@aws-sdk/credential-provider-ini": "3.943.0", + "@aws-sdk/credential-provider-process": "3.943.0", + "@aws-sdk/credential-provider-sso": "3.943.0", + "@aws-sdk/credential-provider-web-identity": "3.943.0", + "@aws-sdk/types": "3.936.0", + "@smithy/credential-provider-imds": "^4.2.5", + "@smithy/property-provider": "^4.2.5", + "@smithy/shared-ini-file-loader": "^4.4.0", + "@smithy/types": "^4.9.0", "tslib": "^2.6.2" }, "engines": { @@ -949,16 +503,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.943.0", + "resolved": "https://registry.npmjs.org/@aws-sdk/credential-provider-process/-/credential-provider-process-3.943.0.tgz", + "integrity": "sha512-GIY/vUkthL33AdjOJ8r9vOosKf/3X+X7LIiACzGxvZZrtoOiRq0LADppdiKIB48vTL63VvW+eRIOFAxE6UDekw==", "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.943.0", + "@aws-sdk/types": "3.936.0", + "@smithy/property-provider": "^4.2.5", + "@smithy/shared-ini-file-loader": "^4.4.0", + "@smithy/types": "^4.9.0", "tslib": "^2.6.2" }, "engines": { @@ -966,18 +520,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.943.0", + "resolved": "https://registry.npmjs.org/@aws-sdk/credential-provider-sso/-/credential-provider-sso-3.943.0.tgz", + "integrity": "sha512-1c5G11syUrru3D9OO6Uk+ul5e2lX1adb+7zQNyluNaLPXP6Dina6Sy6DFGRLu7tM8+M7luYmbS3w63rpYpaL+A==", "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.943.0", + "@aws-sdk/core": "3.943.0", + "@aws-sdk/token-providers": "3.943.0", + "@aws-sdk/types": "3.936.0", + "@smithy/property-provider": "^4.2.5", + "@smithy/shared-ini-file-loader": "^4.4.0", + "@smithy/types": "^4.9.0", "tslib": "^2.6.2" }, "engines": { @@ -985,17 +539,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.943.0", + "resolved": "https://registry.npmjs.org/@aws-sdk/credential-provider-web-identity/-/credential-provider-web-identity-3.943.0.tgz", + "integrity": "sha512-VtyGKHxICSb4kKGuaqotxso8JVM8RjCS3UYdIMOxUt9TaFE/CZIfZKtjTr+IJ7M0P7t36wuSUb/jRLyNmGzUUA==", "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.943.0", + "@aws-sdk/nested-clients": "3.943.0", + "@aws-sdk/types": "3.936.0", + "@smithy/property-provider": "^4.2.5", + "@smithy/shared-ini-file-loader": "^4.4.0", + "@smithy/types": "^4.9.0", "tslib": "^2.6.2" }, "engines": { @@ -1003,466 +557,30 @@ } }, "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.943.0", + "resolved": "https://registry.npmjs.org/@aws-sdk/credential-providers/-/credential-providers-3.943.0.tgz", + "integrity": "sha512-uZurSNsS01ehhrSwEPwcKdqp9lmd/x9q++BYO351bXyjSj1LzA/2lfUIxI2tCz/wAjJWOdnnlUdJj6P9I1uNvw==", "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", - "tslib": "^2.6.2" - }, - "engines": { - "node": ">=18.0.0" - } - }, - "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==", - "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", - "@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-utf8": "^4.2.0", - "tslib": "^2.6.2" - }, - "engines": { - "node": ">=18.0.0" - } - }, - "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==", - "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", - "@smithy/util-base64": "^4.3.0", - "@smithy/util-middleware": "^4.2.2", - "@smithy/util-utf8": "^4.2.0", - "tslib": "^2.6.2" - }, - "engines": { - "node": ">=18.0.0" - } - }, - "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==", - "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", - "tslib": "^2.6.2" - }, - "engines": { - "node": ">=18.0.0" - } - }, - "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==", - "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", - "tslib": "^2.6.2" - }, - "engines": { - "node": ">=18.0.0" - } - }, - "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==", - "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", - "tslib": "^2.6.2" - }, - "engines": { - "node": ">=18.0.0" - } - }, - "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==", - "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", - "tslib": "^2.6.2" - }, - "engines": { - "node": ">=18.0.0" - } - }, - "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==", - "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", - "tslib": "^2.6.2" - }, - "engines": { - "node": ">=18.0.0" - } - }, - "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==", - "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", - "tslib": "^2.6.2" - }, - "engines": { - "node": ">=18.0.0" - } - }, - "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==", - "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", - "tslib": "^2.6.2" - }, - "engines": { - "node": ">=18.0.0" - } - }, - "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==", - "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", - "tslib": "^2.6.2" - }, - "engines": { - "node": ">=18.0.0" - } - }, - "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==", - "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", - "@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-utf8": "^4.2.0", - "tslib": "^2.6.2" - }, - "engines": { - "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==", - "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/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==", - "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", - "tslib": "^2.6.2" - }, - "engines": { - "node": ">=18.0.0" - }, - "peerDependencies": { - "aws-crt": ">=1.0.0" - }, - "peerDependenciesMeta": { - "aws-crt": { - "optional": true - } - } - }, - "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", + "@aws-sdk/client-cognito-identity": "3.943.0", + "@aws-sdk/core": "3.943.0", + "@aws-sdk/credential-provider-cognito-identity": "3.943.0", + "@aws-sdk/credential-provider-env": "3.943.0", + "@aws-sdk/credential-provider-http": "3.943.0", + "@aws-sdk/credential-provider-ini": "3.943.0", + "@aws-sdk/credential-provider-login": "3.943.0", + "@aws-sdk/credential-provider-node": "3.943.0", + "@aws-sdk/credential-provider-process": "3.943.0", + "@aws-sdk/credential-provider-sso": "3.943.0", + "@aws-sdk/credential-provider-web-identity": "3.943.0", + "@aws-sdk/nested-clients": "3.943.0", + "@aws-sdk/types": "3.936.0", + "@smithy/config-resolver": "^4.4.3", + "@smithy/core": "^3.18.5", + "@smithy/credential-provider-imds": "^4.2.5", + "@smithy/node-config-provider": "^4.3.5", + "@smithy/property-provider": "^4.2.5", + "@smithy/types": "^4.9.0", "tslib": "^2.6.2" }, "engines": { @@ -1470,14 +588,14 @@ } }, "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.936.0", + "resolved": "https://registry.npmjs.org/@aws-sdk/eventstream-handler-node/-/eventstream-handler-node-3.936.0.tgz", + "integrity": "sha512-4zIbhdRmol2KosIHmU31ATvNP0tkJhDlRj9GuawVJoEnMvJA1pd2U3SRdiOImJU3j8pT46VeS4YMmYxfjGHByg==", "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.936.0", + "@smithy/eventstream-codec": "^4.2.5", + "@smithy/types": "^4.9.0", "tslib": "^2.6.2" }, "engines": { @@ -1485,14 +603,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.936.0", + "resolved": "https://registry.npmjs.org/@aws-sdk/middleware-eventstream/-/middleware-eventstream-3.936.0.tgz", + "integrity": "sha512-XQSH8gzLkk8CDUDxyt4Rdm9owTpRIPdtg2yw9Y2Wl5iSI55YQSiC3x8nM3c4Y4WqReJprunFPK225ZUDoYCfZA==", "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.936.0", + "@smithy/protocol-http": "^5.3.5", + "@smithy/types": "^4.9.0", "tslib": "^2.6.2" }, "engines": { @@ -1500,14 +618,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.936.0", + "resolved": "https://registry.npmjs.org/@aws-sdk/middleware-host-header/-/middleware-host-header-3.936.0.tgz", + "integrity": "sha512-tAaObaAnsP1XnLGndfkGWFuzrJYuk9W0b/nLvol66t8FZExIAf/WdkT2NNAWOYxljVs++oHnyHBCxIlaHrzSiw==", "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.936.0", + "@smithy/protocol-http": "^5.3.5", + "@smithy/types": "^4.9.0", "tslib": "^2.6.2" }, "engines": { @@ -1515,13 +633,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.936.0", + "resolved": "https://registry.npmjs.org/@aws-sdk/middleware-logger/-/middleware-logger-3.936.0.tgz", + "integrity": "sha512-aPSJ12d3a3Ea5nyEnLbijCaaYJT2QjQ9iW+zGh5QcZYXmOGWbKVyPSxmVOboZQG+c1M8t6d2O7tqrwzIq8L8qw==", "license": "Apache-2.0", "dependencies": { - "@aws-sdk/types": "3.887.0", - "@smithy/types": "^4.5.0", + "@aws-sdk/types": "3.936.0", + "@smithy/types": "^4.9.0", "tslib": "^2.6.2" }, "engines": { @@ -1529,15 +647,15 @@ } }, "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.936.0", + "resolved": "https://registry.npmjs.org/@aws-sdk/middleware-recursion-detection/-/middleware-recursion-detection-3.936.0.tgz", + "integrity": "sha512-l4aGbHpXM45YNgXggIux1HgsCVAvvBoqHPkqLnqMl9QVapfuSTjJHfDYDsx1Xxct6/m7qSMUzanBALhiaGO2fA==", "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.936.0", + "@aws/lambda-invoke-store": "^0.2.0", + "@smithy/protocol-http": "^5.3.5", + "@smithy/types": "^4.9.0", "tslib": "^2.6.2" }, "engines": { @@ -1545,17 +663,17 @@ } }, "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.943.0", + "resolved": "https://registry.npmjs.org/@aws-sdk/middleware-user-agent/-/middleware-user-agent-3.943.0.tgz", + "integrity": "sha512-956n4kVEwFNXndXfhSAN5wO+KRgqiWEEY+ECwLvxmmO8uQ0NWOa8l6l65nTtyuiWzMX81c9BvlyNR5EgUeeUvA==", "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.943.0", + "@aws-sdk/types": "3.936.0", + "@aws-sdk/util-endpoints": "3.936.0", + "@smithy/core": "^3.18.5", + "@smithy/protocol-http": "^5.3.5", + "@smithy/types": "^4.9.0", "tslib": "^2.6.2" }, "engines": { @@ -1563,20 +681,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.936.0", + "resolved": "https://registry.npmjs.org/@aws-sdk/middleware-websocket/-/middleware-websocket-3.936.0.tgz", + "integrity": "sha512-bPe3rqeugyj/MmjP0yBSZox2v1Wa8Dv39KN+RxVbQroLO8VUitBo6xyZ0oZebhZ5sASwSg58aDcMlX0uFLQnTA==", "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.936.0", + "@aws-sdk/util-format-url": "3.936.0", + "@smithy/eventstream-codec": "^4.2.5", + "@smithy/eventstream-serde-browser": "^4.2.5", + "@smithy/fetch-http-handler": "^5.3.6", + "@smithy/protocol-http": "^5.3.5", + "@smithy/signature-v4": "^5.3.5", + "@smithy/types": "^4.9.0", + "@smithy/util-hex-encoding": "^4.2.0", "tslib": "^2.6.2" }, "engines": { @@ -1584,48 +702,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.943.0", + "resolved": "https://registry.npmjs.org/@aws-sdk/nested-clients/-/nested-clients-3.943.0.tgz", + "integrity": "sha512-anFtB0p2FPuyUnbOULwGmKYqYKSq1M73c9uZ08jR/NCq6Trjq9cuF5TFTeHwjJyPRb4wMf2Qk859oiVfFqnQiw==", "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.943.0", + "@aws-sdk/middleware-host-header": "3.936.0", + "@aws-sdk/middleware-logger": "3.936.0", + "@aws-sdk/middleware-recursion-detection": "3.936.0", + "@aws-sdk/middleware-user-agent": "3.943.0", + "@aws-sdk/region-config-resolver": "3.936.0", + "@aws-sdk/types": "3.936.0", + "@aws-sdk/util-endpoints": "3.936.0", + "@aws-sdk/util-user-agent-browser": "3.936.0", + "@aws-sdk/util-user-agent-node": "3.943.0", + "@smithy/config-resolver": "^4.4.3", + "@smithy/core": "^3.18.5", + "@smithy/fetch-http-handler": "^5.3.6", + "@smithy/hash-node": "^4.2.5", + "@smithy/invalid-dependency": "^4.2.5", + "@smithy/middleware-content-length": "^4.2.5", + "@smithy/middleware-endpoint": "^4.3.12", + "@smithy/middleware-retry": "^4.4.12", + "@smithy/middleware-serde": "^4.2.6", + "@smithy/middleware-stack": "^4.2.5", + "@smithy/node-config-provider": "^4.3.5", + "@smithy/node-http-handler": "^4.4.5", + "@smithy/protocol-http": "^5.3.5", + "@smithy/smithy-client": "^4.9.8", + "@smithy/types": "^4.9.0", + "@smithy/url-parser": "^4.2.5", + "@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.11", + "@smithy/util-defaults-mode-node": "^4.2.14", + "@smithy/util-endpoints": "^3.2.5", + "@smithy/util-middleware": "^4.2.5", + "@smithy/util-retry": "^4.2.5", + "@smithy/util-utf8": "^4.2.0", "tslib": "^2.6.2" }, "engines": { @@ -1633,16 +751,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.936.0", + "resolved": "https://registry.npmjs.org/@aws-sdk/region-config-resolver/-/region-config-resolver-3.936.0.tgz", + "integrity": "sha512-wOKhzzWsshXGduxO4pqSiNyL9oUtk4BEvjWm9aaq6Hmfdoydq6v6t0rAGHWPjFwy9z2haovGRi3C8IxdMB4muw==", "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.936.0", + "@smithy/config-resolver": "^4.4.3", + "@smithy/node-config-provider": "^4.3.5", + "@smithy/types": "^4.9.0", "tslib": "^2.6.2" }, "engines": { @@ -1650,17 +767,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.943.0", + "resolved": "https://registry.npmjs.org/@aws-sdk/token-providers/-/token-providers-3.943.0.tgz", + "integrity": "sha512-cRKyIzwfkS+XztXIFPoWORuaxlIswP+a83BJzelX4S1gUZ7FcXB4+lj9Jxjn8SbQhR4TPU3Owbpu+S7pd6IRbQ==", "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.943.0", + "@aws-sdk/nested-clients": "3.943.0", + "@aws-sdk/types": "3.936.0", + "@smithy/property-provider": "^4.2.5", + "@smithy/shared-ini-file-loader": "^4.4.0", + "@smithy/types": "^4.9.0", "tslib": "^2.6.2" }, "engines": { @@ -1668,12 +785,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.936.0", + "resolved": "https://registry.npmjs.org/@aws-sdk/types/-/types-3.936.0.tgz", + "integrity": "sha512-uz0/VlMd2pP5MepdrHizd+T+OKfyK4r3OA9JI+L/lPKg0YFQosdJNCKisr6o70E3dh8iMpFYxF1UN/4uZsyARg==", "license": "Apache-2.0", "dependencies": { - "@smithy/types": "^4.5.0", + "@smithy/types": "^4.9.0", "tslib": "^2.6.2" }, "engines": { @@ -1681,15 +798,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.936.0", + "resolved": "https://registry.npmjs.org/@aws-sdk/util-endpoints/-/util-endpoints-3.936.0.tgz", + "integrity": "sha512-0Zx3Ntdpu+z9Wlm7JKUBOzS9EunwKAb4KdGUQQxDqh5Lc3ta5uBoub+FgmVuzwnmBu9U1Os8UuwVTH0Lgu+P5w==", "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.936.0", + "@smithy/types": "^4.9.0", + "@smithy/url-parser": "^4.2.5", + "@smithy/util-endpoints": "^3.2.5", "tslib": "^2.6.2" }, "engines": { @@ -1697,14 +814,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.936.0", + "resolved": "https://registry.npmjs.org/@aws-sdk/util-format-url/-/util-format-url-3.936.0.tgz", + "integrity": "sha512-MS5eSEtDUFIAMHrJaMERiHAvDPdfxc/T869ZjDNFAIiZhyc037REw0aoTNeimNXDNy2txRNZJaAUn/kE4RwN+g==", "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.936.0", + "@smithy/querystring-builder": "^4.2.5", + "@smithy/types": "^4.9.0", "tslib": "^2.6.2" }, "engines": { @@ -1712,9 +829,9 @@ } }, "node_modules/@aws-sdk/util-locate-window": { - "version": "3.873.0", - "resolved": "https://registry.npmjs.org/@aws-sdk/util-locate-window/-/util-locate-window-3.873.0.tgz", - "integrity": "sha512-xcVhZF6svjM5Rj89T1WzkjQmrTF6dpR2UvIHPMTnSZoNe6CixejPZ6f0JJ2kAhO8H+dUHwNBlsUgOTIKiK/Syg==", + "version": "3.893.0", + "resolved": "https://registry.npmjs.org/@aws-sdk/util-locate-window/-/util-locate-window-3.893.0.tgz", + "integrity": "sha512-T89pFfgat6c8nMmpI8eKjBcDcgJq36+m9oiXbcUzeU55MP9ZuGgBomGjGnHaEyF36jenW9gmg3NfZDm0AO2XPg==", "license": "Apache-2.0", "dependencies": { "tslib": "^2.6.2" @@ -1724,27 +841,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.936.0", + "resolved": "https://registry.npmjs.org/@aws-sdk/util-user-agent-browser/-/util-user-agent-browser-3.936.0.tgz", + "integrity": "sha512-eZ/XF6NxMtu+iCma58GRNRxSq4lHo6zHQLOZRIeL/ghqYJirqHdenMOwrzPettj60KWlv827RVebP9oNVrwZbw==", "license": "Apache-2.0", "dependencies": { - "@aws-sdk/types": "3.887.0", - "@smithy/types": "^4.5.0", + "@aws-sdk/types": "3.936.0", + "@smithy/types": "^4.9.0", "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.943.0", + "resolved": "https://registry.npmjs.org/@aws-sdk/util-user-agent-node/-/util-user-agent-node-3.943.0.tgz", + "integrity": "sha512-gn+ILprVRrgAgTIBk2TDsJLRClzIOdStQFeFTcN0qpL8Z4GBCqMFhw7O7X+MM55Stt5s4jAauQ/VvoqmCADnQg==", "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.943.0", + "@aws-sdk/types": "3.936.0", + "@smithy/node-config-provider": "^4.3.5", + "@smithy/types": "^4.9.0", "tslib": "^2.6.2" }, "engines": { @@ -1760,12 +877,13 @@ } }, "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.930.0", + "resolved": "https://registry.npmjs.org/@aws-sdk/xml-builder/-/xml-builder-3.930.0.tgz", + "integrity": "sha512-YIfkD17GocxdmlUVc3ia52QhcWuRIUJonbF8A2CYfcWNV3HzvAqpcPeC0bYUhkK+8e8YO1ARnLKZQE0TlwzorA==", "license": "Apache-2.0", "dependencies": { - "@smithy/types": "^4.5.0", + "@smithy/types": "^4.9.0", + "fast-xml-parser": "5.2.5", "tslib": "^2.6.2" }, "engines": { @@ -1773,9 +891,9 @@ } }, "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==", + "version": "0.2.2", + "resolved": "https://registry.npmjs.org/@aws/lambda-invoke-store/-/lambda-invoke-store-0.2.2.tgz", + "integrity": "sha512-C0NBLsIqzDIae8HFw9YIrIBsbc0xTiOtt7fAukGPnqQ/+zZNaq+4jhuccltK0QuWHBnNm/a6kLIRA6GFiM10eg==", "license": "Apache-2.0", "engines": { "node": ">=18.0.0" @@ -1797,9 +915,9 @@ } }, "node_modules/@babel/compat-data": { - "version": "7.28.4", - "resolved": "https://registry.npmjs.org/@babel/compat-data/-/compat-data-7.28.4.tgz", - "integrity": "sha512-YsmSKC29MJwf0gF8Rjjrg5LQCmyh+j/nD8/eP7f+BeoQTKYqs9RoWbjGOdy0+1Ekr68RJZMUOPVQaQisnIo4Rw==", + "version": "7.28.5", + "resolved": "https://registry.npmjs.org/@babel/compat-data/-/compat-data-7.28.5.tgz", + "integrity": "sha512-6uFXyCayocRbqhZOB+6XcuZbkMNimwfVGFji8CTZnCzOHVGvDqzvitu1re2AU5LROliz7eQPhB8CpAMvnx9EjA==", "dev": true, "license": "MIT", "peer": true, @@ -1808,22 +926,22 @@ } }, "node_modules/@babel/core": { - "version": "7.28.4", - "resolved": "https://registry.npmjs.org/@babel/core/-/core-7.28.4.tgz", - "integrity": "sha512-2BCOP7TN8M+gVDj7/ht3hsaO/B/n5oDbiAyyvnRlNOs+u1o+JWNYTQrmpuNp1/Wq2gcFrI01JAW+paEKDMx/CA==", + "version": "7.28.5", + "resolved": "https://registry.npmjs.org/@babel/core/-/core-7.28.5.tgz", + "integrity": "sha512-e7jT4DxYvIDLk1ZHmU/m/mB19rex9sv0c2ftBtjSBv+kVM/902eh0fINUzD7UwLLNR+jU585GxUJ8/EBfAM5fw==", "dev": true, "license": "MIT", "peer": true, "dependencies": { "@babel/code-frame": "^7.27.1", - "@babel/generator": "^7.28.3", + "@babel/generator": "^7.28.5", "@babel/helper-compilation-targets": "^7.27.2", "@babel/helper-module-transforms": "^7.28.3", "@babel/helpers": "^7.28.4", - "@babel/parser": "^7.28.4", + "@babel/parser": "^7.28.5", "@babel/template": "^7.27.2", - "@babel/traverse": "^7.28.4", - "@babel/types": "^7.28.4", + "@babel/traverse": "^7.28.5", + "@babel/types": "^7.28.5", "@jridgewell/remapping": "^2.3.5", "convert-source-map": "^2.0.0", "debug": "^4.1.0", @@ -1851,15 +969,15 @@ } }, "node_modules/@babel/generator": { - "version": "7.28.3", - "resolved": "https://registry.npmjs.org/@babel/generator/-/generator-7.28.3.tgz", - "integrity": "sha512-3lSpxGgvnmZznmBkCRnVREPUFJv2wrv9iAoFDvADJc0ypmdOxdUtcLeBgBJ6zE0PMeTKnxeQzyk0xTBq4Ep7zw==", + "version": "7.28.5", + "resolved": "https://registry.npmjs.org/@babel/generator/-/generator-7.28.5.tgz", + "integrity": "sha512-3EwLFhZ38J4VyIP6WNtt2kUdW9dokXA9Cr4IVIFHuCpZ3H8/YFOl5JjZHisrn1fATPBmKKqXzDFvh9fUwHz6CQ==", "dev": true, "license": "MIT", "peer": true, "dependencies": { - "@babel/parser": "^7.28.3", - "@babel/types": "^7.28.2", + "@babel/parser": "^7.28.5", + "@babel/types": "^7.28.5", "@jridgewell/gen-mapping": "^0.3.12", "@jridgewell/trace-mapping": "^0.3.28", "jsesc": "^3.0.2" @@ -1965,9 +1083,9 @@ } }, "node_modules/@babel/helper-validator-identifier": { - "version": "7.27.1", - "resolved": "https://registry.npmjs.org/@babel/helper-validator-identifier/-/helper-validator-identifier-7.27.1.tgz", - "integrity": "sha512-D2hP9eA+Sqx1kBZgzxZh0y1trbuU+JoDkiEwqhQ36nodYqJwyEIhPSdMNd7lOm/4io72luTPWH20Yda0xOuUow==", + "version": "7.28.5", + "resolved": "https://registry.npmjs.org/@babel/helper-validator-identifier/-/helper-validator-identifier-7.28.5.tgz", + "integrity": "sha512-qSs4ifwzKJSV39ucNjsvc6WVHs6b7S03sOh2OcHF9UHfVPqWWALUsNUVzhSBiItjRZoLHx7nIarVjqKVusUZ1Q==", "dev": true, "license": "MIT", "engines": { @@ -2001,14 +1119,14 @@ } }, "node_modules/@babel/parser": { - "version": "7.28.4", - "resolved": "https://registry.npmjs.org/@babel/parser/-/parser-7.28.4.tgz", - "integrity": "sha512-yZbBqeM6TkpP9du/I2pUZnJsRMGGvOuIrhjzC1AwHwW+6he4mni6Bp/m8ijn0iOuZuPI2BfkCoSRunpyjnrQKg==", + "version": "7.28.5", + "resolved": "https://registry.npmjs.org/@babel/parser/-/parser-7.28.5.tgz", + "integrity": "sha512-KKBU1VGYR7ORr3At5HAtUQ+TV3SzRCXmA/8OdDZiLDBIZxVyzXuztPjfLd3BV1PRAQGCMWWSHYhL0F8d5uHBDQ==", "dev": true, "license": "MIT", "peer": true, "dependencies": { - "@babel/types": "^7.28.4" + "@babel/types": "^7.28.5" }, "bin": { "parser": "bin/babel-parser.js" @@ -2299,19 +1417,19 @@ } }, "node_modules/@babel/traverse": { - "version": "7.28.4", - "resolved": "https://registry.npmjs.org/@babel/traverse/-/traverse-7.28.4.tgz", - "integrity": "sha512-YEzuboP2qvQavAcjgQNVgsvHIDv6ZpwXvcvjmyySP2DIMuByS/6ioU5G9pYrWHM6T2YDfc7xga9iNzYOs12CFQ==", + "version": "7.28.5", + "resolved": "https://registry.npmjs.org/@babel/traverse/-/traverse-7.28.5.tgz", + "integrity": "sha512-TCCj4t55U90khlYkVV/0TfkJkAkUg3jZFA3Neb7unZT8CPok7iiRfaX0F+WnqWqt7OxhOn0uBKXCw4lbL8W0aQ==", "dev": true, "license": "MIT", "peer": true, "dependencies": { "@babel/code-frame": "^7.27.1", - "@babel/generator": "^7.28.3", + "@babel/generator": "^7.28.5", "@babel/helper-globals": "^7.28.0", - "@babel/parser": "^7.28.4", + "@babel/parser": "^7.28.5", "@babel/template": "^7.27.2", - "@babel/types": "^7.28.4", + "@babel/types": "^7.28.5", "debug": "^4.3.1" }, "engines": { @@ -2319,15 +1437,15 @@ } }, "node_modules/@babel/types": { - "version": "7.28.4", - "resolved": "https://registry.npmjs.org/@babel/types/-/types-7.28.4.tgz", - "integrity": "sha512-bkFqkLhh3pMBUQQkpVgWDWq/lqzc2678eUyDlTBhRqhCHFguYYGM0Efga7tYk4TogG/3x0EEl66/OQ+WGbWB/Q==", + "version": "7.28.5", + "resolved": "https://registry.npmjs.org/@babel/types/-/types-7.28.5.tgz", + "integrity": "sha512-qQ5m48eI/MFLQ5PxQj4PFaprjyCTLI37ElWMmNs0K8Lk3dVeOdNpB3ks8jc7yM5CDmVC73eMVk/trk3fgmrUpA==", "dev": true, "license": "MIT", "peer": true, "dependencies": { "@babel/helper-string-parser": "^7.27.1", - "@babel/helper-validator-identifier": "^7.27.1" + "@babel/helper-validator-identifier": "^7.28.5" }, "engines": { "node": ">=6.9.0" @@ -2362,23 +1480,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.37.0", + "resolved": "https://registry.npmjs.org/@continuedev/config-yaml/-/config-yaml-1.37.0.tgz", + "integrity": "sha512-OFt5HzBp0UT3HV/vG7IaHLI7mQp5oCn39pzW+zy7jV7mFcgWYMPeC0VeN++tvvE9W2CvKmeBEEE9Nn2othnekQ==", "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", @@ -2412,9 +1531,9 @@ } }, "node_modules/@emnapi/core": { - "version": "1.5.0", - "resolved": "https://registry.npmjs.org/@emnapi/core/-/core-1.5.0.tgz", - "integrity": "sha512-sbP8GzB1WDzacS8fgNPpHlp6C9VZe+SJP3F90W9rLemaQj2PzIuTEl1qDOYQf58YIpyjViI24y9aPWCjEzY2cg==", + "version": "1.7.1", + "resolved": "https://registry.npmjs.org/@emnapi/core/-/core-1.7.1.tgz", + "integrity": "sha512-o1uhUASyo921r2XtHYOHy7gdkGLge8ghBEQHMWmyJFoXlpU58kIrhhN3w26lpQb6dspetweapMn2CSNwQ8I4wg==", "dev": true, "license": "MIT", "optional": true, @@ -2425,9 +1544,9 @@ } }, "node_modules/@emnapi/runtime": { - "version": "1.5.0", - "resolved": "https://registry.npmjs.org/@emnapi/runtime/-/runtime-1.5.0.tgz", - "integrity": "sha512-97/BJ3iXHww3djw6hYIfErCZFee7qCtrneuLa20UXFCOTCfBM2cvQHjWJ2EG0s0MtdNwInarqCTz35i4wWXHsQ==", + "version": "1.7.1", + "resolved": "https://registry.npmjs.org/@emnapi/runtime/-/runtime-1.7.1.tgz", + "integrity": "sha512-PVtJr5CmLwYAU9PZDMITZoR5iAOShYREoR45EyyLrbntV50mdePTgUn4AmOw90Ifcj+x2kRjdzr1HP3RrNiHGA==", "dev": true, "license": "MIT", "optional": true, @@ -2449,9 +1568,9 @@ } }, "node_modules/@esbuild/aix-ppc64": { - "version": "0.25.9", - "resolved": "https://registry.npmjs.org/@esbuild/aix-ppc64/-/aix-ppc64-0.25.9.tgz", - "integrity": "sha512-OaGtL73Jck6pBKjNIe24BnFE6agGl+6KxDtTfHhy1HmhthfKouEcOhqpSL64K4/0WCtbKFLOdzD/44cJ4k9opA==", + "version": "0.25.12", + "resolved": "https://registry.npmjs.org/@esbuild/aix-ppc64/-/aix-ppc64-0.25.12.tgz", + "integrity": "sha512-Hhmwd6CInZ3dwpuGTF8fJG6yoWmsToE+vYgD4nytZVxcu1ulHpUQRAB1UJ8+N1Am3Mz4+xOByoQoSZf4D+CpkA==", "cpu": [ "ppc64" ], @@ -2466,9 +1585,9 @@ } }, "node_modules/@esbuild/android-arm": { - "version": "0.25.9", - "resolved": "https://registry.npmjs.org/@esbuild/android-arm/-/android-arm-0.25.9.tgz", - "integrity": "sha512-5WNI1DaMtxQ7t7B6xa572XMXpHAaI/9Hnhk8lcxF4zVN4xstUgTlvuGDorBguKEnZO70qwEcLpfifMLoxiPqHQ==", + "version": "0.25.12", + "resolved": "https://registry.npmjs.org/@esbuild/android-arm/-/android-arm-0.25.12.tgz", + "integrity": "sha512-VJ+sKvNA/GE7Ccacc9Cha7bpS8nyzVv0jdVgwNDaR4gDMC/2TTRc33Ip8qrNYUcpkOHUT5OZ0bUcNNVZQ9RLlg==", "cpu": [ "arm" ], @@ -2483,9 +1602,9 @@ } }, "node_modules/@esbuild/android-arm64": { - "version": "0.25.9", - "resolved": "https://registry.npmjs.org/@esbuild/android-arm64/-/android-arm64-0.25.9.tgz", - "integrity": "sha512-IDrddSmpSv51ftWslJMvl3Q2ZT98fUSL2/rlUXuVqRXHCs5EUF1/f+jbjF5+NG9UffUDMCiTyh8iec7u8RlTLg==", + "version": "0.25.12", + "resolved": "https://registry.npmjs.org/@esbuild/android-arm64/-/android-arm64-0.25.12.tgz", + "integrity": "sha512-6AAmLG7zwD1Z159jCKPvAxZd4y/VTO0VkprYy+3N2FtJ8+BQWFXU+OxARIwA46c5tdD9SsKGZ/1ocqBS/gAKHg==", "cpu": [ "arm64" ], @@ -2500,9 +1619,9 @@ } }, "node_modules/@esbuild/android-x64": { - "version": "0.25.9", - "resolved": "https://registry.npmjs.org/@esbuild/android-x64/-/android-x64-0.25.9.tgz", - "integrity": "sha512-I853iMZ1hWZdNllhVZKm34f4wErd4lMyeV7BLzEExGEIZYsOzqDWDf+y082izYUE8gtJnYHdeDpN/6tUdwvfiw==", + "version": "0.25.12", + "resolved": "https://registry.npmjs.org/@esbuild/android-x64/-/android-x64-0.25.12.tgz", + "integrity": "sha512-5jbb+2hhDHx5phYR2By8GTWEzn6I9UqR11Kwf22iKbNpYrsmRB18aX/9ivc5cabcUiAT/wM+YIZ6SG9QO6a8kg==", "cpu": [ "x64" ], @@ -2517,9 +1636,9 @@ } }, "node_modules/@esbuild/darwin-arm64": { - "version": "0.25.9", - "resolved": "https://registry.npmjs.org/@esbuild/darwin-arm64/-/darwin-arm64-0.25.9.tgz", - "integrity": "sha512-XIpIDMAjOELi/9PB30vEbVMs3GV1v2zkkPnuyRRURbhqjyzIINwj+nbQATh4H9GxUgH1kFsEyQMxwiLFKUS6Rg==", + "version": "0.25.12", + "resolved": "https://registry.npmjs.org/@esbuild/darwin-arm64/-/darwin-arm64-0.25.12.tgz", + "integrity": "sha512-N3zl+lxHCifgIlcMUP5016ESkeQjLj/959RxxNYIthIg+CQHInujFuXeWbWMgnTo4cp5XVHqFPmpyu9J65C1Yg==", "cpu": [ "arm64" ], @@ -2534,9 +1653,9 @@ } }, "node_modules/@esbuild/darwin-x64": { - "version": "0.25.9", - "resolved": "https://registry.npmjs.org/@esbuild/darwin-x64/-/darwin-x64-0.25.9.tgz", - "integrity": "sha512-jhHfBzjYTA1IQu8VyrjCX4ApJDnH+ez+IYVEoJHeqJm9VhG9Dh2BYaJritkYK3vMaXrf7Ogr/0MQ8/MeIefsPQ==", + "version": "0.25.12", + "resolved": "https://registry.npmjs.org/@esbuild/darwin-x64/-/darwin-x64-0.25.12.tgz", + "integrity": "sha512-HQ9ka4Kx21qHXwtlTUVbKJOAnmG1ipXhdWTmNXiPzPfWKpXqASVcWdnf2bnL73wgjNrFXAa3yYvBSd9pzfEIpA==", "cpu": [ "x64" ], @@ -2551,9 +1670,9 @@ } }, "node_modules/@esbuild/freebsd-arm64": { - "version": "0.25.9", - "resolved": "https://registry.npmjs.org/@esbuild/freebsd-arm64/-/freebsd-arm64-0.25.9.tgz", - "integrity": "sha512-z93DmbnY6fX9+KdD4Ue/H6sYs+bhFQJNCPZsi4XWJoYblUqT06MQUdBCpcSfuiN72AbqeBFu5LVQTjfXDE2A6Q==", + "version": "0.25.12", + "resolved": "https://registry.npmjs.org/@esbuild/freebsd-arm64/-/freebsd-arm64-0.25.12.tgz", + "integrity": "sha512-gA0Bx759+7Jve03K1S0vkOu5Lg/85dou3EseOGUes8flVOGxbhDDh/iZaoek11Y8mtyKPGF3vP8XhnkDEAmzeg==", "cpu": [ "arm64" ], @@ -2568,9 +1687,9 @@ } }, "node_modules/@esbuild/freebsd-x64": { - "version": "0.25.9", - "resolved": "https://registry.npmjs.org/@esbuild/freebsd-x64/-/freebsd-x64-0.25.9.tgz", - "integrity": "sha512-mrKX6H/vOyo5v71YfXWJxLVxgy1kyt1MQaD8wZJgJfG4gq4DpQGpgTB74e5yBeQdyMTbgxp0YtNj7NuHN0PoZg==", + "version": "0.25.12", + "resolved": "https://registry.npmjs.org/@esbuild/freebsd-x64/-/freebsd-x64-0.25.12.tgz", + "integrity": "sha512-TGbO26Yw2xsHzxtbVFGEXBFH0FRAP7gtcPE7P5yP7wGy7cXK2oO7RyOhL5NLiqTlBh47XhmIUXuGciXEqYFfBQ==", "cpu": [ "x64" ], @@ -2585,9 +1704,9 @@ } }, "node_modules/@esbuild/linux-arm": { - "version": "0.25.9", - "resolved": "https://registry.npmjs.org/@esbuild/linux-arm/-/linux-arm-0.25.9.tgz", - "integrity": "sha512-HBU2Xv78SMgaydBmdor38lg8YDnFKSARg1Q6AT0/y2ezUAKiZvc211RDFHlEZRFNRVhcMamiToo7bDx3VEOYQw==", + "version": "0.25.12", + "resolved": "https://registry.npmjs.org/@esbuild/linux-arm/-/linux-arm-0.25.12.tgz", + "integrity": "sha512-lPDGyC1JPDou8kGcywY0YILzWlhhnRjdof3UlcoqYmS9El818LLfJJc3PXXgZHrHCAKs/Z2SeZtDJr5MrkxtOw==", "cpu": [ "arm" ], @@ -2602,9 +1721,9 @@ } }, "node_modules/@esbuild/linux-arm64": { - "version": "0.25.9", - "resolved": "https://registry.npmjs.org/@esbuild/linux-arm64/-/linux-arm64-0.25.9.tgz", - "integrity": "sha512-BlB7bIcLT3G26urh5Dmse7fiLmLXnRlopw4s8DalgZ8ef79Jj4aUcYbk90g8iCa2467HX8SAIidbL7gsqXHdRw==", + "version": "0.25.12", + "resolved": "https://registry.npmjs.org/@esbuild/linux-arm64/-/linux-arm64-0.25.12.tgz", + "integrity": "sha512-8bwX7a8FghIgrupcxb4aUmYDLp8pX06rGh5HqDT7bB+8Rdells6mHvrFHHW2JAOPZUbnjUpKTLg6ECyzvas2AQ==", "cpu": [ "arm64" ], @@ -2619,9 +1738,9 @@ } }, "node_modules/@esbuild/linux-ia32": { - "version": "0.25.9", - "resolved": "https://registry.npmjs.org/@esbuild/linux-ia32/-/linux-ia32-0.25.9.tgz", - "integrity": "sha512-e7S3MOJPZGp2QW6AK6+Ly81rC7oOSerQ+P8L0ta4FhVi+/j/v2yZzx5CqqDaWjtPFfYz21Vi1S0auHrap3Ma3A==", + "version": "0.25.12", + "resolved": "https://registry.npmjs.org/@esbuild/linux-ia32/-/linux-ia32-0.25.12.tgz", + "integrity": "sha512-0y9KrdVnbMM2/vG8KfU0byhUN+EFCny9+8g202gYqSSVMonbsCfLjUO+rCci7pM0WBEtz+oK/PIwHkzxkyharA==", "cpu": [ "ia32" ], @@ -2636,9 +1755,9 @@ } }, "node_modules/@esbuild/linux-loong64": { - "version": "0.25.9", - "resolved": "https://registry.npmjs.org/@esbuild/linux-loong64/-/linux-loong64-0.25.9.tgz", - "integrity": "sha512-Sbe10Bnn0oUAB2AalYztvGcK+o6YFFA/9829PhOCUS9vkJElXGdphz0A3DbMdP8gmKkqPmPcMJmJOrI3VYB1JQ==", + "version": "0.25.12", + "resolved": "https://registry.npmjs.org/@esbuild/linux-loong64/-/linux-loong64-0.25.12.tgz", + "integrity": "sha512-h///Lr5a9rib/v1GGqXVGzjL4TMvVTv+s1DPoxQdz7l/AYv6LDSxdIwzxkrPW438oUXiDtwM10o9PmwS/6Z0Ng==", "cpu": [ "loong64" ], @@ -2653,9 +1772,9 @@ } }, "node_modules/@esbuild/linux-mips64el": { - "version": "0.25.9", - "resolved": "https://registry.npmjs.org/@esbuild/linux-mips64el/-/linux-mips64el-0.25.9.tgz", - "integrity": "sha512-YcM5br0mVyZw2jcQeLIkhWtKPeVfAerES5PvOzaDxVtIyZ2NUBZKNLjC5z3/fUlDgT6w89VsxP2qzNipOaaDyA==", + "version": "0.25.12", + "resolved": "https://registry.npmjs.org/@esbuild/linux-mips64el/-/linux-mips64el-0.25.12.tgz", + "integrity": "sha512-iyRrM1Pzy9GFMDLsXn1iHUm18nhKnNMWscjmp4+hpafcZjrr2WbT//d20xaGljXDBYHqRcl8HnxbX6uaA/eGVw==", "cpu": [ "mips64el" ], @@ -2670,9 +1789,9 @@ } }, "node_modules/@esbuild/linux-ppc64": { - "version": "0.25.9", - "resolved": "https://registry.npmjs.org/@esbuild/linux-ppc64/-/linux-ppc64-0.25.9.tgz", - "integrity": "sha512-++0HQvasdo20JytyDpFvQtNrEsAgNG2CY1CLMwGXfFTKGBGQT3bOeLSYE2l1fYdvML5KUuwn9Z8L1EWe2tzs1w==", + "version": "0.25.12", + "resolved": "https://registry.npmjs.org/@esbuild/linux-ppc64/-/linux-ppc64-0.25.12.tgz", + "integrity": "sha512-9meM/lRXxMi5PSUqEXRCtVjEZBGwB7P/D4yT8UG/mwIdze2aV4Vo6U5gD3+RsoHXKkHCfSxZKzmDssVlRj1QQA==", "cpu": [ "ppc64" ], @@ -2687,9 +1806,9 @@ } }, "node_modules/@esbuild/linux-riscv64": { - "version": "0.25.9", - "resolved": "https://registry.npmjs.org/@esbuild/linux-riscv64/-/linux-riscv64-0.25.9.tgz", - "integrity": "sha512-uNIBa279Y3fkjV+2cUjx36xkx7eSjb8IvnL01eXUKXez/CBHNRw5ekCGMPM0BcmqBxBcdgUWuUXmVWwm4CH9kg==", + "version": "0.25.12", + "resolved": "https://registry.npmjs.org/@esbuild/linux-riscv64/-/linux-riscv64-0.25.12.tgz", + "integrity": "sha512-Zr7KR4hgKUpWAwb1f3o5ygT04MzqVrGEGXGLnj15YQDJErYu/BGg+wmFlIDOdJp0PmB0lLvxFIOXZgFRrdjR0w==", "cpu": [ "riscv64" ], @@ -2704,9 +1823,9 @@ } }, "node_modules/@esbuild/linux-s390x": { - "version": "0.25.9", - "resolved": "https://registry.npmjs.org/@esbuild/linux-s390x/-/linux-s390x-0.25.9.tgz", - "integrity": "sha512-Mfiphvp3MjC/lctb+7D287Xw1DGzqJPb/J2aHHcHxflUo+8tmN/6d4k6I2yFR7BVo5/g7x2Monq4+Yew0EHRIA==", + "version": "0.25.12", + "resolved": "https://registry.npmjs.org/@esbuild/linux-s390x/-/linux-s390x-0.25.12.tgz", + "integrity": "sha512-MsKncOcgTNvdtiISc/jZs/Zf8d0cl/t3gYWX8J9ubBnVOwlk65UIEEvgBORTiljloIWnBzLs4qhzPkJcitIzIg==", "cpu": [ "s390x" ], @@ -2721,9 +1840,9 @@ } }, "node_modules/@esbuild/linux-x64": { - "version": "0.25.9", - "resolved": "https://registry.npmjs.org/@esbuild/linux-x64/-/linux-x64-0.25.9.tgz", - "integrity": "sha512-iSwByxzRe48YVkmpbgoxVzn76BXjlYFXC7NvLYq+b+kDjyyk30J0JY47DIn8z1MO3K0oSl9fZoRmZPQI4Hklzg==", + "version": "0.25.12", + "resolved": "https://registry.npmjs.org/@esbuild/linux-x64/-/linux-x64-0.25.12.tgz", + "integrity": "sha512-uqZMTLr/zR/ed4jIGnwSLkaHmPjOjJvnm6TVVitAa08SLS9Z0VM8wIRx7gWbJB5/J54YuIMInDquWyYvQLZkgw==", "cpu": [ "x64" ], @@ -2738,9 +1857,9 @@ } }, "node_modules/@esbuild/netbsd-arm64": { - "version": "0.25.9", - "resolved": "https://registry.npmjs.org/@esbuild/netbsd-arm64/-/netbsd-arm64-0.25.9.tgz", - "integrity": "sha512-9jNJl6FqaUG+COdQMjSCGW4QiMHH88xWbvZ+kRVblZsWrkXlABuGdFJ1E9L7HK+T0Yqd4akKNa/lO0+jDxQD4Q==", + "version": "0.25.12", + "resolved": "https://registry.npmjs.org/@esbuild/netbsd-arm64/-/netbsd-arm64-0.25.12.tgz", + "integrity": "sha512-xXwcTq4GhRM7J9A8Gv5boanHhRa/Q9KLVmcyXHCTaM4wKfIpWkdXiMog/KsnxzJ0A1+nD+zoecuzqPmCRyBGjg==", "cpu": [ "arm64" ], @@ -2755,9 +1874,9 @@ } }, "node_modules/@esbuild/netbsd-x64": { - "version": "0.25.9", - "resolved": "https://registry.npmjs.org/@esbuild/netbsd-x64/-/netbsd-x64-0.25.9.tgz", - "integrity": "sha512-RLLdkflmqRG8KanPGOU7Rpg829ZHu8nFy5Pqdi9U01VYtG9Y0zOG6Vr2z4/S+/3zIyOxiK6cCeYNWOFR9QP87g==", + "version": "0.25.12", + "resolved": "https://registry.npmjs.org/@esbuild/netbsd-x64/-/netbsd-x64-0.25.12.tgz", + "integrity": "sha512-Ld5pTlzPy3YwGec4OuHh1aCVCRvOXdH8DgRjfDy/oumVovmuSzWfnSJg+VtakB9Cm0gxNO9BzWkj6mtO1FMXkQ==", "cpu": [ "x64" ], @@ -2772,9 +1891,9 @@ } }, "node_modules/@esbuild/openbsd-arm64": { - "version": "0.25.9", - "resolved": "https://registry.npmjs.org/@esbuild/openbsd-arm64/-/openbsd-arm64-0.25.9.tgz", - "integrity": "sha512-YaFBlPGeDasft5IIM+CQAhJAqS3St3nJzDEgsgFixcfZeyGPCd6eJBWzke5piZuZ7CtL656eOSYKk4Ls2C0FRQ==", + "version": "0.25.12", + "resolved": "https://registry.npmjs.org/@esbuild/openbsd-arm64/-/openbsd-arm64-0.25.12.tgz", + "integrity": "sha512-fF96T6KsBo/pkQI950FARU9apGNTSlZGsv1jZBAlcLL1MLjLNIWPBkj5NlSz8aAzYKg+eNqknrUJ24QBybeR5A==", "cpu": [ "arm64" ], @@ -2789,9 +1908,9 @@ } }, "node_modules/@esbuild/openbsd-x64": { - "version": "0.25.9", - "resolved": "https://registry.npmjs.org/@esbuild/openbsd-x64/-/openbsd-x64-0.25.9.tgz", - "integrity": "sha512-1MkgTCuvMGWuqVtAvkpkXFmtL8XhWy+j4jaSO2wxfJtilVCi0ZE37b8uOdMItIHz4I6z1bWWtEX4CJwcKYLcuA==", + "version": "0.25.12", + "resolved": "https://registry.npmjs.org/@esbuild/openbsd-x64/-/openbsd-x64-0.25.12.tgz", + "integrity": "sha512-MZyXUkZHjQxUvzK7rN8DJ3SRmrVrke8ZyRusHlP+kuwqTcfWLyqMOE3sScPPyeIXN/mDJIfGXvcMqCgYKekoQw==", "cpu": [ "x64" ], @@ -2806,9 +1925,9 @@ } }, "node_modules/@esbuild/openharmony-arm64": { - "version": "0.25.9", - "resolved": "https://registry.npmjs.org/@esbuild/openharmony-arm64/-/openharmony-arm64-0.25.9.tgz", - "integrity": "sha512-4Xd0xNiMVXKh6Fa7HEJQbrpP3m3DDn43jKxMjxLLRjWnRsfxjORYJlXPO4JNcXtOyfajXorRKY9NkOpTHptErg==", + "version": "0.25.12", + "resolved": "https://registry.npmjs.org/@esbuild/openharmony-arm64/-/openharmony-arm64-0.25.12.tgz", + "integrity": "sha512-rm0YWsqUSRrjncSXGA7Zv78Nbnw4XL6/dzr20cyrQf7ZmRcsovpcRBdhD43Nuk3y7XIoW2OxMVvwuRvk9XdASg==", "cpu": [ "arm64" ], @@ -2823,9 +1942,9 @@ } }, "node_modules/@esbuild/sunos-x64": { - "version": "0.25.9", - "resolved": "https://registry.npmjs.org/@esbuild/sunos-x64/-/sunos-x64-0.25.9.tgz", - "integrity": "sha512-WjH4s6hzo00nNezhp3wFIAfmGZ8U7KtrJNlFMRKxiI9mxEK1scOMAaa9i4crUtu+tBr+0IN6JCuAcSBJZfnphw==", + "version": "0.25.12", + "resolved": "https://registry.npmjs.org/@esbuild/sunos-x64/-/sunos-x64-0.25.12.tgz", + "integrity": "sha512-3wGSCDyuTHQUzt0nV7bocDy72r2lI33QL3gkDNGkod22EsYl04sMf0qLb8luNKTOmgF/eDEDP5BFNwoBKH441w==", "cpu": [ "x64" ], @@ -2840,9 +1959,9 @@ } }, "node_modules/@esbuild/win32-arm64": { - "version": "0.25.9", - "resolved": "https://registry.npmjs.org/@esbuild/win32-arm64/-/win32-arm64-0.25.9.tgz", - "integrity": "sha512-mGFrVJHmZiRqmP8xFOc6b84/7xa5y5YvR1x8djzXpJBSv/UsNK6aqec+6JDjConTgvvQefdGhFDAs2DLAds6gQ==", + "version": "0.25.12", + "resolved": "https://registry.npmjs.org/@esbuild/win32-arm64/-/win32-arm64-0.25.12.tgz", + "integrity": "sha512-rMmLrur64A7+DKlnSuwqUdRKyd3UE7oPJZmnljqEptesKM8wx9J8gx5u0+9Pq0fQQW8vqeKebwNXdfOyP+8Bsg==", "cpu": [ "arm64" ], @@ -2857,9 +1976,9 @@ } }, "node_modules/@esbuild/win32-ia32": { - "version": "0.25.9", - "resolved": "https://registry.npmjs.org/@esbuild/win32-ia32/-/win32-ia32-0.25.9.tgz", - "integrity": "sha512-b33gLVU2k11nVx1OhX3C8QQP6UHQK4ZtN56oFWvVXvz2VkDoe6fbG8TOgHFxEvqeqohmRnIHe5A1+HADk4OQww==", + "version": "0.25.12", + "resolved": "https://registry.npmjs.org/@esbuild/win32-ia32/-/win32-ia32-0.25.12.tgz", + "integrity": "sha512-HkqnmmBoCbCwxUKKNPBixiWDGCpQGVsrQfJoVGYLPT41XWF8lHuE5N6WhVia2n4o5QK5M4tYr21827fNhi4byQ==", "cpu": [ "ia32" ], @@ -2874,9 +1993,9 @@ } }, "node_modules/@esbuild/win32-x64": { - "version": "0.25.9", - "resolved": "https://registry.npmjs.org/@esbuild/win32-x64/-/win32-x64-0.25.9.tgz", - "integrity": "sha512-PPOl1mi6lpLNQxnGoyAfschAodRFYXJ+9fs6WHXz7CSWKbOqiMZsubC+BQsVKuul+3vKLuwTHsS2c2y9EoKwxQ==", + "version": "0.25.12", + "resolved": "https://registry.npmjs.org/@esbuild/win32-x64/-/win32-x64-0.25.12.tgz", + "integrity": "sha512-alJC0uCZpTFrSL0CCDjcgleBXPnCrEAhTBILpeAp7M/OFgoqtAetfBzX0xM00MUsVVPpVjlPuMbREqnZCXaTnA==", "cpu": [ "x64" ], @@ -2890,13 +2009,32 @@ "node": ">=18" } }, + "node_modules/@google/genai": { + "version": "1.31.0", + "resolved": "https://registry.npmjs.org/@google/genai/-/genai-1.31.0.tgz", + "integrity": "sha512-rK0RKXxNkbK35eDl+G651SxtxwHNEOogjyeZJUJe+Ed4yxu3xy5ufCiU0+QLT7xo4M9Spey8OAYfD8LPRlYBKw==", + "license": "Apache-2.0", + "dependencies": { + "google-auth-library": "^10.3.0", + "ws": "^8.18.0" + }, + "engines": { + "node": ">=20.0.0" + }, + "peerDependencies": { + "@modelcontextprotocol/sdk": "^1.20.1" + }, + "peerDependenciesMeta": { + "@modelcontextprotocol/sdk": { + "optional": true + } + } + }, "node_modules/@isaacs/cliui": { "version": "8.0.2", "resolved": "https://registry.npmjs.org/@isaacs/cliui/-/cliui-8.0.2.tgz", "integrity": "sha512-O8jcjabXaleOG9DQ0+ARXWZBTfnP4WNAqzuiJK7ll44AmxGKv/J2M4TPjxjY3znBCfvBXFzucm1twdyFybFqEA==", - "dev": true, "license": "ISC", - "peer": true, "dependencies": { "string-width": "^5.1.2", "string-width-cjs": "npm:string-width@^4.2.0", @@ -2939,18 +2077,18 @@ } }, "node_modules/@jest/console": { - "version": "30.1.2", - "resolved": "https://registry.npmjs.org/@jest/console/-/console-30.1.2.tgz", - "integrity": "sha512-BGMAxj8VRmoD0MoA/jo9alMXSRoqW8KPeqOfEo1ncxnRLatTBCpRoOwlwlEMdudp68Q6WSGwYrrLtTGOh8fLzw==", + "version": "30.2.0", + "resolved": "https://registry.npmjs.org/@jest/console/-/console-30.2.0.tgz", + "integrity": "sha512-+O1ifRjkvYIkBqASKWgLxrpEhQAAE7hY77ALLUufSk5717KfOShg6IbqLmdsLMPdUiFvA2kTs0R7YZy+l0IzZQ==", "dev": true, "license": "MIT", "peer": true, "dependencies": { - "@jest/types": "30.0.5", + "@jest/types": "30.2.0", "@types/node": "*", "chalk": "^4.1.2", - "jest-message-util": "30.1.0", - "jest-util": "30.0.5", + "jest-message-util": "30.2.0", + "jest-util": "30.2.0", "slash": "^3.0.0" }, "engines": { @@ -2972,20 +2110,20 @@ } }, "node_modules/@jest/console/node_modules/jest-message-util": { - "version": "30.1.0", - "resolved": "https://registry.npmjs.org/jest-message-util/-/jest-message-util-30.1.0.tgz", - "integrity": "sha512-HizKDGG98cYkWmaLUHChq4iN+oCENohQLb7Z5guBPumYs+/etonmNFlg1Ps6yN9LTPyZn+M+b/9BbnHx3WTMDg==", + "version": "30.2.0", + "resolved": "https://registry.npmjs.org/jest-message-util/-/jest-message-util-30.2.0.tgz", + "integrity": "sha512-y4DKFLZ2y6DxTWD4cDe07RglV88ZiNEdlRfGtqahfbIjfsw1nMCPx49Uev4IA/hWn3sDKyAnSPwoYSsAEdcimw==", "dev": true, "license": "MIT", "peer": true, "dependencies": { "@babel/code-frame": "^7.27.1", - "@jest/types": "30.0.5", + "@jest/types": "30.2.0", "@types/stack-utils": "^2.0.3", "chalk": "^4.1.2", "graceful-fs": "^4.2.11", "micromatch": "^4.0.8", - "pretty-format": "30.0.5", + "pretty-format": "30.2.0", "slash": "^3.0.0", "stack-utils": "^2.0.6" }, @@ -2994,14 +2132,14 @@ } }, "node_modules/@jest/console/node_modules/jest-util": { - "version": "30.0.5", - "resolved": "https://registry.npmjs.org/jest-util/-/jest-util-30.0.5.tgz", - "integrity": "sha512-pvyPWssDZR0FlfMxCBoc0tvM8iUEskaRFALUtGQYzVEAqisAztmy+R8LnU14KT4XA0H/a5HMVTXat1jLne010g==", + "version": "30.2.0", + "resolved": "https://registry.npmjs.org/jest-util/-/jest-util-30.2.0.tgz", + "integrity": "sha512-QKNsM0o3Xe6ISQU869e+DhG+4CK/48aHYdJZGlFQVTjnbvgpcKyxpzk29fGiO7i/J8VENZ+d2iGnSsvmuHywlA==", "dev": true, "license": "MIT", "peer": true, "dependencies": { - "@jest/types": "30.0.5", + "@jest/types": "30.2.0", "@types/node": "*", "chalk": "^4.1.2", "ci-info": "^4.2.0", @@ -3027,9 +2165,9 @@ } }, "node_modules/@jest/console/node_modules/pretty-format": { - "version": "30.0.5", - "resolved": "https://registry.npmjs.org/pretty-format/-/pretty-format-30.0.5.tgz", - "integrity": "sha512-D1tKtYvByrBkFLe2wHJl2bwMJIiT8rW+XA+TiataH79/FszLQMrpGEvzUVkzPau7OCO0Qnrhpe87PqtOAIB8Yw==", + "version": "30.2.0", + "resolved": "https://registry.npmjs.org/pretty-format/-/pretty-format-30.2.0.tgz", + "integrity": "sha512-9uBdv/B4EefsuAL+pWqueZyZS2Ba+LxfFeQ9DN14HU4bN8bhaxKdkpjpB6fs9+pSjIBu+FXQHImEg8j/Lw0+vA==", "dev": true, "license": "MIT", "peer": true, @@ -3043,40 +2181,40 @@ } }, "node_modules/@jest/core": { - "version": "30.1.3", - "resolved": "https://registry.npmjs.org/@jest/core/-/core-30.1.3.tgz", - "integrity": "sha512-LIQz7NEDDO1+eyOA2ZmkiAyYvZuo6s1UxD/e2IHldR6D7UYogVq3arTmli07MkENLq6/3JEQjp0mA8rrHHJ8KQ==", + "version": "30.2.0", + "resolved": "https://registry.npmjs.org/@jest/core/-/core-30.2.0.tgz", + "integrity": "sha512-03W6IhuhjqTlpzh/ojut/pDB2LPRygyWX8ExpgHtQA8H/3K7+1vKmcINx5UzeOX1se6YEsBsOHQ1CRzf3fOwTQ==", "dev": true, "license": "MIT", "peer": true, "dependencies": { - "@jest/console": "30.1.2", + "@jest/console": "30.2.0", "@jest/pattern": "30.0.1", - "@jest/reporters": "30.1.3", - "@jest/test-result": "30.1.3", - "@jest/transform": "30.1.2", - "@jest/types": "30.0.5", + "@jest/reporters": "30.2.0", + "@jest/test-result": "30.2.0", + "@jest/transform": "30.2.0", + "@jest/types": "30.2.0", "@types/node": "*", "ansi-escapes": "^4.3.2", "chalk": "^4.1.2", "ci-info": "^4.2.0", "exit-x": "^0.2.2", "graceful-fs": "^4.2.11", - "jest-changed-files": "30.0.5", - "jest-config": "30.1.3", - "jest-haste-map": "30.1.0", - "jest-message-util": "30.1.0", + "jest-changed-files": "30.2.0", + "jest-config": "30.2.0", + "jest-haste-map": "30.2.0", + "jest-message-util": "30.2.0", "jest-regex-util": "30.0.1", - "jest-resolve": "30.1.3", - "jest-resolve-dependencies": "30.1.3", - "jest-runner": "30.1.3", - "jest-runtime": "30.1.3", - "jest-snapshot": "30.1.2", - "jest-util": "30.0.5", - "jest-validate": "30.1.0", - "jest-watcher": "30.1.3", + "jest-resolve": "30.2.0", + "jest-resolve-dependencies": "30.2.0", + "jest-runner": "30.2.0", + "jest-runtime": "30.2.0", + "jest-snapshot": "30.2.0", + "jest-util": "30.2.0", + "jest-validate": "30.2.0", + "jest-watcher": "30.2.0", "micromatch": "^4.0.8", - "pretty-format": "30.0.5", + "pretty-format": "30.2.0", "slash": "^3.0.0" }, "engines": { @@ -3106,20 +2244,20 @@ } }, "node_modules/@jest/core/node_modules/jest-message-util": { - "version": "30.1.0", - "resolved": "https://registry.npmjs.org/jest-message-util/-/jest-message-util-30.1.0.tgz", - "integrity": "sha512-HizKDGG98cYkWmaLUHChq4iN+oCENohQLb7Z5guBPumYs+/etonmNFlg1Ps6yN9LTPyZn+M+b/9BbnHx3WTMDg==", + "version": "30.2.0", + "resolved": "https://registry.npmjs.org/jest-message-util/-/jest-message-util-30.2.0.tgz", + "integrity": "sha512-y4DKFLZ2y6DxTWD4cDe07RglV88ZiNEdlRfGtqahfbIjfsw1nMCPx49Uev4IA/hWn3sDKyAnSPwoYSsAEdcimw==", "dev": true, "license": "MIT", "peer": true, "dependencies": { "@babel/code-frame": "^7.27.1", - "@jest/types": "30.0.5", + "@jest/types": "30.2.0", "@types/stack-utils": "^2.0.3", "chalk": "^4.1.2", "graceful-fs": "^4.2.11", "micromatch": "^4.0.8", - "pretty-format": "30.0.5", + "pretty-format": "30.2.0", "slash": "^3.0.0", "stack-utils": "^2.0.6" }, @@ -3128,14 +2266,14 @@ } }, "node_modules/@jest/core/node_modules/jest-util": { - "version": "30.0.5", - "resolved": "https://registry.npmjs.org/jest-util/-/jest-util-30.0.5.tgz", - "integrity": "sha512-pvyPWssDZR0FlfMxCBoc0tvM8iUEskaRFALUtGQYzVEAqisAztmy+R8LnU14KT4XA0H/a5HMVTXat1jLne010g==", + "version": "30.2.0", + "resolved": "https://registry.npmjs.org/jest-util/-/jest-util-30.2.0.tgz", + "integrity": "sha512-QKNsM0o3Xe6ISQU869e+DhG+4CK/48aHYdJZGlFQVTjnbvgpcKyxpzk29fGiO7i/J8VENZ+d2iGnSsvmuHywlA==", "dev": true, "license": "MIT", "peer": true, "dependencies": { - "@jest/types": "30.0.5", + "@jest/types": "30.2.0", "@types/node": "*", "chalk": "^4.1.2", "ci-info": "^4.2.0", @@ -3161,9 +2299,9 @@ } }, "node_modules/@jest/core/node_modules/pretty-format": { - "version": "30.0.5", - "resolved": "https://registry.npmjs.org/pretty-format/-/pretty-format-30.0.5.tgz", - "integrity": "sha512-D1tKtYvByrBkFLe2wHJl2bwMJIiT8rW+XA+TiataH79/FszLQMrpGEvzUVkzPau7OCO0Qnrhpe87PqtOAIB8Yw==", + "version": "30.2.0", + "resolved": "https://registry.npmjs.org/pretty-format/-/pretty-format-30.2.0.tgz", + "integrity": "sha512-9uBdv/B4EefsuAL+pWqueZyZS2Ba+LxfFeQ9DN14HU4bN8bhaxKdkpjpB6fs9+pSjIBu+FXQHImEg8j/Lw0+vA==", "dev": true, "license": "MIT", "peer": true, @@ -3188,32 +2326,32 @@ } }, "node_modules/@jest/environment": { - "version": "30.1.2", - "resolved": "https://registry.npmjs.org/@jest/environment/-/environment-30.1.2.tgz", - "integrity": "sha512-N8t1Ytw4/mr9uN28OnVf0SYE2dGhaIxOVYcwsf9IInBKjvofAjbFRvedvBBlyTYk2knbJTiEjEJ2PyyDIBnd9w==", + "version": "30.2.0", + "resolved": "https://registry.npmjs.org/@jest/environment/-/environment-30.2.0.tgz", + "integrity": "sha512-/QPTL7OBJQ5ac09UDRa3EQes4gt1FTEG/8jZ/4v5IVzx+Cv7dLxlVIvfvSVRiiX2drWyXeBjkMSR8hvOWSog5g==", "dev": true, "license": "MIT", "peer": true, "dependencies": { - "@jest/fake-timers": "30.1.2", - "@jest/types": "30.0.5", + "@jest/fake-timers": "30.2.0", + "@jest/types": "30.2.0", "@types/node": "*", - "jest-mock": "30.0.5" + "jest-mock": "30.2.0" }, "engines": { "node": "^18.14.0 || ^20.0.0 || ^22.0.0 || >=24.0.0" } }, "node_modules/@jest/expect": { - "version": "30.1.2", - "resolved": "https://registry.npmjs.org/@jest/expect/-/expect-30.1.2.tgz", - "integrity": "sha512-tyaIExOwQRCxPCGNC05lIjWJztDwk2gPDNSDGg1zitXJJ8dC3++G/CRjE5mb2wQsf89+lsgAgqxxNpDLiCViTA==", + "version": "30.2.0", + "resolved": "https://registry.npmjs.org/@jest/expect/-/expect-30.2.0.tgz", + "integrity": "sha512-V9yxQK5erfzx99Sf+7LbhBwNWEZ9eZay8qQ9+JSC0TrMR1pMDHLMY+BnVPacWU6Jamrh252/IKo4F1Xn/zfiqA==", "dev": true, "license": "MIT", "peer": true, "dependencies": { - "expect": "30.1.2", - "jest-snapshot": "30.1.2" + "expect": "30.2.0", + "jest-snapshot": "30.2.0" }, "engines": { "node": "^18.14.0 || ^20.0.0 || ^22.0.0 || >=24.0.0" @@ -3233,9 +2371,9 @@ } }, "node_modules/@jest/expect/node_modules/@jest/expect-utils": { - "version": "30.1.2", - "resolved": "https://registry.npmjs.org/@jest/expect-utils/-/expect-utils-30.1.2.tgz", - "integrity": "sha512-HXy1qT/bfdjCv7iC336ExbqqYtZvljrV8odNdso7dWK9bSeHtLlvwWWC3YSybSPL03Gg5rug6WLCZAZFH72m0A==", + "version": "30.2.0", + "resolved": "https://registry.npmjs.org/@jest/expect-utils/-/expect-utils-30.2.0.tgz", + "integrity": "sha512-1JnRfhqpD8HGpOmQp180Fo9Zt69zNtC+9lR+kT7NVL05tNXIi+QC8Csz7lfidMoVLPD3FnOtcmp0CEFnxExGEA==", "dev": true, "license": "MIT", "peer": true, @@ -3261,28 +2399,28 @@ } }, "node_modules/@jest/expect/node_modules/expect": { - "version": "30.1.2", - "resolved": "https://registry.npmjs.org/expect/-/expect-30.1.2.tgz", - "integrity": "sha512-xvHszRavo28ejws8FpemjhwswGj4w/BetHIL8cU49u4sGyXDw2+p3YbeDbj6xzlxi6kWTjIRSTJ+9sNXPnF0Zg==", + "version": "30.2.0", + "resolved": "https://registry.npmjs.org/expect/-/expect-30.2.0.tgz", + "integrity": "sha512-u/feCi0GPsI+988gU2FLcsHyAHTU0MX1Wg68NhAnN7z/+C5wqG+CY8J53N9ioe8RXgaoz0nBR/TYMf3AycUuPw==", "dev": true, "license": "MIT", "peer": true, "dependencies": { - "@jest/expect-utils": "30.1.2", + "@jest/expect-utils": "30.2.0", "@jest/get-type": "30.1.0", - "jest-matcher-utils": "30.1.2", - "jest-message-util": "30.1.0", - "jest-mock": "30.0.5", - "jest-util": "30.0.5" + "jest-matcher-utils": "30.2.0", + "jest-message-util": "30.2.0", + "jest-mock": "30.2.0", + "jest-util": "30.2.0" }, "engines": { "node": "^18.14.0 || ^20.0.0 || ^22.0.0 || >=24.0.0" } }, "node_modules/@jest/expect/node_modules/jest-diff": { - "version": "30.1.2", - "resolved": "https://registry.npmjs.org/jest-diff/-/jest-diff-30.1.2.tgz", - "integrity": "sha512-4+prq+9J61mOVXCa4Qp8ZjavdxzrWQXrI80GNxP8f4tkI2syPuPrJgdRPZRrfUTRvIoUwcmNLbqEJy9W800+NQ==", + "version": "30.2.0", + "resolved": "https://registry.npmjs.org/jest-diff/-/jest-diff-30.2.0.tgz", + "integrity": "sha512-dQHFo3Pt4/NLlG5z4PxZ/3yZTZ1C7s9hveiOj+GCN+uT109NC2QgsoVZsVOAvbJ3RgKkvyLGXZV9+piDpWbm6A==", "dev": true, "license": "MIT", "peer": true, @@ -3290,44 +2428,44 @@ "@jest/diff-sequences": "30.0.1", "@jest/get-type": "30.1.0", "chalk": "^4.1.2", - "pretty-format": "30.0.5" + "pretty-format": "30.2.0" }, "engines": { "node": "^18.14.0 || ^20.0.0 || ^22.0.0 || >=24.0.0" } }, "node_modules/@jest/expect/node_modules/jest-matcher-utils": { - "version": "30.1.2", - "resolved": "https://registry.npmjs.org/jest-matcher-utils/-/jest-matcher-utils-30.1.2.tgz", - "integrity": "sha512-7ai16hy4rSbDjvPTuUhuV8nyPBd6EX34HkBsBcBX2lENCuAQ0qKCPb/+lt8OSWUa9WWmGYLy41PrEzkwRwoGZQ==", + "version": "30.2.0", + "resolved": "https://registry.npmjs.org/jest-matcher-utils/-/jest-matcher-utils-30.2.0.tgz", + "integrity": "sha512-dQ94Nq4dbzmUWkQ0ANAWS9tBRfqCrn0bV9AMYdOi/MHW726xn7eQmMeRTpX2ViC00bpNaWXq+7o4lIQ3AX13Hg==", "dev": true, "license": "MIT", "peer": true, "dependencies": { "@jest/get-type": "30.1.0", "chalk": "^4.1.2", - "jest-diff": "30.1.2", - "pretty-format": "30.0.5" + "jest-diff": "30.2.0", + "pretty-format": "30.2.0" }, "engines": { "node": "^18.14.0 || ^20.0.0 || ^22.0.0 || >=24.0.0" } }, "node_modules/@jest/expect/node_modules/jest-message-util": { - "version": "30.1.0", - "resolved": "https://registry.npmjs.org/jest-message-util/-/jest-message-util-30.1.0.tgz", - "integrity": "sha512-HizKDGG98cYkWmaLUHChq4iN+oCENohQLb7Z5guBPumYs+/etonmNFlg1Ps6yN9LTPyZn+M+b/9BbnHx3WTMDg==", + "version": "30.2.0", + "resolved": "https://registry.npmjs.org/jest-message-util/-/jest-message-util-30.2.0.tgz", + "integrity": "sha512-y4DKFLZ2y6DxTWD4cDe07RglV88ZiNEdlRfGtqahfbIjfsw1nMCPx49Uev4IA/hWn3sDKyAnSPwoYSsAEdcimw==", "dev": true, "license": "MIT", "peer": true, "dependencies": { "@babel/code-frame": "^7.27.1", - "@jest/types": "30.0.5", + "@jest/types": "30.2.0", "@types/stack-utils": "^2.0.3", "chalk": "^4.1.2", "graceful-fs": "^4.2.11", "micromatch": "^4.0.8", - "pretty-format": "30.0.5", + "pretty-format": "30.2.0", "slash": "^3.0.0", "stack-utils": "^2.0.6" }, @@ -3336,14 +2474,14 @@ } }, "node_modules/@jest/expect/node_modules/jest-util": { - "version": "30.0.5", - "resolved": "https://registry.npmjs.org/jest-util/-/jest-util-30.0.5.tgz", - "integrity": "sha512-pvyPWssDZR0FlfMxCBoc0tvM8iUEskaRFALUtGQYzVEAqisAztmy+R8LnU14KT4XA0H/a5HMVTXat1jLne010g==", + "version": "30.2.0", + "resolved": "https://registry.npmjs.org/jest-util/-/jest-util-30.2.0.tgz", + "integrity": "sha512-QKNsM0o3Xe6ISQU869e+DhG+4CK/48aHYdJZGlFQVTjnbvgpcKyxpzk29fGiO7i/J8VENZ+d2iGnSsvmuHywlA==", "dev": true, "license": "MIT", "peer": true, "dependencies": { - "@jest/types": "30.0.5", + "@jest/types": "30.2.0", "@types/node": "*", "chalk": "^4.1.2", "ci-info": "^4.2.0", @@ -3369,9 +2507,9 @@ } }, "node_modules/@jest/expect/node_modules/pretty-format": { - "version": "30.0.5", - "resolved": "https://registry.npmjs.org/pretty-format/-/pretty-format-30.0.5.tgz", - "integrity": "sha512-D1tKtYvByrBkFLe2wHJl2bwMJIiT8rW+XA+TiataH79/FszLQMrpGEvzUVkzPau7OCO0Qnrhpe87PqtOAIB8Yw==", + "version": "30.2.0", + "resolved": "https://registry.npmjs.org/pretty-format/-/pretty-format-30.2.0.tgz", + "integrity": "sha512-9uBdv/B4EefsuAL+pWqueZyZS2Ba+LxfFeQ9DN14HU4bN8bhaxKdkpjpB6fs9+pSjIBu+FXQHImEg8j/Lw0+vA==", "dev": true, "license": "MIT", "peer": true, @@ -3385,19 +2523,19 @@ } }, "node_modules/@jest/fake-timers": { - "version": "30.1.2", - "resolved": "https://registry.npmjs.org/@jest/fake-timers/-/fake-timers-30.1.2.tgz", - "integrity": "sha512-Beljfv9AYkr9K+ETX9tvV61rJTY706BhBUtiaepQHeEGfe0DbpvUA5Z3fomwc5Xkhns6NWrcFDZn+72fLieUnA==", + "version": "30.2.0", + "resolved": "https://registry.npmjs.org/@jest/fake-timers/-/fake-timers-30.2.0.tgz", + "integrity": "sha512-HI3tRLjRxAbBy0VO8dqqm7Hb2mIa8d5bg/NJkyQcOk7V118ObQML8RC5luTF/Zsg4474a+gDvhce7eTnP4GhYw==", "dev": true, "license": "MIT", "peer": true, "dependencies": { - "@jest/types": "30.0.5", + "@jest/types": "30.2.0", "@sinonjs/fake-timers": "^13.0.0", "@types/node": "*", - "jest-message-util": "30.1.0", - "jest-mock": "30.0.5", - "jest-util": "30.0.5" + "jest-message-util": "30.2.0", + "jest-mock": "30.2.0", + "jest-util": "30.2.0" }, "engines": { "node": "^18.14.0 || ^20.0.0 || ^22.0.0 || >=24.0.0" @@ -3418,20 +2556,20 @@ } }, "node_modules/@jest/fake-timers/node_modules/jest-message-util": { - "version": "30.1.0", - "resolved": "https://registry.npmjs.org/jest-message-util/-/jest-message-util-30.1.0.tgz", - "integrity": "sha512-HizKDGG98cYkWmaLUHChq4iN+oCENohQLb7Z5guBPumYs+/etonmNFlg1Ps6yN9LTPyZn+M+b/9BbnHx3WTMDg==", + "version": "30.2.0", + "resolved": "https://registry.npmjs.org/jest-message-util/-/jest-message-util-30.2.0.tgz", + "integrity": "sha512-y4DKFLZ2y6DxTWD4cDe07RglV88ZiNEdlRfGtqahfbIjfsw1nMCPx49Uev4IA/hWn3sDKyAnSPwoYSsAEdcimw==", "dev": true, "license": "MIT", "peer": true, "dependencies": { "@babel/code-frame": "^7.27.1", - "@jest/types": "30.0.5", + "@jest/types": "30.2.0", "@types/stack-utils": "^2.0.3", "chalk": "^4.1.2", "graceful-fs": "^4.2.11", "micromatch": "^4.0.8", - "pretty-format": "30.0.5", + "pretty-format": "30.2.0", "slash": "^3.0.0", "stack-utils": "^2.0.6" }, @@ -3440,14 +2578,14 @@ } }, "node_modules/@jest/fake-timers/node_modules/jest-util": { - "version": "30.0.5", - "resolved": "https://registry.npmjs.org/jest-util/-/jest-util-30.0.5.tgz", - "integrity": "sha512-pvyPWssDZR0FlfMxCBoc0tvM8iUEskaRFALUtGQYzVEAqisAztmy+R8LnU14KT4XA0H/a5HMVTXat1jLne010g==", + "version": "30.2.0", + "resolved": "https://registry.npmjs.org/jest-util/-/jest-util-30.2.0.tgz", + "integrity": "sha512-QKNsM0o3Xe6ISQU869e+DhG+4CK/48aHYdJZGlFQVTjnbvgpcKyxpzk29fGiO7i/J8VENZ+d2iGnSsvmuHywlA==", "dev": true, "license": "MIT", "peer": true, "dependencies": { - "@jest/types": "30.0.5", + "@jest/types": "30.2.0", "@types/node": "*", "chalk": "^4.1.2", "ci-info": "^4.2.0", @@ -3473,9 +2611,9 @@ } }, "node_modules/@jest/fake-timers/node_modules/pretty-format": { - "version": "30.0.5", - "resolved": "https://registry.npmjs.org/pretty-format/-/pretty-format-30.0.5.tgz", - "integrity": "sha512-D1tKtYvByrBkFLe2wHJl2bwMJIiT8rW+XA+TiataH79/FszLQMrpGEvzUVkzPau7OCO0Qnrhpe87PqtOAIB8Yw==", + "version": "30.2.0", + "resolved": "https://registry.npmjs.org/pretty-format/-/pretty-format-30.2.0.tgz", + "integrity": "sha512-9uBdv/B4EefsuAL+pWqueZyZS2Ba+LxfFeQ9DN14HU4bN8bhaxKdkpjpB6fs9+pSjIBu+FXQHImEg8j/Lw0+vA==", "dev": true, "license": "MIT", "peer": true, @@ -3500,17 +2638,17 @@ } }, "node_modules/@jest/globals": { - "version": "30.1.2", - "resolved": "https://registry.npmjs.org/@jest/globals/-/globals-30.1.2.tgz", - "integrity": "sha512-teNTPZ8yZe3ahbYnvnVRDeOjr+3pu2uiAtNtrEsiMjVPPj+cXd5E/fr8BL7v/T7F31vYdEHrI5cC/2OoO/vM9A==", + "version": "30.2.0", + "resolved": "https://registry.npmjs.org/@jest/globals/-/globals-30.2.0.tgz", + "integrity": "sha512-b63wmnKPaK+6ZZfpYhz9K61oybvbI1aMcIs80++JI1O1rR1vaxHUCNqo3ITu6NU0d4V34yZFoHMn/uoKr/Rwfw==", "dev": true, "license": "MIT", "peer": true, "dependencies": { - "@jest/environment": "30.1.2", - "@jest/expect": "30.1.2", - "@jest/types": "30.0.5", - "jest-mock": "30.0.5" + "@jest/environment": "30.2.0", + "@jest/expect": "30.2.0", + "@jest/types": "30.2.0", + "jest-mock": "30.2.0" }, "engines": { "node": "^18.14.0 || ^20.0.0 || ^22.0.0 || >=24.0.0" @@ -3532,18 +2670,18 @@ } }, "node_modules/@jest/reporters": { - "version": "30.1.3", - "resolved": "https://registry.npmjs.org/@jest/reporters/-/reporters-30.1.3.tgz", - "integrity": "sha512-VWEQmJWfXMOrzdFEOyGjUEOuVXllgZsoPtEHZzfdNz18RmzJ5nlR6kp8hDdY8dDS1yGOXAY7DHT+AOHIPSBV0w==", + "version": "30.2.0", + "resolved": "https://registry.npmjs.org/@jest/reporters/-/reporters-30.2.0.tgz", + "integrity": "sha512-DRyW6baWPqKMa9CzeiBjHwjd8XeAyco2Vt8XbcLFjiwCOEKOvy82GJ8QQnJE9ofsxCMPjH4MfH8fCWIHHDKpAQ==", "dev": true, "license": "MIT", "peer": true, "dependencies": { "@bcoe/v8-coverage": "^0.2.3", - "@jest/console": "30.1.2", - "@jest/test-result": "30.1.3", - "@jest/transform": "30.1.2", - "@jest/types": "30.0.5", + "@jest/console": "30.2.0", + "@jest/test-result": "30.2.0", + "@jest/transform": "30.2.0", + "@jest/types": "30.2.0", "@jridgewell/trace-mapping": "^0.3.25", "@types/node": "*", "chalk": "^4.1.2", @@ -3556,9 +2694,9 @@ "istanbul-lib-report": "^3.0.0", "istanbul-lib-source-maps": "^5.0.0", "istanbul-reports": "^3.1.3", - "jest-message-util": "30.1.0", - "jest-util": "30.0.5", - "jest-worker": "30.1.0", + "jest-message-util": "30.2.0", + "jest-util": "30.2.0", + "jest-worker": "30.2.0", "slash": "^3.0.0", "string-length": "^4.0.2", "v8-to-istanbul": "^9.0.1" @@ -3590,20 +2728,20 @@ } }, "node_modules/@jest/reporters/node_modules/jest-message-util": { - "version": "30.1.0", - "resolved": "https://registry.npmjs.org/jest-message-util/-/jest-message-util-30.1.0.tgz", - "integrity": "sha512-HizKDGG98cYkWmaLUHChq4iN+oCENohQLb7Z5guBPumYs+/etonmNFlg1Ps6yN9LTPyZn+M+b/9BbnHx3WTMDg==", + "version": "30.2.0", + "resolved": "https://registry.npmjs.org/jest-message-util/-/jest-message-util-30.2.0.tgz", + "integrity": "sha512-y4DKFLZ2y6DxTWD4cDe07RglV88ZiNEdlRfGtqahfbIjfsw1nMCPx49Uev4IA/hWn3sDKyAnSPwoYSsAEdcimw==", "dev": true, "license": "MIT", "peer": true, "dependencies": { "@babel/code-frame": "^7.27.1", - "@jest/types": "30.0.5", + "@jest/types": "30.2.0", "@types/stack-utils": "^2.0.3", "chalk": "^4.1.2", "graceful-fs": "^4.2.11", "micromatch": "^4.0.8", - "pretty-format": "30.0.5", + "pretty-format": "30.2.0", "slash": "^3.0.0", "stack-utils": "^2.0.6" }, @@ -3612,14 +2750,14 @@ } }, "node_modules/@jest/reporters/node_modules/jest-util": { - "version": "30.0.5", - "resolved": "https://registry.npmjs.org/jest-util/-/jest-util-30.0.5.tgz", - "integrity": "sha512-pvyPWssDZR0FlfMxCBoc0tvM8iUEskaRFALUtGQYzVEAqisAztmy+R8LnU14KT4XA0H/a5HMVTXat1jLne010g==", + "version": "30.2.0", + "resolved": "https://registry.npmjs.org/jest-util/-/jest-util-30.2.0.tgz", + "integrity": "sha512-QKNsM0o3Xe6ISQU869e+DhG+4CK/48aHYdJZGlFQVTjnbvgpcKyxpzk29fGiO7i/J8VENZ+d2iGnSsvmuHywlA==", "dev": true, "license": "MIT", "peer": true, "dependencies": { - "@jest/types": "30.0.5", + "@jest/types": "30.2.0", "@types/node": "*", "chalk": "^4.1.2", "ci-info": "^4.2.0", @@ -3645,9 +2783,9 @@ } }, "node_modules/@jest/reporters/node_modules/pretty-format": { - "version": "30.0.5", - "resolved": "https://registry.npmjs.org/pretty-format/-/pretty-format-30.0.5.tgz", - "integrity": "sha512-D1tKtYvByrBkFLe2wHJl2bwMJIiT8rW+XA+TiataH79/FszLQMrpGEvzUVkzPau7OCO0Qnrhpe87PqtOAIB8Yw==", + "version": "30.2.0", + "resolved": "https://registry.npmjs.org/pretty-format/-/pretty-format-30.2.0.tgz", + "integrity": "sha512-9uBdv/B4EefsuAL+pWqueZyZS2Ba+LxfFeQ9DN14HU4bN8bhaxKdkpjpB6fs9+pSjIBu+FXQHImEg8j/Lw0+vA==", "dev": true, "license": "MIT", "peer": true, @@ -3675,14 +2813,14 @@ } }, "node_modules/@jest/snapshot-utils": { - "version": "30.1.2", - "resolved": "https://registry.npmjs.org/@jest/snapshot-utils/-/snapshot-utils-30.1.2.tgz", - "integrity": "sha512-vHoMTpimcPSR7OxS2S0V1Cpg8eKDRxucHjoWl5u4RQcnxqQrV3avETiFpl8etn4dqxEGarBeHbIBety/f8mLXw==", + "version": "30.2.0", + "resolved": "https://registry.npmjs.org/@jest/snapshot-utils/-/snapshot-utils-30.2.0.tgz", + "integrity": "sha512-0aVxM3RH6DaiLcjj/b0KrIBZhSX1373Xci4l3cW5xiUWPctZ59zQ7jj4rqcJQ/Z8JuN/4wX3FpJSa3RssVvCug==", "dev": true, "license": "MIT", "peer": true, "dependencies": { - "@jest/types": "30.0.5", + "@jest/types": "30.2.0", "chalk": "^4.1.2", "graceful-fs": "^4.2.11", "natural-compare": "^1.4.0" @@ -3708,15 +2846,15 @@ } }, "node_modules/@jest/test-result": { - "version": "30.1.3", - "resolved": "https://registry.npmjs.org/@jest/test-result/-/test-result-30.1.3.tgz", - "integrity": "sha512-P9IV8T24D43cNRANPPokn7tZh0FAFnYS2HIfi5vK18CjRkTDR9Y3e1BoEcAJnl4ghZZF4Ecda4M/k41QkvurEQ==", + "version": "30.2.0", + "resolved": "https://registry.npmjs.org/@jest/test-result/-/test-result-30.2.0.tgz", + "integrity": "sha512-RF+Z+0CCHkARz5HT9mcQCBulb1wgCP3FBvl9VFokMX27acKphwyQsNuWH3c+ojd1LeWBLoTYoxF0zm6S/66mjg==", "dev": true, "license": "MIT", "peer": true, "dependencies": { - "@jest/console": "30.1.2", - "@jest/types": "30.0.5", + "@jest/console": "30.2.0", + "@jest/types": "30.2.0", "@types/istanbul-lib-coverage": "^2.0.6", "collect-v8-coverage": "^1.0.2" }, @@ -3725,16 +2863,16 @@ } }, "node_modules/@jest/test-sequencer": { - "version": "30.1.3", - "resolved": "https://registry.npmjs.org/@jest/test-sequencer/-/test-sequencer-30.1.3.tgz", - "integrity": "sha512-82J+hzC0qeQIiiZDThh+YUadvshdBswi5nuyXlEmXzrhw5ZQSRHeQ5LpVMD/xc8B3wPePvs6VMzHnntxL+4E3w==", + "version": "30.2.0", + "resolved": "https://registry.npmjs.org/@jest/test-sequencer/-/test-sequencer-30.2.0.tgz", + "integrity": "sha512-wXKgU/lk8fKXMu/l5Hog1R61bL4q5GCdT6OJvdAFz1P+QrpoFuLU68eoKuVc4RbrTtNnTL5FByhWdLgOPSph+Q==", "dev": true, "license": "MIT", "peer": true, "dependencies": { - "@jest/test-result": "30.1.3", + "@jest/test-result": "30.2.0", "graceful-fs": "^4.2.11", - "jest-haste-map": "30.1.0", + "jest-haste-map": "30.2.0", "slash": "^3.0.0" }, "engines": { @@ -3742,24 +2880,24 @@ } }, "node_modules/@jest/transform": { - "version": "30.1.2", - "resolved": "https://registry.npmjs.org/@jest/transform/-/transform-30.1.2.tgz", - "integrity": "sha512-UYYFGifSgfjujf1Cbd3iU/IQoSd6uwsj8XHj5DSDf5ERDcWMdJOPTkHWXj4U+Z/uMagyOQZ6Vne8C4nRIrCxqA==", + "version": "30.2.0", + "resolved": "https://registry.npmjs.org/@jest/transform/-/transform-30.2.0.tgz", + "integrity": "sha512-XsauDV82o5qXbhalKxD7p4TZYYdwcaEXC77PPD2HixEFF+6YGppjrAAQurTl2ECWcEomHBMMNS9AH3kcCFx8jA==", "dev": true, "license": "MIT", "peer": true, "dependencies": { "@babel/core": "^7.27.4", - "@jest/types": "30.0.5", + "@jest/types": "30.2.0", "@jridgewell/trace-mapping": "^0.3.25", - "babel-plugin-istanbul": "^7.0.0", + "babel-plugin-istanbul": "^7.0.1", "chalk": "^4.1.2", "convert-source-map": "^2.0.0", "fast-json-stable-stringify": "^2.1.0", "graceful-fs": "^4.2.11", - "jest-haste-map": "30.1.0", + "jest-haste-map": "30.2.0", "jest-regex-util": "30.0.1", - "jest-util": "30.0.5", + "jest-util": "30.2.0", "micromatch": "^4.0.8", "pirates": "^4.0.7", "slash": "^3.0.0", @@ -3770,14 +2908,14 @@ } }, "node_modules/@jest/transform/node_modules/jest-util": { - "version": "30.0.5", - "resolved": "https://registry.npmjs.org/jest-util/-/jest-util-30.0.5.tgz", - "integrity": "sha512-pvyPWssDZR0FlfMxCBoc0tvM8iUEskaRFALUtGQYzVEAqisAztmy+R8LnU14KT4XA0H/a5HMVTXat1jLne010g==", + "version": "30.2.0", + "resolved": "https://registry.npmjs.org/jest-util/-/jest-util-30.2.0.tgz", + "integrity": "sha512-QKNsM0o3Xe6ISQU869e+DhG+4CK/48aHYdJZGlFQVTjnbvgpcKyxpzk29fGiO7i/J8VENZ+d2iGnSsvmuHywlA==", "dev": true, "license": "MIT", "peer": true, "dependencies": { - "@jest/types": "30.0.5", + "@jest/types": "30.2.0", "@types/node": "*", "chalk": "^4.1.2", "ci-info": "^4.2.0", @@ -3803,9 +2941,9 @@ } }, "node_modules/@jest/types": { - "version": "30.0.5", - "resolved": "https://registry.npmjs.org/@jest/types/-/types-30.0.5.tgz", - "integrity": "sha512-aREYa3aku9SSnea4aX6bhKn4bgv3AXkgijoQgbYV3yvbiGt6z+MQ85+6mIhx9DsKW2BuB/cLR/A+tcMThx+KLQ==", + "version": "30.2.0", + "resolved": "https://registry.npmjs.org/@jest/types/-/types-30.2.0.tgz", + "integrity": "sha512-H9xg1/sfVvyfU7o3zMfBEjQ1gcsdeTMgqHoYdN79tuLqfTtuu7WckRA1R5whDwOzxaZAeMKTYWqP+WCAi0CHsg==", "dev": true, "license": "MIT", "peer": true, @@ -3900,17 +3038,17 @@ } }, "node_modules/@octokit/core": { - "version": "7.0.4", - "resolved": "https://registry.npmjs.org/@octokit/core/-/core-7.0.4.tgz", - "integrity": "sha512-jOT8V1Ba5BdC79sKrRWDdMT5l1R+XNHTPR6CPWzUP2EcfAcvIHZWF0eAbmRcpOOP5gVIwnqNg0C4nvh6Abc3OA==", + "version": "7.0.6", + "resolved": "https://registry.npmjs.org/@octokit/core/-/core-7.0.6.tgz", + "integrity": "sha512-DhGl4xMVFGVIyMwswXeyzdL4uXD5OGILGX5N8Y+f6W7LhC1Ze2poSNrkF/fedpVDHEEZ+PHFW0vL14I+mm8K3Q==", "dev": true, "license": "MIT", "dependencies": { "@octokit/auth-token": "^6.0.0", - "@octokit/graphql": "^9.0.1", - "@octokit/request": "^10.0.2", - "@octokit/request-error": "^7.0.0", - "@octokit/types": "^15.0.0", + "@octokit/graphql": "^9.0.3", + "@octokit/request": "^10.0.6", + "@octokit/request-error": "^7.0.2", + "@octokit/types": "^16.0.0", "before-after-hook": "^4.0.0", "universal-user-agent": "^7.0.0" }, @@ -3919,83 +3057,49 @@ } }, "node_modules/@octokit/endpoint": { - "version": "11.0.0", - "resolved": "https://registry.npmjs.org/@octokit/endpoint/-/endpoint-11.0.0.tgz", - "integrity": "sha512-hoYicJZaqISMAI3JfaDr1qMNi48OctWuOih1m80bkYow/ayPw6Jj52tqWJ6GEoFTk1gBqfanSoI1iY99Z5+ekQ==", + "version": "11.0.2", + "resolved": "https://registry.npmjs.org/@octokit/endpoint/-/endpoint-11.0.2.tgz", + "integrity": "sha512-4zCpzP1fWc7QlqunZ5bSEjxc6yLAlRTnDwKtgXfcI/FxxGoqedDG8V2+xJ60bV2kODqcGB+nATdtap/XYq2NZQ==", "dev": true, "license": "MIT", "dependencies": { - "@octokit/types": "^14.0.0", + "@octokit/types": "^16.0.0", "universal-user-agent": "^7.0.2" }, "engines": { "node": ">= 20" } }, - "node_modules/@octokit/endpoint/node_modules/@octokit/openapi-types": { - "version": "25.1.0", - "resolved": "https://registry.npmjs.org/@octokit/openapi-types/-/openapi-types-25.1.0.tgz", - "integrity": "sha512-idsIggNXUKkk0+BExUn1dQ92sfysJrje03Q0bv0e+KPLrvyqZF8MnBpFz8UNfYDwB3Ie7Z0TByjWfzxt7vseaA==", - "dev": true, - "license": "MIT" - }, - "node_modules/@octokit/endpoint/node_modules/@octokit/types": { - "version": "14.1.0", - "resolved": "https://registry.npmjs.org/@octokit/types/-/types-14.1.0.tgz", - "integrity": "sha512-1y6DgTy8Jomcpu33N+p5w58l6xyt55Ar2I91RPiIA0xCJBXyUAhXCcmZaDWSANiha7R9a6qJJ2CRomGPZ6f46g==", - "dev": true, - "license": "MIT", - "dependencies": { - "@octokit/openapi-types": "^25.1.0" - } - }, "node_modules/@octokit/graphql": { - "version": "9.0.1", - "resolved": "https://registry.npmjs.org/@octokit/graphql/-/graphql-9.0.1.tgz", - "integrity": "sha512-j1nQNU1ZxNFx2ZtKmL4sMrs4egy5h65OMDmSbVyuCzjOcwsHq6EaYjOTGXPQxgfiN8dJ4CriYHk6zF050WEULg==", + "version": "9.0.3", + "resolved": "https://registry.npmjs.org/@octokit/graphql/-/graphql-9.0.3.tgz", + "integrity": "sha512-grAEuupr/C1rALFnXTv6ZQhFuL1D8G5y8CN04RgrO4FIPMrtm+mcZzFG7dcBm+nq+1ppNixu+Jd78aeJOYxlGA==", "dev": true, "license": "MIT", "dependencies": { - "@octokit/request": "^10.0.2", - "@octokit/types": "^14.0.0", + "@octokit/request": "^10.0.6", + "@octokit/types": "^16.0.0", "universal-user-agent": "^7.0.0" }, "engines": { "node": ">= 20" } }, - "node_modules/@octokit/graphql/node_modules/@octokit/openapi-types": { - "version": "25.1.0", - "resolved": "https://registry.npmjs.org/@octokit/openapi-types/-/openapi-types-25.1.0.tgz", - "integrity": "sha512-idsIggNXUKkk0+BExUn1dQ92sfysJrje03Q0bv0e+KPLrvyqZF8MnBpFz8UNfYDwB3Ie7Z0TByjWfzxt7vseaA==", - "dev": true, - "license": "MIT" - }, - "node_modules/@octokit/graphql/node_modules/@octokit/types": { - "version": "14.1.0", - "resolved": "https://registry.npmjs.org/@octokit/types/-/types-14.1.0.tgz", - "integrity": "sha512-1y6DgTy8Jomcpu33N+p5w58l6xyt55Ar2I91RPiIA0xCJBXyUAhXCcmZaDWSANiha7R9a6qJJ2CRomGPZ6f46g==", - "dev": true, - "license": "MIT", - "dependencies": { - "@octokit/openapi-types": "^25.1.0" - } - }, "node_modules/@octokit/openapi-types": { - "version": "26.0.0", - "resolved": "https://registry.npmjs.org/@octokit/openapi-types/-/openapi-types-26.0.0.tgz", - "integrity": "sha512-7AtcfKtpo77j7Ts73b4OWhOZHTKo/gGY8bB3bNBQz4H+GRSWqx2yvj8TXRsbdTE0eRmYmXOEY66jM7mJ7LzfsA==", + "version": "27.0.0", + "resolved": "https://registry.npmjs.org/@octokit/openapi-types/-/openapi-types-27.0.0.tgz", + "integrity": "sha512-whrdktVs1h6gtR+09+QsNk2+FO+49j6ga1c55YZudfEG+oKJVvJLQi3zkOm5JjiUXAagWK2tI2kTGKJ2Ys7MGA==", "dev": true, "license": "MIT" }, "node_modules/@octokit/plugin-paginate-rest": { - "version": "13.1.1", - "resolved": "https://registry.npmjs.org/@octokit/plugin-paginate-rest/-/plugin-paginate-rest-13.1.1.tgz", - "integrity": "sha512-q9iQGlZlxAVNRN2jDNskJW/Cafy7/XE52wjZ5TTvyhyOD904Cvx//DNyoO3J/MXJ0ve3rPoNWKEg5iZrisQSuw==", + "version": "13.2.1", + "resolved": "https://registry.npmjs.org/@octokit/plugin-paginate-rest/-/plugin-paginate-rest-13.2.1.tgz", + "integrity": "sha512-Tj4PkZyIL6eBMYcG/76QGsedF0+dWVeLhYprTmuFVVxzDW7PQh23tM0TP0z+1MvSkxB29YFZwnUX+cXfTiSdyw==", "dev": true, "license": "MIT", "dependencies": { - "@octokit/types": "^14.1.0" + "@octokit/types": "^15.0.1" }, "engines": { "node": ">= 20" @@ -4005,31 +3109,31 @@ } }, "node_modules/@octokit/plugin-paginate-rest/node_modules/@octokit/openapi-types": { - "version": "25.1.0", - "resolved": "https://registry.npmjs.org/@octokit/openapi-types/-/openapi-types-25.1.0.tgz", - "integrity": "sha512-idsIggNXUKkk0+BExUn1dQ92sfysJrje03Q0bv0e+KPLrvyqZF8MnBpFz8UNfYDwB3Ie7Z0TByjWfzxt7vseaA==", + "version": "26.0.0", + "resolved": "https://registry.npmjs.org/@octokit/openapi-types/-/openapi-types-26.0.0.tgz", + "integrity": "sha512-7AtcfKtpo77j7Ts73b4OWhOZHTKo/gGY8bB3bNBQz4H+GRSWqx2yvj8TXRsbdTE0eRmYmXOEY66jM7mJ7LzfsA==", "dev": true, "license": "MIT" }, "node_modules/@octokit/plugin-paginate-rest/node_modules/@octokit/types": { - "version": "14.1.0", - "resolved": "https://registry.npmjs.org/@octokit/types/-/types-14.1.0.tgz", - "integrity": "sha512-1y6DgTy8Jomcpu33N+p5w58l6xyt55Ar2I91RPiIA0xCJBXyUAhXCcmZaDWSANiha7R9a6qJJ2CRomGPZ6f46g==", + "version": "15.0.2", + "resolved": "https://registry.npmjs.org/@octokit/types/-/types-15.0.2.tgz", + "integrity": "sha512-rR+5VRjhYSer7sC51krfCctQhVTmjyUMAaShfPB8mscVa8tSoLyon3coxQmXu0ahJoLVWl8dSGD/3OGZlFV44Q==", "dev": true, "license": "MIT", "dependencies": { - "@octokit/openapi-types": "^25.1.0" + "@octokit/openapi-types": "^26.0.0" } }, "node_modules/@octokit/plugin-retry": { - "version": "8.0.1", - "resolved": "https://registry.npmjs.org/@octokit/plugin-retry/-/plugin-retry-8.0.1.tgz", - "integrity": "sha512-KUoYR77BjF5O3zcwDQHRRZsUvJwepobeqiSSdCJ8lWt27FZExzb0GgVxrhhfuyF6z2B2zpO0hN5pteni1sqWiw==", + "version": "8.0.3", + "resolved": "https://registry.npmjs.org/@octokit/plugin-retry/-/plugin-retry-8.0.3.tgz", + "integrity": "sha512-vKGx1i3MC0za53IzYBSBXcrhmd+daQDzuZfYDd52X5S0M2otf3kVZTVP8bLA3EkU0lTvd1WEC2OlNNa4G+dohA==", "dev": true, "license": "MIT", "dependencies": { - "@octokit/request-error": "^7.0.0", - "@octokit/types": "^14.0.0", + "@octokit/request-error": "^7.0.2", + "@octokit/types": "^16.0.0", "bottleneck": "^2.15.3" }, "engines": { @@ -4039,31 +3143,14 @@ "@octokit/core": ">=7" } }, - "node_modules/@octokit/plugin-retry/node_modules/@octokit/openapi-types": { - "version": "25.1.0", - "resolved": "https://registry.npmjs.org/@octokit/openapi-types/-/openapi-types-25.1.0.tgz", - "integrity": "sha512-idsIggNXUKkk0+BExUn1dQ92sfysJrje03Q0bv0e+KPLrvyqZF8MnBpFz8UNfYDwB3Ie7Z0TByjWfzxt7vseaA==", - "dev": true, - "license": "MIT" - }, - "node_modules/@octokit/plugin-retry/node_modules/@octokit/types": { - "version": "14.1.0", - "resolved": "https://registry.npmjs.org/@octokit/types/-/types-14.1.0.tgz", - "integrity": "sha512-1y6DgTy8Jomcpu33N+p5w58l6xyt55Ar2I91RPiIA0xCJBXyUAhXCcmZaDWSANiha7R9a6qJJ2CRomGPZ6f46g==", - "dev": true, - "license": "MIT", - "dependencies": { - "@octokit/openapi-types": "^25.1.0" - } - }, "node_modules/@octokit/plugin-throttling": { - "version": "11.0.1", - "resolved": "https://registry.npmjs.org/@octokit/plugin-throttling/-/plugin-throttling-11.0.1.tgz", - "integrity": "sha512-S+EVhy52D/272L7up58dr3FNSMXWuNZolkL4zMJBNIfIxyZuUcczsQAU4b5w6dewJXnKYVgSHSV5wxitMSW1kw==", + "version": "11.0.3", + "resolved": "https://registry.npmjs.org/@octokit/plugin-throttling/-/plugin-throttling-11.0.3.tgz", + "integrity": "sha512-34eE0RkFCKycLl2D2kq7W+LovheM/ex3AwZCYN8udpi6bxsyjZidb2McXs69hZhLmJlDqTSP8cH+jSRpiaijBg==", "dev": true, "license": "MIT", "dependencies": { - "@octokit/types": "^14.0.0", + "@octokit/types": "^16.0.0", "bottleneck": "^2.15.3" }, "engines": { @@ -4073,33 +3160,16 @@ "@octokit/core": "^7.0.0" } }, - "node_modules/@octokit/plugin-throttling/node_modules/@octokit/openapi-types": { - "version": "25.1.0", - "resolved": "https://registry.npmjs.org/@octokit/openapi-types/-/openapi-types-25.1.0.tgz", - "integrity": "sha512-idsIggNXUKkk0+BExUn1dQ92sfysJrje03Q0bv0e+KPLrvyqZF8MnBpFz8UNfYDwB3Ie7Z0TByjWfzxt7vseaA==", - "dev": true, - "license": "MIT" - }, - "node_modules/@octokit/plugin-throttling/node_modules/@octokit/types": { - "version": "14.1.0", - "resolved": "https://registry.npmjs.org/@octokit/types/-/types-14.1.0.tgz", - "integrity": "sha512-1y6DgTy8Jomcpu33N+p5w58l6xyt55Ar2I91RPiIA0xCJBXyUAhXCcmZaDWSANiha7R9a6qJJ2CRomGPZ6f46g==", - "dev": true, - "license": "MIT", - "dependencies": { - "@octokit/openapi-types": "^25.1.0" - } - }, "node_modules/@octokit/request": { - "version": "10.0.3", - "resolved": "https://registry.npmjs.org/@octokit/request/-/request-10.0.3.tgz", - "integrity": "sha512-V6jhKokg35vk098iBqp2FBKunk3kMTXlmq+PtbV9Gl3TfskWlebSofU9uunVKhUN7xl+0+i5vt0TGTG8/p/7HA==", + "version": "10.0.7", + "resolved": "https://registry.npmjs.org/@octokit/request/-/request-10.0.7.tgz", + "integrity": "sha512-v93h0i1yu4idj8qFPZwjehoJx4j3Ntn+JhXsdJrG9pYaX6j/XRz2RmasMUHtNgQD39nrv/VwTWSqK0RNXR8upA==", "dev": true, "license": "MIT", "dependencies": { - "@octokit/endpoint": "^11.0.0", - "@octokit/request-error": "^7.0.0", - "@octokit/types": "^14.0.0", + "@octokit/endpoint": "^11.0.2", + "@octokit/request-error": "^7.0.2", + "@octokit/types": "^16.0.0", "fast-content-type-parse": "^3.0.0", "universal-user-agent": "^7.0.2" }, @@ -4108,70 +3178,34 @@ } }, "node_modules/@octokit/request-error": { - "version": "7.0.0", - "resolved": "https://registry.npmjs.org/@octokit/request-error/-/request-error-7.0.0.tgz", - "integrity": "sha512-KRA7VTGdVyJlh0cP5Tf94hTiYVVqmt2f3I6mnimmaVz4UG3gQV/k4mDJlJv3X67iX6rmN7gSHCF8ssqeMnmhZg==", + "version": "7.1.0", + "resolved": "https://registry.npmjs.org/@octokit/request-error/-/request-error-7.1.0.tgz", + "integrity": "sha512-KMQIfq5sOPpkQYajXHwnhjCC0slzCNScLHs9JafXc4RAJI+9f+jNDlBNaIMTvazOPLgb4BnlhGJOTbnN0wIjPw==", "dev": true, "license": "MIT", "dependencies": { - "@octokit/types": "^14.0.0" + "@octokit/types": "^16.0.0" }, "engines": { "node": ">= 20" } }, - "node_modules/@octokit/request-error/node_modules/@octokit/openapi-types": { - "version": "25.1.0", - "resolved": "https://registry.npmjs.org/@octokit/openapi-types/-/openapi-types-25.1.0.tgz", - "integrity": "sha512-idsIggNXUKkk0+BExUn1dQ92sfysJrje03Q0bv0e+KPLrvyqZF8MnBpFz8UNfYDwB3Ie7Z0TByjWfzxt7vseaA==", - "dev": true, - "license": "MIT" - }, - "node_modules/@octokit/request-error/node_modules/@octokit/types": { - "version": "14.1.0", - "resolved": "https://registry.npmjs.org/@octokit/types/-/types-14.1.0.tgz", - "integrity": "sha512-1y6DgTy8Jomcpu33N+p5w58l6xyt55Ar2I91RPiIA0xCJBXyUAhXCcmZaDWSANiha7R9a6qJJ2CRomGPZ6f46g==", - "dev": true, - "license": "MIT", - "dependencies": { - "@octokit/openapi-types": "^25.1.0" - } - }, - "node_modules/@octokit/request/node_modules/@octokit/openapi-types": { - "version": "25.1.0", - "resolved": "https://registry.npmjs.org/@octokit/openapi-types/-/openapi-types-25.1.0.tgz", - "integrity": "sha512-idsIggNXUKkk0+BExUn1dQ92sfysJrje03Q0bv0e+KPLrvyqZF8MnBpFz8UNfYDwB3Ie7Z0TByjWfzxt7vseaA==", - "dev": true, - "license": "MIT" - }, - "node_modules/@octokit/request/node_modules/@octokit/types": { - "version": "14.1.0", - "resolved": "https://registry.npmjs.org/@octokit/types/-/types-14.1.0.tgz", - "integrity": "sha512-1y6DgTy8Jomcpu33N+p5w58l6xyt55Ar2I91RPiIA0xCJBXyUAhXCcmZaDWSANiha7R9a6qJJ2CRomGPZ6f46g==", - "dev": true, - "license": "MIT", - "dependencies": { - "@octokit/openapi-types": "^25.1.0" - } - }, "node_modules/@octokit/types": { - "version": "15.0.0", - "resolved": "https://registry.npmjs.org/@octokit/types/-/types-15.0.0.tgz", - "integrity": "sha512-8o6yDfmoGJUIeR9OfYU0/TUJTnMPG2r68+1yEdUeG2Fdqpj8Qetg0ziKIgcBm0RW/j29H41WP37CYCEhp6GoHQ==", + "version": "16.0.0", + "resolved": "https://registry.npmjs.org/@octokit/types/-/types-16.0.0.tgz", + "integrity": "sha512-sKq+9r1Mm4efXW1FCk7hFSeJo4QKreL/tTbR0rz/qx/r1Oa2VV83LTA/H/MuCOX7uCIJmQVRKBcbmWoySjAnSg==", "dev": true, "license": "MIT", "dependencies": { - "@octokit/openapi-types": "^26.0.0" + "@octokit/openapi-types": "^27.0.0" } }, "node_modules/@pkgjs/parseargs": { "version": "0.11.0", "resolved": "https://registry.npmjs.org/@pkgjs/parseargs/-/parseargs-0.11.0.tgz", "integrity": "sha512-+1VkjdD0QBLPodGrJUeqarH8VAIvQODIbwh9XpP5Syisf7YoQgsJKPNFoqqLQlu+VQ/tVSshMR6loPMn8U+dPg==", - "dev": true, "license": "MIT", "optional": true, - "peer": true, "engines": { "node": ">=14" } @@ -4236,9 +3270,9 @@ } }, "node_modules/@rollup/rollup-android-arm-eabi": { - "version": "4.50.2", - "resolved": "https://registry.npmjs.org/@rollup/rollup-android-arm-eabi/-/rollup-android-arm-eabi-4.50.2.tgz", - "integrity": "sha512-uLN8NAiFVIRKX9ZQha8wy6UUs06UNSZ32xj6giK/rmMXAgKahwExvK6SsmgU5/brh4w/nSgj8e0k3c1HBQpa0A==", + "version": "4.53.3", + "resolved": "https://registry.npmjs.org/@rollup/rollup-android-arm-eabi/-/rollup-android-arm-eabi-4.53.3.tgz", + "integrity": "sha512-mRSi+4cBjrRLoaal2PnqH82Wqyb+d3HsPUN/W+WslCXsZsyHa9ZeQQX/pQsZaVIWDkPcpV6jJ+3KLbTbgnwv8w==", "cpu": [ "arm" ], @@ -4250,9 +3284,9 @@ ] }, "node_modules/@rollup/rollup-android-arm64": { - "version": "4.50.2", - "resolved": "https://registry.npmjs.org/@rollup/rollup-android-arm64/-/rollup-android-arm64-4.50.2.tgz", - "integrity": "sha512-oEouqQk2/zxxj22PNcGSskya+3kV0ZKH+nQxuCCOGJ4oTXBdNTbv+f/E3c74cNLeMO1S5wVWacSws10TTSB77g==", + "version": "4.53.3", + "resolved": "https://registry.npmjs.org/@rollup/rollup-android-arm64/-/rollup-android-arm64-4.53.3.tgz", + "integrity": "sha512-CbDGaMpdE9sh7sCmTrTUyllhrg65t6SwhjlMJsLr+J8YjFuPmCEjbBSx4Z/e4SmDyH3aB5hGaJUP2ltV/vcs4w==", "cpu": [ "arm64" ], @@ -4264,9 +3298,9 @@ ] }, "node_modules/@rollup/rollup-darwin-arm64": { - "version": "4.50.2", - "resolved": "https://registry.npmjs.org/@rollup/rollup-darwin-arm64/-/rollup-darwin-arm64-4.50.2.tgz", - "integrity": "sha512-OZuTVTpj3CDSIxmPgGH8en/XtirV5nfljHZ3wrNwvgkT5DQLhIKAeuFSiwtbMto6oVexV0k1F1zqURPKf5rI1Q==", + "version": "4.53.3", + "resolved": "https://registry.npmjs.org/@rollup/rollup-darwin-arm64/-/rollup-darwin-arm64-4.53.3.tgz", + "integrity": "sha512-Nr7SlQeqIBpOV6BHHGZgYBuSdanCXuw09hon14MGOLGmXAFYjx1wNvquVPmpZnl0tLjg25dEdr4IQ6GgyToCUA==", "cpu": [ "arm64" ], @@ -4278,9 +3312,9 @@ ] }, "node_modules/@rollup/rollup-darwin-x64": { - "version": "4.50.2", - "resolved": "https://registry.npmjs.org/@rollup/rollup-darwin-x64/-/rollup-darwin-x64-4.50.2.tgz", - "integrity": "sha512-Wa/Wn8RFkIkr1vy1k1PB//VYhLnlnn5eaJkfTQKivirOvzu5uVd2It01ukeQstMursuz7S1bU+8WW+1UPXpa8A==", + "version": "4.53.3", + "resolved": "https://registry.npmjs.org/@rollup/rollup-darwin-x64/-/rollup-darwin-x64-4.53.3.tgz", + "integrity": "sha512-DZ8N4CSNfl965CmPktJ8oBnfYr3F8dTTNBQkRlffnUarJ2ohudQD17sZBa097J8xhQ26AwhHJ5mvUyQW8ddTsQ==", "cpu": [ "x64" ], @@ -4292,9 +3326,9 @@ ] }, "node_modules/@rollup/rollup-freebsd-arm64": { - "version": "4.50.2", - "resolved": "https://registry.npmjs.org/@rollup/rollup-freebsd-arm64/-/rollup-freebsd-arm64-4.50.2.tgz", - "integrity": "sha512-QkzxvH3kYN9J1w7D1A+yIMdI1pPekD+pWx7G5rXgnIlQ1TVYVC6hLl7SOV9pi5q9uIDF9AuIGkuzcbF7+fAhow==", + "version": "4.53.3", + "resolved": "https://registry.npmjs.org/@rollup/rollup-freebsd-arm64/-/rollup-freebsd-arm64-4.53.3.tgz", + "integrity": "sha512-yMTrCrK92aGyi7GuDNtGn2sNW+Gdb4vErx4t3Gv/Tr+1zRb8ax4z8GWVRfr3Jw8zJWvpGHNpss3vVlbF58DZ4w==", "cpu": [ "arm64" ], @@ -4306,9 +3340,9 @@ ] }, "node_modules/@rollup/rollup-freebsd-x64": { - "version": "4.50.2", - "resolved": "https://registry.npmjs.org/@rollup/rollup-freebsd-x64/-/rollup-freebsd-x64-4.50.2.tgz", - "integrity": "sha512-dkYXB0c2XAS3a3jmyDkX4Jk0m7gWLFzq1C3qUnJJ38AyxIF5G/dyS4N9B30nvFseCfgtCEdbYFhk0ChoCGxPog==", + "version": "4.53.3", + "resolved": "https://registry.npmjs.org/@rollup/rollup-freebsd-x64/-/rollup-freebsd-x64-4.53.3.tgz", + "integrity": "sha512-lMfF8X7QhdQzseM6XaX0vbno2m3hlyZFhwcndRMw8fbAGUGL3WFMBdK0hbUBIUYcEcMhVLr1SIamDeuLBnXS+Q==", "cpu": [ "x64" ], @@ -4320,9 +3354,9 @@ ] }, "node_modules/@rollup/rollup-linux-arm-gnueabihf": { - "version": "4.50.2", - "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-arm-gnueabihf/-/rollup-linux-arm-gnueabihf-4.50.2.tgz", - "integrity": "sha512-9VlPY/BN3AgbukfVHAB8zNFWB/lKEuvzRo1NKev0Po8sYFKx0i+AQlCYftgEjcL43F2h9Ui1ZSdVBc4En/sP2w==", + "version": "4.53.3", + "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-arm-gnueabihf/-/rollup-linux-arm-gnueabihf-4.53.3.tgz", + "integrity": "sha512-k9oD15soC/Ln6d2Wv/JOFPzZXIAIFLp6B+i14KhxAfnq76ajt0EhYc5YPeX6W1xJkAdItcVT+JhKl1QZh44/qw==", "cpu": [ "arm" ], @@ -4334,9 +3368,9 @@ ] }, "node_modules/@rollup/rollup-linux-arm-musleabihf": { - "version": "4.50.2", - "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-arm-musleabihf/-/rollup-linux-arm-musleabihf-4.50.2.tgz", - "integrity": "sha512-+GdKWOvsifaYNlIVf07QYan1J5F141+vGm5/Y8b9uCZnG/nxoGqgCmR24mv0koIWWuqvFYnbURRqw1lv7IBINw==", + "version": "4.53.3", + "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-arm-musleabihf/-/rollup-linux-arm-musleabihf-4.53.3.tgz", + "integrity": "sha512-vTNlKq+N6CK/8UktsrFuc+/7NlEYVxgaEgRXVUVK258Z5ymho29skzW1sutgYjqNnquGwVUObAaxae8rZ6YMhg==", "cpu": [ "arm" ], @@ -4348,9 +3382,9 @@ ] }, "node_modules/@rollup/rollup-linux-arm64-gnu": { - "version": "4.50.2", - "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-arm64-gnu/-/rollup-linux-arm64-gnu-4.50.2.tgz", - "integrity": "sha512-df0Eou14ojtUdLQdPFnymEQteENwSJAdLf5KCDrmZNsy1c3YaCNaJvYsEUHnrg+/DLBH612/R0xd3dD03uz2dg==", + "version": "4.53.3", + "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-arm64-gnu/-/rollup-linux-arm64-gnu-4.53.3.tgz", + "integrity": "sha512-RGrFLWgMhSxRs/EWJMIFM1O5Mzuz3Xy3/mnxJp/5cVhZ2XoCAxJnmNsEyeMJtpK+wu0FJFWz+QF4mjCA7AUQ3w==", "cpu": [ "arm64" ], @@ -4362,9 +3396,9 @@ ] }, "node_modules/@rollup/rollup-linux-arm64-musl": { - "version": "4.50.2", - "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-arm64-musl/-/rollup-linux-arm64-musl-4.50.2.tgz", - "integrity": "sha512-iPeouV0UIDtz8j1YFR4OJ/zf7evjauqv7jQ/EFs0ClIyL+by++hiaDAfFipjOgyz6y6xbDvJuiU4HwpVMpRFDQ==", + "version": "4.53.3", + "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-arm64-musl/-/rollup-linux-arm64-musl-4.53.3.tgz", + "integrity": "sha512-kASyvfBEWYPEwe0Qv4nfu6pNkITLTb32p4yTgzFCocHnJLAHs+9LjUu9ONIhvfT/5lv4YS5muBHyuV84epBo/A==", "cpu": [ "arm64" ], @@ -4376,9 +3410,9 @@ ] }, "node_modules/@rollup/rollup-linux-loong64-gnu": { - "version": "4.50.2", - "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-loong64-gnu/-/rollup-linux-loong64-gnu-4.50.2.tgz", - "integrity": "sha512-OL6KaNvBopLlj5fTa5D5bau4W82f+1TyTZRr2BdnfsrnQnmdxh4okMxR2DcDkJuh4KeoQZVuvHvzuD/lyLn2Kw==", + "version": "4.53.3", + "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-loong64-gnu/-/rollup-linux-loong64-gnu-4.53.3.tgz", + "integrity": "sha512-JiuKcp2teLJwQ7vkJ95EwESWkNRFJD7TQgYmCnrPtlu50b4XvT5MOmurWNrCj3IFdyjBQ5p9vnrX4JM6I8OE7g==", "cpu": [ "loong64" ], @@ -4390,9 +3424,9 @@ ] }, "node_modules/@rollup/rollup-linux-ppc64-gnu": { - "version": "4.50.2", - "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-ppc64-gnu/-/rollup-linux-ppc64-gnu-4.50.2.tgz", - "integrity": "sha512-I21VJl1w6z/K5OTRl6aS9DDsqezEZ/yKpbqlvfHbW0CEF5IL8ATBMuUx6/mp683rKTK8thjs/0BaNrZLXetLag==", + "version": "4.53.3", + "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-ppc64-gnu/-/rollup-linux-ppc64-gnu-4.53.3.tgz", + "integrity": "sha512-EoGSa8nd6d3T7zLuqdojxC20oBfNT8nexBbB/rkxgKj5T5vhpAQKKnD+h3UkoMuTyXkP5jTjK/ccNRmQrPNDuw==", "cpu": [ "ppc64" ], @@ -4404,9 +3438,9 @@ ] }, "node_modules/@rollup/rollup-linux-riscv64-gnu": { - "version": "4.50.2", - "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-riscv64-gnu/-/rollup-linux-riscv64-gnu-4.50.2.tgz", - "integrity": "sha512-Hq6aQJT/qFFHrYMjS20nV+9SKrXL2lvFBENZoKfoTH2kKDOJqff5OSJr4x72ZaG/uUn+XmBnGhfr4lwMRrmqCQ==", + "version": "4.53.3", + "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-riscv64-gnu/-/rollup-linux-riscv64-gnu-4.53.3.tgz", + "integrity": "sha512-4s+Wped2IHXHPnAEbIB0YWBv7SDohqxobiiPA1FIWZpX+w9o2i4LezzH/NkFUl8LRci/8udci6cLq+jJQlh+0g==", "cpu": [ "riscv64" ], @@ -4418,9 +3452,9 @@ ] }, "node_modules/@rollup/rollup-linux-riscv64-musl": { - "version": "4.50.2", - "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-riscv64-musl/-/rollup-linux-riscv64-musl-4.50.2.tgz", - "integrity": "sha512-82rBSEXRv5qtKyr0xZ/YMF531oj2AIpLZkeNYxmKNN6I2sVE9PGegN99tYDLK2fYHJITL1P2Lgb4ZXnv0PjQvw==", + "version": "4.53.3", + "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-riscv64-musl/-/rollup-linux-riscv64-musl-4.53.3.tgz", + "integrity": "sha512-68k2g7+0vs2u9CxDt5ktXTngsxOQkSEV/xBbwlqYcUrAVh6P9EgMZvFsnHy4SEiUl46Xf0IObWVbMvPrr2gw8A==", "cpu": [ "riscv64" ], @@ -4432,9 +3466,9 @@ ] }, "node_modules/@rollup/rollup-linux-s390x-gnu": { - "version": "4.50.2", - "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-s390x-gnu/-/rollup-linux-s390x-gnu-4.50.2.tgz", - "integrity": "sha512-4Q3S3Hy7pC6uaRo9gtXUTJ+EKo9AKs3BXKc2jYypEcMQ49gDPFU2P1ariX9SEtBzE5egIX6fSUmbmGazwBVF9w==", + "version": "4.53.3", + "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-s390x-gnu/-/rollup-linux-s390x-gnu-4.53.3.tgz", + "integrity": "sha512-VYsFMpULAz87ZW6BVYw3I6sWesGpsP9OPcyKe8ofdg9LHxSbRMd7zrVrr5xi/3kMZtpWL/wC+UIJWJYVX5uTKg==", "cpu": [ "s390x" ], @@ -4446,9 +3480,9 @@ ] }, "node_modules/@rollup/rollup-linux-x64-gnu": { - "version": "4.50.2", - "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-x64-gnu/-/rollup-linux-x64-gnu-4.50.2.tgz", - "integrity": "sha512-9Jie/At6qk70dNIcopcL4p+1UirusEtznpNtcq/u/C5cC4HBX7qSGsYIcG6bdxj15EYWhHiu02YvmdPzylIZlA==", + "version": "4.53.3", + "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-x64-gnu/-/rollup-linux-x64-gnu-4.53.3.tgz", + "integrity": "sha512-3EhFi1FU6YL8HTUJZ51imGJWEX//ajQPfqWLI3BQq4TlvHy4X0MOr5q3D2Zof/ka0d5FNdPwZXm3Yyib/UEd+w==", "cpu": [ "x64" ], @@ -4460,9 +3494,9 @@ ] }, "node_modules/@rollup/rollup-linux-x64-musl": { - "version": "4.50.2", - "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-x64-musl/-/rollup-linux-x64-musl-4.50.2.tgz", - "integrity": "sha512-HPNJwxPL3EmhzeAnsWQCM3DcoqOz3/IC6de9rWfGR8ZCuEHETi9km66bH/wG3YH0V3nyzyFEGUZeL5PKyy4xvw==", + "version": "4.53.3", + "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-x64-musl/-/rollup-linux-x64-musl-4.53.3.tgz", + "integrity": "sha512-eoROhjcc6HbZCJr+tvVT8X4fW3/5g/WkGvvmwz/88sDtSJzO7r/blvoBDgISDiCjDRZmHpwud7h+6Q9JxFwq1Q==", "cpu": [ "x64" ], @@ -4474,9 +3508,9 @@ ] }, "node_modules/@rollup/rollup-openharmony-arm64": { - "version": "4.50.2", - "resolved": "https://registry.npmjs.org/@rollup/rollup-openharmony-arm64/-/rollup-openharmony-arm64-4.50.2.tgz", - "integrity": "sha512-nMKvq6FRHSzYfKLHZ+cChowlEkR2lj/V0jYj9JnGUVPL2/mIeFGmVM2mLaFeNa5Jev7W7TovXqXIG2d39y1KYA==", + "version": "4.53.3", + "resolved": "https://registry.npmjs.org/@rollup/rollup-openharmony-arm64/-/rollup-openharmony-arm64-4.53.3.tgz", + "integrity": "sha512-OueLAWgrNSPGAdUdIjSWXw+u/02BRTcnfw9PN41D2vq/JSEPnJnVuBgw18VkN8wcd4fjUs+jFHVM4t9+kBSNLw==", "cpu": [ "arm64" ], @@ -4488,9 +3522,9 @@ ] }, "node_modules/@rollup/rollup-win32-arm64-msvc": { - "version": "4.50.2", - "resolved": "https://registry.npmjs.org/@rollup/rollup-win32-arm64-msvc/-/rollup-win32-arm64-msvc-4.50.2.tgz", - "integrity": "sha512-eFUvvnTYEKeTyHEijQKz81bLrUQOXKZqECeiWH6tb8eXXbZk+CXSG2aFrig2BQ/pjiVRj36zysjgILkqarS2YA==", + "version": "4.53.3", + "resolved": "https://registry.npmjs.org/@rollup/rollup-win32-arm64-msvc/-/rollup-win32-arm64-msvc-4.53.3.tgz", + "integrity": "sha512-GOFuKpsxR/whszbF/bzydebLiXIHSgsEUp6M0JI8dWvi+fFa1TD6YQa4aSZHtpmh2/uAlj/Dy+nmby3TJ3pkTw==", "cpu": [ "arm64" ], @@ -4502,9 +3536,9 @@ ] }, "node_modules/@rollup/rollup-win32-ia32-msvc": { - "version": "4.50.2", - "resolved": "https://registry.npmjs.org/@rollup/rollup-win32-ia32-msvc/-/rollup-win32-ia32-msvc-4.50.2.tgz", - "integrity": "sha512-cBaWmXqyfRhH8zmUxK3d3sAhEWLrtMjWBRwdMMHJIXSjvjLKvv49adxiEz+FJ8AP90apSDDBx2Tyd/WylV6ikA==", + "version": "4.53.3", + "resolved": "https://registry.npmjs.org/@rollup/rollup-win32-ia32-msvc/-/rollup-win32-ia32-msvc-4.53.3.tgz", + "integrity": "sha512-iah+THLcBJdpfZ1TstDFbKNznlzoxa8fmnFYK4V67HvmuNYkVdAywJSoteUszvBQ9/HqN2+9AZghbajMsFT+oA==", "cpu": [ "ia32" ], @@ -4515,10 +3549,24 @@ "win32" ] }, + "node_modules/@rollup/rollup-win32-x64-gnu": { + "version": "4.53.3", + "resolved": "https://registry.npmjs.org/@rollup/rollup-win32-x64-gnu/-/rollup-win32-x64-gnu-4.53.3.tgz", + "integrity": "sha512-J9QDiOIZlZLdcot5NXEepDkstocktoVjkaKUtqzgzpt2yWjGlbYiKyp05rWwk4nypbYUNoFAztEgixoLaSETkg==", + "cpu": [ + "x64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "win32" + ] + }, "node_modules/@rollup/rollup-win32-x64-msvc": { - "version": "4.50.2", - "resolved": "https://registry.npmjs.org/@rollup/rollup-win32-x64-msvc/-/rollup-win32-x64-msvc-4.50.2.tgz", - "integrity": "sha512-APwKy6YUhvZaEoHyM+9xqmTpviEI+9eL7LoCH+aLcvWYHJ663qG5zx7WzWZY+a9qkg5JtzcMyJ9z0WtQBMDmgA==", + "version": "4.53.3", + "resolved": "https://registry.npmjs.org/@rollup/rollup-win32-x64-msvc/-/rollup-win32-x64-msvc-4.53.3.tgz", + "integrity": "sha512-UhTd8u31dXadv0MopwGgNOBpUVROFKWVQgAg5N1ESyCz8AuBcMqm4AuTjrwgQKGDfoFuz02EuMRHQIw/frmYKQ==", "cpu": [ "x64" ], @@ -4796,9 +3844,9 @@ } }, "node_modules/@semantic-release/npm/node_modules/execa": { - "version": "9.6.0", - "resolved": "https://registry.npmjs.org/execa/-/execa-9.6.0.tgz", - "integrity": "sha512-jpWzZ1ZhwUmeWRhS7Qv3mhpOhLfwI+uAX4e5fOcXqwMR7EcJ0pj2kV1CVzHVMX/LphnKWD3LObjZCoJ71lKpHw==", + "version": "9.6.1", + "resolved": "https://registry.npmjs.org/execa/-/execa-9.6.1.tgz", + "integrity": "sha512-9Be3ZoN4LmYR90tUoVu2te2BsbzHfhJyfEiAVfz7N5/zv+jduIfLrV2xdQXOHbaD6KgpGdO9PRPM1Y4Q9QkPkA==", "dev": true, "license": "MIT", "dependencies": { @@ -5026,12 +4074,12 @@ } }, "node_modules/@smithy/abort-controller": { - "version": "4.2.4", - "resolved": "https://registry.npmjs.org/@smithy/abort-controller/-/abort-controller-4.2.4.tgz", - "integrity": "sha512-Z4DUr/AkgyFf1bOThW2HwzREagee0sB5ycl+hDiSZOfRLW8ZgrOjDi6g8mHH19yyU5E2A/64W3z6SMIf5XiUSQ==", + "version": "4.2.5", + "resolved": "https://registry.npmjs.org/@smithy/abort-controller/-/abort-controller-4.2.5.tgz", + "integrity": "sha512-j7HwVkBw68YW8UmFRcjZOmssE77Rvk0GWAIN1oFBhsaovQmZWYCIcGa9/pwRB0ExI8Sk9MWNALTjftjHZea7VA==", "license": "Apache-2.0", "dependencies": { - "@smithy/types": "^4.8.1", + "@smithy/types": "^4.9.0", "tslib": "^2.6.2" }, "engines": { @@ -5039,16 +4087,16 @@ } }, "node_modules/@smithy/config-resolver": { - "version": "4.4.2", - "resolved": "https://registry.npmjs.org/@smithy/config-resolver/-/config-resolver-4.4.2.tgz", - "integrity": "sha512-4Jys0ni2tB2VZzgslbEgszZyMdTkPOFGA8g+So/NjR8oy6Qwaq4eSwsrRI+NMtb0Dq4kqCzGUu/nGUx7OM/xfw==", + "version": "4.4.3", + "resolved": "https://registry.npmjs.org/@smithy/config-resolver/-/config-resolver-4.4.3.tgz", + "integrity": "sha512-ezHLe1tKLUxDJo2LHtDuEDyWXolw8WGOR92qb4bQdWq/zKenO5BvctZGrVJBK08zjezSk7bmbKFOXIVyChvDLw==", "license": "Apache-2.0", "dependencies": { - "@smithy/node-config-provider": "^4.3.4", - "@smithy/types": "^4.8.1", + "@smithy/node-config-provider": "^4.3.5", + "@smithy/types": "^4.9.0", "@smithy/util-config-provider": "^4.2.0", - "@smithy/util-endpoints": "^3.2.4", - "@smithy/util-middleware": "^4.2.4", + "@smithy/util-endpoints": "^3.2.5", + "@smithy/util-middleware": "^4.2.5", "tslib": "^2.6.2" }, "engines": { @@ -5056,18 +4104,18 @@ } }, "node_modules/@smithy/core": { - "version": "3.17.2", - "resolved": "https://registry.npmjs.org/@smithy/core/-/core-3.17.2.tgz", - "integrity": "sha512-n3g4Nl1Te+qGPDbNFAYf+smkRVB+JhFsGy9uJXXZQEufoP4u0r+WLh6KvTDolCswaagysDc/afS1yvb2jnj1gQ==", + "version": "3.18.7", + "resolved": "https://registry.npmjs.org/@smithy/core/-/core-3.18.7.tgz", + "integrity": "sha512-axG9MvKhMWOhFbvf5y2DuyTxQueO0dkedY9QC3mAfndLosRI/9LJv8WaL0mw7ubNhsO4IuXX9/9dYGPFvHrqlw==", "license": "Apache-2.0", "dependencies": { - "@smithy/middleware-serde": "^4.2.4", - "@smithy/protocol-http": "^5.3.4", - "@smithy/types": "^4.8.1", + "@smithy/middleware-serde": "^4.2.6", + "@smithy/protocol-http": "^5.3.5", + "@smithy/types": "^4.9.0", "@smithy/util-base64": "^4.3.0", "@smithy/util-body-length-browser": "^4.2.0", - "@smithy/util-middleware": "^4.2.4", - "@smithy/util-stream": "^4.5.5", + "@smithy/util-middleware": "^4.2.5", + "@smithy/util-stream": "^4.5.6", "@smithy/util-utf8": "^4.2.0", "@smithy/uuid": "^1.1.0", "tslib": "^2.6.2" @@ -5077,15 +4125,15 @@ } }, "node_modules/@smithy/credential-provider-imds": { - "version": "4.2.4", - "resolved": "https://registry.npmjs.org/@smithy/credential-provider-imds/-/credential-provider-imds-4.2.4.tgz", - "integrity": "sha512-YVNMjhdz2pVto5bRdux7GMs0x1m0Afz3OcQy/4Yf9DH4fWOtroGH7uLvs7ZmDyoBJzLdegtIPpXrpJOZWvUXdw==", + "version": "4.2.5", + "resolved": "https://registry.npmjs.org/@smithy/credential-provider-imds/-/credential-provider-imds-4.2.5.tgz", + "integrity": "sha512-BZwotjoZWn9+36nimwm/OLIcVe+KYRwzMjfhd4QT7QxPm9WY0HiOV8t/Wlh+HVUif0SBVV7ksq8//hPaBC/okQ==", "license": "Apache-2.0", "dependencies": { - "@smithy/node-config-provider": "^4.3.4", - "@smithy/property-provider": "^4.2.4", - "@smithy/types": "^4.8.1", - "@smithy/url-parser": "^4.2.4", + "@smithy/node-config-provider": "^4.3.5", + "@smithy/property-provider": "^4.2.5", + "@smithy/types": "^4.9.0", + "@smithy/url-parser": "^4.2.5", "tslib": "^2.6.2" }, "engines": { @@ -5093,14 +4141,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 +4156,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 +4170,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 +4183,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 +4197,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": { @@ -5163,14 +4211,14 @@ } }, "node_modules/@smithy/fetch-http-handler": { - "version": "5.3.5", - "resolved": "https://registry.npmjs.org/@smithy/fetch-http-handler/-/fetch-http-handler-5.3.5.tgz", - "integrity": "sha512-mg83SM3FLI8Sa2ooTJbsh5MFfyMTyNRwxqpKHmE0ICRIa66Aodv80DMsTQI02xBLVJ0hckwqTRr5IGAbbWuFLQ==", + "version": "5.3.6", + "resolved": "https://registry.npmjs.org/@smithy/fetch-http-handler/-/fetch-http-handler-5.3.6.tgz", + "integrity": "sha512-3+RG3EA6BBJ/ofZUeTFJA7mHfSYrZtQIrDP9dI8Lf7X6Jbos2jptuLrAAteDiFVrmbEmLSuRG/bUKzfAXk7dhg==", "license": "Apache-2.0", "dependencies": { - "@smithy/protocol-http": "^5.3.4", - "@smithy/querystring-builder": "^4.2.4", - "@smithy/types": "^4.8.1", + "@smithy/protocol-http": "^5.3.5", + "@smithy/querystring-builder": "^4.2.5", + "@smithy/types": "^4.9.0", "@smithy/util-base64": "^4.3.0", "tslib": "^2.6.2" }, @@ -5179,12 +4227,12 @@ } }, "node_modules/@smithy/hash-node": { - "version": "4.2.4", - "resolved": "https://registry.npmjs.org/@smithy/hash-node/-/hash-node-4.2.4.tgz", - "integrity": "sha512-kKU0gVhx/ppVMntvUOZE7WRMFW86HuaxLwvqileBEjL7PoILI8/djoILw3gPQloGVE6O0oOzqafxeNi2KbnUJw==", + "version": "4.2.5", + "resolved": "https://registry.npmjs.org/@smithy/hash-node/-/hash-node-4.2.5.tgz", + "integrity": "sha512-DpYX914YOfA3UDT9CN1BM787PcHfWRBB43fFGCYrZFUH0Jv+5t8yYl+Pd5PW4+QzoGEDvn5d5QIO4j2HyYZQSA==", "license": "Apache-2.0", "dependencies": { - "@smithy/types": "^4.8.1", + "@smithy/types": "^4.9.0", "@smithy/util-buffer-from": "^4.2.0", "@smithy/util-utf8": "^4.2.0", "tslib": "^2.6.2" @@ -5194,12 +4242,12 @@ } }, "node_modules/@smithy/invalid-dependency": { - "version": "4.2.4", - "resolved": "https://registry.npmjs.org/@smithy/invalid-dependency/-/invalid-dependency-4.2.4.tgz", - "integrity": "sha512-z6aDLGiHzsMhbS2MjetlIWopWz//K+mCoPXjW6aLr0mypF+Y7qdEh5TyJ20Onf9FbWHiWl4eC+rITdizpnXqOw==", + "version": "4.2.5", + "resolved": "https://registry.npmjs.org/@smithy/invalid-dependency/-/invalid-dependency-4.2.5.tgz", + "integrity": "sha512-2L2erASEro1WC5nV+plwIMxrTXpvpfzl4e+Nre6vBVRR2HKeGGcvpJyyL3/PpiSg+cJG2KpTmZmq934Olb6e5A==", "license": "Apache-2.0", "dependencies": { - "@smithy/types": "^4.8.1", + "@smithy/types": "^4.9.0", "tslib": "^2.6.2" }, "engines": { @@ -5219,13 +4267,13 @@ } }, "node_modules/@smithy/middleware-content-length": { - "version": "4.2.4", - "resolved": "https://registry.npmjs.org/@smithy/middleware-content-length/-/middleware-content-length-4.2.4.tgz", - "integrity": "sha512-hJRZuFS9UsElX4DJSJfoX4M1qXRH+VFiLMUnhsWvtOOUWRNvvOfDaUSdlNbjwv1IkpVjj/Rd/O59Jl3nhAcxow==", + "version": "4.2.5", + "resolved": "https://registry.npmjs.org/@smithy/middleware-content-length/-/middleware-content-length-4.2.5.tgz", + "integrity": "sha512-Y/RabVa5vbl5FuHYV2vUCwvh/dqzrEY/K2yWPSqvhFUwIY0atLqO4TienjBXakoy4zrKAMCZwg+YEqmH7jaN7A==", "license": "Apache-2.0", "dependencies": { - "@smithy/protocol-http": "^5.3.4", - "@smithy/types": "^4.8.1", + "@smithy/protocol-http": "^5.3.5", + "@smithy/types": "^4.9.0", "tslib": "^2.6.2" }, "engines": { @@ -5233,18 +4281,18 @@ } }, "node_modules/@smithy/middleware-endpoint": { - "version": "4.3.6", - "resolved": "https://registry.npmjs.org/@smithy/middleware-endpoint/-/middleware-endpoint-4.3.6.tgz", - "integrity": "sha512-PXehXofGMFpDqr933rxD8RGOcZ0QBAWtuzTgYRAHAL2BnKawHDEdf/TnGpcmfPJGwonhginaaeJIKluEojiF/w==", + "version": "4.3.14", + "resolved": "https://registry.npmjs.org/@smithy/middleware-endpoint/-/middleware-endpoint-4.3.14.tgz", + "integrity": "sha512-v0q4uTKgBM8dsqGjqsabZQyH85nFaTnFcgpWU1uydKFsdyyMzfvOkNum9G7VK+dOP01vUnoZxIeRiJ6uD0kjIg==", "license": "Apache-2.0", "dependencies": { - "@smithy/core": "^3.17.2", - "@smithy/middleware-serde": "^4.2.4", - "@smithy/node-config-provider": "^4.3.4", - "@smithy/shared-ini-file-loader": "^4.3.4", - "@smithy/types": "^4.8.1", - "@smithy/url-parser": "^4.2.4", - "@smithy/util-middleware": "^4.2.4", + "@smithy/core": "^3.18.7", + "@smithy/middleware-serde": "^4.2.6", + "@smithy/node-config-provider": "^4.3.5", + "@smithy/shared-ini-file-loader": "^4.4.0", + "@smithy/types": "^4.9.0", + "@smithy/url-parser": "^4.2.5", + "@smithy/util-middleware": "^4.2.5", "tslib": "^2.6.2" }, "engines": { @@ -5252,18 +4300,18 @@ } }, "node_modules/@smithy/middleware-retry": { - "version": "4.4.6", - "resolved": "https://registry.npmjs.org/@smithy/middleware-retry/-/middleware-retry-4.4.6.tgz", - "integrity": "sha512-OhLx131znrEDxZPAvH/OYufR9d1nB2CQADyYFN4C3V/NQS7Mg4V6uvxHC/Dr96ZQW8IlHJTJ+vAhKt6oxWRndA==", + "version": "4.4.14", + "resolved": "https://registry.npmjs.org/@smithy/middleware-retry/-/middleware-retry-4.4.14.tgz", + "integrity": "sha512-Z2DG8Ej7FyWG1UA+7HceINtSLzswUgs2np3sZX0YBBxCt+CXG4QUxv88ZDS3+2/1ldW7LqtSY1UO/6VQ1pND8Q==", "license": "Apache-2.0", "dependencies": { - "@smithy/node-config-provider": "^4.3.4", - "@smithy/protocol-http": "^5.3.4", - "@smithy/service-error-classification": "^4.2.4", - "@smithy/smithy-client": "^4.9.2", - "@smithy/types": "^4.8.1", - "@smithy/util-middleware": "^4.2.4", - "@smithy/util-retry": "^4.2.4", + "@smithy/node-config-provider": "^4.3.5", + "@smithy/protocol-http": "^5.3.5", + "@smithy/service-error-classification": "^4.2.5", + "@smithy/smithy-client": "^4.9.10", + "@smithy/types": "^4.9.0", + "@smithy/util-middleware": "^4.2.5", + "@smithy/util-retry": "^4.2.5", "@smithy/uuid": "^1.1.0", "tslib": "^2.6.2" }, @@ -5272,13 +4320,13 @@ } }, "node_modules/@smithy/middleware-serde": { - "version": "4.2.4", - "resolved": "https://registry.npmjs.org/@smithy/middleware-serde/-/middleware-serde-4.2.4.tgz", - "integrity": "sha512-jUr3x2CDhV15TOX2/Uoz4gfgeqLrRoTQbYAuhLS7lcVKNev7FeYSJ1ebEfjk+l9kbb7k7LfzIR/irgxys5ZTOg==", + "version": "4.2.6", + "resolved": "https://registry.npmjs.org/@smithy/middleware-serde/-/middleware-serde-4.2.6.tgz", + "integrity": "sha512-VkLoE/z7e2g8pirwisLz8XJWedUSY8my/qrp81VmAdyrhi94T+riBfwP+AOEEFR9rFTSonC/5D2eWNmFabHyGQ==", "license": "Apache-2.0", "dependencies": { - "@smithy/protocol-http": "^5.3.4", - "@smithy/types": "^4.8.1", + "@smithy/protocol-http": "^5.3.5", + "@smithy/types": "^4.9.0", "tslib": "^2.6.2" }, "engines": { @@ -5286,12 +4334,12 @@ } }, "node_modules/@smithy/middleware-stack": { - "version": "4.2.4", - "resolved": "https://registry.npmjs.org/@smithy/middleware-stack/-/middleware-stack-4.2.4.tgz", - "integrity": "sha512-Gy3TKCOnm9JwpFooldwAboazw+EFYlC+Bb+1QBsSi5xI0W5lX81j/P5+CXvD/9ZjtYKRgxq+kkqd/KOHflzvgA==", + "version": "4.2.5", + "resolved": "https://registry.npmjs.org/@smithy/middleware-stack/-/middleware-stack-4.2.5.tgz", + "integrity": "sha512-bYrutc+neOyWxtZdbB2USbQttZN0mXaOyYLIsaTbJhFsfpXyGWUxJpEuO1rJ8IIJm2qH4+xJT0mxUSsEDTYwdQ==", "license": "Apache-2.0", "dependencies": { - "@smithy/types": "^4.8.1", + "@smithy/types": "^4.9.0", "tslib": "^2.6.2" }, "engines": { @@ -5299,14 +4347,14 @@ } }, "node_modules/@smithy/node-config-provider": { - "version": "4.3.4", - "resolved": "https://registry.npmjs.org/@smithy/node-config-provider/-/node-config-provider-4.3.4.tgz", - "integrity": "sha512-3X3w7qzmo4XNNdPKNS4nbJcGSwiEMsNsRSunMA92S4DJLLIrH5g1AyuOA2XKM9PAPi8mIWfqC+fnfKNsI4KvHw==", + "version": "4.3.5", + "resolved": "https://registry.npmjs.org/@smithy/node-config-provider/-/node-config-provider-4.3.5.tgz", + "integrity": "sha512-UTurh1C4qkVCtqggI36DGbLB2Kv8UlcFdMXDcWMbqVY2uRg0XmT9Pb4Vj6oSQ34eizO1fvR0RnFV4Axw4IrrAg==", "license": "Apache-2.0", "dependencies": { - "@smithy/property-provider": "^4.2.4", - "@smithy/shared-ini-file-loader": "^4.3.4", - "@smithy/types": "^4.8.1", + "@smithy/property-provider": "^4.2.5", + "@smithy/shared-ini-file-loader": "^4.4.0", + "@smithy/types": "^4.9.0", "tslib": "^2.6.2" }, "engines": { @@ -5314,15 +4362,15 @@ } }, "node_modules/@smithy/node-http-handler": { - "version": "4.4.4", - "resolved": "https://registry.npmjs.org/@smithy/node-http-handler/-/node-http-handler-4.4.4.tgz", - "integrity": "sha512-VXHGfzCXLZeKnFp6QXjAdy+U8JF9etfpUXD1FAbzY1GzsFJiDQRQIt2CnMUvUdz3/YaHNqT3RphVWMUpXTIODA==", + "version": "4.4.5", + "resolved": "https://registry.npmjs.org/@smithy/node-http-handler/-/node-http-handler-4.4.5.tgz", + "integrity": "sha512-CMnzM9R2WqlqXQGtIlsHMEZfXKJVTIrqCNoSd/QpAyp+Dw0a1Vps13l6ma1fH8g7zSPNsA59B/kWgeylFuA/lw==", "license": "Apache-2.0", "dependencies": { - "@smithy/abort-controller": "^4.2.4", - "@smithy/protocol-http": "^5.3.4", - "@smithy/querystring-builder": "^4.2.4", - "@smithy/types": "^4.8.1", + "@smithy/abort-controller": "^4.2.5", + "@smithy/protocol-http": "^5.3.5", + "@smithy/querystring-builder": "^4.2.5", + "@smithy/types": "^4.9.0", "tslib": "^2.6.2" }, "engines": { @@ -5330,12 +4378,12 @@ } }, "node_modules/@smithy/property-provider": { - "version": "4.2.4", - "resolved": "https://registry.npmjs.org/@smithy/property-provider/-/property-provider-4.2.4.tgz", - "integrity": "sha512-g2DHo08IhxV5GdY3Cpt/jr0mkTlAD39EJKN27Jb5N8Fb5qt8KG39wVKTXiTRCmHHou7lbXR8nKVU14/aRUf86w==", + "version": "4.2.5", + "resolved": "https://registry.npmjs.org/@smithy/property-provider/-/property-provider-4.2.5.tgz", + "integrity": "sha512-8iLN1XSE1rl4MuxvQ+5OSk/Zb5El7NJZ1td6Tn+8dQQHIjp59Lwl6bd0+nzw6SKm2wSSriH2v/I9LPzUic7EOg==", "license": "Apache-2.0", "dependencies": { - "@smithy/types": "^4.8.1", + "@smithy/types": "^4.9.0", "tslib": "^2.6.2" }, "engines": { @@ -5343,12 +4391,12 @@ } }, "node_modules/@smithy/protocol-http": { - "version": "5.3.4", - "resolved": "https://registry.npmjs.org/@smithy/protocol-http/-/protocol-http-5.3.4.tgz", - "integrity": "sha512-3sfFd2MAzVt0Q/klOmjFi3oIkxczHs0avbwrfn1aBqtc23WqQSmjvk77MBw9WkEQcwbOYIX5/2z4ULj8DuxSsw==", + "version": "5.3.5", + "resolved": "https://registry.npmjs.org/@smithy/protocol-http/-/protocol-http-5.3.5.tgz", + "integrity": "sha512-RlaL+sA0LNMp03bf7XPbFmT5gN+w3besXSWMkA8rcmxLSVfiEXElQi4O2IWwPfxzcHkxqrwBFMbngB8yx/RvaQ==", "license": "Apache-2.0", "dependencies": { - "@smithy/types": "^4.8.1", + "@smithy/types": "^4.9.0", "tslib": "^2.6.2" }, "engines": { @@ -5356,12 +4404,12 @@ } }, "node_modules/@smithy/querystring-builder": { - "version": "4.2.4", - "resolved": "https://registry.npmjs.org/@smithy/querystring-builder/-/querystring-builder-4.2.4.tgz", - "integrity": "sha512-KQ1gFXXC+WsbPFnk7pzskzOpn4s+KheWgO3dzkIEmnb6NskAIGp/dGdbKisTPJdtov28qNDohQrgDUKzXZBLig==", + "version": "4.2.5", + "resolved": "https://registry.npmjs.org/@smithy/querystring-builder/-/querystring-builder-4.2.5.tgz", + "integrity": "sha512-y98otMI1saoajeik2kLfGyRp11e5U/iJYH/wLCh3aTV/XutbGT9nziKGkgCaMD1ghK7p6htHMm6b6scl9JRUWg==", "license": "Apache-2.0", "dependencies": { - "@smithy/types": "^4.8.1", + "@smithy/types": "^4.9.0", "@smithy/util-uri-escape": "^4.2.0", "tslib": "^2.6.2" }, @@ -5370,12 +4418,12 @@ } }, "node_modules/@smithy/querystring-parser": { - "version": "4.2.4", - "resolved": "https://registry.npmjs.org/@smithy/querystring-parser/-/querystring-parser-4.2.4.tgz", - "integrity": "sha512-aHb5cqXZocdzEkZ/CvhVjdw5l4r1aU/9iMEyoKzH4eXMowT6M0YjBpp7W/+XjkBnY8Xh0kVd55GKjnPKlCwinQ==", + "version": "4.2.5", + "resolved": "https://registry.npmjs.org/@smithy/querystring-parser/-/querystring-parser-4.2.5.tgz", + "integrity": "sha512-031WCTdPYgiQRYNPXznHXof2YM0GwL6SeaSyTH/P72M1Vz73TvCNH2Nq8Iu2IEPq9QP2yx0/nrw5YmSeAi/AjQ==", "license": "Apache-2.0", "dependencies": { - "@smithy/types": "^4.8.1", + "@smithy/types": "^4.9.0", "tslib": "^2.6.2" }, "engines": { @@ -5383,24 +4431,24 @@ } }, "node_modules/@smithy/service-error-classification": { - "version": "4.2.4", - "resolved": "https://registry.npmjs.org/@smithy/service-error-classification/-/service-error-classification-4.2.4.tgz", - "integrity": "sha512-fdWuhEx4+jHLGeew9/IvqVU/fxT/ot70tpRGuOLxE3HzZOyKeTQfYeV1oaBXpzi93WOk668hjMuuagJ2/Qs7ng==", + "version": "4.2.5", + "resolved": "https://registry.npmjs.org/@smithy/service-error-classification/-/service-error-classification-4.2.5.tgz", + "integrity": "sha512-8fEvK+WPE3wUAcDvqDQG1Vk3ANLR8Px979te96m84CbKAjBVf25rPYSzb4xU4hlTyho7VhOGnh5i62D/JVF0JQ==", "license": "Apache-2.0", "dependencies": { - "@smithy/types": "^4.8.1" + "@smithy/types": "^4.9.0" }, "engines": { "node": ">=18.0.0" } }, "node_modules/@smithy/shared-ini-file-loader": { - "version": "4.3.4", - "resolved": "https://registry.npmjs.org/@smithy/shared-ini-file-loader/-/shared-ini-file-loader-4.3.4.tgz", - "integrity": "sha512-y5ozxeQ9omVjbnJo9dtTsdXj9BEvGx2X8xvRgKnV+/7wLBuYJQL6dOa/qMY6omyHi7yjt1OA97jZLoVRYi8lxA==", + "version": "4.4.0", + "resolved": "https://registry.npmjs.org/@smithy/shared-ini-file-loader/-/shared-ini-file-loader-4.4.0.tgz", + "integrity": "sha512-5WmZ5+kJgJDjwXXIzr1vDTG+RhF9wzSODQBfkrQ2VVkYALKGvZX1lgVSxEkgicSAFnFhPj5rudJV0zoinqS0bA==", "license": "Apache-2.0", "dependencies": { - "@smithy/types": "^4.8.1", + "@smithy/types": "^4.9.0", "tslib": "^2.6.2" }, "engines": { @@ -5408,16 +4456,16 @@ } }, "node_modules/@smithy/signature-v4": { - "version": "5.3.4", - "resolved": "https://registry.npmjs.org/@smithy/signature-v4/-/signature-v4-5.3.4.tgz", - "integrity": "sha512-ScDCpasxH7w1HXHYbtk3jcivjvdA1VICyAdgvVqKhKKwxi+MTwZEqFw0minE+oZ7F07oF25xh4FGJxgqgShz0A==", + "version": "5.3.5", + "resolved": "https://registry.npmjs.org/@smithy/signature-v4/-/signature-v4-5.3.5.tgz", + "integrity": "sha512-xSUfMu1FT7ccfSXkoLl/QRQBi2rOvi3tiBZU2Tdy3I6cgvZ6SEi9QNey+lqps/sJRnogIS+lq+B1gxxbra2a/w==", "license": "Apache-2.0", "dependencies": { "@smithy/is-array-buffer": "^4.2.0", - "@smithy/protocol-http": "^5.3.4", - "@smithy/types": "^4.8.1", + "@smithy/protocol-http": "^5.3.5", + "@smithy/types": "^4.9.0", "@smithy/util-hex-encoding": "^4.2.0", - "@smithy/util-middleware": "^4.2.4", + "@smithy/util-middleware": "^4.2.5", "@smithy/util-uri-escape": "^4.2.0", "@smithy/util-utf8": "^4.2.0", "tslib": "^2.6.2" @@ -5427,17 +4475,17 @@ } }, "node_modules/@smithy/smithy-client": { - "version": "4.9.2", - "resolved": "https://registry.npmjs.org/@smithy/smithy-client/-/smithy-client-4.9.2.tgz", - "integrity": "sha512-gZU4uAFcdrSi3io8U99Qs/FvVdRxPvIMToi+MFfsy/DN9UqtknJ1ais+2M9yR8e0ASQpNmFYEKeIKVcMjQg3rg==", + "version": "4.9.10", + "resolved": "https://registry.npmjs.org/@smithy/smithy-client/-/smithy-client-4.9.10.tgz", + "integrity": "sha512-Jaoz4Jw1QYHc1EFww/E6gVtNjhoDU+gwRKqXP6C3LKYqqH2UQhP8tMP3+t/ePrhaze7fhLE8vS2q6vVxBANFTQ==", "license": "Apache-2.0", "dependencies": { - "@smithy/core": "^3.17.2", - "@smithy/middleware-endpoint": "^4.3.6", - "@smithy/middleware-stack": "^4.2.4", - "@smithy/protocol-http": "^5.3.4", - "@smithy/types": "^4.8.1", - "@smithy/util-stream": "^4.5.5", + "@smithy/core": "^3.18.7", + "@smithy/middleware-endpoint": "^4.3.14", + "@smithy/middleware-stack": "^4.2.5", + "@smithy/protocol-http": "^5.3.5", + "@smithy/types": "^4.9.0", + "@smithy/util-stream": "^4.5.6", "tslib": "^2.6.2" }, "engines": { @@ -5445,9 +4493,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" @@ -5457,13 +4505,13 @@ } }, "node_modules/@smithy/url-parser": { - "version": "4.2.4", - "resolved": "https://registry.npmjs.org/@smithy/url-parser/-/url-parser-4.2.4.tgz", - "integrity": "sha512-w/N/Iw0/PTwJ36PDqU9PzAwVElo4qXxCC0eCTlUtIz/Z5V/2j/cViMHi0hPukSBHp4DVwvUlUhLgCzqSJ6plrg==", + "version": "4.2.5", + "resolved": "https://registry.npmjs.org/@smithy/url-parser/-/url-parser-4.2.5.tgz", + "integrity": "sha512-VaxMGsilqFnK1CeBX+LXnSuaMx4sTL/6znSZh2829txWieazdVxr54HmiyTsIbpOTLcf5nYpq9lpzmwRdxj6rQ==", "license": "Apache-2.0", "dependencies": { - "@smithy/querystring-parser": "^4.2.4", - "@smithy/types": "^4.8.1", + "@smithy/querystring-parser": "^4.2.5", + "@smithy/types": "^4.9.0", "tslib": "^2.6.2" }, "engines": { @@ -5534,14 +4582,14 @@ } }, "node_modules/@smithy/util-defaults-mode-browser": { - "version": "4.3.5", - "resolved": "https://registry.npmjs.org/@smithy/util-defaults-mode-browser/-/util-defaults-mode-browser-4.3.5.tgz", - "integrity": "sha512-GwaGjv/QLuL/QHQaqhf/maM7+MnRFQQs7Bsl6FlaeK6lm6U7mV5AAnVabw68cIoMl5FQFyKK62u7RWRzWL25OQ==", + "version": "4.3.13", + "resolved": "https://registry.npmjs.org/@smithy/util-defaults-mode-browser/-/util-defaults-mode-browser-4.3.13.tgz", + "integrity": "sha512-hlVLdAGrVfyNei+pKIgqDTxfu/ZI2NSyqj4IDxKd5bIsIqwR/dSlkxlPaYxFiIaDVrBy0he8orsFy+Cz119XvA==", "license": "Apache-2.0", "dependencies": { - "@smithy/property-provider": "^4.2.4", - "@smithy/smithy-client": "^4.9.2", - "@smithy/types": "^4.8.1", + "@smithy/property-provider": "^4.2.5", + "@smithy/smithy-client": "^4.9.10", + "@smithy/types": "^4.9.0", "tslib": "^2.6.2" }, "engines": { @@ -5549,17 +4597,17 @@ } }, "node_modules/@smithy/util-defaults-mode-node": { - "version": "4.2.8", - "resolved": "https://registry.npmjs.org/@smithy/util-defaults-mode-node/-/util-defaults-mode-node-4.2.8.tgz", - "integrity": "sha512-gIoTf9V/nFSIZ0TtgDNLd+Ws59AJvijmMDYrOozoMHPJaG9cMRdqNO50jZTlbM6ydzQYY8L/mQ4tKSw/TB+s6g==", + "version": "4.2.16", + "resolved": "https://registry.npmjs.org/@smithy/util-defaults-mode-node/-/util-defaults-mode-node-4.2.16.tgz", + "integrity": "sha512-F1t22IUiJLHrxW9W1CQ6B9PN+skZ9cqSuzB18Eh06HrJPbjsyZ7ZHecAKw80DQtyGTRcVfeukKaCRYebFwclbg==", "license": "Apache-2.0", "dependencies": { - "@smithy/config-resolver": "^4.4.2", - "@smithy/credential-provider-imds": "^4.2.4", - "@smithy/node-config-provider": "^4.3.4", - "@smithy/property-provider": "^4.2.4", - "@smithy/smithy-client": "^4.9.2", - "@smithy/types": "^4.8.1", + "@smithy/config-resolver": "^4.4.3", + "@smithy/credential-provider-imds": "^4.2.5", + "@smithy/node-config-provider": "^4.3.5", + "@smithy/property-provider": "^4.2.5", + "@smithy/smithy-client": "^4.9.10", + "@smithy/types": "^4.9.0", "tslib": "^2.6.2" }, "engines": { @@ -5567,13 +4615,13 @@ } }, "node_modules/@smithy/util-endpoints": { - "version": "3.2.4", - "resolved": "https://registry.npmjs.org/@smithy/util-endpoints/-/util-endpoints-3.2.4.tgz", - "integrity": "sha512-f+nBDhgYRCmUEDKEQb6q0aCcOTXRDqH5wWaFHJxt4anB4pKHlgGoYP3xtioKXH64e37ANUkzWf6p4Mnv1M5/Vg==", + "version": "3.2.5", + "resolved": "https://registry.npmjs.org/@smithy/util-endpoints/-/util-endpoints-3.2.5.tgz", + "integrity": "sha512-3O63AAWu2cSNQZp+ayl9I3NapW1p1rR5mlVHcF6hAB1dPZUQFfRPYtplWX/3xrzWthPGj5FqB12taJJCfH6s8A==", "license": "Apache-2.0", "dependencies": { - "@smithy/node-config-provider": "^4.3.4", - "@smithy/types": "^4.8.1", + "@smithy/node-config-provider": "^4.3.5", + "@smithy/types": "^4.9.0", "tslib": "^2.6.2" }, "engines": { @@ -5593,12 +4641,12 @@ } }, "node_modules/@smithy/util-middleware": { - "version": "4.2.4", - "resolved": "https://registry.npmjs.org/@smithy/util-middleware/-/util-middleware-4.2.4.tgz", - "integrity": "sha512-fKGQAPAn8sgV0plRikRVo6g6aR0KyKvgzNrPuM74RZKy/wWVzx3BMk+ZWEueyN3L5v5EDg+P582mKU+sH5OAsg==", + "version": "4.2.5", + "resolved": "https://registry.npmjs.org/@smithy/util-middleware/-/util-middleware-4.2.5.tgz", + "integrity": "sha512-6Y3+rvBF7+PZOc40ybeZMcGln6xJGVeY60E7jy9Mv5iKpMJpHgRE6dKy9ScsVxvfAYuEX4Q9a65DQX90KaQ3bA==", "license": "Apache-2.0", "dependencies": { - "@smithy/types": "^4.8.1", + "@smithy/types": "^4.9.0", "tslib": "^2.6.2" }, "engines": { @@ -5606,13 +4654,13 @@ } }, "node_modules/@smithy/util-retry": { - "version": "4.2.4", - "resolved": "https://registry.npmjs.org/@smithy/util-retry/-/util-retry-4.2.4.tgz", - "integrity": "sha512-yQncJmj4dtv/isTXxRb4AamZHy4QFr4ew8GxS6XLWt7sCIxkPxPzINWd7WLISEFPsIan14zrKgvyAF+/yzfwoA==", + "version": "4.2.5", + "resolved": "https://registry.npmjs.org/@smithy/util-retry/-/util-retry-4.2.5.tgz", + "integrity": "sha512-GBj3+EZBbN4NAqJ/7pAhsXdfzdlznOh8PydUijy6FpNIMnHPSMO2/rP4HKu+UFeikJxShERk528oy7GT79YiJg==", "license": "Apache-2.0", "dependencies": { - "@smithy/service-error-classification": "^4.2.4", - "@smithy/types": "^4.8.1", + "@smithy/service-error-classification": "^4.2.5", + "@smithy/types": "^4.9.0", "tslib": "^2.6.2" }, "engines": { @@ -5620,14 +4668,14 @@ } }, "node_modules/@smithy/util-stream": { - "version": "4.5.5", - "resolved": "https://registry.npmjs.org/@smithy/util-stream/-/util-stream-4.5.5.tgz", - "integrity": "sha512-7M5aVFjT+HPilPOKbOmQfCIPchZe4DSBc1wf1+NvHvSoFTiFtauZzT+onZvCj70xhXd0AEmYnZYmdJIuwxOo4w==", + "version": "4.5.6", + "resolved": "https://registry.npmjs.org/@smithy/util-stream/-/util-stream-4.5.6.tgz", + "integrity": "sha512-qWw/UM59TiaFrPevefOZ8CNBKbYEP6wBAIlLqxn3VAIo9rgnTNc4ASbVrqDmhuwI87usnjhdQrxodzAGFFzbRQ==", "license": "Apache-2.0", "dependencies": { - "@smithy/fetch-http-handler": "^5.3.5", - "@smithy/node-http-handler": "^4.4.4", - "@smithy/types": "^4.8.1", + "@smithy/fetch-http-handler": "^5.3.6", + "@smithy/node-http-handler": "^4.4.5", + "@smithy/types": "^4.9.0", "@smithy/util-base64": "^4.3.0", "@smithy/util-buffer-from": "^4.2.0", "@smithy/util-hex-encoding": "^4.2.0", @@ -5676,9 +4724,9 @@ } }, "node_modules/@tsconfig/node10": { - "version": "1.0.11", - "resolved": "https://registry.npmjs.org/@tsconfig/node10/-/node10-1.0.11.tgz", - "integrity": "sha512-DcRjDCujK/kCk/cUe8Xz8ZSpm8mS3mNNpta+jGCA6USEDfktlNvm1+IuZ9eTcDbNk41BHwpHHeW+N1lKCz4zOw==", + "version": "1.0.12", + "resolved": "https://registry.npmjs.org/@tsconfig/node10/-/node10-1.0.12.tgz", + "integrity": "sha512-UCYBaeFvM11aU2y3YPZ//O5Rhj+xKyzy7mvcIoAjASbigy8mHMryP5cK7dgjlz2hWxh1g5pLw084E0a/wlUSFQ==", "dev": true, "license": "MIT" }, @@ -5765,13 +4813,14 @@ } }, "node_modules/@types/chai": { - "version": "5.2.2", - "resolved": "https://registry.npmjs.org/@types/chai/-/chai-5.2.2.tgz", - "integrity": "sha512-8kB30R7Hwqf40JPiKhVzodJs2Qc1ZJ5zuT3uzw5Hq/dhNCl3G3l83jfpdI1e20BP348+fV7VIL/+FxaXkqBmWg==", + "version": "5.2.3", + "resolved": "https://registry.npmjs.org/@types/chai/-/chai-5.2.3.tgz", + "integrity": "sha512-Mw558oeA9fFbv65/y4mHtXDs9bPnFMZAL/jxdPFUpOHHIXX91mcgEHbS5Lahr+pwZFR8A7GQleRWeI6cGFC2UA==", "dev": true, "license": "MIT", "dependencies": { - "@types/deep-eql": "*" + "@types/deep-eql": "*", + "assertion-error": "^2.0.1" } }, "node_modules/@types/deep-eql": { @@ -5844,13 +4893,13 @@ "license": "MIT" }, "node_modules/@types/node": { - "version": "24.5.0", - "resolved": "https://registry.npmjs.org/@types/node/-/node-24.5.0.tgz", - "integrity": "sha512-y1dMvuvJspJiPSDZUQ+WMBvF7dpnEqN4x9DDC9ie5Fs/HUZJA3wFp7EhHoVaKX/iI0cRoECV8X2jL8zi0xrHCg==", + "version": "24.10.1", + "resolved": "https://registry.npmjs.org/@types/node/-/node-24.10.1.tgz", + "integrity": "sha512-GNWcUTRBgIRJD5zj+Tq0fKOJ5XZajIiBroOF0yvj2bSU1WvNdYS/dn9UxwsujGW4JX06dnHyjV2y9rRaybH0iQ==", "dev": true, "license": "MIT", "dependencies": { - "undici-types": "~7.12.0" + "undici-types": "~7.16.0" } }, "node_modules/@types/normalize-package-data": { @@ -5867,16 +4916,10 @@ "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", - "integrity": "sha512-WpxBCKWPLr4xSsHgz511rFJAM+wS28w2zEO1QDNY5zM/S8ok70NNfztH0xwhqKyaK0OHCbN98LDAZuy1ctxDkA==", + "version": "17.0.35", + "resolved": "https://registry.npmjs.org/@types/yargs/-/yargs-17.0.35.tgz", + "integrity": "sha512-qUHkeCyQFxMXg79wQfTtfndEC+N9ZZg76HJftDJp+qH2tV7Gj4OJi7l+PiWwJ+pWtW8GwSmqsDj/oymhrTWXjg==", "dev": true, "license": "MIT", "dependencies": { @@ -6371,7 +5414,6 @@ "version": "6.2.2", "resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-6.2.2.tgz", "integrity": "sha512-Bq3SmSpyFHaWjPk8If9yc6svM8c56dB5BAtW4Qbw5jHTwwXXcTLoRMkpDJp6VL0XzlWaCHTXrkFURMYmD0sLqg==", - "dev": true, "license": "MIT", "engines": { "node": ">=12" @@ -6384,7 +5426,6 @@ "version": "4.3.0", "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.3.0.tgz", "integrity": "sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==", - "dev": true, "license": "MIT", "dependencies": { "color-convert": "^2.0.1" @@ -6461,17 +5502,17 @@ } }, "node_modules/babel-jest": { - "version": "30.1.2", - "resolved": "https://registry.npmjs.org/babel-jest/-/babel-jest-30.1.2.tgz", - "integrity": "sha512-IQCus1rt9kaSh7PQxLYRY5NmkNrNlU2TpabzwV7T2jljnpdHOcmnYYv8QmE04Li4S3a2Lj8/yXyET5pBarPr6g==", + "version": "30.2.0", + "resolved": "https://registry.npmjs.org/babel-jest/-/babel-jest-30.2.0.tgz", + "integrity": "sha512-0YiBEOxWqKkSQWL9nNGGEgndoeL0ZpWrbLMNL5u/Kaxrli3Eaxlt3ZtIDktEvXt4L/R9r3ODr2zKwGM/2BjxVw==", "dev": true, "license": "MIT", "peer": true, "dependencies": { - "@jest/transform": "30.1.2", + "@jest/transform": "30.2.0", "@types/babel__core": "^7.20.5", - "babel-plugin-istanbul": "^7.0.0", - "babel-preset-jest": "30.0.1", + "babel-plugin-istanbul": "^7.0.1", + "babel-preset-jest": "30.2.0", "chalk": "^4.1.2", "graceful-fs": "^4.2.11", "slash": "^3.0.0" @@ -6480,7 +5521,7 @@ "node": "^18.14.0 || ^20.0.0 || ^22.0.0 || >=24.0.0" }, "peerDependencies": { - "@babel/core": "^7.11.0" + "@babel/core": "^7.11.0 || ^8.0.0-0" } }, "node_modules/babel-plugin-istanbul": { @@ -6505,15 +5546,13 @@ } }, "node_modules/babel-plugin-jest-hoist": { - "version": "30.0.1", - "resolved": "https://registry.npmjs.org/babel-plugin-jest-hoist/-/babel-plugin-jest-hoist-30.0.1.tgz", - "integrity": "sha512-zTPME3pI50NsFW8ZBaVIOeAxzEY7XHlmWeXXu9srI+9kNfzCUTy8MFan46xOGZY8NZThMqq+e3qZUKsvXbasnQ==", + "version": "30.2.0", + "resolved": "https://registry.npmjs.org/babel-plugin-jest-hoist/-/babel-plugin-jest-hoist-30.2.0.tgz", + "integrity": "sha512-ftzhzSGMUnOzcCXd6WHdBGMyuwy15Wnn0iyyWGKgBDLxf9/s5ABuraCSpBX2uG0jUg4rqJnxsLc5+oYBqoxVaA==", "dev": true, "license": "MIT", "peer": true, "dependencies": { - "@babel/template": "^7.27.2", - "@babel/types": "^7.27.3", "@types/babel__core": "^7.20.5" }, "engines": { @@ -6549,30 +5588,28 @@ } }, "node_modules/babel-preset-jest": { - "version": "30.0.1", - "resolved": "https://registry.npmjs.org/babel-preset-jest/-/babel-preset-jest-30.0.1.tgz", - "integrity": "sha512-+YHejD5iTWI46cZmcc/YtX4gaKBtdqCHCVfuVinizVpbmyjO3zYmeuyFdfA8duRqQZfgCAMlsfmkVbJ+e2MAJw==", + "version": "30.2.0", + "resolved": "https://registry.npmjs.org/babel-preset-jest/-/babel-preset-jest-30.2.0.tgz", + "integrity": "sha512-US4Z3NOieAQumwFnYdUWKvUKh8+YSnS/gB3t6YBiz0bskpu7Pine8pPCheNxlPEW4wnUkma2a94YuW2q3guvCQ==", "dev": true, "license": "MIT", "peer": true, "dependencies": { - "babel-plugin-jest-hoist": "30.0.1", - "babel-preset-current-node-syntax": "^1.1.0" + "babel-plugin-jest-hoist": "30.2.0", + "babel-preset-current-node-syntax": "^1.2.0" }, "engines": { "node": "^18.14.0 || ^20.0.0 || ^22.0.0 || >=24.0.0" }, "peerDependencies": { - "@babel/core": "^7.11.0" + "@babel/core": "^7.11.0 || ^8.0.0-beta.1" } }, "node_modules/balanced-match": { "version": "1.0.2", "resolved": "https://registry.npmjs.org/balanced-match/-/balanced-match-1.0.2.tgz", "integrity": "sha512-3oSeUO0TMV67hN1AmbXsK4yaqU7tjiHlbxRDZOpH0KW9+CeX4bRAaX0Anxt0tx2MrpRpWwQaPwIlISEJhYU5Pw==", - "dev": true, - "license": "MIT", - "peer": true + "license": "MIT" }, "node_modules/base64-js": { "version": "1.5.1", @@ -6595,9 +5632,9 @@ "license": "MIT" }, "node_modules/baseline-browser-mapping": { - "version": "2.8.4", - "resolved": "https://registry.npmjs.org/baseline-browser-mapping/-/baseline-browser-mapping-2.8.4.tgz", - "integrity": "sha512-L+YvJwGAgwJBV1p6ffpSTa2KRc69EeeYGYjRVWKs0GKrK+LON0GC0gV+rKSNtALEDvMDqkvCFq9r1r94/Gjwxw==", + "version": "2.9.2", + "resolved": "https://registry.npmjs.org/baseline-browser-mapping/-/baseline-browser-mapping-2.9.2.tgz", + "integrity": "sha512-PxSsosKQjI38iXkmb3d0Y32efqyA0uW4s41u4IVBsLlWLhCiYNpH/AfNOVWRqCQBlD8TFJTz6OUWNd4DFJCnmw==", "dev": true, "license": "Apache-2.0", "peer": true, @@ -6629,18 +5666,16 @@ "license": "MIT" }, "node_modules/bowser": { - "version": "2.12.1", - "resolved": "https://registry.npmjs.org/bowser/-/bowser-2.12.1.tgz", - "integrity": "sha512-z4rE2Gxh7tvshQ4hluIT7XcFrgLIQaw9X3A+kTTRdovCz5PMukm/0QC/BKSYPj3omF5Qfypn9O/c5kgpmvYUCw==", + "version": "2.13.1", + "resolved": "https://registry.npmjs.org/bowser/-/bowser-2.13.1.tgz", + "integrity": "sha512-OHawaAbjwx6rqICCKgSG0SAnT05bzd7ppyKLVUITZpANBaaMFBAsaNkto3LoQ31tyFP5kNujE8Cdx85G9VzOkw==", "license": "MIT" }, "node_modules/brace-expansion": { "version": "2.0.2", "resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-2.0.2.tgz", "integrity": "sha512-Jt0vHyM+jmUBqojB7E1NIYadt0vI0Qxjxd2TErW94wDz+E2LAm5vKMXXwg6ZZBTHPuUlDgQHKXvjGBdfcF1ZDQ==", - "dev": true, "license": "MIT", - "peer": true, "dependencies": { "balanced-match": "^1.0.0" } @@ -6659,9 +5694,9 @@ } }, "node_modules/browserslist": { - "version": "4.26.2", - "resolved": "https://registry.npmjs.org/browserslist/-/browserslist-4.26.2.tgz", - "integrity": "sha512-ECFzp6uFOSB+dcZ5BK/IBaGWssbSYBHvuMeMt3MMFyhI0Z8SqGgEkBLARgpRH3hutIgPVsALcMwbDrJqPxQ65A==", + "version": "4.28.1", + "resolved": "https://registry.npmjs.org/browserslist/-/browserslist-4.28.1.tgz", + "integrity": "sha512-ZC5Bd0LgJXgwGqUknZY/vkUQ04r8NXnJZ3yYi4vDmSiZmC/pdSN0NbNRPxZpbtO4uAfDUAFffO8IZoM3Gj8IkA==", "dev": true, "funding": [ { @@ -6680,11 +5715,11 @@ "license": "MIT", "peer": true, "dependencies": { - "baseline-browser-mapping": "^2.8.3", - "caniuse-lite": "^1.0.30001741", - "electron-to-chromium": "^1.5.218", - "node-releases": "^2.0.21", - "update-browserslist-db": "^1.1.3" + "baseline-browser-mapping": "^2.9.0", + "caniuse-lite": "^1.0.30001759", + "electron-to-chromium": "^1.5.263", + "node-releases": "^2.0.27", + "update-browserslist-db": "^1.2.0" }, "bin": { "browserslist": "cli.js" @@ -6763,9 +5798,9 @@ } }, "node_modules/caniuse-lite": { - "version": "1.0.30001743", - "resolved": "https://registry.npmjs.org/caniuse-lite/-/caniuse-lite-1.0.30001743.tgz", - "integrity": "sha512-e6Ojr7RV14Un7dz6ASD0aZDmQPT/A+eZU+nuTNfjqmRrmkmQlnTNWH0SKmqagx9PeW87UVqapSurtAXifmtdmw==", + "version": "1.0.30001759", + "resolved": "https://registry.npmjs.org/caniuse-lite/-/caniuse-lite-1.0.30001759.tgz", + "integrity": "sha512-Pzfx9fOKoKvevQf8oCXoyNRQ5QyxJj+3O0Rqx2V5oxT61KGx8+n6hV/IUyJeifUci2clnmmKVpvtiqRzgiWjSw==", "dev": true, "funding": [ { @@ -6839,9 +5874,9 @@ } }, "node_modules/ci-info": { - "version": "4.3.0", - "resolved": "https://registry.npmjs.org/ci-info/-/ci-info-4.3.0.tgz", - "integrity": "sha512-l+2bNRMiQgcfILUi33labAZYIWlH1kWDp+ecNo5iisRKrbm0xcRyCww71/YU0Fkw0mAFpz9bJayXPjey6vkmaQ==", + "version": "4.3.1", + "resolved": "https://registry.npmjs.org/ci-info/-/ci-info-4.3.1.tgz", + "integrity": "sha512-Wdy2Igu8OcBpI2pZePZ5oWjPC38tmDVx5WKUXKwlLYkA0ozo85sLsLvkBbBn/sZaSCMFOGZJ14fvW9t5/d7kdA==", "dev": true, "funding": [ { @@ -6850,15 +5885,14 @@ } ], "license": "MIT", - "peer": true, "engines": { "node": ">=8" } }, "node_modules/cjs-module-lexer": { - "version": "2.1.0", - "resolved": "https://registry.npmjs.org/cjs-module-lexer/-/cjs-module-lexer-2.1.0.tgz", - "integrity": "sha512-UX0OwmYRYQQetfrLEZeewIFFI+wSTofC+pMBLNuH3RUuu/xzG1oz84UCEDOSoQlN3fZ4+AzmV50ZYvGqkMh9yA==", + "version": "2.1.1", + "resolved": "https://registry.npmjs.org/cjs-module-lexer/-/cjs-module-lexer-2.1.1.tgz", + "integrity": "sha512-+CmxIZ/L2vNcEfvNtLdU0ZQ6mbq3FZnwAP2PPTiKP+1QOoKwlKlPgb8UKV0Dds7QVaMnHm+FwSft2VB0s/SLjQ==", "dev": true, "license": "MIT", "peer": true @@ -7151,9 +6185,9 @@ } }, "node_modules/collect-v8-coverage": { - "version": "1.0.2", - "resolved": "https://registry.npmjs.org/collect-v8-coverage/-/collect-v8-coverage-1.0.2.tgz", - "integrity": "sha512-lHl4d5/ONEbLlJvaJNtsF/Lz+WvB07u2ycqTYbdrq7UypDXailES4valYb2eWiJFxZlVmpGekfqoxQhzyFdT4Q==", + "version": "1.0.3", + "resolved": "https://registry.npmjs.org/collect-v8-coverage/-/collect-v8-coverage-1.0.3.tgz", + "integrity": "sha512-1L5aqIkwPfiodaMgQunkF1zRhNqifHBmtbbbxcr6yVxxBnliw4TDOW6NxpO8DJLgJ16OT+Y4ztZqP6p/FtXnAw==", "dev": true, "license": "MIT", "peer": true @@ -7162,7 +6196,6 @@ "version": "2.0.1", "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz", "integrity": "sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==", - "dev": true, "license": "MIT", "dependencies": { "color-name": "~1.1.4" @@ -7175,7 +6208,6 @@ "version": "1.1.4", "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz", "integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==", - "dev": true, "license": "MIT" }, "node_modules/compare-func": { @@ -7209,9 +6241,9 @@ } }, "node_modules/conventional-changelog-angular": { - "version": "8.0.0", - "resolved": "https://registry.npmjs.org/conventional-changelog-angular/-/conventional-changelog-angular-8.0.0.tgz", - "integrity": "sha512-CLf+zr6St0wIxos4bmaKHRXWAcsCXrJU6F4VdNDrGRK3B8LDLKoX3zuMV5GhtbGkVR/LohZ6MT6im43vZLSjmA==", + "version": "8.1.0", + "resolved": "https://registry.npmjs.org/conventional-changelog-angular/-/conventional-changelog-angular-8.1.0.tgz", + "integrity": "sha512-GGf2Nipn1RUCAktxuVauVr1e3r8QrLP/B0lEUsFktmGqc3ddbQkhoJZHJctVU829U1c6mTSWftrVOCHaL85Q3w==", "dev": true, "license": "ISC", "dependencies": { @@ -7251,9 +6283,9 @@ } }, "node_modules/conventional-commits-parser": { - "version": "6.2.0", - "resolved": "https://registry.npmjs.org/conventional-commits-parser/-/conventional-commits-parser-6.2.0.tgz", - "integrity": "sha512-uLnoLeIW4XaoFtH37qEcg/SXMJmKF4vi7V0H2rnPueg+VEtFGA/asSCNTcq4M/GQ6QmlzchAEtOoDTtKqWeHag==", + "version": "6.2.1", + "resolved": "https://registry.npmjs.org/conventional-commits-parser/-/conventional-commits-parser-6.2.1.tgz", + "integrity": "sha512-20pyHgnO40rvfI0NGF/xiEoFMkXDtkF8FwHvk5BokoFoCuTQRI8vrNCNFWUOfuolKJMm1tPCHc8GgYEtr1XRNA==", "dev": true, "license": "MIT", "dependencies": { @@ -7329,9 +6361,9 @@ "license": "Python-2.0" }, "node_modules/cosmiconfig/node_modules/js-yaml": { - "version": "4.1.0", - "resolved": "https://registry.npmjs.org/js-yaml/-/js-yaml-4.1.0.tgz", - "integrity": "sha512-wpxZs9NoxZaJESJGIZTyDEaYpl0FKSA+FB9aJiyemKhMwkxQg63h4T1KJgUGHpTqPDNRcmmYLugrRjJlBtWvRA==", + "version": "4.1.1", + "resolved": "https://registry.npmjs.org/js-yaml/-/js-yaml-4.1.1.tgz", + "integrity": "sha512-qQKT4zQxXl8lLwBtHMWwaTcGfFOZviOJet3Oy/xmGk2gZH677CJM9EvtfdSkgWcATZhj/55JZ0rmy3myCT5lsA==", "dev": true, "license": "MIT", "dependencies": { @@ -7371,7 +6403,6 @@ "version": "7.0.6", "resolved": "https://registry.npmjs.org/cross-spawn/-/cross-spawn-7.0.6.tgz", "integrity": "sha512-uV2QOWP2nWzsy2aMp8aRibhi9dlzF5Hgh5SHaB9OiTGEyDTiJJyx0uy51QXdyWbtAHNua4XJzUKca3OzKUd3vA==", - "dev": true, "license": "MIT", "dependencies": { "path-key": "^3.1.0", @@ -7567,9 +6598,7 @@ "version": "0.2.0", "resolved": "https://registry.npmjs.org/eastasianwidth/-/eastasianwidth-0.2.0.tgz", "integrity": "sha512-I88TYZWc9XiYHRQ4/3c5rjjfgkjhLyW2luGIheGERbNQ6OY7yTybanSpDXZa8y7VUP9YmDcYa+eyq4ca7iLqWA==", - "dev": true, - "license": "MIT", - "peer": true + "license": "MIT" }, "node_modules/ecdsa-sig-formatter": { "version": "1.0.11", @@ -7581,9 +6610,9 @@ } }, "node_modules/electron-to-chromium": { - "version": "1.5.218", - "resolved": "https://registry.npmjs.org/electron-to-chromium/-/electron-to-chromium-1.5.218.tgz", - "integrity": "sha512-uwwdN0TUHs8u6iRgN8vKeWZMRll4gBkz+QMqdS7DDe49uiK68/UX92lFb61oiFPrpYZNeZIqa4bA7O6Aiasnzg==", + "version": "1.5.265", + "resolved": "https://registry.npmjs.org/electron-to-chromium/-/electron-to-chromium-1.5.265.tgz", + "integrity": "sha512-B7IkLR1/AE+9jR2LtVF/1/6PFhY5TlnEHnlrKmGk7PvkJibg5jr+mLXLLzq3QYl6PA1T/vLDthQPqIPAlS/PPA==", "dev": true, "license": "ISC", "peer": true @@ -7606,9 +6635,7 @@ "version": "9.2.2", "resolved": "https://registry.npmjs.org/emoji-regex/-/emoji-regex-9.2.2.tgz", "integrity": "sha512-L18DaJsXSUk2+42pv8mLs5jJT2hqFkFE4j21wOmgbUqsZ2hL72NsUU785g9RXgo3s0ZNgVl42TiHp3ZtOv/Vyg==", - "dev": true, - "license": "MIT", - "peer": true + "license": "MIT" }, "node_modules/emojilib": { "version": "2.4.0", @@ -7816,9 +6843,9 @@ "license": "MIT" }, "node_modules/esbuild": { - "version": "0.25.9", - "resolved": "https://registry.npmjs.org/esbuild/-/esbuild-0.25.9.tgz", - "integrity": "sha512-CRbODhYyQx3qp7ZEwzxOk4JBqmD/seJrzPa/cGjY1VtIn5E09Oi9/dB4JwctnfZ8Q8iT7rioVv5k/FNT/uf54g==", + "version": "0.25.12", + "resolved": "https://registry.npmjs.org/esbuild/-/esbuild-0.25.12.tgz", + "integrity": "sha512-bbPBYYrtZbkt6Os6FiTLCTFxvq4tt3JKall1vRwshA3fdVztsLAatFaZobhkBC8/BrPetoa0oksYoKXoG4ryJg==", "dev": true, "hasInstallScript": true, "license": "MIT", @@ -7829,32 +6856,32 @@ "node": ">=18" }, "optionalDependencies": { - "@esbuild/aix-ppc64": "0.25.9", - "@esbuild/android-arm": "0.25.9", - "@esbuild/android-arm64": "0.25.9", - "@esbuild/android-x64": "0.25.9", - "@esbuild/darwin-arm64": "0.25.9", - "@esbuild/darwin-x64": "0.25.9", - "@esbuild/freebsd-arm64": "0.25.9", - "@esbuild/freebsd-x64": "0.25.9", - "@esbuild/linux-arm": "0.25.9", - "@esbuild/linux-arm64": "0.25.9", - "@esbuild/linux-ia32": "0.25.9", - "@esbuild/linux-loong64": "0.25.9", - "@esbuild/linux-mips64el": "0.25.9", - "@esbuild/linux-ppc64": "0.25.9", - "@esbuild/linux-riscv64": "0.25.9", - "@esbuild/linux-s390x": "0.25.9", - "@esbuild/linux-x64": "0.25.9", - "@esbuild/netbsd-arm64": "0.25.9", - "@esbuild/netbsd-x64": "0.25.9", - "@esbuild/openbsd-arm64": "0.25.9", - "@esbuild/openbsd-x64": "0.25.9", - "@esbuild/openharmony-arm64": "0.25.9", - "@esbuild/sunos-x64": "0.25.9", - "@esbuild/win32-arm64": "0.25.9", - "@esbuild/win32-ia32": "0.25.9", - "@esbuild/win32-x64": "0.25.9" + "@esbuild/aix-ppc64": "0.25.12", + "@esbuild/android-arm": "0.25.12", + "@esbuild/android-arm64": "0.25.12", + "@esbuild/android-x64": "0.25.12", + "@esbuild/darwin-arm64": "0.25.12", + "@esbuild/darwin-x64": "0.25.12", + "@esbuild/freebsd-arm64": "0.25.12", + "@esbuild/freebsd-x64": "0.25.12", + "@esbuild/linux-arm": "0.25.12", + "@esbuild/linux-arm64": "0.25.12", + "@esbuild/linux-ia32": "0.25.12", + "@esbuild/linux-loong64": "0.25.12", + "@esbuild/linux-mips64el": "0.25.12", + "@esbuild/linux-ppc64": "0.25.12", + "@esbuild/linux-riscv64": "0.25.12", + "@esbuild/linux-s390x": "0.25.12", + "@esbuild/linux-x64": "0.25.12", + "@esbuild/netbsd-arm64": "0.25.12", + "@esbuild/netbsd-x64": "0.25.12", + "@esbuild/openbsd-arm64": "0.25.12", + "@esbuild/openbsd-x64": "0.25.12", + "@esbuild/openharmony-arm64": "0.25.12", + "@esbuild/sunos-x64": "0.25.12", + "@esbuild/win32-arm64": "0.25.12", + "@esbuild/win32-ia32": "0.25.12", + "@esbuild/win32-x64": "0.25.12" } }, "node_modules/escalade": { @@ -8157,9 +7184,7 @@ "version": "3.3.1", "resolved": "https://registry.npmjs.org/foreground-child/-/foreground-child-3.3.1.tgz", "integrity": "sha512-gIXjKqtFuWEgzFRJA9WCQeSJLZDjgJUOMCMzxtvFq/37KojM1BFGufqsCy0r4qSQmYLsZYMeyRqzIWOMup03sw==", - "dev": true, "license": "ISC", - "peer": true, "dependencies": { "cross-spawn": "^7.0.6", "signal-exit": "^4.0.1" @@ -8175,9 +7200,7 @@ "version": "4.1.0", "resolved": "https://registry.npmjs.org/signal-exit/-/signal-exit-4.1.0.tgz", "integrity": "sha512-bzyZ1e88w9O1iNJbKnOlvYTrWPDl46O1bG0D3XInv+9tkPrxrN8jUUTiFlDkkmKWgn1M6CfIA13SuGqOa9Korw==", - "dev": true, "license": "ISC", - "peer": true, "engines": { "node": ">=14" }, @@ -8260,14 +7283,15 @@ } }, "node_modules/gaxios": { - "version": "7.1.1", - "resolved": "https://registry.npmjs.org/gaxios/-/gaxios-7.1.1.tgz", - "integrity": "sha512-Odju3uBUJyVCkW64nLD4wKLhbh93bh6vIg/ZIXkWiLPBrdgtc65+tls/qml+un3pr6JqYVFDZbbmLDQT68rTOQ==", + "version": "7.1.3", + "resolved": "https://registry.npmjs.org/gaxios/-/gaxios-7.1.3.tgz", + "integrity": "sha512-YGGyuEdVIjqxkxVH1pUTMY/XtmmsApXrCVv5EU25iX6inEPbV+VakJfLealkBtJN69AQmh1eGOdCl9Sm1UP6XQ==", "license": "Apache-2.0", "dependencies": { "extend": "^3.0.2", "https-proxy-agent": "^7.0.1", - "node-fetch": "^3.3.2" + "node-fetch": "^3.3.2", + "rimraf": "^5.0.1" }, "engines": { "node": ">=18" @@ -8348,12 +7372,10 @@ } }, "node_modules/glob": { - "version": "10.4.5", - "resolved": "https://registry.npmjs.org/glob/-/glob-10.4.5.tgz", - "integrity": "sha512-7Bv8RF0k6xjo7d4A/PxYLbUCfb6c+Vpd2/mB2yRDlew7Jb5hEXiCD9ibfO7wpk8i4sevK6DFny9h7EYbM3/sHg==", - "dev": true, + "version": "10.5.0", + "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", @@ -8614,7 +7636,6 @@ "integrity": "sha512-JmXMZ6wuvDmLiHEml9ykzqO6lwFbof0GG4IkcGaENdCRDDmMVnny7s5HsIgHCbaq0w2MyPhDqkhTUgS2LU2PHA==", "dev": true, "license": "MIT", - "peer": true, "engines": { "node": ">=0.8.19" } @@ -8630,9 +7651,9 @@ } }, "node_modules/index-to-position": { - "version": "1.1.0", - "resolved": "https://registry.npmjs.org/index-to-position/-/index-to-position-1.1.0.tgz", - "integrity": "sha512-XPdx9Dq4t9Qk1mTMbWONJqU7boCoumEH7fRET37HX5+khDUl3J2W6PdALxhILYlIYx2amlwYcRPp28p0tSiojg==", + "version": "1.2.0", + "resolved": "https://registry.npmjs.org/index-to-position/-/index-to-position-1.2.0.tgz", + "integrity": "sha512-Yg7+ztRkqslMAS2iFaU+Oa4KTSidr63OsFGlOrJoW981kIYO3CGCS3wA95P1mUi/IVSJkn0D479KTJpVpvFNuw==", "dev": true, "license": "MIT", "engines": { @@ -8697,7 +7718,6 @@ "version": "3.0.0", "resolved": "https://registry.npmjs.org/is-fullwidth-code-point/-/is-fullwidth-code-point-3.0.0.tgz", "integrity": "sha512-zymm5+u+sCsSWyD9qNaejV3DFvhCKclKdizYaJUuHA83RLjb7nSuGnddCHGv0hk+KY7BMAlsWeK4Ueg6EV6XQg==", - "dev": true, "license": "MIT", "engines": { "node": ">=8" @@ -8784,7 +7804,6 @@ "version": "2.0.0", "resolved": "https://registry.npmjs.org/isexe/-/isexe-2.0.0.tgz", "integrity": "sha512-RHxMLp9lnKHGHRng9QFhRCMbYAcVpn69smSGcq3f36xjgVVWThj4qqLbTLlq7Ssj8B+fIQ1EuCEGI2lKsyQeIw==", - "dev": true, "license": "ISC" }, "node_modules/issue-parser": { @@ -8884,9 +7903,7 @@ "version": "3.4.3", "resolved": "https://registry.npmjs.org/jackspeak/-/jackspeak-3.4.3.tgz", "integrity": "sha512-OGlZQpz2yfahA/Rd1Y8Cd9SIEsqvXkLVoSw/cgwhnhFMDbsQFeZYoJJ7bIZBS9BcamUW96asq/npPWugM+RQBw==", - "dev": true, "license": "BlueOak-1.0.0", - "peer": true, "dependencies": { "@isaacs/cliui": "^8.0.2" }, @@ -8908,17 +7925,17 @@ } }, "node_modules/jest": { - "version": "30.1.3", - "resolved": "https://registry.npmjs.org/jest/-/jest-30.1.3.tgz", - "integrity": "sha512-Ry+p2+NLk6u8Agh5yVqELfUJvRfV51hhVBRIB5yZPY7mU0DGBmOuFG5GebZbMbm86cdQNK0fhJuDX8/1YorISQ==", + "version": "30.2.0", + "resolved": "https://registry.npmjs.org/jest/-/jest-30.2.0.tgz", + "integrity": "sha512-F26gjC0yWN8uAA5m5Ss8ZQf5nDHWGlN/xWZIh8S5SRbsEKBovwZhxGd6LJlbZYxBgCYOtreSUyb8hpXyGC5O4A==", "dev": true, "license": "MIT", "peer": true, "dependencies": { - "@jest/core": "30.1.3", - "@jest/types": "30.0.5", + "@jest/core": "30.2.0", + "@jest/types": "30.2.0", "import-local": "^3.2.0", - "jest-cli": "30.1.3" + "jest-cli": "30.2.0" }, "bin": { "jest": "bin/jest.js" @@ -8936,15 +7953,15 @@ } }, "node_modules/jest-changed-files": { - "version": "30.0.5", - "resolved": "https://registry.npmjs.org/jest-changed-files/-/jest-changed-files-30.0.5.tgz", - "integrity": "sha512-bGl2Ntdx0eAwXuGpdLdVYVr5YQHnSZlQ0y9HVDu565lCUAe9sj6JOtBbMmBBikGIegne9piDDIOeiLVoqTkz4A==", + "version": "30.2.0", + "resolved": "https://registry.npmjs.org/jest-changed-files/-/jest-changed-files-30.2.0.tgz", + "integrity": "sha512-L8lR1ChrRnSdfeOvTrwZMlnWV8G/LLjQ0nG9MBclwWZidA2N5FviRki0Bvh20WRMOX31/JYvzdqTJrk5oBdydQ==", "dev": true, "license": "MIT", "peer": true, "dependencies": { "execa": "^5.1.1", - "jest-util": "30.0.5", + "jest-util": "30.2.0", "p-limit": "^3.1.0" }, "engines": { @@ -8952,14 +7969,14 @@ } }, "node_modules/jest-changed-files/node_modules/jest-util": { - "version": "30.0.5", - "resolved": "https://registry.npmjs.org/jest-util/-/jest-util-30.0.5.tgz", - "integrity": "sha512-pvyPWssDZR0FlfMxCBoc0tvM8iUEskaRFALUtGQYzVEAqisAztmy+R8LnU14KT4XA0H/a5HMVTXat1jLne010g==", + "version": "30.2.0", + "resolved": "https://registry.npmjs.org/jest-util/-/jest-util-30.2.0.tgz", + "integrity": "sha512-QKNsM0o3Xe6ISQU869e+DhG+4CK/48aHYdJZGlFQVTjnbvgpcKyxpzk29fGiO7i/J8VENZ+d2iGnSsvmuHywlA==", "dev": true, "license": "MIT", "peer": true, "dependencies": { - "@jest/types": "30.0.5", + "@jest/types": "30.2.0", "@types/node": "*", "chalk": "^4.1.2", "ci-info": "^4.2.0", @@ -8985,30 +8002,30 @@ } }, "node_modules/jest-circus": { - "version": "30.1.3", - "resolved": "https://registry.npmjs.org/jest-circus/-/jest-circus-30.1.3.tgz", - "integrity": "sha512-Yf3dnhRON2GJT4RYzM89t/EXIWNxKTpWTL9BfF3+geFetWP4XSvJjiU1vrWplOiUkmq8cHLiwuhz+XuUp9DscA==", + "version": "30.2.0", + "resolved": "https://registry.npmjs.org/jest-circus/-/jest-circus-30.2.0.tgz", + "integrity": "sha512-Fh0096NC3ZkFx05EP2OXCxJAREVxj1BcW/i6EWqqymcgYKWjyyDpral3fMxVcHXg6oZM7iULer9wGRFvfpl+Tg==", "dev": true, "license": "MIT", "peer": true, "dependencies": { - "@jest/environment": "30.1.2", - "@jest/expect": "30.1.2", - "@jest/test-result": "30.1.3", - "@jest/types": "30.0.5", + "@jest/environment": "30.2.0", + "@jest/expect": "30.2.0", + "@jest/test-result": "30.2.0", + "@jest/types": "30.2.0", "@types/node": "*", "chalk": "^4.1.2", "co": "^4.6.0", "dedent": "^1.6.0", "is-generator-fn": "^2.1.0", - "jest-each": "30.1.0", - "jest-matcher-utils": "30.1.2", - "jest-message-util": "30.1.0", - "jest-runtime": "30.1.3", - "jest-snapshot": "30.1.2", - "jest-util": "30.0.5", + "jest-each": "30.2.0", + "jest-matcher-utils": "30.2.0", + "jest-message-util": "30.2.0", + "jest-runtime": "30.2.0", + "jest-snapshot": "30.2.0", + "jest-util": "30.2.0", "p-limit": "^3.1.0", - "pretty-format": "30.0.5", + "pretty-format": "30.2.0", "pure-rand": "^7.0.0", "slash": "^3.0.0", "stack-utils": "^2.0.6" @@ -9032,9 +8049,9 @@ } }, "node_modules/jest-circus/node_modules/jest-diff": { - "version": "30.1.2", - "resolved": "https://registry.npmjs.org/jest-diff/-/jest-diff-30.1.2.tgz", - "integrity": "sha512-4+prq+9J61mOVXCa4Qp8ZjavdxzrWQXrI80GNxP8f4tkI2syPuPrJgdRPZRrfUTRvIoUwcmNLbqEJy9W800+NQ==", + "version": "30.2.0", + "resolved": "https://registry.npmjs.org/jest-diff/-/jest-diff-30.2.0.tgz", + "integrity": "sha512-dQHFo3Pt4/NLlG5z4PxZ/3yZTZ1C7s9hveiOj+GCN+uT109NC2QgsoVZsVOAvbJ3RgKkvyLGXZV9+piDpWbm6A==", "dev": true, "license": "MIT", "peer": true, @@ -9042,44 +8059,44 @@ "@jest/diff-sequences": "30.0.1", "@jest/get-type": "30.1.0", "chalk": "^4.1.2", - "pretty-format": "30.0.5" + "pretty-format": "30.2.0" }, "engines": { "node": "^18.14.0 || ^20.0.0 || ^22.0.0 || >=24.0.0" } }, "node_modules/jest-circus/node_modules/jest-matcher-utils": { - "version": "30.1.2", - "resolved": "https://registry.npmjs.org/jest-matcher-utils/-/jest-matcher-utils-30.1.2.tgz", - "integrity": "sha512-7ai16hy4rSbDjvPTuUhuV8nyPBd6EX34HkBsBcBX2lENCuAQ0qKCPb/+lt8OSWUa9WWmGYLy41PrEzkwRwoGZQ==", + "version": "30.2.0", + "resolved": "https://registry.npmjs.org/jest-matcher-utils/-/jest-matcher-utils-30.2.0.tgz", + "integrity": "sha512-dQ94Nq4dbzmUWkQ0ANAWS9tBRfqCrn0bV9AMYdOi/MHW726xn7eQmMeRTpX2ViC00bpNaWXq+7o4lIQ3AX13Hg==", "dev": true, "license": "MIT", "peer": true, "dependencies": { "@jest/get-type": "30.1.0", "chalk": "^4.1.2", - "jest-diff": "30.1.2", - "pretty-format": "30.0.5" + "jest-diff": "30.2.0", + "pretty-format": "30.2.0" }, "engines": { "node": "^18.14.0 || ^20.0.0 || ^22.0.0 || >=24.0.0" } }, "node_modules/jest-circus/node_modules/jest-message-util": { - "version": "30.1.0", - "resolved": "https://registry.npmjs.org/jest-message-util/-/jest-message-util-30.1.0.tgz", - "integrity": "sha512-HizKDGG98cYkWmaLUHChq4iN+oCENohQLb7Z5guBPumYs+/etonmNFlg1Ps6yN9LTPyZn+M+b/9BbnHx3WTMDg==", + "version": "30.2.0", + "resolved": "https://registry.npmjs.org/jest-message-util/-/jest-message-util-30.2.0.tgz", + "integrity": "sha512-y4DKFLZ2y6DxTWD4cDe07RglV88ZiNEdlRfGtqahfbIjfsw1nMCPx49Uev4IA/hWn3sDKyAnSPwoYSsAEdcimw==", "dev": true, "license": "MIT", "peer": true, "dependencies": { "@babel/code-frame": "^7.27.1", - "@jest/types": "30.0.5", + "@jest/types": "30.2.0", "@types/stack-utils": "^2.0.3", "chalk": "^4.1.2", "graceful-fs": "^4.2.11", "micromatch": "^4.0.8", - "pretty-format": "30.0.5", + "pretty-format": "30.2.0", "slash": "^3.0.0", "stack-utils": "^2.0.6" }, @@ -9088,14 +8105,14 @@ } }, "node_modules/jest-circus/node_modules/jest-util": { - "version": "30.0.5", - "resolved": "https://registry.npmjs.org/jest-util/-/jest-util-30.0.5.tgz", - "integrity": "sha512-pvyPWssDZR0FlfMxCBoc0tvM8iUEskaRFALUtGQYzVEAqisAztmy+R8LnU14KT4XA0H/a5HMVTXat1jLne010g==", + "version": "30.2.0", + "resolved": "https://registry.npmjs.org/jest-util/-/jest-util-30.2.0.tgz", + "integrity": "sha512-QKNsM0o3Xe6ISQU869e+DhG+4CK/48aHYdJZGlFQVTjnbvgpcKyxpzk29fGiO7i/J8VENZ+d2iGnSsvmuHywlA==", "dev": true, "license": "MIT", "peer": true, "dependencies": { - "@jest/types": "30.0.5", + "@jest/types": "30.2.0", "@types/node": "*", "chalk": "^4.1.2", "ci-info": "^4.2.0", @@ -9121,9 +8138,9 @@ } }, "node_modules/jest-circus/node_modules/pretty-format": { - "version": "30.0.5", - "resolved": "https://registry.npmjs.org/pretty-format/-/pretty-format-30.0.5.tgz", - "integrity": "sha512-D1tKtYvByrBkFLe2wHJl2bwMJIiT8rW+XA+TiataH79/FszLQMrpGEvzUVkzPau7OCO0Qnrhpe87PqtOAIB8Yw==", + "version": "30.2.0", + "resolved": "https://registry.npmjs.org/pretty-format/-/pretty-format-30.2.0.tgz", + "integrity": "sha512-9uBdv/B4EefsuAL+pWqueZyZS2Ba+LxfFeQ9DN14HU4bN8bhaxKdkpjpB6fs9+pSjIBu+FXQHImEg8j/Lw0+vA==", "dev": true, "license": "MIT", "peer": true, @@ -9137,22 +8154,22 @@ } }, "node_modules/jest-cli": { - "version": "30.1.3", - "resolved": "https://registry.npmjs.org/jest-cli/-/jest-cli-30.1.3.tgz", - "integrity": "sha512-G8E2Ol3OKch1DEeIBl41NP7OiC6LBhfg25Btv+idcusmoUSpqUkbrneMqbW9lVpI/rCKb/uETidb7DNteheuAQ==", + "version": "30.2.0", + "resolved": "https://registry.npmjs.org/jest-cli/-/jest-cli-30.2.0.tgz", + "integrity": "sha512-Os9ukIvADX/A9sLt6Zse3+nmHtHaE6hqOsjQtNiugFTbKRHYIYtZXNGNK9NChseXy7djFPjndX1tL0sCTlfpAA==", "dev": true, "license": "MIT", "peer": true, "dependencies": { - "@jest/core": "30.1.3", - "@jest/test-result": "30.1.3", - "@jest/types": "30.0.5", + "@jest/core": "30.2.0", + "@jest/test-result": "30.2.0", + "@jest/types": "30.2.0", "chalk": "^4.1.2", "exit-x": "^0.2.2", "import-local": "^3.2.0", - "jest-config": "30.1.3", - "jest-util": "30.0.5", - "jest-validate": "30.1.0", + "jest-config": "30.2.0", + "jest-util": "30.2.0", + "jest-validate": "30.2.0", "yargs": "^17.7.2" }, "bin": { @@ -9171,14 +8188,14 @@ } }, "node_modules/jest-cli/node_modules/jest-util": { - "version": "30.0.5", - "resolved": "https://registry.npmjs.org/jest-util/-/jest-util-30.0.5.tgz", - "integrity": "sha512-pvyPWssDZR0FlfMxCBoc0tvM8iUEskaRFALUtGQYzVEAqisAztmy+R8LnU14KT4XA0H/a5HMVTXat1jLne010g==", + "version": "30.2.0", + "resolved": "https://registry.npmjs.org/jest-util/-/jest-util-30.2.0.tgz", + "integrity": "sha512-QKNsM0o3Xe6ISQU869e+DhG+4CK/48aHYdJZGlFQVTjnbvgpcKyxpzk29fGiO7i/J8VENZ+d2iGnSsvmuHywlA==", "dev": true, "license": "MIT", "peer": true, "dependencies": { - "@jest/types": "30.0.5", + "@jest/types": "30.2.0", "@types/node": "*", "chalk": "^4.1.2", "ci-info": "^4.2.0", @@ -9204,9 +8221,9 @@ } }, "node_modules/jest-config": { - "version": "30.1.3", - "resolved": "https://registry.npmjs.org/jest-config/-/jest-config-30.1.3.tgz", - "integrity": "sha512-M/f7gqdQEPgZNA181Myz+GXCe8jXcJsGjCMXUzRj22FIXsZOyHNte84e0exntOvdPaeh9tA0w+B8qlP2fAezfw==", + "version": "30.2.0", + "resolved": "https://registry.npmjs.org/jest-config/-/jest-config-30.2.0.tgz", + "integrity": "sha512-g4WkyzFQVWHtu6uqGmQR4CQxz/CH3yDSlhzXMWzNjDx843gYjReZnMRanjRCq5XZFuQrGDxgUaiYWE8BRfVckA==", "dev": true, "license": "MIT", "peer": true, @@ -9214,25 +8231,25 @@ "@babel/core": "^7.27.4", "@jest/get-type": "30.1.0", "@jest/pattern": "30.0.1", - "@jest/test-sequencer": "30.1.3", - "@jest/types": "30.0.5", - "babel-jest": "30.1.2", + "@jest/test-sequencer": "30.2.0", + "@jest/types": "30.2.0", + "babel-jest": "30.2.0", "chalk": "^4.1.2", "ci-info": "^4.2.0", "deepmerge": "^4.3.1", "glob": "^10.3.10", "graceful-fs": "^4.2.11", - "jest-circus": "30.1.3", - "jest-docblock": "30.0.1", - "jest-environment-node": "30.1.2", + "jest-circus": "30.2.0", + "jest-docblock": "30.2.0", + "jest-environment-node": "30.2.0", "jest-regex-util": "30.0.1", - "jest-resolve": "30.1.3", - "jest-runner": "30.1.3", - "jest-util": "30.0.5", - "jest-validate": "30.1.0", + "jest-resolve": "30.2.0", + "jest-runner": "30.2.0", + "jest-util": "30.2.0", + "jest-validate": "30.2.0", "micromatch": "^4.0.8", "parse-json": "^5.2.0", - "pretty-format": "30.0.5", + "pretty-format": "30.2.0", "slash": "^3.0.0", "strip-json-comments": "^3.1.1" }, @@ -9271,14 +8288,14 @@ } }, "node_modules/jest-config/node_modules/jest-util": { - "version": "30.0.5", - "resolved": "https://registry.npmjs.org/jest-util/-/jest-util-30.0.5.tgz", - "integrity": "sha512-pvyPWssDZR0FlfMxCBoc0tvM8iUEskaRFALUtGQYzVEAqisAztmy+R8LnU14KT4XA0H/a5HMVTXat1jLne010g==", + "version": "30.2.0", + "resolved": "https://registry.npmjs.org/jest-util/-/jest-util-30.2.0.tgz", + "integrity": "sha512-QKNsM0o3Xe6ISQU869e+DhG+4CK/48aHYdJZGlFQVTjnbvgpcKyxpzk29fGiO7i/J8VENZ+d2iGnSsvmuHywlA==", "dev": true, "license": "MIT", "peer": true, "dependencies": { - "@jest/types": "30.0.5", + "@jest/types": "30.2.0", "@types/node": "*", "chalk": "^4.1.2", "ci-info": "^4.2.0", @@ -9304,9 +8321,9 @@ } }, "node_modules/jest-config/node_modules/pretty-format": { - "version": "30.0.5", - "resolved": "https://registry.npmjs.org/pretty-format/-/pretty-format-30.0.5.tgz", - "integrity": "sha512-D1tKtYvByrBkFLe2wHJl2bwMJIiT8rW+XA+TiataH79/FszLQMrpGEvzUVkzPau7OCO0Qnrhpe87PqtOAIB8Yw==", + "version": "30.2.0", + "resolved": "https://registry.npmjs.org/pretty-format/-/pretty-format-30.2.0.tgz", + "integrity": "sha512-9uBdv/B4EefsuAL+pWqueZyZS2Ba+LxfFeQ9DN14HU4bN8bhaxKdkpjpB6fs9+pSjIBu+FXQHImEg8j/Lw0+vA==", "dev": true, "license": "MIT", "peer": true, @@ -9336,9 +8353,9 @@ } }, "node_modules/jest-docblock": { - "version": "30.0.1", - "resolved": "https://registry.npmjs.org/jest-docblock/-/jest-docblock-30.0.1.tgz", - "integrity": "sha512-/vF78qn3DYphAaIc3jy4gA7XSAz167n9Bm/wn/1XhTLW7tTBIzXtCJpb/vcmc73NIIeeohCbdL94JasyXUZsGA==", + "version": "30.2.0", + "resolved": "https://registry.npmjs.org/jest-docblock/-/jest-docblock-30.2.0.tgz", + "integrity": "sha512-tR/FFgZKS1CXluOQzZvNH3+0z9jXr3ldGSD8bhyuxvlVUwbeLOGynkunvlTMxchC5urrKndYiwCFC0DLVjpOCA==", "dev": true, "license": "MIT", "peer": true, @@ -9350,18 +8367,18 @@ } }, "node_modules/jest-each": { - "version": "30.1.0", - "resolved": "https://registry.npmjs.org/jest-each/-/jest-each-30.1.0.tgz", - "integrity": "sha512-A+9FKzxPluqogNahpCv04UJvcZ9B3HamqpDNWNKDjtxVRYB8xbZLFuCr8JAJFpNp83CA0anGQFlpQna9Me+/tQ==", + "version": "30.2.0", + "resolved": "https://registry.npmjs.org/jest-each/-/jest-each-30.2.0.tgz", + "integrity": "sha512-lpWlJlM7bCUf1mfmuqTA8+j2lNURW9eNafOy99knBM01i5CQeY5UH1vZjgT9071nDJac1M4XsbyI44oNOdhlDQ==", "dev": true, "license": "MIT", "peer": true, "dependencies": { "@jest/get-type": "30.1.0", - "@jest/types": "30.0.5", + "@jest/types": "30.2.0", "chalk": "^4.1.2", - "jest-util": "30.0.5", - "pretty-format": "30.0.5" + "jest-util": "30.2.0", + "pretty-format": "30.2.0" }, "engines": { "node": "^18.14.0 || ^20.0.0 || ^22.0.0 || >=24.0.0" @@ -9382,14 +8399,14 @@ } }, "node_modules/jest-each/node_modules/jest-util": { - "version": "30.0.5", - "resolved": "https://registry.npmjs.org/jest-util/-/jest-util-30.0.5.tgz", - "integrity": "sha512-pvyPWssDZR0FlfMxCBoc0tvM8iUEskaRFALUtGQYzVEAqisAztmy+R8LnU14KT4XA0H/a5HMVTXat1jLne010g==", + "version": "30.2.0", + "resolved": "https://registry.npmjs.org/jest-util/-/jest-util-30.2.0.tgz", + "integrity": "sha512-QKNsM0o3Xe6ISQU869e+DhG+4CK/48aHYdJZGlFQVTjnbvgpcKyxpzk29fGiO7i/J8VENZ+d2iGnSsvmuHywlA==", "dev": true, "license": "MIT", "peer": true, "dependencies": { - "@jest/types": "30.0.5", + "@jest/types": "30.2.0", "@types/node": "*", "chalk": "^4.1.2", "ci-info": "^4.2.0", @@ -9415,9 +8432,9 @@ } }, "node_modules/jest-each/node_modules/pretty-format": { - "version": "30.0.5", - "resolved": "https://registry.npmjs.org/pretty-format/-/pretty-format-30.0.5.tgz", - "integrity": "sha512-D1tKtYvByrBkFLe2wHJl2bwMJIiT8rW+XA+TiataH79/FszLQMrpGEvzUVkzPau7OCO0Qnrhpe87PqtOAIB8Yw==", + "version": "30.2.0", + "resolved": "https://registry.npmjs.org/pretty-format/-/pretty-format-30.2.0.tgz", + "integrity": "sha512-9uBdv/B4EefsuAL+pWqueZyZS2Ba+LxfFeQ9DN14HU4bN8bhaxKdkpjpB6fs9+pSjIBu+FXQHImEg8j/Lw0+vA==", "dev": true, "license": "MIT", "peer": true, @@ -9431,34 +8448,34 @@ } }, "node_modules/jest-environment-node": { - "version": "30.1.2", - "resolved": "https://registry.npmjs.org/jest-environment-node/-/jest-environment-node-30.1.2.tgz", - "integrity": "sha512-w8qBiXtqGWJ9xpJIA98M0EIoq079GOQRQUyse5qg1plShUCQ0Ek1VTTcczqKrn3f24TFAgFtT+4q3aOXvjbsuA==", + "version": "30.2.0", + "resolved": "https://registry.npmjs.org/jest-environment-node/-/jest-environment-node-30.2.0.tgz", + "integrity": "sha512-ElU8v92QJ9UrYsKrxDIKCxu6PfNj4Hdcktcn0JX12zqNdqWHB0N+hwOnnBBXvjLd2vApZtuLUGs1QSY+MsXoNA==", "dev": true, "license": "MIT", "peer": true, "dependencies": { - "@jest/environment": "30.1.2", - "@jest/fake-timers": "30.1.2", - "@jest/types": "30.0.5", + "@jest/environment": "30.2.0", + "@jest/fake-timers": "30.2.0", + "@jest/types": "30.2.0", "@types/node": "*", - "jest-mock": "30.0.5", - "jest-util": "30.0.5", - "jest-validate": "30.1.0" + "jest-mock": "30.2.0", + "jest-util": "30.2.0", + "jest-validate": "30.2.0" }, "engines": { "node": "^18.14.0 || ^20.0.0 || ^22.0.0 || >=24.0.0" } }, "node_modules/jest-environment-node/node_modules/jest-util": { - "version": "30.0.5", - "resolved": "https://registry.npmjs.org/jest-util/-/jest-util-30.0.5.tgz", - "integrity": "sha512-pvyPWssDZR0FlfMxCBoc0tvM8iUEskaRFALUtGQYzVEAqisAztmy+R8LnU14KT4XA0H/a5HMVTXat1jLne010g==", + "version": "30.2.0", + "resolved": "https://registry.npmjs.org/jest-util/-/jest-util-30.2.0.tgz", + "integrity": "sha512-QKNsM0o3Xe6ISQU869e+DhG+4CK/48aHYdJZGlFQVTjnbvgpcKyxpzk29fGiO7i/J8VENZ+d2iGnSsvmuHywlA==", "dev": true, "license": "MIT", "peer": true, "dependencies": { - "@jest/types": "30.0.5", + "@jest/types": "30.2.0", "@types/node": "*", "chalk": "^4.1.2", "ci-info": "^4.2.0", @@ -9494,21 +8511,21 @@ } }, "node_modules/jest-haste-map": { - "version": "30.1.0", - "resolved": "https://registry.npmjs.org/jest-haste-map/-/jest-haste-map-30.1.0.tgz", - "integrity": "sha512-JLeM84kNjpRkggcGpQLsV7B8W4LNUWz7oDNVnY1Vjj22b5/fAb3kk3htiD+4Na8bmJmjJR7rBtS2Rmq/NEcADg==", + "version": "30.2.0", + "resolved": "https://registry.npmjs.org/jest-haste-map/-/jest-haste-map-30.2.0.tgz", + "integrity": "sha512-sQA/jCb9kNt+neM0anSj6eZhLZUIhQgwDt7cPGjumgLM4rXsfb9kpnlacmvZz3Q5tb80nS+oG/if+NBKrHC+Xw==", "dev": true, "license": "MIT", "peer": true, "dependencies": { - "@jest/types": "30.0.5", + "@jest/types": "30.2.0", "@types/node": "*", "anymatch": "^3.1.3", "fb-watchman": "^2.0.2", "graceful-fs": "^4.2.11", "jest-regex-util": "30.0.1", - "jest-util": "30.0.5", - "jest-worker": "30.1.0", + "jest-util": "30.2.0", + "jest-worker": "30.2.0", "micromatch": "^4.0.8", "walker": "^1.0.8" }, @@ -9520,14 +8537,14 @@ } }, "node_modules/jest-haste-map/node_modules/jest-util": { - "version": "30.0.5", - "resolved": "https://registry.npmjs.org/jest-util/-/jest-util-30.0.5.tgz", - "integrity": "sha512-pvyPWssDZR0FlfMxCBoc0tvM8iUEskaRFALUtGQYzVEAqisAztmy+R8LnU14KT4XA0H/a5HMVTXat1jLne010g==", + "version": "30.2.0", + "resolved": "https://registry.npmjs.org/jest-util/-/jest-util-30.2.0.tgz", + "integrity": "sha512-QKNsM0o3Xe6ISQU869e+DhG+4CK/48aHYdJZGlFQVTjnbvgpcKyxpzk29fGiO7i/J8VENZ+d2iGnSsvmuHywlA==", "dev": true, "license": "MIT", "peer": true, "dependencies": { - "@jest/types": "30.0.5", + "@jest/types": "30.2.0", "@types/node": "*", "chalk": "^4.1.2", "ci-info": "^4.2.0", @@ -9553,15 +8570,15 @@ } }, "node_modules/jest-leak-detector": { - "version": "30.1.0", - "resolved": "https://registry.npmjs.org/jest-leak-detector/-/jest-leak-detector-30.1.0.tgz", - "integrity": "sha512-AoFvJzwxK+4KohH60vRuHaqXfWmeBATFZpzpmzNmYTtmRMiyGPVhkXpBqxUQunw+dQB48bDf4NpUs6ivVbRv1g==", + "version": "30.2.0", + "resolved": "https://registry.npmjs.org/jest-leak-detector/-/jest-leak-detector-30.2.0.tgz", + "integrity": "sha512-M6jKAjyzjHG0SrQgwhgZGy9hFazcudwCNovY/9HPIicmNSBuockPSedAP9vlPK6ONFJ1zfyH/M2/YYJxOz5cdQ==", "dev": true, "license": "MIT", "peer": true, "dependencies": { "@jest/get-type": "30.1.0", - "pretty-format": "30.0.5" + "pretty-format": "30.2.0" }, "engines": { "node": "^18.14.0 || ^20.0.0 || ^22.0.0 || >=24.0.0" @@ -9582,9 +8599,9 @@ } }, "node_modules/jest-leak-detector/node_modules/pretty-format": { - "version": "30.0.5", - "resolved": "https://registry.npmjs.org/pretty-format/-/pretty-format-30.0.5.tgz", - "integrity": "sha512-D1tKtYvByrBkFLe2wHJl2bwMJIiT8rW+XA+TiataH79/FszLQMrpGEvzUVkzPau7OCO0Qnrhpe87PqtOAIB8Yw==", + "version": "30.2.0", + "resolved": "https://registry.npmjs.org/pretty-format/-/pretty-format-30.2.0.tgz", + "integrity": "sha512-9uBdv/B4EefsuAL+pWqueZyZS2Ba+LxfFeQ9DN14HU4bN8bhaxKdkpjpB6fs9+pSjIBu+FXQHImEg8j/Lw0+vA==", "dev": true, "license": "MIT", "peer": true, @@ -9673,30 +8690,30 @@ "license": "MIT" }, "node_modules/jest-mock": { - "version": "30.0.5", - "resolved": "https://registry.npmjs.org/jest-mock/-/jest-mock-30.0.5.tgz", - "integrity": "sha512-Od7TyasAAQX/6S+QCbN6vZoWOMwlTtzzGuxJku1GhGanAjz9y+QsQkpScDmETvdc9aSXyJ/Op4rhpMYBWW91wQ==", + "version": "30.2.0", + "resolved": "https://registry.npmjs.org/jest-mock/-/jest-mock-30.2.0.tgz", + "integrity": "sha512-JNNNl2rj4b5ICpmAcq+WbLH83XswjPbjH4T7yvGzfAGCPh1rw+xVNbtk+FnRslvt9lkCcdn9i1oAoKUuFsOxRw==", "dev": true, "license": "MIT", "peer": true, "dependencies": { - "@jest/types": "30.0.5", + "@jest/types": "30.2.0", "@types/node": "*", - "jest-util": "30.0.5" + "jest-util": "30.2.0" }, "engines": { "node": "^18.14.0 || ^20.0.0 || ^22.0.0 || >=24.0.0" } }, "node_modules/jest-mock/node_modules/jest-util": { - "version": "30.0.5", - "resolved": "https://registry.npmjs.org/jest-util/-/jest-util-30.0.5.tgz", - "integrity": "sha512-pvyPWssDZR0FlfMxCBoc0tvM8iUEskaRFALUtGQYzVEAqisAztmy+R8LnU14KT4XA0H/a5HMVTXat1jLne010g==", + "version": "30.2.0", + "resolved": "https://registry.npmjs.org/jest-util/-/jest-util-30.2.0.tgz", + "integrity": "sha512-QKNsM0o3Xe6ISQU869e+DhG+4CK/48aHYdJZGlFQVTjnbvgpcKyxpzk29fGiO7i/J8VENZ+d2iGnSsvmuHywlA==", "dev": true, "license": "MIT", "peer": true, "dependencies": { - "@jest/types": "30.0.5", + "@jest/types": "30.2.0", "@types/node": "*", "chalk": "^4.1.2", "ci-info": "^4.2.0", @@ -9752,19 +8769,19 @@ } }, "node_modules/jest-resolve": { - "version": "30.1.3", - "resolved": "https://registry.npmjs.org/jest-resolve/-/jest-resolve-30.1.3.tgz", - "integrity": "sha512-DI4PtTqzw9GwELFS41sdMK32Ajp3XZQ8iygeDMWkxlRhm7uUTOFSZFVZABFuxr0jvspn8MAYy54NxZCsuCTSOw==", + "version": "30.2.0", + "resolved": "https://registry.npmjs.org/jest-resolve/-/jest-resolve-30.2.0.tgz", + "integrity": "sha512-TCrHSxPlx3tBY3hWNtRQKbtgLhsXa1WmbJEqBlTBrGafd5fiQFByy2GNCEoGR+Tns8d15GaL9cxEzKOO3GEb2A==", "dev": true, "license": "MIT", "peer": true, "dependencies": { "chalk": "^4.1.2", "graceful-fs": "^4.2.11", - "jest-haste-map": "30.1.0", + "jest-haste-map": "30.2.0", "jest-pnp-resolver": "^1.2.3", - "jest-util": "30.0.5", - "jest-validate": "30.1.0", + "jest-util": "30.2.0", + "jest-validate": "30.2.0", "slash": "^3.0.0", "unrs-resolver": "^1.7.11" }, @@ -9773,29 +8790,29 @@ } }, "node_modules/jest-resolve-dependencies": { - "version": "30.1.3", - "resolved": "https://registry.npmjs.org/jest-resolve-dependencies/-/jest-resolve-dependencies-30.1.3.tgz", - "integrity": "sha512-DNfq3WGmuRyHRHfEet+Zm3QOmVFtIarUOQHHryKPc0YL9ROfgWZxl4+aZq/VAzok2SS3gZdniP+dO4zgo59hBg==", + "version": "30.2.0", + "resolved": "https://registry.npmjs.org/jest-resolve-dependencies/-/jest-resolve-dependencies-30.2.0.tgz", + "integrity": "sha512-xTOIGug/0RmIe3mmCqCT95yO0vj6JURrn1TKWlNbhiAefJRWINNPgwVkrVgt/YaerPzY3iItufd80v3lOrFJ2w==", "dev": true, "license": "MIT", "peer": true, "dependencies": { "jest-regex-util": "30.0.1", - "jest-snapshot": "30.1.2" + "jest-snapshot": "30.2.0" }, "engines": { "node": "^18.14.0 || ^20.0.0 || ^22.0.0 || >=24.0.0" } }, "node_modules/jest-resolve/node_modules/jest-util": { - "version": "30.0.5", - "resolved": "https://registry.npmjs.org/jest-util/-/jest-util-30.0.5.tgz", - "integrity": "sha512-pvyPWssDZR0FlfMxCBoc0tvM8iUEskaRFALUtGQYzVEAqisAztmy+R8LnU14KT4XA0H/a5HMVTXat1jLne010g==", + "version": "30.2.0", + "resolved": "https://registry.npmjs.org/jest-util/-/jest-util-30.2.0.tgz", + "integrity": "sha512-QKNsM0o3Xe6ISQU869e+DhG+4CK/48aHYdJZGlFQVTjnbvgpcKyxpzk29fGiO7i/J8VENZ+d2iGnSsvmuHywlA==", "dev": true, "license": "MIT", "peer": true, "dependencies": { - "@jest/types": "30.0.5", + "@jest/types": "30.2.0", "@types/node": "*", "chalk": "^4.1.2", "ci-info": "^4.2.0", @@ -9821,33 +8838,33 @@ } }, "node_modules/jest-runner": { - "version": "30.1.3", - "resolved": "https://registry.npmjs.org/jest-runner/-/jest-runner-30.1.3.tgz", - "integrity": "sha512-dd1ORcxQraW44Uz029TtXj85W11yvLpDuIzNOlofrC8GN+SgDlgY4BvyxJiVeuabA1t6idjNbX59jLd2oplOGQ==", + "version": "30.2.0", + "resolved": "https://registry.npmjs.org/jest-runner/-/jest-runner-30.2.0.tgz", + "integrity": "sha512-PqvZ2B2XEyPEbclp+gV6KO/F1FIFSbIwewRgmROCMBo/aZ6J1w8Qypoj2pEOcg3G2HzLlaP6VUtvwCI8dM3oqQ==", "dev": true, "license": "MIT", "peer": true, "dependencies": { - "@jest/console": "30.1.2", - "@jest/environment": "30.1.2", - "@jest/test-result": "30.1.3", - "@jest/transform": "30.1.2", - "@jest/types": "30.0.5", + "@jest/console": "30.2.0", + "@jest/environment": "30.2.0", + "@jest/test-result": "30.2.0", + "@jest/transform": "30.2.0", + "@jest/types": "30.2.0", "@types/node": "*", "chalk": "^4.1.2", "emittery": "^0.13.1", "exit-x": "^0.2.2", "graceful-fs": "^4.2.11", - "jest-docblock": "30.0.1", - "jest-environment-node": "30.1.2", - "jest-haste-map": "30.1.0", - "jest-leak-detector": "30.1.0", - "jest-message-util": "30.1.0", - "jest-resolve": "30.1.3", - "jest-runtime": "30.1.3", - "jest-util": "30.0.5", - "jest-watcher": "30.1.3", - "jest-worker": "30.1.0", + "jest-docblock": "30.2.0", + "jest-environment-node": "30.2.0", + "jest-haste-map": "30.2.0", + "jest-leak-detector": "30.2.0", + "jest-message-util": "30.2.0", + "jest-resolve": "30.2.0", + "jest-runtime": "30.2.0", + "jest-util": "30.2.0", + "jest-watcher": "30.2.0", + "jest-worker": "30.2.0", "p-limit": "^3.1.0", "source-map-support": "0.5.13" }, @@ -9870,20 +8887,20 @@ } }, "node_modules/jest-runner/node_modules/jest-message-util": { - "version": "30.1.0", - "resolved": "https://registry.npmjs.org/jest-message-util/-/jest-message-util-30.1.0.tgz", - "integrity": "sha512-HizKDGG98cYkWmaLUHChq4iN+oCENohQLb7Z5guBPumYs+/etonmNFlg1Ps6yN9LTPyZn+M+b/9BbnHx3WTMDg==", + "version": "30.2.0", + "resolved": "https://registry.npmjs.org/jest-message-util/-/jest-message-util-30.2.0.tgz", + "integrity": "sha512-y4DKFLZ2y6DxTWD4cDe07RglV88ZiNEdlRfGtqahfbIjfsw1nMCPx49Uev4IA/hWn3sDKyAnSPwoYSsAEdcimw==", "dev": true, "license": "MIT", "peer": true, "dependencies": { "@babel/code-frame": "^7.27.1", - "@jest/types": "30.0.5", + "@jest/types": "30.2.0", "@types/stack-utils": "^2.0.3", "chalk": "^4.1.2", "graceful-fs": "^4.2.11", "micromatch": "^4.0.8", - "pretty-format": "30.0.5", + "pretty-format": "30.2.0", "slash": "^3.0.0", "stack-utils": "^2.0.6" }, @@ -9892,14 +8909,14 @@ } }, "node_modules/jest-runner/node_modules/jest-util": { - "version": "30.0.5", - "resolved": "https://registry.npmjs.org/jest-util/-/jest-util-30.0.5.tgz", - "integrity": "sha512-pvyPWssDZR0FlfMxCBoc0tvM8iUEskaRFALUtGQYzVEAqisAztmy+R8LnU14KT4XA0H/a5HMVTXat1jLne010g==", + "version": "30.2.0", + "resolved": "https://registry.npmjs.org/jest-util/-/jest-util-30.2.0.tgz", + "integrity": "sha512-QKNsM0o3Xe6ISQU869e+DhG+4CK/48aHYdJZGlFQVTjnbvgpcKyxpzk29fGiO7i/J8VENZ+d2iGnSsvmuHywlA==", "dev": true, "license": "MIT", "peer": true, "dependencies": { - "@jest/types": "30.0.5", + "@jest/types": "30.2.0", "@types/node": "*", "chalk": "^4.1.2", "ci-info": "^4.2.0", @@ -9925,9 +8942,9 @@ } }, "node_modules/jest-runner/node_modules/pretty-format": { - "version": "30.0.5", - "resolved": "https://registry.npmjs.org/pretty-format/-/pretty-format-30.0.5.tgz", - "integrity": "sha512-D1tKtYvByrBkFLe2wHJl2bwMJIiT8rW+XA+TiataH79/FszLQMrpGEvzUVkzPau7OCO0Qnrhpe87PqtOAIB8Yw==", + "version": "30.2.0", + "resolved": "https://registry.npmjs.org/pretty-format/-/pretty-format-30.2.0.tgz", + "integrity": "sha512-9uBdv/B4EefsuAL+pWqueZyZS2Ba+LxfFeQ9DN14HU4bN8bhaxKdkpjpB6fs9+pSjIBu+FXQHImEg8j/Lw0+vA==", "dev": true, "license": "MIT", "peer": true, @@ -9941,33 +8958,33 @@ } }, "node_modules/jest-runtime": { - "version": "30.1.3", - "resolved": "https://registry.npmjs.org/jest-runtime/-/jest-runtime-30.1.3.tgz", - "integrity": "sha512-WS8xgjuNSphdIGnleQcJ3AKE4tBKOVP+tKhCD0u+Tb2sBmsU8DxfbBpZX7//+XOz81zVs4eFpJQwBNji2Y07DA==", + "version": "30.2.0", + "resolved": "https://registry.npmjs.org/jest-runtime/-/jest-runtime-30.2.0.tgz", + "integrity": "sha512-p1+GVX/PJqTucvsmERPMgCPvQJpFt4hFbM+VN3n8TMo47decMUcJbt+rgzwrEme0MQUA/R+1de2axftTHkKckg==", "dev": true, "license": "MIT", "peer": true, "dependencies": { - "@jest/environment": "30.1.2", - "@jest/fake-timers": "30.1.2", - "@jest/globals": "30.1.2", + "@jest/environment": "30.2.0", + "@jest/fake-timers": "30.2.0", + "@jest/globals": "30.2.0", "@jest/source-map": "30.0.1", - "@jest/test-result": "30.1.3", - "@jest/transform": "30.1.2", - "@jest/types": "30.0.5", + "@jest/test-result": "30.2.0", + "@jest/transform": "30.2.0", + "@jest/types": "30.2.0", "@types/node": "*", "chalk": "^4.1.2", "cjs-module-lexer": "^2.1.0", "collect-v8-coverage": "^1.0.2", "glob": "^10.3.10", "graceful-fs": "^4.2.11", - "jest-haste-map": "30.1.0", - "jest-message-util": "30.1.0", - "jest-mock": "30.0.5", + "jest-haste-map": "30.2.0", + "jest-message-util": "30.2.0", + "jest-mock": "30.2.0", "jest-regex-util": "30.0.1", - "jest-resolve": "30.1.3", - "jest-snapshot": "30.1.2", - "jest-util": "30.0.5", + "jest-resolve": "30.2.0", + "jest-snapshot": "30.2.0", + "jest-util": "30.2.0", "slash": "^3.0.0", "strip-bom": "^4.0.0" }, @@ -9990,20 +9007,20 @@ } }, "node_modules/jest-runtime/node_modules/jest-message-util": { - "version": "30.1.0", - "resolved": "https://registry.npmjs.org/jest-message-util/-/jest-message-util-30.1.0.tgz", - "integrity": "sha512-HizKDGG98cYkWmaLUHChq4iN+oCENohQLb7Z5guBPumYs+/etonmNFlg1Ps6yN9LTPyZn+M+b/9BbnHx3WTMDg==", + "version": "30.2.0", + "resolved": "https://registry.npmjs.org/jest-message-util/-/jest-message-util-30.2.0.tgz", + "integrity": "sha512-y4DKFLZ2y6DxTWD4cDe07RglV88ZiNEdlRfGtqahfbIjfsw1nMCPx49Uev4IA/hWn3sDKyAnSPwoYSsAEdcimw==", "dev": true, "license": "MIT", "peer": true, "dependencies": { "@babel/code-frame": "^7.27.1", - "@jest/types": "30.0.5", + "@jest/types": "30.2.0", "@types/stack-utils": "^2.0.3", "chalk": "^4.1.2", "graceful-fs": "^4.2.11", "micromatch": "^4.0.8", - "pretty-format": "30.0.5", + "pretty-format": "30.2.0", "slash": "^3.0.0", "stack-utils": "^2.0.6" }, @@ -10012,14 +9029,14 @@ } }, "node_modules/jest-runtime/node_modules/jest-util": { - "version": "30.0.5", - "resolved": "https://registry.npmjs.org/jest-util/-/jest-util-30.0.5.tgz", - "integrity": "sha512-pvyPWssDZR0FlfMxCBoc0tvM8iUEskaRFALUtGQYzVEAqisAztmy+R8LnU14KT4XA0H/a5HMVTXat1jLne010g==", + "version": "30.2.0", + "resolved": "https://registry.npmjs.org/jest-util/-/jest-util-30.2.0.tgz", + "integrity": "sha512-QKNsM0o3Xe6ISQU869e+DhG+4CK/48aHYdJZGlFQVTjnbvgpcKyxpzk29fGiO7i/J8VENZ+d2iGnSsvmuHywlA==", "dev": true, "license": "MIT", "peer": true, "dependencies": { - "@jest/types": "30.0.5", + "@jest/types": "30.2.0", "@types/node": "*", "chalk": "^4.1.2", "ci-info": "^4.2.0", @@ -10045,9 +9062,9 @@ } }, "node_modules/jest-runtime/node_modules/pretty-format": { - "version": "30.0.5", - "resolved": "https://registry.npmjs.org/pretty-format/-/pretty-format-30.0.5.tgz", - "integrity": "sha512-D1tKtYvByrBkFLe2wHJl2bwMJIiT8rW+XA+TiataH79/FszLQMrpGEvzUVkzPau7OCO0Qnrhpe87PqtOAIB8Yw==", + "version": "30.2.0", + "resolved": "https://registry.npmjs.org/pretty-format/-/pretty-format-30.2.0.tgz", + "integrity": "sha512-9uBdv/B4EefsuAL+pWqueZyZS2Ba+LxfFeQ9DN14HU4bN8bhaxKdkpjpB6fs9+pSjIBu+FXQHImEg8j/Lw0+vA==", "dev": true, "license": "MIT", "peer": true, @@ -10061,9 +9078,9 @@ } }, "node_modules/jest-snapshot": { - "version": "30.1.2", - "resolved": "https://registry.npmjs.org/jest-snapshot/-/jest-snapshot-30.1.2.tgz", - "integrity": "sha512-4q4+6+1c8B6Cy5pGgFvjDy/Pa6VYRiGu0yQafKkJ9u6wQx4G5PqI2QR6nxTl43yy7IWsINwz6oT4o6tD12a8Dg==", + "version": "30.2.0", + "resolved": "https://registry.npmjs.org/jest-snapshot/-/jest-snapshot-30.2.0.tgz", + "integrity": "sha512-5WEtTy2jXPFypadKNpbNkZ72puZCa6UjSr/7djeecHWOu7iYhSXSnHScT8wBz3Rn8Ena5d5RYRcsyKIeqG1IyA==", "dev": true, "license": "MIT", "peer": true, @@ -10073,20 +9090,20 @@ "@babel/plugin-syntax-jsx": "^7.27.1", "@babel/plugin-syntax-typescript": "^7.27.1", "@babel/types": "^7.27.3", - "@jest/expect-utils": "30.1.2", + "@jest/expect-utils": "30.2.0", "@jest/get-type": "30.1.0", - "@jest/snapshot-utils": "30.1.2", - "@jest/transform": "30.1.2", - "@jest/types": "30.0.5", - "babel-preset-current-node-syntax": "^1.1.0", + "@jest/snapshot-utils": "30.2.0", + "@jest/transform": "30.2.0", + "@jest/types": "30.2.0", + "babel-preset-current-node-syntax": "^1.2.0", "chalk": "^4.1.2", - "expect": "30.1.2", + "expect": "30.2.0", "graceful-fs": "^4.2.11", - "jest-diff": "30.1.2", - "jest-matcher-utils": "30.1.2", - "jest-message-util": "30.1.0", - "jest-util": "30.0.5", - "pretty-format": "30.0.5", + "jest-diff": "30.2.0", + "jest-matcher-utils": "30.2.0", + "jest-message-util": "30.2.0", + "jest-util": "30.2.0", + "pretty-format": "30.2.0", "semver": "^7.7.2", "synckit": "^0.11.8" }, @@ -10095,9 +9112,9 @@ } }, "node_modules/jest-snapshot/node_modules/@jest/expect-utils": { - "version": "30.1.2", - "resolved": "https://registry.npmjs.org/@jest/expect-utils/-/expect-utils-30.1.2.tgz", - "integrity": "sha512-HXy1qT/bfdjCv7iC336ExbqqYtZvljrV8odNdso7dWK9bSeHtLlvwWWC3YSybSPL03Gg5rug6WLCZAZFH72m0A==", + "version": "30.2.0", + "resolved": "https://registry.npmjs.org/@jest/expect-utils/-/expect-utils-30.2.0.tgz", + "integrity": "sha512-1JnRfhqpD8HGpOmQp180Fo9Zt69zNtC+9lR+kT7NVL05tNXIi+QC8Csz7lfidMoVLPD3FnOtcmp0CEFnxExGEA==", "dev": true, "license": "MIT", "peer": true, @@ -10123,28 +9140,28 @@ } }, "node_modules/jest-snapshot/node_modules/expect": { - "version": "30.1.2", - "resolved": "https://registry.npmjs.org/expect/-/expect-30.1.2.tgz", - "integrity": "sha512-xvHszRavo28ejws8FpemjhwswGj4w/BetHIL8cU49u4sGyXDw2+p3YbeDbj6xzlxi6kWTjIRSTJ+9sNXPnF0Zg==", + "version": "30.2.0", + "resolved": "https://registry.npmjs.org/expect/-/expect-30.2.0.tgz", + "integrity": "sha512-u/feCi0GPsI+988gU2FLcsHyAHTU0MX1Wg68NhAnN7z/+C5wqG+CY8J53N9ioe8RXgaoz0nBR/TYMf3AycUuPw==", "dev": true, "license": "MIT", "peer": true, "dependencies": { - "@jest/expect-utils": "30.1.2", + "@jest/expect-utils": "30.2.0", "@jest/get-type": "30.1.0", - "jest-matcher-utils": "30.1.2", - "jest-message-util": "30.1.0", - "jest-mock": "30.0.5", - "jest-util": "30.0.5" + "jest-matcher-utils": "30.2.0", + "jest-message-util": "30.2.0", + "jest-mock": "30.2.0", + "jest-util": "30.2.0" }, "engines": { "node": "^18.14.0 || ^20.0.0 || ^22.0.0 || >=24.0.0" } }, "node_modules/jest-snapshot/node_modules/jest-diff": { - "version": "30.1.2", - "resolved": "https://registry.npmjs.org/jest-diff/-/jest-diff-30.1.2.tgz", - "integrity": "sha512-4+prq+9J61mOVXCa4Qp8ZjavdxzrWQXrI80GNxP8f4tkI2syPuPrJgdRPZRrfUTRvIoUwcmNLbqEJy9W800+NQ==", + "version": "30.2.0", + "resolved": "https://registry.npmjs.org/jest-diff/-/jest-diff-30.2.0.tgz", + "integrity": "sha512-dQHFo3Pt4/NLlG5z4PxZ/3yZTZ1C7s9hveiOj+GCN+uT109NC2QgsoVZsVOAvbJ3RgKkvyLGXZV9+piDpWbm6A==", "dev": true, "license": "MIT", "peer": true, @@ -10152,44 +9169,44 @@ "@jest/diff-sequences": "30.0.1", "@jest/get-type": "30.1.0", "chalk": "^4.1.2", - "pretty-format": "30.0.5" + "pretty-format": "30.2.0" }, "engines": { "node": "^18.14.0 || ^20.0.0 || ^22.0.0 || >=24.0.0" } }, "node_modules/jest-snapshot/node_modules/jest-matcher-utils": { - "version": "30.1.2", - "resolved": "https://registry.npmjs.org/jest-matcher-utils/-/jest-matcher-utils-30.1.2.tgz", - "integrity": "sha512-7ai16hy4rSbDjvPTuUhuV8nyPBd6EX34HkBsBcBX2lENCuAQ0qKCPb/+lt8OSWUa9WWmGYLy41PrEzkwRwoGZQ==", + "version": "30.2.0", + "resolved": "https://registry.npmjs.org/jest-matcher-utils/-/jest-matcher-utils-30.2.0.tgz", + "integrity": "sha512-dQ94Nq4dbzmUWkQ0ANAWS9tBRfqCrn0bV9AMYdOi/MHW726xn7eQmMeRTpX2ViC00bpNaWXq+7o4lIQ3AX13Hg==", "dev": true, "license": "MIT", "peer": true, "dependencies": { "@jest/get-type": "30.1.0", "chalk": "^4.1.2", - "jest-diff": "30.1.2", - "pretty-format": "30.0.5" + "jest-diff": "30.2.0", + "pretty-format": "30.2.0" }, "engines": { "node": "^18.14.0 || ^20.0.0 || ^22.0.0 || >=24.0.0" } }, "node_modules/jest-snapshot/node_modules/jest-message-util": { - "version": "30.1.0", - "resolved": "https://registry.npmjs.org/jest-message-util/-/jest-message-util-30.1.0.tgz", - "integrity": "sha512-HizKDGG98cYkWmaLUHChq4iN+oCENohQLb7Z5guBPumYs+/etonmNFlg1Ps6yN9LTPyZn+M+b/9BbnHx3WTMDg==", + "version": "30.2.0", + "resolved": "https://registry.npmjs.org/jest-message-util/-/jest-message-util-30.2.0.tgz", + "integrity": "sha512-y4DKFLZ2y6DxTWD4cDe07RglV88ZiNEdlRfGtqahfbIjfsw1nMCPx49Uev4IA/hWn3sDKyAnSPwoYSsAEdcimw==", "dev": true, "license": "MIT", "peer": true, "dependencies": { "@babel/code-frame": "^7.27.1", - "@jest/types": "30.0.5", + "@jest/types": "30.2.0", "@types/stack-utils": "^2.0.3", "chalk": "^4.1.2", "graceful-fs": "^4.2.11", "micromatch": "^4.0.8", - "pretty-format": "30.0.5", + "pretty-format": "30.2.0", "slash": "^3.0.0", "stack-utils": "^2.0.6" }, @@ -10198,14 +9215,14 @@ } }, "node_modules/jest-snapshot/node_modules/jest-util": { - "version": "30.0.5", - "resolved": "https://registry.npmjs.org/jest-util/-/jest-util-30.0.5.tgz", - "integrity": "sha512-pvyPWssDZR0FlfMxCBoc0tvM8iUEskaRFALUtGQYzVEAqisAztmy+R8LnU14KT4XA0H/a5HMVTXat1jLne010g==", + "version": "30.2.0", + "resolved": "https://registry.npmjs.org/jest-util/-/jest-util-30.2.0.tgz", + "integrity": "sha512-QKNsM0o3Xe6ISQU869e+DhG+4CK/48aHYdJZGlFQVTjnbvgpcKyxpzk29fGiO7i/J8VENZ+d2iGnSsvmuHywlA==", "dev": true, "license": "MIT", "peer": true, "dependencies": { - "@jest/types": "30.0.5", + "@jest/types": "30.2.0", "@types/node": "*", "chalk": "^4.1.2", "ci-info": "^4.2.0", @@ -10231,9 +9248,9 @@ } }, "node_modules/jest-snapshot/node_modules/pretty-format": { - "version": "30.0.5", - "resolved": "https://registry.npmjs.org/pretty-format/-/pretty-format-30.0.5.tgz", - "integrity": "sha512-D1tKtYvByrBkFLe2wHJl2bwMJIiT8rW+XA+TiataH79/FszLQMrpGEvzUVkzPau7OCO0Qnrhpe87PqtOAIB8Yw==", + "version": "30.2.0", + "resolved": "https://registry.npmjs.org/pretty-format/-/pretty-format-30.2.0.tgz", + "integrity": "sha512-9uBdv/B4EefsuAL+pWqueZyZS2Ba+LxfFeQ9DN14HU4bN8bhaxKdkpjpB6fs9+pSjIBu+FXQHImEg8j/Lw0+vA==", "dev": true, "license": "MIT", "peer": true, @@ -10319,19 +9336,19 @@ } }, "node_modules/jest-validate": { - "version": "30.1.0", - "resolved": "https://registry.npmjs.org/jest-validate/-/jest-validate-30.1.0.tgz", - "integrity": "sha512-7P3ZlCFW/vhfQ8pE7zW6Oi4EzvuB4sgR72Q1INfW9m0FGo0GADYlPwIkf4CyPq7wq85g+kPMtPOHNAdWHeBOaA==", + "version": "30.2.0", + "resolved": "https://registry.npmjs.org/jest-validate/-/jest-validate-30.2.0.tgz", + "integrity": "sha512-FBGWi7dP2hpdi8nBoWxSsLvBFewKAg0+uSQwBaof4Y4DPgBabXgpSYC5/lR7VmnIlSpASmCi/ntRWPbv7089Pw==", "dev": true, "license": "MIT", "peer": true, "dependencies": { "@jest/get-type": "30.1.0", - "@jest/types": "30.0.5", + "@jest/types": "30.2.0", "camelcase": "^6.3.0", "chalk": "^4.1.2", "leven": "^3.1.0", - "pretty-format": "30.0.5" + "pretty-format": "30.2.0" }, "engines": { "node": "^18.14.0 || ^20.0.0 || ^22.0.0 || >=24.0.0" @@ -10366,9 +9383,9 @@ } }, "node_modules/jest-validate/node_modules/pretty-format": { - "version": "30.0.5", - "resolved": "https://registry.npmjs.org/pretty-format/-/pretty-format-30.0.5.tgz", - "integrity": "sha512-D1tKtYvByrBkFLe2wHJl2bwMJIiT8rW+XA+TiataH79/FszLQMrpGEvzUVkzPau7OCO0Qnrhpe87PqtOAIB8Yw==", + "version": "30.2.0", + "resolved": "https://registry.npmjs.org/pretty-format/-/pretty-format-30.2.0.tgz", + "integrity": "sha512-9uBdv/B4EefsuAL+pWqueZyZS2Ba+LxfFeQ9DN14HU4bN8bhaxKdkpjpB6fs9+pSjIBu+FXQHImEg8j/Lw0+vA==", "dev": true, "license": "MIT", "peer": true, @@ -10382,20 +9399,20 @@ } }, "node_modules/jest-watcher": { - "version": "30.1.3", - "resolved": "https://registry.npmjs.org/jest-watcher/-/jest-watcher-30.1.3.tgz", - "integrity": "sha512-6jQUZCP1BTL2gvG9E4YF06Ytq4yMb4If6YoQGRR6PpjtqOXSP3sKe2kqwB6SQ+H9DezOfZaSLnmka1NtGm3fCQ==", + "version": "30.2.0", + "resolved": "https://registry.npmjs.org/jest-watcher/-/jest-watcher-30.2.0.tgz", + "integrity": "sha512-PYxa28dxJ9g777pGm/7PrbnMeA0Jr7osHP9bS7eJy9DuAjMgdGtxgf0uKMyoIsTWAkIbUW5hSDdJ3urmgXBqxg==", "dev": true, "license": "MIT", "peer": true, "dependencies": { - "@jest/test-result": "30.1.3", - "@jest/types": "30.0.5", + "@jest/test-result": "30.2.0", + "@jest/types": "30.2.0", "@types/node": "*", "ansi-escapes": "^4.3.2", "chalk": "^4.1.2", "emittery": "^0.13.1", - "jest-util": "30.0.5", + "jest-util": "30.2.0", "string-length": "^4.0.2" }, "engines": { @@ -10403,14 +9420,14 @@ } }, "node_modules/jest-watcher/node_modules/jest-util": { - "version": "30.0.5", - "resolved": "https://registry.npmjs.org/jest-util/-/jest-util-30.0.5.tgz", - "integrity": "sha512-pvyPWssDZR0FlfMxCBoc0tvM8iUEskaRFALUtGQYzVEAqisAztmy+R8LnU14KT4XA0H/a5HMVTXat1jLne010g==", + "version": "30.2.0", + "resolved": "https://registry.npmjs.org/jest-util/-/jest-util-30.2.0.tgz", + "integrity": "sha512-QKNsM0o3Xe6ISQU869e+DhG+4CK/48aHYdJZGlFQVTjnbvgpcKyxpzk29fGiO7i/J8VENZ+d2iGnSsvmuHywlA==", "dev": true, "license": "MIT", "peer": true, "dependencies": { - "@jest/types": "30.0.5", + "@jest/types": "30.2.0", "@types/node": "*", "chalk": "^4.1.2", "ci-info": "^4.2.0", @@ -10436,16 +9453,16 @@ } }, "node_modules/jest-worker": { - "version": "30.1.0", - "resolved": "https://registry.npmjs.org/jest-worker/-/jest-worker-30.1.0.tgz", - "integrity": "sha512-uvWcSjlwAAgIu133Tt77A05H7RIk3Ho8tZL50bQM2AkvLdluw9NG48lRCl3Dt+MOH719n/0nnb5YxUwcuJiKRA==", + "version": "30.2.0", + "resolved": "https://registry.npmjs.org/jest-worker/-/jest-worker-30.2.0.tgz", + "integrity": "sha512-0Q4Uk8WF7BUwqXHuAjc23vmopWJw5WH7w2tqBoUOZpOjW/ZnR44GXXd1r82RvnmI2GZge3ivrYXk/BE2+VtW2g==", "dev": true, "license": "MIT", "peer": true, "dependencies": { "@types/node": "*", "@ungap/structured-clone": "^1.3.0", - "jest-util": "30.0.5", + "jest-util": "30.2.0", "merge-stream": "^2.0.0", "supports-color": "^8.1.1" }, @@ -10454,14 +9471,14 @@ } }, "node_modules/jest-worker/node_modules/jest-util": { - "version": "30.0.5", - "resolved": "https://registry.npmjs.org/jest-util/-/jest-util-30.0.5.tgz", - "integrity": "sha512-pvyPWssDZR0FlfMxCBoc0tvM8iUEskaRFALUtGQYzVEAqisAztmy+R8LnU14KT4XA0H/a5HMVTXat1jLne010g==", + "version": "30.2.0", + "resolved": "https://registry.npmjs.org/jest-util/-/jest-util-30.2.0.tgz", + "integrity": "sha512-QKNsM0o3Xe6ISQU869e+DhG+4CK/48aHYdJZGlFQVTjnbvgpcKyxpzk29fGiO7i/J8VENZ+d2iGnSsvmuHywlA==", "dev": true, "license": "MIT", "peer": true, "dependencies": { - "@jest/types": "30.0.5", + "@jest/types": "30.2.0", "@types/node": "*", "chalk": "^4.1.2", "ci-info": "^4.2.0", @@ -10511,9 +9528,9 @@ "license": "MIT" }, "node_modules/js-yaml": { - "version": "3.14.1", - "resolved": "https://registry.npmjs.org/js-yaml/-/js-yaml-3.14.1.tgz", - "integrity": "sha512-okMH7OXXJ7YrN9Ok3/SXrnu4iX9yOk+25nqX4imS2npuvTYDmo/QEZoqwZkYaIDk3jVvBOTOIEgEhaLOynBS9g==", + "version": "3.14.2", + "resolved": "https://registry.npmjs.org/js-yaml/-/js-yaml-3.14.2.tgz", + "integrity": "sha512-PMSmkqxr106Xa156c2M265Z+FTrPl+oxd/rgOQy2tijQeK5TxQ43psO1ZCwhVOSdnn+RzkzlRz/eY4BgJBYVpg==", "dev": true, "license": "MIT", "peer": true, @@ -10619,12 +9636,12 @@ } }, "node_modules/jws": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/jws/-/jws-4.0.0.tgz", - "integrity": "sha512-KDncfTmOZoOMTFG4mBlG0qUIOlc03fmzH+ru6RgYVZhPkyiy/92Owlt/8UEN+a4TXR1FQetfIpJE8ApdvdVxTg==", + "version": "4.0.1", + "resolved": "https://registry.npmjs.org/jws/-/jws-4.0.1.tgz", + "integrity": "sha512-EKI/M/yqPncGUUh44xz0PxSidXFr/+r0pA70+gIYhjv+et7yxM+s29Y+VGDkovRofQem0fs7Uvf4+YmAdyRduA==", "license": "MIT", "dependencies": { - "jwa": "^2.0.0", + "jwa": "^2.0.1", "safe-buffer": "^5.0.1" } }, @@ -10775,15 +9792,46 @@ } }, "node_modules/magic-string": { - "version": "0.30.19", - "resolved": "https://registry.npmjs.org/magic-string/-/magic-string-0.30.19.tgz", - "integrity": "sha512-2N21sPY9Ws53PZvsEpVtNuSW+ScYbQdp4b9qUaL+9QkHUrGFKo56Lg9Emg5s9V/qrtNBmiR01sYhUOwu3H+VOw==", + "version": "0.30.21", + "resolved": "https://registry.npmjs.org/magic-string/-/magic-string-0.30.21.tgz", + "integrity": "sha512-vd2F4YUyEXKGcLHoq+TEyCjxueSeHnFxyyjNp80yg0XV4vUhnDer/lvvlqM/arB5bXQN5K2/3oinyCRyx8T2CQ==", "dev": true, "license": "MIT", "dependencies": { "@jridgewell/sourcemap-codec": "^1.5.5" } }, + "node_modules/make-asynchronous": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/make-asynchronous/-/make-asynchronous-1.0.1.tgz", + "integrity": "sha512-T9BPOmEOhp6SmV25SwLVcHK4E6JyG/coH3C6F1NjNXSziv/fd4GmsqMk8YR6qpPOswfaOCApSNkZv6fxoaYFcQ==", + "dev": true, + "license": "MIT", + "dependencies": { + "p-event": "^6.0.0", + "type-fest": "^4.6.0", + "web-worker": "1.2.0" + }, + "engines": { + "node": ">=18" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/make-asynchronous/node_modules/type-fest": { + "version": "4.41.0", + "resolved": "https://registry.npmjs.org/type-fest/-/type-fest-4.41.0.tgz", + "integrity": "sha512-TeTSQ6H5YHvpqVwBRcnLDCBnDOHWYu7IvGbHT6N8AOymcr9PJGjc1GTtiWZTYg0NCgYwvnYWEkVChQAr9bjfwA==", + "dev": true, + "license": "(MIT OR CC0-1.0)", + "engines": { + "node": ">=16" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, "node_modules/make-dir": { "version": "4.0.0", "resolved": "https://registry.npmjs.org/make-dir/-/make-dir-4.0.0.tgz", @@ -10855,9 +9903,9 @@ } }, "node_modules/marked-terminal/node_modules/ansi-escapes": { - "version": "7.1.0", - "resolved": "https://registry.npmjs.org/ansi-escapes/-/ansi-escapes-7.1.0.tgz", - "integrity": "sha512-YdhtCd19sKRKfAAUsrcC1wzm4JuzJoiX4pOJqIoW2qmKj5WzG/dL8uUJ0361zaXtHqK7gEhOwtAtz7t3Yq3X5g==", + "version": "7.2.0", + "resolved": "https://registry.npmjs.org/ansi-escapes/-/ansi-escapes-7.2.0.tgz", + "integrity": "sha512-g6LhBsl+GBPRWGWsBtutpzBYuIIdBkLEvad5C/va/74Db018+5TZiyA26cZJAr3Rft5lprVqOIPxf5Vid6tqAw==", "dev": true, "license": "MIT", "dependencies": { @@ -10947,9 +9995,7 @@ "version": "9.0.5", "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-9.0.5.tgz", "integrity": "sha512-G6T0ZX48xgozx7587koeX9Ys2NYy6Gmv//P89sEte9V9whIapMNF4idKxnW2QtCcLiTWlb/wfCabAtAFWhhBow==", - "dev": true, "license": "ISC", - "peer": true, "dependencies": { "brace-expansion": "^2.0.1" }, @@ -10974,9 +10020,7 @@ "version": "7.1.2", "resolved": "https://registry.npmjs.org/minipass/-/minipass-7.1.2.tgz", "integrity": "sha512-qOOzS1cBTWYF4BH8fVePDBOO9iptMnGUEZwNc/cMWnTV2nVLZ7VoNWEPHkYczZA0pdoA7dl6e7FL659nX9S2aw==", - "dev": true, "license": "ISC", - "peer": true, "engines": { "node": ">=16 || 14 >=14.17" } @@ -11019,9 +10063,9 @@ } }, "node_modules/napi-postinstall": { - "version": "0.3.3", - "resolved": "https://registry.npmjs.org/napi-postinstall/-/napi-postinstall-0.3.3.tgz", - "integrity": "sha512-uTp172LLXSxuSYHv/kou+f6KW3SMppU9ivthaVTXian9sOt3XM/zHYHpRZiLgQoxeWfYUnslNWQHF1+G71xcow==", + "version": "0.3.4", + "resolved": "https://registry.npmjs.org/napi-postinstall/-/napi-postinstall-0.3.4.tgz", + "integrity": "sha512-PHI5f1O0EP5xJ9gQmFGMS6IZcrVvTjpXjz7Na41gTE7eE2hK11lg04CECCYEEjdc17EV4DO+fkGEtt7TpTaTiQ==", "dev": true, "license": "MIT", "peer": true, @@ -11120,9 +10164,9 @@ "peer": true }, "node_modules/node-releases": { - "version": "2.0.21", - "resolved": "https://registry.npmjs.org/node-releases/-/node-releases-2.0.21.tgz", - "integrity": "sha512-5b0pgg78U3hwXkCM8Z9b2FJdPZlr9Psr9V2gQPESdGHqbntyFJKFW4r5TeWGFzafGY3hzs1JC62VEQMbl1JFkw==", + "version": "2.0.27", + "resolved": "https://registry.npmjs.org/node-releases/-/node-releases-2.0.27.tgz", + "integrity": "sha512-nmh3lCkYZ3grZvqcCH+fjmQ7X+H0OeZgP40OierEaAptX4XofMh5kwNbWh7lBduUzCcV/8kZ+NDLCwm2iorIlA==", "dev": true, "license": "MIT", "peer": true @@ -11167,9 +10211,9 @@ } }, "node_modules/npm": { - "version": "10.9.3", - "resolved": "https://registry.npmjs.org/npm/-/npm-10.9.3.tgz", - "integrity": "sha512-6Eh1u5Q+kIVXeA8e7l2c/HpnFFcwrkt37xDMujD5be1gloWa9p6j3Fsv3mByXXmqJHy+2cElRMML8opNT7xIJQ==", + "version": "10.9.4", + "resolved": "https://registry.npmjs.org/npm/-/npm-10.9.4.tgz", + "integrity": "sha512-OnUG836FwboQIbqtefDNlyR0gTHzIfwRfE3DuiNewBvnMnWEpB0VEXwBlFVgqpNzIgYo/MHh3d2Hel/pszapAA==", "bundleDependencies": [ "@isaacs/string-locale-compare", "@npmcli/arborist", @@ -13933,6 +12977,22 @@ "url": "https://github.com/sponsors/sindresorhus" } }, + "node_modules/p-event": { + "version": "6.0.1", + "resolved": "https://registry.npmjs.org/p-event/-/p-event-6.0.1.tgz", + "integrity": "sha512-Q6Bekk5wpzW5qIyUP4gdMEujObYstZl6DMMOSenwBvV0BlE5LkDwkjs5yHbZmdCEq2o4RJx4tE1vwxFVf2FG1w==", + "dev": true, + "license": "MIT", + "dependencies": { + "p-timeout": "^6.1.2" + }, + "engines": { + "node": ">=16.17" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, "node_modules/p-filter": { "version": "4.1.0", "resolved": "https://registry.npmjs.org/p-filter/-/p-filter-4.1.0.tgz", @@ -14008,9 +13068,9 @@ } }, "node_modules/p-map": { - "version": "7.0.3", - "resolved": "https://registry.npmjs.org/p-map/-/p-map-7.0.3.tgz", - "integrity": "sha512-VkndIv2fIB99swvQoA65bm+fsmt6UNdGeIB0oxBs+WhAhdh08QA04JXpI7rbB9r08/nkbysKoya9rtDERYOYMA==", + "version": "7.0.4", + "resolved": "https://registry.npmjs.org/p-map/-/p-map-7.0.4.tgz", + "integrity": "sha512-tkAQEw8ysMzmkhgw8k+1U/iPhWNhykKnSk4Rd5zLoPJCuJaGRPo6YposrZgaxHKzDHdDWWZvE/Sk7hsL2X/CpQ==", "dev": true, "license": "MIT", "engines": { @@ -14030,6 +13090,19 @@ "node": ">=8" } }, + "node_modules/p-timeout": { + "version": "6.1.4", + "resolved": "https://registry.npmjs.org/p-timeout/-/p-timeout-6.1.4.tgz", + "integrity": "sha512-MyIV3ZA/PmyBN/ud8vV9XzwTrNtR4jFrObymZYnZqMmW0zA8Z17vnT0rBgFE/TlohB+YCHqXMgZzb3Csp49vqg==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=14.16" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, "node_modules/p-try": { "version": "2.2.0", "resolved": "https://registry.npmjs.org/p-try/-/p-try-2.2.0.tgz", @@ -14045,9 +13118,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==", - "dev": true, - "license": "BlueOak-1.0.0", - "peer": true + "license": "BlueOak-1.0.0" }, "node_modules/parent-module": { "version": "1.0.1", @@ -14144,7 +13215,6 @@ "version": "3.1.1", "resolved": "https://registry.npmjs.org/path-key/-/path-key-3.1.1.tgz", "integrity": "sha512-ojmeN0qd+y0jszEtoY48r0Peq5dwMEkIlCOu6Q5f41lfkswXuKtYrhgoTpLnyIcHm24Uhqx+5Tqm2InSwLhE6Q==", - "dev": true, "license": "MIT", "engines": { "node": ">=8" @@ -14154,9 +13224,7 @@ "version": "1.11.1", "resolved": "https://registry.npmjs.org/path-scurry/-/path-scurry-1.11.1.tgz", "integrity": "sha512-Xa4Nw17FS9ApQFJ9umLiJS4orGjm7ZzwUrwamcGQuHSzDyth9boKDaycYdDcZDuqYATXw4HFXgaqWTctW/v1HA==", - "dev": true, "license": "BlueOak-1.0.0", - "peer": true, "dependencies": { "lru-cache": "^10.2.0", "minipass": "^5.0.0 || ^6.0.2 || ^7.0.0" @@ -14172,9 +13240,7 @@ "version": "10.4.3", "resolved": "https://registry.npmjs.org/lru-cache/-/lru-cache-10.4.3.tgz", "integrity": "sha512-JNAzZcXrCt42VGLuYz0zfAzDfAvJWW6AfYlDBQyDV5DClI2m5sAmK+OIO7s59XfsRsWHp02jAJrRadPRGTt6SQ==", - "dev": true, - "license": "ISC", - "peer": true + "license": "ISC" }, "node_modules/path-type": { "version": "4.0.0", @@ -14655,10 +13721,25 @@ "node": ">=8" } }, + "node_modules/rimraf": { + "version": "5.0.10", + "resolved": "https://registry.npmjs.org/rimraf/-/rimraf-5.0.10.tgz", + "integrity": "sha512-l0OE8wL34P4nJH/H2ffoaniAokM2qSmrtXHmlpvYr5AVVX8msAyW0l8NVJFDxlSK4u3Uh/f41cQheDVdnYijwQ==", + "license": "ISC", + "dependencies": { + "glob": "^10.3.7" + }, + "bin": { + "rimraf": "dist/esm/bin.mjs" + }, + "funding": { + "url": "https://github.com/sponsors/isaacs" + } + }, "node_modules/rollup": { - "version": "4.50.2", - "resolved": "https://registry.npmjs.org/rollup/-/rollup-4.50.2.tgz", - "integrity": "sha512-BgLRGy7tNS9H66aIMASq1qSYbAAJV6Z6WR4QYTvj5FgF15rZ/ympT1uixHXwzbZUBDbkvqUI1KR0fH1FhMaQ9w==", + "version": "4.53.3", + "resolved": "https://registry.npmjs.org/rollup/-/rollup-4.53.3.tgz", + "integrity": "sha512-w8GmOxZfBmKknvdXU1sdM9NHcoQejwF/4mNgj2JuEEdRaHwwF12K7e9eXn1nLZ07ad+du76mkVsyeb2rKGllsA==", "dev": true, "license": "MIT", "dependencies": { @@ -14672,27 +13753,28 @@ "npm": ">=8.0.0" }, "optionalDependencies": { - "@rollup/rollup-android-arm-eabi": "4.50.2", - "@rollup/rollup-android-arm64": "4.50.2", - "@rollup/rollup-darwin-arm64": "4.50.2", - "@rollup/rollup-darwin-x64": "4.50.2", - "@rollup/rollup-freebsd-arm64": "4.50.2", - "@rollup/rollup-freebsd-x64": "4.50.2", - "@rollup/rollup-linux-arm-gnueabihf": "4.50.2", - "@rollup/rollup-linux-arm-musleabihf": "4.50.2", - "@rollup/rollup-linux-arm64-gnu": "4.50.2", - "@rollup/rollup-linux-arm64-musl": "4.50.2", - "@rollup/rollup-linux-loong64-gnu": "4.50.2", - "@rollup/rollup-linux-ppc64-gnu": "4.50.2", - "@rollup/rollup-linux-riscv64-gnu": "4.50.2", - "@rollup/rollup-linux-riscv64-musl": "4.50.2", - "@rollup/rollup-linux-s390x-gnu": "4.50.2", - "@rollup/rollup-linux-x64-gnu": "4.50.2", - "@rollup/rollup-linux-x64-musl": "4.50.2", - "@rollup/rollup-openharmony-arm64": "4.50.2", - "@rollup/rollup-win32-arm64-msvc": "4.50.2", - "@rollup/rollup-win32-ia32-msvc": "4.50.2", - "@rollup/rollup-win32-x64-msvc": "4.50.2", + "@rollup/rollup-android-arm-eabi": "4.53.3", + "@rollup/rollup-android-arm64": "4.53.3", + "@rollup/rollup-darwin-arm64": "4.53.3", + "@rollup/rollup-darwin-x64": "4.53.3", + "@rollup/rollup-freebsd-arm64": "4.53.3", + "@rollup/rollup-freebsd-x64": "4.53.3", + "@rollup/rollup-linux-arm-gnueabihf": "4.53.3", + "@rollup/rollup-linux-arm-musleabihf": "4.53.3", + "@rollup/rollup-linux-arm64-gnu": "4.53.3", + "@rollup/rollup-linux-arm64-musl": "4.53.3", + "@rollup/rollup-linux-loong64-gnu": "4.53.3", + "@rollup/rollup-linux-ppc64-gnu": "4.53.3", + "@rollup/rollup-linux-riscv64-gnu": "4.53.3", + "@rollup/rollup-linux-riscv64-musl": "4.53.3", + "@rollup/rollup-linux-s390x-gnu": "4.53.3", + "@rollup/rollup-linux-x64-gnu": "4.53.3", + "@rollup/rollup-linux-x64-musl": "4.53.3", + "@rollup/rollup-openharmony-arm64": "4.53.3", + "@rollup/rollup-win32-arm64-msvc": "4.53.3", + "@rollup/rollup-win32-ia32-msvc": "4.53.3", + "@rollup/rollup-win32-x64-gnu": "4.53.3", + "@rollup/rollup-win32-x64-msvc": "4.53.3", "fsevents": "~2.3.2" } }, @@ -14717,9 +13799,9 @@ "license": "MIT" }, "node_modules/semantic-release": { - "version": "24.2.8", - "resolved": "https://registry.npmjs.org/semantic-release/-/semantic-release-24.2.8.tgz", - "integrity": "sha512-uvoLiKEB/AvvA3SCPE78cd90nVJXn220kkEA6sNGzDpas4s7pe4OgYWvhfR0lvWBdBH/T0RFCI6U+GvcT2CypQ==", + "version": "24.2.9", + "resolved": "https://registry.npmjs.org/semantic-release/-/semantic-release-24.2.9.tgz", + "integrity": "sha512-phCkJ6pjDi9ANdhuF5ElS10GGdAKY6R1Pvt9lT3SFhOwM4T7QZE7MLpBDbNruUx/Q3gFD92/UOFringGipRqZA==", "dev": true, "license": "MIT", "dependencies": { @@ -14749,7 +13831,7 @@ "read-package-up": "^11.0.0", "resolve-from": "^5.0.0", "semver": "^7.3.2", - "semver-diff": "^4.0.0", + "semver-diff": "^5.0.0", "signale": "^1.2.1", "yargs": "^17.5.1" }, @@ -14817,9 +13899,9 @@ } }, "node_modules/semantic-release/node_modules/execa": { - "version": "9.6.0", - "resolved": "https://registry.npmjs.org/execa/-/execa-9.6.0.tgz", - "integrity": "sha512-jpWzZ1ZhwUmeWRhS7Qv3mhpOhLfwI+uAX4e5fOcXqwMR7EcJ0pj2kV1CVzHVMX/LphnKWD3LObjZCoJ71lKpHw==", + "version": "9.6.1", + "resolved": "https://registry.npmjs.org/execa/-/execa-9.6.1.tgz", + "integrity": "sha512-9Be3ZoN4LmYR90tUoVu2te2BsbzHfhJyfEiAVfz7N5/zv+jduIfLrV2xdQXOHbaD6KgpGdO9PRPM1Y4Q9QkPkA==", "dev": true, "license": "MIT", "dependencies": { @@ -15012,9 +14094,9 @@ } }, "node_modules/semver": { - "version": "7.7.2", - "resolved": "https://registry.npmjs.org/semver/-/semver-7.7.2.tgz", - "integrity": "sha512-RF0Fw+rO5AMf9MAyaRXI4AV0Ulj5lMHqVxxdSgiVbixSCXoEmmX/jk0CuJw4+3SqroYO9VoUh+HcuJivvtJemA==", + "version": "7.7.3", + "resolved": "https://registry.npmjs.org/semver/-/semver-7.7.3.tgz", + "integrity": "sha512-SdsKMrI9TdgjdweUSR9MweHA4EJ8YxHn8DFaDisvhVlUOe4BF1tLD7GAj0lIqWVl+dPb/rExr0Btby5loQm20Q==", "dev": true, "license": "ISC", "bin": { @@ -15025,9 +14107,10 @@ } }, "node_modules/semver-diff": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/semver-diff/-/semver-diff-4.0.0.tgz", - "integrity": "sha512-0Ju4+6A8iOnpL/Thra7dZsSlOHYAHIeMxfhWQRI1/VLcT3WDBZKKtQt/QkBOsiIN9ZpuvHE6cGZ0x4glCMmfiA==", + "version": "5.0.0", + "resolved": "https://registry.npmjs.org/semver-diff/-/semver-diff-5.0.0.tgz", + "integrity": "sha512-0HbGtOm+S7T6NGQ/pxJSJipJvc4DK3FcRVMRkhsIwJDJ4Jcz5DQC1cPPzB5GhzyHjwttW878HaWQq46CkL3cqg==", + "deprecated": "Deprecated as the semver package now supports this built-in.", "dev": true, "license": "MIT", "dependencies": { @@ -15057,7 +14140,6 @@ "version": "2.0.0", "resolved": "https://registry.npmjs.org/shebang-command/-/shebang-command-2.0.0.tgz", "integrity": "sha512-kHxr2zZpYtdmrN1qDjrrX/Z1rR1kG8Dx+gkpK1G4eXmvXswmcE1hTWBWYUzlraYw1/yZp6YuDY77YtvbN0dmDA==", - "dev": true, "license": "MIT", "dependencies": { "shebang-regex": "^3.0.0" @@ -15070,7 +14152,6 @@ "version": "3.0.0", "resolved": "https://registry.npmjs.org/shebang-regex/-/shebang-regex-3.0.0.tgz", "integrity": "sha512-7++dFhtcx3353uBaq8DDR4NuxBetBzC7ZQOhmTQInHEd6bSrXdiEyzCvG07Z44UYdLShWUyXt5M/yhz8ekcb1A==", - "dev": true, "license": "MIT", "engines": { "node": ">=8" @@ -15333,9 +14414,9 @@ "license": "MIT" }, "node_modules/std-env": { - "version": "3.9.0", - "resolved": "https://registry.npmjs.org/std-env/-/std-env-3.9.0.tgz", - "integrity": "sha512-UGvjygr6F6tpH7o2qyqR6QYpwraIjKSdtzyBdyytFOHmPZY917kwdwLG0RbOjWOnKmnm3PeHjaoLLMie7kPLQw==", + "version": "3.10.0", + "resolved": "https://registry.npmjs.org/std-env/-/std-env-3.10.0.tgz", + "integrity": "sha512-5GS12FdOZNliM5mAOxFRg7Ir0pWz8MdpYm6AY6VPkGpbA7ZzmbzNcBJQ0GPvvyWgcY7QAhCgf9Uy89I03faLkg==", "dev": true, "license": "MIT" }, @@ -15411,9 +14492,7 @@ "version": "5.1.2", "resolved": "https://registry.npmjs.org/string-width/-/string-width-5.1.2.tgz", "integrity": "sha512-HnLOCR3vjcY8beoNLtcjZ5/nxn2afmME6lhrDrebokqMap+XbeW8n9TXpPDOqdGK5qcI3oT0GKTW6wC7EMiVqA==", - "dev": true, "license": "MIT", - "peer": true, "dependencies": { "eastasianwidth": "^0.2.0", "emoji-regex": "^9.2.2", @@ -15431,9 +14510,7 @@ "version": "4.2.3", "resolved": "https://registry.npmjs.org/string-width/-/string-width-4.2.3.tgz", "integrity": "sha512-wKyQRQpjJ0sIp62ErSZdGsjMJWsap5oRNihHhu6G7JVO/9jIB6UyevL+tXuOqrng8j/cxKTWyWUwvSTriiZz/g==", - "dev": true, "license": "MIT", - "peer": true, "dependencies": { "emoji-regex": "^8.0.0", "is-fullwidth-code-point": "^3.0.0", @@ -15447,9 +14524,7 @@ "version": "5.0.1", "resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-5.0.1.tgz", "integrity": "sha512-quJQXlTSUGL2LH9SUXo8VwsY4soanhgo6LNSm84E1LBcE8s3O0wpdiRzyR9z/ZZJMlMWv37qOOb9pdJlMUEKFQ==", - "dev": true, "license": "MIT", - "peer": true, "engines": { "node": ">=8" } @@ -15458,17 +14533,13 @@ "version": "8.0.0", "resolved": "https://registry.npmjs.org/emoji-regex/-/emoji-regex-8.0.0.tgz", "integrity": "sha512-MSjYzcWNOA0ewAHpz0MxpYFvwg6yjy1NG3xteoqz644VCo/RPgnr1/GGt+ic3iJTzQ8Eu3TdM14SawnVUmGE6A==", - "dev": true, - "license": "MIT", - "peer": true + "license": "MIT" }, "node_modules/string-width-cjs/node_modules/strip-ansi": { "version": "6.0.1", "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-6.0.1.tgz", "integrity": "sha512-Y38VPSHcqkFrCpFnQ9vuSXmquuv5oXOKpGeT6aGrr3o3Gc9AlVa6JBfUSOCnbxGGZF+/0ooI7KrPuUSztUdU5A==", - "dev": true, "license": "MIT", - "peer": true, "dependencies": { "ansi-regex": "^5.0.1" }, @@ -15480,9 +14551,7 @@ "version": "7.1.2", "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-7.1.2.tgz", "integrity": "sha512-gmBGslpoQJtgnMAvOVqGZpEz9dyoKTCzy2nfz/n8aIFhN/jCE/rCmcxabB6jOOHV+0WNnylOxaxBQPSvcWklhA==", - "dev": true, "license": "MIT", - "peer": true, "dependencies": { "ansi-regex": "^6.0.1" }, @@ -15498,9 +14567,7 @@ "version": "6.0.1", "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-6.0.1.tgz", "integrity": "sha512-Y38VPSHcqkFrCpFnQ9vuSXmquuv5oXOKpGeT6aGrr3o3Gc9AlVa6JBfUSOCnbxGGZF+/0ooI7KrPuUSztUdU5A==", - "dev": true, "license": "MIT", - "peer": true, "dependencies": { "ansi-regex": "^5.0.1" }, @@ -15512,9 +14579,7 @@ "version": "5.0.1", "resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-5.0.1.tgz", "integrity": "sha512-quJQXlTSUGL2LH9SUXo8VwsY4soanhgo6LNSm84E1LBcE8s3O0wpdiRzyR9z/ZZJMlMWv37qOOb9pdJlMUEKFQ==", - "dev": true, "license": "MIT", - "peer": true, "engines": { "node": ">=8" } @@ -15555,9 +14620,9 @@ } }, "node_modules/strip-literal": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/strip-literal/-/strip-literal-3.0.0.tgz", - "integrity": "sha512-TcccoMhJOM3OebGhSBEmp3UZ2SfDMZUEBdRA/9ynfLi8yYajyWX3JiXArcJt4Umh4vISpspkQIY8ZZoCqjbviA==", + "version": "3.1.0", + "resolved": "https://registry.npmjs.org/strip-literal/-/strip-literal-3.1.0.tgz", + "integrity": "sha512-8r3mkIM/2+PpjHoOtiAW8Rg3jJLHaV7xPwG+YRGrv6FP0wwk/toTpATxWYOW0BKdWwl82VT2tFYi5DlROa0Mxg==", "dev": true, "license": "MIT", "dependencies": { @@ -15587,13 +14652,14 @@ "license": "MIT" }, "node_modules/super-regex": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/super-regex/-/super-regex-1.0.0.tgz", - "integrity": "sha512-CY8u7DtbvucKuquCmOFEKhr9Besln7n9uN8eFbwcoGYWXOMW07u2o8njWaiXt11ylS3qoGF55pILjRmPlbodyg==", + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/super-regex/-/super-regex-1.1.0.tgz", + "integrity": "sha512-WHkws2ZflZe41zj6AolvvmaTrWds/VuyeYr9iPVv/oQeaIoVxMKaushfFWpOGDT+GuBrM/sVqF8KUCYQlSSTdQ==", "dev": true, "license": "MIT", "dependencies": { "function-timeout": "^1.0.1", + "make-asynchronous": "^1.0.1", "time-span": "^5.1.0" }, "engines": { @@ -15903,9 +14969,9 @@ } }, "node_modules/tinyspy": { - "version": "4.0.3", - "resolved": "https://registry.npmjs.org/tinyspy/-/tinyspy-4.0.3.tgz", - "integrity": "sha512-t2T/WLB2WRgZ9EpE4jgPJ9w+i66UZfDc8wHh0xrwiRNN+UwH98GIJkTeZqX9rg0i0ptwzqW+uYeIF0T4F8LR7A==", + "version": "4.0.4", + "resolved": "https://registry.npmjs.org/tinyspy/-/tinyspy-4.0.4.tgz", + "integrity": "sha512-azl+t0z7pw/z958Gy9svOTuzqIk6xq+NSheJzn5MMWtWTFywIacg2wUlzKFGtt3cthx0r2SxMK0yzJOR0IES7Q==", "dev": true, "license": "MIT", "engines": { @@ -15953,9 +15019,9 @@ "license": "MIT" }, "node_modules/ts-jest": { - "version": "29.4.2", - "resolved": "https://registry.npmjs.org/ts-jest/-/ts-jest-29.4.2.tgz", - "integrity": "sha512-pBNOkn4HtuLpNrXTMVRC9b642CBaDnKqWXny4OzuoULT9S7Kf8MMlaRe2veKax12rjf5WcpMBhVPbQurlWGNxA==", + "version": "29.4.6", + "resolved": "https://registry.npmjs.org/ts-jest/-/ts-jest-29.4.6.tgz", + "integrity": "sha512-fSpWtOO/1AjSNQguk43hb/JCo16oJDnMJf3CdEGNkqsEX3t0KX96xvyX1D7PfLCpVoKu4MfVrqUkFyblYoY4lA==", "dev": true, "license": "MIT", "dependencies": { @@ -15965,7 +15031,7 @@ "json5": "^2.2.3", "lodash.memoize": "^4.1.2", "make-error": "^1.3.6", - "semver": "^7.7.2", + "semver": "^7.7.3", "type-fest": "^4.41.0", "yargs-parser": "^21.1.1" }, @@ -16094,10 +15160,11 @@ } }, "node_modules/typescript": { - "version": "5.9.2", - "resolved": "https://registry.npmjs.org/typescript/-/typescript-5.9.2.tgz", - "integrity": "sha512-CWBzXQrc/qOkhidw1OzBTQuYRbfyxDXJMVJ1XNwUHGROVmuaeiEm3OslpZ1RV96d7SKKjZKrSJu3+t/xlw3R9A==", + "version": "5.9.3", + "resolved": "https://registry.npmjs.org/typescript/-/typescript-5.9.3.tgz", + "integrity": "sha512-jl1vZzPDinLr9eUt3J/t7V6FgNEw9QjvBPdysz9KfQDD41fQrC2Y4vKQdiaUpFT4bXlb1RHhLpp8wtm6M5TgSw==", "dev": true, + "license": "Apache-2.0", "peer": true, "bin": { "tsc": "bin/tsc", @@ -16122,9 +15189,9 @@ } }, "node_modules/undici-types": { - "version": "7.12.0", - "resolved": "https://registry.npmjs.org/undici-types/-/undici-types-7.12.0.tgz", - "integrity": "sha512-goOacqME2GYyOZZfb5Lgtu+1IDmAlAEu5xnD3+xTzS10hT0vzpf0SPjkXwAw9Jm+4n/mQGDP3LO8CPbYROeBfQ==", + "version": "7.16.0", + "resolved": "https://registry.npmjs.org/undici-types/-/undici-types-7.16.0.tgz", + "integrity": "sha512-Zz+aZWSj8LE6zoxD+xrjh4VfkIG8Ya6LvYkZqtUQGJPZjYl53ypCaUwWqo7eI0x66KBGeRo+mlBEkMSeSZ38Nw==", "dev": true, "license": "MIT" }, @@ -16221,9 +15288,9 @@ } }, "node_modules/update-browserslist-db": { - "version": "1.1.3", - "resolved": "https://registry.npmjs.org/update-browserslist-db/-/update-browserslist-db-1.1.3.tgz", - "integrity": "sha512-UxhIZQ+QInVdunkDAaiazvvT/+fXL5Osr0JZlJulepYu6Jd7qJtDZjlur0emRlT71EN3ScPoE7gvsuIKKNavKw==", + "version": "1.2.2", + "resolved": "https://registry.npmjs.org/update-browserslist-db/-/update-browserslist-db-1.2.2.tgz", + "integrity": "sha512-E85pfNzMQ9jpKkA7+TJAi4TJN+tBCuWh5rUcS/sv6cFi+1q9LYDwDI5dpUL0u/73EElyQ8d3TEaeW4sPedBqYA==", "dev": true, "funding": [ { @@ -16317,9 +15384,9 @@ } }, "node_modules/vite": { - "version": "7.1.5", - "resolved": "https://registry.npmjs.org/vite/-/vite-7.1.5.tgz", - "integrity": "sha512-4cKBO9wR75r0BeIWWWId9XK9Lj6La5X846Zw9dFfzMRw38IlTk2iCcUt6hsyiDRcPidc55ZParFYDXi0nXOeLQ==", + "version": "7.2.6", + "resolved": "https://registry.npmjs.org/vite/-/vite-7.2.6.tgz", + "integrity": "sha512-tI2l/nFHC5rLh7+5+o7QjKjSR04ivXDF4jcgV0f/bTQ+OJiITy5S6gaynVsEM+7RqzufMnVbIon6Sr5x1SDYaQ==", "dev": true, "license": "MIT", "dependencies": { @@ -16551,11 +15618,17 @@ "node": ">= 8" } }, + "node_modules/web-worker": { + "version": "1.2.0", + "resolved": "https://registry.npmjs.org/web-worker/-/web-worker-1.2.0.tgz", + "integrity": "sha512-PgF341avzqyx60neE9DD+XS26MMNMoUQRz9NOZwW32nPQrF6p77f1htcnjBSEV8BGMKZ16choqUG4hyI0Hx7mA==", + "dev": true, + "license": "Apache-2.0" + }, "node_modules/which": { "version": "2.0.2", "resolved": "https://registry.npmjs.org/which/-/which-2.0.2.tgz", "integrity": "sha512-BLI3Tl1TW3Pvl70l3yq3Y64i+awpwXqsGBYWkkqMtnbXgrMD+yj7rhW0kuEDxzJaYXGjEW5ogapKNMEKNMjibA==", - "dev": true, "license": "ISC", "dependencies": { "isexe": "^2.0.0" @@ -16595,9 +15668,7 @@ "version": "8.1.0", "resolved": "https://registry.npmjs.org/wrap-ansi/-/wrap-ansi-8.1.0.tgz", "integrity": "sha512-si7QWI6zUMq56bESFvagtmzMdGOtoxfR+Sez11Mobfc7tm+VkUckk9bW2UeffTGVUbOksxmSw0AA2gs8g71NCQ==", - "dev": true, "license": "MIT", - "peer": true, "dependencies": { "ansi-styles": "^6.1.0", "string-width": "^5.0.1", @@ -16615,9 +15686,7 @@ "version": "7.0.0", "resolved": "https://registry.npmjs.org/wrap-ansi/-/wrap-ansi-7.0.0.tgz", "integrity": "sha512-YVGIj2kamLSTxw6NsZjoBxfSwsn0ycdesmc4p+Q21c5zPuZ1pl+NfxVdxPtdHvmNVOQ6XSYG4AUtyt/Fi7D16Q==", - "dev": true, "license": "MIT", - "peer": true, "dependencies": { "ansi-styles": "^4.0.0", "string-width": "^4.1.0", @@ -16634,9 +15703,7 @@ "version": "5.0.1", "resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-5.0.1.tgz", "integrity": "sha512-quJQXlTSUGL2LH9SUXo8VwsY4soanhgo6LNSm84E1LBcE8s3O0wpdiRzyR9z/ZZJMlMWv37qOOb9pdJlMUEKFQ==", - "dev": true, "license": "MIT", - "peer": true, "engines": { "node": ">=8" } @@ -16645,17 +15712,13 @@ "version": "8.0.0", "resolved": "https://registry.npmjs.org/emoji-regex/-/emoji-regex-8.0.0.tgz", "integrity": "sha512-MSjYzcWNOA0ewAHpz0MxpYFvwg6yjy1NG3xteoqz644VCo/RPgnr1/GGt+ic3iJTzQ8Eu3TdM14SawnVUmGE6A==", - "dev": true, - "license": "MIT", - "peer": true + "license": "MIT" }, "node_modules/wrap-ansi-cjs/node_modules/string-width": { "version": "4.2.3", "resolved": "https://registry.npmjs.org/string-width/-/string-width-4.2.3.tgz", "integrity": "sha512-wKyQRQpjJ0sIp62ErSZdGsjMJWsap5oRNihHhu6G7JVO/9jIB6UyevL+tXuOqrng8j/cxKTWyWUwvSTriiZz/g==", - "dev": true, "license": "MIT", - "peer": true, "dependencies": { "emoji-regex": "^8.0.0", "is-fullwidth-code-point": "^3.0.0", @@ -16669,9 +15732,7 @@ "version": "6.0.1", "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-6.0.1.tgz", "integrity": "sha512-Y38VPSHcqkFrCpFnQ9vuSXmquuv5oXOKpGeT6aGrr3o3Gc9AlVa6JBfUSOCnbxGGZF+/0ooI7KrPuUSztUdU5A==", - "dev": true, "license": "MIT", - "peer": true, "dependencies": { "ansi-regex": "^5.0.1" }, @@ -16683,9 +15744,7 @@ "version": "6.2.3", "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-6.2.3.tgz", "integrity": "sha512-4Dj6M28JB+oAH8kFkTLUo+a2jwOFkuqb3yucU0CANcRRUbxS0cP0nZYCGjcc3BNXwRIsUVmDGgzawme7zvJHvg==", - "dev": true, "license": "MIT", - "peer": true, "engines": { "node": ">=12" }, @@ -16707,7 +15766,6 @@ "integrity": "sha512-+QU2zd6OTD8XWIJCbffaiQeH9U73qIqafo1x6V1snCWYGJf6cVE0cDR4D8xRzcEnfI21IFrUPzPGtcPf8AC+Rw==", "dev": true, "license": "ISC", - "peer": true, "dependencies": { "imurmurhash": "^0.1.4", "signal-exit": "^4.0.1" @@ -16722,7 +15780,6 @@ "integrity": "sha512-bzyZ1e88w9O1iNJbKnOlvYTrWPDl46O1bG0D3XInv+9tkPrxrN8jUUTiFlDkkmKWgn1M6CfIA13SuGqOa9Korw==", "dev": true, "license": "ISC", - "peer": true, "engines": { "node": ">=14" }, @@ -16730,6 +15787,27 @@ "url": "https://github.com/sponsors/isaacs" } }, + "node_modules/ws": { + "version": "8.18.3", + "resolved": "https://registry.npmjs.org/ws/-/ws-8.18.3.tgz", + "integrity": "sha512-PEIGCY5tSlUt50cqyMXfCzX+oOPqN0vuGqWzbcJ2xvnkzkq46oOpz7dQaTDBdfICb4N14+GARUDw2XV2N4tvzg==", + "license": "MIT", + "engines": { + "node": ">=10.0.0" + }, + "peerDependencies": { + "bufferutil": "^4.0.1", + "utf-8-validate": ">=5.0.2" + }, + "peerDependenciesMeta": { + "bufferutil": { + "optional": true + }, + "utf-8-validate": { + "optional": true + } + } + }, "node_modules/xtend": { "version": "4.0.2", "resolved": "https://registry.npmjs.org/xtend/-/xtend-4.0.2.tgz", @@ -16759,15 +15837,18 @@ "peer": true }, "node_modules/yaml": { - "version": "2.8.1", - "resolved": "https://registry.npmjs.org/yaml/-/yaml-2.8.1.tgz", - "integrity": "sha512-lcYcMxX2PO9XMGvAJkJ3OsNMw+/7FKes7/hgerGUYWIoWu5j/+YQqcZr5JnPZWzOsEBgMbSbiSTn/dv/69Mkpw==", + "version": "2.8.2", + "resolved": "https://registry.npmjs.org/yaml/-/yaml-2.8.2.tgz", + "integrity": "sha512-mplynKqc1C2hTVYxd0PU2xQAc22TI1vShAYGksCCfxbn/dFwnHTNi1bvYsBTkhdUNtGIf5xNOg938rrSSYvS9A==", "license": "ISC", "bin": { "yaml": "bin.mjs" }, "engines": { "node": ">= 14.6" + }, + "funding": { + "url": "https://github.com/sponsors/eemeli" } }, "node_modules/yargs": { diff --git a/packages/openai-adapters/package.json b/packages/openai-adapters/package.json index c120671bd..c1ad66ec5 100644 --- a/packages/openai-adapters/package.json +++ b/packages/openai-adapters/package.json @@ -13,11 +13,12 @@ "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.929.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", + "@google/genai": "^1.30.0", "dotenv": "^16.5.0", "google-auth-library": "^10.4.1", "json-schema": "^0.4.0", diff --git a/packages/openai-adapters/src/apis/Anthropic.ts b/packages/openai-adapters/src/apis/Anthropic.ts index 66656957a..6b601b424 100644 --- a/packages/openai-adapters/src/apis/Anthropic.ts +++ b/packages/openai-adapters/src/apis/Anthropic.ts @@ -456,7 +456,7 @@ export class AnthropicApi implements BaseLlmApi { private getHeaders(): Record { const enableCaching = this.config?.cachingStrategy !== "none"; - return getAnthropicHeaders(this.config.apiKey, enableCaching); + return getAnthropicHeaders(this.config.apiKey, enableCaching, this.apiBase); } async completionNonStream( diff --git a/packages/openai-adapters/src/apis/AnthropicUtils.test.ts b/packages/openai-adapters/src/apis/AnthropicUtils.test.ts new file mode 100644 index 000000000..7ed572c80 --- /dev/null +++ b/packages/openai-adapters/src/apis/AnthropicUtils.test.ts @@ -0,0 +1,193 @@ +import { vi } from "vitest"; +import { + getAnthropicHeaders, + isAzureAnthropicEndpoint, +} from "./AnthropicUtils.js"; + +describe("isAzureAnthropicEndpoint", () => { + describe("should return true for Azure endpoints", () => { + it("detects Azure AI Foundry endpoint", () => { + expect( + isAzureAnthropicEndpoint( + "https://my-resource.services.ai.azure.com/anthropic", + ), + ).toBe(true); + }); + + it("detects Azure Cognitive Services endpoint", () => { + expect( + isAzureAnthropicEndpoint( + "https://my-resource.cognitiveservices.azure.com/anthropic", + ), + ).toBe(true); + }); + + it("handles case insensitivity", () => { + expect( + isAzureAnthropicEndpoint( + "https://my-resource.SERVICES.AI.AZURE.COM/anthropic", + ), + ).toBe(true); + }); + + it("handles mixed case", () => { + expect( + isAzureAnthropicEndpoint( + "https://My-Resource.Services.AI.Azure.Com/anthropic/v1/messages", + ), + ).toBe(true); + }); + }); + + describe("should return false for non-Azure endpoints", () => { + it("returns false for standard Anthropic endpoint", () => { + expect(isAzureAnthropicEndpoint("https://api.anthropic.com")).toBe(false); + }); + + it("returns false for undefined", () => { + expect(isAzureAnthropicEndpoint(undefined)).toBe(false); + }); + + it("returns false for empty string", () => { + expect(isAzureAnthropicEndpoint("")).toBe(false); + }); + + it("returns false for invalid URL", () => { + expect(isAzureAnthropicEndpoint("not-a-valid-url")).toBe(false); + }); + + it("returns false for other providers", () => { + expect(isAzureAnthropicEndpoint("https://api.openai.com/v1")).toBe(false); + }); + }); + + describe("URL parsing security", () => { + it("rejects Azure pattern in path (not hostname)", () => { + // This should NOT match - Azure domain is in path, not hostname + expect( + isAzureAnthropicEndpoint( + "https://evil.com/services.ai.azure.com/anthropic", + ), + ).toBe(false); + }); + + it("rejects Azure pattern as subdomain of non-Azure domain", () => { + expect( + isAzureAnthropicEndpoint( + "https://services.ai.azure.com.evil.com/anthropic", + ), + ).toBe(false); + }); + }); +}); + +describe("getAnthropicHeaders", () => { + describe("authentication header", () => { + it("uses x-api-key for standard Anthropic endpoint", () => { + const headers = getAnthropicHeaders( + "test-key", + false, + "https://api.anthropic.com", + ); + expect(headers["x-api-key"]).toBe("test-key"); + expect(headers["api-key"]).toBeUndefined(); + }); + + it("uses api-key for Azure AI Foundry endpoint", () => { + const headers = getAnthropicHeaders( + "azure-key", + false, + "https://my-resource.services.ai.azure.com/anthropic", + ); + expect(headers["api-key"]).toBe("azure-key"); + expect(headers["x-api-key"]).toBeUndefined(); + }); + + it("uses api-key for Azure Cognitive Services endpoint", () => { + const headers = getAnthropicHeaders( + "azure-key", + false, + "https://my-resource.cognitiveservices.azure.com/anthropic", + ); + expect(headers["api-key"]).toBe("azure-key"); + expect(headers["x-api-key"]).toBeUndefined(); + }); + + it("uses x-api-key when apiBase is undefined", () => { + const headers = getAnthropicHeaders("test-key", false, undefined); + expect(headers["x-api-key"]).toBe("test-key"); + expect(headers["api-key"]).toBeUndefined(); + }); + }); + + describe("caching headers", () => { + it("includes anthropic-beta header when caching is enabled", () => { + const headers = getAnthropicHeaders("test-key", true); + expect(headers["anthropic-beta"]).toBe("prompt-caching-2024-07-31"); + }); + + it("does not include anthropic-beta header when caching is disabled", () => { + const headers = getAnthropicHeaders("test-key", false); + expect(headers["anthropic-beta"]).toBeUndefined(); + }); + + it("includes caching header for Azure endpoints too", () => { + const headers = getAnthropicHeaders( + "azure-key", + true, + "https://my-resource.services.ai.azure.com/anthropic", + ); + expect(headers["anthropic-beta"]).toBe("prompt-caching-2024-07-31"); + }); + }); + + describe("standard headers", () => { + it("always includes anthropic-version header", () => { + const headers = getAnthropicHeaders("test-key", false); + expect(headers["anthropic-version"]).toBe("2023-06-01"); + }); + + it("always includes Content-Type and Accept headers", () => { + const headers = getAnthropicHeaders("test-key", false); + expect(headers["Content-Type"]).toBe("application/json"); + expect(headers["Accept"]).toBe("application/json"); + }); + }); + + describe("key/endpoint mismatch warning", () => { + it("warns when Azure endpoint is used with Anthropic-style key", () => { + const warnSpy = vi.spyOn(console, "warn").mockImplementation(() => {}); + getAnthropicHeaders( + "sk-ant-test-key", + false, + "https://my-resource.services.ai.azure.com/anthropic", + ); + expect(warnSpy).toHaveBeenCalledWith( + expect.stringContaining("Azure endpoint detected"), + ); + warnSpy.mockRestore(); + }); + + it("does not warn when Azure endpoint is used with Azure key", () => { + const warnSpy = vi.spyOn(console, "warn").mockImplementation(() => {}); + getAnthropicHeaders( + "azure-api-key-12345", + false, + "https://my-resource.services.ai.azure.com/anthropic", + ); + expect(warnSpy).not.toHaveBeenCalled(); + warnSpy.mockRestore(); + }); + + it("does not warn when standard Anthropic endpoint is used with Anthropic key", () => { + const warnSpy = vi.spyOn(console, "warn").mockImplementation(() => {}); + getAnthropicHeaders( + "sk-ant-test-key", + false, + "https://api.anthropic.com", + ); + expect(warnSpy).not.toHaveBeenCalled(); + warnSpy.mockRestore(); + }); + }); +}); diff --git a/packages/openai-adapters/src/apis/AnthropicUtils.ts b/packages/openai-adapters/src/apis/AnthropicUtils.ts index cc0df5ee0..46b28e578 100644 --- a/packages/openai-adapters/src/apis/AnthropicUtils.ts +++ b/packages/openai-adapters/src/apis/AnthropicUtils.ts @@ -34,15 +34,57 @@ export function getAnthropicErrorMessage(response: ErrorResponse): string { } } +/** + * Detects if the given API base URL is an Azure-hosted Anthropic endpoint. + * Azure AI Foundry hosts Anthropic models but requires a different auth header. + * + * Supported Azure endpoint patterns: + * - *.services.ai.azure.com (Azure AI Foundry) + * - *.cognitiveservices.azure.com (Azure Cognitive Services) + * + * @param apiBase - The API base URL to check + * @returns true if the endpoint is an Azure-hosted Anthropic endpoint + */ +export function isAzureAnthropicEndpoint(apiBase?: string): boolean { + if (!apiBase) { + return false; + } + + try { + const url = new URL(apiBase); + const hostname = url.hostname.toLowerCase(); + return ( + hostname.endsWith(".services.ai.azure.com") || + hostname.endsWith(".cognitiveservices.azure.com") + ); + } catch { + // Invalid URL - fall back to false + return false; + } +} + export function getAnthropicHeaders( apiKey: string, enableCaching: boolean, + apiBase?: string, ): Record { + const isAzure = isAzureAnthropicEndpoint(apiBase); + + // Warn if Azure endpoint is used with Anthropic-style key + if (isAzure && apiKey.startsWith("sk-ant-")) { + console.warn( + "[Continue] Azure endpoint detected but API key appears to be a standard Anthropic key (sk-ant-*). " + + "Azure endpoints require Azure API keys from your AI Foundry resource.", + ); + } + + const authHeaderName = isAzure ? "api-key" : "x-api-key"; + const headers: Record = { "Content-Type": "application/json", Accept: "application/json", "anthropic-version": "2023-06-01", - "x-api-key": apiKey, + [authHeaderName]: apiKey, }; if (enableCaching) { diff --git a/packages/openai-adapters/src/apis/Gemini.ts b/packages/openai-adapters/src/apis/Gemini.ts index 24e2949ad..628f6f234 100644 --- a/packages/openai-adapters/src/apis/Gemini.ts +++ b/packages/openai-adapters/src/apis/Gemini.ts @@ -1,4 +1,4 @@ -import { streamResponse } from "@continuedev/fetch"; +import { GoogleGenAI } from "@google/genai"; import { OpenAI } from "openai/index"; import { ChatCompletion, @@ -64,20 +64,15 @@ interface GeminiToolDelta export class GeminiApi implements BaseLlmApi { apiBase: string = "https://generativelanguage.googleapis.com/v1beta/"; + private genAI: GoogleGenAI; static maxStopSequences = 5; constructor(protected config: GeminiConfig) { this.apiBase = config.apiBase ?? this.apiBase; - } - - private _convertMessages( - msgs: OpenAI.Chat.Completions.ChatCompletionMessageParam[], - ): any[] { - return msgs.map((m) => ({ - role: m.role === "assistant" ? "CHATBOT" : "USER", - message: m.content, - })); + this.genAI = new GoogleGenAI({ + apiKey: this.config.apiKey, + }); } private _oaiPartToGeminiPart( @@ -111,9 +106,8 @@ export class GeminiApi implements BaseLlmApi { public _convertBody( oaiBody: ChatCompletionCreateParams, - url: string, + isV1API: boolean, includeToolCallIds: boolean, - overrideIsV1?: boolean, ) { const generationConfig: any = {}; @@ -131,8 +125,6 @@ export class GeminiApi implements BaseLlmApi { generationConfig.stopSequences = stop.filter((x) => x.trim() !== ""); } - const isV1API = overrideIsV1 ?? url.includes("/v1/"); - const toolCallIdToNameMap = new Map(); oaiBody.messages.forEach((msg) => { if (msg.role === "assistant" && msg.tool_calls) { @@ -319,109 +311,74 @@ export class GeminiApi implements BaseLlmApi { }; } - async *handleStreamResponse(response: any, model: string) { - let buffer = ""; + private async *processStreamResponse( + response: AsyncIterable, + model: string, + ): AsyncGenerator { let usage: UsageInfo | undefined = undefined; - for await (const chunk of streamResponse(response as any)) { - buffer += chunk; - if (buffer.startsWith("[")) { - buffer = buffer.slice(1); - } - if (buffer.endsWith("]")) { - buffer = buffer.slice(0, -1); - } - if (buffer.startsWith(",")) { - buffer = buffer.slice(1); + + for await (const chunk of response) { + if (chunk.usageMetadata) { + usage = { + prompt_tokens: chunk.usageMetadata.promptTokenCount || 0, + completion_tokens: chunk.usageMetadata.candidatesTokenCount || 0, + total_tokens: chunk.usageMetadata.totalTokenCount || 0, + }; } - const parts = buffer.split("\n,"); - - let foundIncomplete = false; - for (let i = 0; i < parts.length; i++) { - const part = parts[i]; - let data; - try { - data = JSON.parse(part); - } catch (e) { - foundIncomplete = true; - continue; // yo! - } - if (data.error) { - throw new Error(data.error.message); - } - - // Check for usage metadata - if (data.usageMetadata) { - usage = { - prompt_tokens: data.usageMetadata.promptTokenCount || 0, - completion_tokens: data.usageMetadata.candidatesTokenCount || 0, - total_tokens: data.usageMetadata.totalTokenCount || 0, - }; - } - - // In case of max tokens reached, gemini will sometimes return content with no parts, even though that doesn't match the API spec - const contentParts = data?.candidates?.[0]?.content?.parts; - if (contentParts) { - for (const part of contentParts) { - if ("text" in part) { - const thoughtSignature = part?.thoughtSignature; - if (thoughtSignature) { - yield chatChunkFromDelta({ - model, - delta: { - role: "assistant", - extra_content: { - google: { - thought_signature: thoughtSignature, - }, - }, - } as GeminiToolDelta, - }); - } - - yield chatChunk({ - content: part.text, - model, - }); - } else if ("functionCall" in part) { - const thoughtSignature = part?.thoughtSignature; + const contentParts = chunk?.candidates?.[0]?.content?.parts; + if (contentParts) { + for (const part of contentParts) { + if (part.text !== undefined) { + const thoughtSignature = (part as any)?.thoughtSignature; + if (thoughtSignature) { yield chatChunkFromDelta({ model, delta: { - tool_calls: [ - { - index: 0, - id: part.functionCall.id ?? uuidv4(), - type: "function", - function: { - name: part.functionCall.name, - arguments: JSON.stringify(part.functionCall.args), - }, - ...(thoughtSignature && { - extra_content: { - google: { - thought_signature: thoughtSignature, - }, - }, - }), + role: "assistant", + extra_content: { + google: { + thought_signature: thoughtSignature, }, - ], - }, + }, + } as GeminiToolDelta, }); } + + yield chatChunk({ + content: part.text, + model, + }); + } else if (part.functionCall) { + const thoughtSignature = (part as any)?.thoughtSignature; + yield chatChunkFromDelta({ + model, + delta: { + tool_calls: [ + { + index: 0, + id: (part.functionCall as any).id ?? uuidv4(), + type: "function", + function: { + name: part.functionCall.name ?? "", + arguments: JSON.stringify(part.functionCall.args ?? {}), + }, + ...(thoughtSignature && { + extra_content: { + google: { + thought_signature: thoughtSignature, + }, + }, + }), + }, + ], + }, + }); } - } else { - console.warn("Unexpected response format:", data); } } - if (foundIncomplete) { - buffer = parts[parts.length - 1]; - } else { - buffer = ""; - } } - // Emit usage at the end if we have it if (usage) { yield usageChatChunk({ model, @@ -430,24 +387,55 @@ export class GeminiApi implements BaseLlmApi { } } + /**generates stream from @google/genai sdk */ + private async generateStream( + genAI: GoogleGenAI, + model: string, + convertedBody: ReturnType, + ) { + return genAI.models.generateContentStream({ + model, + contents: convertedBody.contents, + config: { + systemInstruction: convertedBody.systemInstruction, + tools: convertedBody.tools, + ...convertedBody.generationConfig, + }, + }); + } + async *chatCompletionStream( body: ChatCompletionCreateParamsStreaming, - signal: AbortSignal, + _signal: AbortSignal, ): AsyncGenerator { - const apiURL = new URL( - `models/${body.model}:streamGenerateContent?key=${this.config.apiKey}`, - this.apiBase, - ).toString(); - const convertedBody = this._convertBody(body, apiURL, true); - const resp = await customFetch(this.config.requestOptions)(apiURL, { - method: "POST", - body: JSON.stringify(convertedBody), - signal, - }); - yield* this.handleStreamResponse(resp, body.model); + const convertedBody = this._convertBody( + body, + this.apiBase.includes("/v1/"), + true, + ); + const response = await this.generateStream( + this.genAI, + body.model, + convertedBody, + ); + yield* this.processStreamResponse(response, body.model); } + + async *streamWithGenAI( + genAI: GoogleGenAI, + body: ChatCompletionCreateParamsStreaming, + ): AsyncGenerator { + const convertedBody = this._convertBody(body, false, true); + const response = await this.generateStream( + genAI, + body.model, + convertedBody, + ); + yield* this.processStreamResponse(response, body.model); + } + completionNonStream( - body: CompletionCreateParamsNonStreaming, + _body: CompletionCreateParamsNonStreaming, ): Promise { throw new Error("Method not implemented."); } 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/apis/VertexAI.ts b/packages/openai-adapters/src/apis/VertexAI.ts index 74de768b8..6fe330f7c 100644 --- a/packages/openai-adapters/src/apis/VertexAI.ts +++ b/packages/openai-adapters/src/apis/VertexAI.ts @@ -1,4 +1,5 @@ import { streamSse } from "@continuedev/fetch"; +import { GoogleGenAI } from "@google/genai"; import { AuthClient, GoogleAuth, JWT, auth } from "google-auth-library"; import { ChatCompletion, @@ -30,6 +31,7 @@ export class VertexAIApi implements BaseLlmApi { geminiInstance: GeminiApi; mistralInstance: OpenAIApi; private clientPromise?: Promise; + private genAI?: GoogleGenAI; static AUTH_SCOPES = "https://www.googleapis.com/auth/cloud-platform"; constructor(protected config: VertexAIConfig) { @@ -49,6 +51,22 @@ export class VertexAIApi implements BaseLlmApi { provider: "mistral", apiKey: "dud", }); + + this.setupGenAI(); + } + + private setupGenAI(): void { + const { apiKey, env } = this.config; + + if (apiKey) { + this.genAI = new GoogleGenAI({ apiKey }); + } else if (env?.projectId && env?.region) { + this.genAI = new GoogleGenAI({ + vertexai: true, + project: env.projectId, + location: env.region, + }); + } } private setupAuthentication(): void { @@ -204,14 +222,9 @@ export class VertexAIApi implements BaseLlmApi { private convertGeminiBody( oaiBody: ChatCompletionCreateParams, - url: URL, + isV1API: boolean, ): object { - return this.geminiInstance._convertBody( - oaiBody, - url.toString(), - false, - false, - ); + return this.geminiInstance._convertBody(oaiBody, isV1API, false); } async chatCompletionNonStream( @@ -241,7 +254,10 @@ export class VertexAIApi implements BaseLlmApi { url = this.buildUrl( `publishers/google/models/${body.model}:generateContent`, ); - requestBody = this.convertGeminiBody(body, url); + requestBody = this.convertGeminiBody( + body, + url.toString().includes("/v1/"), + ); break; case "mistral": url = this.buildUrl( @@ -305,54 +321,19 @@ export class VertexAIApi implements BaseLlmApi { ); } - const headers = await this.getAuthHeaders(); - let url: URL; - let requestBody: any; - switch (vertexProvider) { case "anthropic": - url = this.buildUrl( + const anthropicHeaders = await this.getAuthHeaders(); + const url = this.buildUrl( `publishers/anthropic/models/${body.model}:streamRawPredict`, ); - requestBody = this.convertAnthropicBody(body); - break; - case "gemini": - url = this.buildUrl( - `publishers/google/models/${body.model}:streamGenerateContent`, - ); - requestBody = this.convertGeminiBody(body, url); - break; - case "mistral": - url = this.buildUrl( - `publishers/mistralai/models/${body.model}:streamRawPredict`, - ); - requestBody = body; - break; - default: - throw new Error(`Unsupported model: ${body.model}`); - } + const requestBody = this.convertAnthropicBody(body); - switch (vertexProvider) { - case "mistral": - const mistralResponse = - await this.mistralInstance.openai.chat.completions.create( - this.mistralInstance.modifyChatBody(body), - { - signal, - headers, - }, - ); - for await (const result of mistralResponse) { - yield result; - } - break; - case "anthropic": - case "gemini": const response = await customFetch(this.config.requestOptions)( url.toString(), { method: "POST", - headers, + headers: anthropicHeaders, body: JSON.stringify(requestBody), signal, }, @@ -366,17 +347,36 @@ export class VertexAIApi implements BaseLlmApi { } if (response.status === 499) { - return; // Aborted by user + return; } - if (vertexProvider === "gemini") { - yield* this.geminiInstance.handleStreamResponse(response, body.model); - } else { - yield* this.anthropicInstance.handleStreamResponse( - response, - body.model, + yield* this.anthropicInstance.handleStreamResponse( + response, + body.model, + ); + break; + case "gemini": + if (!this.genAI) { + throw new Error("VertexAI: GoogleGenAI not initialized"); + } + yield* this.geminiInstance.streamWithGenAI(this.genAI, body); + break; + case "mistral": + const headers = await this.getAuthHeaders(); + const mistralResponse = + await this.mistralInstance.openai.chat.completions.create( + this.mistralInstance.modifyChatBody(body), + { + signal, + headers, + }, ); + for await (const result of mistralResponse) { + yield result; } break; + + default: + throw new Error(`Unsupported model: ${body.model}`); } } 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: {