Merge branch 'main' into agent-skills
This commit is contained in:
commit
2ecccb0fa5
139 changed files with 6185 additions and 816 deletions
31
.github/workflows/continue-agents.yml
vendored
31
.github/workflows/continue-agents.yml
vendored
|
|
@ -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(),
|
||||
|
|
|
|||
2
.github/workflows/jetbrains-release.yaml
vendored
2
.github/workflows/jetbrains-release.yaml
vendored
|
|
@ -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
|
||||
|
||||
|
|
|
|||
23
.github/workflows/run-continue-agent.yml
vendored
23
.github/workflows/run-continue-agent.yml
vendored
|
|
@ -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"
|
||||
|
|
|
|||
2
.github/workflows/tidy-up-codebase.yml
vendored
2
.github/workflows/tidy-up-codebase.yml
vendored
|
|
@ -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
|
||||
|
|
|
|||
592
binary/package-lock.json
generated
592
binary/package-lock.json
generated
|
|
@ -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",
|
||||
|
|
|
|||
|
|
@ -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) => {
|
||||
|
|
|
|||
|
|
@ -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: [],
|
||||
};
|
||||
|
|
|
|||
|
|
@ -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: [],
|
||||
|
|
|
|||
|
|
@ -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,
|
||||
|
|
|
|||
|
|
@ -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: [],
|
||||
|
|
|
|||
|
|
@ -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)",
|
||||
);
|
||||
|
|
|
|||
|
|
@ -58,6 +58,7 @@ const PROVIDER_HANDLES_TEMPLATING: string[] = [
|
|||
"sagemaker",
|
||||
"continue-proxy",
|
||||
"mistral",
|
||||
"mimo",
|
||||
"sambanova",
|
||||
"vertexai",
|
||||
"watsonx",
|
||||
|
|
|
|||
|
|
@ -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;
|
||||
|
|
|
|||
13
core/llm/llms/Mimo.ts
Normal file
13
core/llm/llms/Mimo.ts
Normal file
|
|
@ -0,0 +1,13 @@
|
|||
import { LLMOptions } from "../../index.js";
|
||||
|
||||
import OpenAI from "./OpenAI.js";
|
||||
|
||||
class Mimo extends OpenAI {
|
||||
static providerName = "mimo";
|
||||
static defaultOptions: Partial<LLMOptions> = {
|
||||
apiBase: "https://api.xiaomimimo.com/v1/",
|
||||
model: "mimo-v2-flash",
|
||||
};
|
||||
}
|
||||
|
||||
export default Mimo;
|
||||
|
|
@ -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/",
|
||||
|
|
|
|||
|
|
@ -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,
|
||||
|
|
|
|||
199
core/package-lock.json
generated
199
core/package-lock.json
generated
File diff suppressed because it is too large
Load diff
|
|
@ -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",
|
||||
|
|
|
|||
|
|
@ -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 ...'";
|
||||
|
|
|
|||
|
|
@ -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("./")) {
|
||||
|
|
|
|||
|
|
@ -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", () => {
|
||||
|
|
|
|||
197
core/tools/implementations/resolveWorkingDirectory.vitest.ts
Normal file
197
core/tools/implementations/resolveWorkingDirectory.vitest.ts
Normal file
|
|
@ -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");
|
||||
});
|
||||
});
|
||||
});
|
||||
|
|
@ -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();
|
||||
|
|
|
|||
|
|
@ -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", () => {
|
||||
|
|
|
|||
|
|
@ -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,
|
||||
});
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -126,7 +126,7 @@ The easiest way to get started is using our pre-configured documentation agent:
|
|||
</Steps>
|
||||
|
||||
<Tip>
|
||||
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).
|
||||
</Tip>
|
||||
|
||||
### Option 2: Create Your Own Custom Agent
|
||||
|
|
@ -135,7 +135,7 @@ If you want more control or customization, you can create your own documentation
|
|||
|
||||
<Steps>
|
||||
<Step title="Create a new config">
|
||||
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.
|
||||
</Step>
|
||||
|
||||
<Step title="Add the Continue Docs MCP">
|
||||
|
|
|
|||
|
|
@ -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"
|
||||
---
|
||||
|
||||
<Card title="Creating Custom Agents" icon="wrench">
|
||||
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.
|
||||
<Card title="Creating Custom Cloud Agents" icon="wrench">
|
||||
You can only create and edit AI Agents in the Continue Mission Control web interface. This ensures proper validation, versioning, and team collaboration features.
|
||||
</Card>
|
||||
|
||||
## Creating an Agent
|
||||
|
||||

