Merge branch 'main' into docs-hub-links

This commit is contained in:
uinstinct 2025-11-24 19:26:22 +05:30
commit 082af4ccc5
108 changed files with 2842 additions and 1527 deletions

View file

@ -89,7 +89,7 @@ jobs:
- name: Checkout repository
if: steps.workflow-details.outputs.has_failed_tests == 'true'
uses: actions/checkout@v5
uses: actions/checkout@v6
with:
token: ${{ secrets.GITHUB_TOKEN }}
fetch-depth: 0

View file

@ -16,7 +16,7 @@ jobs:
contents: write # Needed for creating releases
steps:
- uses: actions/checkout@v5
- uses: actions/checkout@v6
- name: Get version from package.json
id: get_version
@ -45,7 +45,7 @@ jobs:
contents: write # Needed for creating releases
steps:
- uses: actions/checkout@v5
- uses: actions/checkout@v6
with:
fetch-depth: 0

View file

@ -16,9 +16,11 @@ jobs:
beta-release:
name: Beta Release
runs-on: ubuntu-latest
# Only run this workflow on the main repository (continuedev/continue)
if: github.repository == 'continuedev/continue'
steps:
- name: Checkout
uses: actions/checkout@v5
uses: actions/checkout@v6
with:
fetch-depth: 0
token: ${{ secrets.SEMANTIC_RELEASE_TOKEN }}

View file

@ -14,7 +14,7 @@ jobs:
runs-on: ubuntu-latest
if: github.run_attempt > 1
steps:
- uses: actions/checkout@v5
- uses: actions/checkout@v6
- name: Track workflow rerun
uses: ./.github/actions/track-rerun
@ -22,7 +22,7 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v5
uses: actions/checkout@v6
- name: Setup Node.js
uses: actions/setup-node@v6
@ -64,7 +64,7 @@ jobs:
steps:
- name: Checkout code
uses: actions/checkout@v5
uses: actions/checkout@v6
- name: Setup Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v6

View file

@ -101,7 +101,7 @@ jobs:
contents: read
steps:
- name: Checkout code
uses: actions/checkout@v5
uses: actions/checkout@v6
- name: Setup Node.js
uses: actions/setup-node@v6
@ -134,7 +134,7 @@ jobs:
if: ${{ !github.event.pull_request.draft }}
steps:
- name: Checkout code
uses: actions/checkout@v5
uses: actions/checkout@v6
- name: Check required files
run: |

View file

@ -56,7 +56,7 @@ jobs:
# steps:
# # 0. Setup git
# - name: Checkout
# uses: actions/checkout@v5
# uses: actions/checkout@v6
# - name: Set up Git
# run: |
@ -102,7 +102,7 @@ jobs:
steps:
# Check out current repository
- name: Fetch Sources
uses: actions/checkout@v5
uses: actions/checkout@v6
with:
ref: ${{ github.event.release.tag_name }}
@ -366,7 +366,7 @@ jobs:
steps:
# 1. Check-out repository
- name: Check-out repository
uses: actions/checkout@v5
uses: actions/checkout@v6
# 2. Install npm dependencies
- name: Use Node.js from .nvmrc
@ -433,7 +433,7 @@ jobs:
steps:
# Check out current repository
- name: Fetch Sources
uses: actions/checkout@v5
uses: actions/checkout@v6
# Set up Java environment for the next steps
- name: Setup Java
@ -480,7 +480,7 @@ jobs:
# Check out current repository
- name: Fetch Sources
uses: actions/checkout@v5
uses: actions/checkout@v6
# Set up Java environment for the next steps
- name: Setup Java
@ -491,7 +491,7 @@ jobs:
# Run Qodana inspections
- name: Qodana - Code Inspection
uses: JetBrains/qodana-action@v2025.2.1
uses: JetBrains/qodana-action@v2025.2.2
with:
cache-default-branch-only: true
@ -511,7 +511,7 @@ jobs:
# Check out current repository
- name: Fetch Sources
uses: actions/checkout@v5
uses: actions/checkout@v6
# Set up Java environment for the next steps
- name: Setup Java

View file

@ -13,7 +13,7 @@ jobs:
steps:
- name: Checkout repository
uses: actions/checkout@v5
uses: actions/checkout@v6
- name: Check if author is in tier list
id: check-author

View file

@ -18,7 +18,7 @@ jobs:
matrix:
platform: [Linux, macOS]
steps:
- uses: actions/checkout@v5
- uses: actions/checkout@v6
with:
fetch-depth: 2 # Get the last 2 commits to find the merge commit

View file

@ -30,7 +30,7 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v5
uses: actions/checkout@v6
with:
fetch-depth: 0 # This ensures all tags are fetched
@ -82,7 +82,7 @@ jobs:
arch: arm64
npm_config_arch: arm64
steps:
- uses: actions/checkout@v5
- uses: actions/checkout@v6
with:
fetch-depth: 0
@ -112,7 +112,7 @@ jobs:
- build
steps:
- name: Checkout
uses: actions/checkout@v5
uses: actions/checkout@v6
- name: Set up Git
run: |
@ -145,7 +145,7 @@ jobs:
steps:
# 0. Setup git
- name: Checkout
uses: actions/checkout@v5
uses: actions/checkout@v6
- name: Set up Git
run: |

View file

@ -16,6 +16,8 @@ jobs:
build:
name: issue metrics
runs-on: ubuntu-latest
# Only run this workflow on the main repository (continuedev/continue)
if: github.repository == 'continuedev/continue'
permissions:
issues: write
pull-requests: read

View file

@ -24,7 +24,7 @@ jobs:
runner: macos-latest
steps:
- uses: actions/checkout@v5
- uses: actions/checkout@v6
with:
fetch-depth: 0

View file

@ -15,14 +15,14 @@ jobs:
runs-on: ubuntu-latest
if: github.run_attempt > 1
steps:
- uses: actions/checkout@v5
- uses: actions/checkout@v6
- name: Track workflow rerun
uses: ./.github/actions/track-rerun
prettier-check:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v5
- uses: actions/checkout@v6
- uses: actions/setup-node@v6
with:
node-version-file: ".nvmrc"
@ -43,7 +43,7 @@ jobs:
core-checks:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v5
- uses: actions/checkout@v6
with:
fetch-depth: 0 # Needed for git diff to work
- name: Setup packages
@ -91,7 +91,7 @@ jobs:
gui-checks:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v5
- uses: actions/checkout@v6
- name: Setup packages
uses: ./.github/actions/setup-packages
- name: Setup core component
@ -121,7 +121,7 @@ jobs:
binary-checks:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v5
- uses: actions/checkout@v6
- name: Setup packages
uses: ./.github/actions/setup-packages
- name: Setup core component
@ -143,7 +143,7 @@ jobs:
vscode-checks:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v5
- uses: actions/checkout@v6
- name: Setup packages
uses: ./.github/actions/setup-packages
- name: Setup core component
@ -176,7 +176,7 @@ jobs:
outputs:
packages: ${{ steps.get-packages.outputs.packages }}
steps:
- uses: actions/checkout@v5
- uses: actions/checkout@v6
- name: Get package list
id: get-packages
run: |
@ -191,7 +191,7 @@ jobs:
matrix:
package: ${{ fromJson(needs.get-packages-matrix.outputs.packages) }}
steps:
- uses: actions/checkout@v5
- uses: actions/checkout@v6
with:
fetch-depth: 0 # Needed for git diff to work
- name: Setup packages
@ -228,7 +228,7 @@ jobs:
outputs:
test_file_matrix: ${{ steps.vscode-get-test-file-matrix.outputs.test_file_matrix }}
steps:
- uses: actions/checkout@v5
- uses: actions/checkout@v6
- uses: actions/setup-node@v6
with:
node-version-file: ".nvmrc"
@ -288,7 +288,7 @@ jobs:
runs-on: ubuntu-latest
timeout-minutes: 15
steps:
- uses: actions/checkout@v5
- uses: actions/checkout@v6
with:
fetch-depth: 0
@ -320,7 +320,7 @@ jobs:
test_file: ${{ fromJson(needs.vscode-get-test-file-matrix.outputs.test_file_matrix) }}
command: ["e2e:ci:run", "e2e:ci:run-yaml"]
steps:
- uses: actions/checkout@v5
- uses: actions/checkout@v6
- name: Run VS Code E2E test
uses: ./.github/actions/run-vscode-e2e-test
with:
@ -345,7 +345,7 @@ jobs:
docker-images: true
swap-storage: true
- uses: actions/checkout@v5
- uses: actions/checkout@v6
- name: Run JetBrains tests
uses: ./.github/actions/run-jetbrains-tests
with:

View file

@ -66,7 +66,7 @@ jobs:
arch: arm64
npm_config_arch: arm64
steps:
- uses: actions/checkout@v5
- uses: actions/checkout@v6
with:
fetch-depth: 0
@ -96,7 +96,7 @@ jobs:
- build
steps:
- name: Checkout
uses: actions/checkout@v5
uses: actions/checkout@v6
- name: Set up Git
run: |
@ -131,7 +131,7 @@ jobs:
steps:
# 0. Setup git
- name: Checkout
uses: actions/checkout@v5
uses: actions/checkout@v6
- name: Set up Git
run: |

View file

@ -16,6 +16,8 @@ permissions:
jobs:
release:
# Only run this workflow on the main repository (continuedev/continue)
if: github.repository == 'continuedev/continue'
uses: ./.github/workflows/reusable-release.yml
with:
package-name: "config-yaml"

View file

@ -16,6 +16,8 @@ permissions:
jobs:
release:
# Only run this workflow on the main repository (continuedev/continue)
if: github.repository == 'continuedev/continue'
uses: ./.github/workflows/reusable-release.yml
with:
package-name: "fetch"

View file

@ -15,6 +15,8 @@ permissions:
jobs:
release:
# Only run this workflow on the main repository (continuedev/continue)
if: github.repository == 'continuedev/continue'
uses: ./.github/workflows/reusable-release.yml
with:
package-name: "llm-info"

View file

@ -16,6 +16,8 @@ permissions:
jobs:
release:
# Only run this workflow on the main repository (continuedev/continue)
if: github.repository == 'continuedev/continue'
uses: ./.github/workflows/reusable-release.yml
with:
package-name: "openai-adapters"

View file

@ -51,7 +51,7 @@ jobs:
working-directory: ${{ inputs.package-path }}
steps:
- name: Checkout
uses: actions/checkout@v5
uses: actions/checkout@v6
with:
fetch-depth: 0

View file

@ -4,14 +4,15 @@ on:
workflow_call:
inputs:
prompt:
description: "The prompt to send to the Continue agent"
required: true
type: string
config:
description: "The config to use (e.g., continuedev/default-background-agent)"
description: "Additional prompting to send to the Continue agent"
required: false
type: string
default: "continuedev/default-background-agent"
default: ""
agent:
description: "The agent to use (e.g., continuedev/github-pr-agent)"
required: true
type: string
default: "continuedev/github-pr-agent"
branch_name:
description: "The base branch name to work from"
required: false
@ -33,7 +34,7 @@ jobs:
-H "Authorization: Bearer ${{ secrets.CONTINUE_API_KEY }}" \
-d '{
"prompt": "${{ inputs.prompt }}",
"config": "${{ inputs.config }}",
"agent": "${{ inputs.agent }}",
"branchName": "${{ inputs.branch_name }}",
"repoUrl": "https://github.com/${{ github.repository }}"
}')

View file

@ -16,7 +16,7 @@ jobs:
steps:
- name: Checkout deja-view
uses: actions/checkout@v5
uses: actions/checkout@v6
with:
repository: "bdougie/deja-view"
# Option 1: Pin to specific commit (most secure)

View file

@ -9,9 +9,11 @@ on:
jobs:
run-cn-task:
runs-on: ubuntu-latest
# Only run this workflow on the main repository (continuedev/continue)
if: github.repository == 'continuedev/continue'
steps:
- name: Checkout repository
uses: actions/checkout@v5
uses: actions/checkout@v6
with:
token: ${{ secrets.GITHUB_TOKEN }}
fetch-depth: 0

View file

@ -32,9 +32,11 @@ jobs:
stable-release:
name: Stable Release
runs-on: ubuntu-latest
# Only run this workflow on the main repository (continuedev/continue)
if: github.repository == 'continuedev/continue'
steps:
- name: Checkout
uses: actions/checkout@v5
uses: actions/checkout@v6
with:
fetch-depth: 0
token: ${{ secrets.SEMANTIC_RELEASE_TOKEN }}

View file

@ -10,9 +10,11 @@ permissions:
jobs:
dependency-submission:
runs-on: ubuntu-latest
# Only run this workflow on the main repository (continuedev/continue)
if: github.repository == 'continuedev/continue'
steps:
- name: Checkout sources
uses: actions/checkout@v5
uses: actions/checkout@v6
- name: Setup Java
uses: actions/setup-java@v5
with:

View file

@ -10,8 +10,7 @@ jobs:
run-cn-task:
uses: ./.github/workflows/run-continue-agent.yml
with:
prompt: "Review every Markdown documentation file and verify that descriptions, examples, or behavior outlines accurately reflect the current code. Only update documentation; do not modify code. Check the corresponding code to confirm behavior before making changes. Correct any inaccuracies or outdated information in descriptions, examples, or behavior outlines. Preserve existing Markdown formatting, style, and structure. Do not add new sections, speculative explanations, or details not present in the code. Only update statements that are clearly incorrect or misleading; do not rewrite text for style or preference. Keep edits minimal and focused, ensuring that the Markdown matches what the code actually does. If verification against the code is ambiguous, leave the documentation unchanged. Use branch name bot/cleanup-<YYMMDD>-<HHMM>"
config: continuedev/default-background-agent
agent: continuedev/tidy-up-markdown-agent
branch_name: main
secrets:
CONTINUE_API_KEY: ${{ secrets.CONTINUE_API_KEY }}

View file

@ -22,7 +22,7 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v5
uses: actions/checkout@v6
with:
ref: ${{ inputs.main_commit_sha || 'main' }}
fetch-depth: 0

View file

@ -12,7 +12,7 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v5
uses: actions/checkout@v6
with:
fetch-depth: 0 # Fetch all history and tags

102
binary/package-lock.json generated
View file

