Elffuss BraidHub

kikocis/continue public

Merge remote-tracking branch 'origin/main' into pe/autoformat-results
Changesetad3929d81b86f45985bc8c3190879bd3ad5dab4485ac25b7699a03e3ccd6c488
AuthorPatrick Erichsen <patrick.a.erichsen@gmail.com> · 2025-09-09 11:33 -07:00
CommitterPatrick Erichsen <patrick.a.erichsen@gmail.com> · 2025-09-09 11:33 -07:00
Parents9c134d8c1202, b0a27770390e

Browse the files at this changeset

153 files changed

modified .github/actions/run-vscode-e2e-test/action.yml +11 −10
@@ -1,25 +1,25 @@
1-name: 'Run VS Code E2E Test'
2-description: 'Run a single VS Code E2E test with all required setup'
1+name: "Run VS Code E2E Test"
2+description: "Run a single VS Code E2E test with all required setup"
33 inputs:
44 test_file:
5- description: 'E2E test file to run'
5+ description: "E2E test file to run"
66 required: true
77 command:
8- description: 'Command to run (e2e:ci:run or e2e:ci:run-yaml)'
8+ description: "Command to run (e2e:ci:run or e2e:ci:run-yaml)"
99 required: true
1010 ssh_key:
11- description: 'SSH private key for testing'
11+ description: "SSH private key for testing"
1212 required: false
1313 ssh_host:
14- description: 'SSH host for testing'
14+ description: "SSH host for testing"
1515 required: false
1616 is_fork:
17- description: 'Whether this is a fork (affects SSH tests)'
17+ description: "Whether this is a fork (affects SSH tests)"
1818 required: false
19- default: 'false'
19+ default: "false"
2020
2121 runs:
22- using: 'composite'
22+ using: "composite"
2323 steps:
2424 - uses: actions/setup-node@v4
2525 with:
@@ -58,6 +58,7 @@
5858 cd core
5959 npm ci
6060 cd ../extensions/vscode
61+ npm ci
6162 npm run e2e:ci:download
6263 else
6364 cd core
@@ -131,4 +132,4 @@
131132 uses: actions/upload-artifact@v4
132133 with:
133134 name: e2e-logs-${{ steps.sanitize_filename.outputs.sanitized_test_file || 'unknown' }}-${{ inputs.command == 'e2e:ci:run-yaml' && 'yaml' || 'json' }}
134- path: extensions/vscode/e2e.log
No newline at the end of the file
135+ path: extensions/vscode/e2e.log
added .github/workflows/auto-fix-failed-tests.yml +170 −0
@@ -0,0 +1,170 @@
1+name: Auto Fix Failed Tests
2+
3+on:
4+ workflow_run:
5+ workflows: ["PR Checks", "CLI PR Checks"]
6+ types:
7+ - completed
8+
9+permissions:
10+ contents: write
11+ pull-requests: write
12+ issues: write
13+ actions: read
14+
15+jobs:
16+ fix-failed-tests:
17+ # Only run if the workflow failed
18+ # DISABLED: Remove 'false && ' on the next line to enable auto-fixing
19+ if: false && github.event.workflow_run.conclusion == 'failure'
20+ runs-on: ubuntu-latest
21+
22+ steps:
23+ - name: Get workflow run details
24+ id: workflow-details
25+ uses: actions/github-script@v7
26+ with:
27+ script: |
28+ const workflowRun = context.payload.workflow_run;
29+ const { data: jobs } = await github.rest.actions.listJobsForWorkflowRun({
30+ owner: context.repo.owner,
31+ repo: context.repo.repo,
32+ run_id: workflowRun.id
33+ });
34+
35+ // Find all failed jobs since we're only monitoring specific test workflows
36+ const failedJobs = jobs.jobs.filter(job => job.conclusion === 'failure');
37+
38+ if (failedJobs.length === 0) {
39+ core.info('No failed jobs found');
40+ return null;
41+ }
42+
43+ core.setOutput('has_failed_tests', 'true');
44+ core.setOutput('workflow_name', workflowRun.name);
45+ core.setOutput('workflow_run_id', workflowRun.id);
46+ core.setOutput('head_branch', workflowRun.head_branch);
47+ core.setOutput('head_sha', workflowRun.head_sha);
48+ core.setOutput('failed_jobs', JSON.stringify(failedJobs.map(j => j.name)));
49+
50+ return failedJobs;
51+
52+ - name: Get job logs for failed tests
53+ if: steps.workflow-details.outputs.has_failed_tests == 'true'
54+ id: get-logs
55+ uses: actions/github-script@v7
56+ with:
57+ script: |
58+ const workflowRunId = ${{ github.event.workflow_run.id }};
59+ const { data: jobs } = await github.rest.actions.listJobsForWorkflowRun({
60+ owner: context.repo.owner,
61+ repo: context.repo.repo,
62+ run_id: workflowRunId
63+ });
64+
65+ let errorLogs = '';
66+
67+ for (const job of jobs.jobs) {
68+ if (job.conclusion === 'failure') {
69+ try {
70+ const { data: logData } = await github.rest.actions.downloadJobLogsForWorkflowRun({
71+ owner: context.repo.owner,
72+ repo: context.repo.repo,
73+ job_id: job.id
74+ });
75+
76+ errorLogs += `\n\n=== Job: ${job.name} ===\n`;
77+ errorLogs += logData;
78+ } catch (error) {
79+ core.warning(`Could not fetch logs for job ${job.name}: ${error.message}`);
80+ }
81+ }
82+ }
83+
84+ // Store logs in environment file for next step
85+ const fs = require('fs');
86+ fs.writeFileSync('/tmp/test_failure_logs.txt', errorLogs);
87+
88+ core.setOutput('has_logs', errorLogs.length > 0 ? 'true' : 'false');
89+
90+ - name: Checkout repository
91+ if: steps.workflow-details.outputs.has_failed_tests == 'true'
92+ uses: actions/checkout@v4
93+ with:
94+ token: ${{ secrets.GITHUB_TOKEN }}
95+ fetch-depth: 0
96+ ref: ${{ steps.workflow-details.outputs.head_sha }}
97+
98+ - name: Setup Node.js
99+ if: steps.workflow-details.outputs.has_failed_tests == 'true'
100+ uses: actions/setup-node@v5
101+ with:
102+ node-version: "20"
103+
104+ - name: Install Continue CLI globally
105+ if: steps.workflow-details.outputs.has_failed_tests == 'true'
106+ run: npm i -g @continuedev/cli
107+
108+ - name: Start remote session to fix failed tests
109+ if: steps.workflow-details.outputs.has_failed_tests == 'true'
110+ id: remote-session
111+ env:
112+ CONTINUE_API_KEY: ${{ secrets.CONTINUE_API_KEY }}
113+ run: |
114+ # Create a detailed prompt for fixing the failed tests
115+ cat > /tmp/fix_tests_prompt.txt << 'PROMPT_EOF'
116+ 🔧 **Auto Test Fix Request**
117+
118+ The following tests failed in workflow "${{ steps.workflow-details.outputs.workflow_name }}" (Run ID: ${{ steps.workflow-details.outputs.workflow_run_id }}):
119+
120+ **Failed Jobs:** ${{ steps.workflow-details.outputs.failed_jobs }}
121+ **Branch:** ${{ steps.workflow-details.outputs.head_branch }}
122+ **Commit:** ${{ steps.workflow-details.outputs.head_sha }}
123+
124+ **Your Task:**
125+ 1. Analyze the test failure logs and error messages
126+ 2. Identify the root cause of the test failures
127+ 3. Fix the failing tests by updating the test code or the underlying implementation
128+ 4. Ensure all tests pass after your changes
129+ 5. Commit your fixes with a descriptive message
130+
131+ **Test Failure Context:**
132+ Please examine the repository structure, run the failing tests locally to understand the errors, and implement appropriate fixes.
133+
134+ Focus on:
135+ - Understanding what the tests are trying to validate
136+ - Identifying why they're failing (code changes, environment issues, test logic errors)
137+ - Making minimal, targeted fixes that address the root cause
138+ - Ensuring the fixes don't break other functionality
139+
140+ Please start by examining the failing tests and their error messages, then proceed with the necessary fixes.
141+ PROMPT_EOF
142+
143+ echo "Starting Continue CLI remote session for test fixes..."
144+ echo "Prompt content:"
145+ cat /tmp/fix_tests_prompt.txt
146+
147+ # Start remote session and capture JSON output
148+ SESSION_OUTPUT=$(cat /tmp/fix_tests_prompt.txt | cn remote -s --branch ${{ steps.workflow-details.outputs.head_branch }})
149+ echo "Raw session output: $SESSION_OUTPUT"
150+
151+ # Extract URL from JSON output
152+ SESSION_URL=$(echo "$SESSION_OUTPUT" | jq -r '.url // empty')
153+
154+ if [ -z "$SESSION_URL" ] || [ "$SESSION_URL" = "null" ]; then
155+ echo "Failed to extract session URL from output: $SESSION_OUTPUT"
156+ exit 1
157+ fi
158+
159+ echo "session_url=$SESSION_URL" >> $GITHUB_OUTPUT
160+ echo "✅ Started remote session: $SESSION_URL"
161+
162+ - name: Log session details
163+ if: steps.workflow-details.outputs.has_failed_tests == 'true'
164+ run: |
165+ echo "✅ Successfully started auto-fix session for failed tests"
166+ echo "Workflow: ${{ steps.workflow-details.outputs.workflow_name }}"
167+ echo "Run ID: ${{ steps.workflow-details.outputs.workflow_run_id }}"
168+ echo "Branch: ${{ steps.workflow-details.outputs.head_branch }}"
169+ echo "Session URL: ${{ steps.remote-session.outputs.session_url }}"
170+ echo "Failed jobs: ${{ steps.workflow-details.outputs.failed_jobs }}"
modified .github/workflows/beta-release.yml +1 −1
@@ -24,7 +24,7 @@
2424 token: ${{ secrets.SEMANTIC_RELEASE_TOKEN }}
2525
2626 - name: Setup Node.js
27- uses: actions/setup-node@v4
27+ uses: actions/setup-node@v5
2828 with:
2929 node-version: 20
3030 registry-url: "https://registry.npmjs.org"
modified .github/workflows/cli-pr-checks.yml +3 −2
@@ -25,7 +25,7 @@
2525 uses: actions/checkout@v5
2626
2727 - name: Setup Node.js
28- uses: actions/setup-node@v4
28+ uses: actions/setup-node@v5
2929 with:
3030 node-version: 20
3131 cache: "npm"
@@ -59,6 +59,7 @@
5959 matrix:
6060 os: [ubuntu-latest, windows-latest, macos-latest]
6161 node-version: [18, 20, 22, 24]
62+ fail-fast: false
6263 runs-on: ${{ matrix.os }}
6364
6465 steps:
@@ -66,7 +67,7 @@
6667 uses: actions/checkout@v5
6768
6869 - name: Setup Node.js ${{ matrix.node-version }}
69- uses: actions/setup-node@v4
70+ uses: actions/setup-node@v5
7071 with:
7172 node-version: ${{ matrix.node-version }}
7273
modified .github/workflows/compliance.yaml +2 −2
@@ -41,7 +41,7 @@
4141
4242 - name: Add PR title guidance comment
4343 if: always() && steps.pr-title-check.outputs.valid == 'false'
44- uses: actions/github-script@v7
44+ uses: actions/github-script@v8
4545 with:
4646 script: |
4747 const { data: comments } = await github.rest.issues.listComments({
@@ -104,7 +104,7 @@
104104 uses: actions/checkout@v5
105105
106106 - name: Setup Node.js
107- uses: actions/setup-node@v4
107+ uses: actions/setup-node@v5
108108 with:
109109 node-version-file: ".nvmrc"
110110 cache: "npm"
modified .github/workflows/jetbrains-release.yaml +2 −2
@@ -152,7 +152,7 @@
152152
153153 # # Setup Node.js
154154 - name: Use Node.js from .nvmrc
155- uses: actions/setup-node@v4
155+ uses: actions/setup-node@v5
156156 with:
157157 node-version-file: ".nvmrc"
158158
@@ -370,7 +370,7 @@
370370
371371 # 2. Install npm dependencies
372372 - name: Use Node.js from .nvmrc
373- uses: actions/setup-node@v4
373+ uses: actions/setup-node@v5
374374 with:
375375 node-version-file: ".nvmrc"
376376
modified .github/workflows/label-merged-prs.yml +1 −1
@@ -44,7 +44,7 @@
4444
4545 - name: Determine and apply tier label
4646 if: steps.check-author.outputs.should_label == 'true'
47- uses: actions/github-script@v7
47+ uses: actions/github-script@v8
4848 with:
4949 script: |
5050 const pr = context.payload.pull_request;
modified .github/workflows/main.yaml +1 −1
@@ -70,7 +70,7 @@
7070 with:
7171 fetch-depth: 0
7272
73- - uses: actions/setup-node@v4
73+ - uses: actions/setup-node@v5
7474 with:
7575 node-version-file: ".nvmrc"
7676
modified .github/workflows/pr-checks.yaml +3 −3
@@ -23,7 +23,7 @@
2323 runs-on: ubuntu-latest
2424 steps:
2525 - uses: actions/checkout@v5
26- - uses: actions/setup-node@v4
26+ - uses: actions/setup-node@v5
2727 with:
2828 node-version-file: ".nvmrc"
2929
@@ -224,7 +224,7 @@
224224 test_file_matrix: ${{ steps.vscode-get-test-file-matrix.outputs.test_file_matrix }}
225225 steps:
226226 - uses: actions/checkout@v5
227- - uses: actions/setup-node@v4
227+ - uses: actions/setup-node@v5
228228 with:
229229 node-version-file: ".nvmrc"
230230
@@ -342,7 +342,7 @@
342342 runs-on: ubuntu-latest
343343 steps:
344344 - uses: actions/checkout@v5
345- - uses: actions/setup-node@v4
345+ - uses: actions/setup-node@v5
346346 with:
347347 node-version: 20
348348
modified .github/workflows/preview.yaml +2 −2
@@ -70,7 +70,7 @@
7070 with:
7171 fetch-depth: 0
7272
73- - uses: actions/setup-node@v4
73+ - uses: actions/setup-node@v5
7474 with:
7575 node-version-file: ".nvmrc"
7676
@@ -165,7 +165,7 @@
165165
166166 # 4. Create PR with version bump
167167 - name: Setup Node.js
168- uses: actions/setup-node@v4
168+ uses: actions/setup-node@v5
169169 with:
170170 node-version-file: ".nvmrc"
171171
modified .github/workflows/respond-to-cubic.yaml +48 −10
@@ -29,7 +29,7 @@
2929
3030 - name: Add eyes reaction to comment
3131 if: steps.check-mention.outputs.contains_mention == 'true'
32- uses: actions/github-script@v7
32+ uses: actions/github-script@v8
3333 with:
3434 script: |
3535 await github.rest.reactions.createForIssueComment({
@@ -49,7 +49,7 @@
4949 - name: Get PR information
5050 if: steps.check-mention.outputs.contains_mention == 'true'
5151 id: pr-info
52- uses: actions/github-script@v7
52+ uses: actions/github-script@v8
5353 with:
5454 script: |
5555 const { data: pr } = await github.rest.pulls.get({
@@ -69,7 +69,7 @@
6969
7070 - name: Setup Node.js
7171 if: steps.check-mention.outputs.contains_mention == 'true'
72- uses: actions/setup-node@v4
72+ uses: actions/setup-node@v5
7373 with:
7474 node-version: "20"
7575
@@ -107,7 +107,7 @@
107107
108108 - name: Comment with session URL
109109 if: steps.check-mention.outputs.contains_mention == 'true' && steps.remote-session.outputs.session_url
110- uses: actions/github-script@v7
110+ uses: actions/github-script@v8
111111 with:
112112 script: |
113113 const commentBody = `I've started [a remote session](${{ steps.remote-session.outputs.session_url }}) to help with your request:
@@ -144,7 +144,7 @@
144144
145145 - name: Add eyes reaction to comment
146146 if: steps.check-mention.outputs.contains_mention == 'true'
147- uses: actions/github-script@v7
147+ uses: actions/github-script@v8
148148 with:
149149 script: |
150150 await github.rest.reactions.createForPullRequestReviewComment({
@@ -164,7 +164,7 @@
164164
165165 - name: Setup Node.js
166166 if: steps.check-mention.outputs.contains_mention == 'true'
167- uses: actions/setup-node@v4
167+ uses: actions/setup-node@v5
168168 with:
169169 node-version: "20"
170170
@@ -172,21 +172,59 @@
172172 if: steps.check-mention.outputs.contains_mention == 'true'
173173 run: npm i -g @continuedev/cli
174174
175+ - name: Get review context
176+ if: steps.check-mention.outputs.contains_mention == 'true'
177+ id: review-context
178+ uses: actions/github-script@v8
179+ with:
180+ script: |
181+ let reviewContext = '';
182+
183+ // Check if this comment is a reply to another review comment
184+ if (context.payload.comment.in_reply_to_id) {
185+ try {
186+ const { data: originalComment } = await github.rest.pulls.getReviewComment({
187+ owner: context.repo.owner,
188+ repo: context.repo.repo,
189+ comment_id: context.payload.comment.in_reply_to_id
190+ });
191+
192+ reviewContext = `**Original review comment by @${originalComment.user.login}:**
193+ ${originalComment.body}
194+
195+ **Reply by @${{ github.event.comment.user.login }}:**
196+ ${{ github.event.comment.body }}`;
197+ } catch (error) {
198+ console.log('Could not fetch original comment, using current comment only');
199+ reviewContext = `**Review comment by @${{ github.event.comment.user.login }}:**
200+ ${{ github.event.comment.body }}`;
201+ }
202+ } else {
203+ reviewContext = `**Review comment by @${{ github.event.comment.user.login }}:**
204+ ${{ github.event.comment.body }}`;
205+ }
206+
207+ core.setOutput('context', reviewContext);
208+
175209 - name: Start remote session
176210 if: steps.check-mention.outputs.contains_mention == 'true'
177211 id: remote-session
178212 env:
179213 CONTINUE_API_KEY: ${{ secrets.CONTINUE_API_KEY }}
180214 run: |
215+ # Debug: Echo the branch we're starting the session on
216+ echo "Starting remote session on branch: ${{ github.event.pull_request.head.ref }}"
217+
181218 # Create a temporary file for the prompt to handle special characters and newlines properly
182219 cat > /tmp/prompt.txt << 'PROMPT_EOF'
183- Please help with the following code review comment from @${{ github.event.comment.user.login }} on PR #${{ github.event.pull_request.number }}:
220+ Please help with the following code review discussion from PR #${{ github.event.pull_request.number }}:
184221
185222 **File:** ${{ github.event.comment.path }}
186223 **Line:** ${{ github.event.comment.line || github.event.comment.original_line || 'N/A' }}
187- **Comment:** ${{ github.event.comment.body }}
188224
189- Please analyze the specific file and line mentioned, understand the review feedback, implement the necessary changes, and commit them to this branch.
225+ ${{ steps.review-context.outputs.context }}
226+
227+ Please analyze the specific file and line mentioned, understand the review feedback and any discussion context, implement the necessary changes, and commit them to this branch.
190228 PROMPT_EOF
191229
192230 # Debug output
@@ -211,7 +249,7 @@
211249
212250 - name: Comment with session URL
213251 if: steps.check-mention.outputs.contains_mention == 'true' && steps.remote-session.outputs.session_url
214- uses: actions/github-script@v7
252+ uses: actions/github-script@v8
215253 with:
216254 script: |
217255 const commentBody = `I've started [a remote session](${{ steps.remote-session.outputs.session_url }}) to help with your request:
modified .github/workflows/reusable-release.yml +1 −1
@@ -55,7 +55,7 @@
5555 uses: ./.github/actions/setup-packages
5656
5757 - name: Use Node.js from .nvmrc
58- uses: actions/setup-node@v4
58+ uses: actions/setup-node@v5
5959 with:
6060 node-version-file: ".nvmrc"
6161
modified .github/workflows/similar-issues.yml +3 −3
@@ -31,7 +31,7 @@
3131 path: deja-view
3232
3333 - name: Setup Python
34- uses: actions/setup-python@v5
34+ uses: actions/setup-python@v6
3535 with:
3636 python-version: "3.11"
3737
@@ -190,7 +190,7 @@
190190 echo "confidence=$CONFIDENCE" >> $GITHUB_OUTPUT
191191
192192 - name: Comment with analysis
193- uses: actions/github-script@v7
193+ uses: actions/github-script@v8
194194 with:
195195 script: |
196196 let comment = '';
@@ -307,7 +307,7 @@
307307
308308 - name: Add labels
309309 if: github.event_name == 'issues'
310- uses: actions/github-script@v7
310+ uses: actions/github-script@v8
311311 with:
312312 script: |
313313 const labels = [];
modified .github/workflows/stable-release.yml +1 −1
@@ -40,7 +40,7 @@
4040 token: ${{ secrets.SEMANTIC_RELEASE_TOKEN }}
4141
4242 - name: Setup Node.js
43- uses: actions/setup-node@v4
43+ uses: actions/setup-node@v5
4444 with:
4545 node-version: 20
4646 registry-url: "https://registry.npmjs.org"
modified .github/workflows/stale-issue-helper.yaml +1 −1
@@ -10,7 +10,7 @@
1010 pull-requests: write
1111 runs-on: ubuntu-latest
1212 steps:
13- - uses: actions/stale@v9
13+ - uses: actions/stale@v10
1414 with:
1515 close-issue-message: "This issue was closed because it wasn't updated for 10 days after being marked stale. If it's still important, please reopen + comment and we'll gladly take another look!"
1616 stale-issue-message: "This issue hasn't been updated in 90 days and will be closed after an additional 10 days without activity. If it's still important, please leave a comment and share any new information that would help us address the issue."
modified .github/workflows/vscode-version-bump.yml +1 −1
@@ -21,7 +21,7 @@
2121 gh auth login --with-token <<< "${{ github.token }}"
2222
2323 - name: Use Node.js from .nvmrc
24- uses: actions/setup-node@v4
24+ uses: actions/setup-node@v5
2525 with:
2626 node-version-file: ".nvmrc"
2727
modified core/config/ConfigHandler.ts +13 −19
@@ -59,27 +59,17 @@
5959
6060 constructor(
6161 private readonly ide: IDE,
62- private ideSettingsPromise: Promise<IdeSettings>,
6362 private llmLogger: ILLMLogger,
64- sessionInfoPromise: Promise<ControlPlaneSessionInfo | undefined>,
63+ initialSessionInfoPromise: Promise<ControlPlaneSessionInfo | undefined>,
6564 ) {
66- this.ide = ide;
67- this.ideSettingsPromise = ideSettingsPromise;
68-
6965 this.controlPlaneClient = new ControlPlaneClient(
70- sessionInfoPromise,
71- ideSettingsPromise,
72- this.ide.getIdeInfo(),
66+ initialSessionInfoPromise,
67+ this.ide,
7368 );
7469
7570 // This profile manager will always be available
7671 this.globalLocalProfileManager = new ProfileLifecycleManager(
77- new LocalProfileLoader(
78- ide,
79- ideSettingsPromise,
80- this.controlPlaneClient,
81- this.llmLogger,
82- ),
72+ new LocalProfileLoader(ide, this.controlPlaneClient, this.llmLogger),
8373 this.ide,
8474 );
8575
@@ -97,6 +87,7 @@
9787 }
9888
9989 private workspaceDirs: string[] | null = null;
90+
10091 async getWorkspaceId() {
10192 if (!this.workspaceDirs) {
10293 this.workspaceDirs = await this.ide.getWorkspaceDirs();
@@ -113,6 +104,13 @@
113104 const signal = this.cascadeAbortController.signal;
114105 this.workspaceDirs = null; // forces workspace dirs reload
115106
107+ // Always update globalLocalProfileManager before recreating all the loaders
108+ // during every cascadeInit so it holds the most recent controlPlaneClient.
109+ this.globalLocalProfileManager = new ProfileLifecycleManager(
110+ new LocalProfileLoader(this.ide, this.controlPlaneClient, this.llmLogger),
111+ this.ide,
112+ );
113+
116114 try {
117115 const { orgs, errors } = await this.getOrgs();
118116
@@ -248,7 +246,6 @@
248246 versionSlug: assistant.configResult.config?.version ?? "latest",
249247 controlPlaneClient: this.controlPlaneClient,
250248 ide: this.ide,
251- ideSettingsPromise: this.ideSettingsPromise,
252249 llmLogger: this.llmLogger,
253250 rawYaml: assistant.rawYaml,
254251 orgScopeId: orgScopeId,
@@ -369,7 +366,6 @@
369366 const profiles = [...assistantFiles, ...agentFiles].map((assistant) => {
370367 return new LocalProfileLoader(
371368 this.ide,
372- this.ideSettingsPromise,
373369 this.controlPlaneClient,
374370 this.llmLogger,
375371 assistant,
@@ -394,7 +390,6 @@
394390
395391 // Ide settings change: refresh session and cascade refresh from the top
396392 async updateIdeSettings(ideSettings: IdeSettings) {
397- this.ideSettingsPromise = Promise.resolve(ideSettings);
398393 this.abortCascade();
399394 await this.cascadeInit("IDE settings update");
400395 }
@@ -432,8 +427,7 @@
432427 if (reload) {
433428 this.controlPlaneClient = new ControlPlaneClient(
434429 Promise.resolve(sessionInfo),
435- this.ideSettingsPromise,
436- this.ide.getIdeInfo(),
430+ this.ide,
437431 );
438432 this.abortCascade();
439433 await this.cascadeInit("Control plane session info update");
modified core/config/profile/LocalProfileLoader.ts +1 −3
@@ -1,7 +1,7 @@
11 import { ConfigResult, parseConfigYaml } from "@continuedev/config-yaml";
22
33 import { ControlPlaneClient } from "../../control-plane/client.js";
4-import { ContinueConfig, IDE, IdeSettings, ILLMLogger } from "../../index.js";
4+import { ContinueConfig, IDE, ILLMLogger } from "../../index.js";
55 import { ProfileDescription } from "../ProfileLifecycleManager.js";
66
77 import { getPrimaryConfigFilePath } from "../../util/paths.js";
@@ -15,7 +15,6 @@
1515
1616 constructor(
1717 private ide: IDE,
18- private ideSettingsPromise: Promise<IdeSettings>,
1918 private controlPlaneClient: ControlPlaneClient,
2019 private llmLogger: ILLMLogger,
2120 private overrideAssistantFile?:
@@ -57,7 +56,6 @@
5756 async doLoadConfig(): Promise<ConfigResult<ContinueConfig>> {
5857 const result = await doLoadConfig({
5958 ide: this.ide,
60- ideSettingsPromise: this.ideSettingsPromise,
6159 controlPlaneClient: this.controlPlaneClient,
6260 llmLogger: this.llmLogger,
6361 profileId: this.description.id,
modified core/config/profile/PlatformProfileLoader.ts +2 −10
@@ -2,7 +2,7 @@
22
33 import { ControlPlaneClient } from "../../control-plane/client.js";
44 import { getControlPlaneEnv } from "../../control-plane/env.js";
5-import { ContinueConfig, IDE, IdeSettings, ILLMLogger } from "../../index.js";
5+import { ContinueConfig, IDE, ILLMLogger } from "../../index.js";
66 import { ProfileDescription } from "../ProfileLifecycleManager.js";
77
88 import doLoadConfig from "./doLoadConfig.js";
@@ -28,7 +28,6 @@
2828 private readonly versionSlug: string;
2929 private readonly controlPlaneClient: ControlPlaneClient;
3030 private readonly ide: IDE;
31- private ideSettingsPromise: Promise<IdeSettings>;
3231 private llmLogger: ILLMLogger;
3332 readonly description: ProfileDescription;
3433 private readonly orgScopeId: string | null;
@@ -41,7 +40,6 @@
4140 versionSlug,
4241 controlPlaneClient,
4342 ide,
44- ideSettingsPromise,
4543 llmLogger,
4644 description,
4745 orgScopeId,
@@ -53,7 +51,6 @@
5351 versionSlug: string;
5452 controlPlaneClient: ControlPlaneClient;
5553 ide: IDE;
56- ideSettingsPromise: Promise<IdeSettings>;
5754 llmLogger: ILLMLogger;
5855 description: ProfileDescription;
5956 orgScopeId: string | null;
@@ -65,7 +62,6 @@
6562 this.versionSlug = versionSlug;
6663 this.controlPlaneClient = controlPlaneClient;
6764 this.ide = ide;
68- this.ideSettingsPromise = ideSettingsPromise;
6965 this.llmLogger = llmLogger;
7066 this.description = description;
7167 this.orgScopeId = orgScopeId;
@@ -79,7 +75,6 @@
7975 versionSlug,
8076 controlPlaneClient,
8177 ide,
82- ideSettingsPromise,
8378 llmLogger,
8479 rawYaml,
8580 orgScopeId,
@@ -91,12 +86,11 @@
9186 versionSlug: string;
9287 controlPlaneClient: ControlPlaneClient;
9388 ide: IDE;
94- ideSettingsPromise: Promise<IdeSettings>;
9589 llmLogger: ILLMLogger;
9690 rawYaml: string;
9791 orgScopeId: string | null;
9892 }): Promise<PlatformProfileLoader> {
99- const controlPlaneEnv = await getControlPlaneEnv(ideSettingsPromise);
93+ const controlPlaneEnv = await getControlPlaneEnv(ide.getIdeSettings());
10094
10195 const description: ProfileDescription = {
10296 id: `${ownerSlug}/${packageSlug}`,
@@ -121,7 +115,6 @@
121115 versionSlug,
122116 controlPlaneClient,
123117 ide,
124- ideSettingsPromise,
125118 llmLogger,
126119 description,
127120 orgScopeId,
@@ -139,7 +132,6 @@
139132
140133 const results = await doLoadConfig({
141134 ide: this.ide,
142- ideSettingsPromise: this.ideSettingsPromise,
143135 controlPlaneClient: this.controlPlaneClient,
144136 llmLogger: this.llmLogger,
145137 overrideConfigYaml: this.configResult.config,
modified core/config/profile/doLoadConfig.ts +2 −5
@@ -11,7 +11,6 @@
1111 import {
1212 ContinueConfig,
1313 IDE,
14- IdeSettings,
1514 ILLMLogger,
1615 RuleWithSource,
1716 SerializedContinueConfig,
@@ -70,7 +69,6 @@
7069 }
7170 export default async function doLoadConfig(options: {
7271 ide: IDE;
73- ideSettingsPromise: Promise<IdeSettings>;
7472 controlPlaneClient: ControlPlaneClient;
7573 llmLogger: ILLMLogger;
7674 overrideConfigJson?: SerializedContinueConfig;
@@ -82,7 +80,6 @@
8280 }): Promise<ConfigResult<ContinueConfig>> {
8381 const {
8482 ide,
85- ideSettingsPromise,
8683 controlPlaneClient,
8784 llmLogger,
8885 overrideConfigJson,
@@ -95,7 +92,7 @@
9592
9693 const ideInfo = await ide.getIdeInfo();
9794 const uniqueId = await ide.getUniqueId();
98- const ideSettings = await ideSettingsPromise;
95+ const ideSettings = await ide.getIdeSettings();
9996 const workOsAccessToken = await controlPlaneClient.getAccessToken();
10097 const isSignedIn = await controlPlaneClient.isSignedIn();
10198
@@ -374,7 +371,7 @@
374371 const useOnPremProxy =
375372 controlPlane?.useContinueForTeamsProxy === false && controlPlane?.proxyUrl;
376373
377- const env = await getControlPlaneEnv(ideSettingsPromise);
374+ const env = await getControlPlaneEnv(Promise.resolve(ideSettings));
378375 let controlPlaneProxyUrl: string = useOnPremProxy
379376 ? controlPlane?.proxyUrl
380377 : env.DEFAULT_CONTROL_PLANE_PROXY_URL;
modified core/context/providers/CodeContextProvider.ts +1 −1
@@ -16,7 +16,7 @@
1616 displayTitle: "Code",
1717 description: "Type to search",
1818 type: "submenu",
19- dependsOnIndexing: true,
19+ dependsOnIndexing: ["chunk", "codeSnippets"],
2020 };
2121
2222 async getContextItems(
modified core/context/providers/CodebaseContextProvider.ts +1 −1
@@ -13,7 +13,7 @@
1313 description: "Automatically find relevant files",
1414 type: "normal",
1515 renderInlineAs: "",
16- dependsOnIndexing: true,
16+ dependsOnIndexing: ["embeddings", "fullTextSearch", "chunk"],
1717 };
1818
1919 async getContextItems(
modified core/context/providers/FolderContextProvider.ts +1 −1
@@ -19,7 +19,7 @@
1919 displayTitle: "Folder",
2020 description: "Type to search",
2121 type: "submenu",
22- dependsOnIndexing: true,
22+ dependsOnIndexing: ["embeddings", "fullTextSearch", "chunk"],
2323 };
2424
2525 async getContextItems(
modified core/context/providers/_context-providers.vitest.ts +0 −2
@@ -28,11 +28,9 @@
2828 ): Promise<ContextProviderExtras> {
2929 setUpTestDir();
3030 const ide = new FileSystemIde(TEST_DIR);
31- const ideSettingsPromise = ide.getIdeSettings();
3231 const llmLogger = new LLMLogger();
3332 const configHandler = new ConfigHandler(
3433 ide,
35- ideSettingsPromise,
3634 llmLogger,
3735 Promise.resolve(undefined),
3836 );
modified core/control-plane/client.ts +4 −5
@@ -11,7 +11,7 @@
1111 import fetch, { RequestInit, Response } from "node-fetch";
1212
1313 import { OrganizationDescription } from "../config/ProfileLifecycleManager.js";
14-import { IdeInfo, IdeSettings, ModelDescription } from "../index.js";
14+import { IDE, ModelDescription } from "../index.js";
1515 import { Logger } from "../util/Logger.js";
1616
1717 import { ControlPlaneSessionInfo, isOnPremSession } from "./AuthTypes.js";
@@ -44,8 +44,7 @@
4444 export class ControlPlaneClient {
4545 constructor(
4646 readonly sessionInfoPromise: Promise<ControlPlaneSessionInfo | undefined>,
47- private readonly ideSettingsPromise: Promise<IdeSettings>,
48- private readonly ideInfoPromise: Promise<IdeInfo>,
47+ private readonly ide: IDE,
4948 ) {}
5049
5150 async resolveFQSNs(
@@ -90,9 +89,9 @@
9089 throw new Error("No access token");
9190 }
9291
93- const env = await getControlPlaneEnv(this.ideSettingsPromise);
92+ const env = await getControlPlaneEnv(this.ide.getIdeSettings());
9493 const url = new URL(path, env.CONTROL_PLANE_URL).toString();
95- const ideInfo = await this.ideInfoPromise;
94+ const ideInfo = await this.ide.getIdeInfo();
9695
9796 const resp = await fetch(url, {
9897 ...init,
modified core/core.ts +15 −10
@@ -138,7 +138,7 @@
138138
139139 const ideInfoPromise = messenger.request("getIdeInfo", undefined);
140140 const ideSettingsPromise = messenger.request("getIdeSettings", undefined);
141- const sessionInfoPromise = messenger.request(
141+ const initialSessionInfoPromise = messenger.request(
142142 "getControlPlaneSessionInfo",
143143 {
144144 silent: true,
@@ -148,9 +148,8 @@
148148
149149 this.configHandler = new ConfigHandler(
150150 this.ide,
151- ideSettingsPromise,
152151 this.llmLogger,
153- sessionInfoPromise,
152+ initialSessionInfoPromise,
154153 );
155154
156155 this.docsService = DocsService.createSingleton(
@@ -175,6 +174,13 @@
175174 }
176175 };
177176
177+ this.codeBaseIndexer = new CodebaseIndexer(
178+ this.configHandler,
179+ this.ide,
180+ this.messenger,
181+ this.globalContext.get("indexingPaused"),
182+ );
183+
178184 this.configHandler.onConfigUpdate((result) => {
179185 void (async () => {
180186 const serializedResult =
@@ -187,6 +193,12 @@
187193 selectedOrgId: this.configHandler.currentOrg?.id ?? null,
188194 });
189195
196+ if (await this.codeBaseIndexer.wasAnyOneIndexAdded()) {
197+ await this.codeBaseIndexer.refreshCodebaseIndex(
198+ await this.ide.getWorkspaceDirs(),
199+ );
200+ }
201+
190202 // update additional submenu context providers registered via VSCode API
191203 const additionalProviders =
192204 this.configHandler.getAdditionalSubmenuContextProviders();
@@ -198,13 +210,6 @@
198210 })();
199211 });
200212
201- this.codeBaseIndexer = new CodebaseIndexer(
202- this.configHandler,
203- this.ide,
204- this.messenger,
205- this.globalContext.get("indexingPaused"),
206- );
207-
208213 // Dev Data Logger
209214 const dataLogger = DataLogger.getInstance();
210215 dataLogger.core = this;
modified core/index.d.ts +6 −1
@@ -173,6 +173,11 @@
173173 }
174174
175175 export type ContextProviderType = "normal" | "query" | "submenu";
176+export type ContextIndexingType =
177+ | "chunk"
178+ | "embeddings"
179+ | "fullTextSearch"
180+ | "codeSnippets";
176181
177182 export interface ContextProviderDescription {
178183 title: ContextProviderName;
@@ -180,7 +185,7 @@
180185 description: string;
181186 renderInlineAs?: string;
182187 type: ContextProviderType;
183- dependsOnIndexing?: boolean;
188+ dependsOnIndexing?: ContextIndexingType[];
184189 }
185190
186191 export type FetchFunction = (url: string | URL, init?: any) => Promise<any>;
modified core/indexing/CodebaseIndexer.test.ts +150 −0
@@ -21,6 +21,7 @@
2121 import { ContinueConfig } from "../index.js";
2222 import { localPathToUri } from "../util/pathToUri.js";
2323 import { CodebaseIndexer } from "./CodebaseIndexer.js";
24+import { FullTextSearchCodebaseIndex } from "./FullTextSearchCodebaseIndex.js";
2425 import { getComputeDeleteAddRemove } from "./refreshIndex.js";
2526 import { TestCodebaseIndex } from "./TestCodebaseIndex.js";
2627 import { CodebaseIndex } from "./types.js";
@@ -675,5 +676,154 @@
675676 ]);
676677 });
677678 });
679+
680+ describe("getIndexesToBuild", () => {
681+ let indexer: CodebaseIndexer;
682+ let mockConfig: any;
683+ let mockEmbeddingsModel: any;
684+ let mockIdeSettings: any;
685+
686+ beforeEach(async () => {
687+ indexer = new CodebaseIndexer(
688+ testConfigHandler,
689+ testIde,
690+ mockMessenger as any,
691+ false,
692+ );
693+
694+ mockEmbeddingsModel = {
695+ maxEmbeddingChunkSize: 1000,
696+ model: "test-model",
697+ provider: "test-provider",
698+ };
699+
700+ mockIdeSettings = {
701+ remoteConfigServerUrl: "http://test.com",
702+ userToken: "test-token",
703+ };
704+
705+ mockConfig = {
706+ selectedModelByRole: {
707+ embed: mockEmbeddingsModel,
708+ },
709+ contextProviders: [],
710+ };
711+
712+ jest
713+ .spyOn(testIde, "getIdeSettings")
714+ .mockResolvedValue(mockIdeSettings);
715+ });
716+
717+ afterEach(() => {
718+ jest.clearAllMocks();
719+ });
720+
721+ test("should create specific indexTypes for the requested context providers", async () => {
722+ mockConfig.contextProviders = [
723+ {
724+ description: {
725+ dependsOnIndexing: ["chunk", "codeSnippets"],
726+ },
727+ },
728+ ];
729+
730+ jest.spyOn(testConfigHandler, "loadConfig").mockResolvedValue({
731+ config: mockConfig,
732+ errors: [],
733+ configLoadInterrupted: false,
734+ });
735+
736+ const indexes = (await (
737+ indexer as any
738+ ).getIndexesToBuild()) as CodebaseIndex[];
739+
740+ expect(indexes).toHaveLength(2);
741+ expect(indexes[0].artifactId).toBe("chunks");
742+ expect(indexes[1].artifactId).toBe("codeSnippets");
743+ });
744+
745+ test("should handle duplicate contexts", async () => {
746+ mockConfig.contextProviders = [
747+ {
748+ description: {
749+ dependsOnIndexing: ["codeSnippets"],
750+ },
751+ },
752+ {
753+ description: {
754+ dependsOnIndexing: ["codeSnippets"],
755+ },
756+ },
757+ ];
758+
759+ jest.spyOn(testConfigHandler, "loadConfig").mockResolvedValue({
760+ config: mockConfig,
761+ errors: [],
762+ configLoadInterrupted: false,
763+ });
764+
765+ const indexes = await (indexer as any).getIndexesToBuild();
766+
767+ expect(indexes).toHaveLength(1);
768+ expect(indexes[0].artifactId).toBe("codeSnippets");
769+ });
770+ });
771+ });
772+
773+ describe("wasAnyOneIndexAdded", () => {
774+ let testIndexer: TestCodebaseIndexer;
775+ let mockGetIndexesToBuild: jest.MockedFunction<any>;
776+
777+ beforeEach(() => {
778+ testIndexer = new TestCodebaseIndexer(
779+ testConfigHandler,
780+ testIde,
781+ mockMessenger as any,
782+ false,
783+ );
784+
785+ // Mock getIndexesToBuild to control what indexes should be built
786+ mockGetIndexesToBuild = jest
787+ .spyOn(testIndexer as any, "getIndexesToBuild")
788+ .mockResolvedValue([]);
789+
790+ jest
791+ .spyOn(testIndexer, "refreshCodebaseIndex")
792+ .mockImplementation(async () => {});
793+ });
794+
795+ afterEach(() => {
796+ jest.clearAllMocks();
797+ });
798+
799+ test("should return true when indexes to build differ from built indexes", async () => {
800+ const mockIndex1 = new TestCodebaseIndex();
801+ const mockIndex2 = new FullTextSearchCodebaseIndex();
802+ mockGetIndexesToBuild.mockResolvedValue([mockIndex1]);
803+ (testIndexer as any).builtIndexes = [mockIndex2];
804+
805+ const result = await testIndexer.wasAnyOneIndexAdded();
806+ expect(result).toBe(true);
807+ });
808+
809+ test("should return true when there are more indexes to build than built indexes", async () => {
810+ const mockIndex1 = new TestCodebaseIndex();
811+ const mockIndex2 = new FullTextSearchCodebaseIndex();
812+ mockGetIndexesToBuild.mockResolvedValue([mockIndex1, mockIndex2]);
813+ (testIndexer as any).builtIndexes = [mockIndex1];
814+
815+ const result = await testIndexer.wasAnyOneIndexAdded();
816+ expect(result).toBe(true);
817+ });
818+
819+ test("should return false when there are fewer indexes to build than built indexes", async () => {
820+ const mockIndex1 = new TestCodebaseIndex();
821+ const mockIndex2 = new FullTextSearchCodebaseIndex();
822+ mockGetIndexesToBuild.mockResolvedValue([mockIndex1]);
823+ (testIndexer as any).builtIndexes = [mockIndex1, mockIndex2];
824+
825+ const result = await testIndexer.wasAnyOneIndexAdded();
826+ expect(result).toBe(false);
827+ });
678828 });
679829 });
modified core/indexing/CodebaseIndexer.ts +47 −18
@@ -2,6 +2,7 @@
22
33 import { ConfigHandler } from "../config/ConfigHandler.js";
44 import {
5+ ContextIndexingType,
56 ContinueConfig,
67 IDE,
78 IndexingProgressUpdate,
@@ -58,6 +59,7 @@
5859 private indexingCancellationController: AbortController;
5960 private codebaseIndexingState: IndexingProgressUpdate;
6061 private readonly pauseToken: PauseToken;
62+ private builtIndexes: CodebaseIndex[] = [];
6163
6264 private getUserFriendlyIndexName(artifactId: string): string {
6365 if (artifactId === FullTextSearchCodebaseIndex.artifactId)
@@ -166,28 +168,46 @@
166168 return [];
167169 }
168170
169- const indexes: CodebaseIndex[] = [
170- new ChunkCodebaseIndex(
171- this.ide.readFile.bind(this.ide),
172- continueServerClient,
173- embeddingsModel.maxEmbeddingChunkSize,
174- ), // Chunking must come first
175- ];
176-
177- const lanceDbIndex = await LanceDbIndex.create(
178- embeddingsModel,
179- this.ide.readFile.bind(this.ide),
171+ const indexTypesToBuild = new Set( // use set to remove duplicates
172+ config.contextProviders
173+ .map((provider) => provider.description.dependsOnIndexing)
174+ .filter((indexType) => Array.isArray(indexType)) // remove undefined indexTypes
175+ .flat(),
180176 );
181177
182- if (lanceDbIndex) {
183- indexes.push(lanceDbIndex);
184- }
178+ const indexTypeToIndexerMapping: Record<
179+ ContextIndexingType,
180+ () => Promise<CodebaseIndex | null>
181+ > = {
182+ chunk: async () =>
183+ new ChunkCodebaseIndex(
184+ this.ide.readFile.bind(this.ide),
185+ continueServerClient,
186+ embeddingsModel.maxEmbeddingChunkSize,
187+ ),
188+ codeSnippets: async () => new CodeSnippetsCodebaseIndex(this.ide),
189+ fullTextSearch: async () => new FullTextSearchCodebaseIndex(),
190+ embeddings: async () => {
191+ const lanceDbIndex = await LanceDbIndex.create(
192+ embeddingsModel,
193+ this.ide.readFile.bind(this.ide),
194+ );
195+ return lanceDbIndex;
196+ },
197+ };
185198
186- indexes.push(
187- new FullTextSearchCodebaseIndex(),
188- new CodeSnippetsCodebaseIndex(this.ide),
189- );
199+ const indexes: CodebaseIndex[] = [];
200+ // not parallelizing to avoid race conditions in sqlite
201+ for (const indexType of indexTypesToBuild) {
202+ if (indexType && indexType in indexTypeToIndexerMapping) {
203+ const index = await indexTypeToIndexerMapping[indexType]();
204+ if (index) {
205+ indexes.push(index);
206+ }
207+ }
208+ }
190209
210+ this.builtIndexes = indexes;
191211 return indexes;
192212 }
193213
@@ -694,6 +714,15 @@
694714 }
695715 }
696716
717+ public async wasAnyOneIndexAdded() {
718+ const indexes = await this.getIndexesToBuild();
719+ return !indexes.every((index) =>
720+ this.builtIndexes.some(
721+ (builtIndex) => builtIndex.artifactId === index.artifactId,
722+ ),
723+ );
724+ }
725+
697726 public async refreshCodebaseIndex(paths: string[]) {
698727 if (!this.indexingCancellationController.signal.aborted) {
699728 this.indexingCancellationController.abort();
modified core/llm/index.ts +13 −11
@@ -370,8 +370,17 @@
370370 },
371371 });
372372
373- if (error !== undefined) {
374- if (error === "cancel" || error.name === "AbortError") {
373+ if (typeof error === "undefined") {
374+ interaction?.logItem({
375+ kind: "success",
376+ promptTokens,
377+ generatedTokens,
378+ thinkingTokens,
379+ usage,
380+ });
381+ return "success";
382+ } else {
383+ if (error === "cancel" || error?.name?.includes("AbortError")) {
375384 interaction?.logItem({
376385 kind: "cancel",
377386 promptTokens,
@@ -393,15 +402,6 @@
393402 });
394403 return "error";
395404 }
396- } else {
397- interaction?.logItem({
398- kind: "success",
399- promptTokens,
400- generatedTokens,
401- thinkingTokens,
402- usage,
403- });
404- return "success";
405405 }
406406 }
407407
@@ -615,6 +615,7 @@
615615 kind: "chunk",
616616 chunk: formattedContent,
617617 });
618+
618619 completion += formattedContent;
619620 yield content;
620621 }
@@ -630,6 +631,7 @@
630631 kind: "chunk",
631632 chunk,
632633 });
634+
633635 completion += chunk;
634636 yield chunk;
635637 }
modified core/llm/llms/Ollama.ts +1 −1
@@ -150,7 +150,7 @@
150150 constructor(options: LLMOptions) {
151151 super(options);
152152
153- if (options.isFromAutoDetect) {
153+ if (options.model === "AUTODETECT") {
154154 return;
155155 }
156156 const headers: Record<string, string> = {
modified core/llm/llms/Scaleway.ts +8 −1
@@ -7,16 +7,23 @@
77 static providerName = "scaleway";
88 static defaultOptions: Partial<LLMOptions> = {
99 apiBase: "https://api.scaleway.ai/v1/",
10- model: "qwen2.5-coder-32b-instruct",
10+ model: "qwen3-coder-30b-a3b-instruct",
1111 useLegacyCompletionsEndpoint: false,
1212 };
1313
1414 private static MODEL_IDS: { [name: string]: string } = {
1515 "llama3.1-8b": "llama-3.1-8b-instruct",
1616 "llama3.3-70b": "llama-3.3-70b-instruct",
17+ "pixtral-12b": "pixtral-12b-2409",
1718 "mistral-small3.1": "mistral-small-3.1-24b-instruct-2503",
19+ "mistral-small3.2": "mistral-small-3.2-24b-instruct-2506",
20+ "devstral-small": "devstral-small-2505",
1821 "deepseek-r1-distill-llama-70b": "deepseek-r1-distill-llama-70b",
1922 "qwen2.5-coder-32b": "qwen2.5-coder-32b-instruct",
23+ "qwen3-coder-30b-a3b": "qwen3-coder-30b-a3b-instruct",
24+ "qwen3-235b-a22b": "qwen3-235b-a22b-instruct-2507",
25+ "gemma-3-27b": "gemma-3-27b-it",
26+ "gpt-oss-120b": "gpt-oss-120b",
2027 };
2128
2229 protected _convertModelName(model: string) {
modified core/test/fixtures.ts +1 −3
@@ -12,13 +12,11 @@
1212
1313 export const testControlPlaneClient = new ControlPlaneClient(
1414 Promise.resolve(undefined),
15- ideSettingsPromise,
16- testIde.getIdeInfo(),
15+ testIde,
1716 );
1817
1918 export const testConfigHandler = new ConfigHandler(
2019 testIde,
21- ideSettingsPromise,
2220 new LLMLogger(),
2321 Promise.resolve(undefined),
2422 );
modified core/tools/definitions/editFile.ts +1 −1
@@ -8,7 +8,7 @@
88 }
99
1010 export const NO_PARALLEL_TOOL_CALLING_INTSRUCTION =
11- "Note this tool CANNOT be called in parallel with other tools.";
11+ "This tool CANNOT be called in parallel with other tools.";
1212
1313 const CHANGES_DESCRIPTION =
1414 "Any modifications to the file, showing only needed changes. Do NOT wrap this in a codeblock or write anything besides the code changes. In larger files, use brief language-appropriate placeholders for large unmodified sections, e.g. '// ... existing code ...'";
modified core/tools/definitions/multiEdit.ts +28 −44
@@ -1,6 +1,7 @@
11 import { Tool } from "../..";
22 import { BUILT_IN_GROUP_NAME, BuiltInToolNames } from "../builtIn";
33 import { NO_PARALLEL_TOOL_CALLING_INTSRUCTION } from "./editFile";
4+import { singleFindAndReplaceTool } from "./singleFindAndReplace";
45
56 export interface EditOperation {
67 old_string: string;
@@ -24,60 +25,41 @@
2425 isInstant: false,
2526 function: {
2627 name: BuiltInToolNames.MultiEdit,
27- description: `This is a tool for making multiple edits to a single file in one operation. It
28-is built on top of the single find and replace tool and allows you to perform multiple
29-find-and-replace operations efficiently. Prefer this tool over the single find and replace tool
30-when you need to make multiple edits to the same file.
31-
32-Before using this tool:
33-
34-1. Use the read_file tool to understand the file's contents and context
35-2. Verify the directory path is correct
36-
37-To make multiple file edits, provide the following:
38-
39-1. filepath: The path to the file to modify (relative to the root of the workspace)
28+ description: `This is a tool for making multiple edits to a single file in one operation. It is built on top of the ${singleFindAndReplaceTool.function.name} and allows you to perform multiple find-and-replace operations efficiently.
29+Prefer this tool over the ${singleFindAndReplaceTool.function.name} tool when you need to make multiple edits to the same file.
30+
31+To make multiple edits to a file, provide the following:
32+1. filepath: The path to the file to modify, RELATIVE to the project/workspace root (verify the directory path is correct)
4033 2. edits: An array of edit operations to perform, where each edit contains:
41- - old_string: The text to replace (must match the file contents exactly, including all whitespace and indentation)
34+ - old_string: The text to replace (must match the old file contents exactly, including all whitespace/indentation)
4235 - new_string: The edited text to replace the old_string
4336 - replace_all: Replace all occurrences of old_string. This parameter is optional and defaults to false.
4437
4538 IMPORTANT:
4639 - All edits are applied in sequence, in the order they are provided
47-- Each edit operates on the result of the previous edit
48-- All edits must be valid for the operation to succeed - if any edit fails,
49-none will be applied
50-- This tool is ideal when you need to make several changes to different parts
51-of the same file
40+- Each edit operates on the result of the previous edit, so plan your edits carefully to avoid conflicts between sequential operations
41+- Edits are atomic - all edits must be valid for the operation to succeed - if any edit fails, none will be applied
42+- This tool is ideal when you need to make several changes to different parts of the same file
5243
5344 CRITICAL REQUIREMENTS:
54-
55-1. All edits follow the same requirements as the single find and replace tool
56-2. The edits are atomic - either all succeed or none are applied
57-3. Plan your edits carefully to avoid conflicts between sequential operations
58-4. ${NO_PARALLEL_TOOL_CALLING_INTSRUCTION}
59-
60-WARNING:
61-
62-- The tool will fail if edits.old_string doesn't match the file contents
63-exactly (including whitespace)
64-- The tool will fail if edits.old_string and edits.new_string are the same
65-- Since edits are applied in sequence, ensure that earlier edits don't affect
66-the text that later edits are trying to find
67-
68-When making edits:
69-
45+1. ALWAYS use the ${BuiltInToolNames.ReadFile} tool just before making edits, to understand the file's up-to-date contents and context. The user can also edit the file while you are working with it.
46+2. ${NO_PARALLEL_TOOL_CALLING_INTSRUCTION}
47+3. When making edits:
7048 - Ensure all edits result in idiomatic, correct code
7149 - Do not leave the code in a broken state
72-- Only use emojis if the user explicitly requests it. Avoid adding emojis to
73-files unless asked.
74-- Use replace_all for replacing and renaming strings across the file. This
75-parameter is useful if you want to rename a variable for instance.
50+- Only use emojis if the user explicitly requests it. Avoid adding emojis to files unless asked
51+- Use replace_all for replacing and renaming all matches for a string across the file. This parameter is useful if you want to rename a variable, for instance
7652
7753 If you want to create a new file, use:
78-- A new file path
54+- A new file path, including new directory if needed
7955 - First edit: empty old_string and the new file's contents as new_string
80-- Subsequent edits are not allowed - there is no need since you are creating`,
56+- Subsequent edits are not allowed - there is no need since you are creating
57+- ALWAYS prefer editing existing files in the codebase. NEVER write new files unless explicitly required
58+
59+WARNINGS:
60+- If earlier edits affect the text that later edits are trying to find, files can become mangled
61+- The tool will fail if edits.old_string doesn't match the file contents exactly (including whitespace)
62+- The tool will fail if edits.old_string and edits.new_string are the same - they MUST be different`,
8163 parameters: {
8264 type: "object",
8365 required: ["filepath", "edits"],
@@ -97,16 +79,18 @@
9779 properties: {
9880 old_string: {
9981 type: "string",
100- description: "The text to replace",
82+ description:
83+ "The text to replace (exact match including whitespace/indentation)",
10184 },
10285 new_string: {
10386 type: "string",
104- description: "The text to replace it with",
87+ description:
88+ "The text to replace it with. MUST be different than old_string.",
10589 },
10690 replace_all: {
10791 type: "boolean",
10892 description:
109- "Replace all occurrences of old_string (default false)",
93+ "Replace all occurrences of old_string (default false) in the file",
11094 },
11195 },
11296 },
modified core/tools/definitions/singleFindAndReplace.ts +13 −27
@@ -20,33 +20,18 @@
2020 isInstant: false,
2121 function: {
2222 name: BuiltInToolNames.SingleFindAndReplace,
23- description: `Performs exact string replacements in files.
24-
25-Usage:
26-
27-- You must use your \`read_file\` tool at least once in the conversation before
28-editing. This tool will error if you attempt an edit without reading the file.
29-
30-- When editing text from read_file tool output, ensure you preserve the exact
31-indentation (tabs/spaces) as it appears AFTER the line number prefix. The line
32-number prefix format is: spaces + line number + tab. Everything after that tab
33-is the actual file content to match. Never include any part of the line number
34-prefix in the old_string or new_string.
35-
36-- ALWAYS prefer editing existing files in the codebase. NEVER write new files
37-unless explicitly required.
38-
39-- Only use emojis if the user explicitly requests it. Avoid adding emojis to
40-files unless asked.
23+ description: `Performs exact string replacements in a file.
4124
25+IMPORTANT:
26+- ALWAYS use the \`${BuiltInToolNames.ReadFile}\` tool just before making edits, to understand the file's up-to-date contents and context. The user can also edit the file while you are working with it.
4227 - ${NO_PARALLEL_TOOL_CALLING_INTSRUCTION}
43-
44-- The edit will FAIL if \`old_string\` is not unique in the file. Either provide
45-a larger string with more surrounding context to make it unique or use
46-\`replace_all\` to change every instance of \`old_string\`.
47-
48-- Use \`replace_all\` for replacing and renaming strings across the file. This
49-parameter is useful if you want to rename a variable for instance.`,
28+- When editing text from \`${BuiltInToolNames.ReadFile}\` tool output, ensure you preserve exact whitespace/indentation.
29+- Only use emojis if the user explicitly requests it. Avoid adding emojis to files unless asked.
30+- Use \`replace_all\` for replacing and renaming strings across the file. This parameter is useful if you want to rename a variable, for instance.
31+
32+WARNINGS:
33+- When not using \`replace_all\`, the edit will FAIL if \`old_string\` is not unique in the file. Either provide a larger string with more surrounding context to make it unique or use \`replace_all\` to change every instance of \`old_string\`.
34+- The edit will likely fail if you have not recently used the \`${BuiltInToolNames.ReadFile}\` tool to view up-to-date file contents.`,
5035 parameters: {
5136 type: "object",
5237 required: ["filepath", "old_string", "new_string"],
@@ -58,12 +43,13 @@
5843 },
5944 old_string: {
6045 type: "string",
61- description: "The text to replace",
46+ description:
47+ "The text to replace - must be exact including whitespace/indentation",
6248 },
6349 new_string: {
6450 type: "string",
6551 description:
66- "The text to replace it with (must be different from old_string)",
52+ "The text to replace it with (MUST be different from old_string)",
6753 },
6854 replace_all: {
6955 type: "boolean",
modified docs/chat/how-to-use-it.mdx +1 −1
@@ -2,7 +2,7 @@
22 title: "Chat"
33 sidebarTitle: "How To Use AI Chat"
44 icon: "circle-question"
5-description: "Learn how to use Continue's AI chat assistant to solve coding problems without leaving your IDE, including code context sharing, applying generated solutions, and switching between models"
5+description: "Learn how to use Continue's AI chat agent to solve coding problems without leaving your IDE, including code context sharing, applying generated solutions, and switching between models"
66 ---
77
88 <Frame>
modified docs/customization/overview.mdx +8 −8
@@ -1,6 +1,6 @@
11 ---
22 title: "Customization Overview"
3-description: "Learn how to customize Continue with model providers, context providers, slash commands, and tools to create your perfect AI coding assistant"
3+description: "Learn how to customize Continue with model providers, context providers, slash commands, and tools to create your perfect AI coding agent"
44 ---
55
66 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.
@@ -21,15 +21,15 @@
2121
2222 Unchain your LLM with the power of tools using [Agent](/features/agent/quick-start). Add custom tools using [MCP Servers](/customization/mcp-tools)
2323
24-Whatever you choose, you'll probably start by editing your Assistant.
24+Whatever you choose, you'll probably start by editing your Agent.
2525
26-## Edit Your Assistant
26+## Edit Your Agent
2727
28-You can easily access your assistant configuration from the Continue Chat sidebar. Open the sidebar by pressing `cmd/ctrl` + `L` (VS Code) or `cmd/ctrl` + `J` (JetBrains) and click the Assistant selector above the main chat input. Then, you can hover over an assistant and click the `new window` (hub assistants) or `gear` (local assistants) icon.
28+You can easily access your agent 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.
2929
30-![configure an assistant](/images/customization/images/configure-continue-a5c8c79f3304c08353f3fc727aa5da7e.png)
30+![configure an agent](/images/customization/images/configure-continue-a5c8c79f3304c08353f3fc727aa5da7e.png)
3131
32-## Manage Your Assistant
32+## Manage Your Agent
3333
34-- See [Editing Hub Assistants](/hub/assistants/edit-an-assistant) for more details on managing your hub assistant
35-- See the [Config Deep Dive](/reference) for more details on configuring local assistants.
34+- See [Editing Hub Agents](/hub/agents/edit-an-agent) for more details on managing your hub agent
35+- See the [Config Deep Dive](/reference) for more details on configuring local agents.
modified docs/customization/rules.mdx +4 −4
@@ -1,18 +1,18 @@
11 ---
22 title: "Rules"
3-description: "Rules allow you to provide specific instructions that guide how the AI assistant behaves when working with your code. Instead of the AI making assumptions about your coding standards, architecture patterns, or project-specific requirements, you can explicitly define guidelines that ensure consistent, contextually appropriate responses."
3+description: "Rules allow you to provide specific instructions that guide how the AI agent behaves when working with your code. Instead of the AI making assumptions about your coding standards, architecture patterns, or project-specific requirements, you can explicitly define guidelines that ensure consistent, contextually appropriate responses."
44 ---
55
6-Think of these as the guardrails for your AI coding assistants:
6+Think of these as the guardrails for your AI coding agents:
77
88 - **Enforce company-specific coding standards** and security practices
99 - **Implement quality checks** that match your engineering culture
1010 - **Create paved paths** for developers to follow organizational best practices
1111
12-By implementing rules, you transform the AI from a generic coding assistant into a knowledgeable team member that understands your project's unique requirements and constraints.
12+By implementing rules, you transform the AI from a generic coding agent into a knowledgeable team member that understands your project's unique requirements and constraints.
1313
1414 ## How Rules Work
1515
16-Your assistant detects rules and applies the specified rules while in [Agent](/features/agent/quick-start), [Chat](/features/chat/quick-start), and [Edit](/features/edit/quick-start) modes.
16+Your agent detects rules and applies the specified rules while in [Agent](/features/agent/quick-start), [Chat](/features/chat/quick-start), and [Edit](/features/edit/quick-start) modes.
1717
1818 Learn more in the [rules deep dive](/customize/deep-dives/rules), and view [`rules`](/reference#rules) in the YAML Reference for more details.
No newline at the end of the file
modified docs/customize/deep-dives/configuration.mdx +9 −9
@@ -1,26 +1,26 @@
11 ---
2-title: "How to Configure Continue Assistants"
3-description: Learn how to access and manage Continue assistant configurations through Hub or local YAML files
2+title: "How to Configure Continue Agents"
3+description: Learn how to access and manage Continue agent configurations through Hub or local YAML files
44 keywords: [config, settings, customize]
5-sidebarTitle: "Assistant Configuration"
5+sidebarTitle: "Agent Configuration"
66 ---
77
8-You can easily access your assistant configuration from the Continue Chat sidebar. Open the sidebar by pressing <kbd>cmd/ctrl</kbd> + <kbd>L</kbd> (VS Code) or <kbd>cmd/ctrl</kbd> + <kbd>J</kbd> (JetBrains) and click the Assistant selector above the main chat input. Then, you can hover over an assistant and click the `new window` (hub assistants) or `gear` (local assistants) icon.
8+You can easily access your agent configuration from the Continue Chat sidebar. Open the sidebar by pressing <kbd>cmd/ctrl</kbd> + <kbd>L</kbd> (VS Code) or <kbd>cmd/ctrl</kbd> + <kbd>J</kbd> (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.
99
10-![configure an assistant](/images/configure-continue.png)
10+![configure an agent](/images/configure-continue.png)
1111
12-## How to Manage Hub Assistants
12+## How to Manage Hub Agents
1313
14-Hub Assistants can be managed in [the Hub](https://hub.continue.dev). See [Editing an Assistant](../../hub/assistants/edit-an-assistant.md)
14+Hub Agents can be managed in [the Hub](https://hub.continue.dev). See [Editing an Agent](../../hub/agents/edit-an-agent.md)
1515
16-## How to Configure Local Assistants with YAML
16+## How to Configure Local Agents with YAML
1717
1818 Local user-level configuration is stored and can be edited in your home directory in `config.yaml`:
1919
2020 - `~/.continue/config.yaml` (MacOS / Linux)
2121 - `%USERPROFILE%\.continue\config.yaml` (Windows)
2222
23-To open this `config.yaml`, you need to open the assistants dropdown in the top-right portion of the chat input. On that dropdown beside the "Local Assistant" option, select the cog icon. It will open the local `config.yaml`.
23+To open this `config.yaml`, you need to open the agents dropdown in the top-right portion of the chat input. On that dropdown beside the "Local Agent" option, select the cog icon. It will open the local `config.yaml`.
2424
2525 ![local-config-open-steps](/images/local-config-open-steps.png)
2626
modified docs/customize/deep-dives/mcp.mdx +2 −2
@@ -19,7 +19,7 @@
1919 Currently custom tools can be configured using the Model Context
2020 Protocol standard to unify prompts, context, and tool use.
2121
22-MCP Servers can be added to hub Assistants using `mcpServers` blocks. You can
22+MCP Servers can be added to hub Agents using `mcpServers` blocks. You can
2323 explore available MCP server blocks
2424 [here](https://hub.continue.dev/explore/mcp).
2525
@@ -27,7 +27,7 @@
2727
2828 ## Quick Start: How to Set Up Your First MCP Server
2929
30-Below is a quick example of setting up a new MCP server for use in your assistant:
30+Below is a quick example of setting up a new MCP server for use in your agent:
3131
3232 1. Create a folder called `.continue/mcpServers` at the top level of your workspace
3333 2. Add a file called `playwright-mcp.yaml` to this folder.
modified docs/customize/deep-dives/rules.mdx +2 −2
@@ -42,7 +42,7 @@
4242
4343 ## How to Create Rules Blocks
4444
45-Rules can be added locally using the "Add Rules" button while viewing the Local Assistant's rules.
45+Rules can be added locally using the "Add Rules" button while viewing the Local Agent's rules.
4646
4747 ![add local rules button](/images/add-local-rules.png)
4848
@@ -53,7 +53,7 @@
5353
5454 </Info>
5555
56-Rules can also be added to an Assistant on the Continue Hub.
56+Rules can also be added to an Agent on the Continue Hub.
5757
5858 Explore available rules [here](https://hub.continue.dev), or [create your own](https://hub.continue.dev/new?type=block&blockType=rules) in the Hub.
5959
modified docs/customize/deep-dives/rules.mdx.backup +3 −3
@@ -39,7 +39,7 @@
3939
4040 ## Creating `rules` blocks
4141
42-Rules can be added locally using the "Add Rules" button while viewing the Local Assistant's rules.
42+Rules can be added locally using the "Add Rules" button while viewing the Local Agent's rules.
4343
4444 ![add local rules button](/images/add-local-rules.png)
4545
@@ -49,7 +49,7 @@
4949 For example, you can say "Create a rule for this", and a rule will be created for you in `.continue/rules` based on your conversation.
5050 </Info>
5151
52-Rules can also be added to an Assistant on the Continue Hub.
52+Rules can also be added to an Agent on the Continue Hub.
5353
5454 Explore available rules [here](https://hub.continue.dev), or [create your own](https://hub.continue.dev/new?type=block&blockType=rules) in the Hub.
5555
@@ -133,7 +133,7 @@
133133 Always give concise responses
134134 ```
135135
136-This is also done when selecting "Add Rule" in the Assistant settings. This will create a new folder in `.continue/rules` with a default file named `new-rule.md`.
136+This is also done when selecting "Add Rule" in the Agent settings. This will create a new folder in `.continue/rules` with a default file named `new-rule.md`.
137137
138138 ### Examples
139139
modified docs/customize/deep-dives/slash-commands.mdx +2 −2
@@ -21,9 +21,9 @@
2121
2222 ## Ways to Create Slash Commands in Continue
2323
24-### Assistant Prompt Blocks
24+### Agent Prompt Blocks
2525
26-The easiest way to add a slash command is by adding [`prompt` blocks](../../hub/blocks/block-types#prompts) to your assistant, which show up as slash commands in [Chat](../../features/chat/how-it-works).
26+The easiest way to add a slash command is by adding [`prompt` blocks](../../hub/blocks/block-types#prompts) to your agent, which show up as slash commands in [Chat](../../features/chat/how-it-works).
2727
2828 ### Prompt Files
2929
added docs/customize/model-providers/assets/tetrate-remix.png +0 −0

Binary content is not shown. View the file.

deleted docs/customize/model-providers/more/tetrate_agent_router_service.mdx +0 −44
@@ -1,44 +0,0 @@
1----
2-title: "Tetrate Agent Router Service"
3----
4-
5-The Tetrate Agent Router Service (TARS) provides a unified API gateway for accessing various AI models with fast inference capabilities. TARS acts as an intelligent router that can distribute requests across multiple model providers, offering enterprise-grade reliability and performance optimization.
6-
7-## Getting Started
8-
9-1. Obtain an API key from the [Tetrate Agent Router Service portal](https://api.router.tetrate.ai/)
10-2. Configure Continue to use TARS as your model provider
11-
12-## Configuration
13-
14-Update your Continue configuration file (`~/.continue/config.json` or `~/.continue/config.yaml`) with your TARS API key:
15-
16-<Tabs>
17- <Tab title="YAML">
18- ```yaml title="config.yaml"
19- models:
20- - name: TARS GPT-5 Mini
21- provider: tars
22- model: gpt-5-mini
23- apiKey: <YOUR_TARS_API_KEY>
24- ```
25- </Tab>
26- <Tab title="JSON">
27- ```json title="config.json"
28- {
29- "models": [
30- {
31- "title": "TARS GPT-5 Mini",
32- "provider": "tars",
33- "model": "gpt-5-mini",
34- "apiKey": "<YOUR_TARS_API_KEY>"
35- }
36- ]
37- }
38- ```
39- </Tab>
40-</Tabs>
41-
42-## Available Models
43-
44-TARS supports routing to various models. Go to the [Tetrate Agent Router Service model catalog](https://router.tetrate.ai/models) for a full list of supported models.
modified docs/customize/model-providers/overview.mdx +1 −0
@@ -33,6 +33,7 @@
3333 | [Together AI](/customize/model-providers/more/together) | Platform for running a variety of open models |
3434 | [DeepInfra](/customize/model-providers/more/deepinfra) | Hosting for various open source models |
3535 | [OpenRouter](/customize/model-providers/top-level/openrouter) | Gateway to multiple model providers |
36+| [Tetrate Agent Router Service](/customize/model-providers/top-level/tetrate_agent_router_service) | Gateway with intelligent routing across multiple model providers |
3637 | [Cohere](/customize/model-providers/more/cohere) | Models specialized for semantic search and text generation |
3738 | [NVIDIA](/customize/model-providers/more/nvidia) | GPU-accelerated model hosting |
3839 | [Cloudflare](/customize/model-providers/more/cloudflare) | Edge-based AI inference services |
modified docs/customize/model-providers/top-level/openai.mdx +4 −3
@@ -30,7 +30,7 @@
3030 "models": [
3131 {
3232 "title": "<MODEL_NAME>",
33- "provider": "openai",
33+ "provider": "openai",
3434 "model": "<MODEL_ID>",
3535 "apiKey": "<YOUR_OPENAI_API_KEY>"
3636 }
@@ -56,6 +56,7 @@
5656 - [TensorRT-LLM](https://github.com/NVIDIA/trt-llm-as-openai-windows?tab=readme-ov-file#examples)
5757 - [vLLM](https://docs.vllm.ai/en/latest/serving/openai_compatible_server.html)
5858 - [BerriAI/litellm](https://github.com/BerriAI/litellm)
59+- [Tetrate Agent Router Service](https://router.tetrate.ai)
5960
6061 If you are using an OpenAI API compatible providers, you can change the `apiBase` like this:
6162
@@ -75,7 +76,7 @@
7576 {
7677 "models": [
7778 {
78- "title": "<OPENAI_API_COMPATIBLE_PROVIDER_MODEL>",
79+ "title": "<OPENAI_API_COMPATIBLE_PROVIDER_MODEL>",
7980 "provider": "openai",
8081 "model": "<MODEL_NAME>",
8182 "apiKey": "<YOUR_CUSTOM_API_KEY>",
@@ -110,7 +111,7 @@
110111 "title": "<OPENAI_API_COMPATIBLE_PROVIDER_MODEL>",
111112 "provider": "openai",
112113 "model": "<MODEL_NAME>",
113- "apiBase": "http://localhost:8000/v1",
114+ "apiBase": "http://localhost:8000/v1",
114115 "useLegacyCompletionsEndpoint": true
115116 }
116117 ]
added docs/customize/model-providers/top-level/tetrate_agent_router_service.mdx +83 −0
@@ -0,0 +1,83 @@
1+---
2+title: "Tetrate Agent Router Service"
3+sidebarTitle: "Tetrate Agent Router Service"
4+slug: ../tetrate-agent-router-service
5+---
6+
7+The **Tetrate Agent Router Service** provides a unified Gateway for accessing various AI models with fast inference capabilities as well as embedding services.
8+
9+This gateway acts as an intelligent router that can distribute requests across multiple model providers, offering enterprise-grade reliability and performance optimization.
10+
11+## Getting Started
12+
13+1. Obtain an API key from the [Agent Router Service portal](https://api.router.tetrate.ai/)
14+2. Configure Continue to use Agent Router Service as your model provider
15+
16+## Configuring Models
17+
18+You can also quickly use models from Tetrate on the Cotninue Hub by visiting Tetrate on the Continue Hub [here](https://hub.continue.dev/tetrate). The easiest way if you don't see the model you want to use is to remix one of the models on the Tetrate page and change the model to the one you want to use.
19+
20+![Remix a model from Tetrate on Continue Hub](../assets/tetrate-remix.png)
21+
22+### Available Models
23+
24+Agent Router Service supports routing to various models.
25+Go to the [Agent Router Service model catalog](https://router.tetrate.ai/models) for a full list of supported models.
26+
27+## Configuration Options
28+
29+As Agent Router Service is an OpenAI API compatible provider, you can configure it like any other OpenAI API compatible provider. Therefore you will be setting `provider: openai` and `apiBase: https://api.router.tetrate.ai/v1`.
30+
31+Update your Continue configuration file (`~/.continue/config.yaml`) with your Agent Router Service API key:
32+
33+### On your local machine
34+
35+#### In your config.yaml
36+
37+```yaml title="config.yaml"
38+models:
39+ - name: <MODEL_NAME>
40+ provider: openai
41+ model: <MODEL_ID>
42+ apiKey: <TETRATE_API_KEY>
43+ apiBase: https://api.router.tetrate.ai/v1
44+```
45+
46+#### As a local model block
47+
48+Review the configuration reference for [model blocks](/reference#models) and using [local blocks](/reference#local-blocks). Ensure you look at the roles and capabilities section and review the [model capabilities guide](/customize/deep-dives/model-capabilities).
49+
50+```yaml title="model_name.yaml"
51+ name: <MODEL_NAME>
52+ models:
53+ - name: <MODEL_NAME>
54+ provider: openai
55+ model: <MODEL_ID>
56+ apiKey: ${{ inputs.TETRATE_API_KEY }}
57+ apiBase: https://api.router.tetrate.ai/v1
58+ roles:
59+ - chat
60+ - edit
61+ - apply
62+ capabilities:
63+ - tool_use
64+```
65+
66+### On Model Block on Continue Hub
67+Learn how to use model blocks on Continue Hub [here](/hub/blocks/create-a-block).
68+
69+```yaml title="model_name.yaml"
70+ name: <MODEL_NAME>
71+ models:
72+ - name: <MODEL_NAME>
73+ provider: openai
74+ model: <MODEL_ID>
75+ apiKey: ${{ inputs.TETRATE_API_KEY }}
76+ apiBase: https://api.router.tetrate.ai/v1
77+ roles:
78+ - chat
79+ - edit
80+ - apply
81+ capabilities:
82+ - tool_use
83+```
modified docs/customize/model-roles.mdx +1 −1
@@ -2,7 +2,7 @@
22 title: "Model roles"
33 sidebarTitle: Overview
44 icon: "circle-info"
5-description: "Learn about the different model roles in Continue including chat, autocomplete, edit, apply, embeddings, and reranking for customizing your AI coding assistant's capabilities"
5+description: "Learn about the different model roles in Continue including chat, autocomplete, edit, apply, embeddings, and reranking for customizing your AI coding agent's capabilities"
66 ---
77
88 <CardGroup>
modified docs/customize/model-roles/00-intro.mdx +1 −1
@@ -23,7 +23,7 @@
2323
2424 ## Selecting model roles
2525
26-You can control which of the models in your assistant for a given role will be currently used for that role. Above the main input, click the 3 dots and then the cube icon to expand the `Models` section. Then you can use the dropdowns to select an active model for each role.
26+You can control which of the models in your agent for a given role will be currently used for that role. Above the main input, click the 3 dots and then the cube icon to expand the `Models` section. Then you can use the dropdowns to select an active model for each role.
2727
2828 ![Settings Active Models Section](/images/settings-model-roles.png)
2929
modified docs/customize/model-roles/intro.mdx +1 −1
@@ -16,7 +16,7 @@
1616
1717 ## Selecting model roles
1818
19-You can control which of the models in your assistant for a given role will be currently used for that role. Above the main input, click the 3 dots and then the cube icon to expand the `Models` section. Then you can use the dropdowns to select an active model for each role.
19+You can control which of the models in your agent for a given role will be currently used for that role. Above the main input, click the 3 dots and then the cube icon to expand the `Models` section. Then you can use the dropdowns to select an active model for each role.
2020
2121 <Frame>
2222 <img src="/images/settings-model-roles-5e5f8a6bd9137b70cf94178a7e45847c.png" />
modified docs/docs.json +29 −12
@@ -117,6 +117,7 @@
117117 "customize/model-providers/top-level/ollama",
118118 "customize/model-providers/top-level/openrouter",
119119 "customize/model-providers/top-level/openai",
120+ "customize/model-providers/top-level/tetrate_agent_router_service",
120121 "customize/model-providers/top-level/vertexai"
121122 ]
122123 },
@@ -179,13 +180,13 @@
179180 "pages": [
180181 "hub/introduction",
181182 {
182- "group": "Assistants",
183+ "group": "agents",
183184 "icon": "robot",
184185 "pages": [
185- "hub/assistants/intro",
186- "hub/assistants/use-an-assistant",
187- "hub/assistants/create-an-assistant",
188- "hub/assistants/edit-an-assistant"
186+ "hub/agents/intro",
187+ "hub/agents/use-an-agent",
188+ "hub/agents/create-an-agent",
189+ "hub/agents/edit-an-agent"
189190 ]
190191 },
191192 {
@@ -228,7 +229,7 @@
228229 "group": "Guides",
229230 "pages": [
230231 "guides/overview",
231- "guides/understanding-assistants",
232+ "guides/understanding-agents",
232233 "guides/codebase-documentation-awareness",
233234 "guides/cli",
234235 "guides/continuous-ai",
@@ -348,17 +349,13 @@
348349 "source": "/hub/secrets",
349350 "destination": "/hub/secrets/secret-types"
350351 },
351- {
352- "source": "/hub/assistants",
353- "destination": "/hub/assistants/intro"
354- },
355352 {
356353 "source": "/hub/blocks",
357354 "destination": "/hub/blocks/intro"
358355 },
359356 {
360357 "source": "/hub/agents/intro",
361- "destination": "/hub/assistants/intro"
358+ "destination": "/hub/agents/intro"
362359 },
363360 {
364361 "source": "/customize",
@@ -1106,7 +1103,7 @@
11061103 },
11071104 {
11081105 "source": "/troubleshooting#changes-to-assistants-not-showing-in-vs-code",
1109- "destination": "/faqs#changes-to-assistants-not-showing-in-vs-code"
1106+ "destination": "/faqs#changes-to-agents-not-showing-in-vs-code"
11101107 },
11111108 {
11121109 "source": "/troubleshooting#i-installed-continue-but-dont-see-the-sidebar-window",
@@ -1175,6 +1172,26 @@
11751172 {
11761173 "source": "/features/edit/next-edit",
11771174 "destination": "/features/autocomplete/next-edit"
1175+ },
1176+ {
1177+ "source": "/hub/assistants/intro",
1178+ "destination": "/hub/agents/intro"
1179+ },
1180+ {
1181+ "source": "/hub/assistants/use-an-assistant",
1182+ "destination": "/hub/agents/use-an-agent"
1183+ },
1184+ {
1185+ "source": "/hub/assistants/create-an-assistant",
1186+ "destination": "/hub/agents/create-an-agent"
1187+ },
1188+ {
1189+ "source": "/hub/assistants/edit-an-assistant",
1190+ "destination": "/hub/agents/edit-an-agent"
1191+ },
1192+ {
1193+ "source": "/guides/understanding-assistants",
1194+ "destination": "/guides/understanding-agents"
11781195 }
11791196 ]
11801197 }
modified docs/faqs.mdx +7 −7
@@ -48,15 +48,15 @@
4848
4949 Continue can be used in [code-server](https://coder.com/), but if you are running across an error in the logs that includes "This is likely because the editor is not running in a secure context", please see [their documentation on securely exposing code-server](https://coder.com/docs/code-server/latest/guide#expose-code-server).
5050
51-## Changes to assistants not showing in VS Code
51+## Changes to agents not showing in VS Code
5252
53-If you've made changes to assistants (adding, modifying, or removing them) but the changes aren't appearing in the Continue extension in VS Code, try reloading the VS Code window:
53+If you've made changes to agents (adding, modifying, or removing them) but the changes aren't appearing in the Continue extension in VS Code, try reloading the VS Code window:
5454
5555 1. Open the command palette (`cmd/ctrl` + `shift` + `P`)
5656 2. Type "Reload Window"
5757 3. Select the reload option
5858
59-This will restart VS Code and reload all extensions, which should make your assistant changes visible.
59+This will restart VS Code and reload all extensions, which should make your agent changes visible.
6060
6161 ## I installed Continue, but don't see the sidebar window
6262
@@ -256,7 +256,7 @@
256256
257257 3. **Check URL format**: Ensure you're using `http://` not `https://` for local network addresses
258258
259-## Local Assistant
259+## Local Agent
260260
261261 ### Managing Local Secrets and Environment Variables
262262
@@ -318,7 +318,7 @@
318318
319319 ### Using Model Addons Locally
320320
321-You can leverage model addons from the Continue Hub in your local assistant configurations using the `uses:` syntax. This allows you to reference pre-configured model blocks without duplicating configuration.
321+You can leverage model addons from the Continue Hub in your local agent configurations using the `uses:` syntax. This allows you to reference pre-configured model blocks without duplicating configuration.
322322
323323 #### Requirements
324324
@@ -330,7 +330,7 @@
330330 In your local `config.yaml`, reference model addons using the format `provider/model-name`:
331331
332332 ```yaml
333-name: My Local Assistant
333+name: My Local Agent
334334 version: 0.0.1
335335 schema: v1
336336 models:
@@ -344,7 +344,7 @@
344344 You can combine hub model addons with local models:
345345
346346 ```yaml
347-name: My Local Assistant
347+name: My Local Agent
348348 version: 0.0.1
349349 schema: v1
350350 models:
modified docs/features/agent/how-to-customize.mdx +5 −5
@@ -6,7 +6,7 @@
66
77 ## How to Add Rules Blocks
88
9-Adding Rules can be done in your assistant locally or in the Hub. You can explore Rules on the Continue Hub and refer to the [Rules deep dive](/customize/deep-dives/rules) for more details.
9+Adding Rules can be done in your agent locally or in the Hub. You can explore Rules on the Continue Hub and refer to the [Rules deep dive](/customize/deep-dives/rules) for more details.
1010
1111 ## How to Customize System Messages
1212
@@ -18,14 +18,14 @@
1818 provider: openai
1919 model: gpt-4o
2020 chatOptions:
21- baseSystemMessage: "You are a helpful coding assistant."
22- baseAgentSystemMessage: "You are a systematic coding assistant. Break down problems methodically."
23- basePlanSystemMessage: "You are a planning assistant. Create clear, actionable steps."
21+ baseSystemMessage: "You are a helpful coding agent."
22+ baseAgentSystemMessage: "You are a systematic coding agent. Break down problems methodically."
23+ basePlanSystemMessage: "You are a planning agent. Create clear, actionable steps."
2424 ```
2525
2626 ## How to Add MCP Tools
2727
28-You can add MCP servers to your assistant to give Agent access to more tools. Explore [MCP Servers on the Hub](https://hub.continue.dev) and consult the [MCP guide](/customize/deep-dives/mcp) for more details.
28+You can add MCP servers to your agent to give Agent access to more tools. Explore [MCP Servers on the Hub](https://hub.continue.dev) and consult the [MCP guide](/customize/deep-dives/mcp) for more details.
2929
3030 ## How to Configure Tool Policies
3131
modified docs/features/autocomplete/how-to-customize.mdx +1 −1
@@ -3,6 +3,6 @@
33 description: “Learn how to customize autocomplete behavior in Continue, including user settings, configuration options, and adjustments to improve AI code suggestions in your IDE.”
44 ---
55
6-Continue offers a handful of settings to customize autocomplete behavior. Visit the [User Settings Page](/customize/settings) to manage these settings.
6+Continue offers a handful of settings to customize autocomplete behavior. Visit the User Settings Page (Gear Icon) to manage these settings.
77
88 For a comprehensive guide on all configuration options and their impacts, see the [Autocomplete deep dive](/customize/deep-dives/autocomplete).
modified docs/features/edit/how-to-customize.mdx +1 −1
@@ -6,7 +6,7 @@
66
77 ## How to Set Active Edit/Apply Model
88
9-You can configure particular models from your Assistant to be used for Edit and Apply requests.
9+You can configure particular models from your Agent to be used for Edit and Apply requests.
1010
1111 1. Click the 3 dots above the main input
1212 2. Click the cube icon to expand the "Models" section
modified docs/getting-started/extensions.mdx +2 −2
@@ -1,6 +1,6 @@
11 ---
2-title: "Understanding Assistants"
2+title: "Understanding Agents"
33 description: "Continue offers two ways to configure your AI assistants"
44 ---
55
6-This content has moved to our comprehensive guide: [Understanding Assistants: Hub vs Local Configuration](/guides/understanding-assistants)
6+This content has moved to our comprehensive guide: [Understanding Agents: Hub vs Local Configuration](/guides/understanding-assistants)
modified docs/getting-started/install.mdx +3 −3
@@ -24,7 +24,7 @@
2424 </Step>
2525
2626 <Step title="Sign In">
27-[Sign in to the hub](https://auth.continue.dev/) to get started with your first assistant
27+[Sign in to the hub](https://auth.continue.dev/) to get started with your first agent
2828 </Step>
2929 </Steps>
3030
@@ -54,7 +54,7 @@
5454 </Step>
5555
5656 <Step title="Sign In">
57-[Sign in to the hub](https://auth.continue.dev/) to get started with your first assistant
57+[Sign in to the hub](https://auth.continue.dev/) to get started with your first agent
5858 </Step>
5959 </Steps>
6060
@@ -68,6 +68,6 @@
6868
6969 ## Signing in
7070
71-Click "Get started" to sign in to the hub and start using assistants.
71+Click "Get started" to sign in to the hub and start using agents.
7272
7373 ![Hub Onboarding in the Extension](/images/getting-started/images/hub-onboarding-card-81abd457b6d131c4b0aa89a5a6d647d3.png)
modified docs/getting-started/overview.mdx +2 −2
@@ -57,6 +57,6 @@
5757 </Tab>
5858 </Tabs>
5959
60-## AI Coding Assistants
60+## AI Coding Agents
6161
62-Continue offers flexible AI assistants that enhance your development workflow. You can choose between cloud-managed **Hub Assistants** for easy setup and synchronization, or **Local Assistants** for complete control and privacy. Learn more about [understanding and configuring assistants](/guides/understanding-assistants).
62+Continue offers flexible AI assistants that enhance your development workflow. You can choose between cloud-managed **Hub Agents** for easy setup and synchronization, or **Local Agents** for complete control and privacy. Learn more about [understanding and configuring assistants](/guides/understanding-assistants).
modified docs/getting-started/quick-start.mdx +2 −2
@@ -247,12 +247,12 @@
247247
248248 <Accordion title="Chat & Agent Best Practices">
249249 Discover [effective prompting techniques](/customize/deep-dives/prompts), [hub
250- v. local assistants](/guides/understanding-assistants), and [custom slash
250+ v. local agents](/guides/understanding-agents), and [custom slash
251251 commands](/customize/deep-dives/slash-commands).
252252 </Accordion>
253253
254254 <Accordion title="Enterprise & Teams">
255- Explore [Hub Assistants](/hub/assistants/intro), [organization
255+ Explore [Hub Agents](/hub/agents/intro), [organization
256256 management](/hub/governance/creating-an-org), and [sharing
257257 configurations](/hub/sharing).
258258 </Accordion>
modified docs/guides/continuous-ai.mdx +3 −3
@@ -123,8 +123,8 @@
123123 Imagine setting up an AI agent that checks new GitHub issues every morning and leaves the first helpful response. This lightens the load for maintainers and ensures community members feel heard quickly.
124124 </Accordion>
125125
126- <Accordion title="Pattern 2: The PR Review Assistant">
127- AI can automatically review new pull requests for security, performance, and style issues. The reviewer still has the final say, but the assistant highlights common problems and speeds up the feedback loop.
126+ <Accordion title="Pattern 2: The PR Review Agent">
127+ AI can automatically review new pull requests for security, performance, and style issues. The reviewer still has the final say, but the agent highlights common problems and speeds up the feedback loop.
128128
129129 </Accordion>
130130 <Accordion title="Pattern 3: The Documentation Guardian">
@@ -203,5 +203,5 @@
203203
204204 <Card title="Want to dive deeper?" icon="rocket">
205205 Check out our guides on [Continue CLI](/guides/cli) and [Understanding
206- Assistants](/guides/understanding-assistants).
206+ Agents](/guides/understanding-agents).
207207 </Card>
modified docs/guides/ollama-guide.mdx +5 −5
@@ -86,8 +86,8 @@
8686
8787 The easiest way is to use [pre-configured model blocks](/reference#local-blocks) from the Continue Hub in your local configuration:
8888
89-```yaml title="~/.continue/assistants/My Local Assistant.yaml"
90-name: My Local Assistant
89+```yaml title="~/.continue/agents/My Local Agent.yaml"
90+name: My Local Agent
9191 version: 0.0.1
9292 schema: v1
9393 models:
@@ -309,11 +309,11 @@
309309 #### Using Hub Blocks in Local Config
310310
311311 **Problem**: Unclear how to use hub models locally
312-**Solution**: Create a local assistant file:
312+**Solution**: Create a local agent file:
313313
314314 ```yaml
315-# ~/.continue/assistants/Local.yaml
316-name: Local Assistant
315+# ~/.continue/agents/Local.yaml
316+name: Local Agent
317317 version: 0.0.1
318318 schema: v1
319319 models:
added docs/guides/understanding-agents.mdx +202 −0
@@ -0,0 +1,202 @@
1+---
2+title: "How to Understand Agents: Hub vs Local Configuration"
3+description: "Learn how to choose between cloud-managed Hub agents and local configuration for AI development assistance in Continue, including setup, management, and best practices for each approach"
4+---
5+
6+Every developer has unique needs when it comes to AI assistance. Some prefer the convenience of cloud-managed configurations, while others need the control and privacy of local setups. Continue offers both paths, and this guide will help you choose the right one for your workflow.
7+
8+## What Are the Two Paths to AI Assistance?
9+
10+Continue provides two distinct ways to configure your AI agent:
11+
12+Think of Continue's configuration options like choosing between a managed service and self-hosting. Both get you to the same destination—powerful AI assistance in your IDE—but the journey and control level differ significantly.
13+
14+### How to Access Your Agent Configuration
15+
16+Before we dive into the specifics, let's understand how to access your configuration:
17+
18+1. Open the Continue Chat sidebar by pressing <kbd>cmd/ctrl</kbd> + <kbd>L</kbd> (VS Code) or <kbd>cmd/ctrl</kbd> + <kbd>J</kbd> (JetBrains)
19+2. Click the Agent selector above the main chat input
20+3. Hover over an agent and click:
21+ - `new window` icon for Hub agents
22+ - `gear` icon for Local agents
23+
24+![configure an agent](/images/configure-continue.png)
25+
26+## What Are Hub Agents: The Managed Experience
27+
28+Hub Agents represent the "it just works" philosophy. When you [sign in to Continue Hub](https://auth.continue.dev/), you gain access to a curated ecosystem of pre-configured agents that sync seamlessly across all your development environments.
29+
30+### Why Should You Choose Hub Agents?
31+
32+**The Power of Simplicity**
33+
34+- **Instant Setup**: Browse the [agent marketplace](https://hub.continue.dev) and add any agent to your account with a single click
35+- **Web-Based Management**: Configure models, add secrets, and customize settings through an intuitive web interface—no JSON editing required
36+- **Automatic Synchronization**: Make a change on the hub, and it reflects immediately across all your IDE instances
37+- **Team Collaboration**: Share custom agents with your team, ensuring everyone uses the same optimized configurations
38+
39+![nextjs agent](/images/nextjs-assistant.png)
40+
41+### How to Get Started with Hub Agents
42+
43+The journey from zero to AI-powered coding takes just four steps:
44+
45+1. **Select Your Agent**: Click the agent selector in your IDE's Continue panel
46+2. **Explore or Create**: Browse community agents or craft your own specialized helper
47+3. **Secure Your Keys**: Add API keys as [User Secrets](https://hub.continue.dev/settings/secrets) in the hub—they're encrypted and never exposed
48+4. **Sync and Code**: Click "Reload config" to pull your latest settings
49+
50+Pro tip: Hub Agents are perfect for teams. Create a custom agent with your team's coding standards, preferred models, and context sources, then share it with a simple link.
51+
52+### How to Manage Hub Agents
53+
54+All Hub Agent management happens through [the Hub](https://hub.continue.dev). For detailed customization, see our guide on [Editing an Agent](/hub/agents/edit-an-agent).
55+
56+## What Are Local Agents: The Power User's Choice
57+
58+Local Agents put you in the driver's seat. Using a `config.yaml` file, you have complete control over every aspect of your AI agent's behavior, with all configuration stored directly on your machine.
59+
60+### Why Should You Choose Local Agents?
61+
62+**Complete Control and Privacy**
63+
64+- **Your Data, Your Rules**: All configuration stays on your machine—perfect for air-gapped environments or strict data policies
65+- **Version Control Integration**: Check your `config.yaml` into git alongside your code, ensuring reproducible environments
66+- **Offline Capability**: Once configured, no internet connection needed (assuming you're using local models)
67+- **Unlimited Customization**: Access every configuration option, experimental feature, and advanced setting
68+
69+### How to Set Up Local Agents
70+
71+Local configuration lives in a single YAML file in your home directory:
72+
73+**File Locations:**
74+
75+- macOS/Linux: `~/.continue/config.yaml`
76+- Windows: `%USERPROFILE%\.continue\config.yaml`
77+
78+**Quick Access Method:**
79+
80+1. Open the agents dropdown in your IDE
81+2. Click the gear icon next to "Local Agent"
82+3. The `config.yaml` file opens in your editor
83+
84+![local-config-open-steps](/images/local-config-open-steps.png)
85+
86+### The Local Agent Experience
87+
88+When you edit your `config.yaml`, Continue provides intelligent autocomplete for all available options. Save the file, and Continue automatically reloads your configuration—no restart required.
89+
90+The first time you use Continue, it generates a `config.yaml` with sensible defaults. From there, you can customize everything from model selection to context providers, slash commands, and more.
91+
92+For the complete configuration reference, see our [config.yaml documentation](/reference).
93+
94+## How to Make the Right Choice
95+
96+The decision between Hub and Local agents often comes down to your specific needs and constraints. Here's a framework to help you decide:
97+
98+### Choose Hub Agents When You:
99+
100+**Value Convenience Over Control**
101+
102+- Want to start coding with AI assistance in under 60 seconds
103+- Prefer visual interfaces over editing configuration files
104+- Need to switch between multiple machines frequently
105+- Work in a team that needs standardized AI assistance
106+
107+**Need Advanced Collaboration**
108+
109+- Want to share custom agents with teammates
110+- Need centralized API key management
111+- Require quick updates across your entire organization
112+
113+**Are Getting Started**
114+
115+- New to AI-powered development
116+- Want to experiment with different models and configurations
117+- Prefer guided setup experiences
118+
119+### Choose Local Agents When You:
120+
121+**Require Maximum Control**
122+
123+- Need to version control your exact configuration
124+- Want to customize every aspect of the AI behavior
125+- Require reproducible development environments
126+
127+**Have Privacy Requirements**
128+
129+- Work with sensitive code that requires air-gapped environments
130+- Need to ensure all configuration data stays local
131+- Have strict compliance requirements about data storage
132+
133+**Are a Power User**
134+
135+- Comfortable editing YAML/JSON files
136+- Want access to experimental features
137+- Need to integrate with local tools and scripts
138+
139+## How to Use the Hybrid Approach
140+
141+Here's a secret: you don't have to choose just one. Many developers use both approaches:
142+
143+- **Hub Agents** for general development and experimentation
144+- **Local Agents** for production work or client projects with specific requirements
145+
146+You can switch between them seamlessly using the agent selector in your IDE.
147+
148+## Common Patterns and Best Practices
149+
150+### For Hub Agent Users
151+
152+1. **Start with Community Agents**: Before creating your own, explore what others have built
153+2. **Use Secrets Properly**: Never hardcode API keys—always use the User Secrets feature
154+3. **Create Specialized Agents**: Make different agents for different contexts (frontend, backend, DevOps)
155+4. **Share Liberally**: If you create something useful, share it with the community
156+
157+### For Local Agent Users
158+
159+1. **Version Control Your Config**: Treat your `config.yaml` like code—commit it, review changes, and maintain history
160+2. **Use Environment Variables**: For sensitive data, reference environment variables instead of hardcoding values
161+3. **Document Your Setup**: Add comments to your config explaining non-obvious choices
162+4. **Keep a Backup**: Before major changes, save a working copy of your configuration
163+
164+## Troubleshooting and Tips
165+
166+### Hub Agent Issues
167+
168+**Changes Not Reflecting?**
169+
170+- Click "Reload config" in your IDE
171+- Check your internet connection
172+- Ensure you're signed in to the correct account
173+
174+**Agent Not Available?**
175+
176+- Verify it's added to your account on the hub
177+- Check if it requires specific API keys
178+
179+### Local Agent Issues
180+
181+**Config Not Loading?**
182+
183+- Verify file location matches your OS
184+- Check YAML syntax (Continue will show errors)
185+- Ensure file permissions allow reading
186+
187+**Autocomplete Not Working?**
188+
189+- Update to the latest Continue version
190+- Check that you're editing the correct file
191+
192+## Next Steps
193+
194+Now that you understand both configuration approaches, you're ready to dive deeper:
195+
196+- **For Hub Users**: [Create Your First Agent](/hub/agents/create-an-agent)
197+- **For Local Users**: [Explore the Config Reference](/reference)
198+- **For Everyone**: [Discover Available Models](/customize/model-providers/overview)
199+
200+Remember, the best configuration is the one that helps you code more effectively. Start simple, experiment freely, and gradually refine your setup as you discover what works best for your workflow.
201+
202+Happy coding with Continue! 🚀
deleted docs/guides/understanding-assistants.mdx +0 −202
@@ -1,202 +0,0 @@
1----
2-title: "How to Understand Assistants: Hub vs Local Configuration"
3-description: "Learn how to choose between cloud-managed Hub assistants and local configuration for AI development assistance in Continue, including setup, management, and best practices for each approach"
4----
5-
6-Every developer has unique needs when it comes to AI assistance. Some prefer the convenience of cloud-managed configurations, while others need the control and privacy of local setups. Continue offers both paths, and this guide will help you choose the right one for your workflow.
7-
8-## What Are the Two Paths to AI Assistance?
9-
10-Continue provides two distinct ways to configure your AI assistant:
11-
12-Think of Continue's configuration options like choosing between a managed service and self-hosting. Both get you to the same destination—powerful AI assistance in your IDE—but the journey and control level differ significantly.
13-
14-### How to Access Your Assistant Configuration
15-
16-Before we dive into the specifics, let's understand how to access your configuration:
17-
18-1. Open the Continue Chat sidebar by pressing <kbd>cmd/ctrl</kbd> + <kbd>L</kbd> (VS Code) or <kbd>cmd/ctrl</kbd> + <kbd>J</kbd> (JetBrains)
19-2. Click the Assistant selector above the main chat input
20-3. Hover over an assistant and click:
21- - `new window` icon for Hub assistants
22- - `gear` icon for Local assistants
23-
24-![configure an assistant](/images/configure-continue.png)
25-
26-## What Are Hub Assistants: The Managed Experience
27-
28-Hub Assistants represent the "it just works" philosophy. When you [sign in to Continue Hub](https://auth.continue.dev/), you gain access to a curated ecosystem of pre-configured assistants that sync seamlessly across all your development environments.
29-
30-### Why Should You Choose Hub Assistants?
31-
32-**The Power of Simplicity**
33-
34-- **Instant Setup**: Browse the [assistant marketplace](https://hub.continue.dev/explore/assistants) and add any assistant to your account with a single click
35-- **Web-Based Management**: Configure models, add secrets, and customize settings through an intuitive web interface—no JSON editing required
36-- **Automatic Synchronization**: Make a change on the hub, and it reflects immediately across all your IDE instances
37-- **Team Collaboration**: Share custom assistants with your team, ensuring everyone uses the same optimized configurations
38-
39-![nextjs assistant](/images/nextjs-assistant.png)
40-
41-### How to Get Started with Hub Assistants
42-
43-The journey from zero to AI-powered coding takes just four steps:
44-
45-1. **Select Your Assistant**: Click the assistant selector in your IDE's Continue panel
46-2. **Explore or Create**: Browse community assistants or craft your own specialized helper
47-3. **Secure Your Keys**: Add API keys as [User Secrets](https://hub.continue.dev/settings/secrets) in the hub—they're encrypted and never exposed
48-4. **Sync and Code**: Click "Reload config" to pull your latest settings
49-
50-Pro tip: Hub Assistants are perfect for teams. Create a custom assistant with your team's coding standards, preferred models, and context sources, then share it with a simple link.
51-
52-### How to Manage Hub Assistants
53-
54-All Hub Assistant management happens through [the Hub](https://hub.continue.dev). For detailed customization, see our guide on [Editing an Assistant](/hub/assistants/edit-an-assistant).
55-
56-## What Are Local Assistants: The Power User's Choice
57-
58-Local Assistants put you in the driver's seat. Using a `config.yaml` file, you have complete control over every aspect of your AI assistant's behavior, with all configuration stored directly on your machine.
59-
60-### Why Should You Choose Local Assistants?
61-
62-**Complete Control and Privacy**
63-
64-- **Your Data, Your Rules**: All configuration stays on your machine—perfect for air-gapped environments or strict data policies
65-- **Version Control Integration**: Check your `config.yaml` into git alongside your code, ensuring reproducible environments
66-- **Offline Capability**: Once configured, no internet connection needed (assuming you're using local models)
67-- **Unlimited Customization**: Access every configuration option, experimental feature, and advanced setting
68-
69-### How to Set Up Local Assistants
70-
71-Local configuration lives in a single YAML file in your home directory:
72-
73-**File Locations:**
74-
75-- macOS/Linux: `~/.continue/config.yaml`
76-- Windows: `%USERPROFILE%\.continue\config.yaml`
77-
78-**Quick Access Method:**
79-
80-1. Open the assistants dropdown in your IDE
81-2. Click the gear icon next to "Local Assistant"
82-3. The `config.yaml` file opens in your editor
83-
84-![local-config-open-steps](/images/local-config-open-steps.png)
85-
86-### The Local Assistant Experience
87-
88-When you edit your `config.yaml`, Continue provides intelligent autocomplete for all available options. Save the file, and Continue automatically reloads your configuration—no restart required.
89-
90-The first time you use Continue, it generates a `config.yaml` with sensible defaults. From there, you can customize everything from model selection to context providers, slash commands, and more.
91-
92-For the complete configuration reference, see our [config.yaml documentation](/reference).
93-
94-## How to Make the Right Choice
95-
96-The decision between Hub and Local assistants often comes down to your specific needs and constraints. Here's a framework to help you decide:
97-
98-### Choose Hub Assistants When You:
99-
100-**Value Convenience Over Control**
101-
102-- Want to start coding with AI assistance in under 60 seconds
103-- Prefer visual interfaces over editing configuration files
104-- Need to switch between multiple machines frequently
105-- Work in a team that needs standardized AI assistance
106-
107-**Need Advanced Collaboration**
108-
109-- Want to share custom assistants with teammates
110-- Need centralized API key management
111-- Require quick updates across your entire organization
112-
113-**Are Getting Started**
114-
115-- New to AI-powered development
116-- Want to experiment with different models and configurations
117-- Prefer guided setup experiences
118-
119-### Choose Local Assistants When You:
120-
121-**Require Maximum Control**
122-
123-- Need to version control your exact configuration
124-- Want to customize every aspect of the AI behavior
125-- Require reproducible development environments
126-
127-**Have Privacy Requirements**
128-
129-- Work with sensitive code that requires air-gapped environments
130-- Need to ensure all configuration data stays local
131-- Have strict compliance requirements about data storage
132-
133-**Are a Power User**
134-
135-- Comfortable editing YAML/JSON files
136-- Want access to experimental features
137-- Need to integrate with local tools and scripts
138-
139-## How to Use the Hybrid Approach
140-
141-Here's a secret: you don't have to choose just one. Many developers use both approaches:
142-
143-- **Hub Assistants** for general development and experimentation
144-- **Local Assistants** for production work or client projects with specific requirements
145-
146-You can switch between them seamlessly using the assistant selector in your IDE.
147-
148-## Common Patterns and Best Practices
149-
150-### For Hub Assistant Users
151-
152-1. **Start with Community Assistants**: Before creating your own, explore what others have built
153-2. **Use Secrets Properly**: Never hardcode API keys—always use the User Secrets feature
154-3. **Create Specialized Assistants**: Make different assistants for different contexts (frontend, backend, DevOps)
155-4. **Share Liberally**: If you create something useful, share it with the community
156-
157-### For Local Assistant Users
158-
159-1. **Version Control Your Config**: Treat your `config.yaml` like code—commit it, review changes, and maintain history
160-2. **Use Environment Variables**: For sensitive data, reference environment variables instead of hardcoding values
161-3. **Document Your Setup**: Add comments to your config explaining non-obvious choices
162-4. **Keep a Backup**: Before major changes, save a working copy of your configuration
163-
164-## Troubleshooting and Tips
165-
166-### Hub Assistant Issues
167-
168-**Changes Not Reflecting?**
169-
170-- Click "Reload config" in your IDE
171-- Check your internet connection
172-- Ensure you're signed in to the correct account
173-
174-**Assistant Not Available?**
175-
176-- Verify it's added to your account on the hub
177-- Check if it requires specific API keys
178-
179-### Local Assistant Issues
180-
181-**Config Not Loading?**
182-
183-- Verify file location matches your OS
184-- Check YAML syntax (Continue will show errors)
185-- Ensure file permissions allow reading
186-
187-**Autocomplete Not Working?**
188-
189-- Update to the latest Continue version
190-- Check that you're editing the correct file
191-
192-## Next Steps
193-
194-Now that you understand both configuration approaches, you're ready to dive deeper:
195-
196-- **For Hub Users**: [Create Your First Assistant](/hub/assistants/create-an-assistant)
197-- **For Local Users**: [Explore the Config Reference](/reference)
198-- **For Everyone**: [Discover Available Models](/customize/model-providers/overview)
199-
200-Remember, the best configuration is the one that helps you code more effectively. Start simple, experiment freely, and gradually refine your setup as you discover what works best for your workflow.
201-
202-Happy coding with Continue! 🚀
added docs/hub/agents/create-an-agent.mdx +34 −0
@@ -0,0 +1,34 @@
1+---
2+title: "How to Create an AI Agent"
3+description: "Learn how to create custom AI coding agents in Continue Hub by remixing existing agents or building new ones from scratch with reusable blocks and YAML configuration."
4+sidebarTitle: "Create an AI Agent"
5+---
6+
7+## How to Create an AI Agent from Scratch
8+
9+To create an agent from scratch, select “New agent” in the top bar.
10+
11+![New agent button](/images/hub/assistants/images/assistant-new-button-16070e2cff9ce25ec9ebfeecb0e2f2b5.png)
12+
13+Choose a name, slug, description, and icon for your agent.
14+
15+The easiest way to create an agent is to click "Create agent" with the default configuration and then add / remove blocks using the sidebar.
16+
17+Alternatively, you can edit the agent YAML directly before clicking "Create agent". Refer to examples of agents on [hub.continue.dev](https://hub.continue.dev) and visit the [YAML Reference](/reference#complete-yaml-config-example) docs for more details.
18+
19+![New agent YAML](/images/hub/assistants/images/assistant-create-yaml-a991e5a81506f1c3ba611a664a50734c.png)
20+
21+## How to Remix an Agent
22+
23+You can also create an agent by remixing an existing one. This is useful if you want to start with a pre-configured agent and make modifications.
24+
25+By clicking the “remix” button, you’ll be taken to the “Create a remix” page.
26+
27+![Remix Agent Button](/images/hub/assistants/images/assistant-remix-button-728ececa73983140eeab42e33cc3903b.png)
28+
29+Once here, you’ll be able to
30+
31+1. add or remove blocks in YAML configuration
32+2. change the name, description, icon, etc.
33+
34+Clicking “Create agent” will make this agent available for use.
added docs/hub/agents/edit-an-agent.mdx +20 −0
@@ -0,0 +1,20 @@
1+---
2+title: "How to Edit an Agent"
3+description: "New versions of an agent can be created and published using the sidebar."
4+---
5+
6+![Remix Agent Button](/images/hub/assistants/images/assistant-create-sidebar-608be49973f2a7723212adeb52dbcafb.png)
7+
8+First, select an agent from the dropdown at the top.
9+
10+While editing an agent, you can explore the hub and click "Add Block" from a block page to add it to your agent.
11+
12+For blocks that require secret values like API keys, you will see a small notification on the block's tile in the sidebar that will indicate if action is needed.
13+
14+To delete a block, click the trash icon.
15+
16+If a block you want to use does not exist yet, you can [create a new block](/hub/blocks/create-a-block).
17+
18+When you are done editing, click "Publish" to publish a new version of the agent.
19+
20+Click "Open VS Code" or "Open JetBrains" to open your IDE for using the agent.
added docs/hub/agents/intro.mdx +8 −0
@@ -0,0 +1,8 @@
1+---
2+title: "Introduction to Agents"
3+description: "Custom AI code agents are configurations of building blocks that enable a coding experience tailored to your specific use cases."
4+---
5+
6+`config.yaml` is a format for defining custom AI code agents. An agent has some top-level properties (e.g. `name`, `version`), but otherwise consists of composable lists of **blocks** such as `models` and `rules`, which are the atomic building blocks of an agent.
7+
8+The `config.yaml` is parsed by the open-source Continue IDE extensions to create custom agent experiences. When you log in to [hub.continue.dev](https://hub.continue.dev/), your agents will automatically be synced with the IDE extensions.
added docs/hub/agents/use-an-agent.mdx +19 −0
@@ -0,0 +1,19 @@
1+---
2+title: "How to Use an Agent"
3+description: "Learn how to add, configure, and use an AI agent in Continue, including setting required inputs and selecting it in your IDE extension."
4+---
5+
6+## Steps to Use an AI Agent in Continue
7+
8+Once you've found the agent you want to use on Continue Hub:
9+
10+1. Click “Add Agent” on its page
11+2. Add any required inputs (e.g. secrets like API keys)
12+3. Select “Save changes” in agent sidebar on the right hand side
13+
14+After saving, open your IDE extension and:
15+
16+- Select the agent from the **agent dropdown** in the Continue extension.
17+- Begin using it for chat, code generation, or other configured capabilities.
18+
19+![Extension Agent Selector](/images/hub/assistants/images/assistant-extension-select.png)
deleted docs/hub/assistants/create-an-assistant.mdx +0 −34
@@ -1,34 +0,0 @@
1----
2-title: "How to Create an AI Assistant"
3-description: "Learn how to create custom AI coding assistants in Continue Hub by remixing existing assistants or building new ones from scratch with reusable blocks and YAML configuration."
4-sidebarTitle: "Create an AI Assistant"
5----
6-
7-## How to Create an AI Assistant from Scratch
8-
9-To create an assistant from scratch, select “New assistant” in the top bar.
10-
11-![New assistant button](/images/hub/assistants/images/assistant-new-button-16070e2cff9ce25ec9ebfeecb0e2f2b5.png)
12-
13-Choose a name, slug, description, and icon for your assistant.
14-
15-The easiest way to create an assistant is to click "Create assistant" with the default configuration and then add / remove blocks using the sidebar.
16-
17-Alternatively, you can edit the assistant YAML directly before clicking "Create assistant". Refer to examples of assistants on [hub.continue.dev](https://hub.continue.dev/explore/assistants) and visit the [YAML Reference](/reference#complete-yaml-config-example) docs for more details.
18-
19-![New assistant YAML](/images/hub/assistants/images/assistant-create-yaml-a991e5a81506f1c3ba611a664a50734c.png)
20-
21-## How to Remix an Assistant
22-
23-You can also create an assistant by remixing an existing one. This is useful if you want to start with a pre-configured assistant and make modifications.
24-
25-By clicking the “remix” button, you’ll be taken to the “Create a remix” page.
26-
27-![Remix Assistant Button](/images/hub/assistants/images/assistant-remix-button-728ececa73983140eeab42e33cc3903b.png)
28-
29-Once here, you’ll be able to
30-
31-1. add or remove blocks in YAML configuration
32-2. change the name, description, icon, etc.
33-
34-Clicking “Create assistant” will make this assistant available for use.
deleted docs/hub/assistants/edit-an-assistant.mdx +0 −20
@@ -1,20 +0,0 @@
1----
2-title: "How to Edit an Assistant"
3-description: "New versions of an assistant can be created and published using the sidebar."
4----
5-
6-![Remix Assistant Button](/images/hub/assistants/images/assistant-create-sidebar-608be49973f2a7723212adeb52dbcafb.png)
7-
8-First, select an assistant from the dropdown at the top.
9-
10-While editing an assistant, you can explore the hub and click "Add Block" from a block page to add it to your assistant.
11-
12-For blocks that require secret values like API keys, you will see a small notification on the block's tile in the sidebar that will indicate if action is needed.
13-
14-To delete a block, click the trash icon.
15-
16-If a block you want to use does not exist yet, you can [create a new block](/hub/blocks/create-a-block).
17-
18-When you are done editing, click "Publish" to publish a new version of the assistant.
19-
20-Click "Open VS Code" or "Open JetBrains" to open your IDE for using the assistant.
deleted docs/hub/assistants/intro.mdx +0 −8
@@ -1,8 +0,0 @@
1----
2-title: "Introduction to Assistants"
3-description: "Custom AI code assistants are configurations of building blocks that enable a coding experience tailored to your specific use cases."
4----
5-
6-`config.yaml` is a format for defining custom AI code assistants. An assistant has some top-level properties (e.g. `name`, `version`), but otherwise consists of composable lists of **blocks** such as `models` and `rules`, which are the atomic building blocks of an assistant.
7-
8-The `config.yaml` is parsed by the open-source Continue IDE extensions to create custom assistant experiences. When you log in to [hub.continue.dev](https://hub.continue.dev/), your assistants will automatically be synced with the IDE extensions.
deleted docs/hub/assistants/use-an-assistant.mdx +0 −19
@@ -1,19 +0,0 @@
1----
2-title: "How to Use an Assistant"
3-description: "Learn how to add, configure, and use an AI assistant in Continue, including setting required inputs and selecting it in your IDE extension."
4----
5-
6-## Steps to Use an AI Assistant in Continue
7-
8-Once you've found the assistant you want to use on Continue Hub:
9-
10-1. Click “Add Assistant” on its page
11-2. Add any required inputs (e.g. secrets like API keys)
12-3. Select “Save changes” in assistant sidebar on the right hand side
13-
14-After saving, open your IDE extension and:
15-
16-- Select the assistant from the **assistant dropdown** in the Continue extension.
17-- Begin using it for chat, code generation, or other configured capabilities.
18-
19-![Extension Assistant Selector](/images/hub/assistants/images/assistant-extension-select.png)
modified docs/hub/blocks/block-types.mdx +1 −1
@@ -20,7 +20,7 @@
2020
2121 ## Rules
2222
23-Rules blocks are instructions that your custom AI code assistant will always keep in mind - the contents of rules are inserted into the system message for all Chat requests. [Explore rules](https://hub.continue.dev/explore/rules) on the hub.
23+Rules blocks are instructions that your custom AI code agent will always keep in mind - the contents of rules are inserted into the system message for all Chat requests. [Explore rules](https://hub.continue.dev/explore/rules) on the hub.
2424
2525 Learn more in the [rules deep dive](/customize/deep-dives/rules), and view [`rules`](/reference#rules) in the YAML Reference for more details.
2626
modified docs/hub/blocks/create-a-block.mdx +2 −2
@@ -12,7 +12,7 @@
1212
1313 ![Remix block button](/images/hub/blocks/images/block-remix-button-913beb80672662855acc7013561c78d0.png)
1414
15-Once here, you’ll be able to 1) edit YAML configuration for the block and 2) change name, description, icon, etc. Clicking “Create block” will make this block available for use in an assistant.
15+Once here, you’ll be able to 1) edit YAML configuration for the block and 2) change name, description, icon, etc. Clicking “Create block” will make this block available for use in an agent.
1616
1717 ## How to Create a Block from Scratch
1818
@@ -26,4 +26,4 @@
2626
2727 ### Block Inputs
2828
29-Blocks can receive values, including secrets, as inputs through templating. For values that the user of the block needs to set, you can use template variables (e.g. `${{ inputs.API_KEY}}`). Then, the user can set `API_KEY: ${{ secrets.MY_API_KEY }}` in the `with` clause of their assistant.
29+Blocks can receive values, including secrets, as inputs through templating. For values that the user of the block needs to set, you can use template variables (e.g. `${{ inputs.API_KEY}}`). Then, the user can set `API_KEY: ${{ secrets.MY_API_KEY }}` in the `with` clause of their agent.
modified docs/hub/blocks/intro.mdx +2 −2
@@ -1,6 +1,6 @@
11 ---
22 title: "Introduction"
3-description: "Blocks are the components you use to build a custom AI code assistant. These include Models, MCP Servers, Rules, and Prompts."
3+description: "Blocks are the components you use to build a custom AI code agent. These include Models, MCP Servers, Rules, and Prompts."
44 ---
55
6-Blocks follow the [`config.yaml`](/reference) format. When combined with other blocks into a complete `config.yaml`, they form a custom AI code assistant.
6+Blocks follow the [`config.yaml`](/reference) format. When combined with other blocks into a complete `config.yaml`, they form a custom AI code agent.
modified docs/hub/blocks/use-a-block.mdx +4 −4
@@ -1,12 +1,12 @@
11 ---
22 title: "How to Use a Block"
3-description: "Learn how to use blocks in Continue Hub to enhance your AI code assistant."
3+description: "Learn how to use blocks in Continue Hub to enhance your AI code agent."
44 ---
55
6-Blocks are used to build custom AI code assistants in Continue Hub. Learn more:
6+Blocks are used to build custom AI code agents in Continue Hub. Learn more:
77
8-- [Create an assistant](/hub/assistants/create-an-assistant)
9-- [Edit an assistant](/hub/assistants/edit-an-assistant)
8+- [Create an agent](/hub/agents/create-an-agent)
9+- [Edit an agent](/hub/agents/edit-an-agent)
1010
1111 Some blocks require inputs. If you are missing an input for a block, a notification icon will show up in the sidebar next to the block. Click the notification to select which secret to use for the block input:
1212
modified docs/hub/governance/creating-an-org.mdx +1 −1
@@ -6,7 +6,7 @@
66 ![create an org selector](/images/hub/governance/images/org-selector-4ea627afc7c0765633780920a0fbe16e.png)
77
88 1. Choose a name, which will be used as the display name for your organization throughout the hub
9-2. Add a slug, which will be used for your org URL and as the prefix to all organization blocks and assistant slugs
9+2. Add a slug, which will be used for your org URL and as the prefix to all organization blocks and agent slugs
1010 3. Select an icon for your organization using the image uploader
1111 4. Finally, add a Biography, which will be displayed on your org Home Page
1212
modified docs/hub/secrets/secret-types.mdx +3 −3
@@ -1,16 +1,16 @@
11 ---
22 title: "Secret Types"
3-description: "The Continue Hub comes with secrets management built-in. Secrets are values such as API keys or endpoints that can be shared across assistants and within organizations."
3+description: "The Continue Hub comes with secrets management built-in. Secrets are values such as API keys or endpoints that can be shared across agents and within organizations."
44 ---
55
66 ## User secrets
77
8-User secrets are defined by the user for themselves. This means that user secrets are available only to the user that created them. User secrets are assumed to be safe for the user to know, so they will be sent to the IDE extensions alongside the assistant `config.yaml`.
8+User secrets are defined by the user for themselves. This means that user secrets are available only to the user that created them. User secrets are assumed to be safe for the user to know, so they will be sent to the IDE extensions alongside the agent `config.yaml`.
99
1010 This allows API requests to be made directly from the IDE extensions. You can use user secrets with [Solo](/hub/governance/pricing#solo), [Teams](/hub/governance/pricing#teams), and [Enterprise](/hub/governance/pricing#enterprise). User secrets can be managed [here](https://hub.continue.dev/settings/secrets) in the hub.
1111
1212 ## Org secrets
1313
14-Org secrets are defined by admins for their organization. Org secrets are available to anyone in the organization to use with assistants in that organization. Org secrets are assumed to not be shareable with the user (e.g. you are a team lead who wants to give team members access to models without passing out API keys).
14+Org secrets are defined by admins for their organization. Org secrets are available to anyone in the organization to use with agents in that organization. Org secrets are assumed to not be shareable with the user (e.g. you are a team lead who wants to give team members access to models without passing out API keys).
1515
1616 This is why LLM requests are proxied through api.continue.dev / on-premise proxy and secrets are never sent to the IDE extensions. You can only use org secrets on [Teams](/hub/governance/pricing#teams) and [Enterprise](/hub/governance/pricing#enterprise). If you are an admin, you can manage secrets for your organization from the org settings page.
modified docs/hub/sharing.mdx +4 −4
@@ -15,17 +15,17 @@
1515
1616 [Visit the Hub →](https://hub.continue.dev)
1717
18-## Browse Assistants
18+## Browse Agents
1919
2020 Explore assistants created by the community for specific use cases and workflows.
2121
22-[Browse Assistants →](https://hub.continue.dev)
22+[Browse Agents →](https://hub.continue.dev)
2323
24-## Using Assistants
24+## Using Agents
2525
2626 Learn how to discover, install, and use community-created assistants in your projects.
2727
28-[Learn About Assistants →](/hub/assistants/intro)
28+[Learn About Agents →](/hub/assistants/intro)
2929
3030 ---
3131
modified docs/hub/source-control.mdx +5 −5
@@ -1,6 +1,6 @@
11 ---
22 title: "Source Control"
3-description: "When managing your custom assistants within an organization, you might want to take advantage of your usual source control workflows. Continue makes this easy with a that automatically syncs your YAML files with hub.continue.dev. We are also planning on adding automations for GitLab, BitBucket, Gitee, and others. If you are interested, please reach out to us on ."
3+description: "When managing your custom agents within an organization, you might want to take advantage of your usual source control workflows. Continue makes this easy with a that automatically syncs your YAML files with hub.continue.dev. We are also planning on adding automations for GitLab, BitBucket, Gitee, and others. If you are interested, please reach out to us on ."
44 ---
55
66 ## Quickstart
@@ -34,11 +34,11 @@
3434
3535 ### 4. Commit and push
3636
37-Add the [YAML for your assistants and blocks](/reference) to the appropriate directories. The name of the file will be the slug of the assistant/block.
37+Add the [YAML for your agents and blocks](/reference) to the appropriate directories. The name of the file will be the slug of the agent/block.
3838
39-- `assistants/public` for public assistants
40-- `assistants/private` for private (visible only within your organization) assistants
39+- `assistants/public` for public agents
40+- `assistants/private` for private (visible only within your organization) agents
4141 - `blocks/public` for public blocks
4242 - `blocks/private` for private blocks
4343
44-Then, commit and push your changes. Once the GitHub Action has completed running, you should be able to view the assistants within your organization on hub.continue.dev. For subsequent changes, make sure to increment the `version` property of your updated YAML file(s).
44+Then, commit and push your changes. Once the GitHub Action has completed running, you should be able to view the agents within your organization on hub.continue.dev. For subsequent changes, make sure to increment the `version` property of your updated YAML file(s).
modified docs/reference.mdx +20 −20
@@ -1,43 +1,43 @@
11 ---
22 title: "config.yaml Reference"
3-description: "Comprehensive guide to the config.yaml format used by Continue.dev for building custom coding assistants. Learn how to define models, context providers, rules, prompts, and more using reusable blocks and YAML configuration."
3+description: "Comprehensive guide to the config.yaml format used by Continue.dev for building custom coding agents. Learn how to define models, context providers, rules, prompts, and more using reusable blocks and YAML configuration."
44 ---
55
66 ## Introduction
77
8-Continue hub assistants are defined using the `config.yaml` specification. Assistants can be loaded from [the Hub](https://hub.continue.dev/explore/assistants) or locally
8+Continue hub agents are defined using the `config.yaml` specification. Agents can be loaded from [the Hub](https://hub.continue.dev/explore/agents) or locally
99
10-- [Continue Hub](https://hub.continue.dev/explore/assistants) - YAML is stored on the hub and automatically synced to the extension
10+- [Continue Hub](https://hub.continue.dev/explore/agents) - YAML is stored on the hub and automatically synced to the extension
1111
1212 - Locally
13- - in your global `.continue` folder (`~/.continue` on Mac, `%USERPROFILE%\.continue`) within `.continue/assistants`. The name of the file will be used as the display name of the assistant, e.g. `My Assistant.yaml`
14- - in your workspace in a `/.continue/assistants` folder, with the same naming convention
13+ - in your global `.continue` folder (`~/.continue` on Mac, `%USERPROFILE%\.continue`) within `.continue/agents`. The name of the file will be used as the display name of the agent, e.g. `My Agent.yaml`
14+ - in your workspace in a `/.continue/agents` folder, with the same naming convention
1515
1616 <Info>
1717 Config YAML replaces `config.json`, which is deprecated. View the **[Migration
1818 Guide](/reference/yaml-migration)**.
1919 </Info>
2020
21-An assistant is made up of:
21+An agent is made up of:
2222
23-1. **Top level properties**, which specify the `name`, `version`, and `config.yaml` `schema` for the assistant
24-2. **Block lists**, which are composable arrays of coding assistant building blocks available to the assistant, such as models, docs, and context providers.
23+1. **Top level properties**, which specify the `name`, `version`, and `config.yaml` `schema` for the agent
24+2. **Block lists**, which are composable arrays of coding agent building blocks available to the agent, such as models, docs, and context providers.
2525
26-A block is a single standalone building block of a coding assistants, e.g., one model or one documentation source. In `config.yaml` syntax, a block consists of the same top-level properties as assistants (`name`, `version`, and `schema`), but only has **ONE** item under whichever block type it is.
26+A block is a single standalone building block of a coding agents, e.g., one model or one documentation source. In `config.yaml` syntax, a block consists of the same top-level properties as agents (`name`, `version`, and `schema`), but only has **ONE** item under whichever block type it is.
2727
28-Examples of blocks and assistants can be found on the [Continue hub](https://hub.continue.dev/explore/assistants).
28+Examples of blocks and agents can be found on the [Continue Hub](https://hub.continue.dev).
2929
30-Assistants can either explicitly define blocks - see [Properties](#properties) below - or import and configure existing hub blocks.
30+Agents can either explicitly define blocks - see [Properties](#properties) below - or import and configure existing hub blocks.
3131
3232 ### Using Blocks
3333
34-Hub blocks and assistants are identified with a slug in the format `owner-slug/block-or-assistant-slug`, where an owner can be a user or organization (For example, if you want to use the [OpenAI 4o Model block](https://hub.continue.dev/openai/gpt-4o), your slug would be `openai/gpt-4o`). These blocks are pulled from [https://hub.continue.dev](https://hub.continue.dev).
34+Hub blocks and agents are identified with a slug in the format `owner-slug/block-or-agent-slug`, where an owner can be a user or organization (For example, if you want to use the [OpenAI 4o Model block](https://hub.continue.dev/openai/gpt-4o), your slug would be `openai/gpt-4o`). These blocks are pulled from [https://hub.continue.dev](https://hub.continue.dev).
3535
36-Blocks can be imported into an assistant by adding a `uses` clause under the block type. This can be alongside other `uses` clauses or explicit blocks of that type.
36+Blocks can be imported into an agent by adding a `uses` clause under the block type. This can be alongside other `uses` clauses or explicit blocks of that type.
3737
38-For example, the following assistant imports an Anthropic model and defines an Ollama DeepSeek one.
38+For example, the following agent imports an Anthropic model and defines an Ollama DeepSeek one.
3939
40-Assistant models section
40+Agent models section
4141
4242 ```yaml
4343 name: Team Agent
@@ -52,13 +52,13 @@
5252
5353 ### Local Blocks
5454
55-It is also possible to define blocks locally in a `.continue` folder. This folder can be located at either the root of your workspace (these will automatically be applied to all assistants when you are in that workspace) or in your home directory at `~/.continue` (these will automatically be applied globally).
55+It is also possible to define blocks locally in a `.continue` folder. This folder can be located at either the root of your workspace (these will automatically be applied to all agents when you are in that workspace) or in your home directory at `~/.continue` (these will automatically be applied globally).
5656
5757 Place your YAML files in the following folders:
5858
59-Assistants:
59+Agents:
6060
61-- `.continue/assistants` - for assistants
61+- `.continue/agents` - for agents
6262
6363 Blocks:
6464
@@ -100,7 +100,7 @@
100100 Which can then be imported like this:
101101
102102 ```yaml title="config.yaml"
103-name: myprofile/custom-assistant
103+name: myprofile/custom-agent
104104 version: 1.0.0
105105 schema: v1
106106
@@ -118,7 +118,7 @@
118118 Block properties can be also be directly overriden using `override`. For example:
119119
120120 ```yaml title="config.yaml"
121-name: myprofile/custom-assistant
121+name: myprofile/custom-agent
122122 version: 1.0.0
123123 schema: v1
124124
modified docs/reference/continue-mcp.mdx +1 −1
@@ -45,7 +45,7 @@
4545 ### Customization
4646
4747 ```
48-How do I add custom rules to my assistant in Continue?
48+How do I add custom rules to my agent in Continue?
4949 ```
5050
5151 ## Troubleshooting
modified docs/reference/deprecated-docs.mdx +1 −1
@@ -408,4 +408,4 @@
408408 </Tab>
409409 </Tabs>
410410
411-This setup could also involve enabling Chromium as a backup for local documentation through the [User Settings Page](../customize/settings).
No newline at the end of the file
411+This setup could also involve enabling Chromium as a backup for local documentation through the User Settings Page (Gear Icon).
No newline at the end of the file
modified docs/snippets/ModelRecommendations.jsx +4 −4
@@ -50,8 +50,8 @@
5050 "[Kimi K2 (1T)](https://hub.continue.dev/openrouter/kimi-k2)",
5151 "[gpt-oss (120B)](https://hub.continue.dev/openrouter/gpt-oss-120b)",
5252 "[gpt-oss (20B)](https://hub.continue.dev/ollama/gpt-oss-20b)",
53- "GLM 4.5 (355B)",
54- "GLM 4.5 Air (106B)",
53+ "[GLM 4.5 (355B)](https://hub.continue.dev/openrouter/glm-4-5)",
54+ "[GLM 4.5 Air (106B)](https://hub.continue.dev/openrouter/glm-4-5-air)",
5555 ],
5656 closed: [
5757 "[Claude Opus 4.1](https://hub.continue.dev/anthropic/claude-4-1-opus)",
@@ -83,7 +83,7 @@
8383 ],
8484 closed: [
8585 "[Codestral](https://hub.continue.dev/mistral/codestral)",
86- "[Mercury Coder](https://hub.continue.dev/inceptionlabs/mercury-coder)",
86+ "[Mercury Coder](https://hub.continue.dev/inception/mercury-coder)",
8787 ],
8888 notes: "Closed models are slightly better than open models",
8989 },
@@ -119,7 +119,7 @@
119119 next_edit: {
120120 open: ["[Instinct](https://hub.continue.dev/continuedev/instinct)"],
121121 closed: [
122- "[Mercury Coder](https://hub.continue.dev/inceptionlabs/mercury-coder)",
122+ "[Mercury Coder](https://hub.continue.dev/inception/mercury-coder)",
123123 ],
124124 notes: "Closed models are better than open models",
125125 },
deleted extensions/cli/.github/workflows/respond-to-cubic-dev-ai.yml +0 −215
@@ -1,215 +0,0 @@
1-name: Respond to @continuedev Comments
2-
3-on:
4- issue_comment:
5- types: [created]
6- pull_request_review_comment:
7- types: [created]
8-
9-permissions:
10- contents: write
11- pull-requests: write
12- issues: write
13-
14-jobs:
15- respond-to-comment:
16- # Only run on pull request comments
17- if: github.event_name == 'issue_comment' && github.event.issue.pull_request
18- runs-on: ubuntu-latest
19-
20- steps:
21- - name: Check if comment contains @continuedev
22- id: check-mention
23- run: |
24- if echo "${{ github.event.comment.body }}" | grep -q "@continuedev"; then
25- echo "contains_mention=true" >> $GITHUB_OUTPUT
26- else
27- echo "contains_mention=false" >> $GITHUB_OUTPUT
28- fi
29-
30- - name: Checkout PR branch
31- if: steps.check-mention.outputs.contains_mention == 'true'
32- uses: actions/checkout@v4
33- with:
34- token: ${{ secrets.GITHUB_TOKEN }}
35- fetch-depth: 0
36-
37- - name: Get PR information
38- if: steps.check-mention.outputs.contains_mention == 'true'
39- id: pr-info
40- uses: actions/github-script@v7
41- with:
42- script: |
43- const { data: pr } = await github.rest.pulls.get({
44- owner: context.repo.owner,
45- repo: context.repo.repo,
46- pull_number: context.issue.number
47- });
48-
49- core.setOutput('head_ref', pr.head.ref);
50- core.setOutput('head_sha', pr.head.sha);
51- return pr;
52-
53- - name: Checkout PR branch
54- if: steps.check-mention.outputs.contains_mention == 'true'
55- run: |
56- git checkout ${{ steps.pr-info.outputs.head_ref }}
57-
58- - name: Setup Node.js
59- if: steps.check-mention.outputs.contains_mention == 'true'
60- uses: actions/setup-node@v4
61- with:
62- node-version: "20"
63-
64- - name: Install Continue CLI globally
65- if: steps.check-mention.outputs.contains_mention == 'true'
66- run: npm i -g @continuedev/cli
67-
68- - name: Start remote session
69- if: steps.check-mention.outputs.contains_mention == 'true'
70- id: remote-session
71- env:
72- CONTINUE_API_KEY: ${{ secrets.CONTINUE_API_KEY }}
73- run: |
74- # Create the prompt for remote session
75- PROMPT="Please help with the following request from @${{ github.event.comment.user.login }} on PR #${{ github.event.issue.number }}:
76-
77- ${{ github.event.comment.body }}
78-
79- Please analyze the current PR, understand the request, implement the necessary changes, and commit them to this branch."
80-
81- # Start remote session and capture JSON output
82- SESSION_OUTPUT=$(echo "$PROMPT" | cn remote -s --branch ${{ steps.pr-info.outputs.head_ref }})
83- echo "Raw session output: $SESSION_OUTPUT"
84-
85- # Extract URL from JSON output
86- SESSION_URL=$(echo "$SESSION_OUTPUT" | jq -r '.url // empty')
87-
88- if [ -z "$SESSION_URL" ] || [ "$SESSION_URL" = "null" ]; then
89- echo "Failed to extract session URL from output: $SESSION_OUTPUT"
90- exit 1
91- fi
92-
93- echo "session_url=$SESSION_URL" >> $GITHUB_OUTPUT
94- echo "✅ Started remote session: $SESSION_URL"
95-
96- - name: Comment with session URL
97- if: steps.check-mention.outputs.contains_mention == 'true' && steps.remote-session.outputs.session_url
98- uses: actions/github-script@v7
99- with:
100- script: |
101- const commentBody = `I've started [a remote session](${{ steps.remote-session.outputs.session_url }}) to help with your request:
102- > ${{ github.event.comment.body }}`;
103-
104- await github.rest.issues.createComment({
105- owner: context.repo.owner,
106- repo: context.repo.repo,
107- issue_number: context.issue.number,
108- body: commentBody
109- });
110-
111- - name: Log session details
112- if: steps.check-mention.outputs.contains_mention == 'true'
113- run: |
114- echo "✅ Successfully started remote session for comment from ${{ github.event.comment.user.login }} on PR #${{ github.event.issue.number }}"
115- echo "Session URL: ${{ steps.remote-session.outputs.session_url }}"
116- echo "Original comment: ${{ github.event.comment.body }}"
117-
118- respond-to-review-comment:
119- # Only run on pull request review comments
120- if: github.event_name == 'pull_request_review_comment'
121- runs-on: ubuntu-latest
122-
123- steps:
124- - name: Check if comment contains @continuedev
125- id: check-mention
126- run: |
127- if echo "${{ github.event.comment.body }}" | grep -q "@continuedev"; then
128- echo "contains_mention=true" >> $GITHUB_OUTPUT
129- else
130- echo "contains_mention=false" >> $GITHUB_OUTPUT
131- fi
132-
133- - name: Checkout PR branch
134- if: steps.check-mention.outputs.contains_mention == 'true'
135- uses: actions/checkout@v4
136- with:
137- token: ${{ secrets.GITHUB_TOKEN }}
138- fetch-depth: 0
139- ref: ${{ github.event.pull_request.head.ref }}
140-
141- - name: Setup Node.js
142- if: steps.check-mention.outputs.contains_mention == 'true'
143- uses: actions/setup-node@v4
144- with:
145- node-version: "20"
146-
147- - name: Install Continue CLI globally
148- if: steps.check-mention.outputs.contains_mention == 'true'
149- run: npm i -g @continuedev/cli
150-
151- - name: Start remote session
152- if: steps.check-mention.outputs.contains_mention == 'true'
153- id: remote-session
154- env:
155- CONTINUE_API_KEY: ${{ secrets.CONTINUE_API_KEY }}
156- run: |
157- # Create a temporary file for the prompt to handle special characters and newlines properly
158- cat > /tmp/prompt.txt << 'PROMPT_EOF'
159- Please help with the following code review comment from @${{ github.event.comment.user.login }} on PR #${{ github.event.pull_request.number }}:
160-
161- **File:** ${{ github.event.comment.path }}
162- **Line:** ${{ github.event.comment.line || github.event.comment.original_line || 'N/A' }}
163- **Comment:** ${{ github.event.comment.body }}
164-
165- Please analyze the specific file and line mentioned, understand the review feedback, implement the necessary changes, and commit them to this branch.
166- PROMPT_EOF
167-
168- # Debug output
169- echo "PROMPT content:"
170- cat /tmp/prompt.txt
171-
172- # Start remote session and capture JSON output
173- echo "Starting cn with prompt..."
174- SESSION_OUTPUT=$(cat /tmp/prompt.txt | cn remote -s --branch ${{ github.event.pull_request.head.ref }})
175- echo "Raw session output: $SESSION_OUTPUT"
176-
177- # Extract URL from JSON output
178- SESSION_URL=$(echo "$SESSION_OUTPUT" | jq -r '.url // empty')
179-
180- if [ -z "$SESSION_URL" ] || [ "$SESSION_URL" = "null" ]; then
181- echo "Failed to extract session URL from output: $SESSION_OUTPUT"
182- exit 1
183- fi
184-
185- echo "session_url=$SESSION_URL" >> $GITHUB_OUTPUT
186- echo "✅ Started remote session: $SESSION_URL"
187-
188- - name: Comment with session URL
189- if: steps.check-mention.outputs.contains_mention == 'true' && steps.remote-session.outputs.session_url
190- uses: actions/github-script@v7
191- with:
192- script: |
193- const commentBody = `I've started [a remote session](${{ steps.remote-session.outputs.session_url }}) to help with your request:
194- > ${{ github.event.comment.body }}`;
195-
196- const commentParams = {
197- owner: context.repo.owner,
198- repo: context.repo.repo,
199- pull_number: ${{ github.event.pull_request.number }},
200- body: commentBody,
201- commit_id: '${{ github.event.pull_request.head.sha }}',
202- path: '${{ github.event.comment.path }}',
203- in_reply_to: ${{ github.event.comment.id }}
204- };
205-
206- await github.rest.pulls.createReviewComment(commentParams);
207-
208- - name: Log session details
209- if: steps.check-mention.outputs.contains_mention == 'true'
210- run: |
211- echo "✅ Successfully started remote session for review comment from ${{ github.event.comment.user.login }} on PR #${{ github.event.pull_request.number }}"
212- echo "Session URL: ${{ steps.remote-session.outputs.session_url }}"
213- echo "File: ${{ github.event.comment.path }}"
214- echo "Line: ${{ github.event.comment.line }}"
215- echo "Original comment: ${{ github.event.comment.body }}"
modified extensions/cli/package-lock.json +0 −0

Not shown: the file is larger than the hub shows, or this page holds as much as it shows. View the file.

added extensions/cli/spec/shell-mode.md +138 −0
@@ -0,0 +1,138 @@
1+shell Mode (CLI TUI)
2+
3+Overview
4+
5+- shell mode lets users run shell commands directly from the chat input by starting their input with an exclamation mark (!).
6+- It is intended for quick terminal command execution without leaving the TUI.
7+
8+Activation
9+
10+- shell mode is activated when the current input (trimmed) starts with !
11+ - Example: "!git status" or " !ls -la" both activate shell mode.
12+- Visual indicator:
13+ - Input border color changes to yellow.
14+ - The input prompt indicator changes to a yellow "$".
15+ - The input placeholder includes "! for shell mode".
16+
17+Deactivation / Exiting shell Mode
18+
19+- Pressing Enter to submit the input exits shell mode immediately after submission, regardless of the command result.
20+- Pressing Esc when the input (trimmed) is exactly ! clears the input and exits shell mode.
21+- Editing the input so it no longer starts with ! also exits shell mode and restores normal input behavior.
22+
23+Interaction with other input helpers
24+
25+- When in shell mode (input starts with !):
26+ - "@" file search suggestions are disabled.
27+ - "/" slash command UI is disabled.
28+- When in slash command mode (input starts with /):
29+ - "@" file search suggestions are disabled.
30+
31+Submission behavior
32+
33+- On submit (Enter) with a shell-mode input:
34+ - The leading ! is removed and the remainder is treated as the shell command to run.
35+ - The TUI immediately appends an assistant message representing a shell tool call, with status set to calling, so users can see that the command is in progress.
36+ - The shell command is executed asynchronously; when it completes, the tool call status is updated to done (or error) and the output is populated.
37+
38+Execution semantics
39+
40+- The command is executed in the same way as terminal tool commands, minus permissions
41+
42+Output handling
43+
44+- Stdout is streamed into memory; Stderr is captured and appended as a trailing "Stderr: ..." section on success.
45+- If the process exits non-zero and Stderr contains content, the tool call is marked as error and the error text is shown.
46+- Output is truncated to the first 5000 lines if exceeded.
47+- Timeout behavior: If no output is received for 30 seconds (configurable in tests), the process is terminated and the result includes a note like:
48+ "[Command timed out after 30 seconds of no output]".
49+
50+Keyboard behaviors (summary)
51+
52+- Enter: submit input. If in shell mode, exits shell mode after submission and shows the pending shell tool call immediately.
53+- Shift+Enter: new line.
54+- Backslash (\) at end-of-line: inserts a new line (line continuation) as usual.
55+- Esc: if only ! (trimmed) is present, clears input and exits shell mode; otherwise cancels streaming or closes suggestions depending on context.
56+
57+Scope / Modes
58+
59+- shell mode applies to interactive (TUI/standard) CLI usage. It is not part of headless (-p/--print) processing.
60+
61+Error handling
62+
63+- Command execution errors are captured and surfaced in the tool call as status error with human-readable error text (including Stderr when available).
64+
65+Examples
66+
67+- "!git status" → shows a shell tool call immediately, then populates with the git status output.
68+- "!echo hello" → shows a shell tool call immediately, then output "hello".
69+- "!some-unknown-cmd" → shows a shell tool call immediately, then sets status to error with an error message.
70+ Shell Mode (CLI TUI)
71+
72+Overview
73+
74+- Shell mode lets users run shell commands directly from the chat input by starting their input with an exclamation mark (!).
75+- It is intended for quick terminal command execution without leaving the TUI.
76+
77+Activation
78+
79+- Shell mode is activated when the current input (trimmed) starts with !
80+ - Example: "!git status" or " !ls -la" both activate Shell mode.
81+- Visual indicator:
82+ - Input border color changes to yellow.
83+ - The input prompt indicator changes to a yellow "$".
84+ - The input placeholder includes "! for shell mode".
85+
86+Deactivation / Exiting Shell Mode
87+
88+- Pressing Enter to submit the input exits shell mode immediately after submission, regardless of the command result.
89+- Pressing Esc when the input (trimmed) is exactly ! clears the input and exits shell mode.
90+- Editing the input so it no longer starts with ! also exits shell mode and restores normal input behavior.
91+
92+Interaction with other input helpers
93+
94+- When in shell mode (input starts with !):
95+ - "@" file search suggestions are disabled.
96+ - "/" slash command UI is disabled.
97+- When in slash command mode (input starts with /):
98+ - "@" file search suggestions are disabled.
99+
100+Submission behavior
101+
102+- On submit (Enter) with a shell-mode input:
103+ - The leading ! is removed and the remainder is treated as the shell command to run.
104+ - The TUI immediately appends an assistant message representing a Shell tool call, with status set to calling, so users can see that the command is in progress.
105+ - The shell command is executed asynchronously; when it completes, the tool call status is updated to done (or error) and the output is populated.
106+
107+Execution semantics
108+
109+- The command is executed in the same way as terminal tool commands, minus permissions, and inserted into the chat history the same.
110+
111+Output handling
112+
113+- Stdout is streamed into memory; Stderr is captured and appended as a trailing "Stderr: ..." section on success.
114+- If the process exits non-zero and Stderr contains content, the tool call is marked as error and the error text is shown.
115+- Output is truncated to the first 5000 lines if exceeded.
116+- Timeout behavior: If no output is received for 30 seconds (configurable in tests), the process is terminated and the result includes a note like:
117+ "[Command timed out after 30 seconds of no output]".
118+
119+Keyboard behaviors (summary)
120+
121+- Enter: submit input. If in shell mode, exits shell mode after submission and shows the pending Shell tool call immediately.
122+- Shift+Enter: new line.
123+- Backslash (\) at end-of-line: inserts a new line (line continuation) as usual.
124+- Esc: if only ! (trimmed) is present, clears input and exits shell mode; otherwise cancels streaming or closes suggestions depending on context.
125+
126+Scope / Modes
127+
128+- Shell mode applies to interactive (TUI/standard) CLI usage. It is not part of headless (-p/--print) processing.
129+
130+Error handling
131+
132+- Command execution errors are captured and surfaced in the tool call as status error with human-readable error text (including Stderr when available).
133+
134+Examples
135+
136+- "!git status" → shows a Shell tool call immediately, then populates with the git status output.
137+- "!echo hello" → shows a Shell tool call immediately, then output "hello".
138+- "!some-unknown-cmd" → shows a Shell tool call immediately, then sets status to error with an error message.
added extensions/cli/spec/tui.md +15 −0
@@ -0,0 +1,15 @@
1+# Continue CLI Terminal UI spec
2+
3+This spec is incomplete.
4+
5+## Stack
6+
7+The Continue CLI uses Ink as a react TUI library.
8+
9+## cwd/git display
10+
11+The lower left corner of the TUI should display
12+
13+- the current git branch if in a git repo
14+- also the current owner/repo if enough columns are available to display and it's a gh repo
15+- if not in git, the cwd
added extensions/cli/src/__mocks__/services/BaseService.ts +74 −0
@@ -0,0 +1,74 @@
1+import { EventEmitter } from "events";
2+import { vi } from "vitest";
3+
4+/**
5+ * Mocked base service class for testing
6+ */
7+export class BaseService<TState> extends EventEmitter {
8+ protected serviceName: string;
9+ protected currentState: TState;
10+ private isInitialized: boolean = false;
11+
12+ constructor(serviceName: string, initialState: TState) {
13+ super();
14+ this.serviceName = serviceName;
15+ this.currentState = initialState;
16+ }
17+
18+ // Mock the abstract method
19+ doInitialize = vi.fn<any>();
20+
21+ async initialize(...args: any[]): Promise<TState> {
22+ this.emit("initializing");
23+ try {
24+ const state = await this.doInitialize(...args);
25+ this.currentState = state;
26+ this.isInitialized = true;
27+ this.emit("initialized", state);
28+ return state;
29+ } catch (error) {
30+ this.emit("error", error);
31+ throw error;
32+ }
33+ }
34+
35+ getState(): TState {
36+ return { ...this.currentState };
37+ }
38+
39+ protected setState(newState: Partial<TState>): void {
40+ const previousState = this.currentState;
41+ this.currentState = { ...this.currentState, ...newState };
42+ this.emit("stateChanged", this.currentState, previousState);
43+ }
44+
45+ isReady(): boolean {
46+ return this.isInitialized;
47+ }
48+
49+ async reload(...args: any[]): Promise<TState> {
50+ this.isInitialized = false;
51+ return this.initialize(...args);
52+ }
53+
54+ async cleanup(): Promise<void> {
55+ this.removeAllListeners();
56+ this.isInitialized = false;
57+ }
58+}
59+
60+/**
61+ * Interface for services with dependencies
62+ */
63+export interface ServiceWithDependencies {
64+ getDependencies(): string[];
65+}
66+
67+/**
68+ * Helper to check if a service has dependencies
69+ */
70+export function hasDependencies(
71+ service: any,
72+): service is ServiceWithDependencies {
73+ return !!service && typeof service.getDependencies === "function";
74+}
added extensions/cli/src/e2e/git-branch-display.test.ts +258 −0
@@ -0,0 +1,258 @@
1+import { execSync } from "child_process";
2+import fs from "fs/promises";
3+import path from "path";
4+
5+import { afterEach, beforeEach, describe, expect, it } from "vitest";
6+
7+import {
8+ cleanupTestContext,
9+ createTestConfig,
10+ createTestContext,
11+ runCLI,
12+ type CLITestContext,
13+} from "../test-helpers/cli-helpers.js";
14+
15+describe("E2E: Git Branch Display", () => {
16+ let context: CLITestContext;
17+ let originalCwd: string;
18+
19+ const testConfig = `name: Test Assistant
20+version: 1.0.0
21+schema: v1
22+models:
23+ - model: gpt-4
24+ provider: openai
25+ apiKey: test-key
26+ roles:
27+ - chat`;
28+
29+ beforeEach(async () => {
30+ context = await createTestContext();
31+ originalCwd = process.cwd();
32+ });
33+
34+ afterEach(async () => {
35+ await cleanupTestContext(context);
36+ process.chdir(originalCwd);
37+ });
38+
39+ describe("git branch display in status bar", () => {
40+ it("should show branch name when in a git repository", async () => {
41+ // Initialize a git repo in the test directory
42+ process.chdir(context.testDir);
43+
44+ try {
45+ // Initialize git repo
46+ execSync("git init", { stdio: "ignore" });
47+ execSync("git config user.email 'test@example.com'", {
48+ stdio: "ignore",
49+ });
50+ execSync("git config user.name 'Test User'", { stdio: "ignore" });
51+
52+ // Create a test file and initial commit
53+ await fs.writeFile(
54+ path.join(context.testDir, "test.txt"),
55+ "test content",
56+ );
57+ execSync("git add .", { stdio: "ignore" });
58+ execSync("git commit -m 'Initial commit'", { stdio: "ignore" });
59+
60+ // Create and checkout a test branch
61+ const testBranchName = "feature/test-branch";
62+ execSync(`git checkout -b ${testBranchName}`, { stdio: "ignore" });
63+
64+ // Create config file
65+ await createTestConfig(context, testConfig);
66+
67+ // Run CLI in TUI mode - it should fail quickly but show the branch in output
68+ const result = await runCLI(context, {
69+ args: ["--config", context.configPath!, "--help"],
70+ timeout: 3000,
71+ });
72+
73+ // The help command should succeed
74+ expect(result.exitCode).toBe(0);
75+ expect(result.stdout).toContain("Continue CLI");
76+
77+ // Now let's test that our git utils work in this context
78+ // We can't easily test the full TUI display, but we can verify the git functions work
79+ const { getGitBranch } = await import("../util/git.js");
80+ const branch = getGitBranch();
81+ expect(branch).toBe(testBranchName);
82+ } catch (error) {
83+ // Skip test if git is not available or fails
84+ console.warn("Skipping git branch test - git not available:", error);
85+ return;
86+ }
87+ });
88+
89+ it("should handle non-git directory gracefully", async () => {
90+ // Don't initialize git in test directory
91+ process.chdir(context.testDir);
92+
93+ await createTestConfig(context, testConfig);
94+
95+ // Test that git functions return null in non-git directory
96+ const { getGitBranch, isGitRepo } = await import("../util/git.js");
97+
98+ expect(isGitRepo()).toBe(false);
99+ expect(getGitBranch()).toBeNull();
100+
101+ // CLI should still work without git
102+ const result = await runCLI(context, {
103+ args: ["--help"],
104+ timeout: 3000,
105+ });
106+
107+ expect(result.exitCode).toBe(0);
108+ expect(result.stdout).toContain("Continue CLI");
109+ });
110+
111+ it("should handle detached HEAD state", async () => {
112+ process.chdir(context.testDir);
113+
114+ try {
115+ // Initialize git repo
116+ execSync("git init", { stdio: "ignore" });
117+ execSync("git config user.email 'test@example.com'", {
118+ stdio: "ignore",
119+ });
120+ execSync("git config user.name 'Test User'", { stdio: "ignore" });
121+
122+ // Create initial commit
123+ await fs.writeFile(
124+ path.join(context.testDir, "test.txt"),
125+ "test content",
126+ );
127+ execSync("git add .", { stdio: "ignore" });
128+ execSync("git commit -m 'Initial commit'", { stdio: "ignore" });
129+
130+ // Create another commit
131+ await fs.writeFile(
132+ path.join(context.testDir, "test2.txt"),
133+ "test content 2",
134+ );
135+ execSync("git add .", { stdio: "ignore" });
136+ execSync("git commit -m 'Second commit'", { stdio: "ignore" });
137+
138+ // Get first commit hash and checkout to detached HEAD
139+ const firstCommit = execSync(
140+ "git rev-list --max-count=1 --reverse HEAD",
141+ {
142+ encoding: "utf-8",
143+ },
144+ ).trim();
145+ execSync(`git checkout ${firstCommit}`, { stdio: "ignore" });
146+
147+ // Test git functions in detached HEAD state
148+ const { getGitBranch, isGitRepo } = await import("../util/git.js");
149+
150+ expect(isGitRepo()).toBe(true);
151+ // In detached HEAD state, git branch --show-current returns empty string
152+ // which our function converts to null
153+ expect(getGitBranch()).toBeNull();
154+ } catch (error) {
155+ // Skip test if git operations fail
156+ console.warn(
157+ "Skipping detached HEAD test - git operations failed:",
158+ error,
159+ );
160+ return;
161+ }
162+ });
163+
164+ it("should handle branch names with special characters", async () => {
165+ process.chdir(context.testDir);
166+
167+ try {
168+ // Initialize git repo
169+ execSync("git init", { stdio: "ignore" });
170+ execSync("git config user.email 'test@example.com'", {
171+ stdio: "ignore",
172+ });
173+ execSync("git config user.name 'Test User'", { stdio: "ignore" });
174+
175+ // Create initial commit
176+ await fs.writeFile(
177+ path.join(context.testDir, "test.txt"),
178+ "test content",
179+ );
180+ execSync("git add .", { stdio: "ignore" });
181+ execSync("git commit -m 'Initial commit'", { stdio: "ignore" });
182+
183+ // Create branch with special characters
184+ const specialBranchName = "feature/fix-123_with-dashes.and.dots";
185+ execSync(`git checkout -b "${specialBranchName}"`, { stdio: "ignore" });
186+
187+ // Test git functions
188+ const { getGitBranch } = await import("../util/git.js");
189+ const branch = getGitBranch();
190+ expect(branch).toBe(specialBranchName);
191+ } catch (error) {
192+ // Skip test if git operations fail
193+ console.warn(
194+ "Skipping special characters test - git operations failed:",
195+ error,
196+ );
197+ return;
198+ }
199+ });
200+ });
201+
202+ describe("getRepoUrlText function with branch", () => {
203+ it("should format repo URL with branch correctly", async () => {
204+ process.chdir(context.testDir);
205+
206+ try {
207+ // Initialize git repo with remote
208+ execSync("git init", { stdio: "ignore" });
209+ execSync("git config user.email 'test@example.com'", {
210+ stdio: "ignore",
211+ });
212+ execSync("git config user.name 'Test User'", { stdio: "ignore" });
213+
214+ // Add a fake remote
215+ execSync(
216+ "git remote add origin https://github.com/testuser/testrepo.git",
217+ { stdio: "ignore" },
218+ );
219+
220+ // Create initial commit and branch
221+ await fs.writeFile(
222+ path.join(context.testDir, "test.txt"),
223+ "test content",
224+ );
225+ execSync("git add .", { stdio: "ignore" });
226+ execSync("git commit -m 'Initial commit'", { stdio: "ignore" });
227+ execSync("git checkout -b test-branch", { stdio: "ignore" });
228+
229+ // Test the formatting function
230+ const { getResponsiveRepoText } = await import(
231+ "../ui/hooks/useTUIChatHooks.js"
232+ );
233+ const repoText = getResponsiveRepoText();
234+
235+ // Should include both repo and branch
236+ expect(repoText).toEqual("");
237+ } catch (error) {
238+ // Skip test if git operations fail
239+ console.warn(
240+ "Skipping repo URL formatting test - git operations failed:",
241+ error,
242+ );
243+ return;
244+ }
245+ });
246+
247+ it("should handle repo URL without branch when not in git repo", async () => {
248+ process.chdir(context.testDir);
249+
250+ // Test without git repo
251+ const { getRepoUrlText } = await import("../ui/hooks/useTUIChatHooks.js");
252+ const repoText = getRepoUrlText();
253+
254+ // Should not contain branch separator
255+ expect(repoText).toEqual("");
256+ });
257+ });
258+});
modified extensions/cli/src/index.ts +36 −35
@@ -47,6 +47,42 @@
4747 exitMessageCallback = callback;
4848 }
4949
50+// Sets up SIGINT handler that requires double Ctrl+C within 1 second to exit
51+export function enableSigintHandler() {
52+ // Remove all existing SIGINT listeners first
53+ process.removeAllListeners("SIGINT");
54+
55+ process.on("SIGINT", async () => {
56+ const now = Date.now();
57+ const timeSinceLastCtrlC = now - lastCtrlCTime;
58+
59+ if (timeSinceLastCtrlC <= 1000 && lastCtrlCTime !== 0) {
60+ // Second Ctrl+C within 1 second - exit
61+ showExitMessage = false;
62+ if (tuiUnmount) {
63+ tuiUnmount();
64+ }
65+ await sentryService.flush();
66+ process.exit(0);
67+ } else {
68+ // First Ctrl+C or too much time elapsed - show exit message
69+ lastCtrlCTime = now;
70+ showExitMessage = true;
71+ if (exitMessageCallback) {
72+ exitMessageCallback();
73+ }
74+
75+ // Hide message after 1 second
76+ setTimeout(() => {
77+ showExitMessage = false;
78+ if (exitMessageCallback) {
79+ exitMessageCallback();
80+ }
81+ }, 1000);
82+ }
83+ });
84+}
85+
5086 // Check if "ctrl+c to exit" message should be displayed
5187 export function shouldShowExitMessage(): boolean {
5288 return showExitMessage;
@@ -294,41 +330,6 @@
294330 process.exit(1);
295331 }
296332
297-// Graceful shutdown with two-stage Ctrl+C exit
298-
299-// Remove all existing SIGINT listeners first
300-process.removeAllListeners("SIGINT");
301-
302-process.on("SIGINT", async () => {
303- const now = Date.now();
304- const timeSinceLastCtrlC = now - lastCtrlCTime;
305-
306- if (timeSinceLastCtrlC <= 1000 && lastCtrlCTime !== 0) {
307- // Second Ctrl+C within 1 second - exit
308- showExitMessage = false;
309- if (tuiUnmount) {
310- tuiUnmount();
311- }
312- await sentryService.flush();
313- process.exit(0);
314- } else {
315- // First Ctrl+C or too much time elapsed - show exit message
316- lastCtrlCTime = now;
317- showExitMessage = true;
318- if (exitMessageCallback) {
319- exitMessageCallback();
320- }
321-
322- // Hide message after 1 second
323- setTimeout(() => {
324- showExitMessage = false;
325- if (exitMessageCallback) {
326- exitMessageCallback();
327- }
328- }, 1000);
329- }
330-});
331-
332333 process.on("SIGTERM", async () => {
333334 await sentryService.flush();
334335 process.exit(0);
added extensions/cli/src/infoScreen.ts +136 −0
@@ -0,0 +1,136 @@
1+import { execSync } from "child_process";
2+
3+import chalk from "chalk";
4+
5+import {
6+ isAuthenticated,
7+ isAuthenticatedConfig,
8+ loadAuthConfig,
9+} from "./auth/workos.js";
10+import { services } from "./services/index.js";
11+import { getCurrentSession, getSessionFilePath } from "./session.js";
12+import { posthogService } from "./telemetry/posthogService.js";
13+import { logger } from "./util/logger.js";
14+import { getVersion } from "./version.js";
15+
16+export async function handleInfoSlashCommand() {
17+ posthogService.capture("useSlashCommand", { name: "info" });
18+
19+ const infoLines = [];
20+
21+ // Version and working directory info
22+ const version = getVersion();
23+ const cwd = process.cwd();
24+
25+ infoLines.push(
26+ chalk.white("CLI Information:"),
27+ ` Version: ${chalk.green(version)}`,
28+ ` Working Directory: ${chalk.blue(cwd)}`,
29+ );
30+
31+ // Auth info
32+ if (isAuthenticated()) {
33+ const config = loadAuthConfig();
34+ if (config && isAuthenticatedConfig(config)) {
35+ const email = config.userEmail || config.userId;
36+ const orgId = config.organizationId;
37+ infoLines.push(
38+ "",
39+ chalk.white("Authentication:"),
40+ ` Email: ${chalk.green(email)}`,
41+ ` Org ID: ${chalk.cyan(orgId)}`,
42+ );
43+ } else {
44+ infoLines.push(
45+ "",
46+ chalk.white("Authentication:"),
47+ ` ${chalk.yellow("Authenticated via environment variable")}`,
48+ );
49+ }
50+ } else {
51+ infoLines.push(
52+ "",
53+ chalk.white("Authentication:"),
54+ ` ${chalk.red("Not logged in")}`,
55+ );
56+ }
57+
58+ // Config info
59+ try {
60+ const configState = services.config.getState();
61+ infoLines.push("", chalk.white("Configuration:"));
62+ if (configState.config) {
63+ infoLines.push(` ${chalk.gray(`Using ${configState.config?.name}`)}`);
64+ } else {
65+ infoLines.push(` ${chalk.red(`Config not found`)}`);
66+ }
67+ if (configState.configPath) {
68+ infoLines.push(` Path: ${chalk.blue(configState.configPath)}`);
69+ }
70+
71+ // Add current model info
72+ try {
73+ const modelInfo = services.model?.getModelInfo();
74+ if (modelInfo) {
75+ infoLines.push(` Model: ${chalk.cyan(modelInfo.name)}`);
76+ } else {
77+ infoLines.push(` Model: ${chalk.red("Not available")}`);
78+ }
79+ } catch {
80+ infoLines.push(` Model: ${chalk.red("Error retrieving model info")}`);
81+ }
82+ } catch {
83+ infoLines.push(
84+ "",
85+ chalk.white("Configuration:"),
86+ ` ${chalk.red("Configuration service not available")}`,
87+ );
88+ }
89+
90+ // Session info
91+ infoLines.push("", chalk.white("Session:"));
92+ try {
93+ const currentSession = getCurrentSession();
94+ const sessionFilePath = getSessionFilePath();
95+ infoLines.push(
96+ ` Title: ${chalk.green(currentSession.title)}`,
97+ ` ID: ${chalk.gray(currentSession.sessionId)}`,
98+ ` File: ${chalk.blue(sessionFilePath)}`,
99+ );
100+ } catch {
101+ infoLines.push(` ${chalk.red("Session not available")}`);
102+ }
103+
104+ // Runtime diagnostic info
105+ const nodePath = process.execPath;
106+ const invokedPath = process.argv[1];
107+
108+ // Get npm version
109+ let npmVersion = "unknown";
110+ try {
111+ npmVersion = execSync("npm --version", {
112+ encoding: "utf8",
113+ timeout: 5000,
114+ stdio: ["pipe", "pipe", "ignore"],
115+ }).trim();
116+ } catch (error) {
117+ // If npm command fails, fallback to "unknown"
118+ logger.warn("Failed to get npm version:", error);
119+ }
120+
121+ // Diagnostic info
122+ infoLines.push(
123+ "",
124+ chalk.white("Diagnostic Info"),
125+ ` Currently running: npm-global (${chalk.green(npmVersion)})`,
126+ ` Path: ${chalk.blue(nodePath)}`,
127+ ` Invoked: ${chalk.blue(invokedPath)}`,
128+ );
129+
130+ // TODO add global settings like auto update etc.
131+
132+ return {
133+ exit: false,
134+ output: infoLines.join("\n"),
135+ };
136+}
modified extensions/cli/src/services/BaseService.test.ts +115 −7
@@ -1,10 +1,118 @@
1-import { describe, expect, test, beforeEach, vi } from "vitest";
2-
3-import {
4- BaseService,
5- hasDependencies,
6- ServiceWithDependencies,
7-} from "./BaseService.js";
1+import { EventEmitter } from "events";
2+
3+import { beforeEach, describe, expect, test, vi } from "vitest";
4+
5+import { logger } from "../util/logger.js";
6+
7+/**
8+ * Base abstract class for all services
9+ * Provides common lifecycle methods and state management
10+ */
11+abstract class BaseService<TState> extends EventEmitter {
12+ protected serviceName: string;
13+ protected currentState: TState;
14+ private isInitialized: boolean = false;
15+
16+ constructor(serviceName: string, initialState: TState) {
17+ super();
18+ this.serviceName = serviceName;
19+ this.currentState = initialState;
20+ }
21+
22+ /**
23+ * Initialize the service (must be implemented by subclasses)
24+ * This is automatically wrapped with initialization logic
25+ */
26+ abstract doInitialize(...args: any[]): Promise<TState>;
27+
28+ /**
29+ * Public initialization method that wraps the implementation
30+ */
31+ async initialize(...args: any[]): Promise<TState> {
32+ logger.debug(`Initializing ${this.serviceName}`, {
33+ wasInitialized: this.isInitialized,
34+ hadPreviousState: !!this.currentState,
35+ });
36+ this.emit("initializing");
37+
38+ try {
39+ const state = await this.doInitialize(...args);
40+ this.currentState = state;
41+ this.isInitialized = true;
42+ logger.debug(`${this.serviceName} initialized successfully`, {
43+ stateKeys: state ? Object.keys(state as any) : [],
44+ isNowInitialized: this.isInitialized,
45+ });
46+ this.emit("initialized", state);
47+ return state;
48+ } catch (error: any) {
49+ logger.debug(`Failed to initialize ${this.serviceName}:`, error);
50+ if (this.listenerCount("error") > 0) {
51+ this.emit("error", error);
52+ }
53+ throw error;
54+ }
55+ }
56+
57+ /**
58+ * Get current service state (shallow copy for immutability)
59+ */
60+ getState(): TState {
61+ return { ...this.currentState };
62+ }
63+
64+ /**
65+ * Update service state and emit change event
66+ */
67+ protected setState(newState: Partial<TState>): void {
68+ const previousState = this.currentState;
69+ this.currentState = { ...this.currentState, ...newState };
70+ // Only log state updates if not in production to avoid circular reference issues
71+ if (process.env.NODE_ENV !== "production") {
72+ logger.debug(`${this.serviceName} state updated`);
73+ }
74+ this.emit("stateChanged", this.currentState, previousState);
75+ }
76+
77+ /**
78+ * Check if service is ready for use
79+ */
80+ isReady(): boolean {
81+ return this.isInitialized;
82+ }
83+
84+ /**
85+ * Reload/refresh the service
86+ */
87+ async reload(...args: any[]): Promise<TState> {
88+ logger.debug(`Reloading ${this.serviceName}`);
89+ this.isInitialized = false;
90+ return this.initialize(...args);
91+ }
92+
93+ /**
94+ * Cleanup resources (can be overridden by subclasses)
95+ */
96+ async cleanup(): Promise<void> {
97+ logger.debug(`Cleaning up ${this.serviceName}`);
98+ this.removeAllListeners();
99+ this.isInitialized = false;
100+ }
101+}
102+
103+/**
104+ * Interface for services with dependencies
105+ */
106+interface ServiceWithDependencies {
107+ getDependencies(): string[];
108+}
109+
110+/**
111+ * Helper to check if a service has dependencies
112+ */
113+function hasDependencies(service: any): service is ServiceWithDependencies {
114+ return !!service && typeof service.getDependencies === "function";
115+}
8116
9117 // Test implementation of BaseService
10118 interface TestState {
modified extensions/cli/src/slashCommands.test.ts +1 −1
@@ -217,7 +217,7 @@
217217 expect(result).toBeDefined();
218218 expect(result?.output).toContain("Authentication:");
219219 expect(result?.output).toContain("test@example.com");
220- expect(result?.output).toContain("(no org)");
220+ expect(result?.output).toContain("test-org-id");
221221 expect(result?.output).toContain("Configuration:");
222222 expect(result?.output).toContain("/custom/config.yaml");
223223 expect(result?.exit).toBe(false);
modified extensions/cli/src/slashCommands.ts +10 −90
@@ -7,11 +7,12 @@
77 loadAuthConfig,
88 } from "./auth/workos.js";
99 import { getAllSlashCommands } from "./commands/commands.js";
10+import { handleInfoSlashCommand } from "./infoScreen.js";
1011 import { reloadService, SERVICE_NAMES, services } from "./services/index.js";
11-import { getCurrentSession, getSessionFilePath } from "./session.js";
12+import { getCurrentSession } from "./session.js";
1213 import { posthogService } from "./telemetry/posthogService.js";
14+import { telemetryService } from "./telemetry/telemetryService.js";
1315 import { SlashCommandResult } from "./ui/hooks/useChat.types.js";
14-import { getVersion } from "./version.js";
1516
1617 type CommandHandler = (
1718 args: string[],
@@ -28,6 +29,7 @@
2829 ` ${chalk.cyan("Enter")} Submit message`,
2930 ` ${chalk.cyan("Shift+Enter")} New line`,
3031 ` ${chalk.cyan("\\")} Line continuation (at end of line)`,
32+ ` ${chalk.cyan("!")} Shell mode - run shell commands`,
3133 "",
3234 chalk.white("Controls:"),
3335 ` ${chalk.cyan("Ctrl+C")} Clear input`,
@@ -39,9 +41,11 @@
3941 chalk.white("Special Characters:"),
4042 ` ${chalk.cyan("@")} Search and attach files for context`,
4143 ` ${chalk.cyan("/")} Access slash commands`,
44+ ` ${chalk.cyan("!")} Execute bash commands directly`,
4245 "",
4346 chalk.white("Available Commands:"),
4447 ` Type ${chalk.cyan("/")} to see available slash commands`,
48+ ` Type ${chalk.cyan("!")} followed by a command to execute bash directly`,
4549 ].join("\n");
4650 posthogService.capture("useSlashCommand", { name: "help" });
4751 return { output: helpMessage };
@@ -112,93 +116,6 @@
112116 }
113117 }
114118
115-async function handleInfo() {
116- posthogService.capture("useSlashCommand", { name: "info" });
117-
118- const infoLines = [];
119-
120- // Version and working directory info
121- const version = getVersion();
122- const cwd = process.cwd();
123-
124- infoLines.push(chalk.white("CLI Information:"));
125- infoLines.push(` Version: ${chalk.green(version)}`);
126- infoLines.push(` Working Directory: ${chalk.blue(cwd)}`);
127-
128- // Auth info
129- if (isAuthenticated()) {
130- const config = loadAuthConfig();
131- if (config && isAuthenticatedConfig(config)) {
132- const email = config.userEmail || config.userId;
133- const org = "(no org)"; // Organization info not available in AuthenticatedConfig
134- infoLines.push("");
135- infoLines.push(chalk.white("Authentication:"));
136- infoLines.push(` Email: ${chalk.green(email)}`);
137- infoLines.push(` Organization: ${chalk.cyan(org)}`);
138- } else {
139- infoLines.push("");
140- infoLines.push(chalk.white("Authentication:"));
141- infoLines.push(
142- ` ${chalk.yellow("Authenticated via environment variable")}`,
143- );
144- }
145- } else {
146- infoLines.push("");
147- infoLines.push(chalk.white("Authentication:"));
148- infoLines.push(` ${chalk.red("Not logged in")}`);
149- }
150-
151- // Config info
152- try {
153- const configState = services.config.getState();
154- infoLines.push("");
155- infoLines.push(chalk.white("Configuration:"));
156- if (configState.config) {
157- infoLines.push(` ${chalk.gray(`Using ${configState.config?.name}`)}`);
158- } else {
159- infoLines.push(` ${chalk.red(`Config not found`)}`);
160- }
161- if (configState.configPath) {
162- infoLines.push(` Path: ${chalk.blue(configState.configPath)}`);
163- }
164-
165- // Add current model info
166- try {
167- const modelInfo = services.model?.getModelInfo();
168- if (modelInfo) {
169- infoLines.push(` Model: ${chalk.cyan(modelInfo.name)}`);
170- } else {
171- infoLines.push(` Model: ${chalk.red("Not available")}`);
172- }
173- } catch {
174- infoLines.push(` Model: ${chalk.red("Error retrieving model info")}`);
175- }
176- } catch {
177- infoLines.push("");
178- infoLines.push(chalk.white("Configuration:"));
179- infoLines.push(` ${chalk.red("Configuration service not available")}`);
180- }
181-
182- // Session info
183- infoLines.push("");
184- infoLines.push(chalk.white("Session:"));
185- try {
186- const currentSession = getCurrentSession();
187- infoLines.push(` Title: ${chalk.green(currentSession.title)}`);
188- infoLines.push(` ID: ${chalk.gray(currentSession.sessionId)}`);
189-
190- const sessionFilePath = getSessionFilePath();
191- infoLines.push(` File: ${chalk.blue(sessionFilePath)}`);
192- } catch {
193- infoLines.push(` ${chalk.red("Session not available")}`);
194- }
195-
196- return {
197- exit: false,
198- output: infoLines.join("\n"),
199- };
200-}
201-
202119 async function handleFork() {
203120 posthogService.capture("useSlashCommand", { name: "fork" });
204121
@@ -244,7 +161,7 @@
244161 login: handleLogin,
245162 logout: handleLogout,
246163 whoami: handleWhoami,
247- info: handleInfo,
164+ info: handleInfoSlashCommand,
248165 model: () => ({ openModelSelector: true }),
249166 compact: () => {
250167 posthogService.capture("useSlashCommand", { name: "compact" });
@@ -282,6 +199,9 @@
282199
283200 const [command, ...args] = input.slice(1).split(" ");
284201
202+ telemetryService.recordSlashCommand(command);
203+ posthogService.capture("useSlashCommand", { name: command });
204+
285205 const handler = commandHandlers[command];
286206 if (handler) {
287207 return await handler(args, assistant);
modified extensions/cli/src/systemMessage.ts +7 −0
@@ -176,6 +176,13 @@
176176 if (currentMode === "plan") {
177177 systemMessage +=
178178 '\n<context name="planMode">You are operating in _Plan Mode_, which means that your goal is to help the user investigate their ideas and develop a plan before taking action. You only have access to read-only tools and should not attempt to circumvent them to write / delete / create files. For example, it is not acceptable to use the Bash tool to write to files.</context>\n';
179+ } else {
180+ // TODO - make including this coauthor commit configurable
181+ systemMessage += `\n<context name="commitSignature">When creating commits using any CLI or tool, include the following in the commit message:
182+Generated with [Continue](https://continue.dev)
183+
184+Co-Authored-By: Continue <noreply@continue.dev>
185+</context>\n`;
179186 }
180187
181188 // In headless mode, add instructions to be concise and only provide final answers
modified extensions/cli/src/telemetry/posthogService.errorHandling.test.ts +1 −1
@@ -39,7 +39,7 @@
3939 properties: expect.objectContaining({
4040 test: "data",
4141 os: expect.any(String),
42- extensionVersion: "",
42+ extensionVersion: expect.any(String),
4343 ideName: "cn",
4444 ideType: "cli",
4545 }),
modified extensions/cli/src/telemetry/posthogService.ts +46 −3
@@ -1,10 +1,13 @@
1+import dns from "dns/promises";
12 import os from "node:os";
23
34 import node_machine_id from "node-machine-id";
45 import type { PostHog as PostHogType } from "posthog-node";
56
67 import { isAuthenticatedConfig, loadAuthConfig } from "../auth/workos.js";
8+import { isGitHubActions } from "../util/git.js";
79 import { logger } from "../util/logger.js";
10+import { getVersion } from "../version.js";
811
912 export class PosthogService {
1013 private os: string | undefined;
@@ -15,13 +18,44 @@
1518 this.uniqueId = this.getEventUserId();
1619 }
1720
21+ private _hasInternetConnection: boolean | undefined = undefined;
22+ private async hasInternetConnection() {
23+ const refetchConnection = async () => {
24+ try {
25+ await dns.lookup("app.posthog.com");
26+ this._hasInternetConnection = true;
27+ } catch {
28+ this._hasInternetConnection = false;
29+ }
30+ };
31+
32+ if (typeof this._hasInternetConnection !== "undefined") {
33+ void refetchConnection(); // check in background if connection became available
34+ return this._hasInternetConnection;
35+ }
36+
37+ await refetchConnection();
38+ return this._hasInternetConnection;
39+ }
40+
41+ /**
42+ * Check if running in headless mode (-p/--print flags)
43+ */
44+ private isHeadlessMode(): boolean {
45+ const args = process.argv.slice(2);
46+ return args.includes("-p") || args.includes("--print");
47+ }
48+
1849 get isEnabled() {
1950 return process.env.CONTINUE_CLI_ENABLE_TELEMETRY !== "0";
2051 }
2152
2253 private _client: PostHogType | undefined;
2354 private async getClient() {
24- if (this.isEnabled) {
55+ if (!(await this.hasInternetConnection())) {
56+ this._client = undefined;
57+ logger.warn("No internet connection, skipping telemetry");
58+ } else if (this.isEnabled) {
2559 if (!this._client) {
2660 const { PostHog } = await import("posthog-node");
2761 this._client = new PostHog(
@@ -30,6 +64,7 @@
3064 host: "https://app.posthog.com",
3165 },
3266 );
67+ logger.debug("Initialized telemetry");
3368 }
3469 } else {
3570 this._client = undefined;
@@ -62,9 +97,11 @@
6297 const augmentedProperties = {
6398 ...properties,
6499 os: this.os,
65- extensionVersion: "", // TODO cn version
100+ extensionVersion: getVersion(),
66101 ideName: "cn",
67102 ideType: "cli",
103+ isHeadless: this.isHeadlessMode(),
104+ isGitHubCI: isGitHubActions(),
68105 };
69106 const payload = {
70107 distinctId: this.uniqueId,
@@ -83,7 +120,13 @@
83120 try {
84121 const client = await this.getClient();
85122 if (client) {
86- await client.shutdown();
123+ // Set a timeout for shutdown to prevent hanging
124+ const shutdownPromise = client.shutdown();
125+ const timeoutPromise = new Promise((_, reject) =>
126+ setTimeout(() => reject(new Error("Shutdown timeout")), 5000),
127+ );
128+
129+ await Promise.race([shutdownPromise, timeoutPromise]);
87130 }
88131 } catch (e) {
89132 logger.debug(`Failed to shutdown PostHog client: ${e}`);
modified extensions/cli/src/telemetry/telemetryService.ts +22 −0
@@ -10,8 +10,10 @@
1010 } from "@opentelemetry/sdk-metrics";
1111 import {
1212 SEMRESATTRS_DEPLOYMENT_ENVIRONMENT,
13+ SEMRESATTRS_HOST_NAME,
1314 SEMRESATTRS_OS_TYPE,
1415 SEMRESATTRS_PROCESS_PID,
16+ SEMRESATTRS_SERVICE_INSTANCE_ID,
1517 SEMRESATTRS_SERVICE_NAME,
1618 SEMRESATTRS_SERVICE_VERSION,
1719 } from "@opentelemetry/semantic-conventions";
@@ -52,6 +54,7 @@
5254 private mcpConnectionsGauge: any = null;
5355 private startupTimeHistogram: any = null;
5456 private responseTimeHistogram: any = null;
57+ private slashCommandCounter: any = null;
5558
5659 constructor() {
5760 this.config = this.loadConfig();
@@ -88,6 +91,8 @@
8891 const resource = resourceFromAttributes({
8992 [SEMRESATTRS_SERVICE_NAME]: "continue-cli",
9093 [SEMRESATTRS_SERVICE_VERSION]: getVersion(),
94+ [SEMRESATTRS_SERVICE_INSTANCE_ID]: uuidv4(),
95+ [SEMRESATTRS_HOST_NAME]: os.hostname(),
9196 [SEMRESATTRS_DEPLOYMENT_ENVIRONMENT]:
9297 process.env.NODE_ENV || "development",
9398 [SEMRESATTRS_OS_TYPE]: os.type(),
@@ -281,6 +286,14 @@
281286 unit: "ms",
282287 },
283288 );
289+
290+ this.slashCommandCounter = this.meter.createCounter(
291+ "continue_cli_slash_command_usage",
292+ {
293+ description: "Count of slash commands used",
294+ unit: "count",
295+ },
296+ );
284297 }
285298
286299 // Check if telemetry is enabled - this is the single point of checking
@@ -567,6 +580,15 @@
567580 return this.config.sessionId;
568581 }
569582
583+ public recordSlashCommand(commandName: string) {
584+ if (!this.isEnabled()) return;
585+
586+ this.slashCommandCounter.add(
587+ 1,
588+ this.getStandardAttributes({ command: commandName }),
589+ );
590+ }
591+
570592 /**
571593 * Shutdown telemetry service and ensure all metrics are flushed
572594 */
modified extensions/cli/src/tools/edit.test.ts +8 −5
@@ -1,8 +1,9 @@
11 import * as fs from "fs";
22
3-import { describe, it, expect, beforeEach, afterEach, vi } from "vitest";
3+import { afterEach, beforeEach, describe, expect, it, vi } from "vitest";
44
5-import { editTool, markFileAsRead, readFilesSet } from "./edit.js";
5+import { editTool } from "./edit.js";
6+import { markFileAsRead, readFilesSet } from "./readFile.js";
67
78 // Mock the dependencies
89 vi.mock("../telemetry/telemetryService.js");
@@ -21,6 +22,7 @@
2122 readFileSync: vi.fn(),
2223 writeFileSync: vi.fn(),
2324 unlinkSync: vi.fn(),
25+ realpathSync: vi.fn(),
2426 };
2527 });
2628
@@ -34,6 +36,7 @@
3436 vi.mocked(fs.existsSync).mockReturnValue(true);
3537 vi.mocked(fs.readFileSync).mockReturnValue(originalContent);
3638 vi.mocked(fs.writeFileSync).mockImplementation(() => {});
39+ vi.mocked(fs.realpathSync).mockImplementation((path) => path.toString());
3740 });
3841
3942 afterEach(() => {
@@ -126,7 +129,7 @@
126129 const result = await editTool.preprocess!(args);
127130
128131 expect(result.args).toEqual({
129- file_path: testFilePath,
132+ resolvedPath: testFilePath,
130133 newContent: "Hi there\nThis is a test file\nGoodbye world",
131134 oldContent: originalContent,
132135 });
@@ -163,7 +166,7 @@
163166 it("should successfully write file and return success message", async () => {
164167 const newContent = "Hi there\nThis is a test file\nGoodbye world";
165168 const args = {
166- file_path: testFilePath,
169+ resolvedPath: testFilePath,
167170 newContent,
168171 oldContent: originalContent,
169172 };
@@ -186,7 +189,7 @@
186189 });
187190
188191 const args = {
189- file_path: testFilePath,
192+ resolvedPath: testFilePath,
190193 newContent: "new content",
191194 oldContent: originalContent,
192195 };
modified extensions/cli/src/tools/edit.ts +38 −53
@@ -8,6 +8,7 @@
88 getLanguageFromFilePath,
99 } from "../telemetry/utils.js";
1010
11+import { readFilesSet, readFileTool } from "./readFile.js";
1112 import { Tool } from "./types.js";
1213 import { generateDiff } from "./writeFile.js";
1314
@@ -18,40 +19,23 @@
1819 replace_all?: boolean;
1920 }
2021
21-// Track files that have been read in the current session
22-export const readFilesSet = new Set<string>();
23-
2422 export const editTool: Tool = {
2523 name: "Edit",
2624 displayName: "Edit",
2725 readonly: false,
2826 isBuiltIn: true,
29- description: `Performs exact string replacements in files.
30-
31-
32-Usage:
33-
34-- You must use your \`Read\` tool at least once in the conversation before
35-editing. This tool will error if you attempt an edit without reading the file.
36-
37-- When editing text from Read tool output, ensure you preserve the exact
38-indentation (tabs/spaces) as it appears AFTER the line number prefix. The line
39-number prefix format is: spaces + line number + tab. Everything after that tab
40-is the actual file content to match. Never include any part of the line number
41-prefix in the old_string or new_string.
42-
43-- ALWAYS prefer editing existing files in the codebase. NEVER write new files
44-unless explicitly required.
45-
46-- Only use emojis if the user explicitly requests it. Avoid adding emojis to
47-files unless asked.
48-
49-- The edit will FAIL if \`old_string\` is not unique in the file. Either provide
50-a larger string with more surrounding context to make it unique or use
51-\`replace_all\` to change every instance of \`old_string\`.
52-
53-- Use \`replace_all\` for replacing and renaming strings across the file. This
54-parameter is useful if you want to rename a variable for instance.`,
27+ description: `Performs exact string replacements in a file.
28+
29+USAGE:
30+- ALWAYS use the \`${readFileTool.name}\` tool just before making edits, to understand the file's up-to-date contents and context.
31+- When editing text from ${readFileTool.name} tool output, ensure you preserve exact whitespace/indentation.
32+- Always prefer editing existing files in the codebase. NEVER write new files unless explicitly required.
33+- Only use emojis if the user explicitly requests it. Avoid adding emojis to files unless asked.
34+- Use \`replace_all\` for replacing and renaming strings across the file. This parameter is useful if you want to rename a variable, for instance.
35+
36+WARNINGS:
37+- When not using \`replace_all\`, the edit will FAIL if \`old_string\` is not unique in the file. Either provide a larger string with more surrounding context to make it unique or use \`replace_all\` to change every instance of \`old_string\`.
38+- The edit will FAIL if you have not recently used the \`${readFileTool.name}\` tool to view up-to-date file contents.`,
5539 parameters: {
5640 file_path: {
5741 type: "string",
@@ -60,13 +44,14 @@
6044 },
6145 old_string: {
6246 type: "string",
63- description: "The text to replace",
47+ description:
48+ "The text to replace - must be exact including whitespace/indentation",
6449 required: true,
6550 },
6651 new_string: {
6752 type: "string",
6853 description:
69- "The text to replace it with (must be different from old_string)",
54+ "The text to replace it with (MUST be different from old_string)",
7055 required: true,
7156 },
7257 replace_all: {
@@ -82,18 +67,12 @@
8267 new_string,
8368 replace_all = false,
8469 } = args as EditArgs;
85- throwIfFileIsSecurityConcern(file_path);
86- // Check if file has been read
87- if (!readFilesSet.has(file_path)) {
88- throw new Error(
89- `You must use the Read tool to read ${file_path} before editing it.`,
90- );
91- }
9270
9371 // Validate arguments
9472 if (!file_path) {
9573 throw new Error("file_path is required");
9674 }
75+
9776 if (!old_string) {
9877 throw new Error("old_string is required");
9978 }
@@ -104,13 +83,24 @@
10483 throw new Error("old_string and new_string must be different");
10584 }
10685
86+ const resolvedPath = fs.realpathSync(file_path);
87+
88+ // Check if file has been read
89+ if (!readFilesSet.has(resolvedPath)) {
90+ throw new Error(
91+ `You must use the ${readFileTool.name} tool to read ${file_path} before editing it.`,
92+ );
93+ }
94+
95+ throwIfFileIsSecurityConcern(resolvedPath);
96+
10797 // Check if file exists
108- if (!fs.existsSync(file_path)) {
98+ if (!fs.existsSync(resolvedPath)) {
10999 throw new Error(`File ${file_path} does not exist`);
110100 }
111101
112102 // Read current file content
113- const oldContent = fs.readFileSync(file_path, "utf-8");
103+ const oldContent = fs.readFileSync(resolvedPath, "utf-8");
114104
115105 // Check if old_string exists in the file
116106 if (!oldContent.includes(old_string)) {
@@ -134,11 +124,11 @@
134124 }
135125
136126 // Generate diff for preview
137- const diff = generateDiff(oldContent, newContent, file_path);
127+ const diff = generateDiff(oldContent, newContent, resolvedPath);
138128
139129 return {
140130 args: {
141- file_path,
131+ resolvedPath,
142132 newContent,
143133 oldContent,
144134 },
@@ -155,19 +145,19 @@
155145 };
156146 },
157147 run: async (args: {
158- file_path: string;
148+ resolvedPath: string;
159149 newContent: string;
160150 oldContent: string;
161151 }) => {
162152 try {
163- fs.writeFileSync(args.file_path, args.newContent, "utf-8");
153+ fs.writeFileSync(args.resolvedPath, args.newContent, "utf-8");
164154
165155 // Get lines for telemetry
166156 const { added, removed } = calculateLinesOfCodeDiff(
167157 args.oldContent,
168158 args.newContent,
169159 );
170- const language = getLanguageFromFilePath(args.file_path);
160+ const language = getLanguageFromFilePath(args.resolvedPath);
171161
172162 if (added > 0) {
173163 telemetryService.recordLinesOfCodeModified("added", added, language);
@@ -184,21 +174,16 @@
184174 const diff = generateDiff(
185175 args.oldContent,
186176 args.newContent,
187- args.file_path,
177+ args.resolvedPath,
188178 );
189179
190- return `Successfully edited ${args.file_path}\nDiff:\n${diff}`;
180+ return `Successfully edited ${args.resolvedPath}\nDiff:\n${diff}`;
191181 } catch (error) {
192182 throw new Error(
193- `Error: failed to edit ${args.file_path}: ${
183+ `Error: failed to edit ${args.resolvedPath}: ${
194184 error instanceof Error ? error.message : String(error)
195185 }`,
196186 );
197187 }
198188 },
199189 };
200-
201-// Function to mark a file as read (to be called from the read tool)
202-export function markFileAsRead(filePath: string) {
203- readFilesSet.add(filePath);
204-}
modified extensions/cli/src/tools/multiEdit.test.ts +5 −2
@@ -1,9 +1,10 @@
11 import * as fs from "fs";
22 import * as path from "path";
33
4-import { describe, it, expect, beforeEach, afterEach, vi } from "vitest";
4+import { afterEach, beforeEach, describe, expect, it, vi } from "vitest";
55
6-import { multiEditTool, markFileAsRead } from "./multiEdit.js";
6+import { multiEditTool } from "./multiEdit.js";
7+import { markFileAsRead } from "./readFile.js";
78
89 // Mock the dependencies
910 vi.mock("../telemetry/telemetryService.js");
@@ -22,6 +23,7 @@
2223 readFileSync: vi.fn(),
2324 writeFileSync: vi.fn(),
2425 unlinkSync: vi.fn(),
26+ realpathSync: vi.fn(),
2527 };
2628 });
2729
@@ -35,6 +37,7 @@
3537 vi.mocked(fs.existsSync).mockReturnValue(true);
3638 vi.mocked(fs.readFileSync).mockReturnValue(originalContent);
3739 vi.mocked(fs.writeFileSync).mockImplementation(() => {});
40+ vi.mocked(fs.realpathSync).mockImplementation((path) => path.toString());
3841 });
3942
4043 afterEach(() => {
modified extensions/cli/src/tools/multiEdit.ts +41 −91
@@ -9,12 +9,11 @@
99 getLanguageFromFilePath,
1010 } from "../telemetry/utils.js";
1111
12-import { markFileAsRead, readFilesSet } from "./edit.js";
12+import { editTool } from "./edit.js";
13+import { readFilesSet, readFileTool } from "./readFile.js";
1314 import { Tool } from "./types.js";
1415 import { generateDiff } from "./writeFile.js";
1516
16-export { markFileAsRead };
17-
1817 export interface EditOperation {
1918 old_string: string;
2019 new_string: string;
@@ -26,15 +25,10 @@
2625 edits: EditOperation[];
2726 }
2827
29-// Function to check if file has been read (shared with edit tool)
30-function hasFileBeenRead(filePath: string): boolean {
31- return readFilesSet.has(filePath);
32-}
33-
3428 // Helper functions for multiEdit validation
3529 function validateMultiEditArgs(args: any): {
3630 original_path: string;
37- file_path: string;
31+ resolved_path: string;
3832 edits: EditOperation[];
3933 } {
4034 const { file_path, edits } = args as MultiEditArgs;
@@ -53,7 +47,9 @@
5347 ? file_path
5448 : path.resolve(process.cwd(), file_path);
5549
56- return { original_path: file_path, file_path: absolutePath, edits };
50+ const resolvedPath = fs.realpathSync(absolutePath);
51+
52+ return { original_path: file_path, resolved_path: resolvedPath, edits };
5753 }
5854
5955 function validateEdits(edits: EditOperation[]): void {
@@ -74,26 +70,25 @@
7470 }
7571
7672 function validateFileAccess(
77- original_path: string,
78- file_path: string,
73+ resolvedPath: string,
7974 isCreatingNewFile: boolean,
8075 ): void {
8176 if (isCreatingNewFile) {
8277 // For new file creation, check if parent directory exists
83- const parentDir = path.dirname(file_path);
78+ const parentDir = path.dirname(resolvedPath);
8479 if (parentDir && !fs.existsSync(parentDir)) {
8580 throw new Error(`Parent directory does not exist: ${parentDir}`);
8681 }
8782 } else {
8883 // For existing files, check if file has been read
8984 // Check with the original path first, then with absolute path
90- if (!hasFileBeenRead(original_path) && !hasFileBeenRead(file_path)) {
85+ if (!readFilesSet.has(resolvedPath)) {
9186 throw new Error(
92- `You must use the Read tool to read ${original_path} before editing it.`,
87+ `You must use the ${readFileTool.name} tool to read ${resolvedPath} before editing it.`,
9388 );
9489 }
95- if (!fs.existsSync(file_path)) {
96- throw new Error(`File ${file_path} does not exist`);
90+ if (!fs.existsSync(resolvedPath)) {
91+ throw new Error(`File ${resolvedPath} does not exist`);
9792 }
9893 }
9994 }
@@ -138,87 +133,42 @@
138133 displayName: "MultiEdit",
139134 readonly: false,
140135 isBuiltIn: true,
141- description: `This is a tool for making multiple edits to a single file in one operation. It
142-is built on top of the Edit tool and allows you to perform multiple
143-find-and-replace operations efficiently. Prefer this tool over the Edit tool
144-when you need to make multiple edits to the same file.
145-
146-
147-Before using this tool:
148-
149-
150-1. Use the Read tool to understand the file's contents and context
151-
152-2. Verify the directory path is correct
153-
154-
155-To make multiple file edits, provide the following:
156-
157-1. file_path: The absolute path to the file to modify (must be absolute, not
158-relative)
159-
136+ description: `This is a tool for making multiple edits to a single file in one operation. It is built on top of the ${editTool.name} tool and allows you to perform multiple find-and-replace operations efficiently.
137+Prefer this tool over the ${editTool.name} tool when you need to make multiple edits to the same file.
138+
139+To make multiple edits to a file, provide the following:
140+1. file_path: The absolute path to the file to modify (must be absolute, not relative)
160141 2. edits: An array of edit operations to perform, where each edit contains:
161- - old_string: The text to replace (must match the file contents exactly, including all whitespace and indentation)
142+ - old_string: The text to replace (must match the file contents exactly, including all whitespace/indentation)
162143 - new_string: The edited text to replace the old_string
163144 - replace_all: Replace all occurences of old_string. This parameter is optional and defaults to false.
164145
165146 IMPORTANT:
166-
167147 - All edits are applied in sequence, in the order they are provided
168-
169-- Each edit operates on the result of the previous edit
170-
171-- All edits must be valid for the operation to succeed - if any edit fails,
172-none will be applied
173-
174-- This tool is ideal when you need to make several changes to different parts
175-of the same file
176-
177-- For Jupyter notebooks (.ipynb files), use the NotebookEdit instead
178-
148+- Each edit operates on the result of the previous edit, so plan your edits carefully to avoid conflicts between sequential operations
149+- Edits are atomic - all edits must be valid for the operation to succeed - if any edit fails, none will be applied
150+- This tool is ideal when you need to make several changes to different parts of the same file
179151
180152 CRITICAL REQUIREMENTS:
181-
182-1. All edits follow the same requirements as the single Edit tool
183-
184-2. The edits are atomic - either all succeed or none are applied
185-
186-3. Plan your edits carefully to avoid conflicts between sequential operations
187-
188-
189-WARNING:
190-
191-- The tool will fail if edits.old_string doesn't match the file contents
192-exactly (including whitespace)
193-
194-- The tool will fail if edits.old_string and edits.new_string are the same
195-
196-- Since edits are applied in sequence, ensure that earlier edits don't affect
197-the text that later edits are trying to find
198-
199-
200-When making edits:
201-
153+1. ALWAYS use the ${readFileTool.name} tool just before making edits, to understand the file's up-to-date contents and context
154+2. When making edits:
202155 - Ensure all edits result in idiomatic, correct code
203-
204156 - Do not leave the code in a broken state
205-
206157 - Always use absolute file paths (starting with /)
207-
208-- Only use emojis if the user explicitly requests it. Avoid adding emojis to
209-files unless asked.
210-
211-- Use replace_all for replacing and renaming strings across the file. This
212-parameter is useful if you want to rename a variable for instance.
213-
158+- Only use emojis if the user explicitly requests it. Avoid adding emojis to files unless asked.
159+- Use replace_all for replacing and renaming strings across the file. This parameter is useful if you want to rename a variable for instance.
214160
215161 If you want to create a new file, use:
216-
217-- A new file path, including dir name if needed
218-
162+- A new file path, including new directory if needed
219163 - First edit: empty old_string and the new file's contents as new_string
220-
221-- Subsequent edits: normal edit operations on the created content`,
164+- Subsequent edits: normal edit operations on the created content
165+- ALWAYS prefer editing existing files in the codebase. NEVER write new files unless explicitly required
166+
167+WARNINGS:
168+- If earlier edits affect the text that later edits are trying to find, files can become mangled
169+- The tool will fail if edits.old_string doesn't match the file contents exactly (including whitespace)
170+- The tool will fail if edits.old_string and edits.new_string are the same - they MUST be different
171+- The tool will fail if you have not used the ${readFileTool.name} tool to read the file in this session`,
222172 parameters: {
223173 file_path: {
224174 type: "string",
@@ -237,9 +187,9 @@
237187 },
238188 preprocess: async (args) => {
239189 // Validate and extract arguments
240- const { original_path, file_path, edits } = validateMultiEditArgs(args);
190+ const { resolved_path, edits } = validateMultiEditArgs(args);
241191
242- throwIfFileIsSecurityConcern(file_path);
192+ throwIfFileIsSecurityConcern(resolved_path);
243193
244194 // Validate each edit operation
245195 validateEdits(edits);
@@ -248,12 +198,12 @@
248198 const isCreatingNewFile = edits[0].old_string === "";
249199
250200 // Validate file access
251- validateFileAccess(original_path, file_path, isCreatingNewFile);
201+ validateFileAccess(resolved_path, isCreatingNewFile);
252202
253203 // Read current file content (or start with empty for new files)
254204 let currentContent = "";
255205 if (!isCreatingNewFile) {
256- currentContent = fs.readFileSync(file_path, "utf-8");
206+ currentContent = fs.readFileSync(resolved_path, "utf-8");
257207 }
258208
259209 const originalContent = currentContent;
@@ -266,11 +216,11 @@
266216 }
267217
268218 // Generate diff for preview
269- const diff = generateDiff(originalContent, newContent, file_path);
219+ const diff = generateDiff(originalContent, newContent, resolved_path);
270220
271221 return {
272222 args: {
273- file_path,
223+ file_path: resolved_path,
274224 newContent,
275225 originalContent,
276226 isCreatingNewFile,
@@ -279,7 +229,7 @@
279229 preview: [
280230 {
281231 type: "text",
282- content: `Will apply ${edits.length} edit${edits.length === 1 ? "" : "s"} to ${isCreatingNewFile ? "create" : "modify"} ${file_path}:`,
232+ content: `Will apply ${edits.length} edit${edits.length === 1 ? "" : "s"} to ${isCreatingNewFile ? "create" : "modify"} ${resolved_path}:`,
283233 },
284234 {
285235 type: "diff",
modified extensions/cli/src/tools/readFile.ts +15 −5
@@ -2,10 +2,15 @@
22
33 import { throwIfFileIsSecurityConcern } from "core/indexing/ignore.js";
44
5-import { markFileAsRead } from "./edit.js";
65 import { formatToolArgument } from "./formatters.js";
76 import { Tool } from "./types.js";
87
8+// Track files that have been read in the current session
9+export const readFilesSet = new Set<string>();
10+export function markFileAsRead(filePath: string) {
11+ readFilesSet.add(filePath);
12+}
13+
914 export const readFileTool: Tool = {
1015 name: "Read",
1116 displayName: "Read",
@@ -20,13 +25,17 @@
2025 readonly: true,
2126 isBuiltIn: true,
2227 preprocess: async (args) => {
23- throwIfFileIsSecurityConcern(args.filepath);
28+ let { filepath } = args;
29+ if (filepath.startsWith("./")) {
30+ filepath = filepath.slice(2);
31+ }
32+ throwIfFileIsSecurityConcern(filepath);
2433 return {
2534 args,
2635 preview: [
2736 {
2837 type: "text",
29- content: `Will read ${formatToolArgument(args.filepath)}`,
38+ content: `Will read ${formatToolArgument(filepath)}`,
3039 },
3140 ],
3241 };
@@ -41,9 +50,10 @@
4150 if (!fs.existsSync(filepath)) {
4251 return `Error: File does not exist: ${filepath}`;
4352 }
44- const content = fs.readFileSync(filepath, "utf-8");
53+ const realPath = fs.realpathSync(filepath);
54+ const content = fs.readFileSync(realPath, "utf-8");
4555 // Mark this file as read for the edit tool
46- markFileAsRead(filepath);
56+ markFileAsRead(realPath);
4757
4858 const lines = content.split("\n");
4959 if (lines.length > 5000) {
modified extensions/cli/src/tools/runTerminalCommand.ts +1 −1
@@ -33,7 +33,7 @@
3333 displayName: "Bash",
3434 description: `Executes a terminal command and returns the output
3535
36-The command will be executed from the current working directory: ${process.cwd()}
36+Commands are automatically executed from the current working directory (${process.cwd()}), so there's no need to change directories with 'cd' commands.
3737 `,
3838 parameters: {
3939 command: {
modified extensions/cli/src/ui/TUIChat.tsx +1 −4
@@ -26,7 +26,6 @@
2626 import { useContextPercentage } from "./hooks/useContextPercentage.js";
2727 import { useMessageRenderer } from "./hooks/useMessageRenderer.js";
2828 import {
29- getRepoUrlText,
3029 useCurrentMode,
3130 useIntroMessage,
3231 useLoginHandlers,
@@ -147,8 +146,6 @@
147146 const { services, allServicesReady, isRemoteMode } =
148147 useTUIChatServices(remoteUrl);
149148
150- const repoURlText = useMemo(() => getRepoUrlText(remoteUrl), [remoteUrl]);
151-
152149 // Use navigation context
153150 const {
154151 state: navState,
@@ -338,7 +335,7 @@
338335 {/* Free trial status and Continue CLI info - always show */}
339336 <BottomStatusBar
340337 currentMode={currentMode}
341- repoURLText={repoURlText}
338+ remoteUrl={remoteUrl}
342339 isRemoteMode={isRemoteMode}
343340 services={services}
344341 navState={navState}
modified extensions/cli/src/ui/TipsDisplay.tsx +1 −1
@@ -4,7 +4,7 @@
44 // Array of helpful tips for Continue CLI users
55 const CONTINUE_CLI_TIPS = [
66 "Use `/help` to learn keyboard shortcuts",
7- "Press escape to pause cn, and press enter to resume",
7+ "Press escape to pause cn, and press enter to continue",
88 "Use arrow keys (↑/↓) to navigate through your input history",
99 'Multi-line input is supported by typing "\\" and pressing enter',
1010 "Use `cn ls` or `/resume` to resume a previous conversation",
modified extensions/cli/src/ui/UpdateNotification.tsx +5 −1
@@ -66,7 +66,11 @@
6666 if (isRemoteMode) {
6767 return <Text color="cyan">◉ Remote Mode</Text>;
6868 }
69- return <Text color="gray">● Continue CLI</Text>;
69+ return (
70+ <Text wrap="truncate-end" color="gray">
71+ ● Continue CLI
72+ </Text>
73+ );
7074 }
7175
7276 return <Text color="dim">{text}</Text>;
modified extensions/cli/src/ui/UserInput.tsx +140 −35
@@ -20,6 +20,77 @@
2020 import { SlashCommandUI } from "./SlashCommandUI.js";
2121 import { TextBuffer } from "./TextBuffer.js";
2222
23+// Small presentational helpers to reduce cyclomatic complexity in UserInput
24+const InterruptedBanner: React.FC<{ wasInterrupted: boolean }> = ({
25+ wasInterrupted,
26+}) => {
27+ if (!wasInterrupted) return null;
28+ return (
29+ <Box paddingX={1} marginBottom={0}>
30+ <Text color="yellow">Interrupted by user - Press enter to continue</Text>
31+ </Box>
32+ );
33+};
34+
35+const SlashCommandsMaybe: React.FC<{
36+ show: boolean;
37+ inputMode: boolean;
38+ hideNormalUI: boolean;
39+ isRemoteMode: boolean;
40+ assistant?: AssistantConfig;
41+ filter: string;
42+ selectedIndex: number;
43+}> = ({
44+ show,
45+ inputMode,
46+ hideNormalUI,
47+ isRemoteMode,
48+ assistant,
49+ filter,
50+ selectedIndex,
51+}) => {
52+ if (!show || !inputMode || hideNormalUI || !(isRemoteMode || assistant))
53+ return null;
54+ return (
55+ <SlashCommandUI
56+ assistant={assistant}
57+ filter={filter}
58+ selectedIndex={selectedIndex}
59+ isRemoteMode={isRemoteMode}
60+ />
61+ );
62+};
63+
64+const FileSearchMaybe: React.FC<{
65+ show: boolean;
66+ inputMode: boolean;
67+ hideNormalUI: boolean;
68+ isRemoteMode: boolean;
69+ filter: string;
70+ selectedIndex: number;
71+ onSelect: (path: string) => void | Promise<void>;
72+ onFilesUpdated: (files: Array<{ path: string; displayName: string }>) => void;
73+}> = ({
74+ show,
75+ inputMode,
76+ hideNormalUI,
77+ isRemoteMode,
78+ filter,
79+ selectedIndex,
80+ onSelect,
81+ onFilesUpdated,
82+}) => {
83+ if (!show || !inputMode || hideNormalUI || isRemoteMode) return null;
84+ return (
85+ <FileSearchUI
86+ filter={filter}
87+ selectedIndex={selectedIndex}
88+ onSelect={onSelect}
89+ onFilesUpdated={onFilesUpdated}
90+ />
91+ );
92+};
93+
2394 interface UserInputProps {
2495 onSubmit: (message: string, imageMap?: Map<string, Buffer>) => void;
2596 isWaitingForResponse: boolean;
@@ -78,10 +149,13 @@
78149 setCursorPosition(0);
79150 setShowSlashCommands(false);
80151 setShowFileSearch(false);
152+ setShowBashMode(false);
81153 inputHistory.resetNavigation();
82154 }, [textBuffer]);
155+
83156 const [slashCommandFilter, setSlashCommandFilter] = useState("");
84157 const [selectedCommandIndex, setSelectedCommandIndex] = useState(0);
158+ const [showBashMode, setShowBashMode] = useState(false);
85159 const [showFileSearch, setShowFileSearch] = useState(false);
86160 const [fileSearchFilter, setFileSearchFilter] = useState("");
87161 const [selectedFileIndex, setSelectedFileIndex] = useState(0);
@@ -131,6 +205,18 @@
131205 return nextMode;
132206 };
133207
208+ // Update shell mode state based on input
209+ const updateBashModeState = (text: string) => {
210+ const trimmed = text.trimStart();
211+ const isBash = trimmed.startsWith("!");
212+ setShowBashMode(isBash);
213+ if (isBash) {
214+ // Disable other helpers while in shell mode
215+ setShowSlashCommands(false);
216+ setShowFileSearch(false);
217+ }
218+ };
219+
134220 // Update slash command UI state based on input
135221 const updateSlashCommandState = (text: string, cursor: number) => {
136222 // Only show slash commands if slash is the very first character
@@ -139,6 +225,9 @@
139225 return;
140226 }
141227
228+ // When using slash commands, disable file search
229+ setShowFileSearch(false);
230+
142231 const trimmedText = text.trimStart();
143232 const beforeCursor = trimmedText.slice(
144233 0,
@@ -196,6 +285,13 @@
196285 return;
197286 }
198287
288+ // Disable file search if we're in shell mode or slash command mode
289+ const trimmed = text.trimStart();
290+ if (trimmed.startsWith("!") || trimmed.startsWith("/")) {
291+ setShowFileSearch(false);
292+ return;
293+ }
294+
199295 // Check if we're in a file search context
200296 const beforeCursor = text.slice(0, cursor);
201297 const lastAtIndex = beforeCursor.lastIndexOf("@");
@@ -234,6 +330,7 @@
234330 setFileSearchFilter(afterAt);
235331 setSelectedFileIndex(0);
236332 setShowSlashCommands(false);
333+ setShowBashMode(false);
237334 }
238335 }
239336 };
@@ -278,6 +375,7 @@
278375 setInputText(newText);
279376 setCursorPosition(newCursorPos);
280377 setShowSlashCommands(false);
378+ setShowBashMode(false);
281379 }
282380 };
283381
@@ -437,6 +535,7 @@
437535 setInputText("");
438536 setCursorPosition(0);
439537 setShowSlashCommands(false);
538+ setShowBashMode(false);
440539 }
441540 return true;
442541 }
@@ -462,6 +561,15 @@
462561 const handleEscapeKey = (key: any): boolean => {
463562 if (!key.escape) return false;
464563
564+ // If only "!" is present, clear shell mode
565+ if (inputMode && showBashMode && inputText.trim() === "!") {
566+ textBuffer.clear();
567+ setInputText("");
568+ setCursorPosition(0);
569+ setShowBashMode(false);
570+ return true;
571+ }
572+
465573 // Handle escape key to interrupt streaming
466574 if (isWaitingForResponse && onInterrupt) {
467575 onInterrupt();
@@ -491,6 +599,7 @@
491599 setCursorPosition(newCursor);
492600 updateSlashCommandState(newText, newCursor);
493601 updateFileSearchState(newText, newCursor);
602+ updateBashModeState(newText);
494603 inputHistory.resetNavigation();
495604 };
496605
@@ -587,14 +696,16 @@
587696 setCursorPosition,
588697 updateSlashCommandState,
589698 updateFileSearchState,
699+ updateBashModeState,
590700 inputHistory,
591701 });
592702 });
593703
594704 const renderInputText = () => {
595705 const placeholderText = isRemoteMode
596- ? "Ask anything, / for slash commands"
597- : placeholder || "Ask anything, @ for context, / for slash commands";
706+ ? "Ask anything, / for slash commands, ! for shell mode"
707+ : placeholder ||
708+ "Ask anything, @ for context, / for slash commands, ! for shell mode";
598709 if (inputText.length === 0) {
599710 return (
600711 <>
@@ -677,50 +788,44 @@
677788
678789 return (
679790 <Box flexDirection="column">
680- {/* Interruption message - shown just above the input box */}
681- {wasInterrupted && (
682- <Box paddingX={1} marginBottom={0}>
683- <Text color="yellow">
684- ⚠ Interrupted by user - Press enter to resume
685- </Text>
686- </Box>
687- )}
791+ <InterruptedBanner wasInterrupted={!!wasInterrupted} />
688792
689793 {/* Input box */}
690794 <Box
691795 borderStyle="round"
692796 borderTop={true}
693797 paddingX={1}
694- borderColor={isRemoteMode ? "cyan" : "gray"}
798+ borderColor={showBashMode ? "yellow" : isRemoteMode ? "cyan" : "gray"}
695799 >
696- <Text color={isRemoteMode ? "cyan" : "blue"} bold>
697- {isRemoteMode ? "◉" : "●"}{" "}
800+ <Text
801+ color={showBashMode ? "yellow" : isRemoteMode ? "cyan" : "blue"}
802+ bold
803+ >
804+ {showBashMode ? "$ " : isRemoteMode ? "◉ " : "● "}
698805 </Text>
699806 {renderInputText()}
700807 </Box>
701808
702- {/* Slash command UI - show in remote mode OR when assistant is available */}
703- {showSlashCommands &&
704- inputMode &&
705- !hideNormalUI &&
706- (isRemoteMode || assistant) && (
707- <SlashCommandUI
708- assistant={assistant}
709- filter={slashCommandFilter}
710- selectedIndex={selectedCommandIndex}
711- isRemoteMode={isRemoteMode}
712- />
713- )}
714-
715- {/* File search UI - only show in local mode */}
716- {showFileSearch && inputMode && !hideNormalUI && !isRemoteMode && (
717- <FileSearchUI
718- filter={fileSearchFilter}
719- selectedIndex={selectedFileIndex}
720- onSelect={selectFile}
721- onFilesUpdated={setCurrentFiles}
722- />
723- )}
809+ <SlashCommandsMaybe
810+ show={showSlashCommands}
811+ inputMode={inputMode}
812+ hideNormalUI={!!hideNormalUI}
813+ isRemoteMode={!!isRemoteMode}
814+ assistant={assistant}
815+ filter={slashCommandFilter}
816+ selectedIndex={selectedCommandIndex}
817+ />
818+
819+ <FileSearchMaybe
820+ show={showFileSearch}
821+ inputMode={inputMode}
822+ hideNormalUI={!!hideNormalUI}
823+ isRemoteMode={!!isRemoteMode}
824+ filter={fileSearchFilter}
825+ selectedIndex={selectedFileIndex}
826+ onSelect={selectFile}
827+ onFilesUpdated={setCurrentFiles}
828+ />
724829 </Box>
725830 );
726831 };
modified extensions/cli/src/ui/__tests__/BottomStatusBarCtrlC.test.tsx +7 −4
@@ -1,8 +1,11 @@
11 import { render } from "ink-testing-library";
22 import React from "react";
3-import { describe, expect, it, vi, beforeEach, afterEach } from "vitest";
3+import { afterEach, beforeEach, describe, expect, it, vi } from "vitest";
44
5-import { BottomStatusBar } from "../components/BottomStatusBar.js";
5+import {
6+ BottomStatusBar,
7+ BottomStatusBarProps,
8+} from "../components/BottomStatusBar.js";
69
710 // Mock the index module functions
811 vi.mock("../../index.js", () => ({
@@ -11,9 +14,9 @@
1114 }));
1215
1316 describe("BottomStatusBar Ctrl+C message", () => {
14- const defaultProps = {
17+ const defaultProps: BottomStatusBarProps = {
1518 currentMode: "normal" as const,
16- repoURLText: "github.com/user/repo",
19+ remoteUrl: "github.com/user/repo",
1720 isRemoteMode: false,
1821 services: { model: { model: null } },
1922 navState: { currentScreen: "chat" },
modified extensions/cli/src/ui/__tests__/TUIChat.interruption.minimal.test.tsx +11 −11
@@ -1,6 +1,6 @@
11 import { render } from "ink-testing-library";
22 import React from "react";
3-import { vi, expect, describe, it, beforeEach, afterEach } from "vitest";
3+import { afterEach, beforeEach, describe, expect, it, vi } from "vitest";
44
55 import { UserInput } from "../UserInput.js";
66
@@ -32,8 +32,8 @@
3232 // Initial render - no interruption message
3333 let frame = lastFrame();
3434 expect(frame).toBeDefined();
35- expect(frame).not.toContain("⚠ Interrupted by user");
36- expect(frame).not.toContain("Press enter to resume");
35+ expect(frame).not.toContain("Interrupted by user");
36+ expect(frame).not.toContain("Press enter to continue");
3737
3838 // Re-render with wasInterrupted: true
3939 rerender(
@@ -49,8 +49,8 @@
4949 // Should show interruption message
5050 frame = lastFrame();
5151 expect(frame).toBeDefined();
52- expect(frame).toContain("⚠ Interrupted by user");
53- expect(frame).toContain("Press enter to resume");
52+ expect(frame).toContain("Interrupted by user");
53+ expect(frame).toContain("Press enter to continue");
5454 } finally {
5555 unmount();
5656 }
@@ -74,8 +74,8 @@
7474 // Initial render - should show interruption message
7575 let frame = lastFrame();
7676 expect(frame).toBeDefined();
77- expect(frame).toContain("⚠ Interrupted by user");
78- expect(frame).toContain("Press enter to resume");
77+ expect(frame).toContain("Interrupted by user");
78+ expect(frame).toContain("Press enter to continue");
7979
8080 // Re-render with wasInterrupted: false
8181 rerender(
@@ -91,8 +91,8 @@
9191 // Should not show interruption message
9292 frame = lastFrame();
9393 expect(frame).toBeDefined();
94- expect(frame).not.toContain("⚠ Interrupted by user");
95- expect(frame).not.toContain("Press enter to resume");
94+ expect(frame).not.toContain("Interrupted by user");
95+ expect(frame).not.toContain("Press enter to continue");
9696 } finally {
9797 unmount();
9898 }
@@ -177,10 +177,10 @@
177177 let foundInputBoxLine = -1;
178178
179179 frameLines.forEach((line, index) => {
180- if (line.includes("⚠ Interrupted by user")) {
180+ if (line.includes("Interrupted by user")) {
181181 foundInterruptionLine = index;
182182 }
183- if (line.includes("●") && line.includes("▋")) {
183+ if (line.includes("●") || line.includes("▋")) {
184184 foundInputBoxLine = index;
185185 }
186186 });
modified extensions/cli/src/ui/components/BottomStatusBar.tsx +8 −5
@@ -9,10 +9,11 @@
99
1010 import { ContextPercentageDisplay } from "./ContextPercentageDisplay.js";
1111 import { ModeIndicator } from "./ModeIndicator.js";
12+import { ResponsiveRepoDisplay } from "./ResponsiveRepoDisplay.js";
1213
13-interface BottomStatusBarProps {
14+export interface BottomStatusBarProps {
1415 currentMode: PermissionMode;
15- repoURLText: string;
16+ remoteUrl?: string;
1617 isRemoteMode: boolean;
1718 services: any;
1819 navState: any;
@@ -24,7 +25,7 @@
2425
2526 export const BottomStatusBar: React.FC<BottomStatusBarProps> = ({
2627 currentMode,
27- repoURLText,
28+ remoteUrl,
2829 isRemoteMode,
2930 services,
3031 navState,
@@ -52,10 +53,12 @@
5253 <Text key="image-paste-hint" color="cyan" wrap="truncate-start">
5354 Press Ctrl+V to paste image
5455 </Text>
55- ) : (
56+ ) : showingExitMessage ? (
5657 <Text key="repo-url" color="dim" wrap="truncate-start">
57- {showingExitMessage ? "ctrl+c to exit" : repoURLText}
58+ {"ctrl+c to exit"}
5859 </Text>
60+ ) : (
61+ <ResponsiveRepoDisplay remoteUrl={remoteUrl} />
5962 )}
6063 <Text key="repo-separator"> </Text>
6164 </React.Fragment>
added extensions/cli/src/ui/components/ResponsiveRepoDisplay.tsx +35 −0
@@ -0,0 +1,35 @@
1+import { Text } from "ink";
2+import React, { useMemo } from "react";
3+
4+import { useTerminalSize } from "../hooks/useTerminalSize.js";
5+import { getResponsiveRepoText } from "../hooks/useTUIChatHooks.js";
6+
7+interface ResponsiveRepoDisplayProps {
8+ remoteUrl?: string;
9+ reservedWidth?: number; // Width reserved for other elements in the same row
10+}
11+
12+export const ResponsiveRepoDisplay: React.FC<ResponsiveRepoDisplayProps> = ({
13+ remoteUrl,
14+}) => {
15+ const { columns } = useTerminalSize();
16+
17+ const repoText = useMemo(() => {
18+ // Calculate available width for repo display
19+ // Reserve space for margins, mode indicator, context percentage, and other UI elements
20+ const availableWidth = Math.floor(columns / 2);
21+
22+ return getResponsiveRepoText(remoteUrl, availableWidth);
23+ }, [remoteUrl, columns]);
24+
25+ // Don't render if no text to show
26+ if (!repoText) {
27+ return null;
28+ }
29+
30+ return (
31+ <Text color="dim" wrap="truncate-start">
32+ {repoText}
33+ </Text>
34+ );
35+};
modified extensions/cli/src/ui/components/StaticChatContent.tsx +15 −38
@@ -74,14 +74,12 @@
7474 }, [chatHistory]);
7575
7676 // Split chat history into stable and pending items
77- // Only put items in pending if they contain tool calls with "calling" status
78- // Everything else goes into static content
77+ // The last two items may have pending tool calls
7978 const { staticItems, pendingItems } = React.useMemo(() => {
80- const items: React.ReactElement[] = [];
81-
8279 // Add intro message as first item if it should be shown
80+ const staticItems: React.ReactElement[] = [];
8381 if (showIntroMessage) {
84- items.push(
82+ staticItems.push(
8583 <IntroMessage
8684 key="intro"
8785 config={config}
@@ -91,48 +89,27 @@
9189 );
9290 }
9391
94- // Helper function to check if an item has pending tool calls
95- const hasPendingToolCalls = (item: ChatHistoryItem): boolean => {
96- return !!(
97- item.toolCallStates &&
98- item.toolCallStates.some(
99- (toolState) =>
100- toolState.status === "calling" ||
101- toolState.status === "generating" ||
102- toolState.status === "generated",
103- )
104- );
105- };
106-
107- // Find the first message with pending tool calls from the end
108- let pendingStartIndex = filteredChatHistory.length;
109- for (let i = filteredChatHistory.length - 1; i >= 0; i--) {
110- if (hasPendingToolCalls(filteredChatHistory[i])) {
111- pendingStartIndex = i;
112- // If there's a message after this one, include it too as it might be related
113- if (i + 1 < filteredChatHistory.length) {
114- // Keep the pending start index as is, so we include the next message
115- }
116- break;
117- }
118- }
119-
120- const stableHistory = filteredChatHistory.slice(0, pendingStartIndex);
121- const pendingHistory = filteredChatHistory.slice(pendingStartIndex);
92+ const PENDING_ITEMS_COUNT = 2;
93+ const stableCount = Math.max(
94+ 0,
95+ filteredChatHistory.length - PENDING_ITEMS_COUNT,
96+ );
97+ const stableHistory = filteredChatHistory.slice(0, stableCount);
98+ const pendingHistory = filteredChatHistory.slice(stableCount);
12299
123100 // Add stable messages to static items
124101 stableHistory.forEach((item, index) => {
125- items.push(renderMessage(item, index));
102+ staticItems.push(renderMessage(item, index));
126103 });
127104
128105 // Pending items will be rendered dynamically outside Static
129- const pendingElements = pendingHistory.map((item, index) =>
130- renderMessage(item, pendingStartIndex + index),
106+ const pendingItems = pendingHistory.map((item, index) =>
107+ renderMessage(item, stableCount + index),
131108 );
132109
133110 return {
134- staticItems: items,
135- pendingItems: pendingElements,
111+ staticItems,
112+ pendingItems,
136113 };
137114 }, [
138115 showIntroMessage,
modified extensions/cli/src/ui/hooks/useChat.clear.test.ts +0 −6
@@ -15,7 +15,6 @@
1515
1616 describe("useChat clear command", () => {
1717 let mockSetChatHistory: ReturnType<typeof vi.fn>;
18- let mockExit: ReturnType<typeof vi.fn>;
1918 let mockOnClear: ReturnType<typeof vi.fn>;
2019
2120 beforeEach(() => {
@@ -23,7 +22,6 @@
2322 vi.clearAllMocks();
2423
2524 mockSetChatHistory = vi.fn();
26- mockExit = vi.fn();
2725 mockOnClear = vi.fn();
2826 });
2927
@@ -44,7 +42,6 @@
4442 result,
4543 chatHistory,
4644 setChatHistory: mockSetChatHistory,
47- exit: mockExit,
4845 onShowConfigSelector: vi.fn(),
4946 onClear: mockOnClear,
5047 });
@@ -91,7 +88,6 @@
9188 result,
9289 chatHistory,
9390 setChatHistory: mockSetChatHistory,
94- exit: mockExit,
9591 onShowConfigSelector: vi.fn(),
9692 // onClear is not provided
9793 });
@@ -127,7 +123,6 @@
127123 result,
128124 chatHistory,
129125 setChatHistory: mockSetChatHistory,
130- exit: mockExit,
131126 onShowConfigSelector: vi.fn(),
132127 onClear: mockOnClear,
133128 });
@@ -149,7 +144,6 @@
149144 result,
150145 chatHistory,
151146 setChatHistory: mockSetChatHistory,
152- exit: mockExit,
153147 onShowConfigSelector: vi.fn(),
154148 onClear: mockOnClear,
155149 });
modified extensions/cli/src/ui/hooks/useChat.helpers.ts +1 −4
@@ -46,7 +46,6 @@
4646 result: SlashCommandResult;
4747 chatHistory: ChatHistoryItem[];
4848 setChatHistory: React.Dispatch<React.SetStateAction<ChatHistoryItem[]>>;
49- exit: () => void;
5049 onShowConfigSelector: () => void;
5150 onShowModelSelector?: () => void;
5251 onShowMCPSelector?: () => void;
@@ -61,7 +60,6 @@
6160 result,
6261 chatHistory,
6362 setChatHistory,
64- exit,
6563 onShowConfigSelector,
6664 onShowModelSelector,
6765 onShowMCPSelector,
@@ -69,8 +67,7 @@
6967 onClear,
7068 }: ProcessSlashCommandResultOptions): string | null {
7169 if (result.exit) {
72- exit();
73- return null;
70+ process.exit(0);
7471 }
7572
7673 if (result.openMcpSelector) {
added extensions/cli/src/ui/hooks/useChat.shellMode.test.ts +148 −0
@@ -0,0 +1,148 @@
1+import { beforeEach, describe, expect, it, vi } from "vitest";
2+
3+import { runTerminalCommandTool } from "src/tools/runTerminalCommand.js";
4+
5+import { services } from "../../services/index.js";
6+
7+import { handleBashModeProcessing } from "./useChat.shellMode.js";
8+
9+// Mock the runTerminalCommandTool with the correct path for the import in shellMode.ts
10+vi.mock("src/tools/runTerminalCommand.js", () => ({
11+ runTerminalCommandTool: {
12+ run: vi.fn(),
13+ },
14+}));
15+
16+// Mock the services
17+vi.mock("../../services/index.js", () => ({
18+ services: {
19+ chatHistory: {
20+ addAssistantMessage: vi.fn(),
21+ updateToolStatus: vi.fn(),
22+ addToolResult: vi.fn(),
23+ },
24+ },
25+}));
26+
27+describe("handleBashModeProcessing", () => {
28+ beforeEach(() => {
29+ vi.clearAllMocks();
30+ });
31+
32+ it("should detect bash mode when message starts with !", async () => {
33+ const mockRun = vi.mocked(runTerminalCommandTool.run);
34+ mockRun.mockResolvedValue(
35+ "total 5\ndrwxr-xr-x 2 user user 4096 Jan 1 12:00 .\ndrwxr-xr-x 3 user user 4096 Jan 1 12:00 ..",
36+ );
37+
38+ const result = await handleBashModeProcessing("!ls -la");
39+
40+ expect(result).toBe(null); // Processed, no further handling needed
41+ expect(services.chatHistory.addAssistantMessage).toHaveBeenCalled();
42+ expect(services.chatHistory.updateToolStatus).toHaveBeenCalledWith(
43+ expect.any(String),
44+ "calling",
45+ );
46+
47+ // Use vi.waitFor to wait for async operations in the void expression
48+ await vi.waitFor(
49+ () => {
50+ expect(mockRun).toHaveBeenCalledWith({ command: "ls -la" });
51+ },
52+ { timeout: 1000 },
53+ );
54+
55+ await vi.waitFor(
56+ () => {
57+ expect(services.chatHistory.addToolResult).toHaveBeenCalledWith(
58+ expect.any(String),
59+ "total 5\ndrwxr-xr-x 2 user user 4096 Jan 1 12:00 .\ndrwxr-xr-x 3 user user 4096 Jan 1 12:00 ..",
60+ "done",
61+ );
62+ },
63+ { timeout: 1000 },
64+ );
65+ });
66+
67+ it("should handle bash command errors", async () => {
68+ const mockRun = vi.mocked(runTerminalCommandTool.run);
69+ mockRun.mockRejectedValue(new Error("Command not found"));
70+
71+ const result = await handleBashModeProcessing("!invalidcommand");
72+
73+ expect(result).toBe(null); // Processed, no further handling needed
74+ expect(services.chatHistory.addAssistantMessage).toHaveBeenCalled();
75+ expect(services.chatHistory.updateToolStatus).toHaveBeenCalledWith(
76+ expect.any(String),
77+ "calling",
78+ );
79+
80+ // Use vi.waitFor to wait for async operations in the void expression
81+ await vi.waitFor(
82+ () => {
83+ expect(mockRun).toHaveBeenCalledWith({ command: "invalidcommand" });
84+ },
85+ { timeout: 1000 },
86+ );
87+
88+ await vi.waitFor(
89+ () => {
90+ expect(services.chatHistory.addToolResult).toHaveBeenCalledWith(
91+ expect.any(String),
92+ "Bash command failed: Command not found",
93+ "errored",
94+ );
95+ },
96+ { timeout: 1000 },
97+ );
98+ });
99+
100+ it("should not trigger bash mode for regular messages", async () => {
101+ const mockRun = vi.mocked(runTerminalCommandTool.run);
102+
103+ const result = await handleBashModeProcessing("Hello! How are you?");
104+
105+ expect(result).toBe("Hello! How are you?"); // Pass through unchanged
106+ expect(mockRun).not.toHaveBeenCalled();
107+ expect(services.chatHistory.addAssistantMessage).not.toHaveBeenCalled();
108+ });
109+
110+ it("should handle empty bash command", async () => {
111+ const mockRun = vi.mocked(runTerminalCommandTool.run);
112+
113+ const result = await handleBashModeProcessing("!");
114+
115+ expect(result).toBe("!"); // Pass through unchanged for empty command
116+ expect(mockRun).not.toHaveBeenCalled();
117+ expect(services.chatHistory.addAssistantMessage).not.toHaveBeenCalled();
118+ });
119+
120+ it("should handle bash command with leading whitespace", async () => {
121+ const mockRun = vi.mocked(runTerminalCommandTool.run);
122+ mockRun.mockResolvedValue("echo test output");
123+
124+ const result = await handleBashModeProcessing(" !echo hello");
125+
126+ expect(result).toBe(null); // Processed, no further handling needed
127+ expect(services.chatHistory.addAssistantMessage).toHaveBeenCalled();
128+
129+ // Use vi.waitFor to wait for async operations in the void expression
130+ await vi.waitFor(
131+ () => {
132+ expect(mockRun).toHaveBeenCalledWith({ command: "echo hello" });
133+ },
134+ { timeout: 1000 },
135+ );
136+
137+ await vi.waitFor(
138+ () => {
139+ expect(services.chatHistory.addToolResult).toHaveBeenCalledWith(
140+ expect.any(String),
141+ "echo test output",
142+ "done",
143+ );
144+ },
145+ { timeout: 1000 },
146+ );
147+ });
148+});
added extensions/cli/src/ui/hooks/useChat.shellMode.ts +51 −0
@@ -0,0 +1,51 @@
1+import { runTerminalCommandTool } from "src/tools/runTerminalCommand.js";
2+import { getErrorString } from "src/util/error.js";
3+
4+import { services } from "../../services/index.js";
5+
6+export const handleBashModeProcessing = async (
7+ message: string,
8+): Promise<string | null> => {
9+ // Handle shell mode commands (starting with !)
10+ if (!message.trimStart().startsWith("!")) {
11+ return message;
12+ }
13+
14+ // Extract the command after the !
15+ const bashCommand = message.trimStart().slice(1).trim();
16+
17+ if (!bashCommand) {
18+ return message; // No command provided, treat as regular message
19+ }
20+
21+ // Show tool call immediately, then run asynchronously and populate result
22+ const toolCallId = `shell-${Date.now()}-${Math.random().toString(36).slice(2, 8)}`;
23+ const toolCall = {
24+ id: toolCallId,
25+ type: "function" as const,
26+ function: {
27+ name: "Bash",
28+ arguments: JSON.stringify({ command: bashCommand }),
29+ },
30+ };
31+
32+ // Add assistant message with tool call immediately
33+ services.chatHistory.addAssistantMessage("", [toolCall]);
34+ // Mark as calling for immediate UI feedback
35+ services.chatHistory.updateToolStatus(toolCallId, "calling");
36+
37+ // Execute the bash command asynchronously - don't block UI
38+ void runTerminalCommandTool
39+ .run({
40+ command: bashCommand,
41+ })
42+ .then((result) => {
43+ services.chatHistory.addToolResult(toolCallId, result, "done");
44+ })
45+ .catch((error) => {
46+ const errorMessage = `Bash command failed: ${getErrorString(error)}`;
47+ services.chatHistory.addToolResult(toolCallId, errorMessage, "errored");
48+ });
49+
50+ return null; // Processed, no further message handling needed
51+};
modified extensions/cli/src/ui/hooks/useChat.ts +8 −1
@@ -30,6 +30,7 @@
3030 handleRemoteMessage,
3131 setupRemotePolling,
3232 } from "./useChat.remote.helpers.js";
33+import { handleBashModeProcessing } from "./useChat.shellMode.js";
3334 import {
3435 createStreamCallbacks,
3536 executeStreaming,
@@ -369,7 +370,6 @@
369370 result: commandResult,
370371 chatHistory,
371372 setChatHistory,
372- exit,
373373 onShowConfigSelector,
374374 onShowModelSelector,
375375 onShowMCPSelector,
@@ -423,6 +423,13 @@
423423
424424 if (handled) return;
425425
426+ // Handle shell mode commands (before slash commands)
427+ const bashProcessedMessage = await handleBashModeProcessing(message);
428+ if (bashProcessedMessage === null) {
429+ return; // Bash command was handled and no further processing needed
430+ }
431+ message = bashProcessedMessage;
432+
426433 // Handle slash commands
427434 const processedMessage = await handleSlashCommandProcessing(message);
428435 if (processedMessage === null) {
added extensions/cli/src/ui/hooks/useTUIChatHooks.test.ts +118 −0
@@ -0,0 +1,118 @@
1+import { describe, expect, it, vi, beforeEach } from "vitest";
2+
3+import { getResponsiveRepoText, getRepoInfo } from "./useTUIChatHooks.js";
4+
5+// Mock the git utilities
6+vi.mock("../../util/git.js", () => ({
7+ isGitRepo: vi.fn(() => true),
8+ getGitRemoteUrl: vi.fn(() => "https://github.com/testuser/testrepo.git"),
9+ getGitBranch: vi.fn(() => "feature/test-branch"),
10+}));
11+
12+describe("Responsive repo text functionality", () => {
13+ beforeEach(async () => {
14+ // Reset mocks before each test
15+ const gitModule = await import("../../util/git.js");
16+ vi.mocked(gitModule.isGitRepo).mockReturnValue(true);
17+ vi.mocked(gitModule.getGitRemoteUrl).mockReturnValue(
18+ "https://github.com/testuser/testrepo.git",
19+ );
20+ vi.mocked(gitModule.getGitBranch).mockReturnValue("feature/test-branch");
21+ });
22+ describe("getRepoInfo", () => {
23+ it("should extract repo info correctly", () => {
24+ const info = getRepoInfo();
25+
26+ expect(info.repoName).toBe("testuser/testrepo");
27+ expect(info.branchName).toBe("feature/test-branch");
28+ expect(info.isGitRepo).toBe(true);
29+ });
30+
31+ it("should handle remote URL override", () => {
32+ const info = getRepoInfo("https://github.com/override/repo.git");
33+
34+ expect(info.repoName).toBe("override/repo");
35+ expect(info.branchName).toBe("feature/test-branch");
36+ expect(info.isGitRepo).toBe(true);
37+ });
38+ });
39+
40+ describe("getResponsiveRepoText", () => {
41+ it("should return empty string when no width provided", () => {
42+ const result = getResponsiveRepoText();
43+ expect(result).toBe("");
44+ });
45+
46+ it("should return full text when width allows", () => {
47+ const result = getResponsiveRepoText(undefined, 100);
48+ expect(result).toBe("testuser/testrepo ⊦feature/test-branch");
49+ });
50+
51+ it("should prefer branch when both fit individually", () => {
52+ // Full text: "testuser/testrepo ⊦ feature/test-branch" (38 chars)
53+ // Repo only: "testuser/testrepo" (17 chars)
54+ // Branch only: "feature/test-branch" (18 chars)
55+ // With width 20, both repo and branch fit, but we prefer branch
56+ const result = getResponsiveRepoText(undefined, 20);
57+ expect(result).toBe("feature/test-branch");
58+ });
59+
60+ it("should fallback to repo when branch doesn't fit but repo does", async () => {
61+ // Use a long branch name
62+ const gitModule = await import("../../util/git.js");
63+ vi.mocked(gitModule.getGitBranch).mockReturnValue(
64+ "very-long-feature-branch-name-that-wont-fit",
65+ );
66+
67+ const result = getResponsiveRepoText(undefined, 20);
68+ // Branch is too long, repo should fit
69+ expect(result).toBe("testuser/testrepo");
70+ });
71+
72+ it("should return branch only when repo doesn't fit but branch does", async () => {
73+ // When space is very limited, prefer shorter option
74+ const gitModule = await import("../../util/git.js");
75+ vi.mocked(gitModule.getGitRemoteUrl).mockReturnValue(
76+ "https://github.com/very-long-repo-name/testrepo.git",
77+ );
78+ vi.mocked(gitModule.getGitBranch).mockReturnValue("main");
79+
80+ const result = getResponsiveRepoText(undefined, 10);
81+ // "main" (4 chars) should fit, "very-long-repo-name/testrepo" won't
82+ expect(result).toBe("main");
83+ });
84+
85+ it("should return empty string when nothing fits", () => {
86+ const result = getResponsiveRepoText(undefined, 5);
87+ expect(result).toBe("");
88+ });
89+
90+ it("should return empty string when width is too small", () => {
91+ const result = getResponsiveRepoText(undefined, 2);
92+ expect(result).toBe("");
93+ });
94+
95+ it("should handle non-git repos", async () => {
96+ const gitModule = await import("../../util/git.js");
97+ vi.mocked(gitModule.isGitRepo).mockReturnValue(false);
98+ vi.mocked(gitModule.getGitBranch).mockReturnValue(null);
99+
100+ const result = getResponsiveRepoText(
101+ "https://github.com/user/repo.git",
102+ 50,
103+ );
104+ expect(result).toBe("user/repo");
105+ });
106+
107+ it("should return empty string when repo name is too long in non-git scenario", async () => {
108+ const gitModule = await import("../../util/git.js");
109+ vi.mocked(gitModule.isGitRepo).mockReturnValue(false);
110+
111+ const result = getResponsiveRepoText(
112+ "https://github.com/very-long-user/repo.git",
113+ 8,
114+ );
115+ expect(result).toBe("");
116+ });
117+ });
118+});
modified extensions/cli/src/ui/hooks/useTUIChatHooks.ts +89 −13
@@ -2,31 +2,107 @@
22
33 import type { PermissionMode } from "../../permissions/types.js";
44 import { modeService } from "../../services/ModeService.js";
5-import { getGitRemoteUrl, isGitRepo } from "../../util/git.js";
5+import { getGitBranch, getGitRemoteUrl, isGitRepo } from "../../util/git.js";
66 import type { ConfigOption, ModelOption } from "../types/selectorTypes.js";
77
88 import { useConfigSelector } from "./useConfigSelector.js";
99 import { useModelSelector } from "./useModelSelector.js";
1010
11-// Helper function to get repo URL text
12-export function getRepoUrlText(remoteUrl?: string): string {
11+// Helper function to get repo info for responsive display
12+export function getRepoInfo(remoteUrl?: string): {
13+ repoName: string;
14+ branchName: string | null;
15+ fullPath: string;
16+ isGitRepo: boolean;
17+} {
1318 let url = remoteUrl ?? "";
14- if (!url) {
15- const isGit = isGitRepo();
16- if (isGit) {
17- const gitUrl = getGitRemoteUrl();
18- if (gitUrl) {
19- url = gitUrl;
20- }
19+ const isGit = isGitRepo();
20+ let branchName: string | null = null;
21+
22+ if (!url && isGit) {
23+ const gitUrl = getGitRemoteUrl();
24+ if (gitUrl) {
25+ url = gitUrl;
2126 }
2227 }
28+
2329 if (!url) {
2430 url = process.cwd();
2531 }
2632
27- url = url.replace(/\.git$/, "");
28- url = url.replace(/^(https|http):\/\/.*?\//, "");
29- return url;
33+ // Get branch info if we're in a git repo
34+ if (isGit) {
35+ branchName = getGitBranch();
36+ }
37+
38+ // Clean up the URL
39+ const cleanUrl = url
40+ .replace(/\.git$/, "")
41+ .replace(/^(https|http):\/\/.*?\//, "");
42+
43+ return {
44+ repoName: cleanUrl,
45+ branchName,
46+ fullPath: url,
47+ isGitRepo: isGit,
48+ };
49+}
50+
51+// Helper function to get responsive repo URL text based on available width
52+export function getResponsiveRepoText(
53+ remoteUrl?: string,
54+ availableWidth: number = 0,
55+): string {
56+ const repoInfo = getRepoInfo(remoteUrl);
57+
58+ // If no available width provided, show nothing
59+ if (availableWidth <= 0) {
60+ return "";
61+ }
62+
63+ // Calculate the minimum space needed for different display options
64+ const branchSeparator = " ⊦";
65+ const branchText = repoInfo.branchName || "";
66+ const repoText = repoInfo.repoName;
67+
68+ // Priority order for display:
69+ // 1. repo + branch (if everything fits)
70+ // 2. branch only (preferred when both fit individually)
71+ // 3. repo only (fallback when branch doesn't fit)
72+ // 4. nothing if neither fit
73+
74+ if (repoInfo.isGitRepo && repoInfo.branchName) {
75+ const fullText = `${repoText}${branchSeparator}${branchText}`;
76+ const branchOnlyText = branchText;
77+ const repoOnlyText = repoText;
78+
79+ // If full text fits, use it
80+ if (fullText.length <= availableWidth) {
81+ return fullText;
82+ }
83+
84+ // Prefer branch if it fits (more immediately useful)
85+ if (branchOnlyText.length <= availableWidth) {
86+ return branchOnlyText;
87+ }
88+
89+ // If branch doesn't fit but repo does, use repo
90+ if (repoOnlyText.length <= availableWidth) {
91+ return repoOnlyText;
92+ }
93+ }
94+
95+ // No branch or not in git repo
96+ if (repoText.length <= availableWidth) {
97+ return repoText;
98+ }
99+
100+ return "";
101+}
102+
103+// Helper function to get repo URL text (legacy compatibility)
104+export function getRepoUrlText(remoteUrl?: string): string {
105+ return getResponsiveRepoText(remoteUrl);
30106 }
31107
32108 // Custom hook for intro message
modified extensions/cli/src/ui/hooks/useUserInput.ts +4 −1
@@ -76,7 +76,7 @@
7676 // Handle Ctrl+D to exit
7777 if (key.ctrl && input === "d") {
7878 exit();
79- return true;
79+ process.exit(0);
8080 }
8181
8282 // Handle Ctrl+L to refresh screen (clear terminal artifacts)
@@ -104,6 +104,7 @@
104104 setCursorPosition: (pos: number) => void;
105105 updateSlashCommandState: (text: string, cursor: number) => void;
106106 updateFileSearchState: (text: string, cursor: number) => void;
107+ updateBashModeState: (text: string) => void;
107108 inputHistory: any;
108109 }
109110
@@ -115,6 +116,7 @@
115116 setCursorPosition,
116117 updateSlashCommandState,
117118 updateFileSearchState,
119+ updateBashModeState,
118120 inputHistory,
119121 } = options;
120122
@@ -126,6 +128,7 @@
126128 setCursorPosition(newCursor);
127129 updateSlashCommandState(newText, newCursor);
128130 updateFileSearchState(newText, newCursor);
131+ updateBashModeState(newText);
129132 inputHistory.resetNavigation();
130133 }
131134 }
modified extensions/cli/src/ui/index.ts +4 −1
@@ -1,7 +1,7 @@
11 import { render, RenderOptions } from "ink";
22 import React from "react";
33
4-import { setTUIUnmount } from "../index.js";
4+import { enableSigintHandler, setTUIUnmount } from "../index.js";
55 import { PermissionMode } from "../permissions/types.js";
66 import { initializeServices } from "../services/index.js";
77 import { ServiceContainerProvider } from "../services/ServiceContainerContext.js";
@@ -79,6 +79,9 @@
7979 // Register unmount function with main process for two-stage Ctrl+C exit
8080 setTUIUnmount(unmount);
8181
82+ // Enable the two-stage SIGINT handler for TUI mode
83+ enableSigintHandler();
84+
8285 return { unmount };
8386 }
8487
modified extensions/cli/src/util/git.test.ts +14 −1
@@ -1,6 +1,10 @@
11 import { beforeEach, describe, expect, it } from "vitest";
22
3-import { getGitHubActionsRepoUrl, isGitHubActions } from "./git.js";
3+import {
4+ getGitBranch,
5+ getGitHubActionsRepoUrl,
6+ isGitHubActions,
7+} from "./git.js";
48
59 describe("git utilities - GitHub Actions detection", () => {
610 beforeEach(() => {
@@ -74,4 +78,13 @@
7478 expect(result).toBe("https://git.company.com/enterprise/repo");
7579 });
7680 });
81+
82+ describe("getGitBranch", () => {
83+ it("should return null when not in a git repo or when git command fails", () => {
84+ // Since we can't easily mock git commands in this test environment,
85+ // we just test that the function returns either a string or null
86+ const result = getGitBranch();
87+ expect(typeof result === "string" || result === null).toBe(true);
88+ });
89+ });
7790 });
modified extensions/cli/src/util/git.ts +17 −0
@@ -18,6 +18,23 @@
1818 }
1919 }
2020
21+/**
22+ * Get the current git branch name
23+ * @returns The current branch name or null if not found
24+ */
25+export function getGitBranch(): string | null {
26+ try {
27+ const result = execSync("git branch --show-current", {
28+ encoding: "utf-8",
29+ cwd: process.cwd(),
30+ stdio: "pipe",
31+ });
32+ return result.trim() || null;
33+ } catch {
34+ return null;
35+ }
36+}
37+
2138 /**
2239 * Check if current directory is a git repository
2340 */
modified extensions/cli/src/version.ts +58 −16
@@ -2,6 +2,9 @@
22 import { dirname, join } from "path";
33 import { fileURLToPath } from "url";
44
5+import node_machine_id from "node-machine-id";
6+
7+import { isAuthenticatedConfig, loadAuthConfig } from "./auth/workos.js";
58 import { logger } from "./util/logger.js";
69
710 export function getVersion(): string {
@@ -17,29 +20,68 @@
1720 }
1821 }
1922
23+function getEventUserId(): string {
24+ const authConfig = loadAuthConfig();
25+
26+ if (isAuthenticatedConfig(authConfig)) {
27+ return authConfig.userId;
28+ }
29+
30+ // Fall back to unique machine id if not signed in
31+ return node_machine_id.machineIdSync();
32+}
33+
34+// Singleton to cache the latest version result
35+let latestVersionCache: Promise<string | null> | null = null;
36+
2037 export async function getLatestVersion(
2138 signal?: AbortSignal,
2239 ): Promise<string | null> {
23- try {
24- const response = await fetch(
25- "https://registry.npmjs.org/@continuedev/cli/latest",
26- { signal },
27- );
28- if (!response.ok) {
29- throw new Error(`HTTP error! status: ${response.status}`);
30- }
31- const data = await response.json();
32- return data.version;
33- } catch (error) {
34- if (error instanceof Error && error.name === "AbortError") {
35- // Request was aborted, don't log
40+ // Return cached promise if it exists
41+ if (latestVersionCache) {
42+ return latestVersionCache;
43+ }
44+
45+ // Create and cache the promise
46+ latestVersionCache = (async () => {
47+ try {
48+ const id = getEventUserId();
49+ const response = await fetch(
50+ `https://api.continue.dev/cn/info?id=${encodeURIComponent(id)}`,
51+ { signal },
52+ );
53+ if (!response.ok) {
54+ throw new Error(`HTTP error! status: ${response.status}`);
55+ }
56+ const data = await response.json();
57+ return data.version;
58+ } catch (error) {
59+ if (error instanceof Error && error.name === "AbortError") {
60+ // Request was aborted, don't log
61+ return null;
62+ }
63+ logger?.debug(
64+ "Warning: Could not fetch latest version from api.continue.dev",
65+ );
3666 return null;
3767 }
38- logger.debug("Warning: Could not fetch latest version from npm registry");
39- return null;
40- }
68+ })();
69+
70+ return latestVersionCache;
4171 }
4272
73+getLatestVersion()
74+ .then((version) => {
75+ if (version) {
76+ logger?.info(`Latest version: ${version}`);
77+ }
78+ })
79+ .catch((error) => {
80+ logger?.debug(
81+ `Warning: Could not fetch latest version from api.continue.dev: ${error}`,
82+ );
83+ });
84+
4385 export function compareVersions(
4486 current: string,
4587 latest: string,
modified extensions/intellij/gradle.properties +1 −1
@@ -1,5 +1,5 @@
11 pluginGroup=com.github.continuedev.continueintellijextension
2-pluginVersion=1.0.40
2+pluginVersion=1.0.41
33 platformVersion=2024.1
44 kotlin.stdlib.default.dependency=false
55 org.gradle.configuration-cache=true
modified extensions/intellij/src/main/kotlin/com/github/continuedev/continueintellijextension/browser/ContinueBrowser.kt +9 −3
@@ -1,28 +1,29 @@
11 package com.github.continuedev.continueintellijextension.browser
22
33 import com.github.continuedev.continueintellijextension.constants.MessageTypes
4-import com.github.continuedev.continueintellijextension.services.ContinueExtensionSettings
54 import com.github.continuedev.continueintellijextension.services.ContinuePluginService
65 import com.github.continuedev.continueintellijextension.utils.uuid
76 import com.google.gson.Gson
7+import com.intellij.openapi.Disposable
88 import com.intellij.openapi.components.service
99 import com.intellij.openapi.diagnostic.Logger
1010 import com.intellij.openapi.project.Project
11+import com.intellij.openapi.util.Disposer
1112 import com.intellij.ui.jcef.*
1213 import org.cef.CefApp
1314 import org.cef.browser.CefBrowser
1415 import org.cef.handler.CefLoadHandlerAdapter
1516 import javax.swing.JComponent
1617
17-class ContinueBrowser(private val project: Project) {
18+class ContinueBrowser(private val project: Project): Disposable {
1819
1920 private val log = Logger.getInstance(ContinueBrowser::class.java.simpleName)
2021 private val browser: JBCefBrowser = JBCefBrowser.createBuilder().setOffScreenRendering(true).build()
22+ private val myJSQueryOpenInBrowser = JBCefJSQuery.create(browser as JBCefBrowserBase)
2123
2224 init {
2325 CefApp.getInstance().registerSchemeHandlerFactory("http", "continue", CustomSchemeHandlerFactory())
2426 browser.jbCefClient.setProperty(JBCefClient.Properties.JS_QUERY_POOL_SIZE, 200)
25- val myJSQueryOpenInBrowser = JBCefJSQuery.create(browser as JBCefBrowserBase)
2627 myJSQueryOpenInBrowser.addHandler { msg: String? ->
2728 val json = Gson().fromJson(msg, BrowserMessage::class.java)
2829 val messageType = json.messageType
@@ -100,6 +101,11 @@
100101 browser.cefBrowser.executeJavaScript(script, getGuiUrl(), 0)
101102 }
102103
104+ override fun dispose() {
105+ Disposer.dispose(myJSQueryOpenInBrowser)
106+ Disposer.dispose(browser)
107+ }
108+
103109 // todo: remove and use types.Message
104110 private data class BrowserMessage(
105111 val messageType: String,
modified extensions/intellij/src/main/kotlin/com/github/continuedev/continueintellijextension/browser/ContinueBrowserService.kt +13 −3
@@ -1,22 +1,32 @@
11 package com.github.continuedev.continueintellijextension.browser
22
3+import com.intellij.openapi.Disposable
34 import com.intellij.openapi.components.Service
45 import com.intellij.openapi.components.service
56 import com.intellij.openapi.project.Project
7+import com.intellij.openapi.util.Disposer
68 import com.intellij.ui.jcef.JBCefApp
79
810 @Service(Service.Level.PROJECT)
9-class ContinueBrowserService(project: Project) {
11+class ContinueBrowserService(project: Project): Disposable {
1012
1113 private val browser: ContinueBrowser? =
1214 if (JBCefApp.isSupported())
1315 ContinueBrowser(project)
1416 else null
1517
18+ override fun dispose() {
19+ if (browser != null)
20+ Disposer.dispose(browser)
21+ }
22+
1623 companion object {
1724
18- fun Project.getBrowser() =
19- service<ContinueBrowserService>().browser
25+ fun Project.getBrowser(): ContinueBrowser? {
26+ if (isDisposed)
27+ return null
28+ return service<ContinueBrowserService>().browser
29+ }
2030
2131 }
2232 }
modified extensions/intellij/src/main/kotlin/com/github/continuedev/continueintellijextension/constants/MessageTypes.kt +0 −1
@@ -37,7 +37,6 @@
3737 "applyToFile",
3838 "getControlPlaneSessionInfo",
3939 "logoutOfControlPlane",
40- "getTerminalContents",
4140 "showToast",
4241 "openUrl",
4342 "isWorkspaceRemote",
modified extensions/intellij/src/main/kotlin/com/github/continuedev/continueintellijextension/continue/process/ContinueProcessHandler.kt +8 −4
@@ -43,10 +43,14 @@
4343 }
4444 scope.launch(Dispatchers.IO) {
4545 for (message in pendingWrites) {
46- log.debug("Write: $message")
47- writer.write(message)
48- writer.write("\r\n")
49- writer.flush()
46+ try {
47+ log.debug("Write: $message")
48+ writer.write(message)
49+ writer.write("\r\n")
50+ writer.flush()
51+ } catch (e: IOException) {
52+ log.warn(e)
53+ }
5054 }
5155 }
5256 }
modified extensions/intellij/src/main/kotlin/com/github/continuedev/continueintellijextension/error/ContinueErrorSubmitter.kt +1 −0
@@ -21,6 +21,7 @@
2121 consumer: Consumer<in SubmittedReportInfo>
2222 ): Boolean {
2323 try {
24+ // todo: IdeaReportingEvent is deprecated; migrate to IdeaLoggingEvent + figure out how to read attachments
2425 val event = events.filterIsInstance<IdeaReportingEvent>()
2526 .firstOrNull() ?: return false
2627 service<ContinueSentryService>().report(
modified extensions/intellij/src/main/kotlin/com/github/continuedev/continueintellijextension/license/AddLicenseKey.kt +12 −17
@@ -5,22 +5,27 @@
55 import com.intellij.notification.NotificationAction
66 import com.intellij.notification.NotificationGroupManager
77 import com.intellij.notification.NotificationType
8-import com.intellij.openapi.actionSystem.ActionManager
9-import com.intellij.openapi.actionSystem.ActionPlaces
108 import com.intellij.openapi.actionSystem.AnAction
119 import com.intellij.openapi.actionSystem.AnActionEvent
1210 import com.intellij.openapi.application.ApplicationManager
1311 import com.intellij.openapi.components.service
12+import com.intellij.openapi.project.Project
1413 import com.intellij.openapi.ui.DialogWrapper
1514
1615 class AddLicenseKey : AnAction() {
1716
1817 override fun actionPerformed(e: AnActionEvent) {
19- val dialog = AddLicenseKeyDialog(e.project)
18+ performAddLicenseKey(e.project)
19+ }
20+
21+ private fun performAddLicenseKey(project: Project?) {
22+ if (project == null)
23+ return
24+ val dialog = AddLicenseKeyDialog(project)
2025 dialog.show()
2126 if (dialog.exitCode != DialogWrapper.OK_EXIT_CODE)
2227 return
23- val messenger = e.project?.service<ContinuePluginService>()?.coreMessenger
28+ val messenger = project.service<ContinuePluginService>().coreMessenger
2429 ?: return
2530 messenger.request("mdm/setLicenseKey", mapOf("licenseKey" to dialog.licenseKey), null) { response ->
2631 val isValid = response.castNestedOrNull<Boolean>("content") ?: false
@@ -28,7 +33,7 @@
2833 createSuccessAction()
2934 else
3035 createErrorAction()
31- notification.notify(e.project)
36+ notification.notify(project)
3237 }
3338 }
3439
@@ -37,7 +42,7 @@
3742 "License key is valid. A restart is required for it to take effect.",
3843 NotificationType.INFORMATION
3944 ).addAction(
40- NotificationAction.create("Restart IDE") { event, notification ->
45+ NotificationAction.create("Restart IDE") { _, _ ->
4146 ApplicationManager.getApplication().restart()
4247 }
4348 )
@@ -49,17 +54,7 @@
4954 ).addAction(
5055 NotificationAction.create("Try again") { event, notification ->
5156 notification.expire()
52- val action = this@AddLicenseKey
53- action.actionPerformed(
54- AnActionEvent(
55- null,
56- event.dataContext,
57- ActionPlaces.UNKNOWN,
58- action.templatePresentation.clone(),
59- ActionManager.getInstance(),
60- 0
61- )
62- )
57+ performAddLicenseKey(event.project)
6358 }
6459 )
6560
modified extensions/intellij/src/main/kotlin/com/github/continuedev/continueintellijextension/license/AddLicenseKeyDialog.kt +2 −2
@@ -3,9 +3,9 @@
33 import com.intellij.openapi.project.Project
44 import com.intellij.openapi.ui.DialogWrapper
55 import com.intellij.openapi.ui.ValidationInfo
6+import com.intellij.ui.dsl.builder.AlignX
67 import com.intellij.ui.dsl.builder.bindText
78 import com.intellij.ui.dsl.builder.panel
8-import com.intellij.ui.dsl.gridLayout.HorizontalAlign
99 import javax.swing.JComponent
1010
1111 class AddLicenseKeyDialog(project: Project?) : DialogWrapper(project) {
@@ -22,7 +22,7 @@
2222 panel {
2323 row {
2424 textField().bindText(::licenseKey)
25- .horizontalAlign(HorizontalAlign.FILL)
25+ .align(AlignX.FILL)
2626 .focused()
2727 .validationOnApply {
2828 if (it.text.isBlank())
modified extensions/vscode/package-lock.json +0 −0

Not shown: the file is larger than the hub shows, or this page holds as much as it shows. View the file.

modified extensions/vscode/package.json +2 −2
@@ -2,7 +2,7 @@
22 "name": "continue",
33 "icon": "media/icon.png",
44 "author": "Continue Dev, Inc",
5- "version": "1.3.3",
5+ "version": "1.3.5",
66 "repository": {
77 "type": "git",
88 "url": "https://github.com/continuedev/continue"
@@ -699,7 +699,7 @@
699699 "devDependencies": {
700700 "@biomejs/biome": "1.6.4",
701701 "@nestjs/common": "^11.0.16",
702- "@openapitools/openapi-generator-cli": "^2.20.0",
702+ "@openapitools/openapi-generator-cli": "^2.23.1",
703703 "@types/chai": "^5.0.1",
704704 "@types/cors": "^2.8.17",
705705 "@types/express": "^4.17.21",
modified gui/src/components/gui/Switch.tsx +12 −1
@@ -1,5 +1,7 @@
1+import { InformationCircleIcon } from "@heroicons/react/24/outline";
12 import React, { ReactNode } from "react";
23 import { vscButtonBackground } from "..";
4+import { ToolTip } from "./Tooltip";
35
46 type ToggleSwitchProps = {
57 isToggled: boolean;
@@ -8,6 +10,7 @@
810 size?: number;
911 showIfToggled?: ReactNode;
1012 disabled?: boolean;
13+ tooltip?: string;
1114 };
1215
1316 const ToggleSwitch: React.FC<ToggleSwitchProps> = ({
@@ -17,12 +20,20 @@
1720 size = 16,
1821 showIfToggled,
1922 disabled = false,
23+ tooltip,
2024 }) => {
2125 return (
2226 <div
2327 className={`flex select-none items-center justify-between gap-3 ${disabled ? "cursor-not-allowed" : "cursor-pointer"}`}
2428 >
25- <span className="truncate-right">{text}</span>
29+ <span className="truncate-right flex items-center gap-x-1">
30+ {text}{" "}
31+ {tooltip && (
32+ <ToolTip content={tooltip}>
33+ <InformationCircleIcon className="h-3 w-3" />
34+ </ToolTip>
35+ )}
36+ </span>
2637 <div className="flex flex-row items-center gap-1">
2738 {isToggled && !!showIfToggled && showIfToggled}
2839 <div
modified gui/src/components/mainInput/InputToolbar.tsx +1 −3
@@ -163,9 +163,7 @@
163163 >
164164 {!isInEdit && <ContextStatus />}
165165 {!props.toolbarOptions?.hideUseCodebase && !isInEdit && (
166- <div
167- className={`hover:underline" hidden transition-colors duration-200 md:flex`}
168- >
166+ <div className="hidden transition-colors duration-200 hover:underline md:flex">
169167 <HoverItem
170168 className={props.activeKey === "Alt" ? "underline" : ""}
171169 onClick={(e) =>
modified gui/src/components/mainInput/TipTapEditor/TipTapEditor.tsx +1 −1
@@ -204,6 +204,7 @@
204204 setShowDragOverMsg(true);
205205 }}
206206 onDrop={(event) => {
207+ setShowDragOverMsg(false);
207208 if (
208209 !defaultModel ||
209210 !modelSupportsImages(
@@ -215,7 +216,6 @@
215216 ) {
216217 return;
217218 }
218- setShowDragOverMsg(false);
219219 let file = event.dataTransfer.files[0];
220220 void handleImageFile(ideMessenger, file).then((result) => {
221221 if (!editor) {
modified gui/src/context/SubmenuContextProviders.tsx +5 −4
@@ -208,7 +208,7 @@
208208
209209 const interval = setInterval(refreshOpenFiles, 2000);
210210
211- refreshOpenFiles(); // Initial call
211+ void refreshOpenFiles(); // Initial call
212212
213213 return () => {
214214 isMounted = false;
@@ -475,7 +475,8 @@
475475 providers === "all"
476476 ? true
477477 : providers === "dependsOnIndexing"
478- ? description.dependsOnIndexing
478+ ? description.dependsOnIndexing &&
479+ description.dependsOnIndexing?.length > 0
479480 : providers.includes(description.title);
480481
481482 if (!refreshProvider) {
@@ -589,7 +590,7 @@
589590 useWebviewListener(
590591 "refreshSubmenuItems",
591592 async (data) => {
592- loadSubmenuItems(data.providers);
593+ void loadSubmenuItems(data.providers);
593594 },
594595 [loadSubmenuItems],
595596 );
@@ -607,7 +608,7 @@
607608 )
608609 .map((provider) => provider.title);
609610 if (newTitles.length > 0) {
610- loadSubmenuItems(newTitles);
611+ void loadSubmenuItems(newTitles);
611612 }
612613 lastProviders.current = submenuContextProviders;
613614 }, [loadSubmenuItems, submenuContextProviders]);
modified gui/src/pages/AddNewModel/configs/models.ts +10 −25
@@ -1184,42 +1184,27 @@
11841184 icon: "openai.png",
11851185 isOpenSource: false,
11861186 },
1187- claude35Sonnet: {
1188- title: "Claude 3.5 Sonnet",
1187+ claude4Sonnet: {
1188+ title: "Claude 4 Sonnet",
11891189 description:
1190- "Anthropic's most intelligent model, but much less expensive than Claude 3 Opus",
1190+ "The most intelligent model in the Claude 4 series. Costing lesser than Claude 4 Opus.",
11911191 params: {
1192- model: "claude-3-5-sonnet-latest",
1192+ model: "claude-4-sonnet-latest",
11931193 contextLength: 200_000,
1194- title: "Claude 3.5 Sonnet",
1194+ title: "Claude 4 Sonnet",
11951195 apiKey: "",
11961196 },
11971197 providerOptions: ["anthropic", "askSage"],
11981198 icon: "anthropic.png",
11991199 isOpenSource: false,
12001200 },
1201- claude3Opus: {
1202- title: "Claude 3 Opus",
1203- description:
1204- "The most capable model in the Claude 3 series, beating GPT-4 on many benchmarks",
1205- params: {
1206- model: "claude-3-opus-20240229",
1207- contextLength: 200_000,
1208- title: "Claude 3 Opus",
1209- apiKey: "",
1210- },
1211- providerOptions: ["anthropic", "askSage"],
1212- icon: "anthropic.png",
1213- isOpenSource: false,
1214- },
1215- claude3Sonnet: {
1216- title: "Claude 3 Sonnet",
1217- description:
1218- "The second most capable model in the Claude 3 series: ideal balance of intelligence and speed",
1201+ claude41Opus: {
1202+ title: "Claude 4.1 Opus",
1203+ description: "The most capable model in the Claude 4 series",
12191204 params: {
1220- model: "claude-3-sonnet-20240229",
1205+ model: "claude-opus-4-1-20250805",
12211206 contextLength: 200_000,
1222- title: "Claude 3 Sonnet",
1207+ title: "Claude 4.1 Opus",
12231208 apiKey: "",
12241209 },
12251210 providerOptions: ["anthropic", "askSage"],
modified gui/src/pages/AddNewModel/configs/providers.ts +1 −6
@@ -107,12 +107,7 @@
107107 defaultValue: 100000,
108108 },
109109 ],
110- packages: [
111- models.claude35Sonnet,
112- models.claude3Opus,
113- models.claude3Sonnet,
114- models.claude35Haiku,
115- ],
110+ packages: [models.claude4Sonnet, models.claude41Opus, models.claude35Haiku],
116111 apiKeyUrl: "https://console.anthropic.com/account/keys",
117112 },
118113 moonshot: {
modified gui/src/pages/config/UserSettingsForm.tsx +41 −5
@@ -2,6 +2,7 @@
22 CheckIcon,
33 ChevronRightIcon,
44 ExclamationTriangleIcon,
5+ InformationCircleIcon,
56 XMarkIcon,
67 } from "@heroicons/react/24/outline";
78 import {
@@ -177,6 +178,7 @@
177178 })
178179 }
179180 text="Show Session Tabs"
181+ tooltip="If on, displays tabs above the chat as an alternative way to organize and access your sessions."
180182 />
181183 <ToggleSwitch
182184 isToggled={codeWrap}
@@ -186,6 +188,7 @@
186188 })
187189 }
188190 text="Wrap Codeblocks"
191+ tooltip="If on, displays tabs above the chat as an alternative way to organize and access your sessions."
189192 />
190193
191194 <ToggleSwitch
@@ -196,6 +199,7 @@
196199 })
197200 }
198201 text="Show Chat Scrollbar"
202+ tooltip="If on, enables a scrollbar in the chat window."
199203 />
200204 <ToggleSwitch
201205 isToggled={readResponseTTS}
@@ -205,6 +209,7 @@
205209 })
206210 }
207211 text="Text-to-Speech Output"
212+ tooltip="If on, reads LLM responses aloud with TTS."
208213 />
209214 {/* <ToggleSwitch
210215 isToggled={useChromiumForDocsCrawling}
@@ -223,6 +228,7 @@
223228 })
224229 }
225230 text="Enable Session Titles"
231+ tooltip="If on, generates summary titles for each chat session after the first message, using the current Chat model."
226232 />
227233 <ToggleSwitch
228234 isToggled={!displayRawMarkdown}
@@ -232,6 +238,7 @@
232238 })
233239 }
234240 text="Format Markdown"
241+ tooltip="If off, shows responses as raw text."
235242 />
236243
237244 <ToggleSwitch
@@ -243,6 +250,7 @@
243250 })
244251 }
245252 text="Allow Anonymous Telemetry"
253+ tooltip="If on, allows Continue to send anonymous telemetry."
246254 />
247255
248256 <ToggleSwitch
@@ -267,7 +275,12 @@
267275 /> */}
268276
269277 <label className="flex items-center justify-between gap-3">
270- <span className="text-left">Font Size</span>
278+ <span className="flex items-center gap-x-1 text-left">
279+ Font Size{" "}
280+ <ToolTip content="Specifies base font size for UI elements">
281+ <InformationCircleIcon className="h-3 w-3" />
282+ </ToolTip>
283+ </span>
271284 <NumberInput
272285 value={fontSize}
273286 onChange={(val) => {
@@ -281,8 +294,11 @@
281294 />
282295 </label>
283296 <label className="flex items-center justify-between gap-3">
284- <span className="lines lines-1 text-left">
297+ <span className="lines lines-1 flex items-center gap-x-1 text-left">
285298 Multiline Autocompletions
299+ <ToolTip content="Controls multiline completions for autocomplete.">
300+ <InformationCircleIcon className="h-3 w-3" />
301+ </ToolTip>
286302 </span>
287303 <Select
288304 value={useAutocompleteMultilineCompletions}
@@ -301,7 +317,12 @@
301317 </Select>
302318 </label>
303319 <label className="flex items-center justify-between gap-3">
304- <span className="text-left">Autocomplete Timeout (ms)</span>
320+ <span className="flex items-center gap-x-1 text-left">
321+ Autocomplete Timeout (ms)
322+ <ToolTip content="Maximum time in milliseconds for autocomplete request/retrieval.">
323+ <InformationCircleIcon className="h-3 w-3" />
324+ </ToolTip>
325+ </span>
305326 <NumberInput
306327 value={modelTimeout}
307328 onChange={(val) =>
@@ -314,7 +335,12 @@
314335 />
315336 </label>
316337 <label className="flex items-center justify-between gap-3">
317- <span className="text-left">Autocomplete Debounce (ms)</span>
338+ <span className="flex items-center gap-x-1 text-left">
339+ Autocomplete Debounce (ms)
340+ <ToolTip content="Minimum time in milliseconds to trigger an autocomplete request after a change.">
341+ <InformationCircleIcon className="h-3 w-3" />
342+ </ToolTip>
343+ </span>
318344 <NumberInput
319345 value={debounceDelay}
320346 onChange={(val) =>
@@ -334,7 +360,12 @@
334360 }}
335361 >
336362 <div className="flex items-center justify-between">
337- <span>Disable autocomplete in files</span>
363+ <span className="flex items-center gap-x-1">
364+ Disable autocomplete in files
365+ <ToolTip content="List of comma-separated glob pattern to disable autocomplete in matching files. E.g., **/*.{txt,md}">
366+ <InformationCircleIcon className="h-3 w-3" />
367+ </ToolTip>
368+ </span>
338369 <div className="flex items-center gap-2">
339370 <Input
340371 value={formDisableAutocomplete}
@@ -401,6 +432,8 @@
401432 })
402433 }
403434 text="Auto-Accept Agent Edits"
435+ tooltip="If on, diffs generated by the edit tool are
436+ automatically accepted and Agent proceeds with the next conversational turn."
404437 showIfToggled={
405438 <>
406439 <ToolTip
@@ -420,6 +453,7 @@
420453 })
421454 }
422455 text="Add Current File by Default"
456+ tooltip="If on, the currently open file is added as context in every new conversation."
423457 />
424458
425459 <ToggleSwitch
@@ -439,6 +473,7 @@
439473 onlyUseSystemMessageTools: !onlyUseSystemMessageTools,
440474 })
441475 }
476+ tooltip="If on, Continue will not attempt to use native tool calling and will only use system message tools."
442477 text="Only use system message tools"
443478 />
444479
@@ -460,6 +495,7 @@
460495 })
461496 }
462497 text="Stream after tool rejection"
498+ tooltip="If on, streaming will continue after the tool call is rejected."
463499 />
464500
465501 {hasContinueEmail && (
modified gui/src/pages/gui/Chat.tsx +11 −13
@@ -288,19 +288,17 @@
288288
289289 if (message.role === "user") {
290290 return (
291- <div className={isBeforeLatestSummary ? "opacity-50" : ""}>
292- <ContinueInputBox
293- onEnter={(editorState, modifiers) =>
294- sendInput(editorState, modifiers, index)
295- }
296- isLastUserInput={isLastUserInput(index)}
297- isMainInput={false}
298- editorState={editorState}
299- contextItems={contextItems}
300- appliedRules={appliedRules}
301- inputId={message.id}
302- />
303- </div>
291+ <ContinueInputBox
292+ onEnter={(editorState, modifiers) =>
293+ sendInput(editorState, modifiers, index)
294+ }
295+ isLastUserInput={isLastUserInput(index)}
296+ isMainInput={false}
297+ editorState={editorState}
298+ contextItems={contextItems}
299+ appliedRules={appliedRules}
300+ inputId={message.id}
301+ />
304302 );
305303 }
306304
modified packages/continue-sdk/python/api/docs/DefaultApi.md +25 −25
@@ -4,12 +4,12 @@
44
55 | Method | HTTP request | Description |
66 | ---------------------------------------------------------------------------------- | ---------------------------------------------------- | ------------------------------------------------- |
7-| [**get_assistant**](DefaultApi.md#get_assistant) | **GET** /ide/get-assistant/{ownerSlug}/{packageSlug} | Get a specific assistant by slug |
7+| [**get_assistant**](DefaultApi.md#get_assistant) | **GET** /ide/get-assistant/{ownerSlug}/{packageSlug} | Get a specific agent by slug |
88 | [**get_free_trial_status**](DefaultApi.md#get_free_trial_status) | **GET** /ide/free-trial-status | Get free trial status for user |
99 | [**get_models_add_on_checkout_url**](DefaultApi.md#get_models_add_on_checkout_url) | **GET** /ide/get-models-add-on-checkout-url | Get Stripe checkout URL for models add-on |
1010 | [**get_policy**](DefaultApi.md#get_policy) | **GET** /ide/policy | Get organization policy |
11-| [**list_assistant_full_slugs**](DefaultApi.md#list_assistant_full_slugs) | **GET** /ide/list-assistant-full-slugs | List assistant full slugs (currently returns 429) |
12-| [**list_assistants**](DefaultApi.md#list_assistants) | **GET** /ide/list-assistants | List assistants for IDE |
11+| [**list_assistant_full_slugs**](DefaultApi.md#list_assistant_full_slugs) | **GET** /ide/list-assistant-full-slugs | List agent full slugs (currently returns 429) |
12+| [**list_assistants**](DefaultApi.md#list_assistants) | **GET** /ide/list-assistants | List agents for IDE |
1313 | [**list_organizations**](DefaultApi.md#list_organizations) | **GET** /ide/list-organizations | List organizations for user |
1414 | [**sync_secrets**](DefaultApi.md#sync_secrets) | **POST** /ide/sync-secrets | Synchronize secrets for user |
1515
@@ -17,10 +17,10 @@
1717
1818 > GetAssistant200Response get_assistant(owner_slug, package_slug, always_use_proxy=always_use_proxy, organization_id=organization_id)
1919
20-Get a specific assistant by slug
20+Get a specific agent by slug
2121
22-Returns a single assistant configuration by its owner and package slug.
23-This endpoint is useful when you need to retrieve or refresh a specific assistant
22+Returns a single agent configuration by its owner and package slug.
23+This endpoint is useful when you need to retrieve or refresh a specific agent
2424 without fetching the entire list.
2525
2626 ### Example
@@ -53,13 +53,13 @@
5353 with openapi_client.ApiClient(configuration) as api_client:
5454 # Create an instance of the API class
5555 api_instance = openapi_client.DefaultApi(api_client)
56- owner_slug = 'owner_slug_example' # str | Slug of the user or organization that owns the assistant
57- package_slug = 'package_slug_example' # str | Slug of the assistant package
56+ owner_slug = 'owner_slug_example' # str | Slug of the user or organization that owns the agent
57+ package_slug = 'package_slug_example' # str | Slug of the agent package
5858 always_use_proxy = 'always_use_proxy_example' # str | Whether to always use the Continue-managed proxy for model requests (optional)
59- organization_id = 'organization_id_example' # str | ID of the organization to scope assistants to. If not provided, personal assistants are returned. (optional)
59+ organization_id = 'organization_id_example' # str | ID of the organization to scope agents to. If not provided, personal agents are returned. (optional)
6060
6161 try:
62- # Get a specific assistant by slug
62+ # Get a specific agent by slug
6363 api_response = api_instance.get_assistant(owner_slug, package_slug, always_use_proxy=always_use_proxy, organization_id=organization_id)
6464 print("The response of DefaultApi->get_assistant:\n")
6565 pprint(api_response)
@@ -71,10 +71,10 @@
7171
7272 | Name | Type | Description | Notes |
7373 | -------------------- | ------- | ------------------------------------------------------------------------------------------------- | ---------- |
74-| **owner_slug** | **str** | Slug of the user or organization that owns the assistant |
75-| **package_slug** | **str** | Slug of the assistant package |
74+| **owner_slug** | **str** | Slug of the user or organization that owns the agent |
75+| **package_slug** | **str** | Slug of the agent package |
7676 | **always_use_proxy** | **str** | Whether to always use the Continue-managed proxy for model requests | [optional] |
77-| **organization_id** | **str** | ID of the organization to scope assistants to. If not provided, personal assistants are returned. | [optional] |
77+| **organization_id** | **str** | ID of the organization to scope agents to. If not provided, personal agents are returned. | [optional] |
7878
7979 ### Return type
8080
@@ -93,10 +93,10 @@
9393
9494 | Status code | Description | Response headers |
9595 | ----------- | ------------------------------------------------- | ---------------- |
96-| **200** | Successfully retrieved assistant | - |
96+| **200** | Successfully retrieved agent | - |
9797 | **401** | Unauthorized - Authentication failed | - |
9898 | **403** | Forbidden - Assistant not allowed in organization | - |
99-| **404** | User or assistant not found | - |
99+| **404** | User or agent not found | - |
100100
101101 [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
102102
@@ -335,10 +335,10 @@
335335
336336 > list_assistant_full_slugs()
337337
338-List assistant full slugs (currently returns 429)
338+List agent full slugs (currently returns 429)
339339
340340 This endpoint is temporarily disabled and returns a 429 status code
341-to prevent constant refreshes of the full assistant list until a
341+to prevent constant refreshes of the full agent list until a
342342 fixed client version can be deployed.
343343
344344 ### Example
@@ -372,7 +372,7 @@
372372 api_instance = openapi_client.DefaultApi(api_client)
373373
374374 try:
375- # List assistant full slugs (currently returns 429)
375+ # List agent full slugs (currently returns 429)
376376 api_instance.list_assistant_full_slugs()
377377 except Exception as e:
378378 print("Exception when calling DefaultApi->list_assistant_full_slugs: %s\n" % e)
@@ -407,12 +407,12 @@
407407
408408 > List[ListAssistants200ResponseInner] list_assistants(always_use_proxy=always_use_proxy, organization_id=organization_id)
409409
410-List assistants for IDE
410+List agents for IDE
411411
412-Returns a complete list of assistants available to the user, with their full configurations,
412+Returns a complete list of agents available to the user, with their full configurations,
413413 icons, and other metadata needed by the IDE to display and use them.
414414
415-This endpoint performs a full refresh of the list of assistants, including unrolling
415+This endpoint performs a full refresh of the list of agents, including unrolling
416416 configurations and resolving secrets.
417417
418418 ### Example
@@ -446,10 +446,10 @@
446446 # Create an instance of the API class
447447 api_instance = openapi_client.DefaultApi(api_client)
448448 always_use_proxy = 'always_use_proxy_example' # str | Whether to always use the Continue-managed proxy for model requests (optional)
449- organization_id = 'organization_id_example' # str | ID of the organization to scope assistants to. If not provided, personal assistants are returned. (optional)
449+ organization_id = 'organization_id_example' # str | ID of the organization to scope agents to. If not provided, personal agents are returned. (optional)
450450
451451 try:
452- # List assistants for IDE
452+ # List agents for IDE
453453 api_response = api_instance.list_assistants(always_use_proxy=always_use_proxy, organization_id=organization_id)
454454 print("The response of DefaultApi->list_assistants:\n")
455455 pprint(api_response)
@@ -462,7 +462,7 @@
462462 | Name | Type | Description | Notes |
463463 | -------------------- | ------- | ------------------------------------------------------------------------------------------------- | ---------- |
464464 | **always_use_proxy** | **str** | Whether to always use the Continue-managed proxy for model requests | [optional] |
465-| **organization_id** | **str** | ID of the organization to scope assistants to. If not provided, personal assistants are returned. | [optional] |
465+| **organization_id** | **str** | ID of the organization to scope agents to. If not provided, personal agents are returned. | [optional] |
466466
467467 ### Return type
468468
@@ -481,7 +481,7 @@
481481
482482 | Status code | Description | Response headers |
483483 | ----------- | ------------------------------------ | ---------------- |
484-| **200** | Successfully retrieved assistants | - |
484+| **200** | Successfully retrieved agents | - |
485485 | **401** | Unauthorized - Authentication failed | - |
486486 | **404** | User not found | - |
487487
modified packages/continue-sdk/python/api/docs/GetAssistant200Response.md +4 −4
@@ -5,12 +5,12 @@
55 | Name | Type | Description | Notes |
66 | --------------------- | ----------------------------------------------------------------------------------------------- | --------------------------------------------------------- | ---------- |
77 | **config_result** | [**ListAssistants200ResponseInnerConfigResult**](ListAssistants200ResponseInnerConfigResult.md) | |
8-| **owner_slug** | **str** | Slug of the user or organization that owns the assistant |
9-| **package_slug** | **str** | Slug of the assistant package |
10-| **icon_url** | **str** | Pre-signed URL for the assistant&#39;s icon | [optional] |
8+| **owner_slug** | **str** | Slug of the user or organization that owns the agent |
9+| **package_slug** | **str** | Slug of the agent package |
10+| **icon_url** | **str** | Pre-signed URL for the agent&#39;s icon | [optional] |
1111 | **on_prem_proxy_url** | **str** | URL of the on-premises proxy if the organization uses one | [optional] |
1212 | **use_on_prem_proxy** | **bool** | Whether the organization uses an on-premises proxy | [optional] |
13-| **raw_yaml** | **str** | Raw YAML configuration of the assistant | [optional] |
13+| **raw_yaml** | **str** | Raw YAML configuration of the agent | [optional] |
1414
1515 ## Example
1616
modified packages/continue-sdk/python/api/docs/ListAssistants200ResponseInner.md +4 −4
@@ -5,12 +5,12 @@
55 | Name | Type | Description | Notes |
66 | --------------------- | ----------------------------------------------------------------------------------------------- | --------------------------------------------------------- | ---------- |
77 | **config_result** | [**ListAssistants200ResponseInnerConfigResult**](ListAssistants200ResponseInnerConfigResult.md) | |
8-| **owner_slug** | **str** | Slug of the user or organization that owns the assistant |
9-| **package_slug** | **str** | Slug of the assistant package |
10-| **icon_url** | **str** | Pre-signed URL for the assistant&#39;s icon | [optional] |
8+| **owner_slug** | **str** | Slug of the user or organization that owns the agent |
9+| **package_slug** | **str** | Slug of the agent package |
10+| **icon_url** | **str** | Pre-signed URL for the agent&#39;s icon | [optional] |
1111 | **on_prem_proxy_url** | **str** | URL of the on-premises proxy if the organization uses one | [optional] |
1212 | **use_on_prem_proxy** | **bool** | Whether the organization uses an on-premises proxy | [optional] |
13-| **raw_yaml** | **str** | Raw YAML configuration of the assistant | [optional] |
13+| **raw_yaml** | **str** | Raw YAML configuration of the agent | [optional] |
1414
1515 ## Example
1616
modified packages/continue-sdk/python/api/docs/ListAssistants200ResponseInnerConfigResult.md +1 −1
@@ -4,7 +4,7 @@
44
55 | Name | Type | Description | Notes |
66 | --------------------------- | ------------- | ----------------------------------------------------- | ---------- |
7-| **config** | **object** | The unrolled assistant configuration |
7+| **config** | **object** | The unrolled agent configuration |
88 | **config_load_interrupted** | **bool** | Whether the configuration loading was interrupted |
99 | **errors** | **List[str]** | Any errors that occurred during configuration loading | [optional] |
1010
modified packages/openai-adapters/src/apis/Anthropic.ts +9 −3
@@ -174,13 +174,19 @@
174174 }
175175 return part;
176176 }
177+ const dataUrl =
178+ (part as OpenAI.Chat.Completions.ChatCompletionContentPartImage)
179+ ?.image_url?.url || "";
180+ // Extract media type from data URL (ex. "data:image/png;base64,..." -> "image/png")
181+ const mediaTypeMatch = dataUrl.match(/^data:([^;]+);base64,/);
182+ const mediaType = mediaTypeMatch ? mediaTypeMatch[1] : "image/jpeg";
183+
177184 return {
178185 type: "image",
179186 source: {
180187 type: "base64",
181- media_type: "image/jpeg",
182- // @ts-ignore
183- data: part.image_url.url.split(",")[1],
188+ media_type: mediaType,
189+ data: dataUrl.split(",")[1],
184190 },
185191 };
186192 })
modified packages/terminal-security/package-lock.json +432 −659
@@ -15,13 +15,13 @@
1515 "@types/node": "^20.11.19",
1616 "@types/shell-quote": "^1.7.5",
1717 "typescript": "^5.5.2",
18- "vitest": "^1.6.0"
18+ "vitest": "^3.2.4"
1919 }
2020 },
2121 "node_modules/@esbuild/aix-ppc64": {
22- "version": "0.21.5",
23- "resolved": "https://registry.npmjs.org/@esbuild/aix-ppc64/-/aix-ppc64-0.21.5.tgz",
24- "integrity": "sha512-1SDgH6ZSPTlggy1yI6+Dbkiz8xzpHJEVAlF/AM1tHPLsf5STom9rwtjE4hKAF20FfXXNTFqEYXyJNWh1GiZedQ==",
22+ "version": "0.25.9",
23+ "resolved": "https://registry.npmjs.org/@esbuild/aix-ppc64/-/aix-ppc64-0.25.9.tgz",
24+ "integrity": "sha512-OaGtL73Jck6pBKjNIe24BnFE6agGl+6KxDtTfHhy1HmhthfKouEcOhqpSL64K4/0WCtbKFLOdzD/44cJ4k9opA==",
2525 "cpu": [
2626 "ppc64"
2727 ],
@@ -32,13 +32,13 @@
3232 "aix"
3333 ],
3434 "engines": {
35- "node": ">=12"
35+ "node": ">=18"
3636 }
3737 },
3838 "node_modules/@esbuild/android-arm": {
39- "version": "0.21.5",
40- "resolved": "https://registry.npmjs.org/@esbuild/android-arm/-/android-arm-0.21.5.tgz",
41- "integrity": "sha512-vCPvzSjpPHEi1siZdlvAlsPxXl7WbOVUBBAowWug4rJHb68Ox8KualB+1ocNvT5fjv6wpkX6o/iEpbDrf68zcg==",
39+ "version": "0.25.9",
40+ "resolved": "https://registry.npmjs.org/@esbuild/android-arm/-/android-arm-0.25.9.tgz",
41+ "integrity": "sha512-5WNI1DaMtxQ7t7B6xa572XMXpHAaI/9Hnhk8lcxF4zVN4xstUgTlvuGDorBguKEnZO70qwEcLpfifMLoxiPqHQ==",
4242 "cpu": [
4343 "arm"
4444 ],
@@ -49,13 +49,13 @@
4949 "android"
5050 ],
5151 "engines": {
52- "node": ">=12"
52+ "node": ">=18"
5353 }
5454 },
5555 "node_modules/@esbuild/android-arm64": {
56- "version": "0.21.5",
57- "resolved": "https://registry.npmjs.org/@esbuild/android-arm64/-/android-arm64-0.21.5.tgz",
58- "integrity": "sha512-c0uX9VAUBQ7dTDCjq+wdyGLowMdtR/GoC2U5IYk/7D1H1JYC0qseD7+11iMP2mRLN9RcCMRcjC4YMclCzGwS/A==",
56+ "version": "0.25.9",
57+ "resolved": "https://registry.npmjs.org/@esbuild/android-arm64/-/android-arm64-0.25.9.tgz",
58+ "integrity": "sha512-IDrddSmpSv51ftWslJMvl3Q2ZT98fUSL2/rlUXuVqRXHCs5EUF1/f+jbjF5+NG9UffUDMCiTyh8iec7u8RlTLg==",
5959 "cpu": [
6060 "arm64"
6161 ],
@@ -66,13 +66,13 @@
6666 "android"
6767 ],
6868 "engines": {
69- "node": ">=12"
69+ "node": ">=18"
7070 }
7171 },
7272 "node_modules/@esbuild/android-x64": {
73- "version": "0.21.5",
74- "resolved": "https://registry.npmjs.org/@esbuild/android-x64/-/android-x64-0.21.5.tgz",
75- "integrity": "sha512-D7aPRUUNHRBwHxzxRvp856rjUHRFW1SdQATKXH2hqA0kAZb1hKmi02OpYRacl0TxIGz/ZmXWlbZgjwWYaCakTA==",
73+ "version": "0.25.9",
74+ "resolved": "https://registry.npmjs.org/@esbuild/android-x64/-/android-x64-0.25.9.tgz",
75+ "integrity": "sha512-I853iMZ1hWZdNllhVZKm34f4wErd4lMyeV7BLzEExGEIZYsOzqDWDf+y082izYUE8gtJnYHdeDpN/6tUdwvfiw==",
7676 "cpu": [
7777 "x64"
7878 ],
@@ -83,13 +83,13 @@
8383 "android"
8484 ],
8585 "engines": {
86- "node": ">=12"
86+ "node": ">=18"
8787 }
8888 },
8989 "node_modules/@esbuild/darwin-arm64": {
90- "version": "0.21.5",
91- "resolved": "https://registry.npmjs.org/@esbuild/darwin-arm64/-/darwin-arm64-0.21.5.tgz",
92- "integrity": "sha512-DwqXqZyuk5AiWWf3UfLiRDJ5EDd49zg6O9wclZ7kUMv2WRFr4HKjXp/5t8JZ11QbQfUS6/cRCKGwYhtNAY88kQ==",
90+ "version": "0.25.9",
91+ "resolved": "https://registry.npmjs.org/@esbuild/darwin-arm64/-/darwin-arm64-0.25.9.tgz",
92+ "integrity": "sha512-XIpIDMAjOELi/9PB30vEbVMs3GV1v2zkkPnuyRRURbhqjyzIINwj+nbQATh4H9GxUgH1kFsEyQMxwiLFKUS6Rg==",
9393 "cpu": [
9494 "arm64"
9595 ],
@@ -100,13 +100,13 @@
100100 "darwin"
101101 ],
102102 "engines": {
103- "node": ">=12"
103+ "node": ">=18"
104104 }
105105 },
106106 "node_modules/@esbuild/darwin-x64": {
107- "version": "0.21.5",
108- "resolved": "https://registry.npmjs.org/@esbuild/darwin-x64/-/darwin-x64-0.21.5.tgz",
109- "integrity": "sha512-se/JjF8NlmKVG4kNIuyWMV/22ZaerB+qaSi5MdrXtd6R08kvs2qCN4C09miupktDitvh8jRFflwGFBQcxZRjbw==",
107+ "version": "0.25.9",
108+ "resolved": "https://registry.npmjs.org/@esbuild/darwin-x64/-/darwin-x64-0.25.9.tgz",
109+ "integrity": "sha512-jhHfBzjYTA1IQu8VyrjCX4ApJDnH+ez+IYVEoJHeqJm9VhG9Dh2BYaJritkYK3vMaXrf7Ogr/0MQ8/MeIefsPQ==",
110110 "cpu": [
111111 "x64"
112112 ],
@@ -117,13 +117,13 @@
117117 "darwin"
118118 ],
119119 "engines": {
120- "node": ">=12"
120+ "node": ">=18"
121121 }
122122 },
123123 "node_modules/@esbuild/freebsd-arm64": {
124- "version": "0.21.5",
125- "resolved": "https://registry.npmjs.org/@esbuild/freebsd-arm64/-/freebsd-arm64-0.21.5.tgz",
126- "integrity": "sha512-5JcRxxRDUJLX8JXp/wcBCy3pENnCgBR9bN6JsY4OmhfUtIHe3ZW0mawA7+RDAcMLrMIZaf03NlQiX9DGyB8h4g==",
124+ "version": "0.25.9",
125+ "resolved": "https://registry.npmjs.org/@esbuild/freebsd-arm64/-/freebsd-arm64-0.25.9.tgz",
126+ "integrity": "sha512-z93DmbnY6fX9+KdD4Ue/H6sYs+bhFQJNCPZsi4XWJoYblUqT06MQUdBCpcSfuiN72AbqeBFu5LVQTjfXDE2A6Q==",
127127 "cpu": [
128128 "arm64"
129129 ],
@@ -134,13 +134,13 @@
134134 "freebsd"
135135 ],
136136 "engines": {
137- "node": ">=12"
137+ "node": ">=18"
138138 }
139139 },
140140 "node_modules/@esbuild/freebsd-x64": {
141- "version": "0.21.5",
142- "resolved": "https://registry.npmjs.org/@esbuild/freebsd-x64/-/freebsd-x64-0.21.5.tgz",
143- "integrity": "sha512-J95kNBj1zkbMXtHVH29bBriQygMXqoVQOQYA+ISs0/2l3T9/kj42ow2mpqerRBxDJnmkUDCaQT/dfNXWX/ZZCQ==",
141+ "version": "0.25.9",
142+ "resolved": "https://registry.npmjs.org/@esbuild/freebsd-x64/-/freebsd-x64-0.25.9.tgz",
143+ "integrity": "sha512-mrKX6H/vOyo5v71YfXWJxLVxgy1kyt1MQaD8wZJgJfG4gq4DpQGpgTB74e5yBeQdyMTbgxp0YtNj7NuHN0PoZg==",
144144 "cpu": [
145145 "x64"
146146 ],
@@ -151,13 +151,13 @@
151151 "freebsd"
152152 ],
153153 "engines": {
154- "node": ">=12"
154+ "node": ">=18"
155155 }
156156 },
157157 "node_modules/@esbuild/linux-arm": {
158- "version": "0.21.5",
159- "resolved": "https://registry.npmjs.org/@esbuild/linux-arm/-/linux-arm-0.21.5.tgz",
160- "integrity": "sha512-bPb5AHZtbeNGjCKVZ9UGqGwo8EUu4cLq68E95A53KlxAPRmUyYv2D6F0uUI65XisGOL1hBP5mTronbgo+0bFcA==",
158+ "version": "0.25.9",
159+ "resolved": "https://registry.npmjs.org/@esbuild/linux-arm/-/linux-arm-0.25.9.tgz",
160+ "integrity": "sha512-HBU2Xv78SMgaydBmdor38lg8YDnFKSARg1Q6AT0/y2ezUAKiZvc211RDFHlEZRFNRVhcMamiToo7bDx3VEOYQw==",
161161 "cpu": [
162162 "arm"
163163 ],
@@ -168,13 +168,13 @@
168168 "linux"
169169 ],
170170 "engines": {
171- "node": ">=12"
171+ "node": ">=18"
172172 }
173173 },
174174 "node_modules/@esbuild/linux-arm64": {
175- "version": "0.21.5",
176- "resolved": "https://registry.npmjs.org/@esbuild/linux-arm64/-/linux-arm64-0.21.5.tgz",
177- "integrity": "sha512-ibKvmyYzKsBeX8d8I7MH/TMfWDXBF3db4qM6sy+7re0YXya+K1cem3on9XgdT2EQGMu4hQyZhan7TeQ8XkGp4Q==",
175+ "version": "0.25.9",
176+ "resolved": "https://registry.npmjs.org/@esbuild/linux-arm64/-/linux-arm64-0.25.9.tgz",
177+ "integrity": "sha512-BlB7bIcLT3G26urh5Dmse7fiLmLXnRlopw4s8DalgZ8ef79Jj4aUcYbk90g8iCa2467HX8SAIidbL7gsqXHdRw==",
178178 "cpu": [
179179 "arm64"
180180 ],
@@ -185,13 +185,13 @@
185185 "linux"
186186 ],
187187 "engines": {
188- "node": ">=12"
188+ "node": ">=18"
189189 }
190190 },
191191 "node_modules/@esbuild/linux-ia32": {
192- "version": "0.21.5",
193- "resolved": "https://registry.npmjs.org/@esbuild/linux-ia32/-/linux-ia32-0.21.5.tgz",
194- "integrity": "sha512-YvjXDqLRqPDl2dvRODYmmhz4rPeVKYvppfGYKSNGdyZkA01046pLWyRKKI3ax8fbJoK5QbxblURkwK/MWY18Tg==",
192+ "version": "0.25.9",
193+ "resolved": "https://registry.npmjs.org/@esbuild/linux-ia32/-/linux-ia32-0.25.9.tgz",
194+ "integrity": "sha512-e7S3MOJPZGp2QW6AK6+Ly81rC7oOSerQ+P8L0ta4FhVi+/j/v2yZzx5CqqDaWjtPFfYz21Vi1S0auHrap3Ma3A==",
195195 "cpu": [
196196 "ia32"
197197 ],
@@ -202,13 +202,13 @@
202202 "linux"
203203 ],
204204 "engines": {
205- "node": ">=12"
205+ "node": ">=18"
206206 }
207207 },
208208 "node_modules/@esbuild/linux-loong64": {
209- "version": "0.21.5",
210- "resolved": "https://registry.npmjs.org/@esbuild/linux-loong64/-/linux-loong64-0.21.5.tgz",
211- "integrity": "sha512-uHf1BmMG8qEvzdrzAqg2SIG/02+4/DHB6a9Kbya0XDvwDEKCoC8ZRWI5JJvNdUjtciBGFQ5PuBlpEOXQj+JQSg==",
209+ "version": "0.25.9",
210+ "resolved": "https://registry.npmjs.org/@esbuild/linux-loong64/-/linux-loong64-0.25.9.tgz",
211+ "integrity": "sha512-Sbe10Bnn0oUAB2AalYztvGcK+o6YFFA/9829PhOCUS9vkJElXGdphz0A3DbMdP8gmKkqPmPcMJmJOrI3VYB1JQ==",
212212 "cpu": [
213213 "loong64"
214214 ],
@@ -219,13 +219,13 @@
219219 "linux"
220220 ],
221221 "engines": {
222- "node": ">=12"
222+ "node": ">=18"
223223 }
224224 },
225225 "node_modules/@esbuild/linux-mips64el": {
226- "version": "0.21.5",
227- "resolved": "https://registry.npmjs.org/@esbuild/linux-mips64el/-/linux-mips64el-0.21.5.tgz",
228- "integrity": "sha512-IajOmO+KJK23bj52dFSNCMsz1QP1DqM6cwLUv3W1QwyxkyIWecfafnI555fvSGqEKwjMXVLokcV5ygHW5b3Jbg==",
226+ "version": "0.25.9",
227+ "resolved": "https://registry.npmjs.org/@esbuild/linux-mips64el/-/linux-mips64el-0.25.9.tgz",
228+ "integrity": "sha512-YcM5br0mVyZw2jcQeLIkhWtKPeVfAerES5PvOzaDxVtIyZ2NUBZKNLjC5z3/fUlDgT6w89VsxP2qzNipOaaDyA==",
229229 "cpu": [
230230 "mips64el"
231231 ],
@@ -236,13 +236,13 @@
236236 "linux"
237237 ],
238238 "engines": {
239- "node": ">=12"
239+ "node": ">=18"
240240 }
241241 },
242242 "node_modules/@esbuild/linux-ppc64": {
243- "version": "0.21.5",
244- "resolved": "https://registry.npmjs.org/@esbuild/linux-ppc64/-/linux-ppc64-0.21.5.tgz",
245- "integrity": "sha512-1hHV/Z4OEfMwpLO8rp7CvlhBDnjsC3CttJXIhBi+5Aj5r+MBvy4egg7wCbe//hSsT+RvDAG7s81tAvpL2XAE4w==",
243+ "version": "0.25.9",
244+ "resolved": "https://registry.npmjs.org/@esbuild/linux-ppc64/-/linux-ppc64-0.25.9.tgz",
245+ "integrity": "sha512-++0HQvasdo20JytyDpFvQtNrEsAgNG2CY1CLMwGXfFTKGBGQT3bOeLSYE2l1fYdvML5KUuwn9Z8L1EWe2tzs1w==",
246246 "cpu": [
247247 "ppc64"
248248 ],
@@ -253,13 +253,13 @@
253253 "linux"
254254 ],
255255 "engines": {
256- "node": ">=12"
256+ "node": ">=18"
257257 }
258258 },
259259 "node_modules/@esbuild/linux-riscv64": {
260- "version": "0.21.5",
261- "resolved": "https://registry.npmjs.org/@esbuild/linux-riscv64/-/linux-riscv64-0.21.5.tgz",
262- "integrity": "sha512-2HdXDMd9GMgTGrPWnJzP2ALSokE/0O5HhTUvWIbD3YdjME8JwvSCnNGBnTThKGEB91OZhzrJ4qIIxk/SBmyDDA==",
260+ "version": "0.25.9",
261+ "resolved": "https://registry.npmjs.org/@esbuild/linux-riscv64/-/linux-riscv64-0.25.9.tgz",
262+ "integrity": "sha512-uNIBa279Y3fkjV+2cUjx36xkx7eSjb8IvnL01eXUKXez/CBHNRw5ekCGMPM0BcmqBxBcdgUWuUXmVWwm4CH9kg==",
263263 "cpu": [
264264 "riscv64"
265265 ],
@@ -270,13 +270,13 @@
270270 "linux"
271271 ],
272272 "engines": {
273- "node": ">=12"
273+ "node": ">=18"
274274 }
275275 },
276276 "node_modules/@esbuild/linux-s390x": {
277- "version": "0.21.5",
278- "resolved": "https://registry.npmjs.org/@esbuild/linux-s390x/-/linux-s390x-0.21.5.tgz",
279- "integrity": "sha512-zus5sxzqBJD3eXxwvjN1yQkRepANgxE9lgOW2qLnmr8ikMTphkjgXu1HR01K4FJg8h1kEEDAqDcZQtbrRnB41A==",
277+ "version": "0.25.9",
278+ "resolved": "https://registry.npmjs.org/@esbuild/linux-s390x/-/linux-s390x-0.25.9.tgz",
279+ "integrity": "sha512-Mfiphvp3MjC/lctb+7D287Xw1DGzqJPb/J2aHHcHxflUo+8tmN/6d4k6I2yFR7BVo5/g7x2Monq4+Yew0EHRIA==",
280280 "cpu": [
281281 "s390x"
282282 ],
@@ -287,13 +287,13 @@
287287 "linux"
288288 ],
289289 "engines": {
290- "node": ">=12"
290+ "node": ">=18"
291291 }
292292 },
293293 "node_modules/@esbuild/linux-x64": {
294- "version": "0.21.5",
295- "resolved": "https://registry.npmjs.org/@esbuild/linux-x64/-/linux-x64-0.21.5.tgz",
296- "integrity": "sha512-1rYdTpyv03iycF1+BhzrzQJCdOuAOtaqHTWJZCWvijKD2N5Xu0TtVC8/+1faWqcP9iBCWOmjmhoH94dH82BxPQ==",
294+ "version": "0.25.9",
295+ "resolved": "https://registry.npmjs.org/@esbuild/linux-x64/-/linux-x64-0.25.9.tgz",
296+ "integrity": "sha512-iSwByxzRe48YVkmpbgoxVzn76BXjlYFXC7NvLYq+b+kDjyyk30J0JY47DIn8z1MO3K0oSl9fZoRmZPQI4Hklzg==",
297297 "cpu": [
298298 "x64"
299299 ],
@@ -304,13 +304,30 @@
304304 "linux"
305305 ],
306306 "engines": {
307- "node": ">=12"
307+ "node": ">=18"
308+ }
309+ },
310+ "node_modules/@esbuild/netbsd-arm64": {
311+ "version": "0.25.9",
312+ "resolved": "https://registry.npmjs.org/@esbuild/netbsd-arm64/-/netbsd-arm64-0.25.9.tgz",
313+ "integrity": "sha512-9jNJl6FqaUG+COdQMjSCGW4QiMHH88xWbvZ+kRVblZsWrkXlABuGdFJ1E9L7HK+T0Yqd4akKNa/lO0+jDxQD4Q==",
314+ "cpu": [
315+ "arm64"
316+ ],
317+ "dev": true,
318+ "license": "MIT",
319+ "optional": true,
320+ "os": [
321+ "netbsd"
322+ ],
323+ "engines": {
324+ "node": ">=18"
308325 }
309326 },
310327 "node_modules/@esbuild/netbsd-x64": {
311- "version": "0.21.5",
312- "resolved": "https://registry.npmjs.org/@esbuild/netbsd-x64/-/netbsd-x64-0.21.5.tgz",
313- "integrity": "sha512-Woi2MXzXjMULccIwMnLciyZH4nCIMpWQAs049KEeMvOcNADVxo0UBIQPfSmxB3CWKedngg7sWZdLvLczpe0tLg==",
328+ "version": "0.25.9",
329+ "resolved": "https://registry.npmjs.org/@esbuild/netbsd-x64/-/netbsd-x64-0.25.9.tgz",
330+ "integrity": "sha512-RLLdkflmqRG8KanPGOU7Rpg829ZHu8nFy5Pqdi9U01VYtG9Y0zOG6Vr2z4/S+/3zIyOxiK6cCeYNWOFR9QP87g==",
314331 "cpu": [
315332 "x64"
316333 ],
@@ -321,13 +338,30 @@
321338 "netbsd"
322339 ],
323340 "engines": {
324- "node": ">=12"
341+ "node": ">=18"
342+ }
343+ },
344+ "node_modules/@esbuild/openbsd-arm64": {
345+ "version": "0.25.9",
346+ "resolved": "https://registry.npmjs.org/@esbuild/openbsd-arm64/-/openbsd-arm64-0.25.9.tgz",
347+ "integrity": "sha512-YaFBlPGeDasft5IIM+CQAhJAqS3St3nJzDEgsgFixcfZeyGPCd6eJBWzke5piZuZ7CtL656eOSYKk4Ls2C0FRQ==",
348+ "cpu": [
349+ "arm64"
350+ ],
351+ "dev": true,
352+ "license": "MIT",
353+ "optional": true,
354+ "os": [
355+ "openbsd"
356+ ],
357+ "engines": {
358+ "node": ">=18"
325359 }
326360 },
327361 "node_modules/@esbuild/openbsd-x64": {
328- "version": "0.21.5",
329- "resolved": "https://registry.npmjs.org/@esbuild/openbsd-x64/-/openbsd-x64-0.21.5.tgz",
330- "integrity": "sha512-HLNNw99xsvx12lFBUwoT8EVCsSvRNDVxNpjZ7bPn947b8gJPzeHWyNVhFsaerc0n3TsbOINvRP2byTZ5LKezow==",
362+ "version": "0.25.9",
363+ "resolved": "https://registry.npmjs.org/@esbuild/openbsd-x64/-/openbsd-x64-0.25.9.tgz",
364+ "integrity": "sha512-1MkgTCuvMGWuqVtAvkpkXFmtL8XhWy+j4jaSO2wxfJtilVCi0ZE37b8uOdMItIHz4I6z1bWWtEX4CJwcKYLcuA==",
331365 "cpu": [
332366 "x64"
333367 ],
@@ -338,13 +372,30 @@
338372 "openbsd"
339373 ],
340374 "engines": {
341- "node": ">=12"
375+ "node": ">=18"
376+ }
377+ },
378+ "node_modules/@esbuild/openharmony-arm64": {
379+ "version": "0.25.9",
380+ "resolved": "https://registry.npmjs.org/@esbuild/openharmony-arm64/-/openharmony-arm64-0.25.9.tgz",
381+ "integrity": "sha512-4Xd0xNiMVXKh6Fa7HEJQbrpP3m3DDn43jKxMjxLLRjWnRsfxjORYJlXPO4JNcXtOyfajXorRKY9NkOpTHptErg==",
382+ "cpu": [
383+ "arm64"
384+ ],
385+ "dev": true,
386+ "license": "MIT",
387+ "optional": true,
388+ "os": [
389+ "openharmony"
390+ ],
391+ "engines": {
392+ "node": ">=18"
342393 }
343394 },
344395 "node_modules/@esbuild/sunos-x64": {
345- "version": "0.21.5",
346- "resolved": "https://registry.npmjs.org/@esbuild/sunos-x64/-/sunos-x64-0.21.5.tgz",
347- "integrity": "sha512-6+gjmFpfy0BHU5Tpptkuh8+uw3mnrvgs+dSPQXQOv3ekbordwnzTVEb4qnIvQcYXq6gzkyTnoZ9dZG+D4garKg==",
396+ "version": "0.25.9",
397+ "resolved": "https://registry.npmjs.org/@esbuild/sunos-x64/-/sunos-x64-0.25.9.tgz",
398+ "integrity": "sha512-WjH4s6hzo00nNezhp3wFIAfmGZ8U7KtrJNlFMRKxiI9mxEK1scOMAaa9i4crUtu+tBr+0IN6JCuAcSBJZfnphw==",
348399 "cpu": [
349400 "x64"
350401 ],
@@ -355,13 +406,13 @@
355406 "sunos"
356407 ],
357408 "engines": {
358- "node": ">=12"
409+ "node": ">=18"
359410 }
360411 },
361412 "node_modules/@esbuild/win32-arm64": {
362- "version": "0.21.5",
363- "resolved": "https://registry.npmjs.org/@esbuild/win32-arm64/-/win32-arm64-0.21.5.tgz",
364- "integrity": "sha512-Z0gOTd75VvXqyq7nsl93zwahcTROgqvuAcYDUr+vOv8uHhNSKROyU961kgtCD1e95IqPKSQKH7tBTslnS3tA8A==",
413+ "version": "0.25.9",
414+ "resolved": "https://registry.npmjs.org/@esbuild/win32-arm64/-/win32-arm64-0.25.9.tgz",
415+ "integrity": "sha512-mGFrVJHmZiRqmP8xFOc6b84/7xa5y5YvR1x8djzXpJBSv/UsNK6aqec+6JDjConTgvvQefdGhFDAs2DLAds6gQ==",
365416 "cpu": [
366417 "arm64"
367418 ],
@@ -372,13 +423,13 @@
372423 "win32"
373424 ],
374425 "engines": {
375- "node": ">=12"
426+ "node": ">=18"
376427 }
377428 },
378429 "node_modules/@esbuild/win32-ia32": {
379- "version": "0.21.5",
380- "resolved": "https://registry.npmjs.org/@esbuild/win32-ia32/-/win32-ia32-0.21.5.tgz",
381- "integrity": "sha512-SWXFF1CL2RVNMaVs+BBClwtfZSvDgtL//G/smwAc5oVK/UPu2Gu9tIaRgFmYFFKrmg3SyAjSrElf0TiJ1v8fYA==",
430+ "version": "0.25.9",
431+ "resolved": "https://registry.npmjs.org/@esbuild/win32-ia32/-/win32-ia32-0.25.9.tgz",
432+ "integrity": "sha512-b33gLVU2k11nVx1OhX3C8QQP6UHQK4ZtN56oFWvVXvz2VkDoe6fbG8TOgHFxEvqeqohmRnIHe5A1+HADk4OQww==",
382433 "cpu": [
383434 "ia32"
384435 ],
@@ -389,13 +440,13 @@
389440 "win32"
390441 ],
391442 "engines": {
392- "node": ">=12"
443+ "node": ">=18"
393444 }
394445 },
395446 "node_modules/@esbuild/win32-x64": {
396- "version": "0.21.5",
397- "resolved": "https://registry.npmjs.org/@esbuild/win32-x64/-/win32-x64-0.21.5.tgz",
398- "integrity": "sha512-tQd/1efJuzPC6rCFwEvLtci/xNFcTZknmXs98FYDfGE4wP9ClFV98nyKrzJKVPMhdDnjzLhdUyMX4PsQAPjwIw==",
447+ "version": "0.25.9",
448+ "resolved": "https://registry.npmjs.org/@esbuild/win32-x64/-/win32-x64-0.25.9.tgz",
449+ "integrity": "sha512-PPOl1mi6lpLNQxnGoyAfschAodRFYXJ+9fs6WHXz7CSWKbOqiMZsubC+BQsVKuul+3vKLuwTHsS2c2y9EoKwxQ==",
399450 "cpu": [
400451 "x64"
401452 ],
@@ -406,20 +457,7 @@
406457 "win32"
407458 ],
408459 "engines": {
409- "node": ">=12"
410- }
411- },
412- "node_modules/@jest/schemas": {
413- "version": "29.6.3",
414- "resolved": "https://registry.npmjs.org/@jest/schemas/-/schemas-29.6.3.tgz",
415- "integrity": "sha512-mo5j5X+jIZmJQveBKeS/clAueipV7KgiX1vMgCxam1RNYiqE1w62n0/tJJnHtjW8ZHcQco5gY85jA3mi0L+nSA==",
416- "dev": true,
417- "license": "MIT",
418- "dependencies": {
419- "@sinclair/typebox": "^0.27.8"
420- },
421- "engines": {
422- "node": "^14.15.0 || ^16.10.0 || >=18.0.0"
460+ "node": ">=18"
423461 }
424462 },
425463 "node_modules/@jridgewell/sourcemap-codec": {
@@ -723,10 +761,20 @@
723761 "win32"
724762 ]
725763 },
726- "node_modules/@sinclair/typebox": {
727- "version": "0.27.8",
728- "resolved": "https://registry.npmjs.org/@sinclair/typebox/-/typebox-0.27.8.tgz",
729- "integrity": "sha512-+Fj43pSMwJs4KRrH/938Uf+uAELIgVBmQzg/q1YG10djyfA3TnrU8N8XzqCh/okZdszqBQTZf96idMfE5lnwTA==",
764+ "node_modules/@types/chai": {
765+ "version": "5.2.2",
766+ "resolved": "https://registry.npmjs.org/@types/chai/-/chai-5.2.2.tgz",
767+ "integrity": "sha512-8kB30R7Hwqf40JPiKhVzodJs2Qc1ZJ5zuT3uzw5Hq/dhNCl3G3l83jfpdI1e20BP348+fV7VIL/+FxaXkqBmWg==",
768+ "dev": true,
769+ "license": "MIT",
770+ "dependencies": {
771+ "@types/deep-eql": "*"
772+ }
773+ },
774+ "node_modules/@types/deep-eql": {
775+ "version": "4.0.2",
776+ "resolved": "https://registry.npmjs.org/@types/deep-eql/-/deep-eql-4.0.2.tgz",
777+ "integrity": "sha512-c9h9dVVMigMPc4bwTvC5dxqtqJZwQPePsWjPlpSOnojbor6pGqdk541lfA7AqFQr5pB1BRdq0juY9db81BwyFw==",
730778 "dev": true,
731779 "license": "MIT"
732780 },
@@ -755,126 +803,128 @@
755803 "license": "MIT"
756804 },
757805 "node_modules/@vitest/expect": {
758- "version": "1.6.1",
759- "resolved": "https://registry.npmjs.org/@vitest/expect/-/expect-1.6.1.tgz",
760- "integrity": "sha512-jXL+9+ZNIJKruofqXuuTClf44eSpcHlgj3CiuNihUF3Ioujtmc0zIa3UJOW5RjDK1YLBJZnWBlPuqhYycLioog==",
806+ "version": "3.2.4",
807+ "resolved": "https://registry.npmjs.org/@vitest/expect/-/expect-3.2.4.tgz",
808+ "integrity": "sha512-Io0yyORnB6sikFlt8QW5K7slY4OjqNX9jmJQ02QDda8lyM6B5oNgVWoSoKPac8/kgnCUzuHQKrSLtu/uOqqrig==",
761809 "dev": true,
762810 "license": "MIT",
763811 "dependencies": {
764- "@vitest/spy": "1.6.1",
765- "@vitest/utils": "1.6.1",
766- "chai": "^4.3.10"
812+ "@types/chai": "^5.2.2",
813+ "@vitest/spy": "3.2.4",
814+ "@vitest/utils": "3.2.4",
815+ "chai": "^5.2.0",
816+ "tinyrainbow": "^2.0.0"
767817 },
768818 "funding": {
769819 "url": "https://opencollective.com/vitest"
770820 }
771821 },
772- "node_modules/@vitest/runner": {
773- "version": "1.6.1",
774- "resolved": "https://registry.npmjs.org/@vitest/runner/-/runner-1.6.1.tgz",
775- "integrity": "sha512-3nSnYXkVkf3mXFfE7vVyPmi3Sazhb/2cfZGGs0JRzFsPFvAMBEcrweV1V1GsrstdXeKCTXlJbvnQwGWgEIHmOA==",
822+ "node_modules/@vitest/mocker": {
823+ "version": "3.2.4",
824+ "resolved": "https://registry.npmjs.org/@vitest/mocker/-/mocker-3.2.4.tgz",
825+ "integrity": "sha512-46ryTE9RZO/rfDd7pEqFl7etuyzekzEhUbTW3BvmeO/BcCMEgq59BKhek3dXDWgAj4oMK6OZi+vRr1wPW6qjEQ==",
776826 "dev": true,
777827 "license": "MIT",
778828 "dependencies": {
779- "@vitest/utils": "1.6.1",
780- "p-limit": "^5.0.0",
781- "pathe": "^1.1.1"
829+ "@vitest/spy": "3.2.4",
830+ "estree-walker": "^3.0.3",
831+ "magic-string": "^0.30.17"
782832 },
783833 "funding": {
784834 "url": "https://opencollective.com/vitest"
835+ },
836+ "peerDependencies": {
837+ "msw": "^2.4.9",
838+ "vite": "^5.0.0 || ^6.0.0 || ^7.0.0-0"
839+ },
840+ "peerDependenciesMeta": {
841+ "msw": {
842+ "optional": true
843+ },
844+ "vite": {
845+ "optional": true
846+ }
785847 }
786848 },
787- "node_modules/@vitest/snapshot": {
788- "version": "1.6.1",
789- "resolved": "https://registry.npmjs.org/@vitest/snapshot/-/snapshot-1.6.1.tgz",
790- "integrity": "sha512-WvidQuWAzU2p95u8GAKlRMqMyN1yOJkGHnx3M1PL9Raf7AQ1kwLKg04ADlCa3+OXUZE7BceOhVZiuWAbzCKcUQ==",
849+ "node_modules/@vitest/pretty-format": {
850+ "version": "3.2.4",
851+ "resolved": "https://registry.npmjs.org/@vitest/pretty-format/-/pretty-format-3.2.4.tgz",
852+ "integrity": "sha512-IVNZik8IVRJRTr9fxlitMKeJeXFFFN0JaB9PHPGQ8NKQbGpfjlTx9zO4RefN8gp7eqjNy8nyK3NZmBzOPeIxtA==",
791853 "dev": true,
792854 "license": "MIT",
793855 "dependencies": {
794- "magic-string": "^0.30.5",
795- "pathe": "^1.1.1",
796- "pretty-format": "^29.7.0"
856+ "tinyrainbow": "^2.0.0"
797857 },
798858 "funding": {
799859 "url": "https://opencollective.com/vitest"
800860 }
801861 },
802- "node_modules/@vitest/spy": {
803- "version": "1.6.1",
804- "resolved": "https://registry.npmjs.org/@vitest/spy/-/spy-1.6.1.tgz",
805- "integrity": "sha512-MGcMmpGkZebsMZhbQKkAf9CX5zGvjkBTqf8Zx3ApYWXr3wG+QvEu2eXWfnIIWYSJExIp4V9FCKDEeygzkYrXMw==",
862+ "node_modules/@vitest/runner": {
863+ "version": "3.2.4",
864+ "resolved": "https://registry.npmjs.org/@vitest/runner/-/runner-3.2.4.tgz",
865+ "integrity": "sha512-oukfKT9Mk41LreEW09vt45f8wx7DordoWUZMYdY/cyAk7w5TWkTRCNZYF7sX7n2wB7jyGAl74OxgwhPgKaqDMQ==",
806866 "dev": true,
807867 "license": "MIT",
808868 "dependencies": {
809- "tinyspy": "^2.2.0"
869+ "@vitest/utils": "3.2.4",
870+ "pathe": "^2.0.3",
871+ "strip-literal": "^3.0.0"
810872 },
811873 "funding": {
812874 "url": "https://opencollective.com/vitest"
813875 }
814876 },
815- "node_modules/@vitest/utils": {
816- "version": "1.6.1",
817- "resolved": "https://registry.npmjs.org/@vitest/utils/-/utils-1.6.1.tgz",
818- "integrity": "sha512-jOrrUvXM4Av9ZWiG1EajNto0u96kWAhJ1LmPmJhXXQx/32MecEKd10pOLYgS2BQx1TgkGhloPU1ArDW2vvaY6g==",
877+ "node_modules/@vitest/snapshot": {
878+ "version": "3.2.4",
879+ "resolved": "https://registry.npmjs.org/@vitest/snapshot/-/snapshot-3.2.4.tgz",
880+ "integrity": "sha512-dEYtS7qQP2CjU27QBC5oUOxLE/v5eLkGqPE0ZKEIDGMs4vKWe7IjgLOeauHsR0D5YuuycGRO5oSRXnwnmA78fQ==",
819881 "dev": true,
820882 "license": "MIT",
821883 "dependencies": {
822- "diff-sequences": "^29.6.3",
823- "estree-walker": "^3.0.3",
824- "loupe": "^2.3.7",
825- "pretty-format": "^29.7.0"
884+ "@vitest/pretty-format": "3.2.4",
885+ "magic-string": "^0.30.17",
886+ "pathe": "^2.0.3"
826887 },
827888 "funding": {
828889 "url": "https://opencollective.com/vitest"
829890 }
830891 },
831- "node_modules/acorn": {
832- "version": "8.15.0",
833- "resolved": "https://registry.npmjs.org/acorn/-/acorn-8.15.0.tgz",
834- "integrity": "sha512-NZyJarBfL7nWwIq+FDL6Zp/yHEhePMNnnJ0y3qfieCrmNvYct8uvtiV41UvlSe6apAfk0fY1FbWx+NwfmpvtTg==",
835- "dev": true,
836- "license": "MIT",
837- "bin": {
838- "acorn": "bin/acorn"
839- },
840- "engines": {
841- "node": ">=0.4.0"
842- }
843- },
844- "node_modules/acorn-walk": {
845- "version": "8.3.4",
846- "resolved": "https://registry.npmjs.org/acorn-walk/-/acorn-walk-8.3.4.tgz",
847- "integrity": "sha512-ueEepnujpqee2o5aIYnvHU6C0A42MNdsIDeqy5BydrkuC5R1ZuUFnm27EeFJGoEHJQgn3uleRvmTXaJgfXbt4g==",
892+ "node_modules/@vitest/spy": {
893+ "version": "3.2.4",
894+ "resolved": "https://registry.npmjs.org/@vitest/spy/-/spy-3.2.4.tgz",
895+ "integrity": "sha512-vAfasCOe6AIK70iP5UD11Ac4siNUNJ9i/9PZ3NKx07sG6sUxeag1LWdNrMWeKKYBLlzuK+Gn65Yd5nyL6ds+nw==",
848896 "dev": true,
849897 "license": "MIT",
850898 "dependencies": {
851- "acorn": "^8.11.0"
899+ "tinyspy": "^4.0.3"
852900 },
853- "engines": {
854- "node": ">=0.4.0"
901+ "funding": {
902+ "url": "https://opencollective.com/vitest"
855903 }
856904 },
857- "node_modules/ansi-styles": {
858- "version": "5.2.0",
859- "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-5.2.0.tgz",
860- "integrity": "sha512-Cxwpt2SfTzTtXcfOlzGEee8O+c+MmUgGrNiBcXnuWxuFJHe6a5Hz7qwhwe5OgaSYI0IJvkLqWX1ASG+cJOkEiA==",
905+ "node_modules/@vitest/utils": {
906+ "version": "3.2.4",
907+ "resolved": "https://registry.npmjs.org/@vitest/utils/-/utils-3.2.4.tgz",
908+ "integrity": "sha512-fB2V0JFrQSMsCo9HiSq3Ezpdv4iYaXRG1Sx8edX3MwxfyNn83mKiGzOcH+Fkxt4MHxr3y42fQi1oeAInqgX2QA==",
861909 "dev": true,
862910 "license": "MIT",
863- "engines": {
864- "node": ">=10"
911+ "dependencies": {
912+ "@vitest/pretty-format": "3.2.4",
913+ "loupe": "^3.1.4",
914+ "tinyrainbow": "^2.0.0"
865915 },
866916 "funding": {
867- "url": "https://github.com/chalk/ansi-styles?sponsor=1"
917+ "url": "https://opencollective.com/vitest"
868918 }
869919 },
870920 "node_modules/assertion-error": {
871- "version": "1.1.0",
872- "resolved": "https://registry.npmjs.org/assertion-error/-/assertion-error-1.1.0.tgz",
873- "integrity": "sha512-jgsaNduz+ndvGyFt3uSuWqvy4lCnIJiovtouQN5JZHOKCS2QuhEdbcQHFhVksz2N2U9hXJo8odG7ETyWlEeuDw==",
921+ "version": "2.0.1",
922+ "resolved": "https://registry.npmjs.org/assertion-error/-/assertion-error-2.0.1.tgz",
923+ "integrity": "sha512-Izi8RQcffqCeNVgFigKli1ssklIbpHnCYc6AknXGYoB6grJqyeby7jv12JUQgmTAnIDnbck1uxksT4dzN3PWBA==",
874924 "dev": true,
875925 "license": "MIT",
876926 "engines": {
877- "node": "*"
927+ "node": ">=12"
878928 }
879929 },
880930 "node_modules/cac": {
@@ -888,57 +938,30 @@
888938 }
889939 },
890940 "node_modules/chai": {
891- "version": "4.5.0",
892- "resolved": "https://registry.npmjs.org/chai/-/chai-4.5.0.tgz",
893- "integrity": "sha512-RITGBfijLkBddZvnn8jdqoTypxvqbOLYQkGGxXzeFjVHvudaPw0HNFD9x928/eUwYWd2dPCugVqspGALTZZQKw==",
941+ "version": "5.3.3",
942+ "resolved": "https://registry.npmjs.org/chai/-/chai-5.3.3.tgz",
943+ "integrity": "sha512-4zNhdJD/iOjSH0A05ea+Ke6MU5mmpQcbQsSOkgdaUMJ9zTlDTD/GYlwohmIE2u0gaxHYiVHEn1Fw9mZ/ktJWgw==",
894944 "dev": true,
895945 "license": "MIT",
896946 "dependencies": {
897- "assertion-error": "^1.1.0",
898- "check-error": "^1.0.3",
899- "deep-eql": "^4.1.3",
900- "get-func-name": "^2.0.2",
901- "loupe": "^2.3.6",
902- "pathval": "^1.1.1",
903- "type-detect": "^4.1.0"
947+ "assertion-error": "^2.0.1",
948+ "check-error": "^2.1.1",
949+ "deep-eql": "^5.0.1",
950+ "loupe": "^3.1.0",
951+ "pathval": "^2.0.0"
904952 },
905953 "engines": {
906- "node": ">=4"
954+ "node": ">=18"
907955 }
908956 },
909957 "node_modules/check-error": {
910- "version": "1.0.3",
911- "resolved": "https://registry.npmjs.org/check-error/-/check-error-1.0.3.tgz",
912- "integrity": "sha512-iKEoDYaRmd1mxM90a2OEfWhjsjPpYPuQ+lMYsoxB126+t8fw7ySEO48nmDg5COTjxDI65/Y2OWpeEHk3ZOe8zg==",
913- "dev": true,
914- "license": "MIT",
915- "dependencies": {
916- "get-func-name": "^2.0.2"
917- },
918- "engines": {
919- "node": "*"
920- }
921- },
922- "node_modules/confbox": {
923- "version": "0.1.8",
924- "resolved": "https://registry.npmjs.org/confbox/-/confbox-0.1.8.tgz",
925- "integrity": "sha512-RMtmw0iFkeR4YV+fUOSucriAQNb9g8zFR52MWCtl+cCZOFRNL6zeB395vPzFhEjjn4fMxXudmELnl/KF/WrK6w==",
926- "dev": true,
927- "license": "MIT"
928- },
929- "node_modules/cross-spawn": {
930- "version": "7.0.6",
931- "resolved": "https://registry.npmjs.org/cross-spawn/-/cross-spawn-7.0.6.tgz",
932- "integrity": "sha512-uV2QOWP2nWzsy2aMp8aRibhi9dlzF5Hgh5SHaB9OiTGEyDTiJJyx0uy51QXdyWbtAHNua4XJzUKca3OzKUd3vA==",
958+ "version": "2.1.1",
959+ "resolved": "https://registry.npmjs.org/check-error/-/check-error-2.1.1.tgz",
960+ "integrity": "sha512-OAlb+T7V4Op9OwdkjmguYRqncdlx5JiofwOAUkmTF+jNdHwzTaTs4sRAGpzLF3oOz5xAyDGrPgeIDFQmDOTiJw==",
933961 "dev": true,
934962 "license": "MIT",
935- "dependencies": {
936- "path-key": "^3.1.0",
937- "shebang-command": "^2.0.0",
938- "which": "^2.0.1"
939- },
940963 "engines": {
941- "node": ">= 8"
964+ "node": ">= 16"
942965 }
943966 },
944967 "node_modules/debug": {
@@ -960,32 +983,26 @@
960983 }
961984 },
962985 "node_modules/deep-eql": {
963- "version": "4.1.4",
964- "resolved": "https://registry.npmjs.org/deep-eql/-/deep-eql-4.1.4.tgz",
965- "integrity": "sha512-SUwdGfqdKOwxCPeVYjwSyRpJ7Z+fhpwIAtmCUdZIWZ/YP5R9WAsyuSgpLVDi9bjWoN2LXHNss/dk3urXtdQxGg==",
986+ "version": "5.0.2",
987+ "resolved": "https://registry.npmjs.org/deep-eql/-/deep-eql-5.0.2.tgz",
988+ "integrity": "sha512-h5k/5U50IJJFpzfL6nO9jaaumfjO/f2NjK/oYB2Djzm4p9L+3T9qWpZqZ2hAbLPuuYq9wrU08WQyBTL5GbPk5Q==",
966989 "dev": true,
967990 "license": "MIT",
968- "dependencies": {
969- "type-detect": "^4.0.0"
970- },
971991 "engines": {
972992 "node": ">=6"
973993 }
974994 },
975- "node_modules/diff-sequences": {
976- "version": "29.6.3",
977- "resolved": "https://registry.npmjs.org/diff-sequences/-/diff-sequences-29.6.3.tgz",
978- "integrity": "sha512-EjePK1srD3P08o2j4f0ExnylqRs5B9tJjcp9t1krH2qRi8CCdsYfwe9JgSLurFBWwq4uOlipzfk5fHNvwFKr8Q==",
995+ "node_modules/es-module-lexer": {
996+ "version": "1.7.0",
997+ "resolved": "https://registry.npmjs.org/es-module-lexer/-/es-module-lexer-1.7.0.tgz",
998+ "integrity": "sha512-jEQoCwk8hyb2AZziIOLhDqpm5+2ww5uIE6lkO/6jcOCusfk6LhMHpXXfBLXTZ7Ydyt0j4VoUQv6uGNYbdW+kBA==",
979999 "dev": true,
980- "license": "MIT",
981- "engines": {
982- "node": "^14.15.0 || ^16.10.0 || >=18.0.0"
983- }
1000+ "license": "MIT"
9841001 },
9851002 "node_modules/esbuild": {
986- "version": "0.21.5",
987- "resolved": "https://registry.npmjs.org/esbuild/-/esbuild-0.21.5.tgz",
988- "integrity": "sha512-mg3OPMV4hXywwpoDxu3Qda5xCKQi+vCTZq8S9J/EpkhB2HzKXq4SNFZE3+NK93JYxc8VMSep+lOUSC/RVKaBqw==",
1003+ "version": "0.25.9",
1004+ "resolved": "https://registry.npmjs.org/esbuild/-/esbuild-0.25.9.tgz",
1005+ "integrity": "sha512-CRbODhYyQx3qp7ZEwzxOk4JBqmD/seJrzPa/cGjY1VtIn5E09Oi9/dB4JwctnfZ8Q8iT7rioVv5k/FNT/uf54g==",
9891006 "dev": true,
9901007 "hasInstallScript": true,
9911008 "license": "MIT",
@@ -993,32 +1010,35 @@
9931010 "esbuild": "bin/esbuild"
9941011 },
9951012 "engines": {
996- "node": ">=12"
1013+ "node": ">=18"
9971014 },
9981015 "optionalDependencies": {
999- "@esbuild/aix-ppc64": "0.21.5",
1000- "@esbuild/android-arm": "0.21.5",
1001- "@esbuild/android-arm64": "0.21.5",
1002- "@esbuild/android-x64": "0.21.5",
1003- "@esbuild/darwin-arm64": "0.21.5",
1004- "@esbuild/darwin-x64": "0.21.5",
1005- "@esbuild/freebsd-arm64": "0.21.5",
1006- "@esbuild/freebsd-x64": "0.21.5",
1007- "@esbuild/linux-arm": "0.21.5",
1008- "@esbuild/linux-arm64": "0.21.5",
1009- "@esbuild/linux-ia32": "0.21.5",
1010- "@esbuild/linux-loong64": "0.21.5",
1011- "@esbuild/linux-mips64el": "0.21.5",
1012- "@esbuild/linux-ppc64": "0.21.5",
1013- "@esbuild/linux-riscv64": "0.21.5",
1014- "@esbuild/linux-s390x": "0.21.5",
1015- "@esbuild/linux-x64": "0.21.5",
1016- "@esbuild/netbsd-x64": "0.21.5",
1017- "@esbuild/openbsd-x64": "0.21.5",
1018- "@esbuild/sunos-x64": "0.21.5",
1019- "@esbuild/win32-arm64": "0.21.5",
1020- "@esbuild/win32-ia32": "0.21.5",
1021- "@esbuild/win32-x64": "0.21.5"
1016+ "@esbuild/aix-ppc64": "0.25.9",
1017+ "@esbuild/android-arm": "0.25.9",
1018+ "@esbuild/android-arm64": "0.25.9",
1019+ "@esbuild/android-x64": "0.25.9",
1020+ "@esbuild/darwin-arm64": "0.25.9",
1021+ "@esbuild/darwin-x64": "0.25.9",
1022+ "@esbuild/freebsd-arm64": "0.25.9",
1023+ "@esbuild/freebsd-x64": "0.25.9",
1024+ "@esbuild/linux-arm": "0.25.9",
1025+ "@esbuild/linux-arm64": "0.25.9",
1026+ "@esbuild/linux-ia32": "0.25.9",
1027+ "@esbuild/linux-loong64": "0.25.9",
1028+ "@esbuild/linux-mips64el": "0.25.9",
1029+ "@esbuild/linux-ppc64": "0.25.9",
1030+ "@esbuild/linux-riscv64": "0.25.9",
1031+ "@esbuild/linux-s390x": "0.25.9",
1032+ "@esbuild/linux-x64": "0.25.9",
1033+ "@esbuild/netbsd-arm64": "0.25.9",
1034+ "@esbuild/netbsd-x64": "0.25.9",
1035+ "@esbuild/openbsd-arm64": "0.25.9",
1036+ "@esbuild/openbsd-x64": "0.25.9",
1037+ "@esbuild/openharmony-arm64": "0.25.9",
1038+ "@esbuild/sunos-x64": "0.25.9",
1039+ "@esbuild/win32-arm64": "0.25.9",
1040+ "@esbuild/win32-ia32": "0.25.9",
1041+ "@esbuild/win32-x64": "0.25.9"
10221042 }
10231043 },
10241044 "node_modules/estree-walker": {
@@ -1031,28 +1051,32 @@
10311051 "@types/estree": "^1.0.0"
10321052 }
10331053 },
1034- "node_modules/execa": {
1035- "version": "8.0.1",
1036- "resolved": "https://registry.npmjs.org/execa/-/execa-8.0.1.tgz",
1037- "integrity": "sha512-VyhnebXciFV2DESc+p6B+y0LjSm0krU4OgJN44qFAhBY0TJ+1V61tYD2+wHusZ6F9n5K+vl8k0sTy7PEfV4qpg==",
1054+ "node_modules/expect-type": {
1055+ "version": "1.2.2",
1056+ "resolved": "https://registry.npmjs.org/expect-type/-/expect-type-1.2.2.tgz",
1057+ "integrity": "sha512-JhFGDVJ7tmDJItKhYgJCGLOWjuK9vPxiXoUFLwLDc99NlmklilbiQJwoctZtt13+xMw91MCk/REan6MWHqDjyA==",
1058+ "dev": true,
1059+ "license": "Apache-2.0",
1060+ "engines": {
1061+ "node": ">=12.0.0"
1062+ }
1063+ },
1064+ "node_modules/fdir": {
1065+ "version": "6.5.0",
1066+ "resolved": "https://registry.npmjs.org/fdir/-/fdir-6.5.0.tgz",
1067+ "integrity": "sha512-tIbYtZbucOs0BRGqPJkshJUYdL+SDH7dVM8gjy+ERp3WAUjLEFJE+02kanyHtwjWOnwrKYBiwAmM0p4kLJAnXg==",
10381068 "dev": true,
10391069 "license": "MIT",
1040- "dependencies": {
1041- "cross-spawn": "^7.0.3",
1042- "get-stream": "^8.0.1",
1043- "human-signals": "^5.0.0",
1044- "is-stream": "^3.0.0",
1045- "merge-stream": "^2.0.0",
1046- "npm-run-path": "^5.1.0",
1047- "onetime": "^6.0.0",
1048- "signal-exit": "^4.1.0",
1049- "strip-final-newline": "^3.0.0"
1050- },
1051- "engines": {
1052- "node": ">=16.17"
1070+ "engines": {
1071+ "node": ">=12.0.0"
10531072 },
1054- "funding": {
1055- "url": "https://github.com/sindresorhus/execa?sponsor=1"
1073+ "peerDependencies": {
1074+ "picomatch": "^3 || ^4"
1075+ },
1076+ "peerDependenciesMeta": {
1077+ "picomatch": {
1078+ "optional": true
1079+ }
10561080 }
10571081 },
10581082 "node_modules/fsevents": {
@@ -1070,59 +1094,6 @@
10701094 "node": "^8.16.0 || ^10.6.0 || >=11.0.0"
10711095 }
10721096 },
1073- "node_modules/get-func-name": {
1074- "version": "2.0.2",
1075- "resolved": "https://registry.npmjs.org/get-func-name/-/get-func-name-2.0.2.tgz",
1076- "integrity": "sha512-8vXOvuE167CtIc3OyItco7N/dpRtBbYOsPsXCz7X/PMnlGjYjSGuZJgM1Y7mmew7BKf9BqvLX2tnOVy1BBUsxQ==",
1077- "dev": true,
1078- "license": "MIT",
1079- "engines": {
1080- "node": "*"
1081- }
1082- },
1083- "node_modules/get-stream": {
1084- "version": "8.0.1",
1085- "resolved": "https://registry.npmjs.org/get-stream/-/get-stream-8.0.1.tgz",
1086- "integrity": "sha512-VaUJspBffn/LMCJVoMvSAdmscJyS1auj5Zulnn5UoYcY531UWmdwhRWkcGKnGU93m5HSXP9LP2usOryrBtQowA==",
1087- "dev": true,
1088- "license": "MIT",
1089- "engines": {
1090- "node": ">=16"
1091- },
1092- "funding": {
1093- "url": "https://github.com/sponsors/sindresorhus"
1094- }
1095- },
1096- "node_modules/human-signals": {
1097- "version": "5.0.0",
1098- "resolved": "https://registry.npmjs.org/human-signals/-/human-signals-5.0.0.tgz",
1099- "integrity": "sha512-AXcZb6vzzrFAUE61HnN4mpLqd/cSIwNQjtNWR0euPm6y0iqx3G4gOXaIDdtdDwZmhwe82LA6+zinmW4UBWVePQ==",
1100- "dev": true,
1101- "license": "Apache-2.0",
1102- "engines": {
1103- "node": ">=16.17.0"
1104- }
1105- },
1106- "node_modules/is-stream": {
1107- "version": "3.0.0",
1108- "resolved": "https://registry.npmjs.org/is-stream/-/is-stream-3.0.0.tgz",
1109- "integrity": "sha512-LnQR4bZ9IADDRSkvpqMGvt/tEJWclzklNgSw48V5EAaAeDd6qGvN8ei6k5p0tvxSR171VmGyHuTiAOfxAbr8kA==",
1110- "dev": true,
1111- "license": "MIT",
1112- "engines": {
1113- "node": "^12.20.0 || ^14.13.1 || >=16.0.0"
1114- },
1115- "funding": {
1116- "url": "https://github.com/sponsors/sindresorhus"
1117- }
1118- },
1119- "node_modules/isexe": {
1120- "version": "2.0.0",
1121- "resolved": "https://registry.npmjs.org/isexe/-/isexe-2.0.0.tgz",
1122- "integrity": "sha512-RHxMLp9lnKHGHRng9QFhRCMbYAcVpn69smSGcq3f36xjgVVWThj4qqLbTLlq7Ssj8B+fIQ1EuCEGI2lKsyQeIw==",
1123- "dev": true,
1124- "license": "ISC"
1125- },
11261097 "node_modules/js-tokens": {
11271098 "version": "9.0.1",
11281099 "resolved": "https://registry.npmjs.org/js-tokens/-/js-tokens-9.0.1.tgz",
@@ -1130,32 +1101,12 @@
11301101 "dev": true,
11311102 "license": "MIT"
11321103 },
1133- "node_modules/local-pkg": {
1134- "version": "0.5.1",
1135- "resolved": "https://registry.npmjs.org/local-pkg/-/local-pkg-0.5.1.tgz",
1136- "integrity": "sha512-9rrA30MRRP3gBD3HTGnC6cDFpaE1kVDWxWgqWJUN0RvDNAo+Nz/9GxB+nHOH0ifbVFy0hSA1V6vFDvnx54lTEQ==",
1137- "dev": true,
1138- "license": "MIT",
1139- "dependencies": {
1140- "mlly": "^1.7.3",
1141- "pkg-types": "^1.2.1"
1142- },
1143- "engines": {
1144- "node": ">=14"
1145- },
1146- "funding": {
1147- "url": "https://github.com/sponsors/antfu"
1148- }
1149- },
11501104 "node_modules/loupe": {
1151- "version": "2.3.7",
1152- "resolved": "https://registry.npmjs.org/loupe/-/loupe-2.3.7.tgz",
1153- "integrity": "sha512-zSMINGVYkdpYSOBmLi0D1Uo7JU9nVdQKrHxC8eYlV+9YKK9WePqAlL7lSlorG/U2Fw1w0hTBmaa/jrQ3UbPHtA==",
1105+ "version": "3.2.1",
1106+ "resolved": "https://registry.npmjs.org/loupe/-/loupe-3.2.1.tgz",
1107+ "integrity": "sha512-CdzqowRJCeLU72bHvWqwRBBlLcMEtIvGrlvef74kMnV2AolS9Y8xUv1I0U/MNAWMhBlKIoyuEgoJ0t/bbwHbLQ==",
11541108 "dev": true,
1155- "license": "MIT",
1156- "dependencies": {
1157- "get-func-name": "^2.0.1"
1158- }
1109+ "license": "MIT"
11591110 },
11601111 "node_modules/magic-string": {
11611112 "version": "0.30.18",
@@ -1167,46 +1118,6 @@
11671118 "@jridgewell/sourcemap-codec": "^1.5.5"
11681119 }
11691120 },
1170- "node_modules/merge-stream": {
1171- "version": "2.0.0",
1172- "resolved": "https://registry.npmjs.org/merge-stream/-/merge-stream-2.0.0.tgz",
1173- "integrity": "sha512-abv/qOcuPfk3URPfDzmZU1LKmuw8kT+0nIHvKrKgFrwifol/doWcdA4ZqsWQ8ENrFKkd67Mfpo/LovbIUsbt3w==",
1174- "dev": true,
1175- "license": "MIT"
1176- },
1177- "node_modules/mimic-fn": {
1178- "version": "4.0.0",
1179- "resolved": "https://registry.npmjs.org/mimic-fn/-/mimic-fn-4.0.0.tgz",
1180- "integrity": "sha512-vqiC06CuhBTUdZH+RYl8sFrL096vA45Ok5ISO6sE/Mr1jRbGH4Csnhi8f3wKVl7x8mO4Au7Ir9D3Oyv1VYMFJw==",
1181- "dev": true,
1182- "license": "MIT",
1183- "engines": {
1184- "node": ">=12"
1185- },
1186- "funding": {
1187- "url": "https://github.com/sponsors/sindresorhus"
1188- }
1189- },
1190- "node_modules/mlly": {
1191- "version": "1.8.0",
1192- "resolved": "https://registry.npmjs.org/mlly/-/mlly-1.8.0.tgz",
1193- "integrity": "sha512-l8D9ODSRWLe2KHJSifWGwBqpTZXIXTeo8mlKjY+E2HAakaTeNpqAyBZ8GSqLzHgw4XmHmC8whvpjJNMbFZN7/g==",
1194- "dev": true,
1195- "license": "MIT",
1196- "dependencies": {
1197- "acorn": "^8.15.0",
1198- "pathe": "^2.0.3",
1199- "pkg-types": "^1.3.1",
1200- "ufo": "^1.6.1"
1201- }
1202- },
1203- "node_modules/mlly/node_modules/pathe": {
1204- "version": "2.0.3",
1205- "resolved": "https://registry.npmjs.org/pathe/-/pathe-2.0.3.tgz",
1206- "integrity": "sha512-WUjGcAqP1gQacoQe+OBJsFA7Ld4DyXuUIjZ5cc75cLHvJ7dtNsTugphxIADwspS+AraAUePCKrSVtPLFj/F88w==",
1207- "dev": true,
1208- "license": "MIT"
1209- },
12101121 "node_modules/ms": {
12111122 "version": "2.1.3",
12121123 "resolved": "https://registry.npmjs.org/ms/-/ms-2.1.3.tgz",
@@ -1233,92 +1144,21 @@
12331144 "node": "^10 || ^12 || ^13.7 || ^14 || >=15.0.1"
12341145 }
12351146 },
1236- "node_modules/npm-run-path": {
1237- "version": "5.3.0",
1238- "resolved": "https://registry.npmjs.org/npm-run-path/-/npm-run-path-5.3.0.tgz",
1239- "integrity": "sha512-ppwTtiJZq0O/ai0z7yfudtBpWIoxM8yE6nHi1X47eFR2EWORqfbu6CnPlNsjeN683eT0qG6H/Pyf9fCcvjnnnQ==",
1240- "dev": true,
1241- "license": "MIT",
1242- "dependencies": {
1243- "path-key": "^4.0.0"
1244- },
1245- "engines": {
1246- "node": "^12.20.0 || ^14.13.1 || >=16.0.0"
1247- },
1248- "funding": {
1249- "url": "https://github.com/sponsors/sindresorhus"
1250- }
1251- },
1252- "node_modules/npm-run-path/node_modules/path-key": {
1253- "version": "4.0.0",
1254- "resolved": "https://registry.npmjs.org/path-key/-/path-key-4.0.0.tgz",
1255- "integrity": "sha512-haREypq7xkM7ErfgIyA0z+Bj4AGKlMSdlQE2jvJo6huWD1EdkKYV+G/T4nq0YEF2vgTT8kqMFKo1uHn950r4SQ==",
1256- "dev": true,
1257- "license": "MIT",
1258- "engines": {
1259- "node": ">=12"
1260- },
1261- "funding": {
1262- "url": "https://github.com/sponsors/sindresorhus"
1263- }
1264- },
1265- "node_modules/onetime": {
1266- "version": "6.0.0",
1267- "resolved": "https://registry.npmjs.org/onetime/-/onetime-6.0.0.tgz",
1268- "integrity": "sha512-1FlR+gjXK7X+AsAHso35MnyN5KqGwJRi/31ft6x0M194ht7S+rWAvd7PHss9xSKMzE0asv1pyIHaJYq+BbacAQ==",
1269- "dev": true,
1270- "license": "MIT",
1271- "dependencies": {
1272- "mimic-fn": "^4.0.0"
1273- },
1274- "engines": {
1275- "node": ">=12"
1276- },
1277- "funding": {
1278- "url": "https://github.com/sponsors/sindresorhus"
1279- }
1280- },
1281- "node_modules/p-limit": {
1282- "version": "5.0.0",
1283- "resolved": "https://registry.npmjs.org/p-limit/-/p-limit-5.0.0.tgz",
1284- "integrity": "sha512-/Eaoq+QyLSiXQ4lyYV23f14mZRQcXnxfHrN0vCai+ak9G0pp9iEQukIIZq5NccEvwRB8PUnZT0KsOoDCINS1qQ==",
1285- "dev": true,
1286- "license": "MIT",
1287- "dependencies": {
1288- "yocto-queue": "^1.0.0"
1289- },
1290- "engines": {
1291- "node": ">=18"
1292- },
1293- "funding": {
1294- "url": "https://github.com/sponsors/sindresorhus"
1295- }
1296- },
1297- "node_modules/path-key": {
1298- "version": "3.1.1",
1299- "resolved": "https://registry.npmjs.org/path-key/-/path-key-3.1.1.tgz",
1300- "integrity": "sha512-ojmeN0qd+y0jszEtoY48r0Peq5dwMEkIlCOu6Q5f41lfkswXuKtYrhgoTpLnyIcHm24Uhqx+5Tqm2InSwLhE6Q==",
1301- "dev": true,
1302- "license": "MIT",
1303- "engines": {
1304- "node": ">=8"
1305- }
1306- },
13071147 "node_modules/pathe": {
1308- "version": "1.1.2",
1309- "resolved": "https://registry.npmjs.org/pathe/-/pathe-1.1.2.tgz",
1310- "integrity": "sha512-whLdWMYL2TwI08hn8/ZqAbrVemu0LNaNNJZX73O6qaIdCTfXutsLhMkjdENX0qhsQ9uIimo4/aQOmXkoon2nDQ==",
1148+ "version": "2.0.3",
1149+ "resolved": "https://registry.npmjs.org/pathe/-/pathe-2.0.3.tgz",
1150+ "integrity": "sha512-WUjGcAqP1gQacoQe+OBJsFA7Ld4DyXuUIjZ5cc75cLHvJ7dtNsTugphxIADwspS+AraAUePCKrSVtPLFj/F88w==",
13111151 "dev": true,
13121152 "license": "MIT"
13131153 },
13141154 "node_modules/pathval": {
1315- "version": "1.1.1",
1316- "resolved": "https://registry.npmjs.org/pathval/-/pathval-1.1.1.tgz",
1317- "integrity": "sha512-Dp6zGqpTdETdR63lehJYPeIOqpiNBNtc7BpWSLrOje7UaIsE5aY92r/AunQA7rsXvet3lrJ3JnZX29UPTKXyKQ==",
1155+ "version": "2.0.1",
1156+ "resolved": "https://registry.npmjs.org/pathval/-/pathval-2.0.1.tgz",
1157+ "integrity": "sha512-//nshmD55c46FuFw26xV/xFAaB5HF9Xdap7HJBBnrKdAd6/GxDBaNA1870O79+9ueg61cZLSVc+OaFlfmObYVQ==",
13181158 "dev": true,
13191159 "license": "MIT",
13201160 "engines": {
1321- "node": "*"
1161+ "node": ">= 14.16"
13221162 }
13231163 },
13241164 "node_modules/picocolors": {
@@ -1328,25 +1168,19 @@
13281168 "dev": true,
13291169 "license": "ISC"
13301170 },
1331- "node_modules/pkg-types": {
1332- "version": "1.3.1",
1333- "resolved": "https://registry.npmjs.org/pkg-types/-/pkg-types-1.3.1.tgz",
1334- "integrity": "sha512-/Jm5M4RvtBFVkKWRu2BLUTNP8/M2a+UwuAX+ae4770q1qVGtfjG+WTCupoZixokjmHiry8uI+dlY8KXYV5HVVQ==",
1171+ "node_modules/picomatch": {
1172+ "version": "4.0.3",
1173+ "resolved": "https://registry.npmjs.org/picomatch/-/picomatch-4.0.3.tgz",
1174+ "integrity": "sha512-5gTmgEY/sqK6gFXLIsQNH19lWb4ebPDLA4SdLP7dsWkIXHWlG66oPuVvXSGFPppYZz8ZDZq0dYYrbHfBCVUb1Q==",
13351175 "dev": true,
13361176 "license": "MIT",
1337- "dependencies": {
1338- "confbox": "^0.1.8",
1339- "mlly": "^1.7.4",
1340- "pathe": "^2.0.1"
1177+ "engines": {
1178+ "node": ">=12"
1179+ },
1180+ "funding": {
1181+ "url": "https://github.com/sponsors/jonschlinkert"
13411182 }
13421183 },
1343- "node_modules/pkg-types/node_modules/pathe": {
1344- "version": "2.0.3",
1345- "resolved": "https://registry.npmjs.org/pathe/-/pathe-2.0.3.tgz",
1346- "integrity": "sha512-WUjGcAqP1gQacoQe+OBJsFA7Ld4DyXuUIjZ5cc75cLHvJ7dtNsTugphxIADwspS+AraAUePCKrSVtPLFj/F88w==",
1347- "dev": true,
1348- "license": "MIT"
1349- },
13501184 "node_modules/postcss": {
13511185 "version": "8.5.6",
13521186 "resolved": "https://registry.npmjs.org/postcss/-/postcss-8.5.6.tgz",
@@ -1376,28 +1210,6 @@
13761210 "node": "^10 || ^12 || >=14"
13771211 }
13781212 },
1379- "node_modules/pretty-format": {
1380- "version": "29.7.0",
1381- "resolved": "https://registry.npmjs.org/pretty-format/-/pretty-format-29.7.0.tgz",
1382- "integrity": "sha512-Pdlw/oPxN+aXdmM9R00JVC9WVFoCLTKJvDVLgmJ+qAffBMxsV85l/Lu7sNx4zSzPyoL2euImuEwHhOXdEgNFZQ==",
1383- "dev": true,
1384- "license": "MIT",
1385- "dependencies": {
1386- "@jest/schemas": "^29.6.3",
1387- "ansi-styles": "^5.0.0",
1388- "react-is": "^18.0.0"
1389- },
1390- "engines": {
1391- "node": "^14.15.0 || ^16.10.0 || >=18.0.0"
1392- }
1393- },
1394- "node_modules/react-is": {
1395- "version": "18.3.1",
1396- "resolved": "https://registry.npmjs.org/react-is/-/react-is-18.3.1.tgz",
1397- "integrity": "sha512-/LLMVyas0ljjAtoYiPqYiL8VWXzUUdThrmU5+n20DZv+a+ClRoevUzw5JxU+Ieh5/c87ytoTBV9G1FiKfNJdmg==",
1398- "dev": true,
1399- "license": "MIT"
1400- },
14011213 "node_modules/rollup": {
14021214 "version": "4.50.0",
14031215 "resolved": "https://registry.npmjs.org/rollup/-/rollup-4.50.0.tgz",
@@ -1439,29 +1251,6 @@
14391251 "fsevents": "~2.3.2"
14401252 }
14411253 },
1442- "node_modules/shebang-command": {
1443- "version": "2.0.0",
1444- "resolved": "https://registry.npmjs.org/shebang-command/-/shebang-command-2.0.0.tgz",
1445- "integrity": "sha512-kHxr2zZpYtdmrN1qDjrrX/Z1rR1kG8Dx+gkpK1G4eXmvXswmcE1hTWBWYUzlraYw1/yZp6YuDY77YtvbN0dmDA==",
1446- "dev": true,
1447- "license": "MIT",
1448- "dependencies": {
1449- "shebang-regex": "^3.0.0"
1450- },
1451- "engines": {
1452- "node": ">=8"
1453- }
1454- },
1455- "node_modules/shebang-regex": {
1456- "version": "3.0.0",
1457- "resolved": "https://registry.npmjs.org/shebang-regex/-/shebang-regex-3.0.0.tgz",
1458- "integrity": "sha512-7++dFhtcx3353uBaq8DDR4NuxBetBzC7ZQOhmTQInHEd6bSrXdiEyzCvG07Z44UYdLShWUyXt5M/yhz8ekcb1A==",
1459- "dev": true,
1460- "license": "MIT",
1461- "engines": {
1462- "node": ">=8"
1463- }
1464- },
14651254 "node_modules/shell-quote": {
14661255 "version": "1.8.3",
14671256 "resolved": "https://registry.npmjs.org/shell-quote/-/shell-quote-1.8.3.tgz",
@@ -1481,19 +1270,6 @@
14811270 "dev": true,
14821271 "license": "ISC"
14831272 },
1484- "node_modules/signal-exit": {
1485- "version": "4.1.0",
1486- "resolved": "https://registry.npmjs.org/signal-exit/-/signal-exit-4.1.0.tgz",
1487- "integrity": "sha512-bzyZ1e88w9O1iNJbKnOlvYTrWPDl46O1bG0D3XInv+9tkPrxrN8jUUTiFlDkkmKWgn1M6CfIA13SuGqOa9Korw==",
1488- "dev": true,
1489- "license": "ISC",
1490- "engines": {
1491- "node": ">=14"
1492- },
1493- "funding": {
1494- "url": "https://github.com/sponsors/isaacs"
1495- }
1496- },
14971273 "node_modules/source-map-js": {
14981274 "version": "1.2.1",
14991275 "resolved": "https://registry.npmjs.org/source-map-js/-/source-map-js-1.2.1.tgz",
@@ -1518,23 +1294,10 @@
15181294 "dev": true,
15191295 "license": "MIT"
15201296 },
1521- "node_modules/strip-final-newline": {
1522- "version": "3.0.0",
1523- "resolved": "https://registry.npmjs.org/strip-final-newline/-/strip-final-newline-3.0.0.tgz",
1524- "integrity": "sha512-dOESqjYr96iWYylGObzd39EuNTa5VJxyvVAEm5Jnh7KGo75V43Hk1odPQkNDyXNmUR6k+gEiDVXnjB8HJ3crXw==",
1525- "dev": true,
1526- "license": "MIT",
1527- "engines": {
1528- "node": ">=12"
1529- },
1530- "funding": {
1531- "url": "https://github.com/sponsors/sindresorhus"
1532- }
1533- },
15341297 "node_modules/strip-literal": {
1535- "version": "2.1.1",
1536- "resolved": "https://registry.npmjs.org/strip-literal/-/strip-literal-2.1.1.tgz",
1537- "integrity": "sha512-631UJ6O00eNGfMiWG78ck80dfBab8X6IVFB51jZK5Icd7XAs60Z5y7QdSd/wGIklnWvRbUNloVzhOKKmutxQ6Q==",
1298+ "version": "3.0.0",
1299+ "resolved": "https://registry.npmjs.org/strip-literal/-/strip-literal-3.0.0.tgz",
1300+ "integrity": "sha512-TcccoMhJOM3OebGhSBEmp3UZ2SfDMZUEBdRA/9ynfLi8yYajyWX3JiXArcJt4Umh4vISpspkQIY8ZZoCqjbviA==",
15381301 "dev": true,
15391302 "license": "MIT",
15401303 "dependencies": {
@@ -1551,34 +1314,58 @@
15511314 "dev": true,
15521315 "license": "MIT"
15531316 },
1317+ "node_modules/tinyexec": {
1318+ "version": "0.3.2",
1319+ "resolved": "https://registry.npmjs.org/tinyexec/-/tinyexec-0.3.2.tgz",
1320+ "integrity": "sha512-KQQR9yN7R5+OSwaK0XQoj22pwHoTlgYqmUscPYoknOoWCWfj/5/ABTMRi69FrKU5ffPVh5QcFikpWJI/P1ocHA==",
1321+ "dev": true,
1322+ "license": "MIT"
1323+ },
1324+ "node_modules/tinyglobby": {
1325+ "version": "0.2.14",
1326+ "resolved": "https://registry.npmjs.org/tinyglobby/-/tinyglobby-0.2.14.tgz",
1327+ "integrity": "sha512-tX5e7OM1HnYr2+a2C/4V0htOcSQcoSTH9KgJnVvNm5zm/cyEWKJ7j7YutsH9CxMdtOkkLFy2AHrMci9IM8IPZQ==",
1328+ "dev": true,
1329+ "license": "MIT",
1330+ "dependencies": {
1331+ "fdir": "^6.4.4",
1332+ "picomatch": "^4.0.2"
1333+ },
1334+ "engines": {
1335+ "node": ">=12.0.0"
1336+ },
1337+ "funding": {
1338+ "url": "https://github.com/sponsors/SuperchupuDev"
1339+ }
1340+ },
15541341 "node_modules/tinypool": {
1555- "version": "0.8.4",
1556- "resolved": "https://registry.npmjs.org/tinypool/-/tinypool-0.8.4.tgz",
1557- "integrity": "sha512-i11VH5gS6IFeLY3gMBQ00/MmLncVP7JLXOw1vlgkytLmJK7QnEr7NXf0LBdxfmNPAeyetukOk0bOYrJrFGjYJQ==",
1342+ "version": "1.1.1",
1343+ "resolved": "https://registry.npmjs.org/tinypool/-/tinypool-1.1.1.tgz",
1344+ "integrity": "sha512-Zba82s87IFq9A9XmjiX5uZA/ARWDrB03OHlq+Vw1fSdt0I+4/Kutwy8BP4Y/y/aORMo61FQ0vIb5j44vSo5Pkg==",
15581345 "dev": true,
15591346 "license": "MIT",
15601347 "engines": {
1561- "node": ">=14.0.0"
1348+ "node": "^18.0.0 || >=20.0.0"
15621349 }
15631350 },
1564- "node_modules/tinyspy": {
1565- "version": "2.2.1",
1566- "resolved": "https://registry.npmjs.org/tinyspy/-/tinyspy-2.2.1.tgz",
1567- "integrity": "sha512-KYad6Vy5VDWV4GH3fjpseMQ/XU2BhIYP7Vzd0LG44qRWm/Yt2WCOTicFdvmgo6gWaqooMQCawTtILVQJupKu7A==",
1351+ "node_modules/tinyrainbow": {
1352+ "version": "2.0.0",
1353+ "resolved": "https://registry.npmjs.org/tinyrainbow/-/tinyrainbow-2.0.0.tgz",
1354+ "integrity": "sha512-op4nsTR47R6p0vMUUoYl/a+ljLFVtlfaXkLQmqfLR1qHma1h/ysYk4hEXZ880bf2CYgTskvTa/e196Vd5dDQXw==",
15681355 "dev": true,
15691356 "license": "MIT",
15701357 "engines": {
15711358 "node": ">=14.0.0"
15721359 }
15731360 },
1574- "node_modules/type-detect": {
1575- "version": "4.1.0",
1576- "resolved": "https://registry.npmjs.org/type-detect/-/type-detect-4.1.0.tgz",
1577- "integrity": "sha512-Acylog8/luQ8L7il+geoSxhEkazvkslg7PSNKOX59mbB9cOveP5aq9h74Y7YU8yDpJwetzQQrfIwtf4Wp4LKcw==",
1361+ "node_modules/tinyspy": {
1362+ "version": "4.0.3",
1363+ "resolved": "https://registry.npmjs.org/tinyspy/-/tinyspy-4.0.3.tgz",
1364+ "integrity": "sha512-t2T/WLB2WRgZ9EpE4jgPJ9w+i66UZfDc8wHh0xrwiRNN+UwH98GIJkTeZqX9rg0i0ptwzqW+uYeIF0T4F8LR7A==",
15781365 "dev": true,
15791366 "license": "MIT",
15801367 "engines": {
1581- "node": ">=4"
1368+ "node": ">=14.0.0"
15821369 }
15831370 },
15841371 "node_modules/typescript": {
@@ -1595,13 +1382,6 @@
15951382 "node": ">=14.17"
15961383 }
15971384 },
1598- "node_modules/ufo": {
1599- "version": "1.6.1",
1600- "resolved": "https://registry.npmjs.org/ufo/-/ufo-1.6.1.tgz",
1601- "integrity": "sha512-9a4/uxlTWJ4+a5i0ooc1rU7C7YOw3wT+UGqdeNNHWnOF9qcMBgLRS+4IYUqbczewFx4mLEig6gawh7X6mFlEkA==",
1602- "dev": true,
1603- "license": "MIT"
1604- },
16051385 "node_modules/undici-types": {
16061386 "version": "6.21.0",
16071387 "resolved": "https://registry.npmjs.org/undici-types/-/undici-types-6.21.0.tgz",
@@ -1610,21 +1390,24 @@
16101390 "license": "MIT"
16111391 },
16121392 "node_modules/vite": {
1613- "version": "5.4.19",
1614- "resolved": "https://registry.npmjs.org/vite/-/vite-5.4.19.tgz",
1615- "integrity": "sha512-qO3aKv3HoQC8QKiNSTuUM1l9o/XX3+c+VTgLHbJWHZGeTPVAg2XwazI9UWzoxjIJCGCV2zU60uqMzjeLZuULqA==",
1393+ "version": "7.1.4",
1394+ "resolved": "https://registry.npmjs.org/vite/-/vite-7.1.4.tgz",
1395+ "integrity": "sha512-X5QFK4SGynAeeIt+A7ZWnApdUyHYm+pzv/8/A57LqSGcI88U6R6ipOs3uCesdc6yl7nl+zNO0t8LmqAdXcQihw==",
16161396 "dev": true,
16171397 "license": "MIT",
16181398 "dependencies": {
1619- "esbuild": "^0.21.3",
1620- "postcss": "^8.4.43",
1621- "rollup": "^4.20.0"
1399+ "esbuild": "^0.25.0",
1400+ "fdir": "^6.5.0",
1401+ "picomatch": "^4.0.3",
1402+ "postcss": "^8.5.6",
1403+ "rollup": "^4.43.0",
1404+ "tinyglobby": "^0.2.14"
16221405 },
16231406 "bin": {
16241407 "vite": "bin/vite.js"
16251408 },
16261409 "engines": {
1627- "node": "^18.0.0 || >=20.0.0"
1410+ "node": "^20.19.0 || >=22.12.0"
16281411 },
16291412 "funding": {
16301413 "url": "https://github.com/vitejs/vite?sponsor=1"
@@ -1633,19 +1416,25 @@
16331416 "fsevents": "~2.3.3"
16341417 },
16351418 "peerDependencies": {
1636- "@types/node": "^18.0.0 || >=20.0.0",
1637- "less": "*",
1419+ "@types/node": "^20.19.0 || >=22.12.0",
1420+ "jiti": ">=1.21.0",
1421+ "less": "^4.0.0",
16381422 "lightningcss": "^1.21.0",
1639- "sass": "*",
1640- "sass-embedded": "*",
1641- "stylus": "*",
1642- "sugarss": "*",
1643- "terser": "^5.4.0"
1423+ "sass": "^1.70.0",
1424+ "sass-embedded": "^1.70.0",
1425+ "stylus": ">=0.54.8",
1426+ "sugarss": "^5.0.0",
1427+ "terser": "^5.16.0",
1428+ "tsx": "^4.8.1",
1429+ "yaml": "^2.4.2"
16441430 },
16451431 "peerDependenciesMeta": {
16461432 "@types/node": {
16471433 "optional": true
16481434 },
1435+ "jiti": {
1436+ "optional": true
1437+ },
16491438 "less": {
16501439 "optional": true
16511440 },
@@ -1666,74 +1455,84 @@
16661455 },
16671456 "terser": {
16681457 "optional": true
1458+ },
1459+ "tsx": {
1460+ "optional": true
1461+ },
1462+ "yaml": {
1463+ "optional": true
16691464 }
16701465 }
16711466 },
16721467 "node_modules/vite-node": {
1673- "version": "1.6.1",
1674- "resolved": "https://registry.npmjs.org/vite-node/-/vite-node-1.6.1.tgz",
1675- "integrity": "sha512-YAXkfvGtuTzwWbDSACdJSg4A4DZiAqckWe90Zapc/sEX3XvHcw1NdurM/6od8J207tSDqNbSsgdCacBgvJKFuA==",
1468+ "version": "3.2.4",
1469+ "resolved": "https://registry.npmjs.org/vite-node/-/vite-node-3.2.4.tgz",
1470+ "integrity": "sha512-EbKSKh+bh1E1IFxeO0pg1n4dvoOTt0UDiXMd/qn++r98+jPO1xtJilvXldeuQ8giIB5IkpjCgMleHMNEsGH6pg==",
16761471 "dev": true,
16771472 "license": "MIT",
16781473 "dependencies": {
16791474 "cac": "^6.7.14",
1680- "debug": "^4.3.4",
1681- "pathe": "^1.1.1",
1682- "picocolors": "^1.0.0",
1683- "vite": "^5.0.0"
1475+ "debug": "^4.4.1",
1476+ "es-module-lexer": "^1.7.0",
1477+ "pathe": "^2.0.3",
1478+ "vite": "^5.0.0 || ^6.0.0 || ^7.0.0-0"
16841479 },
16851480 "bin": {
16861481 "vite-node": "vite-node.mjs"
16871482 },
16881483 "engines": {
1689- "node": "^18.0.0 || >=20.0.0"
1484+ "node": "^18.0.0 || ^20.0.0 || >=22.0.0"
16901485 },
16911486 "funding": {
16921487 "url": "https://opencollective.com/vitest"
16931488 }
16941489 },
16951490 "node_modules/vitest": {
1696- "version": "1.6.1",
1697- "resolved": "https://registry.npmjs.org/vitest/-/vitest-1.6.1.tgz",
1698- "integrity": "sha512-Ljb1cnSJSivGN0LqXd/zmDbWEM0RNNg2t1QW/XUhYl/qPqyu7CsqeWtqQXHVaJsecLPuDoak2oJcZN2QoRIOag==",
1699- "dev": true,
1700- "license": "MIT",
1701- "dependencies": {
1702- "@vitest/expect": "1.6.1",
1703- "@vitest/runner": "1.6.1",
1704- "@vitest/snapshot": "1.6.1",
1705- "@vitest/spy": "1.6.1",
1706- "@vitest/utils": "1.6.1",
1707- "acorn-walk": "^8.3.2",
1708- "chai": "^4.3.10",
1709- "debug": "^4.3.4",
1710- "execa": "^8.0.1",
1711- "local-pkg": "^0.5.0",
1712- "magic-string": "^0.30.5",
1713- "pathe": "^1.1.1",
1714- "picocolors": "^1.0.0",
1715- "std-env": "^3.5.0",
1716- "strip-literal": "^2.0.0",
1717- "tinybench": "^2.5.1",
1718- "tinypool": "^0.8.3",
1719- "vite": "^5.0.0",
1720- "vite-node": "1.6.1",
1721- "why-is-node-running": "^2.2.2"
1491+ "version": "3.2.4",
1492+ "resolved": "https://registry.npmjs.org/vitest/-/vitest-3.2.4.tgz",
1493+ "integrity": "sha512-LUCP5ev3GURDysTWiP47wRRUpLKMOfPh+yKTx3kVIEiu5KOMeqzpnYNsKyOoVrULivR8tLcks4+lga33Whn90A==",
1494+ "dev": true,
1495+ "license": "MIT",
1496+ "dependencies": {
1497+ "@types/chai": "^5.2.2",
1498+ "@vitest/expect": "3.2.4",
1499+ "@vitest/mocker": "3.2.4",
1500+ "@vitest/pretty-format": "^3.2.4",
1501+ "@vitest/runner": "3.2.4",
1502+ "@vitest/snapshot": "3.2.4",
1503+ "@vitest/spy": "3.2.4",
1504+ "@vitest/utils": "3.2.4",
1505+ "chai": "^5.2.0",
1506+ "debug": "^4.4.1",
1507+ "expect-type": "^1.2.1",
1508+ "magic-string": "^0.30.17",
1509+ "pathe": "^2.0.3",
1510+ "picomatch": "^4.0.2",
1511+ "std-env": "^3.9.0",
1512+ "tinybench": "^2.9.0",
1513+ "tinyexec": "^0.3.2",
1514+ "tinyglobby": "^0.2.14",
1515+ "tinypool": "^1.1.1",
1516+ "tinyrainbow": "^2.0.0",
1517+ "vite": "^5.0.0 || ^6.0.0 || ^7.0.0-0",
1518+ "vite-node": "3.2.4",
1519+ "why-is-node-running": "^2.3.0"
17221520 },
17231521 "bin": {
17241522 "vitest": "vitest.mjs"
17251523 },
17261524 "engines": {
1727- "node": "^18.0.0 || >=20.0.0"
1525+ "node": "^18.0.0 || ^20.0.0 || >=22.0.0"
17281526 },
17291527 "funding": {
17301528 "url": "https://opencollective.com/vitest"
17311529 },
17321530 "peerDependencies": {
17331531 "@edge-runtime/vm": "*",
1734- "@types/node": "^18.0.0 || >=20.0.0",
1735- "@vitest/browser": "1.6.1",
1736- "@vitest/ui": "1.6.1",
1532+ "@types/debug": "^4.1.12",
1533+ "@types/node": "^18.0.0 || ^20.0.0 || >=22.0.0",
1534+ "@vitest/browser": "3.2.4",
1535+ "@vitest/ui": "3.2.4",
17371536 "happy-dom": "*",
17381537 "jsdom": "*"
17391538 },
@@ -1741,6 +1540,9 @@
17411540 "@edge-runtime/vm": {
17421541 "optional": true
17431542 },
1543+ "@types/debug": {
1544+ "optional": true
1545+ },
17441546 "@types/node": {
17451547 "optional": true
17461548 },
@@ -1758,22 +1560,6 @@
17581560 }
17591561 }
17601562 },
1761- "node_modules/which": {
1762- "version": "2.0.2",
1763- "resolved": "https://registry.npmjs.org/which/-/which-2.0.2.tgz",
1764- "integrity": "sha512-BLI3Tl1TW3Pvl70l3yq3Y64i+awpwXqsGBYWkkqMtnbXgrMD+yj7rhW0kuEDxzJaYXGjEW5ogapKNMEKNMjibA==",
1765- "dev": true,
1766- "license": "ISC",
1767- "dependencies": {
1768- "isexe": "^2.0.0"
1769- },
1770- "bin": {
1771- "node-which": "bin/node-which"
1772- },
1773- "engines": {
1774- "node": ">= 8"
1775- }
1776- },
17771563 "node_modules/why-is-node-running": {
17781564 "version": "2.3.0",
17791565 "resolved": "https://registry.npmjs.org/why-is-node-running/-/why-is-node-running-2.3.0.tgz",
@@ -1790,19 +1576,6 @@
17901576 "engines": {
17911577 "node": ">=8"
17921578 }
1793- },
1794- "node_modules/yocto-queue": {
1795- "version": "1.2.1",
1796- "resolved": "https://registry.npmjs.org/yocto-queue/-/yocto-queue-1.2.1.tgz",
1797- "integrity": "sha512-AyeEbWOu/TAXdxlV9wmGcR0+yh2j3vYPGOECcIj2S7MkrLyC7ne+oye2BKTItt0ii2PHk4cDy+95+LshzbXnGg==",
1798- "dev": true,
1799- "license": "MIT",
1800- "engines": {
1801- "node": ">=12.20"
1802- },
1803- "funding": {
1804- "url": "https://github.com/sponsors/sindresorhus"
1805- }
18061579 }
18071580 }
18081581 }
modified packages/terminal-security/package.json +1 −1
@@ -17,7 +17,7 @@
1717 "@types/node": "^20.11.19",
1818 "@types/shell-quote": "^1.7.5",
1919 "typescript": "^5.5.2",
20- "vitest": "^1.6.0"
20+ "vitest": "^3.2.4"
2121 },
2222 "dependencies": {
2323 "shell-quote": "^1.8.1"
modified scripts/build-packages.js +1 −0
@@ -34,6 +34,7 @@
3434 } else {
3535 console.error(`❌ ${packageName}: ${command} failed with code ${code}`);
3636 console.error(`stderr: ${stderr}`);
37+ console.error(`stdout: ${stdout}`);
3738 reject(
3839 new Error(`${packageName} failed: ${command} (exit code ${code})`),
3940 );