|
||||
|
||||
## Creating a Cloud Agent
|
||||
|
||||
<Steps>
|
||||
<Step title="🧭 Navigate to Create 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.
|
||||
|
||||
</Step>
|
||||
|
||||
<Step title="🧩 Fill Out the Agent Form">
|
||||
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` |
|
||||
|
||||
|
||||
<Info>
|
||||
**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.
|
||||
</Info>
|
||||
</Step>
|
||||
|
||||
<Step title="💡 Preview the Configuration">
|
||||
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.
|
||||
<Step title="💡 Choose Repository & Automation">
|
||||
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.
|
||||
</Step>
|
||||
|
||||
<Step title="✅ Create and Test">
|
||||
|
|
@ -68,90 +49,27 @@ sidebarTitle: "Create & Edit"
|
|||
</Step>
|
||||
</Steps>
|
||||
|
||||
## Editing an Agent
|
||||
## Editing a Cloud Agent
|
||||
|
||||
You can edit any agent you own or that has Organization-level access.
|
||||
<Steps>
|
||||
<Step title="🧭 Access the Agent">
|
||||
From the **Agents** page or Mission Control view, click your agent's name, then select **"Edit Agent"**.
|
||||
</Step>
|
||||
|
||||
<Step title="🔧 Update Configuration">
|
||||
You can modify any of these components:
|
||||
|
||||
<Tabs>
|
||||
<Tab title="Prompt">
|
||||
**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
|
||||
```
|
||||
</Tab>
|
||||
|
||||
<Tab title="Rules">
|
||||
**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
|
||||
</Tab>
|
||||
|
||||
<Tab title="Tools (MCPs)">
|
||||
**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
|
||||
</Tab>
|
||||
|
||||
<Tab title="Model & Visibility">
|
||||
**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
|
||||
</Tab>
|
||||
</Tabs>
|
||||
</Step>
|
||||
|
||||
<Step title="💾 Save Changes">
|
||||
Click **"Update Agent"** when finished.
|
||||
|
||||
The updated version is instantly available to your team with automatic versioning for change tracking.
|
||||
</Step>
|
||||
</Steps>
|
||||
|
||||
<Warning>
|
||||
Test your agent thoroughly to ensure they interact as expected.
|
||||
</Warning>
|
||||
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:
|
||||
|
||||
<CardGroup cols={2}>
|
||||
<Card title="Security Scanner Agent" icon="shield" href="https://hub.continue.dev/continuedev/snyk-continuous-ai-agent">
|
||||
<Card title="Security Scanner Cloud Agent" icon="shield" href="https://hub.continue.dev/continuedev/snyk-continuous-ai-agent">
|
||||
**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.
|
||||
</Card>
|
||||
|
||||
<Card title="Performance Monitor" icon="gauge" href="https://hub.continue.dev/continuedev/netlify-continuous-ai-agent">
|
||||
<Card title="Performance Monitoring Cloud Agent" icon="gauge" href="https://hub.continue.dev/continuedev/netlify-continuous-ai-agent">
|
||||
**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.
|
||||
</Card>
|
||||
|
||||
<Card title="Error Monitoring Agent" icon="bug" href="https://hub.continue.dev/continuedev/sentry-continuous-ai-agent">
|
||||
|
|
@ -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.
|
||||
</Card>
|
||||
|
||||
<Card title="GitHub Management" icon="github" href="https://hub.continue.dev/continuedev/github-manager-ai-agent">
|
||||
<Card title="GitHub Management Cloud Agent" icon="github" href="https://hub.continue.dev/continuedev/github-manager-ai-agent">
|
||||
**GitHub Manager AI Agent** - Comprehensive GitHub workflow automation.
|
||||
|
||||
Handles issue triage, PR reviews, and release note generation with natural language prompts.
|
||||
</Card>
|
||||
|
||||
<Card title="Database Management" icon="database" href=" https://hub.continue.dev/continuedev/supabase-agent">
|
||||
<Card title="Database Management Cloud Agent" icon="database" href=" https://hub.continue.dev/continuedev/supabase-agent">
|
||||
**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 |
|
||||
|
|
|
|||
|
|
@ -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"
|
||||
---
|
||||
|
||||
<Card title="🚀 Quick Start with Mission Control" icon="rocket">
|
||||
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.
|
||||
</Card>
|
||||
|
||||
<Info>
|
||||
Mission Control is in beta. Please share any feedback with us in [GitHub discussions](https://github.com/continuedev/continue/discussions/8051).
|
||||
</Info>
|
||||
|
||||
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
|
||||
|
||||
<Tip>
|
||||
If you haven't already, create an account and connect your GitHub repositories in [Mission Control](https://hub.continue.dev/).
|
||||
</Tip>
|
||||
|
||||
<Steps>
|
||||
<Step title="Access Mission Control">
|
||||
Go to [Mission Control Agents](https://hub.continue.dev/hub?type=agents) and connect with your GitHub account.
|
||||
|
||||

|
||||
<Step title="Navigate to Your Agents Page">
|
||||
Go to [Mission Control Agents page](https://hub.continue.dev/agents) and select an existing workflow with a pre-configured Cloud Agent.
|
||||
</Step>
|
||||
|
||||
<Step title="Choose an Agent">
|
||||
Select from pre-configured agents or create your own:
|
||||
|
||||
<CardGroup cols={2}>
|
||||
<Card title="Security Scanner" icon="shield-check">
|
||||
`continuedev/snyk-continuous-ai-agent`
|
||||
Finds vulnerabilities and creates fix PRs
|
||||
</Card>
|
||||
|
||||
<Card title="GitHub Manager" icon="github">
|
||||
`continuedev/github-project-manager-agent`
|
||||
Triages issues and manages workflows
|
||||
</Card>
|
||||
</CardGroup>
|
||||
</Step>
|
||||
|
||||
<Step title="Run Your First Agent">
|
||||
Enter additional instructions and watch your agent work:
|
||||
|
||||
```
|
||||
"Fix the TypeError in api/users.ts and open a PR with tests"
|
||||
```
|
||||
<Step title="Run Your First Cloud Agent">
|
||||
Your agents page lists all available Cloud Agents. Click on the agent and then **Test Run** to start it.
|
||||
</Step>
|
||||
</Steps>
|
||||
|
||||
<Info>
|
||||
**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.
|
||||
</Info>
|
||||
|
||||
## 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.
|
||||
|
||||

|
||||
|
||||
### See an Agent Create a Pull Request in Under 60 Seconds
|
||||
|
||||
<Steps>
|
||||
|
|
@ -79,13 +58,13 @@ Before creating your own agent, let's see one in action! The fastest way to expe
|
|||
</Step>
|
||||
|
||||
<Step title="🎯 Access Mission Control">
|
||||
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
|
||||
</Step>
|
||||
|
||||
<Step title="🚀 Run Your First Agent">
|
||||
**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):
|
||||
|
||||
<Tabs>
|
||||
<Tab title="Add New Feature">
|
||||
|
|
@ -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:
|
||||
|
||||
<AccordionGroup>
|
||||
<Accordion title="Bug Fixes & Code Quality">
|
||||
|
|
@ -189,7 +168,7 @@ Here are some example tasks you can try with your agents:
|
|||
</Accordion>
|
||||
</AccordionGroup>
|
||||
|
||||
## 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)
|
||||
</Tab>
|
||||
|
||||
<Tab title="💻 CLI (TUI Mode)">
|
||||
|
|
@ -235,9 +215,9 @@ Choose the method that fits your workflow:
|
|||
</Tab>
|
||||
</Tabs>
|
||||
|
||||
## 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:
|
||||
|
||||
<CardGroup cols={2}>
|
||||
<Card title="Start Small" icon="seedling">
|
||||
|
|
|
|||
|
|
@ -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.
|
||||
|
||||
|
||||
<Card title="Agents in Continue" icon="robot">
|
||||
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.
|
||||
</Card>
|
||||
|
||||
## 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 |
|
||||
|
||||
<Info>
|
||||
Mission Control is in beta. Please share any feedback with us in [GitHub discussions](https://github.com/continuedev/continue/discussions/8051).
|
||||
</Info>
|
||||
|
||||
## 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:
|
||||
|
||||
<Tabs>
|
||||
<Tab title="🌐 Mission Control">
|
||||
|
|
@ -74,7 +68,17 @@ You can run Agents in three main ways:
|
|||
</Tab>
|
||||
</Tabs>
|
||||
|
||||
## 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.
|
||||
</Card>
|
||||
|
||||
<Card title="🐛 GitHub Management" icon="github" href="https://hub.continue.dev/continuedev/github-project-manager-agent">
|
||||
|
||||
`continuedev/github-project-manager-agent`
|
||||
|
||||
Triages issues and manages project workflows
|
||||
A cloud agent that triages issues and manages project workflows
|
||||
|
||||
</Card>
|
||||
|
||||
|
|
@ -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
|
||||
|
||||
</Card>
|
||||
|
||||
|
|
@ -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
|
||||
|
||||
</Card>
|
||||
|
||||
|
|
@ -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
|
||||
|
||||
</Card>
|
||||
|
||||
|
|
@ -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
|
||||
|
||||
</Card>
|
||||
</CardGroup>
|
||||
|
||||
<Info>
|
||||
**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).
|
||||
</Info>
|
||||
|
||||
{/* ## Webhook Integrations
|
||||
|
|
@ -180,7 +183,7 @@ Agents are organizational assets — once created, everyone in your org can use
|
|||
</Step>
|
||||
|
||||
<Step title="Create Your First Agent">
|
||||
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).
|
||||
</Step>
|
||||
|
||||
<Step title="Set Up Automation">
|
||||
|
|
@ -228,7 +231,7 @@ The practice of using cloud agents, which we call Continuous AI, requires foreth
|
|||
## Next Steps
|
||||
|
||||
<CardGroup cols={2}>
|
||||
<Card title="Create an Agent" icon="plus" href="/hub/agents/create-and-edit">
|
||||
<Card title="Create an Agent" icon="plus" href="/agents/create-and-edit">
|
||||
Build your first custom agent with prompts, rules, and tools
|
||||
</Card>
|
||||
|
||||
|
|
|
|||
29
docs/cli/configuration.mdx
Normal file
29
docs/cli/configuration.mdx
Normal file
|
|
@ -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
|
||||
```
|
||||
|
|
@ -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
|
||||
|
||||
|
|
|
|||
40
docs/customize/model-providers/more/mimo.mdx
Normal file
40
docs/customize/model-providers/more/mimo.mdx
Normal file
|
|
@ -0,0 +1,40 @@
|
|||
---
|
||||
title: "How to Configure Xiaomi Mimo with Continue"
|
||||
sidebarTitle: "Xiaomi Mimo"
|
||||
---
|
||||
|
||||
<Info>
|
||||
Get your API key from the [Xiaomi Mimo Platform](https://platform.xiaomimimo.com/)
|
||||
</Info>
|
||||
|
||||
## Configuration
|
||||
|
||||
<Tabs>
|
||||
<Tab title="YAML">
|
||||
```yaml title="config.yaml"
|
||||
name: My Config
|
||||
version: 0.0.1
|
||||
schema: v1
|
||||
|
||||
models:
|
||||
- name: <MODEL_NAME>
|
||||
provider: mimo
|
||||
model: mimo-v2-flash
|
||||
apiKey: <YOUR_MIMO_API_KEY>
|
||||
```
|
||||
</Tab>
|
||||
<Tab title="JSON (Deprecated)">
|
||||
```json title="config.json"
|
||||
{
|
||||
"models": [
|
||||
{
|
||||
"title": "<MODEL_NAME>",
|
||||
"provider": "mimo",
|
||||
"model": "mimo-v2-flash",
|
||||
"apiKey": "<YOUR_MIMO_API_KEY>"
|
||||
}
|
||||
]
|
||||
}
|
||||
```
|
||||
</Tab>
|
||||
</Tabs>
|
||||
|
|
@ -46,7 +46,7 @@ Click "Use Model", or "Remix" to change the model ID if needed
|
|||
</Step>
|
||||
|
||||
<Step title="Add your API key">
|
||||
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)
|
||||
<Tip>
|
||||
Add it as a Continue Mission Control secret named `TETRATE_API_KEY` to reuse across projects.
|
||||
</Tip>
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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",
|
||||
|
|
|
|||
|
|
@ -140,7 +140,7 @@ For all options, first:
|
|||
<Tab title="🛠️ Manual Setup">
|
||||
<Steps>
|
||||
<Step title="Create a New Agent on Continue Mission Control">
|
||||
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).
|
||||
</Step>
|
||||
|
||||
<Step title="Add Atlassian MCP">
|
||||
|
|
|
|||
|
|
@ -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`).
|
||||
|
||||
|
|
|
|||
|
|
@ -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.
|
||||
|
||||
<Info>
|
||||
**Who this is for?**
|
||||
Full-stack teams without a dedicated AppSec or DevOps function who still need to ship securely.
|
||||
</Info>
|
||||
|
||||
## The Core Problem
|
||||
|
||||
<CardGroup cols={3}>
|
||||
<Card title="Signal Overload">
|
||||
Snyk finds real issues, but teams can’t keep up with triage and fixes.
|
||||
</Card>
|
||||
<Card title="Context Switching">
|
||||
Security work interrupts feature delivery and breaks focus.
|
||||
</Card>
|
||||
<Card title="Manual Toil">
|
||||
Many fixes are repetitive, low-risk, and still handled manually.
|
||||
</Card>
|
||||
</CardGroup>
|
||||
|
||||
<Warning>
|
||||
The risk isn’t that vulnerabilities exist. The risk is that known high-severity issues remain unfixed.
|
||||
</Warning>
|
||||
|
||||
## 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 |
|
||||
|
||||
<Tip>
|
||||
Snyk tells you *what* to upgrade. The Cloud Agent does the *engineering work* to make that upgrade safe.
|
||||
</Tip>
|
||||
|
||||
## 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.
|
||||
|
||||
<CardGroup cols={2}>
|
||||
<Card title="Inputs">
|
||||
- High & critical Snyk vulnerability events
|
||||
- Repository context
|
||||
- Dependency graph and version constraints
|
||||
</Card>
|
||||
|
||||
<Card title="Outputs">
|
||||
- Draft or ready PR with remediation
|
||||
- Clear summary of risk and fix
|
||||
</Card>
|
||||
</CardGroup>
|
||||
|
||||
<Tip>
|
||||
The agent doesn’t silently change production code. It produces **reviewable security PRs**.
|
||||
</Tip>
|
||||
|
||||
## How the Workflow Runs
|
||||
|
||||
<Steps>
|
||||
<Step title="Trigger">
|
||||
A new **high or critical** vulnerability is detected by Snyk
|
||||
(event-driven) or during a scheduled scan.
|
||||
</Step>
|
||||
|
||||
<Step title="Investigate">
|
||||
The agent investigates:
|
||||
- the vulnerable dependency
|
||||
- available remediation paths
|
||||
- breaking-change risk
|
||||
</Step>
|
||||
|
||||
<Step title="Propose a Fix">
|
||||
The agent:
|
||||
- applies the minimal safe update
|
||||
- avoids unnecessary refactors
|
||||
- preserves existing behavior
|
||||
</Step>
|
||||
|
||||
<Step title="Open a PR">
|
||||
A PR is created with:
|
||||
- a clear title
|
||||
- summary of the vulnerability
|
||||
- explanation of the fix
|
||||
</Step>
|
||||
|
||||
<Step title="Human Review">
|
||||
A developer reviews and merges (or adjusts) the fix.
|
||||
</Step>
|
||||
</Steps>
|
||||
|
||||
## The Agent Configuration
|
||||
|
||||
Continue's Snyk Cloud Agent is built from these core components:
|
||||
|
||||
<CardGroup cols={3}>
|
||||
<Card title="Triggers" icon="bolt">
|
||||
**Webhook:** Snyk new vulnerability event
|
||||
</Card>
|
||||
<Card title="Tools (MCPs)" icon="toolbox">
|
||||
**Snyk MCP:** Fetch vulnerability details
|
||||
</Card>
|
||||
<Card title="Rules" icon="list">
|
||||
**GitHub CLI:** Tells the agent how to create PRs
|
||||
</Card>
|
||||
</CardGroup>
|
||||
|
||||
|
||||
```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] <brief description of issue solved>
|
||||
|
||||
## Issue
|
||||
|
||||
**Snyk Link:** [<shortId>](<permalink>)
|
||||
**Issue Type:** `<issue type>`
|
||||
**Priority:** <priority>
|
||||
**Summary:** <Two sentence summary of what caused the issue and how it was fixed>
|
||||
|
||||
```
|
||||
|
||||
## Governance: How This Stays Safe
|
||||
|
||||
<Tabs>
|
||||
<Tab title="Default Mode (Recommended)">
|
||||
**Assisted automation**
|
||||
|
||||
- Agent runs automatically
|
||||
- PRs require human approval
|
||||
- CI must pass before merge
|
||||
|
||||
*This is where most teams should live.*
|
||||
</Tab>
|
||||
|
||||
<Tab title="Early Adoption">
|
||||
**Manual / On-Demand**
|
||||
|
||||
- Agent is triggered manually
|
||||
- Used to validate behavior and build trust
|
||||
</Tab>
|
||||
|
||||
<Tab title="Advanced">
|
||||
**Selective Automation**
|
||||
|
||||
- Narrow classes of fixes only
|
||||
- Patch-level updates
|
||||
- Strict constraints and rollback paths
|
||||
</Tab>
|
||||
</Tabs>
|
||||
|
||||
## What This Replaces (and What It Doesn’t)
|
||||
|
||||
<AccordionGroup>
|
||||
<Accordion title="This replaces…">
|
||||
- manual dependency bump PRs
|
||||
- repetitive vulnerability triage
|
||||
- security work that constantly interrupts feature delivery
|
||||
</Accordion>
|
||||
|
||||
<Accordion title="This does NOT replace…">
|
||||
- security design reviews
|
||||
- architectural threat modeling
|
||||
- decisions about major upgrades or breaking changes
|
||||
</Accordion>
|
||||
</AccordionGroup>
|
||||
|
||||
|
||||
## Why Cloud Agents (Not Just CI or Scripts) for Automatic Security Remediation
|
||||
|
||||
<CardGroup cols={2}>
|
||||
<Card title="Why Not Just CI?">
|
||||
CI can *detect* vulnerabilities,
|
||||
but it can’t reason about fixes or propose patches.
|
||||
</Card>
|
||||
|
||||
<Card title="Why Cloud Agents Work">
|
||||
Cloud agents:
|
||||
- interpret Snyk findings
|
||||
- choose appropriate fixes
|
||||
- produce PRs developers can review
|
||||
</Card>
|
||||
</CardGroup>
|
||||
|
||||
<Tip>
|
||||
CI enforces. Cloud agents **respond**.
|
||||
</Tip>
|
||||
|
||||
## Security Benefits Teams See
|
||||
|
||||
<CardGroup cols={3}>
|
||||
<Card title="Faster Remediation">
|
||||
High-severity issues are fixed days or weeks sooner.
|
||||
</Card>
|
||||
<Card title="Less Interruptions">
|
||||
Developers review PRs instead of context-switching to triage.
|
||||
</Card>
|
||||
<Card title="Security as Hygiene">
|
||||
Vulnerabilities stop piling up and become routine maintenance.
|
||||
</Card>
|
||||
</CardGroup>
|
||||
|
||||
|
||||
## A Good First Setup
|
||||
|
||||
<Info title="Recommended starting constraints">
|
||||
- Only **high & critical** vulnerabilities
|
||||
- One repo or service
|
||||
- PRs only (no direct merges)
|
||||
- CI required before merge
|
||||
- Named owner for review
|
||||
</Info>
|
||||
|
||||
## 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
|
||||
|
||||
<CardGroup cols={2}>
|
||||
<Card title="Snyk Integration Docs" href="/guides/cloud-agents/operating-cloud-agents-safely">
|
||||
More information on the Continue Snyk Integration and how you can get started today.
|
||||
</Card>
|
||||
|
||||
<Card title="Add the Snyk Integration" href="https://hub.continue.dev/integrations/snyk">
|
||||
Get started by adding the Snyk integration to your projects
|
||||
</Card>
|
||||
</CardGroup>
|
||||
|
||||
|
||||
## One Sentence to Remember
|
||||
|
||||
<Tip>
|
||||
Cloud agents turn security remediation from an interruption into routine maintenance.
|
||||
</Tip>
|
||||
238
docs/guides/cloud-agents/cloud-agents-taxonomy.mdx
Normal file
238
docs/guides/cloud-agents/cloud-agents-taxonomy.mdx
Normal file
|
|
@ -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
|
||||
|
||||
<Info>
|
||||
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.
|
||||
</Info>
|
||||
|
||||
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.
|
||||
|
||||
<CardGroup cols={2}>
|
||||
<Card title="Not IDE Agents">
|
||||
IDE agents focus on individual productivity and local context. Cloud agents operate on shared systems and team-owned work.
|
||||
</Card>
|
||||
|
||||
<Card title="Not Just Cron Jobs">
|
||||
Cron is a trigger. Cloud agents reason over changing inputs and produce reviewable outcomes.
|
||||
</Card>
|
||||
|
||||
<Card title="Not One-Off Scripts">
|
||||
Scripts execute fixed logic. Cloud agents apply reasoning and shared context even for a single run.
|
||||
</Card>
|
||||
|
||||
<Card title="Not Magic Automation">
|
||||
Cloud agents still require review, ownership, and guardrails.
|
||||
</Card>
|
||||
</CardGroup>
|
||||
|
||||
## 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.*
|
||||
|
||||
<Columns cols={2}>
|
||||
<Card title="Examples">
|
||||
- Analyze the top recurring Sentry errors
|
||||
- Audit a repo for security issues
|
||||
- Summarize system behavior
|
||||
</Card>
|
||||
<Card title="Best for">
|
||||
- Unknown scope
|
||||
- Exploratory work
|
||||
- Building confidence before automation
|
||||
</Card>
|
||||
</Columns>
|
||||
|
||||
### 2. Scheduled Cloud Agents
|
||||
*Time-based triggers that run on a fixed cadence (daily, weekly, hourly).*
|
||||
|
||||
<Columns cols={2}>
|
||||
<Card title="Examples">
|
||||
- Weekly vulnerability scans
|
||||
- Nightly analytics summaries
|
||||
- Regular dependency updates
|
||||
</Card>
|
||||
<Card title="Best for">
|
||||
- Predictable recurring work
|
||||
- Backlog prevention
|
||||
- Drift detection
|
||||
</Card>
|
||||
</Columns>
|
||||
|
||||
### 3. Event-Driven Cloud Agents
|
||||
*Signal-based triggers that react to real-time events from external systems.*
|
||||
|
||||
<Columns cols={2}>
|
||||
<Card title="Examples">
|
||||
- New high-severity alert
|
||||
- Failed deployment
|
||||
- Critical security finding
|
||||
</Card>
|
||||
<Card title="Best for">
|
||||
- Operational workflows
|
||||
- Incident response
|
||||
- Time-sensitive fixes
|
||||
</Card>
|
||||
</Columns>
|
||||
|
||||
## Axis 2: Cloud Agent Governance Level
|
||||
|
||||
This is where most teams get into trouble.
|
||||
|
||||
<Tabs>
|
||||
<Tab title="Manual">
|
||||
- Human decides when the agent runs
|
||||
- Human reviews everything
|
||||
|
||||
*Safest starting point.*
|
||||
</Tab>
|
||||
|
||||
<Tab title="Assisted">
|
||||
- Agent runs automatically
|
||||
- Human approves outcomes
|
||||
|
||||
*Where most teams should live first.*
|
||||
</Tab>
|
||||
|
||||
<Tab title="Automated">
|
||||
- Agent runs unattended
|
||||
- Outcomes merge or act directly
|
||||
|
||||
*Earned over time — not assumed.*
|
||||
</Tab>
|
||||
</Tabs>
|
||||
|
||||
<Warning>
|
||||
Cloud agents don’t fail because they’re autonomous. They fail because teams skip the control phase.
|
||||
</Warning>
|
||||
|
||||
## 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
|
||||
|
||||
<CardGroup cols={2}>
|
||||
<Card title="Developer’s Guide to Cloud Agents" href="/guides/cloud-agents/guide-to-cloud-agents">
|
||||
Learn how cloud agents are implemented and used in practice.
|
||||
</Card>
|
||||
|
||||
<Card title="Mission Control" href="https://mission.continue.dev">
|
||||
Explore how teams manage cloud agents safely at scale.
|
||||
</Card>
|
||||
</CardGroup>
|
||||
|
||||
---
|
||||
|
||||
## One Sentence to Remember
|
||||
|
||||
<Callout type="success">
|
||||
Cloud agents are how teams take ownership of work that happens after code ships.
|
||||
</Callout>
|
||||
127
docs/guides/cloud-agents/cloud-agents-vs-ci.mdx
Normal file
127
docs/guides/cloud-agents/cloud-agents-vs-ci.mdx
Normal file
|
|
@ -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"
|
||||
---
|
||||
|
||||
<Card title="Why Cloud Agents 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.
|
||||
</Card>
|
||||
|
||||
|
||||
## What CI/CD Is Great At
|
||||
|
||||
<CardGroup cols={2}>
|
||||
<Card title="CI/CD Excels When">
|
||||
- **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
|
||||
</Card>
|
||||
|
||||
<Card title="Common CI/CD Tasks">
|
||||
- Run tests
|
||||
- Build artifacts
|
||||
- Enforce lint rules
|
||||
- Run static analysis
|
||||
- Execute fixed scripts
|
||||
</Card>
|
||||
</CardGroup>
|
||||
|
||||
## 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
|
||||
|
||||
<Info>
|
||||
CI is the best executor of deterministic checks. Cloud agents are best at interpreting signals and producing reviewable outcomes.
|
||||
</Info>
|
||||
|
||||
|
||||
## 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<br/>2. Proposes minimal fix
|
||||
Agent->>Repo: Push fix to agent branch
|
||||
Agent->>Repo: Open **draft PR** ("[Fix Build] <summary>")
|
||||
|
||||
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
|
||||
|
||||
<CardGroup cols={2}>
|
||||
<Card title="Explore Cloud Agent Integrations" icon="rocket" href="https://hub.continue.dev/integrations">
|
||||
|
||||
Browse ready-to-use AI agents in Continue Mission Control.
|
||||
|
||||
</Card>
|
||||
|
||||
<Card title="Mission Control Setup" icon="terminal" href="https://hub.continue.dev">
|
||||
|
||||
Get started with Continue Mission Control.
|
||||
|
||||
</Card>
|
||||
</CardGroup>
|
||||
118
docs/guides/cloud-agents/from-task-to-automation.mdx
Normal file
118
docs/guides/cloud-agents/from-task-to-automation.mdx
Normal file
|
|
@ -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.
|
||||
|
||||
<Info>
|
||||
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).
|
||||
</Info>
|
||||
|
||||
## 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;
|
||||
```
|
||||
|
||||
|
||||
<Info>
|
||||
Most teams should spend the most time in **Assisted** mode. That’s where trust compounds.
|
||||
</Info>
|
||||
|
||||
## 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)
|
||||
<AccordionGroup>
|
||||
<Accordion title="Failure: Automating before review criteria exist">
|
||||
**Fix:** Start manual. Write explicit acceptance criteria. Move to assisted only after you can review quickly.
|
||||
</Accordion>
|
||||
<Accordion title="Failure: Too broad a scope" >
|
||||
**Fix:** Restrict to one repo, one class of issues, one trigger.
|
||||
</Accordion>
|
||||
<Accordion title="Failure: No clear owner" >
|
||||
**Fix:** Assign ownership before automation. Automation without ownership creates invisible work.
|
||||
</Accordion>
|
||||
<Accordion title="Failure: Outputs aren’t reviewable">
|
||||
**Fix:** Prefer PRs, diffs, and reports over “actions taken silently.”
|
||||
</Accordion>
|
||||
</AccordionGroup>
|
||||
|
||||
|
||||
|
||||
188
docs/guides/cloud-agents/guide-to-cloud-agents.mdx
Normal file
188
docs/guides/cloud-agents/guide-to-cloud-agents.mdx
Normal file
|
|
@ -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."
|
||||
---
|
||||
|
||||
<Note>
|
||||
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)**.
|
||||
</Note>
|
||||
|
||||
## 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.
|
||||
|
||||
<Card title="The Shift to Cloud Agents" icon="cloud">
|
||||
|
||||
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.
|
||||
|
||||
</Card>
|
||||
|
||||
## 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.
|
||||
|
||||
<Info>
|
||||
|
||||
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.
|
||||
|
||||
</Info>
|
||||
|
||||
### Common Components in a Production Cloud Agent
|
||||
|
||||
Most production Cloud Agents share a common structure that balances reasoning, action, and guardrails.
|
||||
|
||||
<CardGroup cols={2}>
|
||||
<Card title="Prompt" icon="message">
|
||||
|
||||
The core instruction defining the task.
|
||||
|
||||
</Card>
|
||||
|
||||
<Card title="Model" icon="brain">
|
||||
|
||||
The LLM powering the reasoning.
|
||||
|
||||
</Card>
|
||||
|
||||
<Card title="Tools (MCPs)" icon="wrench">
|
||||
|
||||
The capabilities to fetch data or take action.
|
||||
|
||||
</Card>
|
||||
|
||||
<Card title="Rules" icon="shield">
|
||||
|
||||
The guardrails ensuring the output matches your team's coding standards.
|
||||
|
||||
</Card>
|
||||
</CardGroup>
|
||||
|
||||
## 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:
|
||||
|
||||
<Tabs>
|
||||
<Tab title="On-Demand Tasks">
|
||||
|
||||
### 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.
|
||||
|
||||
<Card title="Example: Refactor Task" icon="code">
|
||||
|
||||
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.**
|
||||
|
||||
</Card>
|
||||
|
||||
**Best for:**
|
||||
- Exploring agent capabilities
|
||||
- Fixes you don't want to break your focus for
|
||||
- Tasks requiring human review before deployment
|
||||
|
||||
</Tab>
|
||||
|
||||
<Tab title="Automated Workflows">
|
||||
|
||||
### Headless Approach
|
||||
|
||||
You configure these agents to run in the background based on triggers, with no human intervention required until the final PR review.
|
||||
|
||||
<Card title="Example: Security Agent" icon="lock">
|
||||
|
||||
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.
|
||||
|
||||
</Card>
|
||||
|
||||
**Best for:**
|
||||
- Continuous security monitoring
|
||||
- Automated dependency updates without breaking things
|
||||
- Event-driven workflows
|
||||
|
||||
</Tab>
|
||||
</Tabs>
|
||||
|
||||
|
||||
## Why "Cloud" Matters
|
||||
|
||||
The distinction between running an agent locally (TUI/IDE) and in the cloud (Mission Control) comes down to **scope** and **reliability**.
|
||||
|
||||
<AccordionGroup>
|
||||
<Accordion title="Compute Location" icon="server">
|
||||
|
||||
- **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.
|
||||
|
||||
</Accordion>
|
||||
|
||||
<Accordion title="Primary Use Case" icon="bullseye">
|
||||
|
||||
- **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.
|
||||
|
||||
</Accordion>
|
||||
|
||||
<Accordion title="Context Access" icon="folder-open">
|
||||
|
||||
- **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.
|
||||
|
||||
</Accordion>
|
||||
|
||||
<Accordion title="Triggers" icon="bolt">
|
||||
|
||||
- **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.
|
||||
|
||||
</Accordion>
|
||||
|
||||
<Accordion title="Availability" icon="clock">
|
||||
|
||||
- **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.
|
||||
|
||||
</Accordion>
|
||||
</AccordionGroup>
|
||||
|
||||
## Getting Started
|
||||
|
||||
Ready to build your first Cloud Agent? Check out these resources:
|
||||
|
||||
<CardGroup cols={2}>
|
||||
<Card title="Explore Cloud Agent Integrations" icon="rocket" href="https://hub.continue.dev/integrations">
|
||||
|
||||
Browse ready-to-use AI agents in Continue Mission Control.
|
||||
|
||||
</Card>
|
||||
|
||||
<Card title="Create Your Own Agent" icon="hammer" href="/agents/create-and-edit">
|
||||
|
||||
Learn how to build custom Cloud Agents.
|
||||
|
||||
</Card>
|
||||
|
||||
<Card title="MCP Tools Guide" icon="plug" href="/customize/mcp-tools">
|
||||
|
||||
Connect your agents to external services.
|
||||
|
||||
</Card>
|
||||
|
||||
<Card title="Mission Control Setup" icon="terminal" href="https://hub.continue.dev">
|
||||
|
||||
Get started with Continue Mission Control.
|
||||
|
||||
</Card>
|
||||
</CardGroup>
|
||||
233
docs/guides/cloud-agents/operating-cloud-agents-safely.mdx
Normal file
233
docs/guides/cloud-agents/operating-cloud-agents-safely.mdx
Normal file
|
|
@ -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"
|
||||
---
|
||||
|
||||
<Card title="The Goal">
|
||||
|
||||
Cloud agents should reduce risk and interruptions not introduce new ones. This guide covers practical guardrails that make cloud agents safe for real teams.
|
||||
</Card>
|
||||
|
||||
## The Safety Baseline for Cloud Agents
|
||||
|
||||
<CardGroup cols={3}>
|
||||
<Card title="Ownership">
|
||||
Every workflow has a named owner and an escalation path.
|
||||
</Card>
|
||||
<Card title="Reviewability">
|
||||
Outputs are diffable, explainable, and revertible.
|
||||
</Card>
|
||||
<Card title="Bounded Scope">
|
||||
One repo →
|
||||
one workflow →
|
||||
one trigger.
|
||||
*Expand only after success.*
|
||||
</Card>
|
||||
</CardGroup>
|
||||
|
||||
|
||||
## A Safe Adoption Path
|
||||
|
||||
<Steps>
|
||||
<Step title="Start Manual">
|
||||
Run as a one-off task. Validate cloud agent outputs and define acceptance criteria.
|
||||
</Step>
|
||||
|
||||
<Step title="Move to Assisted">
|
||||
Allow automated triggering, but keep human approval before merge/action.
|
||||
</Step>
|
||||
|
||||
<Step title="Automate Selectively">
|
||||
Only automate workflows with predictable blast radius, clear rollback, and stable output quality.
|
||||
</Step>
|
||||
</Steps>
|
||||
|
||||
<Warning title="The most common failure">
|
||||
Cloud agents don’t fail because they’re autonomous.
|
||||
They fail because teams automate before they’ve defined review criteria and ownership.
|
||||
</Warning>
|
||||
|
||||
## 1) Ownership Comes First
|
||||
|
||||
Before you automate anything, make these true:
|
||||
|
||||
<CardGroup cols={2}>
|
||||
<Card title="Name an Owner">
|
||||
One person is responsible for:
|
||||
- reviewing outcomes
|
||||
- tuning prompts/rules
|
||||
- responding to failures
|
||||
</Card>
|
||||
|
||||
<Card title="Define Escalation">
|
||||
Decide what happens when:
|
||||
- the cloud agent can’t complete work
|
||||
- output confidence is low
|
||||
- a run fails repeatedly
|
||||
</Card>
|
||||
</CardGroup>
|
||||
|
||||
<AccordionGroup>
|
||||
<Accordion title="What good ownership looks like">
|
||||
- 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)
|
||||
</Accordion>
|
||||
|
||||
<Accordion title="Red flags">
|
||||
- “Whoever sees it first” is the owner
|
||||
- Alerts route to a general channel with no responder
|
||||
- No one feels safe turning it off
|
||||
</Accordion>
|
||||
</AccordionGroup>
|
||||
|
||||
## 2) Constrain Blast Radius
|
||||
|
||||
The fastest path to trust is a smaller blast radius.
|
||||
|
||||
<CardGroup cols={3}>
|
||||
<Card title="Start with One Repo">
|
||||
Pick a low-risk repo or a single service to prove value.
|
||||
</Card>
|
||||
|
||||
<Card title="One Class of Issues">
|
||||
Narrow the scope: one recurring error type, one vuln class, one cleanup task.
|
||||
</Card>
|
||||
|
||||
<Card title="Cap Output Size">
|
||||
Set expectations like “no more than N files” or “single dependency PRs.”
|
||||
</Card>
|
||||
</CardGroup>
|
||||
|
||||
<Callout type="info" title="A good first constraint">
|
||||
Prefer PRs and reports over direct writes or production actions.
|
||||
</Callout>
|
||||
|
||||
## 3) Review Is the Safety Rail
|
||||
|
||||
Treat every cloud agent run like you’d treat a teammate’s PR.
|
||||
|
||||
<Tabs>
|
||||
<Tab title="Review checklist">
|
||||
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?
|
||||
</Tab>
|
||||
|
||||
<Tab title="What “reviewable” means">
|
||||
Reviewable outputs are:
|
||||
|
||||
- **Diffable** (PRs, patches, file changes)
|
||||
- **Explainable** (short rationale, linked inputs)
|
||||
- **Revertible** (easy rollback path)
|
||||
</Tab>
|
||||
|
||||
<Tab title="When to block merge">
|
||||
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
|
||||
</Tab>
|
||||
</Tabs>
|
||||
|
||||
## 4) Permissions: Least Privilege by Default
|
||||
|
||||
Give agents the smallest set of permissions required for the job.
|
||||
|
||||
<AccordionGroup>
|
||||
<Accordion title="Permission guidelines">
|
||||
- Prefer **read-only** until the workflow proves reliable
|
||||
- Prefer **PR creation** over direct push
|
||||
- Scope external tools (Sentry/Snyk/etc.) to the minimum endpoints
|
||||
</Accordion>
|
||||
|
||||
<Accordion title="Practical permission levels">
|
||||
- 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
|
||||
</Accordion>
|
||||
</AccordionGroup>
|
||||
|
||||
<Callout type="warning" title="Avoid early">
|
||||
Do not start with permissions that allow silent writes to main or production mutations.
|
||||
</Callout>
|
||||
|
||||
## 5) Observability & Auditability
|
||||
|
||||
If you can’t answer these questions, you don’t have a safe system yet:
|
||||
|
||||
<CardGroup cols={2}>
|
||||
<Card title="Run provenance">
|
||||
- What ran?
|
||||
- Why did it run?
|
||||
- What inputs did it use?
|
||||
</Card>
|
||||
|
||||
<Card title="Outcome tracking">
|
||||
- What did it change?
|
||||
- Who reviewed/approved it?
|
||||
- Did it succeed or require intervention?
|
||||
</Card>
|
||||
</CardGroup>
|
||||
|
||||
<Callout type="info" title="Why this matters">
|
||||
Auditability turns “AI did something” into “we can explain what happened.”
|
||||
That’s the difference between experimentation and production.
|
||||
</Callout>
|
||||
|
||||
## 6) Failure Handling & Safe Defaults
|
||||
|
||||
Set defaults that fail safely.
|
||||
|
||||
<AccordionGroup>
|
||||
<Accordion title="Recommended default behaviors">
|
||||
- **Fail closed** (no silent actions)
|
||||
- If uncertain, produce a **report** instead of a change
|
||||
</Accordion>
|
||||
|
||||
<Accordion title="Common failure modes">
|
||||
- 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)
|
||||
</Accordion>
|
||||
|
||||
<Accordion title="Recovery playbook">
|
||||
- Pause the workflow
|
||||
- Reduce scope / increase constraints
|
||||
- Move back a governance level (Automated → Assisted → Manual)
|
||||
- Update acceptance criteria and rerun
|
||||
</Accordion>
|
||||
</AccordionGroup>
|
||||
|
||||
## Pre-Flight Checklist
|
||||
|
||||
<Card icon="cloud-check" title="Ready to run safely?">
|
||||
- [ ] 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
|
||||
</Card>
|
||||
|
||||
## Where to Go Next
|
||||
|
||||
<CardGroup cols={2}>
|
||||
<Card title="From Task → Automation" href="/guides/cloud-agents/from-task-to-automation">
|
||||
The trust ladder for moving from manual to automated safely.
|
||||
</Card>
|
||||
|
||||
<Card title="Automated Security Remediation" href="/guides/cloud-agents/automated-security-remediation-with-snyk">
|
||||
Proven starter workflow with clear triggers and review points.
|
||||
</Card>
|
||||
</CardGroup>
|
||||
89
docs/guides/cloud-agents/when-to-use-cloud-agents.mdx
Normal file
89
docs/guides/cloud-agents/when-to-use-cloud-agents.mdx
Normal file
|
|
@ -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.
|
||||
|
||||
<Tip>
|
||||
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).
|
||||
</Tip>
|
||||
|
||||
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
|
||||
|
||||
<Columns cols={2}>
|
||||
<Card title="Great fits">
|
||||
|
||||
- security remediation
|
||||
- recurring error triage
|
||||
- dependency hygiene
|
||||
- analytics-driven fixes
|
||||
|
||||
</Card>
|
||||
<Card title="Common triggers">
|
||||
- task dispatch
|
||||
- schedules
|
||||
- event webhooks
|
||||
</Card>
|
||||
</Columns>
|
||||
|
||||
## 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
|
||||
|
||||
<Warning>
|
||||
Cloud agents amplify whatever system you already have. If ownership is unclear, automation will make it worse.
|
||||
</Warning>
|
||||
|
||||
|
||||
## 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
|
||||
|
||||
<Info>
|
||||
If you’re unsure, start with a one-off [task](../../mission-control/tasks) and treat it like an experiment.
|
||||
</Info>
|
||||
|
||||
## Where to Go Next
|
||||
|
||||
<CardGroup cols={2}>
|
||||
<Card title="Build Your Own Agent" href="https://hub.continue.dev/agents/new">
|
||||
Customize an agent for your team in minutes.
|
||||
</Card>
|
||||
<Card title="Cloud Agent Integrations" href="https://hub.continue.dev/agents/integrations">
|
||||
Explore pre-built integrations for common tools and workflows.
|
||||
</Card>
|
||||
</CardGroup>
|
||||
|
|
@ -81,7 +81,7 @@ After ensuring you meet the **Prerequisites** above, you have two paths to get s
|
|||
<Tab title="🛠️ Manual Setup">
|
||||
<Steps>
|
||||
<Step title="Create a New Agent via the Continue Mission Control">
|
||||
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).
|
||||
</Step>
|
||||
|
||||
<Step title="Connect dlt MCP via Continue Mission Control">
|
||||
|
|
|
|||
|
|
@ -76,7 +76,7 @@ After ensuring you meet the **Prerequisites** above, you have two paths to get s
|
|||
<Tab title="🛠️ Manual Setup">
|
||||
<Steps>
|
||||
<Step title="Create a New Agent on Continue Mission Control">
|
||||
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).
|
||||
</Step>
|
||||
|
||||
<Step title="Add GitHub MCP">
|
||||
|
|
|
|||
|
|
@ -42,7 +42,7 @@ For all options, first:
|
|||
<Tab title="Manual Setup">
|
||||
<Steps>
|
||||
<Step title="Create an Agent on Continue Hub">
|
||||
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).
|
||||
</Step>
|
||||
|
||||
<Step title="Add Klavis AI Strata MCP">
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -101,7 +101,7 @@ First, you'll need to gather your PostHog and GitHub API credentials and add the
|
|||
<Tab title= "Configure API Access in Continue CLI">
|
||||
|
||||
<Tip>
|
||||
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
|
||||
</Tip>
|
||||
|
||||
You only need to configure the PostHog MCP credential - it automatically handles project selection. To add environment variables to your Continue Mission Control account:
|
||||
|
|
|
|||
|
|
@ -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
|
|||
<Tab title="🛠️ Manual Setup">
|
||||
<Steps>
|
||||
<Step title="Create a New Agent via the Continue Mission Control">
|
||||
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).
|
||||
</Step>
|
||||
|
||||
<Step title="Connect Sanity MCP via Continue Mission Control">
|
||||
|
|
|
|||
|
|
@ -123,7 +123,7 @@ After ensuring you meet the **Prerequisites** above, you have two paths to get s
|
|||
<Tab title="🛠️ Manual Setup">
|
||||
<Steps>
|
||||
<Step title="Create a New Agent via the Continue Mission Control">
|
||||
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).
|
||||
</Step>
|
||||
|
||||
<Step title="Connect Snyk MCP via Continue Mission Control">
|
||||
|
|
|
|||
|
|
@ -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)
|
||||
|
||||
|
|
|
|||
|
|
@ -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)
|
||||
|
||||
<Note>
|
||||
To use Next Edit, you must have the Instinct or Mercury Coder model configured
|
||||
|
|
|
|||
|
|
@ -313,9 +313,9 @@ Ready to master specific features? Check out these detailed guides:
|
|||
</Accordion>
|
||||
|
||||
<Accordion title="Enterprise & Teams">
|
||||
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).
|
||||
</Accordion>
|
||||
</AccordionGroup>
|
||||
|
||||
|
|
|
|||
|
|
@ -37,7 +37,7 @@ description: "Create, run, and automate AI agents across Mission Control, termin
|
|||
<Card title="GitHub" icon="github" href="/mission-control/integrations/github">
|
||||
Enable repository access for Agents to read and create PRs.
|
||||
</Card>
|
||||
<Card title="Slack" icon="slack" href="/mission-control/integrations/slack-agent">
|
||||
<Card title="Slack" icon="slack" href="/mission-control/integrations/slack">
|
||||
Mention <code>@Continue</code> in Slack to trigger Agents and receive updates.
|
||||
</Card>
|
||||
<Card title="Sentry" icon="alert-triangle" href="/mission-control/integrations/sentry">
|
||||
|
|
|
|||
|
|
@ -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.
|
||||
|
||||
|
|
|
|||
|
|
@ -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)
|
||||
|
|
|
|||
|
|
@ -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).
|
||||
|
||||
<CardGroup cols={4}>
|
||||
<CardGroup cols={3}>
|
||||
<Card title="Create & Run Tasks" icon="list" href="/mission-control/tasks">
|
||||
Trigger your AI Agents and review or approve the results.
|
||||
</Card>
|
||||
<Card title="Manage Your Agents" icon="robot" href="/agents/intro">
|
||||
Create, configure, and monitor your custom Agents across repositories.
|
||||
</Card>
|
||||
<Card title="Set Up Workflows" icon="clock" href="/mission-control/workflows">
|
||||
Schedule recurring Tasks, connect webhooks to trigger Agents automatically, or add
|
||||
<Card title="Manage Your Cloud Agents" icon="robot" href="/agents/intro">
|
||||
Configure, run, and monitor your custom Cloud Agents across repositories.
|
||||
</Card>
|
||||
<Card title="Connect Integrations" icon="plug" href="/mission-control/integrations">
|
||||
Link GitHub, Slack, and Sentry to power your Tasks and Workflows.
|
||||
Link GitHub, Slack, Sentry, and more to power your Cloud Agents.
|
||||
</Card>
|
||||
</CardGroup>
|
||||
|
||||
## Inbox: One Place to Triage, Assign, and Take Action
|
||||
|
||||
<Info>
|
||||
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.
|
||||
</Info>
|
||||
|
||||
<CardGroup cols={4}>
|
||||
|
|
@ -64,31 +61,30 @@ Some signals deserve their own dedicated view. When you connect integrations:
|
|||
## Monitoring & Insights
|
||||
|
||||
<Info>
|
||||
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.
|
||||
</Info>
|
||||
|
||||
<CardGroup cols={3}>
|
||||
|
||||
<Card title="Metrics" icon="chart-column" href="/mission-control/metrics">
|
||||
Measure success rates, PR activity, and intervention trends across Agents.
|
||||
Measure success rates, PR activity, and intervention trends across Cloud Agents.
|
||||
</Card>
|
||||
|
||||
<Card title="Organization Sharing" icon="users" href="/mission-control/governance/org-permissions">
|
||||
Share Agents and Workflows with teammates using built-in access controls.
|
||||
Share Cloud Agents with teammates using built-in access controls.
|
||||
</Card>
|
||||
|
||||
<Card title="Agent Monitoring" icon="radar" href="/agents/overview#monitoring">
|
||||
View active runs, logs, and outcomes for every Agent session.
|
||||
<Card title="Cloud Agent Monitoring" icon="radar" href="/agents/overview#monitoring">
|
||||
View active runs, logs, and outcomes for every Cloud Agent session.
|
||||
</Card>
|
||||
|
||||
</CardGroup>
|
||||
---
|
||||
|
||||
|
||||
## 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:
|
||||
|
||||
<CardGroup cols={2}>
|
||||
|
||||
|
|
@ -98,7 +94,7 @@ Agents are built from reusable components that you can create, share, and custom
|
|||
|
||||
</Card>
|
||||
|
||||
<Card title="MCPs" icon="wrench">
|
||||
<Card title="Tools" icon="wrench">
|
||||
|
||||
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
|
|||
|
||||
<Card title="Rules" icon="shield">
|
||||
|
||||
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
|
||||
|
||||
</Card>
|
||||
|
||||
|
|
@ -120,7 +116,7 @@ Agents are built from reusable components that you can create, share, and custom
|
|||
|
||||
<Tip>
|
||||
|
||||
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.
|
||||
|
||||
</Tip>
|
||||
|
||||
|
|
@ -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.
|
||||
</Card>
|
||||
|
||||
<Card title="Build a Workflow" icon="clock" href="https://hub.continue.dev/workflows">
|
||||
Automate your Tasks using cron schedules or webhooks.
|
||||
<Card title="Build Workflows for Cloud Agents" icon="clock" href="https://hub.continue.dev/agents/new">
|
||||
Automate work using GitHub triggers, cron schedules, or webhooks.
|
||||
</Card>
|
||||
|
||||
<Card title="Add Integrations" icon="workflow" href="https://hub.continue.dev/integrations">
|
||||
Connect GitHub, Slack, and Sentry to extend your Agents.
|
||||
Connect Slack, Sentry, Snyk and more to extend your Agents.
|
||||
</Card>
|
||||
|
||||
</CardGroup>
|
||||
|
|
|
|||
|
|
@ -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"
|
||||
---
|
||||
<Card
|
||||
title="Connect Atlassian to enable agents to:"
|
||||
title="Connect Atlassian to enable Cloud Agents to:"
|
||||
icon="diagram-project"
|
||||
href="https://hub.continue.dev/integrations/atlassian"
|
||||
>
|
||||
|
|
@ -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.
|
||||
|
||||
<CardGroup cols={2}>
|
||||
<Card title="Update Jira Tickets" icon="ticket">
|
||||
<Card title="Update Jira Tickets with Cloud Agents" icon="ticket">
|
||||
Automatically translate merged pull requests into clear, business-friendly Jira updates that explain what changed, why it matters, and who benefits.
|
||||
</Card>
|
||||
</CardGroup>
|
||||
|
|
@ -31,7 +31,7 @@ Official workflow templates may expand over time as new patterns are validated.
|
|||
</Tip>
|
||||
|
||||
|
||||
## Advanced Use Cases
|
||||
## Advanced Use Cases for Atlassian Cloud Agents
|
||||
|
||||
<Accordion title="Advanced: Custom Atlassian Workflow Ideas">
|
||||
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.
|
||||
|
|
|
|||
|
|
@ -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."
|
||||
---
|
||||
|
||||
|
||||
<Card title="Connect the GitHub Integration to:" icon="github" href="https://hub.continue.dev/integrations/github"
|
||||
>
|
||||
|
||||
- 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
|
|||
</Card>
|
||||
|
||||
|
||||
## 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
|
|||
</Card>
|
||||
</CardGroup>
|
||||
|
||||
<Tip>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**.</Tip>
|
||||
<Tip>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)**.</Tip>
|
||||
|
||||
## 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
|
||||
<Accordion title="Advanced: Custom GitHub Workflow Ideas">
|
||||
You can create custom workflows using Continue agents to automate a variety of GitHub-related tasks. Here are some ideas to get you started:
|
||||
<Accordion title="Advanced: Custom GitHub Cloud Agent Workflow Ideas">
|
||||
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
|
||||
|
||||
<CardGroup cols={2}>
|
||||
|
|
|
|||
|
|
@ -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"
|
||||
---
|
||||
|
||||
<Info>
|
||||
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.
|
||||
</Info>
|
||||
|
||||
Mission Control currently supports these first-class integrations:
|
||||
Mission Control currently supports these first-class Cloud Agent integrations:
|
||||
|
||||
<CardGroup cols={2}>
|
||||
|
||||
|
|
@ -16,12 +16,12 @@ Mission Control currently supports these first-class integrations:
|
|||
Required for PR creation, repo access, diffs, and workflow triggers.
|
||||
</Card>
|
||||
|
||||
<Card title="Slack" icon="slack" href="/mission-control/integrations/slack-agent">
|
||||
<Card title="Slack" icon="slack" href="/mission-control/integrations/slack">
|
||||
Mention @continue to kick off Agents directly from Slack.
|
||||
</Card>
|
||||
|
||||
<Card title="Sentry" icon="bug" href="/mission-control/integrations/sentry">
|
||||
Trigger Agents automatically when new Sentry issues appear.
|
||||
Trigger Cloud Agents automatically when new Sentry issues appear.
|
||||
</Card>
|
||||
|
||||
<Card title="Snyk" icon="shield-check" href="/mission-control/integrations/snyk">
|
||||
|
|
|
|||
|
|
@ -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."
|
||||
---
|
||||
|
||||
<Card
|
||||
title="Connect Netlify to enable agents to:"
|
||||
title="Connect Netlify to enable Cloud Agents to:"
|
||||
icon="bolt"
|
||||
href="https://hub.continue.dev/integrations/netlify"
|
||||
>
|
||||
|
|
@ -14,7 +14,7 @@ description: "Connect **Netlify** to Mission Control so agents can automatically
|
|||
- Post clear performance summaries directly to pull requests
|
||||
</Card>
|
||||
|
||||
## 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.
|
||||
</Card>
|
||||
</CardGroup>
|
||||
|
|
|
|||
|
|
@ -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."
|
||||
---
|
||||
|
||||
<Card
|
||||
title="Connect PostHog to enable agents to:"
|
||||
title="Connect PostHog to enable Cloud Agents to:"
|
||||
icon="chart-line"
|
||||
href="https://hub.continue.dev/integrations/posthog"
|
||||
>
|
||||
|
|
@ -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.
|
||||
|
||||
|
|
|
|||
|
|
@ -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."
|
||||
---
|
||||
|
||||
|
||||
<Card
|
||||
title="Connect Sanity to enable agents to:"
|
||||
title="Connect Sanity to enable Cloud Agents to:"
|
||||
icon="file-text"
|
||||
href="https://hub.continue.dev/integrations/sanity"
|
||||
>
|
||||
|
|
@ -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
|
||||
|
||||
<Accordion title="Advanced: Custom Sanity Workflow Ideas">
|
||||
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.
|
||||
</Card>
|
||||
|
||||
<Card
|
||||
|
|
|
|||
|
|
@ -1,12 +1,12 @@
|
|||
---
|
||||
title: "Sentry Integration"
|
||||
description: "Connect Sentry to Mission Control so agents can automatically respond to production errors, analyzing issues as they occur and proposing fixes before they escalate."
|
||||
description: "Connect Sentry to Mission Control so Cloud Agents can automatically respond to production errors, analyzing issues as they occur and proposing fixes before they escalate."
|
||||
---
|
||||
|
||||
|
||||
|
||||
<Card
|
||||
title="Connect Sentry to enable agents to:"
|
||||
title="Connect Sentry to enable Cloud Agents to:"
|
||||
icon="shield-exclamation"
|
||||
href="https://hub.continue.dev/integrations/sentry"
|
||||
>
|
||||
|
|
@ -18,7 +18,7 @@ description: "Connect Sentry to Mission Control so agents can automatically resp
|
|||
</Card>
|
||||
|
||||
|
||||
## 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**.
|
||||
</Tip>
|
||||
|
||||
### Advanced Use Cases
|
||||
### Advanced Use Cases for Sentry Cloud Agents in Continue
|
||||
|
||||
<Accordion title="Advanced: Custom Sentry Workflow Ideas">
|
||||
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.
|
||||
|
|
|
|||
|
|
@ -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"
|
||||
---
|
||||
|
||||
<Warning>
|
||||
|
||||
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.
|
||||
|
||||
</Warning>
|
||||
|
||||
<Card title="Connect the Slack Integration to Help You Complete:" icon="slack" href="https://hub.continue.dev/integrations/slack">
|
||||
<Card title="Connect Continue to Slack to Help You Complete:" icon="slack" href="https://hub.continue.dev/integrations/slack">
|
||||
|
||||
- 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.
|
||||
|
||||
<Tip>
|
||||
|
|
@ -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
|
||||
|
||||
<Warning>
|
||||
|
||||
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)
|
||||
|
||||
</Warning>
|
||||
|
||||
See our support page for more details: https://continue.dev/support
|
||||
|
||||
## Related Resources
|
||||
|
||||
<CardGroup cols={2}>
|
||||
|
||||
<Card title="Agents Introduction" icon="robot" href="../../agents/intro">
|
||||
<Card title="Cloud Agents Introduction" icon="robot" href="../../agents/intro">
|
||||
|
||||
Learn about Continue agents.
|
||||
Learn about Continue Cloud Agents.
|
||||
|
||||
</Card>
|
||||
|
||||
|
|
@ -111,4 +118,4 @@ To remove the Slack integration:
|
|||
|
||||
</Card>
|
||||
|
||||
</CardGroup>
|
||||
</CardGroup>
|
||||
|
|
@ -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"
|
||||
---
|
||||
|
||||
<Card
|
||||
title="Connect Snyk to enable agents to:"
|
||||
title="Connect Snyk to enable Cloud Agents to:"
|
||||
icon="shield-check"
|
||||
href="https://hub.continue.dev/integrations/snyk"
|
||||
>
|
||||
|
|
@ -15,7 +15,7 @@ description: "Connect Snyk to Continue Mission Control to automatically detect a
|
|||
- Create reports and summaries for security trends
|
||||
</Card>
|
||||
|
||||
## 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.
|
||||
|
||||
|
|
|
|||
|
|
@ -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."
|
||||
---
|
||||
|
||||
<Card
|
||||
title="Connect Supabase to enable agents to:"
|
||||
title="Connect Supabase to enable Cloud Agents to:"
|
||||
icon="database"
|
||||
href="https://hub.continue.dev/integrations/supabase"
|
||||
>
|
||||
|
|
@ -15,7 +15,7 @@ description: "Connect **Supabase** to Mission Control so agents can automaticall
|
|||
</Card>
|
||||
|
||||
|
||||
## 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.
|
||||
|
||||
|
|
|
|||
|
|
@ -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."
|
||||
---
|
||||
|
||||
<Info>
|
||||
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.
|
||||
</Info>
|
||||
|
||||
## 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
|
||||
|
||||
<AccordionGroup>
|
||||
|
||||
<Accordion title="Activity (Last 14 Days)">
|
||||
A day-by-day graph of total Agent runs across your repositories.
|
||||
- See which Agents are running most often
|
||||
<Accordion title="Agent Activity & Execution Volume">
|
||||
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
|
||||
</Accordion>
|
||||
|
||||
<Accordion title="Agent Statistics">
|
||||
Per-Agent breakdown of:
|
||||
<Accordion title="Agent Success & Outcome Metrics">
|
||||
Measure **whether agents produce usable results**.
|
||||
- **Total runs**
|
||||
- **PR creation rate**
|
||||
- **PR status** (open, merged, closed, failed)
|
||||
- **Success vs. intervention rate**
|
||||
</Accordion>
|
||||
|
||||
<Accordion title="Workflow Impact (if enabled)">
|
||||
Track which Workflows create the most tasks or PRs, and how often they complete successfully.
|
||||
<Accordion title="Workflow Reliability & Impact">
|
||||
Evaluate **automated agent workflows in production**.
|
||||
- Which Workflows generate the most work
|
||||
- Completion and success rates
|
||||
- Signals that a Workflow needs refinement or guardrails
|
||||
</Accordion>
|
||||
|
||||
</AccordionGroup>
|
||||
|
|
|
|||
|
|
@ -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)
|
||||
|
|
|
|||
|
|
@ -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.
|
||||
|
|
|
|||
|
|
@ -26,7 +26,7 @@ description: "A Task is a unit of work shared between you and an agent. You trig
|
|||
|
||||
<Tip>
|
||||
|
||||
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.
|
||||
|
||||
</Tip>
|
||||
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
||||
<Tip>
|
||||
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.
|
||||
</Tip>
|
||||
|
||||
</Step>
|
||||
|
|
|
|||
108
extensions/cli/package-lock.json
generated
108
extensions/cli/package-lock.json
generated
|
|
@ -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"
|
||||
}
|
||||
|
|
|
|||
|
|
@ -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",
|
||||
|
|
|
|||
377
extensions/cli/src/CLIPlatformClient.test.ts
Normal file
377
extensions/cli/src/CLIPlatformClient.test.ts
Normal file
|
|
@ -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<typeof vi.fn>;
|
||||
};
|
||||
|
||||
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);
|
||||
});
|
||||
});
|
||||
});
|
||||
|
|
@ -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)
|
||||
}`,
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -25,6 +25,8 @@ export interface BaseCommandOptions {
|
|||
agent?: string;
|
||||
/** Enable beta UploadArtifact tool */
|
||||
betaUploadArtifactTool?: boolean;
|
||||
/** Enable beta Subagent tool */
|
||||
betaSubagentTool?: boolean;
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
|
|||
|
|
@ -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,
|
||||
|
|
|
|||
|
|
@ -198,6 +198,10 @@ addCommonOptions(program)
|
|||
)
|
||||
.option("--resume", "Resume from last session")
|
||||
.option("--fork <sessionId>", "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" });
|
||||
|
|
|
|||
|
|
@ -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,
|
||||
}));
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -170,17 +170,15 @@ export class UpdateService extends BaseService<UpdateServiceState> {
|
|||
|
||||
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(() => {
|
||||
|
|
|
|||
|
|
@ -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 };
|
||||
|
||||
|
|
|
|||
|
|
@ -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,
|
||||
|
|
|
|||
|
|
@ -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 };
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -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) {
|
||||
|
|
|
|||
|
|
@ -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;
|
||||
|
|
|
|||
213
extensions/cli/src/subagent/executor.ts
Normal file
213
extensions/cli/src/subagent/executor.ts
Normal file
|
|
@ -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<string> {
|
||||
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<SubAgentResult> {
|
||||
const { agent: subAgent, prompt, abortController, onOutputUpdate } = options;
|
||||
|
||||
const mainAgentPermissionsState =
|
||||
await serviceContainer.get<ToolPermissionServiceState>(
|
||||
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<ToolPermissionServiceState>(
|
||||
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<ToolPermissionServiceState>(
|
||||
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,
|
||||
};
|
||||
}
|
||||
}
|
||||
40
extensions/cli/src/subagent/get-agents.ts
Normal file
40
extensions/cli/src/subagent/get-agents.ts
Normal file
|
|
@ -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,
|
||||
);
|
||||
}
|
||||
28
extensions/cli/src/subagent/index.ts
Normal file
28
extensions/cli/src/subagent/index.ts
Normal file
|
|
@ -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 () => "",
|
||||
};
|
||||
|
|
@ -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,
|
||||
|
|
|
|||
|
|
@ -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 () => {
|
||||
|
|
|
|||
|
|
@ -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;
|
||||
|
|
|
|||
|
|
@ -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 () => {
|
||||
|
|
|
|||
|
|
@ -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<MCPServiceState>(
|
||||
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;
|
||||
|
||||
|
|
|
|||
|
|
@ -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<string>();
|
||||
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;
|
||||
|
|
|
|||
|
|
@ -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) => {
|
||||
|
|
|
|||
|
|
@ -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}"${
|
||||
|
|
|
|||
121
extensions/cli/src/tools/subagent.test.ts
Normal file
121
extensions/cli/src/tools/subagent.test.ts
Normal file
|
|
@ -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<task_metadata>\nstatus: completed\n</task_metadata>",
|
||||
);
|
||||
});
|
||||
});
|
||||
115
extensions/cli/src/tools/subagent.ts
Normal file
115
extensions/cli/src/tools/subagent.ts
Normal file
|
|
@ -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<Tool> => {
|
||||
const modelServiceState = await serviceContainer.get<ModelServiceState>(
|
||||
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,
|
||||
"<task_metadata>",
|
||||
`status: ${result.success ? "completed" : "failed"}`,
|
||||
"</task_metadata>",
|
||||
]
|
||||
.filter(Boolean)
|
||||
.join("\n");
|
||||
|
||||
return output;
|
||||
},
|
||||
};
|
||||
};
|
||||
Some files were not shown because too many files have changed in this diff Show more
Loading…
Add table
Reference in a new issue