@ -79,7 +79,7 @@
"fastest-levenshtein": "^1.0.16",
"filtrex": "^3.1.0",
"follow-redirects": "^1.15.5",
"google-auth-library": "^9.14.2",
"google-auth-library": "^10.4.1",
"handlebars": "^4.7.8",
"http-proxy-agent": "^7.0.1",
"https-proxy-agent": "^7.0.3",
@ -103,7 +103,7 @@
"pg": "^8.11.3",
"plist": "^3.1.0",
"posthog-node": "^3.6.3",
"puppeteer": "^22.4.0",
"puppeteer": "^24.15.0",
"puppeteer-chromium-resolver": "^23.0.0",
"quick-lru": "^7.0.0",
"replicate": "^0.26.0",
@ -124,7 +124,7 @@
"winston": "^3.17.0",
"workerpool": "^9.1.3",
"yaml": "^2.4.2",
"zod": "^3.24.2"
"zod": "^3.25.76"
},
"devDependencies": {
"@babel/preset-env": "^7.24.7",
@ -15515,7 +15515,9 @@
}
},
"../core/node_modules/tar/node_modules/glob": {
"version": "10.4.5",
"version": "10.5.0",
"resolved": "https://registry.npmjs.org/glob/-/glob-10.5.0.tgz",
"integrity": "sha512-DfXN8DfhJ7NH3Oe7cFmu3NCu1wKbkReJ8TorzSAFbSKrlNaQSKfIzqYqVY8zlbs2NLBbWpRiU52GX2PbaBVNkg==",
"license": "ISC",
"dependencies": {
"foreground-child": "^3.1.0",
@ -17251,8 +17253,8 @@
"license": "Apache-2.0",
"dependencies": {
"@continuedev/config-types": "^1.0.14",
"yaml": "^2.6.1",
"zod": "^3.24.2"
"yaml": "^2.8.1",
"zod": "^3.25.76"
},
"bin": {
"config-yaml": "dist/cli.js"
@ -42087,15 +42089,15 @@
"@aws-sdk/client-bedrock-runtime": "^3.842.0",
"@aws-sdk/credential-providers": "^3.913.0",
"@continuedev/config-types": "^1.0.14",
"@continuedev/config-yaml": "^1.29.0",
"@continuedev/config-yaml": "^1.33.0",
"@continuedev/fetch": "^1.5.0",
"dotenv": "^16.5.0",
"google-auth-library": "^10.1.0",
"google-auth-library": "^10.4.1",
"json-schema": "^0.4.0",
"node-fetch": "^3.3.2",
"openai": "^5.13.1",
"openai": "^5.23.2",
"uuid": "^11.1.0",
"zod": "^3.24.2"
"zod": "^3.25.76"
},
"devDependencies": {
"@semantic-release/changelog": "^6.0.3",
@ -48407,7 +48409,9 @@
}
},
"../packages/openai-adapters/node_modules/glob": {
"version": "10.4.5",
"version": "10.5.0",
"resolved": "https://registry.npmjs.org/glob/-/glob-10.5.0.tgz",
"integrity": "sha512-DfXN8DfhJ7NH3Oe7cFmu3NCu1wKbkReJ8TorzSAFbSKrlNaQSKfIzqYqVY8zlbs2NLBbWpRiU52GX2PbaBVNkg==",
"dev": true,
"license": "ISC",
"peer": true,
@ -57705,6 +57709,8 @@
},
"node_modules/@isaacs/cliui": {
"version": "8.0.2",
"resolved": "https://registry.npmjs.org/@isaacs/cliui/-/cliui-8.0.2.tgz",
"integrity": "sha512-O8jcjabXaleOG9DQ0+ARXWZBTfnP4WNAqzuiJK7ll44AmxGKv/J2M4TPjxjY3znBCfvBXFzucm1twdyFybFqEA==",
"dev": true,
"license": "ISC",
"dependencies": {
@ -58316,6 +58322,8 @@
},
"node_modules/@pkgjs/parseargs": {
"version": "0.11.0",
"resolved": "https://registry.npmjs.org/@pkgjs/parseargs/-/parseargs-0.11.0.tgz",
"integrity": "sha512-+1VkjdD0QBLPodGrJUeqarH8VAIvQODIbwh9XpP5Syisf7YoQgsJKPNFoqqLQlu+VQ/tVSshMR6loPMn8U+dPg==",
"dev": true,
"license": "MIT",
"optional": true,
@ -58547,7 +58555,9 @@
}
},
"node_modules/ansi-regex": {
"version": "6.0.1",
"version": "6.2.2",
"resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-6.2.2.tgz",
"integrity": "sha512-Bq3SmSpyFHaWjPk8If9yc6svM8c56dB5BAtW4Qbw5jHTwwXXcTLoRMkpDJp6VL0XzlWaCHTXrkFURMYmD0sLqg==",
"dev": true,
"license": "MIT",
"engines": {
@ -59365,6 +59375,8 @@
},
"node_modules/eastasianwidth": {
"version": "0.2.0",
"resolved": "https://registry.npmjs.org/eastasianwidth/-/eastasianwidth-0.2.0.tgz",
"integrity": "sha512-I88TYZWc9XiYHRQ4/3c5rjjfgkjhLyW2luGIheGERbNQ6OY7yTybanSpDXZa8y7VUP9YmDcYa+eyq4ca7iLqWA==",
"dev": true,
"license": "MIT"
},
@ -59386,6 +59398,8 @@
},
"node_modules/emoji-regex": {
"version": "9.2.2",
"resolved": "https://registry.npmjs.org/emoji-regex/-/emoji-regex-9.2.2.tgz",
"integrity": "sha512-L18DaJsXSUk2+42pv8mLs5jJT2hqFkFE4j21wOmgbUqsZ2hL72NsUU785g9RXgo3s0ZNgVl42TiHp3ZtOv/Vyg==",
"dev": true,
"license": "MIT"
},
@ -59848,22 +59862,22 @@
"license": "MIT"
},
"node_modules/glob": {
"version": "10.3.15",
"version": "10.5.0",
"resolved": "https://registry.npmjs.org/glob/-/glob-10.5.0.tgz",
"integrity": "sha512-DfXN8DfhJ7NH3Oe7cFmu3NCu1wKbkReJ8TorzSAFbSKrlNaQSKfIzqYqVY8zlbs2NLBbWpRiU52GX2PbaBVNkg==",
"dev": true,
"license": "ISC",
"dependencies": {
"foreground-child": "^3.1.0",
"jackspeak": "^2.3.6",
"minimatch": "^9.0.1",
"minipass": "^7.0.4",
"path-scurry": "^1.11.0"
"jackspeak": "^3.1.2",
"minimatch": "^9.0.4",
"minipass": "^7.1.2",
"package-json-from-dist": "^1.0.0",
"path-scurry": "^1.11.1"
},
"bin": {
"glob": "dist/esm/bin.mjs"
},
"engines": {
"node": ">=16 || 14 >=14.18"
},
"funding": {
"url": "https://github.com/sponsors/isaacs"
}
@ -60252,15 +60266,14 @@
}
},
"node_modules/jackspeak": {
"version": "2.3.6",
"version": "3.4.3",
"resolved": "https://registry.npmjs.org/jackspeak/-/jackspeak-3.4.3.tgz",
"integrity": "sha512-OGlZQpz2yfahA/Rd1Y8Cd9SIEsqvXkLVoSw/cgwhnhFMDbsQFeZYoJJ7bIZBS9BcamUW96asq/npPWugM+RQBw==",
"dev": true,
"license": "BlueOak-1.0.0",
"dependencies": {
"@isaacs/cliui": "^8.0.2"
},
"engines": {
"node": ">=14"
},
"funding": {
"url": "https://github.com/sponsors/isaacs"
},
@ -61466,6 +61479,13 @@
"node": ">=6"
}
},
"node_modules/package-json-from-dist": {
"version": "1.0.1",
"resolved": "https://registry.npmjs.org/package-json-from-dist/-/package-json-from-dist-1.0.1.tgz",
"integrity": "sha512-UEZIS3/by4OC8vL3P2dTXRETpebLI2NiI5vIrjaD/5UtrkFX/tNbwjTSRAGC/+7CAo2pIcBaRgWmcBBHcsaCIw==",
"dev": true,
"license": "BlueOak-1.0.0"
},
"node_modules/pad-left": {
"version": "2.1.0",
"license": "MIT",
@ -62146,6 +62166,8 @@
},
"node_modules/string-width": {
"version": "5.1.2",
"resolved": "https://registry.npmjs.org/string-width/-/string-width-5.1.2.tgz",
"integrity": "sha512-HnLOCR3vjcY8beoNLtcjZ5/nxn2afmME6lhrDrebokqMap+XbeW8n9TXpPDOqdGK5qcI3oT0GKTW6wC7EMiVqA==",
"dev": true,
"license": "MIT",
"dependencies": {
@ -62163,6 +62185,8 @@
"node_modules/string-width-cjs": {
"name": "string-width",
"version": "4.2.3",
"resolved": "https://registry.npmjs.org/string-width/-/string-width-4.2.3.tgz",
"integrity": "sha512-wKyQRQpjJ0sIp62ErSZdGsjMJWsap5oRNihHhu6G7JVO/9jIB6UyevL+tXuOqrng8j/cxKTWyWUwvSTriiZz/g==",
"dev": true,
"license": "MIT",
"dependencies": {
@ -62176,6 +62200,8 @@
},
"node_modules/string-width-cjs/node_modules/ansi-regex": {
"version": "5.0.1",
"resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-5.0.1.tgz",
"integrity": "sha512-quJQXlTSUGL2LH9SUXo8VwsY4soanhgo6LNSm84E1LBcE8s3O0wpdiRzyR9z/ZZJMlMWv37qOOb9pdJlMUEKFQ==",
"dev": true,
"license": "MIT",
"engines": {
@ -62184,11 +62210,15 @@
},
"node_modules/string-width-cjs/node_modules/emoji-regex": {
"version": "8.0.0",
"resolved": "https://registry.npmjs.org/emoji-regex/-/emoji-regex-8.0.0.tgz",
"integrity": "sha512-MSjYzcWNOA0ewAHpz0MxpYFvwg6yjy1NG3xteoqz644VCo/RPgnr1/GGt+ic3iJTzQ8Eu3TdM14SawnVUmGE6A==",
"dev": true,
"license": "MIT"
},
"node_modules/string-width-cjs/node_modules/strip-ansi": {
"version": "6.0.1",
"resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-6.0.1.tgz",
"integrity": "sha512-Y38VPSHcqkFrCpFnQ9vuSXmquuv5oXOKpGeT6aGrr3o3Gc9AlVa6JBfUSOCnbxGGZF+/0ooI7KrPuUSztUdU5A==",
"dev": true,
"license": "MIT",
"dependencies": {
@ -62199,7 +62229,9 @@
}
},
"node_modules/strip-ansi": {
"version": "7.1.0",
"version": "7.1.2",
"resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-7.1.2.tgz",
"integrity": "sha512-gmBGslpoQJtgnMAvOVqGZpEz9dyoKTCzy2nfz/n8aIFhN/jCE/rCmcxabB6jOOHV+0WNnylOxaxBQPSvcWklhA==",
"dev": true,
"license": "MIT",
"dependencies": {
@ -62215,6 +62247,8 @@
"node_modules/strip-ansi-cjs": {
"name": "strip-ansi",
"version": "6.0.1",
"resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-6.0.1.tgz",
"integrity": "sha512-Y38VPSHcqkFrCpFnQ9vuSXmquuv5oXOKpGeT6aGrr3o3Gc9AlVa6JBfUSOCnbxGGZF+/0ooI7KrPuUSztUdU5A==",
"dev": true,
"license": "MIT",
"dependencies": {
@ -62226,6 +62260,8 @@
},
"node_modules/strip-ansi-cjs/node_modules/ansi-regex": {
"version": "5.0.1",
"resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-5.0.1.tgz",
"integrity": "sha512-quJQXlTSUGL2LH9SUXo8VwsY4soanhgo6LNSm84E1LBcE8s3O0wpdiRzyR9z/ZZJMlMWv37qOOb9pdJlMUEKFQ==",
"dev": true,
"license": "MIT",
"engines": {
@ -62751,6 +62787,8 @@
},
"node_modules/wrap-ansi": {
"version": "8.1.0",
"resolved": "https://registry.npmjs.org/wrap-ansi/-/wrap-ansi-8.1.0.tgz",
"integrity": "sha512-si7QWI6zUMq56bESFvagtmzMdGOtoxfR+Sez11Mobfc7tm+VkUckk9bW2UeffTGVUbOksxmSw0AA2gs8g71NCQ==",
"dev": true,
"license": "MIT",
"dependencies": {
@ -62768,6 +62806,8 @@
"node_modules/wrap-ansi-cjs": {
"name": "wrap-ansi",
"version": "7.0.0",
"resolved": "https://registry.npmjs.org/wrap-ansi/-/wrap-ansi-7.0.0.tgz",
"integrity": "sha512-YVGIj2kamLSTxw6NsZjoBxfSwsn0ycdesmc4p+Q21c5zPuZ1pl+NfxVdxPtdHvmNVOQ6XSYG4AUtyt/Fi7D16Q==",
"dev": true,
"license": "MIT",
"dependencies": {
@ -62784,6 +62824,8 @@
},
"node_modules/wrap-ansi-cjs/node_modules/ansi-regex": {
"version": "5.0.1",
"resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-5.0.1.tgz",
"integrity": "sha512-quJQXlTSUGL2LH9SUXo8VwsY4soanhgo6LNSm84E1LBcE8s3O0wpdiRzyR9z/ZZJMlMWv37qOOb9pdJlMUEKFQ==",
"dev": true,
"license": "MIT",
"engines": {
@ -62792,11 +62834,15 @@
},
"node_modules/wrap-ansi-cjs/node_modules/emoji-regex": {
"version": "8.0.0",
"resolved": "https://registry.npmjs.org/emoji-regex/-/emoji-regex-8.0.0.tgz",
"integrity": "sha512-MSjYzcWNOA0ewAHpz0MxpYFvwg6yjy1NG3xteoqz644VCo/RPgnr1/GGt+ic3iJTzQ8Eu3TdM14SawnVUmGE6A==",
"dev": true,
"license": "MIT"
},
"node_modules/wrap-ansi-cjs/node_modules/string-width": {
"version": "4.2.3",
"resolved": "https://registry.npmjs.org/string-width/-/string-width-4.2.3.tgz",
"integrity": "sha512-wKyQRQpjJ0sIp62ErSZdGsjMJWsap5oRNihHhu6G7JVO/9jIB6UyevL+tXuOqrng8j/cxKTWyWUwvSTriiZz/g==",
"dev": true,
"license": "MIT",
"dependencies": {
@ -62810,6 +62856,8 @@
},
"node_modules/wrap-ansi-cjs/node_modules/strip-ansi": {
"version": "6.0.1",
"resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-6.0.1.tgz",
"integrity": "sha512-Y38VPSHcqkFrCpFnQ9vuSXmquuv5oXOKpGeT6aGrr3o3Gc9AlVa6JBfUSOCnbxGGZF+/0ooI7KrPuUSztUdU5A==",
"dev": true,
"license": "MIT",
"dependencies": {
@ -62820,7 +62868,9 @@
}
},
"node_modules/wrap-ansi/node_modules/ansi-styles": {
"version": "6.2.1",
"version": "6.2.3",
"resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-6.2.3.tgz",
"integrity": "sha512-4Dj6M28JB+oAH8kFkTLUo+a2jwOFkuqb3yucU0CANcRRUbxS0cP0nZYCGjcc3BNXwRIsUVmDGgzawme7zvJHvg==",
"dev": true,
"license": "MIT",
"engines": {

View file

@ -502,11 +502,13 @@ export class ConfigHandler {
this.totalConfigReloads += 1;
// console.log(`Reloading config (#${this.totalConfigLoads}): ${reason}`); // Uncomment to see config loading logs
if (!this.currentProfile) {
return {
const out = {
config: undefined,
errors: injectErrors,
configLoadInterrupted: true,
};
this.notifyConfigListeners(out);
return out;
}
for (const org of this.organizations) {

View file

@ -97,7 +97,12 @@ export class LocalPlatformClient implements PlatformClient {
return [];
}
const results = await this.client.resolveFQSNs(fqsns, this.orgScopeId);
let results: (SecretResult | undefined)[] = [];
try {
results = await this.client.resolveFQSNs(fqsns, this.orgScopeId);
} catch (e) {
console.error("Error getting secrets from control plane", e);
}
// For any secret that isn't found, look in .env files, then process.env
for (let i = 0; i < results.length; i++) {

View file

@ -28,6 +28,7 @@ import {
} from "../../index.js";
import { safeParseToolCallArgs } from "../../tools/parseArgs.js";
import { renderChatMessage, stripImages } from "../../util/messageContent.js";
import { extractBase64FromDataUrl } from "../../util/url.js";
import { DEFAULT_REASONING_TOKENS } from "../constants.js";
import { BaseLLM } from "../index.js";
@ -105,14 +106,22 @@ class Anthropic extends BaseLLM {
});
}
} else {
parts.push({
type: "image",
source: {
type: "base64",
media_type: getAnthropicMediaTypeFromDataUrl(part.imageUrl.url),
data: part.imageUrl.url.split(",")[1],
},
});
const base64Data = extractBase64FromDataUrl(part.imageUrl.url);
if (base64Data) {
parts.push({
type: "image",
source: {
type: "base64",
media_type: getAnthropicMediaTypeFromDataUrl(part.imageUrl.url),
data: base64Data,
},
});
} else {
console.warn(
"Anthropic: skipping image with invalid data URL format",
part.imageUrl.url,
);
}
}
}
}

View file

@ -21,6 +21,7 @@ import type { CompletionOptions } from "../../index.js";
import { ChatMessage, Chunk, LLMOptions, MessageContent } from "../../index.js";
import { safeParseToolCallArgs } from "../../tools/parseArgs.js";
import { renderChatMessage, stripImages } from "../../util/messageContent.js";
import { parseDataUrl } from "../../util/url.js";
import { BaseLLM } from "../index.js";
import { PROVIDER_TOOL_SUPPORT } from "../toolSupport.js";
import { getSecureID } from "../utils/getSecureID.js";
@ -545,8 +546,9 @@ class Bedrock extends BaseLLM {
if (part.type === "text") {
blocks.push({ text: part.text });
} else if (part.type === "imageUrl" && part.imageUrl) {
try {
const [mimeType, base64Data] = part.imageUrl.url.split(",");
const parsed = parseDataUrl(part.imageUrl.url);
if (parsed) {
const { mimeType, base64Data } = parsed;
const format = mimeType.split("/")[1]?.split(";")[0] || "jpeg";
if (
format === ImageFormat.JPEG ||
@ -568,8 +570,8 @@ class Bedrock extends BaseLLM {
part,
);
}
} catch (error) {
console.warn("Bedrock: failed to process image part", error, part);
} else {
console.warn("Bedrock: failed to process image part", part);
}
}
}

View file

@ -11,6 +11,7 @@ import {
} from "../../index.js";
import { safeParseToolCallArgs } from "../../tools/parseArgs.js";
import { renderChatMessage, stripImages } from "../../util/messageContent.js";
import { extractBase64FromDataUrl } from "../../util/url.js";
import { BaseLLM } from "../index.js";
import {
GeminiChatContent,
@ -184,16 +185,31 @@ class Gemini extends BaseLLM {
}
continuePartToGeminiPart(part: MessagePart): GeminiChatContentPart {
return part.type === "text"
? {
text: part.text,
}
: {
inlineData: {
mimeType: "image/jpeg",
data: part.imageUrl?.url.split(",")[1],
},
};
if (part.type === "text") {
return {
text: part.text,
};
}
let data = "";
if (part.imageUrl?.url) {
const extracted = extractBase64FromDataUrl(part.imageUrl.url);
if (extracted) {
data = extracted;
} else {
console.warn(
"Gemini: skipping image with invalid data URL format",
part.imageUrl.url,
);
}
}
return {
inlineData: {
mimeType: "image/jpeg",
data,
},
};
}
public prepareBody(

View file

@ -13,6 +13,7 @@ import {
} from "../../index.js";
import { renderChatMessage } from "../../util/messageContent.js";
import { getRemoteModelInfo } from "../../util/ollamaHelper.js";
import { extractBase64FromDataUrl } from "../../util/url.js";
import { BaseLLM } from "../index.js";
type OllamaChatMessage = {
@ -114,6 +115,18 @@ type OllamaErrorResponse = {
error: string;
};
type N8nChatReponse = {
type: string;
content?: string;
metadata: {
nodeId: string;
nodeName: string;
itemIndex: number;
runIndex: number;
timestamps: number;
};
};
type OllamaRawResponse =
| OllamaErrorResponse
| (OllamaBaseResponse & {
@ -124,7 +137,8 @@ type OllamaChatResponse =
| OllamaErrorResponse
| (OllamaBaseResponse & {
message: OllamaChatMessage;
});
})
| N8nChatReponse;
interface OllamaTool {
type: "function";
@ -303,9 +317,16 @@ class Ollama extends BaseLLM implements ModelInstaller {
const images: string[] = [];
message.content.forEach((part) => {
if (part.type === "imageUrl" && part.imageUrl) {
const image = part.imageUrl?.url.split(",").at(-1);
const image = part.imageUrl?.url
? extractBase64FromDataUrl(part.imageUrl.url)
: undefined;
if (image) {
images.push(image);
} else if (part.imageUrl?.url) {
console.warn(
"Ollama: skipping image with invalid data URL format",
part.imageUrl.url,
);
}
}
});
@ -427,12 +448,47 @@ class Ollama extends BaseLLM implements ModelInstaller {
body: JSON.stringify(chatOptions),
signal,
});
let isThinking: boolean = false;
function convertChatMessage(res: OllamaChatResponse): ChatMessage[] {
if ("error" in res) {
throw new Error(res.error);
}
if ("type" in res) {
const { content } = res;
if (content === "<think>") {
isThinking = true;
}
if (isThinking && content) {
// TODO better support for streaming thinking chunks, or remove this and depend on redux <think/> parsing logic
const thinkingMessage: ThinkingChatMessage = {
role: "thinking",
content: content,
};
if (thinkingMessage) {
// could cause issues with termination if chunk doesn't match this exactly
if (content === "</think>") {
isThinking = false;
}
// When Streaming you can't have both thinking and content
return [thinkingMessage];
}
}
if (content) {
const chatMessage: ChatMessage = {
role: "assistant",
content: content,
};
return [chatMessage];
}
return [];
}
const { role, content, thinking, tool_calls: toolCalls } = res.message;
if (role === "tool") {

View file

@ -1,3 +1,8 @@
import {
extractBase64FromDataUrl as extractBase64FromDataUrlFromAdapter,
parseDataUrl as parseDataUrlFromAdapter,
} from "@continuedev/openai-adapters";
export function canParseUrl(url: string): boolean {
if ((URL as any)?.canParse) {
return (URL as any).canParse(url);
@ -9,3 +14,6 @@ export function canParseUrl(url: string): boolean {
return false;
}
}
export const parseDataUrl = parseDataUrlFromAdapter;
export const extractBase64FromDataUrl = extractBase64FromDataUrlFromAdapter;

View file

@ -1,35 +0,0 @@
---
title: "Customization Overview"
description: "Learn how to customize Continue with model providers, slash commands, and tools"
---
Continue can be deeply customized to fit your specific development workflow and preferences. This guide covers the main ways you can customize Continue to enhance your coding experience.
## Change Your Model Provider
Continue allows you to choose your favorite or even add multiple model providers. This allows you to use different models for different tasks, or to try another model if you're not happy with the results from your current model. Continue supports all of the popular model providers, including OpenAI, Anthropic, Microsoft/Azure, Mistral, and more. You can even self host your own model provider if you'd like. Learn more about [model providers](/customize/model-providers/top-level/openai).
## Select Different Models for Specific Tasks
Different Continue features can use different models. We call these _model roles_. For example, you can use a different model for Chat mode than you do for Autocomplete. Learn more about [model roles](/customize/model-roles).
## Create a Slash Command
Slash commands allow you to easily add custom prompts to Continue. Learn more about [slash commands](/customize/deep-dives/prompts).
## Call External Tools and Functions
Unchain your LLM with the power of tools using [Agent mode](/ide-extensions/agent/quick-start). Add custom tools using [MCP Servers](/customization/mcp-tools)
Whatever you choose, you'll probably start by editing your configuration.
## Edit Your Configuration
You can easily access your configuration from the Continue Chat sidebar. Open the sidebar by pressing `cmd/ctrl` + `L` (VS Code) or `cmd/ctrl` + `J` (JetBrains) and click the Agent selector above the main chat input. Then, you can hover over an agent and click the `new window` (hub agents) or `gear` (local agents) icon.
![configure](/images/customization/images/configure-continue-a5c8c79f3304c08353f3fc727aa5da7e.png)
## Manage Your Configuration
- See [Editing Hub Configurations](/hub/configs/edit-a-config) for more details on managing your hub configuration
- See the [Config Deep Dive](/reference) for more details on local configurations

View file

@ -7,10 +7,6 @@ As an example, say you are working on solving a new GitHub Issue. You type '@Iss
![Context Items](/images/customize/images/context-provider-example-0c96ff77286fa970b23dddfdc1fa986a.png)
## How Do Context Blocks Work?
Explore available context blocks in [the hub](https://hub.continue.dev/explore/context).
## Built-in Context Providers
You can add any built-in context-providers in your config file as shown below:

View file

@ -184,7 +184,7 @@ You'll then be able to type "@" and see "MCP" in the context providers dropdown.
<Note>
To provide conext beyond the built-in context providers, we now recommend
using [MCP Servers](/customization/mcp-tools)
using [MCP Servers](/customize/mcp-tools)
</Note>
View the [deprecated context providers](/reference/deprecated-context-providers) for documentation on:

View file

@ -13,7 +13,7 @@ These servers make it possible to:
- **Allow partners** to contribute specialized functionality
- **Connect to databases** to understand schema and data models during development
![MCP servers overview](/images/customization/images/mcp-blocks-overview-c9a104f9b586779c156f9cf34da197c2.png)
![MCP servers overview](/images/customize/images/mcp-blocks-overview-c9a104f9b586779c156f9cf34da197c2.png)
## Learn More About MCP servers

View file

@ -82,5 +82,8 @@ models:
- edit
- apply
```
For more detailed configuration, visit the specific provider pages linked above.
## Change Your Model Provider
Continue allows you to choose your favorite or even add multiple model providers. This allows you to use different models for different tasks, or to try another model if you’re not happy with the results from your current model. Continue supports all of the popular model providers, including OpenAI, Anthropic, Microsoft/Azure, Mistral, and more. You can even self host your own model provider if you’d like. [Learn more about model providers](./top-level/openai).

View file

@ -18,7 +18,7 @@ Models in Continue can be configured to be used for various roles in the extensi
These roles can be specified for a `config.yaml` model block using `roles`. See the [YAML Specification](/reference#models) for more details.
<Info>
For recommendations on which models work best for each role, see our [comprehensive model recommendations](/customization/models#recommended-models).
For recommendations on which models work best for each role, see our [comprehensive model recommendations](/customize/models#recommended-models).
</Info>
## Selecting model roles

View file

@ -10,7 +10,7 @@ When editing code, Chat and Edit model output often doesn't clearly align with e
## Recommended Apply models
<Info>
For the latest Apply model recommendations, see our [comprehensive model recommendations](/customization/models#recommended-models).
For the latest Apply model recommendations, see our [comprehensive model recommendations](/customize/models#recommended-models).
</Info>
We recommend [Morph Fast Apply](https://morphllm.com) or [Relace's Instant Apply model](https://hub.continue.dev/relace/instant-apply) for the fastest Apply experience. You can sign up for Morph's free tier [here](https://morphllm.com/dashboard) or get a Relace API key [here](https://app.relace.ai/settings/api-keys).

View file

@ -20,7 +20,7 @@ You can add `embed` to a model's `roles` to specify that it can be used to embed
## Recommended embedding models
<Info>
See our [comprehensive model recommendations](/customization/models#recommended-models) for the best embedding models comparison.
See our [comprehensive model recommendations](/customize/models#recommended-models) for the best embedding models comparison.
</Info>
If you have the ability to use any model, we recommend `voyage-code-3`, which is listed below along with the rest of the options for embeddings models.

View file

@ -12,7 +12,7 @@ In Continue, rerankers are designated using the `rerank` role and used by [codeb
## Recommended reranking models
<Info>
For a comparison of all reranking models including open and closed options, see our [comprehensive model recommendations](/customization/models#recommended-models).
For a comparison of all reranking models including open and closed options, see our [comprehensive model recommendations](/customize/models#recommended-models).
</Info>
If you have the ability to use any model, we recommend `rerank-2` by Voyage AI, which is listed below along with the rest of the options for rerankers.

View file

@ -12,7 +12,7 @@ import { ModelRecommendations } from "/snippets/ModelRecommendations.jsx";
- **[Embedding](/customize/model-roles/embeddings)**: Transform code into vector representations for semantic search
- **[Reranker](/customize/model-roles/reranking)**: Improve search relevance by ordering results based on semantic meaning
![Models Overview](/images/customization/images/model-blocks-overview-36c30e7e01928d7a9b5b26ff1639c34b.png)
![Models Overview](/images/customize/images/model-blocks-overview-36c30e7e01928d7a9b5b26ff1639c34b.png)
## Recommended Models

View file

@ -1,13 +1,45 @@
---
title: "Overview"
description: "Explore Continue's advanced capabilities for power users and complex development scenarios."
title: "Customization Overview"
description: "Learn how to customize Continue with model providers, rules, prompts, and tools"
---
## Context Integration
Continue can be deeply customized to fit your specific development workflow and preferences. This guide covers the main ways you can customize Continue to enhance your coding experience.
Specialized context features for codebase understanding and documentation integration.
## Change Your Model Provider
[Browse Context Features →](/guides/understanding-configs)
Continue allows you to choose your favorite or even add multiple model providers. This allows you to use different models for different tasks, or to try another model if you're not happy with the results from your current model. Continue supports all of the popular model providers, including OpenAI, Anthropic, Microsoft/Azure, Mistral, and more. You can even self host your own model provider if you'd like.
[Learn more about model providers →](/customize/model-providers/overview)
## Select Different Models for Specific Tasks
Different Continue features can use different models. We call these _model roles_. For example, you can use a different model for Chat mode than you do for Autocomplete.
[Learn more about model roles →](/customize/model-roles)
## Create Custom Prompts
Create custom slash commands and prompt templates to streamline your workflow.
[Learn more about prompts →](/customize/prompts)
## Configure Rules
Set up rules to guide AI responses and ensure consistent behavior across your codebase.
[Learn more about rules →](/customize/rules)
## Call External Tools and Functions
Give your agent the power of tools using [Agent mode in the extensions](/ide-extensions/agent/quick-start) or add custom tools to your agent using [MCP Servers](/customize/mcp-tools).
[Learn more about MCP tools →](/customize/mcp-tools)
## Customize VS Code Settings
Adjust IDE-specific settings to optimize your Continue experience.
[Learn more about settings →](/ide-extensions/settings)
## Deep Dives
@ -15,36 +47,24 @@ Detailed technical explanations of Continue's internal workings and advanced con
[Read Deep Dives →](/customize/deep-dives/configuration)
## Model Providers
Configure and optimize different AI model providers for your specific needs and infrastructure.
[Configure Providers →](/customize/model-providers/overview)
## Model Roles
Understand how different models can be assigned specific roles in your development workflow.
[Learn Model Roles →](/customize/model-roles)
## Deep Dives
Detailed technical explanations of Continue's internal workings and advanced configuration options.
[Read Deep Dives →](/customization/overview#configuration)
## Reference
Complete configuration reference and API documentation.
[View Reference →](/reference)
## Troubleshooting
Solutions to common issues and debugging techniques.
[Get Help →](/troubleshooting)
---
These advanced topics help you get the most out of Continue in complex development environments.
Whatever you choose, you'll probably start by editing your configuration.
## Edit Your Configuration
You can easily access your configuration from the Continue Chat sidebar. Open the sidebar by pressing `cmd/ctrl` + `L` (VS Code) or `cmd/ctrl` + `J` (JetBrains) and click the Agent selector above the main chat input. Then, you can hover over an agent and click the `new window` (hub agents) or `gear` (local agents) icon.
![configure](/images/customize/images/configure-continue-a5c8c79f3304c08353f3fc727aa5da7e.png)
## Manage Your Configuration
- See [Editing Hub Configurations](/hub/configs/edit-a-config) for more details on managing your hub configuration
- See the [Config Deep Dive](/reference) for more details on local configurations

View file

@ -1,15 +1,14 @@
---
title: "Prompts"
description: "These are the specialized instructions that shape how models respond:"
description: "These are the specialized instructions that shape how models and agents respond:"
---
- **Define interaction patterns** for specific tasks or frameworks
- **Encode domain expertise** for particular technologies
- **Ensure consistent guidance** aligned with organizational practices
- **Can be shared and reused** across multiple configs
- **Can be shared and reused** across multiple agents
- **Act as automated code reviewers** that ensure consistency across teams
![Prompts Overview](/images/customization/images/prompts-blocks-overview-17194d870840576f9a0dde548f2c70ec.png)
## Learn More

View file

@ -29,18 +29,6 @@
"mission-control",
"mission-control/tasks",
"mission-control/workflows",
"mission-control/metrics",
"mission-control/sharing",
{
"group": "Governance",
"icon": "building",
"pages": [
"mission-control/governance/creating-an-org",
"mission-control/governance/org-permissions",
"mission-control/governance/pricing"
]
},
{
"group": "Integrations",
"icon": "plug",
@ -52,6 +40,17 @@
"mission-control/integrations/slack-agent"
]
},
"mission-control/metrics",
"mission-control/sharing",
{
"group": "Governance",
"icon": "building",
"pages": [
"mission-control/governance/creating-an-org",
"mission-control/governance/org-permissions",
"mission-control/governance/pricing"
]
},
{
"group": "Secrets",
"icon": "key",
@ -98,6 +97,7 @@
"pages": [
"ide-extensions/install",
"ide-extensions/quick-start",
"ide-extensions/settings",
{
"group": "Agent",
"expanded": false,
@ -152,19 +152,7 @@
}
]
},
{
"group": "Customization",
"icon": "sliders",
"expanded": false,
"pages": [
"customization/overview",
"customization/models",
"customization/mcp-tools",
"customization/rules",
"customization/prompts",
"customization/settings"
]
},
{
"group": "Help",
"icon": "book-open",
@ -180,6 +168,10 @@
"group": "Customize",
"pages": [
"customize/overview",
"customize/models",
"customize/mcp-tools",
"customize/rules",
"customize/prompts",
{
"group": "Model Providers",
"icon": "server",
@ -259,21 +251,38 @@
"group": "Guides",
"pages": [
"guides/overview",
"guides/understanding-configs",
"guides/configuring-models-rules-tools",
"guides/codebase-documentation-awareness",
"guides/cli",
"guides/doc-writing-agent-cli",
"guides/continuous-ai",
"guides/continuous-ai-readiness-assessment",
"guides/plan-mode-guide",
"guides/ollama-guide",
"guides/instinct",
"guides/running-continue-without-internet",
"guides/custom-code-rag",
"guides/how-to-self-host-a-model",
"guides/notion-continue-guide",
"guides/github-pr-review-bot"
{
"group": "Understanding Continue",
"pages": [
"guides/understanding-configs",
"guides/configuring-models-rules-tools",
"guides/codebase-documentation-awareness",
"guides/plan-mode-guide",
"guides/ollama-guide",
"guides/instinct",
"guides/running-continue-without-internet",
"guides/custom-code-rag",
"guides/how-to-self-host-a-model"
]
},
{
"group": "CLI Guides",
"pages": ["guides/cli", "guides/doc-writing-agent-cli"]
},
{
"group": "Continuous AI Guides",
"pages": [
"guides/continuous-ai",
"guides/continuous-ai-readiness-assessment"
]
},
{
"group": "Integration Guides",
"pages": [
"guides/notion-continue-guide",
"guides/github-pr-review-bot"
]
}
]
},
{
@ -290,7 +299,8 @@
"guides/supabase-mcp-database-workflow",
"guides/dlt-mcp-continue-cookbook",
"guides/netlify-mcp-continuous-deployment",
"guides/chrome-devtools-mcp-performance"
"guides/chrome-devtools-mcp-performance",
"guides/klavis-mcp-continue-cookbook"
]
}
]
@ -473,23 +483,43 @@
},
{
"source": "/hub/blocks/create-a-block",
"destination": "/mission-control"
},
{
"source": "/hub/blocks/bundles",
"destination": "/mission-control"
},
{
"source": "/customize",
"destination": "/customization/overview"
"destination": "/hub/introduction"
},
{
"source": "/customization",
"destination": "/customization/overview"
"destination": "/customize/overview"
},
{
"source": "/customization/overview",
"destination": "/customize/overview"
},
{
"source": "/customization/overview#change-your-model-provider",
"destination": "/customize/model-providers/overview#change-your-model-provider"
},
{
"source": "/customization/models",
"destination": "/customize/models"
},
{
"source": "/customization/mcp-tools",
"destination": "/customize/mcp-tools"
},
{
"source": "/customization/rules",
"destination": "/customize/rules"
},
{
"source": "/customization/prompts",
"destination": "/customize/prompts"
},
{
"source": "/customization/settings",
"destination": "/ide-extensions/settings"
},
{
"source": "/customize/tools",
"destination": "/customization/mcp-tools"
"destination": "/customize/mcp-tools"
},
{
"source": "/install/vscode",
@ -1160,6 +1190,11 @@
"source": "/customize/deep-dives/settings",
"destination": "/customize/overview"
},
{
"source": "/hub/blocks/bundles",
"destination": "/hub/introduction"
},
{
"source": "/customize/custom-providers#@greptile-context-provider",
"destination": "/reference/deprecated-context-providers"

View file

@ -54,7 +54,7 @@ echo "$(git diff) Generate a conventional commit name for the current git change
`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.
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-agent` or `cn --config ~/.continue/config.yaml`).
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`).
### How to Add Custom Models

View file

@ -56,7 +56,7 @@ Continue hub uses a slug in the format of `owner/item-name` to resolve blocks.
For example, to use the [Claude 4 Sonnet model](https://hub.continue.dev/anthropic/claude-4-sonnet), you'd reference it as `anthropic/claude-4-sonnet`.
Import from the hub using the `uses` syntax alongside your custom configurations:
Import from Mission Control using the `uses` syntax alongside your custom configurations:
```yaml config.yaml highlight={6}
name: Team Config
@ -91,7 +91,7 @@ Organize your local configurations using these directories:
Models, and many MCP servers, require a secret for things like API keys.
On the hub, you can configure secrets when adding a model or MCP server.
On Mission Control, you can configure secrets when adding a model or MCP server.
This will use mustache notation to pass the secret, eg `${{ secrets.SECRET_NAME }}`

View file

@ -0,0 +1,594 @@
---
title: "Slack and Gmail Automation with Klavis AI Strata MCP and Continue"
description: "Use Continue and Klavis AI's Strata MCP to automate communication workflows across Slack and Gmail with natural language prompts."
sidebarTitle: "Klavis AI with Continue"
---
<Card title="What You'll Build" icon="wand-magic-sparkles">
A communication workflow assistant that uses Continue CLI with Klavis AI's Strata MCP to manage and automate multi-platform workflows including Slack and Gmail—all through simple natural language prompts.
</Card>
## Prerequisites
Before starting, ensure you have:
- [Continue CLI](https://docs.continue.dev/guides/cli) with **active credits** (required for API usage)
- A Klavis [AI account](https://www.klavis.ai/) with access to your Strata URL
- OAuth authentication completed in Klavis dashboard for Slack and Gmail (see [Klavis integrations guide](https://www.klavis.ai/integrations))
<Warning>
To use agents in headless mode, you need a [Continue API key](https://hub.continue.dev/settings/api-keys).
Klavis AI Strata requires proper OAuth authentication for each service integration.
</Warning>
For all options, first:
<Steps>
<Step title="Install Continue CLI">
```bash
npm i -g @continuedev/cli
```
</Step>
<Step title="Get Klavis AI's Strata URL">
1. Visit [klavis.ai](https://www.klavis.ai/) and create an account
2. Navigate to your dashboard and generate [Strata URL](https://www.klavis.ai/home/mcp-servers)
3. Copy the Strata URL for configuration
</Step>
</Steps>
## Klavis AI Strata MCP Setup
<Tabs>
<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).
</Step>
<Step title="Add Klavis AI Strata MCP">
Add the following YAML configuration to your agent:
```yaml title="config.yaml"
name: klavis-strata
version: 0.0.1
schema: v1
mcpServers:
- name: klavis-strata
command: npx
args:
- "mcp-remote"
- "https://strata.klavis.ai/mcp/?strata_id=your_strata_id_here"
```
**Notes:**
- Keep your Klavis Strata URL secret and secure
- Ensure your Klavis account has Slack and Gmail integrations activated
- Complete OAuth flows for both Slack and Gmail in the Klavis dashboard
</Step>
<Step title="Test the Connection">
Launch Continue and ask:
```
Check my latest 5 emails and summarize them in a Slack message to #general.
```
</Step>
</Steps>
<Info>
**Pro tip**: Learn how to integrate and use [Klavis Strata](https://www.klavis.ai/docs/knowledge-base/use-mcp-server/continue) with Continue through CLI and IDE.
</Info>
</Tab>
<Tab title="CLI Setup">
<Steps>
<Step title="Set Environment Variables">
```bash
export KLAVIS_API_KEY="your_api_key_here"
```
</Step>
<Step title="Launch Continue with Klavis MCP">
From your project root:
```bash
cn --agent your-agent-name
```
Now try:
```
"Send a Slack message to #general saying 'Hello from Continue!'"
```
</Step>
</Steps>
</Tab>
</Tabs>
<Accordion title="Agent Requirements">
To use Klavis AI Strata MCP with Continue CLI, you need either:
- **Continue CLI Pro Plan** with the models add-on, OR
- **Your own API keys** added to Continue Hub secrets
The agent will automatically detect and use your configuration along with the Klavis AI Strata MCP for multi-tool operations.
</Accordion>
---
## Slack Workflows
Use natural language to send messages, manage channels, and coordinate team communications through Slack.
<Info>
**Where to run these workflows:**
- **IDE Extensions**: Use Continue in VS Code, JetBrains, or other supported IDEs
- **Terminal (TUI mode)**: Run `cn` to enter interactive mode, then type your prompts
- **CLI (headless mode)**: Use `cn -p "your prompt" --auto` for automation
To run any of the example prompts below in headless mode, use `cn -p "prompt" --auto`
</Info>
### Message Management
<Card title="Send Channel Message" icon="message">
Post messages to Slack channels.
**Prompt:**
```
Send a message to #engineering channel:
"Deploy completed successfully! Version 2.1.0 is now live."
```
</Card>
<Card title="Send Direct Message" icon="user">
Message team members directly.
**Prompt:**
```
Send a direct message to @sarah.chen:
"Hi Sarah, could you review the PR for the authentication refactor when you have a chance? It's ready for review."
```
</Card>
<Card title="Thread Reply" icon="reply">
Respond to existing Slack threads.
**Prompt:**
```
Find the thread about "Q1 Planning" in #product-strategy from the last 2 days.
Reply with: "I've updated the roadmap document with the Q1 priorities we discussed. Link: [doc_url]"
```
</Card>
### Channel and Workspace Management
<Card title="List Channels" icon="list">
Discover available channels.
**Prompt:**
```
List all public channels in the workspace that contain "engineering" or "dev" in the name.
```
</Card>
<Card title="Create Channel" icon="plus">
Set up new communication channels.
**Prompt:**
```
Create a new Slack channel called #klavis-strata
```
</Card>
<Card title="Archive Old Channels" icon="archive">
Clean up inactive channels.
**Prompt:**
```
Find and archive all channels with no messages in the last 90 days.
```
</Card>
---
## Gmail Workflows
Manage email communications, automate responses, and coordinate notifications through Gmail.
### Email Management
<Card title="Send Email" icon="envelope">
Compose and send emails with a single prompt.
**Prompt:**
```
Send an email to team@company.com regarding Weekly Status Update.
```
</Card>
<Card title="Read Recent Emails" icon="inbox">
Check and summarize recent messages.
**Prompt:**
```
Read all unread emails from the last 24 hours.
```
</Card>
<Card title="Search Email Thread" icon="magnifying-glass">
Find specific conversations.
**Prompt:**
```
Search my emails from the last 30 days containing "invoice" or "payment".
```
</Card>
### Advanced Email Operations
<Card title="Send with Attachments" icon="paperclip">
Attach files to outgoing emails.
**Prompt:**
```
Send an email to client@company.com with subject "Monthly Report 2025" and attach the file: reports/monthly-2025-analytics.pdf
```
</Card>
---
## Cross-Platform Workflows
Combine Slack and Gmail for powerful multi-channel communication automation.
### Notification Coordination
<Card title="Slack + Gmail Announcements" icon="bullhorn">
Send coordinated messages across platforms.
**Prompt:**
```
Send an announcement about Scheduled Maintenance @ Sat 2-6 AM EST to #engineering channel and also email to engineering@klavis.ai
```
</Card>
<Card title="Issue Escalation" icon="triangle-exclamation">
Coordinate urgent communications.
**Prompt:**
```
A critical bug has been reported (issue #2847 - payment processing failure). Send this urgent message to #engineering-alerts with issue description, assessment, and immediate action items. Finally, create a Slack thread for coordination and updates.
```
</Card>
### Meeting and Event Coordination
<Card title="Meeting Invitation" icon="calendar">
Coordinate meeting schedules across platforms.
**Prompt:**
```
Schedule a sprint planning meeting:
Gmail invitations to: team@company.com
Subject: "Sprint 24 Planning - Q2 Roadmap"
Time: Next Monday, 10 AM EST
Duration: 2 hours
Slack notification to #engineering:
"Sprint Planning scheduled for Monday 10 AM EST
Please review the backlog before the meeting: [link]
Add agenda items to the shared doc by Friday."
```
</Card>
<Card title="Status Updates" icon="chart-line">
Share progress updates across channels.
**Prompt:**
```
Generate and distribute weekly status update:
1. Analyze my recent work (commits, PRs, issues closed)
2. Draft status summary with:
- Completed work
- In-progress items
- Blockers
- Next week's priorities
3. Send to Slack #team-updates (formatted for Slack)
4. Email to manager@company.com (formal email format)
```
</Card>
### Customer Communication
<Card title="Support Ticket Response" icon="headset">
Coordinate customer support across channels.
**Prompt:**
```
A customer reported an issue via email (support ticket #5234 - login problems).
1. Send acknowledgment email to customer@client.com:
"We've received your report about login issues. Investigating now.
Ticket #5234 - Expected resolution: 4 hours"
2. Alert Slack #customer-support:
"New Priority 1 Ticket #5234: Login issues affecting Customer XYZ
Assigned to: @on-call-engineer
Details: [summary]"
3. Create Slack thread for internal coordination
```
</Card>
---
## Multi-Tool Integration Workflows
Leverage Klavis AI Strata's integrations for comprehensive automation workflows.
<Info>
Klavis AI Strata supports integrations with Notion, Linear, GitHub, Asana, Salesforce, HubSpot, and more. Combine these with Slack and Gmail to create powerful cross-platform workflows.
</Info>
### Development Workflows
<Card title="PR Review Notifications" icon="code-pull-request">
Automate code review coordination.
**Prompt:**
```
Monitor GitHub for new pull requests in the main repository.
When a new PR is created:
1. Send Slack message to #code-reviews:
"New PR ready for review: [PR title]
Author: [name]
Changes: [summary]
Link: [github_url]"
2. If PR is labeled "urgent":
- Send Gmail to tech-leads@company.com
- Ping reviewer in Slack DM
```
</Card>
<Card title="Deployment Notifications" icon="rocket">
Coordinate deployment communications.
**Prompt:**
```
After successful deployment to production:
1. Update Notion deployment log with:
- Version number
- Deployment timestamp
- Changes included
- Rollback procedure
2. Announce in Slack #announcements:
"Production deployment complete: v2.5.0
Release notes: [notion_link]"
3. Email stakeholders@company.com with:
- Executive summary of changes
- User-facing improvements
- Link to full documentation
```
</Card>
### Project Management Integration
<Card title="Task Sync Workflow" icon="tasks">
Synchronize tasks across platforms.
**Prompt:**
```
Daily task synchronization:
1. Fetch high-priority tasks from Linear (assigned to me, due this week)
2. Create Notion task list with priorities and deadlines
3. Send Slack DM reminder about tasks due today
4. If any tasks are overdue, email manager@company.com with status update
```
</Card>
<Card title="Sprint Report Generation" icon="chart-pie">
Automate sprint reporting.
**Prompt:**
```
Generate end-of-sprint report:
1. Analyze completed work:
- Linear: Closed issues and story points
- GitHub: Merged PRs and code changes
- Notion: Sprint goals completion status
2. Create comprehensive report in Notion
3. Send summary to Slack #sprint-reviews
4. Email detailed report to leadership@company.com with:
- Velocity metrics
- Burndown chart
- Highlights and challenges
```
</Card>
---
## Automation Examples
<Card title="Ready-to-Use Workflows" icon="clipboard-check">
These examples have been designed for common use cases. Customize them to fit your team's needs.
</Card>
### Daily Standup Automation
```bash
cn -p --auto "
Generate and distribute daily standup update:
1. Review my activity:
- GitHub commits and PRs from yesterday
- Linear tasks completed
- Calendar meetings attended
2. Draft standup summary:
- Yesterday: [completed work]
- Today: [planned work]
- Blockers: [any issues]
3. Post to Slack #daily-standups
4. If there are blockers, also send email to team-lead@company.com
"
```
### On-Call Alert System
```bash
cn -p --auto "
When critical alert is triggered:
1. Send urgent Slack message to #on-call with:
- Alert details
- Severity level
- Affected systems
- Runbook link
2. Send SMS-style urgent email to on-call engineer
3. If not acknowledged in 5 minutes, escalate to backup on-call
4. Create incident thread in Slack for coordination
"
```
### Customer Onboarding
```bash
cn -p --auto "
New customer onboarding workflow:
1. Send welcome email via Gmail:
- Getting started guide
- Support contact information
- Link to documentation
2. Create Slack Connect channel with customer
3. Post introduction message in Slack with team members
4. Create customer record in Notion with:
- Contact information
- Onboarding status
- Key milestones
5. Add reminder in Linear for 7-day check-in call
"
```
### Weekly Team Digest
```bash
cn -p --auto "
Generate weekly team digest (run every Friday at 4 PM):
1. Collect data:
- GitHub: PRs merged this week
- Linear: Issues closed, velocity metrics
- Slack: Key discussions and decisions
- Gmail: Important external communications
2. Create digest in Notion with sections:
- Accomplishments
- Challenges
- Next week's priorities
- Team shoutouts
3. Share to Slack #team-updates
4. Email summary to remote team members
"
```
## Troubleshooting
<AccordionGroup>
<Accordion title="Authentication Issues">
- **Klavis Strata URL not recognized**: Verify the Strata URL is active and correctly set in environment variables or Hub secrets
- **Slack OAuth failed**: Re-authenticate through the Klavis AI dashboard and ensure workspace permissions are granted
- **Gmail OAuth failed**: Check Google Cloud Console for API access and ensure the Gmail API is enabled
- **Token expired**: Klavis AI manages token refresh automatically, but you may need to re-authorize if it fails
</Accordion>
<Accordion title="Message Delivery Issues">
- **Slack message not sent**: Verify the bot has permission to post in the target channel
- **Gmail rate limiting**: Google imposes sending limits—monitor your quota
- **Channel not found**: Check channel name spelling and ensure it's public or the bot has been invited
- **User not found**: Verify Slack username format (@username) and that the user exists in the workspace
</Accordion>
<Accordion title="Workflow Execution Issues">
- **Multi-step workflow incomplete**: Check each step individually to identify where the failure occurred
- **Rate limits hit**: Klavis manages rate limiting, but external APIs (Slack, Gmail) have their own limits
- **Permission denied errors**: Ensure your authenticated user has the necessary permissions for the requested operation
- **Integration not available**: Verify the integration is active in your Klavis dashboard at klavis.ai/integrations
</Accordion>
</AccordionGroup>
## What You've Built
After completing this guide, you have a complete **AI-powered communication automation system** that:
- ✅ **Uses natural language** — Simple prompts instead of complex commands
- ✅ **Automates Slack**: Send messages, manage channels, and team coordination
- ✅ **Manages Gmail**: Read, send, and triage emails with intelligent automation
- ✅ **Cross-platform coordination**: Unified workflows across Slack, Gmail, and other tools
- ✅ **Scales reliably**: Handles complex multi-app workflows efficiently
<Card title="Continuous AI" icon="rocket">
Your communication workflows now operate at **[Level 2 Continuous
AI](https://blog.continue.dev/what-is-continuous-ai-a-developers-guide/)** -
AI handles routine communications and coordinates multi-platform workflows
with optional human oversight and approval.
</Card>
## Klavis Strata MCP Capabilities
<CardGroup cols={2}>
<Card title="Scalable Tool Integration" icon="layer-group">
Handle **thousands of tools** with no context overload.
</Card>
<Card title="Progressive Discovery" icon="network-wired">
Strata guides AI agents to **discover relevant categories** first, avoiding tool overload.
</Card>
<Card title="Smart Navigation" icon="compass">
AI drills down **layer by layer** to find the exact tool needed for the task.
</Card>
<Card title="Precise Execution" icon="bullseye">
Once identified, **Strata** pulls API details and executes with correct parameters.
</Card>
</CardGroup>
## Next Steps
1. **Explore integrations** — Try Slack and Gmail prompts on your workspace
2. **Add more tools** — Integrate Notion, Linear, GitHub, or other services
3. **Automate notifications** — Set up cross-platform announcement workflows
4. **Monitor performance** — Track automation accuracy and time savings
5. **Scale up** — Add scheduled workflows and event-driven automation
## Additional Resources
<CardGroup cols={2}>
<Card title="Klavis AI Platform" icon="link" href="https://www.klavis.ai/docs/knowledge-base/use-mcp-server/overview">
Integrate Klavis AI with AI platforms
</Card>
<Card title="Strata MCP Documentation" icon="book" href="https://www.klavis.ai/docs/concepts/strata">
Learn about Klavis AI's Strata MCP platform architecture
</Card>
<Card title="MCP in Continue" icon="puzzle-piece" href="/customize/deep-dives/mcp">
Learn how MCP works with Continue agents
</Card>
<Card title="Continue Hub" icon="globe" href="https://hub.continue.dev">
Create and manage your Continue agents
</Card>
</CardGroup>

View file

@ -233,7 +233,7 @@ PARAMETER num_ctx 4096
### How to Choose the Right Model
Choose models based on your specific needs (see [recommended models](/customization/models#recommended-models) for more options):
Choose models based on your specific needs (see [recommended models](/customize/models#recommended-models) for more options):
1. **Code Generation**:

View file

@ -22,6 +22,7 @@ description: "Comprehensive collection of practical guides for Continue includin
Step-by-step guides for integrating Model Context Protocol (MCP) servers with Continue:
<CardGroup cols={3}>
<Card title="Continue Docs MCP Cookbook" icon="book" href="/guides/continue-docs-mcp-cookbook">
Use the Continue Docs MCP to write cookbooks, guides, and documentation with AI-powered workflows
</Card>
@ -65,6 +66,11 @@ Step-by-step guides for integrating Model Context Protocol (MCP) servers with Co
<Card title="dlt Data Pipelines Cookbook" icon="pipe" href="/guides/dlt-mcp-continue-cookbook">
Build AI-powered data pipelines with dlt MCP for pipeline inspection, schema management, and debugging
</Card>
<Card title="Klavis AI Cookbook" icon="K" href="/guides/klavis-mcp-continue-cookbook">
Use Continue and Klavis AI's Strata MCP to automate communication workflows across Slack and Gmail
</Card>
</CardGroup>
## What Advanced Tutorials Are Available

View file

@ -73,7 +73,7 @@ After ensuring you meet the **Prerequisites** above, you have two paths to get s
<Steps>
<Step title="Load the Pre-Built Agent">
Visit the [Sanity Assistant Agent](https://hub.continue.dev/continuedev/sanity-assistant-agent) on Continue Mission Control and click **"Install Config"** or run:
```bash
cn --agent continuedev/sanity-assistant-agent
```
@ -86,19 +86,19 @@ After ensuring you meet the **Prerequisites** above, you have two paths to get s
<Step title="Your First MCP Conversation">
Start with these beginner-friendly prompts to explore your content:
```bash
# Content exploration
"Show me all blog posts published in the last month"
# Schema understanding
# Schema understanding
"Show me all the document types in my Sanity schema and explain their relationships"
# Content management
"Create a new product page for our upcoming feature"
```
That's it! The agent handles everything automatically. For more starter prompts and examples, see the [official Sanity MCP blog post](https://www.sanity.io/blog/model-context-protocol).
That's it! The agent handles everything automatically. For more starter prompts and examples, see the [official Sanity MCP blog post](https://www.sanity.io/blog/introducing-sanity-model-context-protocol-server).
</Step>
</Steps>
@ -132,7 +132,7 @@ After ensuring you meet the **Prerequisites** above, you have two paths to get s
**Authentication Options:**
- **Interactive mode**: OAuth authentication via browser (expires after 7 days)
- **Headless/CI mode**: Uses environment variables (SANITY_API_TOKEN, SANITY_PROJECT_ID, etc.)
See [Sanity MCP Config](https://hub.continue.dev/sanity/sanity-mcp-config) for environment variable setup.
</Info>
@ -147,8 +147,8 @@ After ensuring you meet the **Prerequisites** above, you have two paths to get s
# "Show me all the document types in my Sanity schema and explain their relationships"
# "Create a new product page for our upcoming feature"
```
For more examples, see the [Sanity MCP blog post](https://www.sanity.io/blog/model-context-protocol).
For more examples, see the [Sanity MCP blog post](https://www.sanity.io/blog/introducing-sanity-model-context-protocol-server).
</Step>
</Steps>
@ -211,7 +211,7 @@ With everything set up, you're ready for your first AI-powered content conversat
</CardGroup>
<Info>
**New to MCP?** These prompts demonstrate the power of natural language content management. For more examples and detailed explanations, check out the [official Sanity MCP blog post](https://www.sanity.io/blog/model-context-protocol).
**New to MCP?** These prompts demonstrate the power of natural language content management. For more examples and detailed explanations, check out the [official Sanity MCP blog post](https://www.sanity.io/blog/introducing-sanity-model-context-protocol-server).
</Info>
## Content Management Recipes
@ -232,7 +232,7 @@ You can add prompts to your agent's configuration for easy access in future sess
changes, test your prompts in plan mode (see the [Plan Mode
Guide](/guides/plan-mode-guide); press **Shift+Tab** to switch modes in TUI/IDE). This
shows you what the agent will do without executing it.
To run any of the example prompts below in headless mode, use `cn -p "prompt"`
</Info>
@ -558,7 +558,7 @@ After completing this guide, you have a complete **AI-powered content management
<Card
title="Sanity MCP Blog Post"
icon="newspaper"
href="https://www.sanity.io/blog/model-context-protocol"
href="https://www.sanity.io/blog/introducing-sanity-model-context-protocol-server"
>
Official Sanity MCP introduction with examples
</Card>

View file

@ -46,7 +46,7 @@ In Plan mode, only these read-only tools are available:
In Agent mode, all tools are available including the read-only tools above plus:
- **Create new file** (`create_new_file`): Create a new file within the project
- **Edit file** (`edit_file`): Make changes to existing files
- **Edit file** (`edit_existing_file`): Make changes to existing files
- **Run terminal command** (`run_terminal_command`): Run commands from the workspace root
- **Create Rule Block** (`create_rule_block`): Create a new rule block in `.continue/rules`
- All other write/execute tools for modifying the codebase

View file

@ -50,7 +50,7 @@ You can switch to `Agent` in the mode selector below the chat input box. The mod
<Info>
If Agent mode or Plan mode is disabled with a `Not Supported` message, the selected
model or provider doesn't support tools, or Continue doesn't yet support tools
with it. See [Model Blocks](/customization/models) for more information.
with it. See [Model Blocks](/customize/models) for more information.
</Info>
<Tip>
@ -75,7 +75,7 @@ By default, Agent mode will ask permission when it wants to use a tool. Click `C
![agent requesting permission](/images/ide-extensions/agent/images/agent-permission-c150919a5c43eb4f55d9d4a46ef8b2d6.png)
You can use tool policies to exclude or make usage automatic for specific tools. See [MCP Tools](/customization/mcp-tools) for more background.
You can use tool policies to exclude or make usage automatic for specific tools. See [MCP Tools](/customize/mcp-tools) for more background.
## How to View Tool Responses

View file

@ -24,7 +24,7 @@ Language models aren't perfect, but can be made much closer by adjusting their o
- Fixing indentation for proper formatting
- Occasionally discarding low-quality responses, such as those with excessive repetition
You can learn more about how it works in the [Autocomplete deep dive](/customization/models#autocomplete).
You can learn more about how it works in the [Autocomplete deep dive](/customize/models#autocomplete).
<Info>
**Looking for AI that predicts your next changes or additions?** Check out

View file

@ -12,7 +12,7 @@ Setting up the right model for autocomplete is important for a smooth coding exp
<ModelRecommendations role="autocomplete" />
<Info>
For a complete comparison of all models, see our [comprehensive model recommendations](/customization/models#recommended-models).
For a complete comparison of all models, see our [comprehensive model recommendations](/customize/models#recommended-models).
</Info>
## Next Edit Model

View file

@ -7,5 +7,5 @@ description: "Learn how to customize the Chat feature in Continue to better suit
There are a number of different ways to customize Chat:
- Add [rules](/customization/rules) to give the model persistent instructions through the system prompt
- Create [prompts](/customization/prompts) to kickoff workflows with instructions you repeat often
- Add [rules](/customize/rules) to give the model persistent instructions through the system prompt
- Create [prompts](/customize/prompts) to kickoff workflows with instructions you repeat often

View file

@ -5,7 +5,7 @@ sidebarTitle: "Recommended Chat Models"
---
import { ModelRecommendations } from '/snippets/ModelRecommendations.jsx';
The model you use for for Chat mode will be:
The model you use for Chat mode will be:
- used with Edit mode by default but can be switched
- always used with Agent mode if the model supports tool calling
@ -15,7 +15,7 @@ The model you use for for Chat mode will be:
<ModelRecommendations role="chat_edit" />
<Info>
For a comprehensive comparison of all available models by role, see our [model recommendations table](/customization/models#recommended-models).
For a comprehensive comparison of all available models by role, see our [model recommendations table](/customize/models#recommended-models).
</Info>
For model recommendations, please refer to our [Model Recommendations page](/customization/models).
For model recommendations, please refer to our [Model Recommendations page](/customize/models).

View file

@ -12,14 +12,14 @@ The model you set up for Chat mode will be used for Edit mode by default.
<ModelRecommendations role="chat_edit" />
<Info>
See our [comprehensive model recommendations](/customization/models#recommended-models) for the best models for each role, including Edit and Apply.
See our [comprehensive model recommendations](/customize/models#recommended-models) for the best models for each role, including Edit and Apply.
</Info>
## How to Set Up an Apply Model
We also recommend setting up an Apply model for the best Edit experience.
For recommended Apply models, please refer to our [Model Recommendations page](/customization/models).
For recommended Apply models, please refer to our [Model Recommendations page](/customize/models).
## How to Determine Model Compatibility

View file

@ -3,12 +3,7 @@ title: Settings
description: Configure Continue through VS Code's streamlined settings interface
---
<img
src="/images/continue-settings-card-layout.png"
alt="Continue Settings Panel - Card-based Layout"
/>
The new settings experience introduces a **card-based layout** that reduces visual clutter while maintaining powerful functionality. Every setting is more discoverable and easier to modify, whether you're on an ultrawide monitor or a small laptop screen.
## Quick Access
@ -29,7 +24,10 @@ The new settings experience introduces a **card-based layout** that reduces visu
(pencil icon) - Custom coding preferences - **Tools** (wrench icon) - Manage
integrations - **Models** (cube icon) - Configure AI providers
</Tip>
<img
src="/images/continue-settings-card-layout.png"
alt="Continue Settings Panel - Card-based Layout"
/>
## Core Settings
<Tabs>
@ -175,16 +173,16 @@ The refined assistant selector features:
## Next Steps
<CardGroup cols={2}>
<Card title="Configure Models" icon="robot" href="/customization/models">
<Card title="Configure Models" icon="robot" href="/customize/models">
Set up your AI providers
</Card>
<Card title="Add Tools" icon="wrench" href="/customization/mcp-tools">
<Card title="Add Tools" icon="wrench" href="/customize/mcp-tools">
Extend Continue with MCP tools
</Card>
<Card title="Custom Rules" icon="pencil" href="/customization/rules">
<Card title="Custom Rules" icon="pencil" href="/customize/rules">
Define coding preferences
</Card>
<Card title="Prompts" icon="message" href="/customization/prompts">
<Card title="Prompts" icon="message" href="/customize/prompts">
Customize AI behavior
</Card>
</CardGroup>

Binary file not shown.

Before

Width:  |  Height:  |  Size: 58 KiB

View file

@ -67,122 +67,6 @@ Connect Sentry to Continue Mission Control to enable agents to automatically det
</Tip>
## Use Cases
### Automatic Error Resolution
Create agents that fix errors as they occur:
<Card title="Error Resolver Agent" icon="wrench">
**Task Example**: "Monitor new Sentry errors and create PRs with fixes for straightforward issues"
**What the Agent Does**:
- Receives notifications when new errors occur
- Analyzes the stack trace and error context
- Identifies the root cause in your codebase
- Generates a fix and creates a pull request
- Links the PR back to the Sentry issue
**Run in Mission Control**: Set up as an automation triggered by Sentry webhooks
</Card>
### Error Pattern Analysis
Identify and resolve systemic issues:
<Card title="Pattern Analyzer Agent" icon="chart-line">
**Task Example**: "Analyze error patterns from the last 7 days and identify common root causes"
**What the Agent Does**:
- Groups similar errors together
- Identifies patterns in stack traces and user actions
- Determines if errors are related to specific releases or features
- Creates comprehensive reports with recommendations
- Opens issues for systemic problems requiring architectural changes
**Run in Mission Control**: Schedule to run weekly or after major releases
</Card>
### Priority Triage
Automatically prioritize critical errors:
<Card title="Error Triage Agent" icon="list-check">
**Task Example**: "Triage new Sentry issues by impact, assign severity levels, and notify the appropriate team"
**What the Agent Does**:
- Evaluates error frequency and user impact
- Assigns priority levels (critical, high, medium, low)
- Tags errors by component and team
- Creates GitHub issues for high-priority errors
- Notifies relevant team members
**Run in Mission Control**: Create as an automation triggered on new Sentry issues
</Card>
### Release Quality Monitoring
Track error rates across deployments:
<Card title="Release Monitor Agent" icon="rocket">
**Task Example**: "Compare error rates before and after the latest release and flag any regressions"
**What the Agent Does**:
- Compares error metrics between releases
- Identifies new errors introduced in the latest release
- Calculates error rate changes by percentage
- Generates release quality reports
- Creates rollback recommendations if error rates spike
**Run in Mission Control**: Trigger after each deployment or on a schedule
</Card>
### Performance Issue Detection
Monitor and resolve performance degradation:
<Card title="Performance Watcher Agent" icon="gauge-high">
**Task Example**: "Identify performance regressions from Sentry performance monitoring and suggest optimizations"
**What the Agent Does**:
- Analyzes transaction duration trends
- Identifies slow database queries or API calls
- Detects N+1 query problems
- Suggests code optimizations
- Creates PRs with performance improvements
**Run in Mission Control**: Schedule daily or trigger on performance alerts
</Card>
### User Impact Analysis
Understand how errors affect your users:
<Card title="Impact Analyzer Agent" icon="users">
**Task Example**: "Generate a report on which users are most affected by current errors and prioritize fixes accordingly"
**What the Agent Does**:
- Identifies users experiencing multiple errors
- Analyzes error distribution across user segments
- Correlates errors with user churn or frustration signals
- Creates prioritized fix lists based on user impact
- Generates customer communication templates
**Run in Mission Control**: Run weekly or before customer check-ins
</Card>
## Running Sentry Agents in Mission Control
You can run Sentry-connected agents in two ways:
@ -249,10 +133,10 @@ Combine Sentry with GitHub integration for a complete workflow:
Track your agent's error resolution performance:
1. **View in Inbox**: Navigate to the [Sentry view](https://hub.continue.dev/inbox?view=sentry) to see all Sentry-related agent activity
2. **Check Sentry Dashboard**: Verify that issues are being resolved in your Sentry account
3. **Review PRs**: Ensure quality of generated fixes in GitHub
4. **Monitor Metrics**: Track mean time to resolution (MTTR) and intervention rates
1. **View in Mission Control**: See all agent runs and their outcomes
2. **Check Sentry**: Verify that issues are being resolved
3. **Review PRs**: Ensure quality of generated fixes
4. **Monitor Metrics**: Track resolution time and success rate
## Troubleshooting

View file

@ -60,154 +60,6 @@ Connect Snyk to Continue Mission Control to enable agents to automatically detec
</Info>
## Use Cases
### Code Vulnerability Scanning (SAST)
Scan your source code for security vulnerabilities:
<Card title="Code Security Agent" icon="code">
**Task Example**: "Run a Snyk Code scan on this repo with severity threshold medium. Summarize issues with file:line locations and propose minimal fixes for the top 3 critical issues."
**What the Agent Does**:
- Performs static application security testing on your code
- Identifies security vulnerabilities with exact file and line numbers
- Prioritizes issues by severity and exploitability
- Generates minimal, targeted fixes for critical issues
- Re-runs scans to verify fixes resolve the vulnerabilities
**Run in Mission Control**: Set up as pre-commit hook or PR check
</Card>
### Dependency Scanning (SCA)
Check open source dependencies for known vulnerabilities:
<Card title="Dependency Security Agent" icon="cube">
**Task Example**: "Run Snyk Open Source scan including dev dependencies. Summarize vulnerable dependency paths and propose a minimal-risk upgrade plan."
**What the Agent Does**:
- Performs software composition analysis on all dependencies
- Maps vulnerability paths through dependency tree
- Identifies minimal-risk upgrade strategies
- Creates dependency update plans with compatibility checks
- Re-tests after proposed changes to confirm resolution
**Run in Mission Control**: Schedule weekly or trigger on package updates
</Card>
### Infrastructure as Code (IaC) Security
Scan Terraform, CloudFormation, and Kubernetes configs:
<Card title="IaC Security Agent" icon="cloud">
**Task Example**: "Scan ./infra directory with Snyk IaC. Report high/critical misconfigurations with exact files and lines. Provide corrected configurations."
**What the Agent Does**:
- Scans infrastructure code for security misconfigurations
- Identifies exposed secrets and overly permissive policies
- Reports exact file locations and line numbers
- Provides secure configuration alternatives
- Re-scans to confirm misconfigurations are resolved
**Run in Mission Control**: Run before infrastructure deployments
</Card>
### Container Security Scanning
Analyze Docker images for vulnerabilities:
<Card title="Container Security Agent" icon="docker">
**Task Example**: "Scan Docker image my-api:latest excluding base image vulnerabilities. Show dependency tree and recommend safer base images."
**What the Agent Does**:
- Scans container images for OS and application vulnerabilities
- Analyzes complete dependency tree in containers
- Recommends security-hardened base images
- Creates optimized Dockerfiles with security improvements
- Re-tests after changes to verify vulnerability reduction
**Run in Mission Control**: Trigger on container builds or before deployments
</Card>
### Pull Request Security Scanning
Focus scanning on modified files:
<Card title="PR Security Agent" icon="code-branch">
**Task Example**: "Scan only files changed since origin/main with Snyk Code. Block if new high severity issues would be introduced."
**What the Agent Does**:
- Targets security scanning to changed files only
- Compares security posture before and after changes
- Identifies newly introduced vulnerabilities
- Shows security impact delta for the PR
- Blocks merge if critical issues are detected
**Run in Mission Control**: Set up as PR check automation
</Card>
### Security Learning Integration
Access contextual security education:
<Card title="Security Education Agent" icon="graduation-cap">
**Task Example**: "Open Snyk Learn lessons related to the top CWE vulnerabilities from this scan."
**What the Agent Does**:
- Maps vulnerabilities to Common Weakness Enumeration (CWE) categories
- Retrieves relevant Snyk Learn educational content
- Provides contextual security training based on actual issues
- Links to remediation guides and best practices
- Tracks security knowledge gaps across the team
**Run in Mission Control**: Run after security scans for team education
</Card>
## Running Snyk Agents in Mission Control
You can run Snyk-connected agents in two ways:
### 1. Manual Tasks
Trigger agents on-demand for vulnerability analysis:
1. Go to [Mission Control Agents](https://hub.continue.dev/agents)
2. Select or create a Snyk-enabled agent
3. Click "Run Agent" and provide your task description
4. Monitor progress and review results in real-time
**Example Tasks:**
- "Scan all projects for critical vulnerabilities and prioritize fixes"
- "Update all npm dependencies with known vulnerabilities"
- "Generate a security report for the last sprint"
### 2. Automated Workflows
Set up agents to run automatically:
- **Webhook-triggered**: Execute when new vulnerabilities are detected
- **Scheduled**: Run daily or weekly security scans
- **PR-triggered**: Scan new dependencies before merge
<Tip>
Start with manual tasks to understand your vulnerability patterns, then automate the most common remediation workflows for continuous security.
</Tip>
## Integration with GitHub
Combine Snyk with GitHub integration for a complete security workflow:
@ -290,7 +142,7 @@ Track your agent's security remediation performance:
**Problem**: Agent isn't running when new vulnerabilities are found
**Solutions**:
- Verify webhook configuration in Snyk settings
- Verify webhook configuration in Snyk integration settings
- Check that webhook URL points to Continue Mission Control
- Ensure webhook events include vulnerability detection
- Review webhook delivery logs in Snyk
@ -313,4 +165,4 @@ Track your agent's security remediation performance:
</Card>
</CardGroup>
</CardGroup>

View file

@ -37,7 +37,7 @@ This document specifies the behavior of the CLI's configuration loading system,
3. **Default Resolution** (if no flag and no saved URI)
- **Authenticated**: First user assistant from `listAssistants()`
- **config.yaml**: The saved config file at `~/.continue/config.yaml`
- **Unauthenticated**: Falls back to `continuedev/default-agent`
- **Unauthenticated**: Falls back to `continuedev/default-cli-config`
## Authentication State Interactions
@ -61,7 +61,7 @@ This document specifies the behavior of the CLI's configuration loading system,
**Available Options:**
- Local YAML files only
- Default assistant (`continuedev/default-agent`)
- Default assistant (`continuedev/default-cli-config`)
**Behavior:**
@ -121,7 +121,7 @@ This document specifies the behavior of the CLI's configuration loading system,
**No User Assistants:**
- Authenticated user has no personal assistants
- **Result**: Falls back to `continuedev/default-agent`
- **Result**: Falls back to `continuedev/default-cli-config`
**Default Agent Unavailable:**

View file

@ -36,8 +36,8 @@ export type ConfigSource =
| { type: "cli-flag"; path: string }
| { type: "saved-uri"; uri: string }
| { type: "user-assistant"; slug: string }
| { type: "default-config-yaml" }
| { type: "default-agent" }
| { type: "local-config-yaml" }
| { type: "remote-default-config" }
| { type: "no-config" };
/**
@ -124,16 +124,16 @@ function determineConfigSource(
// Priority 3: Default resolution based on auth state
if (authConfig === null) {
// Unauthenticated: check for default config.yaml, then fallback to default agent
// Unauthenticated: check for default config.yaml, then fallback to default config
const defaultConfigPath = path.join(env.continueHome, "config.yaml");
if (fs.existsSync(defaultConfigPath)) {
return { type: "default-config-yaml" };
return { type: "local-config-yaml" };
}
return { type: "default-agent" };
return { type: "remote-default-config" };
} else {
// In headless, user assistant fallback behavior isn't supported
if (isHeadless) {
return { type: "default-agent" };
return { type: "remote-default-config" };
}
// Authenticated: try user assistants first
return { type: "user-assistant", slug: "" }; // Empty slug means "first available"
@ -178,16 +178,16 @@ async function loadFromSource(
injectBlocks,
);
case "default-config-yaml":
return await loadDefaultConfigYaml(
case "local-config-yaml":
return await loadLocalConfigYaml(
accessToken,
organizationId,
apiClient,
injectBlocks,
);
case "default-agent":
return await loadDefaultAgent(
case "remote-default-config":
return await loadDefaultConfig(
organizationId,
apiClient,
accessToken,
@ -214,7 +214,7 @@ async function loadFromSource(
"Failed to load user assistants, falling back to default agent",
),
);
return await loadDefaultAgent(
return await loadDefaultConfig(
organizationId,
apiClient,
accessToken,
@ -334,7 +334,7 @@ async function loadUserAssistantWithFallback(
}
// No user assistants, fall back to default agent
return await loadDefaultAgent(
return await loadDefaultConfig(
organizationId,
apiClient,
accessToken,
@ -345,7 +345,7 @@ async function loadUserAssistantWithFallback(
/**
* Loads default config.yaml from ~/.continue/config.yaml
*/
async function loadDefaultConfigYaml(
async function loadLocalConfigYaml(
accessToken: string | null,
organizationId: string | null,
apiClient: DefaultApiInterface,
@ -362,9 +362,9 @@ async function loadDefaultConfigYaml(
}
/**
* Loads the default continuedev/default-agent
* Loads the default continuedev/default-config
*/
async function loadDefaultAgent(
async function loadDefaultConfig(
organizationId: string | null,
apiClient: DefaultApiInterface,
accessToken: string | null,
@ -372,7 +372,7 @@ async function loadDefaultAgent(
): Promise<AssistantUnrolled> {
const resp = await apiClient.getAssistant({
ownerSlug: "continuedev",
packageSlug: "default-agent",
packageSlug: "default-cli-config",
organizationId: organizationId ?? undefined,
});
@ -582,7 +582,7 @@ function getUriFromSource(source: ConfigSource): string | null {
: `slug://${source.path}`;
case "saved-uri":
return source.uri;
case "default-config-yaml":
case "local-config-yaml":
return `file://${path.join(env.continueHome, "config.yaml")}`;
default:
return null;

View file

@ -11,7 +11,7 @@ describe("Local Config Switching Investigation", () => {
"/absolute/path/to/config.yaml",
],
remoteAssistantSlugs: [
"continuedev/default-agent",
"continuedev/default-cli-config",
"myorg/custom-assistant",
"user/my-assistant",
],
@ -43,14 +43,14 @@ describe("Local Config Switching Investigation", () => {
const problemScenarios = [
{
name: "Remote to Remote switching",
from: "continuedev/default-agent",
from: "continuedev/default-cli-config",
to: "myorg/custom-assistant",
works: true,
reason: "Both are assistant slugs, normal flow works",
},
{
name: "Remote to Local switching",
from: "continuedev/default-agent",
from: "continuedev/default-cli-config",
to: "~/.continue/config.yaml",
works: false, // This is the reported issue
reason: "UNKNOWN - this is what we need to debug",
@ -58,7 +58,7 @@ describe("Local Config Switching Investigation", () => {
{
name: "Local to Remote switching",
from: "~/.continue/config.yaml",
to: "continuedev/default-agent",
to: "continuedev/default-cli-config",
works: false, // Likely also broken
reason: "UNKNOWN - probably same root cause",
},

View file

@ -107,7 +107,7 @@ describe("ConfigService", () => {
test("should initialize with undefined config path", async () => {
vi.mocked(configLoader.loadConfiguration).mockResolvedValue({
config: mockConfig as any,
source: { type: "default-agent" } as any,
source: { type: "remote-default-config" } as any,
});
const state = await service.doInitialize({
@ -257,7 +257,7 @@ describe("ConfigService", () => {
// Initialize without config path
vi.mocked(configLoader.loadConfiguration).mockResolvedValue({
config: mockConfig as any,
source: { type: "default-agent" } as any,
source: { type: "remote-default-config" } as any,
});
await service.doInitialize({
authConfig: { accessToken: "token" } as any,

View file

@ -36,7 +36,7 @@ describe("MCPService", () => {
beforeEach(() => {
mcpService = new MCPService();
mockAssistant = {
name: "test-assistant",
name: "Test Config",
version: "1.0.0",
mcpServers: [
{
@ -196,7 +196,7 @@ describe("MCPService", () => {
it("should default to stdio transport when type is not specified", async () => {
const defaultAssistant: AssistantConfig = {
name: "default-assistant",
name: "Default Config",
version: "1.0.0",
mcpServers: [
{

View file

@ -13,15 +13,15 @@ global.fetch = vi
.mockImplementation(async (url: string | URL, ...args) => {
const urlString = url.toString();
// Mock the default-agent API call
if (urlString.includes("get-assistant/continuedev/default-agent")) {
// Mock the default config API call
if (urlString.includes("get-assistant/continuedev/default-cli-config")) {
return {
ok: true,
status: 200,
json: async () => ({
configResult: {
config: {
name: "Default Agent",
name: "Default Config",
version: "0.0.1",
schema: "v1",
models: [

View file

@ -2,6 +2,7 @@ package com.github.continuedev.continueintellijextension.actions
import com.github.continuedev.continueintellijextension.HighlightedCodePayload
import com.github.continuedev.continueintellijextension.RangeInFileWithContents
import com.github.continuedev.continueintellijextension.browser.ContinueBrowserService
import com.github.continuedev.continueintellijextension.browser.ContinueBrowserService.Companion.getBrowser
import com.github.continuedev.continueintellijextension.editor.DiffStreamService
import com.github.continuedev.continueintellijextension.editor.EditorUtils
@ -9,9 +10,11 @@ import com.github.continuedev.continueintellijextension.services.ContinuePluginS
import com.intellij.openapi.actionSystem.AnAction
import com.intellij.openapi.actionSystem.AnActionEvent
import com.intellij.openapi.actionSystem.PlatformDataKeys
import com.intellij.openapi.application.ApplicationManager
import com.intellij.openapi.components.service
import com.intellij.openapi.fileEditor.FileEditorManager
import com.intellij.openapi.project.Project
import com.intellij.openapi.wm.ToolWindowManager
import java.io.File
class RestartContinueProcess : AnAction() {
@ -89,6 +92,39 @@ class OpenConfigAction : ContinueToolbarAction() {
}
}
class ReloadBrowserAction: ContinueToolbarAction() {
override fun toolbarActionPerformed(project: Project) {
val toolWindow = ToolWindowManager.getInstance(project).getToolWindow("Continue")
?: return
val browserService = project.service<ContinueBrowserService>()
// Perform the reload and UI update on the Event Dispatch Thread
ApplicationManager.getApplication().invokeLater {
// Reload the browser service to get a new browser instance
browserService.reload()
val newBrowser = project.getBrowser() ?: return@invokeLater
val newBrowserComponent = newBrowser.getComponent()
val contentManager = toolWindow.contentManager
contentManager.removeAllContents(true)
val newContent = contentManager.factory.createContent(
newBrowserComponent,
null,
false
)
contentManager.addContent(newContent)
contentManager.setSelectedContent(newContent, true) // Request focus
toolWindow.activate({
// After activation, ensure the browser's input field gets focus
newBrowser.focusOnInput()
}, true)
}
}
}
class OpenLogsAction : AnAction() {
override fun actionPerformed(e: AnActionEvent) {
val project = e.project ?: return

View file

@ -51,7 +51,7 @@ fun showTutorial(project: Project) {
if (`is` == null) {
throw IOException("Resource not found: $tutorialFileName")
}
var content = StreamUtil.readText(`is`, StandardCharsets.UTF_8)
var content = `is`.bufferedReader(StandardCharsets.UTF_8).use { it.readText() }
// All jetbrains will use J instead of L
content = content.replace("[Cmd + L]", "[Cmd + J]")
@ -95,7 +95,7 @@ class ContinuePluginStartupActivity : StartupActivity, DumbAware {
}
private fun getPlatformSpecificKeyStroke(key: String): String {
val osName = System.getProperty("os.name").toLowerCase()
val osName = System.getProperty("os.name").lowercase()
val modifier = if (osName.contains("mac")) "meta" else "control"
return "$modifier $key"
}

View file

@ -88,7 +88,7 @@ class ContinueBrowser(
val json = gsonService.gson.toJson(BrowserMessage(messageType, messageId, data))
val jsCode = """window.postMessage($json, "*");"""
try {
browser.executeJavaScriptAsync(jsCode)
browser.cefBrowser.executeJavaScript(jsCode, getGuiUrl(), 0)
} catch (error: IllegalStateException) {
log.warn(error)
}

View file

@ -1,6 +1,7 @@
package com.github.continuedev.continueintellijextension.browser
import com.intellij.openapi.Disposable
import com.intellij.openapi.application.ApplicationManager
import com.intellij.openapi.components.Service
import com.intellij.openapi.components.service
import com.intellij.openapi.project.Project
@ -8,16 +9,51 @@ import com.intellij.openapi.util.Disposer
import com.intellij.ui.jcef.JBCefApp
@Service(Service.Level.PROJECT)
class ContinueBrowserService(project: Project): Disposable {
class ContinueBrowserService(val project: Project): Disposable {
private val browser: ContinueBrowser? =
if (JBCefApp.isSupported())
ContinueBrowser(project)
else null
private var browser: ContinueBrowser? = null
init {
load()
}
override fun dispose() {
if (browser != null)
Disposer.dispose(browser)
browser?.let { Disposer.dispose(it) }
browser = null
}
private fun load(): ContinueBrowser? {
if (browser != null) {
return browser
}
if (!JBCefApp.isSupported()) {
return null
}
val newBrowser = ContinueBrowser(project)
Disposer.register(this, newBrowser)
this.browser = newBrowser
return this.browser
}
/**
* Reloads the browser by disposing the current one and creating a new one.
* This method is intended for use when browser is frozen (unresponsive).
*/
fun reload() {
// Store the old browser instance to be disposed later
val oldBrowser = browser
browser = null
// Dispose the old browser after the new one is loaded and UI is updated.
// This avoids race conditions. We can do this on a background thread.
oldBrowser?.let {
ApplicationManager.getApplication().invokeLater {
Disposer.dispose(it)
}
}
load()
}
companion object {

View file

@ -35,7 +35,7 @@ class ConfigJsonSchemaFileProvider : JsonSchemaFileProvider {
if (`is` == null) {
throw IOException("Resource not found: config_schema.json")
}
val content = StreamUtil.readText(`is`, StandardCharsets.UTF_8)
val content = `is`.bufferedReader(StandardCharsets.UTF_8).use { it.readText() }
val filepath = Paths.get(getContinueGlobalPath(), "config_schema.json").toString()
File(filepath).writeText(content)
return LocalFileSystem.getInstance().findFileByPath(filepath)

View file

@ -35,7 +35,7 @@ class ConfigRcJsonSchemaFileProvider : JsonSchemaFileProvider {
if (`is` == null) {
throw IOException("Resource not found: continue_rc_schema.json")
}
val content = StreamUtil.readText(`is`, StandardCharsets.UTF_8)
val content = `is`.bufferedReader(StandardCharsets.UTF_8).use { it.readText() }
val filepath = Paths.get(getContinueGlobalPath(), "continue_rc_schema.json").toString()
File(filepath).writeText(content)
return LocalFileSystem.getInstance().findFileByPath(filepath)

View file

@ -64,7 +64,8 @@ class CoreMessenger(
// Responses for messageId
responseListeners[messageId]?.let { listener ->
listener(data)
val done = (data as Map<String, Boolean>)["done"]
@Suppress("UNCHECKED_CAST")
val done = (data as? Map<String, Boolean>)?.get("done")
if (done == true) {
responseListeners.remove(messageId)

View file

@ -33,7 +33,7 @@ import com.intellij.psi.PsiDocumentManager
import com.intellij.testFramework.LightVirtualFile
import kotlinx.coroutines.*
import org.jetbrains.plugins.terminal.ShellTerminalWidget
import org.jetbrains.plugins.terminal.TerminalView
import org.jetbrains.plugins.terminal.TerminalToolWindowManager
import java.awt.Toolkit
import java.awt.datatransfer.DataFlavor
import java.io.BufferedReader
@ -204,10 +204,10 @@ class IntelliJIDE(
try {
val toolWindow = ToolWindowManager.getInstance(project).getToolWindow("Terminal")
val terminalView = TerminalView.getInstance(project)
val terminalManager = TerminalToolWindowManager.getInstance(project)
// Find the first terminal widget selected, whatever its state, running command or not.
val widget = terminalView.getWidgets().filterIsInstance<ShellTerminalWidget>().firstOrNull {
toolWindow?.getContentManager()?.getContent(it)?.isSelected ?: false
val widget = terminalManager.getWidgets().filterIsInstance<ShellTerminalWidget>().firstOrNull {
toolWindow?.contentManager?.getContent(it)?.isSelected ?: false
}
if (widget != null) {
@ -284,23 +284,23 @@ class IntelliJIDE(
val toolWindow = ToolWindowManager.getInstance(project).getToolWindow("Terminal")
toolWindow?.activate({
try {
val terminalView = TerminalView.getInstance(project)
val terminalManager = TerminalToolWindowManager.getInstance(project)
var widget: ShellTerminalWidget? = null
// 1. Handle reuseTerminal option
if (terminalOptions.reuseTerminal == true && terminalView.getWidgets().isNotEmpty()) {
if (terminalOptions.reuseTerminal == true && terminalManager.getWidgets().isNotEmpty()) {
// 2. Find by terminalName if provided
if (terminalOptions.terminalName != null) {
widget = terminalView.getWidgets().filterIsInstance<ShellTerminalWidget>()
widget = terminalManager.getWidgets().filterIsInstance<ShellTerminalWidget>()
.firstOrNull {
toolWindow.contentManager.getContent(it).tabName == terminalOptions.terminalName
&& !it.hasRunningCommands()
}
} else {
// 3. Find active terminal, or fall back to the first one
widget = terminalView.getWidgets().filterIsInstance<ShellTerminalWidget>()
widget = terminalManager.getWidgets().filterIsInstance<ShellTerminalWidget>()
.firstOrNull { toolWindow.contentManager.getContent(it).isSelected }
?: terminalView.getWidgets().filterIsInstance<ShellTerminalWidget>().firstOrNull {
?: terminalManager.getWidgets().filterIsInstance<ShellTerminalWidget>().firstOrNull {
!it.hasRunningCommands()
}
}
@ -308,7 +308,7 @@ class IntelliJIDE(
// 4. Create a new terminal if needed
if (widget == null) {
widget = terminalView.createLocalShellWidget(
widget = terminalManager.createLocalShellWidget(
project.basePath,
terminalOptions.terminalName,
true

View file

@ -91,7 +91,7 @@ class FileUtils(
private fun readDocument(file: VirtualFile, maxLength: Int): String? {
val document = FileDocumentManager.getInstance().getDocument(file)
?: return ""
?: return null
val length = min(document.textLength, maxLength)
return document.getText(TextRange(0, length))
}

View file

@ -43,7 +43,12 @@ class EditorComponentInlaysManager(val editor: EditorImpl, private val onlyOneIn
@RequiresEdt
fun insert(lineIndex: Int, component: JComponent, showAbove: Boolean = false): Disposable? {
if (Disposer.isDisposed(this)) return null
try {
// Check if editor is disposed
if (editor.isDisposed) return null
} catch (e: Exception) {
return null
}
if (onlyOneInlay) {
// Dispose all other inlays
@ -106,7 +111,7 @@ class EditorComponentInlaysManager(val editor: EditorImpl, private val onlyOneIn
init {
val metrics = editor.getFontMetrics(Font.PLAIN)
val spaceWidth = FontLayoutService.getInstance().charWidth2D(metrics, ' '.toInt())
val spaceWidth = FontLayoutService.getInstance().charWidth2D(metrics, ' '.code)
// -4 to create some space
maximumEditorTextWidth = ceil(spaceWidth * (editor.settings.getRightMargin(editor.project)) - 4).toInt()

View file

@ -218,7 +218,9 @@ class ContinueNextEditService(private val project: Project) : NextEditService {
private fun parseNextEditOutcome(response: Any?): NextEditOutcome? {
return try {
@Suppress("UNCHECKED_CAST")
val responseMap = response as? Map<String, Any> ?: return null
@Suppress("UNCHECKED_CAST")
val contentMap = responseMap["content"] as? Map<String, Any> ?: return null
parseNextEditOutcomeFromMap(contentMap)
@ -231,6 +233,7 @@ class ContinueNextEditService(private val project: Project) : NextEditService {
private fun parseNextEditOutcomeFromMap(contentMap: Map<String, Any>): NextEditOutcome? {
return try {
// Extract position data
@Suppress("UNCHECKED_CAST")
val cursorPos = contentMap["cursorPosition"] as? Map<String, Any>
val cursorPosition = if (cursorPos != null) {
Position(
@ -241,6 +244,7 @@ class ContinueNextEditService(private val project: Project) : NextEditService {
Position(0, 0)
}
@Suppress("UNCHECKED_CAST")
val finalCursorPos = contentMap["finalCursorPosition"] as? Map<String, Any>
val finalCursorPosition = if (finalCursorPos != null) {
Position(
@ -252,6 +256,7 @@ class ContinueNextEditService(private val project: Project) : NextEditService {
}
// Extract diffLines
@Suppress("UNCHECKED_CAST")
val diffLinesRaw = contentMap["diffLines"] as? List<Map<String, Any>> ?: emptyList()
val diffLines = diffLinesRaw.map { diffLineMap ->
DiffLine(
@ -313,15 +318,21 @@ class ContinueNextEditService(private val project: Project) : NextEditService {
private fun parseProcessedItem(response: Any?): ProcessedItem? {
return try {
@Suppress("UNCHECKED_CAST")
val responseMap = response as? Map<String, Any> ?: return null
val content = responseMap["content"] as Map<String, Any> ?: return null
@Suppress("UNCHECKED_CAST")
val content = responseMap["content"] as? Map<String, Any> ?: return null
// Parse location (RangeInFile)
@Suppress("UNCHECKED_CAST")
val locationMap = content["location"] as? Map<String, Any> ?: return null
val filepath = locationMap["filepath"] as? String ?: return null
@Suppress("UNCHECKED_CAST")
val rangeMap = locationMap["range"] as? Map<String, Any> ?: return null
@Suppress("UNCHECKED_CAST")
val startMap = rangeMap["start"] as? Map<String, Any> ?: return null
@Suppress("UNCHECKED_CAST")
val endMap = rangeMap["end"] as? Map<String, Any> ?: return null
val startPosition = Position(
@ -338,6 +349,7 @@ class ContinueNextEditService(private val project: Project) : NextEditService {
val location = com.github.continuedev.continueintellijextension.RangeInFile(filepath, range)
// Parse outcome (NextEditOutcome) - reuse existing logic from parseNextEditOutcome
@Suppress("UNCHECKED_CAST")
val outcomeData = content["outcome"] as? Map<String, Any> ?: return null
val outcome = parseNextEditOutcomeFromMap(outcomeData) ?: return null

View file

@ -1,6 +1,7 @@
package com.github.continuedev.continueintellijextension.services
import com.github.continuedev.continueintellijextension.constants.getConfigJsonPath
import com.github.continuedev.continueintellijextension.constants.getConfigJsPath
import com.github.continuedev.continueintellijextension.error.ContinueSentryService
import com.google.gson.Gson
import com.intellij.openapi.application.ApplicationManager
@ -122,10 +123,19 @@ open class ContinueExtensionSettings : PersistentStateComponent<ContinueExtensio
connection.addRequestProperty("Authorization", "Bearer $token")
}.readString()
val response = Gson().fromJson(responseBody, ContinueRemoteConfigSyncResponse::class.java)
val file = File(getConfigJsonPath(URL(url).host))
response.configJs.let { file.writeText(it!!) }
response.configJson.let { file.writeText(it!!) }
} catch (e: IOException) {
val hostname = URL(url).host
// Write configJson to config.json if present
if (!response.configJson.isNullOrEmpty()) {
File(getConfigJsonPath(hostname)).writeText(response.configJson!!)
}
// Write configJs to config.js if present
if (!response.configJs.isNullOrEmpty()) {
File(getConfigJsPath(hostname)).writeText(response.configJs!!)
}
} catch (e: Exception) {
// Catch all exceptions including JsonSyntaxException
service<ContinueSentryService>().report(e, "Unexpected exception during remote config sync")
}
}
@ -133,18 +143,23 @@ open class ContinueExtensionSettings : PersistentStateComponent<ContinueExtensio
// Create a scheduled task to sync remote config every `remoteConfigSyncPeriod` minutes
fun addRemoteSyncJob() {
// Cancel existing job if present
if (remoteSyncFuture != null) {
remoteSyncFuture?.cancel(false)
remoteSyncFuture = null
}
instance.remoteSyncFuture = AppExecutorUtil.getAppScheduledExecutorService()
.scheduleWithFixedDelay(
::syncRemoteConfig,
0,
continueState.remoteConfigSyncPeriod.toLong(),
TimeUnit.MINUTES
)
// Only schedule sync job if remote config server URL is configured
val remoteServerUrl = continueState.remoteConfigServerUrl
if (remoteServerUrl != null && remoteServerUrl.isNotEmpty()) {
instance.remoteSyncFuture = AppExecutorUtil.getAppScheduledExecutorService()
.scheduleWithFixedDelay(
::syncRemoteConfig,
0,
continueState.remoteConfigSyncPeriod.toLong(),
TimeUnit.MINUTES
)
}
}
}

View file

@ -1,6 +1,6 @@
package com.github.continuedev.continueintellijextension.utils
import com.intellij.ide.plugins.PluginManager
import com.intellij.ide.plugins.PluginManagerCore
import com.intellij.openapi.extensions.PluginId
import com.github.continuedev.continueintellijextension.constants.ContinueConstants
import java.nio.file.Path
@ -14,7 +14,7 @@ import java.nio.file.Paths
*/
fun getContinuePluginPath(): Path {
val pluginDescriptor =
PluginManager.getPlugin(PluginId.getId(ContinueConstants.PLUGIN_ID)) ?: throw Exception("Plugin not found")
PluginManagerCore.getPlugin(PluginId.getId(ContinueConstants.PLUGIN_ID)) ?: throw Exception("Plugin not found")
return pluginDescriptor.pluginPath
}

View file

@ -155,6 +155,14 @@
<override-text place="GoToAction" text="Settings"/>
</action>
<action id="continue.reloadPage"
class="com.github.continuedev.continueintellijextension.actions.ReloadBrowserAction"
icon="AllIcons.Actions.Refresh"
text="Reload Continue Browser"
description="Reload Continue Browser">
<override-text place="GoToAction" text="Reload Continue Browser"/>
</action>
<action id="continue.openLogs"
class="com.github.continuedev.continueintellijextension.actions.OpenLogsAction"
icon="AllIcons.General.ShowInfos"
@ -167,6 +175,7 @@
<reference ref="continue.newContinueSession"/>
<reference ref="continue.viewHistory"/>
<reference ref="continue.openConfigPage"/>
<reference ref="continue.reloadPage" />
</group>
<action id="continue.focusContinueInput"

View file

@ -219,7 +219,8 @@ describe("Keyboard Shortcuts", () => {
await GUIActions.executeFocusContinueInputShortcut(driver);
}).timeout(DEFAULT_TIMEOUT.XL);
it("Should create a code block with the whole file when Cmd+L is pressed on an empty line", async () => {
// the below 2 skips are skipped because some behaviour from https://github.com/continuedev/continue/pull/6711 was reverted
it.skip("Should create a code block with the whole file when Cmd+L is pressed on an empty line", async () => {
const text = "Hello,\n\n\nworld!";
await editor.setText(text);
@ -239,23 +240,26 @@ describe("Keyboard Shortcuts", () => {
expect(codeblockContent).to.equal(text);
});
it("Should create a code block when Cmd+L is pressed on a non-empty line", async () => {
const text = "Hello, world!";
it.skip(
"Should create a code block when Cmd+L is pressed on a non-empty line",
async () => {
const text = "Hello, world!";
await editor.setText(text);
await editor.moveCursor(1, 7); //Move cursor to the 1st space
await editor.setText(text);
await editor.moveCursor(1, 7); //Move cursor to the 1st space
await GUIActions.executeFocusContinueInputShortcut(driver);
await GUIActions.executeFocusContinueInputShortcut(driver);
({ view } = await GUIActions.switchToReactIframe());
({ view } = await GUIActions.switchToReactIframe());
const codeBlock = await TestUtils.waitForSuccess(() =>
GUISelectors.getInputBoxCodeBlockAtIndex(view, 0),
);
const codeblockContent = await codeBlock.getAttribute(
"data-codeblockcontent",
);
const codeBlock = await TestUtils.waitForSuccess(() =>
GUISelectors.getInputBoxCodeBlockAtIndex(view, 0),
);
const codeblockContent = await codeBlock.getAttribute(
"data-codeblockcontent",
);
expect(codeblockContent).to.equal(text);
}).timeout(DEFAULT_TIMEOUT.XL);
expect(codeblockContent).to.equal(text);
},
).timeout(DEFAULT_TIMEOUT.XL);
});

View file

@ -1,12 +1,12 @@
{
"name": "continue",
"version": "1.3.21",
"version": "1.3.26",
"lockfileVersion": 3,
"requires": true,
"packages": {
"": {
"name": "continue",
"version": "1.3.21",
"version": "1.3.26",
"license": "Apache-2.0",
"dependencies": {
"@continuedev/config-types": "file:../../packages/config-types",
@ -48,7 +48,7 @@
"socket.io-client": "^4.7.2",
"strip-ansi": "^7.1.0",
"svg-builder": "^2.0.0",
"systeminformation": "^5.23.7",
"systeminformation": "^5.27.11",
"tailwindcss": "^3.3.2",
"undici": "^6.21.3",
"uuid": "^9.0.1",
@ -130,7 +130,7 @@
"fastest-levenshtein": "^1.0.16",
"filtrex": "^3.1.0",
"follow-redirects": "^1.15.5",
"google-auth-library": "^9.14.2",
"google-auth-library": "^10.4.1",
"handlebars": "^4.7.8",
"http-proxy-agent": "^7.0.1",
"https-proxy-agent": "^7.0.3",
@ -154,7 +154,7 @@
"pg": "^8.11.3",
"plist": "^3.1.0",
"posthog-node": "^3.6.3",
"puppeteer": "^22.4.0",
"puppeteer": "^24.15.0",
"puppeteer-chromium-resolver": "^23.0.0",
"quick-lru": "^7.0.0",
"replicate": "^0.26.0",
@ -175,7 +175,7 @@
"winston": "^3.17.0",
"workerpool": "^9.1.3",
"yaml": "^2.4.2",
"zod": "^3.24.2"
"zod": "^3.25.76"
},
"devDependencies": {
"@babel/preset-env": "^7.24.7",
@ -223,7 +223,7 @@
"version": "1.0.14",
"license": "Apache-2.0",
"dependencies": {
"zod": "^3.24.2"
"zod": "^3.25.76"
},
"devDependencies": {
"@types/node": "^20.11.19",
@ -12765,9 +12765,9 @@
}
},
"node_modules/systeminformation": {
"version": "5.25.11",
"resolved": "https://registry.npmjs.org/systeminformation/-/systeminformation-5.25.11.tgz",
"integrity": "sha512-jI01fn/t47rrLTQB0FTlMCC+5dYx8o0RRF+R4BPiUNsvg5OdY0s9DKMFmJGrx5SwMZQ4cag0Gl6v8oycso9b/g==",
"version": "5.27.11",
"resolved": "https://registry.npmjs.org/systeminformation/-/systeminformation-5.27.11.tgz",
"integrity": "sha512-K3Lto/2m3K2twmKHdgx5B+0in9qhXK4YnoT9rIlgwN/4v7OV5c8IjbeAUkuky/6VzCQC7iKCAqi8rZathCdjHg==",
"license": "MIT",
"os": [
"darwin",

View file

@ -767,7 +767,7 @@
"socket.io-client": "^4.7.2",
"strip-ansi": "^7.1.0",
"svg-builder": "^2.0.0",
"systeminformation": "^5.23.7",
"systeminformation": "^5.27.11",
"tailwindcss": "^3.3.2",
"undici": "^6.21.3",
"uuid": "^9.0.1",

View file

@ -94,7 +94,10 @@ export function getRangeInFileWithContents(
export async function addHighlightedCodeToContext(
webviewProtocol: VsCodeWebviewProtocol | undefined,
) {
const rangeInFileWithContents = getRangeInFileWithContents(true);
// the passed argument below was set to true in https://github.com/continuedev/continue/pull/6711
// which would add the entire file contents when selection is empty
// some of this behaviour is reverted and needs further investigation
const rangeInFileWithContents = getRangeInFileWithContents(false);
if (rangeInFileWithContents) {
webviewProtocol?.request("highlightedCode", {
rangeInFileWithContents,

74
gui/package-lock.json generated
View file

@ -15,9 +15,9 @@
"@reduxjs/toolkit": "^2.3.0",
"@sentry/react": "^9.43.0",
"@sentry/vite-plugin": "^4.0.2",
"@tiptap/core": "^2.3.2",
"@tiptap/extension-document": "^2.3.2",
"@tiptap/extension-dropcursor": "^2.1.16",
"@tiptap/core": "^2.27.0",
"@tiptap/extension-document": "^2.27.0",
"@tiptap/extension-dropcursor": "^2.27.0",
"@tiptap/extension-history": "^2.3.2",
"@tiptap/extension-image": "^2.1.16",
"@tiptap/extension-mention": "^2.1.13",
@ -43,7 +43,7 @@
"mermaid": "^11.10.0",
"minisearch": "^7.0.2",
"mustache": "^4.2.0",
"posthog-js": "^1.130.1",
"posthog-js": "^1.281.0",
"react": "^18.2.0",
"react-dom": "^18.2.0",
"react-error-boundary": "^4.0.11",
@ -147,7 +147,7 @@
"fastest-levenshtein": "^1.0.16",
"filtrex": "^3.1.0",
"follow-redirects": "^1.15.5",
"google-auth-library": "^9.14.2",
"google-auth-library": "^10.4.1",
"handlebars": "^4.7.8",
"http-proxy-agent": "^7.0.1",
"https-proxy-agent": "^7.0.3",
@ -171,7 +171,7 @@
"pg": "^8.11.3",
"plist": "^3.1.0",
"posthog-node": "^3.6.3",
"puppeteer": "^22.4.0",
"puppeteer": "^24.15.0",
"puppeteer-chromium-resolver": "^23.0.0",
"quick-lru": "^7.0.0",
"replicate": "^0.26.0",
@ -192,7 +192,7 @@
"winston": "^3.17.0",
"workerpool": "^9.1.3",
"yaml": "^2.4.2",
"zod": "^3.24.2"
"zod": "^3.25.76"
},
"devDependencies": {
"@babel/preset-env": "^7.24.7",
@ -241,8 +241,8 @@
"license": "Apache-2.0",
"dependencies": {
"@continuedev/config-types": "^1.0.14",
"yaml": "^2.6.1",
"zod": "^3.24.2"
"yaml": "^2.8.1",
"zod": "^3.25.76"
},
"bin": {
"config-yaml": "dist/cli.js"
@ -1987,9 +1987,13 @@
}
},
"node_modules/@posthog/core": {
"version": "1.0.2",
"resolved": "https://registry.npmjs.org/@posthog/core/-/core-1.0.2.tgz",
"integrity": "sha512-hWk3rUtJl2crQK0WNmwg13n82hnTwB99BT99/XI5gZSvIlYZ1TPmMZE8H2dhJJ98J/rm9vYJ/UXNzw3RV5HTpQ=="
"version": "1.5.5",
"resolved": "https://registry.npmjs.org/@posthog/core/-/core-1.5.5.tgz",
"integrity": "sha512-m7G1EQTgo9xrr3lZxCp9C2egP99MSRpIDD95wYzwUPxMesKxI0xEQ+TC5LS/XOXIdmsNvsx4UcxwmzhSwD2GWA==",
"license": "MIT",
"dependencies": {
"cross-spawn": "^7.0.6"
}
},
"node_modules/@react-aria/focus": {
"version": "3.21.1",
@ -3093,9 +3097,10 @@
}
},
"node_modules/@tiptap/core": {
"version": "2.26.1",
"resolved": "https://registry.npmjs.org/@tiptap/core/-/core-2.26.1.tgz",
"integrity": "sha512-fymyd/XZvYiHjBoLt1gxs024xP/LY26d43R1vluYq7AHBL/7DE3ywzy+1GEsGyAv5Je2L0KBhNIR/izbq3Kaqg==",
"version": "2.27.1",
"resolved": "https://registry.npmjs.org/@tiptap/core/-/core-2.27.1.tgz",
"integrity": "sha512-nkerkl8syHj44ZzAB7oA2GPmmZINKBKCa79FuNvmGJrJ4qyZwlkDzszud23YteFZEytbc87kVd/fP76ROS6sLg==",
"license": "MIT",
"funding": {
"type": "github",
"url": "https://github.com/sponsors/ueberdosis"
@ -3182,9 +3187,10 @@
}
},
"node_modules/@tiptap/extension-document": {
"version": "2.26.1",
"resolved": "https://registry.npmjs.org/@tiptap/extension-document/-/extension-document-2.26.1.tgz",
"integrity": "sha512-2P2IZp1NRAE+21mRuFBiP3X2WKfZ6kUC23NJKpn8bcOamY3obYqCt0ltGPhE4eR8n8QAl2fI/3jIgjR07dC8ow==",
"version": "2.27.1",
"resolved": "https://registry.npmjs.org/@tiptap/extension-document/-/extension-document-2.27.1.tgz",
"integrity": "sha512-NtJzJY7Q/6XWjpOm5OXKrnEaofrcc1XOTYlo/SaTwl8k2bZo918Vl0IDBWhPVDsUN7kx767uHwbtuQZ+9I82hA==",
"license": "MIT",
"funding": {
"type": "github",
"url": "https://github.com/sponsors/ueberdosis"
@ -3194,9 +3200,10 @@
}
},
"node_modules/@tiptap/extension-dropcursor": {
"version": "2.26.1",
"resolved": "https://registry.npmjs.org/@tiptap/extension-dropcursor/-/extension-dropcursor-2.26.1.tgz",
"integrity": "sha512-JkDQU2ZYFOuT5mNYb8OiWGwD1HcjbtmX8tLNugQbToECmz9WvVPqJmn7V/q8VGpP81iEECz/IsyRmuf2kSD4uA==",
"version": "2.27.1",
"resolved": "https://registry.npmjs.org/@tiptap/extension-dropcursor/-/extension-dropcursor-2.27.1.tgz",
"integrity": "sha512-3MBQRGHHZ0by3OT0CWbLKS7J3PH9PpobrXjmIR7kr0nde7+bHqxXiVNuuIf501oKU9rnEUSedipSHkLYGkmfsA==",
"license": "MIT",
"funding": {
"type": "github",
"url": "https://github.com/sponsors/ueberdosis"
@ -5461,7 +5468,6 @@
"version": "7.0.6",
"resolved": "https://registry.npmjs.org/cross-spawn/-/cross-spawn-7.0.6.tgz",
"integrity": "sha512-uV2QOWP2nWzsy2aMp8aRibhi9dlzF5Hgh5SHaB9OiTGEyDTiJJyx0uy51QXdyWbtAHNua4XJzUKca3OzKUd3vA==",
"dev": true,
"dependencies": {
"path-key": "^3.1.0",
"shebang-command": "^2.0.0",
@ -10794,7 +10800,6 @@
"version": "3.1.1",
"resolved": "https://registry.npmjs.org/path-key/-/path-key-3.1.1.tgz",
"integrity": "sha512-ojmeN0qd+y0jszEtoY48r0Peq5dwMEkIlCOu6Q5f41lfkswXuKtYrhgoTpLnyIcHm24Uhqx+5Tqm2InSwLhE6Q==",
"dev": true,
"engines": {
"node": ">=8"
}
@ -11105,27 +11110,16 @@
"integrity": "sha512-1NNCs6uurfkVbeXG4S8JFT9t19m45ICnif8zWLd5oPSZ50QnwMfK+H3jv408d4jw/7Bttv5axS5IiHoLaVNHeQ=="
},
"node_modules/posthog-js": {
"version": "1.262.0",
"resolved": "https://registry.npmjs.org/posthog-js/-/posthog-js-1.262.0.tgz",
"integrity": "sha512-RPbm+0qLVsgKQEN3KjfYAK+0qOwBPT28RHDg4WIstN8/z2m6PczMqSirOIXSqbvDwSCQQQRPTKS6fSurevqJMA==",
"version": "1.297.2",
"resolved": "https://registry.npmjs.org/posthog-js/-/posthog-js-1.297.2.tgz",
"integrity": "sha512-pDtCKHpKegV1D5Yk9PBmkFwI9FMnLJm0TsBO5c5/PhPq5Om4y/t+1qqbNcLCdLajkuYl2px9UlRTzycQ6W7Vmw==",
"license": "SEE LICENSE IN LICENSE",
"dependencies": {
"@posthog/core": "1.0.2",
"@posthog/core": "1.5.5",
"core-js": "^3.38.1",
"fflate": "^0.4.8",
"preact": "^10.19.3",
"web-vitals": "^4.2.4"
},
"peerDependencies": {
"@rrweb/types": "2.0.0-alpha.17",
"rrweb-snapshot": "2.0.0-alpha.17"
},
"peerDependenciesMeta": {
"@rrweb/types": {
"optional": true
},
"rrweb-snapshot": {
"optional": true
}
}
},
"node_modules/posthog-js/node_modules/fflate": {
@ -12893,7 +12887,6 @@
"version": "2.0.0",
"resolved": "https://registry.npmjs.org/shebang-command/-/shebang-command-2.0.0.tgz",
"integrity": "sha512-kHxr2zZpYtdmrN1qDjrrX/Z1rR1kG8Dx+gkpK1G4eXmvXswmcE1hTWBWYUzlraYw1/yZp6YuDY77YtvbN0dmDA==",
"dev": true,
"dependencies": {
"shebang-regex": "^3.0.0"
},
@ -12905,7 +12898,6 @@
"version": "3.0.0",
"resolved": "https://registry.npmjs.org/shebang-regex/-/shebang-regex-3.0.0.tgz",
"integrity": "sha512-7++dFhtcx3353uBaq8DDR4NuxBetBzC7ZQOhmTQInHEd6bSrXdiEyzCvG07Z44UYdLShWUyXt5M/yhz8ekcb1A==",
"dev": true,
"engines": {
"node": ">=8"
}

View file

@ -24,9 +24,9 @@
"@reduxjs/toolkit": "^2.3.0",
"@sentry/react": "^9.43.0",
"@sentry/vite-plugin": "^4.0.2",
"@tiptap/core": "^2.3.2",
"@tiptap/extension-document": "^2.3.2",
"@tiptap/extension-dropcursor": "^2.1.16",
"@tiptap/core": "^2.27.0",
"@tiptap/extension-document": "^2.27.0",
"@tiptap/extension-dropcursor": "^2.27.0",
"@tiptap/extension-history": "^2.3.2",
"@tiptap/extension-image": "^2.1.16",
"@tiptap/extension-mention": "^2.1.13",
@ -52,7 +52,7 @@
"mermaid": "^11.10.0",
"minisearch": "^7.0.2",
"mustache": "^4.2.0",
"posthog-js": "^1.130.1",
"posthog-js": "^1.281.0",
"react": "^18.2.0",
"react-dom": "^18.2.0",
"react-error-boundary": "^4.0.11",

View file

@ -7,6 +7,7 @@ import styled from "styled-components";
import { AnimatedEllipsis } from "../../AnimatedEllipsis";
import StyledMarkdownPreview from "../../StyledMarkdownPreview";
import { Button } from "../../ui";
const MarkdownWrapper = styled.div`
& > div > *:first-child {
@ -57,10 +58,10 @@ function ThinkingBlockPeek({
return duplicateRedactedThinkingBlock ? null : (
<div className="thread-message">
<div className="mt-1 flex flex-col px-4">
<div className="flex min-w-0 flex-row items-center justify-between gap-2">
<button
type="button"
className="text-description flex min-w-0 cursor-pointer flex-row items-center gap-1.5 text-xs transition-colors duration-200 ease-in-out hover:brightness-125"
<div>
<Button
variant="outline"
className="text-description flex-0 border-border m-0 mb-2 flex min-w-0 cursor-pointer flex-row items-center gap-1.5 rounded-full border-[0.5px] border-solid px-3 text-xs transition-colors duration-200 ease-in-out hover:brightness-125"
data-testid="thinking-block-peek"
aria-expanded={open}
aria-controls={`thinking-block-content-${index}`}
@ -83,11 +84,11 @@ function ThinkingBlockPeek({
) : (
<ChevronDownIcon className="h-3 w-3" />
)}
</button>
</Button>
</div>
<div
id={`thinking-block-content-${index}`}
className={`mt-2 overflow-y-auto transition-all duration-300 ease-in-out ${
className={`overflow-y-auto transition-all duration-300 ease-in-out ${
open ? "max-h-[50vh] opacity-100" : "max-h-0 opacity-0"
}`}
>

View file

@ -54,7 +54,7 @@ export function useInputHistory(historyKey: string) {
return;
}
setCurrentIndex(inputHistory.length + 1);
setCurrentIndex(Math.min(inputHistory.length + 1, MAX_HISTORY_LENGTH));
setInputHistory((prev) => {
return [...prev, inputValue].slice(-MAX_HISTORY_LENGTH);
});

Some files were not shown because too many files have changed in this diff Show more