diff --git a/.github/workflows/continue-agents.yml b/.github/workflows/continue-agents.yml index 8acfe89a3..fd3fc4297 100644 --- a/.github/workflows/continue-agents.yml +++ b/.github/workflows/continue-agents.yml @@ -75,12 +75,14 @@ jobs: - name: Create Check Run id: check uses: actions/github-script@v8 + env: + AGENT_NAME: ${{ steps.agent-name.outputs.name }} with: script: | const { data: check } = await github.rest.checks.create({ owner: context.repo.owner, repo: context.repo.repo, - name: `Continue: ${{ steps.agent-name.outputs.name }}`, + name: `Continue: ${process.env.AGENT_NAME}`, head_sha: context.sha, status: 'in_progress', started_at: new Date().toISOString(), @@ -91,6 +93,7 @@ jobs: id: run env: ANTHROPIC_API_KEY: ${{ secrets.ANTHROPIC_API_KEY }} + GH_TOKEN: ${{ github.token }} run: | AGENT_FILE="${{ matrix.agent }}" @@ -117,22 +120,27 @@ jobs: - name: Write job summary if: always() + env: + AGENT_OUTPUT: ${{ steps.run.outputs.output }} + AGENT_ERROR: ${{ steps.run.outputs.error }} + AGENT_SUCCESS: ${{ steps.run.outputs.success }} + AGENT_NAME: ${{ steps.agent-name.outputs.name }} run: | - echo "## 🤖 Agent: ${{ steps.agent-name.outputs.name }}" >> $GITHUB_STEP_SUMMARY + echo "## 🤖 Agent: $AGENT_NAME" >> $GITHUB_STEP_SUMMARY echo "" >> $GITHUB_STEP_SUMMARY - if [ "${{ steps.run.outputs.success }}" == "true" ]; then + if [ "$AGENT_SUCCESS" == "true" ]; then echo "✅ **Status:** Completed successfully" >> $GITHUB_STEP_SUMMARY echo "" >> $GITHUB_STEP_SUMMARY echo "### Output" >> $GITHUB_STEP_SUMMARY echo '```' >> $GITHUB_STEP_SUMMARY - echo "${{ steps.run.outputs.output }}" >> $GITHUB_STEP_SUMMARY + printf '%s\n' "$AGENT_OUTPUT" >> $GITHUB_STEP_SUMMARY echo '```' >> $GITHUB_STEP_SUMMARY else echo "❌ **Status:** Failed" >> $GITHUB_STEP_SUMMARY echo "" >> $GITHUB_STEP_SUMMARY echo "### Error" >> $GITHUB_STEP_SUMMARY echo '```' >> $GITHUB_STEP_SUMMARY - echo "${{ steps.run.outputs.error }}" >> $GITHUB_STEP_SUMMARY + printf '%s\n' "$AGENT_ERROR" >> $GITHUB_STEP_SUMMARY echo '```' >> $GITHUB_STEP_SUMMARY fi @@ -143,16 +151,21 @@ jobs: - name: Update Check Run if: always() uses: actions/github-script@v8 + env: + AGENT_OUTPUT: ${{ steps.run.outputs.output }} + AGENT_ERROR: ${{ steps.run.outputs.error }} + AGENT_SUCCESS: ${{ steps.run.outputs.success }} + CHECK_RUN_ID: ${{ steps.check.outputs.id }} with: script: | - const success = '${{ steps.run.outputs.success }}' === 'true'; - const output = `${{ steps.run.outputs.output }}`; - const error = `${{ steps.run.outputs.error }}`; + const success = process.env.AGENT_SUCCESS === 'true'; + const output = process.env.AGENT_OUTPUT || ''; + const error = process.env.AGENT_ERROR || ''; await github.rest.checks.update({ owner: context.repo.owner, repo: context.repo.repo, - check_run_id: ${{ steps.check.outputs.id }}, + check_run_id: parseInt(process.env.CHECK_RUN_ID, 10), status: 'completed', conclusion: success ? 'success' : 'failure', completed_at: new Date().toISOString(), diff --git a/.github/workflows/jetbrains-release.yaml b/.github/workflows/jetbrains-release.yaml index ce2c88439..bfe66fae5 100644 --- a/.github/workflows/jetbrains-release.yaml +++ b/.github/workflows/jetbrains-release.yaml @@ -491,7 +491,7 @@ jobs: # Run Qodana inspections - name: Qodana - Code Inspection - uses: JetBrains/qodana-action@v2025.2.4 + uses: JetBrains/qodana-action@v2025.3.1 with: cache-default-branch-only: true diff --git a/.github/workflows/run-continue-agent.yml b/.github/workflows/run-continue-agent.yml index 70b92dff5..476c033a6 100644 --- a/.github/workflows/run-continue-agent.yml +++ b/.github/workflows/run-continue-agent.yml @@ -28,15 +28,24 @@ jobs: steps: - name: Call agents endpoint + env: + PROMPT: ${{ inputs.prompt }} + AGENT: ${{ inputs.agent }} + BRANCH_NAME: ${{ inputs.branch_name }} + REPO_URL: https://github.com/${{ github.repository }} + CONTINUE_API_KEY: ${{ secrets.CONTINUE_API_KEY }} run: | + # Use jq to properly construct JSON with safe escaping + json_body=$(jq -n \ + --arg prompt "$PROMPT" \ + --arg agent "$AGENT" \ + --arg branchName "$BRANCH_NAME" \ + --arg repoUrl "$REPO_URL" \ + '{prompt: $prompt, agent: $agent, branchName: $branchName, repoUrl: $repoUrl}') + response=$(curl -f -X POST https://api.continue.dev/agents \ -H "Content-Type: application/json" \ - -H "Authorization: Bearer ${{ secrets.CONTINUE_API_KEY }}" \ - -d '{ - "prompt": "${{ inputs.prompt }}", - "agent": "${{ inputs.agent }}", - "branchName": "${{ inputs.branch_name }}", - "repoUrl": "https://github.com/${{ github.repository }}" - }') + -H "Authorization: Bearer $CONTINUE_API_KEY" \ + -d "$json_body") id=$(echo $response | jq -r '.id') echo "https://hub.continue.dev/hub?type=agents/$id" diff --git a/.github/workflows/tidy-up-codebase.yml b/.github/workflows/tidy-up-codebase.yml index dc70faaaa..bd490022a 100644 --- a/.github/workflows/tidy-up-codebase.yml +++ b/.github/workflows/tidy-up-codebase.yml @@ -8,6 +8,8 @@ on: jobs: run-cn-task: + # Only run this workflow on the main repository (continuedev/continue) + if: github.repository == 'continuedev/continue' uses: ./.github/workflows/run-continue-agent.yml with: agent: continuedev/tidy-up-markdown-agent diff --git a/binary/package-lock.json b/binary/package-lock.json index a49050b34..2023ac656 100644 --- a/binary/package-lock.json +++ b/binary/package-lock.json @@ -49,16 +49,16 @@ "license": "Apache-2.0", "dependencies": { "@anthropic-ai/sdk": "^0.62.0", - "@aws-sdk/client-bedrock-runtime": "^3.779.0", + "@aws-sdk/client-bedrock-runtime": "^3.931.0", "@aws-sdk/client-sagemaker-runtime": "^3.777.0", - "@aws-sdk/credential-providers": "^3.778.0", - "@continuedev/config-types": "^1.0.13", + "@aws-sdk/credential-providers": "^3.931.0", + "@continuedev/config-types": "^1.0.14", "@continuedev/config-yaml": "file:../packages/config-yaml", "@continuedev/fetch": "file:../packages/fetch", "@continuedev/llm-info": "file:../packages/llm-info", "@continuedev/openai-adapters": "file:../packages/openai-adapters", "@continuedev/terminal-security": "file:../packages/terminal-security", - "@modelcontextprotocol/sdk": "^1.12.0", + "@modelcontextprotocol/sdk": "^1.25.2", "@mozilla/readability": "^0.5.0", "@octokit/rest": "^20.1.1", "@sentry/cli": "^2.50.2", @@ -42085,12 +42085,16 @@ "version": "1.32.0", "license": "Apache-2.0", "dependencies": { + "@ai-sdk/anthropic": "^1.0.10", + "@ai-sdk/openai": "^1.0.10", "@anthropic-ai/sdk": "^0.67.0", - "@aws-sdk/client-bedrock-runtime": "^3.925.0", - "@aws-sdk/credential-providers": "^3.929.0", + "@aws-sdk/client-bedrock-runtime": "^3.931.0", + "@aws-sdk/credential-providers": "^3.931.0", "@continuedev/config-types": "^1.0.14", - "@continuedev/config-yaml": "^1.36.0", + "@continuedev/config-yaml": "^1.38.0", "@continuedev/fetch": "^1.6.0", + "@google/genai": "^1.30.0", + "ai": "^4.0.33", "dotenv": "^16.5.0", "google-auth-library": "^10.4.1", "json-schema": "^0.4.0", @@ -57692,6 +57696,193 @@ "node": ">=14.21.3" } }, + "node_modules/@biomejs/cli-darwin-x64": { + "version": "1.6.4", + "resolved": "https://registry.npmjs.org/@biomejs/cli-darwin-x64/-/cli-darwin-x64-1.6.4.tgz", + "integrity": "sha512-uo1zgM7jvzcoDpF6dbGizejDLCqNpUIRkCj/oEK0PB0NUw8re/cn1EnxuOLZqDpn+8G75COLQTOx8UQIBBN/Kg==", + "cpu": [ + "x64" + ], + "dev": true, + "license": "MIT OR Apache-2.0", + "optional": true, + "os": [ + "darwin" + ], + "engines": { + "node": ">=14.21.3" + } + }, + "node_modules/@biomejs/cli-linux-arm64": { + "version": "1.6.4", + "resolved": "https://registry.npmjs.org/@biomejs/cli-linux-arm64/-/cli-linux-arm64-1.6.4.tgz", + "integrity": "sha512-wAOieaMNIpLrxGc2/xNvM//CIZg7ueWy3V5A4T7gDZ3OL/Go27EKE59a+vMKsBCYmTt7jFl4yHz0TUkUbodA/w==", + "cpu": [ + "arm64" + ], + "dev": true, + "license": "MIT OR Apache-2.0", + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": ">=14.21.3" + } + }, + "node_modules/@biomejs/cli-linux-arm64-musl": { + "version": "1.6.4", + "resolved": "https://registry.npmjs.org/@biomejs/cli-linux-arm64-musl/-/cli-linux-arm64-musl-1.6.4.tgz", + "integrity": "sha512-Hp8Jwt6rjj0wCcYAEN6/cfwrrPLLlGOXZ56Lei4Pt4jy39+UuPeAVFPeclrrCfxyL1wQ2xPrhd/saTHSL6DoJg==", + "cpu": [ + "arm64" + ], + "dev": true, + "license": "MIT OR Apache-2.0", + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": ">=14.21.3" + } + }, + "node_modules/@biomejs/cli-linux-x64": { + "version": "1.6.4", + "resolved": "https://registry.npmjs.org/@biomejs/cli-linux-x64/-/cli-linux-x64-1.6.4.tgz", + "integrity": "sha512-qTWhuIw+/ePvOkjE9Zxf5OqSCYxtAvcTJtVmZT8YQnmY2I62JKNV2m7tf6O5ViKZUOP0mOQ6NgqHKcHH1eT8jw==", + "cpu": [ + "x64" + ], + "dev": true, + "license": "MIT OR Apache-2.0", + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": ">=14.21.3" + } + }, + "node_modules/@biomejs/cli-linux-x64-musl": { + "version": "1.6.4", + "resolved": "https://registry.npmjs.org/@biomejs/cli-linux-x64-musl/-/cli-linux-x64-musl-1.6.4.tgz", + "integrity": "sha512-wqi0hr8KAx5kBO0B+m5u8QqiYFFBJOSJVSuRqTeGWW+GYLVUtXNidykNqf1JsW6jJDpbkSp2xHKE/bTlVaG2Kg==", + "cpu": [ + "x64" + ], + "dev": true, + "license": "MIT OR Apache-2.0", + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": ">=14.21.3" + } + }, + "node_modules/@biomejs/cli-win32-arm64": { + "version": "1.6.4", + "resolved": "https://registry.npmjs.org/@biomejs/cli-win32-arm64/-/cli-win32-arm64-1.6.4.tgz", + "integrity": "sha512-Wp3FiEeF6v6C5qMfLkHwf4YsoNHr/n0efvoC8jCKO/kX05OXaVExj+1uVQ1eGT7Pvx0XVm/TLprRO0vq/V6UzA==", + "cpu": [ + "arm64" + ], + "dev": true, + "license": "MIT OR Apache-2.0", + "optional": true, + "os": [ + "win32" + ], + "engines": { + "node": ">=14.21.3" + } + }, + "node_modules/@biomejs/cli-win32-x64": { + "version": "1.6.4", + "resolved": "https://registry.npmjs.org/@biomejs/cli-win32-x64/-/cli-win32-x64-1.6.4.tgz", + "integrity": "sha512-mz183Di5hTSGP7KjNWEhivcP1wnHLGmOxEROvoFsIxMYtDhzJDad4k5gI/1JbmA0xe4n52vsgqo09tBhrMT/Zg==", + "cpu": [ + "x64" + ], + "dev": true, + "license": "MIT OR Apache-2.0", + "optional": true, + "os": [ + "win32" + ], + "engines": { + "node": ">=14.21.3" + } + }, + "node_modules/@esbuild/aix-ppc64": { + "version": "0.19.11", + "resolved": "https://registry.npmjs.org/@esbuild/aix-ppc64/-/aix-ppc64-0.19.11.tgz", + "integrity": "sha512-FnzU0LyE3ySQk7UntJO4+qIiQgI7KoODnZg5xzXIrFJlKd2P2gwHsHY4927xj9y5PJmJSzULiUCWmv7iWnNa7g==", + "cpu": [ + "ppc64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "aix" + ], + "engines": { + "node": ">=12" + } + }, + "node_modules/@esbuild/android-arm": { + "version": "0.19.11", + "resolved": "https://registry.npmjs.org/@esbuild/android-arm/-/android-arm-0.19.11.tgz", + "integrity": "sha512-5OVapq0ClabvKvQ58Bws8+wkLCV+Rxg7tUVbo9xu034Nm536QTII4YzhaFriQ7rMrorfnFKUsArD2lqKbFY4vw==", + "cpu": [ + "arm" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "android" + ], + "engines": { + "node": ">=12" + } + }, + "node_modules/@esbuild/android-arm64": { + "version": "0.19.11", + "resolved": "https://registry.npmjs.org/@esbuild/android-arm64/-/android-arm64-0.19.11.tgz", + "integrity": "sha512-aiu7K/5JnLj//KOnOfEZ0D90obUkRzDMyqd/wNAUQ34m4YUPVhRZpnqKV9uqDGxT7cToSDnIHsGooyIczu9T+Q==", + "cpu": [ + "arm64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "android" + ], + "engines": { + "node": ">=12" + } + }, + "node_modules/@esbuild/android-x64": { + "version": "0.19.11", + "resolved": "https://registry.npmjs.org/@esbuild/android-x64/-/android-x64-0.19.11.tgz", + "integrity": "sha512-eccxjlfGw43WYoY9QgB82SgGgDbibcqyDTlk3l3C0jOVHKxrjdc9CTwDUQd0vkvYg5um0OH+GpxYvp39r+IPOg==", + "cpu": [ + "x64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "android" + ], + "engines": { + "node": ">=12" + } + }, "node_modules/@esbuild/darwin-arm64": { "version": "0.19.11", "cpu": [ @@ -57707,6 +57898,312 @@ "node": ">=12" } }, + "node_modules/@esbuild/darwin-x64": { + "version": "0.19.11", + "resolved": "https://registry.npmjs.org/@esbuild/darwin-x64/-/darwin-x64-0.19.11.tgz", + "integrity": "sha512-fkFUiS6IUK9WYUO/+22omwetaSNl5/A8giXvQlcinLIjVkxwTLSktbF5f/kJMftM2MJp9+fXqZ5ezS7+SALp4g==", + "cpu": [ + "x64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "darwin" + ], + "engines": { + "node": ">=12" + } + }, + "node_modules/@esbuild/freebsd-arm64": { + "version": "0.19.11", + "resolved": "https://registry.npmjs.org/@esbuild/freebsd-arm64/-/freebsd-arm64-0.19.11.tgz", + "integrity": "sha512-lhoSp5K6bxKRNdXUtHoNc5HhbXVCS8V0iZmDvyWvYq9S5WSfTIHU2UGjcGt7UeS6iEYp9eeymIl5mJBn0yiuxA==", + "cpu": [ + "arm64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "freebsd" + ], + "engines": { + "node": ">=12" + } + }, + "node_modules/@esbuild/freebsd-x64": { + "version": "0.19.11", + "resolved": "https://registry.npmjs.org/@esbuild/freebsd-x64/-/freebsd-x64-0.19.11.tgz", + "integrity": "sha512-JkUqn44AffGXitVI6/AbQdoYAq0TEullFdqcMY/PCUZ36xJ9ZJRtQabzMA+Vi7r78+25ZIBosLTOKnUXBSi1Kw==", + "cpu": [ + "x64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "freebsd" + ], + "engines": { + "node": ">=12" + } + }, + "node_modules/@esbuild/linux-arm": { + "version": "0.19.11", + "resolved": "https://registry.npmjs.org/@esbuild/linux-arm/-/linux-arm-0.19.11.tgz", + "integrity": "sha512-3CRkr9+vCV2XJbjwgzjPtO8T0SZUmRZla+UL1jw+XqHZPkPgZiyWvbDvl9rqAN8Zl7qJF0O/9ycMtjU67HN9/Q==", + "cpu": [ + "arm" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": ">=12" + } + }, + "node_modules/@esbuild/linux-arm64": { + "version": "0.19.11", + "resolved": "https://registry.npmjs.org/@esbuild/linux-arm64/-/linux-arm64-0.19.11.tgz", + "integrity": "sha512-LneLg3ypEeveBSMuoa0kwMpCGmpu8XQUh+mL8XXwoYZ6Be2qBnVtcDI5azSvh7vioMDhoJFZzp9GWp9IWpYoUg==", + "cpu": [ + "arm64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": ">=12" + } + }, + "node_modules/@esbuild/linux-ia32": { + "version": "0.19.11", + "resolved": "https://registry.npmjs.org/@esbuild/linux-ia32/-/linux-ia32-0.19.11.tgz", + "integrity": "sha512-caHy++CsD8Bgq2V5CodbJjFPEiDPq8JJmBdeyZ8GWVQMjRD0sU548nNdwPNvKjVpamYYVL40AORekgfIubwHoA==", + "cpu": [ + "ia32" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": ">=12" + } + }, + "node_modules/@esbuild/linux-loong64": { + "version": "0.19.11", + "resolved": "https://registry.npmjs.org/@esbuild/linux-loong64/-/linux-loong64-0.19.11.tgz", + "integrity": "sha512-ppZSSLVpPrwHccvC6nQVZaSHlFsvCQyjnvirnVjbKSHuE5N24Yl8F3UwYUUR1UEPaFObGD2tSvVKbvR+uT1Nrg==", + "cpu": [ + "loong64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": ">=12" + } + }, + "node_modules/@esbuild/linux-mips64el": { + "version": "0.19.11", + "resolved": "https://registry.npmjs.org/@esbuild/linux-mips64el/-/linux-mips64el-0.19.11.tgz", + "integrity": "sha512-B5x9j0OgjG+v1dF2DkH34lr+7Gmv0kzX6/V0afF41FkPMMqaQ77pH7CrhWeR22aEeHKaeZVtZ6yFwlxOKPVFyg==", + "cpu": [ + "mips64el" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": ">=12" + } + }, + "node_modules/@esbuild/linux-ppc64": { + "version": "0.19.11", + "resolved": "https://registry.npmjs.org/@esbuild/linux-ppc64/-/linux-ppc64-0.19.11.tgz", + "integrity": "sha512-MHrZYLeCG8vXblMetWyttkdVRjQlQUb/oMgBNurVEnhj4YWOr4G5lmBfZjHYQHHN0g6yDmCAQRR8MUHldvvRDA==", + "cpu": [ + "ppc64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": ">=12" + } + }, + "node_modules/@esbuild/linux-riscv64": { + "version": "0.19.11", + "resolved": "https://registry.npmjs.org/@esbuild/linux-riscv64/-/linux-riscv64-0.19.11.tgz", + "integrity": "sha512-f3DY++t94uVg141dozDu4CCUkYW+09rWtaWfnb3bqe4w5NqmZd6nPVBm+qbz7WaHZCoqXqHz5p6CM6qv3qnSSQ==", + "cpu": [ + "riscv64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": ">=12" + } + }, + "node_modules/@esbuild/linux-s390x": { + "version": "0.19.11", + "resolved": "https://registry.npmjs.org/@esbuild/linux-s390x/-/linux-s390x-0.19.11.tgz", + "integrity": "sha512-A5xdUoyWJHMMlcSMcPGVLzYzpcY8QP1RtYzX5/bS4dvjBGVxdhuiYyFwp7z74ocV7WDc0n1harxmpq2ePOjI0Q==", + "cpu": [ + "s390x" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": ">=12" + } + }, + "node_modules/@esbuild/linux-x64": { + "version": "0.19.11", + "resolved": "https://registry.npmjs.org/@esbuild/linux-x64/-/linux-x64-0.19.11.tgz", + "integrity": "sha512-grbyMlVCvJSfxFQUndw5mCtWs5LO1gUlwP4CDi4iJBbVpZcqLVT29FxgGuBJGSzyOxotFG4LoO5X+M1350zmPA==", + "cpu": [ + "x64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": ">=12" + } + }, + "node_modules/@esbuild/netbsd-x64": { + "version": "0.19.11", + "resolved": "https://registry.npmjs.org/@esbuild/netbsd-x64/-/netbsd-x64-0.19.11.tgz", + "integrity": "sha512-13jvrQZJc3P230OhU8xgwUnDeuC/9egsjTkXN49b3GcS5BKvJqZn86aGM8W9pd14Kd+u7HuFBMVtrNGhh6fHEQ==", + "cpu": [ + "x64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "netbsd" + ], + "engines": { + "node": ">=12" + } + }, + "node_modules/@esbuild/openbsd-x64": { + "version": "0.19.11", + "resolved": "https://registry.npmjs.org/@esbuild/openbsd-x64/-/openbsd-x64-0.19.11.tgz", + "integrity": "sha512-ysyOGZuTp6SNKPE11INDUeFVVQFrhcNDVUgSQVDzqsqX38DjhPEPATpid04LCoUr2WXhQTEZ8ct/EgJCUDpyNw==", + "cpu": [ + "x64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "openbsd" + ], + "engines": { + "node": ">=12" + } + }, + "node_modules/@esbuild/sunos-x64": { + "version": "0.19.11", + "resolved": "https://registry.npmjs.org/@esbuild/sunos-x64/-/sunos-x64-0.19.11.tgz", + "integrity": "sha512-Hf+Sad9nVwvtxy4DXCZQqLpgmRTQqyFyhT3bZ4F2XlJCjxGmRFF0Shwn9rzhOYRB61w9VMXUkxlBy56dk9JJiQ==", + "cpu": [ + "x64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "sunos" + ], + "engines": { + "node": ">=12" + } + }, + "node_modules/@esbuild/win32-arm64": { + "version": "0.19.11", + "resolved": "https://registry.npmjs.org/@esbuild/win32-arm64/-/win32-arm64-0.19.11.tgz", + "integrity": "sha512-0P58Sbi0LctOMOQbpEOvOL44Ne0sqbS0XWHMvvrg6NE5jQ1xguCSSw9jQeUk2lfrXYsKDdOe6K+oZiwKPilYPQ==", + "cpu": [ + "arm64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "win32" + ], + "engines": { + "node": ">=12" + } + }, + "node_modules/@esbuild/win32-ia32": { + "version": "0.19.11", + "resolved": "https://registry.npmjs.org/@esbuild/win32-ia32/-/win32-ia32-0.19.11.tgz", + "integrity": "sha512-6YOrWS+sDJDmshdBIQU+Uoyh7pQKrdykdefC1avn76ss5c+RN6gut3LZA4E2cH5xUEp5/cA0+YxRaVtRAb0xBg==", + "cpu": [ + "ia32" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "win32" + ], + "engines": { + "node": ">=12" + } + }, + "node_modules/@esbuild/win32-x64": { + "version": "0.19.11", + "resolved": "https://registry.npmjs.org/@esbuild/win32-x64/-/win32-x64-0.19.11.tgz", + "integrity": "sha512-vfkhltrjCAb603XaFhqhAF4LGDi2M4OrCRrFusyQ+iTLQ/o60QQXxc9cZC/FFpihBI9N1Grn6SMKVJ4KP7Fuiw==", + "cpu": [ + "x64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "win32" + ], + "engines": { + "node": ">=12" + } + }, "node_modules/@isaacs/cliui": { "version": "8.0.2", "resolved": "https://registry.npmjs.org/@isaacs/cliui/-/cliui-8.0.2.tgz", @@ -58153,6 +58650,58 @@ "darwin" ] }, + "node_modules/@lancedb/vectordb-darwin-x64": { + "version": "0.4.20", + "resolved": "https://registry.npmjs.org/@lancedb/vectordb-darwin-x64/-/vectordb-darwin-x64-0.4.20.tgz", + "integrity": "sha512-GSYsXE20RIehDu30FjREhJdEzhnwOTV7ZsrSXagStzLY1gr7pyd7sfqxmmUtdD09di7LnQoiM71AOpPTa01YwQ==", + "cpu": [ + "x64" + ], + "license": "Apache-2.0", + "optional": true, + "os": [ + "darwin" + ] + }, + "node_modules/@lancedb/vectordb-linux-arm64-gnu": { + "version": "0.4.20", + "resolved": "https://registry.npmjs.org/@lancedb/vectordb-linux-arm64-gnu/-/vectordb-linux-arm64-gnu-0.4.20.tgz", + "integrity": "sha512-FpNOjOsz3nJVm6EBGyNgbOW2aFhsWZ/igeY45Z8hbZaaK2YBwrg/DASoNlUzgv6IR8cUaGJ2irNVJfsKR2cG6g==", + "cpu": [ + "arm64" + ], + "license": "Apache-2.0", + "optional": true, + "os": [ + "linux" + ] + }, + "node_modules/@lancedb/vectordb-linux-x64-gnu": { + "version": "0.4.20", + "resolved": "https://registry.npmjs.org/@lancedb/vectordb-linux-x64-gnu/-/vectordb-linux-x64-gnu-0.4.20.tgz", + "integrity": "sha512-pOqWjrRZQSrLTlQPkjidRii7NZDw8Xu9pN6ouVu2JAK8n81FXaPtFCyAI+Y3v9GpnYDN0rvD4eQ36aHAVPsa2g==", + "cpu": [ + "x64" + ], + "license": "Apache-2.0", + "optional": true, + "os": [ + "linux" + ] + }, + "node_modules/@lancedb/vectordb-win32-x64-msvc": { + "version": "0.4.20", + "resolved": "https://registry.npmjs.org/@lancedb/vectordb-win32-x64-msvc/-/vectordb-win32-x64-msvc-0.4.20.tgz", + "integrity": "sha512-5J5SsYSJ7jRCmU/sgwVHdrGz43B/7R2T9OEoFTKyVAtqTZdu75rkytXyn9SyEayXVhlUOaw76N0ASm0hAoDS/A==", + "cpu": [ + "x64" + ], + "license": "Apache-2.0", + "optional": true, + "os": [ + "win32" + ] + }, "node_modules/@neon-rs/load": { "version": "0.0.74", "license": "MIT" @@ -62629,9 +63178,9 @@ } }, "node_modules/undici": { - "version": "7.16.0", - "resolved": "https://registry.npmjs.org/undici/-/undici-7.16.0.tgz", - "integrity": "sha512-QEg3HPMll0o3t2ourKwOeUAZ159Kn9mx5pnzHRQO8+Wixmh88YdZRiIwat0iNzNNXn0yoEtXJqFpyW7eM8BV7g==", + "version": "7.18.2", + "resolved": "https://registry.npmjs.org/undici/-/undici-7.18.2.tgz", + "integrity": "sha512-y+8YjDFzWdQlSE9N5nzKMT3g4a5UBX1HKowfdXh0uvAnTaqqwqB92Jt4UXBAeKekDs5IaDKyJFR4X1gYVCgXcw==", "license": "MIT", "engines": { "node": ">=20.18.1" @@ -62789,6 +63338,29 @@ "split": "^1.0.1" } }, + "node_modules/win-export-certificate-and-key": { + "version": "1.1.2", + "resolved": "https://registry.npmjs.org/win-export-certificate-and-key/-/win-export-certificate-and-key-1.1.2.tgz", + "integrity": "sha512-3Su7Xdt9UR8pZicWQDcGSWNL6We/NzAGxe7AeQ1Z/zAeGHWlTKAh3HemGvIvxLRPsk4NW9D/QL3cL6SIvFcTvQ==", + "hasInstallScript": true, + "license": "Apache-2.0", + "optional": true, + "os": [ + "win32" + ], + "dependencies": { + "bindings": "^1.5.0", + "node-addon-api": "^3.1.0", + "node-forge": "^1.2.1" + } + }, + "node_modules/win-export-certificate-and-key/node_modules/node-addon-api": { + "version": "3.2.1", + "resolved": "https://registry.npmjs.org/node-addon-api/-/node-addon-api-3.2.1.tgz", + "integrity": "sha512-mmcei9JghVNDYydghQmeDX8KoAm0FAiYyIcUt/N4nhyAipB17pllZQDOJD2fotxABnt4Mdz+dKTO7eftLg4d0A==", + "license": "MIT", + "optional": true + }, "node_modules/wordwrapjs": { "version": "5.1.0", "license": "MIT", diff --git a/core/config/ConfigHandler.ts b/core/config/ConfigHandler.ts index 134f79d4e..86489dc44 100644 --- a/core/config/ConfigHandler.ts +++ b/core/config/ConfigHandler.ts @@ -360,12 +360,12 @@ export class ConfigHandler { if (options.includeWorkspace) { const assistantFiles = await getAllDotContinueDefinitionFiles( this.ide, - options, + { ...options, fileExtType: "yaml" }, "assistants", ); const agentFiles = await getAllDotContinueDefinitionFiles( this.ide, - options, + { ...options, fileExtType: "yaml" }, "agents", ); const profiles = [...assistantFiles, ...agentFiles].map((assistant) => { diff --git a/core/config/load.ts b/core/config/load.ts index 35d12d421..4a88fbcce 100644 --- a/core/config/load.ts +++ b/core/config/load.ts @@ -514,6 +514,7 @@ async function intermediateToFinalConfig({ autocomplete: [...tabAutocompleteModels], embed: newEmbedder ? [newEmbedder] : [], rerank: newReranker ? [newReranker] : [], + subagent: [], }, selectedModelByRole: { chat: null, // Not implemented (uses GUI defaultModel) @@ -523,6 +524,7 @@ async function intermediateToFinalConfig({ autocomplete: null, rerank: newReranker ?? null, summarize: null, // Not implemented + subagent: null, }, rules: [], }; diff --git a/core/config/usesFreeTrialApiKey.vitest.ts b/core/config/usesFreeTrialApiKey.vitest.ts index 6d8318830..79dfca35a 100644 --- a/core/config/usesFreeTrialApiKey.vitest.ts +++ b/core/config/usesFreeTrialApiKey.vitest.ts @@ -58,6 +58,7 @@ describe("usesFreeTrialApiKey", () => { autocomplete: [], rerank: [], embed: [], + subagent: [], }, selectedModelByRole: { chat: null, @@ -67,6 +68,7 @@ describe("usesFreeTrialApiKey", () => { autocomplete: null, rerank: null, embed: null, + subagent: null, }, contextProviders: [], slashCommands: [], @@ -106,6 +108,7 @@ describe("usesFreeTrialApiKey", () => { autocomplete: [], rerank: [], embed: [], + subagent: [], }, selectedModelByRole: { chat: null, @@ -115,6 +118,7 @@ describe("usesFreeTrialApiKey", () => { autocomplete: null, rerank: null, embed: null, + subagent: null, }, contextProviders: [], slashCommands: [], @@ -166,6 +170,7 @@ describe("usesFreeTrialApiKey", () => { autocomplete: [], rerank: [], embed: [], + subagent: [], }, selectedModelByRole: { chat: null, @@ -175,6 +180,7 @@ describe("usesFreeTrialApiKey", () => { autocomplete: null, rerank: null, embed: null, + subagent: null, }, contextProviders: [], slashCommands: [], @@ -227,6 +233,7 @@ describe("usesFreeTrialApiKey", () => { autocomplete: [], rerank: [], embed: [], + subagent: [], }, selectedModelByRole: { chat: null, @@ -236,6 +243,7 @@ describe("usesFreeTrialApiKey", () => { autocomplete: null, rerank: null, embed: null, + subagent: null, }, contextProviders: [], slashCommands: [], @@ -281,6 +289,7 @@ describe("usesFreeTrialApiKey", () => { autocomplete: [], rerank: [], embed: [], + subagent: [], }, selectedModelByRole: { chat: null, @@ -290,6 +299,7 @@ describe("usesFreeTrialApiKey", () => { autocomplete: null, rerank: null, embed: null, + subagent: null, }, contextProviders: [], slashCommands: [], @@ -323,6 +333,7 @@ describe("usesFreeTrialApiKey", () => { autocomplete: [], rerank: [], embed: [], + subagent: [], }, selectedModelByRole: { chat: null, @@ -332,6 +343,7 @@ describe("usesFreeTrialApiKey", () => { autocomplete: null, rerank: null, embed: null, + subagent: null, }, contextProviders: [], slashCommands: [], diff --git a/core/config/yaml/loadYaml.ts b/core/config/yaml/loadYaml.ts index 40821bb04..3c0f2d220 100644 --- a/core/config/yaml/loadYaml.ts +++ b/core/config/yaml/loadYaml.ts @@ -187,6 +187,7 @@ export async function configYamlToContinueConfig(options: { autocomplete: [], rerank: [], summarize: [], + subagent: [], }, selectedModelByRole: { chat: null, @@ -196,6 +197,7 @@ export async function configYamlToContinueConfig(options: { autocomplete: null, rerank: null, summarize: null, + subagent: null, }, rules: [], requestOptions: { ...config.requestOptions }, @@ -333,6 +335,10 @@ export async function configYamlToContinueConfig(options: { if (model.roles?.includes("rerank")) { continueConfig.modelsByRole.rerank.push(...llms); } + + if (model.roles?.includes("subagent")) { + continueConfig.modelsByRole.subagent.push(...llms); + } } catch (e) { localErrors.push({ fatal: false, diff --git a/core/config/yaml/models.vitest.ts b/core/config/yaml/models.vitest.ts index aa2bc4691..0e99448d5 100644 --- a/core/config/yaml/models.vitest.ts +++ b/core/config/yaml/models.vitest.ts @@ -67,6 +67,7 @@ describe("llmsFromModelConfig requestOptions merging", () => { embed: null, rerank: null, summarize: null, + subagent: null, }, modelsByRole: { apply: [], @@ -76,6 +77,7 @@ describe("llmsFromModelConfig requestOptions merging", () => { embed: [], rerank: [], summarize: [], + subagent: [], }, slashCommands: [], tools: [], diff --git a/core/core.ts b/core/core.ts index 2985c0486..e61c7240e 100644 --- a/core/core.ts +++ b/core/core.ts @@ -414,6 +414,7 @@ export class Core { msg.data.blockType, msg.data.baseFilename, ); + walkDirCache.invalidate(); await this.configHandler.reloadConfig( "Local block created (config/addLocalWorkspaceBlock message)", ); @@ -422,6 +423,7 @@ export class Core { on("config/addGlobalRule", async (msg) => { try { await createNewGlobalRuleFile(this.ide, msg.data?.baseFilename); + walkDirCache.invalidate(); await this.configHandler.reloadConfig( "Global rule created (config/addGlobalRule message)", ); diff --git a/core/llm/autodetect.ts b/core/llm/autodetect.ts index cf0630c59..2adb20a02 100644 --- a/core/llm/autodetect.ts +++ b/core/llm/autodetect.ts @@ -58,6 +58,7 @@ const PROVIDER_HANDLES_TEMPLATING: string[] = [ "sagemaker", "continue-proxy", "mistral", + "mimo", "sambanova", "vertexai", "watsonx", diff --git a/core/llm/llms/Asksage.ts b/core/llm/llms/Asksage.ts index 93d2016c3..d00222e54 100644 --- a/core/llm/llms/Asksage.ts +++ b/core/llm/llms/Asksage.ts @@ -4,6 +4,8 @@ import { CompletionOptions, LLMOptions, TextMessagePart, + Tool, + ToolCallDelta, } from "../../index.js"; import { BaseLLM } from "../index.js"; @@ -61,15 +63,26 @@ interface AskSageRequestArgs { file?: unknown; } +interface AskSageToolCall { + id: string; + type: "function"; + function: { + name: string; + arguments: string; + }; +} + interface AskSageResponse { text?: string; answer?: string; message?: string; status?: number | string; response?: unknown; + tool_calls?: AskSageToolCall[]; choices?: Array<{ message?: { content?: string; + tool_calls?: AskSageToolCall[]; }; }>; } @@ -185,6 +198,17 @@ class Asksage extends BaseLLM { }; } + protected _convertToolToAskSageTool(tool: Tool): AskSageTool { + return { + type: tool.type, + function: { + name: tool.function.name, + description: tool.function.description, + parameters: tool.function.parameters, + }, + }; + } + protected _convertArgs( options: AskSageCompletionOptions, messages: ChatMessage[], @@ -196,6 +220,14 @@ class Asksage extends BaseLLM { formattedMessage = messages.map(this._convertMessage); } + // Convert standard tools to AskSage format, or use askSageTools if provided + const tools = + options.tools?.map((tool) => this._convertToolToAskSageTool(tool)) ?? + options.askSageTools; + + // Map standard toolChoice to AskSage format, or use askSageToolChoice if provided + const toolChoice = options.toolChoice ?? options.askSageToolChoice; + const args: AskSageRequestArgs = { message: formattedMessage, model: options.model, @@ -207,10 +239,8 @@ class Asksage extends BaseLLM { options.systemPrompt ?? process.env.ASKSAGE_SYSTEM_PROMPT ?? "You are an expert software developer. You give helpful and concise responses.", - tools: options.askSageTools, - // enabled_mcp_tools: options.enabledMcpTools as string[] | undefined, - // tools_to_execute: options.toolsToExecute as string[] | undefined, - tool_choice: options.askSageToolChoice, + tools, + tool_choice: toolChoice, reasoning_effort: options.reasoningEffort as | "low" | "medium" @@ -391,6 +421,22 @@ class Asksage extends BaseLLM { const data = (await response.json()) as AskSageResponse; + // Extract tool calls from response (check both top-level and choices format) + const rawToolCalls = + data.tool_calls || data.choices?.[0]?.message?.tool_calls; + + // Convert to ToolCallDelta format if present + const toolCalls: ToolCallDelta[] | undefined = rawToolCalls?.map( + (tc) => ({ + id: tc.id, + type: tc.type, + function: { + name: tc.function.name, + arguments: tc.function.arguments, + }, + }), + ); + const assistantMessage: ChatMessage = { role: "assistant", content: @@ -399,6 +445,7 @@ class Asksage extends BaseLLM { data.message || data.choices?.[0]?.message?.content || "", + ...(toolCalls && toolCalls.length > 0 ? { toolCalls } : {}), }; yield assistantMessage; diff --git a/core/llm/llms/Mimo.ts b/core/llm/llms/Mimo.ts new file mode 100644 index 000000000..9de83a6e0 --- /dev/null +++ b/core/llm/llms/Mimo.ts @@ -0,0 +1,13 @@ +import { LLMOptions } from "../../index.js"; + +import OpenAI from "./OpenAI.js"; + +class Mimo extends OpenAI { + static providerName = "mimo"; + static defaultOptions: Partial = { + apiBase: "https://api.xiaomimimo.com/v1/", + model: "mimo-v2-flash", + }; +} + +export default Mimo; diff --git a/core/llm/llms/OpenAI-compatible.vitest.ts b/core/llm/llms/OpenAI-compatible.vitest.ts index 2ec8de109..402fb7e75 100644 --- a/core/llm/llms/OpenAI-compatible.vitest.ts +++ b/core/llm/llms/OpenAI-compatible.vitest.ts @@ -9,6 +9,7 @@ import Deepseek from "./Deepseek.js"; import OpenRouter from "./OpenRouter.js"; import xAI from "./xAI.js"; import Mistral from "./Mistral.js"; +import Mimo from "./Mimo.js"; import LMStudio from "./LMStudio.js"; import Cerebras from "./Cerebras.js"; import DeepInfra from "./DeepInfra.js"; @@ -300,6 +301,11 @@ createOpenAISubclassTests(Mistral, { modelConversionContent: "hello", }); +createOpenAISubclassTests(Mimo, { + providerName: "mimo", + defaultApiBase: "https://api.xiaomimimo.com/v1/", +}); + createOpenAISubclassTests(LMStudio, { providerName: "lmstudio", defaultApiBase: "http://localhost:1234/v1/", diff --git a/core/llm/llms/index.ts b/core/llm/llms/index.ts index 6ef57eae3..03f6eeaa3 100644 --- a/core/llm/llms/index.ts +++ b/core/llm/llms/index.ts @@ -37,6 +37,7 @@ import LlamaStack from "./LlamaStack"; import Lemonade from "./Lemonade"; import LMStudio from "./LMStudio"; import Mistral from "./Mistral"; +import Mimo from "./Mimo"; import MockLLM from "./Mock"; import Moonshot from "./Moonshot"; import Msty from "./Msty"; @@ -88,6 +89,7 @@ export const LLMClasses = [ Lemonade, LMStudio, Mistral, + Mimo, Bedrock, BedrockImport, SageMaker, diff --git a/core/package-lock.json b/core/package-lock.json index 00b799d20..3ce231f23 100644 --- a/core/package-lock.json +++ b/core/package-lock.json @@ -13,13 +13,13 @@ "@aws-sdk/client-bedrock-runtime": "^3.931.0", "@aws-sdk/client-sagemaker-runtime": "^3.777.0", "@aws-sdk/credential-providers": "^3.931.0", - "@continuedev/config-types": "^1.0.13", + "@continuedev/config-types": "^1.0.14", "@continuedev/config-yaml": "file:../packages/config-yaml", "@continuedev/fetch": "file:../packages/fetch", "@continuedev/llm-info": "file:../packages/llm-info", "@continuedev/openai-adapters": "file:../packages/openai-adapters", "@continuedev/terminal-security": "file:../packages/terminal-security", - "@modelcontextprotocol/sdk": "^1.24.0", + "@modelcontextprotocol/sdk": "^1.25.2", "@mozilla/readability": "^0.5.0", "@octokit/rest": "^20.1.1", "@sentry/cli": "^2.50.2", @@ -220,13 +220,16 @@ "version": "1.32.0", "license": "Apache-2.0", "dependencies": { + "@ai-sdk/anthropic": "^1.0.10", + "@ai-sdk/openai": "^1.0.10", "@anthropic-ai/sdk": "^0.67.0", "@aws-sdk/client-bedrock-runtime": "^3.931.0", "@aws-sdk/credential-providers": "^3.931.0", "@continuedev/config-types": "^1.0.14", - "@continuedev/config-yaml": "^1.36.0", + "@continuedev/config-yaml": "^1.38.0", "@continuedev/fetch": "^1.6.0", "@google/genai": "^1.30.0", + "ai": "^4.0.33", "dotenv": "^16.5.0", "google-auth-library": "^10.4.1", "json-schema": "^0.4.0", @@ -271,6 +274,7 @@ "version": "1.1.2", "resolved": "https://registry.npmjs.org/@75lb/deep-merge/-/deep-merge-1.1.2.tgz", "integrity": "sha512-08K9ou5VNbheZFxM5tDWoqjA3ImC50DiuuJ2tj1yEPRfkp8lLLg6XAaJ4On+a0yAXor/8ay5gHnAIshRM44Kpw==", + "peer": true, "dependencies": { "lodash": "^4.17.21", "typical": "^7.1.1" @@ -283,6 +287,7 @@ "version": "7.3.0", "resolved": "https://registry.npmjs.org/typical/-/typical-7.3.0.tgz", "integrity": "sha512-ya4mg/30vm+DOWfBg4YK3j2WD6TWtRkCbasOJr40CseYENzCUby/7rIvXA99JGsQHeNxLbnXdyLLxKSv3tauFw==", + "peer": true, "engines": { "node": ">=12.17" } @@ -3020,7 +3025,6 @@ "version": "7.26.0", "resolved": "https://registry.npmjs.org/@babel/core/-/core-7.26.0.tgz", "integrity": "sha512-i1SLeK+DzNnQ3LL/CswPCa/E5u4lh1k6IAEphON8F+cXt0t9euTshDru0q7/IqMa1PMPz5RnHuHscF8/ZJsStg==", - "peer": true, "dependencies": { "@ampproject/remapping": "^2.2.0", "@babel/code-frame": "^7.26.0", @@ -5374,6 +5378,18 @@ "node": ">=18.0.0" } }, + "node_modules/@hono/node-server": { + "version": "1.19.7", + "resolved": "https://registry.npmjs.org/@hono/node-server/-/node-server-1.19.7.tgz", + "integrity": "sha512-vUcD0uauS7EU2caukW8z5lJKtoGMokxNbJtBiwHgpqxEXokaHCBkQUmCHhjFB1VUTWdqj25QoMkMKzgjq+uhrw==", + "license": "MIT", + "engines": { + "node": ">=18.14.1" + }, + "peerDependencies": { + "hono": "^4" + } + }, "node_modules/@huggingface/jinja": { "version": "0.1.3", "resolved": "https://registry.npmjs.org/@huggingface/jinja/-/jinja-0.1.3.tgz", @@ -6048,11 +6064,12 @@ ] }, "node_modules/@modelcontextprotocol/sdk": { - "version": "1.24.1", - "resolved": "https://registry.npmjs.org/@modelcontextprotocol/sdk/-/sdk-1.24.1.tgz", - "integrity": "sha512-YTg4v6bKSst8EJM8NXHC3nGm8kgHD08IbIBbognUeLAgGLVgLpYrgQswzLQd4OyTL4l614ejhqsDrV1//t02Qw==", + "version": "1.25.2", + "resolved": "https://registry.npmjs.org/@modelcontextprotocol/sdk/-/sdk-1.25.2.tgz", + "integrity": "sha512-LZFeo4F9M5qOhC/Uc1aQSrBHxMrvxett+9KLHt7OhcExtoiRN9DKgbZffMP/nxjutWDQpfMDfP3nkHI4X9ijww==", "license": "MIT", "dependencies": { + "@hono/node-server": "^1.19.7", "ajv": "^8.17.1", "ajv-formats": "^3.0.1", "content-type": "^1.0.5", @@ -6063,6 +6080,7 @@ "express": "^5.0.1", "express-rate-limit": "^7.5.0", "jose": "^6.1.1", + "json-schema-typed": "^8.0.2", "pkce-challenge": "^5.0.0", "raw-body": "^3.0.0", "zod": "^3.25 || ^4.0", @@ -6199,7 +6217,6 @@ "version": "5.2.0", "resolved": "https://registry.npmjs.org/@octokit/core/-/core-5.2.0.tgz", "integrity": "sha512-1LFfa/qnMQvEOAdzlQymH0ulepxbxnCYAKJZfMci/5XJyIHWgEYnDmgnKakbTh7CH2tFQ5O60oYDvns4i9RAIg==", - "peer": true, "dependencies": { "@octokit/auth-token": "^4.0.0", "@octokit/graphql": "^7.1.0", @@ -6344,7 +6361,6 @@ "resolved": "https://registry.npmjs.org/@opentelemetry/api/-/api-1.9.0.tgz", "integrity": "sha512-3giAOQvZiH5F9bMlMiv8+GSPMeqg0dbaeo58/0SlA9sxSqZhnUtxzX9/2FzyhS9sWQf5S0GJE0AKBrFqjpeYcg==", "license": "Apache-2.0", - "peer": true, "engines": { "node": ">=8.0.0" } @@ -6366,7 +6382,6 @@ "resolved": "https://registry.npmjs.org/@opentelemetry/context-async-hooks/-/context-async-hooks-1.30.1.tgz", "integrity": "sha512-s5vvxXPVdjqS3kTLKMeBMvop9hbWkwzBpu+mUO2M7sZtlkyDJGwFe33wRKnbaYDo8ExRVBIIdwIGrqpxHuKttA==", "license": "Apache-2.0", - "peer": true, "engines": { "node": ">=14" }, @@ -6379,7 +6394,6 @@ "resolved": "https://registry.npmjs.org/@opentelemetry/core/-/core-1.30.1.tgz", "integrity": "sha512-OOCM2C/QIURhJMuKaekP3TRBxBKxG/TWWA0TL2J6nXUtDnuCtccy49LUJF8xPFXMX+0LMcxFpCo8M9cGY1W6rQ==", "license": "Apache-2.0", - "peer": true, "dependencies": { "@opentelemetry/semantic-conventions": "1.28.0" }, @@ -6899,7 +6913,6 @@ "resolved": "https://registry.npmjs.org/@opentelemetry/resources/-/resources-1.30.1.tgz", "integrity": "sha512-5UxZqiAgLYGFjS4s9qm5mBVo433u+dSPUFWVWXmLAD4wB65oMCoXaJP1KJa9DIYYMeHu3z4BZcStG3LC593cWA==", "license": "Apache-2.0", - "peer": true, "dependencies": { "@opentelemetry/core": "1.30.1", "@opentelemetry/semantic-conventions": "1.28.0" @@ -6925,7 +6938,6 @@ "resolved": "https://registry.npmjs.org/@opentelemetry/sdk-trace-base/-/sdk-trace-base-1.30.1.tgz", "integrity": "sha512-jVPgBbH1gCy2Lb7X0AVQ8XAfgg0pJ4nvl8/IiQA6nxOsPvS+0zMJaFSs2ltXe0J6C8dqjcnpyqINDJmU30+uOg==", "license": "Apache-2.0", - "peer": true, "dependencies": { "@opentelemetry/core": "1.30.1", "@opentelemetry/resources": "1.30.1", @@ -6952,7 +6964,6 @@ "resolved": "https://registry.npmjs.org/@opentelemetry/semantic-conventions/-/semantic-conventions-1.36.0.tgz", "integrity": "sha512-TtxJSRD8Ohxp6bKkhrm27JRHAxPczQA7idtcTOMYI+wQRRrfgqxHv1cFbCApcSnNjtXkmzFozn6jQtFrOmbjPQ==", "license": "Apache-2.0", - "peer": true, "engines": { "node": ">=14" } @@ -7363,7 +7374,8 @@ "node_modules/@rtsao/scc": { "version": "1.1.0", "resolved": "https://registry.npmjs.org/@rtsao/scc/-/scc-1.1.0.tgz", - "integrity": "sha512-zt6OdqaDoOnJ1ZYsCYGt9YmWzDXl4vQdKTyJev62gFhRGKdx7mcT54V9KIjg+d2wi9EXsPvAPKe7i7WjfVWB8g==" + "integrity": "sha512-zt6OdqaDoOnJ1ZYsCYGt9YmWzDXl4vQdKTyJev62gFhRGKdx7mcT54V9KIjg+d2wi9EXsPvAPKe7i7WjfVWB8g==", + "peer": true }, "node_modules/@sentry/babel-plugin-component-annotate": { "version": "4.0.2", @@ -8637,12 +8649,14 @@ "node_modules/@types/command-line-args": { "version": "5.2.0", "resolved": "https://registry.npmjs.org/@types/command-line-args/-/command-line-args-5.2.0.tgz", - "integrity": "sha512-UuKzKpJJ/Ief6ufIaIzr3A/0XnluX7RvFgwkV89Yzvm77wCh1kFaFmqN8XEnGcN62EuHdedQjEMb8mYxFLGPyA==" + "integrity": "sha512-UuKzKpJJ/Ief6ufIaIzr3A/0XnluX7RvFgwkV89Yzvm77wCh1kFaFmqN8XEnGcN62EuHdedQjEMb8mYxFLGPyA==", + "peer": true }, "node_modules/@types/command-line-usage": { "version": "5.0.2", "resolved": "https://registry.npmjs.org/@types/command-line-usage/-/command-line-usage-5.0.2.tgz", - "integrity": "sha512-n7RlEEJ+4x4TS7ZQddTmNSxP+zziEG0TNsMfiRIxcIVXt71ENJ9ojeXmGO3wPoTdn7pJcU2xc3CJYMktNT6DPg==" + "integrity": "sha512-n7RlEEJ+4x4TS7ZQddTmNSxP+zziEG0TNsMfiRIxcIVXt71ENJ9ojeXmGO3wPoTdn7pJcU2xc3CJYMktNT6DPg==", + "peer": true }, "node_modules/@types/connect": { "version": "3.4.38", @@ -8758,7 +8772,8 @@ "node_modules/@types/json5": { "version": "0.0.29", "resolved": "https://registry.npmjs.org/@types/json5/-/json5-0.0.29.tgz", - "integrity": "sha512-dRLjCWHYg4oaA77cxO64oO+7JwCwnIzkZPdrrC71jQmQtlhM556pwKo5bUzqvZndkVbeFLIIi+9TC40JNF5hNQ==" + "integrity": "sha512-dRLjCWHYg4oaA77cxO64oO+7JwCwnIzkZPdrrC71jQmQtlhM556pwKo5bUzqvZndkVbeFLIIi+9TC40JNF5hNQ==", + "peer": true }, "node_modules/@types/long": { "version": "4.0.2", @@ -8823,7 +8838,8 @@ "node_modules/@types/pad-left": { "version": "2.1.1", "resolved": "https://registry.npmjs.org/@types/pad-left/-/pad-left-2.1.1.tgz", - "integrity": "sha512-Xd22WCRBydkGSApl5Bw0PhAOHKSVjNL3E3AwzKaps96IMraPqy5BvZIsBVK6JLwdybUzjHnuWVwpDd0JjTfHXA==" + "integrity": "sha512-Xd22WCRBydkGSApl5Bw0PhAOHKSVjNL3E3AwzKaps96IMraPqy5BvZIsBVK6JLwdybUzjHnuWVwpDd0JjTfHXA==", + "peer": true }, "node_modules/@types/pg": { "version": "8.11.10", @@ -9033,7 +9049,6 @@ "integrity": "sha512-jCNyAuXx8dr5KJMkecGmZ8KI61KBUhkCob+SD+C+I5+Y1FWI2Y3QmY4/cxMCC5WAsZqoEtEETVhUiUMIGCf6Bw==", "dev": true, "license": "MIT", - "peer": true, "dependencies": { "@typescript-eslint/scope-manager": "8.40.0", "@typescript-eslint/types": "8.40.0", @@ -9457,7 +9472,6 @@ "version": "8.14.0", "resolved": "https://registry.npmjs.org/acorn/-/acorn-8.14.0.tgz", "integrity": "sha512-cl669nCJTZBsL97OF4kUQm5g5hC2uihk0NxY3WENAC0TYdILVkAyHymAntgxGkl7K+t0cXIrH5siy5S4XkFycA==", - "peer": true, "bin": { "acorn": "bin/acorn" }, @@ -9711,6 +9725,7 @@ "version": "3.1.0", "resolved": "https://registry.npmjs.org/array-back/-/array-back-3.1.0.tgz", "integrity": "sha512-TkuxA4UCOvxuDK6NZYXCalszEzj+TLszyASooky+i742l9TqsOdYCMJJupxRic61hwquNtppB3hgcuq9SVSH1Q==", + "peer": true, "engines": { "node": ">=6" } @@ -9719,6 +9734,7 @@ "version": "1.0.1", "resolved": "https://registry.npmjs.org/array-buffer-byte-length/-/array-buffer-byte-length-1.0.1.tgz", "integrity": "sha512-ahC5W1xgou+KTXix4sAO8Ki12Q+jf4i0+tmk3sC+zgcynshkHxzpXdImBehiUYKKKDwvfFiJl1tZt6ewscS1Mg==", + "peer": true, "dependencies": { "call-bind": "^1.0.5", "is-array-buffer": "^3.0.4" @@ -9734,6 +9750,7 @@ "version": "3.1.8", "resolved": "https://registry.npmjs.org/array-includes/-/array-includes-3.1.8.tgz", "integrity": "sha512-itaWrbYbqpGXkGhZPGUulwnhVf5Hpy1xiCFsGqyIGglbBxmG5vSjxQen3/WGOjPpNEv1RtBLKxbmVXm8HpJStQ==", + "peer": true, "dependencies": { "call-bind": "^1.0.7", "define-properties": "^1.2.1", @@ -9758,6 +9775,7 @@ "version": "1.2.5", "resolved": "https://registry.npmjs.org/array.prototype.findlastindex/-/array.prototype.findlastindex-1.2.5.tgz", "integrity": "sha512-zfETvRFA8o7EiNn++N5f/kaCw221hrpGsDmcpndVupkPzEc1Wuf3VgC0qby1BbHs7f5DVYjgtEU2LLh5bqeGfQ==", + "peer": true, "dependencies": { "call-bind": "^1.0.7", "define-properties": "^1.2.1", @@ -9777,6 +9795,7 @@ "version": "1.3.2", "resolved": "https://registry.npmjs.org/array.prototype.flat/-/array.prototype.flat-1.3.2.tgz", "integrity": "sha512-djYB+Zx2vLewY8RWlNCUdHjDXs2XOgm602S9E7P/UpHgfeHL00cRiIF+IN/G/aUJ7kGPb6yO/ErDI5V2s8iycA==", + "peer": true, "dependencies": { "call-bind": "^1.0.2", "define-properties": "^1.2.0", @@ -9794,6 +9813,7 @@ "version": "1.3.2", "resolved": "https://registry.npmjs.org/array.prototype.flatmap/-/array.prototype.flatmap-1.3.2.tgz", "integrity": "sha512-Ewyx0c9PmpcsByhSW4r+9zDU7sGjFc86qf/kKtuSCRdhfbk0SNLLkaT5qvcHnRGgc5NP/ly/y+qkXkqONX54CQ==", + "peer": true, "dependencies": { "call-bind": "^1.0.2", "define-properties": "^1.2.0", @@ -9811,6 +9831,7 @@ "version": "1.0.3", "resolved": "https://registry.npmjs.org/arraybuffer.prototype.slice/-/arraybuffer.prototype.slice-1.0.3.tgz", "integrity": "sha512-bMxMKAjg13EBSVscxTaYA4mRc5t1UAXa2kXiGTNfZ079HIWXEkKmkgFrh/nJqamaLSrXO5H4WFFkPEaLJWbs3A==", + "peer": true, "dependencies": { "array-buffer-byte-length": "^1.0.1", "call-bind": "^1.0.5", @@ -9887,6 +9908,7 @@ "version": "1.0.7", "resolved": "https://registry.npmjs.org/available-typed-arrays/-/available-typed-arrays-1.0.7.tgz", "integrity": "sha512-wvUjBtSGN7+7SjNpq/9M2Tg350UZD3q62IFZLbRAR1bSMlCo1ZaeW+BJ+D090e4hIIZLBcTDWe4Mh4jvUDajzQ==", + "peer": true, "dependencies": { "possible-typed-array-names": "^1.0.0" }, @@ -10342,7 +10364,6 @@ "url": "https://github.com/sponsors/ai" } ], - "peer": true, "dependencies": { "caniuse-lite": "^1.0.30001669", "electron-to-chromium": "^1.5.41", @@ -10649,6 +10670,7 @@ "version": "0.4.0", "resolved": "https://registry.npmjs.org/chalk-template/-/chalk-template-0.4.0.tgz", "integrity": "sha512-/ghrgmhfY8RaSdeo43hNXxpoHAtxdbskUHjPpfqUWGttFgycUhYPGx3YZBCnUCvOa7Doivn1IZec3DEGFoMgLg==", + "peer": true, "dependencies": { "chalk": "^4.1.2" }, @@ -10957,6 +10979,7 @@ "version": "5.2.1", "resolved": "https://registry.npmjs.org/command-line-args/-/command-line-args-5.2.1.tgz", "integrity": "sha512-H4UfQhZyakIjC74I9d34fGYDwk3XpSr17QhEd0Q3I9Xq1CETHo4Hcuo87WyWHpAF1aSLjLRf5lD9ZGX2qStUvg==", + "peer": true, "dependencies": { "array-back": "^3.1.0", "find-replace": "^3.0.0", @@ -10971,6 +10994,7 @@ "version": "7.0.1", "resolved": "https://registry.npmjs.org/command-line-usage/-/command-line-usage-7.0.1.tgz", "integrity": "sha512-NCyznE//MuTjwi3y84QVUGEOT+P5oto1e1Pk/jFPVdPPfsG03qpTIl3yw6etR+v73d0lXsoojRpvbru2sqePxQ==", + "peer": true, "dependencies": { "array-back": "^6.2.2", "chalk-template": "^0.4.0", @@ -10985,6 +11009,7 @@ "version": "6.2.2", "resolved": "https://registry.npmjs.org/array-back/-/array-back-6.2.2.tgz", "integrity": "sha512-gUAZ7HPyb4SJczXAMUXMGAvI976JoK3qEx9v1FTmeYuJj0IBiaKttG1ydtGKdkfqWkIkouke7nG8ufGy77+Cvw==", + "peer": true, "engines": { "node": ">=12.17" } @@ -10993,6 +11018,7 @@ "version": "7.3.0", "resolved": "https://registry.npmjs.org/typical/-/typical-7.3.0.tgz", "integrity": "sha512-ya4mg/30vm+DOWfBg4YK3j2WD6TWtRkCbasOJr40CseYENzCUby/7rIvXA99JGsQHeNxLbnXdyLLxKSv3tauFw==", + "peer": true, "engines": { "node": ">=12.17" } @@ -11260,6 +11286,7 @@ "version": "1.0.1", "resolved": "https://registry.npmjs.org/data-view-buffer/-/data-view-buffer-1.0.1.tgz", "integrity": "sha512-0lht7OugA5x3iJLOWFhWK/5ehONdprk0ISXqVFn/NFrDu+cuc8iADFrGQz5BnRK7LLU3JmkbXSxaqX+/mXYtUA==", + "peer": true, "dependencies": { "call-bind": "^1.0.6", "es-errors": "^1.3.0", @@ -11276,6 +11303,7 @@ "version": "1.0.1", "resolved": "https://registry.npmjs.org/data-view-byte-length/-/data-view-byte-length-1.0.1.tgz", "integrity": "sha512-4J7wRJD3ABAzr8wP+OcIcqq2dlUKp4DVflx++hs5h5ZKydWMI6/D/fAot+yh6g2tHh8fLFTvNOaVN357NvSrOQ==", + "peer": true, "dependencies": { "call-bind": "^1.0.7", "es-errors": "^1.3.0", @@ -11292,6 +11320,7 @@ "version": "1.0.0", "resolved": "https://registry.npmjs.org/data-view-byte-offset/-/data-view-byte-offset-1.0.0.tgz", "integrity": "sha512-t/Ygsytq+R995EJ5PZlD4Cu56sWa8InXySaViRzw9apusqsOO2bQP+SbYzAhR0pFKoB+43lYy8rWban9JSuXnA==", + "peer": true, "dependencies": { "call-bind": "^1.0.6", "es-errors": "^1.3.0", @@ -11530,8 +11559,7 @@ "version": "0.0.1521046", "resolved": "https://registry.npmjs.org/devtools-protocol/-/devtools-protocol-0.0.1521046.tgz", "integrity": "sha512-vhE6eymDQSKWUXwwA37NtTTVEzjtGVfDr3pRbsWEQ5onH/Snp2c+2xZHWJJawG/0hCCJLRGt4xVtEVUVILol4w==", - "license": "BSD-3-Clause", - "peer": true + "license": "BSD-3-Clause" }, "node_modules/diff": { "version": "7.0.0", @@ -11736,6 +11764,16 @@ "node": ">= 0.8" } }, + "node_modules/encoding": { + "version": "0.1.13", + "resolved": "https://registry.npmjs.org/encoding/-/encoding-0.1.13.tgz", + "integrity": "sha512-ETBauow1T35Y/WZMkio9jiM0Z5xjHHmJ4XmjZOq1l/dXz3lr2sRn87nJy20RupqSh1F2m3HHPSp8ShIPQJrJ3A==", + "license": "MIT", + "optional": true, + "dependencies": { + "iconv-lite": "^0.6.2" + } + }, "node_modules/encoding-sniffer": { "version": "0.2.0", "resolved": "https://registry.npmjs.org/encoding-sniffer/-/encoding-sniffer-0.2.0.tgz", @@ -11849,6 +11887,7 @@ "version": "1.23.5", "resolved": "https://registry.npmjs.org/es-abstract/-/es-abstract-1.23.5.tgz", "integrity": "sha512-vlmniQ0WNPwXqA0BnmwV3Ng7HxiGlh6r5U6JcTMNx8OilcAGqVJBHJcPjqOMaczU9fRuRK5Px2BdVyPRnKMMVQ==", + "peer": true, "dependencies": { "array-buffer-byte-length": "^1.0.1", "arraybuffer.prototype.slice": "^1.0.3", @@ -11957,6 +11996,7 @@ "version": "1.0.2", "resolved": "https://registry.npmjs.org/es-shim-unscopables/-/es-shim-unscopables-1.0.2.tgz", "integrity": "sha512-J3yBRXCzDu4ULnQwxyToo/OjdMx6akgVC7K6few0a7F/0wLtmKKN7I73AH5T2836UuXRqN7Qg+IIUw/+YJksRw==", + "peer": true, "dependencies": { "hasown": "^2.0.0" } @@ -11965,6 +12005,7 @@ "version": "1.3.0", "resolved": "https://registry.npmjs.org/es-to-primitive/-/es-to-primitive-1.3.0.tgz", "integrity": "sha512-w+5mJ3GuFL+NjVtJlvydShqE1eN3h3PbI7/5LAsYJP/2qtuMXjfL2LpHSRqo4b4eSF5K/DH1JXKUAHSB2UW50g==", + "peer": true, "dependencies": { "is-callable": "^1.2.7", "is-date-object": "^1.0.5", @@ -12420,7 +12461,6 @@ "resolved": "https://registry.npmjs.org/eslint/-/eslint-8.57.1.tgz", "integrity": "sha512-ypowyDxpVSYpkXr9WPv2PAZCtNip1Mv5KTW0SCurXv/9iOpcrH9PaqUElksqEB6pChqHGDRCFTyrZlGhnLNGiA==", "deprecated": "This version is no longer supported. Please see https://eslint.org/version-support for other options.", - "peer": true, "dependencies": { "@eslint-community/eslint-utils": "^4.2.0", "@eslint-community/regexpp": "^4.6.1", @@ -12505,6 +12545,7 @@ "version": "0.3.9", "resolved": "https://registry.npmjs.org/eslint-import-resolver-node/-/eslint-import-resolver-node-0.3.9.tgz", "integrity": "sha512-WFj2isz22JahUv+B788TlO3N6zL3nNJGU8CcZbPZvVEkBPaJdCV4vy5wyghty5ROFbCRnm132v8BScu5/1BQ8g==", + "peer": true, "dependencies": { "debug": "^3.2.7", "is-core-module": "^2.13.0", @@ -12515,6 +12556,7 @@ "version": "3.2.7", "resolved": "https://registry.npmjs.org/debug/-/debug-3.2.7.tgz", "integrity": "sha512-CFjzYYAi4ThfiQvizrFQevTTXHtnCqWfe7x1AhgEscTz6ZbLbfoLRLPugTQyBth6f8ZERVUSyWHFD/7Wu4t1XQ==", + "peer": true, "dependencies": { "ms": "^2.1.1" } @@ -12523,6 +12565,7 @@ "version": "2.12.0", "resolved": "https://registry.npmjs.org/eslint-module-utils/-/eslint-module-utils-2.12.0.tgz", "integrity": "sha512-wALZ0HFoytlyh/1+4wuZ9FJCD/leWHQzzrxJ8+rebyReSLk7LApMyd3WJaLVoN+D5+WIdJyDK1c6JnE65V4Zyg==", + "peer": true, "dependencies": { "debug": "^3.2.7" }, @@ -12539,6 +12582,7 @@ "version": "3.2.7", "resolved": "https://registry.npmjs.org/debug/-/debug-3.2.7.tgz", "integrity": "sha512-CFjzYYAi4ThfiQvizrFQevTTXHtnCqWfe7x1AhgEscTz6ZbLbfoLRLPugTQyBth6f8ZERVUSyWHFD/7Wu4t1XQ==", + "peer": true, "dependencies": { "ms": "^2.1.1" } @@ -12547,6 +12591,7 @@ "version": "2.31.0", "resolved": "https://registry.npmjs.org/eslint-plugin-import/-/eslint-plugin-import-2.31.0.tgz", "integrity": "sha512-ixmkI62Rbc2/w8Vfxyh1jQRTdRTF52VxwRVHl/ykPAmqG+Nb7/kNn+byLP0LxPgI7zWA16Jt82SybJInmMia3A==", + "peer": true, "dependencies": { "@rtsao/scc": "^1.1.0", "array-includes": "^3.1.8", @@ -12580,6 +12625,7 @@ "resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-1.1.12.tgz", "integrity": "sha512-9T9UjW3r0UW5c1Q7GTwllptXwhvYmEzFhzMfZ9H7FQWt+uZePjZPjBP/W1ZEyZ1twGWom5/56TF4lPcqjnDHcg==", "license": "MIT", + "peer": true, "dependencies": { "balanced-match": "^1.0.0", "concat-map": "0.0.1" @@ -12589,6 +12635,7 @@ "version": "3.2.7", "resolved": "https://registry.npmjs.org/debug/-/debug-3.2.7.tgz", "integrity": "sha512-CFjzYYAi4ThfiQvizrFQevTTXHtnCqWfe7x1AhgEscTz6ZbLbfoLRLPugTQyBth6f8ZERVUSyWHFD/7Wu4t1XQ==", + "peer": true, "dependencies": { "ms": "^2.1.1" } @@ -12597,6 +12644,7 @@ "version": "2.1.0", "resolved": "https://registry.npmjs.org/doctrine/-/doctrine-2.1.0.tgz", "integrity": "sha512-35mSku4ZXK0vfCuHEDAwt55dg2jNajHZ1odvF+8SSr82EsZY4QmXfuWso8oEd8zRhVObSN18aM0CjSdoBX7zIw==", + "peer": true, "dependencies": { "esutils": "^2.0.2" }, @@ -12608,6 +12656,7 @@ "version": "3.1.2", "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-3.1.2.tgz", "integrity": "sha512-J7p63hRiAjw1NDEww1W7i37+ByIrOWO5XQQAzZ3VOcL0PNybwpfmV/N05zFAzwQ9USyEcX6t3UO+K5aqBQOIHw==", + "peer": true, "dependencies": { "brace-expansion": "^1.1.7" }, @@ -13235,6 +13284,7 @@ "version": "3.0.0", "resolved": "https://registry.npmjs.org/find-replace/-/find-replace-3.0.0.tgz", "integrity": "sha512-6Tb2myMioCAgv5kfvP5/PkZZ/ntTpVK39fHY7WkWBgvbeE+VHd/tZuZ4mrC+bxh4cfOZeYKVPaJIZtZXV7GNCQ==", + "peer": true, "dependencies": { "array-back": "^3.0.1" }, @@ -13273,7 +13323,8 @@ "node_modules/flatbuffers": { "version": "23.5.26", "resolved": "https://registry.npmjs.org/flatbuffers/-/flatbuffers-23.5.26.tgz", - "integrity": "sha512-vE+SI9vrJDwi1oETtTIFldC/o9GsVKRM+s6EL0nQgxXlYV1Vc4Tk30hj4xGICftInKQKj1F3up2n8UbIVobISQ==" + "integrity": "sha512-vE+SI9vrJDwi1oETtTIFldC/o9GsVKRM+s6EL0nQgxXlYV1Vc4Tk30hj4xGICftInKQKj1F3up2n8UbIVobISQ==", + "peer": true }, "node_modules/flatted": { "version": "3.3.2", @@ -13308,6 +13359,7 @@ "version": "0.3.3", "resolved": "https://registry.npmjs.org/for-each/-/for-each-0.3.3.tgz", "integrity": "sha512-jqYfLp7mo9vIyQf8ykW2v7A+2N4QjeCeI5+Dz9XraiO1ign81wjiH7Fb9vSOWvQfNtmSa4H2RoQTrrXivdUZmw==", + "peer": true, "dependencies": { "is-callable": "^1.1.3" } @@ -13452,6 +13504,7 @@ "version": "1.1.6", "resolved": "https://registry.npmjs.org/function.prototype.name/-/function.prototype.name-1.1.6.tgz", "integrity": "sha512-Z5kx79swU5P27WEayXM1tBi5Ze/lbIyiNgU3qyXUOf9b2rgXYyF9Dy9Cx+IQv/Lc8WCG6L82zwUPpSS9hGehIg==", + "peer": true, "dependencies": { "call-bind": "^1.0.2", "define-properties": "^1.2.0", @@ -13469,6 +13522,7 @@ "version": "1.2.3", "resolved": "https://registry.npmjs.org/functions-have-names/-/functions-have-names-1.2.3.tgz", "integrity": "sha512-xckBUXyTIqT97tq2x2AMb+g163b5JFysYk0x4qxNFwbfQkmNZoiRHb6sPzI9/QV33WeuvVYBUIiD4NzNIyqaRQ==", + "peer": true, "funding": { "url": "https://github.com/sponsors/ljharb" } @@ -13660,6 +13714,7 @@ "version": "1.0.2", "resolved": "https://registry.npmjs.org/get-symbol-description/-/get-symbol-description-1.0.2.tgz", "integrity": "sha512-g0QYk1dZBxGwk+Ngc+ltRH2IBp2f7zBkBMBJZCDerh6EhlhSR6+9irMCuT/09zD6qkarHUSn529sK/yL4S27mg==", + "peer": true, "dependencies": { "call-bind": "^1.0.5", "es-errors": "^1.3.0", @@ -13770,6 +13825,7 @@ "version": "1.0.4", "resolved": "https://registry.npmjs.org/globalthis/-/globalthis-1.0.4.tgz", "integrity": "sha512-DpLKbNU4WylpxJykQujfCcwYWiV/Jhm50Goo0wrVILAv5jOr9d+H+UR3PhSCD2rCCEIg0uc+G+muBTwD54JhDQ==", + "peer": true, "dependencies": { "define-properties": "^1.2.1", "gopd": "^1.0.1" @@ -13958,6 +14014,7 @@ "version": "1.0.2", "resolved": "https://registry.npmjs.org/has-bigints/-/has-bigints-1.0.2.tgz", "integrity": "sha512-tSvCKtBr9lkF0Ex0aQiP9N+OpV4zi2r/Nee5VkRDbaqv35RLYMzbwQfFSZZH0kR+Rd6302UJZ2p/bJCEoR3VoQ==", + "peer": true, "funding": { "url": "https://github.com/sponsors/ljharb" } @@ -13993,6 +14050,7 @@ "version": "1.2.0", "resolved": "https://registry.npmjs.org/has-proto/-/has-proto-1.2.0.tgz", "integrity": "sha512-KIL7eQPfHQRC8+XluaIw7BHUwwqL19bQn4hzNgdr+1wXoU0KKj6rufu47lhY7KbJR2C6T6+PfyN0Ea7wkSS+qQ==", + "peer": true, "dependencies": { "dunder-proto": "^1.0.0" }, @@ -14090,6 +14148,16 @@ "he": "bin/he" } }, + "node_modules/hono": { + "version": "4.11.4", + "resolved": "https://registry.npmjs.org/hono/-/hono-4.11.4.tgz", + "integrity": "sha512-U7tt8JsyrxSRKspfhtLET79pU8K+tInj5QZXs1jSugO1Vq5dFj3kmZsRldo29mTBfcjDRVRXrEZ6LS63Cog9ZA==", + "license": "MIT", + "peer": true, + "engines": { + "node": ">=16.9.0" + } + }, "node_modules/html-encoding-sniffer": { "version": "4.0.0", "resolved": "https://registry.npmjs.org/html-encoding-sniffer/-/html-encoding-sniffer-4.0.0.tgz", @@ -14350,6 +14418,7 @@ "version": "1.0.7", "resolved": "https://registry.npmjs.org/internal-slot/-/internal-slot-1.0.7.tgz", "integrity": "sha512-NGnrKwXzSms2qUUih/ILZ5JBqNTSa1+ZmP6flaIp6KmSElgE9qdndzS3cqjrDovwFdmwsGsLdeFgB6suw+1e9g==", + "peer": true, "dependencies": { "es-errors": "^1.3.0", "hasown": "^2.0.0", @@ -14383,6 +14452,7 @@ "version": "3.0.4", "resolved": "https://registry.npmjs.org/is-array-buffer/-/is-array-buffer-3.0.4.tgz", "integrity": "sha512-wcjaerHw0ydZwfhiKbXJWLDY8A7yV7KhjQOpb83hGgGfId/aQa4TOvwyzn2PuswW2gPCYEL/nEAiSVpdOj1lXw==", + "peer": true, "dependencies": { "call-bind": "^1.0.2", "get-intrinsic": "^1.2.1" @@ -14403,6 +14473,7 @@ "version": "2.0.0", "resolved": "https://registry.npmjs.org/is-async-function/-/is-async-function-2.0.0.tgz", "integrity": "sha512-Y1JXKrfykRJGdlDwdKlLpLyMIiWqWvuSd17TvZk68PLAOGOoF4Xyav1z0Xhoi+gCYjZVeC5SI+hYFOfvXmGRCA==", + "peer": true, "dependencies": { "has-tostringtag": "^1.0.0" }, @@ -14417,6 +14488,7 @@ "version": "1.1.0", "resolved": "https://registry.npmjs.org/is-bigint/-/is-bigint-1.1.0.tgz", "integrity": "sha512-n4ZT37wG78iz03xPRKJrHTdZbe3IicyucEtdRsV5yglwc3GyUfbAfpSeD0FJ41NbUNSt5wbhqfp1fS+BgnvDFQ==", + "peer": true, "dependencies": { "has-bigints": "^1.0.2" }, @@ -14443,6 +14515,7 @@ "version": "1.2.0", "resolved": "https://registry.npmjs.org/is-boolean-object/-/is-boolean-object-1.2.0.tgz", "integrity": "sha512-kR5g0+dXf/+kXnqI+lu0URKYPKgICtHGGNCDSB10AaUFj3o/HkB3u7WfpRBJGFopxxY0oH3ux7ZsDjLtK7xqvw==", + "peer": true, "dependencies": { "call-bind": "^1.0.7", "has-tostringtag": "^1.0.2" @@ -14458,6 +14531,7 @@ "version": "1.2.7", "resolved": "https://registry.npmjs.org/is-callable/-/is-callable-1.2.7.tgz", "integrity": "sha512-1BC0BVFhS/p0qtw6enp8e+8OD0UrK0oFLztSjNzhcKA3WDuJxxAPXzPuPtKkjEY9UUoEWlX/8fgKeu2S8i9JTA==", + "peer": true, "engines": { "node": ">= 0.4" }, @@ -14483,6 +14557,7 @@ "version": "1.0.1", "resolved": "https://registry.npmjs.org/is-data-view/-/is-data-view-1.0.1.tgz", "integrity": "sha512-AHkaJrsUVW6wq6JS8y3JnM/GJF/9cf+k20+iDzlSaJrinEo5+7vRiteOSwBhHRiAyQATN1AmY4hwzxJKPmYf+w==", + "peer": true, "dependencies": { "is-typed-array": "^1.1.13" }, @@ -14497,6 +14572,7 @@ "version": "1.0.5", "resolved": "https://registry.npmjs.org/is-date-object/-/is-date-object-1.0.5.tgz", "integrity": "sha512-9YQaSxsAiSwcvS33MBk3wTCVnWK+HhF8VZR2jRxehM16QcVOdHqPn4VPHmRK4lSr38n9JriurInLcP90xsYNfQ==", + "peer": true, "dependencies": { "has-tostringtag": "^1.0.0" }, @@ -14538,6 +14614,7 @@ "version": "1.1.0", "resolved": "https://registry.npmjs.org/is-finalizationregistry/-/is-finalizationregistry-1.1.0.tgz", "integrity": "sha512-qfMdqbAQEwBw78ZyReKnlA8ezmPdb9BemzIIip/JkjaZUhitfXDkkr+3QTboW0JrSXT1QWyYShpvnNHGZ4c4yA==", + "peer": true, "dependencies": { "call-bind": "^1.0.7" }, @@ -14569,6 +14646,7 @@ "version": "1.0.10", "resolved": "https://registry.npmjs.org/is-generator-function/-/is-generator-function-1.0.10.tgz", "integrity": "sha512-jsEjy9l3yiXEQ+PsXdmBwEPcOxaXWLspKdplFUVI9vq1iZgIekeC0L167qeu86czQaxed3q/Uzuw0swL0irL8A==", + "peer": true, "dependencies": { "has-tostringtag": "^1.0.0" }, @@ -14609,6 +14687,7 @@ "version": "2.0.3", "resolved": "https://registry.npmjs.org/is-map/-/is-map-2.0.3.tgz", "integrity": "sha512-1Qed0/Hr2m+YqxnM09CjA2d/i6YZNfF6R2oRAOj36eUdS6qIV/huPJNSEpKbupewFs+ZsJlxsjjPbc0/afW6Lw==", + "peer": true, "engines": { "node": ">= 0.4" }, @@ -14620,6 +14699,7 @@ "version": "2.0.3", "resolved": "https://registry.npmjs.org/is-negative-zero/-/is-negative-zero-2.0.3.tgz", "integrity": "sha512-5KoIu2Ngpyek75jXodFvnafB6DJgr3u8uuK0LEZJjrU19DrMD3EVERaR8sjz8CCGgpZvxPl9SuE1GMVPFHx1mw==", + "peer": true, "engines": { "node": ">= 0.4" }, @@ -14639,6 +14719,7 @@ "version": "1.1.0", "resolved": "https://registry.npmjs.org/is-number-object/-/is-number-object-1.1.0.tgz", "integrity": "sha512-KVSZV0Dunv9DTPkhXwcZ3Q+tUc9TsaE1ZwX5J2WMvsSGS6Md8TFPun5uwh0yRdrNerI6vf/tbJxqSx4c1ZI1Lw==", + "peer": true, "dependencies": { "call-bind": "^1.0.7", "has-tostringtag": "^1.0.2" @@ -14677,6 +14758,7 @@ "version": "1.2.0", "resolved": "https://registry.npmjs.org/is-regex/-/is-regex-1.2.0.tgz", "integrity": "sha512-B6ohK4ZmoftlUe+uvenXSbPJFo6U37BH7oO1B3nQH8f/7h27N56s85MhUtbFJAziz5dcmuR3i8ovUl35zp8pFA==", + "peer": true, "dependencies": { "call-bind": "^1.0.7", "gopd": "^1.1.0", @@ -14694,6 +14776,7 @@ "version": "2.0.3", "resolved": "https://registry.npmjs.org/is-set/-/is-set-2.0.3.tgz", "integrity": "sha512-iPAjerrse27/ygGLxw+EBR9agv9Y6uLeYVJMu+QNCoouJ1/1ri0mGrcWpfCqFZuzzx3WjtwxG098X+n4OuRkPg==", + "peer": true, "engines": { "node": ">= 0.4" }, @@ -14705,6 +14788,7 @@ "version": "1.0.3", "resolved": "https://registry.npmjs.org/is-shared-array-buffer/-/is-shared-array-buffer-1.0.3.tgz", "integrity": "sha512-nA2hv5XIhLR3uVzDDfCIknerhx8XUKnstuOERPNNIinXG7v9u+ohXF67vxm4TPTEPU6lm61ZkwP3c9PCB97rhg==", + "peer": true, "dependencies": { "call-bind": "^1.0.7" }, @@ -14730,6 +14814,7 @@ "version": "1.1.0", "resolved": "https://registry.npmjs.org/is-string/-/is-string-1.1.0.tgz", "integrity": "sha512-PlfzajuF9vSo5wErv3MJAKD/nqf9ngAs1NFQYm16nUYFO2IzxJ2hcm+IOCg+EEopdykNNUhVq5cz35cAUxU8+g==", + "peer": true, "dependencies": { "call-bind": "^1.0.7", "has-tostringtag": "^1.0.2" @@ -14745,6 +14830,7 @@ "version": "1.1.0", "resolved": "https://registry.npmjs.org/is-symbol/-/is-symbol-1.1.0.tgz", "integrity": "sha512-qS8KkNNXUZ/I+nX6QT8ZS1/Yx0A444yhzdTKxCzKkNjQ9sHErBxJnJAgh+f5YhusYECEcjo4XcyH87hn6+ks0A==", + "peer": true, "dependencies": { "call-bind": "^1.0.7", "has-symbols": "^1.0.3", @@ -14761,6 +14847,7 @@ "version": "1.1.13", "resolved": "https://registry.npmjs.org/is-typed-array/-/is-typed-array-1.1.13.tgz", "integrity": "sha512-uZ25/bUAlUY5fR4OKT4rZQEBrzQWYV9ZJYGGsUmEJ6thodVJ1HX64ePQ6Z0qPWP+m+Uq6e9UugrE38jeYsDSMw==", + "peer": true, "dependencies": { "which-typed-array": "^1.1.14" }, @@ -14780,6 +14867,7 @@ "version": "2.0.2", "resolved": "https://registry.npmjs.org/is-weakmap/-/is-weakmap-2.0.2.tgz", "integrity": "sha512-K5pXYOm9wqY1RgjpL3YTkF39tni1XajUIkawTLUo9EZEVUFga5gSQJF8nNS7ZwJQ02y+1YCNYcMh+HIf1ZqE+w==", + "peer": true, "engines": { "node": ">= 0.4" }, @@ -14791,6 +14879,7 @@ "version": "1.0.2", "resolved": "https://registry.npmjs.org/is-weakref/-/is-weakref-1.0.2.tgz", "integrity": "sha512-qctsuLZmIQ0+vSSMfoVvyFe2+GSEvnmZ2ezTup1SBse9+twCCeial6EEi3Nc2KFcf6+qz2FBPnjXsk8xhKSaPQ==", + "peer": true, "dependencies": { "call-bind": "^1.0.2" }, @@ -14802,6 +14891,7 @@ "version": "2.0.3", "resolved": "https://registry.npmjs.org/is-weakset/-/is-weakset-2.0.3.tgz", "integrity": "sha512-LvIm3/KWzS9oRFHugab7d+M/GcBXuXX5xZkzPmN+NxihdQlZUQ4dWuSV1xR/sq6upL1TJEDrfBgRepHFdBtSNQ==", + "peer": true, "dependencies": { "call-bind": "^1.0.7", "get-intrinsic": "^1.2.4" @@ -14827,7 +14917,8 @@ "node_modules/isarray": { "version": "2.0.5", "resolved": "https://registry.npmjs.org/isarray/-/isarray-2.0.5.tgz", - "integrity": "sha512-xHjhDr3cNBK0BzdUJSPXZntQUx/mwMS5Rw4A7lPJ90XGAO6ISP/ePDNuo0vhqOZU+UD5JoodwCAAoZQd3FeAKw==" + "integrity": "sha512-xHjhDr3cNBK0BzdUJSPXZntQUx/mwMS5Rw4A7lPJ90XGAO6ISP/ePDNuo0vhqOZU+UD5JoodwCAAoZQd3FeAKw==", + "peer": true }, "node_modules/isexe": { "version": "2.0.0", @@ -14977,7 +15068,6 @@ "resolved": "https://registry.npmjs.org/jest/-/jest-29.7.0.tgz", "integrity": "sha512-NIy3oAFp9shda19hy4HK0HRTWKtPJmGdnvywu01nOqNC2vZg+Z+fvJDxpMQA88eb2I9EcafcdjYgsDthnYTvGw==", "dev": true, - "peer": true, "dependencies": { "@jest/core": "^29.7.0", "@jest/types": "^29.6.3", @@ -15909,7 +15999,6 @@ "version": "24.1.3", "resolved": "https://registry.npmjs.org/jsdom/-/jsdom-24.1.3.tgz", "integrity": "sha512-MyL55p3Ut3cXbeBEG7Hcv0mVM8pp8PBNWxRqchZnSfAiES1v1mRnMeFfaHWIPULpwsYfvO+ZmMZz5tGCnjzDUQ==", - "peer": true, "dependencies": { "cssstyle": "^4.0.1", "data-urls": "^5.0.0", @@ -15969,6 +16058,7 @@ "version": "0.0.3", "resolved": "https://registry.npmjs.org/json-bignum/-/json-bignum-0.0.3.tgz", "integrity": "sha512-2WHyXj3OfHSgNyuzDbSxI1w2jgw5gkWSWhS7Qg4bWXx1nLk3jnbwfUeS0PSba3IzpTUWdHxBieELUzXRjQB2zg==", + "peer": true, "engines": { "node": ">=0.8" } @@ -15993,6 +16083,12 @@ "resolved": "https://registry.npmjs.org/json-schema-traverse/-/json-schema-traverse-0.4.1.tgz", "integrity": "sha512-xbbCH5dCYU5T8LcEhhuh7HJ88HXuW3qsI3Y0zOZFKfZEHcpWiHU/Jxzk629Brsab/mMiHQti9wMP+845RPe3Vg==" }, + "node_modules/json-schema-typed": { + "version": "8.0.2", + "resolved": "https://registry.npmjs.org/json-schema-typed/-/json-schema-typed-8.0.2.tgz", + "integrity": "sha512-fQhoXdcvc3V28x7C7BMs4P5+kNlgUURe2jmUT1T//oBRMDrqy1QPelJimwZGo7Hg9VPV3EQV5Bnq4hbFy2vetA==", + "license": "BSD-2-Clause" + }, "node_modules/json-stable-stringify-without-jsonify": { "version": "1.0.1", "resolved": "https://registry.npmjs.org/json-stable-stringify-without-jsonify/-/json-stable-stringify-without-jsonify-1.0.1.tgz", @@ -16228,7 +16324,8 @@ "node_modules/lodash.camelcase": { "version": "4.3.0", "resolved": "https://registry.npmjs.org/lodash.camelcase/-/lodash.camelcase-4.3.0.tgz", - "integrity": "sha512-TwuEnCnxbc3rAvhf/LbG7tJUDzhqXyFnv3dtzLOPgCG/hODL7WFnsbwktkD7yUV0RrreP/l1PALq/YSg6VvjlA==" + "integrity": "sha512-TwuEnCnxbc3rAvhf/LbG7tJUDzhqXyFnv3dtzLOPgCG/hODL7WFnsbwktkD7yUV0RrreP/l1PALq/YSg6VvjlA==", + "peer": true }, "node_modules/lodash.debounce": { "version": "4.0.8", @@ -17426,6 +17523,7 @@ "version": "2.0.8", "resolved": "https://registry.npmjs.org/object.fromentries/-/object.fromentries-2.0.8.tgz", "integrity": "sha512-k6E21FzySsSK5a21KRADBd/NGneRegFO5pLHfdQLpRDETUNJueLXs3WCzyQ3tFRDYgbq3KHGXfTbi2bs8WQ6rQ==", + "peer": true, "dependencies": { "call-bind": "^1.0.7", "define-properties": "^1.2.1", @@ -17443,6 +17541,7 @@ "version": "1.0.3", "resolved": "https://registry.npmjs.org/object.groupby/-/object.groupby-1.0.3.tgz", "integrity": "sha512-+Lhy3TQTuzXI5hevh8sBGqbmurHbbIjAi0Z4S63nthVLmLxfbj4T54a4CfZrXIrt9iP4mVAPYMo/v99taj3wjQ==", + "peer": true, "dependencies": { "call-bind": "^1.0.7", "define-properties": "^1.2.1", @@ -17456,6 +17555,7 @@ "version": "1.2.0", "resolved": "https://registry.npmjs.org/object.values/-/object.values-1.2.0.tgz", "integrity": "sha512-yBYjY9QX2hnRmZHAjG/f13MzmBzxzYgQhFrke06TTyKY5zSTEqkOeukBzIdVA3j3ulu8Qa3MbVFShV7T2RmGtQ==", + "peer": true, "dependencies": { "call-bind": "^1.0.7", "define-properties": "^1.2.1", @@ -17765,6 +17865,7 @@ "version": "2.1.0", "resolved": "https://registry.npmjs.org/pad-left/-/pad-left-2.1.0.tgz", "integrity": "sha512-HJxs9K9AztdIQIAIa/OIazRAUW/L6B9hbQDxO4X07roW3eo9XqZc2ur9bn1StH9CnbbI9EgvejHQX7CBpCF1QA==", + "peer": true, "dependencies": { "repeat-string": "^1.5.4" }, @@ -17943,7 +18044,6 @@ "version": "8.13.1", "resolved": "https://registry.npmjs.org/pg/-/pg-8.13.1.tgz", "integrity": "sha512-OUir1A0rPNZlX//c7ksiu7crsGZTKSOXJPgtNiHGIlC9H0lO+NC6ZDYksSgBYY/thSWhnSRBv8w1lieNNGATNQ==", - "peer": true, "dependencies": { "pg-connection-string": "^2.7.0", "pg-pool": "^3.7.0", @@ -18208,6 +18308,7 @@ "version": "1.0.0", "resolved": "https://registry.npmjs.org/possible-typed-array-names/-/possible-typed-array-names-1.0.0.tgz", "integrity": "sha512-d7Uw+eZoloe0EHDIYoe+bQ5WXnGMOpmiZFTuMWCwpjzzkL2nTjcKiAk4hh8TjnGye2TwWOk3UXucZ+3rbmBa8Q==", + "peer": true, "engines": { "node": ">= 0.4" } @@ -18660,8 +18761,7 @@ "node_modules/puppeteer-chromium-resolver/node_modules/devtools-protocol": { "version": "0.0.1367902", "resolved": "https://registry.npmjs.org/devtools-protocol/-/devtools-protocol-0.0.1367902.tgz", - "integrity": "sha512-XxtPuC3PGakY6PD7dG66/o8KwJ/LkH2/EKe19Dcw58w53dv4/vSQEkn/SzuyhHE2q4zPgCkxQBxus3VV4ql+Pg==", - "peer": true + "integrity": "sha512-XxtPuC3PGakY6PD7dG66/o8KwJ/LkH2/EKe19Dcw58w53dv4/vSQEkn/SzuyhHE2q4zPgCkxQBxus3VV4ql+Pg==" }, "node_modules/puppeteer-chromium-resolver/node_modules/puppeteer-core": { "version": "23.10.2", @@ -18878,6 +18978,7 @@ "version": "1.0.8", "resolved": "https://registry.npmjs.org/reflect.getprototypeof/-/reflect.getprototypeof-1.0.8.tgz", "integrity": "sha512-B5dj6usc5dkk8uFliwjwDHM8To5/QwdKz9JcBZ8Ic4G1f0YmeeJTtE/ZTdgRFPAfxZFiUaPhZ1Jcs4qeagItGQ==", + "peer": true, "dependencies": { "call-bind": "^1.0.8", "define-properties": "^1.2.1", @@ -18959,6 +19060,7 @@ "version": "1.5.3", "resolved": "https://registry.npmjs.org/regexp.prototype.flags/-/regexp.prototype.flags-1.5.3.tgz", "integrity": "sha512-vqlC04+RQoFalODCbCumG2xIOvapzVMHwsyIGM/SIE8fRhFFsXeH8/QQ+s0T0kDAhKc4k30s73/0ydkHQz6HlQ==", + "peer": true, "dependencies": { "call-bind": "^1.0.7", "define-properties": "^1.2.1", @@ -19313,6 +19415,7 @@ "version": "1.1.2", "resolved": "https://registry.npmjs.org/safe-array-concat/-/safe-array-concat-1.1.2.tgz", "integrity": "sha512-vj6RsCsWBCf19jIeHEfkRMw8DPiBb+DMXklQ/1SGDHOMlHdPUkZXFQ2YdplS23zESTijAcurb1aSgJA3AgMu1Q==", + "peer": true, "dependencies": { "call-bind": "^1.0.7", "get-intrinsic": "^1.2.4", @@ -19349,6 +19452,7 @@ "version": "1.0.3", "resolved": "https://registry.npmjs.org/safe-regex-test/-/safe-regex-test-1.0.3.tgz", "integrity": "sha512-CdASjNJPvRa7roO6Ra/gLYBTzYzzPyyBXxIMdGW3USQLyjWEls2RgW5UBTXaQVp+OrpeCK3bLem8smtmheoRuw==", + "peer": true, "dependencies": { "call-bind": "^1.0.6", "es-errors": "^1.3.0", @@ -19478,6 +19582,7 @@ "version": "2.0.2", "resolved": "https://registry.npmjs.org/set-function-name/-/set-function-name-2.0.2.tgz", "integrity": "sha512-7PGFlmtwsEADb0WYyvCMa1t+yke6daIG4Wirafur5kcf+MhUnPms1UeR0CKQdTZD81yESwMHbtn+TR+dMviakQ==", + "peer": true, "dependencies": { "define-data-property": "^1.1.4", "es-errors": "^1.3.0", @@ -20079,6 +20184,7 @@ "version": "3.0.1", "resolved": "https://registry.npmjs.org/stream-read-all/-/stream-read-all-3.0.1.tgz", "integrity": "sha512-EWZT9XOceBPlVJRrYcykW8jyRSZYbkb/0ZK36uLEmoWVO5gxBOnntNTseNzfREsqxqdfEGQrD8SXQ3QWbBmq8A==", + "peer": true, "engines": { "node": ">=10" } @@ -20148,6 +20254,7 @@ "version": "1.2.9", "resolved": "https://registry.npmjs.org/string.prototype.trim/-/string.prototype.trim-1.2.9.tgz", "integrity": "sha512-klHuCNxiMZ8MlsOihJhJEBJAiMVqU3Z2nEXWfWnIqjN0gEFS9J9+IxKozWWtQGcgoa1WUZzLjKPTr4ZHNFTFxw==", + "peer": true, "dependencies": { "call-bind": "^1.0.7", "define-properties": "^1.2.1", @@ -20165,6 +20272,7 @@ "version": "1.0.8", "resolved": "https://registry.npmjs.org/string.prototype.trimend/-/string.prototype.trimend-1.0.8.tgz", "integrity": "sha512-p73uL5VCHCO2BZZ6krwwQE3kCzM7NKmis8S//xEC6fQonchbum4eP6kR4DLEjQFO3Wnj3Fuo8NM0kOSjVdHjZQ==", + "peer": true, "dependencies": { "call-bind": "^1.0.7", "define-properties": "^1.2.1", @@ -20178,6 +20286,7 @@ "version": "1.0.8", "resolved": "https://registry.npmjs.org/string.prototype.trimstart/-/string.prototype.trimstart-1.0.8.tgz", "integrity": "sha512-UXSH262CSZY1tfu3G3Secr6uGLCFVPMhIqHjlgCUtCCcgihYc/xKs9djMTMUOb2j1mVSeU8EU6NWc/iQKU6Gfg==", + "peer": true, "dependencies": { "call-bind": "^1.0.7", "define-properties": "^1.2.1", @@ -20302,6 +20411,7 @@ "version": "3.0.2", "resolved": "https://registry.npmjs.org/table-layout/-/table-layout-3.0.2.tgz", "integrity": "sha512-rpyNZYRw+/C+dYkcQ3Pr+rLxW4CfHpXjPDnG7lYhdRoUcZTUt+KEsX+94RGp/aVp/MQU35JCITv2T/beY4m+hw==", + "peer": true, "dependencies": { "@75lb/deep-merge": "^1.1.1", "array-back": "^6.2.2", @@ -20322,6 +20432,7 @@ "version": "6.2.2", "resolved": "https://registry.npmjs.org/array-back/-/array-back-6.2.2.tgz", "integrity": "sha512-gUAZ7HPyb4SJczXAMUXMGAvI976JoK3qEx9v1FTmeYuJj0IBiaKttG1ydtGKdkfqWkIkouke7nG8ufGy77+Cvw==", + "peer": true, "engines": { "node": ">=12.17" } @@ -20330,6 +20441,7 @@ "version": "7.3.0", "resolved": "https://registry.npmjs.org/typical/-/typical-7.3.0.tgz", "integrity": "sha512-ya4mg/30vm+DOWfBg4YK3j2WD6TWtRkCbasOJr40CseYENzCUby/7rIvXA99JGsQHeNxLbnXdyLLxKSv3tauFw==", + "peer": true, "engines": { "node": ">=12.17" } @@ -20597,7 +20709,6 @@ "integrity": "sha512-M7BAV6Rlcy5u+m6oPhAPFgJTzAioX/6B0DxyvDlo9l8+T3nLKbrczg2WLUyzd45L8RqfUMyGPzekbMvX2Ldkwg==", "dev": true, "license": "MIT", - "peer": true, "engines": { "node": ">=12" }, @@ -20789,6 +20900,7 @@ "version": "3.15.0", "resolved": "https://registry.npmjs.org/tsconfig-paths/-/tsconfig-paths-3.15.0.tgz", "integrity": "sha512-2Ac2RgzDe/cn48GvOe3M+o82pEFewD3UPbyoUHHdKasHwJKjds4fLXWf/Ux5kATBKN20oaFGu+jbElp1pos0mg==", + "peer": true, "dependencies": { "@types/json5": "^0.0.29", "json5": "^1.0.2", @@ -20800,6 +20912,7 @@ "version": "1.0.2", "resolved": "https://registry.npmjs.org/json5/-/json5-1.0.2.tgz", "integrity": "sha512-g1MWMLBiz8FKi1e4w0UyVL3w+iJceWAFBAaBnnGKOpNa5f8TLktkbre1+s6oICydWAm+HRUGTmI+//xv2hvXYA==", + "peer": true, "dependencies": { "minimist": "^1.2.0" }, @@ -20811,6 +20924,7 @@ "version": "3.0.0", "resolved": "https://registry.npmjs.org/strip-bom/-/strip-bom-3.0.0.tgz", "integrity": "sha512-vavAMRXOgBVNF6nyEEmL3DBK19iRpDcoIwW+swQ+CbGiu7lju6t+JklA1MHweoWtadgt4ISVUsXLyDq34ddcwA==", + "peer": true, "engines": { "node": ">=4" } @@ -20904,6 +21018,7 @@ "version": "1.0.2", "resolved": "https://registry.npmjs.org/typed-array-buffer/-/typed-array-buffer-1.0.2.tgz", "integrity": "sha512-gEymJYKZtKXzzBzM4jqa9w6Q1Jjm7x2d+sh19AdsD4wqnMPDYyvwpsIc2Q/835kHuo3BEQ7CjelGhfTsoBb2MQ==", + "peer": true, "dependencies": { "call-bind": "^1.0.7", "es-errors": "^1.3.0", @@ -20917,6 +21032,7 @@ "version": "1.0.1", "resolved": "https://registry.npmjs.org/typed-array-byte-length/-/typed-array-byte-length-1.0.1.tgz", "integrity": "sha512-3iMJ9q0ao7WE9tWcaYKIptkNBuOIcZCCT0d4MRvuuH88fEoEH62IuQe0OtraD3ebQEoTRk8XCBoknUNc1Y67pw==", + "peer": true, "dependencies": { "call-bind": "^1.0.7", "for-each": "^0.3.3", @@ -20935,6 +21051,7 @@ "version": "1.0.3", "resolved": "https://registry.npmjs.org/typed-array-byte-offset/-/typed-array-byte-offset-1.0.3.tgz", "integrity": "sha512-GsvTyUHTriq6o/bHcTd0vM7OQ9JEdlvluu9YISaA7+KzDzPaIzEeDFNkTfhdE3MYcNhNi0vq/LlegYgIs5yPAw==", + "peer": true, "dependencies": { "available-typed-arrays": "^1.0.7", "call-bind": "^1.0.7", @@ -20955,6 +21072,7 @@ "version": "1.0.7", "resolved": "https://registry.npmjs.org/typed-array-length/-/typed-array-length-1.0.7.tgz", "integrity": "sha512-3KS2b+kL7fsuk/eJZ7EQdnEmQoaho/r6KUef7hxvltNA5DR8NAUM+8wJMbJyZ4G9/7i3v5zPBIMN5aybAh2/Jg==", + "peer": true, "dependencies": { "call-bind": "^1.0.7", "for-each": "^0.3.3", @@ -20980,7 +21098,6 @@ "resolved": "https://registry.npmjs.org/typescript/-/typescript-5.7.2.tgz", "integrity": "sha512-i5t66RHxDvVN40HfDd1PsEThGNnlMCMT3jMUuoh9/0TaqWevNontacunWyN02LA9/fIbEWlcHZcgTKb9QoaLfg==", "devOptional": true, - "peer": true, "bin": { "tsc": "bin/tsc", "tsserver": "bin/tsserver" @@ -20993,6 +21110,7 @@ "version": "4.0.0", "resolved": "https://registry.npmjs.org/typical/-/typical-4.0.0.tgz", "integrity": "sha512-VAH4IvQ7BDFYglMd7BPRDfLgxZZX4O4TFcRDA6EN5X7erNJJq+McIEp8np9aVtxrCJ6qx4GTYVfOWNjcqwZgRw==", + "peer": true, "engines": { "node": ">=8" } @@ -21013,6 +21131,7 @@ "version": "1.0.2", "resolved": "https://registry.npmjs.org/unbox-primitive/-/unbox-primitive-1.0.2.tgz", "integrity": "sha512-61pPlCD9h51VoreyJ0BReideM3MDKMKnh6+V9L08331ipq6Q8OFXZYiqP6n/tbHx4s5I9uRhcye6BrbkizkBDw==", + "peer": true, "dependencies": { "call-bind": "^1.0.2", "has-bigints": "^1.0.2", @@ -21412,7 +21531,6 @@ "integrity": "sha512-0msEVHJEScQbhkbVTb/4iHZdJ6SXp/AvxL2sjwYQFfBqleHtnCqv1J3sa9zbWz/6kW1m9Tfzn92vW+kZ1WV6QA==", "dev": true, "license": "MIT", - "peer": true, "dependencies": { "esbuild": "^0.25.0", "fdir": "^6.4.4", @@ -21584,7 +21702,6 @@ "integrity": "sha512-M7BAV6Rlcy5u+m6oPhAPFgJTzAioX/6B0DxyvDlo9l8+T3nLKbrczg2WLUyzd45L8RqfUMyGPzekbMvX2Ldkwg==", "dev": true, "license": "MIT", - "peer": true, "engines": { "node": ">=12" }, @@ -21779,6 +21896,7 @@ "version": "1.1.0", "resolved": "https://registry.npmjs.org/which-boxed-primitive/-/which-boxed-primitive-1.1.0.tgz", "integrity": "sha512-Ei7Miu/AXe2JJ4iNF5j/UphAgRoma4trE6PtisM09bPygb3egMH3YLW/befsWb1A1AxvNSFidOFTB18XtnIIng==", + "peer": true, "dependencies": { "is-bigint": "^1.1.0", "is-boolean-object": "^1.2.0", @@ -21797,6 +21915,7 @@ "version": "1.2.0", "resolved": "https://registry.npmjs.org/which-builtin-type/-/which-builtin-type-1.2.0.tgz", "integrity": "sha512-I+qLGQ/vucCby4tf5HsLmGueEla4ZhwTBSqaooS+Y0BuxN4Cp+okmGuV+8mXZ84KDI9BA+oklo+RzKg0ONdSUA==", + "peer": true, "dependencies": { "call-bind": "^1.0.7", "function.prototype.name": "^1.1.6", @@ -21823,6 +21942,7 @@ "version": "1.0.2", "resolved": "https://registry.npmjs.org/which-collection/-/which-collection-1.0.2.tgz", "integrity": "sha512-K4jVyjnBdgvc86Y6BkaLZEN933SwYOuBFkdmBu9ZfkcAbdVbpITnDmjvZ/aQjRXQrv5EPkTnD1s39GiiqbngCw==", + "peer": true, "dependencies": { "is-map": "^2.0.3", "is-set": "^2.0.3", @@ -21840,6 +21960,7 @@ "version": "1.1.16", "resolved": "https://registry.npmjs.org/which-typed-array/-/which-typed-array-1.1.16.tgz", "integrity": "sha512-g+N+GAWiRj66DngFwHvISJd+ITsyphZvD1vChfVg6cEdnzy53GzB3oy0fUNlvhz7H7+MiqhYr26qxQShCpKTTQ==", + "peer": true, "dependencies": { "available-typed-arrays": "^1.0.7", "call-bind": "^1.0.7", @@ -22065,6 +22186,7 @@ "version": "5.1.0", "resolved": "https://registry.npmjs.org/wordwrapjs/-/wordwrapjs-5.1.0.tgz", "integrity": "sha512-JNjcULU2e4KJwUNv6CHgI46UvDGitb6dGryHajXTDiLgg1/RiGoPSDw4kZfYnwGtEXf2ZMeIewDQgFGzkCB2Sg==", + "peer": true, "engines": { "node": ">=12.17" } @@ -22130,7 +22252,6 @@ "resolved": "https://registry.npmjs.org/ws/-/ws-8.18.3.tgz", "integrity": "sha512-PEIGCY5tSlUt50cqyMXfCzX+oOPqN0vuGqWzbcJ2xvnkzkq46oOpz7dQaTDBdfICb4N14+GARUDw2XV2N4tvzg==", "license": "MIT", - "peer": true, "engines": { "node": ">=10.0.0" }, @@ -22201,7 +22322,6 @@ "version": "2.6.1", "resolved": "https://registry.npmjs.org/yaml/-/yaml-2.6.1.tgz", "integrity": "sha512-7r0XPzioN/Q9kXBro/XPnA6kznR73DHq+GXh5ON7ZozRO6aMjbmiBuKste2wslTFkC5d1dw0GooOCepZXJ2SAg==", - "peer": true, "bin": { "yaml": "bin.mjs" }, @@ -22259,7 +22379,6 @@ "resolved": "https://registry.npmjs.org/zod/-/zod-3.25.76.tgz", "integrity": "sha512-gzUt/qt81nXsFGKIFcC3YnfEAx5NkunCfnDlvuBSSFS02bcXu4Lmea0AFIUwbLWxWPx3d9p8S5QoaujKcNQxcQ==", "license": "MIT", - "peer": true, "funding": { "url": "https://github.com/sponsors/colinhacks" } diff --git a/core/package.json b/core/package.json index 023cecf70..bcdb36a3d 100644 --- a/core/package.json +++ b/core/package.json @@ -58,13 +58,13 @@ "@aws-sdk/client-bedrock-runtime": "^3.931.0", "@aws-sdk/client-sagemaker-runtime": "^3.777.0", "@aws-sdk/credential-providers": "^3.931.0", - "@continuedev/config-types": "^1.0.13", + "@continuedev/config-types": "^1.0.14", "@continuedev/config-yaml": "file:../packages/config-yaml", "@continuedev/fetch": "file:../packages/fetch", "@continuedev/llm-info": "file:../packages/llm-info", "@continuedev/openai-adapters": "file:../packages/openai-adapters", "@continuedev/terminal-security": "file:../packages/terminal-security", - "@modelcontextprotocol/sdk": "^1.24.0", + "@modelcontextprotocol/sdk": "^1.25.2", "@mozilla/readability": "^0.5.0", "@octokit/rest": "^20.1.1", "@sentry/cli": "^2.50.2", diff --git a/core/tools/definitions/editFile.ts b/core/tools/definitions/editFile.ts index 9ca5b6b63..29b49c41c 100644 --- a/core/tools/definitions/editFile.ts +++ b/core/tools/definitions/editFile.ts @@ -8,7 +8,7 @@ export interface EditToolArgs { } export const NO_PARALLEL_TOOL_CALLING_INSTRUCTION = - "This tool CANNOT be called in parallel with other tools."; + "This tool CANNOT be called in parallel with any other tools, including itself"; const CHANGES_DESCRIPTION = "Any modifications to the file, showing only needed changes. Do NOT wrap this in a codeblock or write anything besides the code changes. In larger files, use brief language-appropriate placeholders for large unmodified sections, e.g. '// ... existing code ...'"; diff --git a/core/tools/implementations/lsTool.ts b/core/tools/implementations/lsTool.ts index c8c753060..8fc9a044e 100644 --- a/core/tools/implementations/lsTool.ts +++ b/core/tools/implementations/lsTool.ts @@ -2,12 +2,12 @@ import ignore from "ignore"; import { ToolImpl } from "."; import { walkDir } from "../../indexing/walkDir"; -import { resolveInputPath } from "../../util/pathResolver"; import { ContinueError, ContinueErrorReason } from "../../util/errors"; +import { resolveInputPath } from "../../util/pathResolver"; export function resolveLsToolDirPath(dirPath: string | undefined) { if (!dirPath || dirPath === ".") { - return "/"; + return "."; } // Don't strip leading slash from absolute paths - let the resolver handle it if (dirPath.startsWith(".") && !dirPath.startsWith("./")) { diff --git a/core/tools/implementations/lsTool.vitest.ts b/core/tools/implementations/lsTool.vitest.ts index c3c571294..7ec206827 100644 --- a/core/tools/implementations/lsTool.vitest.ts +++ b/core/tools/implementations/lsTool.vitest.ts @@ -13,15 +13,15 @@ const mockExtras = { } as unknown as ToolExtras; test("resolveLsToolDirPath handles undefined path", () => { - expect(resolveLsToolDirPath(undefined)).toBe("/"); + expect(resolveLsToolDirPath(undefined)).toBe("."); }); test("resolveLsToolDirPath handles empty string", () => { - expect(resolveLsToolDirPath("")).toBe("/"); + expect(resolveLsToolDirPath("")).toBe("."); }); test("resolveLsToolDirPath handles dot", () => { - expect(resolveLsToolDirPath(".")).toBe("/"); + expect(resolveLsToolDirPath(".")).toBe("."); }); test("resolveLsToolDirPath handles dot relative", () => { diff --git a/core/tools/implementations/resolveWorkingDirectory.vitest.ts b/core/tools/implementations/resolveWorkingDirectory.vitest.ts new file mode 100644 index 000000000..6940af2ea --- /dev/null +++ b/core/tools/implementations/resolveWorkingDirectory.vitest.ts @@ -0,0 +1,197 @@ +import { describe, expect, it } from "vitest"; +import { fileURLToPath } from "node:url"; + +/** + * Test suite for workspace directory resolution logic. + * + * This tests the URI parsing behavior used in runTerminalCommand.ts + * to ensure correct handling of various workspace URI formats. + */ + +// Replicate the resolution logic for testing +function resolveWorkingDirectory(workspaceDirs: string[]): string { + // Handle vscode-remote://wsl+distro/path URIs (WSL2 remote workspaces) + const wslWorkspaceDir = workspaceDirs.find((dir) => + dir.startsWith("vscode-remote://wsl"), + ); + if (wslWorkspaceDir) { + try { + const url = new URL(wslWorkspaceDir); + return decodeURIComponent(url.pathname); + } catch { + // Fall through to other handlers + } + } + + // Handle file:// URIs (local workspaces) + const fileWorkspaceDir = workspaceDirs.find((dir) => + dir.startsWith("file:/"), + ); + if (fileWorkspaceDir) { + try { + return fileURLToPath(fileWorkspaceDir); + } catch { + // Fall through to default handling + } + } + + // Default to user's home directory with fallbacks + try { + return process.env.HOME || process.env.USERPROFILE || process.cwd(); + } catch { + return "/tmp"; + } +} + +describe("resolveWorkingDirectory", () => { + describe("WSL remote URIs (vscode-remote://wsl+...)", () => { + it("should parse basic WSL URI", () => { + const result = resolveWorkingDirectory([ + "vscode-remote://wsl+Ubuntu/home/user/project", + ]); + expect(result).toBe("/home/user/project"); + }); + + it("should decode URL-encoded spaces in path", () => { + const result = resolveWorkingDirectory([ + "vscode-remote://wsl+Ubuntu/home/user/my%20project", + ]); + expect(result).toBe("/home/user/my project"); + }); + + it("should decode URL-encoded special characters", () => { + const result = resolveWorkingDirectory([ + "vscode-remote://wsl+Ubuntu/home/user/path%23with%23hashes", + ]); + expect(result).toBe("/home/user/path#with#hashes"); + }); + + it("should decode URL-encoded unicode characters", () => { + const result = resolveWorkingDirectory([ + "vscode-remote://wsl+Ubuntu/home/user/%E4%B8%AD%E6%96%87%E8%B7%AF%E5%BE%84", + ]); + expect(result).toBe("/home/user/中文路径"); + }); + + it("should handle different WSL distro names", () => { + const ubuntu = resolveWorkingDirectory([ + "vscode-remote://wsl+Ubuntu-22.04/home/user/project", + ]); + expect(ubuntu).toBe("/home/user/project"); + + const debian = resolveWorkingDirectory([ + "vscode-remote://wsl+Debian/home/user/project", + ]); + expect(debian).toBe("/home/user/project"); + }); + + it("should handle root path", () => { + const result = resolveWorkingDirectory(["vscode-remote://wsl+Ubuntu/"]); + expect(result).toBe("/"); + }); + + it("should prioritize WSL URIs over file:// URIs", () => { + const result = resolveWorkingDirectory([ + "file:///c:/Users/user/project", + "vscode-remote://wsl+Ubuntu/home/user/project", + ]); + expect(result).toBe("/home/user/project"); + }); + }); + + describe("file:// URIs (local workspaces)", () => { + it("should parse basic file:// URI on Unix", () => { + const result = resolveWorkingDirectory(["file:///home/user/project"]); + expect(result).toBe("/home/user/project"); + }); + + it("should decode URL-encoded spaces in file:// URI", () => { + const result = resolveWorkingDirectory([ + "file:///home/user/my%20project", + ]); + expect(result).toBe("/home/user/my project"); + }); + + it("should handle Windows-style file:// URI", () => { + // fileURLToPath handles Windows paths correctly + const result = resolveWorkingDirectory(["file:///C:/Users/user/project"]); + // On Unix, this will be /C:/Users/user/project + // On Windows, this will be C:\Users\user\project + expect(result).toMatch(/project$/); + }); + }); + + describe("fallback behavior", () => { + it("should fall back to HOME when no valid URIs", () => { + const originalHome = process.env.HOME; + try { + process.env.HOME = "/test/home"; + const result = resolveWorkingDirectory([]); + expect(result).toBe("/test/home"); + } finally { + process.env.HOME = originalHome; + } + }); + + it("should handle empty workspace dirs array", () => { + const result = resolveWorkingDirectory([]); + // Should return HOME or USERPROFILE or cwd + expect(typeof result).toBe("string"); + expect(result.length).toBeGreaterThan(0); + }); + + it("should handle invalid URIs gracefully", () => { + const result = resolveWorkingDirectory([ + "not-a-valid-uri", + "also://not/handled", + ]); + // Should fall through to HOME fallback + expect(typeof result).toBe("string"); + }); + + it("should handle malformed vscode-remote URI", () => { + const result = resolveWorkingDirectory([ + "vscode-remote://wsl+Ubuntu", // Missing path + ]); + // new URL() should still parse this, pathname would be empty or "/" + expect(typeof result).toBe("string"); + }); + }); + + describe("URL encoding edge cases", () => { + it("should handle plus signs (not spaces)", () => { + // In URL encoding, + is literal plus, %2B is encoded plus, %20 is space + const result = resolveWorkingDirectory([ + "vscode-remote://wsl+Ubuntu/home/user/c%2B%2B-project", + ]); + expect(result).toBe("/home/user/c++-project"); + }); + + it("should handle percent sign itself", () => { + const result = resolveWorkingDirectory([ + "vscode-remote://wsl+Ubuntu/home/user/100%25-complete", + ]); + expect(result).toBe("/home/user/100%-complete"); + }); + + it("should handle mixed encoded and unencoded characters", () => { + const result = resolveWorkingDirectory([ + "vscode-remote://wsl+Ubuntu/home/user/normal-path/with%20space/more", + ]); + expect(result).toBe("/home/user/normal-path/with space/more"); + }); + }); + + describe("comparison with fileURLToPath behavior", () => { + it("should match fileURLToPath decoding for equivalent paths", () => { + const fileResult = fileURLToPath("file:///home/user/my%20project"); + const wslResult = resolveWorkingDirectory([ + "vscode-remote://wsl+Ubuntu/home/user/my%20project", + ]); + + // Both should decode %20 to space + expect(fileResult).toBe("/home/user/my project"); + expect(wslResult).toBe("/home/user/my project"); + }); + }); +}); diff --git a/core/tools/implementations/runTerminalCommand.ts b/core/tools/implementations/runTerminalCommand.ts index 19377a4ee..bed8aceb8 100644 --- a/core/tools/implementations/runTerminalCommand.ts +++ b/core/tools/implementations/runTerminalCommand.ts @@ -48,12 +48,32 @@ import { getBooleanArg, getStringArg } from "../parseArgs"; * Falls back to home directory or temp directory if no workspace is available. */ function resolveWorkingDirectory(workspaceDirs: string[]): string { + // Handle file:// URIs (local workspaces) const fileWorkspaceDir = workspaceDirs.find((dir) => dir.startsWith("file:/"), ); if (fileWorkspaceDir) { - return fileURLToPath(fileWorkspaceDir); + try { + return fileURLToPath(fileWorkspaceDir); + } catch { + // fileURLToPath can fail on malformed URIs or in some remote environments + // Fall through to default handling + } } + + // Handle other URI schemes (vscode-remote://wsl, vscode-remote://ssh-remote, etc.) + const remoteWorkspaceDir = workspaceDirs.find( + (dir) => dir.includes("://") && !dir.startsWith("file:/"), + ); + if (remoteWorkspaceDir) { + try { + const url = new URL(remoteWorkspaceDir); + return decodeURIComponent(url.pathname); + } catch { + // Fall through to other handlers + } + } + // Default to user's home directory with fallbacks try { return process.env.HOME || process.env.USERPROFILE || process.cwd(); diff --git a/core/tools/implementations/runTerminalCommand.vitest.ts b/core/tools/implementations/runTerminalCommand.vitest.ts index 428cc8306..089c85502 100644 --- a/core/tools/implementations/runTerminalCommand.vitest.ts +++ b/core/tools/implementations/runTerminalCommand.vitest.ts @@ -553,6 +553,58 @@ describe("runTerminalCommandImpl", () => { // This demonstrates why the fix is needed - fileURLToPath throws on non-file URIs expect(() => fileURLToPath(nonFileUri)).toThrow(); }); + + it("should handle vscode-remote URIs by extracting pathname", async () => { + // Various remote URI formats that VS Code uses + const remoteUris = [ + "vscode-remote://wsl+Ubuntu/home/user/project", + "vscode-remote://ssh-remote+myserver/home/user/project", + "vscode-remote://dev-container+abc123/workspace", + ]; + + for (const uri of remoteUris) { + mockGetWorkspaceDirs.mockResolvedValue([uri]); + + // Should not throw - the generic URI handler extracts the pathname + await expect( + runTerminalCommandImpl( + { command: "echo test", waitForCompletion: false }, + createMockExtras(), + ), + ).resolves.toBeDefined(); + } + }); + + it("should decode URI-encoded characters in remote workspace paths", async () => { + // Path with spaces and special characters + const encodedUri = + "vscode-remote://wsl+Ubuntu/home/user/my%20project%20%28test%29"; + mockGetWorkspaceDirs.mockResolvedValue([encodedUri]); + + // Should handle without throwing - decodeURIComponent is applied + await expect( + runTerminalCommandImpl( + { command: "echo test", waitForCompletion: false }, + createMockExtras(), + ), + ).resolves.toBeDefined(); + }); + + it("should prefer file:// URIs over remote URIs when both present", async () => { + const workspaceDirs = [ + "vscode-remote://wsl+Ubuntu/home/user/remote-project", + "file:///home/user/local-project", + ]; + mockGetWorkspaceDirs.mockResolvedValue(workspaceDirs); + + // Should succeed, preferring the file:// URI + await expect( + runTerminalCommandImpl( + { command: "echo test", waitForCompletion: false }, + createMockExtras(), + ), + ).resolves.toBeDefined(); + }); }); describe("remote environment handling", () => { diff --git a/core/util/messageConversion.ts b/core/util/messageConversion.ts index b94d7e63f..dff758699 100644 --- a/core/util/messageConversion.ts +++ b/core/util/messageConversion.ts @@ -327,7 +327,7 @@ export function convertFromUnifiedHistory( messages.push(baseMessage); - // Add tool result messages if there are completed tool calls + // Add tool result messages if there are completed tool calls, and fallback when tool output is missing if (item.toolCallStates) { for (const toolState of item.toolCallStates) { if (toolState.output && toolState.output.length > 0) { @@ -336,6 +336,12 @@ export function convertFromUnifiedHistory( content: toolState.output.map((o: any) => o.content).join("\n"), tool_call_id: toolState.toolCallId, }); + } else { + messages.push({ + role: "tool", + content: "Tool cancelled", + tool_call_id: toolState.toolCallId, + }); } } } diff --git a/docs/CONTRIBUTING.mdx b/docs/CONTRIBUTING.mdx index 6f1483c74..7b8ff4bd5 100644 --- a/docs/CONTRIBUTING.mdx +++ b/docs/CONTRIBUTING.mdx @@ -126,7 +126,7 @@ The easiest way to get started is using our pre-configured documentation agent: - You can also remix this config to customize it for your specific needs. Learn how to create your own remix in our [remix config documentation](/hub/configs/create-a-config#how-to-remix-a-config). + You can also remix this config to customize it for your specific needs. Learn how to create your own remix in our [remix config documentation](/mission-control/configs/create-a-config#how-to-remix-a-config). ### Option 2: Create Your Own Custom Agent @@ -135,7 +135,7 @@ If you want more control or customization, you can create your own documentation - Follow our [config creation guide](/hub/configs/create-a-config) to set up your own config. + Follow our [config creation guide](/mission-control/configs/create-a-config) to set up your own config. diff --git a/docs/agents/create-and-edit.mdx b/docs/agents/create-and-edit.mdx index 21f79c425..f8d7b7a46 100644 --- a/docs/agents/create-and-edit.mdx +++ b/docs/agents/create-and-edit.mdx @@ -1,61 +1,42 @@ --- -title: "Create and Edit Agents" -description: "Build custom AI workflows with prompts, rules, and tools through the Continue Mission Control interface" +title: "Create and Edit Cloud Agents" +description: "Build custom AI workflows for your Cloud Agents with prompts, rules, and tools through the Continue Mission Control interface" sidebarTitle: "Create & Edit" --- - - You can only create and edit Agents through Mission Control in the Continue Mission Control web interface. - This ensures proper validation, versioning, and team collaboration features. + + You can only create and edit AI Agents in the Continue Mission Control web interface. This ensures proper validation, versioning, and team collaboration features. -## Creating an Agent - - ![Create an agent gif](/images/hub/create-an-agent.gif) - +## Creating a Cloud Agent - Navigate to the [New Agent page](https://hub.continue.dev/new?type=agent). + Navigate to the [New Agent page](https://hub.continue.dev/agents/new). - This opens the **Create an Agent** form with all required fields. - Configure your agent with the following fields: + Configure your Cloud Agent with the following fields: | Field | What to Enter | Example | |-------|---------------|---------| | **Name** | Display name shown in Mission Control | `GitHub PR Agent` | | **Prompt** | First instruction the agent receives | `Open a GitHub PR to fix the specified issue.` | - | **Description** | What the agent does | `Creates a pull request and includes AI-generated summaries.` | - | **Tools ([MCPs](https://hub.continue.dev/hub?type=mcpServers))** | Select built-in or custom MCPs | `GitHub, PostHog, Supabase` | + | **Tools ([MCPs](https://hub.continue.dev/hub?type=mcpServers))** | Select built-in or custom MCPs | `GitHub, PostHog, Supabase, etc.` | | **[Rules](https://hub.continue.dev/hub?type=rules)** | Add any organizational rules | `continuedev/gh-pr-commit-workflow` | | **[Model](https://hub.continue.dev/hub?type=models)** | Choose a default LLM | `Claude Sonnet 4.5` | - | **Owner + Slug** | Determines namespace | `my-org/github-pr-agent` | - | **Visibility** | Access level | `Public, Organization, or Private` | + | **Trigger** | Determines when the cloud agent will be invoked | `GitHub, cron, webhook` | + - **Tip**: Start with a simple prompt and add complexity through rules and tools. The prompt should be a clear, single instruction that defines the agent's primary goal. + **Tip**: Start with a simple prompt and add complexity through rules and tools. The prompt should be a clear, single instruction that defines the AI Agent's primary goal. - - As you fill in the fields, the right-hand panel shows a live preview of your agent's YAML configuration: - - ```yaml - name: Open PR with Fix - description: Open a GitHub PR to fix the specified issue - tools: built_in, anthropic/github-mcp - rules: - - continuedev/gh-pr-commit-workflow - - continuedev/summarization - model: Claude Sonnet 4.5 - visibility: public - ``` - - This preview helps you verify the configuration before creating the agent. + + In the right panel, you can select the repository where the agent will run, and decide if the agent should automatically kick off on creation. @@ -68,90 +49,27 @@ sidebarTitle: "Create & Edit" -## Editing an Agent +## Editing a Cloud Agent -You can edit any agent you own or that has Organization-level access. - - - From the **Agents** page or Mission Control view, click your agent's name, then select **"Edit Agent"**. - - - - You can modify any of these components: - - - - **Refine task behavior** - - ``` - # Before - Fix the bug in the authentication system - - # After - Fix the authentication bug by: - 1. Identifying the root cause - 2. Implementing a secure solution - 3. Adding appropriate tests - 4. Opening a PR with detailed explanation - ``` - - - - **Enforce team standards** - - Add or remove organizational rules: - - `continuedev/security-first` - Always scan for vulnerabilities - - `continuedev/test-coverage` - Require tests for new code - - `my-org/style-guide` - Follow company coding standards - - - - **Connect additional systems** - - - Add GitHub MCP for repository operations - - Include Sentry MCP for error monitoring - - Connect Supabase MCP for database operations - - Use custom MCPs for internal tools - - - - **Adjust behavior and access** - - - **Model**: Switch between Claude, GPT-4, or other supported LLMs - - **Visibility**: Control who can see and use the agent - - Public: Anyone can discover and use - - Organization: Only your team members - - Private: Only you can access - - - - - - Click **"Update Agent"** when finished. - - The updated version is instantly available to your team with automatic versioning for change tracking. - - - - - Test your agent thoroughly to ensure they interact as expected. - +You can edit any AI Agent you own or that has Organization-level access. +From the **[Agents](https://hub.continue.dev/agents)** page, click your agent's name. Change any of the fields in the edit form, then click **"Save Changes"**. + ## Example Agent Configurations Here are proven agent configurations you can create or use as inspiration: - + **Snyk Continuous AI Agent** - Comprehensive security scanning with Snyk MCP integration. - Automates dependency analysis, vulnerability scanning, and creates remediation PRs with AI-powered fix suggestions. + Automates dependency analysis, vulnerability scanning, and creates remediation PRs with Cloud Agent powered fix suggestions. - + **Netlify Continuous AI Agent** - Performance optimization with A/B testing and monitoring. - Tracks Core Web Vitals, identifies regressions, and provides optimization recommendations. + Cloud Agent tracks Core Web Vitals, identifies regressions, and provides optimization recommendations. @@ -160,13 +78,13 @@ Here are proven agent configurations you can create or use as inspiration: Monitors production errors, provides root cause analysis, and creates actionable GitHub issues. - + **GitHub Manager AI Agent** - Comprehensive GitHub workflow automation. Handles issue triage, PR reviews, and release note generation with natural language prompts. - + **Supabase Continuous AI Agent** - Database security and management workflows. Audits Row Level Security, identifies vulnerabilities, and generates fixes automatically. @@ -180,7 +98,7 @@ Common issues and solutions: | Problem | Solution | |---------|----------| -| **Agent doesn't complete tasks** | Simplify the prompt, add more specific instructions, verify tool permissions | +| **Cloud Agent doesn't complete tasks** | Simplify the prompt, add more specific instructions, verify tool permissions | | **Tools aren't working** | Check MCP configuration, verify API keys and permissions in Hub settings | | **Inconsistent behavior** | Add rules to enforce consistent patterns, test with various input scenarios | | **Performance issues** | Consider model choice, simplify complex multi-step workflows, optimize tool usage | diff --git a/docs/agents/intro.mdx b/docs/agents/intro.mdx index caad558b7..92e334fa4 100644 --- a/docs/agents/intro.mdx +++ b/docs/agents/intro.mdx @@ -1,68 +1,47 @@ --- -title: "Getting Started with Agents" -description: "Quick start guide for running AI workflows in Mission Control" -sidebarTitle: "Getting Started" +title: "Starting with Cloud Agents" +description: "Quick start guide for running AI Agent workflows in Mission Control" --- - Mission Control is your web interface for running and managing AI agents. Get started in minutes with pre-built workflows for security scanning, GitHub management, analytics insights, and more. + Mission Control is your web interface for running and managing Cloud Agents. Get started in minutes with pre-built workflows for security scanning, GitHub management, analytics insights, and more. Mission Control is in beta. Please share any feedback with us in [GitHub discussions](https://github.com/continuedev/continue/discussions/8051). -Use Mission Control to kick off agents for: +Use Mission Control to kick off Cloud Agents for: - **Bug fixes & code quality** - Address nitpicks and technical debt - **Feature development** - Build boilerplate-heavy features -- **Security & compliance** - [Automated vulnerability scanning](../guides/snyk-mcp-continue-cookbook) +- **Security & compliance** - [Automated vulnerability scanning](../mission-control/integrations/snyk) - **Investigation & analysis** - Research issues to kickstart your work - **Custom workflows** - Run repeatable tasks with your own rules and prompts ## Quick Start + + If you haven't already, create an account and connect your GitHub repositories in [Mission Control](https://hub.continue.dev/). + + - - Go to [Mission Control Agents](https://hub.continue.dev/hub?type=agents) and connect with your GitHub account. - - ![Mission Control Setup](/images/hub/workflows/images/workflows-setup.png) + + Go to [Mission Control Agents page](https://hub.continue.dev/agents) and select an existing workflow with a pre-configured Cloud Agent. - - Select from pre-configured agents or create your own: - - - - `continuedev/snyk-continuous-ai-agent` - Finds vulnerabilities and creates fix PRs - - - - `continuedev/github-project-manager-agent` - Triages issues and manages workflows - - - - - - Enter additional instructions and watch your agent work: - - ``` - "Fix the TypeError in api/users.ts and open a PR with tests" - ``` + + Your agents page lists all available Cloud Agents. Click on the agent and then **Test Run** to start it. - **New to agents?** Check out our [pre-configured agents](/hub/agents/overview#pre-configured-agents) to test out a workflow immediately. + **New to agents?** Check out our [pre-configured agents](/agents/overview#pre-configured-agents) to test out a workflow immediately. -## Try an Agent First: Your 60-Second Challenge +## Try a Cloud Agent First: Your 60-Second Challenge Before creating your own agent, let's see one in action! The fastest way to experience the power of Continue agents is with our demo repository. -![Agent Mission Control](/images/hub/assets/images/agent-mission-control.gif) - ### See an Agent Create a Pull Request in Under 60 Seconds @@ -79,13 +58,13 @@ Before creating your own agent, let's see one in action! The fastest way to expe - Go to [Mission Control Agents](https://hub.continue.dev/hub?type=agents) and: + Go to [Mission Control](https://hub.continue.dev/) and: - **Connect GitHub** and authorize Continue when prompted - This gives agents access to create PRs in your repositories - **Target your forked demo repo** and try one of these commands: + **Target your forked demo repo** and try one of these commands as a [task](../mission-control/tasks): @@ -131,7 +110,7 @@ Before creating your own agent, let's see one in action! The fastest way to expe ## Example Workflow Tasks -Here are some example tasks you can try with your agents: +Here are some example tasks you can try with your Cloud Agents: @@ -189,7 +168,7 @@ Here are some example tasks you can try with your agents: -## Ways to Run Agents +## Ways to Run Cloud Agents Choose the method that fits your workflow: @@ -198,12 +177,13 @@ Choose the method that fits your workflow: **Web interface for interactive use** Perfect for: - - Exploring agent capabilities + - Exploring AI agent capabilities - Reviewing outputs before action + - Monitoring ongoing workflows - Team collaboration - One-time tasks - Access at [hub.continue.dev/agents](https://hub.continue.dev/hub?type=agents) + Access at [hub.continue.dev/agents](https://hub.continue.dev/agents) @@ -235,9 +215,9 @@ Choose the method that fits your workflow: -## Best Practices for Success +## Best Practices for Cloud Agent Success -The practice of using agents (Continuous AI) requires thoughtful setup of guardrails and habits: +The practice of using Cloud Agents (Continuous AI) requires thoughtful setup of guardrails and habits: diff --git a/docs/agents/overview.mdx b/docs/agents/overview.mdx index a606351eb..8a6d1afcf 100644 --- a/docs/agents/overview.mdx +++ b/docs/agents/overview.mdx @@ -1,35 +1,29 @@ --- -title: "Agents Overview" -description: "Standardized AI workflows that combine prompts, rules, and tools to complete specific, repeatable tasks" +title: "Cloud Agents & Continuous AI" +description: "Standardized Cloud Agent workflows that combine prompts, rules, and tools to complete specific, repeatable tasks" sidebarTitle: "Overview" --- +## What are Cloud Agents? +Cloud Agents are AI workflows that execute on remote infrastructure (Continue Mission Control) rather than your local machine. Because they live in the cloud, they maintain persistent, secure connections to your development tools and can be triggered in two ways: + +- On-Demand: Manually triggered via Chat, Tasks, or the CLI for complex, human-guided work. + +- Automated: Automatically triggered by schedules (Cron) or events (Webhooks) for background maintenance. + +Unlike local assistants, Cloud Agents provide a centralized "Mission Control" where teams can collaborate on tasks, review shared logs, and standardize automation across repositories. + + Agents are custom AI workflows that combine a prompt, rules, and tools (MCPs and more) to complete specific, repeatable tasks. They live in the Continue Mission Control and can be executed from Mission Control (web interface), TUI mode, or headless automation. -## What Are Agents? -Agents let your team standardize common workflows like opening GitHub PRs, summarizing analytics, or auditing security. Each agent includes: -### Agent Components +## Ways to Run Cloud Agents -| **Component** | **Description** | **Example** | -|----------------|-----------------|--------------| -| **Prompt** | The agent’s main instruction that defines what it does and how it should behave. Additional user input is appended when invoked. | Example prompt: “Summarize ongoing work with status, blockers, and next steps. Use markdown formatting and a concise, professional tone.” | -| **Rules** | Define consistent standards or behaviors that guide how the agent responds. Rules help ensure reliability across team usage. | “Always include related issue or PR links when summarizing work.” | -| **Tools / MCPs** | External systems or integrations the agent can call to complete tasks. MCPs (Model Context Protocols) extend functionality through APIs. | GitHub, PostHog, Supabase | -| **Model** | The large language model that powers the agent’s reasoning and output generation. | Claude Sonnet 4.5 | -| **Visibility** | Determines who can view or use the agent. Controls access at creation time. | Public, Organization, or Private | - - - Mission Control is in beta. Please share any feedback with us in [GitHub discussions](https://github.com/continuedev/continue/discussions/8051). - - -## Ways to Run Agents - -You can run Agents in three main ways: +These execution modes allow Continue agents to function as cloud agents, running continuously, headlessly, or on schedules without requiring a developer in the loop: @@ -74,7 +68,17 @@ You can run Agents in three main ways: -## Pre-configured Agents +## Local vs. Cloud Agents + +| Feature | Local Agents (IDE / TUI) | Cloud Agents (Mission Control) | +|---------|--------------------------|--------------------------------| +| Compute Location | Your Local Machine | Remote Cloud Infrastructure | +| Primary Use Case | fast, private iteration and "single-player" coding | Collaborative tasks, heavy processing, and reliable automation | +| Context Access | Limited to open files and local git state | Full repository access + integrated tools (Sentry, Snyk, etc.) | +| Triggers | Manual Tasks / CLI | Hybrid: Manual Chat, Cron Schedules, or Event Webhooks | +| Availability | Stops when you close your laptop | Always On: Runs asynchronously in the background | + +## Pre-configured Cloud Agents Skip the setup and use battle-tested agents from our cookbook collection: @@ -83,15 +87,14 @@ Skip the setup and use battle-tested agents from our cookbook collection: `continuedev/snyk-continuous-ai-agent` - Finds vulnerabilities and opens PRs with fixes - +A cloud agent that monitors vulnerabilities and automatically opens PRs with fixes. `continuedev/github-project-manager-agent` - Triages issues and manages project workflows + A cloud agent that triages issues and manages project workflows @@ -99,7 +102,7 @@ Skip the setup and use battle-tested agents from our cookbook collection: `continuedev/posthog-continuous-ai-agent` - Analyzes user data and creates actionable tasks + A cloud agent that analyzes user data and creates actionable tasks @@ -107,7 +110,7 @@ Skip the setup and use battle-tested agents from our cookbook collection: `continuedev/netlify-continuous-ai-agent` - Monitors Core Web Vitals and optimizes deployments + A cloud agent that monitors Core Web Vitals and optimizes deployments @@ -115,7 +118,7 @@ Skip the setup and use battle-tested agents from our cookbook collection: `continuedev/supabase-agent` - Audits RLS security and generates migrations + A cloud agent that audits RLS security and generates migrations @@ -123,13 +126,13 @@ Skip the setup and use battle-tested agents from our cookbook collection: `continuedev/dlt-agent` - Inspects pipelines and debugs load errors + A cloud agent that inspects pipelines and debugs load errors - **Explore More Agents**: Browse the complete collection of pre-configured agents and MCP integration cookbooks in our [Guides Overview](/guides/overview#mcp-integration-cookbooks). + **Explore More Cloud Agents**: Browse the complete collection of pre-configured agents and MCP integration cookbooks in our [Guides Overview](/guides/overview#mcp-integration-cookbooks). {/* ## Webhook Integrations @@ -180,7 +183,7 @@ Agents are organizational assets — once created, everyone in your org can use - Ready to build custom workflows? Learn how in our [Create and Edit guide](/hub/agents/create-and-edit). + Ready to build custom workflows? Learn how in our [Create and Edit guide](/agents/create-and-edit). @@ -228,7 +231,7 @@ The practice of using cloud agents, which we call Continuous AI, requires foreth ## Next Steps - + Build your first custom agent with prompts, rules, and tools diff --git a/docs/cli/configuration.mdx b/docs/cli/configuration.mdx new file mode 100644 index 000000000..faaebc6bb --- /dev/null +++ b/docs/cli/configuration.mdx @@ -0,0 +1,29 @@ +--- +title: "CLI Configuration" +description: "Configure Continue CLI behavior with environment variables" +sidebarTitle: "Configuration" +--- + +Continue CLI tools automatically truncate large outputs to prevent excessive token usage. You can customize these limits using environment variables. + +## Environment Variables + +| Environment Variable | Tool | Default | +|---------------------|------|--------:| +| `CONTINUE_CLI_BASH_MAX_OUTPUT_CHARS` | Bash | 50,000 | +| `CONTINUE_CLI_BASH_MAX_OUTPUT_LINES` | Bash | 1,000 | +| `CONTINUE_CLI_READ_FILE_MAX_OUTPUT_CHARS` | Read | 100,000 | +| `CONTINUE_CLI_READ_FILE_MAX_OUTPUT_LINES` | Read | 5,000 | +| `CONTINUE_CLI_FETCH_MAX_OUTPUT_LENGTH` | Fetch | 20,000 | +| `CONTINUE_CLI_DIFF_MAX_OUTPUT_LENGTH` | Diff | 50,000 | +| `CONTINUE_CLI_SEARCH_CODE_MAX_RESULTS` | Search | 100 | +| `CONTINUE_CLI_SEARCH_CODE_MAX_RESULT_CHARS` | Search | 1,000 | + +## Example + +```bash +# Increase limits for verbose build output +export CONTINUE_CLI_BASH_MAX_OUTPUT_CHARS=100000 +export CONTINUE_CLI_BASH_MAX_OUTPUT_LINES=2000 +cn +``` diff --git a/docs/customize/deep-dives/configuration.mdx b/docs/customize/deep-dives/configuration.mdx index 694b75430..6644e2248 100644 --- a/docs/customize/deep-dives/configuration.mdx +++ b/docs/customize/deep-dives/configuration.mdx @@ -11,7 +11,7 @@ You can easily access your configuration from the Continue Chat sidebar. Open th ## How to Manage Hub Configs - Hub Configs can be managed in [the Hub](https://hub.continue.dev). See [Editing a config](/hub/configs/edit-a-config) + Hub Configs can be managed in [the Hub](https://hub.continue.dev). See [Editing a config](/mission-control/configs/edit-a-config) ## How to Configure Local Configs with YAML diff --git a/docs/customize/model-providers/more/mimo.mdx b/docs/customize/model-providers/more/mimo.mdx new file mode 100644 index 000000000..1db934da9 --- /dev/null +++ b/docs/customize/model-providers/more/mimo.mdx @@ -0,0 +1,40 @@ +--- +title: "How to Configure Xiaomi Mimo with Continue" +sidebarTitle: "Xiaomi Mimo" +--- + + + Get your API key from the [Xiaomi Mimo Platform](https://platform.xiaomimimo.com/) + + +## Configuration + + + + ```yaml title="config.yaml" + name: My Config + version: 0.0.1 + schema: v1 + + models: + - name: + provider: mimo + model: mimo-v2-flash + apiKey: + ``` + + + ```json title="config.json" + { + "models": [ + { + "title": "", + "provider": "mimo", + "model": "mimo-v2-flash", + "apiKey": "" + } + ] + } + ``` + + diff --git a/docs/customize/model-providers/top-level/tetrate_agent_router_service.mdx b/docs/customize/model-providers/top-level/tetrate_agent_router_service.mdx index fbd188807..5ba6184f8 100644 --- a/docs/customize/model-providers/top-level/tetrate_agent_router_service.mdx +++ b/docs/customize/model-providers/top-level/tetrate_agent_router_service.mdx @@ -46,7 +46,7 @@ Click "Use Model", or "Remix" to change the model ID if needed -Add your API key to Continue. See [adding secrets in Continue Mission Control](/hub/secrets/secret-types) and [managing local secrets in the FAQ](/faqs#managing-local-secrets-and-environment-variables) +Add your API key to Continue. See [adding secrets in Continue Mission Control](/mission-control/secrets/secret-types) and [managing local secrets in the FAQ](/faqs#managing-local-secrets-and-environment-variables) Add it as a Continue Mission Control secret named `TETRATE_API_KEY` to reuse across projects. diff --git a/docs/customize/overview.mdx b/docs/customize/overview.mdx index c8c35930a..238eba18c 100644 --- a/docs/customize/overview.mdx +++ b/docs/customize/overview.mdx @@ -66,5 +66,5 @@ You can easily access your configuration from the Continue Chat sidebar. Open th ## Manage Your Configuration -- See [Editing Hub Configurations](/hub/configs/edit-a-config) for more details on managing your hub configuration +- See [Editing Hub Configurations](/mission-control/configs/edit-a-config) for more details on managing your hub configuration - See the [Config Deep Dive](/reference) for more details on local configurations diff --git a/docs/docs.json b/docs/docs.json index 1d76546e6..308a0e933 100644 --- a/docs/docs.json +++ b/docs/docs.json @@ -3,7 +3,7 @@ "theme": "mint", "name": "Continue", "banner": { - "content": "Check out our new look in Mission Control. It's now easier than ever to create [Workflows](https://hub.continue.dev/workflows), [Integrate with the tools you use](https://hub.continue.dev/integrations), and to create a one-off Task.", + "content": "**Introducing [Agents page in Mission Control](https://hub.continue.dev/agents).** A single view for all your cloud agents: where they run, how they're triggered, and how to reuse them across your work.", "dismissable": true }, "colors": { @@ -37,7 +37,7 @@ "mission-control/integrations/github", "mission-control/integrations/sentry", "mission-control/integrations/snyk", - "mission-control/integrations/slack-agent", + "mission-control/integrations/slack", "mission-control/integrations/posthog", "mission-control/integrations/atlassian", "mission-control/integrations/netlify", @@ -91,7 +91,8 @@ "cli/overview", "cli/install", "cli/quick-start", - "cli/guides" + "cli/guides", + "cli/configuration" ] }, { @@ -207,6 +208,7 @@ "customize/model-providers/more/groq", "customize/model-providers/more/llamacpp", "customize/model-providers/more/llamastack", + "customize/model-providers/more/mimo", "customize/model-providers/more/mistral", "customize/model-providers/more/nvidia", "customize/model-providers/more/together", @@ -251,10 +253,26 @@ { "tab": "Guides", "groups": [ + { + "group": "Getting Started", + "icon": "rocket-launch", + "pages": ["guides/overview"] + }, + { + "group": "Cloud Agents", + "pages": [ + "guides/cloud-agents/cloud-agents-taxonomy", + "guides/cloud-agents/guide-to-cloud-agents", + "guides/cloud-agents/when-to-use-cloud-agents", + "guides/cloud-agents/from-task-to-automation", + "guides/cloud-agents/cloud-agents-vs-ci", + "guides/cloud-agents/operating-cloud-agents-safely", + "guides/cloud-agents/automated-security-remediation-with-snyk" + ] + }, { "group": "Guides", "pages": [ - "guides/overview", { "group": "Understanding Continue", "pages": [ @@ -286,26 +304,26 @@ "guides/notion-continue-guide", "guides/github-pr-review-bot" ] + }, + { + "group": "Cookbooks", + "icon": "book-open-cover", + "pages": [ + "guides/posthog-github-continuous-ai", + "guides/continue-docs-mcp-cookbook", + "guides/github-mcp-continue-cookbook", + "guides/atlassian-mcp-continue-cookbook", + "guides/sanity-mcp-continue-cookbook", + "guides/sentry-mcp-error-monitoring", + "guides/snyk-mcp-continue-cookbook", + "guides/supabase-mcp-database-workflow", + "guides/dlt-mcp-continue-cookbook", + "guides/netlify-mcp-continuous-deployment", + "guides/chrome-devtools-mcp-performance", + "guides/klavis-mcp-continue-cookbook" + ] } ] - }, - { - "group": "Cookbooks", - "icon": "book-open-cover", - "pages": [ - "guides/posthog-github-continuous-ai", - "guides/continue-docs-mcp-cookbook", - "guides/github-mcp-continue-cookbook", - "guides/atlassian-mcp-continue-cookbook", - "guides/sanity-mcp-continue-cookbook", - "guides/sentry-mcp-error-monitoring", - "guides/snyk-mcp-continue-cookbook", - "guides/supabase-mcp-database-workflow", - "guides/dlt-mcp-continue-cookbook", - "guides/netlify-mcp-continuous-deployment", - "guides/chrome-devtools-mcp-performance", - "guides/klavis-mcp-continue-cookbook" - ] } ] }, @@ -655,39 +673,39 @@ }, { "source": "/actions/how-to-use-it", - "destination": "/customize/deep-dives/slash-commands" + "destination": "/customize/deep-dives/prompts" }, { "source": "/actions/how-to-customize", - "destination": "/customize/deep-dives/slash-commands" + "destination": "/customize/deep-dives/prompts" }, { "source": "/actions", - "destination": "/customize/deep-dives/slash-commands" + "destination": "/customize/deep-dives/prompts" }, { "source": "/actions/model-setup", - "destination": "/customize/deep-dives/slash-commands" + "destination": "/customize/deep-dives/prompts" }, { "source": "/actions/context-selection", - "destination": "/customize/deep-dives/slash-commands" + "destination": "/customize/deep-dives/prompts" }, { "source": "/actions/how-it-works", - "destination": "/customize/deep-dives/slash-commands" + "destination": "/customize/deep-dives/prompts" }, { "source": "/customize/slash-commands", - "destination": "/customize/deep-dives/slash-commands" + "destination": "/customize/deep-dives/prompts" }, { "source": "/customization/slash-commands", - "destination": "/customize/deep-dives/slash-commands" + "destination": "/customize/deep-dives/prompts" }, { "source": "/advanced/deep-dives/slash-commands", - "destination": "/customize/deep-dives/slash-commands" + "destination": "/customize/deep-dives/prompts" }, { "source": "/walkthroughs/quick-actions", @@ -1095,7 +1113,7 @@ }, { "source": "/about", - "destination": "/about-us" + "destination": "https://continue.dev/about-us" }, { "source": "/autocomplete/model-setup", @@ -1171,7 +1189,7 @@ }, { "source": "/guides/set-up-codestral", - "destination": "/customize/model-providers/top-level/mistral" + "destination": "/customize/model-providers/more/mistral" }, { "source": "/guides/build-your-own-context-provider", @@ -1481,11 +1499,15 @@ }, { "source": "/hub/agents/slack-agent", - "destination": "/mission-control/integrations/slack-agent" + "destination": "/mission-control/integrations/slack" }, { "source": "/hub/integrations/slack-agent", - "destination": "/mission-control/integrations/slack-agent" + "destination": "/mission-control/integrations/slack" + }, + { + "source": "/mission-control/integrations/slack-agent", + "destination": "/mission-control/integrations/slack" }, { "source": "/hub/integrations/github", diff --git a/docs/guides/atlassian-mcp-continue-cookbook.mdx b/docs/guides/atlassian-mcp-continue-cookbook.mdx index a3fd792c7..393fcead2 100644 --- a/docs/guides/atlassian-mcp-continue-cookbook.mdx +++ b/docs/guides/atlassian-mcp-continue-cookbook.mdx @@ -140,7 +140,7 @@ For all options, first: - Go to the [Continue Mission Control](https://hub.continue.dev) and [create a new agent](https://hub.continue.dev/new?type=agent). + Go to the [Continue Mission Control](https://hub.continue.dev) and [create a new agent](https://hub.continue.dev/agents/new). diff --git a/docs/guides/cli.mdx b/docs/guides/cli.mdx index 87e29a51b..2d17481fc 100644 --- a/docs/guides/cli.mdx +++ b/docs/guides/cli.mdx @@ -52,7 +52,7 @@ echo "$(git diff) Generate a conventional commit name for the current git change ## How to Configure Continue CLI -`cn` uses [`config.yaml`](/reference), the exact same configuration file as Continue. This means that you can log in to [Continue Mission Control](/hub/introduction) or use your existing local configuration. +`cn` uses [`config.yaml`](/reference), the exact same configuration file as Continue. This means that you can log in to [Continue Mission Control](/mission-control) or use your existing local configuration. To switch between configurations, you can use the `/config` slash command in `cn`, or you can start it with the `--config` flag (e.g. `cn --config continuedev/default-cli-config` or `cn --config ~/.continue/config.yaml`). diff --git a/docs/guides/cloud-agents/automated-security-remediation-with-snyk.mdx b/docs/guides/cloud-agents/automated-security-remediation-with-snyk.mdx new file mode 100644 index 000000000..be4322f86 --- /dev/null +++ b/docs/guides/cloud-agents/automated-security-remediation-with-snyk.mdx @@ -0,0 +1,279 @@ +--- +title: "Automatically Remediate High & Critical Vulnerabilities with Cloud Agents" +description: "How teams use cloud agents to automatically investigate and remediate high and critical Snyk vulnerabilities safely, reviewably, and without a dedicated security team." +sidebarTitle: "Snyk Remediation" +--- + +## Why This Workflow Exists + +Most teams don’t struggle to *detect* security vulnerabilities. They struggle to *keep up with fixing them*. + +- alerts pile up +- critical issues linger +- fixes get deferred behind feature work +- security becomes reactive instead of routine + +This guide shows how teams use cloud agents to automatically remediate high and critical Snyk vulnerabilities without introducing risk or losing control. + + +**Who this is for?** +Full-stack teams without a dedicated AppSec or DevOps function who still need to ship securely. + + +## The Core Problem + + + + Snyk finds real issues, but teams can’t keep up with triage and fixes. + + + Security work interrupts feature delivery and breaks focus. + + + Many fixes are repetitive, low-risk, and still handled manually. + + + + +The risk isn’t that vulnerabilities exist. The risk is that known high-severity issues remain unfixed. + + +## Why use an Agent? (vs. Snyk's Native Auto-PRs) + +Snyk has an excellent "Automatic Fix" feature that opens PRs to upgrade vulnerable dependencies. However, because Snyk cannot run your application's build or test suite, these PRs often break the build and require human cleanup. + +Continue's Cloud Agent sits *on top* of Snyk to complete the engineering work: + +| Feature | Snyk Native Auto-PR | Continue Cloud Agent | +| :--- | :--- | :--- | +| **The Fix** | "Bump `lodash` to v4.17.21" | "Analyze security issue and create PR with fix" | +| **Context** | Vulnerability Database | Vuln DB + Security Impact Analysis | +| **Intelligence** |Deterministic (Always bumps version) | Reasoning: "Analyzes dependency risks" and suggests updates | +| **Result** | A PR that might break the build | A PR that is green and ready to merge | + + +Snyk tells you *what* to upgrade. The Cloud Agent does the *engineering work* to make that upgrade safe. + + +## What Does the Cloud Agent Do? + +A [Snyk remediation cloud agent](https://hub.continue.dev/integrations/snyk) owns the *handling* of security issues, but not the final decision. + + + + - High & critical Snyk vulnerability events + - Repository context + - Dependency graph and version constraints + + + + - Draft or ready PR with remediation + - Clear summary of risk and fix + + + + +The agent doesn’t silently change production code. It produces **reviewable security PRs**. + + +## How the Workflow Runs + + + + A new **high or critical** vulnerability is detected by Snyk + (event-driven) or during a scheduled scan. + + + + The agent investigates: + - the vulnerable dependency + - available remediation paths + - breaking-change risk + + + + The agent: + - applies the minimal safe update + - avoids unnecessary refactors + - preserves existing behavior + + + + A PR is created with: + - a clear title + - summary of the vulnerability + - explanation of the fix + + + + A developer reviews and merges (or adjusts) the fix. + + + +## The Agent Configuration + +Continue's Snyk Cloud Agent is built from these core components: + + + + **Webhook:** Snyk new vulnerability event + + + **Snyk MCP:** Fetch vulnerability details + + + **GitHub CLI:** Tells the agent how to create PRs + + + + +```markdown Remediation Prompt expandable +A new Snyk vulnerability has been detected. Please investigate and resolve the issue. This should include the following steps: + +**Step 1: Investigate the Issue** +Make sure you understand the vulnerability, the options for resolution, and what their consequences are. + +**Step 2: Implement Fix** +- Focus on fixing the immediate issue identified +- Avoid overdoing it with error handling, cleaning up other problems, etc. +- Avoid making breaking changes +- Ensure the solution is robust and follows best practices. + +**Step 3: Create Draft Pull Request** +Create a draft pull request with the following structure: + +-- +**PR Title:** [Snyk] + +## Issue + +**Snyk Link:** []() +**Issue Type:** `` +**Priority:** +**Summary:** + +``` + +## Governance: How This Stays Safe + + + + **Assisted automation** + + - Agent runs automatically + - PRs require human approval + - CI must pass before merge + + *This is where most teams should live.* + + + + **Manual / On-Demand** + + - Agent is triggered manually + - Used to validate behavior and build trust + + + + **Selective Automation** + + - Narrow classes of fixes only + - Patch-level updates + - Strict constraints and rollback paths + + + +## What This Replaces (and What It Doesn’t) + + + + - manual dependency bump PRs + - repetitive vulnerability triage + - security work that constantly interrupts feature delivery + + + + - security design reviews + - architectural threat modeling + - decisions about major upgrades or breaking changes + + + + +## Why Cloud Agents (Not Just CI or Scripts) for Automatic Security Remediation + + + + CI can *detect* vulnerabilities, + but it can’t reason about fixes or propose patches. + + + + Cloud agents: + - interpret Snyk findings + - choose appropriate fixes + - produce PRs developers can review + + + + +CI enforces. Cloud agents **respond**. + + +## Security Benefits Teams See + + + + High-severity issues are fixed days or weeks sooner. + + + Developers review PRs instead of context-switching to triage. + + + Vulnerabilities stop piling up and become routine maintenance. + + + + +## A Good First Setup + + +- Only **high & critical** vulnerabilities +- One repo or service +- PRs only (no direct merges) +- CI required before merge +- Named owner for review + + +## Where This Fits in the Bigger Picture + +This workflow is often a team’s **first successful cloud agent** because: + +- the ROI is immediate +- the risk is bounded +- the output is reviewable +- leadership already cares about the problem + +Once this is working, teams often expand into: +- error remediation +- dependency hygiene +- operational cleanup + +## Where to Go Next + + + + More information on the Continue Snyk Integration and how you can get started today. + + + + Get started by adding the Snyk integration to your projects + + + + +## One Sentence to Remember + + +Cloud agents turn security remediation from an interruption into routine maintenance. + \ No newline at end of file diff --git a/docs/guides/cloud-agents/cloud-agents-taxonomy.mdx b/docs/guides/cloud-agents/cloud-agents-taxonomy.mdx new file mode 100644 index 000000000..4b2b16e5b --- /dev/null +++ b/docs/guides/cloud-agents/cloud-agents-taxonomy.mdx @@ -0,0 +1,238 @@ +--- +title: "The Cloud Agents Taxonomy" +description: "A practical taxonomy of cloud agents for software teams, including definitions, categories, triggers, and when to use them safely in production." +sidebarTitle: "Cloud Agents Taxonomy" +--- + +## Why This Taxonomy Exists + +“Cloud agents” is a term that gets used to describe everything from cron jobs to IDE copilots. + +That ambiguity causes teams to: +- choose the wrong abstraction +- automate too early +- or avoid cloud agents entirely because they feel risky + +This guide exists to: + +> **Define what cloud agents actually are, how they differ from other agents, and when they make sense for software teams.** + +## A Clear Definition of Cloud Agents + + +A **cloud agent** is an AI-driven process that runs on remote infrastructure, is triggered by tasks, schedules, or external events, and uses reasoning over changing inputs to produce reviewable outcomes across shared engineering systems. + + +Key characteristics: +- runs outside a developer’s local environment +- operates on shared team context (repos, alerts, analytics, infra) +- produces reviewable outcomes (PRs, reports, actions) +- can run asynchronously and repeatedly + +Cloud agents exist to **handle work that benefits from reasoning, shared context, and reviewability.** + +## What Cloud Agents Are Often Confused With + +Cloud agents are often confused with other tools. + + + + IDE agents focus on individual productivity and local context. Cloud agents operate on shared systems and team-owned work. + + + + Cron is a trigger. Cloud agents reason over changing inputs and produce reviewable outcomes. + + + + Scripts execute fixed logic. Cloud agents apply reasoning and shared context even for a single run. + + + + Cloud agents still require review, ownership, and guardrails. + + + +## The Two Axes That Matter + +Cloud agents are best understood along **two dimensions**: +1. **What triggers them** +2. **How they’re governed** + +Everything else is implementation detail. + +```mermaid +quadrantChart + title Cloud Agents Taxonomy + x-axis One-Off --> Event-Driven + y-axis Manual --> Automated + + quadrant-1 Automated & Event-Driven + quadrant-2 Manual & Event-Driven + quadrant-3 Manual & One-Off + quadrant-4 Automated & Scheduled + + "Weekly dependency updates" : [0.65, 0.85] + "Security scan with PR review" : [0.75, 0.60] + "One-off repo audit" : [0.25, 0.25] + "Nightly analytics summary" : [0.45, 0.75] + "Incident response triage" : [0.85, 0.40] +``` + +*Most teams start bottom-left and move diagonally as trust increases to create their [Continuous AI Workflow](../continuous-ai).* + +## Axis 1: Cloud Agent Trigger Type + +### 1. One-Off Cloud Agents +*Manually triggered when a human explicitly dispatches work to an agent. One-off cloud agents are first-class agents that differ by trigger, not by capability.* + + + + - Analyze the top recurring Sentry errors + - Audit a repo for security issues + - Summarize system behavior + + + - Unknown scope + - Exploratory work + - Building confidence before automation + + + +### 2. Scheduled Cloud Agents +*Time-based triggers that run on a fixed cadence (daily, weekly, hourly).* + + + + - Weekly vulnerability scans + - Nightly analytics summaries + - Regular dependency updates + + + - Predictable recurring work + - Backlog prevention + - Drift detection + + + +### 3. Event-Driven Cloud Agents +*Signal-based triggers that react to real-time events from external systems.* + + + + - New high-severity alert + - Failed deployment + - Critical security finding + + + - Operational workflows + - Incident response + - Time-sensitive fixes + + + +## Axis 2: Cloud Agent Governance Level + +This is where most teams get into trouble. + + + + - Human decides when the agent runs + - Human reviews everything + + *Safest starting point.* + + + + - Agent runs automatically + - Human approves outcomes + + *Where most teams should live first.* + + + + - Agent runs unattended + - Outcomes merge or act directly + + *Earned over time — not assumed.* + + + + +Cloud agents don’t fail because they’re autonomous. They fail because teams skip the control phase. + + +## Cloud Agents vs Local / IDE Agents + +| Local / IDE Agents | Cloud Agents | +|------------------|-------------| +| Individual context | Team context | +| Short-lived | Long-running | +| Developer-initiated | System-initiated | +| Productivity focus | Reliability & ownership focus | + +Both are useful. They solve different problems. + +## Why Cloud Agents Exist at All + +Most engineering pain is recurrence. + +- alerts repeat +- security issues resurface +- operational work interrupts feature work + +Cloud agent workflows exist to: +- notice repetition +- respond consistently +- reduce future interruptions + +The goal is not more automation. The goal is less work over time. + +## When Cloud Agents Make Sense + +Use cloud agents when: +- the same class of issue keeps returning +- the cost is in handling, not solving +- work spans multiple systems +- review and traceability matter + +Avoid them when: +- the problem is novel +- ownership is unclear +- blast radius isn’t understood yet + +## The Architectural Reality + +As teams adopt cloud agents, they discover: + +> **Agents alone don’t scale without control and visibility.** + +Production cloud agents eventually require: +- a shared place to review runs +- a record of decisions +- adjustable prompts and rules +- gradual automation + +Without this, cloud agents become brittle fast. + +--- + +## Where to Go Next + + + + Learn how cloud agents are implemented and used in practice. + + + + Explore how teams manage cloud agents safely at scale. + + + +--- + +## One Sentence to Remember + + +Cloud agents are how teams take ownership of work that happens after code ships. + diff --git a/docs/guides/cloud-agents/cloud-agents-vs-ci.mdx b/docs/guides/cloud-agents/cloud-agents-vs-ci.mdx new file mode 100644 index 000000000..88b540e5a --- /dev/null +++ b/docs/guides/cloud-agents/cloud-agents-vs-ci.mdx @@ -0,0 +1,127 @@ +--- +title: "Cloud Agents vs CI/CD" +description: "Understand when cloud agents complement CI/CD jobs and when CI is the better tool." +sidebarTitle: "Vs CI/CD" +--- + + +Many teams see cloud agents and think: “Isn’t this just CI?” Sometimes the answer is yes and that’s good. CI is excellent. This guide explains the boundary so you choose the right tool. + + + +## What CI/CD Is Great At + + + + - **Deterministic** — the same inputs produce the same results + - **Repeatable** — runs consistently on every commit + - **Policy-enforced** — clear pass/fail rules + - **Strongly testable** — success can be verified automatically + + + + - Run tests + - Build artifacts + - Enforce lint rules + - Run static analysis + - Execute fixed scripts + + + +## Where CI/CD Breaks Down + +CI/CD is weaker when the work requires: +- interpretation of changing signals +- multi-system context (errors + analytics + issues) +- generating patches with reasoning +- summarizing incidents across tools +- deciding next steps based on incomplete information + + +## What Cloud Agents Add + +Cloud agents are useful when the job is: +- triage + propose +- interpret + summarize +- patch + open a PR +- coordinate across systems + + +CI is the best executor of deterministic checks. Cloud agents are best at interpreting signals and producing reviewable outcomes. + + + +## Practical Pairings for CI + Cloud Agents + +```mermaid +sequenceDiagram + participant Dev as Developer + participant Repo as Code Repository + participant CI as CI Pipeline (GitHub Actions) + participant MC as Mission Control + participant Agent as Cloud Agent (Continue) + + Dev->>Repo: git push (feature-branch) + Repo->>CI: Trigger Build & Test + + rect rgb(255, 240, 240) + Note over CI: ❌ Build Fails (Lint/Test Error) + CI->>MC: Emit failure + logs + MC->>Agent: Dispatch "Fix Build" task (attach logs + repo context) + end + + Note over Agent: 1. Analyzes error logs
2. Proposes minimal fix + Agent->>Repo: Push fix to agent branch + Agent->>Repo: Open **draft PR** ("[Fix Build] ") + + Repo->>CI: Trigger Build & Test (PR checks) + + rect rgb(240, 255, 240) + Note over CI: ✅ Build Passes (PR checks) + end + + CI->>MC: Report status on PR + MC->>Dev: Notify "Draft PR ready for review" + ``` +### Pattern 1: CI detects, Agent responds + +- CI detects failure or policy issue +- Cloud agent proposes fix and opens PR +- Human reviews + +### Pattern 2: Agent prepares, CI verifies +- Cloud agent proposes changes +- CI runs tests and checks +- PR is only mergeable if CI passes + +### Pattern 3: Agent maintains, CI enforces +- Agent keeps dependencies tidy weekly +- CI ensures nothing breaks on merge + + +## A Simple Decision Table + +| If your work is... | Prefer... | +|---|---| +| deterministic & testable | CI/CD | +| interpretive & contextual | Cloud agent | +| needs a patch proposal | Cloud agent + CI validation | +| needs strict policy enforcement | CI/CD | + +--- + +## Where to Go Next + + + + + Browse ready-to-use AI agents in Continue Mission Control. + + + + + + Get started with Continue Mission Control. + + + diff --git a/docs/guides/cloud-agents/from-task-to-automation.mdx b/docs/guides/cloud-agents/from-task-to-automation.mdx new file mode 100644 index 000000000..f9f633c50 --- /dev/null +++ b/docs/guides/cloud-agents/from-task-to-automation.mdx @@ -0,0 +1,118 @@ +--- +title: "From Task to Automation: How Cloud Agents Earn Trust" +description: "A practical path from one-off tasks to safe automation, including governance levels, review, and failure modes." +sidebarTitle: "Task → Automation" +--- + +## The Core Idea + +Cloud agents are powerful, but the real skill is **governance**: knowing what should be manual, assisted, or automated. + + + If you want the taxonomy first, including more information on trigger types + governance levels, check out the [Cloud Agents Taxonomy guide](/guides/cloud-agents/cloud-agents-taxonomy). + + +## The Cloud Agent Trust Ladder + +```mermaid +flowchart TD + A[Manual / One-Off Task] --> B[Assisted Runs] + B --> C[Scheduled Automation] + C --> D[Event-Driven Automation] + B --> E[Stop / Re-scope] + C --> E + D --> E + %% Styling + classDef stage fill:#F4F1FF,stroke:#7B61FF,stroke-width:2px,rx:12,ry:12,color:#1F2937; + classDef exit fill:#FFFFFF,stroke:#7B61FF,stroke-width:2px,rx:12,ry:12,color:#1F2937; + + class A,B,C,D stage + class E exit + + %% Layout hints + linkStyle 0,1,2 stroke:#7B61FF,stroke-width:2px; + linkStyle 3,4,5 stroke:#9CA3AF,stroke-width:2px,stroke-dasharray:4 4; +``` + + + + Most teams should spend the most time in **Assisted** mode. That’s where trust compounds. + + +## Stage 1: Manual Tasks (Human-Triggered) + + *Goal: Learn the pattern and define review criteria.* + + What you do + - Dispatch a task + - Review the output carefully + - Capture what “good” looks like + + Exit criteria + - You can describe expected output in plain language + - Failures are understandable (not mysterious) + - The work is clearly recurring + +⸻ + +## Stage 2: Assisted Runs (Auto-run, Human Approval) +*Goal: Reduce handling cost without increasing risk.* + +What changes +- The agent runs based on a trigger (schedule/event) +- A human reviews outcomes before merge/action + +Best practices + - Require PRs/diffs as outputs + - Use checklists for review + - Keep blast radius small (one repo, one class of issues) + +⸻ + +## Stage 3: Scheduled Automation + +*Goal: Prevent backlog by handling predictable work on a cadence.* + +Best fits + - dependency hygiene + - weekly security remediation + - routine cleanup + +Guardrails + - bounded scope + - predictable triggers + - clear rollback path + +⸻ + +## Stage 4: Event-Driven Automation +*Goal: Respond quickly to high-signal events.* + +Best fits + - high-severity security findings + - production regressions with clear patterns + - incident triage summaries + +Guardrails + - tight scope + - rapid feedback loops + - human review of outcomes + +## Common Cloud Agent Failure Modes (and Fixes) + + + **Fix:** Start manual. Write explicit acceptance criteria. Move to assisted only after you can review quickly. + + + **Fix:** Restrict to one repo, one class of issues, one trigger. + + + **Fix:** Assign ownership before automation. Automation without ownership creates invisible work. + + + **Fix:** Prefer PRs, diffs, and reports over “actions taken silently.” + + + + + diff --git a/docs/guides/cloud-agents/guide-to-cloud-agents.mdx b/docs/guides/cloud-agents/guide-to-cloud-agents.mdx new file mode 100644 index 000000000..e1f530205 --- /dev/null +++ b/docs/guides/cloud-agents/guide-to-cloud-agents.mdx @@ -0,0 +1,188 @@ +--- +title: "The Developer’s Guide to Cloud Agents" +description: "Learn how Cloud Agents are implemented and used in practice, from on-demand tasks to automated workflows in Mission Control." +--- + + +This guide assumes you already understand what Cloud Agents are and when to use them. If you’re looking for a clear definition, categories, and mental models, start with the **[Cloud Agents Taxonomy](../cloud-agents/cloud-agents-taxonomy)**. + + +## Introduction: Moving Beyond "Chat" + +For the last few years, AI coding has been defined by the Local Copilot: a chat window in your IDE that helps you write a function or explain a snippet. It is a powerful tool, but it has a hard limit because it requires *you* to be the driver. If you close your laptop, it stops working. If you switch contexts, it loses focus. + + + + Cloud Agents move AI execution from your local machine to remote infrastructure. Instead of just "chatting" with a model, you **dispatch work** to it. Whether you trigger it manually from a task list or set it to run automatically on a schedule, the heavy lifting happens in the cloud, unblocking your local environment and enabling true automation. + + + +## How Cloud Agents Are Implemented in Practice + +Cloud Agents are AI-driven processes that run on remote infrastructure and are triggered by tasks, schedules, or events across a team’s engineering systems. + +With Continue, Cloud Agents run in [Mission Control](../../mission-control), where teams configure execution, connect tools, review outcomes, and decide which workflows become automated over time. + + + + Because they run on persistent cloud infrastructure, these agents are not limited to the files currently open in your text editor. They maintain secure connections to your broader engineering ecosystem—GitHub, Linear, Sentry, Snyk, and more—allowing them to read code, open Pull Requests, and triage alerts without human supervision. + + + +### Common Components in a Production Cloud Agent + +Most production Cloud Agents share a common structure that balances reasoning, action, and guardrails. + + + + + The core instruction defining the task. + + + + + + The LLM powering the reasoning. + + + + + + The capabilities to fetch data or take action. + + + + + + The guardrails ensuring the output matches your team's coding standards. + + + + +## The Two Modes: Interactive vs. Automated + +This section focuses on *how* Cloud Agents are executed day to day, not *whether* they should be used. + +The defining feature of a Cloud Agent isn't just *automation*; it is **availability**. Because the compute is remote, you can interact with Cloud Agents in two distinct ways depending on the complexity of the task: + + + + + ### Human-in-the-Loop Approach + + You can trigger agents manually (with Continue, use the [Continue CLI](../../cli/overview) or [Mission Control](../../mission-control)) when you need a one-off task that you want to review. + + + + You send a "Refactor" task to a Cloud Agent. It clones the repo, runs the refactor in the cloud, and creates a PR for you to approve. **You can close your laptop while it works.** + + + + **Best for:** + - Exploring agent capabilities + - Fixes you don't want to break your focus for + - Tasks requiring human review before deployment + + + + + + ### Headless Approach + + You configure these agents to run in the background based on triggers, with no human intervention required until the final PR review. + + + + A "[Security Agent](https://hub.continue.dev/integrations/snyk)" automatically opens PRs for Snyk issues with high and critical security vulnerabilities and implements the fixes. + + + + **Best for:** + - Continuous security monitoring + - Automated dependency updates without breaking things + - Event-driven workflows + + + + + +## Why "Cloud" Matters + +The distinction between running an agent locally (TUI/IDE) and in the cloud (Mission Control) comes down to **scope** and **reliability**. + + + + + - **Local Agents:** Run on your local machine + - **Cloud Agents:** Run on remote cloud infrastructure + + Cloud Agents free up your local resources for development work while heavy AI tasks run in the background. + + + + + + - **Local Agents:** Fast, private iteration and "single-player" coding + - **Cloud Agents:** Collaborative tasks, heavy processing, and reliable automation + + Choose local for quick iterations, cloud for team-wide workflows. + + + + + + - **Local Agents:** Limited to open files and local git state + - **Cloud Agents:** Full repository access + [integrated tools](https://hub.continue.dev/integrations) (Sentry, Snyk, Linear, etc.) + + Cloud Agents can access your entire engineering ecosystem, not just what's visible in your IDE. + + + + + + - **Local Agents:** Manual Chat / CLI + - **Cloud Agents:** Hybrid approach—Manual Chat, Cron Schedules, or Event Webhooks + + Cloud Agents support both manual execution and automated scheduling. + + + + + + - **Local Agents:** Stop when you close your laptop + - **Cloud Agents:** **Always On**—Runs asynchronously in the background + + This is the key differentiator: Cloud Agents work 24/7, even when you're offline. + + + + +## Getting Started + +Ready to build your first Cloud Agent? Check out these resources: + + + + + Browse ready-to-use AI agents in Continue Mission Control. + + + + + + Learn how to build custom Cloud Agents. + + + + + + Connect your agents to external services. + + + + + + Get started with Continue Mission Control. + + + diff --git a/docs/guides/cloud-agents/operating-cloud-agents-safely.mdx b/docs/guides/cloud-agents/operating-cloud-agents-safely.mdx new file mode 100644 index 000000000..a6c427e4a --- /dev/null +++ b/docs/guides/cloud-agents/operating-cloud-agents-safely.mdx @@ -0,0 +1,233 @@ +--- +title: "Operating Cloud Agents Safely" +description: "Guardrails for running cloud agents in production: ownership, permissions, review, auditability, and blast radius." +sidebarTitle: "Operate Safely" +--- + + + +Cloud agents should reduce risk and interruptions not introduce new ones. This guide covers practical guardrails that make cloud agents safe for real teams. + + +## The Safety Baseline for Cloud Agents + + + + Every workflow has a named owner and an escalation path. + + + Outputs are diffable, explainable, and revertible. + + + One repo → + one workflow → + one trigger. + *Expand only after success.* + + + + +## A Safe Adoption Path + + + + Run as a one-off task. Validate cloud agent outputs and define acceptance criteria. + + + + Allow automated triggering, but keep human approval before merge/action. + + + + Only automate workflows with predictable blast radius, clear rollback, and stable output quality. + + + + +Cloud agents don’t fail because they’re autonomous. +They fail because teams automate before they’ve defined review criteria and ownership. + + +## 1) Ownership Comes First + +Before you automate anything, make these true: + + + + One person is responsible for: + - reviewing outcomes + - tuning prompts/rules + - responding to failures + + + + Decide what happens when: + - the cloud agent can’t complete work + - output confidence is low + - a run fails repeatedly + + + + + + - The workflow has a dedicated Slack channel or notification route + - There is a “stop the line” decision owner + - Ownership does not rotate implicitly (it’s explicit) + + + + - “Whoever sees it first” is the owner + - Alerts route to a general channel with no responder + - No one feels safe turning it off + + + +## 2) Constrain Blast Radius + +The fastest path to trust is a smaller blast radius. + + + + Pick a low-risk repo or a single service to prove value. + + + + Narrow the scope: one recurring error type, one vuln class, one cleanup task. + + + + Set expectations like “no more than N files” or “single dependency PRs.” + + + + +Prefer PRs and reports over direct writes or production actions. + + +## 3) Review Is the Safety Rail + +Treat every cloud agent run like you’d treat a teammate’s PR. + + + + Use a lightweight checklist: + + - [ ] Does the change match the prompt intent? + - [ ] Is the blast radius clear? + - [ ] Are tests updated or unaffected? + - [ ] Are failure cases acceptable? + - [ ] Is rollback straightforward? + + + + Reviewable outputs are: + + - **Diffable** (PRs, patches, file changes) + - **Explainable** (short rationale, linked inputs) + - **Revertible** (easy rollback path) + + + + Block merge when: + + - scope is unexpectedly broad + - behavior changes are unclear + - it introduces new dependencies without justification + - it “fixes” by deleting or disabling core functionality + + + +## 4) Permissions: Least Privilege by Default + +Give agents the smallest set of permissions required for the job. + + + + - Prefer **read-only** until the workflow proves reliable + - Prefer **PR creation** over direct push + - Scope external tools (Sentry/Snyk/etc.) to the minimum endpoints + + + + - Level 1: Read repo + create report + - Level 2: Create PRs (drafts first) + - Level 3: Update PRs based on review comments + - Level 4: Automate merges only for narrow, proven workflows + + + + +Do not start with permissions that allow silent writes to main or production mutations. + + +## 5) Observability & Auditability + +If you can’t answer these questions, you don’t have a safe system yet: + + + + - What ran? + - Why did it run? + - What inputs did it use? + + + + - What did it change? + - Who reviewed/approved it? + - Did it succeed or require intervention? + + + + +Auditability turns “AI did something” into “we can explain what happened.” +That’s the difference between experimentation and production. + + +## 6) Failure Handling & Safe Defaults + +Set defaults that fail safely. + + + + - **Fail closed** (no silent actions) + - If uncertain, produce a **report** instead of a change + + + + - External tool API is unavailable + - Repo state changed mid-run + - Cloud agent proposes a fix that doesn’t pass CI + - Output becomes noisy (too many PRs/reports) + + + + - Pause the workflow + - Reduce scope / increase constraints + - Move back a governance level (Automated → Assisted → Manual) + - Update acceptance criteria and rerun + + + +## Pre-Flight Checklist + + +- [ ] Workflow owner is named +- [ ] Trigger is defined and bounded +- [ ] Outputs are reviewable (PR/report) +- [ ] Permissions follow least-privilege +- [ ] Blast radius is constrained +- [ ] Failure handling is defined +- [ ] There is a way to pause/disable quickly + + +## Where to Go Next + + + + The trust ladder for moving from manual to automated safely. + + + + Proven starter workflow with clear triggers and review points. + + \ No newline at end of file diff --git a/docs/guides/cloud-agents/when-to-use-cloud-agents.mdx b/docs/guides/cloud-agents/when-to-use-cloud-agents.mdx new file mode 100644 index 000000000..28caf7a0a --- /dev/null +++ b/docs/guides/cloud-agents/when-to-use-cloud-agents.mdx @@ -0,0 +1,89 @@ +--- +title: "When to Use Cloud Agents (and When Not To)" +description: "A decision guide for choosing cloud agents vs scripts, CI jobs, or local agents—plus a checklist for safe adoption." +sidebarTitle: "When to Use" +--- + +## When Cloud Agents Make Sense +This guide helps you decide whether **cloud agents** are the right abstraction for your problem. + + +Use cloud agents when the work is **recurring**, spans **multiple systems**, and needs **team-owned outcomes**. If you want the canonical definition and taxonomy first, read: [Cloud Agents Taxonomy](/guides/cloud-agents/cloud-agents-taxonomy). + + +Use cloud agents when: + +- The same class of issue returns weekly (or daily) +- The work is mostly handling (triage, patching, cleanup), not discovery +- Inputs come from tools like GitHub, error monitoring, security scanners, analytics +- You need a reviewable outcome (PR, report, ticket update) +- You want to reduce interruptions, not just respond faster + + + + + - security remediation + - recurring error triage + - dependency hygiene + - analytics-driven fixes + + + + - task dispatch + - schedules + - event webhooks + + + +## When Cloud Agents Are a Bad Idea + +Avoid cloud agents when: + +- The problem is novel and poorly understood +- The blast radius is unclear +- Ownership is ambiguous (“someone should handle this”) +- You can’t define review criteria +- The work is better solved by eliminating the root cause directly + + +Cloud agents amplify whatever system you already have. If ownership is unclear, automation will make it worse. + + + +## Cloud Agents vs Alternatives + +## Comparison Matrix + +| Feature | Scripts / CI Jobs | Local Agents (TUI) | Cloud Agents (Headless) | +| :--- | :--- | :--- | :--- | +| **Logic** | Deterministic (If/Then) | AI / Probabilistic | AI / Probabilistic | +| **Context** | Inputs only | Full Repo + User Chat | Repo + Integrations (Snyk/GitHub/etc.) | +| **Interaction** | None (Logs only) | Interactive (Conversations) | Autonomous (Fire & Forget) | +| **Tool Access** | Unlimited | All (Ask permission supported) | Safe (No "Ask" tools) | +| **Best For** | Testing, Building, Linting | Debugging, Refactoring, Exploration | Triage, Remediation, Reporting | + +## The Decision Checklist + +Use cloud agents if you can say “yes” to most of these: + +- [ ] We’ve seen this problem at least twice +- [ ] Inputs come from shared systems (alerts, issues, analytics) +- [ ] We can define what “good output” looks like +- [ ] A PR/report is an acceptable artifact +- [ ] Someone owns reviewing the result +- [ ] We can start in a manual or assisted mode + + +If you’re unsure, start with a one-off [task](../../mission-control/tasks) and treat it like an experiment. + + +## Where to Go Next + + + + Customize an agent for your team in minutes. + + +Explore pre-built integrations for common tools and workflows. + + \ No newline at end of file diff --git a/docs/guides/dlt-mcp-continue-cookbook.mdx b/docs/guides/dlt-mcp-continue-cookbook.mdx index f25b11bee..b6f6e9d3d 100644 --- a/docs/guides/dlt-mcp-continue-cookbook.mdx +++ b/docs/guides/dlt-mcp-continue-cookbook.mdx @@ -81,7 +81,7 @@ After ensuring you meet the **Prerequisites** above, you have two paths to get s - Go to the [Continue Mission Control](https://hub.continue.dev) and [create a new agent](https://hub.continue.dev/new?type=agent). + Go to the [Continue Mission Control](https://hub.continue.dev) and [create a new agent](https://hub.continue.dev/agents/new). diff --git a/docs/guides/github-mcp-continue-cookbook.mdx b/docs/guides/github-mcp-continue-cookbook.mdx index d60cd4a34..feac2bea1 100644 --- a/docs/guides/github-mcp-continue-cookbook.mdx +++ b/docs/guides/github-mcp-continue-cookbook.mdx @@ -76,7 +76,7 @@ After ensuring you meet the **Prerequisites** above, you have two paths to get s - Go to the [Continue Mission Control](https://hub.continue.dev) and [create a new agent](https://hub.continue.dev/new?type=agent). + Go to the [Continue Mission Control](https://hub.continue.dev) and [create a new agent](https://hub.continue.dev/agents/new). diff --git a/docs/guides/klavis-mcp-continue-cookbook.mdx b/docs/guides/klavis-mcp-continue-cookbook.mdx index 1b4ca3da7..d53d796a0 100644 --- a/docs/guides/klavis-mcp-continue-cookbook.mdx +++ b/docs/guides/klavis-mcp-continue-cookbook.mdx @@ -42,7 +42,7 @@ For all options, first: - Go to the [Continue Hub](https://hub.continue.dev) and [create a new agent](https://hub.continue.dev/new?type=agent). + Go to the [Continue Hub](https://hub.continue.dev) and [create a new agent](https://hub.continue.dev/agents/new). diff --git a/docs/guides/overview.mdx b/docs/guides/overview.mdx index f6eae2c06..fc601ca63 100644 --- a/docs/guides/overview.mdx +++ b/docs/guides/overview.mdx @@ -9,6 +9,17 @@ description: "Comprehensive collection of practical guides for Continue includin - [How to Self-Host a Model](/guides/how-to-self-host-a-model) - Self-hosting AI models - [Running Continue Without Internet](/guides/running-continue-without-internet) - Offline development setup +## Cloud Agents + +- [Cloud Agents Taxonomy](/guides/cloud-agents/cloud-agents-taxonomy) - Different types of cloud agents and their use cases +- [Developers Guide to Cloud Agents](/guides/cloud-agents/guide-to-cloud-agents) - Overview of cloud agents and their benefits +- [When to Use Cloud Agents](/guides/cloud-agents/when-to-use-cloud-agents) - Deciding when cloud agents are the right tool +- [From Manual to Automated Cloud Agents](/guides/cloud-agents/from-task-to-automation) - Transitioning from manual to automated workflows +- [Cloud Agents vs CI/CD](/guides/cloud-agents/cloud-agents-vs-ci) - When to use cloud agents vs CI/CD pipelines +- [Operating Cloud Agents Safely](/guides/cloud-agents/operating-cloud-agents-safely) - Best practices for secure cloud agent operation +- [Automated Security Remediation with Snyk](/guides/cloud-agents/automated-security-remediation-with-snyk) - Using cloud agents for security fixes + + ## Continuous AI - [Continuous AI: A Developer's Guide](/guides/continuous-ai) - Integrating AI into development workflows diff --git a/docs/guides/posthog-github-continuous-ai.mdx b/docs/guides/posthog-github-continuous-ai.mdx index d5201f3b0..e36e1c85f 100644 --- a/docs/guides/posthog-github-continuous-ai.mdx +++ b/docs/guides/posthog-github-continuous-ai.mdx @@ -101,7 +101,7 @@ First, you'll need to gather your PostHog and GitHub API credentials and add the -See https://docs.continue.dev/hub/secrets/secret-types#secret-types for adding secrets +See the [secret types documentation](/mission-control/secrets/secret-types) for adding secrets You only need to configure the PostHog MCP credential - it automatically handles project selection. To add environment variables to your Continue Mission Control account: diff --git a/docs/guides/sanity-mcp-continue-cookbook.mdx b/docs/guides/sanity-mcp-continue-cookbook.mdx index 70e32f32e..864c00d1d 100644 --- a/docs/guides/sanity-mcp-continue-cookbook.mdx +++ b/docs/guides/sanity-mcp-continue-cookbook.mdx @@ -14,7 +14,7 @@ sidebarTitle: "Sanity CMS with Continue" Before starting, ensure you have: - Continue account with **Hub access** - - Read: [Understanding Configs — How to get started with Hub configs](/hub/configs/intro) + - Read: [Understanding Configs — How to get started with Hub configs](/mission-control/configs/intro) - Node.js 20+ installed locally - A [Sanity account](https://www.sanity.io/) and project (free tier works) - Basic understanding of content management systems @@ -111,7 +111,7 @@ After ensuring you meet the **Prerequisites** above, you have two paths to get s - Go to the [Continue Mission Control](https://hub.continue.dev) and [create a new agent](https://hub.continue.dev/new?type=agent). + Go to the [Continue Mission Control](https://hub.continue.dev) and [create a new agent](https://hub.continue.dev/agents/new). diff --git a/docs/guides/snyk-mcp-continue-cookbook.mdx b/docs/guides/snyk-mcp-continue-cookbook.mdx index 90463f74f..284a9eb12 100644 --- a/docs/guides/snyk-mcp-continue-cookbook.mdx +++ b/docs/guides/snyk-mcp-continue-cookbook.mdx @@ -123,7 +123,7 @@ After ensuring you meet the **Prerequisites** above, you have two paths to get s - Go to the [Continue Mission Control](https://hub.continue.dev) and [create a new agent](https://hub.continue.dev/new?type=agent). + Go to the [Continue Mission Control](https://hub.continue.dev) and [create a new agent](https://hub.continue.dev/agents/new). diff --git a/docs/guides/understanding-configs.mdx b/docs/guides/understanding-configs.mdx index 6d4c451d7..c4133227d 100644 --- a/docs/guides/understanding-configs.mdx +++ b/docs/guides/understanding-configs.mdx @@ -61,7 +61,7 @@ Pro tip: Hub configurations are perfect for teams. Create a custom config with y ### How to Manage Hub Configs -All Hub config management happens through [Mission Control](https://hub.continue.dev). For detailed customization, see our guide on [Editing a Config](/hub/configs/edit-a-config). +All Hub config management happens through [Mission Control](https://hub.continue.dev). For detailed customization, see our guide on [Editing a Config](/mission-control/configs/edit-a-config). ## What Are Local Configs: The Power User's Choice @@ -203,7 +203,7 @@ You can switch between them seamlessly using the configs selector in your IDE. Now that you understand both configuration approaches, you're ready to dive deeper: - - **For Hub Users**: [Create A Config](/hub/configs/create-a-config) + - **For Hub Users**: [Create A Config](/mission-control/configs/create-a-config) - **For Local Users**: [Explore the Config Reference](/reference) - **For Everyone**: [Discover Available Models](/customize/model-providers/overview) diff --git a/docs/ide-extensions/autocomplete/next-edit.mdx b/docs/ide-extensions/autocomplete/next-edit.mdx index 71760f4ba..68e98707e 100644 --- a/docs/ide-extensions/autocomplete/next-edit.mdx +++ b/docs/ide-extensions/autocomplete/next-edit.mdx @@ -74,7 +74,7 @@ Next Edit requires: - Compatible AI models (Mercury Coder or Instinct) - VS Code (JetBrains support coming soon) -- **API Keys**: Organizations can add API keys to [org secrets](/hub/secrets/secret-types) for team-wide access. Individual users need to provide their own API keys in their [model configuration](/customize/model-providers/overview) +- **API Keys**: Organizations can add API keys to [org secrets](/mission-control/secrets/secret-types) for team-wide access. Individual users need to provide their own API keys in their [model configuration](/customize/model-providers/overview) To use Next Edit, you must have the Instinct or Mercury Coder model configured diff --git a/docs/ide-extensions/quick-start.mdx b/docs/ide-extensions/quick-start.mdx index a339bc76a..aa170bbf1 100644 --- a/docs/ide-extensions/quick-start.mdx +++ b/docs/ide-extensions/quick-start.mdx @@ -313,9 +313,9 @@ Ready to master specific features? Check out these detailed guides: - Explore [Hub configurations](/hub/configs/intro), [organization - management](/hub/governance/creating-an-org), and [sharing - configurations](/hub/sharing). + Explore [Hub configurations](/mission-control/configs/intro), [organization + management](/mission-control/governance/creating-an-org), and [sharing + configurations](/mission-control/sharing). diff --git a/docs/index.mdx b/docs/index.mdx index 2132a76dd..12f6e22d7 100644 --- a/docs/index.mdx +++ b/docs/index.mdx @@ -37,7 +37,7 @@ description: "Create, run, and automate AI agents across Mission Control, termin Enable repository access for Agents to read and create PRs. - + Mention @Continue in Slack to trigger Agents and receive updates. diff --git a/docs/mission-control/configs/edit-a-config.mdx b/docs/mission-control/configs/edit-a-config.mdx index 7542a34d1..ac7b4f6c7 100644 --- a/docs/mission-control/configs/edit-a-config.mdx +++ b/docs/mission-control/configs/edit-a-config.mdx @@ -12,7 +12,7 @@ For tools or models that require secret values like API keys, you will see a sma To delete part of your config, you can remove it from the yaml. -If a rule, prompt, or tool you want to use does not exist yet, you can [create it](/hub/introduction#creating-components). +If a rule, prompt, or tool you want to use does not exist yet, you can create it in Mission Control. When you are done editing, click "Publish" to publish a new version of the config. diff --git a/docs/mission-control/governance/org-permissions.mdx b/docs/mission-control/governance/org-permissions.mdx index da0cd601b..06ae2b713 100644 --- a/docs/mission-control/governance/org-permissions.mdx +++ b/docs/mission-control/governance/org-permissions.mdx @@ -8,6 +8,6 @@ description: "Users can have the following roles within an organization:" **User permissions for each role depend on the pricing plan:** -- [Solo](/hub/governance/pricing#solo) -- [Teams](/hub/governance/pricing#teams) -- [Enterprise](/hub/governance/pricing#enterprise) +- [Solo](/mission-control/governance/pricing#solo) +- [Teams](/mission-control/governance/pricing#teams) +- [Enterprise](/mission-control/governance/pricing#enterprise) diff --git a/docs/mission-control/index.mdx b/docs/mission-control/index.mdx index 54e011a9f..46948a1b9 100644 --- a/docs/mission-control/index.mdx +++ b/docs/mission-control/index.mdx @@ -1,32 +1,29 @@ --- title: "Continue Mission Control" -description: "Your command center for Continue. Create Tasks, set up Workflows, manage Agents, connect Integrations, and share with your team—all in one place." +description: "Continue Mission Control is the control plane for cloud agents where teams create, monitor, and automate AI-powered workflows across their toolchain. Create Tasks, manage Agents, connect Integrations, and share with your team all in one place." sidebarTitle: "Overview" --- ## What You Can Do in Mission Control -Mission Control is where developers and teams use Continue to power everyday coding workflows. From quick one-off Tasks to fully automated pipelines, everything starts here. +Mission Control is where developers and teams use Continue to power everyday coding workflows. From quick one-off Tasks to fully automated pipelines, everything starts here with Cloud Agents (AI-powered). - + Trigger your AI Agents and review or approve the results. - - Create, configure, and monitor your custom Agents across repositories. - - - Schedule recurring Tasks, connect webhooks to trigger Agents automatically, or add + + Configure, run, and monitor your custom Cloud Agents across repositories. - Link GitHub, Slack, and Sentry to power your Tasks and Workflows. + Link GitHub, Slack, Sentry, and more to power your Cloud Agents. ## Inbox: One Place to Triage, Assign, and Take Action -The Inbox is your team's central queue for all AI-powered Tasks, agent activity, and first-class integrations like Sentry and Snyk. It gives developers a shared place to review work, delegate responsibility, and launch follow-up Tasks—all without leaving Mission Control. +The Inbox is your team's central queue for all Cloud Agent powered Tasks, activity, and first-class integrations like Sentry and Snyk. It gives developers a shared place to review work, delegate responsibility, and launch follow-up Tasks—all without leaving Mission Control. @@ -64,31 +61,30 @@ Some signals deserve their own dedicated view. When you connect integrations: ## Monitoring & Insights -Track performance, share configurations across your organization, and monitor agent activity in real time. +Track performance, share configurations across your organization, and monitor Cloud Agent activity in real time. - Measure success rates, PR activity, and intervention trends across Agents. + Measure success rates, PR activity, and intervention trends across Cloud Agents. - Share Agents and Workflows with teammates using built-in access controls. + Share Cloud Agents with teammates using built-in access controls. - - View active runs, logs, and outcomes for every Agent session. + + View active runs, logs, and outcomes for every Cloud Agent session. --- -## Components Behind Mission Control +## Components Behind Mission Control's Cloud Agents -Mission Control uses your configured components to power Agents, Tasks, and Workflows: -Agents are built from reusable components that you can create, share, and customize: +Cloud Agents are built from reusable components that you can create, share, and customize: @@ -98,7 +94,7 @@ Agents are built from reusable components that you can create, share, and custom - + Model Context Protocol servers that provide tools and capabilities like database access, web search, or custom functions @@ -106,7 +102,7 @@ Agents are built from reusable components that you can create, share, and custom - Guidelines that shape AI behavior - coding standards, constraints, or specific instructions for your domain + Guidelines that shape AI Agent behavior - coding standards, constraints, or specific instructions for your domain @@ -120,7 +116,7 @@ Agents are built from reusable components that you can create, share, and custom - When you create a component for your agent in Mission Control, it becomes available according to the permissions you set: Personal, Public, or Organization. + When you create a component for your Cloud Agent in Mission Control, it becomes available according to the permissions you set: Personal, Public, or Organization. @@ -151,12 +147,12 @@ For personal or single-use configurations, you can skip the inputs layer and ref Start with a prompt and run an Agent on demand. - - Automate your Tasks using cron schedules or webhooks. + + Automate work using GitHub triggers, cron schedules, or webhooks. - Connect GitHub, Slack, and Sentry to extend your Agents. + Connect Slack, Sentry, Snyk and more to extend your Agents. diff --git a/docs/mission-control/integrations/atlassian.mdx b/docs/mission-control/integrations/atlassian.mdx index 41b1b6e23..cb7ac51f4 100644 --- a/docs/mission-control/integrations/atlassian.mdx +++ b/docs/mission-control/integrations/atlassian.mdx @@ -1,9 +1,9 @@ --- title: "Atlassian Integration" -description: "Connect Jira, Confluence, and Compass to automate project management with Continue Agents" +description: "Connect Jira, Confluence, and Compass to automate project management with Continue Cloud Agents" --- @@ -21,7 +21,7 @@ description: "Connect Jira, Confluence, and Compass to automate project manageme The following **official workflow template** is maintained by the Continue team and is available directly in the Mission Control Hub. This workflow is designed to work out of the box and represents the recommended way to automate Atlassian-based updates. - + Automatically translate merged pull requests into clear, business-friendly Jira updates that explain what changed, why it matters, and who benefits. @@ -31,7 +31,7 @@ Official workflow templates may expand over time as new patterns are validated. -## Advanced Use Cases +## Advanced Use Cases for Atlassian Cloud Agents These examples are not officially maintained by the Continue team, but illustrate what’s possible with custom workflows. @@ -49,7 +49,7 @@ These examples are not officially maintained by the Continue team, but illustrat When connecting Atlassian, you’ll authorize Continue to access Jira, Confluence, and Compass data based on your account permissions. - **Project and space access** - Agents can only access Jira projects and Confluence spaces you are permitted to view or edit. + Cloud Agents can only access Jira projects and Confluence spaces you are permitted to view or edit. - **Permissions** Approved permissions allow Continue to read and update Jira tickets, summarize Confluence pages, and create links back to related pull requests. diff --git a/docs/mission-control/integrations/github.mdx b/docs/mission-control/integrations/github.mdx index feb1d5cb0..0f527e50a 100644 --- a/docs/mission-control/integrations/github.mdx +++ b/docs/mission-control/integrations/github.mdx @@ -1,13 +1,13 @@ --- title: "GitHub Integration" -description: "Connect your GitHub account to Continue Mission Control to enable agents to interact with your repositories. Once connected, agents can read code, create pull requests, manage issues, and automate your development workflow." +description: "Connect your GitHub account to Continue Mission Control to enable Cloud Agents to interact with your repositories. Once connected, Cloud Agents can read code, create pull requests, manage issues, and automate your development workflow." --- - - Automatically create pull requests from agent tasks + - Automatically create pull requests from AI agent tasks - Read and analyze repository code and issues - Manage project workflows and milestones - Automate code reviews and quality checks @@ -16,7 +16,7 @@ description: "Connect your GitHub account to Continue Mission Control to enable -## Official Workflow Templates +## Official Workflow Templates for GitHub Cloud Agents in Continue The following **official workflow templates** are maintained by the Continue team and are available directly in the Mission Control Hub. These workflows are designed to work out of the box and represent the recommended ways to automate GitHub-based tasks. @@ -42,11 +42,29 @@ The following **official workflow templates** are maintained by the Continue tea -Official workflow templates may expand over time as new patterns are validated. You can view, enable, and configure these workflows in **Mission Control → Integrations → GitHub**. +Official workflow templates may expand over time as new patterns are validated. You can view, enable, and configure these workflows in **[Mission Control → Integrations → GitHub](https://hub.continue.dev/integrations/github)**. + +## Workflow: GitHub issue → pull request (Cloud Agent) + +**Problem**: GitHub issues pile up because turning an issue into a tested PR takes time and context switching. + +**Solution**: Continue Mission Control Cloud Agents can watch issues (or be triggered by labels) and automatically open pull requests with code changes, tests, and a clear summary. + +**Outcome**: Faster issue throughput, consistent PR quality, and an auditable trail from issue → commits → PR → CI results. + +1. Trigger: issue opened or labeled (for example, `agent:fix`) +2. Agent gathers context: repo code + issue thread + relevant files +3. Agent implements the fix on a branch +4. Agent runs checks: tests/lint/security (your CI) +5. Agent opens a PR with: + - summary of changes + - test results / CI link + - references the original issue (closes #123) + - or whatever you specify in the agent instructions ## Advanced Use Cases - -You can create custom workflows using Continue agents to automate a variety of GitHub-related tasks. Here are some ideas to get you started: + +You can create custom workflows using Continue Cloud Agents to automate a variety of GitHub-related tasks. Here are some ideas to get you started: - Automatically triage new issues with labels and suggested assignees - Review pull requests for security or performance concerns - Draft documentation updates based on code changes @@ -67,6 +85,19 @@ When connecting GitHub, you’ll be asked to configure repository access and app You can revisit or revoke access at any time from GitHub or the Mission Control Hub. --- +## FAQs +### Can Continue turn GitHub issues into ready-to-merge pull requests automatically? +Yes! You can set up workflows where Cloud Agents monitor issues (or specific labels) and create pull requests with code changes, tests, and summaries. + +### How do I trigger an agent from a GitHub issue label? +You can configure a Cloud Agent that is triggered whenever an issue is labeled with a specific tag (e.g., `agent:fix`). The agent will then gather context and create a pull request based on the issue. + +### Can the agent run tests and include results in the PR? +Continue's Cloud Agents can be configured to run your tests and include the results in the pull request summary. + +### How do I restrict which repos/issues agents can act on? +You can configure repository and issue filters within your workflows to control where agents operate. + ## Support & Resources diff --git a/docs/mission-control/integrations/index.mdx b/docs/mission-control/integrations/index.mdx index b2475f919..4584fc4e7 100644 --- a/docs/mission-control/integrations/index.mdx +++ b/docs/mission-control/integrations/index.mdx @@ -1,14 +1,14 @@ --- title: "Overview" -description: "Connect GitHub, Slack, Sentry, Snyk, PostHog, Atlassian, and Netlify to power richer Agents, Tasks, and Workflows." +description: "Connect GitHub, Slack, Sentry, Snyk, PostHog, Atlassian, and Netlify to power Cloud Agents to automate your development workflows." sidebarTitle: "Overview" --- -Integrations let Continue connect to the tools you already use, so Agents can read code, open pull requests, send messages, react to real-world events, and more. +Integrations let Continue connect to the tools you already use, so Cloud Agents can read code, open pull requests, send messages, react to real-world events, and more. -Mission Control currently supports these first-class integrations: +Mission Control currently supports these first-class Cloud Agent integrations: @@ -16,12 +16,12 @@ Mission Control currently supports these first-class integrations: Required for PR creation, repo access, diffs, and workflow triggers. - + Mention @continue to kick off Agents directly from Slack. - Trigger Agents automatically when new Sentry issues appear. + Trigger Cloud Agents automatically when new Sentry issues appear. diff --git a/docs/mission-control/integrations/netlify.mdx b/docs/mission-control/integrations/netlify.mdx index 4a1c72af9..2d832df17 100644 --- a/docs/mission-control/integrations/netlify.mdx +++ b/docs/mission-control/integrations/netlify.mdx @@ -1,10 +1,10 @@ --- title: "Netlify Integration" -description: "Connect **Netlify** to Mission Control so agents can automatically catch performance regressions by comparing preview and production deploys when code ships." +description: "Connect **Netlify** to Mission Control so Cloud Agents can automatically catch performance regressions by comparing preview and production deploys when code ships." --- @@ -14,7 +14,7 @@ description: "Connect **Netlify** to Mission Control so agents can automatically - Post clear performance summaries directly to pull requests -## Official Workflow Templates +## Official Workflow Templates for Netlify Cloud Agents in Continue The following **official workflow template** is maintained by the Continue team and is available directly in the Mission Control Hub. This workflow is designed to work out of the box and represents the recommended way to automate Netlify performance checks. @@ -108,6 +108,6 @@ You can revoke or rotate the token at any time from your Netlify account setting icon="book-open" href="/guides/netlify-mcp-continuous-deployment" > - Advanced examples for working with Netlify deployments using Continue agents. + Advanced examples for working with Netlify deployments using Continue Cloud Agents. diff --git a/docs/mission-control/integrations/posthog.mdx b/docs/mission-control/integrations/posthog.mdx index 1ff6e9ff2..910c887cf 100644 --- a/docs/mission-control/integrations/posthog.mdx +++ b/docs/mission-control/integrations/posthog.mdx @@ -1,10 +1,10 @@ --- title: "PostHog Integration" -description: "Connect PostHog to Mission Control so agents can keep analytics and tracking in sync with code changes, ensuring dashboards reflect what actually shipped." +description: "Connect PostHog to Mission Control so Cloud Agents can keep analytics and tracking in sync with code changes, ensuring dashboards reflect what actually shipped." --- @@ -52,7 +52,7 @@ When connecting PostHog, you’ll provide an API key that allows Continue to que You’ll need a PostHog API key with permission to read analytics data and modify dashboards. - **Project access** - Agents can only access the PostHog project associated with the API key you provide. + Cloud Agents can only access the PostHog project associated with the API key you provide. You can rotate or revoke the API key at any time from your PostHog settings. diff --git a/docs/mission-control/integrations/sanity.mdx b/docs/mission-control/integrations/sanity.mdx index 75433f22e..058674e83 100644 --- a/docs/mission-control/integrations/sanity.mdx +++ b/docs/mission-control/integrations/sanity.mdx @@ -1,11 +1,11 @@ --- title: "Sanity Integration" -description: "Connect **Sanity** to Mission Control so agents can keep your content documentation in sync with schema and code changes — automatically generating updates when pull requests are opened." +description: "Connect **Sanity** to Mission Control so Cloud Agents can keep your content documentation in sync with schema and code changes — automatically generating updates when pull requests are opened." --- @@ -17,7 +17,7 @@ description: "Connect **Sanity** to Mission Control so agents can keep your cont --- -## Official Workflow Templates +## Official Workflow Templates for Sanity Cloud Agents in Continue The following **official workflow template** is maintained by the Continue team and is available directly in the Mission Control Hub. This workflow is designed to work out of the box and represents the recommended way to automate Sanity documentation updates. @@ -33,7 +33,7 @@ Official workflow templates may expand over time as new patterns are validated. --- -## Advanced Use Cases +## Advanced Use Cases for Sanity Cloud Agents in Continue These examples are not officially maintained by the Continue team, but illustrate what’s possible with custom workflows. @@ -52,7 +52,7 @@ These examples are not officially maintained by the Continue team, but illustrat When connecting Sanity, you’ll authorize Continue to access your workspace and interact with content based on your project permissions. - **Workspace access** - Agents can only access Sanity projects and datasets you are permitted to view. + Cloud Agents can only access Sanity projects and datasets you are permitted to view. - **Permissions** Approved permissions allow Continue to read schemas, run GROQ queries, and create or update documents when workflows require it. @@ -67,7 +67,7 @@ When connecting Sanity, you’ll authorize Continue to access your workspace and icon="book-open" href="/guides/sanity-mcp-continue-cookbook" > - Practical examples for working with Sanity schemas and content using Continue agents. + Practical examples for working with Sanity schemas and content using Continue Cloud Agents. @@ -18,7 +18,7 @@ description: "Connect Sentry to Mission Control so agents can automatically resp -## Official Workflow Templates +## Official Workflow Templates for Sentry Cloud Agents in Continue The following **official workflow template** is maintained by the Continue team and is available directly in the Mission Control Hub. This workflow is designed to work out of the box and represents the recommended way to automate Sentry-based remediation. @@ -32,13 +32,13 @@ The following **official workflow template** is maintained by the Continue team Official workflow templates may expand over time as new patterns are validated. You can view, enable, and configure this workflow in **Mission Control → Integrations → Sentry**. -### Advanced Use Cases +### Advanced Use Cases for Sentry Cloud Agents in Continue These examples are not officially maintained by the Continue team, but illustrate what’s possible with custom workflows. - Trigger investigations only for high-impact or high-frequency errors -- Route specific error types to specialized agents +- Route specific error types to specialized Cloud Agents - Correlate Sentry issues with recent deploys or feature flags - Generate weekly error trend summaries for engineering teams - Combine Sentry signals with GitHub or analytics data @@ -49,7 +49,7 @@ These examples are not officially maintained by the Continue team, but illustrat When connecting Sentry, you’ll authorize Continue to receive error events and access issue data. - **Project and issue access** - Agents can access Sentry projects and issues you have permission to view within your organization. + Cloud Agents can access Sentry projects and issues you have permission to view within your organization. - **Permissions** Approved permissions allow Continue to analyze error events, read issue details, and create pull requests or GitHub issues on your behalf. diff --git a/docs/mission-control/integrations/slack-agent.mdx b/docs/mission-control/integrations/slack.mdx similarity index 68% rename from docs/mission-control/integrations/slack-agent.mdx rename to docs/mission-control/integrations/slack.mdx index 98770184b..2e585669a 100644 --- a/docs/mission-control/integrations/slack-agent.mdx +++ b/docs/mission-control/integrations/slack.mdx @@ -1,15 +1,19 @@ --- -title: "Slack Agent" -description: "Kick off background Agents from Slack by mentioning @Continue" +title: "Agent for Slack" +description: "Kick off Cloud Agents from Slack by mentioning @Continue" --- - The Continue Slack app is currently in beta development and undergoing Slack's approval process. + Continue uses AI to generate code, issues, and pull requests. AI-generated content may contain inaccuracies, errors, or unexpected results. Always review AI-generated code and changes before merging. Human oversight is recommended for all automated development tasks. + + Please review our Privacy policy here https://www.continue.dev/privacy + + The Continue App for Slack is currently in beta development and undergoing Slack's approval process. - + - Quick bug fixes and feature implementations - Code reviews and refactoring @@ -20,13 +24,14 @@ description: "Kick off background Agents from Slack by mentioning @Continue" ## Usage -To kick off an agent, mention `@Continue` with a short task description. +To kick off a Cloud Agent, mention `@Continue` with a short task description. ### Thread Context -When you mention `@Continue` in a **Slack thread**, Continue automatically uses the entire conversation as context. This means your agent starts with full situational awareness. +When you mention `@Continue` in a **Slack thread**, Continue automatically uses the entire conversation as context. This means your Cloud Agent starts with full situational awareness. If you start a **new message** (not a reply), Continue only sees that single message for context. + Use this for quick standalone requests. @@ -79,29 +84,31 @@ You can also click the Slack icon in the agents page to return to the Slack mess ## Disconnecting -To remove the Slack integration: +To remove your Slack connection: 1. Go to [hub.continue.dev/settings/integrations](https://hub.continue.dev/settings/integrations) -2. Find your Slack integration +2. Find your Slack connection 3. Click "Disconnect" ## Support - The Slack integration is in active development. We'd love to hear your feedback: + Our integration with Slack is in active development. We'd love to hear your feedback: - Report issues: [GitHub Issues](https://github.com/continuedev/continue/issues) - Feature requests: [GitHub Discussions](https://github.com/continuedev/continue/discussions) +See our support page for more details: https://continue.dev/support + ## Related Resources - + - Learn about Continue agents. + Learn about Continue Cloud Agents. @@ -111,4 +118,4 @@ To remove the Slack integration: - + \ No newline at end of file diff --git a/docs/mission-control/integrations/snyk.mdx b/docs/mission-control/integrations/snyk.mdx index 023016d0d..5ed98be6e 100644 --- a/docs/mission-control/integrations/snyk.mdx +++ b/docs/mission-control/integrations/snyk.mdx @@ -1,10 +1,10 @@ --- title: "Snyk Integration" -description: "Connect Snyk to Continue Mission Control to automatically detect and fix vulnerabilities with Continue Agents" +description: "Connect Snyk to Continue Mission Control to automatically detect and fix vulnerabilities with Continue Cloud Agents" --- @@ -15,7 +15,7 @@ description: "Connect Snyk to Continue Mission Control to automatically detect a - Create reports and summaries for security trends -## Official Workflow Templates +## Official Workflow Templates for Snyk Cloud Agents in Continue The following **official workflow template** is maintained by the Continue team and is available directly in the Mission Control Hub. This workflow is designed to work out of the box and represents the recommended way to automate Snyk-based remediation. diff --git a/docs/mission-control/integrations/supabase.mdx b/docs/mission-control/integrations/supabase.mdx index d6313c70c..27263db5c 100644 --- a/docs/mission-control/integrations/supabase.mdx +++ b/docs/mission-control/integrations/supabase.mdx @@ -1,10 +1,10 @@ --- title: "Supabase Integration" -description: "Connect **Supabase** to Mission Control so agents can automatically review **Row Level Security (RLS)** when pull requests touch database-related code." +description: "Connect **Supabase** to Mission Control so Cloud Agents can automatically review **Row Level Security (RLS)** when pull requests touch database-related code." --- @@ -15,7 +15,7 @@ description: "Connect **Supabase** to Mission Control so agents can automaticall -## Official Workflow Templates +## Official Workflow Templates for Supabase Cloud Agents in Continue The following **official workflow template** is maintained by the Continue team and is available directly in the Mission Control Hub. This workflow is designed to work out of the box and represents the recommended way to automate Supabase security reviews. diff --git a/docs/mission-control/metrics.mdx b/docs/mission-control/metrics.mdx index dc2d6bb1e..0dc537292 100644 --- a/docs/mission-control/metrics.mdx +++ b/docs/mission-control/metrics.mdx @@ -1,34 +1,44 @@ --- title: "Metrics" -description: "Track agent performance, workflow activity, and PR outcomes." +description: "Agent observability for Cloud Agents: track activity, success rates, PR outcomes, cost, and workflow reliability across your repositories." --- -Metrics give you visibility into how your Agents and Workflows perform across your repositories. -Use this page to understand activity patterns, identify bottlenecks, and measure success over time. +Metrics provides Agent observability for Cloud Agents and automated workflows. Agent observability answers a simple question: *What are my AI agents doing, and is it working?* Use Metrics to monitor agent activity, understand human intervention, measure success rates, and evaluate the cost and impact of AI-driven work across your repositories. -## What Metrics Show +## What Metrics Show About Your Cloud Agents + +Continue’s Metrics give you **operational observability for AI agents**, similar to how traditional observability tools provide visibility into services, jobs, and pipelines. + +Instead of logs and latency, agent observability focuses on: +- Runs and execution frequency +- Success vs. human intervention +- Pull request outcomes +- Cost per run and per workflow - - A day-by-day graph of total Agent runs across your repositories. - - See which Agents are running most often + + Understand **when and how often your agents run**. + - See which Cloud Agents are running most often - Spot spikes, trends, or recurring failures - Monitor automated Workflows in production - - Per-Agent breakdown of: + + Measure **whether agents produce usable results**. - **Total runs** - **PR creation rate** - **PR status** (open, merged, closed, failed) - **Success vs. intervention rate** - - Track which Workflows create the most tasks or PRs, and how often they complete successfully. + + Evaluate **automated agent workflows in production**. + - Which Workflows generate the most work + - Completion and success rates + - Signals that a Workflow needs refinement or guardrails diff --git a/docs/mission-control/secrets/secret-resolution.mdx b/docs/mission-control/secrets/secret-resolution.mdx index 00bf36aff..ee8208e10 100644 --- a/docs/mission-control/secrets/secret-resolution.mdx +++ b/docs/mission-control/secrets/secret-resolution.mdx @@ -3,14 +3,14 @@ title: "Secret Resolution" description: "User or Org secrets should be used depending on how users want them to be shared within their organization and configs." --- -For individual users and [Solo](/hub/governance/pricing#solo) organizations, secret resolution is performed in the following order: +For individual users and [Solo](/mission-control/governance/pricing#solo) organizations, secret resolution is performed in the following order: -1. User [models add-on](/hub/governance/pricing#models-add-on) (if subscribed) -2. [User secrets](/hub/secrets/secret-types#user-secrets) (if set) -3. [Free trial](/hub/governance/pricing#free-trial) (if below limit) +1. User [models add-on](/mission-control/governance/pricing#models-add-on) (if subscribed) +2. [User secrets](/mission-control/secrets/secret-types#user-secrets) (if set) +3. [Free trial](/mission-control/governance/pricing#free-trial) (if below limit) -For [Teams](/hub/governance/pricing#teams) and [Enterprise](/hub/governance/pricing#enterprise) organizations, secret resolution is performed in the following order: +For [Teams](/mission-control/governance/pricing#teams) and [Enterprise](/mission-control/governance/pricing#enterprise) organizations, secret resolution is performed in the following order: -1. Org [models add-on](/hub/governance/pricing#models-add-on) (if subscribed) -2. [Org secrets](/hub/secrets/secret-types#org-secrets) (if set) -3. [User secrets](/hub/secrets/secret-types#user-secrets) (if set) +1. Org [models add-on](/mission-control/governance/pricing#models-add-on) (if subscribed) +2. [Org secrets](/mission-control/secrets/secret-types#org-secrets) (if set) +3. [User secrets](/mission-control/secrets/secret-types#user-secrets) (if set) diff --git a/docs/mission-control/secrets/secret-types.mdx b/docs/mission-control/secrets/secret-types.mdx index e9d0b07c6..4ebcd0cf8 100644 --- a/docs/mission-control/secrets/secret-types.mdx +++ b/docs/mission-control/secrets/secret-types.mdx @@ -7,10 +7,10 @@ description: "The Continue Mission Control comes with secrets management built-i User secrets are defined by the user for themselves. This means that user secrets are available only to the user that created them. User secrets are assumed to be safe for the user to know, so they will be sent to the IDE extensions alongside `config.yaml`. -This allows API requests to be made directly from the IDE extensions. You can use user secrets with [Solo](/hub/governance/pricing#solo), [Teams](/hub/governance/pricing#teams), and [Enterprise](/hub/governance/pricing#enterprise). User secrets can be managed [here](https://hub.continue.dev/settings/secrets) in Mission Control. +This allows API requests to be made directly from the IDE extensions. You can use user secrets with [Solo](/mission-control/governance/pricing#solo), [Teams](/mission-control/governance/pricing#teams), and [Enterprise](/mission-control/governance/pricing#enterprise). User secrets can be managed [here](https://hub.continue.dev/settings/secrets) in Mission Control. ## Org secrets Org secrets are defined by admins for their organization. Org secrets are available to anyone in the organization to use with configurations in that organization. Org secrets are assumed to not be shareable with the user (e.g. you are a team lead who wants to give team members access to models without passing out API keys). -This is why LLM requests are proxied through api.continue.dev / on-premise proxy and secrets are never sent to the IDE extensions. You can only use org secrets on [Teams](/hub/governance/pricing#teams) and [Enterprise](/hub/governance/pricing#enterprise). If you are an admin, you can manage secrets for your organization from the org settings page. +This is why LLM requests are proxied through api.continue.dev / on-premise proxy and secrets are never sent to the IDE extensions. You can only use org secrets on [Teams](/mission-control/governance/pricing#teams) and [Enterprise](/mission-control/governance/pricing#enterprise). If you are an admin, you can manage secrets for your organization from the org settings page. diff --git a/docs/mission-control/tasks.mdx b/docs/mission-control/tasks.mdx index 9efd78222..1ba8310f7 100644 --- a/docs/mission-control/tasks.mdx +++ b/docs/mission-control/tasks.mdx @@ -26,7 +26,7 @@ description: "A Task is a unit of work shared between you and an agent. You trig - Don't have an Agent yet? Create one in **[Mission Control → Agents](https://hub.continue.dev/new?type=agent)** before setting up your first task. + Don't have an Agent yet? Create one in **[Mission Control → Agents](https://hub.continue.dev/agents/new)** before setting up your first task. diff --git a/docs/mission-control/workflows.mdx b/docs/mission-control/workflows.mdx index 0d4ac035d..6ddf28b59 100644 --- a/docs/mission-control/workflows.mdx +++ b/docs/mission-control/workflows.mdx @@ -1,6 +1,6 @@ --- title: "Workflows" -description: "Workflows trigger agents on a schedule or when events occur." +description: "Cloud agents that are triggered on a schedule or when events occur build automated AI workflows for your repositories." --- @@ -67,7 +67,7 @@ description: "Workflows trigger agents on a schedule or when events occur." - Agent – the configured Agent (model, rules, tools, prompt) that should perform the work - Need a new Agent? Create one in [Mission Control → Agents](https://hub.continue.dev/new?type=agent), then return to this screen. + Need a new Agent? Create one in [Mission Control → Agents](https://hub.continue.dev/agents/new), then return to this screen. diff --git a/extensions/cli/package-lock.json b/extensions/cli/package-lock.json index b86896f4f..7d4dd8b17 100644 --- a/extensions/cli/package-lock.json +++ b/extensions/cli/package-lock.json @@ -9,7 +9,7 @@ "version": "0.0.0-dev", "license": "Apache-2.0", "dependencies": { - "@sentry/profiling-node": "^9.43.0", + "@sentry/profiling-node": "^9.47.1", "fdir": "^6.4.2", "find-up": "^8.0.0", "fzf": "^0.5.2", @@ -120,16 +120,16 @@ "license": "Apache-2.0", "dependencies": { "@anthropic-ai/sdk": "^0.62.0", - "@aws-sdk/client-bedrock-runtime": "^3.779.0", + "@aws-sdk/client-bedrock-runtime": "^3.931.0", "@aws-sdk/client-sagemaker-runtime": "^3.777.0", - "@aws-sdk/credential-providers": "^3.778.0", + "@aws-sdk/credential-providers": "^3.931.0", "@continuedev/config-types": "^1.0.13", "@continuedev/config-yaml": "file:../packages/config-yaml", "@continuedev/fetch": "file:../packages/fetch", "@continuedev/llm-info": "file:../packages/llm-info", "@continuedev/openai-adapters": "file:../packages/openai-adapters", "@continuedev/terminal-security": "file:../packages/terminal-security", - "@modelcontextprotocol/sdk": "^1.24.0", + "@modelcontextprotocol/sdk": "^1.25.2", "@mozilla/readability": "^0.5.0", "@octokit/rest": "^20.1.1", "@sentry/cli": "^2.50.2", @@ -275,8 +275,8 @@ "@ai-sdk/anthropic": "^1.0.10", "@ai-sdk/openai": "^1.0.10", "@anthropic-ai/sdk": "^0.67.0", - "@aws-sdk/client-bedrock-runtime": "^3.929.0", - "@aws-sdk/credential-providers": "^3.929.0", + "@aws-sdk/client-bedrock-runtime": "^3.931.0", + "@aws-sdk/credential-providers": "^3.931.0", "@continuedev/config-types": "^1.0.14", "@continuedev/config-yaml": "^1.36.0", "@continuedev/fetch": "^1.6.0", @@ -520,7 +520,6 @@ } ], "license": "MIT", - "peer": true, "engines": { "node": ">=18" }, @@ -544,7 +543,6 @@ } ], "license": "MIT", - "peer": true, "engines": { "node": ">=18" } @@ -1809,7 +1807,6 @@ "integrity": "sha512-oNXsh2ywth5aowwIa7RKtawnkdH6LgU1ztfP9AIUCQCvzysB+WeU8o2kyyosDPwBZutPpjZDKPQGIzzrfTWweQ==", "dev": true, "license": "MIT", - "peer": true, "dependencies": { "@octokit/auth-token": "^6.0.0", "@octokit/graphql": "^9.0.1", @@ -1980,7 +1977,6 @@ "resolved": "https://registry.npmjs.org/@opentelemetry/api/-/api-1.9.0.tgz", "integrity": "sha512-3giAOQvZiH5F9bMlMiv8+GSPMeqg0dbaeo58/0SlA9sxSqZhnUtxzX9/2FzyhS9sWQf5S0GJE0AKBrFqjpeYcg==", "license": "Apache-2.0", - "peer": true, "engines": { "node": ">=8.0.0" } @@ -2002,7 +1998,6 @@ "resolved": "https://registry.npmjs.org/@opentelemetry/context-async-hooks/-/context-async-hooks-2.0.1.tgz", "integrity": "sha512-XuY23lSI3d4PEqKA+7SLtAgwqIfc6E/E9eAQWLN1vlpC53ybO3o6jW4BsXo1xvz9lYyyWItfQDDLzezER01mCw==", "license": "Apache-2.0", - "peer": true, "engines": { "node": "^18.19.0 || >=20.6.0" }, @@ -2015,7 +2010,6 @@ "resolved": "https://registry.npmjs.org/@opentelemetry/core/-/core-2.0.1.tgz", "integrity": "sha512-MaZk9SJIDgo1peKevlbhP6+IwIiNPNmswNL4AF0WaQJLbHXjr9SrZMgS12+iqr9ToV4ZVosCcc0f8Rg67LXjxw==", "license": "Apache-2.0", - "peer": true, "dependencies": { "@opentelemetry/semantic-conventions": "^1.29.0" }, @@ -2257,7 +2251,6 @@ "resolved": "https://registry.npmjs.org/@opentelemetry/instrumentation/-/instrumentation-0.203.0.tgz", "integrity": "sha512-ke1qyM+3AK2zPuBPb6Hk/GCsc5ewbLvPNkEuELx/JmANeEp6ZjnZ+wypPAJSucTw0wvCGrUaibDSdcrGFoWxKQ==", "license": "Apache-2.0", - "peer": true, "dependencies": { "@opentelemetry/api-logs": "0.203.0", "import-in-the-middle": "^1.8.1", @@ -3574,7 +3567,6 @@ "resolved": "https://registry.npmjs.org/@opentelemetry/resources/-/resources-2.0.1.tgz", "integrity": "sha512-dZOB3R6zvBwDKnHDTB4X1xtMArB/d324VsbiPkX/Yu0Q8T2xceRthoIVFhJdvgVM2QhGVUyX9tzwiNxGtoBJUw==", "license": "Apache-2.0", - "peer": true, "dependencies": { "@opentelemetry/core": "2.0.1", "@opentelemetry/semantic-conventions": "^1.29.0" @@ -3663,7 +3655,6 @@ "resolved": "https://registry.npmjs.org/@opentelemetry/sdk-trace-base/-/sdk-trace-base-2.0.1.tgz", "integrity": "sha512-xYLlvk/xdScGx1aEqvxLwf6sXQLXCjk3/1SQT9X9AoN5rXRhkdvIFShuNNmtTEPRBqcsMbS4p/gJLNI2wXaDuQ==", "license": "Apache-2.0", - "peer": true, "dependencies": { "@opentelemetry/core": "2.0.1", "@opentelemetry/resources": "2.0.1", @@ -3699,7 +3690,6 @@ "resolved": "https://registry.npmjs.org/@opentelemetry/semantic-conventions/-/semantic-conventions-1.36.0.tgz", "integrity": "sha512-TtxJSRD8Ohxp6bKkhrm27JRHAxPczQA7idtcTOMYI+wQRRrfgqxHv1cFbCApcSnNjtXkmzFozn6jQtFrOmbjPQ==", "license": "Apache-2.0", - "peer": true, "engines": { "node": ">=14" } @@ -4681,18 +4671,18 @@ } }, "node_modules/@sentry/core": { - "version": "9.46.0", - "resolved": "https://registry.npmjs.org/@sentry/core/-/core-9.46.0.tgz", - "integrity": "sha512-it7JMFqxVproAgEtbLgCVBYtQ9fIb+Bu0JD+cEplTN/Ukpe6GaolyYib5geZqslVxhp2sQgT+58aGvfd/k0N8Q==", + "version": "9.47.1", + "resolved": "https://registry.npmjs.org/@sentry/core/-/core-9.47.1.tgz", + "integrity": "sha512-KX62+qIt4xgy8eHKHiikfhz2p5fOciXd0Cl+dNzhgPFq8klq4MGMNaf148GB3M/vBqP4nw/eFvRMAayFCgdRQw==", "license": "MIT", "engines": { "node": ">=18" } }, "node_modules/@sentry/node": { - "version": "9.46.0", - "resolved": "https://registry.npmjs.org/@sentry/node/-/node-9.46.0.tgz", - "integrity": "sha512-pRLqAcd7GTGvN8gex5FtkQR5Mcol8gOy1WlyZZFq4rBbVtMbqKOQRhohwqnb+YrnmtFpj7IZ7KNDo077MvNeOQ==", + "version": "9.47.1", + "resolved": "https://registry.npmjs.org/@sentry/node/-/node-9.47.1.tgz", + "integrity": "sha512-CDbkasBz3fnWRKSFs6mmaRepM2pa+tbZkrqhPWifFfIkJDidtVW40p6OnquTvPXyPAszCnDZRnZT14xyvNmKPQ==", "license": "MIT", "dependencies": { "@opentelemetry/api": "^1.9.0", @@ -4725,9 +4715,9 @@ "@opentelemetry/sdk-trace-base": "^1.30.1", "@opentelemetry/semantic-conventions": "^1.34.0", "@prisma/instrumentation": "6.11.1", - "@sentry/core": "9.46.0", - "@sentry/node-core": "9.46.0", - "@sentry/opentelemetry": "9.46.0", + "@sentry/core": "9.47.1", + "@sentry/node-core": "9.47.1", + "@sentry/opentelemetry": "9.47.1", "import-in-the-middle": "^1.14.2", "minimatch": "^9.0.0" }, @@ -4736,13 +4726,13 @@ } }, "node_modules/@sentry/node-core": { - "version": "9.46.0", - "resolved": "https://registry.npmjs.org/@sentry/node-core/-/node-core-9.46.0.tgz", - "integrity": "sha512-XRVu5pqoklZeh4wqhxCLZkz/ipoKhitctgEFXX9Yh1e1BoHM2pIxT52wf+W6hHM676TFmFXW3uKBjsmRM3AjgA==", + "version": "9.47.1", + "resolved": "https://registry.npmjs.org/@sentry/node-core/-/node-core-9.47.1.tgz", + "integrity": "sha512-7TEOiCGkyShJ8CKtsri9lbgMCbB+qNts2Xq37itiMPN2m+lIukK3OX//L8DC5nfKYZlgikrefS63/vJtm669hQ==", "license": "MIT", "dependencies": { - "@sentry/core": "9.46.0", - "@sentry/opentelemetry": "9.46.0", + "@sentry/core": "9.47.1", + "@sentry/opentelemetry": "9.47.1", "import-in-the-middle": "^1.14.2" }, "engines": { @@ -4946,12 +4936,12 @@ } }, "node_modules/@sentry/opentelemetry": { - "version": "9.46.0", - "resolved": "https://registry.npmjs.org/@sentry/opentelemetry/-/opentelemetry-9.46.0.tgz", - "integrity": "sha512-w2zTxqrdmwRok0cXBoh+ksXdGRUHUZhlpfL/H2kfTodOL+Mk8rW72qUmfqQceXoqgbz8UyK8YgJbyt+XS5H4Qg==", + "version": "9.47.1", + "resolved": "https://registry.npmjs.org/@sentry/opentelemetry/-/opentelemetry-9.47.1.tgz", + "integrity": "sha512-STtFpjF7lwzeoedDJV+5XA6P89BfmFwFftmHSGSe3UTI8z8IoiR5yB6X2vCjSPvXlfeOs13qCNNCEZyznxM8Xw==", "license": "MIT", "dependencies": { - "@sentry/core": "9.46.0" + "@sentry/core": "9.47.1" }, "engines": { "node": ">=18" @@ -4965,14 +4955,14 @@ } }, "node_modules/@sentry/profiling-node": { - "version": "9.46.0", - "resolved": "https://registry.npmjs.org/@sentry/profiling-node/-/profiling-node-9.46.0.tgz", - "integrity": "sha512-MPNjVx6m9fn+HUU1FGr5PzgAKLLJA6eXXf+xobtVk+jNo9e0YczUUcnSTJz+VeIUG2joFm9sPfRjYLyONNLuxQ==", + "version": "9.47.1", + "resolved": "https://registry.npmjs.org/@sentry/profiling-node/-/profiling-node-9.47.1.tgz", + "integrity": "sha512-4Llq0it2nL/1iJcEEm3JwdRyvRAjYuoS0MB9+9eKRaCJBIj//3fOcyjw75BbhdSFBhkDMRv2W5b3gn9oPrJAHA==", "license": "MIT", "dependencies": { "@sentry-internal/node-cpu-profiler": "^2.2.0", - "@sentry/core": "9.46.0", - "@sentry/node": "9.46.0" + "@sentry/core": "9.47.1", + "@sentry/node": "9.47.1" }, "bin": { "sentry-prune-profiler-binaries": "scripts/prune-profiler-binaries.js" @@ -5110,7 +5100,8 @@ "resolved": "https://registry.npmjs.org/@types/aria-query/-/aria-query-5.0.4.tgz", "integrity": "sha512-rfT93uj5s0PRL7EzccGMs3brplhcrghnDoV26NqKhCAS1hVo+WdNsPvE/yb6ilfr5hi2MEk6d5EWJTKdxg8jVw==", "dev": true, - "license": "MIT" + "license": "MIT", + "peer": true }, "node_modules/@types/body-parser": { "version": "1.19.6", @@ -5398,7 +5389,6 @@ "resolved": "https://registry.npmjs.org/@types/node/-/node-24.3.0.tgz", "integrity": "sha512-aPTXCrfwnDLj4VvXrm+UUCQjNEvJgNA8s5F1cvwQU+3KNltTOkBm1j30uNLyqqPNe7gE3KFzImYoZEfLhp4Yow==", "license": "MIT", - "peer": true, "dependencies": { "undici-types": "~7.10.0" } @@ -5468,7 +5458,6 @@ "integrity": "sha512-lr3jdBw/BGj49Eps7EvqlUaoeA0xpj3pc0RoJkHpYaCHkVK7i28dKyImLQb3JVlqs3aYSXf7qYuWOW/fgZnTXQ==", "dev": true, "license": "MIT", - "peer": true, "dependencies": { "csstype": "^3.0.2" } @@ -5590,7 +5579,6 @@ "integrity": "sha512-w/EboPlBwnmOBtRbiOvzjD+wdiZdgFeo17lkltrtn7X37vagKKWJABvyfsJXTlHe6XBzugmYgd4A4nW+k8Mixw==", "dev": true, "license": "MIT", - "peer": true, "dependencies": { "@eslint-community/regexpp": "^4.10.0", "@typescript-eslint/scope-manager": "8.40.0", @@ -5621,7 +5609,6 @@ "integrity": "sha512-jCNyAuXx8dr5KJMkecGmZ8KI61KBUhkCob+SD+C+I5+Y1FWI2Y3QmY4/cxMCC5WAsZqoEtEETVhUiUMIGCf6Bw==", "dev": true, "license": "MIT", - "peer": true, "dependencies": { "@typescript-eslint/scope-manager": "8.40.0", "@typescript-eslint/types": "8.40.0", @@ -6222,7 +6209,6 @@ "integrity": "sha512-hGISOaP18plkzbWEcP/QvtRW1xDXF2+96HbEX6byqQhAUbiS5oH6/9JwW+QsQCIYON2bI6QZBF+2PvOmrRZ9wA==", "dev": true, "license": "MIT", - "peer": true, "dependencies": { "@vitest/utils": "3.2.4", "fflate": "^0.8.2", @@ -6303,7 +6289,6 @@ "resolved": "https://registry.npmjs.org/acorn/-/acorn-8.15.0.tgz", "integrity": "sha512-NZyJarBfL7nWwIq+FDL6Zp/yHEhePMNnnJ0y3qfieCrmNvYct8uvtiV41UvlSe6apAfk0fY1FbWx+NwfmpvtTg==", "license": "MIT", - "peer": true, "bin": { "acorn": "bin/acorn" }, @@ -6511,6 +6496,7 @@ "integrity": "sha512-b0P0sZPKtyu8HkeRAfCq0IfURZK+SuwMjY1UXGBU27wpAiTwQAIlq56IbIO+ytk/JjS1fMR14ee5WBBfKi5J6A==", "dev": true, "license": "Apache-2.0", + "peer": true, "dependencies": { "dequal": "^2.0.3" } @@ -8384,7 +8370,8 @@ "resolved": "https://registry.npmjs.org/dom-accessibility-api/-/dom-accessibility-api-0.5.16.tgz", "integrity": "sha512-X7BJ2yElsnOJ30pZF4uIIDfBEVgF4XEBxL9Bxhy6dnrm5hkzqmsWHGTiHqRiITNhMyFLyAiWndIJP7Z1NTteDg==", "dev": true, - "license": "MIT" + "license": "MIT", + "peer": true }, "node_modules/dot-prop": { "version": "5.3.0", @@ -8925,7 +8912,6 @@ "integrity": "sha512-TS9bTNIryDzStCpJN93aC5VRSW3uTx9sClUn4B87pwiCaJh220otoI0X8mJKr+VcPtniMdN8GKjlwgWGUv5ZKA==", "dev": true, "license": "MIT", - "peer": true, "dependencies": { "@eslint-community/eslint-utils": "^4.2.0", "@eslint-community/regexpp": "^4.12.1", @@ -9097,7 +9083,6 @@ "integrity": "sha512-whOE1HFo/qJDyX4SnXzP4N6zOWn79WhnCUY/iDR0mPfQZO8wcYE4JClzI2oZrhBnnMUCBCHZhO6VQyoBU95mZA==", "dev": true, "license": "MIT", - "peer": true, "dependencies": { "@rtsao/scc": "^1.1.0", "array-includes": "^3.1.9", @@ -9545,7 +9530,6 @@ "integrity": "sha512-hIS4idWWai69NezIdRt2xFVofaF4j+6INOpJlVOLDO8zXGpUVEVzIYk12UUi2JzjEzWL3IOAxcTubgz9Po0yXw==", "dev": true, "license": "MIT", - "peer": true, "dependencies": { "accepts": "^2.0.0", "body-parser": "^2.2.1", @@ -12142,6 +12126,7 @@ "integrity": "sha512-h5bgJWpxJNswbU7qCrV0tIKQCaS3blPDrqKWx+QxzuzL1zGUzij9XCWLrSLsJPu5t+eWA/ycetzYAO5IOMcWAQ==", "dev": true, "license": "MIT", + "peer": true, "bin": { "lz-string": "bin/bin.js" } @@ -12169,7 +12154,6 @@ "integrity": "sha512-8dD6FusOQSrpv9Z1rdNMdlSgQOIP880DHqnohobOmYLElGEqAL/JvxvuxZO16r4HtjTlfPRDC1hbvxC9dPN2nA==", "dev": true, "license": "MIT", - "peer": true, "bin": { "marked": "bin/marked.js" }, @@ -15077,7 +15061,6 @@ "dev": true, "inBundle": true, "license": "MIT", - "peer": true, "engines": { "node": ">=12" }, @@ -15992,7 +15975,6 @@ "integrity": "sha512-5gTmgEY/sqK6gFXLIsQNH19lWb4ebPDLA4SdLP7dsWkIXHWlG66oPuVvXSGFPppYZz8ZDZq0dYYrbHfBCVUb1Q==", "devOptional": true, "license": "MIT", - "peer": true, "engines": { "node": ">=12" }, @@ -16214,7 +16196,6 @@ "integrity": "sha512-I7AIg5boAr5R0FFtJ6rCfD+LFsWHp81dolrFD8S79U9tb8Az2nGrJncnMSnys+bpQJfRUzqs9hnA81OAA3hCuQ==", "dev": true, "license": "MIT", - "peer": true, "bin": { "prettier": "bin/prettier.cjs" }, @@ -16318,6 +16299,7 @@ "integrity": "sha512-Qb1gy5OrP5+zDf2Bvnzdl3jsTf1qXVMazbvCoKhtKqVs4/YK4ozX4gKQJJVyNe+cajNPn0KoC0MC3FUmaHWEmQ==", "dev": true, "license": "MIT", + "peer": true, "dependencies": { "ansi-regex": "^5.0.1", "ansi-styles": "^5.0.0", @@ -16333,6 +16315,7 @@ "integrity": "sha512-Cxwpt2SfTzTtXcfOlzGEee8O+c+MmUgGrNiBcXnuWxuFJHe6a5Hz7qwhwe5OgaSYI0IJvkLqWX1ASG+cJOkEiA==", "dev": true, "license": "MIT", + "peer": true, "engines": { "node": ">=10" }, @@ -16561,7 +16544,6 @@ "integrity": "sha512-DGrYcCWK7tvYMnWh79yrPHt+vdx9tY+1gPZa7nJQtO/p8bLTDaHp4dzwEhQB7pZ4Xe3ok4XKuEPrVuc+wlpkmw==", "dev": true, "license": "MIT", - "peer": true, "engines": { "node": ">=0.10.0" } @@ -16572,6 +16554,7 @@ "integrity": "sha512-ibrK8llX2a4eOskq1mXKu/TGZj9qzomO+sNfO98M6d9zIPOEhlBkMkBUBLd1vgS0gQsLDBzA+8jJBVXDnfHmJg==", "dev": true, "license": "MIT", + "peer": true, "dependencies": { "scheduler": "^0.27.0" }, @@ -16584,14 +16567,16 @@ "resolved": "https://registry.npmjs.org/scheduler/-/scheduler-0.27.0.tgz", "integrity": "sha512-eNv+WrVbKu1f3vbYJT/xtiF5syA5HPIMtf9IgY/nKg0sWqzAUEvqY/xm7OcZc/qafLx/iO9FgOmeSAp4v5ti/Q==", "dev": true, - "license": "MIT" + "license": "MIT", + "peer": true }, "node_modules/react-is": { "version": "17.0.2", "resolved": "https://registry.npmjs.org/react-is/-/react-is-17.0.2.tgz", "integrity": "sha512-w2GsyukL62IJnlaff/nRegPQR94C/XXamvMWmSHRJ4y7Ts/4ocGRmTHvOs8PSE6pB3dWOrD/nueuU5sduBsQ4w==", "dev": true, - "license": "MIT" + "license": "MIT", + "peer": true }, "node_modules/react-reconciler": { "version": "0.32.0", @@ -17083,7 +17068,6 @@ "integrity": "sha512-g7RssbTAbir1k/S7uSwSVZFfFXwpomUB9Oas0+xi9KStSCmeDXcA7rNhiskjLqvUe/Evhx8fVCT16OSa34eM5g==", "dev": true, "license": "MIT", - "peer": true, "dependencies": { "@semantic-release/commit-analyzer": "^13.0.0-beta.1", "@semantic-release/error": "^4.0.0", @@ -18616,7 +18600,6 @@ "integrity": "sha512-yyxBKfORQ7LuRt/BQKBXrpcq59ZvSW0XxwfjAt3w2/8PmdxaFzijtMhTawprSHhpzeM5BgU2hXHG3lklIERZXg==", "dev": true, "license": "MIT", - "peer": true, "dependencies": { "esbuild": "~0.25.0", "get-tsconfig": "^4.7.5" @@ -18766,7 +18749,6 @@ "integrity": "sha512-CWBzXQrc/qOkhidw1OzBTQuYRbfyxDXJMVJ1XNwUHGROVmuaeiEm3OslpZ1RV96d7SKKjZKrSJu3+t/xlw3R9A==", "dev": true, "license": "Apache-2.0", - "peer": true, "bin": { "tsc": "bin/tsc", "tsserver": "bin/tsserver" @@ -18886,7 +18868,6 @@ "dev": true, "hasInstallScript": true, "license": "MIT", - "peer": true, "dependencies": { "napi-postinstall": "^0.3.0" }, @@ -19000,7 +18981,6 @@ "integrity": "sha512-cZn6NDFE7wdTpINgs++ZJ4N49W2vRp8LCKrn3Ob1kYNtOo21vfDoaV5GzBfLU4MovSAB8uNRm4jgzVQZ+mBzPQ==", "dev": true, "license": "MIT", - "peer": true, "dependencies": { "esbuild": "^0.25.0", "fdir": "^6.4.4", @@ -19099,7 +19079,6 @@ "integrity": "sha512-LUCP5ev3GURDysTWiP47wRRUpLKMOfPh+yKTx3kVIEiu5KOMeqzpnYNsKyOoVrULivR8tLcks4+lga33Whn90A==", "dev": true, "license": "MIT", - "peer": true, "dependencies": { "@types/chai": "^5.2.2", "@vitest/expect": "3.2.4", @@ -19635,7 +19614,6 @@ "integrity": "sha512-PEIGCY5tSlUt50cqyMXfCzX+oOPqN0vuGqWzbcJ2xvnkzkq46oOpz7dQaTDBdfICb4N14+GARUDw2XV2N4tvzg==", "dev": true, "license": "MIT", - "peer": true, "engines": { "node": ">=10.0.0" }, @@ -19710,7 +19688,6 @@ "integrity": "sha512-lcYcMxX2PO9XMGvAJkJ3OsNMw+/7FKes7/hgerGUYWIoWu5j/+YQqcZr5JnPZWzOsEBgMbSbiSTn/dv/69Mkpw==", "dev": true, "license": "ISC", - "peer": true, "bin": { "yaml": "bin.mjs" }, @@ -19840,7 +19817,6 @@ "integrity": "sha512-gzUt/qt81nXsFGKIFcC3YnfEAx5NkunCfnDlvuBSSFS02bcXu4Lmea0AFIUwbLWxWPx3d9p8S5QoaujKcNQxcQ==", "dev": true, "license": "MIT", - "peer": true, "funding": { "url": "https://github.com/sponsors/colinhacks" } diff --git a/extensions/cli/package.json b/extensions/cli/package.json index 3acb225ce..98e2b26d5 100644 --- a/extensions/cli/package.json +++ b/extensions/cli/package.json @@ -44,7 +44,7 @@ }, "homepage": "https://continue.dev", "dependencies": { - "@sentry/profiling-node": "^9.43.0", + "@sentry/profiling-node": "^9.47.1", "fdir": "^6.4.2", "find-up": "^8.0.0", "fzf": "^0.5.2", diff --git a/extensions/cli/src/CLIPlatformClient.test.ts b/extensions/cli/src/CLIPlatformClient.test.ts new file mode 100644 index 000000000..b54ab972b --- /dev/null +++ b/extensions/cli/src/CLIPlatformClient.test.ts @@ -0,0 +1,377 @@ +import * as fs from "node:fs"; + +import { FQSN, SecretResult, SecretType } from "@continuedev/config-yaml"; +import { beforeEach, describe, expect, it, vi } from "vitest"; + +import { CLIPlatformClient } from "./CLIPlatformClient.js"; + +// Mock fs module +vi.mock("node:fs", () => ({ + existsSync: vi.fn(), + readFileSync: vi.fn(), +})); + +// Mock env module +vi.mock("./env.js", () => ({ + env: { + continueHome: "/home/user/.continue", + }, +})); + +describe("CLIPlatformClient", () => { + let mockApiClient: { + syncSecrets: ReturnType; + }; + + beforeEach(() => { + vi.resetAllMocks(); + mockApiClient = { + syncSecrets: vi.fn(), + }; + // Reset process.env mocks + vi.unstubAllEnvs(); + }); + + describe("resolveFQSNs", () => { + it("returns empty array for empty input", async () => { + const client = new CLIPlatformClient(null, mockApiClient as any); + const results = await client.resolveFQSNs([]); + expect(results).toEqual([]); + expect(mockApiClient.syncSecrets).not.toHaveBeenCalled(); + }); + + it("prioritizes local env over API results", async () => { + const fqsn: FQSN = { + packageSlugs: [ + { ownerSlug: "anthropic", packageSlug: "claude-sonnet" }, + ], + secretName: "ANTHROPIC_API_KEY", + }; + + // Local env has the secret + vi.stubEnv("ANTHROPIC_API_KEY", "local-api-key"); + + const client = new CLIPlatformClient("org-123", mockApiClient as any); + const results = await client.resolveFQSNs([fqsn]); + + // Should not call API since local env has the secret + expect(mockApiClient.syncSecrets).not.toHaveBeenCalled(); + + expect(results).toHaveLength(1); + expect(results[0]).toMatchObject({ + found: true, + value: "local-api-key", + secretLocation: { + secretType: SecretType.LocalEnv, + secretName: "ANTHROPIC_API_KEY", + }, + }); + }); + + it("falls back to API when local env does not have the secret", async () => { + const fqsn: FQSN = { + packageSlugs: [ + { ownerSlug: "anthropic", packageSlug: "claude-sonnet" }, + ], + secretName: "ANTHROPIC_API_KEY", + }; + + // Ensure no local env secret exists + vi.stubEnv("ANTHROPIC_API_KEY", undefined as unknown as string); + vi.mocked(fs.existsSync).mockReturnValue(false); + + // API returns a user secret with value + const apiResult: SecretResult = { + found: true, + fqsn, + value: "api-secret-value", + secretLocation: { + secretType: SecretType.User, + userSlug: "testuser", + secretName: "ANTHROPIC_API_KEY", + }, + }; + mockApiClient.syncSecrets.mockResolvedValue([apiResult]); + + const client = new CLIPlatformClient("org-123", mockApiClient as any); + const results = await client.resolveFQSNs([fqsn]); + + expect(mockApiClient.syncSecrets).toHaveBeenCalledWith({ + syncSecretsRequest: { + fqsns: [fqsn], + orgScopeId: "org-123", + }, + }); + + expect(results).toHaveLength(1); + expect(results[0]).toEqual(apiResult); + }); + + it("keeps API results with secretLocation but no value (models_add_on)", async () => { + const fqsn: FQSN = { + packageSlugs: [ + { ownerSlug: "anthropic", packageSlug: "claude-sonnet" }, + ], + secretName: "ANTHROPIC_API_KEY", + }; + + // Ensure no local env secret exists + vi.stubEnv("ANTHROPIC_API_KEY", undefined as unknown as string); + vi.mocked(fs.existsSync).mockReturnValue(false); + + // API returns a models_add_on result (has secretLocation but no value) + const apiResult: SecretResult = { + found: true, + fqsn, + secretLocation: { + secretType: SecretType.ModelsAddOn, + blockSlug: { ownerSlug: "anthropic", packageSlug: "claude-sonnet" }, + secretName: "ANTHROPIC_API_KEY", + }, + }; + mockApiClient.syncSecrets.mockResolvedValue([apiResult]); + + const client = new CLIPlatformClient("org-123", mockApiClient as any); + const results = await client.resolveFQSNs([fqsn]); + + expect(results).toHaveLength(1); + // The result should be kept even though it has no value + expect(results[0]).toEqual(apiResult); + expect(results[0]).not.toHaveProperty("value"); + expect((results[0] as any).secretLocation.secretType).toBe( + SecretType.ModelsAddOn, + ); + }); + + it("keeps API results with secretLocation but no value (free_trial)", async () => { + const fqsn: FQSN = { + packageSlugs: [{ ownerSlug: "openai", packageSlug: "gpt-4" }], + secretName: "OPENAI_API_KEY", + }; + + // Ensure no local env secret exists + vi.stubEnv("OPENAI_API_KEY", undefined as unknown as string); + vi.mocked(fs.existsSync).mockReturnValue(false); + + // API returns a free_trial result + const apiResult: SecretResult = { + found: true, + fqsn, + secretLocation: { + secretType: SecretType.FreeTrial, + blockSlug: { ownerSlug: "openai", packageSlug: "gpt-4" }, + secretName: "OPENAI_API_KEY", + }, + }; + mockApiClient.syncSecrets.mockResolvedValue([apiResult]); + + const client = new CLIPlatformClient(null, mockApiClient as any); + const results = await client.resolveFQSNs([fqsn]); + + expect(results).toHaveLength(1); + expect(results[0]).toEqual(apiResult); + expect((results[0] as any).secretLocation.secretType).toBe( + SecretType.FreeTrial, + ); + }); + + it("handles mixed results - some local, some from API", async () => { + const fqsn1: FQSN = { + packageSlugs: [ + { ownerSlug: "anthropic", packageSlug: "claude-sonnet" }, + ], + secretName: "ANTHROPIC_API_KEY", + }; + const fqsn2: FQSN = { + packageSlugs: [{ ownerSlug: "openai", packageSlug: "gpt-4" }], + secretName: "OPENAI_API_KEY", + }; + + // First secret is in local env + vi.stubEnv("ANTHROPIC_API_KEY", "local-anthropic-key"); + // Ensure second secret is not in local env + vi.stubEnv("OPENAI_API_KEY", undefined as unknown as string); + vi.mocked(fs.existsSync).mockReturnValue(false); + + // API returns models_add_on for the second secret + const apiResult: SecretResult = { + found: true, + fqsn: fqsn2, + secretLocation: { + secretType: SecretType.ModelsAddOn, + blockSlug: { ownerSlug: "openai", packageSlug: "gpt-4" }, + secretName: "OPENAI_API_KEY", + }, + }; + mockApiClient.syncSecrets.mockResolvedValue([apiResult]); + + const client = new CLIPlatformClient("org-123", mockApiClient as any); + const results = await client.resolveFQSNs([fqsn1, fqsn2]); + + // API should only be called for the unresolved secret + expect(mockApiClient.syncSecrets).toHaveBeenCalledWith({ + syncSecretsRequest: { + fqsns: [fqsn2], // Only fqsn2 should be sent to API + orgScopeId: "org-123", + }, + }); + + expect(results).toHaveLength(2); + + // First result from local env + expect(results[0]).toMatchObject({ + found: true, + value: "local-anthropic-key", + secretLocation: { + secretType: SecretType.LocalEnv, + }, + }); + + // Second result from API (models_add_on, no value) + expect(results[1]).toEqual(apiResult); + }); + + it("handles API errors gracefully", async () => { + const fqsn: FQSN = { + packageSlugs: [{ ownerSlug: "test", packageSlug: "model" }], + secretName: "API_KEY", + }; + + // No local env secret + vi.mocked(fs.existsSync).mockReturnValue(false); + + // API throws an error + mockApiClient.syncSecrets.mockRejectedValue(new Error("Network error")); + + const client = new CLIPlatformClient(null, mockApiClient as any); + const results = await client.resolveFQSNs([fqsn]); + + // Should return undefined for the unresolved secret + expect(results).toHaveLength(1); + expect(results[0]).toBeUndefined(); + }); + + it("does not call API when all secrets are found locally", async () => { + const fqsn1: FQSN = { + packageSlugs: [], + secretName: "SECRET_1", + }; + const fqsn2: FQSN = { + packageSlugs: [], + secretName: "SECRET_2", + }; + + // Both secrets are in local env + vi.stubEnv("SECRET_1", "value1"); + vi.stubEnv("SECRET_2", "value2"); + + const client = new CLIPlatformClient(null, mockApiClient as any); + const results = await client.resolveFQSNs([fqsn1, fqsn2]); + + // API should not be called at all + expect(mockApiClient.syncSecrets).not.toHaveBeenCalled(); + + expect(results).toHaveLength(2); + expect(results[0]).toMatchObject({ found: true, value: "value1" }); + expect(results[1]).toMatchObject({ found: true, value: "value2" }); + }); + + it("returns undefined for secrets not found anywhere", async () => { + const fqsn: FQSN = { + packageSlugs: [{ ownerSlug: "unknown", packageSlug: "model" }], + secretName: "UNKNOWN_KEY", + }; + + // No local env secret + vi.mocked(fs.existsSync).mockReturnValue(false); + + // API returns not found + const apiResult: SecretResult = { + found: false, + fqsn, + secretLocation: { + secretType: SecretType.NotFound, + secretName: "UNKNOWN_KEY", + }, + }; + mockApiClient.syncSecrets.mockResolvedValue([apiResult]); + + const client = new CLIPlatformClient(null, mockApiClient as any); + const results = await client.resolveFQSNs([fqsn]); + + expect(results).toHaveLength(1); + // Not found results should not be kept (found: false) + expect(results[0]).toBeUndefined(); + }); + + it("resolves secrets from process.env with file-based FQSN format (empty package slugs)", async () => { + // This tests the FQSN format used for slug injected blocks + // e.g., ${{ secrets.//ANTHROPIC_API_KEY }} which decodes to: + // { packageSlugs: [{ ownerSlug: "", packageSlug: "" }], secretName: "ANTHROPIC_API_KEY" } + const fqsn: FQSN = { + packageSlugs: [{ ownerSlug: "", packageSlug: "" }], + secretName: "ANTHROPIC_API_KEY", + }; + + // Secret is in process.env + vi.stubEnv("ANTHROPIC_API_KEY", "my-local-api-key"); + + const client = new CLIPlatformClient(null, mockApiClient as any); + const results = await client.resolveFQSNs([fqsn]); + + // Should not call API since local env has the secret + expect(mockApiClient.syncSecrets).not.toHaveBeenCalled(); + + expect(results).toHaveLength(1); + expect(results[0]).toMatchObject({ + found: true, + value: "my-local-api-key", + fqsn: { + packageSlugs: [{ ownerSlug: "", packageSlug: "" }], + secretName: "ANTHROPIC_API_KEY", + }, + secretLocation: { + secretType: SecretType.LocalEnv, + secretName: "ANTHROPIC_API_KEY", + }, + }); + }); + + it("falls back to API for file-based FQSN when not in local env", async () => { + // File-based FQSN with empty package slugs + const fqsn: FQSN = { + packageSlugs: [{ ownerSlug: "", packageSlug: "" }], + secretName: "OPENAI_API_KEY", + }; + + // Ensure no local env secret exists + vi.stubEnv("OPENAI_API_KEY", undefined as unknown as string); + vi.mocked(fs.existsSync).mockReturnValue(false); + + // API returns models_add_on (the server can still resolve this) + const apiResult: SecretResult = { + found: true, + fqsn, + secretLocation: { + secretType: SecretType.ModelsAddOn, + blockSlug: { ownerSlug: "", packageSlug: "" }, + secretName: "OPENAI_API_KEY", + }, + }; + mockApiClient.syncSecrets.mockResolvedValue([apiResult]); + + const client = new CLIPlatformClient("org-123", mockApiClient as any); + const results = await client.resolveFQSNs([fqsn]); + + expect(mockApiClient.syncSecrets).toHaveBeenCalledWith({ + syncSecretsRequest: { + fqsns: [fqsn], + orgScopeId: "org-123", + }, + }); + + expect(results).toHaveLength(1); + expect(results[0]).toEqual(apiResult); + }); + }); +}); diff --git a/extensions/cli/src/CLIPlatformClient.ts b/extensions/cli/src/CLIPlatformClient.ts index 2f0046397..c81e89b57 100644 --- a/extensions/cli/src/CLIPlatformClient.ts +++ b/extensions/cli/src/CLIPlatformClient.ts @@ -96,38 +96,44 @@ export class CLIPlatformClient implements PlatformClient { undefined, ); - // Try to resolve secrets through the API client first - try { - const apiResults: any = await this.apiClient.syncSecrets({ - syncSecretsRequest: { - fqsns, - orgScopeId: this.orgScopeId, - }, - }); - - // Merge API results into our results array - but only if they have an actual value - // API can return found=true for secrets that exist but aren't accessible locally - for (let i = 0; i < apiResults.length; i++) { - if (apiResults[i]?.found && "value" in apiResults[i]) { - results[i] = apiResults[i]; - } + // First, check local env files for secrets (highest priority for CLI) + // This allows users to override any secret with a local environment variable + for (let i = 0; i < fqsns.length; i++) { + const secretFromEnv = this.findSecretInLocalEnvFiles(fqsns[i]); + if (secretFromEnv?.found) { + results[i] = secretFromEnv; } - } catch (error) { - console.warn( - `Error resolving FQSNs through API: ${ - error instanceof Error ? error.message : String(error) - }`, - ); } - // For any secret without a value (not just "not found"), look in local .env files - // This allows environment variables to override org/package secrets that aren't accessible - for (let i = 0; i < fqsns.length; i++) { - if (!results[i] || !("value" in results[i]!)) { - const secretFromEnv = this.findSecretInLocalEnvFiles(fqsns[i]); - if (secretFromEnv?.found) { - results[i] = secretFromEnv; + // For secrets not found locally, try to resolve through the API + const unresolvedIndices = results + .map((r, i) => (r === undefined ? i : -1)) + .filter((i) => i !== -1); + + if (unresolvedIndices.length > 0) { + try { + const unresolvedFqsns = unresolvedIndices.map((i) => fqsns[i]); + const apiResults: any = await this.apiClient.syncSecrets({ + syncSecretsRequest: { + fqsns: unresolvedFqsns, + orgScopeId: this.orgScopeId, + }, + }); + + // Merge API results - keep all found results (with or without value) + // Results with value = user secrets (rendered directly) + // Results with secretLocation but no value = org/package/models_add_on/free_trial (will be proxied) + for (let j = 0; j < apiResults.length; j++) { + if (apiResults[j]?.found) { + results[unresolvedIndices[j]] = apiResults[j]; + } } + } catch (error) { + console.warn( + `Error resolving FQSNs through API: ${ + error instanceof Error ? error.message : String(error) + }`, + ); } } diff --git a/extensions/cli/src/commands/BaseCommandOptions.ts b/extensions/cli/src/commands/BaseCommandOptions.ts index 40db1aa7a..d9987403e 100644 --- a/extensions/cli/src/commands/BaseCommandOptions.ts +++ b/extensions/cli/src/commands/BaseCommandOptions.ts @@ -25,6 +25,8 @@ export interface BaseCommandOptions { agent?: string; /** Enable beta UploadArtifact tool */ betaUploadArtifactTool?: boolean; + /** Enable beta Subagent tool */ + betaSubagentTool?: boolean; } /** diff --git a/extensions/cli/src/commands/chat.ts b/extensions/cli/src/commands/chat.ts index 71c1d53a4..6ee33737d 100644 --- a/extensions/cli/src/commands/chat.ts +++ b/extensions/cli/src/commands/chat.ts @@ -363,7 +363,14 @@ async function processMessage( telemetryService.logUserPrompt(userInput.length, userInput); // Check if auto-compacting is needed BEFORE adding user message - if (shouldAutoCompact(services.chatHistory.getHistory(), model)) { + // Note: This is a preliminary check without tools/systemMessage context. + // The streaming path performs a more accurate check with full context. + if ( + shouldAutoCompact({ + chatHistory: services.chatHistory.getHistory(), + model, + }) + ) { const newIndex = await handleAutoCompaction( chatHistory, model, diff --git a/extensions/cli/src/index.ts b/extensions/cli/src/index.ts index 68a6b58cd..37dfd2cba 100644 --- a/extensions/cli/src/index.ts +++ b/extensions/cli/src/index.ts @@ -198,6 +198,10 @@ addCommonOptions(program) ) .option("--resume", "Resume from last session") .option("--fork ", "Fork from an existing session ID") + .option( + "--beta-subagent-tool", + "Enable beta Subagent tool for invoking subagents", + ) .action(async (prompt, options) => { // Telemetry: record command invocation await posthogService.capture("cliCommand", { command: "cn" }); diff --git a/extensions/cli/src/services/ModelService.ts b/extensions/cli/src/services/ModelService.ts index 2e43062e4..9e5422057 100644 --- a/extensions/cli/src/services/ModelService.ts +++ b/extensions/cli/src/services/ModelService.ts @@ -305,4 +305,25 @@ export class ModelService return nameMatches; }); } + + static getSubagentModels(modelState: ModelServiceState) { + if (!modelState.assistant) { + return []; + } + const subagentModels = modelState.assistant.models + ?.filter((model) => !!model) + .filter((model) => !!model.name) // filter out models without a name + .filter((model) => model.roles?.includes("subagent")) // filter with role subagent + .filter((model) => !!model.chatOptions?.baseSystemMessage); // filter those with a system message + + if (!subagentModels) { + return []; + } + return subagentModels?.map((model) => ({ + llmApi: createLlmApi(model, modelState.authConfig), + model, + assistant: modelState.assistant, + authConfig: modelState.authConfig, + })); + } } diff --git a/extensions/cli/src/services/UpdateService.ts b/extensions/cli/src/services/UpdateService.ts index cdf197134..e9759b6ce 100644 --- a/extensions/cli/src/services/UpdateService.ts +++ b/extensions/cli/src/services/UpdateService.ts @@ -170,17 +170,15 @@ export class UpdateService extends BaseService { this.setState({ status: UpdateStatus.UPDATED, - message: `${isAutoUpdate ? "Auto-updated to" : "Restart for"} v${this.currentState.latestVersion}`, + message: `Updated to v${this.currentState.latestVersion}`, isUpdateAvailable: false, }); - if (isAutoUpdate) { - this.restartCLI(); - } + this.restartCLI(); } catch (error: any) { logger.error("Error updating CLI:", error); this.setState({ status: UpdateStatus.ERROR, - message: isAutoUpdate ? "Auto-update failed" : "Update failed", + message: "Update failed", error, }); setTimeout(() => { diff --git a/extensions/cli/src/services/index.ts b/extensions/cli/src/services/index.ts index f53a53c84..56a5d4e93 100644 --- a/extensions/cli/src/services/index.ts +++ b/extensions/cli/src/services/index.ts @@ -1,6 +1,9 @@ import { loadAuthConfig } from "../auth/workos.js"; import { initializeWithOnboarding } from "../onboarding.js"; -import { setBetaUploadArtifactToolEnabled } from "../tools/toolsConfig.js"; +import { + setBetaSubagentToolEnabled, + setBetaUploadArtifactToolEnabled, +} from "../tools/toolsConfig.js"; import { logger } from "../util/logger.js"; import { AgentFileService } from "./AgentFileService.js"; @@ -62,6 +65,9 @@ export async function initializeServices(initOptions: ServiceInitOptions = {}) { if (commandOptions.betaUploadArtifactTool) { setBetaUploadArtifactToolEnabled(true); } + if (commandOptions.betaSubagentTool) { + setBetaSubagentToolEnabled(true); + } // Handle onboarding for TUI mode (headless: false) unless explicitly skipped if (!initOptions.headless && !initOptions.skipOnboarding) { const authConfig = loadAuthConfig(); @@ -383,6 +389,8 @@ export const services = { gitAiIntegration: gitAiIntegrationService, } as const; +export type ServicesType = typeof services; + // Export the service container for advanced usage export { serviceContainer }; diff --git a/extensions/cli/src/stream/streamChatResponse.autoCompaction.test.ts b/extensions/cli/src/stream/streamChatResponse.autoCompaction.test.ts index 1e0b6638a..20c654c40 100644 --- a/extensions/cli/src/stream/streamChatResponse.autoCompaction.test.ts +++ b/extensions/cli/src/stream/streamChatResponse.autoCompaction.test.ts @@ -99,7 +99,12 @@ describe("handleAutoCompaction", () => { wasCompacted: false, }); - expect(shouldAutoCompact).toHaveBeenCalledWith(mockChatHistory, mockModel); + expect(shouldAutoCompact).toHaveBeenCalledWith({ + chatHistory: mockChatHistory, + model: mockModel, + systemMessage: undefined, + tools: undefined, + }); }); it("should perform auto-compaction when context limit is approaching", async () => { @@ -144,7 +149,12 @@ describe("handleAutoCompaction", () => { }, ); - expect(shouldAutoCompact).toHaveBeenCalledWith(mockChatHistory, mockModel); + expect(shouldAutoCompact).toHaveBeenCalledWith({ + chatHistory: mockChatHistory, + model: mockModel, + systemMessage: undefined, + tools: undefined, + }); expect(getAutoCompactMessage).toHaveBeenCalledWith(mockModel); expect(compactChatHistory).toHaveBeenCalledWith( mockChatHistory, diff --git a/extensions/cli/src/stream/streamChatResponse.autoCompaction.ts b/extensions/cli/src/stream/streamChatResponse.autoCompaction.ts index 803e7cb06..c93f97e78 100644 --- a/extensions/cli/src/stream/streamChatResponse.autoCompaction.ts +++ b/extensions/cli/src/stream/streamChatResponse.autoCompaction.ts @@ -1,6 +1,7 @@ import { ModelConfig } from "@continuedev/config-yaml"; import { BaseLlmApi } from "@continuedev/openai-adapters"; import type { ChatHistoryItem } from "core/index.js"; +import type { ChatCompletionTool } from "openai/resources/chat/completions.mjs"; import React from "react"; import { compactChatHistory } from "../compaction.js"; @@ -27,6 +28,7 @@ interface AutoCompactionOptions { format?: "json"; callbacks?: AutoCompactionCallbacks; systemMessage?: string; + tools?: ChatCompletionTool[]; } /** @@ -133,9 +135,18 @@ export async function handleAutoCompaction( isHeadless = false, callbacks, systemMessage: providedSystemMessage, + tools, } = options; - if (!model || !shouldAutoCompact(chatHistory, model)) { + if ( + !model || + !shouldAutoCompact({ + chatHistory, + model, + systemMessage: providedSystemMessage, + tools, + }) + ) { return { chatHistory, compactionIndex: null, wasCompacted: false }; } diff --git a/extensions/cli/src/stream/streamChatResponse.compactionHelpers.ts b/extensions/cli/src/stream/streamChatResponse.compactionHelpers.ts index d1c42517f..b1d8fbe95 100644 --- a/extensions/cli/src/stream/streamChatResponse.compactionHelpers.ts +++ b/extensions/cli/src/stream/streamChatResponse.compactionHelpers.ts @@ -1,6 +1,7 @@ import { ModelConfig } from "@continuedev/config-yaml"; import { BaseLlmApi } from "@continuedev/openai-adapters"; import type { ChatHistoryItem } from "core/index.js"; +import type { ChatCompletionTool } from "openai/resources/chat/completions.mjs"; import { services } from "../services/index.js"; import { ToolCall } from "../tools/index.js"; @@ -17,6 +18,7 @@ export interface CompactionHelperOptions { isHeadless: boolean; callbacks?: StreamCallbacks; systemMessage: string; + tools?: ChatCompletionTool[]; } /** @@ -26,8 +28,15 @@ export async function handlePreApiCompaction( chatHistory: ChatHistoryItem[], options: CompactionHelperOptions, ): Promise<{ chatHistory: ChatHistoryItem[]; wasCompacted: boolean }> { - const { model, llmApi, isCompacting, isHeadless, callbacks, systemMessage } = - options; + const { + model, + llmApi, + isCompacting, + isHeadless, + callbacks, + systemMessage, + tools, + } = options; if (isCompacting) { return { chatHistory, wasCompacted: false }; @@ -41,6 +50,7 @@ export async function handlePreApiCompaction( onContent: callbacks?.onContent, }, systemMessage, + tools, }); if (wasCompacted) { @@ -67,7 +77,8 @@ export async function handlePostToolValidation( chatHistory: ChatHistoryItem[], options: CompactionHelperOptions, ): Promise<{ chatHistory: ChatHistoryItem[]; wasCompacted: boolean }> { - const { model, llmApi, isHeadless, callbacks, systemMessage } = options; + const { model, llmApi, isHeadless, callbacks, systemMessage, tools } = + options; if (toolCalls.length === 0) { return { chatHistory, wasCompacted: false }; @@ -82,21 +93,14 @@ export async function handlePostToolValidation( chatHistory = chatHistorySvc.getHistory(); } - // Validate with system message to catch tool result overflow - const postToolSystemItem: ChatHistoryItem = { - message: { - role: "system", - content: systemMessage, - }, - contextItems: [], - }; - const SAFETY_BUFFER = 100; - const postToolValidation = validateContextLength( - [postToolSystemItem, ...chatHistory], + const postToolValidation = validateContextLength({ + chatHistory, model, - SAFETY_BUFFER, - ); + safetyBuffer: SAFETY_BUFFER, + systemMessage, + tools, + }); // If tool results pushed us over limit, force compaction regardless of threshold if (!postToolValidation.isValid) { @@ -114,6 +118,7 @@ export async function handlePostToolValidation( onContent: callbacks?.onContent, }, systemMessage, + tools, }); if (wasCompacted) { @@ -127,11 +132,13 @@ export async function handlePostToolValidation( } // Verify compaction brought us under the limit - const postCompactionValidation = validateContextLength( - [postToolSystemItem, ...chatHistory], + const postCompactionValidation = validateContextLength({ + chatHistory, model, - SAFETY_BUFFER, - ); + safetyBuffer: SAFETY_BUFFER, + systemMessage, + tools, + }); if (!postCompactionValidation.isValid) { logger.error( @@ -171,7 +178,8 @@ export async function handleNormalAutoCompaction( shouldContinue: boolean, options: CompactionHelperOptions, ): Promise<{ chatHistory: ChatHistoryItem[]; wasCompacted: boolean }> { - const { model, llmApi, isHeadless, callbacks, systemMessage } = options; + const { model, llmApi, isHeadless, callbacks, systemMessage, tools } = + options; if (!shouldContinue) { return { chatHistory, wasCompacted: false }; @@ -193,6 +201,7 @@ export async function handleNormalAutoCompaction( onContent: callbacks?.onContent, }, systemMessage, + tools, }); if (wasCompacted) { diff --git a/extensions/cli/src/stream/streamChatResponse.ts b/extensions/cli/src/stream/streamChatResponse.ts index b63541db1..d4c0d85ee 100644 --- a/extensions/cli/src/stream/streamChatResponse.ts +++ b/extensions/cli/src/stream/streamChatResponse.ts @@ -215,25 +215,17 @@ export async function processStreamingResponse( let chatHistory = options.chatHistory; - // Create temporary system message item for validation - const systemMessageItem: ChatHistoryItem = { - message: { - role: "system", - content: systemMessage, - }, - contextItems: [], - }; - // Safety buffer to account for tokenization estimation errors const SAFETY_BUFFER = 100; - // Validate context length INCLUDING system message - let historyWithSystem = [systemMessageItem, ...chatHistory]; - let validation = validateContextLength( - historyWithSystem, + // Validate context length INCLUDING system message and tools + let validation = validateContextLength({ + chatHistory, model, - SAFETY_BUFFER, - ); + safetyBuffer: SAFETY_BUFFER, + systemMessage, + tools, + }); // Prune last messages until valid (excluding system message) while (chatHistory.length > 1 && !validation.isValid) { @@ -243,9 +235,14 @@ export async function processStreamingResponse( } chatHistory = prunedChatHistory; - // Re-validate with system message - historyWithSystem = [systemMessageItem, ...chatHistory]; - validation = validateContextLength(historyWithSystem, model, SAFETY_BUFFER); + // Re-validate with system message and tools + validation = validateContextLength({ + chatHistory, + model, + safetyBuffer: SAFETY_BUFFER, + systemMessage, + tools, + }); } if (!validation.isValid) { @@ -457,14 +454,15 @@ export async function streamChatResponse( chatHistory = refreshChatHistoryFromService(chatHistory, isCompacting); logger.debug("Starting conversation iteration"); - logger.debug("debug1 streamChatResponse history", { chatHistory }); - // Get system message once per iteration (can change based on tool permissions mode) const systemMessage = await services.systemMessage.getSystemMessage( services.toolPermissions.getState().currentMode, ); - // Pre-API auto-compaction checkpoint + // Recompute tools on each iteration to handle mode changes during streaming + const tools = await getRequestTools(isHeadless); + + // Pre-API auto-compaction checkpoint (now includes tools) const preCompactionResult = await handlePreApiCompaction(chatHistory, { model, llmApi, @@ -472,15 +470,13 @@ export async function streamChatResponse( isHeadless, callbacks, systemMessage, + tools, }); chatHistory = preCompactionResult.chatHistory; if (preCompactionResult.wasCompacted) { compactionOccurredThisTurn = true; } - // Recompute tools on each iteration to handle mode changes during streaming - const tools = await getRequestTools(isHeadless); - logger.debug("Tools prepared", { toolCount: tools.length, toolNames: tools.map((t) => t.function.name), @@ -541,6 +537,7 @@ export async function streamChatResponse( isHeadless, callbacks, systemMessage, + tools, }, ); chatHistory = postToolResult.chatHistory; @@ -559,6 +556,7 @@ export async function streamChatResponse( isHeadless, callbacks, systemMessage, + tools, }, ); chatHistory = compactionResult.chatHistory; diff --git a/extensions/cli/src/subagent/executor.ts b/extensions/cli/src/subagent/executor.ts new file mode 100644 index 000000000..1580e7f7f --- /dev/null +++ b/extensions/cli/src/subagent/executor.ts @@ -0,0 +1,213 @@ +import type { ChatHistoryItem } from "core"; + +import { services } from "../services/index.js"; +import { serviceContainer } from "../services/ServiceContainer.js"; +import type { ToolPermissionServiceState } from "../services/ToolPermissionService.js"; +import { ModelServiceState, SERVICE_NAMES } from "../services/types.js"; +import { streamChatResponse } from "../stream/streamChatResponse.js"; +import { escapeEvents } from "../util/cli.js"; +import { logger } from "../util/logger.js"; + +/** + * Options for executing a subagent + */ +export interface SubAgentExecutionOptions { + agent: ModelServiceState; + prompt: string; + parentSessionId: string; + abortController: AbortController; + onOutputUpdate?: (output: string) => void; +} + +/** + * Result from executing a subagent + */ +export interface SubAgentResult { + success: boolean; + response: string; + error?: string; +} + +/** + * Build system message for the agent + */ +async function buildAgentSystemMessage( + agent: ModelServiceState, + services: any, +): Promise { + const baseMessage = services.systemMessage + ? await services.systemMessage.getSystemMessage( + services.toolPermissions.getState().currentMode, + ) + : ""; + + const agentPrompt = agent.model?.chatOptions?.baseSystemMessage || ""; + + // Combine base system message with agent-specific prompt + if (agentPrompt) { + return `${baseMessage}\n\n${agentPrompt}`; + } + + return baseMessage; +} + +/** + * Execute a subagent in a child session + */ +// eslint-disable-next-line complexity +export async function executeSubAgent( + options: SubAgentExecutionOptions, +): Promise { + const { agent: subAgent, prompt, abortController, onOutputUpdate } = options; + + const mainAgentPermissionsState = + await serviceContainer.get( + SERVICE_NAMES.TOOL_PERMISSIONS, + ); + + try { + logger.debug("Starting subagent execution", { + agent: subAgent.model?.name, + }); + + const { model, llmApi } = subAgent; + if (!model || !llmApi) { + throw new Error("Model or LLM API not available"); + } + + // allow all tools for now + // todo: eventually we want to show the same prompt in a dialog whether asking whether that tool call is allowed or not + + serviceContainer.set( + SERVICE_NAMES.TOOL_PERMISSIONS, + { + ...mainAgentPermissionsState, + permissions: { + policies: [{ tool: "*", permission: "allow" }], + }, + }, + ); + + // Build agent system message + const systemMessage = await buildAgentSystemMessage(subAgent, services); + + // Store original system message function + const originalGetSystemMessage = services.systemMessage?.getSystemMessage; + + // Store original ChatHistoryService ready state + const chatHistorySvc = services.chatHistory; + const originalIsReady = + chatHistorySvc && typeof chatHistorySvc.isReady === "function" + ? chatHistorySvc.isReady + : undefined; + + // Override system message for this execution + if (services.systemMessage) { + services.systemMessage.getSystemMessage = async () => systemMessage; + } + + // Temporarily disable ChatHistoryService to prevent it from interfering with child session + if (chatHistorySvc && originalIsReady) { + chatHistorySvc.isReady = () => false; + } + + const chatHistory = [ + { + message: { + role: "user", + content: prompt, + }, + contextItems: [], + }, + ] as ChatHistoryItem[]; + + const escapeHandler = () => { + abortController.abort(); + chatHistory.push({ + message: { + role: "user", + content: "Subagent execution was cancelled by the user.", + }, + contextItems: [], + }); + }; + + escapeEvents.on("user-escape", escapeHandler); + + try { + let accumulatedOutput = ""; + + // Execute the chat stream with child session + await streamChatResponse( + chatHistory, + model, + llmApi, + abortController, + { + onContent: (content: string) => { + accumulatedOutput += content; + if (onOutputUpdate) { + onOutputUpdate(accumulatedOutput); + } + }, + onToolResult: (result: string) => { + // todo: skip tool outputs - show tool names and params + accumulatedOutput += `\n\n${result}`; + if (onOutputUpdate) { + onOutputUpdate(accumulatedOutput); + } + }, + }, + false, // Not compacting + ); + + // The last message (mostly) contains the important output to be submitted back to the main agent + const lastMessage = chatHistory.at(-1); + const response = + typeof lastMessage?.message?.content === "string" + ? lastMessage.message.content + : ""; + + logger.debug("Subagent execution completed", { + agent: model?.name, + responseLength: response.length, + }); + + return { + success: true, + response, + }; + } finally { + if (escapeHandler) { + escapeEvents.removeListener("user-escape", escapeHandler); + } + + // Restore original system message function + if (services.systemMessage && originalGetSystemMessage) { + services.systemMessage.getSystemMessage = originalGetSystemMessage; + } + + // Restore original ChatHistoryService ready state + if (chatHistorySvc && originalIsReady) { + chatHistorySvc.isReady = originalIsReady; + } + + // Restore original main agent tool permissions + serviceContainer.set( + SERVICE_NAMES.TOOL_PERMISSIONS, + mainAgentPermissionsState, + ); + } + } catch (error: any) { + logger.error("Subagent execution failed", { + agent: subAgent.model?.name, + error: error.message, + }); + + return { + success: false, + response: "", + error: error.message, + }; + } +} diff --git a/extensions/cli/src/subagent/get-agents.ts b/extensions/cli/src/subagent/get-agents.ts new file mode 100644 index 000000000..9abdc2d3a --- /dev/null +++ b/extensions/cli/src/subagent/get-agents.ts @@ -0,0 +1,40 @@ +import { ModelService } from "../services/ModelService.js"; +import type { ModelServiceState } from "../services/types.js"; + +/** + * Get an agent by name + */ +export function getSubagent(modelState: ModelServiceState, name: string) { + return ( + ModelService.getSubagentModels(modelState).find( + (model) => model.model.name === name, + ) ?? null + ); +} + +/** + * Generate dynamic tool description listing available agents + */ +export function generateSubagentToolDescription( + modelState: ModelServiceState, +): string { + const agentList = ModelService.getSubagentModels(modelState) + .map( + (subagentModel) => + ` - ${subagentModel.model.name}: ${subagentModel.model.chatOptions?.baseSystemMessage}`, + ) + .join("\n"); + + // todo: refine this prompt later + return `Launch a specialized subagent to handle a specific task. + +Here are the available subagents: +${agentList} +`; +} + +export function getAgentNames(modelState: ModelServiceState): string[] { + return ModelService.getSubagentModels(modelState).map( + (model) => model.model.name, + ); +} diff --git a/extensions/cli/src/subagent/index.ts b/extensions/cli/src/subagent/index.ts new file mode 100644 index 000000000..29f89fadc --- /dev/null +++ b/extensions/cli/src/subagent/index.ts @@ -0,0 +1,28 @@ +import { Tool } from "../tools/types.js"; + +export const SUBAGENT_TOOL_META: Tool = { + name: "Subagent", + displayName: "Subagent", + description: "Use a subagent to handle a specialized task.", + readonly: false, + isBuiltIn: true, + parameters: { + type: "object", + required: ["description", "prompt", "subagent_name"], + properties: { + description: { + type: "string", + description: "A short description of the task", + }, + prompt: { + type: "string", + description: "The task for the agent to perform", + }, + subagent_name: { + type: "string", + description: "The type of specialized agent to use for this task.", + }, + }, + }, + run: async () => "", +}; diff --git a/extensions/cli/src/tools/allBuiltIns.ts b/extensions/cli/src/tools/allBuiltIns.ts index 18a7e8eee..4e2f4a6d9 100644 --- a/extensions/cli/src/tools/allBuiltIns.ts +++ b/extensions/cli/src/tools/allBuiltIns.ts @@ -1,3 +1,5 @@ +import { SUBAGENT_TOOL_META } from "../subagent/index.js"; + import { editTool } from "./edit.js"; import { exitTool } from "./exit.js"; import { fetchTool } from "./fetch.js"; @@ -7,12 +9,13 @@ import { readFileTool } from "./readFile.js"; import { reportFailureTool } from "./reportFailure.js"; import { runTerminalCommandTool } from "./runTerminalCommand.js"; import { searchCodeTool } from "./searchCode.js"; +import type { Tool } from "./types.js"; import { uploadArtifactTool } from "./uploadArtifact.js"; import { writeChecklistTool } from "./writeChecklist.js"; import { writeFileTool } from "./writeFile.js"; // putting in here for circular import issue -export const ALL_BUILT_IN_TOOLS = [ +export const ALL_BUILT_IN_TOOLS: Tool[] = [ readFileTool, editTool, multiEditTool, @@ -22,6 +25,7 @@ export const ALL_BUILT_IN_TOOLS = [ runTerminalCommandTool, fetchTool, writeChecklistTool, + SUBAGENT_TOOL_META, exitTool, reportFailureTool, uploadArtifactTool, diff --git a/extensions/cli/src/tools/fetch.test.ts b/extensions/cli/src/tools/fetch.test.ts index 9a1aec105..cbb19e38b 100644 --- a/extensions/cli/src/tools/fetch.test.ts +++ b/extensions/cli/src/tools/fetch.test.ts @@ -48,7 +48,7 @@ describe("fetchTool", () => { ); }); - it("should handle truncation warnings from core implementation", async () => { + it("should filter out truncation warnings from core implementation", async () => { const mockContextItems: ContextItem[] = [ { name: "Long Page", @@ -68,9 +68,8 @@ describe("fetchTool", () => { const result = await fetchTool.run({ url: "https://example.com" }); - expect(result).toBe( - "This is the main content that was truncated.\n\nThe content from https://example.com was truncated because it exceeded the 20000 character limit.", - ); + // Truncation warnings are filtered out - only the main content is returned + expect(result).toBe("This is the main content that was truncated."); }); it("should handle multiple content items", async () => { diff --git a/extensions/cli/src/tools/fetch.ts b/extensions/cli/src/tools/fetch.ts index eaa7d1056..fba08948c 100644 --- a/extensions/cli/src/tools/fetch.ts +++ b/extensions/cli/src/tools/fetch.ts @@ -2,8 +2,23 @@ import type { ContextItem } from "core/index.js"; import { fetchUrlContentImpl } from "core/tools/implementations/fetchUrlContent.js"; import { ContinueError, ContinueErrorReason } from "core/util/errors.js"; +import { + parseEnvNumber, + truncateOutputFromEnd, +} from "../util/truncateOutput.js"; + import { Tool } from "./types.js"; +// Output truncation defaults +const DEFAULT_FETCH_MAX_CHARS = 20000; + +function getFetchMaxChars(): number { + return parseEnvNumber( + process.env.CONTINUE_CLI_FETCH_MAX_OUTPUT_LENGTH, + DEFAULT_FETCH_MAX_CHARS, + ); +} + export const fetchTool: Tool = { name: "Fetch", displayName: "Fetch", @@ -54,14 +69,20 @@ export const fetchTool: Tool = { } // Format the results for CLI display - return contextItems - .map((item: ContextItem) => { - if (item.name === "Truncation warning") { - return item.content; - } - return item.content; - }) + const combinedContent = contextItems + .filter((item: ContextItem) => item.name !== "Truncation warning") + .map((item: ContextItem) => item.content) .join("\n\n"); + + // Apply CLI-level truncation + const maxChars = getFetchMaxChars(); + const { output: truncatedOutput } = truncateOutputFromEnd( + combinedContent, + maxChars, + "fetched content", + ); + + return truncatedOutput; } catch (error) { if (error instanceof ContinueError) { throw error; diff --git a/extensions/cli/src/tools/gitAiIntegration.test.ts b/extensions/cli/src/tools/gitAiIntegration.test.ts index cc5c5f52a..d9d2c85e2 100644 --- a/extensions/cli/src/tools/gitAiIntegration.test.ts +++ b/extensions/cli/src/tools/gitAiIntegration.test.ts @@ -1,4 +1,4 @@ -import { describe, it, expect, vi, beforeEach, afterEach } from "vitest"; +import { afterEach, beforeEach, describe, expect, it, vi } from "vitest"; import type { PreprocessedToolCall } from "./types.js"; @@ -69,6 +69,7 @@ describe("Git AI Integration - executeToolCall", () => { oldContent: "old", newContent: "new", }, + context: { toolCallId: "test-edit-id" }, }, }; @@ -94,11 +95,16 @@ describe("Git AI Integration - executeToolCall", () => { ); // Verify tool.run was called - expect(mockTool.run).toHaveBeenCalledWith({ - resolvedPath: "/test/file.ts", - oldContent: "old", - newContent: "new", - }); + expect(mockTool.run).toHaveBeenCalledWith( + { + resolvedPath: "/test/file.ts", + oldContent: "old", + newContent: "new", + }, + { + toolCallId: "test-edit-id", + }, + ); }); it("should call git-ai before and after MultiEdit tool execution", async () => { diff --git a/extensions/cli/src/tools/index.tsx b/extensions/cli/src/tools/index.tsx index efc7a1e5f..8ec0aca35 100644 --- a/extensions/cli/src/tools/index.tsx +++ b/extensions/cli/src/tools/index.tsx @@ -28,7 +28,11 @@ import { readFileTool } from "./readFile.js"; import { reportFailureTool } from "./reportFailure.js"; import { runTerminalCommandTool } from "./runTerminalCommand.js"; import { checkIfRipgrepIsInstalled, searchCodeTool } from "./searchCode.js"; -import { isBetaUploadArtifactToolEnabled } from "./toolsConfig.js"; +import { subagentTool } from "./subagent.js"; +import { + isBetaSubagentToolEnabled, + isBetaUploadArtifactToolEnabled, +} from "./toolsConfig.js"; import { type Tool, type ToolCall, @@ -119,6 +123,10 @@ export async function getAllAvailableTools( tools.push(exitTool); } + if (isBetaSubagentToolEnabled()) { + tools.push(await subagentTool()); + } + const mcpState = await serviceContainer.get( SERVICE_NAMES.MCP, ); @@ -214,6 +222,7 @@ export async function executeToolCall( // Preprocessed arg names may be different const result = await toolCall.tool.run( toolCall.preprocessResult?.args ?? toolCall.arguments, + { toolCallId: toolCall.id }, ); const duration = Date.now() - startTime; diff --git a/extensions/cli/src/tools/readFile.ts b/extensions/cli/src/tools/readFile.ts index 9bcf18329..bde647a07 100644 --- a/extensions/cli/src/tools/readFile.ts +++ b/extensions/cli/src/tools/readFile.ts @@ -3,9 +3,32 @@ import * as fs from "fs"; import { throwIfFileIsSecurityConcern } from "core/indexing/ignore.js"; import { ContinueError, ContinueErrorReason } from "core/util/errors.js"; +import { + parseEnvNumber, + truncateByLinesAndChars, +} from "../util/truncateOutput.js"; + import { formatToolArgument } from "./formatters.js"; import { Tool } from "./types.js"; +// Output truncation defaults +const DEFAULT_READ_FILE_MAX_CHARS = 100000; // ~25k tokens +const DEFAULT_READ_FILE_MAX_LINES = 5000; + +function getReadFileMaxChars(): number { + return parseEnvNumber( + process.env.CONTINUE_CLI_READ_FILE_MAX_OUTPUT_CHARS, + DEFAULT_READ_FILE_MAX_CHARS, + ); +} + +function getReadFileMaxLines(): number { + return parseEnvNumber( + process.env.CONTINUE_CLI_READ_FILE_MAX_OUTPUT_LINES, + DEFAULT_READ_FILE_MAX_LINES, + ); +} + // Track files that have been read in the current session export const readFilesSet = new Set(); export function markFileAsRead(filePath: string) { @@ -62,13 +85,17 @@ export const readFileTool: Tool = { // Mark this file as read for the edit tool markFileAsRead(realPath); - const lines = content.split("\n"); - if (lines.length > 5000) { - const truncatedContent = lines.slice(0, 5000).join("\n"); - return `Content of ${filepath} (truncated to first 5000 lines of ${lines.length} total):\n${truncatedContent}`; + const maxLines = getReadFileMaxLines(); + const maxChars = getReadFileMaxChars(); + + const { output: truncatedContent, wasTruncated } = + truncateByLinesAndChars(content, maxLines, maxChars, "file content"); + + if (wasTruncated) { + return `Content of ${filepath} (truncated):\n${truncatedContent}`; } - return `Content of ${filepath}:\n${content}`; + return `Content of ${filepath}:\n${truncatedContent}`; } catch (error) { if (error instanceof ContinueError) { throw error; diff --git a/extensions/cli/src/tools/runTerminalCommand.ts b/extensions/cli/src/tools/runTerminalCommand.ts index ed4a2e49b..df8a8beea 100644 --- a/extensions/cli/src/tools/runTerminalCommand.ts +++ b/extensions/cli/src/tools/runTerminalCommand.ts @@ -10,9 +10,31 @@ import { isGitCommitCommand, isPullRequestCommand, } from "../telemetry/utils.js"; +import { + parseEnvNumber, + truncateOutputFromStart, +} from "../util/truncateOutput.js"; import { Tool } from "./types.js"; +// Output truncation defaults +const DEFAULT_BASH_MAX_CHARS = 50000; +const DEFAULT_BASH_MAX_LINES = 1000; + +function getBashMaxChars(): number { + return parseEnvNumber( + process.env.CONTINUE_CLI_BASH_MAX_OUTPUT_CHARS, + DEFAULT_BASH_MAX_CHARS, + ); +} + +function getBashMaxLines(): number { + return parseEnvNumber( + process.env.CONTINUE_CLI_BASH_MAX_OUTPUT_LINES, + DEFAULT_BASH_MAX_LINES, + ); +} + // Helper function to use login shell on Unix/macOS and PowerShell on Windows function getShellCommand(command: string): { shell: string; args: string[] } { if (process.platform === "win32") { @@ -120,18 +142,12 @@ IMPORTANT: To edit files, use Edit/MultiEdit tools instead of bash commands (sed let output = stdout + (stderr ? `\nStderr: ${stderr}` : ""); output += `\n\n[Command timed out after ${TIMEOUT_MS / 1000} seconds of no output]`; - // Truncate output if it has too many lines - const lines = output.split("\n"); - if (lines.length > 5000) { - const truncatedOutput = lines.slice(0, 5000).join("\n"); - resolve( - truncatedOutput + - `\n\n[Output truncated to first 5000 lines of ${lines.length} total]`, - ); - return; - } - - resolve(output); + resolve( + truncateOutputFromStart(output, { + maxChars: getBashMaxChars(), + maxLines: getBashMaxLines(), + }).output, + ); }, TIMEOUT_MS); }; @@ -176,18 +192,12 @@ IMPORTANT: To edit files, use Edit/MultiEdit tools instead of bash commands (sed output = stdout + `\nStderr: ${stderr}`; } - // Truncate output if it has too many lines - const lines = output.split("\n"); - if (lines.length > 5000) { - const truncatedOutput = lines.slice(0, 5000).join("\n"); - resolve( - truncatedOutput + - `\n\n[Output truncated to first 5000 lines of ${lines.length} total]`, - ); - return; - } - - resolve(output); + resolve( + truncateOutputFromStart(output, { + maxChars: getBashMaxChars(), + maxLines: getBashMaxLines(), + }).output, + ); }); child.on("error", (error) => { diff --git a/extensions/cli/src/tools/searchCode.ts b/extensions/cli/src/tools/searchCode.ts index e7fa4e502..ab60b1a93 100644 --- a/extensions/cli/src/tools/searchCode.ts +++ b/extensions/cli/src/tools/searchCode.ts @@ -5,6 +5,8 @@ import * as util from "util"; import { ContinueError, ContinueErrorReason } from "core/util/errors.js"; import { findUp } from "find-up"; +import { parseEnvNumber } from "../util/truncateOutput.js"; + import { Tool } from "./types.js"; const execPromise = util.promisify(child_process.exec); @@ -80,9 +82,23 @@ async function searchWithGrepOrFindstr( return await execPromise(command, { cwd: searchPath }); } -// Default maximum number of results to display -const DEFAULT_MAX_RESULTS = 100; -const MAX_LINE_LENGTH = 1000; +// Output truncation defaults +const DEFAULT_SEARCH_MAX_RESULTS = 100; +const DEFAULT_SEARCH_MAX_RESULT_CHARS = 1000; // Max chars per result line + +function getSearchMaxResults(): number { + return parseEnvNumber( + process.env.CONTINUE_CLI_SEARCH_CODE_MAX_RESULTS, + DEFAULT_SEARCH_MAX_RESULTS, + ); +} + +function getSearchMaxResultChars(): number { + return parseEnvNumber( + process.env.CONTINUE_CLI_SEARCH_CODE_MAX_RESULT_CHARS, + DEFAULT_SEARCH_MAX_RESULT_CHARS, + ); +} export const searchCodeTool: Tool = { name: "Search", @@ -168,19 +184,22 @@ export const searchCodeTool: Tool = { } // Split the results into lines and limit the number of results + const maxResults = getSearchMaxResults(); + const maxResultChars = getSearchMaxResultChars(); + const splitLines = stdout.split("\n"); - const lines = splitLines.filter((line) => line.length <= MAX_LINE_LENGTH); + const lines = splitLines.filter((line) => line.length <= maxResultChars); if (lines.length === 0) { return `No matches found for pattern "${args.pattern}"${ args.file_pattern ? ` in files matching "${args.file_pattern}"` : "" }.`; } - const truncated = lines.length > DEFAULT_MAX_RESULTS; - const limitedLines = lines.slice(0, DEFAULT_MAX_RESULTS); + const truncated = lines.length > maxResults; + const limitedLines = lines.slice(0, maxResults); const resultText = limitedLines.join("\n"); const truncationMessage = truncated - ? `\n\n[Results truncated: showing ${DEFAULT_MAX_RESULTS} of ${lines.length} matches]` + ? `\n\n[Results truncated: showing ${maxResults} of ${lines.length} matches]` : ""; return `Search results for pattern "${args.pattern}"${ diff --git a/extensions/cli/src/tools/subagent.test.ts b/extensions/cli/src/tools/subagent.test.ts new file mode 100644 index 000000000..e4f2d61ea --- /dev/null +++ b/extensions/cli/src/tools/subagent.test.ts @@ -0,0 +1,121 @@ +import { beforeEach, describe, expect, it, vi } from "vitest"; + +import { services } from "../services/index.js"; +import { serviceContainer } from "../services/ServiceContainer.js"; +import { executeSubAgent } from "../subagent/executor.js"; +import { getAgentNames, getSubagent } from "../subagent/get-agents.js"; + +import { subagentTool } from "./subagent.js"; + +vi.mock("../subagent/get-agents.js"); +vi.mock("../subagent/executor.js"); +vi.mock("../services/ServiceContainer.js", () => ({ + serviceContainer: { + get: vi.fn(), + }, +})); +vi.mock("../services/index.js", () => ({ + services: { + chatHistory: { + getSessionId: vi.fn().mockReturnValue("parent-session-id"), + addToolResult: vi.fn(), + }, + }, +})); + +describe("subagentTool", () => { + const modelServiceState = {} as any; + + beforeEach(() => { + vi.clearAllMocks(); + vi.mocked(serviceContainer.get).mockResolvedValue(modelServiceState); + }); + + it("preprocess throws when agent is not found", async () => { + vi.mocked(getAgentNames).mockReturnValue(["code-agent"]); + + const tool = await subagentTool(); + + const args = { + description: "Test task", + prompt: "Do something", + subagent_name: "unknown-agent", + }; + + await expect(tool.preprocess!(args)).rejects.toThrow( + "Unknown agent type: unknown-agent", + ); + expect(vi.mocked(getSubagent)).toHaveBeenCalledWith( + modelServiceState, + "unknown-agent", + ); + }); + + it("preprocess includes agent model name when agent exists", async () => { + vi.mocked(getAgentNames).mockReturnValue(["code-agent"]); + + const tool = await subagentTool(); + + vi.mocked(getSubagent).mockReturnValue({ + model: { name: "test-model" }, + } as any); + + const args = { + description: "Handle specialized task", + prompt: "Do it", + subagent_name: "code-agent", + }; + + const result = await tool.preprocess!(args); + + expect(result.preview).toEqual([ + { + type: "text", + content: "Spawning test-model to: Handle specialized task", + }, + ]); + expect(vi.mocked(getSubagent)).toHaveBeenCalledWith( + modelServiceState, + "code-agent", + ); + }); + + it("run executes subagent and returns formatted output", async () => { + vi.mocked(getAgentNames).mockReturnValue(["code-agent"]); + vi.mocked(getSubagent).mockReturnValue({ + model: { name: "test-model" }, + } as any); + vi.mocked(executeSubAgent).mockResolvedValue({ + success: true, + response: "subagent-output", + } as any); + + const tool = await subagentTool(); + + const result = await tool.run( + { + prompt: "Subagent prompt", + subagent_name: "code-agent", + }, + { toolCallId: "tool-call-id" }, + ); + + expect(vi.mocked(executeSubAgent)).toHaveBeenCalledTimes(1); + const [options] = vi.mocked(executeSubAgent).mock.calls[0]; + + expect(options.prompt).toBe("Subagent prompt"); + expect(options.parentSessionId).toBe("parent-session-id"); + expect(typeof options.onOutputUpdate).toBe("function"); + + options.onOutputUpdate?.("partial-output"); + expect(vi.mocked(services.chatHistory.addToolResult)).toHaveBeenCalledWith( + "tool-call-id", + "partial-output", + "calling", + ); + + expect(result).toBe( + "subagent-output\n\nstatus: completed\n", + ); + }); +}); diff --git a/extensions/cli/src/tools/subagent.ts b/extensions/cli/src/tools/subagent.ts new file mode 100644 index 000000000..43d2d29eb --- /dev/null +++ b/extensions/cli/src/tools/subagent.ts @@ -0,0 +1,115 @@ +import { services } from "../services/index.js"; +import { serviceContainer } from "../services/ServiceContainer.js"; +import { ModelServiceState, SERVICE_NAMES } from "../services/types.js"; +import { executeSubAgent } from "../subagent/executor.js"; +import { + generateSubagentToolDescription, + getSubagent, + getAgentNames as getSubagentNames, +} from "../subagent/get-agents.js"; +import { SUBAGENT_TOOL_META } from "../subagent/index.js"; +import { logger } from "../util/logger.js"; + +import { Tool } from "./types.js"; + +export const subagentTool = async (): Promise => { + const modelServiceState = await serviceContainer.get( + SERVICE_NAMES.MODEL, + ); + + return { + ...SUBAGENT_TOOL_META, + + description: generateSubagentToolDescription(modelServiceState), + + parameters: { + ...SUBAGENT_TOOL_META.parameters, + properties: { + ...SUBAGENT_TOOL_META.parameters.properties, + subagent_name: { + type: "string", + description: `The type of specialized agent to use for this task. Available agents: ${ + modelServiceState + ? getSubagentNames(modelServiceState).join(", ") + : "" + }`, + }, + }, + }, + + preprocess: async (args: any) => { + const { description, subagent_name } = args; + + const agent = getSubagent(modelServiceState, subagent_name); + if (!agent) { + throw new Error( + `Unknown agent type: ${subagent_name}. Available agents: ${getSubagentNames( + modelServiceState, + ).join(", ")}`, + ); + } + + return { + args, + preview: [ + { + type: "text", + content: `Spawning ${agent.model.name} to: ${description}`, + }, + ], + }; + }, + + run: async (args: any, context?: { toolCallId: string }) => { + const { prompt, subagent_name } = args; + + logger.debug("subagent args", { args, context }); + + // get agent configuration + const agent = getSubagent(modelServiceState, subagent_name); + if (!agent) { + throw new Error(`Unknown agent type: ${subagent_name}`); + } + + const chatHistoryService = services.chatHistory; + const parentSessionId = chatHistoryService.getSessionId(); + if (!parentSessionId) { + throw new Error("No active session found"); + } + + // Execute subagent with output streaming + const result = await executeSubAgent({ + agent, + prompt, + parentSessionId, + abortController: new AbortController(), + onOutputUpdate: context?.toolCallId + ? (output: string) => { + try { + chatHistoryService.addToolResult( + context.toolCallId, + output, + "calling", + ); + } catch { + // Ignore errors during streaming updates + } + } + : undefined, + }); + + logger.debug("subagent result", { result }); + + const output = [ + result.response, + "", + `status: ${result.success ? "completed" : "failed"}`, + "", + ] + .filter(Boolean) + .join("\n"); + + return output; + }, + }; +}; diff --git a/extensions/cli/src/tools/toolsConfig.ts b/extensions/cli/src/tools/toolsConfig.ts index b1703a545..e9a2e0233 100644 --- a/extensions/cli/src/tools/toolsConfig.ts +++ b/extensions/cli/src/tools/toolsConfig.ts @@ -4,6 +4,7 @@ */ let betaUploadArtifactToolEnabled = false; +let betaSubagentToolEnabled = false; export function setBetaUploadArtifactToolEnabled(enabled: boolean): void { betaUploadArtifactToolEnabled = enabled; @@ -12,3 +13,11 @@ export function setBetaUploadArtifactToolEnabled(enabled: boolean): void { export function isBetaUploadArtifactToolEnabled(): boolean { return betaUploadArtifactToolEnabled; } + +export function setBetaSubagentToolEnabled(enabled: boolean): void { + betaSubagentToolEnabled = enabled; +} + +export function isBetaSubagentToolEnabled(): boolean { + return betaSubagentToolEnabled; +} diff --git a/extensions/cli/src/tools/types.ts b/extensions/cli/src/tools/types.ts index 5adb45a92..544c6d970 100644 --- a/extensions/cli/src/tools/types.ts +++ b/extensions/cli/src/tools/types.ts @@ -29,6 +29,7 @@ export interface ToolCallPreview { export interface PreprocessToolCallResult { preview?: ToolCallPreview[]; args: Record; + context?: { toolCallId: string }; } export interface Tool { @@ -37,7 +38,7 @@ export interface Tool { description: string; parameters: ToolParametersSchema; preprocess?: (args: any) => Promise; - run: (args: any) => Promise; + run: (args: any, context?: { toolCallId: string }) => Promise; readonly?: boolean; // Indicates if the tool is readonly isBuiltIn: boolean; evaluateToolCallPolicy?: ( diff --git a/extensions/cli/src/tools/viewDiff.ts b/extensions/cli/src/tools/viewDiff.ts index 8b9f12d1d..e9461d66c 100644 --- a/extensions/cli/src/tools/viewDiff.ts +++ b/extensions/cli/src/tools/viewDiff.ts @@ -2,8 +2,23 @@ import * as child_process from "child_process"; import * as fs from "fs"; import * as util from "util"; +import { + parseEnvNumber, + truncateOutputFromEnd, +} from "../util/truncateOutput.js"; + import { Tool } from "./types.js"; +// Output truncation defaults +const DEFAULT_DIFF_MAX_CHARS = 50000; + +function getDiffMaxChars(): number { + return parseEnvNumber( + process.env.CONTINUE_CLI_DIFF_MAX_OUTPUT_LENGTH, + DEFAULT_DIFF_MAX_CHARS, + ); +} + const execPromise = util.promisify(child_process.exec); export const viewDiffTool: Tool = { @@ -60,7 +75,14 @@ export const viewDiffTool: Tool = { return "No changes detected in the git repository."; } - return `Git diff for repository at ${repoPath}:\n\n${stdout}`; + const maxChars = getDiffMaxChars(); + const { output: truncatedOutput } = truncateOutputFromEnd( + stdout, + maxChars, + "diff output", + ); + + return `Git diff for repository at ${repoPath}:\n\n${truncatedOutput}`; } catch (error) { return `Error running git diff: ${ error instanceof Error ? error.message : String(error) diff --git a/extensions/cli/src/ui/IntroMessage.test.tsx b/extensions/cli/src/ui/IntroMessage.test.tsx index 6f024b96e..2a8f566c4 100644 --- a/extensions/cli/src/ui/IntroMessage.test.tsx +++ b/extensions/cli/src/ui/IntroMessage.test.tsx @@ -53,12 +53,12 @@ describe("IntroMessage", () => { expect(lastFrame()).not.toContain("Mocked TipsDisplay"); }); - it("renders agent name when config is provided", () => { + it("renders config name when config is provided", () => { const config = { name: "Test Agent", version: "1.0.0", rules: [] }; const { lastFrame } = render(); - expect(lastFrame()).toContain("Agent:"); + expect(lastFrame()).toContain("Config:"); expect(lastFrame()).toContain("Test Agent"); }); diff --git a/extensions/cli/src/ui/IntroMessage.tsx b/extensions/cli/src/ui/IntroMessage.tsx index 139db3e8b..df3fb2f22 100644 --- a/extensions/cli/src/ui/IntroMessage.tsx +++ b/extensions/cli/src/ui/IntroMessage.tsx @@ -110,7 +110,7 @@ const IntroMessage: React.FC = ({ {/* Agent name */} {config && ( - Agent: {config.name} + Config: {config.name} )} diff --git a/extensions/cli/src/ui/ServiceDebugger.tsx b/extensions/cli/src/ui/ServiceDebugger.tsx index e10786dc5..d75d6765c 100644 --- a/extensions/cli/src/ui/ServiceDebugger.tsx +++ b/extensions/cli/src/ui/ServiceDebugger.tsx @@ -47,7 +47,7 @@ const ServiceDebugger: React.FC = ({ ? `User: ${service.authConfig.email || "unknown"}` : "No auth config"; case "config": - return service?.config ? `Agent: ${service.config.name}` : "No config"; + return service?.config ? `Config: ${service.config.name}` : "No config"; case "model": return service?.model ? `Model: ${service.model.name}` : "No model"; case "mcp": diff --git a/extensions/cli/src/ui/ToolResultSummary.tsx b/extensions/cli/src/ui/ToolResultSummary.tsx index 9e2de0824..97e179427 100644 --- a/extensions/cli/src/ui/ToolResultSummary.tsx +++ b/extensions/cli/src/ui/ToolResultSummary.tsx @@ -115,6 +115,57 @@ const ToolResultSummary: React.FC = ({ } } + // show streaming output for subagent tool output + if (toolName === "Subagent") { + const metadataIndex = content.indexOf(""); + const actualOutput = + metadataIndex >= 0 ? content.slice(0, metadataIndex).trim() : content; + + if (!actualOutput) { + return ( + + ⎿ + Subagent executing... + + ); + } + + const outputLines = actualOutput.split("\n"); + const MAX_TASK_OUTPUT_LINES = 20; + + if (outputLines.length <= MAX_TASK_OUTPUT_LINES) { + return ( + + + ⎿ + Subagent output: + + + {actualOutput.trimEnd()} + + + ); + } else { + const lastLines = outputLines.slice(-MAX_TASK_OUTPUT_LINES).join("\n"); + return ( + + + ⎿ + Subagent output: + + + + ... +{outputLines.length - MAX_TASK_OUTPUT_LINES} lines + + + + {lastLines.trimEnd()} + + + ); + } + } + // Handle all other cases with text summary const getSummary = () => { // Check if this is a user cancellation first diff --git a/extensions/cli/src/ui/UserInput.tsx b/extensions/cli/src/ui/UserInput.tsx index 470688120..205d48b2e 100644 --- a/extensions/cli/src/ui/UserInput.tsx +++ b/extensions/cli/src/ui/UserInput.tsx @@ -1,4 +1,5 @@ /* eslint-disable max-lines */ + import { type AssistantConfig } from "@continuedev/sdk"; import { Box, Text, useApp, useInput } from "ink"; import React, { useCallback, useRef, useState } from "react"; @@ -13,6 +14,7 @@ import { services, } from "../services/index.js"; import { messageQueue } from "../stream/messageQueue.js"; +import { escapeEvents } from "../util/cli.js"; import { InputHistory } from "../util/inputHistory.js"; import { FileSearchUI } from "./FileSearchUI.js"; @@ -616,6 +618,8 @@ const UserInput: React.FC = ({ const handleEscapeKey = (key: any): boolean => { if (!key.escape) return false; + escapeEvents.emit("user-escape"); + // If only "!" is present, clear shell mode if (inputMode && showBashMode && inputText.trim() === "!") { textBuffer.clear(); diff --git a/extensions/cli/src/ui/hooks/useChat.compaction.ts b/extensions/cli/src/ui/hooks/useChat.compaction.ts index 250165499..8b6c3b90a 100644 --- a/extensions/cli/src/ui/hooks/useChat.compaction.ts +++ b/extensions/cli/src/ui/hooks/useChat.compaction.ts @@ -137,9 +137,10 @@ export async function handleAutoCompaction({ currentCompactionIndex: number | null; }> { try { - // Check if auto-compaction is needed // Check if auto-compaction is needed using ChatHistoryItem directly - if (!model || !shouldAutoCompact(chatHistory, model)) { + // Note: TUI mode doesn't have access to tools/systemMessage at this point, + // so we use a simplified check. The streaming path has full context. + if (!model || !shouldAutoCompact({ chatHistory, model })) { return { currentChatHistory: chatHistory, currentCompactionIndex: _compactionIndex, diff --git a/extensions/cli/src/util/cli.ts b/extensions/cli/src/util/cli.ts index 5132fd4c1..b8e359a1d 100644 --- a/extensions/cli/src/util/cli.ts +++ b/extensions/cli/src/util/cli.ts @@ -2,6 +2,8 @@ * Utility functions for CLI operations */ +import EventEmitter from "events"; + /** * Check if running in headless mode (-p/--print flags) */ @@ -90,3 +92,5 @@ export function hasSuppliedPrompt(): boolean { return false; } + +export const escapeEvents = new EventEmitter(); diff --git a/extensions/cli/src/util/exponentialBackoff.ts b/extensions/cli/src/util/exponentialBackoff.ts index c44aee6e8..8f3004ae9 100644 --- a/extensions/cli/src/util/exponentialBackoff.ts +++ b/extensions/cli/src/util/exponentialBackoff.ts @@ -80,8 +80,18 @@ function isConnectionError(errorMessage: string): boolean { /** * Checks if the error indicates a context length issue (non-retryable) */ -export function isContextLengthError(error: any): boolean { +export function isContextLengthError(error: unknown): boolean { + if (!(error instanceof Error)) { + return false; + } const errorMessage = error.message?.toLowerCase() || ""; + + if (errorMessage.includes("invalid_request_error")) { + if (errorMessage.includes("context")) { + return true; + } + } + const contextLengthPatterns = [ // Anthropic Claude "input length and max_tokens exceed context limit", @@ -94,7 +104,6 @@ export function isContextLengthError(error: any): boolean { "use a shorter prompt", // Generic patterns "context_length_exceeded", - "invalid_request_error", ]; return contextLengthPatterns.some((pattern) => diff --git a/extensions/cli/src/util/tokenizer.contextValidation.test.ts b/extensions/cli/src/util/tokenizer.contextValidation.test.ts index 79377ab48..a9b8dbc2b 100644 --- a/extensions/cli/src/util/tokenizer.contextValidation.test.ts +++ b/extensions/cli/src/util/tokenizer.contextValidation.test.ts @@ -31,7 +31,7 @@ describe("validateContextLength", () => { const model = createMockModel(1000, 200); const chatHistory = createMockHistory(5, 40); // ~50 tokens total - const result = validateContextLength(chatHistory, model); + const result = validateContextLength({ chatHistory, model }); expect(result.isValid).toBe(true); expect(result.error).toBeUndefined(); @@ -41,7 +41,7 @@ describe("validateContextLength", () => { const model = createMockModel(1000, 800); const chatHistory = createMockHistory(20, 100); // ~500+ tokens - const result = validateContextLength(chatHistory, model); + const result = validateContextLength({ chatHistory, model }); expect(result.isValid).toBe(false); expect(result.error).toContain("Context length exceeded"); @@ -54,7 +54,7 @@ describe("validateContextLength", () => { const model = createMockModel(200_000, 64_000); // Claude-like model const chatHistory = createMockHistory(100, 1000); // Large conversation - const result = validateContextLength(chatHistory, model); + const result = validateContextLength({ chatHistory, model }); expect(result.contextLimit).toBe(200_000); expect(result.maxTokens).toBe(64_000); diff --git a/extensions/cli/src/util/tokenizer.test.ts b/extensions/cli/src/util/tokenizer.test.ts index 807f1174d..f1361732e 100644 --- a/extensions/cli/src/util/tokenizer.test.ts +++ b/extensions/cli/src/util/tokenizer.test.ts @@ -9,6 +9,7 @@ import { countChatHistoryItemTokens, countChatHistoryTokens, countMessageTokens, + countToolDefinitionTokens, getModelContextLimit, shouldAutoCompact, } from "./tokenizer.js"; @@ -232,7 +233,7 @@ describe("tokenizer", () => { // Threshold: 800 * 0.8 = 640 const chatHistory = createChatHistory(650); // Above threshold - expect(shouldAutoCompact(chatHistory, model)).toBe(true); + expect(shouldAutoCompact({ chatHistory, model })).toBe(true); }); it("should not compact when input tokens are below threshold with maxTokens", () => { @@ -241,7 +242,7 @@ describe("tokenizer", () => { // Threshold: 800 * 0.8 = 640 const chatHistory = createChatHistory(600); // Below threshold - expect(shouldAutoCompact(chatHistory, model)).toBe(false); + expect(shouldAutoCompact({ chatHistory, model })).toBe(false); }); it("should use 35% default reservation when maxTokens is not set", () => { @@ -251,7 +252,7 @@ describe("tokenizer", () => { // Threshold: 650 * 0.8 = 520 const chatHistory = createChatHistory(530); // Above threshold - expect(shouldAutoCompact(chatHistory, model)).toBe(true); + expect(shouldAutoCompact({ chatHistory, model })).toBe(true); }); it("should not compact when below default threshold without maxTokens", () => { @@ -260,14 +261,14 @@ describe("tokenizer", () => { // Threshold: 650 * 0.8 = 520 const chatHistory = createChatHistory(500); // Below threshold - expect(shouldAutoCompact(chatHistory, model)).toBe(false); + expect(shouldAutoCompact({ chatHistory, model })).toBe(false); }); it("should throw error when maxTokens >= contextLength", () => { const model = createModel(1000, 1000); // maxTokens equals contextLength const chatHistory = createChatHistory(1); // Minimal input - expect(() => shouldAutoCompact(chatHistory, model)).toThrow( + expect(() => shouldAutoCompact({ chatHistory, model })).toThrow( "max_tokens is larger than context_length, which should not be possible. Please check your configuration.", ); }); @@ -276,7 +277,7 @@ describe("tokenizer", () => { const model = createModel(1000, 1200); // maxTokens exceeds contextLength const chatHistory = createChatHistory(1); // Minimal input - expect(() => shouldAutoCompact(chatHistory, model)).toThrow( + expect(() => shouldAutoCompact({ chatHistory, model })).toThrow( "max_tokens is larger than context_length, which should not be possible. Please check your configuration.", ); }); @@ -287,17 +288,20 @@ describe("tokenizer", () => { // Threshold: 50 * 0.8 = 40 const chatHistory = createChatHistory(45); // Above threshold - expect(shouldAutoCompact(chatHistory, model)).toBe(true); + expect(shouldAutoCompact({ chatHistory, model })).toBe(true); }); it("should log debug information correctly", () => { const model = createModel(1000, 200); const chatHistory = createChatHistory(600); - shouldAutoCompact(chatHistory, model); + shouldAutoCompact({ chatHistory, model }); expect(logger.debug).toHaveBeenCalledWith("Context usage check", { inputTokens: expect.any(Number), + historyTokens: expect.any(Number), + systemTokens: expect.any(Number), + toolTokens: expect.any(Number), contextLimit: 1000, maxTokens: 200, reservedForOutput: 200, @@ -313,7 +317,7 @@ describe("tokenizer", () => { // Should use default 35% reservation: 1000 * 0.35 = 350 const chatHistory = createChatHistory(530); // Above threshold - expect(shouldAutoCompact(chatHistory, model)).toBe(true); + expect(shouldAutoCompact({ chatHistory, model })).toBe(true); }); describe("real-world scenarios", () => { @@ -324,7 +328,7 @@ describe("tokenizer", () => { // Threshold: 196k * 0.8 = 156.8k const chatHistory = createChatHistory(160_000); // Above threshold - expect(shouldAutoCompact(chatHistory, model)).toBe(true); + expect(shouldAutoCompact({ chatHistory, model })).toBe(true); }); it("should prevent GPT-4 context overflow", () => { @@ -334,7 +338,7 @@ describe("tokenizer", () => { // Threshold: 124k * 0.8 = 99.2k const chatHistory = createChatHistory(100_000); // Above threshold - expect(shouldAutoCompact(chatHistory, model)).toBe(true); + expect(shouldAutoCompact({ chatHistory, model })).toBe(true); }); it("should handle models with very high max_tokens", () => { @@ -344,7 +348,351 @@ describe("tokenizer", () => { // Threshold: 136k * 0.8 = 108.8k const chatHistory = createChatHistory(110_000); // Above threshold - expect(shouldAutoCompact(chatHistory, model)).toBe(true); + expect(shouldAutoCompact({ chatHistory, model })).toBe(true); + }); + }); + }); + + describe("countToolDefinitionTokens", () => { + it("should return 0 for empty tools array", () => { + expect(countToolDefinitionTokens([])).toBe(0); + }); + + it("should return 0 for undefined-like input", () => { + // TypeScript types prevent undefined, but test defensive behavior + expect(countToolDefinitionTokens([] as never)).toBe(0); + }); + + it("should count tokens for a simple tool with name only", () => { + const tools = [ + { + type: "function" as const, + function: { + name: "get_weather", + }, + }, + ]; + + const tokenCount = countToolDefinitionTokens(tools); + // Base overhead (12) + tool tokens + wrapper overhead (12) + expect(tokenCount).toBeGreaterThan(24); // At least base overheads + expect(tokenCount).toBe(27); // 12 + 3 (name) + 12 = 27 + }); + + it("should count tokens for a tool with name and description", () => { + const tools = [ + { + type: "function" as const, + function: { + name: "get_weather", + description: "Get the current weather for a location", + }, + }, + ]; + + const tokenCount = countToolDefinitionTokens(tools); + // 12 (base) + 3 (name) + 10 (description ~40 chars / 4) + 12 (wrapper) = 37 + expect(tokenCount).toBeGreaterThan(27); + }); + + it("should count tokens for a tool with parameters", () => { + const tools = [ + { + type: "function" as const, + function: { + name: "get_weather", + description: "Get weather", + parameters: { + type: "object", + properties: { + location: { + type: "string", + description: "The city name", + }, + }, + required: ["location"], + }, + }, + }, + ]; + + const tokenCount = countToolDefinitionTokens(tools); + expect(tokenCount).toBeGreaterThan(30); // Should include parameter tokens + }); + + it("should count tokens for multiple tools", () => { + const tools = [ + { + type: "function" as const, + function: { + name: "tool_one", + }, + }, + { + type: "function" as const, + function: { + name: "tool_two", + }, + }, + ]; + + const singleToolTokens = countToolDefinitionTokens([tools[0]]); + const doubleToolTokens = countToolDefinitionTokens(tools); + + // Two tools should have more tokens than one + expect(doubleToolTokens).toBeGreaterThan(singleToolTokens); + }); + + it("should count tokens for parameters with enum values", () => { + const toolsWithoutEnum = [ + { + type: "function" as const, + function: { + name: "set_mode", + parameters: { + type: "object", + properties: { + mode: { + type: "string", + description: "The mode to set", + }, + }, + }, + }, + }, + ]; + + const toolsWithEnum = [ + { + type: "function" as const, + function: { + name: "set_mode", + parameters: { + type: "object", + properties: { + mode: { + type: "string", + description: "The mode to set", + enum: ["fast", "slow", "medium"], + }, + }, + }, + }, + }, + ]; + + const tokensWithoutEnum = countToolDefinitionTokens(toolsWithoutEnum); + const tokensWithEnum = countToolDefinitionTokens(toolsWithEnum); + + // Enum values should add tokens + expect(tokensWithEnum).toBeGreaterThan(tokensWithoutEnum); + }); + + it("should handle empty enum array without negative token count", () => { + const toolsWithEmptyEnum = [ + { + type: "function" as const, + function: { + name: "set_mode", + parameters: { + type: "object", + properties: { + mode: { + type: "string", + description: "The mode to set", + enum: [], + }, + }, + }, + }, + }, + ]; + + const toolsWithoutEnum = [ + { + type: "function" as const, + function: { + name: "set_mode", + parameters: { + type: "object", + properties: { + mode: { + type: "string", + description: "The mode to set", + }, + }, + }, + }, + }, + ]; + + const tokensWithEmptyEnum = countToolDefinitionTokens(toolsWithEmptyEnum); + const tokensWithoutEnum = countToolDefinitionTokens(toolsWithoutEnum); + + // Empty enum should not subtract tokens - should be equal to no enum + expect(tokensWithEmptyEnum).toBe(tokensWithoutEnum); + // Token count should always be positive + expect(tokensWithEmptyEnum).toBeGreaterThan(0); + }); + + it("should count tokens for multiple parameters", () => { + const toolWithOneParam = [ + { + type: "function" as const, + function: { + name: "search", + parameters: { + type: "object", + properties: { + query: { + type: "string", + }, + }, + }, + }, + }, + ]; + + const toolWithMultipleParams = [ + { + type: "function" as const, + function: { + name: "search", + parameters: { + type: "object", + properties: { + query: { + type: "string", + }, + limit: { + type: "number", + }, + offset: { + type: "number", + }, + }, + }, + }, + }, + ]; + + const oneParamTokens = countToolDefinitionTokens(toolWithOneParam); + const multiParamTokens = countToolDefinitionTokens( + toolWithMultipleParams, + ); + + expect(multiParamTokens).toBeGreaterThan(oneParamTokens); + }); + + it("should handle tool with empty parameters object", () => { + const tools = [ + { + type: "function" as const, + function: { + name: "no_params", + parameters: { + type: "object", + properties: {}, + }, + }, + }, + ]; + + const tokenCount = countToolDefinitionTokens(tools); + // Should still return a valid count (base overhead + name) + expect(tokenCount).toBeGreaterThan(0); + }); + + it("should handle tool without parameters field", () => { + const tools = [ + { + type: "function" as const, + function: { + name: "simple_tool", + description: "A simple tool without parameters", + }, + }, + ]; + + const tokenCount = countToolDefinitionTokens(tools); + expect(tokenCount).toBeGreaterThan(0); + }); + + describe("real-world tool definitions", () => { + it("should count tokens for a complex tool like read_file", () => { + const tools = [ + { + type: "function" as const, + function: { + name: "read_file", + description: + "Use this tool if you need to view the contents of an existing file.", + parameters: { + type: "object", + properties: { + filepath: { + type: "string", + description: + "The path of the file to read. Can be a relative path, absolute path, tilde path, or file:// URI", + }, + }, + required: ["filepath"], + }, + }, + }, + ]; + + const tokenCount = countToolDefinitionTokens(tools); + expect(tokenCount).toBeGreaterThan(40); // Complex tool should have many tokens + }); + + it("should count tokens for a multi-tool set", () => { + const tools = [ + { + type: "function" as const, + function: { + name: "read_file", + description: "Read a file", + parameters: { + type: "object", + properties: { + filepath: { type: "string", description: "File path" }, + }, + }, + }, + }, + { + type: "function" as const, + function: { + name: "write_file", + description: "Write to a file", + parameters: { + type: "object", + properties: { + filepath: { type: "string", description: "File path" }, + content: { type: "string", description: "Content to write" }, + }, + }, + }, + }, + { + type: "function" as const, + function: { + name: "search", + description: "Search for files", + parameters: { + type: "object", + properties: { + query: { type: "string", description: "Search query" }, + }, + }, + }, + }, + ]; + + const tokenCount = countToolDefinitionTokens(tools); + // Multiple tools should have significant token count + expect(tokenCount).toBeGreaterThan(80); }); }); }); diff --git a/extensions/cli/src/util/tokenizer.ts b/extensions/cli/src/util/tokenizer.ts index cccc60ad2..68f10c5f0 100644 --- a/extensions/cli/src/util/tokenizer.ts +++ b/extensions/cli/src/util/tokenizer.ts @@ -1,6 +1,7 @@ import { ModelConfig } from "@continuedev/config-yaml"; import type { ChatHistoryItem } from "core/index.js"; import { encode } from "gpt-tokenizer"; +import type { ChatCompletionTool } from "openai/resources/chat/completions.mjs"; import { logger } from "./logger.js"; @@ -196,16 +197,158 @@ export function calculateContextUsagePercentage( } /** - * Check if the chat history exceeds the auto-compact threshold - * @param chatHistory The chat history to check - * @param model The model configuration + * Count tokens for a single parameter field in a tool definition. + * @param fields The field definition object + * @returns Token count for this field + */ +function countParameterFieldTokens( + fields: Record | undefined, +): number { + if (!fields) { + return 0; + } + + let tokens = 0; + const fieldType = fields["type"]; + const fieldDesc = fields["description"]; + const fieldEnum = fields["enum"]; + + if (fieldType && typeof fieldType === "string") { + tokens += 2; // Structure overhead for type + tokens += encode(fieldType).length; + } + + if (fieldDesc && typeof fieldDesc === "string") { + tokens += 2; // Structure overhead for description + tokens += encode(fieldDesc).length; + } + + if (fieldEnum && Array.isArray(fieldEnum) && fieldEnum.length > 0) { + tokens -= 3; + for (const e of fieldEnum) { + tokens += 3; + tokens += typeof e === "string" ? encode(e).length : 5; + } + } + + return tokens; +} + +/** + * Count tokens for a single tool's function definition. + * @param tool The ChatCompletionTool to count + * @returns Token count for this tool + */ +function countSingleToolTokens(tool: ChatCompletionTool): number { + let tokens = encode(tool.function.name).length; + + if (tool.function.description) { + tokens += encode(tool.function.description).length; + } + + const params = tool.function.parameters as + | { properties?: Record } + | undefined; + const props = params?.properties; + + if (props) { + for (const key in props) { + tokens += encode(key).length; + tokens += countParameterFieldTokens( + props[key] as Record | undefined, + ); + } + } + + return tokens; +} + +/** + * Count tokens for tool definitions sent to the API. + * Based on OpenAI's token counting for function calling. + * @see https://community.openai.com/t/how-to-calculate-the-tokens-when-using-function-call/266573/10 + * @param tools Array of ChatCompletionTool objects + * @returns Estimated token count for all tool definitions + */ +export function countToolDefinitionTokens(tools: ChatCompletionTool[]): number { + if (!tools || tools.length === 0) { + return 0; + } + + // Base overhead for the tools array structure + let numTokens = 12; + + for (const tool of tools) { + numTokens += countSingleToolTokens(tool); + } + + // Additional overhead for the tools wrapper + return numTokens + 12; +} + +/** + * Parameters for calculating total input tokens including all components + */ +export interface TotalInputTokenParams { + chatHistory: ChatHistoryItem[]; + systemMessage?: string; + tools?: ChatCompletionTool[]; +} + +/** + * Calculate total input tokens including chat history, system message, and tool definitions. + * This provides a complete picture of tokens that will be sent to the API. + * @param params Object containing chatHistory, optional systemMessage, optional tools, and optional modelName + * @returns Total estimated input token count + */ +export function countTotalInputTokens(params: TotalInputTokenParams): number { + const { chatHistory, systemMessage, tools } = params; + + let totalTokens = countChatHistoryTokens(chatHistory); + + // Add system message tokens if provided and not already in history + if (systemMessage) { + const hasSystemInHistory = chatHistory.some( + (item) => item.message.role === "system", + ); + if (!hasSystemInHistory) { + totalTokens += encode(systemMessage).length; + totalTokens += 4; // Message structure overhead (role + formatting) + } + } + + // Add tool definition tokens + if (tools && tools.length > 0) { + totalTokens += countToolDefinitionTokens(tools); + } + + return totalTokens; +} + +/** + * Parameters for auto-compaction check + */ +export interface AutoCompactParams { + chatHistory: ChatHistoryItem[]; + model: ModelConfig; + systemMessage?: string; + tools?: ChatCompletionTool[]; +} + +/** + * Check if the chat history exceeds the auto-compact threshold. + * Accounts for system message and tool definitions in the calculation. + * @param params Object containing chatHistory, model, optional systemMessage, and optional tools * @returns Whether auto-compacting should be triggered */ -export function shouldAutoCompact( - chatHistory: ChatHistoryItem[], - model: ModelConfig, -): boolean { - const inputTokens = countChatHistoryTokens(chatHistory); +export function shouldAutoCompact(params: AutoCompactParams): boolean { + const { chatHistory, model, systemMessage, tools } = params; + + const inputTokens = countTotalInputTokens({ + chatHistory, + systemMessage, + tools, + }); const contextLimit = getModelContextLimit(model); const maxTokens = model.defaultCompletionOptions?.maxTokens || 0; @@ -225,8 +368,14 @@ export function shouldAutoCompact( const usage = inputTokens / availableForInput; + const toolTokens = tools ? countToolDefinitionTokens(tools) : 0; + const systemTokens = systemMessage ? encode(systemMessage).length : 0; + logger.debug("Context usage check", { inputTokens, + historyTokens: countChatHistoryTokens(chatHistory), + systemTokens, + toolTokens, contextLimit, maxTokens, reservedForOutput, @@ -250,24 +399,36 @@ export function getAutoCompactMessage(model: ModelConfig): string { } /** - * Validates that the input tokens + max_tokens don't exceed context limit - * @param chatHistory The chat history to validate - * @param model The model configuration - * @param safetyBuffer Additional token buffer to account for estimation errors (default: 0) + * Parameters for context length validation + */ +export interface ValidateContextLengthParams { + chatHistory: ChatHistoryItem[]; + model: ModelConfig; + safetyBuffer?: number; + systemMessage?: string; + tools?: ChatCompletionTool[]; +} + +/** + * Validates that the input tokens + max_tokens don't exceed context limit. + * Accounts for system message and tool definitions in the calculation. + * @param params Object containing chatHistory, model, optional safetyBuffer, systemMessage, and tools * @returns Validation result with error details if invalid */ -export function validateContextLength( - chatHistory: ChatHistoryItem[], - model: ModelConfig, - safetyBuffer: number = 0, -): { +export function validateContextLength(params: ValidateContextLengthParams): { isValid: boolean; error?: string; inputTokens?: number; contextLimit?: number; maxTokens?: number; } { - const inputTokens = countChatHistoryTokens(chatHistory); + const { chatHistory, model, safetyBuffer = 0, systemMessage, tools } = params; + + const inputTokens = countTotalInputTokens({ + chatHistory, + systemMessage, + tools, + }); const contextLimit = getModelContextLimit(model); const maxTokens = model.defaultCompletionOptions?.maxTokens || 0; diff --git a/extensions/cli/src/util/truncateOutput.test.ts b/extensions/cli/src/util/truncateOutput.test.ts new file mode 100644 index 000000000..02ebf8b18 --- /dev/null +++ b/extensions/cli/src/util/truncateOutput.test.ts @@ -0,0 +1,429 @@ +import { + parseEnvNumber, + truncateByLinesAndChars, + truncateLinesByCount, + truncateOutputFromEnd, + truncateOutputFromStart, +} from "./truncateOutput.js"; + +// Test constants matching the bash tool defaults +const DEFAULT_MAX_CHARS = 50000; +const DEFAULT_MAX_LINES = 1000; + +const defaultLimits = { + maxChars: DEFAULT_MAX_CHARS, + maxLines: DEFAULT_MAX_LINES, +}; + +describe("truncateOutputFromStart", () => { + describe("no truncation needed", () => { + it("should return empty string unchanged", () => { + const result = truncateOutputFromStart("", defaultLimits); + expect(result.output).toBe(""); + expect(result.wasTruncated).toBe(false); + }); + + it("should return short output unchanged", () => { + const input = "hello world\nline 2\nline 3"; + const result = truncateOutputFromStart(input, defaultLimits); + expect(result.output).toBe(input); + expect(result.wasTruncated).toBe(false); + }); + + it("should return output at exactly max lines unchanged", () => { + const lines = Array.from( + { length: DEFAULT_MAX_LINES }, + (_, i) => `line ${i + 1}`, + ); + const input = lines.join("\n"); + const result = truncateOutputFromStart(input, defaultLimits); + expect(result.output).toBe(input); + expect(result.wasTruncated).toBe(false); + }); + + it("should return output at exactly max characters unchanged", () => { + const input = "a".repeat(DEFAULT_MAX_CHARS); + const result = truncateOutputFromStart(input, defaultLimits); + expect(result.output).toBe(input); + expect(result.wasTruncated).toBe(false); + }); + }); + + describe("truncation by line count", () => { + it("should truncate when exceeding max lines", () => { + const totalLines = DEFAULT_MAX_LINES + 500; + const lines = Array.from( + { length: totalLines }, + (_, i) => `line ${i + 1}`, + ); + const input = lines.join("\n"); + const result = truncateOutputFromStart(input, defaultLimits); + + expect(result.wasTruncated).toBe(true); + expect(result.output).toContain("(previous 500 lines truncated)"); + expect(result.output).toContain("line 501"); + expect(result.output).toContain(`line ${totalLines}`); + expect(result.output).not.toContain("line 500\n"); + }); + + it("should preserve the last max lines when truncating", () => { + const totalLines = DEFAULT_MAX_LINES * 2; + const lines = Array.from( + { length: totalLines }, + (_, i) => `line ${i + 1}`, + ); + const input = lines.join("\n"); + const result = truncateOutputFromStart(input, defaultLimits); + + expect(result.wasTruncated).toBe(true); + expect(result.output).toContain( + `(previous ${DEFAULT_MAX_LINES} lines truncated)`, + ); + + // Check that we have lines (MAX_LINES+1) to (MAX_LINES*2) + const outputLines = result.output.split("\n"); + // First line is the truncation message, second is empty, then content + expect(outputLines[2]).toBe(`line ${DEFAULT_MAX_LINES + 1}`); + expect(outputLines[outputLines.length - 1]).toBe(`line ${totalLines}`); + }); + + it("should handle exactly max lines + 1", () => { + const totalLines = DEFAULT_MAX_LINES + 1; + const lines = Array.from( + { length: totalLines }, + (_, i) => `line ${i + 1}`, + ); + const input = lines.join("\n"); + const result = truncateOutputFromStart(input, defaultLimits); + + expect(result.wasTruncated).toBe(true); + expect(result.output).toContain("(previous 1 lines truncated)"); + expect(result.output).toContain("line 2"); + expect(result.output).toContain(`line ${totalLines}`); + expect(result.output).not.toContain("\nline 1\n"); + }); + }); + + describe("truncation by character count", () => { + it("should truncate when exceeding max characters", () => { + // Create output that exceeds character limit but not line limit + const input = "a".repeat(DEFAULT_MAX_CHARS + 10000); + const result = truncateOutputFromStart(input, defaultLimits); + + expect(result.wasTruncated).toBe(true); + expect(result.output.length).toBeLessThanOrEqual( + DEFAULT_MAX_CHARS + 100 /* header allowance */, + ); + expect(result.output).toContain("characters truncated"); + }); + + it("should truncate at line boundary when possible", () => { + // Create lines that exceed character limit + const line = "x".repeat(100) + "\n"; + const input = line.repeat(600); // 60600 characters, 600 lines + const result = truncateOutputFromStart(input, defaultLimits); + + expect(result.wasTruncated).toBe(true); + // Should start at a line boundary (after truncation header) + const contentStart = result.output.indexOf("\n\n") + 2; + const content = result.output.slice(contentStart); + // Content should start with 'x' (beginning of a line, not mid-line) + expect(content[0]).toBe("x"); + }); + }); + + describe("combined truncation", () => { + it("should apply both line and character truncation with single message", () => { + // Create lines that exceed both limits + // 2x max lines, each 100 chars = way more than max characters + const line = "y".repeat(100); + const lines = Array.from({ length: DEFAULT_MAX_LINES * 2 }, () => line); + const input = lines.join("\n"); + + const result = truncateOutputFromStart(input, defaultLimits); + + expect(result.wasTruncated).toBe(true); + // Should be truncated by lines first, then by characters + expect(result.output.length).toBeLessThanOrEqual( + DEFAULT_MAX_CHARS + 100 /* header allowance */, + ); + + // Should have a single combined message, not duplicate notes + expect(result.output).toContain("previous output truncated:"); + expect(result.output).toContain(`${DEFAULT_MAX_LINES} lines`); + expect(result.output).toContain("characters removed"); + + // Should NOT have separate line truncation message + const truncationNoteCount = (result.output.match(/\(previous/g) || []) + .length; + expect(truncationNoteCount).toBe(1); + }); + }); + + describe("edge cases", () => { + it("should handle single very long line without newlines", () => { + const input = "z".repeat(DEFAULT_MAX_CHARS + 10000); + const result = truncateOutputFromStart(input, defaultLimits); + + expect(result.wasTruncated).toBe(true); + expect(result.output).toContain("characters truncated"); + // Should keep approximately max chars (plus header) + expect(result.output.length).toBeLessThanOrEqual(DEFAULT_MAX_CHARS + 100); + expect(result.output.length).toBeGreaterThan(DEFAULT_MAX_CHARS); + }); + + it("should not snap to line boundary if newline is too far into the text", () => { + // Create a massive line followed by a newline far from the truncation point + const leadingChars = DEFAULT_MAX_CHARS + 5000; + const input = "a".repeat(leadingChars) + "\n" + "b".repeat(10); + const result = truncateOutputFromStart(input, defaultLimits); + + expect(result.wasTruncated).toBe(true); + // Should cut mid-line since newline is beyond snap threshold into kept text + // Result should contain 'a' characters (cut mid-line) + const contentStart = result.output.indexOf("\n\n") + 2; + const content = result.output.slice(contentStart); + expect(content[0]).toBe("a"); + }); + + it("should snap to line boundary if newline is within snap threshold", () => { + // Create text where truncation point lands within snap threshold of a newline + const charsBeforeNewline = DEFAULT_MAX_CHARS / 5; // Well under max + const input = + "a".repeat(charsBeforeNewline) + "\n" + "b".repeat(DEFAULT_MAX_CHARS); + const result = truncateOutputFromStart(input, defaultLimits); + + expect(result.wasTruncated).toBe(true); + // Newline should be within snap threshold, so should start with 'b' + const contentStart = result.output.indexOf("\n\n") + 2; + const content = result.output.slice(contentStart); + expect(content[0]).toBe("b"); + }); + + it("should handle output with only newlines", () => { + const input = "\n".repeat(DEFAULT_MAX_LINES + 500); + const result = truncateOutputFromStart(input, defaultLimits); + + expect(result.wasTruncated).toBe(true); + expect(result.output).toContain("lines truncated)"); + }); + + it("should handle mixed content with empty lines", () => { + const totalLines = DEFAULT_MAX_LINES + 200; + const lines = Array.from({ length: totalLines }, (_, i) => + i % 2 === 0 ? `content line ${i}` : "", + ); + const input = lines.join("\n"); + const result = truncateOutputFromStart(input, defaultLimits); + + expect(result.wasTruncated).toBe(true); + expect(result.output).toContain("(previous 200 lines truncated)"); + }); + }); + + describe("with custom limits", () => { + it("should use custom character limit", () => { + const input = "a".repeat(1500); + const result = truncateOutputFromStart(input, { + maxChars: 1000, + maxLines: 10000, + }); + + expect(result.wasTruncated).toBe(true); + expect(result.output).toContain("characters truncated"); + // Output should be around 1000 chars plus header + expect(result.output.length).toBeLessThanOrEqual(1100); + }); + + it("should use custom line limit", () => { + const lines = Array.from({ length: 100 }, (_, i) => `line ${i + 1}`); + const input = lines.join("\n"); + const result = truncateOutputFromStart(input, { + maxChars: 100000, + maxLines: 50, + }); + + expect(result.wasTruncated).toBe(true); + expect(result.output).toContain("(previous 50 lines truncated)"); + expect(result.output).toContain("line 51"); + expect(result.output).toContain("line 100"); + }); + + it("should use both custom limits together", () => { + // Create 200 lines of 10 chars each = 2000+ chars, exceeding both limits + const lines = Array.from({ length: 200 }, () => "x".repeat(10)); + const input = lines.join("\n"); + const result = truncateOutputFromStart(input, { + maxChars: 500, + maxLines: 100, + }); + + expect(result.wasTruncated).toBe(true); + // Should be truncated by lines first (to 100), then by characters (to ~500) + expect(result.output.length).toBeLessThanOrEqual(600); + }); + + it("should not truncate when output is under custom limits", () => { + // Create output that would exceed default limits but not custom ones + const lines = Array.from( + { length: DEFAULT_MAX_LINES + 500 }, + (_, i) => `line ${i}`, + ); + const input = lines.join("\n"); + const result = truncateOutputFromStart(input, { + maxChars: 100000, + maxLines: 10000, + }); + + expect(result.wasTruncated).toBe(false); + expect(result.output).toBe(input); + }); + }); +}); + +describe("parseEnvNumber", () => { + it("should return default when env var is undefined", () => { + expect(parseEnvNumber(undefined, 1000)).toBe(1000); + }); + + it("should return env var value when set to valid number", () => { + expect(parseEnvNumber("5000", 1000)).toBe(5000); + }); + + it("should return default when env var is empty string", () => { + expect(parseEnvNumber("", 1000)).toBe(1000); + }); + + it("should return default when env var is not a number", () => { + expect(parseEnvNumber("not-a-number", 1000)).toBe(1000); + }); + + it("should return default when env var is zero", () => { + expect(parseEnvNumber("0", 1000)).toBe(1000); + }); + + it("should return default when env var is negative", () => { + expect(parseEnvNumber("-100", 1000)).toBe(1000); + }); + + it("should parse integer from float string", () => { + expect(parseEnvNumber("12345.67", 1000)).toBe(12345); + }); +}); + +describe("truncateOutputFromEnd", () => { + it("should return empty string unchanged", () => { + const result = truncateOutputFromEnd("", 1000); + expect(result.output).toBe(""); + expect(result.wasTruncated).toBe(false); + }); + + it("should return short output unchanged", () => { + const input = "hello world"; + const result = truncateOutputFromEnd(input, 1000); + expect(result.output).toBe(input); + expect(result.wasTruncated).toBe(false); + }); + + it("should truncate from end when exceeding max chars", () => { + const input = "a".repeat(100) + "b".repeat(100); + const result = truncateOutputFromEnd(input, 100); + + expect(result.wasTruncated).toBe(true); + expect(result.output).toContain("a".repeat(100)); + expect(result.output).not.toContain("b"); + expect(result.output).toContain("characters"); + expect(result.output).toContain("truncated"); + }); + + it("should include context in truncation message", () => { + const input = "x".repeat(200); + const result = truncateOutputFromEnd(input, 100, "file content"); + + expect(result.wasTruncated).toBe(true); + expect(result.output).toContain("of file content"); + }); + + it("should snap to line boundary when possible", () => { + const input = "line1\nline2\nline3\nline4\nline5"; + const result = truncateOutputFromEnd(input, 15); + + expect(result.wasTruncated).toBe(true); + // Should end at a line boundary + expect(result.output).toContain("line1\nline2"); + }); +}); + +describe("truncateLinesByCount", () => { + it("should return empty string unchanged", () => { + const result = truncateLinesByCount("", 100); + expect(result.output).toBe(""); + expect(result.wasTruncated).toBe(false); + }); + + it("should return output unchanged when under limit", () => { + const input = "line1\nline2\nline3"; + const result = truncateLinesByCount(input, 10); + expect(result.output).toBe(input); + expect(result.wasTruncated).toBe(false); + }); + + it("should truncate lines from end", () => { + const lines = Array.from({ length: 100 }, (_, i) => `line ${i + 1}`); + const input = lines.join("\n"); + const result = truncateLinesByCount(input, 50); + + expect(result.wasTruncated).toBe(true); + expect(result.output).toContain("line 1"); + expect(result.output).toContain("line 50"); + expect(result.output).not.toContain("line 51"); + expect(result.output).toContain("50 lines"); + expect(result.output).toContain("truncated"); + }); + + it("should include context in truncation message", () => { + const lines = Array.from({ length: 100 }, (_, i) => `line ${i + 1}`); + const input = lines.join("\n"); + const result = truncateLinesByCount(input, 50, "test output"); + + expect(result.output).toContain("of test output"); + }); +}); + +describe("truncateByLinesAndChars", () => { + it("should return empty string unchanged", () => { + const result = truncateByLinesAndChars("", 100, 1000); + expect(result.output).toBe(""); + expect(result.wasTruncated).toBe(false); + }); + + it("should truncate by lines first", () => { + const lines = Array.from({ length: 100 }, (_, i) => `line ${i + 1}`); + const input = lines.join("\n"); + const result = truncateByLinesAndChars(input, 50, 100000); + + expect(result.wasTruncated).toBe(true); + expect(result.output).toContain("line 1"); + expect(result.output).toContain("line 50"); + expect(result.output).not.toContain("line 51"); + }); + + it("should truncate by chars after lines if still too long", () => { + // Create 50 lines of 100 chars each = 5000+ chars + const lines = Array.from({ length: 50 }, () => "x".repeat(100)); + const input = lines.join("\n"); + const result = truncateByLinesAndChars(input, 100, 500); + + expect(result.wasTruncated).toBe(true); + // Output should be around 500 chars plus truncation message + expect(result.output.length).toBeLessThan(700); + }); + + it("should include context in truncation message", () => { + const lines = Array.from({ length: 100 }, (_, i) => `line ${i + 1}`); + const input = lines.join("\n"); + const result = truncateByLinesAndChars(input, 50, 100000, "file content"); + + expect(result.output).toContain("of file content"); + }); +}); diff --git a/extensions/cli/src/util/truncateOutput.ts b/extensions/cli/src/util/truncateOutput.ts new file mode 100644 index 000000000..2c392425e --- /dev/null +++ b/extensions/cli/src/util/truncateOutput.ts @@ -0,0 +1,228 @@ +// Threshold for snapping to line boundaries during character truncation +export const TRUNCATION_LINE_SNAP_THRESHOLD = 1000; + +/** + * Parses an environment variable as a positive integer. + * Returns the default value if the env var is not set, empty, not a number, + * zero, or negative. + */ +export function parseEnvNumber( + envVar: string | undefined, + defaultValue: number, +): number { + if (!envVar) { + return defaultValue; + } + const parsed = parseInt(envVar, 10); + if (Number.isNaN(parsed) || parsed <= 0) { + return defaultValue; + } + return parsed; +} + +export interface TruncationResult { + output: string; + wasTruncated: boolean; +} + +export interface TruncationLimits { + maxChars: number; + maxLines: number; +} + +/** + * Truncates output from the beginning to fit within limits, preserving the end. + * This is the preferred truncation strategy for command output where the most + * recent output is typically most relevant. + * + * When truncated, removes content from the beginning and adds a "(previous output truncated)" note. + * + * @param output - The string to truncate + * @param limits - The character and line limits to apply + */ +export function truncateOutputFromStart( + output: string, + limits: TruncationLimits, +): TruncationResult { + if (!output) { + return { output, wasTruncated: false }; + } + + const { maxChars, maxLines } = limits; + const lines = output.split("\n"); + + // Check if we need to truncate by lines first + if (lines.length > maxLines) { + const linesTruncated = lines.length - maxLines; + const preservedLines = lines.slice(-maxLines); + const contentAfterLineTruncation = preservedLines.join("\n"); + + // After line truncation, check character limit + if (contentAfterLineTruncation.length > maxChars) { + return truncateCharactersFromStart( + contentAfterLineTruncation, + linesTruncated, + maxChars, + ); + } + + return { + output: `(previous ${linesTruncated} lines truncated)\n\n${contentAfterLineTruncation}`, + wasTruncated: true, + }; + } + + // Check character limit + if (output.length > maxChars) { + return truncateCharactersFromStart(output, 0, maxChars); + } + + return { output, wasTruncated: false }; +} + +/** + * Truncates output from the end to fit within a character limit, preserving the beginning. + * Useful for content where the beginning is most important (e.g., file content, diffs). + * + * @param output - The string to truncate + * @param maxChars - Maximum characters to keep + * @param context - Optional context for the truncation message (e.g., "file content", "diff") + */ +export function truncateOutputFromEnd( + output: string, + maxChars: number, + context?: string, +): TruncationResult { + if (!output || output.length <= maxChars) { + return { output, wasTruncated: false }; + } + + const truncatedContent = output.slice(0, maxChars); + + // Try to end at a clean line boundary + const lastNewline = truncatedContent.lastIndexOf("\n"); + const shouldSnapToLine = + lastNewline !== -1 && + truncatedContent.length - lastNewline < TRUNCATION_LINE_SNAP_THRESHOLD; + const cleanContent = shouldSnapToLine + ? truncatedContent.slice(0, lastNewline) + : truncatedContent; + + const actualCharsRemoved = output.length - cleanContent.length; + const contextStr = context ? ` of ${context}` : ""; + const suffix = `\n\n(${actualCharsRemoved} characters${contextStr} truncated)`; + + return { + output: cleanContent + suffix, + wasTruncated: true, + }; +} + +/** + * Truncates output by line count from the end, preserving the beginning. + * Useful for file content where the start of the file is most relevant. + * + * @param output - The string to truncate + * @param maxLines - Maximum lines to keep + * @param context - Optional context for the truncation message + */ +export function truncateLinesByCount( + output: string, + maxLines: number, + context?: string, +): TruncationResult { + if (!output) { + return { output, wasTruncated: false }; + } + + const lines = output.split("\n"); + if (lines.length <= maxLines) { + return { output, wasTruncated: false }; + } + + const preservedLines = lines.slice(0, maxLines); + const linesTruncated = lines.length - maxLines; + const contextStr = context ? ` of ${context}` : ""; + + return { + output: + preservedLines.join("\n") + + `\n\n(${linesTruncated} lines${contextStr} truncated)`, + wasTruncated: true, + }; +} + +/** + * Combined truncation: first by lines, then by characters, preserving the beginning. + * Used by readFile tool where both limits apply. + * + * @param output - The string to truncate + * @param maxLines - Maximum lines to keep + * @param maxChars - Maximum characters to keep + * @param context - Optional context for the truncation message + */ +export function truncateByLinesAndChars( + output: string, + maxLines: number, + maxChars: number, + context?: string, +): TruncationResult { + if (!output) { + return { output, wasTruncated: false }; + } + + // First truncate by lines + const lineResult = truncateLinesByCount(output, maxLines, context); + + // Then truncate by characters if needed + if (lineResult.output.length > maxChars) { + const charResult = truncateOutputFromEnd( + lineResult.output, + maxChars, + context, + ); + return { + output: charResult.output, + wasTruncated: true, + }; + } + + return lineResult; +} + +// ============================================================================= +// Internal helper functions +// ============================================================================= + +function truncateCharactersFromStart( + text: string, + linesTruncated: number, + maxCharacters: number, +): TruncationResult { + // Remove characters from the beginning, keeping the end + const truncationPoint = text.length - maxCharacters; + const textToKeep = text.slice(truncationPoint); + + // Try to start at a clean line boundary, but only if there's a newline + // within a reasonable distance. Otherwise just cut mid-line. + const firstNewline = textToKeep.indexOf("\n"); + const shouldSnapToLine = + firstNewline !== -1 && firstNewline < TRUNCATION_LINE_SNAP_THRESHOLD; + const cleanText = shouldSnapToLine + ? textToKeep.slice(firstNewline + 1) + : textToKeep; + + const charsRemoved = text.length - cleanText.length; + + let prefix: string; + if (linesTruncated > 0) { + prefix = `(previous output truncated: ${linesTruncated} lines and ${charsRemoved} characters removed)\n\n`; + } else { + prefix = `(previous ${charsRemoved} characters truncated)\n\n`; + } + + return { + output: prefix + cleanText, + wasTruncated: true, + }; +} diff --git a/extensions/intellij/gradle.properties b/extensions/intellij/gradle.properties index 06b3b1159..243d1e896 100644 --- a/extensions/intellij/gradle.properties +++ b/extensions/intellij/gradle.properties @@ -1,5 +1,5 @@ pluginGroup=com.github.continuedev.continueintellijextension -pluginVersion=1.0.57 +pluginVersion=1.0.58 platformVersion=2024.1 kotlin.stdlib.default.dependency=false org.gradle.configuration-cache=true diff --git a/extensions/vscode/package-lock.json b/extensions/vscode/package-lock.json index 19e9b9e5b..eaf9af461 100644 --- a/extensions/vscode/package-lock.json +++ b/extensions/vscode/package-lock.json @@ -32,10 +32,10 @@ "https-proxy-agent": "^7.0.2", "ignore": "^5.3.0", "jsdom": "^24.0.0", - "lru-cache": "^11.0.2", + "lru-cache": "^11.2.4", "minisearch": "^7.0.0", "mocha": "^11.7.5", - "monaco-editor": "^0.45.0", + "monaco-editor": "^0.55.1", "monaco-vscode-textmate-theme-converter": "^0.1.7", "ncp": "^2.0.0", "node-fetch": "^3.3.2", @@ -2815,6 +2815,13 @@ "integrity": "sha512-/Ad8+nIOV7Rl++6f1BdKxFSMgmoqEoYbHRpPcx3JEfv8VRsQe9Z4mCXeJBzxs7mbHY/XOZZuXlRNfhpVPbs6ZA==", "dev": true }, + "node_modules/@types/trusted-types": { + "version": "2.0.7", + "resolved": "https://registry.npmjs.org/@types/trusted-types/-/trusted-types-2.0.7.tgz", + "integrity": "sha512-ScaPdn1dQczgbl0QFTeTOmVHFULt394XJgOQNoyVhZ6r2vLnMLJfBPd53SB52T/3G36VI1/g2MZaX0cwDuXsfw==", + "license": "MIT", + "optional": true + }, "node_modules/@types/unist": { "version": "2.0.11", "resolved": "https://registry.npmjs.org/@types/unist/-/unist-2.0.11.tgz", @@ -5492,6 +5499,15 @@ "url": "https://github.com/fb55/domhandler?sponsor=1" } }, + "node_modules/dompurify": { + "version": "3.2.7", + "resolved": "https://registry.npmjs.org/dompurify/-/dompurify-3.2.7.tgz", + "integrity": "sha512-WhL/YuveyGXJaerVlMYGWhvQswa7myDG17P7Vu65EWC05o8vfeNbvNf4d/BOvH99+ZW+LlQsc1GDKMa1vNK6dw==", + "license": "(MPL-2.0 OR Apache-2.0)", + "optionalDependencies": { + "@types/trusted-types": "^2.0.7" + } + }, "node_modules/domutils": { "version": "3.1.0", "resolved": "https://registry.npmjs.org/domutils/-/domutils-3.1.0.tgz", @@ -8524,9 +8540,10 @@ } }, "node_modules/lru-cache": { - "version": "11.0.2", - "resolved": "https://registry.npmjs.org/lru-cache/-/lru-cache-11.0.2.tgz", - "integrity": "sha512-123qHRfJBmo2jXDbo/a5YOQrJoHF/GNQTLzQ5+IdK5pWpceK17yRc6ozlWd25FxvGKQbIUs91fDFkXmDHTKcyA==", + "version": "11.2.4", + "resolved": "https://registry.npmjs.org/lru-cache/-/lru-cache-11.2.4.tgz", + "integrity": "sha512-B5Y16Jr9LB9dHVkh6ZevG+vAbOsNOYCX+sXvFWFu7B3Iz5mijW3zdbMyhsh8ANd2mSWBYdJgnqi+mL7/LrOPYg==", + "license": "BlueOak-1.0.0", "engines": { "node": "20 || >=22" } @@ -8674,6 +8691,18 @@ "url": "https://github.com/fb55/entities?sponsor=1" } }, + "node_modules/marked": { + "version": "14.0.0", + "resolved": "https://registry.npmjs.org/marked/-/marked-14.0.0.tgz", + "integrity": "sha512-uIj4+faQ+MgHgwUW1l2PsPglZLOLOT1uErt06dAPtx2kjteLAkbsd/0FiYg/MGS+i7ZKLb7w2WClxHkzOOuryQ==", + "license": "MIT", + "bin": { + "marked": "bin/marked.js" + }, + "engines": { + "node": ">= 18" + } + }, "node_modules/math-intrinsics": { "version": "1.1.0", "resolved": "https://registry.npmjs.org/math-intrinsics/-/math-intrinsics-1.1.0.tgz", @@ -9556,9 +9585,14 @@ } }, "node_modules/monaco-editor": { - "version": "0.45.0", - "resolved": "https://registry.npmjs.org/monaco-editor/-/monaco-editor-0.45.0.tgz", - "integrity": "sha512-mjv1G1ZzfEE3k9HZN0dQ2olMdwIfaeAAjFiwNprLfYNRSz7ctv9XuCT7gPtBGrMUeV1/iZzYKj17Khu1hxoHOA==" + "version": "0.55.1", + "resolved": "https://registry.npmjs.org/monaco-editor/-/monaco-editor-0.55.1.tgz", + "integrity": "sha512-jz4x+TJNFHwHtwuV9vA9rMujcZRb0CEilTEwG2rRSpe/A7Jdkuj8xPKttCgOh+v/lkHy7HsZ64oj+q3xoAFl9A==", + "license": "MIT", + "dependencies": { + "dompurify": "3.2.7", + "marked": "14.0.0" + } }, "node_modules/monaco-vscode-textmate-theme-converter": { "version": "0.1.7", diff --git a/extensions/vscode/package.json b/extensions/vscode/package.json index 7848e78f4..23784b81d 100644 --- a/extensions/vscode/package.json +++ b/extensions/vscode/package.json @@ -2,7 +2,7 @@ "name": "continue", "icon": "media/icon.png", "author": "Continue Dev, Inc", - "version": "1.3.28", + "version": "1.3.29", "repository": { "type": "git", "url": "https://github.com/continuedev/continue" @@ -751,10 +751,10 @@ "https-proxy-agent": "^7.0.2", "ignore": "^5.3.0", "jsdom": "^24.0.0", - "lru-cache": "^11.0.2", + "lru-cache": "^11.2.4", "minisearch": "^7.0.0", "mocha": "^11.7.5", - "monaco-editor": "^0.45.0", + "monaco-editor": "^0.55.1", "monaco-vscode-textmate-theme-converter": "^0.1.7", "ncp": "^2.0.0", "node-fetch": "^3.3.2", diff --git a/extensions/vscode/src/activation/activate.ts b/extensions/vscode/src/activation/activate.ts index 6f4275f67..45fc24d49 100644 --- a/extensions/vscode/src/activation/activate.ts +++ b/extensions/vscode/src/activation/activate.ts @@ -59,6 +59,7 @@ export async function activateExtension(context: vscode.ExtensionContext) { // Register config.yaml schema by removing old entries and adding new one (uri.fsPath changes with each version) const yamlMatcher = ".continue/**/*.yaml"; const yamlConfig = vscode.workspace.getConfiguration("yaml"); + const yamlSchemas = yamlConfig.get("schemas", {}); const newPath = vscode.Uri.joinPath( context.extension.extensionUri, @@ -68,7 +69,10 @@ export async function activateExtension(context: vscode.ExtensionContext) { try { await yamlConfig.update( "schemas", - { [newPath]: [yamlMatcher] }, + { + ...yamlSchemas, + [newPath]: [yamlMatcher], + }, vscode.ConfigurationTarget.Global, ); } catch (error) { diff --git a/gui/package-lock.json b/gui/package-lock.json index 9974b5ad9..328c5a148 100644 --- a/gui/package-lock.json +++ b/gui/package-lock.json @@ -12,7 +12,7 @@ "@headlessui/react": "^2.2.0", "@heroicons/react": "^2.0.18", "@panzoom/panzoom": "^4.6.0", - "@reduxjs/toolkit": "^2.3.0", + "@reduxjs/toolkit": "^2.11.2", "@sentry/react": "^9.43.0", "@sentry/vite-plugin": "^4.0.2", "@tiptap/core": "^2.27.0", @@ -52,7 +52,7 @@ "react-markdown": "^9.0.1", "react-redux": "^8.0.5", "react-remark": "^2.1.0", - "react-router-dom": "^6.14.2", + "react-router-dom": "^6.30.3", "react-switch": "^7.0.0", "react-syntax-highlighter": "^15.5.0", "react-tooltip": "^5.18.0", @@ -117,16 +117,16 @@ "license": "Apache-2.0", "dependencies": { "@anthropic-ai/sdk": "^0.62.0", - "@aws-sdk/client-bedrock-runtime": "^3.779.0", + "@aws-sdk/client-bedrock-runtime": "^3.931.0", "@aws-sdk/client-sagemaker-runtime": "^3.777.0", - "@aws-sdk/credential-providers": "^3.778.0", + "@aws-sdk/credential-providers": "^3.931.0", "@continuedev/config-types": "^1.0.13", "@continuedev/config-yaml": "file:../packages/config-yaml", "@continuedev/fetch": "file:../packages/fetch", "@continuedev/llm-info": "file:../packages/llm-info", "@continuedev/openai-adapters": "file:../packages/openai-adapters", "@continuedev/terminal-security": "file:../packages/terminal-security", - "@modelcontextprotocol/sdk": "^1.24.0", + "@modelcontextprotocol/sdk": "^1.25.2", "@mozilla/readability": "^0.5.0", "@octokit/rest": "^20.1.1", "@sentry/cli": "^2.50.2", @@ -2086,13 +2086,14 @@ } }, "node_modules/@reduxjs/toolkit": { - "version": "2.9.0", - "resolved": "https://registry.npmjs.org/@reduxjs/toolkit/-/toolkit-2.9.0.tgz", - "integrity": "sha512-fSfQlSRu9Z5yBkvsNhYF2rPS8cGXn/TZVrlwN1948QyZ8xMZ0JvP50S2acZNaf+o63u6aEeMjipFyksjIcWrog==", + "version": "2.11.2", + "resolved": "https://registry.npmjs.org/@reduxjs/toolkit/-/toolkit-2.11.2.tgz", + "integrity": "sha512-Kd6kAHTA6/nUpp8mySPqj3en3dm0tdMIgbttnQ1xFMVpufoj+ADi8pXLBsd4xzTRHQa7t/Jv8W5UnCuW4kuWMQ==", + "license": "MIT", "dependencies": { "@standard-schema/spec": "^1.0.0", "@standard-schema/utils": "^0.3.0", - "immer": "^10.0.3", + "immer": "^11.0.0", "redux": "^5.0.1", "redux-thunk": "^3.1.0", "reselect": "^5.1.0" @@ -2116,9 +2117,10 @@ "integrity": "sha512-42aWfPrimMfDKDi4YegyS7x+/0tlzaqwPQCULLanv3DMIlu96KTJR0fM5isWX2UViOqlGnX6YFgqWepcX+XMNg==" }, "node_modules/@remix-run/router": { - "version": "1.23.0", - "resolved": "https://registry.npmjs.org/@remix-run/router/-/router-1.23.0.tgz", - "integrity": "sha512-O3rHJzAQKamUz1fvE0Qaw0xSFqsA/yafi2iqeE0pvdFtCO1viYx8QL6f3Ln/aCCTLxs68SLf0KPM9eSeM8yBnA==", + "version": "1.23.2", + "resolved": "https://registry.npmjs.org/@remix-run/router/-/router-1.23.2.tgz", + "integrity": "sha512-Ic6m2U/rMjTkhERIa/0ZtXJP17QUi2CbWE7cqx4J58M8aA3QTfW+2UlQ4psvTX9IO1RfNVhK3pcpdjej7L+t2w==", + "license": "MIT", "engines": { "node": ">=14.0.0" } @@ -8356,9 +8358,10 @@ } }, "node_modules/immer": { - "version": "10.1.3", - "resolved": "https://registry.npmjs.org/immer/-/immer-10.1.3.tgz", - "integrity": "sha512-tmjF/k8QDKydUlm3mZU+tjM6zeq9/fFpPqH9SzWmBnVVKsPBg/V66qsMwb3/Bo90cgUN+ghdVBess+hPsxUyRw==", + "version": "11.1.3", + "resolved": "https://registry.npmjs.org/immer/-/immer-11.1.3.tgz", + "integrity": "sha512-6jQTc5z0KJFtr1UgFpIL3N9XSC3saRaI9PwWtzM2pSqkNGtiNkYY2OSwkOGDK2XcTRcLb1pi/aNkKZz0nxVH4Q==", + "license": "MIT", "funding": { "type": "opencollective", "url": "https://opencollective.com/immer" @@ -11131,9 +11134,10 @@ "integrity": "sha512-FJqqoDBR00Mdj9ppamLa/Y7vxm+PRmNWA67N846RvsoYVMKB4q3y/de5PA7gUmRMYK/8CMz2GDZQmCRN1wBcWA==" }, "node_modules/preact": { - "version": "10.27.1", - "resolved": "https://registry.npmjs.org/preact/-/preact-10.27.1.tgz", - "integrity": "sha512-V79raXEWch/rbqoNc7nT9E4ep7lu+mI3+sBmfRD4i1M73R3WLYcCtdI0ibxGVf4eQL8ZIz2nFacqEC+rmnOORQ==", + "version": "10.28.2", + "resolved": "https://registry.npmjs.org/preact/-/preact-10.28.2.tgz", + "integrity": "sha512-lbteaWGzGHdlIuiJ0l2Jq454m6kcpI1zNje6d8MlGAFlYvP2GO4ibnat7P74Esfz4sPTdM6UxtTwh/d3pwM9JA==", + "license": "MIT", "funding": { "type": "opencollective", "url": "https://opencollective.com/preact" @@ -11973,11 +11977,12 @@ } }, "node_modules/react-router": { - "version": "6.30.1", - "resolved": "https://registry.npmjs.org/react-router/-/react-router-6.30.1.tgz", - "integrity": "sha512-X1m21aEmxGXqENEPG3T6u0Th7g0aS4ZmoNynhbs+Cn+q+QGTLt+d5IQ2bHAXKzKcxGJjxACpVbnYQSCRcfxHlQ==", + "version": "6.30.3", + "resolved": "https://registry.npmjs.org/react-router/-/react-router-6.30.3.tgz", + "integrity": "sha512-XRnlbKMTmktBkjCLE8/XcZFlnHvr2Ltdr1eJX4idL55/9BbORzyZEaIkBFDhFGCEWBBItsVrDxwx3gnisMitdw==", + "license": "MIT", "dependencies": { - "@remix-run/router": "1.23.0" + "@remix-run/router": "1.23.2" }, "engines": { "node": ">=14.0.0" @@ -11987,12 +11992,13 @@ } }, "node_modules/react-router-dom": { - "version": "6.30.1", - "resolved": "https://registry.npmjs.org/react-router-dom/-/react-router-dom-6.30.1.tgz", - "integrity": "sha512-llKsgOkZdbPU1Eg3zK8lCn+sjD9wMRZZPuzmdWWX5SUs8OFkN5HnFVC0u5KMeMaC9aoancFI/KoLuKPqN+hxHw==", + "version": "6.30.3", + "resolved": "https://registry.npmjs.org/react-router-dom/-/react-router-dom-6.30.3.tgz", + "integrity": "sha512-pxPcv1AczD4vso7G4Z3TKcvlxK7g7TNt3/FNGMhfqyntocvYKj+GCatfigGDjbLozC4baguJ0ReCigoDJXb0ag==", + "license": "MIT", "dependencies": { - "@remix-run/router": "1.23.0", - "react-router": "6.30.1" + "@remix-run/router": "1.23.2", + "react-router": "6.30.3" }, "engines": { "node": ">=14.0.0" diff --git a/gui/package.json b/gui/package.json index ef44d12bd..24547c7c7 100644 --- a/gui/package.json +++ b/gui/package.json @@ -21,7 +21,7 @@ "@headlessui/react": "^2.2.0", "@heroicons/react": "^2.0.18", "@panzoom/panzoom": "^4.6.0", - "@reduxjs/toolkit": "^2.3.0", + "@reduxjs/toolkit": "^2.11.2", "@sentry/react": "^9.43.0", "@sentry/vite-plugin": "^4.0.2", "@tiptap/core": "^2.27.0", @@ -61,7 +61,7 @@ "react-markdown": "^9.0.1", "react-redux": "^8.0.5", "react-remark": "^2.1.0", - "react-router-dom": "^6.14.2", + "react-router-dom": "^6.30.3", "react-switch": "^7.0.0", "react-syntax-highlighter": "^15.5.0", "react-tooltip": "^5.18.0", diff --git a/gui/public/logos/mimo.png b/gui/public/logos/mimo.png new file mode 100644 index 000000000..012a58277 Binary files /dev/null and b/gui/public/logos/mimo.png differ diff --git a/gui/src/components/mainInput/TipTapEditor/TipTapEditor.css b/gui/src/components/mainInput/TipTapEditor/TipTapEditor.css index 94c4969c6..3f2a2c770 100644 --- a/gui/src/components/mainInput/TipTapEditor/TipTapEditor.css +++ b/gui/src/components/mainInput/TipTapEditor/TipTapEditor.css @@ -39,3 +39,7 @@ .tiptap img.ProseMirror-selectednode { border: 1px solid var(--vscode-badge-background, #bfe2b6); } + +.tiptap img.selected-image { + outline: 3px solid var(--vscode-badge-background, #bfe2b6); +} diff --git a/gui/src/components/mainInput/TipTapEditor/utils/editorConfig.ts b/gui/src/components/mainInput/TipTapEditor/utils/editorConfig.ts index 2ecd4d41a..b05109c9b 100644 --- a/gui/src/components/mainInput/TipTapEditor/utils/editorConfig.ts +++ b/gui/src/components/mainInput/TipTapEditor/utils/editorConfig.ts @@ -6,6 +6,7 @@ import Paragraph from "@tiptap/extension-paragraph"; import Placeholder from "@tiptap/extension-placeholder"; import Text from "@tiptap/extension-text"; import { Plugin } from "@tiptap/pm/state"; +import { Decoration, DecorationSet } from "@tiptap/pm/view"; import { useEditor } from "@tiptap/react"; import { InputModifiers } from "core"; import { modelSupportsImages } from "core/llm/autodetect"; @@ -144,7 +145,7 @@ export function createEditorConfig(options: { History, Image.extend({ addProseMirrorPlugins() { - const plugin = new Plugin({ + const pastePlugin = new Plugin({ props: { handleDOMEvents: { paste(view, event) { @@ -179,7 +180,34 @@ export function createEditorConfig(options: { }, }, }); - return [plugin]; + + const selectionPlugin = new Plugin({ + props: { + decorations(state) { + const { selection, doc } = state; + const decorations: Decoration[] = []; + + if (selection.empty) { + return DecorationSet.empty; + } + + // create custom highlighting for image when selected + doc.nodesBetween(selection.from, selection.to, (node, pos) => { + if (node.type.name === "image") { + decorations.push( + Decoration.node(pos, pos + node.nodeSize, { + class: "selected-image", + }), + ); + } + }); + + return DecorationSet.create(doc, decorations); + }, + }, + }); + + return [pastePlugin, selectionPlugin]; }, }).configure({ HTMLAttributes: { @@ -244,6 +272,15 @@ export function createEditorConfig(options: { () => commands.splitBlock(), ]), + "Mod-a": () => { + // override cmd/ctrl+a to include all text and images selection + this.editor.commands.setTextSelection({ + from: 0, + to: this.editor.state.doc.content.size, + }); + return true; + }, + ArrowUp: () => { if (this.editor.state.selection.anchor > 1) { return false; diff --git a/gui/src/pages/AddNewModel/configs/models.ts b/gui/src/pages/AddNewModel/configs/models.ts index 59edce01d..b2b03e1dd 100644 --- a/gui/src/pages/AddNewModel/configs/models.ts +++ b/gui/src/pages/AddNewModel/configs/models.ts @@ -2473,6 +2473,100 @@ export const models: { [key: string]: ModelPackage } = { icon: "anthropic.png", isOpenSource: false, }, + asksageclaude45sonnetgov: { + title: "Claude 4.5 Sonnet gov*", + description: "Anthropic's 4.5 Sonnet model.", + params: { + model: "aws-bedrock-claude-45-sonnet-gov", + contextLength: 200_000, + title: "Claude 4.5 Sonnet gov*", + apiKey: "", + }, + providerOptions: ["askSage"], + icon: "anthropic.png", + isOpenSource: false, + }, + asksageclaude45opus: { + title: "Claude 4.5 Opus*", + description: "Claude 4.5 Opus", + params: { + model: "google-claude-45-opus", + contextLength: 200_000, + title: "Claude 4.5 Opus*", + apiKey: "", + }, + providerOptions: ["askSage"], + icon: "anthropic.png", + isOpenSource: false, + }, + asksageclaude45haiku: { + title: "Claude 4.5 Haiku*", + description: "Claude 4.5 Haiku", + params: { + model: "google-claude-45-haiku", + contextLength: 200_000, + title: "Claude 4.5 Haiku*", + apiKey: "", + }, + providerOptions: ["askSage"], + icon: "anthropic.png", + isOpenSource: false, + }, + asksagegpt51: { + title: "GPT-5.1*", + description: "OpenAI's GPT-5.1 model", + params: { + model: "gpt-5.1", + contextLength: 400_000, + maxTokens: 200_000, + title: "GPT-5.1*", + apiKey: "", + }, + providerOptions: ["askSage"], + icon: "openai.png", + isOpenSource: false, + }, + asksagegpt52: { + title: "GPT-5.2*", + description: "OpenAI's GPT-5.2 model", + params: { + model: "gpt-5.2", + contextLength: 400_000, + maxTokens: 200_000, + title: "GPT-5.2*", + apiKey: "", + }, + providerOptions: ["askSage"], + icon: "openai.png", + isOpenSource: false, + }, + asksagegpt03mini: { + title: "GPT-o3-mini", + description: "Azure OpenAI GPT o3-mini model.", + params: { + model: "gpt-o3-mini", + contextLength: 200_000, + maxTokens: 100_000, + title: "GPT-o3-mini", + apiKey: "", + }, + providerOptions: ["askSage"], + icon: "openai.png", + isOpenSource: false, + }, + asksagegroqllama4scout: { + title: "Llama 4 Scout", + description: "Llama-4 Scout is a large language model customized by Groq.", + params: { + title: "Llama 4 Scout", + model: "groq-llama4-scout", + contextLength: 128_000, + apiKey: "", + }, + providerOptions: ["askSage"], + icon: "groq.png", + isOpenSource: true, + }, // Gemini series models via CometAPI cometapiGemini25Pro: { @@ -2661,4 +2755,20 @@ export const models: { [key: string]: ModelPackage } = { icon: "cometapi.png", isOpenSource: false, }, + + // Xiaomi Mimo models + mimoV2Flash: { + title: "mimo-v2-flash", + description: "Xiaomi's fast and efficient language model", + refUrl: "https://platform.xiaomimimo.com/", + params: { + title: "mimo-v2-flash", + model: "mimo-v2-flash", + contextLength: 128_000, + apiKey: "", + }, + providerOptions: ["mimo"], + icon: "mimo.png", + isOpenSource: false, + }, }; diff --git a/gui/src/pages/AddNewModel/configs/providers.ts b/gui/src/pages/AddNewModel/configs/providers.ts index 085fb9522..5de00c1a0 100644 --- a/gui/src/pages/AddNewModel/configs/providers.ts +++ b/gui/src/pages/AddNewModel/configs/providers.ts @@ -368,6 +368,27 @@ Select the \`GPT-4o\` model below to complete your provider configuration, but n ], apiKeyUrl: "https://console.mistral.ai/codestral", }, + mimo: { + title: "Xiaomi Mimo", + provider: "mimo", + description: "Use Xiaomi's Mimo models for fast and efficient AI responses", + longDescription: + "Xiaomi Mimo provides OpenAI-compatible API access to their language models. Get your API key from the [Xiaomi Mimo Platform](https://platform.xiaomimimo.com/).", + icon: "mimo.png", + tags: [ModelProviderTags.RequiresApiKey], + packages: [models.mimoV2Flash], + collectInputFor: [ + { + inputType: "text", + key: "apiKey", + label: "API Key", + placeholder: "Enter your Xiaomi Mimo API key", + required: true, + }, + ...completionParamsInputsConfigs, + ], + apiKeyUrl: "https://platform.xiaomimimo.com/", + }, ollama: { title: "Ollama", provider: "ollama", @@ -988,14 +1009,24 @@ To get started, [register](https://dataplatform.cloud.ibm.com/registration/stepo models.asksageclaude45sonnet, models.asksageclaude4sonnet, models.asksageclaude41opus, - models.asksagegpt5, - models.asksagegpt5nano, - models.asksagegpt5mini, + models.asksageclaude35Sonnet, + models.asksageclaude37sonnet, + models.asksageclaude35gov, + models.asksageclaude37sonnetgov, + models.asksageclaude4s, + models.asksageclaude4o, + models.asksageclaude45sonnetgov, + models.asksageclaude45opus, + models.asksageclaude45haiku, models.asksagegemini20Flash, models.asksagegemini25Pro, models.asksagegemini25flash, - models.asksageclaude35gov, - models.asksageclaude37sonnetgov, + models.asksagegpt5, + models.asksagegpt5nano, + models.asksagegpt5mini, + models.asksagegpt51, + models.asksagegpt52, + models.asksagegpt03mini, models.asksagegpt4o, models.asksagegpt4omini, models.asksagegpt4gov, @@ -1013,11 +1044,8 @@ To get started, [register](https://dataplatform.cloud.ibm.com/registration/stepo models.asksagenovalite, models.asksagegroq70b, models.asksagegroqllama33, + models.asksagegroqllama4scout, models.asksagegrok4, - models.asksageclaude35Sonnet, - models.asksageclaude37sonnet, - models.asksageclaude4s, - models.asksageclaude4o, ], apiKeyUrl: "https://chat.asksage.ai/", }, diff --git a/gui/src/pages/config/sections/RulesSection.tsx b/gui/src/pages/config/sections/RulesSection.tsx index e80e83536..205f1ddaa 100644 --- a/gui/src/pages/config/sections/RulesSection.tsx +++ b/gui/src/pages/config/sections/RulesSection.tsx @@ -132,8 +132,6 @@ interface RuleCardProps { const RuleCard: React.FC = ({ rule }) => { const dispatch = useAppDispatch(); - const ideMessenger = useContext(IdeMessengerContext); - const mode = useAppSelector((store) => store.session.mode); const policy = useAppSelector((state) => rule.name ? state.ui.ruleSettings[rule.name] || DEFAULT_RULE_SETTING @@ -397,6 +395,7 @@ function RulesSubSection() { const dispatch = useAppDispatch(); const isLocal = selectedProfile?.profileType === "local"; const [globalRulesMode, setGlobalRulesMode] = useState("workspace"); + const configLoading = useAppSelector((store) => store.config.loading); const handleAddRule = (mode?: string) => { const currentMode = mode || globalRulesMode; @@ -487,6 +486,11 @@ function RulesSubSection() { {sortedRules.map((rule, index) => ( ))} + {configLoading && ( +
+ Reloading rules from your config... +
+ )} ) : ( diff --git a/gui/src/redux/slices/configSlice.ts b/gui/src/redux/slices/configSlice.ts index 678354655..202abbfbb 100644 --- a/gui/src/redux/slices/configSlice.ts +++ b/gui/src/redux/slices/configSlice.ts @@ -23,6 +23,7 @@ export const EMPTY_CONFIG: BrowserSerializedContinueConfig = { autocomplete: [], rerank: [], embed: [], + subagent: [], }, selectedModelByRole: { chat: null, @@ -32,6 +33,7 @@ export const EMPTY_CONFIG: BrowserSerializedContinueConfig = { autocomplete: null, rerank: null, embed: null, + subagent: null, }, rules: [], }; diff --git a/packages/config-yaml/src/load/injectBlocks.test.ts b/packages/config-yaml/src/load/injectBlocks.test.ts index 14feb97dc..f8623be0f 100644 --- a/packages/config-yaml/src/load/injectBlocks.test.ts +++ b/packages/config-yaml/src/load/injectBlocks.test.ts @@ -75,10 +75,11 @@ models: expect(result.config!.models).toBeDefined(); expect(result.config!.models!.length).toBe(1); - // Check that inputs were converted to secrets in the model + // Check that inputs were converted to secrets and then to FQSNs + // For file-type blocks, the FQSN format is: ${{ secrets.//secretName }} const model = result.config!.models![0]!; - expect(model.apiKey).toBe("${{ secrets.openaiKey }}"); - expect(model.apiBase).toBe("${{ secrets.customEndpoint }}"); + expect(model.apiKey).toBe("${{ secrets.//openaiKey }}"); + expect(model.apiBase).toBe("${{ secrets.//customEndpoint }}"); expect(model.name).toBe("gpt-4"); expect(model.provider).toBe("openai"); expect(model.model).toBe("gpt-4"); @@ -126,14 +127,16 @@ rules: expect(result.config!.rules).toBeDefined(); expect(result.config!.rules!.length).toBe(1); - // Check that input was converted to secret in the rule + // Check that input was converted to secret and then to FQSN // Note: string rules get wrapped in objects with sourceFile when injected const rule = result.config!.rules![0]!; if (typeof rule === "string") { - expect(rule).toBe("Use ${{ secrets.codeStyle }} formatting consistently"); + expect(rule).toBe( + "Use ${{ secrets.//codeStyle }} formatting consistently", + ); } else { expect(rule.rule).toBe( - "Use ${{ secrets.codeStyle }} formatting consistently", + "Use ${{ secrets.//codeStyle }} formatting consistently", ); } @@ -182,11 +185,11 @@ docs: expect(result.config!.docs).toBeDefined(); expect(result.config!.docs!.length).toBe(1); - // Check that inputs were converted to secrets in the doc config + // Check that inputs were converted to secrets and then to FQSNs const doc = result.config!.docs![0]!; - expect(doc.startUrl).toBe("${{ secrets.docsBaseUrl }}/api"); - expect(doc.rootUrl).toBe("${{ secrets.docsBaseUrl }}"); - expect(doc.faviconUrl).toBe("${{ secrets.docsBaseUrl }}/favicon.ico"); + expect(doc.startUrl).toBe("${{ secrets.//docsBaseUrl }}/api"); + expect(doc.rootUrl).toBe("${{ secrets.//docsBaseUrl }}"); + expect(doc.faviconUrl).toBe("${{ secrets.//docsBaseUrl }}/favicon.ico"); expect(doc.name).toBe("project-docs"); // Check that no input variables remain @@ -233,10 +236,10 @@ prompts: expect(result.config!.prompts).toBeDefined(); expect(result.config!.prompts!.length).toBe(1); - // Check that inputs were converted to secrets in the prompt + // Check that inputs were converted to secrets and then to FQSNs const prompt = result.config!.prompts![0]!; expect(prompt.prompt).toBe( - "You are a ${{ secrets.roleType }} assistant. Use ${{ secrets.responseStyle }} responses.", + "You are a ${{ secrets.//roleType }} assistant. Use ${{ secrets.//responseStyle }} responses.", ); expect(prompt.name).toBe("custom-prompt"); expect(prompt.description).toBe("A customizable prompt"); @@ -298,22 +301,22 @@ rules: expect(result.config).toBeDefined(); - // Check model block conversion + // Check model block conversion (file-type blocks use // as FQSN prefix) expect(result.config!.models).toBeDefined(); expect(result.config!.models!.length).toBe(1); const model = result.config!.models![0]!; - expect(model.model).toBe("${{ secrets.modelName }}"); - expect(model.apiKey).toBe("${{ secrets.apiKey }}"); + expect(model.model).toBe("${{ secrets.//modelName }}"); + expect(model.apiKey).toBe("${{ secrets.//apiKey }}"); // Check rules block conversion expect(result.config!.rules).toBeDefined(); expect(result.config!.rules!.length).toBe(1); const rule = result.config!.rules![0]!; if (typeof rule === "string") { - expect(rule).toBe("Follow ${{ secrets.codingStandard }} conventions"); + expect(rule).toBe("Follow ${{ secrets.//codingStandard }} conventions"); } else { expect(rule.rule).toBe( - "Follow ${{ secrets.codingStandard }} conventions", + "Follow ${{ secrets.//codingStandard }} conventions", ); } @@ -417,15 +420,15 @@ rules: ruleText = rule.rule; } - // Input should be converted to secret, others should remain unchanged + // Input should be converted to secret and then to FQSN, others should also get FQSN treatment expect(ruleText).toBe( - "Input: ${{ secrets.userSetting }} | Secret: ${{ secrets.apiKey }} | Continue: ${{ continue.workspaceRoot }}", + "Input: ${{ secrets.//userSetting }} | Secret: ${{ secrets.//apiKey }} | Continue: ${{ continue.workspaceRoot }}", ); // Verify only inputs were converted const configStr = JSON.stringify(result.config); expect(configStr).not.toContain("inputs.userSetting"); - expect(configStr).toContain("secrets.apiKey"); + expect(configStr).toContain("secrets.//apiKey"); expect(configStr).toContain("continue.workspaceRoot"); }); @@ -469,7 +472,7 @@ rules: const rule = result.config!.rules![0]; expect(rule).toMatchObject({ name: "custom-rule", - rule: "Always add type hints with ${{ secrets.typeStyle }}", + rule: "Always add type hints with ${{ secrets.//typeStyle }}", description: "Enforce type hints for better code clarity", sourceFile: "file:///test/source-block.yaml", }); @@ -524,9 +527,9 @@ rules: ruleText = rule.rule; } - // All nested inputs should be converted to secrets + // All nested inputs should be converted to secrets and then to FQSNs expect(ruleText).toBe( - "Database config: host=${{ secrets.db.host }};port=${{ secrets.db.port }};user=${{ secrets.db.user }}", + "Database config: host=${{ secrets.//db.host }};port=${{ secrets.//db.port }};user=${{ secrets.//db.user }}", ); // Verify all nested inputs were converted @@ -535,4 +538,152 @@ rules: expect(configStr).not.toContain("inputs.db.port"); expect(configStr).not.toContain("inputs.db.user"); }); + + it("converts secrets in injected slug blocks to FQSNs using the block's package identifier", async () => { + const assistant: ConfigYaml = { + name: "FQSN Test Assistant", + version: "1.0.0", + }; + + // This simulates a model block from the hub (e.g., anthropic/claude-sonnet) + // that has a secret reference that needs to be converted to an FQSN + const modelBlockContent = ` +name: Anthropic Claude Model +version: 1.0.0 +schema: v1 +models: + - name: claude-sonnet + provider: anthropic + model: claude-sonnet-4-20250514 + apiKey: \${{ secrets.ANTHROPIC_API_KEY }} +`; + + // Using a slug-type identifier (like anthropic/claude-sonnet from the hub) + const injectedBlockId: PackageIdentifier = { + uriType: "slug", + fullSlug: { + ownerSlug: "anthropic", + packageSlug: "claude-sonnet", + versionSlug: "latest", + }, + }; + + mockRegistry.setContent("anthropic/claude-sonnet", modelBlockContent); + + const result = await unrollBlocks( + assistant, + mockRegistry, + [injectedBlockId], + undefined, + undefined, + undefined, + ); + + expect(result.config).toBeDefined(); + expect(result.config!.models).toBeDefined(); + expect(result.config!.models!.length).toBe(1); + + // The secret should be converted to an FQSN that includes the block's slug + // Format: ${{ secrets.ownerSlug/packageSlug/secretName }} + const model = result.config!.models![0]!; + expect(model.apiKey).toBe( + "${{ secrets.anthropic/claude-sonnet/ANTHROPIC_API_KEY }}", + ); + expect(model.name).toBe("claude-sonnet"); + expect(model.provider).toBe("anthropic"); + expect(model.model).toBe("claude-sonnet-4-20250514"); + }); + + it("converts secrets in injected file blocks to FQSNs using file path shorthand", async () => { + const assistant: ConfigYaml = { + name: "File FQSN Test Assistant", + version: "1.0.0", + }; + + const modelBlockContent = ` +name: Local Model +version: 1.0.0 +schema: v1 +models: + - name: local-model + provider: openai + model: gpt-4 + apiKey: \${{ secrets.OPENAI_API_KEY }} +`; + + const injectedBlockId: PackageIdentifier = { + uriType: "file", + fileUri: "/path/to/local-model.yaml", + }; + + mockRegistry.setContent("/path/to/local-model.yaml", modelBlockContent); + + const result = await unrollBlocks( + assistant, + mockRegistry, + [injectedBlockId], + undefined, + undefined, + undefined, + ); + + expect(result.config).toBeDefined(); + expect(result.config!.models).toBeDefined(); + expect(result.config!.models!.length).toBe(1); + + // For file-type blocks, the shorthand slug is "/" + // So the FQSN becomes: ${{ secrets.//secretName }} + const model = result.config!.models![0]!; + expect(model.apiKey).toBe("${{ secrets.//OPENAI_API_KEY }}"); + }); + + it("converts both inputs and secrets to proper FQSNs in injected blocks", async () => { + const assistant: ConfigYaml = { + name: "Mixed Template Test Assistant", + version: "1.0.0", + }; + + // Block has both inputs and secrets + const modelBlockContent = ` +name: Mixed Model +version: 1.0.0 +schema: v1 +models: + - name: mixed-model + provider: openai + model: \${{ inputs.modelName }} + apiKey: \${{ secrets.API_KEY }} + apiBase: \${{ inputs.apiBase }} +`; + + const injectedBlockId: PackageIdentifier = { + uriType: "slug", + fullSlug: { + ownerSlug: "myorg", + packageSlug: "mixed-model", + versionSlug: "1.0.0", + }, + }; + + mockRegistry.setContent("myorg/mixed-model", modelBlockContent); + + const result = await unrollBlocks( + assistant, + mockRegistry, + [injectedBlockId], + undefined, + undefined, + undefined, + ); + + expect(result.config).toBeDefined(); + expect(result.config!.models).toBeDefined(); + expect(result.config!.models!.length).toBe(1); + + const model = result.config!.models![0]!; + // Inputs get converted to secrets first, then both get FQSN treatment + expect(model.model).toBe("${{ secrets.myorg/mixed-model/modelName }}"); + expect(model.apiKey).toBe("${{ secrets.myorg/mixed-model/API_KEY }}"); + expect(model.apiBase).toBe("${{ secrets.myorg/mixed-model/apiBase }}"); + }); }); diff --git a/packages/config-yaml/src/load/unroll.ts b/packages/config-yaml/src/load/unroll.ts index 49476925e..9fae9d17b 100644 --- a/packages/config-yaml/src/load/unroll.ts +++ b/packages/config-yaml/src/load/unroll.ts @@ -550,10 +550,20 @@ export async function unrollBlocks( const injectedBlockPromises = injectBlocks.map(async (injectBlock) => { try { const blockConfigYaml = await registry.getContent(injectBlock); + // Convert inputs to secrets, then convert secrets to FQSNs using the injected block's identifier + // This ensures secrets are properly namespaced for proxy resolution (e.g., models add-on) const blockConfigYamlWithSecrets = replaceInputsWithSecrets(blockConfigYaml); - const resolvedBlock = parseMarkdownRuleOrConfigYaml( + const blockConfigYamlWithFQSNs = renderTemplateData( blockConfigYamlWithSecrets, + { + secrets: extractFQSNMap(blockConfigYamlWithSecrets, [ + injectBlock, + ]), + }, + ); + const resolvedBlock = parseMarkdownRuleOrConfigYaml( + blockConfigYamlWithFQSNs, injectBlock, ); const blockType = getBlockType(resolvedBlock); diff --git a/packages/config-yaml/src/schemas/models.ts b/packages/config-yaml/src/schemas/models.ts index 9f5a9e96e..cefbd93fa 100644 --- a/packages/config-yaml/src/schemas/models.ts +++ b/packages/config-yaml/src/schemas/models.ts @@ -28,6 +28,7 @@ export const modelRolesSchema = z.enum([ "edit", "apply", "summarize", + "subagent", ]); export type ModelRole = z.infer; diff --git a/packages/continue-sdk/package-lock.json b/packages/continue-sdk/package-lock.json index 0262bae53..ff2c99637 100644 --- a/packages/continue-sdk/package-lock.json +++ b/packages/continue-sdk/package-lock.json @@ -9,7 +9,7 @@ "version": "0.0.1", "license": "Apache-2.0", "dependencies": { - "@continuedev/config-yaml": "^1.36.0", + "@continuedev/config-yaml": "^1.38.0", "@openapitools/openapi-generator-cli": "^2.25.1", "express": "^4.22.0", "swagger-ui-express": "^5.0.0" @@ -38,9 +38,9 @@ } }, "node_modules/@continuedev/config-yaml": { - "version": "1.36.0", - "resolved": "https://registry.npmjs.org/@continuedev/config-yaml/-/config-yaml-1.36.0.tgz", - "integrity": "sha512-uYFs22npkF2wvvpkRDsDJyaGNRydHxYW+ekksGOMj2MFbUkFMH3CZ/K/tD8S/DW6ZXbwju4datXr+BthW0n0Cg==", + "version": "1.38.0", + "resolved": "https://registry.npmjs.org/@continuedev/config-yaml/-/config-yaml-1.38.0.tgz", + "integrity": "sha512-KkkuWdqRVx20sRY0GlntxgrX4El1SrWzOe1nPuW39fH9tDFqRcJtIqvEbCrhD6zJSVYOrfuhBUzBeje/UuDBFA==", "license": "Apache-2.0", "dependencies": { "@continuedev/config-types": "^1.0.14", diff --git a/packages/continue-sdk/package.json b/packages/continue-sdk/package.json index 97f35bc48..e89656bdf 100644 --- a/packages/continue-sdk/package.json +++ b/packages/continue-sdk/package.json @@ -14,7 +14,7 @@ "author": "Continue Dev, Inc.", "license": "Apache-2.0", "dependencies": { - "@continuedev/config-yaml": "^1.36.0", + "@continuedev/config-yaml": "^1.38.0", "@openapitools/openapi-generator-cli": "^2.25.1", "express": "^4.22.0", "swagger-ui-express": "^5.0.0" diff --git a/packages/hub/package-lock.json b/packages/hub/package-lock.json index 14e2b2a9c..19dca50fc 100644 --- a/packages/hub/package-lock.json +++ b/packages/hub/package-lock.json @@ -9,7 +9,7 @@ "version": "0.0.7", "license": "Apache-2.0", "dependencies": { - "@continuedev/config-yaml": "^1.36.0", + "@continuedev/config-yaml": "^1.38.0", "js-yaml": "^4.1.1" }, "devDependencies": { @@ -545,9 +545,9 @@ } }, "node_modules/@continuedev/config-yaml": { - "version": "1.36.0", - "resolved": "https://registry.npmjs.org/@continuedev/config-yaml/-/config-yaml-1.36.0.tgz", - "integrity": "sha512-uYFs22npkF2wvvpkRDsDJyaGNRydHxYW+ekksGOMj2MFbUkFMH3CZ/K/tD8S/DW6ZXbwju4datXr+BthW0n0Cg==", + "version": "1.38.0", + "resolved": "https://registry.npmjs.org/@continuedev/config-yaml/-/config-yaml-1.38.0.tgz", + "integrity": "sha512-KkkuWdqRVx20sRY0GlntxgrX4El1SrWzOe1nPuW39fH9tDFqRcJtIqvEbCrhD6zJSVYOrfuhBUzBeje/UuDBFA==", "license": "Apache-2.0", "dependencies": { "@continuedev/config-types": "^1.0.14", diff --git a/packages/hub/package.json b/packages/hub/package.json index 1094165d5..256500e78 100644 --- a/packages/hub/package.json +++ b/packages/hub/package.json @@ -12,7 +12,7 @@ "author": "Continue Dev, Inc.", "license": "Apache-2.0", "dependencies": { - "@continuedev/config-yaml": "^1.36.0", + "@continuedev/config-yaml": "^1.38.0", "js-yaml": "^4.1.1" }, "devDependencies": { diff --git a/packages/openai-adapters/VERCEL_AI_SDK.md b/packages/openai-adapters/VERCEL_AI_SDK.md index ad623c553..32e05a57e 100644 --- a/packages/openai-adapters/VERCEL_AI_SDK.md +++ b/packages/openai-adapters/VERCEL_AI_SDK.md @@ -403,7 +403,7 @@ USE_VERCEL_AI_SDK_OPENAI=false cn **Short-term (< 1 hour):** ```json -"@continuedev/openai-adapters": "1.31.0" +"@continuedev/openai-adapters": "1.36.0" ``` **Long-term:** diff --git a/packages/openai-adapters/package-lock.json b/packages/openai-adapters/package-lock.json index b110cac0e..66735957e 100644 --- a/packages/openai-adapters/package-lock.json +++ b/packages/openai-adapters/package-lock.json @@ -15,7 +15,7 @@ "@aws-sdk/client-bedrock-runtime": "^3.931.0", "@aws-sdk/credential-providers": "^3.931.0", "@continuedev/config-types": "^1.0.14", - "@continuedev/config-yaml": "^1.36.0", + "@continuedev/config-yaml": "^1.38.0", "@continuedev/fetch": "^1.6.0", "@google/genai": "^1.30.0", "ai": "^4.0.33", @@ -1025,6 +1025,7 @@ "integrity": "sha512-6uFXyCayocRbqhZOB+6XcuZbkMNimwfVGFji8CTZnCzOHVGvDqzvitu1re2AU5LROliz7eQPhB8CpAMvnx9EjA==", "dev": true, "license": "MIT", + "peer": true, "engines": { "node": ">=6.9.0" } @@ -1067,6 +1068,7 @@ "integrity": "sha512-BR7VvDCVHO+q2xBEWskxS6DJE1qRnb7DxzUrogb71CWoSficBxYsiAGd+Kl0mmq/MprG9yArRkyrQxTO6XjMzA==", "dev": true, "license": "ISC", + "peer": true, "bin": { "semver": "bin/semver.js" } @@ -1077,6 +1079,7 @@ "integrity": "sha512-3EwLFhZ38J4VyIP6WNtt2kUdW9dokXA9Cr4IVIFHuCpZ3H8/YFOl5JjZHisrn1fATPBmKKqXzDFvh9fUwHz6CQ==", "dev": true, "license": "MIT", + "peer": true, "dependencies": { "@babel/parser": "^7.28.5", "@babel/types": "^7.28.5", @@ -1094,6 +1097,7 @@ "integrity": "sha512-2+1thGUUWWjLTYTHZWK1n8Yga0ijBz1XAhUXcKy81rd5g6yh7hGqMp45v7cadSbEHc9G3OTv45SyneRN3ps4DQ==", "dev": true, "license": "MIT", + "peer": true, "dependencies": { "@babel/compat-data": "^7.27.2", "@babel/helper-validator-option": "^7.27.1", @@ -1111,6 +1115,7 @@ "integrity": "sha512-BR7VvDCVHO+q2xBEWskxS6DJE1qRnb7DxzUrogb71CWoSficBxYsiAGd+Kl0mmq/MprG9yArRkyrQxTO6XjMzA==", "dev": true, "license": "ISC", + "peer": true, "bin": { "semver": "bin/semver.js" } @@ -1121,6 +1126,7 @@ "integrity": "sha512-+W6cISkXFa1jXsDEdYA8HeevQT/FULhxzR99pxphltZcVaugps53THCeiWA8SguxxpSp3gKPiuYfSWopkLQ4hw==", "dev": true, "license": "MIT", + "peer": true, "engines": { "node": ">=6.9.0" } @@ -1131,6 +1137,7 @@ "integrity": "sha512-0gSFWUPNXNopqtIPQvlD5WgXYI5GY2kP2cCvoT8kczjbfcfuIljTbcWrulD1CIPIX2gt1wghbDy08yE1p+/r3w==", "dev": true, "license": "MIT", + "peer": true, "dependencies": { "@babel/traverse": "^7.27.1", "@babel/types": "^7.27.1" @@ -1145,6 +1152,7 @@ "integrity": "sha512-gytXUbs8k2sXS9PnQptz5o0QnpLL51SwASIORY6XaBKF88nsOT0Zw9szLqlSGQDP/4TljBAD5y98p2U1fqkdsw==", "dev": true, "license": "MIT", + "peer": true, "dependencies": { "@babel/helper-module-imports": "^7.27.1", "@babel/helper-validator-identifier": "^7.27.1", @@ -1163,6 +1171,7 @@ "integrity": "sha512-1gn1Up5YXka3YYAHGKpbideQ5Yjf1tDa9qYcgysz+cNCXukyLl6DjPXhD3VRwSb8c0J9tA4b2+rHEZtc6R0tlw==", "dev": true, "license": "MIT", + "peer": true, "engines": { "node": ">=6.9.0" } @@ -1173,6 +1182,7 @@ "integrity": "sha512-qMlSxKbpRlAridDExk92nSobyDdpPijUq2DW6oDnUqd0iOGxmQjyqhMIihI9+zv4LPyZdRje2cavWPbCbWm3eA==", "dev": true, "license": "MIT", + "peer": true, "engines": { "node": ">=6.9.0" } @@ -1193,6 +1203,7 @@ "integrity": "sha512-YvjJow9FxbhFFKDSuFnVCe2WxXk1zWc22fFePVNEaWJEu8IrZVlda6N0uHwzZrUM1il7NC9Mlp4MaJYbYd9JSg==", "dev": true, "license": "MIT", + "peer": true, "engines": { "node": ">=6.9.0" } @@ -1203,6 +1214,7 @@ "integrity": "sha512-HFN59MmQXGHVyYadKLVumYsA9dBFun/ldYxipEjzA4196jpLZd8UjEEBLkbEkvfYreDqJhZxYAWFPtrfhNpj4w==", "dev": true, "license": "MIT", + "peer": true, "dependencies": { "@babel/template": "^7.27.2", "@babel/types": "^7.28.4" @@ -1217,6 +1229,7 @@ "integrity": "sha512-KKBU1VGYR7ORr3At5HAtUQ+TV3SzRCXmA/8OdDZiLDBIZxVyzXuztPjfLd3BV1PRAQGCMWWSHYhL0F8d5uHBDQ==", "dev": true, "license": "MIT", + "peer": true, "dependencies": { "@babel/types": "^7.28.5" }, @@ -1233,6 +1246,7 @@ "integrity": "sha512-tycmZxkGfZaxhMRbXlPXuVFpdWlXpir2W4AMhSJgRKzk/eDlIXOhb2LHWoLpDF7TEHylV5zNhykX6KAgHJmTNw==", "dev": true, "license": "MIT", + "peer": true, "dependencies": { "@babel/helper-plugin-utils": "^7.8.0" }, @@ -1246,6 +1260,7 @@ "integrity": "sha512-wnTnFlG+YxQm3vDxpGE57Pj0srRU4sHE/mDkt1qv2YJJSeUAec2ma4WLUnUPeKjyrfntVwe/N6dCXpU+zL3Npg==", "dev": true, "license": "MIT", + "peer": true, "dependencies": { "@babel/helper-plugin-utils": "^7.8.0" }, @@ -1259,6 +1274,7 @@ "integrity": "sha512-fm4idjKla0YahUNgFNLCB0qySdsoPiZP3iQE3rky0mBUtMZ23yDJ9SJdg6dXTSDnulOVqiF3Hgr9nbXvXTQZYA==", "dev": true, "license": "MIT", + "peer": true, "dependencies": { "@babel/helper-plugin-utils": "^7.12.13" }, @@ -1272,6 +1288,7 @@ "integrity": "sha512-b+YyPmr6ldyNnM6sqYeMWE+bgJcJpO6yS4QD7ymxgH34GBPNDM/THBh8iunyvKIZztiwLH4CJZ0RxTk9emgpjw==", "dev": true, "license": "MIT", + "peer": true, "dependencies": { "@babel/helper-plugin-utils": "^7.14.5" }, @@ -1288,6 +1305,7 @@ "integrity": "sha512-oFT0FrKHgF53f4vOsZGi2Hh3I35PfSmVs4IBFLFj4dnafP+hIWDLg3VyKmUHfLoLHlyxY4C7DGtmHuJgn+IGww==", "dev": true, "license": "MIT", + "peer": true, "dependencies": { "@babel/helper-plugin-utils": "^7.27.1" }, @@ -1304,6 +1322,7 @@ "integrity": "sha512-Yqfm+XDx0+Prh3VSeEQCPU81yC+JWZ2pDPFSS4ZdpfZhp4MkFMaDC1UqseovEKwSUpnIL7+vK+Clp7bfh0iD7g==", "dev": true, "license": "MIT", + "peer": true, "dependencies": { "@babel/helper-plugin-utils": "^7.10.4" }, @@ -1317,6 +1336,7 @@ "integrity": "sha512-lY6kdGpWHvjoe2vk4WrAapEuBR69EMxZl+RoGRhrFGNYVK8mOPAW8VfbT/ZgrFbXlDNiiaxQnAtgVCZ6jv30EA==", "dev": true, "license": "MIT", + "peer": true, "dependencies": { "@babel/helper-plugin-utils": "^7.8.0" }, @@ -1330,6 +1350,7 @@ "integrity": "sha512-y8YTNIeKoyhGd9O0Jiyzyyqk8gdjnumGTQPsz0xOZOQ2RmkVJeZ1vmmfIvFEKqucBG6axJGBZDE/7iI5suUI/w==", "dev": true, "license": "MIT", + "peer": true, "dependencies": { "@babel/helper-plugin-utils": "^7.27.1" }, @@ -1346,6 +1367,7 @@ "integrity": "sha512-d8waShlpFDinQ5MtvGU9xDAOzKH47+FFoney2baFIoMr952hKOLp1HR7VszoZvOsV/4+RRszNY7D17ba0te0ig==", "dev": true, "license": "MIT", + "peer": true, "dependencies": { "@babel/helper-plugin-utils": "^7.10.4" }, @@ -1359,6 +1381,7 @@ "integrity": "sha512-aSff4zPII1u2QD7y+F8oDsz19ew4IGEJg9SVW+bqwpwtfFleiQDMdzA/R+UlWDzfnHFCxxleFT0PMIrR36XLNQ==", "dev": true, "license": "MIT", + "peer": true, "dependencies": { "@babel/helper-plugin-utils": "^7.8.0" }, @@ -1372,6 +1395,7 @@ "integrity": "sha512-9H6YdfkcK/uOnY/K7/aA2xpzaAgkQn37yzWUMRK7OaPOqOpGS1+n0H5hxT9AUw9EsSjPW8SVyMJwYRtWs3X3ug==", "dev": true, "license": "MIT", + "peer": true, "dependencies": { "@babel/helper-plugin-utils": "^7.10.4" }, @@ -1385,6 +1409,7 @@ "integrity": "sha512-XoqMijGZb9y3y2XskN+P1wUGiVwWZ5JmoDRwx5+3GmEplNyVM2s2Dg8ILFQm8rWM48orGy5YpI5Bl8U1y7ydlA==", "dev": true, "license": "MIT", + "peer": true, "dependencies": { "@babel/helper-plugin-utils": "^7.8.0" }, @@ -1398,6 +1423,7 @@ "integrity": "sha512-6VPD0Pc1lpTqw0aKoeRTMiB+kWhAoT24PA+ksWSBrFtl5SIRVpZlwN3NNPQjehA2E/91FV3RjLWoVTglWcSV3Q==", "dev": true, "license": "MIT", + "peer": true, "dependencies": { "@babel/helper-plugin-utils": "^7.8.0" }, @@ -1411,6 +1437,7 @@ "integrity": "sha512-KoK9ErH1MBlCPxV0VANkXW2/dw4vlbGDrFgz8bmUsBGYkFRcbRwMh6cIJubdPrkxRwuGdtCk0v/wPTKbQgBjkg==", "dev": true, "license": "MIT", + "peer": true, "dependencies": { "@babel/helper-plugin-utils": "^7.8.0" }, @@ -1424,6 +1451,7 @@ "integrity": "sha512-0wVnp9dxJ72ZUJDV27ZfbSj6iHLoytYZmh3rFcxNnvsJF3ktkzLDZPy/mA17HGsaQT3/DQsWYX1f1QGWkCoVUg==", "dev": true, "license": "MIT", + "peer": true, "dependencies": { "@babel/helper-plugin-utils": "^7.14.5" }, @@ -1440,6 +1468,7 @@ "integrity": "sha512-hx++upLv5U1rgYfwe1xBQUhRmU41NEvpUvrp8jkrSCdvGSnM5/qdRMtylJ6PG5OFkBaHkbTAKTnd3/YyESRHFw==", "dev": true, "license": "MIT", + "peer": true, "dependencies": { "@babel/helper-plugin-utils": "^7.14.5" }, @@ -1456,6 +1485,7 @@ "integrity": "sha512-xfYCBMxveHrRMnAWl1ZlPXOZjzkN82THFvLhQhFXFt81Z5HnN+EtUkZhv/zcKpmT3fzmWZB0ywiBrbC3vogbwQ==", "dev": true, "license": "MIT", + "peer": true, "dependencies": { "@babel/helper-plugin-utils": "^7.27.1" }, @@ -1481,6 +1511,7 @@ "integrity": "sha512-LPDZ85aEJyYSd18/DkjNh4/y1ntkE5KwUHWTiqgRxruuZL2F1yuHligVHLvcHY2vMHXttKFpJn6LwfI7cw7ODw==", "dev": true, "license": "MIT", + "peer": true, "dependencies": { "@babel/code-frame": "^7.27.1", "@babel/parser": "^7.27.2", @@ -1496,6 +1527,7 @@ "integrity": "sha512-TCCj4t55U90khlYkVV/0TfkJkAkUg3jZFA3Neb7unZT8CPok7iiRfaX0F+WnqWqt7OxhOn0uBKXCw4lbL8W0aQ==", "dev": true, "license": "MIT", + "peer": true, "dependencies": { "@babel/code-frame": "^7.27.1", "@babel/generator": "^7.28.5", @@ -1515,6 +1547,7 @@ "integrity": "sha512-qQ5m48eI/MFLQ5PxQj4PFaprjyCTLI37ElWMmNs0K8Lk3dVeOdNpB3ks8jc7yM5CDmVC73eMVk/trk3fgmrUpA==", "dev": true, "license": "MIT", + "peer": true, "dependencies": { "@babel/helper-string-parser": "^7.27.1", "@babel/helper-validator-identifier": "^7.28.5" @@ -1528,7 +1561,8 @@ "resolved": "https://registry.npmjs.org/@bcoe/v8-coverage/-/v8-coverage-0.2.3.tgz", "integrity": "sha512-0hYQ8SB4Db5zvZB4axdMHGwEaQjkZzFjQiN9LVYvIFB2nSUHW9tYpxWriPrWDASIxiaXax83REcLxuSdnGPZtw==", "dev": true, - "license": "MIT" + "license": "MIT", + "peer": true }, "node_modules/@colors/colors": { "version": "1.5.0", @@ -1551,9 +1585,9 @@ } }, "node_modules/@continuedev/config-yaml": { - "version": "1.37.0", - "resolved": "https://registry.npmjs.org/@continuedev/config-yaml/-/config-yaml-1.37.0.tgz", - "integrity": "sha512-OFt5HzBp0UT3HV/vG7IaHLI7mQp5oCn39pzW+zy7jV7mFcgWYMPeC0VeN++tvvE9W2CvKmeBEEE9Nn2othnekQ==", + "version": "1.38.0", + "resolved": "https://registry.npmjs.org/@continuedev/config-yaml/-/config-yaml-1.38.0.tgz", + "integrity": "sha512-KkkuWdqRVx20sRY0GlntxgrX4El1SrWzOe1nPuW39fH9tDFqRcJtIqvEbCrhD6zJSVYOrfuhBUzBeje/UuDBFA==", "license": "Apache-2.0", "dependencies": { "@continuedev/config-types": "^1.0.14", @@ -1608,6 +1642,7 @@ "dev": true, "license": "MIT", "optional": true, + "peer": true, "dependencies": { "@emnapi/wasi-threads": "1.1.0", "tslib": "^2.4.0" @@ -1620,6 +1655,7 @@ "dev": true, "license": "MIT", "optional": true, + "peer": true, "dependencies": { "tslib": "^2.4.0" } @@ -1631,6 +1667,7 @@ "dev": true, "license": "MIT", "optional": true, + "peer": true, "dependencies": { "tslib": "^2.4.0" } @@ -2121,6 +2158,7 @@ "integrity": "sha512-VjeHSlIzpv/NyD3N0YuHfXOPDIixcA1q2ZV98wsMqcYlPmv2n3Yb2lYP9XMElnaFVXg5A7YLTeLu6V84uQDjmQ==", "dev": true, "license": "ISC", + "peer": true, "dependencies": { "camelcase": "^5.3.1", "find-up": "^4.1.0", @@ -2138,6 +2176,7 @@ "integrity": "sha512-ZXRY4jNvVgSVQ8DL3LTcakaAtXwTVUxE81hslsyD2AtoXW/wVob10HkOJ1X/pAlcI7D+2YoZKg5do8G/w6RYgA==", "dev": true, "license": "MIT", + "peer": true, "engines": { "node": ">=8" } @@ -2148,6 +2187,7 @@ "integrity": "sha512-+O1ifRjkvYIkBqASKWgLxrpEhQAAE7hY77ALLUufSk5717KfOShg6IbqLmdsLMPdUiFvA2kTs0R7YZy+l0IzZQ==", "dev": true, "license": "MIT", + "peer": true, "dependencies": { "@jest/types": "30.2.0", "@types/node": "*", @@ -2166,6 +2206,7 @@ "integrity": "sha512-Cxwpt2SfTzTtXcfOlzGEee8O+c+MmUgGrNiBcXnuWxuFJHe6a5Hz7qwhwe5OgaSYI0IJvkLqWX1ASG+cJOkEiA==", "dev": true, "license": "MIT", + "peer": true, "engines": { "node": ">=10" }, @@ -2179,6 +2220,7 @@ "integrity": "sha512-y4DKFLZ2y6DxTWD4cDe07RglV88ZiNEdlRfGtqahfbIjfsw1nMCPx49Uev4IA/hWn3sDKyAnSPwoYSsAEdcimw==", "dev": true, "license": "MIT", + "peer": true, "dependencies": { "@babel/code-frame": "^7.27.1", "@jest/types": "30.2.0", @@ -2200,6 +2242,7 @@ "integrity": "sha512-QKNsM0o3Xe6ISQU869e+DhG+4CK/48aHYdJZGlFQVTjnbvgpcKyxpzk29fGiO7i/J8VENZ+d2iGnSsvmuHywlA==", "dev": true, "license": "MIT", + "peer": true, "dependencies": { "@jest/types": "30.2.0", "@types/node": "*", @@ -2218,6 +2261,7 @@ "integrity": "sha512-5gTmgEY/sqK6gFXLIsQNH19lWb4ebPDLA4SdLP7dsWkIXHWlG66oPuVvXSGFPppYZz8ZDZq0dYYrbHfBCVUb1Q==", "dev": true, "license": "MIT", + "peer": true, "engines": { "node": ">=12" }, @@ -2231,6 +2275,7 @@ "integrity": "sha512-9uBdv/B4EefsuAL+pWqueZyZS2Ba+LxfFeQ9DN14HU4bN8bhaxKdkpjpB6fs9+pSjIBu+FXQHImEg8j/Lw0+vA==", "dev": true, "license": "MIT", + "peer": true, "dependencies": { "@jest/schemas": "30.0.5", "ansi-styles": "^5.2.0", @@ -2246,6 +2291,7 @@ "integrity": "sha512-03W6IhuhjqTlpzh/ojut/pDB2LPRygyWX8ExpgHtQA8H/3K7+1vKmcINx5UzeOX1se6YEsBsOHQ1CRzf3fOwTQ==", "dev": true, "license": "MIT", + "peer": true, "dependencies": { "@jest/console": "30.2.0", "@jest/pattern": "30.0.1", @@ -2294,6 +2340,7 @@ "integrity": "sha512-Cxwpt2SfTzTtXcfOlzGEee8O+c+MmUgGrNiBcXnuWxuFJHe6a5Hz7qwhwe5OgaSYI0IJvkLqWX1ASG+cJOkEiA==", "dev": true, "license": "MIT", + "peer": true, "engines": { "node": ">=10" }, @@ -2307,6 +2354,7 @@ "integrity": "sha512-y4DKFLZ2y6DxTWD4cDe07RglV88ZiNEdlRfGtqahfbIjfsw1nMCPx49Uev4IA/hWn3sDKyAnSPwoYSsAEdcimw==", "dev": true, "license": "MIT", + "peer": true, "dependencies": { "@babel/code-frame": "^7.27.1", "@jest/types": "30.2.0", @@ -2328,6 +2376,7 @@ "integrity": "sha512-QKNsM0o3Xe6ISQU869e+DhG+4CK/48aHYdJZGlFQVTjnbvgpcKyxpzk29fGiO7i/J8VENZ+d2iGnSsvmuHywlA==", "dev": true, "license": "MIT", + "peer": true, "dependencies": { "@jest/types": "30.2.0", "@types/node": "*", @@ -2346,6 +2395,7 @@ "integrity": "sha512-5gTmgEY/sqK6gFXLIsQNH19lWb4ebPDLA4SdLP7dsWkIXHWlG66oPuVvXSGFPppYZz8ZDZq0dYYrbHfBCVUb1Q==", "dev": true, "license": "MIT", + "peer": true, "engines": { "node": ">=12" }, @@ -2359,6 +2409,7 @@ "integrity": "sha512-9uBdv/B4EefsuAL+pWqueZyZS2Ba+LxfFeQ9DN14HU4bN8bhaxKdkpjpB6fs9+pSjIBu+FXQHImEg8j/Lw0+vA==", "dev": true, "license": "MIT", + "peer": true, "dependencies": { "@jest/schemas": "30.0.5", "ansi-styles": "^5.2.0", @@ -2374,6 +2425,7 @@ "integrity": "sha512-n5H8QLDJ47QqbCNn5SuFjCRDrOLEZ0h8vAHCK5RL9Ls7Xa8AQLa/YxAc9UjFqoEDM48muwtBGjtMY5cr0PLDCw==", "dev": true, "license": "MIT", + "peer": true, "engines": { "node": "^18.14.0 || ^20.0.0 || ^22.0.0 || >=24.0.0" } @@ -2384,6 +2436,7 @@ "integrity": "sha512-/QPTL7OBJQ5ac09UDRa3EQes4gt1FTEG/8jZ/4v5IVzx+Cv7dLxlVIvfvSVRiiX2drWyXeBjkMSR8hvOWSog5g==", "dev": true, "license": "MIT", + "peer": true, "dependencies": { "@jest/fake-timers": "30.2.0", "@jest/types": "30.2.0", @@ -2400,6 +2453,7 @@ "integrity": "sha512-V9yxQK5erfzx99Sf+7LbhBwNWEZ9eZay8qQ9+JSC0TrMR1pMDHLMY+BnVPacWU6Jamrh252/IKo4F1Xn/zfiqA==", "dev": true, "license": "MIT", + "peer": true, "dependencies": { "expect": "30.2.0", "jest-snapshot": "30.2.0" @@ -2427,6 +2481,7 @@ "integrity": "sha512-1JnRfhqpD8HGpOmQp180Fo9Zt69zNtC+9lR+kT7NVL05tNXIi+QC8Csz7lfidMoVLPD3FnOtcmp0CEFnxExGEA==", "dev": true, "license": "MIT", + "peer": true, "dependencies": { "@jest/get-type": "30.1.0" }, @@ -2440,6 +2495,7 @@ "integrity": "sha512-Cxwpt2SfTzTtXcfOlzGEee8O+c+MmUgGrNiBcXnuWxuFJHe6a5Hz7qwhwe5OgaSYI0IJvkLqWX1ASG+cJOkEiA==", "dev": true, "license": "MIT", + "peer": true, "engines": { "node": ">=10" }, @@ -2453,6 +2509,7 @@ "integrity": "sha512-u/feCi0GPsI+988gU2FLcsHyAHTU0MX1Wg68NhAnN7z/+C5wqG+CY8J53N9ioe8RXgaoz0nBR/TYMf3AycUuPw==", "dev": true, "license": "MIT", + "peer": true, "dependencies": { "@jest/expect-utils": "30.2.0", "@jest/get-type": "30.1.0", @@ -2471,6 +2528,7 @@ "integrity": "sha512-dQHFo3Pt4/NLlG5z4PxZ/3yZTZ1C7s9hveiOj+GCN+uT109NC2QgsoVZsVOAvbJ3RgKkvyLGXZV9+piDpWbm6A==", "dev": true, "license": "MIT", + "peer": true, "dependencies": { "@jest/diff-sequences": "30.0.1", "@jest/get-type": "30.1.0", @@ -2487,6 +2545,7 @@ "integrity": "sha512-dQ94Nq4dbzmUWkQ0ANAWS9tBRfqCrn0bV9AMYdOi/MHW726xn7eQmMeRTpX2ViC00bpNaWXq+7o4lIQ3AX13Hg==", "dev": true, "license": "MIT", + "peer": true, "dependencies": { "@jest/get-type": "30.1.0", "chalk": "^4.1.2", @@ -2503,6 +2562,7 @@ "integrity": "sha512-y4DKFLZ2y6DxTWD4cDe07RglV88ZiNEdlRfGtqahfbIjfsw1nMCPx49Uev4IA/hWn3sDKyAnSPwoYSsAEdcimw==", "dev": true, "license": "MIT", + "peer": true, "dependencies": { "@babel/code-frame": "^7.27.1", "@jest/types": "30.2.0", @@ -2524,6 +2584,7 @@ "integrity": "sha512-QKNsM0o3Xe6ISQU869e+DhG+4CK/48aHYdJZGlFQVTjnbvgpcKyxpzk29fGiO7i/J8VENZ+d2iGnSsvmuHywlA==", "dev": true, "license": "MIT", + "peer": true, "dependencies": { "@jest/types": "30.2.0", "@types/node": "*", @@ -2542,6 +2603,7 @@ "integrity": "sha512-5gTmgEY/sqK6gFXLIsQNH19lWb4ebPDLA4SdLP7dsWkIXHWlG66oPuVvXSGFPppYZz8ZDZq0dYYrbHfBCVUb1Q==", "dev": true, "license": "MIT", + "peer": true, "engines": { "node": ">=12" }, @@ -2555,6 +2617,7 @@ "integrity": "sha512-9uBdv/B4EefsuAL+pWqueZyZS2Ba+LxfFeQ9DN14HU4bN8bhaxKdkpjpB6fs9+pSjIBu+FXQHImEg8j/Lw0+vA==", "dev": true, "license": "MIT", + "peer": true, "dependencies": { "@jest/schemas": "30.0.5", "ansi-styles": "^5.2.0", @@ -2570,6 +2633,7 @@ "integrity": "sha512-HI3tRLjRxAbBy0VO8dqqm7Hb2mIa8d5bg/NJkyQcOk7V118ObQML8RC5luTF/Zsg4474a+gDvhce7eTnP4GhYw==", "dev": true, "license": "MIT", + "peer": true, "dependencies": { "@jest/types": "30.2.0", "@sinonjs/fake-timers": "^13.0.0", @@ -2588,6 +2652,7 @@ "integrity": "sha512-Cxwpt2SfTzTtXcfOlzGEee8O+c+MmUgGrNiBcXnuWxuFJHe6a5Hz7qwhwe5OgaSYI0IJvkLqWX1ASG+cJOkEiA==", "dev": true, "license": "MIT", + "peer": true, "engines": { "node": ">=10" }, @@ -2601,6 +2666,7 @@ "integrity": "sha512-y4DKFLZ2y6DxTWD4cDe07RglV88ZiNEdlRfGtqahfbIjfsw1nMCPx49Uev4IA/hWn3sDKyAnSPwoYSsAEdcimw==", "dev": true, "license": "MIT", + "peer": true, "dependencies": { "@babel/code-frame": "^7.27.1", "@jest/types": "30.2.0", @@ -2622,6 +2688,7 @@ "integrity": "sha512-QKNsM0o3Xe6ISQU869e+DhG+4CK/48aHYdJZGlFQVTjnbvgpcKyxpzk29fGiO7i/J8VENZ+d2iGnSsvmuHywlA==", "dev": true, "license": "MIT", + "peer": true, "dependencies": { "@jest/types": "30.2.0", "@types/node": "*", @@ -2640,6 +2707,7 @@ "integrity": "sha512-5gTmgEY/sqK6gFXLIsQNH19lWb4ebPDLA4SdLP7dsWkIXHWlG66oPuVvXSGFPppYZz8ZDZq0dYYrbHfBCVUb1Q==", "dev": true, "license": "MIT", + "peer": true, "engines": { "node": ">=12" }, @@ -2653,6 +2721,7 @@ "integrity": "sha512-9uBdv/B4EefsuAL+pWqueZyZS2Ba+LxfFeQ9DN14HU4bN8bhaxKdkpjpB6fs9+pSjIBu+FXQHImEg8j/Lw0+vA==", "dev": true, "license": "MIT", + "peer": true, "dependencies": { "@jest/schemas": "30.0.5", "ansi-styles": "^5.2.0", @@ -2668,6 +2737,7 @@ "integrity": "sha512-eMbZE2hUnx1WV0pmURZY9XoXPkUYjpc55mb0CrhtdWLtzMQPFvu/rZkTLZFTsdaVQa+Tr4eWAteqcUzoawq/uA==", "dev": true, "license": "MIT", + "peer": true, "engines": { "node": "^18.14.0 || ^20.0.0 || ^22.0.0 || >=24.0.0" } @@ -2678,6 +2748,7 @@ "integrity": "sha512-b63wmnKPaK+6ZZfpYhz9K61oybvbI1aMcIs80++JI1O1rR1vaxHUCNqo3ITu6NU0d4V34yZFoHMn/uoKr/Rwfw==", "dev": true, "license": "MIT", + "peer": true, "dependencies": { "@jest/environment": "30.2.0", "@jest/expect": "30.2.0", @@ -2694,6 +2765,7 @@ "integrity": "sha512-gWp7NfQW27LaBQz3TITS8L7ZCQ0TLvtmI//4OwlQRx4rnWxcPNIYjxZpDcN4+UlGxgm3jS5QPz8IPTCkb59wZA==", "dev": true, "license": "MIT", + "peer": true, "dependencies": { "@types/node": "*", "jest-regex-util": "30.0.1" @@ -2708,6 +2780,7 @@ "integrity": "sha512-DRyW6baWPqKMa9CzeiBjHwjd8XeAyco2Vt8XbcLFjiwCOEKOvy82GJ8QQnJE9ofsxCMPjH4MfH8fCWIHHDKpAQ==", "dev": true, "license": "MIT", + "peer": true, "dependencies": { "@bcoe/v8-coverage": "^0.2.3", "@jest/console": "30.2.0", @@ -2751,6 +2824,7 @@ "integrity": "sha512-Cxwpt2SfTzTtXcfOlzGEee8O+c+MmUgGrNiBcXnuWxuFJHe6a5Hz7qwhwe5OgaSYI0IJvkLqWX1ASG+cJOkEiA==", "dev": true, "license": "MIT", + "peer": true, "engines": { "node": ">=10" }, @@ -2764,6 +2838,7 @@ "integrity": "sha512-y4DKFLZ2y6DxTWD4cDe07RglV88ZiNEdlRfGtqahfbIjfsw1nMCPx49Uev4IA/hWn3sDKyAnSPwoYSsAEdcimw==", "dev": true, "license": "MIT", + "peer": true, "dependencies": { "@babel/code-frame": "^7.27.1", "@jest/types": "30.2.0", @@ -2785,6 +2860,7 @@ "integrity": "sha512-QKNsM0o3Xe6ISQU869e+DhG+4CK/48aHYdJZGlFQVTjnbvgpcKyxpzk29fGiO7i/J8VENZ+d2iGnSsvmuHywlA==", "dev": true, "license": "MIT", + "peer": true, "dependencies": { "@jest/types": "30.2.0", "@types/node": "*", @@ -2803,6 +2879,7 @@ "integrity": "sha512-5gTmgEY/sqK6gFXLIsQNH19lWb4ebPDLA4SdLP7dsWkIXHWlG66oPuVvXSGFPppYZz8ZDZq0dYYrbHfBCVUb1Q==", "dev": true, "license": "MIT", + "peer": true, "engines": { "node": ">=12" }, @@ -2816,6 +2893,7 @@ "integrity": "sha512-9uBdv/B4EefsuAL+pWqueZyZS2Ba+LxfFeQ9DN14HU4bN8bhaxKdkpjpB6fs9+pSjIBu+FXQHImEg8j/Lw0+vA==", "dev": true, "license": "MIT", + "peer": true, "dependencies": { "@jest/schemas": "30.0.5", "ansi-styles": "^5.2.0", @@ -2831,6 +2909,7 @@ "integrity": "sha512-DmdYgtezMkh3cpU8/1uyXakv3tJRcmcXxBOcO0tbaozPwpmh4YMsnWrQm9ZmZMfa5ocbxzbFk6O4bDPEc/iAnA==", "dev": true, "license": "MIT", + "peer": true, "dependencies": { "@sinclair/typebox": "^0.34.0" }, @@ -2844,6 +2923,7 @@ "integrity": "sha512-0aVxM3RH6DaiLcjj/b0KrIBZhSX1373Xci4l3cW5xiUWPctZ59zQ7jj4rqcJQ/Z8JuN/4wX3FpJSa3RssVvCug==", "dev": true, "license": "MIT", + "peer": true, "dependencies": { "@jest/types": "30.2.0", "chalk": "^4.1.2", @@ -2860,6 +2940,7 @@ "integrity": "sha512-MIRWMUUR3sdbP36oyNyhbThLHyJ2eEDClPCiHVbrYAe5g3CHRArIVpBw7cdSB5fr+ofSfIb2Tnsw8iEHL0PYQg==", "dev": true, "license": "MIT", + "peer": true, "dependencies": { "@jridgewell/trace-mapping": "^0.3.25", "callsites": "^3.1.0", @@ -2875,6 +2956,7 @@ "integrity": "sha512-RF+Z+0CCHkARz5HT9mcQCBulb1wgCP3FBvl9VFokMX27acKphwyQsNuWH3c+ojd1LeWBLoTYoxF0zm6S/66mjg==", "dev": true, "license": "MIT", + "peer": true, "dependencies": { "@jest/console": "30.2.0", "@jest/types": "30.2.0", @@ -2891,6 +2973,7 @@ "integrity": "sha512-wXKgU/lk8fKXMu/l5Hog1R61bL4q5GCdT6OJvdAFz1P+QrpoFuLU68eoKuVc4RbrTtNnTL5FByhWdLgOPSph+Q==", "dev": true, "license": "MIT", + "peer": true, "dependencies": { "@jest/test-result": "30.2.0", "graceful-fs": "^4.2.11", @@ -2907,6 +2990,7 @@ "integrity": "sha512-XsauDV82o5qXbhalKxD7p4TZYYdwcaEXC77PPD2HixEFF+6YGppjrAAQurTl2ECWcEomHBMMNS9AH3kcCFx8jA==", "dev": true, "license": "MIT", + "peer": true, "dependencies": { "@babel/core": "^7.27.4", "@jest/types": "30.2.0", @@ -2934,6 +3018,7 @@ "integrity": "sha512-QKNsM0o3Xe6ISQU869e+DhG+4CK/48aHYdJZGlFQVTjnbvgpcKyxpzk29fGiO7i/J8VENZ+d2iGnSsvmuHywlA==", "dev": true, "license": "MIT", + "peer": true, "dependencies": { "@jest/types": "30.2.0", "@types/node": "*", @@ -2952,6 +3037,7 @@ "integrity": "sha512-5gTmgEY/sqK6gFXLIsQNH19lWb4ebPDLA4SdLP7dsWkIXHWlG66oPuVvXSGFPppYZz8ZDZq0dYYrbHfBCVUb1Q==", "dev": true, "license": "MIT", + "peer": true, "engines": { "node": ">=12" }, @@ -2965,6 +3051,7 @@ "integrity": "sha512-H9xg1/sfVvyfU7o3zMfBEjQ1gcsdeTMgqHoYdN79tuLqfTtuu7WckRA1R5whDwOzxaZAeMKTYWqP+WCAi0CHsg==", "dev": true, "license": "MIT", + "peer": true, "dependencies": { "@jest/pattern": "30.0.1", "@jest/schemas": "30.0.5", @@ -2984,6 +3071,7 @@ "integrity": "sha512-2kkt/7niJ6MgEPxF0bYdQ6etZaA+fQvDcLKckhy1yIQOzaoKjBBjSj63/aLVjYE3qhRt5dvM+uUyfCg6UKCBbA==", "dev": true, "license": "MIT", + "peer": true, "dependencies": { "@jridgewell/sourcemap-codec": "^1.5.0", "@jridgewell/trace-mapping": "^0.3.24" @@ -2995,6 +3083,7 @@ "integrity": "sha512-LI9u/+laYG4Ds1TDKSJW2YPrIlcVYOwi2fUC6xB43lueCjgxV4lffOCZCtYFiH6TNOX+tQKXx97T4IKHbhyHEQ==", "dev": true, "license": "MIT", + "peer": true, "dependencies": { "@jridgewell/gen-mapping": "^0.3.5", "@jridgewell/trace-mapping": "^0.3.24" @@ -3023,6 +3112,7 @@ "integrity": "sha512-zzNR+SdQSDJzc8joaeP8QQoCQr8NuYx2dIIytl1QeBEZHJ9uW6hebsrYgbz8hJwUQao3TWCMtmfV8Nu1twOLAw==", "dev": true, "license": "MIT", + "peer": true, "dependencies": { "@jridgewell/resolve-uri": "^3.1.0", "@jridgewell/sourcemap-codec": "^1.4.14" @@ -3035,6 +3125,7 @@ "dev": true, "license": "MIT", "optional": true, + "peer": true, "dependencies": { "@emnapi/core": "^1.4.3", "@emnapi/runtime": "^1.4.3", @@ -3057,7 +3148,6 @@ "integrity": "sha512-DhGl4xMVFGVIyMwswXeyzdL4uXD5OGILGX5N8Y+f6W7LhC1Ze2poSNrkF/fedpVDHEEZ+PHFW0vL14I+mm8K3Q==", "dev": true, "license": "MIT", - "peer": true, "dependencies": { "@octokit/auth-token": "^6.0.0", "@octokit/graphql": "^9.0.3", @@ -3240,6 +3330,7 @@ "integrity": "sha512-QNqXyfVS2wm9hweSYD2O7F0G06uurj9kZ96TRQE5Y9hU7+tgdZwIkbAKc5Ocy1HxEY2kuDQa6cQ1WRs/O5LFKA==", "dev": true, "license": "MIT", + "peer": true, "engines": { "node": "^12.20.0 || ^14.18.0 || >=16.0.0" }, @@ -4045,7 +4136,8 @@ "resolved": "https://registry.npmjs.org/@sinclair/typebox/-/typebox-0.34.41.tgz", "integrity": "sha512-6gS8pZzSXdyRHTIqoqSVknxolr1kzfy4/CeDnrzsVz8TTIWUbOBr6gnzOmTYJ3eXQNh4IYHIGi5aIL7sOZ2G/g==", "dev": true, - "license": "MIT" + "license": "MIT", + "peer": true }, "node_modules/@sindresorhus/is": { "version": "4.6.0", @@ -4079,6 +4171,7 @@ "integrity": "sha512-K3mCHKQ9sVh8o1C9cxkwxaOmXoAMlDxC1mYyHrjqOWEcBjYr76t96zL2zlj5dUGZ3HSw240X1qgH3Mjf1yJWpQ==", "dev": true, "license": "BSD-3-Clause", + "peer": true, "dependencies": { "type-detect": "4.0.8" } @@ -4089,6 +4182,7 @@ "integrity": "sha512-36/hTbH2uaWuGVERyC6da9YwGWnzUZXuPro/F2LfsdOsLnCojz/iSH8MxUt/FD2S5XBSVPhmArFUXcpCQ2Hkiw==", "dev": true, "license": "BSD-3-Clause", + "peer": true, "dependencies": { "@sinonjs/commons": "^3.0.1" } @@ -4778,6 +4872,7 @@ "dev": true, "license": "MIT", "optional": true, + "peer": true, "dependencies": { "tslib": "^2.4.0" } @@ -4788,6 +4883,7 @@ "integrity": "sha512-qoQprZvz5wQFJwMDqeseRXWv3rqMvhgpbXFfVyWhbx9X47POIA6i/+dXefEmZKoAgOaTdaIgNSMqMIU61yRyzA==", "dev": true, "license": "MIT", + "peer": true, "dependencies": { "@babel/parser": "^7.20.7", "@babel/types": "^7.20.7", @@ -4802,6 +4898,7 @@ "integrity": "sha512-ufFd2Xi92OAVPYsy+P4n7/U7e68fex0+Ee8gSG9KX7eo084CWiQ4sdxktvdl0bOPupXtVJPY19zk6EwWqUQ8lg==", "dev": true, "license": "MIT", + "peer": true, "dependencies": { "@babel/types": "^7.0.0" } @@ -4812,6 +4909,7 @@ "integrity": "sha512-h/NUaSyG5EyxBIp8YRxo4RMe2/qQgvyowRwVMzhYhBCONbW8PUsg4lkFMrhgZhUe5z3L3MiLDuvyJ/CaPa2A8A==", "dev": true, "license": "MIT", + "peer": true, "dependencies": { "@babel/parser": "^7.1.0", "@babel/types": "^7.0.0" @@ -4823,6 +4921,7 @@ "integrity": "sha512-8PvcXf70gTDZBgt9ptxJ8elBeBjcLOAcOtoO/mPJjtji1+CdGbHgm77om1GrsPxsiE+uXIpNSK64UYaIwQXd4Q==", "dev": true, "license": "MIT", + "peer": true, "dependencies": { "@babel/types": "^7.28.2" } @@ -4919,7 +5018,6 @@ "integrity": "sha512-GNWcUTRBgIRJD5zj+Tq0fKOJ5XZajIiBroOF0yvj2bSU1WvNdYS/dn9UxwsujGW4JX06dnHyjV2y9rRaybH0iQ==", "dev": true, "license": "MIT", - "peer": true, "dependencies": { "undici-types": "~7.16.0" } @@ -4960,7 +5058,8 @@ "resolved": "https://registry.npmjs.org/@ungap/structured-clone/-/structured-clone-1.3.0.tgz", "integrity": "sha512-WmoN8qaIAo7WTYWbAZuG8PYEhn5fkz7dZrqTBZ7dtt//lL2Gwms1IcnQ5yHqjDfX8Ft5j4YzDM23f87zBfDe9g==", "dev": true, - "license": "ISC" + "license": "ISC", + "peer": true }, "node_modules/@unrs/resolver-binding-android-arm-eabi": { "version": "1.11.1", @@ -4974,7 +5073,8 @@ "optional": true, "os": [ "android" - ] + ], + "peer": true }, "node_modules/@unrs/resolver-binding-android-arm64": { "version": "1.11.1", @@ -4988,7 +5088,8 @@ "optional": true, "os": [ "android" - ] + ], + "peer": true }, "node_modules/@unrs/resolver-binding-darwin-arm64": { "version": "1.11.1", @@ -5002,7 +5103,8 @@ "optional": true, "os": [ "darwin" - ] + ], + "peer": true }, "node_modules/@unrs/resolver-binding-darwin-x64": { "version": "1.11.1", @@ -5016,7 +5118,8 @@ "optional": true, "os": [ "darwin" - ] + ], + "peer": true }, "node_modules/@unrs/resolver-binding-freebsd-x64": { "version": "1.11.1", @@ -5030,7 +5133,8 @@ "optional": true, "os": [ "freebsd" - ] + ], + "peer": true }, "node_modules/@unrs/resolver-binding-linux-arm-gnueabihf": { "version": "1.11.1", @@ -5044,7 +5148,8 @@ "optional": true, "os": [ "linux" - ] + ], + "peer": true }, "node_modules/@unrs/resolver-binding-linux-arm-musleabihf": { "version": "1.11.1", @@ -5058,7 +5163,8 @@ "optional": true, "os": [ "linux" - ] + ], + "peer": true }, "node_modules/@unrs/resolver-binding-linux-arm64-gnu": { "version": "1.11.1", @@ -5072,7 +5178,8 @@ "optional": true, "os": [ "linux" - ] + ], + "peer": true }, "node_modules/@unrs/resolver-binding-linux-arm64-musl": { "version": "1.11.1", @@ -5086,7 +5193,8 @@ "optional": true, "os": [ "linux" - ] + ], + "peer": true }, "node_modules/@unrs/resolver-binding-linux-ppc64-gnu": { "version": "1.11.1", @@ -5100,7 +5208,8 @@ "optional": true, "os": [ "linux" - ] + ], + "peer": true }, "node_modules/@unrs/resolver-binding-linux-riscv64-gnu": { "version": "1.11.1", @@ -5114,7 +5223,8 @@ "optional": true, "os": [ "linux" - ] + ], + "peer": true }, "node_modules/@unrs/resolver-binding-linux-riscv64-musl": { "version": "1.11.1", @@ -5128,7 +5238,8 @@ "optional": true, "os": [ "linux" - ] + ], + "peer": true }, "node_modules/@unrs/resolver-binding-linux-s390x-gnu": { "version": "1.11.1", @@ -5142,7 +5253,8 @@ "optional": true, "os": [ "linux" - ] + ], + "peer": true }, "node_modules/@unrs/resolver-binding-linux-x64-gnu": { "version": "1.11.1", @@ -5156,7 +5268,8 @@ "optional": true, "os": [ "linux" - ] + ], + "peer": true }, "node_modules/@unrs/resolver-binding-linux-x64-musl": { "version": "1.11.1", @@ -5170,7 +5283,8 @@ "optional": true, "os": [ "linux" - ] + ], + "peer": true }, "node_modules/@unrs/resolver-binding-wasm32-wasi": { "version": "1.11.1", @@ -5182,6 +5296,7 @@ "dev": true, "license": "MIT", "optional": true, + "peer": true, "dependencies": { "@napi-rs/wasm-runtime": "^0.2.11" }, @@ -5201,7 +5316,8 @@ "optional": true, "os": [ "win32" - ] + ], + "peer": true }, "node_modules/@unrs/resolver-binding-win32-ia32-msvc": { "version": "1.11.1", @@ -5215,7 +5331,8 @@ "optional": true, "os": [ "win32" - ] + ], + "peer": true }, "node_modules/@unrs/resolver-binding-win32-x64-msvc": { "version": "1.11.1", @@ -5229,7 +5346,8 @@ "optional": true, "os": [ "win32" - ] + ], + "peer": true }, "node_modules/@vitest/expect": { "version": "3.2.4", @@ -5427,6 +5545,7 @@ "integrity": "sha512-gKXj5ALrKWQLsYG9jlTRmR/xKluxHV+Z9QEwNIgCfM1/uwPMCuzVVnh5mwTd+OuBZcwSIMbqssNWRm1lE51QaQ==", "dev": true, "license": "MIT", + "peer": true, "dependencies": { "type-fest": "^0.21.3" }, @@ -5477,6 +5596,7 @@ "integrity": "sha512-KMReFUr0B4t+D+OBkjR3KYqvocp2XaSzO55UcB6mgQMd3KbcE+mWTyvVV7D/zsdEbNnV6acZUutkiHQXvTr1Rw==", "dev": true, "license": "ISC", + "peer": true, "dependencies": { "normalize-path": "^3.0.0", "picomatch": "^2.0.4" @@ -5498,6 +5618,7 @@ "integrity": "sha512-o5Roy6tNG4SL/FOkCAN6RzjiakZS25RLYFrcMttJqbdd8BWrnA+fGz57iN5Pb06pvBGvl5gQ0B48dJlslXvoTg==", "dev": true, "license": "MIT", + "peer": true, "dependencies": { "sprintf-js": "~1.0.2" } @@ -5532,6 +5653,7 @@ "integrity": "sha512-0YiBEOxWqKkSQWL9nNGGEgndoeL0ZpWrbLMNL5u/Kaxrli3Eaxlt3ZtIDktEvXt4L/R9r3ODr2zKwGM/2BjxVw==", "dev": true, "license": "MIT", + "peer": true, "dependencies": { "@jest/transform": "30.2.0", "@types/babel__core": "^7.20.5", @@ -5554,6 +5676,7 @@ "integrity": "sha512-D8Z6Qm8jCvVXtIRkBnqNHX0zJ37rQcFJ9u8WOS6tkYOsRdHBzypCstaxWiu5ZIlqQtviRYbgnRLSoCEvjqcqbA==", "dev": true, "license": "BSD-3-Clause", + "peer": true, "workspaces": [ "test/babel-8" ], @@ -5574,6 +5697,7 @@ "integrity": "sha512-ftzhzSGMUnOzcCXd6WHdBGMyuwy15Wnn0iyyWGKgBDLxf9/s5ABuraCSpBX2uG0jUg4rqJnxsLc5+oYBqoxVaA==", "dev": true, "license": "MIT", + "peer": true, "dependencies": { "@types/babel__core": "^7.20.5" }, @@ -5587,6 +5711,7 @@ "integrity": "sha512-E/VlAEzRrsLEb2+dv8yp3bo4scof3l9nR4lrld+Iy5NyVqgVYUJnDAmunkhPMisRI32Qc4iRiz425d8vM++2fg==", "dev": true, "license": "MIT", + "peer": true, "dependencies": { "@babel/plugin-syntax-async-generators": "^7.8.4", "@babel/plugin-syntax-bigint": "^7.8.3", @@ -5614,6 +5739,7 @@ "integrity": "sha512-US4Z3NOieAQumwFnYdUWKvUKh8+YSnS/gB3t6YBiz0bskpu7Pine8pPCheNxlPEW4wnUkma2a94YuW2q3guvCQ==", "dev": true, "license": "MIT", + "peer": true, "dependencies": { "babel-plugin-jest-hoist": "30.2.0", "babel-preset-current-node-syntax": "^1.2.0" @@ -5657,6 +5783,7 @@ "integrity": "sha512-PxSsosKQjI38iXkmb3d0Y32efqyA0uW4s41u4IVBsLlWLhCiYNpH/AfNOVWRqCQBlD8TFJTz6OUWNd4DFJCnmw==", "dev": true, "license": "Apache-2.0", + "peer": true, "bin": { "baseline-browser-mapping": "dist/cli.js" } @@ -5766,6 +5893,7 @@ "integrity": "sha512-gQxTNE/GAfIIrmHLUE3oJyp5FO6HRBfhjnw4/wMmA63ZGDJnWBmgY/lyQBpnDUkGmAhbSe39tx2d/iTOAfglwQ==", "dev": true, "license": "Apache-2.0", + "peer": true, "dependencies": { "node-int64": "^0.4.0" } @@ -5781,7 +5909,8 @@ "resolved": "https://registry.npmjs.org/buffer-from/-/buffer-from-1.1.2.tgz", "integrity": "sha512-E+XQCRwSbaaiChtv6k6Dwgc+bx+Bs6vuKJHHl5kox/BaKbhiXzqQOwK4cO22yElGp2OCmjwVhT3HmxgyPGnJfQ==", "dev": true, - "license": "MIT" + "license": "MIT", + "peer": true }, "node_modules/cac": { "version": "6.7.14", @@ -5809,6 +5938,7 @@ "integrity": "sha512-L28STB170nwWS63UjtlEOE3dldQApaJXZkOI1uMFfzf3rRuPegHaHesyee+YxQ+W6SvRDQV6UrdOdRiR153wJg==", "dev": true, "license": "MIT", + "peer": true, "engines": { "node": ">=6" } @@ -5832,7 +5962,8 @@ "url": "https://github.com/sponsors/ai" } ], - "license": "CC-BY-4.0" + "license": "CC-BY-4.0", + "peer": true }, "node_modules/chai": { "version": "5.3.3", @@ -5910,7 +6041,8 @@ "resolved": "https://registry.npmjs.org/cjs-module-lexer/-/cjs-module-lexer-2.1.1.tgz", "integrity": "sha512-+CmxIZ/L2vNcEfvNtLdU0ZQ6mbq3FZnwAP2PPTiKP+1QOoKwlKlPgb8UKV0Dds7QVaMnHm+FwSft2VB0s/SLjQ==", "dev": true, - "license": "MIT" + "license": "MIT", + "peer": true }, "node_modules/clean-stack": { "version": "2.2.0", @@ -6193,6 +6325,7 @@ "integrity": "sha512-QVb0dM5HvG+uaxitm8wONl7jltx8dqhfU33DcqtOZcLSVIKSDDLDi7+0LbAKiyI8hD9u42m2YxXSkMGWThaecQ==", "dev": true, "license": "MIT", + "peer": true, "engines": { "iojs": ">= 1.0.0", "node": ">= 0.12.0" @@ -6203,7 +6336,8 @@ "resolved": "https://registry.npmjs.org/collect-v8-coverage/-/collect-v8-coverage-1.0.3.tgz", "integrity": "sha512-1L5aqIkwPfiodaMgQunkF1zRhNqifHBmtbbbxcr6yVxxBnliw4TDOW6NxpO8DJLgJ16OT+Y4ztZqP6p/FtXnAw==", "dev": true, - "license": "MIT" + "license": "MIT", + "peer": true }, "node_modules/color-convert": { "version": "2.0.1", @@ -6239,7 +6373,8 @@ "resolved": "https://registry.npmjs.org/concat-map/-/concat-map-0.0.1.tgz", "integrity": "sha512-/Srv4dswyQNBfohGpz9o6Yb3Gz3SrUDqBH5rTuhGR7ahtlbYKnVxw2bCFMRljaA7EXHaXZ8wsHdodFvbkhKmqg==", "dev": true, - "license": "MIT" + "license": "MIT", + "peer": true }, "node_modules/config-chain": { "version": "1.1.13", @@ -6328,7 +6463,8 @@ "resolved": "https://registry.npmjs.org/convert-source-map/-/convert-source-map-2.0.0.tgz", "integrity": "sha512-Kvp459HrV2FEJ1CAsi1Ku+MY3kasH19TFykTz2xWmMeq6bk2NU3XXvfJ+Q61m0xktWwt+1HSYf3JZsTms3aRJg==", "dev": true, - "license": "MIT" + "license": "MIT", + "peer": true }, "node_modules/core-util-is": { "version": "1.0.3", @@ -6485,6 +6621,7 @@ "integrity": "sha512-HGFtf8yhuhGhqO07SV79tRp+br4MnbdjeVxotpn1QBl30pcLLCQjX5b2295ll0fv8RKDKsmWYrl05usHM9CewQ==", "dev": true, "license": "MIT", + "peer": true, "peerDependencies": { "babel-plugin-macros": "^3.1.0" }, @@ -6520,6 +6657,7 @@ "integrity": "sha512-3sUqbMEc77XqpdNO7FRyRog+eW3ph+GYCbj+rK+uYyRMuwsVy0rMiVtPn+QJlKFvWP/1PYpapqYn0Me2knFn+A==", "dev": true, "license": "MIT", + "peer": true, "engines": { "node": ">=0.10.0" } @@ -6539,6 +6677,7 @@ "integrity": "sha512-TLz+x/vEXm/Y7P7wn1EJFNLxYpUD4TgMosxY6fAVJUnJMbupHBOncxyWUG9OpTaH9EBD7uFI5LfEgmMOc54DsA==", "dev": true, "license": "MIT", + "peer": true, "engines": { "node": ">=8" } @@ -6637,7 +6776,8 @@ "resolved": "https://registry.npmjs.org/electron-to-chromium/-/electron-to-chromium-1.5.265.tgz", "integrity": "sha512-B7IkLR1/AE+9jR2LtVF/1/6PFhY5TlnEHnlrKmGk7PvkJibg5jr+mLXLLzq3QYl6PA1T/vLDthQPqIPAlS/PPA==", "dev": true, - "license": "ISC" + "license": "ISC", + "peer": true }, "node_modules/emittery": { "version": "0.13.1", @@ -6645,6 +6785,7 @@ "integrity": "sha512-DeWwawk6r5yR9jFgnDKYt4sLS0LmHJJi3ZOnb5/JdbYwj3nW+FxQnHIjhBKz8YLC7oRNPVM9NQ47I3CVx34eqQ==", "dev": true, "license": "MIT", + "peer": true, "engines": { "node": ">=12" }, @@ -6931,6 +7072,7 @@ "integrity": "sha512-eGuFFw7Upda+g4p+QHvnW0RyTX/SVeJBDM/gCtMARO0cLuT2HcEKnTPvhjV6aGeqrCB/sbNop0Kszm0jsaWU4A==", "dev": true, "license": "BSD-2-Clause", + "peer": true, "bin": { "esparse": "bin/esparse.js", "esvalidate": "bin/esvalidate.js" @@ -6992,6 +7134,7 @@ "integrity": "sha512-+I6B/IkJc1o/2tiURyz/ivu/O0nKNEArIUB5O7zBrlDVJr22SCLH3xTeEry428LvFhRzIA1g8izguxJ/gbNcVQ==", "dev": true, "license": "MIT", + "peer": true, "engines": { "node": ">= 0.8.0" } @@ -7077,6 +7220,7 @@ "integrity": "sha512-p5161BqbuCaSnB8jIbzQHOlpgsPmK5rJVDfDKO91Axs5NC1uu3HRQm6wt9cd9/+GtQQIO53JdGXXoyDpTAsgYA==", "dev": true, "license": "Apache-2.0", + "peer": true, "dependencies": { "bser": "2.1.1" } @@ -7139,6 +7283,7 @@ "integrity": "sha512-PpOwAdQ/YlXQ2vj8a3h8IipDuYRi3wceVQQGYWxNINccq40Anw7BlsEXCMbt1Zt+OLA6Fq9suIpIWD0OsnISlw==", "dev": true, "license": "MIT", + "peer": true, "dependencies": { "locate-path": "^5.0.0", "path-exists": "^4.0.0" @@ -7268,7 +7413,8 @@ "resolved": "https://registry.npmjs.org/fs.realpath/-/fs.realpath-1.0.0.tgz", "integrity": "sha512-OO0pH2lK6a0hZnAdau5ItzHPI6pUlvI7jMVnxUQRtw4owF2wk8lOSabtGDCTP4Ggrg2MbGnWO9X8K1t4+fGMDw==", "dev": true, - "license": "ISC" + "license": "ISC", + "peer": true }, "node_modules/fsevents": { "version": "2.3.3", @@ -7333,6 +7479,7 @@ "integrity": "sha512-3hN7NaskYvMDLQY55gnW3NQ+mesEAepTqlg+VEbj7zzqEMBVNhzcGYYeqFo/TlYz6eQiFcp1HcsCZO+nGgS8zg==", "dev": true, "license": "MIT", + "peer": true, "engines": { "node": ">=6.9.0" } @@ -7353,6 +7500,7 @@ "integrity": "sha512-pjzuKtY64GYfWizNAJ0fr9VqttZkNiK2iS430LtIHzjBEr6bX8Am2zm4sW4Ro5wjWW5cAlRL1qAMTcXbjNAO2Q==", "dev": true, "license": "MIT", + "peer": true, "engines": { "node": ">=8.0.0" } @@ -7532,7 +7680,8 @@ "resolved": "https://registry.npmjs.org/html-escaper/-/html-escaper-2.0.2.tgz", "integrity": "sha512-H2iMtd0I4Mt5eYiapRdIDjp+XzelXQ0tFE4JS7YFwFevXXMmOp9myNrUvCg0D6ws8iqkRPBfKHgbwig1SmlLfg==", "dev": true, - "license": "MIT" + "license": "MIT", + "peer": true }, "node_modules/http-proxy-agent": { "version": "7.0.2", @@ -7617,6 +7766,7 @@ "integrity": "sha512-2SPlun1JUPWoM6t3F0dw0FkCF/jWY8kttcY4f599GLTSjh2OCuuhdTkJQsEcZzBqbXZGKMK2OqW1oZsjtf/gQA==", "dev": true, "license": "MIT", + "peer": true, "dependencies": { "pkg-dir": "^4.2.0", "resolve-cwd": "^3.0.0" @@ -7683,6 +7833,7 @@ "deprecated": "This module is not supported, and leaks memory. Do not use it. Check out lru-cache if you want a good and tested way to coalesce async requests by a key value, which is much more comprehensive and powerful.", "dev": true, "license": "ISC", + "peer": true, "dependencies": { "once": "^1.3.0", "wrappy": "1" @@ -7741,6 +7892,7 @@ "integrity": "sha512-cTIB4yPYL/Grw0EaSzASzg6bBy9gqCofvWN8okThAYIxKJZC+udlRAmGbM0XLeniEJSs8uEgHPGuHSe1XsOLSQ==", "dev": true, "license": "MIT", + "peer": true, "engines": { "node": ">=6" } @@ -7840,6 +7992,7 @@ "integrity": "sha512-O8dpsF+r0WV/8MNRKfnmrtCWhuKjxrq2w+jpzBL5UZKTi2LeVWnWOmWRxFlesJONmc+wLAGvKQZEOanko0LFTg==", "dev": true, "license": "BSD-3-Clause", + "peer": true, "engines": { "node": ">=8" } @@ -7850,6 +8003,7 @@ "integrity": "sha512-Vtgk7L/R2JHyyGW07spoFlB8/lpjiOLTjMdms6AFMraYt3BaJauod/NGrfnVG/y4Ix1JEuMRPDPEj2ua+zz1/Q==", "dev": true, "license": "BSD-3-Clause", + "peer": true, "dependencies": { "@babel/core": "^7.23.9", "@babel/parser": "^7.23.9", @@ -7867,6 +8021,7 @@ "integrity": "sha512-GCfE1mtsHGOELCU8e/Z7YWzpmybrx/+dSTfLrvY8qRmaY6zXTKWn6WQIjaAFw069icm6GVMNkgu0NzI4iPZUNw==", "dev": true, "license": "BSD-3-Clause", + "peer": true, "dependencies": { "istanbul-lib-coverage": "^3.0.0", "make-dir": "^4.0.0", @@ -7882,6 +8037,7 @@ "integrity": "sha512-yg2d+Em4KizZC5niWhQaIomgf5WlL4vOOjZ5xGCmF8SnPE/mDWWXgvRExdcpCgh9lLRRa1/fSYp2ymmbJ1pI+A==", "dev": true, "license": "BSD-3-Clause", + "peer": true, "dependencies": { "@jridgewell/trace-mapping": "^0.3.23", "debug": "^4.1.1", @@ -7897,6 +8053,7 @@ "integrity": "sha512-HGYWWS/ehqTV3xN10i23tkPkpH46MLCIMFNCaaKNavAXTF1RkqxawEPtnjnGZ6XKSInBKkiOA5BKS+aZiY3AvA==", "dev": true, "license": "BSD-3-Clause", + "peer": true, "dependencies": { "html-escaper": "^2.0.0", "istanbul-lib-report": "^3.0.0" @@ -7964,6 +8121,7 @@ "integrity": "sha512-L8lR1ChrRnSdfeOvTrwZMlnWV8G/LLjQ0nG9MBclwWZidA2N5FviRki0Bvh20WRMOX31/JYvzdqTJrk5oBdydQ==", "dev": true, "license": "MIT", + "peer": true, "dependencies": { "execa": "^5.1.1", "jest-util": "30.2.0", @@ -7979,6 +8137,7 @@ "integrity": "sha512-QKNsM0o3Xe6ISQU869e+DhG+4CK/48aHYdJZGlFQVTjnbvgpcKyxpzk29fGiO7i/J8VENZ+d2iGnSsvmuHywlA==", "dev": true, "license": "MIT", + "peer": true, "dependencies": { "@jest/types": "30.2.0", "@types/node": "*", @@ -7997,6 +8156,7 @@ "integrity": "sha512-5gTmgEY/sqK6gFXLIsQNH19lWb4ebPDLA4SdLP7dsWkIXHWlG66oPuVvXSGFPppYZz8ZDZq0dYYrbHfBCVUb1Q==", "dev": true, "license": "MIT", + "peer": true, "engines": { "node": ">=12" }, @@ -8010,6 +8170,7 @@ "integrity": "sha512-Fh0096NC3ZkFx05EP2OXCxJAREVxj1BcW/i6EWqqymcgYKWjyyDpral3fMxVcHXg6oZM7iULer9wGRFvfpl+Tg==", "dev": true, "license": "MIT", + "peer": true, "dependencies": { "@jest/environment": "30.2.0", "@jest/expect": "30.2.0", @@ -8042,6 +8203,7 @@ "integrity": "sha512-Cxwpt2SfTzTtXcfOlzGEee8O+c+MmUgGrNiBcXnuWxuFJHe6a5Hz7qwhwe5OgaSYI0IJvkLqWX1ASG+cJOkEiA==", "dev": true, "license": "MIT", + "peer": true, "engines": { "node": ">=10" }, @@ -8055,6 +8217,7 @@ "integrity": "sha512-dQHFo3Pt4/NLlG5z4PxZ/3yZTZ1C7s9hveiOj+GCN+uT109NC2QgsoVZsVOAvbJ3RgKkvyLGXZV9+piDpWbm6A==", "dev": true, "license": "MIT", + "peer": true, "dependencies": { "@jest/diff-sequences": "30.0.1", "@jest/get-type": "30.1.0", @@ -8071,6 +8234,7 @@ "integrity": "sha512-dQ94Nq4dbzmUWkQ0ANAWS9tBRfqCrn0bV9AMYdOi/MHW726xn7eQmMeRTpX2ViC00bpNaWXq+7o4lIQ3AX13Hg==", "dev": true, "license": "MIT", + "peer": true, "dependencies": { "@jest/get-type": "30.1.0", "chalk": "^4.1.2", @@ -8087,6 +8251,7 @@ "integrity": "sha512-y4DKFLZ2y6DxTWD4cDe07RglV88ZiNEdlRfGtqahfbIjfsw1nMCPx49Uev4IA/hWn3sDKyAnSPwoYSsAEdcimw==", "dev": true, "license": "MIT", + "peer": true, "dependencies": { "@babel/code-frame": "^7.27.1", "@jest/types": "30.2.0", @@ -8108,6 +8273,7 @@ "integrity": "sha512-QKNsM0o3Xe6ISQU869e+DhG+4CK/48aHYdJZGlFQVTjnbvgpcKyxpzk29fGiO7i/J8VENZ+d2iGnSsvmuHywlA==", "dev": true, "license": "MIT", + "peer": true, "dependencies": { "@jest/types": "30.2.0", "@types/node": "*", @@ -8126,6 +8292,7 @@ "integrity": "sha512-5gTmgEY/sqK6gFXLIsQNH19lWb4ebPDLA4SdLP7dsWkIXHWlG66oPuVvXSGFPppYZz8ZDZq0dYYrbHfBCVUb1Q==", "dev": true, "license": "MIT", + "peer": true, "engines": { "node": ">=12" }, @@ -8139,6 +8306,7 @@ "integrity": "sha512-9uBdv/B4EefsuAL+pWqueZyZS2Ba+LxfFeQ9DN14HU4bN8bhaxKdkpjpB6fs9+pSjIBu+FXQHImEg8j/Lw0+vA==", "dev": true, "license": "MIT", + "peer": true, "dependencies": { "@jest/schemas": "30.0.5", "ansi-styles": "^5.2.0", @@ -8154,6 +8322,7 @@ "integrity": "sha512-Os9ukIvADX/A9sLt6Zse3+nmHtHaE6hqOsjQtNiugFTbKRHYIYtZXNGNK9NChseXy7djFPjndX1tL0sCTlfpAA==", "dev": true, "license": "MIT", + "peer": true, "dependencies": { "@jest/core": "30.2.0", "@jest/test-result": "30.2.0", @@ -8187,6 +8356,7 @@ "integrity": "sha512-QKNsM0o3Xe6ISQU869e+DhG+4CK/48aHYdJZGlFQVTjnbvgpcKyxpzk29fGiO7i/J8VENZ+d2iGnSsvmuHywlA==", "dev": true, "license": "MIT", + "peer": true, "dependencies": { "@jest/types": "30.2.0", "@types/node": "*", @@ -8205,6 +8375,7 @@ "integrity": "sha512-5gTmgEY/sqK6gFXLIsQNH19lWb4ebPDLA4SdLP7dsWkIXHWlG66oPuVvXSGFPppYZz8ZDZq0dYYrbHfBCVUb1Q==", "dev": true, "license": "MIT", + "peer": true, "engines": { "node": ">=12" }, @@ -8218,6 +8389,7 @@ "integrity": "sha512-g4WkyzFQVWHtu6uqGmQR4CQxz/CH3yDSlhzXMWzNjDx843gYjReZnMRanjRCq5XZFuQrGDxgUaiYWE8BRfVckA==", "dev": true, "license": "MIT", + "peer": true, "dependencies": { "@babel/core": "^7.27.4", "@jest/get-type": "30.1.0", @@ -8270,6 +8442,7 @@ "integrity": "sha512-Cxwpt2SfTzTtXcfOlzGEee8O+c+MmUgGrNiBcXnuWxuFJHe6a5Hz7qwhwe5OgaSYI0IJvkLqWX1ASG+cJOkEiA==", "dev": true, "license": "MIT", + "peer": true, "engines": { "node": ">=10" }, @@ -8283,6 +8456,7 @@ "integrity": "sha512-QKNsM0o3Xe6ISQU869e+DhG+4CK/48aHYdJZGlFQVTjnbvgpcKyxpzk29fGiO7i/J8VENZ+d2iGnSsvmuHywlA==", "dev": true, "license": "MIT", + "peer": true, "dependencies": { "@jest/types": "30.2.0", "@types/node": "*", @@ -8301,6 +8475,7 @@ "integrity": "sha512-5gTmgEY/sqK6gFXLIsQNH19lWb4ebPDLA4SdLP7dsWkIXHWlG66oPuVvXSGFPppYZz8ZDZq0dYYrbHfBCVUb1Q==", "dev": true, "license": "MIT", + "peer": true, "engines": { "node": ">=12" }, @@ -8314,6 +8489,7 @@ "integrity": "sha512-9uBdv/B4EefsuAL+pWqueZyZS2Ba+LxfFeQ9DN14HU4bN8bhaxKdkpjpB6fs9+pSjIBu+FXQHImEg8j/Lw0+vA==", "dev": true, "license": "MIT", + "peer": true, "dependencies": { "@jest/schemas": "30.0.5", "ansi-styles": "^5.2.0", @@ -8345,6 +8521,7 @@ "integrity": "sha512-tR/FFgZKS1CXluOQzZvNH3+0z9jXr3ldGSD8bhyuxvlVUwbeLOGynkunvlTMxchC5urrKndYiwCFC0DLVjpOCA==", "dev": true, "license": "MIT", + "peer": true, "dependencies": { "detect-newline": "^3.1.0" }, @@ -8358,6 +8535,7 @@ "integrity": "sha512-lpWlJlM7bCUf1mfmuqTA8+j2lNURW9eNafOy99knBM01i5CQeY5UH1vZjgT9071nDJac1M4XsbyI44oNOdhlDQ==", "dev": true, "license": "MIT", + "peer": true, "dependencies": { "@jest/get-type": "30.1.0", "@jest/types": "30.2.0", @@ -8375,6 +8553,7 @@ "integrity": "sha512-Cxwpt2SfTzTtXcfOlzGEee8O+c+MmUgGrNiBcXnuWxuFJHe6a5Hz7qwhwe5OgaSYI0IJvkLqWX1ASG+cJOkEiA==", "dev": true, "license": "MIT", + "peer": true, "engines": { "node": ">=10" }, @@ -8388,6 +8567,7 @@ "integrity": "sha512-QKNsM0o3Xe6ISQU869e+DhG+4CK/48aHYdJZGlFQVTjnbvgpcKyxpzk29fGiO7i/J8VENZ+d2iGnSsvmuHywlA==", "dev": true, "license": "MIT", + "peer": true, "dependencies": { "@jest/types": "30.2.0", "@types/node": "*", @@ -8406,6 +8586,7 @@ "integrity": "sha512-5gTmgEY/sqK6gFXLIsQNH19lWb4ebPDLA4SdLP7dsWkIXHWlG66oPuVvXSGFPppYZz8ZDZq0dYYrbHfBCVUb1Q==", "dev": true, "license": "MIT", + "peer": true, "engines": { "node": ">=12" }, @@ -8419,6 +8600,7 @@ "integrity": "sha512-9uBdv/B4EefsuAL+pWqueZyZS2Ba+LxfFeQ9DN14HU4bN8bhaxKdkpjpB6fs9+pSjIBu+FXQHImEg8j/Lw0+vA==", "dev": true, "license": "MIT", + "peer": true, "dependencies": { "@jest/schemas": "30.0.5", "ansi-styles": "^5.2.0", @@ -8434,6 +8616,7 @@ "integrity": "sha512-ElU8v92QJ9UrYsKrxDIKCxu6PfNj4Hdcktcn0JX12zqNdqWHB0N+hwOnnBBXvjLd2vApZtuLUGs1QSY+MsXoNA==", "dev": true, "license": "MIT", + "peer": true, "dependencies": { "@jest/environment": "30.2.0", "@jest/fake-timers": "30.2.0", @@ -8453,6 +8636,7 @@ "integrity": "sha512-QKNsM0o3Xe6ISQU869e+DhG+4CK/48aHYdJZGlFQVTjnbvgpcKyxpzk29fGiO7i/J8VENZ+d2iGnSsvmuHywlA==", "dev": true, "license": "MIT", + "peer": true, "dependencies": { "@jest/types": "30.2.0", "@types/node": "*", @@ -8471,6 +8655,7 @@ "integrity": "sha512-5gTmgEY/sqK6gFXLIsQNH19lWb4ebPDLA4SdLP7dsWkIXHWlG66oPuVvXSGFPppYZz8ZDZq0dYYrbHfBCVUb1Q==", "dev": true, "license": "MIT", + "peer": true, "engines": { "node": ">=12" }, @@ -8494,6 +8679,7 @@ "integrity": "sha512-sQA/jCb9kNt+neM0anSj6eZhLZUIhQgwDt7cPGjumgLM4rXsfb9kpnlacmvZz3Q5tb80nS+oG/if+NBKrHC+Xw==", "dev": true, "license": "MIT", + "peer": true, "dependencies": { "@jest/types": "30.2.0", "@types/node": "*", @@ -8519,6 +8705,7 @@ "integrity": "sha512-QKNsM0o3Xe6ISQU869e+DhG+4CK/48aHYdJZGlFQVTjnbvgpcKyxpzk29fGiO7i/J8VENZ+d2iGnSsvmuHywlA==", "dev": true, "license": "MIT", + "peer": true, "dependencies": { "@jest/types": "30.2.0", "@types/node": "*", @@ -8537,6 +8724,7 @@ "integrity": "sha512-5gTmgEY/sqK6gFXLIsQNH19lWb4ebPDLA4SdLP7dsWkIXHWlG66oPuVvXSGFPppYZz8ZDZq0dYYrbHfBCVUb1Q==", "dev": true, "license": "MIT", + "peer": true, "engines": { "node": ">=12" }, @@ -8550,6 +8738,7 @@ "integrity": "sha512-M6jKAjyzjHG0SrQgwhgZGy9hFazcudwCNovY/9HPIicmNSBuockPSedAP9vlPK6ONFJ1zfyH/M2/YYJxOz5cdQ==", "dev": true, "license": "MIT", + "peer": true, "dependencies": { "@jest/get-type": "30.1.0", "pretty-format": "30.2.0" @@ -8564,6 +8753,7 @@ "integrity": "sha512-Cxwpt2SfTzTtXcfOlzGEee8O+c+MmUgGrNiBcXnuWxuFJHe6a5Hz7qwhwe5OgaSYI0IJvkLqWX1ASG+cJOkEiA==", "dev": true, "license": "MIT", + "peer": true, "engines": { "node": ">=10" }, @@ -8577,6 +8767,7 @@ "integrity": "sha512-9uBdv/B4EefsuAL+pWqueZyZS2Ba+LxfFeQ9DN14HU4bN8bhaxKdkpjpB6fs9+pSjIBu+FXQHImEg8j/Lw0+vA==", "dev": true, "license": "MIT", + "peer": true, "dependencies": { "@jest/schemas": "30.0.5", "ansi-styles": "^5.2.0", @@ -8667,6 +8858,7 @@ "integrity": "sha512-JNNNl2rj4b5ICpmAcq+WbLH83XswjPbjH4T7yvGzfAGCPh1rw+xVNbtk+FnRslvt9lkCcdn9i1oAoKUuFsOxRw==", "dev": true, "license": "MIT", + "peer": true, "dependencies": { "@jest/types": "30.2.0", "@types/node": "*", @@ -8682,6 +8874,7 @@ "integrity": "sha512-QKNsM0o3Xe6ISQU869e+DhG+4CK/48aHYdJZGlFQVTjnbvgpcKyxpzk29fGiO7i/J8VENZ+d2iGnSsvmuHywlA==", "dev": true, "license": "MIT", + "peer": true, "dependencies": { "@jest/types": "30.2.0", "@types/node": "*", @@ -8700,6 +8893,7 @@ "integrity": "sha512-5gTmgEY/sqK6gFXLIsQNH19lWb4ebPDLA4SdLP7dsWkIXHWlG66oPuVvXSGFPppYZz8ZDZq0dYYrbHfBCVUb1Q==", "dev": true, "license": "MIT", + "peer": true, "engines": { "node": ">=12" }, @@ -8713,6 +8907,7 @@ "integrity": "sha512-+3NpwQEnRoIBtx4fyhblQDPgJI0H1IEIkX7ShLUjPGA7TtUTvI1oiKi3SR4oBR0hQhQR80l4WAe5RrXBwWMA8w==", "dev": true, "license": "MIT", + "peer": true, "engines": { "node": ">=6" }, @@ -8731,6 +8926,7 @@ "integrity": "sha512-jHEQgBXAgc+Gh4g0p3bCevgRCVRkB4VB70zhoAE48gxeSr1hfUOsM/C2WoJgVL7Eyg//hudYENbm3Ne+/dRVVA==", "dev": true, "license": "MIT", + "peer": true, "engines": { "node": "^18.14.0 || ^20.0.0 || ^22.0.0 || >=24.0.0" } @@ -8741,6 +8937,7 @@ "integrity": "sha512-TCrHSxPlx3tBY3hWNtRQKbtgLhsXa1WmbJEqBlTBrGafd5fiQFByy2GNCEoGR+Tns8d15GaL9cxEzKOO3GEb2A==", "dev": true, "license": "MIT", + "peer": true, "dependencies": { "chalk": "^4.1.2", "graceful-fs": "^4.2.11", @@ -8761,6 +8958,7 @@ "integrity": "sha512-xTOIGug/0RmIe3mmCqCT95yO0vj6JURrn1TKWlNbhiAefJRWINNPgwVkrVgt/YaerPzY3iItufd80v3lOrFJ2w==", "dev": true, "license": "MIT", + "peer": true, "dependencies": { "jest-regex-util": "30.0.1", "jest-snapshot": "30.2.0" @@ -8775,6 +8973,7 @@ "integrity": "sha512-QKNsM0o3Xe6ISQU869e+DhG+4CK/48aHYdJZGlFQVTjnbvgpcKyxpzk29fGiO7i/J8VENZ+d2iGnSsvmuHywlA==", "dev": true, "license": "MIT", + "peer": true, "dependencies": { "@jest/types": "30.2.0", "@types/node": "*", @@ -8793,6 +8992,7 @@ "integrity": "sha512-5gTmgEY/sqK6gFXLIsQNH19lWb4ebPDLA4SdLP7dsWkIXHWlG66oPuVvXSGFPppYZz8ZDZq0dYYrbHfBCVUb1Q==", "dev": true, "license": "MIT", + "peer": true, "engines": { "node": ">=12" }, @@ -8806,6 +9006,7 @@ "integrity": "sha512-PqvZ2B2XEyPEbclp+gV6KO/F1FIFSbIwewRgmROCMBo/aZ6J1w8Qypoj2pEOcg3G2HzLlaP6VUtvwCI8dM3oqQ==", "dev": true, "license": "MIT", + "peer": true, "dependencies": { "@jest/console": "30.2.0", "@jest/environment": "30.2.0", @@ -8840,6 +9041,7 @@ "integrity": "sha512-Cxwpt2SfTzTtXcfOlzGEee8O+c+MmUgGrNiBcXnuWxuFJHe6a5Hz7qwhwe5OgaSYI0IJvkLqWX1ASG+cJOkEiA==", "dev": true, "license": "MIT", + "peer": true, "engines": { "node": ">=10" }, @@ -8853,6 +9055,7 @@ "integrity": "sha512-y4DKFLZ2y6DxTWD4cDe07RglV88ZiNEdlRfGtqahfbIjfsw1nMCPx49Uev4IA/hWn3sDKyAnSPwoYSsAEdcimw==", "dev": true, "license": "MIT", + "peer": true, "dependencies": { "@babel/code-frame": "^7.27.1", "@jest/types": "30.2.0", @@ -8874,6 +9077,7 @@ "integrity": "sha512-QKNsM0o3Xe6ISQU869e+DhG+4CK/48aHYdJZGlFQVTjnbvgpcKyxpzk29fGiO7i/J8VENZ+d2iGnSsvmuHywlA==", "dev": true, "license": "MIT", + "peer": true, "dependencies": { "@jest/types": "30.2.0", "@types/node": "*", @@ -8892,6 +9096,7 @@ "integrity": "sha512-5gTmgEY/sqK6gFXLIsQNH19lWb4ebPDLA4SdLP7dsWkIXHWlG66oPuVvXSGFPppYZz8ZDZq0dYYrbHfBCVUb1Q==", "dev": true, "license": "MIT", + "peer": true, "engines": { "node": ">=12" }, @@ -8905,6 +9110,7 @@ "integrity": "sha512-9uBdv/B4EefsuAL+pWqueZyZS2Ba+LxfFeQ9DN14HU4bN8bhaxKdkpjpB6fs9+pSjIBu+FXQHImEg8j/Lw0+vA==", "dev": true, "license": "MIT", + "peer": true, "dependencies": { "@jest/schemas": "30.0.5", "ansi-styles": "^5.2.0", @@ -8920,6 +9126,7 @@ "integrity": "sha512-p1+GVX/PJqTucvsmERPMgCPvQJpFt4hFbM+VN3n8TMo47decMUcJbt+rgzwrEme0MQUA/R+1de2axftTHkKckg==", "dev": true, "license": "MIT", + "peer": true, "dependencies": { "@jest/environment": "30.2.0", "@jest/fake-timers": "30.2.0", @@ -8954,6 +9161,7 @@ "integrity": "sha512-Cxwpt2SfTzTtXcfOlzGEee8O+c+MmUgGrNiBcXnuWxuFJHe6a5Hz7qwhwe5OgaSYI0IJvkLqWX1ASG+cJOkEiA==", "dev": true, "license": "MIT", + "peer": true, "engines": { "node": ">=10" }, @@ -8967,6 +9175,7 @@ "integrity": "sha512-y4DKFLZ2y6DxTWD4cDe07RglV88ZiNEdlRfGtqahfbIjfsw1nMCPx49Uev4IA/hWn3sDKyAnSPwoYSsAEdcimw==", "dev": true, "license": "MIT", + "peer": true, "dependencies": { "@babel/code-frame": "^7.27.1", "@jest/types": "30.2.0", @@ -8988,6 +9197,7 @@ "integrity": "sha512-QKNsM0o3Xe6ISQU869e+DhG+4CK/48aHYdJZGlFQVTjnbvgpcKyxpzk29fGiO7i/J8VENZ+d2iGnSsvmuHywlA==", "dev": true, "license": "MIT", + "peer": true, "dependencies": { "@jest/types": "30.2.0", "@types/node": "*", @@ -9006,6 +9216,7 @@ "integrity": "sha512-5gTmgEY/sqK6gFXLIsQNH19lWb4ebPDLA4SdLP7dsWkIXHWlG66oPuVvXSGFPppYZz8ZDZq0dYYrbHfBCVUb1Q==", "dev": true, "license": "MIT", + "peer": true, "engines": { "node": ">=12" }, @@ -9019,6 +9230,7 @@ "integrity": "sha512-9uBdv/B4EefsuAL+pWqueZyZS2Ba+LxfFeQ9DN14HU4bN8bhaxKdkpjpB6fs9+pSjIBu+FXQHImEg8j/Lw0+vA==", "dev": true, "license": "MIT", + "peer": true, "dependencies": { "@jest/schemas": "30.0.5", "ansi-styles": "^5.2.0", @@ -9034,6 +9246,7 @@ "integrity": "sha512-5WEtTy2jXPFypadKNpbNkZ72puZCa6UjSr/7djeecHWOu7iYhSXSnHScT8wBz3Rn8Ena5d5RYRcsyKIeqG1IyA==", "dev": true, "license": "MIT", + "peer": true, "dependencies": { "@babel/core": "^7.27.4", "@babel/generator": "^7.27.5", @@ -9067,6 +9280,7 @@ "integrity": "sha512-1JnRfhqpD8HGpOmQp180Fo9Zt69zNtC+9lR+kT7NVL05tNXIi+QC8Csz7lfidMoVLPD3FnOtcmp0CEFnxExGEA==", "dev": true, "license": "MIT", + "peer": true, "dependencies": { "@jest/get-type": "30.1.0" }, @@ -9080,6 +9294,7 @@ "integrity": "sha512-Cxwpt2SfTzTtXcfOlzGEee8O+c+MmUgGrNiBcXnuWxuFJHe6a5Hz7qwhwe5OgaSYI0IJvkLqWX1ASG+cJOkEiA==", "dev": true, "license": "MIT", + "peer": true, "engines": { "node": ">=10" }, @@ -9093,6 +9308,7 @@ "integrity": "sha512-u/feCi0GPsI+988gU2FLcsHyAHTU0MX1Wg68NhAnN7z/+C5wqG+CY8J53N9ioe8RXgaoz0nBR/TYMf3AycUuPw==", "dev": true, "license": "MIT", + "peer": true, "dependencies": { "@jest/expect-utils": "30.2.0", "@jest/get-type": "30.1.0", @@ -9111,6 +9327,7 @@ "integrity": "sha512-dQHFo3Pt4/NLlG5z4PxZ/3yZTZ1C7s9hveiOj+GCN+uT109NC2QgsoVZsVOAvbJ3RgKkvyLGXZV9+piDpWbm6A==", "dev": true, "license": "MIT", + "peer": true, "dependencies": { "@jest/diff-sequences": "30.0.1", "@jest/get-type": "30.1.0", @@ -9127,6 +9344,7 @@ "integrity": "sha512-dQ94Nq4dbzmUWkQ0ANAWS9tBRfqCrn0bV9AMYdOi/MHW726xn7eQmMeRTpX2ViC00bpNaWXq+7o4lIQ3AX13Hg==", "dev": true, "license": "MIT", + "peer": true, "dependencies": { "@jest/get-type": "30.1.0", "chalk": "^4.1.2", @@ -9143,6 +9361,7 @@ "integrity": "sha512-y4DKFLZ2y6DxTWD4cDe07RglV88ZiNEdlRfGtqahfbIjfsw1nMCPx49Uev4IA/hWn3sDKyAnSPwoYSsAEdcimw==", "dev": true, "license": "MIT", + "peer": true, "dependencies": { "@babel/code-frame": "^7.27.1", "@jest/types": "30.2.0", @@ -9164,6 +9383,7 @@ "integrity": "sha512-QKNsM0o3Xe6ISQU869e+DhG+4CK/48aHYdJZGlFQVTjnbvgpcKyxpzk29fGiO7i/J8VENZ+d2iGnSsvmuHywlA==", "dev": true, "license": "MIT", + "peer": true, "dependencies": { "@jest/types": "30.2.0", "@types/node": "*", @@ -9182,6 +9402,7 @@ "integrity": "sha512-5gTmgEY/sqK6gFXLIsQNH19lWb4ebPDLA4SdLP7dsWkIXHWlG66oPuVvXSGFPppYZz8ZDZq0dYYrbHfBCVUb1Q==", "dev": true, "license": "MIT", + "peer": true, "engines": { "node": ">=12" }, @@ -9195,6 +9416,7 @@ "integrity": "sha512-9uBdv/B4EefsuAL+pWqueZyZS2Ba+LxfFeQ9DN14HU4bN8bhaxKdkpjpB6fs9+pSjIBu+FXQHImEg8j/Lw0+vA==", "dev": true, "license": "MIT", + "peer": true, "dependencies": { "@jest/schemas": "30.0.5", "ansi-styles": "^5.2.0", @@ -9282,6 +9504,7 @@ "integrity": "sha512-FBGWi7dP2hpdi8nBoWxSsLvBFewKAg0+uSQwBaof4Y4DPgBabXgpSYC5/lR7VmnIlSpASmCi/ntRWPbv7089Pw==", "dev": true, "license": "MIT", + "peer": true, "dependencies": { "@jest/get-type": "30.1.0", "@jest/types": "30.2.0", @@ -9300,6 +9523,7 @@ "integrity": "sha512-Cxwpt2SfTzTtXcfOlzGEee8O+c+MmUgGrNiBcXnuWxuFJHe6a5Hz7qwhwe5OgaSYI0IJvkLqWX1ASG+cJOkEiA==", "dev": true, "license": "MIT", + "peer": true, "engines": { "node": ">=10" }, @@ -9313,6 +9537,7 @@ "integrity": "sha512-Gmy6FhYlCY7uOElZUSbxo2UCDH8owEk996gkbrpsgGtrJLM3J7jGxl9Ic7Qwwj4ivOE5AWZWRMecDdF7hqGjFA==", "dev": true, "license": "MIT", + "peer": true, "engines": { "node": ">=10" }, @@ -9326,6 +9551,7 @@ "integrity": "sha512-9uBdv/B4EefsuAL+pWqueZyZS2Ba+LxfFeQ9DN14HU4bN8bhaxKdkpjpB6fs9+pSjIBu+FXQHImEg8j/Lw0+vA==", "dev": true, "license": "MIT", + "peer": true, "dependencies": { "@jest/schemas": "30.0.5", "ansi-styles": "^5.2.0", @@ -9341,6 +9567,7 @@ "integrity": "sha512-PYxa28dxJ9g777pGm/7PrbnMeA0Jr7osHP9bS7eJy9DuAjMgdGtxgf0uKMyoIsTWAkIbUW5hSDdJ3urmgXBqxg==", "dev": true, "license": "MIT", + "peer": true, "dependencies": { "@jest/test-result": "30.2.0", "@jest/types": "30.2.0", @@ -9361,6 +9588,7 @@ "integrity": "sha512-QKNsM0o3Xe6ISQU869e+DhG+4CK/48aHYdJZGlFQVTjnbvgpcKyxpzk29fGiO7i/J8VENZ+d2iGnSsvmuHywlA==", "dev": true, "license": "MIT", + "peer": true, "dependencies": { "@jest/types": "30.2.0", "@types/node": "*", @@ -9379,6 +9607,7 @@ "integrity": "sha512-5gTmgEY/sqK6gFXLIsQNH19lWb4ebPDLA4SdLP7dsWkIXHWlG66oPuVvXSGFPppYZz8ZDZq0dYYrbHfBCVUb1Q==", "dev": true, "license": "MIT", + "peer": true, "engines": { "node": ">=12" }, @@ -9392,6 +9621,7 @@ "integrity": "sha512-0Q4Uk8WF7BUwqXHuAjc23vmopWJw5WH7w2tqBoUOZpOjW/ZnR44GXXd1r82RvnmI2GZge3ivrYXk/BE2+VtW2g==", "dev": true, "license": "MIT", + "peer": true, "dependencies": { "@types/node": "*", "@ungap/structured-clone": "^1.3.0", @@ -9409,6 +9639,7 @@ "integrity": "sha512-QKNsM0o3Xe6ISQU869e+DhG+4CK/48aHYdJZGlFQVTjnbvgpcKyxpzk29fGiO7i/J8VENZ+d2iGnSsvmuHywlA==", "dev": true, "license": "MIT", + "peer": true, "dependencies": { "@jest/types": "30.2.0", "@types/node": "*", @@ -9427,6 +9658,7 @@ "integrity": "sha512-5gTmgEY/sqK6gFXLIsQNH19lWb4ebPDLA4SdLP7dsWkIXHWlG66oPuVvXSGFPppYZz8ZDZq0dYYrbHfBCVUb1Q==", "dev": true, "license": "MIT", + "peer": true, "engines": { "node": ">=12" }, @@ -9440,6 +9672,7 @@ "integrity": "sha512-MpUEN2OodtUzxvKQl72cUF7RQ5EiHsGvSsVG0ia9c5RbWGL2CI4C7EpPS8UTBIplnlzZiNuV56w+FuNxy3ty2Q==", "dev": true, "license": "MIT", + "peer": true, "dependencies": { "has-flag": "^4.0.0" }, @@ -9463,6 +9696,7 @@ "integrity": "sha512-PMSmkqxr106Xa156c2M265Z+FTrPl+oxd/rgOQy2tijQeK5TxQ43psO1ZCwhVOSdnn+RzkzlRz/eY4BgJBYVpg==", "dev": true, "license": "MIT", + "peer": true, "dependencies": { "argparse": "^1.0.7", "esprima": "^4.0.0" @@ -9477,6 +9711,7 @@ "integrity": "sha512-/sM3dO2FOzXjKQhJuo0Q173wf2KOo8t4I8vHy6lF9poUp7bKT0/NHE8fPX23PwfhnykfqnC2xRxOnVw5XuGIaA==", "dev": true, "license": "MIT", + "peer": true, "bin": { "jsesc": "bin/jsesc" }, @@ -9608,6 +9843,7 @@ "integrity": "sha512-qsda+H8jTaUaN/x5vzW2rzc+8Rw4TAQ/4KjB46IwK5VH+IlVeeeje/EoZRpiXvIqjFgK84QffqPztGI3VBLG1A==", "dev": true, "license": "MIT", + "peer": true, "engines": { "node": ">=6" } @@ -9665,6 +9901,7 @@ "integrity": "sha512-t7hw9pI+WvuwNJXwk5zVHpyhIqzg2qTlklJOf0mVxGSbe3Fp2VieZcduNYjaLDoy6p9uGpQEGWG87WpMKlNq8g==", "dev": true, "license": "MIT", + "peer": true, "dependencies": { "p-locate": "^4.1.0" }, @@ -9741,6 +9978,7 @@ "integrity": "sha512-KpNARQA3Iwv+jTA0utUVVbrh+Jlrr1Fv0e56GGzAFOXN7dk/FviaDW8LHmK52DlcH4WP2n6gI8vN1aesBFgo9w==", "dev": true, "license": "ISC", + "peer": true, "dependencies": { "yallist": "^3.0.2" } @@ -9792,6 +10030,7 @@ "integrity": "sha512-hXdUTZYIVOt1Ex//jAQi+wTZZpUpwBj/0QsOzqegb3rGMMeJiSEu5xLHnYfBrRV4RH2+OCSOO95Is/7x1WJ4bw==", "dev": true, "license": "MIT", + "peer": true, "dependencies": { "semver": "^7.5.3" }, @@ -9815,6 +10054,7 @@ "integrity": "sha512-JmqCvUhmt43madlpFzG4BQzG2Z3m6tvQDNKdClZnO3VbIudJYmxsT0FNJMeiB2+JTSlTQTSbU8QdesVmwJcmLg==", "dev": true, "license": "BSD-3-Clause", + "peer": true, "dependencies": { "tmpl": "1.0.5" } @@ -9825,7 +10065,6 @@ "integrity": "sha512-8dD6FusOQSrpv9Z1rdNMdlSgQOIP880DHqnohobOmYLElGEqAL/JvxvuxZO16r4HtjTlfPRDC1hbvxC9dPN2nA==", "dev": true, "license": "MIT", - "peer": true, "bin": { "marked": "bin/marked.js" }, @@ -10020,6 +10259,7 @@ "integrity": "sha512-PHI5f1O0EP5xJ9gQmFGMS6IZcrVvTjpXjz7Na41gTE7eE2hK11lg04CECCYEEjdc17EV4DO+fkGEtt7TpTaTiQ==", "dev": true, "license": "MIT", + "peer": true, "bin": { "napi-postinstall": "lib/cli.js" }, @@ -10035,7 +10275,8 @@ "resolved": "https://registry.npmjs.org/natural-compare/-/natural-compare-1.4.0.tgz", "integrity": "sha512-OWND8ei3VtNC9h7V60qff3SVobHr996CTwgxubgyQYEpg290h9J0buyECNNJexkFm5sOajh5G116RYA1c8ZMSw==", "dev": true, - "license": "MIT" + "license": "MIT", + "peer": true }, "node_modules/neo-async": { "version": "2.6.2", @@ -10110,14 +10351,16 @@ "resolved": "https://registry.npmjs.org/node-int64/-/node-int64-0.4.0.tgz", "integrity": "sha512-O5lz91xSOeoXP6DulyHfllpq+Eg00MWitZIbtPfoSEvqIHdl5gfcY6hYzDWnj0qD5tz52PI08u9qUvSVeUBeHw==", "dev": true, - "license": "MIT" + "license": "MIT", + "peer": true }, "node_modules/node-releases": { "version": "2.0.27", "resolved": "https://registry.npmjs.org/node-releases/-/node-releases-2.0.27.tgz", "integrity": "sha512-nmh3lCkYZ3grZvqcCH+fjmQ7X+H0OeZgP40OierEaAptX4XofMh5kwNbWh7lBduUzCcV/8kZ+NDLCwm2iorIlA==", "dev": true, - "license": "MIT" + "license": "MIT", + "peer": true }, "node_modules/normalize-package-data": { "version": "6.0.2", @@ -10140,6 +10383,7 @@ "integrity": "sha512-6eZs5Ls3WtCisHWp9S2GUy8dqkpGi4BVSz3GaqiE6ezub0512ESztXUwUB6C6IKbQkY2Pnb/mD4WYojCRwcwLA==", "dev": true, "license": "MIT", + "peer": true, "engines": { "node": ">=0.10.0" } @@ -12602,7 +12846,6 @@ "dev": true, "inBundle": true, "license": "MIT", - "peer": true, "engines": { "node": ">=12" }, @@ -12870,6 +13113,7 @@ "integrity": "sha512-lNaJgI+2Q5URQBkccEKHTQOPaXdUxnZZElQTZY0MFUAuaEqe1E+Nyvgdz/aIyNi6Z9MzO5dv1H8n58/GELp3+w==", "dev": true, "license": "ISC", + "peer": true, "dependencies": { "wrappy": "1" } @@ -12972,6 +13216,7 @@ "integrity": "sha512-TYOanM3wGwNGsZN2cVTYPArw454xnXj5qmWF1bEoAc4+cU/ol7GVh7odevjp1FNHduHc3KZMcFduxU5Xc6uJRQ==", "dev": true, "license": "MIT", + "peer": true, "dependencies": { "yocto-queue": "^0.1.0" }, @@ -12988,6 +13233,7 @@ "integrity": "sha512-R79ZZ/0wAxKGu3oYMlz8jy/kbhsNrS7SKZ7PxEHBgJ5+F2mtFW2fK2cOtBh1cHYkQsbzFV7I+EoRKe6Yt0oK7A==", "dev": true, "license": "MIT", + "peer": true, "dependencies": { "p-limit": "^2.2.0" }, @@ -13001,6 +13247,7 @@ "integrity": "sha512-//88mFWSJx8lxCzwdAABTJL2MyWB12+eIY7MDL2SqLmAkeKU9qxRvWuSyTjm3FUmpBEMuFfckAIqEaVGUDxb6w==", "dev": true, "license": "MIT", + "peer": true, "dependencies": { "p-try": "^2.0.0" }, @@ -13053,6 +13300,7 @@ "integrity": "sha512-R4nPAVTAU0B9D35/Gk3uJf/7XYbQcyohSKdvAxIRSNghFl4e71hVoGnBNQz9cWaXxO2I10KTC+3jMdvvoKw6dQ==", "dev": true, "license": "MIT", + "peer": true, "engines": { "node": ">=6" } @@ -13138,6 +13386,7 @@ "integrity": "sha512-ak9Qy5Q7jYb2Wwcey5Fpvg2KoAc/ZIhLSLOSBmRmygPsGwkVVt0fZa0qrtMz+m6tJTAHfZQ8FnmB4MG4LWy7/w==", "dev": true, "license": "MIT", + "peer": true, "engines": { "node": ">=8" } @@ -13148,6 +13397,7 @@ "integrity": "sha512-AVbw3UJ2e9bq64vSaS9Am0fje1Pa8pbGqTTsmXfaIiMpnr5DlDhfJOuLj9Sf95ZPVDAUerDfEk88MPmPe7UCQg==", "dev": true, "license": "MIT", + "peer": true, "engines": { "node": ">=0.10.0" } @@ -13246,6 +13496,7 @@ "integrity": "sha512-TfySrs/5nm8fQJDcBDuUng3VOUKsd7S+zqvbOTiGXHfxX4wK31ard+hoNuvkicM/2YFzlpDgABOevKSsB4G/FA==", "dev": true, "license": "MIT", + "peer": true, "engines": { "node": ">= 6" } @@ -13343,6 +13594,7 @@ "integrity": "sha512-HRDzbaKjC+AOWVXxAU/x54COGeIv9eb+6CkDSQoNTt4XyWoIJvuPsXizxu/Fr23EiekbtZwmh1IcIG/l/a10GQ==", "dev": true, "license": "MIT", + "peer": true, "dependencies": { "find-up": "^4.0.0" }, @@ -13472,7 +13724,8 @@ "url": "https://opencollective.com/fast-check" } ], - "license": "MIT" + "license": "MIT", + "peer": true }, "node_modules/rc": { "version": "1.2.8", @@ -13651,6 +13904,7 @@ "integrity": "sha512-OrZaX2Mb+rJCpH/6CpSqt9xFVpN++x01XnN2ie9g6P5/3xelLAkXWVADpdz1IHD/KFfEXyE6V0U01OQ3UO2rEg==", "dev": true, "license": "MIT", + "peer": true, "dependencies": { "resolve-from": "^5.0.0" }, @@ -13757,7 +14011,6 @@ "integrity": "sha512-phCkJ6pjDi9ANdhuF5ElS10GGdAKY6R1Pvt9lT3SFhOwM4T7QZE7MLpBDbNruUx/Q3gFD92/UOFringGipRqZA==", "dev": true, "license": "MIT", - "peer": true, "dependencies": { "@semantic-release/commit-analyzer": "^13.0.0-beta.1", "@semantic-release/error": "^4.0.0", @@ -14280,6 +14533,7 @@ "integrity": "sha512-SHSKFHadjVA5oR4PPqhtAVdcBWwRYVd6g6cAXnIbRiIwc2EhPrTuKUBdSLvlEKyIP3GCf89fltvcZiP9MMFA1w==", "dev": true, "license": "MIT", + "peer": true, "dependencies": { "buffer-from": "^1.0.0", "source-map": "^0.6.0" @@ -14343,7 +14597,8 @@ "resolved": "https://registry.npmjs.org/sprintf-js/-/sprintf-js-1.0.3.tgz", "integrity": "sha512-D9cPgkvLlV3t3IzL0D0YLvGA9Ahk4PcvVwUbN0dSGr1aP0Nrt4AEnTUbuGvquEC0mA64Gqt1fzirlRs5ibXx8g==", "dev": true, - "license": "BSD-3-Clause" + "license": "BSD-3-Clause", + "peer": true }, "node_modules/stack-utils": { "version": "2.0.6", @@ -14406,6 +14661,7 @@ "integrity": "sha512-+l6rNN5fYHNhZZy41RXsYptCjA2Igmq4EG7kZAYFQI1E1VTXarr6ZPXBg6eq7Y6eK4FEhY6AJlyuFIb/v/S0VQ==", "dev": true, "license": "MIT", + "peer": true, "dependencies": { "char-regex": "^1.0.2", "strip-ansi": "^6.0.0" @@ -14420,6 +14676,7 @@ "integrity": "sha512-quJQXlTSUGL2LH9SUXo8VwsY4soanhgo6LNSm84E1LBcE8s3O0wpdiRzyR9z/ZZJMlMWv37qOOb9pdJlMUEKFQ==", "dev": true, "license": "MIT", + "peer": true, "engines": { "node": ">=8" } @@ -14430,6 +14687,7 @@ "integrity": "sha512-Y38VPSHcqkFrCpFnQ9vuSXmquuv5oXOKpGeT6aGrr3o3Gc9AlVa6JBfUSOCnbxGGZF+/0ooI7KrPuUSztUdU5A==", "dev": true, "license": "MIT", + "peer": true, "dependencies": { "ansi-regex": "^5.0.1" }, @@ -14539,6 +14797,7 @@ "integrity": "sha512-3xurFv5tEgii33Zi8Jtp55wEIILR9eh34FAW00PZf+JnSsTmV/ioewSgQl97JHvgjoRGwPShsWm+IdrxB35d0w==", "dev": true, "license": "MIT", + "peer": true, "engines": { "node": ">=8" } @@ -14559,6 +14818,7 @@ "integrity": "sha512-6fPc+R4ihwqP6N/aIv2f1gMH8lOVtWQHoqC4yK6oSDVVocumAsfCqjkXnqiYMhmMwS/mEHLp7Vehlt3ql6lEig==", "dev": true, "license": "MIT", + "peer": true, "engines": { "node": ">=8" }, @@ -14665,6 +14925,7 @@ "integrity": "sha512-MeQTA1r0litLUf0Rp/iisCaL8761lKAZHaimlbGK4j0HysC4PLfqygQj9srcs0m2RdtDYnF8UuYyKpbjHYp7Jw==", "dev": true, "license": "MIT", + "peer": true, "dependencies": { "@pkgr/core": "^0.2.9" }, @@ -14736,6 +14997,7 @@ "integrity": "sha512-cAGWPIyOHU6zlmg88jwm7VRyXnMN7iV68OGAbYDk/Mh/xC/pzVPlQtY6ngoIH/5/tciuhGfvESU8GrHrcxD56w==", "dev": true, "license": "ISC", + "peer": true, "dependencies": { "@istanbuljs/schema": "^0.1.2", "glob": "^7.1.4", @@ -14751,6 +15013,7 @@ "integrity": "sha512-9T9UjW3r0UW5c1Q7GTwllptXwhvYmEzFhzMfZ9H7FQWt+uZePjZPjBP/W1ZEyZ1twGWom5/56TF4lPcqjnDHcg==", "dev": true, "license": "MIT", + "peer": true, "dependencies": { "balanced-match": "^1.0.0", "concat-map": "0.0.1" @@ -14763,6 +15026,7 @@ "deprecated": "Glob versions prior to v9 are no longer supported", "dev": true, "license": "ISC", + "peer": true, "dependencies": { "fs.realpath": "^1.0.0", "inflight": "^1.0.4", @@ -14784,6 +15048,7 @@ "integrity": "sha512-J7p63hRiAjw1NDEww1W7i37+ByIrOWO5XQQAzZ3VOcL0PNybwpfmV/N05zFAzwQ9USyEcX6t3UO+K5aqBQOIHw==", "dev": true, "license": "ISC", + "peer": true, "dependencies": { "brace-expansion": "^1.1.7" }, @@ -14908,7 +15173,6 @@ "integrity": "sha512-5gTmgEY/sqK6gFXLIsQNH19lWb4ebPDLA4SdLP7dsWkIXHWlG66oPuVvXSGFPppYZz8ZDZq0dYYrbHfBCVUb1Q==", "dev": true, "license": "MIT", - "peer": true, "engines": { "node": ">=12" }, @@ -14951,7 +15215,8 @@ "resolved": "https://registry.npmjs.org/tmpl/-/tmpl-1.0.5.tgz", "integrity": "sha512-3f0uOEAQwIqGuWW2MVzYg8fV/QNnc/IpuJNG837rLuczAaLVHslWHZQj4IGiEl5Hs3kkbhwL9Ab7Hrsmuj+Smw==", "dev": true, - "license": "BSD-3-Clause" + "license": "BSD-3-Clause", + "peer": true }, "node_modules/to-regex-range": { "version": "5.0.1", @@ -15057,7 +15322,6 @@ "integrity": "sha512-f0FFpIdcHgn8zcPSbf1dRevwt047YMnaiJM3u2w2RewrB+fob/zePZcrOyQoLMMO7aBIddLcQIEK5dYjkLnGrQ==", "dev": true, "license": "MIT", - "peer": true, "dependencies": { "@cspotcode/source-map-support": "^0.8.0", "@tsconfig/node10": "^1.0.7", @@ -15108,6 +15372,7 @@ "integrity": "sha512-0fr/mIH1dlO+x7TlcMy+bIDqKPsw/70tVyeHW787goQjhmqaZe10uwLujubK9q9Lg6Fiho1KUKDYz0Z7k7g5/g==", "dev": true, "license": "MIT", + "peer": true, "engines": { "node": ">=4" } @@ -15118,6 +15383,7 @@ "integrity": "sha512-t0rzBq87m3fVcduHDUFhKmyyX+9eo6WQjZvf51Ea/M0Q7+T374Jp1aUiyUl0GKxp8M/OETVHSDvmkyPgvX+X2w==", "dev": true, "license": "(MIT OR CC0-1.0)", + "peer": true, "engines": { "node": ">=10" }, @@ -15224,6 +15490,7 @@ "dev": true, "hasInstallScript": true, "license": "MIT", + "peer": true, "dependencies": { "napi-postinstall": "^0.3.0" }, @@ -15272,6 +15539,7 @@ } ], "license": "MIT", + "peer": true, "dependencies": { "escalade": "^3.2.0", "picocolors": "^1.1.1" @@ -15335,6 +15603,7 @@ "integrity": "sha512-kiGUalWN+rgBJ/1OHZsBtU4rXZOfj/7rKQxULKlIzwzQSvMJUUNgPwJEEh7gU6xEVxC0ahoOBvN2YI8GH6FNgA==", "dev": true, "license": "ISC", + "peer": true, "dependencies": { "@jridgewell/trace-mapping": "^0.3.12", "@types/istanbul-lib-coverage": "^2.0.1", @@ -15361,7 +15630,6 @@ "integrity": "sha512-tI2l/nFHC5rLh7+5+o7QjKjSR04ivXDF4jcgV0f/bTQ+OJiITy5S6gaynVsEM+7RqzufMnVbIon6Sr5x1SDYaQ==", "dev": true, "license": "MIT", - "peer": true, "dependencies": { "esbuild": "^0.25.0", "fdir": "^6.5.0", @@ -15478,7 +15746,6 @@ "integrity": "sha512-5gTmgEY/sqK6gFXLIsQNH19lWb4ebPDLA4SdLP7dsWkIXHWlG66oPuVvXSGFPppYZz8ZDZq0dYYrbHfBCVUb1Q==", "dev": true, "license": "MIT", - "peer": true, "engines": { "node": ">=12" }, @@ -15578,6 +15845,7 @@ "integrity": "sha512-ts/8E8l5b7kY0vlWLewOkDXMmPdLcVV4GmOQLyxuSswIJsweeFZtAsMF7k1Nszz+TYBQrlYRmzOnr398y1JemQ==", "dev": true, "license": "Apache-2.0", + "peer": true, "dependencies": { "makeerror": "1.0.12" } @@ -15730,7 +15998,8 @@ "resolved": "https://registry.npmjs.org/wrappy/-/wrappy-1.0.2.tgz", "integrity": "sha512-l4Sp/DRseor9wL6EvV2+TuQn63dMkPjZ/sp9XkghTEbV9KlPS1xUsZ3u7/IQO4wxtcFB4bgpQPRcR3QCvezPcQ==", "dev": true, - "license": "ISC" + "license": "ISC", + "peer": true }, "node_modules/write-file-atomic": { "version": "5.0.1", @@ -15807,7 +16076,8 @@ "resolved": "https://registry.npmjs.org/yallist/-/yallist-3.1.1.tgz", "integrity": "sha512-a4UGQaWPH59mOXUYnAG2ewncQS4i4F43Tv3JoAM+s2VDAmS9NsK8GpDMLrCHPksFT7h3K6TOoUNn2pb7RoXx4g==", "dev": true, - "license": "ISC" + "license": "ISC", + "peer": true }, "node_modules/yaml": { "version": "2.8.2", @@ -15914,6 +16184,7 @@ "integrity": "sha512-rVksvsnNCdJ/ohGc6xgPwyN8eheCxsiLM8mxuE/t/mOVqJewPuO1miLpTHQiRgTKCLexL4MeAFVagts7HmNZ2Q==", "dev": true, "license": "MIT", + "peer": true, "engines": { "node": ">=10" }, @@ -15939,7 +16210,6 @@ "resolved": "https://registry.npmjs.org/zod/-/zod-3.25.76.tgz", "integrity": "sha512-gzUt/qt81nXsFGKIFcC3YnfEAx5NkunCfnDlvuBSSFS02bcXu4Lmea0AFIUwbLWxWPx3d9p8S5QoaujKcNQxcQ==", "license": "MIT", - "peer": true, "funding": { "url": "https://github.com/sponsors/colinhacks" } diff --git a/packages/openai-adapters/package.json b/packages/openai-adapters/package.json index a504f3682..0de2ef12c 100644 --- a/packages/openai-adapters/package.json +++ b/packages/openai-adapters/package.json @@ -18,7 +18,7 @@ "@aws-sdk/client-bedrock-runtime": "^3.931.0", "@aws-sdk/credential-providers": "^3.931.0", "@continuedev/config-types": "^1.0.14", - "@continuedev/config-yaml": "^1.36.0", + "@continuedev/config-yaml": "^1.38.0", "@continuedev/fetch": "^1.6.0", "@google/genai": "^1.30.0", "ai": "^4.0.33",