diff --git a/.github/workflows/compliance.yaml b/.github/workflows/compliance.yaml deleted file mode 100644 index e2887e743..000000000 --- a/.github/workflows/compliance.yaml +++ /dev/null @@ -1,202 +0,0 @@ -name: PR Compliance Checks - -on: - pull_request: - types: [opened, synchronize, reopened, ready_for_review] - branches: [main] - workflow_dispatch: - -concurrency: - group: ${{ github.workflow }}-${{ github.ref }} - cancel-in-progress: true - -jobs: - conventional-commits: - name: Validate Conventional Commits - runs-on: ubuntu-latest - if: ${{ !github.event.pull_request.draft }} - continue-on-error: true - permissions: - pull-requests: write - issues: write - contents: read - steps: - - name: Validate PR title format - id: pr-title-check - run: | - PR_TITLE="${{ github.event.pull_request.title }}" - echo "Checking PR title: $PR_TITLE" - - # Regex pattern for conventional commits - PATTERN="^(feat|fix|docs|style|refactor|perf|test|build|ci|chore|revert)(\(.+\))?!?: .+" - - if [[ $PR_TITLE =~ $PATTERN ]]; then - echo "✅ PR title follows conventional commit format" - echo "valid=true" >> $GITHUB_OUTPUT - else - echo "❌ PR title does not follow conventional commit format" - echo "valid=false" >> $GITHUB_OUTPUT - # Don't exit with failure - just mark as invalid for comment - fi - - - name: Add PR title guidance comment - if: always() && steps.pr-title-check.outputs.valid == 'false' - uses: actions/github-script@v8 - with: - script: | - const { data: comments } = await github.rest.issues.listComments({ - owner: context.repo.owner, - repo: context.repo.repo, - issue_number: context.issue.number, - }); - - const botComment = comments.find(comment => - comment.user.type === 'Bot' && - comment.body.includes('PR Title Format') - ); - - if (!botComment) { - await github.rest.issues.createComment({ - owner: context.repo.owner, - repo: context.repo.repo, - issue_number: context.issue.number, - body: [ - "## ⚠️ PR Title Format", - "", - "Your PR title doesn't follow the conventional commit format, but **this won't block your PR from being merged**. We recommend using this format for better project organization.", - "", - "### Expected Format:", - "```", - "[optional scope]: ", - "```", - "", - "### Examples:", - "- `feat: add changelog generation support`", - "- `fix: resolve login redirect issue`", - "- `docs: update README with new instructions`", - "- `chore: update dependencies`", - "", - "### Valid Types:", - "`feat`, `fix`, `docs`, `style`, `refactor`, `perf`, `test`, `build`, `ci`, `chore`, `revert`", - "", - "This helps with:", - "- 📝 Automatic changelog generation", - "- 🚀 Automated semantic versioning", - "- 📊 Better project history tracking", - "", - "*This is a non-blocking warning - your PR can still be merged without fixing this.*" - ].join('\n') - }); - } - - name: Ensure job always succeeds - if: always() - run: echo "✅ Conventional commits check completed (warning only)" - - security-audit: - name: Security Audit - runs-on: ubuntu-latest - if: ${{ !github.event.pull_request.draft }} - permissions: - security-events: write - contents: read - steps: - - name: Checkout code - uses: actions/checkout@v6 - - - name: Setup Node.js - uses: actions/setup-node@v6 - with: - node-version-file: ".nvmrc" - cache: "npm" - - - name: Install dependencies - run: npm ci - - - name: Fix vulnerabilities - run: npm audit fix - - - name: Run npm audit - run: npm audit --audit-level=moderate - - - name: Initialize CodeQL - uses: github/codeql-action/init@v4 - with: - languages: javascript - - - name: Perform CodeQL Analysis - uses: github/codeql-action/analyze@v4 - - # Use this for any files that we want to be certain exist - # Basically creates a forcing function to discuss were anyone to want to remove them - file-validation: - name: Required Files Check - runs-on: ubuntu-latest - if: ${{ !github.event.pull_request.draft }} - steps: - - name: Checkout code - uses: actions/checkout@v6 - - - name: Check required files - run: | - required_files=( - "package.json" - "package-lock.json" - "README.md" - "LICENSE" - ".gitignore" - "tsconfig.json" - "SECURITY.md" - "CONTRIBUTING.md" - ".nvmrc" - ".prettierrc" - ".prettierignore" - ) - - missing_files=() - for file in "${required_files[@]}"; do - if [[ ! -f "$file" ]]; then - missing_files+=("$file") - fi - done - - if [[ ${#missing_files[@]} -gt 0 ]]; then - echo "❌ Missing required files:" - printf '%s\n' "${missing_files[@]}" - exit 1 - else - echo "✅ All required files present" - fi - - compliance-summary: - name: Compliance Summary - runs-on: ubuntu-latest - needs: [conventional-commits, security-audit, file-validation] - if: always() && !github.event.pull_request.draft - steps: - - name: Check compliance status - run: | - echo "## 🔍 Compliance Check Results" >> $GITHUB_STEP_SUMMARY - echo "" >> $GITHUB_STEP_SUMMARY - - if [[ "${{ needs.conventional-commits.result }}" == "success" ]]; then - echo "✅ Conventional Commits: PASSED" >> $GITHUB_STEP_SUMMARY - elif [[ "${{ needs.conventional-commits.result }}" == "failure" ]]; then - echo "⚠️ Conventional Commits: WARNING (non-blocking)" >> $GITHUB_STEP_SUMMARY - else - echo "❌ Conventional Commits: SKIPPED" >> $GITHUB_STEP_SUMMARY - fi - - if [[ "${{ needs.security-audit.result }}" == "success" ]]; then - echo "✅ Security Audit: PASSED" >> $GITHUB_STEP_SUMMARY - else - echo "❌ Security Audit: FAILED" >> $GITHUB_STEP_SUMMARY - fi - - if [[ "${{ needs.file-validation.result }}" == "success" ]]; then - echo "✅ File Validation: PASSED" >> $GITHUB_STEP_SUMMARY - else - echo "❌ File Validation: FAILED" >> $GITHUB_STEP_SUMMARY - fi - - echo "" >> $GITHUB_STEP_SUMMARY - echo "📊 **Overall Status**: ${{ job.status }}" >> $GITHUB_STEP_SUMMARY diff --git a/.github/workflows/continue-general-review.yaml b/.github/workflows/continue-general-review.yaml deleted file mode 100644 index 34611923f..000000000 --- a/.github/workflows/continue-general-review.yaml +++ /dev/null @@ -1,28 +0,0 @@ -name: Continue General Review - -on: - push: - branches: - - main - pull_request: - types: [opened, ready_for_review] - issue_comment: - types: [created] - -permissions: - contents: read - pull-requests: write - issues: write - -jobs: - general-code-review: - name: Continue General Review - runs-on: ubuntu-latest - timeout-minutes: 10 - steps: - - name: Run Continue PR Review Action - uses: continuedev/continue/actions/general-review@main - with: - continue-api-key: ${{ secrets.CONTINUE_API_KEY }} - continue-org: "continuedev" - continue-agent: "empty-agent" diff --git a/core/config/yaml/loadYaml.ts b/core/config/yaml/loadYaml.ts index cd684db17..40278fdbe 100644 --- a/core/config/yaml/loadYaml.ts +++ b/core/config/yaml/loadYaml.ts @@ -1,9 +1,9 @@ import { AssistantUnrolled, + AssistantUnrolledNonNullable, BLOCK_TYPES, ConfigResult, ConfigValidationError, - isAssistantUnrolledNonNullable, mergeConfigYamlRequestOptions, mergeUnrolledAssistants, ModelRole, @@ -145,8 +145,8 @@ async function loadConfigYaml(options: { } } - if (config && isAssistantUnrolledNonNullable(config)) { - errors.push(...validateConfigYaml(config)); + if (config) { + errors.push(...validateConfigYaml(nonNullifyConfigYaml(config))); } if (errors?.some((error) => error.fatal)) { @@ -165,15 +165,30 @@ async function loadConfigYaml(options: { }; } +function nonNullifyConfigYaml( + unrolledAssistant: AssistantUnrolled, +): AssistantUnrolledNonNullable { + return { + ...unrolledAssistant, + data: unrolledAssistant.data?.filter((k) => !!k), + context: unrolledAssistant.context?.filter((k) => !!k), + docs: unrolledAssistant.docs?.filter((k) => !!k), + mcpServers: unrolledAssistant.mcpServers?.filter((k) => !!k), + models: unrolledAssistant.models?.filter((k) => !!k), + prompts: unrolledAssistant.prompts?.filter((k) => !!k), + rules: unrolledAssistant.rules?.filter((k) => !!k).map((k) => k!), + }; +} + export async function configYamlToContinueConfig(options: { - config: AssistantUnrolled; + unrolledAssistant: AssistantUnrolled; ide: IDE; ideInfo: IdeInfo; uniqueId: string; llmLogger: ILLMLogger; workOsAccessToken: string | undefined; }): Promise<{ config: ContinueConfig; errors: ConfigValidationError[] }> { - let { config, ide, ideInfo, uniqueId, llmLogger } = options; + let { unrolledAssistant, ide, ideInfo, uniqueId, llmLogger } = options; const localErrors: ConfigValidationError[] = []; @@ -203,22 +218,10 @@ export async function configYamlToContinueConfig(options: { subagent: null, }, rules: [], - requestOptions: { ...config.requestOptions }, + requestOptions: { ...unrolledAssistant.requestOptions }, }; - // Right now, if there are any missing packages in the config, then we will just throw an error - if (!isAssistantUnrolledNonNullable(config)) { - return { - config: continueConfig, - errors: [ - { - message: - "Failed to load config due to missing blocks, see which blocks are missing below", - fatal: true, - }, - ], - }; - } + const config = nonNullifyConfigYaml(unrolledAssistant); for (const rule of config.rules ?? []) { const convertedRule = convertYamlRuleToContinueRule(rule); @@ -255,9 +258,30 @@ export async function configYamlToContinueConfig(options: { continueConfig.slashCommands?.push(slashCommand); } } catch (e) { + // If the file is in a rules directory, we can provide a more helpful error message + // because we know it's likely a rule definition + const isRuleFile = + file.path.toLowerCase().includes("/rules/") || + file.path.toLowerCase().includes("\\rules\\"); + + let message = `Failed to convert prompt file ${file.path} to slash command: ${e instanceof Error ? e.message : e}`; + + if (isRuleFile) { + const isYamlError = + e instanceof Error && + (e.name?.includes("YAML") || e.message.includes("flow sequence")); + + const prefix = isYamlError + ? "Failed to parse rule definition" + : "Failed to process rule definition"; + + const errorDetails = e instanceof Error ? e.message : String(e); + message = `${prefix} ${file.path}: ${errorDetails}`; + } + localErrors.push({ fatal: false, - message: `Failed to convert prompt file ${file.path} to slash command: ${e instanceof Error ? e.message : e}`, + message, }); } }); @@ -447,7 +471,7 @@ export async function loadContinueConfigFromYaml(options: { const { config: continueConfig, errors: localErrors } = await configYamlToContinueConfig({ - config: configYamlResult.config, + unrolledAssistant: configYamlResult.config, ide, ideInfo, uniqueId, diff --git a/core/config/yaml/models.ts b/core/config/yaml/models.ts index 05fa48853..9e7a9ccdd 100644 --- a/core/config/yaml/models.ts +++ b/core/config/yaml/models.ts @@ -67,6 +67,12 @@ async function modelConfigToBaseLLM({ baseAgentSystemMessage: model.chatOptions?.baseAgentSystemMessage, basePlanSystemMessage: model.chatOptions?.basePlanSystemMessage, baseChatSystemMessage: model.chatOptions?.baseSystemMessage, + toolOverrides: model.chatOptions?.toolOverrides + ? Object.entries(model.chatOptions.toolOverrides).map(([name, o]) => ({ + name, + ...o, + })) + : undefined, capabilities: { tools: model.capabilities?.includes("tool_use"), uploadImage: model.capabilities?.includes("image_input"), diff --git a/core/index.d.ts b/core/index.d.ts index d88feb60b..8e9d43dc3 100644 --- a/core/index.d.ts +++ b/core/index.d.ts @@ -2,6 +2,7 @@ import { DataDestination, ModelRole, PromptTemplates, + ToolOverrideConfig, } from "@continuedev/config-yaml"; import Parser from "web-tree-sitter"; import { CodebaseIndexer } from "./indexing/CodebaseIndexer"; @@ -290,6 +291,7 @@ export interface BaseSessionMetadata { title: string; dateCreated: string; workspaceDirectory: string; + messageCount?: number; } export interface RangeInFile { @@ -694,6 +696,9 @@ export interface LLMOptions { sourceFile?: string; isFromAutoDetect?: boolean; + + /** Tool overrides for this model */ + toolOverrides?: ToolOverride[]; } type RequireAtLeastOne = Pick< @@ -1141,6 +1146,15 @@ export interface Tool { ) => ToolPolicy; } +/** + * Configuration for overriding built-in tool prompts. + * Extends ToolOverrideConfig with required name for array usage. + */ +export type ToolOverride = ToolOverrideConfig & { + /** Tool name to override (matches function.name, e.g., "read_file") */ + name: string; +}; + interface ToolChoice { type: "function"; function: { diff --git a/core/llm/autodetect.ts b/core/llm/autodetect.ts index 2adb20a02..67219e92e 100644 --- a/core/llm/autodetect.ts +++ b/core/llm/autodetect.ts @@ -70,6 +70,7 @@ const PROVIDER_HANDLES_TEMPLATING: string[] = [ "groq", "gemini", "docker", + "nous", // TODO add these, change to inverted logic so only the ones that need templating are hardcoded // Asksage.ts // Azure.ts @@ -365,6 +366,10 @@ function autodetectTemplateType(model: string): TemplateType | undefined { return "deepseek"; } + if (lower.includes("hermes")) { + return "chatml"; + } + if (lower.includes("ninja") || lower.includes("openchat")) { return "openchat"; } diff --git a/core/llm/countTokens.ts b/core/llm/countTokens.ts index 0749fbdfb..11cfc6cb2 100644 --- a/core/llm/countTokens.ts +++ b/core/llm/countTokens.ts @@ -18,6 +18,7 @@ import { import { renderChatMessage } from "../util/messageContent.js"; import { AsyncEncoder, LlamaAsyncEncoder } from "./asyncEncoder.js"; import { DEFAULT_PRUNING_LENGTH } from "./constants.js"; +import { getAdjustedTokenCountFromModel } from "./getAdjustedTokenCount.js"; import llamaTokenizer from "./llamaTokenizer.js"; interface Encoding { encode: Tiktoken["encode"]; @@ -114,8 +115,9 @@ function countTokens( modelName = "llama2", ): number { const encoding = encodingForModel(modelName); + let baseTokens = 0; if (Array.isArray(content)) { - return content.reduce((acc, part) => { + baseTokens = content.reduce((acc, part) => { return ( acc + (part.type === "text" @@ -124,8 +126,9 @@ function countTokens( ); }, 0); } else { - return encoding.encode(content ?? "", "all", []).length; + baseTokens = encoding.encode(content ?? "", "all", []).length; } + return getAdjustedTokenCountFromModel(baseTokens, modelName); } // https://community.openai.com/t/how-to-calculate-the-tokens-when-using-function-call/266573/10 diff --git a/core/llm/getAdjustedTokenCount.test.ts b/core/llm/getAdjustedTokenCount.test.ts new file mode 100644 index 000000000..ce6d1a826 --- /dev/null +++ b/core/llm/getAdjustedTokenCount.test.ts @@ -0,0 +1,48 @@ +import { getAdjustedTokenCountFromModel } from "./getAdjustedTokenCount"; + +describe("getAdjustedTokenCountFromModel", () => { + it("should return base tokens for non-special models", () => { + expect(getAdjustedTokenCountFromModel(100, "gpt-4")).toBe(100); + expect(getAdjustedTokenCountFromModel(100, "llama2")).toBe(100); + expect(getAdjustedTokenCountFromModel(100, "random-model")).toBe(100); + }); + + it("should apply multiplier for Claude models", () => { + expect(getAdjustedTokenCountFromModel(100, "claude-3-opus")).toBe(123); + expect(getAdjustedTokenCountFromModel(100, "claude-3.5-sonnet")).toBe(123); + expect(getAdjustedTokenCountFromModel(100, "CLAUDE-2")).toBe(123); + expect(getAdjustedTokenCountFromModel(50, "claude")).toBe(62); // 50 * 1.23 = 61.5, ceiled to 62 + }); + + it("should apply multiplier for Gemini models", () => { + expect(getAdjustedTokenCountFromModel(100, "gemini-pro")).toBe(118); + expect(getAdjustedTokenCountFromModel(100, "gemini-1.5-pro")).toBe(118); + expect(getAdjustedTokenCountFromModel(100, "GEMINI-flash")).toBe(118); + expect(getAdjustedTokenCountFromModel(50, "gemini")).toBe(59); // 50 * 1.18 = 59 + }); + + it("should apply multiplier for Mistral family models", () => { + expect(getAdjustedTokenCountFromModel(100, "mistral-large")).toBe(126); + expect(getAdjustedTokenCountFromModel(100, "mixtral-8x7b")).toBe(126); + expect(getAdjustedTokenCountFromModel(100, "devstral")).toBe(126); + expect(getAdjustedTokenCountFromModel(100, "CODESTRAL")).toBe(126); + expect(getAdjustedTokenCountFromModel(50, "mistral")).toBe(63); // 50 * 1.26 = 63 + }); + + it("should handle edge cases", () => { + expect(getAdjustedTokenCountFromModel(0, "claude")).toBe(0); + expect(getAdjustedTokenCountFromModel(1, "gemini")).toBe(2); // 1 * 1.18 = 1.18, ceiled to 2 + expect(getAdjustedTokenCountFromModel(1000, "mixtral")).toBe(1260); + }); + + it("should handle empty or undefined model names", () => { + expect(getAdjustedTokenCountFromModel(100, "")).toBe(100); + expect(getAdjustedTokenCountFromModel(100, undefined as any)).toBe(100); + }); + + it("should be case-insensitive", () => { + expect(getAdjustedTokenCountFromModel(100, "ClAuDe-3-OpUs")).toBe(123); + expect(getAdjustedTokenCountFromModel(100, "GeMiNi-PrO")).toBe(118); + expect(getAdjustedTokenCountFromModel(100, "MiXtRaL")).toBe(126); + }); +}); diff --git a/core/llm/getAdjustedTokenCount.ts b/core/llm/getAdjustedTokenCount.ts new file mode 100644 index 000000000..d700a8a76 --- /dev/null +++ b/core/llm/getAdjustedTokenCount.ts @@ -0,0 +1,38 @@ +// Importing a bunch of tokenizers can be very resource intensive (MB-scale per tokenizer) +// Using token counting APIs (e.g. for anthropic) can be complicated and unreliable in many environments +// So for now we will just use super fast gpt-tokenizer and apply safety buffers +// I'm using rough estimates from this article to apply safety buffers to common tokenizers +// which will have HIGHER token counts than gpt. Roughly using token ratio from article + 10% +// https://medium.com/@disparate-ai/not-all-tokens-are-created-equal-7347d549af4d +const ANTHROPIC_TOKEN_MULTIPLIER = 1.23; +const GEMINI_TOKEN_MULTIPLIER = 1.18; +const MISTRAL_TOKEN_MULTIPLIER = 1.26; + +/** + * Adjusts token count based on model-specific tokenizer differences. + * Since we use llama tokenizer (~= gpt tokenizer) for all models, we apply + * multipliers for models known to have higher token counts. + * + * @param baseTokens - Token count from llama/gpt tokenizer + * @param modelName - Name of the model + * @returns Adjusted token count with safety buffer + */ +export function getAdjustedTokenCountFromModel( + baseTokens: number, + modelName: string, +): number { + let multiplier = 1; + const lowerModelName = modelName?.toLowerCase() ?? ""; + if (lowerModelName.includes("claude")) { + multiplier = ANTHROPIC_TOKEN_MULTIPLIER; + } else if (lowerModelName.includes("gemini")) { + multiplier = GEMINI_TOKEN_MULTIPLIER; + } else if ( + lowerModelName.includes("stral") || + lowerModelName.includes("mixtral") + ) { + // Mistral family models: mistral, mixtral, codestral, devstral, etc + multiplier = MISTRAL_TOKEN_MULTIPLIER; + } + return Math.ceil(baseTokens * multiplier); +} diff --git a/core/llm/index.ts b/core/llm/index.ts index ceea1153d..dd6dd9c00 100644 --- a/core/llm/index.ts +++ b/core/llm/index.ts @@ -28,6 +28,7 @@ import { RequestOptions, TabAutocompleteOptions, TemplateType, + ToolOverride, Usage, } from "../index.js"; import { isLemonadeInstalled } from "../util/lemonadeHelper.js"; @@ -65,6 +66,8 @@ import { toCompleteBody, toFimBody, } from "./openaiTypeConverters.js"; +import { applyToolOverrides } from "../tools/applyToolOverrides.js"; + export class LLMError extends Error { constructor( message: string, @@ -90,6 +93,7 @@ export abstract class BaseLLM implements ILLM { // Provider capabilities (overridable by subclasses) protected supportsReasoningField: boolean = false; protected supportsReasoningDetailsField: boolean = false; + protected supportsReasoningContentField: boolean = false; get providerName(): string { return (this.constructor as typeof BaseLLM).providerName; @@ -196,6 +200,9 @@ export abstract class BaseLLM implements ILLM { isFromAutoDetect?: boolean; + /** Tool overrides for this model */ + toolOverrides?: ToolOverride[]; + lastRequestId: string | undefined; private _llmOptions: LLMOptions; @@ -303,6 +310,7 @@ export abstract class BaseLLM implements ILLM { this.autocompleteOptions = options.autocompleteOptions; this.sourceFile = options.sourceFile; this.isFromAutoDetect = options.isFromAutoDetect; + this.toolOverrides = options.toolOverrides; } get contextLength() { @@ -1111,8 +1119,28 @@ export abstract class BaseLLM implements ILLM { messageOptions?: MessageOption, ): AsyncGenerator { this.lastRequestId = undefined; + + // Apply per-model tool overrides if configured + let effectiveTools = options.tools; + if (this.toolOverrides?.length && options.tools?.length) { + const { tools: overriddenTools, errors } = applyToolOverrides( + options.tools, + this.toolOverrides, + ); + effectiveTools = overriddenTools; + // Log any warnings for unknown tool names + for (const error of errors) { + if (!error.fatal) { + console.warn(`Tool override warning: ${error.message}`); + } + } + } + + // Use effectiveTools for the rest of this method + const optionsWithOverrides = { ...options, tools: effectiveTools }; + let { completionOptions, logEnabled } = - this._parseCompletionOptions(options); + this._parseCompletionOptions(optionsWithOverrides); const interaction = logEnabled ? this.logger?.createInteractionLog() : undefined; @@ -1130,7 +1158,7 @@ export abstract class BaseLLM implements ILLM { knownContextLength: this._contextLength, maxTokens: completionOptions.maxTokens ?? DEFAULT_MAX_TOKENS, supportsImages: this.supportsImages(), - tools: options.tools, + tools: optionsWithOverrides.tools, }); messages = compiledChatMessages; @@ -1182,6 +1210,7 @@ export abstract class BaseLLM implements ILLM { let body = toChatBody(messages, completionOptions, { includeReasoningField: this.supportsReasoningField, includeReasoningDetailsField: this.supportsReasoningDetailsField, + includeReasoningContentField: this.supportsReasoningContentField, }); body = this.modifyChatBody(body); diff --git a/core/llm/llms/Anthropic.ts b/core/llm/llms/Anthropic.ts index 35e9845ed..fb7d7f8c6 100644 --- a/core/llm/llms/Anthropic.ts +++ b/core/llm/llms/Anthropic.ts @@ -407,7 +407,7 @@ class Anthropic extends BaseLLM { ): AsyncGenerator { if (!this.apiKey || this.apiKey === "") { throw new Error( - "Request not sent. You have an Anthropic model configured in your config.json, but the API key is not set.", + "Request not sent. You have an Anthropic model configured in your config.yaml, but the API key is not set.", ); } diff --git a/core/llm/llms/Anthropic.vitest.ts b/core/llm/llms/Anthropic.vitest.ts index 07915a93a..d01d36104 100644 --- a/core/llm/llms/Anthropic.vitest.ts +++ b/core/llm/llms/Anthropic.vitest.ts @@ -488,7 +488,7 @@ describe("Anthropic", () => { }, }), ).rejects.toThrow( - "Request not sent. You have an Anthropic model configured in your config.json, but the API key is not set.", + "Request not sent. You have an Anthropic model configured in your config.yaml, but the API key is not set.", ); }); }); diff --git a/core/llm/llms/Deepseek.ts b/core/llm/llms/Deepseek.ts index 01d16ec3d..f6b9304df 100644 --- a/core/llm/llms/Deepseek.ts +++ b/core/llm/llms/Deepseek.ts @@ -6,8 +6,9 @@ import OpenAI from "./OpenAI.js"; class Deepseek extends OpenAI { static providerName = "deepseek"; - protected supportsReasoningField = true; + protected supportsReasoningField = false; protected supportsReasoningDetailsField = false; + protected supportsReasoningContentField = true; static defaultOptions: Partial = { apiBase: "https://api.deepseek.com/", model: "deepseek-coder", diff --git a/core/llm/llms/Nous.ts b/core/llm/llms/Nous.ts new file mode 100644 index 000000000..9a7b26ac5 --- /dev/null +++ b/core/llm/llms/Nous.ts @@ -0,0 +1,13 @@ +import { LLMOptions } from "../.."; + +import OpenAI from "./OpenAI"; + +class Nous extends OpenAI { + static providerName = "nous"; + static defaultOptions: Partial = { + apiBase: "https://inference-api.nousresearch.com/v1", + useLegacyCompletionsEndpoint: false, + }; +} + +export default Nous; diff --git a/core/llm/llms/OpenAI.ts b/core/llm/llms/OpenAI.ts index 90512ecfb..179c6eef0 100644 --- a/core/llm/llms/OpenAI.ts +++ b/core/llm/llms/OpenAI.ts @@ -4,6 +4,12 @@ import { } from "openai/resources/index"; import { streamSse } from "@continuedev/fetch"; +import { + ResponseCreateParamsBase, + ResponseInputItem, + ResponseInputMessageContentList, + Tool as ResponsesTool, +} from "openai/resources/responses/responses.mjs"; import { ChatMessage, CompletionOptions, @@ -19,13 +25,6 @@ import { toChatBody, toResponsesInput, } from "../openaiTypeConverters.js"; -import { - ResponseInput, - ResponseInputItem, - ResponseInputMessageContentList, - ResponseCreateParamsBase, - Tool as ResponsesTool, -} from "openai/resources/responses/responses.mjs"; const NON_CHAT_MODELS = [ "text-davinci-002", @@ -279,6 +278,7 @@ class OpenAI extends BaseLLM { const finalOptions = toChatBody(messages, options, { includeReasoningField: this.supportsReasoningField, includeReasoningDetailsField: this.supportsReasoningDetailsField, + includeReasoningContentField: this.supportsReasoningContentField, }); finalOptions.stop = options.stop?.slice(0, this.getMaxStopWords()); diff --git a/core/llm/llms/index.ts b/core/llm/llms/index.ts index 03f6eeaa3..2bc147b57 100644 --- a/core/llm/llms/index.ts +++ b/core/llm/llms/index.ts @@ -43,6 +43,7 @@ import Moonshot from "./Moonshot"; import Msty from "./Msty"; import NCompass from "./NCompass"; import Nebius from "./Nebius"; +import Nous from "./Nous"; import Novita from "./Novita"; import Nvidia from "./Nvidia"; import Ollama from "./Ollama"; @@ -114,6 +115,7 @@ export const LLMClasses = [ Cerebras, Asksage, Nebius, + Nous, Venice, VertexAI, xAI, diff --git a/core/llm/openaiTypeConverters.test.ts b/core/llm/openaiTypeConverters.test.ts new file mode 100644 index 000000000..b0c63862f --- /dev/null +++ b/core/llm/openaiTypeConverters.test.ts @@ -0,0 +1,511 @@ +import { toResponsesInput } from "./openaiTypeConverters"; +import { ChatMessage } from ".."; +import type { ResponseInputItem } from "openai/resources/responses/responses.mjs"; + +// Types for test assertions (simplified from OpenAI types) +type FunctionCallItem = { + type: "function_call"; + id: string; + name: string; + arguments: string; + call_id: string; +}; + +type FunctionCallOutputItem = { + type: "function_call_output"; + call_id: string; + output: string; +}; + +type MessageItem = { + role: string; + content: unknown; +}; + +// Helper functions for filtering results +function getFunctionCalls(items: ResponseInputItem[]): FunctionCallItem[] { + return items.filter( + (item) => (item as { type?: string }).type === "function_call", + ) as unknown as FunctionCallItem[]; +} + +function getFunctionCallOutputs( + items: ResponseInputItem[], +): FunctionCallOutputItem[] { + return items.filter( + (item) => (item as { type?: string }).type === "function_call_output", + ) as unknown as FunctionCallOutputItem[]; +} + +function getMessagesByRole( + items: ResponseInputItem[], + role: string, +): MessageItem[] { + return items.filter((item) => { + const msg = item as { role?: string; type?: string }; + return msg.role === role && (!msg.type || msg.type === "message"); + }) as unknown as MessageItem[]; +} + +describe("openaiTypeConverters", () => { + describe("toResponsesInput", () => { + describe("tool calls handling - OpenAI Responses API", () => { + it("should emit function_call items when fc_ ID is in metadata", () => { + const messages: ChatMessage[] = [ + { + role: "user", + content: "List files in current directory", + }, + { + role: "assistant", + content: "", + toolCalls: [ + { + id: "call_abc123", + type: "function", + function: { + name: "filesystem_list_directory", + arguments: '{"path": "."}', + }, + }, + ], + metadata: { responsesOutputItemId: "fc_abc123" }, + } as ChatMessage, + ]; + + const result = toResponsesInput(messages); + + const functionCalls = getFunctionCalls(result); + expect(functionCalls.length).toBe(1); + expect(functionCalls[0].id).toBe("fc_abc123"); + expect(functionCalls[0].call_id).toBe("call_abc123"); + expect(functionCalls[0].name).toBe("filesystem_list_directory"); + }); + + it("should NOT emit function_call when no fc_ ID in metadata", () => { + const messages: ChatMessage[] = [ + { + role: "assistant", + content: "I'll help.", + toolCalls: [ + { + id: "call_xyz", + type: "function", + function: { + name: "some_tool", + arguments: "{}", + }, + }, + ], + // No metadata with fc_ ID + } as ChatMessage, + ]; + + const result = toResponsesInput(messages); + + const functionCalls = getFunctionCalls(result); + expect(functionCalls.length).toBe(0); + + // Text should still be emitted + const assistantMessages = getMessagesByRole(result, "assistant"); + expect(assistantMessages.length).toBe(1); + }); + + it("should emit text content alongside tool calls", () => { + const messages: ChatMessage[] = [ + { + role: "assistant", + content: "Let me help you with that.", + toolCalls: [ + { + id: "call_xyz", + type: "function", + function: { + name: "some_tool", + arguments: "{}", + }, + }, + ], + metadata: { responsesOutputItemId: "fc_xyz" }, + } as ChatMessage, + ]; + + const result = toResponsesInput(messages); + + const functionCalls = getFunctionCalls(result); + const assistantMessages = getMessagesByRole(result, "assistant"); + + expect(functionCalls.length).toBe(1); + expect(assistantMessages.length).toBe(1); + expect(assistantMessages[0].content).toBe("Let me help you with that."); + }); + }); + + describe("function_call_output handling", () => { + it("should emit function_call_output for tool role messages", () => { + const messages: ChatMessage[] = [ + { + role: "tool", + content: '{"files": ["a.txt", "b.txt"]}', + toolCallId: "call_abc123", + } as ChatMessage, + ]; + + const result = toResponsesInput(messages); + + const outputs = getFunctionCallOutputs(result); + expect(outputs.length).toBe(1); + expect(outputs[0].call_id).toBe("call_abc123"); + }); + }); + + // Complete conversation flow tests (moved out of describe block to reduce nesting) + it("should handle full tool call cycle with fc_ IDs", () => { + const messages: ChatMessage[] = [ + { + role: "user", + content: "List files", + }, + { + role: "assistant", + content: "", + toolCalls: [ + { + id: "call_list", + type: "function", + function: { + name: "list_files", + arguments: "{}", + }, + }, + ], + metadata: { responsesOutputItemId: "fc_list" }, + } as ChatMessage, + { + role: "tool", + content: '["file1.txt", "file2.txt"]', + toolCallId: "call_list", + } as ChatMessage, + ]; + + const result = toResponsesInput(messages); + + const userMsgs = getMessagesByRole(result, "user"); + const functionCalls = getFunctionCalls(result); + const functionOutputs = getFunctionCallOutputs(result); + + expect(userMsgs.length).toBe(1); + expect(functionCalls.length).toBe(1); + expect(functionOutputs.length).toBe(1); + + expect(functionCalls[0].id).toBe("fc_list"); + expect(functionCalls[0].call_id).toBe("call_list"); + expect(functionOutputs[0].call_id).toBe("call_list"); + }); + + it("should handle parallel tool calls merged into ONE message with responsesOutputItemIds array", () => { + // This is the REAL scenario: streaming parallel tool calls get merged into + // ONE ChatMessage with multiple toolCalls and an array of fc_ IDs + const messages: ChatMessage[] = [ + { + role: "user", + content: "Read these 3 files", + }, + { + role: "assistant", + content: "", + toolCalls: [ + { + id: "call_001", + type: "function", + function: { + name: "read_file", + arguments: '{"path":"test.py"}', + }, + }, + { + id: "call_002", + type: "function", + function: { + name: "read_file", + arguments: '{"path":"test.js"}', + }, + }, + { + id: "call_003", + type: "function", + function: { + name: "read_file", + arguments: '{"path":"test.ts"}', + }, + }, + ], + metadata: { + // Array of fc_ IDs, one per tool call + responsesOutputItemIds: ["fc_001", "fc_002", "fc_003"], + responsesOutputItemId: "fc_003", // Also keep last one for backwards compat + }, + } as ChatMessage, + // Tool results + { + role: "tool", + content: "# Python code", + toolCallId: "call_001", + } as ChatMessage, + { + role: "tool", + content: "// JS code", + toolCallId: "call_002", + } as ChatMessage, + { + role: "tool", + content: "// TS code", + toolCallId: "call_003", + } as ChatMessage, + ]; + + const result = toResponsesInput(messages); + + const functionCalls = getFunctionCalls(result); + expect(functionCalls.length).toBe(3); + + // Verify each function_call has correct fc_ ID and call_id + expect(functionCalls[0].id).toBe("fc_001"); + expect(functionCalls[0].call_id).toBe("call_001"); + expect(functionCalls[1].id).toBe("fc_002"); + expect(functionCalls[1].call_id).toBe("call_002"); + expect(functionCalls[2].id).toBe("fc_003"); + expect(functionCalls[2].call_id).toBe("call_003"); + + const functionOutputs = getFunctionCallOutputs(result); + expect(functionOutputs.length).toBe(3); + }); + + it("should handle 3 parallel tool calls when each has its own fc_ ID (separate messages)", () => { + // Legacy scenario: Each function_call from OpenAI creates a separate ChatMessage + const messages: ChatMessage[] = [ + { + role: "user", + content: "Read these 3 files", + }, + // First tool call + { + role: "assistant", + content: "", + toolCalls: [ + { + id: "call_001", + type: "function", + function: { + name: "read_file", + arguments: '{"path":"test.py"}', + }, + }, + ], + metadata: { responsesOutputItemId: "fc_001" }, + } as ChatMessage, + // Second tool call + { + role: "assistant", + content: "", + toolCalls: [ + { + id: "call_002", + type: "function", + function: { + name: "read_file", + arguments: '{"path":"test.js"}', + }, + }, + ], + metadata: { responsesOutputItemId: "fc_002" }, + } as ChatMessage, + // Third tool call + { + role: "assistant", + content: "", + toolCalls: [ + { + id: "call_003", + type: "function", + function: { + name: "read_file", + arguments: '{"path":"test.ts"}', + }, + }, + ], + metadata: { responsesOutputItemId: "fc_003" }, + } as ChatMessage, + // Tool results + { + role: "tool", + content: "# Python code", + toolCallId: "call_001", + } as ChatMessage, + { + role: "tool", + content: "// JS code", + toolCallId: "call_002", + } as ChatMessage, + { + role: "tool", + content: "// TS code", + toolCallId: "call_003", + } as ChatMessage, + ]; + + const result = toResponsesInput(messages); + + const functionCalls = getFunctionCalls(result); + expect(functionCalls.length).toBe(3); + + const fcIds = functionCalls.map((fc) => fc.id); + expect(fcIds).toContain("fc_001"); + expect(fcIds).toContain("fc_002"); + expect(fcIds).toContain("fc_003"); + + const functionOutputs = getFunctionCallOutputs(result); + expect(functionOutputs.length).toBe(3); + }); + + describe("edge cases", () => { + it("should handle empty messages array", () => { + const result = toResponsesInput([]); + expect(result).toEqual([]); + }); + + it("should handle assistant message with empty toolCalls array", () => { + const messages: ChatMessage[] = [ + { + role: "assistant", + content: "No tools needed", + toolCalls: [], + metadata: { responsesOutputItemId: "fc_empty" }, + } as ChatMessage, + ]; + + const result = toResponsesInput(messages); + + const functionCalls = getFunctionCalls(result); + expect(functionCalls.length).toBe(0); + + // Should emit as regular message instead + const assistantMessages = getMessagesByRole(result, "assistant"); + expect(assistantMessages.length).toBe(1); + }); + + it("should handle assistant message with undefined metadata", () => { + const messages: ChatMessage[] = [ + { + role: "assistant", + content: "Hello", + toolCalls: [ + { + id: "call_test", + type: "function", + function: { + name: "test_tool", + arguments: "{}", + }, + }, + ], + // metadata is undefined + } as ChatMessage, + ]; + + const result = toResponsesInput(messages); + + // Should not emit function_call without fc_ ID + const functionCalls = getFunctionCalls(result); + expect(functionCalls.length).toBe(0); + }); + + it("should handle more toolCalls than responsesOutputItemIds", () => { + const messages: ChatMessage[] = [ + { + role: "assistant", + content: "", + toolCalls: [ + { + id: "call_001", + type: "function", + function: { name: "tool1", arguments: "{}" }, + }, + { + id: "call_002", + type: "function", + function: { name: "tool2", arguments: "{}" }, + }, + { + id: "call_003", + type: "function", + function: { name: "tool3", arguments: "{}" }, + }, + ], + metadata: { + // Only 2 IDs for 3 tool calls + responsesOutputItemIds: ["fc_001", "fc_002"], + }, + } as ChatMessage, + ]; + + const result = toResponsesInput(messages); + + // Should only emit 2 function_calls (matching the available IDs) + const functionCalls = getFunctionCalls(result); + expect(functionCalls.length).toBe(2); + expect(functionCalls[0].id).toBe("fc_001"); + expect(functionCalls[1].id).toBe("fc_002"); + }); + + it("should handle toolCall with missing function name", () => { + const messages: ChatMessage[] = [ + { + role: "assistant", + content: "", + toolCalls: [ + { + id: "call_001", + type: "function", + function: { name: "", arguments: "{}" }, // Empty name + }, + ], + metadata: { responsesOutputItemIds: ["fc_001"] }, + } as ChatMessage, + ]; + + const result = toResponsesInput(messages); + + // Should skip tool calls with empty name + const functionCalls = getFunctionCalls(result); + expect(functionCalls.length).toBe(0); + }); + + it("should handle user message with various content types", () => { + const messages: ChatMessage[] = [ + { role: "user", content: "Simple string" }, + { + role: "user", + content: [{ type: "text", text: "Array content" }], + } as ChatMessage, + ]; + + const result = toResponsesInput(messages); + + const userMessages = getMessagesByRole(result, "user"); + expect(userMessages.length).toBe(2); + }); + + it("should handle system message (converted to developer role)", () => { + const messages: ChatMessage[] = [ + { role: "system", content: "You are a helpful assistant" }, + ]; + + const result = toResponsesInput(messages); + + const devMessages = getMessagesByRole(result, "developer"); + expect(devMessages.length).toBe(1); + }); + }); + }); +}); diff --git a/core/llm/openaiTypeConverters.ts b/core/llm/openaiTypeConverters.ts index a7e3d6bac..9280a51c7 100644 --- a/core/llm/openaiTypeConverters.ts +++ b/core/llm/openaiTypeConverters.ts @@ -40,6 +40,7 @@ import { function appendReasoningFieldsIfSupported( msg: ChatCompletionAssistantMessageParam & { reasoning?: string; + reasoning_content?: string; reasoning_details?: any[]; }, options: CompletionOptions, @@ -47,13 +48,16 @@ function appendReasoningFieldsIfSupported( providerFlags?: { includeReasoningField?: boolean; includeReasoningDetailsField?: boolean; + includeReasoningContentField?: boolean; }, ) { if (!prevMessage || prevMessage.role !== "thinking") return; const includeReasoning = !!providerFlags?.includeReasoningField; const includeReasoningDetails = !!providerFlags?.includeReasoningDetailsField; - if (!includeReasoning && !includeReasoningDetails) return; + const includeReasoningContent = !!providerFlags?.includeReasoningContentField; + if (!includeReasoning && !includeReasoningDetails && !includeReasoningContent) + return; const reasoningDetailsValue = prevMessage.reasoning_details || @@ -84,6 +88,9 @@ function appendReasoningFieldsIfSupported( if (includeReasoning) { msg.reasoning = prevMessage.content as string; } + if (includeReasoningContent) { + msg.reasoning_content = prevMessage.content as string; + } } export function toChatMessage( @@ -93,6 +100,7 @@ export function toChatMessage( providerFlags?: { includeReasoningField?: boolean; includeReasoningDetailsField?: boolean; + includeReasoningContentField?: boolean; }, ): ChatCompletionMessageParam | null { if (message.role === "tool") { @@ -117,6 +125,7 @@ export function toChatMessage( // Base assistant message const msg: ChatCompletionAssistantMessageParam & { reasoning?: string; + reasoning_content?: string; reasoning_details?: { [key: string]: any; signature?: string | undefined; @@ -191,6 +200,7 @@ export function toChatBody( providerFlags?: { includeReasoningField?: boolean; includeReasoningDetailsField?: boolean; + includeReasoningContentField?: boolean; }, ): ChatCompletionCreateParams { const params: ChatCompletionCreateParams = { @@ -774,6 +784,90 @@ function toResponseInputContentList( return list; } +/** + * Emits function_call items for each tool call that has a corresponding fc_ ID. + * Extracted to reduce cyclomatic complexity in toResponsesInput. + */ +function emitFunctionCallsFromToolCalls( + toolCalls: ToolCallDelta[], + respIds: string[], + input: ResponseInput, +): void { + for (let i = 0; i < toolCalls.length; i++) { + const tc = toolCalls[i]; + const fcId = respIds[i]; + + if (!fcId) continue; // Skip if no fc_ ID for this tool call + + const name = tc?.function?.name as string | undefined; + const args = tc?.function?.arguments as string | undefined; + const call_id = tc?.id as string | undefined; + + if (name && call_id) { + const functionCallItem: ResponseFunctionToolCall = { + id: fcId, + type: "function_call", + name, + arguments: typeof args === "string" ? args : "{}", + call_id, + }; + input.push(functionCallItem); + } + } +} + +/** + * Converts a thinking message's reasoning_details into a ResponseReasoningItem. + * Extracted to reduce cyclomatic complexity in toResponsesInput. + */ +function convertThinkingMessageToReasoningItem( + msg: ThinkingChatMessage, +): ResponseReasoningItem | undefined { + const details = msg.reasoning_details ?? []; + if (!details.length) return undefined; + + let id: string | undefined; + let summaryText = ""; + let encrypted: string | undefined; + let reasoningText = ""; + + for (const raw of details as Array>) { + const d = raw as { + type?: string; + id?: string; + text?: string; + encrypted_content?: string; + }; + if (d.type === "reasoning_id" && d.id) id = d.id; + else if (d.type === "encrypted_content" && d.encrypted_content) + encrypted = d.encrypted_content; + else if (d.type === "summary_text" && typeof d.text === "string") + summaryText += d.text; + else if (d.type === "reasoning_text" && typeof d.text === "string") + reasoningText += d.text; + } + + if (!id) return undefined; + + const reasoningItem: ResponseReasoningItem = { + id, + type: "reasoning", + summary: [], + } as ResponseReasoningItem; + + if (summaryText) { + reasoningItem.summary = [{ type: "summary_text", text: summaryText }]; + } + if (reasoningText) { + reasoningItem.content = [{ type: "reasoning_text", text: reasoningText }]; + } + if (encrypted) { + reasoningItem.encrypted_content = encrypted; + } + + return reasoningItem; +} + export function toResponsesInput(messages: ChatMessage[]): ResponseInput { const input: ResponseInput = []; @@ -817,21 +911,25 @@ export function toResponsesInput(messages: ChatMessage[]): ResponseInput { | string | undefined; const toolCalls = msg.toolCalls as ToolCallDelta[] | undefined; + // Get array of fc_ IDs for parallel tool calls, fallback to single respId + // NOTE: responsesOutputItemIds is accumulated in sessionSlice.ts during streaming. + // We rely on OpenAI streaming events arriving in order, so respIds[i] corresponds + // to toolCalls[i] by position. See: https://platform.openai.com/docs/guides/function-calling + const respIds = + (msg.metadata?.responsesOutputItemIds as string[] | undefined) || + (respId ? [respId] : []); - if (respId && Array.isArray(toolCalls) && toolCalls.length > 0) { - // Emit full function_call output item - const tc = toolCalls[0]; - const name = tc?.function?.name as string | undefined; - const args = tc?.function?.arguments as string | undefined; - const call_id = tc?.id as string | undefined; - const functionCallItem: ResponseFunctionToolCall = { - id: respId, - type: "function_call", - name: name || "", - arguments: typeof args === "string" ? args : "{}", - call_id: call_id || respId, - }; - input.push(functionCallItem); + if ( + Array.isArray(toolCalls) && + toolCalls.length > 0 && + respIds.length > 0 + ) { + // Emit function_call for EACH tool call (supports parallel tool calls) + emitFunctionCallsFromToolCalls(toolCalls, respIds, input); + // Also emit text content if present alongside tool calls + if (text && text.trim()) { + pushMessage("assistant", text); + } } else if (respId) { // Emit full assistant output message item const outputMessageItem: ResponseOutputMessage = { @@ -869,48 +967,11 @@ export function toResponsesInput(messages: ChatMessage[]): ResponseInput { break; } case "thinking": { - const details = (msg as ThinkingChatMessage).reasoning_details ?? []; - if (details.length) { - let id: string | undefined; - let summaryText = ""; - let encrypted: string | undefined; - let reasoningText = ""; - for (const raw of details as Array>) { - const d = raw as { - type?: string; - id?: string; - text?: string; - encrypted_content?: string; - }; - if (d.type === "reasoning_id" && d.id) id = d.id; - else if (d.type === "encrypted_content" && d.encrypted_content) - encrypted = d.encrypted_content; - else if (d.type === "summary_text" && typeof d.text === "string") - summaryText += d.text; - else if (d.type === "reasoning_text" && typeof d.text === "string") - reasoningText += d.text; - } - if (id) { - const reasoningItem: ResponseReasoningItem = { - id, - type: "reasoning", - summary: [], - } as ResponseReasoningItem; - if (summaryText) { - reasoningItem.summary = [ - { type: "summary_text", text: summaryText }, - ]; - } - if (reasoningText) { - reasoningItem.content = [ - { type: "reasoning_text", text: reasoningText }, - ]; - } - if (encrypted) { - reasoningItem.encrypted_content = encrypted; - } - input.push(reasoningItem as ResponseInputItem); - } + const reasoningItem = convertThinkingMessageToReasoningItem( + msg as ThinkingChatMessage, + ); + if (reasoningItem) { + input.push(reasoningItem as ResponseInputItem); } break; } diff --git a/core/package-lock.json b/core/package-lock.json index 6aa446ac8..29838ec89 100644 --- a/core/package-lock.json +++ b/core/package-lock.json @@ -12,7 +12,7 @@ "@anthropic-ai/sdk": "^0.62.0", "@aws-sdk/client-bedrock-runtime": "^3.931.0", "@aws-sdk/client-sagemaker-runtime": "^3.894.0", - "@aws-sdk/credential-providers": "^3.931.0", + "@aws-sdk/credential-providers": "^3.974.0", "@continuedev/config-types": "^1.0.14", "@continuedev/config-yaml": "file:../packages/config-yaml", "@continuedev/fetch": "file:../packages/fetch", @@ -942,476 +942,69 @@ } }, "node_modules/@aws-sdk/client-cognito-identity": { - "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==", + "version": "3.982.0", + "resolved": "https://registry.npmjs.org/@aws-sdk/client-cognito-identity/-/client-cognito-identity-3.982.0.tgz", + "integrity": "sha512-Y+ZS2tqd8tMWmrZ1S8JBo5E4pWpLvYvmLKDQGigwd9vAySX4+F4SoCzaS0NeqYcWP741A5n1AkM/e5o1a3v++w==", "license": "Apache-2.0", "dependencies": { "@aws-crypto/sha256-browser": "5.2.0", "@aws-crypto/sha256-js": "5.2.0", - "@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", + "@aws-sdk/core": "^3.973.6", + "@aws-sdk/credential-provider-node": "^3.972.5", + "@aws-sdk/middleware-host-header": "^3.972.3", + "@aws-sdk/middleware-logger": "^3.972.3", + "@aws-sdk/middleware-recursion-detection": "^3.972.3", + "@aws-sdk/middleware-user-agent": "^3.972.6", + "@aws-sdk/region-config-resolver": "^3.972.3", + "@aws-sdk/types": "^3.973.1", + "@aws-sdk/util-endpoints": "3.982.0", + "@aws-sdk/util-user-agent-browser": "^3.972.3", + "@aws-sdk/util-user-agent-node": "^3.972.4", + "@smithy/config-resolver": "^4.4.6", + "@smithy/core": "^3.22.0", + "@smithy/fetch-http-handler": "^5.3.9", + "@smithy/hash-node": "^4.2.8", + "@smithy/invalid-dependency": "^4.2.8", + "@smithy/middleware-content-length": "^4.2.8", + "@smithy/middleware-endpoint": "^4.4.12", + "@smithy/middleware-retry": "^4.4.29", + "@smithy/middleware-serde": "^4.2.9", + "@smithy/middleware-stack": "^4.2.8", + "@smithy/node-config-provider": "^4.3.8", + "@smithy/node-http-handler": "^4.4.8", + "@smithy/protocol-http": "^5.3.8", + "@smithy/smithy-client": "^4.11.1", + "@smithy/types": "^4.12.0", + "@smithy/url-parser": "^4.2.8", "@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-defaults-mode-browser": "^4.3.28", + "@smithy/util-defaults-mode-node": "^4.2.31", + "@smithy/util-endpoints": "^3.2.8", + "@smithy/util-middleware": "^4.2.8", + "@smithy/util-retry": "^4.2.8", "@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/client-sso": { - "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.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": { - "node": ">=18.0.0" - } - }, - "node_modules/@aws-sdk/client-cognito-identity/node_modules/@aws-sdk/core": { - "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.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": { - "node": ">=18.0.0" - } - }, - "node_modules/@aws-sdk/client-cognito-identity/node_modules/@aws-sdk/credential-provider-env": { - "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.943.0", - "@aws-sdk/types": "3.936.0", - "@smithy/property-provider": "^4.2.5", - "@smithy/types": "^4.9.0", - "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.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.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": { - "node": ">=18.0.0" - } - }, - "node_modules/@aws-sdk/client-cognito-identity/node_modules/@aws-sdk/credential-provider-ini": { - "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.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/client-cognito-identity/node_modules/@aws-sdk/credential-provider-node": { - "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.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": { - "node": ">=18.0.0" - } - }, - "node_modules/@aws-sdk/client-cognito-identity/node_modules/@aws-sdk/credential-provider-process": { - "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.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": { - "node": ">=18.0.0" - } - }, - "node_modules/@aws-sdk/client-cognito-identity/node_modules/@aws-sdk/credential-provider-sso": { - "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.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": { - "node": ">=18.0.0" - } - }, - "node_modules/@aws-sdk/client-cognito-identity/node_modules/@aws-sdk/credential-provider-web-identity": { - "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.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": { - "node": ">=18.0.0" - } - }, - "node_modules/@aws-sdk/client-cognito-identity/node_modules/@aws-sdk/middleware-host-header": { - "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.936.0", - "@smithy/protocol-http": "^5.3.5", - "@smithy/types": "^4.9.0", - "tslib": "^2.6.2" - }, - "engines": { - "node": ">=18.0.0" - } - }, - "node_modules/@aws-sdk/client-cognito-identity/node_modules/@aws-sdk/middleware-logger": { - "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.936.0", - "@smithy/types": "^4.9.0", - "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.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.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": { - "node": ">=18.0.0" - } - }, - "node_modules/@aws-sdk/client-cognito-identity/node_modules/@aws-sdk/middleware-user-agent": { - "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.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": { - "node": ">=18.0.0" - } - }, - "node_modules/@aws-sdk/client-cognito-identity/node_modules/@aws-sdk/nested-clients": { - "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.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": { - "node": ">=18.0.0" - } - }, - "node_modules/@aws-sdk/client-cognito-identity/node_modules/@aws-sdk/region-config-resolver": { - "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.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": { - "node": ">=18.0.0" - } - }, - "node_modules/@aws-sdk/client-cognito-identity/node_modules/@aws-sdk/token-providers": { - "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.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": { - "node": ">=18.0.0" - } - }, - "node_modules/@aws-sdk/client-cognito-identity/node_modules/@aws-sdk/types": { - "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.9.0", - "tslib": "^2.6.2" - }, - "engines": { - "node": ">=18.0.0" + "node": ">=20.0.0" } }, "node_modules/@aws-sdk/client-cognito-identity/node_modules/@aws-sdk/util-endpoints": { - "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==", + "version": "3.982.0", + "resolved": "https://registry.npmjs.org/@aws-sdk/util-endpoints/-/util-endpoints-3.982.0.tgz", + "integrity": "sha512-M27u8FJP7O0Of9hMWX5dipp//8iglmV9jr7R8SR8RveU+Z50/8TqH68Tu6wUWBGMfXjzbVwn1INIAO5lZrlxXQ==", "license": "Apache-2.0", "dependencies": { - "@aws-sdk/types": "3.936.0", - "@smithy/types": "^4.9.0", - "@smithy/url-parser": "^4.2.5", - "@smithy/util-endpoints": "^3.2.5", + "@aws-sdk/types": "^3.973.1", + "@smithy/types": "^4.12.0", + "@smithy/url-parser": "^4.2.8", + "@smithy/util-endpoints": "^3.2.8", "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.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.936.0", - "@smithy/types": "^4.9.0", - "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.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.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": { - "node": ">=18.0.0" - }, - "peerDependencies": { - "aws-crt": ">=1.0.0" - }, - "peerDependenciesMeta": { - "aws-crt": { - "optional": true - } + "node": ">=20.0.0" } }, "node_modules/@aws-sdk/client-sagemaker-runtime": { @@ -1469,14 +1062,152 @@ } }, "node_modules/@aws-sdk/client-sso": { + "version": "3.982.0", + "resolved": "https://registry.npmjs.org/@aws-sdk/client-sso/-/client-sso-3.982.0.tgz", + "integrity": "sha512-qJrIiivmvujdGqJ0ldSUvhN3k3N7GtPesoOI1BSt0fNXovVnMz4C/JmnkhZihU7hJhDvxJaBROLYTU+lpild4w==", + "license": "Apache-2.0", + "dependencies": { + "@aws-crypto/sha256-browser": "5.2.0", + "@aws-crypto/sha256-js": "5.2.0", + "@aws-sdk/core": "^3.973.6", + "@aws-sdk/middleware-host-header": "^3.972.3", + "@aws-sdk/middleware-logger": "^3.972.3", + "@aws-sdk/middleware-recursion-detection": "^3.972.3", + "@aws-sdk/middleware-user-agent": "^3.972.6", + "@aws-sdk/region-config-resolver": "^3.972.3", + "@aws-sdk/types": "^3.973.1", + "@aws-sdk/util-endpoints": "3.982.0", + "@aws-sdk/util-user-agent-browser": "^3.972.3", + "@aws-sdk/util-user-agent-node": "^3.972.4", + "@smithy/config-resolver": "^4.4.6", + "@smithy/core": "^3.22.0", + "@smithy/fetch-http-handler": "^5.3.9", + "@smithy/hash-node": "^4.2.8", + "@smithy/invalid-dependency": "^4.2.8", + "@smithy/middleware-content-length": "^4.2.8", + "@smithy/middleware-endpoint": "^4.4.12", + "@smithy/middleware-retry": "^4.4.29", + "@smithy/middleware-serde": "^4.2.9", + "@smithy/middleware-stack": "^4.2.8", + "@smithy/node-config-provider": "^4.3.8", + "@smithy/node-http-handler": "^4.4.8", + "@smithy/protocol-http": "^5.3.8", + "@smithy/smithy-client": "^4.11.1", + "@smithy/types": "^4.12.0", + "@smithy/url-parser": "^4.2.8", + "@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.28", + "@smithy/util-defaults-mode-node": "^4.2.31", + "@smithy/util-endpoints": "^3.2.8", + "@smithy/util-middleware": "^4.2.8", + "@smithy/util-retry": "^4.2.8", + "@smithy/util-utf8": "^4.2.0", + "tslib": "^2.6.2" + }, + "engines": { + "node": ">=20.0.0" + } + }, + "node_modules/@aws-sdk/client-sso/node_modules/@aws-sdk/util-endpoints": { + "version": "3.982.0", + "resolved": "https://registry.npmjs.org/@aws-sdk/util-endpoints/-/util-endpoints-3.982.0.tgz", + "integrity": "sha512-M27u8FJP7O0Of9hMWX5dipp//8iglmV9jr7R8SR8RveU+Z50/8TqH68Tu6wUWBGMfXjzbVwn1INIAO5lZrlxXQ==", + "license": "Apache-2.0", + "dependencies": { + "@aws-sdk/types": "^3.973.1", + "@smithy/types": "^4.12.0", + "@smithy/url-parser": "^4.2.8", + "@smithy/util-endpoints": "^3.2.8", + "tslib": "^2.6.2" + }, + "engines": { + "node": ">=20.0.0" + } + }, + "node_modules/@aws-sdk/core": { + "version": "3.973.6", + "resolved": "https://registry.npmjs.org/@aws-sdk/core/-/core-3.973.6.tgz", + "integrity": "sha512-pz4ZOw3BLG0NdF25HoB9ymSYyPbMiIjwQJ2aROXRhAzt+b+EOxStfFv8s5iZyP6Kiw7aYhyWxj5G3NhmkoOTKw==", + "license": "Apache-2.0", + "dependencies": { + "@aws-sdk/types": "^3.973.1", + "@aws-sdk/xml-builder": "^3.972.4", + "@smithy/core": "^3.22.0", + "@smithy/node-config-provider": "^4.3.8", + "@smithy/property-provider": "^4.2.8", + "@smithy/protocol-http": "^5.3.8", + "@smithy/signature-v4": "^5.3.8", + "@smithy/smithy-client": "^4.11.1", + "@smithy/types": "^4.12.0", + "@smithy/util-base64": "^4.3.0", + "@smithy/util-middleware": "^4.2.8", + "@smithy/util-utf8": "^4.2.0", + "tslib": "^2.6.2" + }, + "engines": { + "node": ">=20.0.0" + } + }, + "node_modules/@aws-sdk/core/node_modules/@aws-sdk/xml-builder": { + "version": "3.972.4", + "resolved": "https://registry.npmjs.org/@aws-sdk/xml-builder/-/xml-builder-3.972.4.tgz", + "integrity": "sha512-0zJ05ANfYqI6+rGqj8samZBFod0dPPousBjLEqg8WdxSgbMAkRgLyn81lP215Do0rFJ/17LIXwr7q0yK24mP6Q==", + "license": "Apache-2.0", + "dependencies": { + "@smithy/types": "^4.12.0", + "fast-xml-parser": "5.3.4", + "tslib": "^2.6.2" + }, + "engines": { + "node": ">=20.0.0" + } + }, + "node_modules/@aws-sdk/core/node_modules/fast-xml-parser": { + "version": "5.3.4", + "resolved": "https://registry.npmjs.org/fast-xml-parser/-/fast-xml-parser-5.3.4.tgz", + "integrity": "sha512-EFd6afGmXlCx8H8WTZHhAoDaWaGyuIBoZJ2mknrNxug+aZKjkp0a0dlars9Izl+jF+7Gu1/5f/2h68cQpe0IiA==", + "funding": [ + { + "type": "github", + "url": "https://github.com/sponsors/NaturalIntelligence" + } + ], + "license": "MIT", + "dependencies": { + "strnum": "^2.1.0" + }, + "bin": { + "fxparser": "src/cli/cli.js" + } + }, + "node_modules/@aws-sdk/credential-provider-cognito-identity": { + "version": "3.972.3", + "resolved": "https://registry.npmjs.org/@aws-sdk/credential-provider-cognito-identity/-/credential-provider-cognito-identity-3.972.3.tgz", + "integrity": "sha512-dW/DqTk90XW7hIngqntAVtJJyrkS51wcLhGz39lOMe0TlSmZl+5R/UGnAZqNbXmWuJHLzxe+MLgagxH41aTsAQ==", + "license": "Apache-2.0", + "dependencies": { + "@aws-sdk/client-cognito-identity": "3.980.0", + "@aws-sdk/types": "^3.973.1", + "@smithy/property-provider": "^4.2.8", + "@smithy/types": "^4.12.0", + "tslib": "^2.6.2" + }, + "engines": { + "node": ">=20.0.0" + } + }, + "node_modules/@aws-sdk/credential-provider-cognito-identity/node_modules/@aws-sdk/client-cognito-identity": { "version": "3.980.0", - "resolved": "https://registry.npmjs.org/@aws-sdk/client-sso/-/client-sso-3.980.0.tgz", - "integrity": "sha512-AhNXQaJ46C1I+lQ+6Kj+L24il5K9lqqIanJd8lMszPmP7bLnmX0wTKK0dxywcvrLdij3zhWttjAKEBNgLtS8/A==", + "resolved": "https://registry.npmjs.org/@aws-sdk/client-cognito-identity/-/client-cognito-identity-3.980.0.tgz", + "integrity": "sha512-nLgMW2drTzv+dTo3ORCcotQPcrUaTQ+xoaDTdSaUXdZO7zbbVyk7ysE5GDTnJdZWcUjHOSB8xfNQhOTTNVPhFw==", "license": "Apache-2.0", "dependencies": { "@aws-crypto/sha256-browser": "5.2.0", "@aws-crypto/sha256-js": "5.2.0", "@aws-sdk/core": "^3.973.5", + "@aws-sdk/credential-provider-node": "^3.972.4", "@aws-sdk/middleware-host-header": "^3.972.3", "@aws-sdk/middleware-logger": "^3.972.3", "@aws-sdk/middleware-recursion-detection": "^3.972.3", @@ -1517,80 +1248,13 @@ "node": ">=20.0.0" } }, - "node_modules/@aws-sdk/core": { - "version": "3.973.5", - "resolved": "https://registry.npmjs.org/@aws-sdk/core/-/core-3.973.5.tgz", - "integrity": "sha512-IMM7xGfLGW6lMvubsA4j6BHU5FPgGAxoQ/NA63KqNLMwTS+PeMBcx8DPHL12Vg6yqOZnqok9Mu4H2BdQyq7gSA==", - "license": "Apache-2.0", - "dependencies": { - "@aws-sdk/types": "^3.973.1", - "@aws-sdk/xml-builder": "^3.972.2", - "@smithy/core": "^3.22.0", - "@smithy/node-config-provider": "^4.3.8", - "@smithy/property-provider": "^4.2.8", - "@smithy/protocol-http": "^5.3.8", - "@smithy/signature-v4": "^5.3.8", - "@smithy/smithy-client": "^4.11.1", - "@smithy/types": "^4.12.0", - "@smithy/util-base64": "^4.3.0", - "@smithy/util-middleware": "^4.2.8", - "@smithy/util-utf8": "^4.2.0", - "tslib": "^2.6.2" - }, - "engines": { - "node": ">=20.0.0" - } - }, - "node_modules/@aws-sdk/core/node_modules/@aws-sdk/xml-builder": { - "version": "3.972.2", - "resolved": "https://registry.npmjs.org/@aws-sdk/xml-builder/-/xml-builder-3.972.2.tgz", - "integrity": "sha512-jGOOV/bV1DhkkUhHiZ3/1GZ67cZyOXaDb7d1rYD6ZiXf5V9tBNOcgqXwRRPvrCbYaFRa1pPMFb3ZjqjWpR3YfA==", - "license": "Apache-2.0", - "dependencies": { - "@smithy/types": "^4.12.0", - "fast-xml-parser": "5.2.5", - "tslib": "^2.6.2" - }, - "engines": { - "node": ">=20.0.0" - } - }, - "node_modules/@aws-sdk/credential-provider-cognito-identity": { - "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.943.0", - "@aws-sdk/types": "3.936.0", - "@smithy/property-provider": "^4.2.5", - "@smithy/types": "^4.9.0", - "tslib": "^2.6.2" - }, - "engines": { - "node": ">=18.0.0" - } - }, - "node_modules/@aws-sdk/credential-provider-cognito-identity/node_modules/@aws-sdk/types": { - "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.9.0", - "tslib": "^2.6.2" - }, - "engines": { - "node": ">=18.0.0" - } - }, "node_modules/@aws-sdk/credential-provider-env": { - "version": "3.972.3", - "resolved": "https://registry.npmjs.org/@aws-sdk/credential-provider-env/-/credential-provider-env-3.972.3.tgz", - "integrity": "sha512-OBYNY4xQPq7Rx+oOhtyuyO0AQvdJSpXRg7JuPNBJH4a1XXIzJQl4UHQTPKZKwfJXmYLpv4+OkcFen4LYmDPd3g==", + "version": "3.972.4", + "resolved": "https://registry.npmjs.org/@aws-sdk/credential-provider-env/-/credential-provider-env-3.972.4.tgz", + "integrity": "sha512-/8dnc7+XNMmViEom2xsNdArQxQPSgy4Z/lm6qaFPTrMFesT1bV3PsBhb19n09nmxHdrtQskYmViddUIjUQElXg==", "license": "Apache-2.0", "dependencies": { - "@aws-sdk/core": "^3.973.5", + "@aws-sdk/core": "^3.973.6", "@aws-sdk/types": "^3.973.1", "@smithy/property-provider": "^4.2.8", "@smithy/types": "^4.12.0", @@ -1601,12 +1265,12 @@ } }, "node_modules/@aws-sdk/credential-provider-http": { - "version": "3.972.5", - "resolved": "https://registry.npmjs.org/@aws-sdk/credential-provider-http/-/credential-provider-http-3.972.5.tgz", - "integrity": "sha512-GpvBgEmSZPvlDekd26Zi+XsI27Qz7y0utUx0g2fSTSiDzhnd1FSa1owuodxR0BcUKNL7U2cOVhhDxgZ4iSoPVg==", + "version": "3.972.6", + "resolved": "https://registry.npmjs.org/@aws-sdk/credential-provider-http/-/credential-provider-http-3.972.6.tgz", + "integrity": "sha512-5ERWqRljiZv44AIdvIRQ3k+EAV0Sq2WeJHvXuK7gL7bovSxOf8Al7MLH7Eh3rdovH4KHFnlIty7J71mzvQBl5Q==", "license": "Apache-2.0", "dependencies": { - "@aws-sdk/core": "^3.973.5", + "@aws-sdk/core": "^3.973.6", "@aws-sdk/types": "^3.973.1", "@smithy/fetch-http-handler": "^5.3.9", "@smithy/node-http-handler": "^4.4.8", @@ -1622,19 +1286,19 @@ } }, "node_modules/@aws-sdk/credential-provider-ini": { - "version": "3.972.3", - "resolved": "https://registry.npmjs.org/@aws-sdk/credential-provider-ini/-/credential-provider-ini-3.972.3.tgz", - "integrity": "sha512-rMQAIxstP7cLgYfsRGrGOlpyMl0l8JL2mcke3dsIPLWke05zKOFyR7yoJzWCsI/QiIxjRbxpvPiAeKEA6CoYkg==", + "version": "3.972.4", + "resolved": "https://registry.npmjs.org/@aws-sdk/credential-provider-ini/-/credential-provider-ini-3.972.4.tgz", + "integrity": "sha512-eRUg+3HaUKuXWn/lEMirdiA5HOKmEl8hEHVuszIDt2MMBUKgVX5XNGmb3XmbgU17h6DZ+RtjbxQpjhz3SbTjZg==", "license": "Apache-2.0", "dependencies": { - "@aws-sdk/core": "^3.973.5", - "@aws-sdk/credential-provider-env": "^3.972.3", - "@aws-sdk/credential-provider-http": "^3.972.5", - "@aws-sdk/credential-provider-login": "^3.972.3", - "@aws-sdk/credential-provider-process": "^3.972.3", - "@aws-sdk/credential-provider-sso": "^3.972.3", - "@aws-sdk/credential-provider-web-identity": "^3.972.3", - "@aws-sdk/nested-clients": "3.980.0", + "@aws-sdk/core": "^3.973.6", + "@aws-sdk/credential-provider-env": "^3.972.4", + "@aws-sdk/credential-provider-http": "^3.972.6", + "@aws-sdk/credential-provider-login": "^3.972.4", + "@aws-sdk/credential-provider-process": "^3.972.4", + "@aws-sdk/credential-provider-sso": "^3.972.4", + "@aws-sdk/credential-provider-web-identity": "^3.972.4", + "@aws-sdk/nested-clients": "3.982.0", "@aws-sdk/types": "^3.973.1", "@smithy/credential-provider-imds": "^4.2.8", "@smithy/property-provider": "^4.2.8", @@ -1647,13 +1311,13 @@ } }, "node_modules/@aws-sdk/credential-provider-ini/node_modules/@aws-sdk/credential-provider-login": { - "version": "3.972.3", - "resolved": "https://registry.npmjs.org/@aws-sdk/credential-provider-login/-/credential-provider-login-3.972.3.tgz", - "integrity": "sha512-Gc3O91iVvA47kp2CLIXOwuo5ffo1cIpmmyIewcYjAcvurdFHQ8YdcBe1KHidnbbBO4/ZtywGBACsAX5vr3UdoA==", + "version": "3.972.4", + "resolved": "https://registry.npmjs.org/@aws-sdk/credential-provider-login/-/credential-provider-login-3.972.4.tgz", + "integrity": "sha512-nLGjXuvWWDlQAp505xIONI7Gam0vw2p7Qu3P6on/W2q7rjJXtYjtpHbcsaOjJ/pAju3eTvEQuSuRedcRHVQIAQ==", "license": "Apache-2.0", "dependencies": { - "@aws-sdk/core": "^3.973.5", - "@aws-sdk/nested-clients": "3.980.0", + "@aws-sdk/core": "^3.973.6", + "@aws-sdk/nested-clients": "3.982.0", "@aws-sdk/types": "^3.973.1", "@smithy/property-provider": "^4.2.8", "@smithy/protocol-http": "^5.3.8", @@ -1902,17 +1566,17 @@ } }, "node_modules/@aws-sdk/credential-provider-node": { - "version": "3.972.4", - "resolved": "https://registry.npmjs.org/@aws-sdk/credential-provider-node/-/credential-provider-node-3.972.4.tgz", - "integrity": "sha512-UwerdzosMSY7V5oIZm3NsMDZPv2aSVzSkZxYxIOWHBeKTZlUqW7XpHtJMZ4PZpJ+HMRhgP+MDGQx4THndgqJfQ==", + "version": "3.972.5", + "resolved": "https://registry.npmjs.org/@aws-sdk/credential-provider-node/-/credential-provider-node-3.972.5.tgz", + "integrity": "sha512-VWXKgSISQCI2GKN3zakTNHSiZ0+mux7v6YHmmbLQp/o3fvYUQJmKGcLZZzg2GFA+tGGBStplra9VFNf/WwxpYg==", "license": "Apache-2.0", "dependencies": { - "@aws-sdk/credential-provider-env": "^3.972.3", - "@aws-sdk/credential-provider-http": "^3.972.5", - "@aws-sdk/credential-provider-ini": "^3.972.3", - "@aws-sdk/credential-provider-process": "^3.972.3", - "@aws-sdk/credential-provider-sso": "^3.972.3", - "@aws-sdk/credential-provider-web-identity": "^3.972.3", + "@aws-sdk/credential-provider-env": "^3.972.4", + "@aws-sdk/credential-provider-http": "^3.972.6", + "@aws-sdk/credential-provider-ini": "^3.972.4", + "@aws-sdk/credential-provider-process": "^3.972.4", + "@aws-sdk/credential-provider-sso": "^3.972.4", + "@aws-sdk/credential-provider-web-identity": "^3.972.4", "@aws-sdk/types": "^3.973.1", "@smithy/credential-provider-imds": "^4.2.8", "@smithy/property-provider": "^4.2.8", @@ -1925,12 +1589,12 @@ } }, "node_modules/@aws-sdk/credential-provider-process": { - "version": "3.972.3", - "resolved": "https://registry.npmjs.org/@aws-sdk/credential-provider-process/-/credential-provider-process-3.972.3.tgz", - "integrity": "sha512-xkSY7zjRqeVc6TXK2xr3z1bTLm0wD8cj3lAkproRGaO4Ku7dPlKy843YKnHrUOUzOnMezdZ4xtmFc0eKIDTo2w==", + "version": "3.972.4", + "resolved": "https://registry.npmjs.org/@aws-sdk/credential-provider-process/-/credential-provider-process-3.972.4.tgz", + "integrity": "sha512-TCZpWUnBQN1YPk6grvd5x419OfXjHvhj5Oj44GYb84dOVChpg/+2VoEj+YVA4F4E/6huQPNnX7UYbTtxJqgihw==", "license": "Apache-2.0", "dependencies": { - "@aws-sdk/core": "^3.973.5", + "@aws-sdk/core": "^3.973.6", "@aws-sdk/types": "^3.973.1", "@smithy/property-provider": "^4.2.8", "@smithy/shared-ini-file-loader": "^4.4.3", @@ -1942,14 +1606,14 @@ } }, "node_modules/@aws-sdk/credential-provider-sso": { - "version": "3.972.3", - "resolved": "https://registry.npmjs.org/@aws-sdk/credential-provider-sso/-/credential-provider-sso-3.972.3.tgz", - "integrity": "sha512-8Ww3F5Ngk8dZ6JPL/V5LhCU1BwMfQd3tLdoEuzaewX8FdnT633tPr+KTHySz9FK7fFPcz5qG3R5edVEhWQD4AA==", + "version": "3.972.4", + "resolved": "https://registry.npmjs.org/@aws-sdk/credential-provider-sso/-/credential-provider-sso-3.972.4.tgz", + "integrity": "sha512-wzsGwv9mKlwJ3vHLyembBvGE/5nPUIwRR2I51B1cBV4Cb4ql9nIIfpmHzm050XYTY5fqTOKJQnhLj7zj89VG8g==", "license": "Apache-2.0", "dependencies": { - "@aws-sdk/client-sso": "3.980.0", - "@aws-sdk/core": "^3.973.5", - "@aws-sdk/token-providers": "3.980.0", + "@aws-sdk/client-sso": "3.982.0", + "@aws-sdk/core": "^3.973.6", + "@aws-sdk/token-providers": "3.982.0", "@aws-sdk/types": "^3.973.1", "@smithy/property-provider": "^4.2.8", "@smithy/shared-ini-file-loader": "^4.4.3", @@ -1961,13 +1625,13 @@ } }, "node_modules/@aws-sdk/credential-provider-web-identity": { - "version": "3.972.3", - "resolved": "https://registry.npmjs.org/@aws-sdk/credential-provider-web-identity/-/credential-provider-web-identity-3.972.3.tgz", - "integrity": "sha512-62VufdcH5rRfiRKZRcf1wVbbt/1jAntMj1+J0qAd+r5pQRg2t0/P9/Rz16B1o5/0Se9lVL506LRjrhIJAhYBfA==", + "version": "3.972.4", + "resolved": "https://registry.npmjs.org/@aws-sdk/credential-provider-web-identity/-/credential-provider-web-identity-3.972.4.tgz", + "integrity": "sha512-hIzw2XzrG8jzsUSEatehmpkd5rWzASg5IHUfA+m01k/RtvfAML7ZJVVohuKdhAYx+wV2AThLiQJVzqn7F0khrw==", "license": "Apache-2.0", "dependencies": { - "@aws-sdk/core": "^3.973.5", - "@aws-sdk/nested-clients": "3.980.0", + "@aws-sdk/core": "^3.973.6", + "@aws-sdk/nested-clients": "3.982.0", "@aws-sdk/types": "^3.973.1", "@smithy/property-provider": "^4.2.8", "@smithy/shared-ini-file-loader": "^4.4.3", @@ -1979,457 +1643,53 @@ } }, "node_modules/@aws-sdk/credential-providers": { - "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==", + "version": "3.982.0", + "resolved": "https://registry.npmjs.org/@aws-sdk/credential-providers/-/credential-providers-3.982.0.tgz", + "integrity": "sha512-K/Pk0NZOM+M90smB4uOJPdUycCfcvYzz5fsWUetLJNqay/aNOxFr5F9D0C5IOG+erbQZC2TK/lCx1VGusiv2Rw==", "license": "Apache-2.0", "dependencies": { - "@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", + "@aws-sdk/client-cognito-identity": "3.982.0", + "@aws-sdk/core": "^3.973.6", + "@aws-sdk/credential-provider-cognito-identity": "^3.972.3", + "@aws-sdk/credential-provider-env": "^3.972.4", + "@aws-sdk/credential-provider-http": "^3.972.6", + "@aws-sdk/credential-provider-ini": "^3.972.4", + "@aws-sdk/credential-provider-login": "^3.972.4", + "@aws-sdk/credential-provider-node": "^3.972.5", + "@aws-sdk/credential-provider-process": "^3.972.4", + "@aws-sdk/credential-provider-sso": "^3.972.4", + "@aws-sdk/credential-provider-web-identity": "^3.972.4", + "@aws-sdk/nested-clients": "3.982.0", + "@aws-sdk/types": "^3.973.1", + "@smithy/config-resolver": "^4.4.6", + "@smithy/core": "^3.22.0", + "@smithy/credential-provider-imds": "^4.2.8", + "@smithy/node-config-provider": "^4.3.8", + "@smithy/property-provider": "^4.2.8", + "@smithy/types": "^4.12.0", "tslib": "^2.6.2" }, "engines": { - "node": ">=18.0.0" + "node": ">=20.0.0" } }, - "node_modules/@aws-sdk/credential-providers/node_modules/@aws-sdk/client-sso": { - "version": "3.943.0", - "resolved": "https://registry.npmjs.org/@aws-sdk/client-sso/-/client-sso-3.943.0.tgz", - "integrity": "sha512-kOTO2B8Ks2qX73CyKY8PAajtf5n39aMe2spoiOF5EkgSzGV7hZ/HONRDyADlyxwfsX39Q2F2SpPUaXzon32IGw==", + "node_modules/@aws-sdk/credential-providers/node_modules/@aws-sdk/credential-provider-login": { + "version": "3.972.4", + "resolved": "https://registry.npmjs.org/@aws-sdk/credential-provider-login/-/credential-provider-login-3.972.4.tgz", + "integrity": "sha512-nLGjXuvWWDlQAp505xIONI7Gam0vw2p7Qu3P6on/W2q7rjJXtYjtpHbcsaOjJ/pAju3eTvEQuSuRedcRHVQIAQ==", "license": "Apache-2.0", "dependencies": { - "@aws-crypto/sha256-browser": "5.2.0", - "@aws-crypto/sha256-js": "5.2.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", + "@aws-sdk/core": "^3.973.6", + "@aws-sdk/nested-clients": "3.982.0", + "@aws-sdk/types": "^3.973.1", + "@smithy/property-provider": "^4.2.8", + "@smithy/protocol-http": "^5.3.8", + "@smithy/shared-ini-file-loader": "^4.4.3", + "@smithy/types": "^4.12.0", "tslib": "^2.6.2" }, "engines": { - "node": ">=18.0.0" - } - }, - "node_modules/@aws-sdk/credential-providers/node_modules/@aws-sdk/core": { - "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.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": { - "node": ">=18.0.0" - } - }, - "node_modules/@aws-sdk/credential-providers/node_modules/@aws-sdk/credential-provider-env": { - "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.943.0", - "@aws-sdk/types": "3.936.0", - "@smithy/property-provider": "^4.2.5", - "@smithy/types": "^4.9.0", - "tslib": "^2.6.2" - }, - "engines": { - "node": ">=18.0.0" - } - }, - "node_modules/@aws-sdk/credential-providers/node_modules/@aws-sdk/credential-provider-http": { - "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.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": { - "node": ">=18.0.0" - } - }, - "node_modules/@aws-sdk/credential-providers/node_modules/@aws-sdk/credential-provider-ini": { - "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.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-providers/node_modules/@aws-sdk/credential-provider-node": { - "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.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": { - "node": ">=18.0.0" - } - }, - "node_modules/@aws-sdk/credential-providers/node_modules/@aws-sdk/credential-provider-process": { - "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.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": { - "node": ">=18.0.0" - } - }, - "node_modules/@aws-sdk/credential-providers/node_modules/@aws-sdk/credential-provider-sso": { - "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.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": { - "node": ">=18.0.0" - } - }, - "node_modules/@aws-sdk/credential-providers/node_modules/@aws-sdk/credential-provider-web-identity": { - "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.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": { - "node": ">=18.0.0" - } - }, - "node_modules/@aws-sdk/credential-providers/node_modules/@aws-sdk/middleware-host-header": { - "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.936.0", - "@smithy/protocol-http": "^5.3.5", - "@smithy/types": "^4.9.0", - "tslib": "^2.6.2" - }, - "engines": { - "node": ">=18.0.0" - } - }, - "node_modules/@aws-sdk/credential-providers/node_modules/@aws-sdk/middleware-logger": { - "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.936.0", - "@smithy/types": "^4.9.0", - "tslib": "^2.6.2" - }, - "engines": { - "node": ">=18.0.0" - } - }, - "node_modules/@aws-sdk/credential-providers/node_modules/@aws-sdk/middleware-recursion-detection": { - "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.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": { - "node": ">=18.0.0" - } - }, - "node_modules/@aws-sdk/credential-providers/node_modules/@aws-sdk/middleware-user-agent": { - "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.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": { - "node": ">=18.0.0" - } - }, - "node_modules/@aws-sdk/credential-providers/node_modules/@aws-sdk/nested-clients": { - "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.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": { - "node": ">=18.0.0" - } - }, - "node_modules/@aws-sdk/credential-providers/node_modules/@aws-sdk/region-config-resolver": { - "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.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": { - "node": ">=18.0.0" - } - }, - "node_modules/@aws-sdk/credential-providers/node_modules/@aws-sdk/token-providers": { - "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.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": { - "node": ">=18.0.0" - } - }, - "node_modules/@aws-sdk/credential-providers/node_modules/@aws-sdk/types": { - "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.9.0", - "tslib": "^2.6.2" - }, - "engines": { - "node": ">=18.0.0" - } - }, - "node_modules/@aws-sdk/credential-providers/node_modules/@aws-sdk/util-endpoints": { - "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.936.0", - "@smithy/types": "^4.9.0", - "@smithy/url-parser": "^4.2.5", - "@smithy/util-endpoints": "^3.2.5", - "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.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.936.0", - "@smithy/types": "^4.9.0", - "bowser": "^2.11.0", - "tslib": "^2.6.2" - } - }, - "node_modules/@aws-sdk/credential-providers/node_modules/@aws-sdk/util-user-agent-node": { - "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.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": { - "node": ">=18.0.0" - }, - "peerDependencies": { - "aws-crt": ">=1.0.0" - }, - "peerDependenciesMeta": { - "aws-crt": { - "optional": true - } + "node": ">=20.0.0" } }, "node_modules/@aws-sdk/eventstream-handler-node": { @@ -2534,14 +1794,14 @@ } }, "node_modules/@aws-sdk/middleware-user-agent": { - "version": "3.972.5", - "resolved": "https://registry.npmjs.org/@aws-sdk/middleware-user-agent/-/middleware-user-agent-3.972.5.tgz", - "integrity": "sha512-TVZQ6PWPwQbahUI8V+Er+gS41ctIawcI/uMNmQtQ7RMcg3JYn6gyKAFKUb3HFYx2OjYlx1u11sETSwwEUxVHTg==", + "version": "3.972.6", + "resolved": "https://registry.npmjs.org/@aws-sdk/middleware-user-agent/-/middleware-user-agent-3.972.6.tgz", + "integrity": "sha512-TehLN8W/kivl0U9HcS+keryElEWORROpghDXZBLfnb40DXM7hx/i+7OOjkogXQOF3QtUraJVRkHQ07bPhrWKlw==", "license": "Apache-2.0", "dependencies": { - "@aws-sdk/core": "^3.973.5", + "@aws-sdk/core": "^3.973.6", "@aws-sdk/types": "^3.973.1", - "@aws-sdk/util-endpoints": "3.980.0", + "@aws-sdk/util-endpoints": "3.982.0", "@smithy/core": "^3.22.0", "@smithy/protocol-http": "^5.3.8", "@smithy/types": "^4.12.0", @@ -2551,6 +1811,22 @@ "node": ">=20.0.0" } }, + "node_modules/@aws-sdk/middleware-user-agent/node_modules/@aws-sdk/util-endpoints": { + "version": "3.982.0", + "resolved": "https://registry.npmjs.org/@aws-sdk/util-endpoints/-/util-endpoints-3.982.0.tgz", + "integrity": "sha512-M27u8FJP7O0Of9hMWX5dipp//8iglmV9jr7R8SR8RveU+Z50/8TqH68Tu6wUWBGMfXjzbVwn1INIAO5lZrlxXQ==", + "license": "Apache-2.0", + "dependencies": { + "@aws-sdk/types": "^3.973.1", + "@smithy/types": "^4.12.0", + "@smithy/url-parser": "^4.2.8", + "@smithy/util-endpoints": "^3.2.8", + "tslib": "^2.6.2" + }, + "engines": { + "node": ">=20.0.0" + } + }, "node_modules/@aws-sdk/middleware-websocket": { "version": "3.936.0", "resolved": "https://registry.npmjs.org/@aws-sdk/middleware-websocket/-/middleware-websocket-3.936.0.tgz", @@ -2586,23 +1862,23 @@ } }, "node_modules/@aws-sdk/nested-clients": { - "version": "3.980.0", - "resolved": "https://registry.npmjs.org/@aws-sdk/nested-clients/-/nested-clients-3.980.0.tgz", - "integrity": "sha512-/dONY5xc5/CCKzOqHZCTidtAR4lJXWkGefXvTRKdSKMGaYbbKsxDckisd6GfnvPSLxWtvQzwgRGRutMRoYUApQ==", + "version": "3.982.0", + "resolved": "https://registry.npmjs.org/@aws-sdk/nested-clients/-/nested-clients-3.982.0.tgz", + "integrity": "sha512-VVkaH27digrJfdVrT64rjkllvOp4oRiZuuJvrylLXAKl18ujToJR7AqpDldL/LS63RVne3QWIpkygIymxFtliQ==", "license": "Apache-2.0", "dependencies": { "@aws-crypto/sha256-browser": "5.2.0", "@aws-crypto/sha256-js": "5.2.0", - "@aws-sdk/core": "^3.973.5", + "@aws-sdk/core": "^3.973.6", "@aws-sdk/middleware-host-header": "^3.972.3", "@aws-sdk/middleware-logger": "^3.972.3", "@aws-sdk/middleware-recursion-detection": "^3.972.3", - "@aws-sdk/middleware-user-agent": "^3.972.5", + "@aws-sdk/middleware-user-agent": "^3.972.6", "@aws-sdk/region-config-resolver": "^3.972.3", "@aws-sdk/types": "^3.973.1", - "@aws-sdk/util-endpoints": "3.980.0", + "@aws-sdk/util-endpoints": "3.982.0", "@aws-sdk/util-user-agent-browser": "^3.972.3", - "@aws-sdk/util-user-agent-node": "^3.972.3", + "@aws-sdk/util-user-agent-node": "^3.972.4", "@smithy/config-resolver": "^4.4.6", "@smithy/core": "^3.22.0", "@smithy/fetch-http-handler": "^5.3.9", @@ -2634,6 +1910,22 @@ "node": ">=20.0.0" } }, + "node_modules/@aws-sdk/nested-clients/node_modules/@aws-sdk/util-endpoints": { + "version": "3.982.0", + "resolved": "https://registry.npmjs.org/@aws-sdk/util-endpoints/-/util-endpoints-3.982.0.tgz", + "integrity": "sha512-M27u8FJP7O0Of9hMWX5dipp//8iglmV9jr7R8SR8RveU+Z50/8TqH68Tu6wUWBGMfXjzbVwn1INIAO5lZrlxXQ==", + "license": "Apache-2.0", + "dependencies": { + "@aws-sdk/types": "^3.973.1", + "@smithy/types": "^4.12.0", + "@smithy/url-parser": "^4.2.8", + "@smithy/util-endpoints": "^3.2.8", + "tslib": "^2.6.2" + }, + "engines": { + "node": ">=20.0.0" + } + }, "node_modules/@aws-sdk/region-config-resolver": { "version": "3.972.3", "resolved": "https://registry.npmjs.org/@aws-sdk/region-config-resolver/-/region-config-resolver-3.972.3.tgz", @@ -2651,13 +1943,13 @@ } }, "node_modules/@aws-sdk/token-providers": { - "version": "3.980.0", - "resolved": "https://registry.npmjs.org/@aws-sdk/token-providers/-/token-providers-3.980.0.tgz", - "integrity": "sha512-1nFileg1wAgDmieRoj9dOawgr2hhlh7xdvcH57b1NnqfPaVlcqVJyPc6k3TLDUFPY69eEwNxdGue/0wIz58vjA==", + "version": "3.982.0", + "resolved": "https://registry.npmjs.org/@aws-sdk/token-providers/-/token-providers-3.982.0.tgz", + "integrity": "sha512-v3M0KYp2TVHYHNBT7jHD9lLTWAdS9CaWJ2jboRKt0WAB65bA7iUEpR+k4VqKYtpQN4+8kKSc4w+K6kUNZkHKQw==", "license": "Apache-2.0", "dependencies": { - "@aws-sdk/core": "^3.973.5", - "@aws-sdk/nested-clients": "3.980.0", + "@aws-sdk/core": "^3.973.6", + "@aws-sdk/nested-clients": "3.982.0", "@aws-sdk/types": "^3.973.1", "@smithy/property-provider": "^4.2.8", "@smithy/shared-ini-file-loader": "^4.4.3", @@ -2749,12 +2041,12 @@ } }, "node_modules/@aws-sdk/util-user-agent-node": { - "version": "3.972.3", - "resolved": "https://registry.npmjs.org/@aws-sdk/util-user-agent-node/-/util-user-agent-node-3.972.3.tgz", - "integrity": "sha512-gqG+02/lXQtO0j3US6EVnxtwwoXQC5l2qkhLCrqUrqdtcQxV7FDMbm9wLjKqoronSHyELGTjbFKK/xV5q1bZNA==", + "version": "3.972.4", + "resolved": "https://registry.npmjs.org/@aws-sdk/util-user-agent-node/-/util-user-agent-node-3.972.4.tgz", + "integrity": "sha512-3WFCBLiM8QiHDfosQq3Py+lIMgWlFWwFQliUHUqwEiRqLnKyhgbU3AKa7AWJF7lW2Oc/2kFNY4MlAYVnVc0i8A==", "license": "Apache-2.0", "dependencies": { - "@aws-sdk/middleware-user-agent": "^3.972.5", + "@aws-sdk/middleware-user-agent": "^3.972.6", "@aws-sdk/types": "^3.973.1", "@smithy/node-config-provider": "^4.3.8", "@smithy/types": "^4.12.0", diff --git a/core/package.json b/core/package.json index 94ff4c6d3..3573b820a 100644 --- a/core/package.json +++ b/core/package.json @@ -57,7 +57,7 @@ "@anthropic-ai/sdk": "^0.62.0", "@aws-sdk/client-bedrock-runtime": "^3.931.0", "@aws-sdk/client-sagemaker-runtime": "^3.894.0", - "@aws-sdk/credential-providers": "^3.931.0", + "@aws-sdk/credential-providers": "^3.974.0", "@continuedev/config-types": "^1.0.14", "@continuedev/config-yaml": "file:../packages/config-yaml", "@continuedev/fetch": "file:../packages/fetch", diff --git a/core/tools/applyToolOverrides.ts b/core/tools/applyToolOverrides.ts new file mode 100644 index 000000000..52c7b94cb --- /dev/null +++ b/core/tools/applyToolOverrides.ts @@ -0,0 +1,69 @@ +import { ConfigValidationError } from "@continuedev/config-yaml"; +import { Tool, ToolOverride } from ".."; + +export interface ApplyToolOverridesResult { + tools: Tool[]; + errors: ConfigValidationError[]; +} + +/** + * Applies tool overrides from config to the list of tools. + * Overrides can modify tool descriptions, display titles, action phrases, + * system message descriptions, or disable tools entirely. + */ +export function applyToolOverrides( + tools: Tool[], + overrides: ToolOverride[] | undefined, +): ApplyToolOverridesResult { + if (!overrides?.length) { + return { tools, errors: [] }; + } + + const errors: ConfigValidationError[] = []; + const toolsByName = new Map(tools.map((t) => [t.function.name, t])); + + for (const override of overrides) { + const tool = toolsByName.get(override.name); + + if (!tool) { + errors.push({ + fatal: false, + message: `Tool override "${override.name}" does not match any known tool. Available tools: ${Array.from(toolsByName.keys()).join(", ")}`, + }); + continue; + } + + if (override.disabled) { + toolsByName.delete(override.name); + continue; + } + + const updatedTool: Tool = { + ...tool, + function: { + ...tool.function, + description: override.description ?? tool.function.description, + }, + displayTitle: override.displayTitle ?? tool.displayTitle, + wouldLikeTo: override.wouldLikeTo ?? tool.wouldLikeTo, + isCurrently: override.isCurrently ?? tool.isCurrently, + hasAlready: override.hasAlready ?? tool.hasAlready, + }; + + if (override.systemMessageDescription) { + updatedTool.systemMessageDescription = { + prefix: + override.systemMessageDescription.prefix ?? + tool.systemMessageDescription?.prefix ?? + "", + exampleArgs: + override.systemMessageDescription.exampleArgs ?? + tool.systemMessageDescription?.exampleArgs, + }; + } + + toolsByName.set(override.name, updatedTool); + } + + return { tools: Array.from(toolsByName.values()), errors }; +} diff --git a/core/tools/applyToolOverrides.vitest.ts b/core/tools/applyToolOverrides.vitest.ts new file mode 100644 index 000000000..190590980 --- /dev/null +++ b/core/tools/applyToolOverrides.vitest.ts @@ -0,0 +1,185 @@ +import { describe, expect, it } from "vitest"; +import { Tool, ToolOverride } from ".."; +import { applyToolOverrides } from "./applyToolOverrides"; + +const mockTool = (name: string, description: string): Tool => ({ + type: "function", + displayTitle: name, + readonly: true, + group: "test", + function: { name, description }, +}); + +describe("applyToolOverrides", () => { + it("should return tools unchanged when no overrides provided", () => { + const tools = [mockTool("read_file", "Read a file")]; + const result = applyToolOverrides(tools, undefined); + expect(result.tools).toEqual(tools); + expect(result.errors).toHaveLength(0); + }); + + it("should return tools unchanged when empty overrides array provided", () => { + const tools = [mockTool("read_file", "Read a file")]; + const result = applyToolOverrides(tools, []); + expect(result.tools).toEqual(tools); + expect(result.errors).toHaveLength(0); + }); + + it("should override description when specified", () => { + const tools = [mockTool("read_file", "Original description")]; + const overrides: ToolOverride[] = [ + { name: "read_file", description: "New description" }, + ]; + const result = applyToolOverrides(tools, overrides); + expect(result.tools[0].function.description).toBe("New description"); + expect(result.errors).toHaveLength(0); + }); + + it("should override displayTitle when specified", () => { + const tools = [mockTool("read_file", "Read a file")]; + const overrides: ToolOverride[] = [ + { name: "read_file", displayTitle: "Custom Read File" }, + ]; + const result = applyToolOverrides(tools, overrides); + expect(result.tools[0].displayTitle).toBe("Custom Read File"); + }); + + it("should override action phrases when specified", () => { + const tools = [mockTool("read_file", "Read a file")]; + tools[0].wouldLikeTo = "read {{{ filepath }}}"; + tools[0].isCurrently = "reading {{{ filepath }}}"; + tools[0].hasAlready = "read {{{ filepath }}}"; + + const overrides: ToolOverride[] = [ + { + name: "read_file", + wouldLikeTo: "open {{{ filepath }}}", + isCurrently: "opening {{{ filepath }}}", + hasAlready: "opened {{{ filepath }}}", + }, + ]; + const result = applyToolOverrides(tools, overrides); + expect(result.tools[0].wouldLikeTo).toBe("open {{{ filepath }}}"); + expect(result.tools[0].isCurrently).toBe("opening {{{ filepath }}}"); + expect(result.tools[0].hasAlready).toBe("opened {{{ filepath }}}"); + }); + + it("should disable tools when disabled: true", () => { + const tools = [ + mockTool("read_file", "Read"), + mockTool("write_file", "Write"), + ]; + const overrides: ToolOverride[] = [{ name: "read_file", disabled: true }]; + const result = applyToolOverrides(tools, overrides); + expect(result.tools).toHaveLength(1); + expect(result.tools[0].function.name).toBe("write_file"); + expect(result.errors).toHaveLength(0); + }); + + it("should warn when override references unknown tool", () => { + const tools = [mockTool("read_file", "Read")]; + const overrides: ToolOverride[] = [ + { name: "unknown_tool", description: "test" }, + ]; + const result = applyToolOverrides(tools, overrides); + expect(result.tools).toHaveLength(1); + expect(result.errors).toHaveLength(1); + expect(result.errors[0].message).toContain("unknown_tool"); + expect(result.errors[0].fatal).toBe(false); + }); + + it("should preserve unmodified fields", () => { + const tools = [mockTool("read_file", "Original")]; + tools[0].readonly = true; + tools[0].group = "Built-In"; + + const overrides: ToolOverride[] = [ + { name: "read_file", description: "New description" }, + ]; + const result = applyToolOverrides(tools, overrides); + expect(result.tools[0].readonly).toBe(true); + expect(result.tools[0].group).toBe("Built-In"); + expect(result.tools[0].displayTitle).toBe("read_file"); + }); + + it("should override systemMessageDescription", () => { + const tools = [mockTool("read_file", "Read")]; + tools[0].systemMessageDescription = { + prefix: "old prefix", + exampleArgs: [["filepath", "/old/path"]], + }; + + const overrides: ToolOverride[] = [ + { + name: "read_file", + systemMessageDescription: { + prefix: "new prefix", + exampleArgs: [["filepath", "/new/path"]], + }, + }, + ]; + const result = applyToolOverrides(tools, overrides); + expect(result.tools[0].systemMessageDescription?.prefix).toBe("new prefix"); + expect(result.tools[0].systemMessageDescription?.exampleArgs).toEqual([ + ["filepath", "/new/path"], + ]); + }); + + it("should partially override systemMessageDescription", () => { + const tools = [mockTool("read_file", "Read")]; + tools[0].systemMessageDescription = { + prefix: "old prefix", + exampleArgs: [["filepath", "/old/path"]], + }; + + const overrides: ToolOverride[] = [ + { + name: "read_file", + systemMessageDescription: { + prefix: "new prefix", + // exampleArgs not specified - should preserve original + }, + }, + ]; + const result = applyToolOverrides(tools, overrides); + expect(result.tools[0].systemMessageDescription?.prefix).toBe("new prefix"); + expect(result.tools[0].systemMessageDescription?.exampleArgs).toEqual([ + ["filepath", "/old/path"], + ]); + }); + + it("should apply multiple overrides", () => { + const tools = [ + mockTool("read_file", "Read"), + mockTool("write_file", "Write"), + mockTool("delete_file", "Delete"), + ]; + + const overrides: ToolOverride[] = [ + { name: "read_file", description: "Custom read" }, + { name: "write_file", disabled: true }, + { name: "delete_file", displayTitle: "Remove File" }, + ]; + + const result = applyToolOverrides(tools, overrides); + expect(result.tools).toHaveLength(2); + expect(result.tools[0].function.description).toBe("Custom read"); + expect(result.tools[1].displayTitle).toBe("Remove File"); + expect(result.errors).toHaveLength(0); + }); + + it("should not mutate original tools array", () => { + const tools = [mockTool("read_file", "Original")]; + const originalDescription = tools[0].function.description; + + const overrides: ToolOverride[] = [ + { name: "read_file", description: "New description" }, + ]; + const result = applyToolOverrides(tools, overrides); + + // Original should be unchanged + expect(tools[0].function.description).toBe(originalDescription); + // Result should have new description + expect(result.tools[0].function.description).toBe("New description"); + }); +}); diff --git a/core/util/history.ts b/core/util/history.ts index cc1cf69cb..44241c420 100644 --- a/core/util/history.ts +++ b/core/util/history.ts @@ -141,10 +141,14 @@ export class HistoryManager { } let found = false; + const messageCount = session.history.filter( + (item) => item.message.role === "assistant", + ).length; for (const sessionMetadata of sessionsList) { if (sessionMetadata.sessionId === session.sessionId) { sessionMetadata.title = session.title; sessionMetadata.workspaceDirectory = session.workspaceDirectory; + sessionMetadata.messageCount = messageCount; found = true; break; } @@ -156,6 +160,7 @@ export class HistoryManager { title: session.title, dateCreated: String(Date.now()), workspaceDirectory: session.workspaceDirectory, + messageCount, }; sessionsList.push(sessionMetadata); } diff --git a/docs/customize/model-providers/more/nous.mdx b/docs/customize/model-providers/more/nous.mdx new file mode 100644 index 000000000..3ac693e3c --- /dev/null +++ b/docs/customize/model-providers/more/nous.mdx @@ -0,0 +1,95 @@ +--- +title: Nous Research +slug: ../nous +--- + + + **Discover Nous Research Hermes models for advanced reasoning and instruction following** + + + + You can get an API key from the [Nous Research Portal](https://portal.nousresearch.com/). + + +## Available Models + +| Model | Context Length | Description | +|-------|----------------|-------------| +| `Hermes-4.3-36B` | 128k | Compact reasoning model with thinking capabilities | +| `Hermes-4-70B` | 128k | Large reasoning model with 128k context | +| `Hermes-4-405B` | 128k | Flagship reasoning model | +| `Hermes-3-Llama-3.1-70B` | 32k | Instruction-tuned on Llama 3.1 70B | +| `Hermes-3-Llama-3.1-405B` | 32k | Instruction-tuned on Llama 3.1 405B | + +## Configuration + + + + ```yaml title="config.yaml" + name: My Config + version: 0.0.1 + schema: v1 + + models: + - name: Hermes 4.3 36B + provider: nous + model: Hermes-4.3-36B + apiKey: + ``` + + + ```json title="config.json" + { + "models": [ + { + "title": "Hermes 4.3 36B", + "provider": "nous", + "model": "Hermes-4.3-36B", + "apiKey": "" + } + ] + } + ``` + + + +## Reasoning Mode + +Hermes 4 and DeepHermes models support reasoning with chain-of-thought. To enable reasoning, use the following system prompt: + +``` +You are a deep thinking AI, you may use extremely long chains of thought to deeply consider the problem and deliberate with yourself via systematic reasoning processes to help come to a correct solution prior to answering. You should enclose your thoughts and internal monologue inside tags, and then provide your solution or response to the problem. +``` + + + + ```yaml title="config.yaml" + name: My Config + version: 0.0.1 + schema: v1 + + models: + - name: Hermes 4.3 36B (Reasoning) + provider: nous + model: Hermes-4.3-36B + apiKey: + systemMessage: | + You are a deep thinking AI, you may use extremely long chains of thought to deeply consider the problem and deliberate with yourself via systematic reasoning processes to help come to a correct solution prior to answering. You should enclose your thoughts and internal monologue inside tags, and then provide your solution or response to the problem. + ``` + + + ```json title="config.json" + { + "models": [ + { + "title": "Hermes 4.3 36B (Reasoning)", + "provider": "nous", + "model": "Hermes-4.3-36B", + "apiKey": "", + "systemMessage": "You are a deep thinking AI, you may use extremely long chains of thought to deeply consider the problem and deliberate with yourself via systematic reasoning processes to help come to a correct solution prior to answering. You should enclose your thoughts and internal monologue inside tags, and then provide your solution or response to the problem." + } + ] + } + ``` + + diff --git a/docs/docs.json b/docs/docs.json index 7e4ec3c40..2674ab961 100644 --- a/docs/docs.json +++ b/docs/docs.json @@ -198,6 +198,7 @@ "customize/model-providers/more/llamastack", "customize/model-providers/more/mimo", "customize/model-providers/more/mistral", + "customize/model-providers/more/nous", "customize/model-providers/more/nvidia", "customize/model-providers/more/together", "customize/model-providers/more/xAI" diff --git a/docs/index.mdx b/docs/index.mdx index 02847e2f3..a3ea2e066 100644 --- a/docs/index.mdx +++ b/docs/index.mdx @@ -3,6 +3,8 @@ title: "What is Continue?" description: "Run agents as CI checks on every PR" --- +